Imported Upstream version 7.59.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.69 for curl -.
4 #
5 # Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 #
14 # Copyright (c) 1998 - 2017 Daniel Stenberg, <daniel@haxx.se>
15 # This configure script may be copied, distributed and modified under the
16 # terms of the curl license; see COPYING for more details
17
18 ## -------------------------------- ##
19 ##  XC_CONFIGURE_PREAMBLE ver: 1.0  ##
20 ## -------------------------------- ##
21
22 xc_configure_preamble_ver_major='1'
23 xc_configure_preamble_ver_minor='0'
24
25 #
26 # Set IFS to space, tab and newline.
27 #
28
29 xc_space=' '
30 xc_tab='        '
31 xc_newline='
32 '
33 IFS="$xc_space$xc_tab$xc_newline"
34
35 #
36 # Set internationalization behavior variables.
37 #
38
39 LANG='C'
40 LC_ALL='C'
41 LANGUAGE='C'
42 export LANG
43 export LC_ALL
44 export LANGUAGE
45
46 #
47 # Some useful variables.
48 #
49
50 xc_msg_warn='configure: WARNING:'
51 xc_msg_abrt='Can not continue.'
52 xc_msg_err='configure: error:'
53
54 #
55 # Verify that 'echo' command is available, otherwise abort.
56 #
57
58 xc_tst_str='unknown'
59 (`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
60 case "x$xc_tst_str" in # ((
61   xsuccess)
62     :
63     ;;
64   *)
65     # Try built-in echo, and fail.
66     echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
67     exit 1
68     ;;
69 esac
70
71 #
72 # Verify that 'test' command is available, otherwise abort.
73 #
74
75 xc_tst_str='unknown'
76 (`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
77 case "x$xc_tst_str" in # ((
78   xsuccess)
79     :
80     ;;
81   *)
82     echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
83     exit 1
84     ;;
85 esac
86
87 #
88 # Verify that 'PATH' variable is set, otherwise abort.
89 #
90
91 xc_tst_str='unknown'
92 (`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
93 case "x$xc_tst_str" in # ((
94   xsuccess)
95     :
96     ;;
97   *)
98     echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
99     exit 1
100     ;;
101 esac
102
103 #
104 # Verify that 'expr' command is available, otherwise abort.
105 #
106
107 xc_tst_str='unknown'
108 xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
109 case "x$xc_tst_str" in # ((
110   x7)
111     :
112     ;;
113   *)
114     echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
115     exit 1
116     ;;
117 esac
118
119 #
120 # Verify that 'sed' utility is found within 'PATH', otherwise abort.
121 #
122
123 xc_tst_str='unknown'
124 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
125   | sed -e 's:unknown:success:' 2>/dev/null`
126 case "x$xc_tst_str" in # ((
127   xsuccess)
128     :
129     ;;
130   *)
131     echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
132     exit 1
133     ;;
134 esac
135
136 #
137 # Verify that 'grep' utility is found within 'PATH', otherwise abort.
138 #
139
140 xc_tst_str='unknown'
141 (`echo "$xc_tst_str" 2>/dev/null \
142   | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
143 case "x$xc_tst_str" in # ((
144   xsuccess)
145     :
146     ;;
147   *)
148     echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
149     exit 1
150     ;;
151 esac
152
153 #
154 # Verify that 'tr' utility is found within 'PATH', otherwise abort.
155 #
156
157 xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
158 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
159   | tr -d "0123456789$xc_tab" 2>/dev/null`
160 case "x$xc_tst_str" in # ((
161   xsuccess)
162     :
163     ;;
164   *)
165     echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
166     exit 1
167     ;;
168 esac
169
170 #
171 # Verify that 'wc' utility is found within 'PATH', otherwise abort.
172 #
173
174 xc_tst_str='unknown unknown unknown unknown'
175 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
176   | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
177 case "x$xc_tst_str" in # ((
178   x4)
179     :
180     ;;
181   *)
182     echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
183     exit 1
184     ;;
185 esac
186
187 #
188 # Verify that 'cat' utility is found within 'PATH', otherwise abort.
189 #
190
191 xc_tst_str='unknown'
192 xc_tst_str=`cat <<_EOT 2>/dev/null \
193   | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
194 unknown
195 unknown
196 unknown
197 _EOT`
198 case "x$xc_tst_str" in # ((
199   x3)
200     :
201     ;;
202   *)
203     echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
204     exit 1
205     ;;
206 esac
207
208 #
209 # Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
210 #
211
212 # Directory count in 'PATH' when using a colon separator.
213 xc_tst_dirs_col='x'
214 xc_tst_prev_IFS=$IFS; IFS=':'
215 for xc_tst_dir in $PATH; do
216   IFS=$xc_tst_prev_IFS
217   xc_tst_dirs_col="x$xc_tst_dirs_col"
218 done
219 IFS=$xc_tst_prev_IFS
220 xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
221
222 # Directory count in 'PATH' when using a semicolon separator.
223 xc_tst_dirs_sem='x'
224 xc_tst_prev_IFS=$IFS; IFS=';'
225 for xc_tst_dir in $PATH; do
226   IFS=$xc_tst_prev_IFS
227   xc_tst_dirs_sem="x$xc_tst_dirs_sem"
228 done
229 IFS=$xc_tst_prev_IFS
230 xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
231
232 if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
233   # When both counting methods give the same result we do not want to
234   # chose one over the other, and consider auto-detection not possible.
235   if test -z "$PATH_SEPARATOR"; then
236     # User should provide the correct 'PATH_SEPARATOR' definition.
237     # Until then, guess that it is colon!
238     echo "$xc_msg_warn path separator not determined, guessing colon" >&2
239     PATH_SEPARATOR=':'
240   fi
241 else
242   # Separator with the greater directory count is the auto-detected one.
243   if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
244     xc_tst_auto_separator=';'
245   else
246     xc_tst_auto_separator=':'
247   fi
248   if test -z "$PATH_SEPARATOR"; then
249     # Simply use the auto-detected one when not already set.
250     PATH_SEPARATOR=$xc_tst_auto_separator
251   elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
252     echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
253   fi
254 fi
255 xc_PATH_SEPARATOR=$PATH_SEPARATOR
256
257 xc_configure_preamble_result='yes'
258
259
260 ## -------------------- ##
261 ## M4sh Initialization. ##
262 ## -------------------- ##
263
264 # Be more Bourne compatible
265 DUALCASE=1; export DUALCASE # for MKS sh
266 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
267   emulate sh
268   NULLCMD=:
269   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
270   # is contrary to our usage.  Disable this feature.
271   alias -g '${1+"$@"}'='"$@"'
272   setopt NO_GLOB_SUBST
273 else
274   case `(set -o) 2>/dev/null` in #(
275   *posix*) :
276     set -o posix ;; #(
277   *) :
278      ;;
279 esac
280 fi
281
282
283 as_nl='
284 '
285 export as_nl
286 # Printing a long string crashes Solaris 7 /usr/bin/printf.
287 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
288 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
289 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
290 # Prefer a ksh shell builtin over an external printf program on Solaris,
291 # but without wasting forks for bash or zsh.
292 if test -z "$BASH_VERSION$ZSH_VERSION" \
293     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
294   as_echo='print -r --'
295   as_echo_n='print -rn --'
296 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
297   as_echo='printf %s\n'
298   as_echo_n='printf %s'
299 else
300   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
301     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
302     as_echo_n='/usr/ucb/echo -n'
303   else
304     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
305     as_echo_n_body='eval
306       arg=$1;
307       case $arg in #(
308       *"$as_nl"*)
309         expr "X$arg" : "X\\(.*\\)$as_nl";
310         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
311       esac;
312       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
313     '
314     export as_echo_n_body
315     as_echo_n='sh -c $as_echo_n_body as_echo'
316   fi
317   export as_echo_body
318   as_echo='sh -c $as_echo_body as_echo'
319 fi
320
321
322
323 # IFS
324 # We need space, tab and new line, in precisely that order.  Quoting is
325 # there to prevent editors from complaining about space-tab.
326 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
327 # splitting by setting IFS to empty value.)
328 IFS=" ""        $as_nl"
329
330 # Find who we are.  Look in the path if we contain no directory separator.
331 as_myself=
332 case $0 in #((
333   *[\\/]* ) as_myself=$0 ;;
334   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
335 for as_dir in $PATH
336 do
337   IFS=$as_save_IFS
338   test -z "$as_dir" && as_dir=.
339     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
340   done
341 IFS=$as_save_IFS
342
343      ;;
344 esac
345 # We did not find ourselves, most probably we were run as `sh COMMAND'
346 # in which case we are not to be found in the path.
347 if test "x$as_myself" = x; then
348   as_myself=$0
349 fi
350 if test ! -f "$as_myself"; then
351   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
352   exit 1
353 fi
354
355 # Unset variables that we do not need and which cause bugs (e.g. in
356 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
357 # suppresses any "Segmentation fault" message there.  '((' could
358 # trigger a bug in pdksh 5.2.14.
359 for as_var in BASH_ENV ENV MAIL MAILPATH
360 do eval test x\${$as_var+set} = xset \
361   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
362 done
363 PS1='$ '
364 PS2='> '
365 PS4='+ '
366
367 # NLS nuisances.
368 LC_ALL=C
369 export LC_ALL
370 LANGUAGE=C
371 export LANGUAGE
372
373 # CDPATH.
374 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
375
376 # Use a proper internal environment variable to ensure we don't fall
377   # into an infinite loop, continuously re-executing ourselves.
378   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
379     _as_can_reexec=no; export _as_can_reexec;
380     # We cannot yet assume a decent shell, so we have to provide a
381 # neutralization value for shells without unset; and this also
382 # works around shells that cannot unset nonexistent variables.
383 # Preserve -v and -x to the replacement shell.
384 BASH_ENV=/dev/null
385 ENV=/dev/null
386 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
387 case $- in # ((((
388   *v*x* | *x*v* ) as_opts=-vx ;;
389   *v* ) as_opts=-v ;;
390   *x* ) as_opts=-x ;;
391   * ) as_opts= ;;
392 esac
393 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
394 # Admittedly, this is quite paranoid, since all the known shells bail
395 # out after a failed `exec'.
396 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
397 as_fn_exit 255
398   fi
399   # We don't want this to propagate to other subprocesses.
400           { _as_can_reexec=; unset _as_can_reexec;}
401 if test "x$CONFIG_SHELL" = x; then
402   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
403   emulate sh
404   NULLCMD=:
405   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
406   # is contrary to our usage.  Disable this feature.
407   alias -g '\${1+\"\$@\"}'='\"\$@\"'
408   setopt NO_GLOB_SUBST
409 else
410   case \`(set -o) 2>/dev/null\` in #(
411   *posix*) :
412     set -o posix ;; #(
413   *) :
414      ;;
415 esac
416 fi
417 "
418   as_required="as_fn_return () { (exit \$1); }
419 as_fn_success () { as_fn_return 0; }
420 as_fn_failure () { as_fn_return 1; }
421 as_fn_ret_success () { return 0; }
422 as_fn_ret_failure () { return 1; }
423
424 exitcode=0
425 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
426 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
427 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
428 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
429 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
430
431 else
432   exitcode=1; echo positional parameters were not saved.
433 fi
434 test x\$exitcode = x0 || exit 1
435 test -x / || exit 1"
436   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
437   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
438   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
439   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
440 test \$(( 1 + 1 )) = 2 || exit 1
441
442   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
443     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
444     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
445     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
446     PATH=/empty FPATH=/empty; export PATH FPATH
447     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
448       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
449   if (eval "$as_required") 2>/dev/null; then :
450   as_have_required=yes
451 else
452   as_have_required=no
453 fi
454   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
455
456 else
457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
458 as_found=false
459 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
460 do
461   IFS=$as_save_IFS
462   test -z "$as_dir" && as_dir=.
463   as_found=:
464   case $as_dir in #(
465          /*)
466            for as_base in sh bash ksh sh5; do
467              # Try only shells that exist, to save several forks.
468              as_shell=$as_dir/$as_base
469              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
470                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
471   CONFIG_SHELL=$as_shell as_have_required=yes
472                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
473   break 2
474 fi
475 fi
476            done;;
477        esac
478   as_found=false
479 done
480 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
481               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
482   CONFIG_SHELL=$SHELL as_have_required=yes
483 fi; }
484 IFS=$as_save_IFS
485
486
487       if test "x$CONFIG_SHELL" != x; then :
488   export CONFIG_SHELL
489              # We cannot yet assume a decent shell, so we have to provide a
490 # neutralization value for shells without unset; and this also
491 # works around shells that cannot unset nonexistent variables.
492 # Preserve -v and -x to the replacement shell.
493 BASH_ENV=/dev/null
494 ENV=/dev/null
495 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
496 case $- in # ((((
497   *v*x* | *x*v* ) as_opts=-vx ;;
498   *v* ) as_opts=-v ;;
499   *x* ) as_opts=-x ;;
500   * ) as_opts= ;;
501 esac
502 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
503 # Admittedly, this is quite paranoid, since all the known shells bail
504 # out after a failed `exec'.
505 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
506 exit 255
507 fi
508
509     if test x$as_have_required = xno; then :
510   $as_echo "$0: This script requires a shell more modern than all"
511   $as_echo "$0: the shells that I found on your system."
512   if test x${ZSH_VERSION+set} = xset ; then
513     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
514     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
515   else
516     $as_echo "$0: Please tell bug-autoconf@gnu.org and a suitable curl
517 $0: mailing list: https://curl.haxx.se/mail/ about your
518 $0: system, including any error possibly output before this
519 $0: message. Then install a modern shell, or manually run
520 $0: the script under such a shell if you do have one."
521   fi
522   exit 1
523 fi
524 fi
525 fi
526 SHELL=${CONFIG_SHELL-/bin/sh}
527 export SHELL
528 # Unset more variables known to interfere with behavior of common tools.
529 CLICOLOR_FORCE= GREP_OPTIONS=
530 unset CLICOLOR_FORCE GREP_OPTIONS
531
532 ## --------------------- ##
533 ## M4sh Shell Functions. ##
534 ## --------------------- ##
535 # as_fn_unset VAR
536 # ---------------
537 # Portably unset VAR.
538 as_fn_unset ()
539 {
540   { eval $1=; unset $1;}
541 }
542 as_unset=as_fn_unset
543
544 # as_fn_set_status STATUS
545 # -----------------------
546 # Set $? to STATUS, without forking.
547 as_fn_set_status ()
548 {
549   return $1
550 } # as_fn_set_status
551
552 # as_fn_exit STATUS
553 # -----------------
554 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
555 as_fn_exit ()
556 {
557   set +e
558   as_fn_set_status $1
559   exit $1
560 } # as_fn_exit
561
562 # as_fn_mkdir_p
563 # -------------
564 # Create "$as_dir" as a directory, including parents if necessary.
565 as_fn_mkdir_p ()
566 {
567
568   case $as_dir in #(
569   -*) as_dir=./$as_dir;;
570   esac
571   test -d "$as_dir" || eval $as_mkdir_p || {
572     as_dirs=
573     while :; do
574       case $as_dir in #(
575       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
576       *) as_qdir=$as_dir;;
577       esac
578       as_dirs="'$as_qdir' $as_dirs"
579       as_dir=`$as_dirname -- "$as_dir" ||
580 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
581          X"$as_dir" : 'X\(//\)[^/]' \| \
582          X"$as_dir" : 'X\(//\)$' \| \
583          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
584 $as_echo X"$as_dir" |
585     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
586             s//\1/
587             q
588           }
589           /^X\(\/\/\)[^/].*/{
590             s//\1/
591             q
592           }
593           /^X\(\/\/\)$/{
594             s//\1/
595             q
596           }
597           /^X\(\/\).*/{
598             s//\1/
599             q
600           }
601           s/.*/./; q'`
602       test -d "$as_dir" && break
603     done
604     test -z "$as_dirs" || eval "mkdir $as_dirs"
605   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
606
607
608 } # as_fn_mkdir_p
609
610 # as_fn_executable_p FILE
611 # -----------------------
612 # Test if FILE is an executable regular file.
613 as_fn_executable_p ()
614 {
615   test -f "$1" && test -x "$1"
616 } # as_fn_executable_p
617 # as_fn_append VAR VALUE
618 # ----------------------
619 # Append the text in VALUE to the end of the definition contained in VAR. Take
620 # advantage of any shell optimizations that allow amortized linear growth over
621 # repeated appends, instead of the typical quadratic growth present in naive
622 # implementations.
623 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
624   eval 'as_fn_append ()
625   {
626     eval $1+=\$2
627   }'
628 else
629   as_fn_append ()
630   {
631     eval $1=\$$1\$2
632   }
633 fi # as_fn_append
634
635 # as_fn_arith ARG...
636 # ------------------
637 # Perform arithmetic evaluation on the ARGs, and store the result in the
638 # global $as_val. Take advantage of shells that can avoid forks. The arguments
639 # must be portable across $(()) and expr.
640 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
641   eval 'as_fn_arith ()
642   {
643     as_val=$(( $* ))
644   }'
645 else
646   as_fn_arith ()
647   {
648     as_val=`expr "$@" || test $? -eq 1`
649   }
650 fi # as_fn_arith
651
652
653 # as_fn_error STATUS ERROR [LINENO LOG_FD]
654 # ----------------------------------------
655 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
656 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
657 # script with STATUS, using 1 if that was 0.
658 as_fn_error ()
659 {
660   as_status=$1; test $as_status -eq 0 && as_status=1
661   if test "$4"; then
662     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
663     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
664   fi
665   $as_echo "$as_me: error: $2" >&2
666   as_fn_exit $as_status
667 } # as_fn_error
668
669 if expr a : '\(a\)' >/dev/null 2>&1 &&
670    test "X`expr 00001 : '.*\(...\)'`" = X001; then
671   as_expr=expr
672 else
673   as_expr=false
674 fi
675
676 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
677   as_basename=basename
678 else
679   as_basename=false
680 fi
681
682 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
683   as_dirname=dirname
684 else
685   as_dirname=false
686 fi
687
688 as_me=`$as_basename -- "$0" ||
689 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
690          X"$0" : 'X\(//\)$' \| \
691          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
692 $as_echo X/"$0" |
693     sed '/^.*\/\([^/][^/]*\)\/*$/{
694             s//\1/
695             q
696           }
697           /^X\/\(\/\/\)$/{
698             s//\1/
699             q
700           }
701           /^X\/\(\/\).*/{
702             s//\1/
703             q
704           }
705           s/.*/./; q'`
706
707 # Avoid depending upon Character Ranges.
708 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
709 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
710 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
711 as_cr_digits='0123456789'
712 as_cr_alnum=$as_cr_Letters$as_cr_digits
713
714
715   as_lineno_1=$LINENO as_lineno_1a=$LINENO
716   as_lineno_2=$LINENO as_lineno_2a=$LINENO
717   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
718   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
719   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
720   sed -n '
721     p
722     /[$]LINENO/=
723   ' <$as_myself |
724     sed '
725       s/[$]LINENO.*/&-/
726       t lineno
727       b
728       :lineno
729       N
730       :loop
731       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
732       t loop
733       s/-\n.*//
734     ' >$as_me.lineno &&
735   chmod +x "$as_me.lineno" ||
736     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
737
738   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
739   # already done that, so ensure we don't try to do so again and fall
740   # in an infinite loop.  This has already happened in practice.
741   _as_can_reexec=no; export _as_can_reexec
742   # Don't try to exec as it changes $[0], causing all sort of problems
743   # (the dirname of $[0] is not the place where we might find the
744   # original and so on.  Autoconf is especially sensitive to this).
745   . "./$as_me.lineno"
746   # Exit status is that of the last command.
747   exit
748 }
749
750 ECHO_C= ECHO_N= ECHO_T=
751 case `echo -n x` in #(((((
752 -n*)
753   case `echo 'xy\c'` in
754   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
755   xy)  ECHO_C='\c';;
756   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
757        ECHO_T=' ';;
758   esac;;
759 *)
760   ECHO_N='-n';;
761 esac
762
763 rm -f conf$$ conf$$.exe conf$$.file
764 if test -d conf$$.dir; then
765   rm -f conf$$.dir/conf$$.file
766 else
767   rm -f conf$$.dir
768   mkdir conf$$.dir 2>/dev/null
769 fi
770 if (echo >conf$$.file) 2>/dev/null; then
771   if ln -s conf$$.file conf$$ 2>/dev/null; then
772     as_ln_s='ln -s'
773     # ... but there are two gotchas:
774     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
775     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
776     # In both cases, we have to default to `cp -pR'.
777     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
778       as_ln_s='cp -pR'
779   elif ln conf$$.file conf$$ 2>/dev/null; then
780     as_ln_s=ln
781   else
782     as_ln_s='cp -pR'
783   fi
784 else
785   as_ln_s='cp -pR'
786 fi
787 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
788 rmdir conf$$.dir 2>/dev/null
789
790 if mkdir -p . 2>/dev/null; then
791   as_mkdir_p='mkdir -p "$as_dir"'
792 else
793   test -d ./-p && rmdir ./-p
794   as_mkdir_p=false
795 fi
796
797 as_test_x='test -x'
798 as_executable_p=as_fn_executable_p
799
800 # Sed expression to map a string onto a valid CPP name.
801 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
802
803 # Sed expression to map a string onto a valid variable name.
804 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
805
806 SHELL=${CONFIG_SHELL-/bin/sh}
807
808
809 test -n "$DJDIR" || exec 7<&0 </dev/null
810 exec 6>&1
811
812 # Name of the host.
813 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
814 # so uname gets run too.
815 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
816
817 #
818 # Initializations.
819 #
820 ac_default_prefix=/usr/local
821 ac_clean_files=
822 ac_config_libobj_dir=.
823 LIBOBJS=
824 cross_compiling=no
825 subdirs=
826 MFLAGS=
827 MAKEFLAGS=
828
829 # Identity of this package.
830 PACKAGE_NAME='curl'
831 PACKAGE_TARNAME='curl'
832 PACKAGE_VERSION='-'
833 PACKAGE_STRING='curl -'
834 PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.haxx.se/mail/'
835 PACKAGE_URL=''
836
837 ac_unique_file="lib/urldata.h"
838 # Factoring default headers for most tests.
839 ac_includes_default="\
840 #include <stdio.h>
841 #ifdef HAVE_SYS_TYPES_H
842 # include <sys/types.h>
843 #endif
844 #ifdef HAVE_SYS_STAT_H
845 # include <sys/stat.h>
846 #endif
847 #ifdef STDC_HEADERS
848 # include <stdlib.h>
849 # include <stddef.h>
850 #else
851 # ifdef HAVE_STDLIB_H
852 #  include <stdlib.h>
853 # endif
854 #endif
855 #ifdef HAVE_STRING_H
856 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
857 #  include <memory.h>
858 # endif
859 # include <string.h>
860 #endif
861 #ifdef HAVE_STRINGS_H
862 # include <strings.h>
863 #endif
864 #ifdef HAVE_INTTYPES_H
865 # include <inttypes.h>
866 #endif
867 #ifdef HAVE_STDINT_H
868 # include <stdint.h>
869 #endif
870 #ifdef HAVE_UNISTD_H
871 # include <unistd.h>
872 #endif"
873
874 enable_option_checking=no
875 ac_subst_vars='am__EXEEXT_FALSE
876 am__EXEEXT_TRUE
877 LTLIBOBJS
878 LIBOBJS
879 SSL_BACKENDS
880 SUPPORT_PROTOCOLS
881 SUPPORT_FEATURES
882 ENABLE_STATIC
883 ENABLE_SHARED
884 CROSSCOMPILING_FALSE
885 CROSSCOMPILING_TRUE
886 BLANK_AT_MAKETIME
887 CURL_NETWORK_AND_TIME_LIBS
888 CURL_NETWORK_LIBS
889 LIBCURL_LIBS
890 CFLAG_CURL_SYMBOL_HIDING
891 DOING_CURL_SYMBOL_HIDING_FALSE
892 DOING_CURL_SYMBOL_HIDING_TRUE
893 USE_UNIX_SOCKETS
894 BUILD_LIBHOSTNAME_FALSE
895 BUILD_LIBHOSTNAME_TRUE
896 USE_EMBEDDED_ARES_FALSE
897 USE_EMBEDDED_ARES_TRUE
898 USE_ARES
899 subdirs
900 USE_MANUAL_FALSE
901 USE_MANUAL_TRUE
902 MANOPT
903 NROFF
904 PERL
905 IPV6_ENABLED
906 ZSH_FUNCTIONS_DIR
907 USE_NGHTTP2
908 IDN_ENABLED
909 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
910 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
911 CURL_LT_SHLIB_VERSIONED_FLAVOUR
912 USE_LIBRTMP
913 USE_LIBSSH
914 USE_LIBSSH2
915 LIBMETALINK_CPPFLAGS
916 LIBMETALINK_LDFLAGS
917 LIBMETALINK_LIBS
918 USE_LIBPSL_FALSE
919 USE_LIBPSL_TRUE
920 CURL_CA_BUNDLE
921 CURL_WITH_MULTI_SSL
922 SSL_ENABLED
923 USE_AXTLS
924 NSS_LIBS
925 USE_NSS
926 USE_CYASSL
927 USE_MBEDTLS
928 USE_POLARSSL
929 HAVE_GNUTLS_SRP
930 USE_GNUTLS_NETTLE
931 USE_GNUTLS
932 HAVE_OPENSSL_SRP
933 RANDOM_FILE
934 SSL_LIBS
935 USE_DARWINSSL
936 USE_WINDOWS_SSPI
937 USE_SCHANNEL
938 DEFAULT_SSL_BACKEND
939 BUILD_STUB_GSS_FALSE
940 BUILD_STUB_GSS_TRUE
941 USE_OPENLDAP
942 HAVE_BROTLI
943 ZLIB_LIBS
944 HAVE_LIBZ_FALSE
945 HAVE_LIBZ_TRUE
946 HAVE_LIBZ
947 PKGCONFIG
948 CURL_DISABLE_GOPHER
949 CURL_DISABLE_SMTP
950 CURL_DISABLE_SMB
951 CURL_DISABLE_IMAP
952 CURL_DISABLE_POP3
953 CURL_DISABLE_TFTP
954 CURL_DISABLE_TELNET
955 CURL_DISABLE_DICT
956 CURL_DISABLE_PROXY
957 HAVE_LDAP_SSL
958 CURL_DISABLE_LDAPS
959 CURL_DISABLE_LDAP
960 CURL_DISABLE_FILE
961 CURL_DISABLE_FTP
962 CURL_DISABLE_RTSP
963 CURL_DISABLE_HTTP
964 DOING_NATIVE_WINDOWS_FALSE
965 DOING_NATIVE_WINDOWS_TRUE
966 BUILD_UNITTESTS_FALSE
967 BUILD_UNITTESTS_TRUE
968 CURLDEBUG_FALSE
969 CURLDEBUG_TRUE
970 USE_EXPLICIT_LIB_DEPS_FALSE
971 USE_EXPLICIT_LIB_DEPS_TRUE
972 REQUIRE_LIB_DEPS
973 CPPFLAG_CURL_STATICLIB
974 USE_CPPFLAG_CURL_STATICLIB_FALSE
975 USE_CPPFLAG_CURL_STATICLIB_TRUE
976 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
977 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
978 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
979 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
980 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
981 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
982 LT_SYS_LIBRARY_PATH
983 OTOOL64
984 OTOOL
985 LIPO
986 NMEDIT
987 DSYMUTIL
988 MANIFEST_TOOL
989 RANLIB
990 ac_ct_AR
991 LN_S
992 NM
993 ac_ct_DUMPBIN
994 DUMPBIN
995 LD
996 FGREP
997 LIBTOOL
998 OBJDUMP
999 DLLTOOL
1000 AS
1001 host_os
1002 host_vendor
1003 host_cpu
1004 host
1005 build_os
1006 build_vendor
1007 build_cpu
1008 build
1009 PKGADD_VENDOR
1010 PKGADD_NAME
1011 PKGADD_PKG
1012 VERSIONNUM
1013 CURLVERSION
1014 am__fastdepCC_FALSE
1015 am__fastdepCC_TRUE
1016 CCDEPMODE
1017 am__nodep
1018 AMDEPBACKSLASH
1019 AMDEP_FALSE
1020 AMDEP_TRUE
1021 am__quote
1022 am__include
1023 DEPDIR
1024 am__untar
1025 am__tar
1026 AMTAR
1027 am__leading_dot
1028 SET_MAKE
1029 AWK
1030 mkdir_p
1031 MKDIR_P
1032 INSTALL_STRIP_PROGRAM
1033 STRIP
1034 install_sh
1035 MAKEINFO
1036 AUTOHEADER
1037 AUTOMAKE
1038 AUTOCONF
1039 ACLOCAL
1040 VERSION
1041 PACKAGE
1042 CYGPATH_W
1043 am__isrc
1044 CODE_COVERAGE_RULES
1045 CODE_COVERAGE_LDFLAGS
1046 CODE_COVERAGE_LIBS
1047 CODE_COVERAGE_CXXFLAGS
1048 CODE_COVERAGE_CFLAGS
1049 CODE_COVERAGE_CPPFLAGS
1050 GENHTML
1051 LCOV
1052 GCOV
1053 CODE_COVERAGE_ENABLED
1054 CODE_COVERAGE_ENABLED_FALSE
1055 CODE_COVERAGE_ENABLED_TRUE
1056 CPP
1057 OBJEXT
1058 EXEEXT
1059 ac_ct_CC
1060 CPPFLAGS
1061 LDFLAGS
1062 CFLAGS
1063 CC
1064 INSTALL_DATA
1065 INSTALL_SCRIPT
1066 INSTALL_PROGRAM
1067 libext
1068 AR
1069 EGREP
1070 GREP
1071 SED
1072 CURL_CFLAG_EXTRAS
1073 CONFIGURE_OPTIONS
1074 AM_BACKSLASH
1075 AM_DEFAULT_VERBOSITY
1076 AM_DEFAULT_V
1077 AM_V
1078 MAINT
1079 MAINTAINER_MODE_FALSE
1080 MAINTAINER_MODE_TRUE
1081 target_alias
1082 host_alias
1083 build_alias
1084 LIBS
1085 ECHO_T
1086 ECHO_N
1087 ECHO_C
1088 DEFS
1089 mandir
1090 localedir
1091 libdir
1092 psdir
1093 pdfdir
1094 dvidir
1095 htmldir
1096 infodir
1097 docdir
1098 oldincludedir
1099 includedir
1100 runstatedir
1101 localstatedir
1102 sharedstatedir
1103 sysconfdir
1104 datadir
1105 datarootdir
1106 libexecdir
1107 sbindir
1108 bindir
1109 program_transform_name
1110 prefix
1111 exec_prefix
1112 PACKAGE_URL
1113 PACKAGE_BUGREPORT
1114 PACKAGE_STRING
1115 PACKAGE_VERSION
1116 PACKAGE_TARNAME
1117 PACKAGE_NAME
1118 SHELL
1119 PATH_SEPARATOR'
1120 ac_subst_files=''
1121 ac_user_opts='
1122 enable_option_checking
1123 enable_maintainer_mode
1124 enable_silent_rules
1125 enable_debug
1126 enable_optimize
1127 enable_warnings
1128 enable_werror
1129 enable_curldebug
1130 enable_symbol_hiding
1131 enable_hidden_symbols
1132 enable_ares
1133 enable_rt
1134 with_gcov
1135 enable_code_coverage
1136 enable_dependency_tracking
1137 enable_largefile
1138 enable_shared
1139 enable_static
1140 with_pic
1141 enable_fast_install
1142 with_aix_soname
1143 with_gnu_ld
1144 with_sysroot
1145 enable_libtool_lock
1146 enable_http
1147 enable_ftp
1148 enable_file
1149 enable_ldap
1150 enable_ldaps
1151 enable_rtsp
1152 enable_proxy
1153 enable_dict
1154 enable_telnet
1155 enable_tftp
1156 enable_pop3
1157 enable_imap
1158 enable_smb
1159 enable_smtp
1160 enable_gopher
1161 enable_manual
1162 enable_libcurl_option
1163 enable_libgcc
1164 with_zlib
1165 with_brotli
1166 with_ldap_lib
1167 with_lber_lib
1168 enable_ipv6
1169 with_gssapi_includes
1170 with_gssapi_libs
1171 with_gssapi
1172 with_default_ssl_backend
1173 with_winssl
1174 with_darwinssl
1175 with_ssl
1176 with_egd_socket
1177 with_random
1178 with_gnutls
1179 with_polarssl
1180 with_mbedtls
1181 with_cyassl
1182 with_nss
1183 with_axtls
1184 with_ca_bundle
1185 with_ca_path
1186 with_ca_fallback
1187 with_libpsl
1188 with_libmetalink
1189 with_libssh2
1190 with_libssh
1191 with_librtmp
1192 enable_versioned_symbols
1193 with_winidn
1194 with_libidn2
1195 with_nghttp2
1196 with_zsh_functions_dir
1197 enable_threaded_resolver
1198 enable_pthreads
1199 enable_verbose
1200 enable_sspi
1201 enable_crypto_auth
1202 enable_ntlm_wb
1203 enable_tls_srp
1204 enable_unix_sockets
1205 enable_cookies
1206 '
1207       ac_precious_vars='build_alias
1208 host_alias
1209 target_alias
1210 CC
1211 CFLAGS
1212 LDFLAGS
1213 LIBS
1214 CPPFLAGS
1215 CPP
1216 LT_SYS_LIBRARY_PATH'
1217 ac_subdirs_all='ares'
1218
1219 # Initialize some variables set by options.
1220 ac_init_help=
1221 ac_init_version=false
1222 ac_unrecognized_opts=
1223 ac_unrecognized_sep=
1224 # The variables have the same names as the options, with
1225 # dashes changed to underlines.
1226 cache_file=/dev/null
1227 exec_prefix=NONE
1228 no_create=
1229 no_recursion=
1230 prefix=NONE
1231 program_prefix=NONE
1232 program_suffix=NONE
1233 program_transform_name=s,x,x,
1234 silent=
1235 site=
1236 srcdir=
1237 verbose=
1238 x_includes=NONE
1239 x_libraries=NONE
1240
1241 # Installation directory options.
1242 # These are left unexpanded so users can "make install exec_prefix=/foo"
1243 # and all the variables that are supposed to be based on exec_prefix
1244 # by default will actually change.
1245 # Use braces instead of parens because sh, perl, etc. also accept them.
1246 # (The list follows the same order as the GNU Coding Standards.)
1247 bindir='${exec_prefix}/bin'
1248 sbindir='${exec_prefix}/sbin'
1249 libexecdir='${exec_prefix}/libexec'
1250 datarootdir='${prefix}/share'
1251 datadir='${datarootdir}'
1252 sysconfdir='${prefix}/etc'
1253 sharedstatedir='${prefix}/com'
1254 localstatedir='${prefix}/var'
1255 runstatedir='${localstatedir}/run'
1256 includedir='${prefix}/include'
1257 oldincludedir='/usr/include'
1258 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1259 infodir='${datarootdir}/info'
1260 htmldir='${docdir}'
1261 dvidir='${docdir}'
1262 pdfdir='${docdir}'
1263 psdir='${docdir}'
1264 libdir='${exec_prefix}/lib'
1265 localedir='${datarootdir}/locale'
1266 mandir='${datarootdir}/man'
1267
1268 ac_prev=
1269 ac_dashdash=
1270 for ac_option
1271 do
1272   # If the previous option needs an argument, assign it.
1273   if test -n "$ac_prev"; then
1274     eval $ac_prev=\$ac_option
1275     ac_prev=
1276     continue
1277   fi
1278
1279   case $ac_option in
1280   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1281   *=)   ac_optarg= ;;
1282   *)    ac_optarg=yes ;;
1283   esac
1284
1285   # Accept the important Cygnus configure options, so we can diagnose typos.
1286
1287   case $ac_dashdash$ac_option in
1288   --)
1289     ac_dashdash=yes ;;
1290
1291   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1292     ac_prev=bindir ;;
1293   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1294     bindir=$ac_optarg ;;
1295
1296   -build | --build | --buil | --bui | --bu)
1297     ac_prev=build_alias ;;
1298   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1299     build_alias=$ac_optarg ;;
1300
1301   -cache-file | --cache-file | --cache-fil | --cache-fi \
1302   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1303     ac_prev=cache_file ;;
1304   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1305   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1306     cache_file=$ac_optarg ;;
1307
1308   --config-cache | -C)
1309     cache_file=config.cache ;;
1310
1311   -datadir | --datadir | --datadi | --datad)
1312     ac_prev=datadir ;;
1313   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1314     datadir=$ac_optarg ;;
1315
1316   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1317   | --dataroo | --dataro | --datar)
1318     ac_prev=datarootdir ;;
1319   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1320   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1321     datarootdir=$ac_optarg ;;
1322
1323   -disable-* | --disable-*)
1324     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1325     # Reject names that are not valid shell variable names.
1326     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1327       as_fn_error $? "invalid feature name: $ac_useropt"
1328     ac_useropt_orig=$ac_useropt
1329     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1330     case $ac_user_opts in
1331       *"
1332 "enable_$ac_useropt"
1333 "*) ;;
1334       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1335          ac_unrecognized_sep=', ';;
1336     esac
1337     eval enable_$ac_useropt=no ;;
1338
1339   -docdir | --docdir | --docdi | --doc | --do)
1340     ac_prev=docdir ;;
1341   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1342     docdir=$ac_optarg ;;
1343
1344   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1345     ac_prev=dvidir ;;
1346   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1347     dvidir=$ac_optarg ;;
1348
1349   -enable-* | --enable-*)
1350     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1351     # Reject names that are not valid shell variable names.
1352     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1353       as_fn_error $? "invalid feature name: $ac_useropt"
1354     ac_useropt_orig=$ac_useropt
1355     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1356     case $ac_user_opts in
1357       *"
1358 "enable_$ac_useropt"
1359 "*) ;;
1360       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1361          ac_unrecognized_sep=', ';;
1362     esac
1363     eval enable_$ac_useropt=\$ac_optarg ;;
1364
1365   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1366   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1367   | --exec | --exe | --ex)
1368     ac_prev=exec_prefix ;;
1369   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1370   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1371   | --exec=* | --exe=* | --ex=*)
1372     exec_prefix=$ac_optarg ;;
1373
1374   -gas | --gas | --ga | --g)
1375     # Obsolete; use --with-gas.
1376     with_gas=yes ;;
1377
1378   -help | --help | --hel | --he | -h)
1379     ac_init_help=long ;;
1380   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1381     ac_init_help=recursive ;;
1382   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1383     ac_init_help=short ;;
1384
1385   -host | --host | --hos | --ho)
1386     ac_prev=host_alias ;;
1387   -host=* | --host=* | --hos=* | --ho=*)
1388     host_alias=$ac_optarg ;;
1389
1390   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1391     ac_prev=htmldir ;;
1392   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1393   | --ht=*)
1394     htmldir=$ac_optarg ;;
1395
1396   -includedir | --includedir | --includedi | --included | --include \
1397   | --includ | --inclu | --incl | --inc)
1398     ac_prev=includedir ;;
1399   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1400   | --includ=* | --inclu=* | --incl=* | --inc=*)
1401     includedir=$ac_optarg ;;
1402
1403   -infodir | --infodir | --infodi | --infod | --info | --inf)
1404     ac_prev=infodir ;;
1405   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1406     infodir=$ac_optarg ;;
1407
1408   -libdir | --libdir | --libdi | --libd)
1409     ac_prev=libdir ;;
1410   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1411     libdir=$ac_optarg ;;
1412
1413   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1414   | --libexe | --libex | --libe)
1415     ac_prev=libexecdir ;;
1416   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1417   | --libexe=* | --libex=* | --libe=*)
1418     libexecdir=$ac_optarg ;;
1419
1420   -localedir | --localedir | --localedi | --localed | --locale)
1421     ac_prev=localedir ;;
1422   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1423     localedir=$ac_optarg ;;
1424
1425   -localstatedir | --localstatedir | --localstatedi | --localstated \
1426   | --localstate | --localstat | --localsta | --localst | --locals)
1427     ac_prev=localstatedir ;;
1428   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1429   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1430     localstatedir=$ac_optarg ;;
1431
1432   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1433     ac_prev=mandir ;;
1434   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1435     mandir=$ac_optarg ;;
1436
1437   -nfp | --nfp | --nf)
1438     # Obsolete; use --without-fp.
1439     with_fp=no ;;
1440
1441   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1442   | --no-cr | --no-c | -n)
1443     no_create=yes ;;
1444
1445   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1446   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1447     no_recursion=yes ;;
1448
1449   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1450   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1451   | --oldin | --oldi | --old | --ol | --o)
1452     ac_prev=oldincludedir ;;
1453   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1454   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1455   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1456     oldincludedir=$ac_optarg ;;
1457
1458   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1459     ac_prev=prefix ;;
1460   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1461     prefix=$ac_optarg ;;
1462
1463   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1464   | --program-pre | --program-pr | --program-p)
1465     ac_prev=program_prefix ;;
1466   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1467   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1468     program_prefix=$ac_optarg ;;
1469
1470   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1471   | --program-suf | --program-su | --program-s)
1472     ac_prev=program_suffix ;;
1473   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1474   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1475     program_suffix=$ac_optarg ;;
1476
1477   -program-transform-name | --program-transform-name \
1478   | --program-transform-nam | --program-transform-na \
1479   | --program-transform-n | --program-transform- \
1480   | --program-transform | --program-transfor \
1481   | --program-transfo | --program-transf \
1482   | --program-trans | --program-tran \
1483   | --progr-tra | --program-tr | --program-t)
1484     ac_prev=program_transform_name ;;
1485   -program-transform-name=* | --program-transform-name=* \
1486   | --program-transform-nam=* | --program-transform-na=* \
1487   | --program-transform-n=* | --program-transform-=* \
1488   | --program-transform=* | --program-transfor=* \
1489   | --program-transfo=* | --program-transf=* \
1490   | --program-trans=* | --program-tran=* \
1491   | --progr-tra=* | --program-tr=* | --program-t=*)
1492     program_transform_name=$ac_optarg ;;
1493
1494   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1495     ac_prev=pdfdir ;;
1496   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1497     pdfdir=$ac_optarg ;;
1498
1499   -psdir | --psdir | --psdi | --psd | --ps)
1500     ac_prev=psdir ;;
1501   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1502     psdir=$ac_optarg ;;
1503
1504   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1505   | -silent | --silent | --silen | --sile | --sil)
1506     silent=yes ;;
1507
1508   -runstatedir | --runstatedir | --runstatedi | --runstated \
1509   | --runstate | --runstat | --runsta | --runst | --runs \
1510   | --run | --ru | --r)
1511     ac_prev=runstatedir ;;
1512   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1513   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1514   | --run=* | --ru=* | --r=*)
1515     runstatedir=$ac_optarg ;;
1516
1517   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1518     ac_prev=sbindir ;;
1519   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1520   | --sbi=* | --sb=*)
1521     sbindir=$ac_optarg ;;
1522
1523   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1524   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1525   | --sharedst | --shareds | --shared | --share | --shar \
1526   | --sha | --sh)
1527     ac_prev=sharedstatedir ;;
1528   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1529   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1530   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1531   | --sha=* | --sh=*)
1532     sharedstatedir=$ac_optarg ;;
1533
1534   -site | --site | --sit)
1535     ac_prev=site ;;
1536   -site=* | --site=* | --sit=*)
1537     site=$ac_optarg ;;
1538
1539   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1540     ac_prev=srcdir ;;
1541   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1542     srcdir=$ac_optarg ;;
1543
1544   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1545   | --syscon | --sysco | --sysc | --sys | --sy)
1546     ac_prev=sysconfdir ;;
1547   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1548   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1549     sysconfdir=$ac_optarg ;;
1550
1551   -target | --target | --targe | --targ | --tar | --ta | --t)
1552     ac_prev=target_alias ;;
1553   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1554     target_alias=$ac_optarg ;;
1555
1556   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1557     verbose=yes ;;
1558
1559   -version | --version | --versio | --versi | --vers | -V)
1560     ac_init_version=: ;;
1561
1562   -with-* | --with-*)
1563     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1564     # Reject names that are not valid shell variable names.
1565     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1566       as_fn_error $? "invalid package name: $ac_useropt"
1567     ac_useropt_orig=$ac_useropt
1568     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1569     case $ac_user_opts in
1570       *"
1571 "with_$ac_useropt"
1572 "*) ;;
1573       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1574          ac_unrecognized_sep=', ';;
1575     esac
1576     eval with_$ac_useropt=\$ac_optarg ;;
1577
1578   -without-* | --without-*)
1579     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1580     # Reject names that are not valid shell variable names.
1581     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1582       as_fn_error $? "invalid package name: $ac_useropt"
1583     ac_useropt_orig=$ac_useropt
1584     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1585     case $ac_user_opts in
1586       *"
1587 "with_$ac_useropt"
1588 "*) ;;
1589       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1590          ac_unrecognized_sep=', ';;
1591     esac
1592     eval with_$ac_useropt=no ;;
1593
1594   --x)
1595     # Obsolete; use --with-x.
1596     with_x=yes ;;
1597
1598   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1599   | --x-incl | --x-inc | --x-in | --x-i)
1600     ac_prev=x_includes ;;
1601   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1602   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1603     x_includes=$ac_optarg ;;
1604
1605   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1606   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1607     ac_prev=x_libraries ;;
1608   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1609   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1610     x_libraries=$ac_optarg ;;
1611
1612   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1613 Try \`$0 --help' for more information"
1614     ;;
1615
1616   *=*)
1617     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1618     # Reject names that are not valid shell variable names.
1619     case $ac_envvar in #(
1620       '' | [0-9]* | *[!_$as_cr_alnum]* )
1621       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1622     esac
1623     eval $ac_envvar=\$ac_optarg
1624     export $ac_envvar ;;
1625
1626   *)
1627     # FIXME: should be removed in autoconf 3.0.
1628     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1629     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1630       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1631     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1632     ;;
1633
1634   esac
1635 done
1636
1637 if test -n "$ac_prev"; then
1638   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1639   as_fn_error $? "missing argument to $ac_option"
1640 fi
1641
1642 if test -n "$ac_unrecognized_opts"; then
1643   case $enable_option_checking in
1644     no) ;;
1645     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1646     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1647   esac
1648 fi
1649
1650 # Check all directory arguments for consistency.
1651 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1652                 datadir sysconfdir sharedstatedir localstatedir includedir \
1653                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1654                 libdir localedir mandir runstatedir
1655 do
1656   eval ac_val=\$$ac_var
1657   # Remove trailing slashes.
1658   case $ac_val in
1659     */ )
1660       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1661       eval $ac_var=\$ac_val;;
1662   esac
1663   # Be sure to have absolute directory names.
1664   case $ac_val in
1665     [\\/$]* | ?:[\\/]* )  continue;;
1666     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1667   esac
1668   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1669 done
1670
1671 # There might be people who depend on the old broken behavior: `$host'
1672 # used to hold the argument of --host etc.
1673 # FIXME: To remove some day.
1674 build=$build_alias
1675 host=$host_alias
1676 target=$target_alias
1677
1678 # FIXME: To remove some day.
1679 if test "x$host_alias" != x; then
1680   if test "x$build_alias" = x; then
1681     cross_compiling=maybe
1682   elif test "x$build_alias" != "x$host_alias"; then
1683     cross_compiling=yes
1684   fi
1685 fi
1686
1687 ac_tool_prefix=
1688 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1689
1690 test "$silent" = yes && exec 6>/dev/null
1691
1692
1693 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1694 ac_ls_di=`ls -di .` &&
1695 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1696   as_fn_error $? "working directory cannot be determined"
1697 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1698   as_fn_error $? "pwd does not report name of working directory"
1699
1700
1701 # Find the source files, if location was not specified.
1702 if test -z "$srcdir"; then
1703   ac_srcdir_defaulted=yes
1704   # Try the directory containing this script, then the parent directory.
1705   ac_confdir=`$as_dirname -- "$as_myself" ||
1706 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1707          X"$as_myself" : 'X\(//\)[^/]' \| \
1708          X"$as_myself" : 'X\(//\)$' \| \
1709          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1710 $as_echo X"$as_myself" |
1711     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1712             s//\1/
1713             q
1714           }
1715           /^X\(\/\/\)[^/].*/{
1716             s//\1/
1717             q
1718           }
1719           /^X\(\/\/\)$/{
1720             s//\1/
1721             q
1722           }
1723           /^X\(\/\).*/{
1724             s//\1/
1725             q
1726           }
1727           s/.*/./; q'`
1728   srcdir=$ac_confdir
1729   if test ! -r "$srcdir/$ac_unique_file"; then
1730     srcdir=..
1731   fi
1732 else
1733   ac_srcdir_defaulted=no
1734 fi
1735 if test ! -r "$srcdir/$ac_unique_file"; then
1736   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1737   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1738 fi
1739 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1740 ac_abs_confdir=`(
1741         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1742         pwd)`
1743 # When building in place, set srcdir=.
1744 if test "$ac_abs_confdir" = "$ac_pwd"; then
1745   srcdir=.
1746 fi
1747 # Remove unnecessary trailing slashes from srcdir.
1748 # Double slashes in file names in object file debugging info
1749 # mess up M-x gdb in Emacs.
1750 case $srcdir in
1751 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1752 esac
1753 for ac_var in $ac_precious_vars; do
1754   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1755   eval ac_env_${ac_var}_value=\$${ac_var}
1756   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1757   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1758 done
1759
1760 #
1761 # Report the --help message.
1762 #
1763 if test "$ac_init_help" = "long"; then
1764   # Omit some internal or obsolete options to make the list less imposing.
1765   # This message is too long to be a string in the A/UX 3.1 sh.
1766   cat <<_ACEOF
1767 \`configure' configures curl - to adapt to many kinds of systems.
1768
1769 Usage: $0 [OPTION]... [VAR=VALUE]...
1770
1771 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1772 VAR=VALUE.  See below for descriptions of some of the useful variables.
1773
1774 Defaults for the options are specified in brackets.
1775
1776 Configuration:
1777   -h, --help              display this help and exit
1778       --help=short        display options specific to this package
1779       --help=recursive    display the short help of all the included packages
1780   -V, --version           display version information and exit
1781   -q, --quiet, --silent   do not print \`checking ...' messages
1782       --cache-file=FILE   cache test results in FILE [disabled]
1783   -C, --config-cache      alias for \`--cache-file=config.cache'
1784   -n, --no-create         do not create output files
1785       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1786
1787 Installation directories:
1788   --prefix=PREFIX         install architecture-independent files in PREFIX
1789                           [$ac_default_prefix]
1790   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1791                           [PREFIX]
1792
1793 By default, \`make install' will install all the files in
1794 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1795 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1796 for instance \`--prefix=\$HOME'.
1797
1798 For better control, use the options below.
1799
1800 Fine tuning of the installation directories:
1801   --bindir=DIR            user executables [EPREFIX/bin]
1802   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1803   --libexecdir=DIR        program executables [EPREFIX/libexec]
1804   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1805   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1806   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1807   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1808   --libdir=DIR            object code libraries [EPREFIX/lib]
1809   --includedir=DIR        C header files [PREFIX/include]
1810   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1811   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1812   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1813   --infodir=DIR           info documentation [DATAROOTDIR/info]
1814   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1815   --mandir=DIR            man documentation [DATAROOTDIR/man]
1816   --docdir=DIR            documentation root [DATAROOTDIR/doc/curl]
1817   --htmldir=DIR           html documentation [DOCDIR]
1818   --dvidir=DIR            dvi documentation [DOCDIR]
1819   --pdfdir=DIR            pdf documentation [DOCDIR]
1820   --psdir=DIR             ps documentation [DOCDIR]
1821 _ACEOF
1822
1823   cat <<\_ACEOF
1824
1825 Program names:
1826   --program-prefix=PREFIX            prepend PREFIX to installed program names
1827   --program-suffix=SUFFIX            append SUFFIX to installed program names
1828   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1829
1830 System types:
1831   --build=BUILD     configure for building on BUILD [guessed]
1832   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1833 _ACEOF
1834 fi
1835
1836 if test -n "$ac_init_help"; then
1837   case $ac_init_help in
1838      short | recursive ) echo "Configuration of curl -:";;
1839    esac
1840   cat <<\_ACEOF
1841
1842 Optional Features:
1843   --disable-option-checking  ignore unrecognized --enable/--with options
1844   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1845   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1846   --enable-maintainer-mode
1847                           enable make rules and dependencies not useful (and
1848                           sometimes confusing) to the casual installer
1849   --enable-silent-rules   less verbose build output (undo: "make V=1")
1850   --disable-silent-rules  verbose build output (undo: "make V=0")
1851   --enable-debug          Enable debug build options
1852   --disable-debug         Disable debug build options
1853   --enable-optimize       Enable compiler optimizations
1854   --disable-optimize      Disable compiler optimizations
1855   --enable-warnings       Enable strict compiler warnings
1856   --disable-warnings      Disable strict compiler warnings
1857   --enable-werror         Enable compiler warnings as errors
1858   --disable-werror        Disable compiler warnings as errors
1859   --enable-curldebug      Enable curl debug memory tracking
1860   --disable-curldebug     Disable curl debug memory tracking
1861   --enable-symbol-hiding  Enable hiding of library internal symbols
1862   --disable-symbol-hiding Disable hiding of library internal symbols
1863   --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1864   --disable-hidden-symbols
1865                           To be deprecated, use --disable-symbol-hiding
1866   --enable-ares[=PATH]    Enable c-ares for DNS lookups
1867   --disable-ares          Disable c-ares for DNS lookups
1868   --disable-rt            disable dependency on -lrt
1869   --enable-code-coverage  Whether to enable code coverage support
1870   --enable-dependency-tracking
1871                           do not reject slow dependency extractors
1872   --disable-dependency-tracking
1873                           speeds up one-time build
1874   --disable-largefile     omit support for large files
1875   --enable-shared[=PKGS]  build shared libraries [default=yes]
1876   --enable-static[=PKGS]  build static libraries [default=yes]
1877   --enable-fast-install[=PKGS]
1878                           optimize for fast installation [default=yes]
1879   --disable-libtool-lock  avoid locking (might break parallel builds)
1880   --enable-http           Enable HTTP support
1881   --disable-http          Disable HTTP support
1882   --enable-ftp            Enable FTP support
1883   --disable-ftp           Disable FTP support
1884   --enable-file           Enable FILE support
1885   --disable-file          Disable FILE support
1886   --enable-ldap           Enable LDAP support
1887   --disable-ldap          Disable LDAP support
1888   --enable-ldaps          Enable LDAPS support
1889   --disable-ldaps         Disable LDAPS support
1890   --enable-rtsp           Enable RTSP support
1891   --disable-rtsp          Disable RTSP support
1892   --enable-proxy          Enable proxy support
1893   --disable-proxy         Disable proxy support
1894   --enable-dict           Enable DICT support
1895   --disable-dict          Disable DICT support
1896   --enable-telnet         Enable TELNET support
1897   --disable-telnet        Disable TELNET support
1898   --enable-tftp           Enable TFTP support
1899   --disable-tftp          Disable TFTP support
1900   --enable-pop3           Enable POP3 support
1901   --disable-pop3          Disable POP3 support
1902   --enable-imap           Enable IMAP support
1903   --disable-imap          Disable IMAP support
1904   --enable-smb            Enable SMB/CIFS support
1905   --disable-smb           Disable SMB/CIFS support
1906   --enable-smtp           Enable SMTP support
1907   --disable-smtp          Disable SMTP support
1908   --enable-gopher         Enable Gopher support
1909   --disable-gopher        Disable Gopher support
1910   --enable-manual         Enable built-in manual
1911   --disable-manual        Disable built-in manual
1912   --enable-libcurl-option Enable --libcurl C code generation support
1913   --disable-libcurl-option
1914                           Disable --libcurl C code generation support
1915   --enable-libgcc         use libgcc when linking
1916   --enable-ipv6           Enable IPv6 (with IPv4) support
1917   --disable-ipv6          Disable IPv6 support
1918   --enable-versioned-symbols
1919                           Enable versioned symbols in shared library
1920   --disable-versioned-symbols
1921                           Disable versioned symbols in shared library
1922   --enable-threaded-resolver
1923                           Enable threaded resolver
1924   --disable-threaded-resolver
1925                           Disable threaded resolver
1926   --enable-pthreads       Enable POSIX threads (default for threaded resolver)
1927   --disable-pthreads      Disable POSIX threads
1928   --enable-verbose        Enable verbose strings
1929   --disable-verbose       Disable verbose strings
1930   --enable-sspi           Enable SSPI
1931   --disable-sspi          Disable SSPI
1932   --enable-crypto-auth    Enable cryptographic authentication
1933   --disable-crypto-auth   Disable cryptographic authentication
1934   --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1935                           helper, where FILE is ntlm_auth's absolute filename
1936                           (default: /usr/bin/ntlm_auth)
1937   --disable-ntlm-wb       Disable NTLM delegation to winbind's ntlm_auth
1938                           helper
1939   --enable-tls-srp        Enable TLS-SRP authentication
1940   --disable-tls-srp       Disable TLS-SRP authentication
1941   --enable-unix-sockets   Enable Unix domain sockets
1942   --disable-unix-sockets  Disable Unix domain sockets
1943   --enable-cookies        Enable cookies support
1944   --disable-cookies       Disable cookies support
1945
1946 Optional Packages:
1947   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1948   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1949   --with-gcov=GCOV        use given GCOV for coverage (GCOV=gcov).
1950   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1951                           both]
1952   --with-aix-soname=aix|svr4|both
1953                           shared library versioning (aka "SONAME") variant to
1954                           provide on AIX, [default=aix].
1955   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1956   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1957                           compiler's sysroot if not specified).
1958   --with-zlib=PATH        search for zlib in PATH
1959   --without-zlib          disable use of zlib
1960   --with-brotli=PATH      Where to look for brotli, PATH points to the BROTLI
1961                           installation; when possible, set the PKG_CONFIG_PATH
1962                           environment variable instead of using this option
1963   --without-brotli        disable BROTLI
1964   --with-ldap-lib=libname Specify name of ldap lib file
1965   --with-lber-lib=libname Specify name of lber lib file
1966   --with-gssapi-includes=DIR
1967                           Specify location of GSS-API headers
1968   --with-gssapi-libs=DIR  Specify location of GSS-API libs
1969   --with-gssapi=DIR       Where to look for GSS-API
1970   --with-default-ssl-backend=NAME
1971                           Use NAME as default SSL backend
1972   --without-default-ssl-backend
1973                           Use implicit default SSL backend
1974   --with-winssl           enable Windows native SSL/TLS
1975   --without-winssl        disable Windows native SSL/TLS
1976   --with-darwinssl        enable Apple OS native SSL/TLS
1977   --without-darwinssl     disable Apple OS native SSL/TLS
1978   --with-ssl=PATH         Where to look for OpenSSL, PATH points to the SSL
1979                           installation (default: /usr/local/ssl); when
1980                           possible, set the PKG_CONFIG_PATH environment
1981                           variable instead of using this option
1982   --without-ssl           disable OpenSSL
1983   --with-egd-socket=FILE  Entropy Gathering Daemon socket pathname
1984   --with-random=FILE      read randomness from FILE (default=/dev/urandom)
1985   --with-gnutls=PATH      where to look for GnuTLS, PATH points to the
1986                           installation root
1987   --without-gnutls        disable GnuTLS detection
1988   --with-polarssl=PATH    where to look for PolarSSL, PATH points to the
1989                           installation root
1990   --without-polarssl      disable PolarSSL detection
1991   --with-mbedtls=PATH     where to look for mbedTLS, PATH points to the
1992                           installation root
1993   --without-mbedtls       disable mbedTLS detection
1994   --with-cyassl=PATH      where to look for CyaSSL, PATH points to the
1995                           installation root (default: system lib default)
1996   --without-cyassl        disable CyaSSL detection
1997   --with-nss=PATH         where to look for NSS, PATH points to the
1998                           installation root
1999   --without-nss           disable NSS detection
2000   --with-axtls=PATH       Where to look for axTLS, PATH points to the axTLS
2001                           installation prefix (default: /usr/local). Ignored
2002                           if another SSL engine is selected.
2003   --without-axtls         disable axTLS
2004   --with-ca-bundle=FILE   Path to a file containing CA certificates (example:
2005                           /etc/ca-bundle.crt)
2006   --without-ca-bundle     Don't use a default CA bundle
2007   --with-ca-path=DIRECTORY
2008                           Path to a directory containing CA certificates
2009                           stored individually, with their filenames in a hash
2010                           format. This option can be used with OpenSSL, GnuTLS
2011                           and PolarSSL backends. Refer to OpenSSL c_rehash for
2012                           details. (example: /etc/certificates)
2013   --without-ca-path       Don't use a default CA path
2014   --with-ca-fallback      Use the built in CA store of the SSL library
2015   --without-ca-fallback   Don't use the built in CA store of the SSL library
2016   --without-libpsl        disable support for libpsl cookie checking
2017   --with-libmetalink=PATH where to look for libmetalink, PATH points to the
2018                           installation root
2019   --without-libmetalink   disable libmetalink detection
2020   --with-libssh2=PATH     Where to look for libssh2, PATH points to the
2021                           LIBSSH2 installation; when possible, set the
2022                           PKG_CONFIG_PATH environment variable instead of
2023                           using this option
2024   --with-libssh2          enable LIBSSH2
2025   --with-libssh=PATH      Where to look for libssh, PATH points to the LIBSSH
2026                           installation; when possible, set the PKG_CONFIG_PATH
2027                           environment variable instead of using this option
2028   --with-libssh           enable LIBSSH
2029   --with-librtmp=PATH     Where to look for librtmp, PATH points to the
2030                           LIBRTMP installation; when possible, set the
2031                           PKG_CONFIG_PATH environment variable instead of
2032                           using this option
2033   --without-librtmp       disable LIBRTMP
2034   --with-winidn=PATH      enable Windows native IDN
2035   --without-winidn        disable Windows native IDN
2036   --with-libidn2=PATH     Enable libidn2 usage
2037   --without-libidn2       Disable libidn2 usage
2038   --with-nghttp2=PATH     Enable nghttp2 usage
2039   --without-nghttp2       Disable nghttp2 usage
2040   --with-zsh-functions-dir=PATH
2041                           Install zsh completions to PATH
2042   --without-zsh-functions-dir
2043                           Do not install zsh completions
2044
2045 Some influential environment variables:
2046   CC          C compiler command
2047   CFLAGS      C compiler flags
2048   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2049               nonstandard directory <lib dir>
2050   LIBS        libraries to pass to the linker, e.g. -l<library>
2051   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2052               you have headers in a nonstandard directory <include dir>
2053   CPP         C preprocessor
2054   LT_SYS_LIBRARY_PATH
2055               User-defined run-time library search path.
2056
2057 Use these variables to override the choices made by `configure' or to help
2058 it to find libraries and programs with nonstandard names/locations.
2059
2060 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
2061 _ACEOF
2062 ac_status=$?
2063 fi
2064
2065 if test "$ac_init_help" = "recursive"; then
2066   # If there are subdirs, report their specific --help.
2067   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2068     test -d "$ac_dir" ||
2069       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2070       continue
2071     ac_builddir=.
2072
2073 case "$ac_dir" in
2074 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2075 *)
2076   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2077   # A ".." for each directory in $ac_dir_suffix.
2078   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2079   case $ac_top_builddir_sub in
2080   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2081   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2082   esac ;;
2083 esac
2084 ac_abs_top_builddir=$ac_pwd
2085 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2086 # for backward compatibility:
2087 ac_top_builddir=$ac_top_build_prefix
2088
2089 case $srcdir in
2090   .)  # We are building in place.
2091     ac_srcdir=.
2092     ac_top_srcdir=$ac_top_builddir_sub
2093     ac_abs_top_srcdir=$ac_pwd ;;
2094   [\\/]* | ?:[\\/]* )  # Absolute name.
2095     ac_srcdir=$srcdir$ac_dir_suffix;
2096     ac_top_srcdir=$srcdir
2097     ac_abs_top_srcdir=$srcdir ;;
2098   *) # Relative name.
2099     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2100     ac_top_srcdir=$ac_top_build_prefix$srcdir
2101     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2102 esac
2103 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2104
2105     cd "$ac_dir" || { ac_status=$?; continue; }
2106     # Check for guested configure.
2107     if test -f "$ac_srcdir/configure.gnu"; then
2108       echo &&
2109       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2110     elif test -f "$ac_srcdir/configure"; then
2111       echo &&
2112       $SHELL "$ac_srcdir/configure" --help=recursive
2113     else
2114       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2115     fi || ac_status=$?
2116     cd "$ac_pwd" || { ac_status=$?; break; }
2117   done
2118 fi
2119
2120 test -n "$ac_init_help" && exit $ac_status
2121 if $ac_init_version; then
2122   cat <<\_ACEOF
2123 curl configure -
2124 generated by GNU Autoconf 2.69
2125
2126 Copyright (C) 2012 Free Software Foundation, Inc.
2127 This configure script is free software; the Free Software Foundation
2128 gives unlimited permission to copy, distribute and modify it.
2129
2130 Copyright (c) 1998 - 2017 Daniel Stenberg, <daniel@haxx.se>
2131 This configure script may be copied, distributed and modified under the
2132 terms of the curl license; see COPYING for more details
2133 _ACEOF
2134   exit
2135 fi
2136
2137 ## ------------------------ ##
2138 ## Autoconf initialization. ##
2139 ## ------------------------ ##
2140
2141 # ac_fn_c_try_compile LINENO
2142 # --------------------------
2143 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2144 ac_fn_c_try_compile ()
2145 {
2146   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147   rm -f conftest.$ac_objext
2148   if { { ac_try="$ac_compile"
2149 case "(($ac_try" in
2150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2151   *) ac_try_echo=$ac_try;;
2152 esac
2153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2154 $as_echo "$ac_try_echo"; } >&5
2155   (eval "$ac_compile") 2>conftest.err
2156   ac_status=$?
2157   if test -s conftest.err; then
2158     grep -v '^ *+' conftest.err >conftest.er1
2159     cat conftest.er1 >&5
2160     mv -f conftest.er1 conftest.err
2161   fi
2162   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2163   test $ac_status = 0; } && {
2164          test -z "$ac_c_werror_flag" ||
2165          test ! -s conftest.err
2166        } && test -s conftest.$ac_objext; then :
2167   ac_retval=0
2168 else
2169   $as_echo "$as_me: failed program was:" >&5
2170 sed 's/^/| /' conftest.$ac_ext >&5
2171
2172         ac_retval=1
2173 fi
2174   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2175   as_fn_set_status $ac_retval
2176
2177 } # ac_fn_c_try_compile
2178
2179 # ac_fn_c_try_cpp LINENO
2180 # ----------------------
2181 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2182 ac_fn_c_try_cpp ()
2183 {
2184   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185   if { { ac_try="$ac_cpp conftest.$ac_ext"
2186 case "(($ac_try" in
2187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188   *) ac_try_echo=$ac_try;;
2189 esac
2190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2191 $as_echo "$ac_try_echo"; } >&5
2192   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2193   ac_status=$?
2194   if test -s conftest.err; then
2195     grep -v '^ *+' conftest.err >conftest.er1
2196     cat conftest.er1 >&5
2197     mv -f conftest.er1 conftest.err
2198   fi
2199   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2200   test $ac_status = 0; } > conftest.i && {
2201          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2202          test ! -s conftest.err
2203        }; then :
2204   ac_retval=0
2205 else
2206   $as_echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2208
2209     ac_retval=1
2210 fi
2211   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2212   as_fn_set_status $ac_retval
2213
2214 } # ac_fn_c_try_cpp
2215
2216 # ac_fn_c_try_link LINENO
2217 # -----------------------
2218 # Try to link conftest.$ac_ext, and return whether this succeeded.
2219 ac_fn_c_try_link ()
2220 {
2221   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222   rm -f conftest.$ac_objext conftest$ac_exeext
2223   if { { ac_try="$ac_link"
2224 case "(($ac_try" in
2225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2226   *) ac_try_echo=$ac_try;;
2227 esac
2228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2229 $as_echo "$ac_try_echo"; } >&5
2230   (eval "$ac_link") 2>conftest.err
2231   ac_status=$?
2232   if test -s conftest.err; then
2233     grep -v '^ *+' conftest.err >conftest.er1
2234     cat conftest.er1 >&5
2235     mv -f conftest.er1 conftest.err
2236   fi
2237   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2238   test $ac_status = 0; } && {
2239          test -z "$ac_c_werror_flag" ||
2240          test ! -s conftest.err
2241        } && test -s conftest$ac_exeext && {
2242          test "$cross_compiling" = yes ||
2243          test -x conftest$ac_exeext
2244        }; then :
2245   ac_retval=0
2246 else
2247   $as_echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.$ac_ext >&5
2249
2250         ac_retval=1
2251 fi
2252   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2253   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2254   # interfere with the next link command; also delete a directory that is
2255   # left behind by Apple's compiler.  We do this before executing the actions.
2256   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2257   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2258   as_fn_set_status $ac_retval
2259
2260 } # ac_fn_c_try_link
2261
2262 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2263 # -------------------------------------------------------
2264 # Tests whether HEADER exists and can be compiled using the include files in
2265 # INCLUDES, setting the cache variable VAR accordingly.
2266 ac_fn_c_check_header_compile ()
2267 {
2268   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2270 $as_echo_n "checking for $2... " >&6; }
2271 if eval \${$3+:} false; then :
2272   $as_echo_n "(cached) " >&6
2273 else
2274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h.  */
2276 $4
2277 #include <$2>
2278 _ACEOF
2279 if ac_fn_c_try_compile "$LINENO"; then :
2280   eval "$3=yes"
2281 else
2282   eval "$3=no"
2283 fi
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285 fi
2286 eval ac_res=\$$3
2287                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2288 $as_echo "$ac_res" >&6; }
2289   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2290
2291 } # ac_fn_c_check_header_compile
2292
2293 # ac_fn_c_try_run LINENO
2294 # ----------------------
2295 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2296 # that executables *can* be run.
2297 ac_fn_c_try_run ()
2298 {
2299   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2300   if { { ac_try="$ac_link"
2301 case "(($ac_try" in
2302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303   *) ac_try_echo=$ac_try;;
2304 esac
2305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2306 $as_echo "$ac_try_echo"; } >&5
2307   (eval "$ac_link") 2>&5
2308   ac_status=$?
2309   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2310   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2311   { { case "(($ac_try" in
2312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2313   *) ac_try_echo=$ac_try;;
2314 esac
2315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2316 $as_echo "$ac_try_echo"; } >&5
2317   (eval "$ac_try") 2>&5
2318   ac_status=$?
2319   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2320   test $ac_status = 0; }; }; then :
2321   ac_retval=0
2322 else
2323   $as_echo "$as_me: program exited with status $ac_status" >&5
2324        $as_echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2326
2327        ac_retval=$ac_status
2328 fi
2329   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2330   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2331   as_fn_set_status $ac_retval
2332
2333 } # ac_fn_c_try_run
2334
2335 # ac_fn_c_check_func LINENO FUNC VAR
2336 # ----------------------------------
2337 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2338 ac_fn_c_check_func ()
2339 {
2340   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342 $as_echo_n "checking for $2... " >&6; }
2343 if eval \${$3+:} false; then :
2344   $as_echo_n "(cached) " >&6
2345 else
2346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h.  */
2348
2349 #define $2 innocuous_$2
2350 #ifdef __STDC__
2351 # include <limits.h>
2352 #else
2353 # include <assert.h>
2354 #endif
2355 #undef $2
2356 #ifdef __cplusplus
2357 extern "C"
2358 #endif
2359 char $2 ();
2360 #if defined __stub_$2 || defined __stub___$2
2361 choke me
2362 #endif
2363
2364 int main (void)
2365 {
2366 return $2 ();
2367  ;
2368  return 0;
2369 }
2370 _ACEOF
2371 if ac_fn_c_try_link "$LINENO"; then :
2372   eval "$3=yes"
2373 else
2374   eval "$3=no"
2375 fi
2376 rm -f core conftest.err conftest.$ac_objext \
2377     conftest$ac_exeext conftest.$ac_ext
2378 fi
2379 eval ac_res=\$$3
2380                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2381 $as_echo "$ac_res" >&6; }
2382   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2383
2384 } # ac_fn_c_check_func
2385
2386 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2387 # -------------------------------------------------------
2388 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2389 # the include files in INCLUDES and setting the cache variable VAR
2390 # accordingly.
2391 ac_fn_c_check_header_mongrel ()
2392 {
2393   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2394   if eval \${$3+:} false; then :
2395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2396 $as_echo_n "checking for $2... " >&6; }
2397 if eval \${$3+:} false; then :
2398   $as_echo_n "(cached) " >&6
2399 fi
2400 eval ac_res=\$$3
2401                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2402 $as_echo "$ac_res" >&6; }
2403 else
2404   # Is the header compilable?
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2406 $as_echo_n "checking $2 usability... " >&6; }
2407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2408 /* end confdefs.h.  */
2409 $4
2410 #include <$2>
2411 _ACEOF
2412 if ac_fn_c_try_compile "$LINENO"; then :
2413   ac_header_compiler=yes
2414 else
2415   ac_header_compiler=no
2416 fi
2417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2419 $as_echo "$ac_header_compiler" >&6; }
2420
2421 # Is the header present?
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2423 $as_echo_n "checking $2 presence... " >&6; }
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h.  */
2426 #include <$2>
2427 _ACEOF
2428 if ac_fn_c_try_cpp "$LINENO"; then :
2429   ac_header_preproc=yes
2430 else
2431   ac_header_preproc=no
2432 fi
2433 rm -f conftest.err conftest.i conftest.$ac_ext
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2435 $as_echo "$ac_header_preproc" >&6; }
2436
2437 # So?  What about this header?
2438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2439   yes:no: )
2440     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2441 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2442     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2443 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2444     ;;
2445   no:yes:* )
2446     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2447 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2448     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2449 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2450     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2451 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2452     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2453 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2454     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2455 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2456 ( $as_echo "## ----------------------------------------------------------------------- ##
2457 ## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ##
2458 ## ----------------------------------------------------------------------- ##"
2459      ) | sed "s/^/$as_me: WARNING:     /" >&2
2460     ;;
2461 esac
2462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2463 $as_echo_n "checking for $2... " >&6; }
2464 if eval \${$3+:} false; then :
2465   $as_echo_n "(cached) " >&6
2466 else
2467   eval "$3=\$ac_header_compiler"
2468 fi
2469 eval ac_res=\$$3
2470                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471 $as_echo "$ac_res" >&6; }
2472 fi
2473   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2474
2475 } # ac_fn_c_check_header_mongrel
2476
2477 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2478 # --------------------------------------------
2479 # Tries to find the compile-time value of EXPR in a program that includes
2480 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2481 # computed
2482 ac_fn_c_compute_int ()
2483 {
2484   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2485   if test "$cross_compiling" = yes; then
2486     # Depending upon the size, compute the lo and hi bounds.
2487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2488 /* end confdefs.h.  */
2489 $4
2490 int main (void)
2491 {
2492 static int test_array [1 - 2 * !(($2) >= 0)];
2493 test_array [0] = 0;
2494 return test_array [0];
2495
2496  ;
2497  return 0;
2498 }
2499 _ACEOF
2500 if ac_fn_c_try_compile "$LINENO"; then :
2501   ac_lo=0 ac_mid=0
2502   while :; do
2503     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2504 /* end confdefs.h.  */
2505 $4
2506 int main (void)
2507 {
2508 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2509 test_array [0] = 0;
2510 return test_array [0];
2511
2512  ;
2513  return 0;
2514 }
2515 _ACEOF
2516 if ac_fn_c_try_compile "$LINENO"; then :
2517   ac_hi=$ac_mid; break
2518 else
2519   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2520                         if test $ac_lo -le $ac_mid; then
2521                           ac_lo= ac_hi=
2522                           break
2523                         fi
2524                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2525 fi
2526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2527   done
2528 else
2529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2530 /* end confdefs.h.  */
2531 $4
2532 int main (void)
2533 {
2534 static int test_array [1 - 2 * !(($2) < 0)];
2535 test_array [0] = 0;
2536 return test_array [0];
2537
2538  ;
2539  return 0;
2540 }
2541 _ACEOF
2542 if ac_fn_c_try_compile "$LINENO"; then :
2543   ac_hi=-1 ac_mid=-1
2544   while :; do
2545     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2546 /* end confdefs.h.  */
2547 $4
2548 int main (void)
2549 {
2550 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2551 test_array [0] = 0;
2552 return test_array [0];
2553
2554  ;
2555  return 0;
2556 }
2557 _ACEOF
2558 if ac_fn_c_try_compile "$LINENO"; then :
2559   ac_lo=$ac_mid; break
2560 else
2561   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2562                         if test $ac_mid -le $ac_hi; then
2563                           ac_lo= ac_hi=
2564                           break
2565                         fi
2566                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2567 fi
2568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2569   done
2570 else
2571   ac_lo= ac_hi=
2572 fi
2573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2574 fi
2575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2576 # Binary search between lo and hi bounds.
2577 while test "x$ac_lo" != "x$ac_hi"; do
2578   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580 /* end confdefs.h.  */
2581 $4
2582 int main (void)
2583 {
2584 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2585 test_array [0] = 0;
2586 return test_array [0];
2587
2588  ;
2589  return 0;
2590 }
2591 _ACEOF
2592 if ac_fn_c_try_compile "$LINENO"; then :
2593   ac_hi=$ac_mid
2594 else
2595   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2596 fi
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598 done
2599 case $ac_lo in #((
2600 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2601 '') ac_retval=1 ;;
2602 esac
2603   else
2604     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2605 /* end confdefs.h.  */
2606 $4
2607 static long int longval () { return $2; }
2608 static unsigned long int ulongval () { return $2; }
2609 #include <stdio.h>
2610 #include <stdlib.h>
2611 int main (void)
2612 {
2613
2614   FILE *f = fopen ("conftest.val", "w");
2615   if (! f)
2616     return 1;
2617   if (($2) < 0)
2618     {
2619       long int i = longval ();
2620       if (i != ($2))
2621         return 1;
2622       fprintf (f, "%ld", i);
2623     }
2624   else
2625     {
2626       unsigned long int i = ulongval ();
2627       if (i != ($2))
2628         return 1;
2629       fprintf (f, "%lu", i);
2630     }
2631   /* Do not output a trailing newline, as this causes \r\n confusion
2632      on some platforms.  */
2633   return ferror (f) || fclose (f) != 0;
2634
2635  ;
2636  return 0;
2637 }
2638 _ACEOF
2639 if ac_fn_c_try_run "$LINENO"; then :
2640   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2641 else
2642   ac_retval=1
2643 fi
2644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2645   conftest.$ac_objext conftest.beam conftest.$ac_ext
2646 rm -f conftest.val
2647
2648   fi
2649   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2650   as_fn_set_status $ac_retval
2651
2652 } # ac_fn_c_compute_int
2653
2654 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2655 # -------------------------------------------
2656 # Tests whether TYPE exists after having included INCLUDES, setting cache
2657 # variable VAR accordingly.
2658 ac_fn_c_check_type ()
2659 {
2660   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2662 $as_echo_n "checking for $2... " >&6; }
2663 if eval \${$3+:} false; then :
2664   $as_echo_n "(cached) " >&6
2665 else
2666   eval "$3=no"
2667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2668 /* end confdefs.h.  */
2669 $4
2670 int main (void)
2671 {
2672 if (sizeof ($2))
2673          return 0;
2674  ;
2675  return 0;
2676 }
2677 _ACEOF
2678 if ac_fn_c_try_compile "$LINENO"; then :
2679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2680 /* end confdefs.h.  */
2681 $4
2682 int main (void)
2683 {
2684 if (sizeof (($2)))
2685             return 0;
2686  ;
2687  return 0;
2688 }
2689 _ACEOF
2690 if ac_fn_c_try_compile "$LINENO"; then :
2691
2692 else
2693   eval "$3=yes"
2694 fi
2695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2696 fi
2697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2698 fi
2699 eval ac_res=\$$3
2700                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2701 $as_echo "$ac_res" >&6; }
2702   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2703
2704 } # ac_fn_c_check_type
2705
2706 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2707 # ----------------------------------------------------
2708 # Tries to find if the field MEMBER exists in type AGGR, after including
2709 # INCLUDES, setting cache variable VAR accordingly.
2710 ac_fn_c_check_member ()
2711 {
2712   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2714 $as_echo_n "checking for $2.$3... " >&6; }
2715 if eval \${$4+:} false; then :
2716   $as_echo_n "(cached) " >&6
2717 else
2718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2719 /* end confdefs.h.  */
2720 $5
2721 int main (void)
2722 {
2723 static $2 ac_aggr;
2724 if (ac_aggr.$3)
2725 return 0;
2726  ;
2727  return 0;
2728 }
2729 _ACEOF
2730 if ac_fn_c_try_compile "$LINENO"; then :
2731   eval "$4=yes"
2732 else
2733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2734 /* end confdefs.h.  */
2735 $5
2736 int main (void)
2737 {
2738 static $2 ac_aggr;
2739 if (sizeof ac_aggr.$3)
2740 return 0;
2741  ;
2742  return 0;
2743 }
2744 _ACEOF
2745 if ac_fn_c_try_compile "$LINENO"; then :
2746   eval "$4=yes"
2747 else
2748   eval "$4=no"
2749 fi
2750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2751 fi
2752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2753 fi
2754 eval ac_res=\$$4
2755                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2756 $as_echo "$ac_res" >&6; }
2757   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2758
2759 } # ac_fn_c_check_member
2760 cat >config.log <<_ACEOF
2761 This file contains any messages produced by compilers while
2762 running configure, to aid debugging if configure makes a mistake.
2763
2764 It was created by curl $as_me -, which was
2765 generated by GNU Autoconf 2.69.  Invocation command line was
2766
2767   $ $0 $@
2768
2769 _ACEOF
2770 exec 5>>config.log
2771 {
2772 cat <<_ASUNAME
2773 ## --------- ##
2774 ## Platform. ##
2775 ## --------- ##
2776
2777 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2778 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2779 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2780 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2781 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2782
2783 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2784 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2785
2786 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2787 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2788 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2789 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2790 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2791 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2792 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2793
2794 _ASUNAME
2795
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799   IFS=$as_save_IFS
2800   test -z "$as_dir" && as_dir=.
2801     $as_echo "PATH: $as_dir"
2802   done
2803 IFS=$as_save_IFS
2804
2805 } >&5
2806
2807 cat >&5 <<_ACEOF
2808
2809
2810 ## ----------- ##
2811 ## Core tests. ##
2812 ## ----------- ##
2813
2814 _ACEOF
2815
2816
2817 # Keep a trace of the command line.
2818 # Strip out --no-create and --no-recursion so they do not pile up.
2819 # Strip out --silent because we don't want to record it for future runs.
2820 # Also quote any args containing shell meta-characters.
2821 # Make two passes to allow for proper duplicate-argument suppression.
2822 ac_configure_args=
2823 ac_configure_args0=
2824 ac_configure_args1=
2825 ac_must_keep_next=false
2826 for ac_pass in 1 2
2827 do
2828   for ac_arg
2829   do
2830     case $ac_arg in
2831     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2832     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2833     | -silent | --silent | --silen | --sile | --sil)
2834       continue ;;
2835     *\'*)
2836       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2837     esac
2838     case $ac_pass in
2839     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2840     2)
2841       as_fn_append ac_configure_args1 " '$ac_arg'"
2842       if test $ac_must_keep_next = true; then
2843         ac_must_keep_next=false # Got value, back to normal.
2844       else
2845         case $ac_arg in
2846           *=* | --config-cache | -C | -disable-* | --disable-* \
2847           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2848           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2849           | -with-* | --with-* | -without-* | --without-* | --x)
2850             case "$ac_configure_args0 " in
2851               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2852             esac
2853             ;;
2854           -* ) ac_must_keep_next=true ;;
2855         esac
2856       fi
2857       as_fn_append ac_configure_args " '$ac_arg'"
2858       ;;
2859     esac
2860   done
2861 done
2862 { ac_configure_args0=; unset ac_configure_args0;}
2863 { ac_configure_args1=; unset ac_configure_args1;}
2864
2865 # When interrupted or exit'd, cleanup temporary files, and complete
2866 # config.log.  We remove comments because anyway the quotes in there
2867 # would cause problems or look ugly.
2868 # WARNING: Use '\'' to represent an apostrophe within the trap.
2869 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2870 trap 'exit_status=$?
2871   # Save into config.log some information that might help in debugging.
2872   {
2873     echo
2874
2875     $as_echo "## ---------------- ##
2876 ## Cache variables. ##
2877 ## ---------------- ##"
2878     echo
2879     # The following way of writing the cache mishandles newlines in values,
2880 (
2881   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2882     eval ac_val=\$$ac_var
2883     case $ac_val in #(
2884     *${as_nl}*)
2885       case $ac_var in #(
2886       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2887 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2888       esac
2889       case $ac_var in #(
2890       _ | IFS | as_nl) ;; #(
2891       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2892       *) { eval $ac_var=; unset $ac_var;} ;;
2893       esac ;;
2894     esac
2895   done
2896   (set) 2>&1 |
2897     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2898     *${as_nl}ac_space=\ *)
2899       sed -n \
2900         "s/'\''/'\''\\\\'\'''\''/g;
2901           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2902       ;; #(
2903     *)
2904       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2905       ;;
2906     esac |
2907     sort
2908 )
2909     echo
2910
2911     $as_echo "## ----------------- ##
2912 ## Output variables. ##
2913 ## ----------------- ##"
2914     echo
2915     for ac_var in $ac_subst_vars
2916     do
2917       eval ac_val=\$$ac_var
2918       case $ac_val in
2919       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2920       esac
2921       $as_echo "$ac_var='\''$ac_val'\''"
2922     done | sort
2923     echo
2924
2925     if test -n "$ac_subst_files"; then
2926       $as_echo "## ------------------- ##
2927 ## File substitutions. ##
2928 ## ------------------- ##"
2929       echo
2930       for ac_var in $ac_subst_files
2931       do
2932         eval ac_val=\$$ac_var
2933         case $ac_val in
2934         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2935         esac
2936         $as_echo "$ac_var='\''$ac_val'\''"
2937       done | sort
2938       echo
2939     fi
2940
2941     if test -s confdefs.h; then
2942       $as_echo "## ----------- ##
2943 ## confdefs.h. ##
2944 ## ----------- ##"
2945       echo
2946       cat confdefs.h
2947       echo
2948     fi
2949     test "$ac_signal" != 0 &&
2950       $as_echo "$as_me: caught signal $ac_signal"
2951     $as_echo "$as_me: exit $exit_status"
2952   } >&5
2953   rm -f core *.core core.conftest.* &&
2954     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2955     exit $exit_status
2956 ' 0
2957 for ac_signal in 1 2 13 15; do
2958   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2959 done
2960 ac_signal=0
2961
2962 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2963 rm -f -r conftest* confdefs.h
2964
2965 $as_echo "/* confdefs.h */" > confdefs.h
2966
2967 # Predefined preprocessor variables.
2968
2969 cat >>confdefs.h <<_ACEOF
2970 #define PACKAGE_NAME "$PACKAGE_NAME"
2971 _ACEOF
2972
2973 cat >>confdefs.h <<_ACEOF
2974 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2975 _ACEOF
2976
2977 cat >>confdefs.h <<_ACEOF
2978 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2979 _ACEOF
2980
2981 cat >>confdefs.h <<_ACEOF
2982 #define PACKAGE_STRING "$PACKAGE_STRING"
2983 _ACEOF
2984
2985 cat >>confdefs.h <<_ACEOF
2986 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2987 _ACEOF
2988
2989 cat >>confdefs.h <<_ACEOF
2990 #define PACKAGE_URL "$PACKAGE_URL"
2991 _ACEOF
2992
2993
2994 # Let the site file select an alternate cache file if it wants to.
2995 # Prefer an explicitly selected file to automatically selected ones.
2996 ac_site_file1=NONE
2997 ac_site_file2=NONE
2998 if test -n "$CONFIG_SITE"; then
2999   # We do not want a PATH search for config.site.
3000   case $CONFIG_SITE in #((
3001     -*)  ac_site_file1=./$CONFIG_SITE;;
3002     */*) ac_site_file1=$CONFIG_SITE;;
3003     *)   ac_site_file1=./$CONFIG_SITE;;
3004   esac
3005 elif test "x$prefix" != xNONE; then
3006   ac_site_file1=$prefix/share/config.site
3007   ac_site_file2=$prefix/etc/config.site
3008 else
3009   ac_site_file1=$ac_default_prefix/share/config.site
3010   ac_site_file2=$ac_default_prefix/etc/config.site
3011 fi
3012 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3013 do
3014   test "x$ac_site_file" = xNONE && continue
3015   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3016     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3017 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3018     sed 's/^/| /' "$ac_site_file" >&5
3019     . "$ac_site_file" \
3020       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3022 as_fn_error $? "failed to load site script $ac_site_file
3023 See \`config.log' for more details" "$LINENO" 5; }
3024   fi
3025 done
3026
3027 if test -r "$cache_file"; then
3028   # Some versions of bash will fail to source /dev/null (special files
3029   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3030   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3031     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3032 $as_echo "$as_me: loading cache $cache_file" >&6;}
3033     case $cache_file in
3034       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3035       *)                      . "./$cache_file";;
3036     esac
3037   fi
3038 else
3039   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3040 $as_echo "$as_me: creating cache $cache_file" >&6;}
3041   >$cache_file
3042 fi
3043
3044 # Check that the precious variables saved in the cache have kept the same
3045 # value.
3046 ac_cache_corrupted=false
3047 for ac_var in $ac_precious_vars; do
3048   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3049   eval ac_new_set=\$ac_env_${ac_var}_set
3050   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3051   eval ac_new_val=\$ac_env_${ac_var}_value
3052   case $ac_old_set,$ac_new_set in
3053     set,)
3054       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3055 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3056       ac_cache_corrupted=: ;;
3057     ,set)
3058       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3059 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3060       ac_cache_corrupted=: ;;
3061     ,);;
3062     *)
3063       if test "x$ac_old_val" != "x$ac_new_val"; then
3064         # differences in whitespace do not lead to failure.
3065         ac_old_val_w=`echo x $ac_old_val`
3066         ac_new_val_w=`echo x $ac_new_val`
3067         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3068           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3069 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3070           ac_cache_corrupted=:
3071         else
3072           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3073 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3074           eval $ac_var=\$ac_old_val
3075         fi
3076         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3077 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3078         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3079 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3080       fi;;
3081   esac
3082   # Pass precious variables to config.status.
3083   if test "$ac_new_set" = set; then
3084     case $ac_new_val in
3085     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3086     *) ac_arg=$ac_var=$ac_new_val ;;
3087     esac
3088     case " $ac_configure_args " in
3089       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3090       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3091     esac
3092   fi
3093 done
3094 if $ac_cache_corrupted; then
3095   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3097   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3098 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3099   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3100 fi
3101 ## -------------------- ##
3102 ## Main body of script. ##
3103 ## -------------------- ##
3104
3105 ac_ext=c
3106 ac_cpp='$CPP $CPPFLAGS'
3107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3110
3111
3112
3113
3114
3115
3116
3117 # using curl-override.m4
3118
3119
3120
3121
3122
3123 ac_config_headers="$ac_config_headers lib/curl_config.h"
3124
3125
3126
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3128 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3129     # Check whether --enable-maintainer-mode was given.
3130 if test "${enable_maintainer_mode+set}" = set; then :
3131   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3132 else
3133   USE_MAINTAINER_MODE=no
3134 fi
3135
3136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3137 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3138    if test $USE_MAINTAINER_MODE = yes; then
3139   MAINTAINER_MODE_TRUE=
3140   MAINTAINER_MODE_FALSE='#'
3141 else
3142   MAINTAINER_MODE_TRUE='#'
3143   MAINTAINER_MODE_FALSE=
3144 fi
3145
3146   MAINT=$MAINTAINER_MODE_TRUE
3147
3148
3149 # Check whether --enable-silent-rules was given.
3150 if test "${enable_silent_rules+set}" = set; then :
3151   enableval=$enable_silent_rules;
3152 fi
3153
3154 case $enable_silent_rules in # (((
3155   yes) AM_DEFAULT_VERBOSITY=0;;
3156    no) AM_DEFAULT_VERBOSITY=1;;
3157     *) AM_DEFAULT_VERBOSITY=0;;
3158 esac
3159 am_make=${MAKE-make}
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3161 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3162 if ${am_cv_make_support_nested_variables+:} false; then :
3163   $as_echo_n "(cached) " >&6
3164 else
3165   if $as_echo 'TRUE=$(BAR$(V))
3166 BAR0=false
3167 BAR1=true
3168 V=1
3169 am__doit:
3170         @$(TRUE)
3171 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3172   am_cv_make_support_nested_variables=yes
3173 else
3174   am_cv_make_support_nested_variables=no
3175 fi
3176 fi
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3178 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3179 if test $am_cv_make_support_nested_variables = yes; then
3180     AM_V='$(V)'
3181   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3182 else
3183   AM_V=$AM_DEFAULT_VERBOSITY
3184   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3185 fi
3186 AM_BACKSLASH='\'
3187
3188
3189
3190         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3191 $as_echo_n "checking whether to enable debug build options... " >&6; }
3192   OPT_DEBUG_BUILD="default"
3193   # Check whether --enable-debug was given.
3194 if test "${enable_debug+set}" = set; then :
3195   enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3196 fi
3197
3198   case "$OPT_DEBUG_BUILD" in
3199     no)
3200             want_debug="no"
3201       ;;
3202     default)
3203             want_debug="no"
3204       ;;
3205     *)
3206             want_debug="yes"
3207       ;;
3208   esac
3209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3210 $as_echo "$want_debug" >&6; }
3211
3212
3213       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3214 $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3215   OPT_COMPILER_OPTIMIZE="default"
3216   # Check whether --enable-optimize was given.
3217 if test "${enable_optimize+set}" = set; then :
3218   enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3219 fi
3220
3221   case "$OPT_COMPILER_OPTIMIZE" in
3222     no)
3223                               want_optimize="no"
3224       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3226       ;;
3227     default)
3228                                                                         if test "$want_debug" = "yes"; then
3229         want_optimize="assume_no"
3230         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3231 $as_echo "(assumed) no" >&6; }
3232       else
3233         want_optimize="assume_yes"
3234         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3235 $as_echo "(assumed) yes" >&6; }
3236       fi
3237       ;;
3238     *)
3239                               want_optimize="yes"
3240       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3241 $as_echo "yes" >&6; }
3242       ;;
3243   esac
3244
3245
3246         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3247 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3248   OPT_COMPILER_WARNINGS="default"
3249   # Check whether --enable-warnings was given.
3250 if test "${enable_warnings+set}" = set; then :
3251   enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3252 fi
3253
3254   case "$OPT_COMPILER_WARNINGS" in
3255     no)
3256             want_warnings="no"
3257       ;;
3258     default)
3259                   want_warnings="$want_debug"
3260       ;;
3261     *)
3262             want_warnings="yes"
3263       ;;
3264   esac
3265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3266 $as_echo "$want_warnings" >&6; }
3267
3268
3269     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3270 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3271   OPT_COMPILER_WERROR="default"
3272   # Check whether --enable-werror was given.
3273 if test "${enable_werror+set}" = set; then :
3274   enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3275 fi
3276
3277   case "$OPT_COMPILER_WERROR" in
3278     no)
3279             want_werror="no"
3280       ;;
3281     default)
3282             want_werror="no"
3283       ;;
3284     *)
3285             want_werror="yes"
3286       ;;
3287   esac
3288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3289 $as_echo "$want_werror" >&6; }
3290
3291
3292     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3293 $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3294   OPT_CURLDEBUG_BUILD="default"
3295   # Check whether --enable-curldebug was given.
3296 if test "${enable_curldebug+set}" = set; then :
3297   enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3298 fi
3299
3300   case "$OPT_CURLDEBUG_BUILD" in
3301     no)
3302             want_curldebug="no"
3303       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3305       ;;
3306     default)
3307                                           if test "$want_debug" = "yes"; then
3308         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3309 $as_echo "(assumed) yes" >&6; }
3310       else
3311         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 $as_echo "no" >&6; }
3313       fi
3314       want_curldebug_assumed="yes"
3315       want_curldebug="$want_debug"
3316       ;;
3317     *)
3318                                                       want_curldebug="yes"
3319       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3320 $as_echo "yes" >&6; }
3321       ;;
3322   esac
3323
3324
3325     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3326 $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3327   OPT_SYMBOL_HIDING="default"
3328   # Check whether --enable-symbol-hiding was given.
3329 if test "${enable_symbol_hiding+set}" = set; then :
3330   enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3331 fi
3332
3333   # Check whether --enable-hidden-symbols was given.
3334 if test "${enable_hidden_symbols+set}" = set; then :
3335   enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3336 fi
3337
3338   case "$OPT_SYMBOL_HIDING" in
3339     no)
3340                               want_symbol_hiding="no"
3341       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3343       ;;
3344     default)
3345                   want_symbol_hiding="yes"
3346       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3347 $as_echo "yes" >&6; }
3348       ;;
3349     *)
3350                         want_symbol_hiding="yes"
3351       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3352 $as_echo "yes" >&6; }
3353       ;;
3354   esac
3355
3356
3357     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3358 $as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3359   OPT_ARES="default"
3360   # Check whether --enable-ares was given.
3361 if test "${enable_ares+set}" = set; then :
3362   enableval=$enable_ares; OPT_ARES=$enableval
3363 fi
3364
3365   case "$OPT_ARES" in
3366     no)
3367             want_ares="no"
3368       ;;
3369     default)
3370             want_ares="no"
3371       ;;
3372     *)
3373             want_ares="yes"
3374       if test -n "$enableval" && test "$enableval" != "yes"; then
3375         want_ares_path="$enableval"
3376       fi
3377       ;;
3378   esac
3379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3380 $as_echo "$want_ares" >&6; }
3381
3382
3383     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3384 $as_echo_n "checking whether to disable dependency on -lrt... " >&6; }
3385   OPT_RT="default"
3386   # Check whether --enable-rt was given.
3387 if test "${enable_rt+set}" = set; then :
3388   enableval=$enable_rt; OPT_RT=$enableval
3389 fi
3390
3391   case "$OPT_RT" in
3392     no)
3393             dontwant_rt="yes"
3394       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3395 $as_echo "yes" >&6; }
3396       ;;
3397     default)
3398             dontwant_rt="no"
3399       { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3400 $as_echo "(assumed no)" >&6; }
3401       ;;
3402     *)
3403             dontwant_rt="no"
3404       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3406       ;;
3407   esac
3408
3409
3410 #
3411 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3412 #
3413
3414 if test -z "$xc_configure_preamble_result"; then
3415   as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3416 fi
3417
3418 #
3419 # Check that 'PATH_SEPARATOR' has already been set.
3420 #
3421
3422 if test -z "$xc_PATH_SEPARATOR"; then
3423   as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3424 fi
3425 if test -z "$PATH_SEPARATOR"; then
3426   as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3427 fi
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3429 $as_echo_n "checking for path separator... " >&6; }
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3431 $as_echo "$PATH_SEPARATOR" >&6; }
3432 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3434 $as_echo_n "checking for initial path separator... " >&6; }
3435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3436 $as_echo "$xc_PATH_SEPARATOR" >&6; }
3437   as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3438 fi
3439
3440
3441 #
3442 # save the configure arguments
3443 #
3444 CONFIGURE_OPTIONS="\"$ac_configure_args\""
3445
3446
3447 CURL_CFLAG_EXTRAS=""
3448 if test X"$want_werror" = Xyes; then
3449   CURL_CFLAG_EXTRAS="-Werror"
3450 fi
3451
3452
3453 if test -z "$SED"; then
3454     # Extract the first word of "sed", so it can be a program name with args.
3455 set dummy sed; ac_word=$2
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3457 $as_echo_n "checking for $ac_word... " >&6; }
3458 if ${ac_cv_path_SED+:} false; then :
3459   $as_echo_n "(cached) " >&6
3460 else
3461   case $SED in
3462   [\\/]* | ?:[\\/]*)
3463   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3464   ;;
3465   *)
3466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3468 for as_dir in $as_dummy
3469 do
3470   IFS=$as_save_IFS
3471   test -z "$as_dir" && as_dir=.
3472     for ac_exec_ext in '' $ac_executable_extensions; do
3473   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3474     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3476     break 2
3477   fi
3478 done
3479   done
3480 IFS=$as_save_IFS
3481
3482   test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3483   ;;
3484 esac
3485 fi
3486 SED=$ac_cv_path_SED
3487 if test -n "$SED"; then
3488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3489 $as_echo "$SED" >&6; }
3490 else
3491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3493 fi
3494
3495
3496   if test -z "$SED" || test "$SED" = "not_found"; then
3497     as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3498   fi
3499 fi
3500
3501
3502 if test -z "$GREP"; then
3503     # Extract the first word of "grep", so it can be a program name with args.
3504 set dummy grep; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if ${ac_cv_path_GREP+:} false; then :
3508   $as_echo_n "(cached) " >&6
3509 else
3510   case $GREP in
3511   [\\/]* | ?:[\\/]*)
3512   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3513   ;;
3514   *)
3515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3517 for as_dir in $as_dummy
3518 do
3519   IFS=$as_save_IFS
3520   test -z "$as_dir" && as_dir=.
3521     for ac_exec_ext in '' $ac_executable_extensions; do
3522   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3523     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525     break 2
3526   fi
3527 done
3528   done
3529 IFS=$as_save_IFS
3530
3531   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3532   ;;
3533 esac
3534 fi
3535 GREP=$ac_cv_path_GREP
3536 if test -n "$GREP"; then
3537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3538 $as_echo "$GREP" >&6; }
3539 else
3540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3542 fi
3543
3544
3545   if test -z "$GREP" || test "$GREP" = "not_found"; then
3546     as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3547   fi
3548 fi
3549
3550
3551 if test -z "$EGREP"; then
3552     if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3553     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3554 $as_echo_n "checking for egrep... " >&6; }
3555     EGREP="$GREP -E"
3556     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3557 $as_echo "$EGREP" >&6; }
3558   else
3559     # Extract the first word of "egrep", so it can be a program name with args.
3560 set dummy egrep; ac_word=$2
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3562 $as_echo_n "checking for $ac_word... " >&6; }
3563 if ${ac_cv_path_EGREP+:} false; then :
3564   $as_echo_n "(cached) " >&6
3565 else
3566   case $EGREP in
3567   [\\/]* | ?:[\\/]*)
3568   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3569   ;;
3570   *)
3571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3573 for as_dir in $as_dummy
3574 do
3575   IFS=$as_save_IFS
3576   test -z "$as_dir" && as_dir=.
3577     for ac_exec_ext in '' $ac_executable_extensions; do
3578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3579     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3581     break 2
3582   fi
3583 done
3584   done
3585 IFS=$as_save_IFS
3586
3587   test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3588   ;;
3589 esac
3590 fi
3591 EGREP=$ac_cv_path_EGREP
3592 if test -n "$EGREP"; then
3593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3594 $as_echo "$EGREP" >&6; }
3595 else
3596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597 $as_echo "no" >&6; }
3598 fi
3599
3600
3601   fi
3602 fi
3603 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3604   as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3605 fi
3606
3607
3608 if test -z "$AR"; then
3609     if test -n "$ac_tool_prefix"; then
3610   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3611 set dummy ${ac_tool_prefix}ar; ac_word=$2
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3613 $as_echo_n "checking for $ac_word... " >&6; }
3614 if ${ac_cv_path_AR+:} false; then :
3615   $as_echo_n "(cached) " >&6
3616 else
3617   case $AR in
3618   [\\/]* | ?:[\\/]*)
3619   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3620   ;;
3621   *)
3622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3624 for as_dir in $as_dummy
3625 do
3626   IFS=$as_save_IFS
3627   test -z "$as_dir" && as_dir=.
3628     for ac_exec_ext in '' $ac_executable_extensions; do
3629   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3630     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3632     break 2
3633   fi
3634 done
3635   done
3636 IFS=$as_save_IFS
3637
3638   ;;
3639 esac
3640 fi
3641 AR=$ac_cv_path_AR
3642 if test -n "$AR"; then
3643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3644 $as_echo "$AR" >&6; }
3645 else
3646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647 $as_echo "no" >&6; }
3648 fi
3649
3650
3651 fi
3652 if test -z "$ac_cv_path_AR"; then
3653   ac_pt_AR=$AR
3654   # Extract the first word of "ar", so it can be a program name with args.
3655 set dummy ar; ac_word=$2
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3657 $as_echo_n "checking for $ac_word... " >&6; }
3658 if ${ac_cv_path_ac_pt_AR+:} false; then :
3659   $as_echo_n "(cached) " >&6
3660 else
3661   case $ac_pt_AR in
3662   [\\/]* | ?:[\\/]*)
3663   ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3664   ;;
3665   *)
3666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3668 for as_dir in $as_dummy
3669 do
3670   IFS=$as_save_IFS
3671   test -z "$as_dir" && as_dir=.
3672     for ac_exec_ext in '' $ac_executable_extensions; do
3673   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3674     ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3676     break 2
3677   fi
3678 done
3679   done
3680 IFS=$as_save_IFS
3681
3682   ;;
3683 esac
3684 fi
3685 ac_pt_AR=$ac_cv_path_ac_pt_AR
3686 if test -n "$ac_pt_AR"; then
3687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3688 $as_echo "$ac_pt_AR" >&6; }
3689 else
3690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3691 $as_echo "no" >&6; }
3692 fi
3693
3694   if test "x$ac_pt_AR" = x; then
3695     AR="not_found"
3696   else
3697     case $cross_compiling:$ac_tool_warned in
3698 yes:)
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3701 ac_tool_warned=yes ;;
3702 esac
3703     AR=$ac_pt_AR
3704   fi
3705 else
3706   AR="$ac_cv_path_AR"
3707 fi
3708
3709   if test -z "$AR" || test "$AR" = "not_found"; then
3710     as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3711   fi
3712 fi
3713
3714
3715
3716
3717 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
3718
3719   xc_prog_cc_prev_IFS=$IFS
3720   xc_prog_cc_prev_LIBS=$LIBS
3721   xc_prog_cc_prev_CFLAGS=$CFLAGS
3722   xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3723   xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3724
3725
3726
3727   xc_bad_var_libs=no
3728   for xc_word in $LIBS; do
3729     case "$xc_word" in
3730       -l* | --library=*)
3731         :
3732         ;;
3733       *)
3734         xc_bad_var_libs=yes
3735         ;;
3736     esac
3737   done
3738   if test $xc_bad_var_libs = yes; then
3739     { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3740 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
3741     { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3742 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3743   fi
3744
3745
3746   xc_bad_var_ldflags=no
3747   for xc_word in $LDFLAGS; do
3748     case "$xc_word" in
3749       -D*)
3750         xc_bad_var_ldflags=yes
3751         ;;
3752       -U*)
3753         xc_bad_var_ldflags=yes
3754         ;;
3755       -I*)
3756         xc_bad_var_ldflags=yes
3757         ;;
3758       -l* | --library=*)
3759         xc_bad_var_ldflags=yes
3760         ;;
3761     esac
3762   done
3763   if test $xc_bad_var_ldflags = yes; then
3764     { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3765 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3766     xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3767     for xc_word in $LDFLAGS; do
3768       case "$xc_word" in
3769         -D*)
3770           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3771 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3772           ;;
3773         -U*)
3774           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3775 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3776           ;;
3777         -I*)
3778           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3779 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3780           ;;
3781         -l* | --library=*)
3782           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3783 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3784           ;;
3785       esac
3786     done
3787   fi
3788
3789
3790   xc_bad_var_cppflags=no
3791   for xc_word in $CPPFLAGS; do
3792     case "$xc_word" in
3793       -rpath*)
3794         xc_bad_var_cppflags=yes
3795         ;;
3796       -L* | --library-path=*)
3797         xc_bad_var_cppflags=yes
3798         ;;
3799       -l* | --library=*)
3800         xc_bad_var_cppflags=yes
3801         ;;
3802     esac
3803   done
3804   if test $xc_bad_var_cppflags = yes; then
3805     { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3806 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3807     xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3808     for xc_word in $CPPFLAGS; do
3809       case "$xc_word" in
3810         -rpath*)
3811           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3812 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3813           ;;
3814         -L* | --library-path=*)
3815           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3816 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3817           ;;
3818         -l* | --library=*)
3819           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3820 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3821           ;;
3822       esac
3823     done
3824   fi
3825
3826
3827   xc_bad_var_cflags=no
3828   for xc_word in $CFLAGS; do
3829     case "$xc_word" in
3830       -D*)
3831         xc_bad_var_cflags=yes
3832         ;;
3833       -U*)
3834         xc_bad_var_cflags=yes
3835         ;;
3836       -I*)
3837         xc_bad_var_cflags=yes
3838         ;;
3839       -rpath*)
3840         xc_bad_var_cflags=yes
3841         ;;
3842       -L* | --library-path=*)
3843         xc_bad_var_cflags=yes
3844         ;;
3845       -l* | --library=*)
3846         xc_bad_var_cflags=yes
3847         ;;
3848     esac
3849   done
3850   if test $xc_bad_var_cflags = yes; then
3851     { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3852 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3853     xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3854     for xc_word in $CFLAGS; do
3855       case "$xc_word" in
3856         -D*)
3857           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3858 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3859           ;;
3860         -U*)
3861           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3862 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3863           ;;
3864         -I*)
3865           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3866 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3867           ;;
3868         -rpath*)
3869           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3870 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3871           ;;
3872         -L* | --library-path=*)
3873           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3874 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3875           ;;
3876         -l* | --library=*)
3877           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3878 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3879           ;;
3880       esac
3881     done
3882   fi
3883
3884   if test $xc_bad_var_libs = yes ||
3885      test $xc_bad_var_cflags = yes ||
3886      test $xc_bad_var_ldflags = yes ||
3887      test $xc_bad_var_cppflags = yes; then
3888      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3889 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3890   fi
3891
3892 ac_aux_dir=
3893 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3894   if test -f "$ac_dir/install-sh"; then
3895     ac_aux_dir=$ac_dir
3896     ac_install_sh="$ac_aux_dir/install-sh -c"
3897     break
3898   elif test -f "$ac_dir/install.sh"; then
3899     ac_aux_dir=$ac_dir
3900     ac_install_sh="$ac_aux_dir/install.sh -c"
3901     break
3902   elif test -f "$ac_dir/shtool"; then
3903     ac_aux_dir=$ac_dir
3904     ac_install_sh="$ac_aux_dir/shtool install -c"
3905     break
3906   fi
3907 done
3908 if test -z "$ac_aux_dir"; then
3909   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3910 fi
3911
3912 # These three variables are undocumented and unsupported,
3913 # and are intended to be withdrawn in a future Autoconf release.
3914 # They can cause serious problems if a builder's source tree is in a directory
3915 # whose full name contains unusual characters.
3916 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3917 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3918 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3919
3920
3921 # Find a good install program.  We prefer a C program (faster),
3922 # so one script is as good as another.  But avoid the broken or
3923 # incompatible versions:
3924 # SysV /etc/install, /usr/sbin/install
3925 # SunOS /usr/etc/install
3926 # IRIX /sbin/install
3927 # AIX /bin/install
3928 # AmigaOS /C/install, which installs bootblocks on floppy discs
3929 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3930 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3931 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3932 # OS/2's system install, which has a completely different semantic
3933 # ./install, which can be erroneously created by make from ./install.sh.
3934 # Reject install programs that cannot install multiple files.
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3936 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3937 if test -z "$INSTALL"; then
3938 if ${ac_cv_path_install+:} false; then :
3939   $as_echo_n "(cached) " >&6
3940 else
3941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 for as_dir in $PATH
3943 do
3944   IFS=$as_save_IFS
3945   test -z "$as_dir" && as_dir=.
3946     # Account for people who put trailing slashes in PATH elements.
3947 case $as_dir/ in #((
3948   ./ | .// | /[cC]/* | \
3949   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3950   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3951   /usr/ucb/* ) ;;
3952   *)
3953     # OSF1 and SCO ODT 3.0 have their own names for install.
3954     # Don't use installbsd from OSF since it installs stuff as root
3955     # by default.
3956     for ac_prog in ginstall scoinst install; do
3957       for ac_exec_ext in '' $ac_executable_extensions; do
3958         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3959           if test $ac_prog = install &&
3960             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3961             # AIX install.  It has an incompatible calling convention.
3962             :
3963           elif test $ac_prog = install &&
3964             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3965             # program-specific install script used by HP pwplus--don't use.
3966             :
3967           else
3968             rm -rf conftest.one conftest.two conftest.dir
3969             echo one > conftest.one
3970             echo two > conftest.two
3971             mkdir conftest.dir
3972             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3973               test -s conftest.one && test -s conftest.two &&
3974               test -s conftest.dir/conftest.one &&
3975               test -s conftest.dir/conftest.two
3976             then
3977               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3978               break 3
3979             fi
3980           fi
3981         fi
3982       done
3983     done
3984     ;;
3985 esac
3986
3987   done
3988 IFS=$as_save_IFS
3989
3990 rm -rf conftest.one conftest.two conftest.dir
3991
3992 fi
3993   if test "${ac_cv_path_install+set}" = set; then
3994     INSTALL=$ac_cv_path_install
3995   else
3996     # As a last resort, use the slow shell script.  Don't cache a
3997     # value for INSTALL within a source directory, because that will
3998     # break other packages using the cache if that directory is
3999     # removed, or if the value is a relative name.
4000     INSTALL=$ac_install_sh
4001   fi
4002 fi
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4004 $as_echo "$INSTALL" >&6; }
4005
4006 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4007 # It thinks the first close brace ends the variable substitution.
4008 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4009
4010 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4011
4012 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4013
4014 # Expand $ac_aux_dir to an absolute path.
4015 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4016
4017 ac_ext=c
4018 ac_cpp='$CPP $CPPFLAGS'
4019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4022 if test -n "$ac_tool_prefix"; then
4023   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4024 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4026 $as_echo_n "checking for $ac_word... " >&6; }
4027 if ${ac_cv_prog_CC+:} false; then :
4028   $as_echo_n "(cached) " >&6
4029 else
4030   if test -n "$CC"; then
4031   ac_cv_prog_CC="$CC" # Let the user override the test.
4032 else
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH
4035 do
4036   IFS=$as_save_IFS
4037   test -z "$as_dir" && as_dir=.
4038     for ac_exec_ext in '' $ac_executable_extensions; do
4039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4040     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4042     break 2
4043   fi
4044 done
4045   done
4046 IFS=$as_save_IFS
4047
4048 fi
4049 fi
4050 CC=$ac_cv_prog_CC
4051 if test -n "$CC"; then
4052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4053 $as_echo "$CC" >&6; }
4054 else
4055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4056 $as_echo "no" >&6; }
4057 fi
4058
4059
4060 fi
4061 if test -z "$ac_cv_prog_CC"; then
4062   ac_ct_CC=$CC
4063   # Extract the first word of "gcc", so it can be a program name with args.
4064 set dummy gcc; ac_word=$2
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4066 $as_echo_n "checking for $ac_word... " >&6; }
4067 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4068   $as_echo_n "(cached) " >&6
4069 else
4070   if test -n "$ac_ct_CC"; then
4071   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4072 else
4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074 for as_dir in $PATH
4075 do
4076   IFS=$as_save_IFS
4077   test -z "$as_dir" && as_dir=.
4078     for ac_exec_ext in '' $ac_executable_extensions; do
4079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4080     ac_cv_prog_ac_ct_CC="gcc"
4081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4082     break 2
4083   fi
4084 done
4085   done
4086 IFS=$as_save_IFS
4087
4088 fi
4089 fi
4090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4091 if test -n "$ac_ct_CC"; then
4092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4093 $as_echo "$ac_ct_CC" >&6; }
4094 else
4095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096 $as_echo "no" >&6; }
4097 fi
4098
4099   if test "x$ac_ct_CC" = x; then
4100     CC=""
4101   else
4102     case $cross_compiling:$ac_tool_warned in
4103 yes:)
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4106 ac_tool_warned=yes ;;
4107 esac
4108     CC=$ac_ct_CC
4109   fi
4110 else
4111   CC="$ac_cv_prog_CC"
4112 fi
4113
4114 if test -z "$CC"; then
4115           if test -n "$ac_tool_prefix"; then
4116     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4117 set dummy ${ac_tool_prefix}cc; ac_word=$2
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4119 $as_echo_n "checking for $ac_word... " >&6; }
4120 if ${ac_cv_prog_CC+:} false; then :
4121   $as_echo_n "(cached) " >&6
4122 else
4123   if test -n "$CC"; then
4124   ac_cv_prog_CC="$CC" # Let the user override the test.
4125 else
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH
4128 do
4129   IFS=$as_save_IFS
4130   test -z "$as_dir" && as_dir=.
4131     for ac_exec_ext in '' $ac_executable_extensions; do
4132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4133     ac_cv_prog_CC="${ac_tool_prefix}cc"
4134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4135     break 2
4136   fi
4137 done
4138   done
4139 IFS=$as_save_IFS
4140
4141 fi
4142 fi
4143 CC=$ac_cv_prog_CC
4144 if test -n "$CC"; then
4145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4146 $as_echo "$CC" >&6; }
4147 else
4148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4149 $as_echo "no" >&6; }
4150 fi
4151
4152
4153   fi
4154 fi
4155 if test -z "$CC"; then
4156   # Extract the first word of "cc", so it can be a program name with args.
4157 set dummy cc; ac_word=$2
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4159 $as_echo_n "checking for $ac_word... " >&6; }
4160 if ${ac_cv_prog_CC+:} false; then :
4161   $as_echo_n "(cached) " >&6
4162 else
4163   if test -n "$CC"; then
4164   ac_cv_prog_CC="$CC" # Let the user override the test.
4165 else
4166   ac_prog_rejected=no
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH
4169 do
4170   IFS=$as_save_IFS
4171   test -z "$as_dir" && as_dir=.
4172     for ac_exec_ext in '' $ac_executable_extensions; do
4173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4174     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4175        ac_prog_rejected=yes
4176        continue
4177      fi
4178     ac_cv_prog_CC="cc"
4179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4180     break 2
4181   fi
4182 done
4183   done
4184 IFS=$as_save_IFS
4185
4186 if test $ac_prog_rejected = yes; then
4187   # We found a bogon in the path, so make sure we never use it.
4188   set dummy $ac_cv_prog_CC
4189   shift
4190   if test $# != 0; then
4191     # We chose a different compiler from the bogus one.
4192     # However, it has the same basename, so the bogon will be chosen
4193     # first if we set CC to just the basename; use the full file name.
4194     shift
4195     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4196   fi
4197 fi
4198 fi
4199 fi
4200 CC=$ac_cv_prog_CC
4201 if test -n "$CC"; then
4202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4203 $as_echo "$CC" >&6; }
4204 else
4205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206 $as_echo "no" >&6; }
4207 fi
4208
4209
4210 fi
4211 if test -z "$CC"; then
4212   if test -n "$ac_tool_prefix"; then
4213   for ac_prog in cl.exe
4214   do
4215     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4216 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218 $as_echo_n "checking for $ac_word... " >&6; }
4219 if ${ac_cv_prog_CC+:} false; then :
4220   $as_echo_n "(cached) " >&6
4221 else
4222   if test -n "$CC"; then
4223   ac_cv_prog_CC="$CC" # Let the user override the test.
4224 else
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH
4227 do
4228   IFS=$as_save_IFS
4229   test -z "$as_dir" && as_dir=.
4230     for ac_exec_ext in '' $ac_executable_extensions; do
4231   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4232     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4234     break 2
4235   fi
4236 done
4237   done
4238 IFS=$as_save_IFS
4239
4240 fi
4241 fi
4242 CC=$ac_cv_prog_CC
4243 if test -n "$CC"; then
4244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4245 $as_echo "$CC" >&6; }
4246 else
4247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248 $as_echo "no" >&6; }
4249 fi
4250
4251
4252     test -n "$CC" && break
4253   done
4254 fi
4255 if test -z "$CC"; then
4256   ac_ct_CC=$CC
4257   for ac_prog in cl.exe
4258 do
4259   # Extract the first word of "$ac_prog", so it can be a program name with args.
4260 set dummy $ac_prog; ac_word=$2
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262 $as_echo_n "checking for $ac_word... " >&6; }
4263 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4264   $as_echo_n "(cached) " >&6
4265 else
4266   if test -n "$ac_ct_CC"; then
4267   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4268 else
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 for as_dir in $PATH
4271 do
4272   IFS=$as_save_IFS
4273   test -z "$as_dir" && as_dir=.
4274     for ac_exec_ext in '' $ac_executable_extensions; do
4275   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4276     ac_cv_prog_ac_ct_CC="$ac_prog"
4277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4278     break 2
4279   fi
4280 done
4281   done
4282 IFS=$as_save_IFS
4283
4284 fi
4285 fi
4286 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4287 if test -n "$ac_ct_CC"; then
4288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4289 $as_echo "$ac_ct_CC" >&6; }
4290 else
4291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292 $as_echo "no" >&6; }
4293 fi
4294
4295
4296   test -n "$ac_ct_CC" && break
4297 done
4298
4299   if test "x$ac_ct_CC" = x; then
4300     CC=""
4301   else
4302     case $cross_compiling:$ac_tool_warned in
4303 yes:)
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4306 ac_tool_warned=yes ;;
4307 esac
4308     CC=$ac_ct_CC
4309   fi
4310 fi
4311
4312 fi
4313
4314
4315 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4317 as_fn_error $? "no acceptable C compiler found in \$PATH
4318 See \`config.log' for more details" "$LINENO" 5; }
4319
4320 # Provide some information about the compiler.
4321 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4322 set X $ac_compile
4323 ac_compiler=$2
4324 for ac_option in --version -v -V -qversion; do
4325   { { ac_try="$ac_compiler $ac_option >&5"
4326 case "(($ac_try" in
4327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328   *) ac_try_echo=$ac_try;;
4329 esac
4330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4331 $as_echo "$ac_try_echo"; } >&5
4332   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4333   ac_status=$?
4334   if test -s conftest.err; then
4335     sed '10a\
4336 ... rest of stderr output deleted ...
4337          10q' conftest.err >conftest.er1
4338     cat conftest.er1 >&5
4339   fi
4340   rm -f conftest.er1 conftest.err
4341   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4342   test $ac_status = 0; }
4343 done
4344
4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h.  */
4347
4348 int main (void)
4349 {
4350
4351  ;
4352  return 0;
4353 }
4354 _ACEOF
4355 ac_clean_files_save=$ac_clean_files
4356 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4357 # Try to create an executable without -o first, disregard a.out.
4358 # It will help us diagnose broken compilers, and finding out an intuition
4359 # of exeext.
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4361 $as_echo_n "checking whether the C compiler works... " >&6; }
4362 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4363
4364 # The possible output files:
4365 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4366
4367 ac_rmfiles=
4368 for ac_file in $ac_files
4369 do
4370   case $ac_file in
4371     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4372     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4373   esac
4374 done
4375 rm -f $ac_rmfiles
4376
4377 if { { ac_try="$ac_link_default"
4378 case "(($ac_try" in
4379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380   *) ac_try_echo=$ac_try;;
4381 esac
4382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4383 $as_echo "$ac_try_echo"; } >&5
4384   (eval "$ac_link_default") 2>&5
4385   ac_status=$?
4386   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4387   test $ac_status = 0; }; then :
4388   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4389 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4390 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4391 # so that the user can short-circuit this test for compilers unknown to
4392 # Autoconf.
4393 for ac_file in $ac_files ''
4394 do
4395   test -f "$ac_file" || continue
4396   case $ac_file in
4397     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4398         ;;
4399     [ab].out )
4400         # We found the default executable, but exeext='' is most
4401         # certainly right.
4402         break;;
4403     *.* )
4404         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4405         then :; else
4406            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4407         fi
4408         # We set ac_cv_exeext here because the later test for it is not
4409         # safe: cross compilers may not add the suffix if given an `-o'
4410         # argument, so we may need to know it at that point already.
4411         # Even if this section looks crufty: it has the advantage of
4412         # actually working.
4413         break;;
4414     * )
4415         break;;
4416   esac
4417 done
4418 test "$ac_cv_exeext" = no && ac_cv_exeext=
4419
4420 else
4421   ac_file=''
4422 fi
4423 if test -z "$ac_file"; then :
4424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4425 $as_echo "no" >&6; }
4426 $as_echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.$ac_ext >&5
4428
4429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4431 as_fn_error 77 "C compiler cannot create executables
4432 See \`config.log' for more details" "$LINENO" 5; }
4433 else
4434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4435 $as_echo "yes" >&6; }
4436 fi
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4438 $as_echo_n "checking for C compiler default output file name... " >&6; }
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4440 $as_echo "$ac_file" >&6; }
4441 ac_exeext=$ac_cv_exeext
4442
4443 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4444 ac_clean_files=$ac_clean_files_save
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4446 $as_echo_n "checking for suffix of executables... " >&6; }
4447 if { { ac_try="$ac_link"
4448 case "(($ac_try" in
4449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450   *) ac_try_echo=$ac_try;;
4451 esac
4452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4453 $as_echo "$ac_try_echo"; } >&5
4454   (eval "$ac_link") 2>&5
4455   ac_status=$?
4456   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4457   test $ac_status = 0; }; then :
4458   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4459 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4460 # work properly (i.e., refer to `conftest.exe'), while it won't with
4461 # `rm'.
4462 for ac_file in conftest.exe conftest conftest.*; do
4463   test -f "$ac_file" || continue
4464   case $ac_file in
4465     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4466     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4467           break;;
4468     * ) break;;
4469   esac
4470 done
4471 else
4472   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4474 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4475 See \`config.log' for more details" "$LINENO" 5; }
4476 fi
4477 rm -f conftest conftest$ac_cv_exeext
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4479 $as_echo "$ac_cv_exeext" >&6; }
4480
4481 rm -f conftest.$ac_ext
4482 EXEEXT=$ac_cv_exeext
4483 ac_exeext=$EXEEXT
4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h.  */
4486 #include <stdio.h>
4487 int main (void)
4488 {
4489 FILE *f = fopen ("conftest.out", "w");
4490  return ferror (f) || fclose (f) != 0;
4491
4492  ;
4493  return 0;
4494 }
4495 _ACEOF
4496 ac_clean_files="$ac_clean_files conftest.out"
4497 # Check that the compiler produces executables we can run.  If not, either
4498 # the compiler is broken, or we cross compile.
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4500 $as_echo_n "checking whether we are cross compiling... " >&6; }
4501 if test "$cross_compiling" != yes; then
4502   { { ac_try="$ac_link"
4503 case "(($ac_try" in
4504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505   *) ac_try_echo=$ac_try;;
4506 esac
4507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4508 $as_echo "$ac_try_echo"; } >&5
4509   (eval "$ac_link") 2>&5
4510   ac_status=$?
4511   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4512   test $ac_status = 0; }
4513   if { ac_try='./conftest$ac_cv_exeext'
4514   { { case "(($ac_try" in
4515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516   *) ac_try_echo=$ac_try;;
4517 esac
4518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4519 $as_echo "$ac_try_echo"; } >&5
4520   (eval "$ac_try") 2>&5
4521   ac_status=$?
4522   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4523   test $ac_status = 0; }; }; then
4524     cross_compiling=no
4525   else
4526     if test "$cross_compiling" = maybe; then
4527         cross_compiling=yes
4528     else
4529         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4531 as_fn_error $? "cannot run C compiled programs.
4532 If you meant to cross compile, use \`--host'.
4533 See \`config.log' for more details" "$LINENO" 5; }
4534     fi
4535   fi
4536 fi
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4538 $as_echo "$cross_compiling" >&6; }
4539
4540 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4541 ac_clean_files=$ac_clean_files_save
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4543 $as_echo_n "checking for suffix of object files... " >&6; }
4544 if ${ac_cv_objext+:} false; then :
4545   $as_echo_n "(cached) " >&6
4546 else
4547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h.  */
4549
4550 int main (void)
4551 {
4552
4553  ;
4554  return 0;
4555 }
4556 _ACEOF
4557 rm -f conftest.o conftest.obj
4558 if { { ac_try="$ac_compile"
4559 case "(($ac_try" in
4560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4561   *) ac_try_echo=$ac_try;;
4562 esac
4563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4564 $as_echo "$ac_try_echo"; } >&5
4565   (eval "$ac_compile") 2>&5
4566   ac_status=$?
4567   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4568   test $ac_status = 0; }; then :
4569   for ac_file in conftest.o conftest.obj conftest.*; do
4570   test -f "$ac_file" || continue;
4571   case $ac_file in
4572     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4573     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4574        break;;
4575   esac
4576 done
4577 else
4578   $as_echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4580
4581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4583 as_fn_error $? "cannot compute suffix of object files: cannot compile
4584 See \`config.log' for more details" "$LINENO" 5; }
4585 fi
4586 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4587 fi
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4589 $as_echo "$ac_cv_objext" >&6; }
4590 OBJEXT=$ac_cv_objext
4591 ac_objext=$OBJEXT
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4593 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4594 if ${ac_cv_c_compiler_gnu+:} false; then :
4595   $as_echo_n "(cached) " >&6
4596 else
4597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h.  */
4599
4600 int main (void)
4601 {
4602 #ifndef __GNUC__
4603        choke me
4604 #endif
4605
4606  ;
4607  return 0;
4608 }
4609 _ACEOF
4610 if ac_fn_c_try_compile "$LINENO"; then :
4611   ac_compiler_gnu=yes
4612 else
4613   ac_compiler_gnu=no
4614 fi
4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4617
4618 fi
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4620 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4621 if test $ac_compiler_gnu = yes; then
4622   GCC=yes
4623 else
4624   GCC=
4625 fi
4626 ac_test_CFLAGS=${CFLAGS+set}
4627 ac_save_CFLAGS=$CFLAGS
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4629 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4630 if ${ac_cv_prog_cc_g+:} false; then :
4631   $as_echo_n "(cached) " >&6
4632 else
4633   ac_save_c_werror_flag=$ac_c_werror_flag
4634    ac_c_werror_flag=yes
4635    ac_cv_prog_cc_g=no
4636    CFLAGS="-g"
4637    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h.  */
4639
4640 int main (void)
4641 {
4642
4643  ;
4644  return 0;
4645 }
4646 _ACEOF
4647 if ac_fn_c_try_compile "$LINENO"; then :
4648   ac_cv_prog_cc_g=yes
4649 else
4650   CFLAGS=""
4651       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h.  */
4653
4654 int main (void)
4655 {
4656
4657  ;
4658  return 0;
4659 }
4660 _ACEOF
4661 if ac_fn_c_try_compile "$LINENO"; then :
4662
4663 else
4664   ac_c_werror_flag=$ac_save_c_werror_flag
4665          CFLAGS="-g"
4666          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h.  */
4668
4669 int main (void)
4670 {
4671
4672  ;
4673  return 0;
4674 }
4675 _ACEOF
4676 if ac_fn_c_try_compile "$LINENO"; then :
4677   ac_cv_prog_cc_g=yes
4678 fi
4679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4680 fi
4681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682 fi
4683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684    ac_c_werror_flag=$ac_save_c_werror_flag
4685 fi
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4687 $as_echo "$ac_cv_prog_cc_g" >&6; }
4688 if test "$ac_test_CFLAGS" = set; then
4689   CFLAGS=$ac_save_CFLAGS
4690 elif test $ac_cv_prog_cc_g = yes; then
4691   if test "$GCC" = yes; then
4692     CFLAGS="-g -O2"
4693   else
4694     CFLAGS="-g"
4695   fi
4696 else
4697   if test "$GCC" = yes; then
4698     CFLAGS="-O2"
4699   else
4700     CFLAGS=
4701   fi
4702 fi
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4704 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4705 if ${ac_cv_prog_cc_c89+:} false; then :
4706   $as_echo_n "(cached) " >&6
4707 else
4708   ac_cv_prog_cc_c89=no
4709 ac_save_CC=$CC
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h.  */
4712 #include <stdarg.h>
4713 #include <stdio.h>
4714 struct stat;
4715 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4716 struct buf { int x; };
4717 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4718 static char *e (p, i)
4719      char **p;
4720      int i;
4721 {
4722   return p[i];
4723 }
4724 static char *f (char * (*g) (char **, int), char **p, ...)
4725 {
4726   char *s;
4727   va_list v;
4728   va_start (v,p);
4729   s = g (p, va_arg (v,int));
4730   va_end (v);
4731   return s;
4732 }
4733
4734 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4735    function prototypes and stuff, but not '\xHH' hex character constants.
4736    These don't provoke an error unfortunately, instead are silently treated
4737    as 'x'.  The following induces an error, until -std is added to get
4738    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4739    array size at least.  It's necessary to write '\x00'==0 to get something
4740    that's true only with -std.  */
4741 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4742
4743 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4744    inside strings and character constants.  */
4745 #define FOO(x) 'x'
4746 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4747
4748 int test (int i, double x);
4749 struct s1 {int (*f) (int a);};
4750 struct s2 {int (*f) (double a);};
4751 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4752 int argc;
4753 char **argv;
4754 int main (void)
4755 {
4756 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4757  ;
4758  return 0;
4759 }
4760 _ACEOF
4761 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4762         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4763 do
4764   CC="$ac_save_CC $ac_arg"
4765   if ac_fn_c_try_compile "$LINENO"; then :
4766   ac_cv_prog_cc_c89=$ac_arg
4767 fi
4768 rm -f core conftest.err conftest.$ac_objext
4769   test "x$ac_cv_prog_cc_c89" != "xno" && break
4770 done
4771 rm -f conftest.$ac_ext
4772 CC=$ac_save_CC
4773
4774 fi
4775 # AC_CACHE_VAL
4776 case "x$ac_cv_prog_cc_c89" in
4777   x)
4778     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4779 $as_echo "none needed" >&6; } ;;
4780   xno)
4781     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4782 $as_echo "unsupported" >&6; } ;;
4783   *)
4784     CC="$CC $ac_cv_prog_cc_c89"
4785     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4786 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4787 esac
4788 if test "x$ac_cv_prog_cc_c89" != xno; then :
4789
4790 fi
4791
4792 ac_ext=c
4793 ac_cpp='$CPP $CPPFLAGS'
4794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4797
4798 ac_ext=c
4799 ac_cpp='$CPP $CPPFLAGS'
4800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4804 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4805 if ${am_cv_prog_cc_c_o+:} false; then :
4806   $as_echo_n "(cached) " >&6
4807 else
4808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809 /* end confdefs.h.  */
4810
4811 int main (void)
4812 {
4813
4814  ;
4815  return 0;
4816 }
4817 _ACEOF
4818   # Make sure it works both with $CC and with simple cc.
4819   # Following AC_PROG_CC_C_O, we do the test twice because some
4820   # compilers refuse to overwrite an existing .o file with -o,
4821   # though they will create one.
4822   am_cv_prog_cc_c_o=yes
4823   for am_i in 1 2; do
4824     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4825    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4826    ac_status=$?
4827    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828    (exit $ac_status); } \
4829          && test -f conftest2.$ac_objext; then
4830       : OK
4831     else
4832       am_cv_prog_cc_c_o=no
4833       break
4834     fi
4835   done
4836   rm -f core conftest*
4837   unset am_i
4838 fi
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4840 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4841 if test "$am_cv_prog_cc_c_o" != yes; then
4842    # Losing compiler, so override with the script.
4843    # FIXME: It is wrong to rewrite CC.
4844    # But if we don't then we get into trouble of one sort or another.
4845    # A longer-term fix would be to have automake use am__CC in this case,
4846    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4847    CC="$am_aux_dir/compile $CC"
4848 fi
4849 ac_ext=c
4850 ac_cpp='$CPP $CPPFLAGS'
4851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4854
4855
4856
4857 ac_ext=c
4858 ac_cpp='$CPP $CPPFLAGS'
4859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4863 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4864 # On Suns, sometimes $CPP names a directory.
4865 if test -n "$CPP" && test -d "$CPP"; then
4866   CPP=
4867 fi
4868 if test -z "$CPP"; then
4869   if ${ac_cv_prog_CPP+:} false; then :
4870   $as_echo_n "(cached) " >&6
4871 else
4872       # Double quotes because CPP needs to be expanded
4873     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4874     do
4875       ac_preproc_ok=false
4876 for ac_c_preproc_warn_flag in '' yes
4877 do
4878   # Use a header file that comes with gcc, so configuring glibc
4879   # with a fresh cross-compiler works.
4880   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4881   # <limits.h> exists even on freestanding compilers.
4882   # On the NeXT, cc -E runs the code through the compiler's parser,
4883   # not just through cpp. "Syntax error" is here to catch this case.
4884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h.  */
4886 #ifdef __STDC__
4887 # include <limits.h>
4888 #else
4889 # include <assert.h>
4890 #endif
4891                      Syntax error
4892 _ACEOF
4893 if ac_fn_c_try_cpp "$LINENO"; then :
4894
4895 else
4896   # Broken: fails on valid input.
4897 continue
4898 fi
4899 rm -f conftest.err conftest.i conftest.$ac_ext
4900
4901   # OK, works on sane cases.  Now check whether nonexistent headers
4902   # can be detected and how.
4903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h.  */
4905 #include <ac_nonexistent.h>
4906 _ACEOF
4907 if ac_fn_c_try_cpp "$LINENO"; then :
4908   # Broken: success on invalid input.
4909 continue
4910 else
4911   # Passes both tests.
4912 ac_preproc_ok=:
4913 break
4914 fi
4915 rm -f conftest.err conftest.i conftest.$ac_ext
4916
4917 done
4918 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4919 rm -f conftest.i conftest.err conftest.$ac_ext
4920 if $ac_preproc_ok; then :
4921   break
4922 fi
4923
4924     done
4925     ac_cv_prog_CPP=$CPP
4926
4927 fi
4928   CPP=$ac_cv_prog_CPP
4929 else
4930   ac_cv_prog_CPP=$CPP
4931 fi
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4933 $as_echo "$CPP" >&6; }
4934 ac_preproc_ok=false
4935 for ac_c_preproc_warn_flag in '' yes
4936 do
4937   # Use a header file that comes with gcc, so configuring glibc
4938   # with a fresh cross-compiler works.
4939   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4940   # <limits.h> exists even on freestanding compilers.
4941   # On the NeXT, cc -E runs the code through the compiler's parser,
4942   # not just through cpp. "Syntax error" is here to catch this case.
4943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h.  */
4945 #ifdef __STDC__
4946 # include <limits.h>
4947 #else
4948 # include <assert.h>
4949 #endif
4950                      Syntax error
4951 _ACEOF
4952 if ac_fn_c_try_cpp "$LINENO"; then :
4953
4954 else
4955   # Broken: fails on valid input.
4956 continue
4957 fi
4958 rm -f conftest.err conftest.i conftest.$ac_ext
4959
4960   # OK, works on sane cases.  Now check whether nonexistent headers
4961   # can be detected and how.
4962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h.  */
4964 #include <ac_nonexistent.h>
4965 _ACEOF
4966 if ac_fn_c_try_cpp "$LINENO"; then :
4967   # Broken: success on invalid input.
4968 continue
4969 else
4970   # Passes both tests.
4971 ac_preproc_ok=:
4972 break
4973 fi
4974 rm -f conftest.err conftest.i conftest.$ac_ext
4975
4976 done
4977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4978 rm -f conftest.i conftest.err conftest.$ac_ext
4979 if $ac_preproc_ok; then :
4980
4981 else
4982   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4984 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4985 See \`config.log' for more details" "$LINENO" 5; }
4986 fi
4987
4988 ac_ext=c
4989 ac_cpp='$CPP $CPPFLAGS'
4990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4993
4994
4995   IFS=$xc_prog_cc_prev_IFS
4996   LIBS=$xc_prog_cc_prev_LIBS
4997   CFLAGS=$xc_prog_cc_prev_CFLAGS
4998   LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4999   CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
5000
5001
5002
5003
5004
5005
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5007 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5008 if ${ac_cv_path_SED+:} false; then :
5009   $as_echo_n "(cached) " >&6
5010 else
5011             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5012      for ac_i in 1 2 3 4 5 6 7; do
5013        ac_script="$ac_script$as_nl$ac_script"
5014      done
5015      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5016      { ac_script=; unset ac_script;}
5017      if test -z "$SED"; then
5018   ac_path_SED_found=false
5019   # Loop through the user's path and test for each of PROGNAME-LIST
5020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021 for as_dir in $PATH
5022 do
5023   IFS=$as_save_IFS
5024   test -z "$as_dir" && as_dir=.
5025     for ac_prog in sed gsed; do
5026     for ac_exec_ext in '' $ac_executable_extensions; do
5027       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5028       as_fn_executable_p "$ac_path_SED" || continue
5029 # Check for GNU ac_path_SED and select it if it is found.
5030   # Check for GNU $ac_path_SED
5031 case `"$ac_path_SED" --version 2>&1` in
5032 *GNU*)
5033   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5034 *)
5035   ac_count=0
5036   $as_echo_n 0123456789 >"conftest.in"
5037   while :
5038   do
5039     cat "conftest.in" "conftest.in" >"conftest.tmp"
5040     mv "conftest.tmp" "conftest.in"
5041     cp "conftest.in" "conftest.nl"
5042     $as_echo '' >> "conftest.nl"
5043     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5044     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5045     as_fn_arith $ac_count + 1 && ac_count=$as_val
5046     if test $ac_count -gt ${ac_path_SED_max-0}; then
5047       # Best one so far, save it but keep looking for a better one
5048       ac_cv_path_SED="$ac_path_SED"
5049       ac_path_SED_max=$ac_count
5050     fi
5051     # 10*(2^10) chars as input seems more than enough
5052     test $ac_count -gt 10 && break
5053   done
5054   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5055 esac
5056
5057       $ac_path_SED_found && break 3
5058     done
5059   done
5060   done
5061 IFS=$as_save_IFS
5062   if test -z "$ac_cv_path_SED"; then
5063     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5064   fi
5065 else
5066   ac_cv_path_SED=$SED
5067 fi
5068
5069 fi
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5071 $as_echo "$ac_cv_path_SED" >&6; }
5072  SED="$ac_cv_path_SED"
5073   rm -f conftest.sed
5074
5075 if  test "$GCC" = "yes" ; then :
5076
5077
5078
5079         # allow to override gcov location
5080
5081 # Check whether --with-gcov was given.
5082 if test "${with_gcov+set}" = set; then :
5083   withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
5084 else
5085   _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
5086 fi
5087
5088
5089         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
5090 $as_echo_n "checking whether to build with code coverage support... " >&6; }
5091         # Check whether --enable-code-coverage was given.
5092 if test "${enable_code_coverage+set}" = set; then :
5093   enableval=$enable_code_coverage;
5094 else
5095   enable_code_coverage=no
5096 fi
5097
5098
5099          if test x$enable_code_coverage = xyes; then
5100   CODE_COVERAGE_ENABLED_TRUE=
5101   CODE_COVERAGE_ENABLED_FALSE='#'
5102 else
5103   CODE_COVERAGE_ENABLED_TRUE='#'
5104   CODE_COVERAGE_ENABLED_FALSE=
5105 fi
5106
5107         CODE_COVERAGE_ENABLED=$enable_code_coverage
5108
5109         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
5110 $as_echo "$enable_code_coverage" >&6; }
5111
5112         if  test "$enable_code_coverage" = "yes" ; then :
5113
5114                 # check for gcov
5115                 if test -n "$ac_tool_prefix"; then
5116   # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
5117 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5119 $as_echo_n "checking for $ac_word... " >&6; }
5120 if ${ac_cv_prog_GCOV+:} false; then :
5121   $as_echo_n "(cached) " >&6
5122 else
5123   if test -n "$GCOV"; then
5124   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
5125 else
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 for as_dir in $PATH
5128 do
5129   IFS=$as_save_IFS
5130   test -z "$as_dir" && as_dir=.
5131     for ac_exec_ext in '' $ac_executable_extensions; do
5132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5133     ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
5134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5135     break 2
5136   fi
5137 done
5138   done
5139 IFS=$as_save_IFS
5140
5141 fi
5142 fi
5143 GCOV=$ac_cv_prog_GCOV
5144 if test -n "$GCOV"; then
5145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5146 $as_echo "$GCOV" >&6; }
5147 else
5148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149 $as_echo "no" >&6; }
5150 fi
5151
5152
5153 fi
5154 if test -z "$ac_cv_prog_GCOV"; then
5155   ac_ct_GCOV=$GCOV
5156   # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
5157 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159 $as_echo_n "checking for $ac_word... " >&6; }
5160 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
5161   $as_echo_n "(cached) " >&6
5162 else
5163   if test -n "$ac_ct_GCOV"; then
5164   ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
5165 else
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH
5168 do
5169   IFS=$as_save_IFS
5170   test -z "$as_dir" && as_dir=.
5171     for ac_exec_ext in '' $ac_executable_extensions; do
5172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5173     ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
5174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175     break 2
5176   fi
5177 done
5178   done
5179 IFS=$as_save_IFS
5180
5181 fi
5182 fi
5183 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
5184 if test -n "$ac_ct_GCOV"; then
5185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
5186 $as_echo "$ac_ct_GCOV" >&6; }
5187 else
5188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5190 fi
5191
5192   if test "x$ac_ct_GCOV" = x; then
5193     GCOV=":"
5194   else
5195     case $cross_compiling:$ac_tool_warned in
5196 yes:)
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5199 ac_tool_warned=yes ;;
5200 esac
5201     GCOV=$ac_ct_GCOV
5202   fi
5203 else
5204   GCOV="$ac_cv_prog_GCOV"
5205 fi
5206
5207                 if test "X$GCOV" = "X:"; then :
5208   as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
5209 fi
5210
5211
5212                                 if  test "$GCC" = "no" ; then :
5213
5214                         as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
5215
5216 fi
5217
5218                 # Extract the first word of "lcov", so it can be a program name with args.
5219 set dummy lcov; ac_word=$2
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221 $as_echo_n "checking for $ac_word... " >&6; }
5222 if ${ac_cv_prog_LCOV+:} false; then :
5223   $as_echo_n "(cached) " >&6
5224 else
5225   if test -n "$LCOV"; then
5226   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5227 else
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH
5230 do
5231   IFS=$as_save_IFS
5232   test -z "$as_dir" && as_dir=.
5233     for ac_exec_ext in '' $ac_executable_extensions; do
5234   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5235     ac_cv_prog_LCOV="lcov"
5236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237     break 2
5238   fi
5239 done
5240   done
5241 IFS=$as_save_IFS
5242
5243 fi
5244 fi
5245 LCOV=$ac_cv_prog_LCOV
5246 if test -n "$LCOV"; then
5247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5248 $as_echo "$LCOV" >&6; }
5249 else
5250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5252 fi
5253
5254
5255                 # Extract the first word of "genhtml", so it can be a program name with args.
5256 set dummy genhtml; ac_word=$2
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; }
5259 if ${ac_cv_prog_GENHTML+:} false; then :
5260   $as_echo_n "(cached) " >&6
5261 else
5262   if test -n "$GENHTML"; then
5263   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
5264 else
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 for as_dir in $PATH
5267 do
5268   IFS=$as_save_IFS
5269   test -z "$as_dir" && as_dir=.
5270     for ac_exec_ext in '' $ac_executable_extensions; do
5271   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5272     ac_cv_prog_GENHTML="genhtml"
5273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5274     break 2
5275   fi
5276 done
5277   done
5278 IFS=$as_save_IFS
5279
5280 fi
5281 fi
5282 GENHTML=$ac_cv_prog_GENHTML
5283 if test -n "$GENHTML"; then
5284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
5285 $as_echo "$GENHTML" >&6; }
5286 else
5287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288 $as_echo "no" >&6; }
5289 fi
5290
5291
5292
5293                 if  test -z "$LCOV" ; then :
5294
5295                         as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
5296
5297 fi
5298
5299                 if  test -z "$GENHTML" ; then :
5300
5301                         as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
5302
5303 fi
5304
5305                                                 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
5306                 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
5307                 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
5308                 CODE_COVERAGE_LIBS="-lgcov"
5309                 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
5310
5311
5312
5313
5314
5315
5316
5317                 CODE_COVERAGE_RULES_CHECK='
5318         -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
5319         $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
5320 '
5321                 CODE_COVERAGE_RULES_CAPTURE='
5322         $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
5323         $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
5324         -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
5325         $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
5326         @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
5327 '
5328                 CODE_COVERAGE_RULES_CLEAN='
5329 clean: code-coverage-clean
5330 distclean: code-coverage-clean
5331 code-coverage-clean:
5332         -$(LCOV) --directory $(top_builddir) -z
5333         -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
5334         -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
5335 '
5336
5337 else
5338
5339                 CODE_COVERAGE_RULES_CHECK='
5340         @echo "Need to reconfigure with --enable-code-coverage"
5341 '
5342                 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
5343                 CODE_COVERAGE_RULES_CLEAN=''
5344
5345 fi
5346
5347 CODE_COVERAGE_RULES='
5348 # Code coverage
5349 #
5350 # Optional:
5351 #  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
5352 #    Multiple directories may be specified, separated by whitespace.
5353 #    (Default: $(top_builddir))
5354 #  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
5355 #    by lcov for code coverage. (Default:
5356 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
5357 #  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
5358 #    reports to be created. (Default:
5359 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
5360 #  - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
5361 #    set to 0 to disable it and leave empty to stay with the default.
5362 #    (Default: empty)
5363 #  - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
5364 #    instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
5365 #  - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
5366 #    instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
5367 #  - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
5368 #  - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
5369 #    collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
5370 #  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
5371 #    instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
5372 #  - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
5373 #    lcov instance. (Default: empty)
5374 #  - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
5375 #    instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
5376 #  - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
5377 #    genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
5378 #  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
5379 #    instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
5380 #  - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
5381 #
5382 # The generated report will be titled using the $(PACKAGE_NAME) and
5383 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
5384 # use the git-version-gen script, available online.
5385
5386 # Optional variables
5387 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
5388 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
5389 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
5390 CODE_COVERAGE_BRANCH_COVERAGE ?=
5391 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
5392 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
5393 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
5394 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
5395 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
5396 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
5397 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
5398 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
5399 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
5400 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
5401 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
5402 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
5403 CODE_COVERAGE_IGNORE_PATTERN ?=
5404
5405 GITIGNOREFILES ?=
5406 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
5407
5408 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
5409 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
5410 code_coverage_v_lcov_cap_0 = @echo "  LCOV   --capture"\
5411  $(CODE_COVERAGE_OUTPUT_FILE);
5412 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
5413 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
5414 code_coverage_v_lcov_ign_0 = @echo "  LCOV   --remove /tmp/*"\
5415  $(CODE_COVERAGE_IGNORE_PATTERN);
5416 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
5417 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
5418 code_coverage_v_genhtml_0 = @echo "  GEN   " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
5419 code_coverage_quiet = $(code_coverage_quiet_$(V))
5420 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
5421 code_coverage_quiet_0 = --quiet
5422
5423 # sanitizes the test-name: replaces with underscores: dashes and dots
5424 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
5425
5426 # Use recursive makes in order to ignore errors during check
5427 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
5428
5429 # Capture code coverage data
5430 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
5431
5432 # Hook rule executed before code-coverage-capture, overridable by the user
5433 code-coverage-capture-hook:
5434
5435 '"$CODE_COVERAGE_RULES_CLEAN"'
5436
5437 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
5438 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
5439
5440 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
5441 '
5442
5443
5444
5445
5446 else
5447   # not using GCC so pass a test below - CODE_COVERAGE_ENABLED_TRUE is not zero length
5448   CODE_COVERAGE_ENABLED_TRUE='#'
5449
5450 fi
5451
5452 am__api_version='1.15'
5453
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5455 $as_echo_n "checking whether build environment is sane... " >&6; }
5456 # Reject unsafe characters in $srcdir or the absolute working directory
5457 # name.  Accept space and tab only in the latter.
5458 am_lf='
5459 '
5460 case `pwd` in
5461   *[\\\"\#\$\&\'\`$am_lf]*)
5462     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5463 esac
5464 case $srcdir in
5465   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
5466     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5467 esac
5468
5469 # Do 'set' in a subshell so we don't clobber the current shell's
5470 # arguments.  Must try -L first in case configure is actually a
5471 # symlink; some systems play weird games with the mod time of symlinks
5472 # (eg FreeBSD returns the mod time of the symlink's containing
5473 # directory).
5474 if (
5475    am_has_slept=no
5476    for am_try in 1 2; do
5477      echo "timestamp, slept: $am_has_slept" > conftest.file
5478      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5479      if test "$*" = "X"; then
5480         # -L didn't work.
5481         set X `ls -t "$srcdir/configure" conftest.file`
5482      fi
5483      if test "$*" != "X $srcdir/configure conftest.file" \
5484         && test "$*" != "X conftest.file $srcdir/configure"; then
5485
5486         # If neither matched, then we have a broken ls.  This can happen
5487         # if, for instance, CONFIG_SHELL is bash and it inherits a
5488         # broken ls alias from the environment.  This has actually
5489         # happened.  Such a system could not be considered "sane".
5490         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
5491   alias in your environment" "$LINENO" 5
5492      fi
5493      if test "$2" = conftest.file || test $am_try -eq 2; then
5494        break
5495      fi
5496      # Just in case.
5497      sleep 1
5498      am_has_slept=yes
5499    done
5500    test "$2" = conftest.file
5501    )
5502 then
5503    # Ok.
5504    :
5505 else
5506    as_fn_error $? "newly created file is older than distributed files!
5507 Check your system clock" "$LINENO" 5
5508 fi
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5510 $as_echo "yes" >&6; }
5511 # If we didn't sleep, we still need to ensure time stamps of config.status and
5512 # generated files are strictly newer.
5513 am_sleep_pid=
5514 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5515   ( sleep 1 ) &
5516   am_sleep_pid=$!
5517 fi
5518
5519 rm -f conftest.file
5520
5521 test "$program_prefix" != NONE &&
5522   program_transform_name="s&^&$program_prefix&;$program_transform_name"
5523 # Use a double $ so make ignores it.
5524 test "$program_suffix" != NONE &&
5525   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5526 # Double any \ or $.
5527 # By default was `s,x,x', remove it if useless.
5528 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5529 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5530
5531 if test x"${MISSING+set}" != xset; then
5532   case $am_aux_dir in
5533   *\ * | *\     *)
5534     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5535   *)
5536     MISSING="\${SHELL} $am_aux_dir/missing" ;;
5537   esac
5538 fi
5539 # Use eval to expand $SHELL
5540 if eval "$MISSING --is-lightweight"; then
5541   am_missing_run="$MISSING "
5542 else
5543   am_missing_run=
5544   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5545 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5546 fi
5547
5548 if test x"${install_sh+set}" != xset; then
5549   case $am_aux_dir in
5550   *\ * | *\     *)
5551     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5552   *)
5553     install_sh="\${SHELL} $am_aux_dir/install-sh"
5554   esac
5555 fi
5556
5557 # Installed binaries are usually stripped using 'strip' when the user
5558 # run "make install-strip".  However 'strip' might not be the right
5559 # tool to use in cross-compilation environments, therefore Automake
5560 # will honor the 'STRIP' environment variable to overrule this program.
5561 if test "$cross_compiling" != no; then
5562   if test -n "$ac_tool_prefix"; then
5563   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5564 set dummy ${ac_tool_prefix}strip; ac_word=$2
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566 $as_echo_n "checking for $ac_word... " >&6; }
5567 if ${ac_cv_prog_STRIP+:} false; then :
5568   $as_echo_n "(cached) " >&6
5569 else
5570   if test -n "$STRIP"; then
5571   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5572 else
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 for as_dir in $PATH
5575 do
5576   IFS=$as_save_IFS
5577   test -z "$as_dir" && as_dir=.
5578     for ac_exec_ext in '' $ac_executable_extensions; do
5579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5580     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5582     break 2
5583   fi
5584 done
5585   done
5586 IFS=$as_save_IFS
5587
5588 fi
5589 fi
5590 STRIP=$ac_cv_prog_STRIP
5591 if test -n "$STRIP"; then
5592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5593 $as_echo "$STRIP" >&6; }
5594 else
5595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596 $as_echo "no" >&6; }
5597 fi
5598
5599
5600 fi
5601 if test -z "$ac_cv_prog_STRIP"; then
5602   ac_ct_STRIP=$STRIP
5603   # Extract the first word of "strip", so it can be a program name with args.
5604 set dummy strip; ac_word=$2
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5606 $as_echo_n "checking for $ac_word... " >&6; }
5607 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5608   $as_echo_n "(cached) " >&6
5609 else
5610   if test -n "$ac_ct_STRIP"; then
5611   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5612 else
5613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 for as_dir in $PATH
5615 do
5616   IFS=$as_save_IFS
5617   test -z "$as_dir" && as_dir=.
5618     for ac_exec_ext in '' $ac_executable_extensions; do
5619   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5620     ac_cv_prog_ac_ct_STRIP="strip"
5621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5622     break 2
5623   fi
5624 done
5625   done
5626 IFS=$as_save_IFS
5627
5628 fi
5629 fi
5630 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5631 if test -n "$ac_ct_STRIP"; then
5632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5633 $as_echo "$ac_ct_STRIP" >&6; }
5634 else
5635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636 $as_echo "no" >&6; }
5637 fi
5638
5639   if test "x$ac_ct_STRIP" = x; then
5640     STRIP=":"
5641   else
5642     case $cross_compiling:$ac_tool_warned in
5643 yes:)
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5646 ac_tool_warned=yes ;;
5647 esac
5648     STRIP=$ac_ct_STRIP
5649   fi
5650 else
5651   STRIP="$ac_cv_prog_STRIP"
5652 fi
5653
5654 fi
5655 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5656
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5658 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5659 if test -z "$MKDIR_P"; then
5660   if ${ac_cv_path_mkdir+:} false; then :
5661   $as_echo_n "(cached) " >&6
5662 else
5663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5665 do
5666   IFS=$as_save_IFS
5667   test -z "$as_dir" && as_dir=.
5668     for ac_prog in mkdir gmkdir; do
5669          for ac_exec_ext in '' $ac_executable_extensions; do
5670            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5671            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5672              'mkdir (GNU coreutils) '* | \
5673              'mkdir (coreutils) '* | \
5674              'mkdir (fileutils) '4.1*)
5675                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5676                break 3;;
5677            esac
5678          done
5679        done
5680   done
5681 IFS=$as_save_IFS
5682
5683 fi
5684
5685   test -d ./--version && rmdir ./--version
5686   if test "${ac_cv_path_mkdir+set}" = set; then
5687     MKDIR_P="$ac_cv_path_mkdir -p"
5688   else
5689     # As a last resort, use the slow shell script.  Don't cache a
5690     # value for MKDIR_P within a source directory, because that will
5691     # break other packages using the cache if that directory is
5692     # removed, or if the value is a relative name.
5693     MKDIR_P="$ac_install_sh -d"
5694   fi
5695 fi
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5697 $as_echo "$MKDIR_P" >&6; }
5698
5699 for ac_prog in gawk mawk nawk awk
5700 do
5701   # Extract the first word of "$ac_prog", so it can be a program name with args.
5702 set dummy $ac_prog; ac_word=$2
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704 $as_echo_n "checking for $ac_word... " >&6; }
5705 if ${ac_cv_prog_AWK+:} false; then :
5706   $as_echo_n "(cached) " >&6
5707 else
5708   if test -n "$AWK"; then
5709   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5710 else
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 for as_dir in $PATH
5713 do
5714   IFS=$as_save_IFS
5715   test -z "$as_dir" && as_dir=.
5716     for ac_exec_ext in '' $ac_executable_extensions; do
5717   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5718     ac_cv_prog_AWK="$ac_prog"
5719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5720     break 2
5721   fi
5722 done
5723   done
5724 IFS=$as_save_IFS
5725
5726 fi
5727 fi
5728 AWK=$ac_cv_prog_AWK
5729 if test -n "$AWK"; then
5730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5731 $as_echo "$AWK" >&6; }
5732 else
5733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734 $as_echo "no" >&6; }
5735 fi
5736
5737
5738   test -n "$AWK" && break
5739 done
5740
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5742 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5743 set x ${MAKE-make}
5744 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5745 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5746   $as_echo_n "(cached) " >&6
5747 else
5748   cat >conftest.make <<\_ACEOF
5749 SHELL = /bin/sh
5750 all:
5751         @echo '@@@%%%=$(MAKE)=@@@%%%'
5752 _ACEOF
5753 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5754 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5755   *@@@%%%=?*=@@@%%%*)
5756     eval ac_cv_prog_make_${ac_make}_set=yes;;
5757   *)
5758     eval ac_cv_prog_make_${ac_make}_set=no;;
5759 esac
5760 rm -f conftest.make
5761 fi
5762 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5764 $as_echo "yes" >&6; }
5765   SET_MAKE=
5766 else
5767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768 $as_echo "no" >&6; }
5769   SET_MAKE="MAKE=${MAKE-make}"
5770 fi
5771
5772 rm -rf .tst 2>/dev/null
5773 mkdir .tst 2>/dev/null
5774 if test -d .tst; then
5775   am__leading_dot=.
5776 else
5777   am__leading_dot=_
5778 fi
5779 rmdir .tst 2>/dev/null
5780
5781 DEPDIR="${am__leading_dot}deps"
5782
5783 ac_config_commands="$ac_config_commands depfiles"
5784
5785
5786 am_make=${MAKE-make}
5787 cat > confinc << 'END'
5788 am__doit:
5789         @echo this is the am__doit target
5790 .PHONY: am__doit
5791 END
5792 # If we don't find an include directive, just comment out the code.
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5794 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5795 am__include="#"
5796 am__quote=
5797 _am_result=none
5798 # First try GNU make style include.
5799 echo "include confinc" > confmf
5800 # Ignore all kinds of additional output from 'make'.
5801 case `$am_make -s -f confmf 2> /dev/null` in #(
5802 *the\ am__doit\ target*)
5803   am__include=include
5804   am__quote=
5805   _am_result=GNU
5806   ;;
5807 esac
5808 # Now try BSD make style include.
5809 if test "$am__include" = "#"; then
5810    echo '.include "confinc"' > confmf
5811    case `$am_make -s -f confmf 2> /dev/null` in #(
5812    *the\ am__doit\ target*)
5813      am__include=.include
5814      am__quote="\""
5815      _am_result=BSD
5816      ;;
5817    esac
5818 fi
5819
5820
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5822 $as_echo "$_am_result" >&6; }
5823 rm -f confinc confmf
5824
5825 # Check whether --enable-dependency-tracking was given.
5826 if test "${enable_dependency_tracking+set}" = set; then :
5827   enableval=$enable_dependency_tracking;
5828 fi
5829
5830 if test "x$enable_dependency_tracking" != xno; then
5831   am_depcomp="$ac_aux_dir/depcomp"
5832   AMDEPBACKSLASH='\'
5833   am__nodep='_no'
5834 fi
5835  if test "x$enable_dependency_tracking" != xno; then
5836   AMDEP_TRUE=
5837   AMDEP_FALSE='#'
5838 else
5839   AMDEP_TRUE='#'
5840   AMDEP_FALSE=
5841 fi
5842
5843
5844 ## --------------------------------------- ##
5845 ##  Start of automake initialization code  ##
5846 ## --------------------------------------- ##
5847
5848 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5849   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5850   # is not polluted with repeated "-I."
5851   am__isrc=' -I$(srcdir)'
5852   # test to see if srcdir already configured
5853   if test -f $srcdir/config.status; then
5854     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5855   fi
5856 fi
5857
5858 # test whether we have cygpath
5859 if test -z "$CYGPATH_W"; then
5860   if (cygpath --version) >/dev/null 2>/dev/null; then
5861     CYGPATH_W='cygpath -w'
5862   else
5863     CYGPATH_W=echo
5864   fi
5865 fi
5866
5867
5868 # Define the identity of the package.
5869  PACKAGE='curl'
5870  VERSION='-'
5871
5872
5873 cat >>confdefs.h <<_ACEOF
5874 #define PACKAGE "$PACKAGE"
5875 _ACEOF
5876
5877
5878 cat >>confdefs.h <<_ACEOF
5879 #define VERSION "$VERSION"
5880 _ACEOF
5881
5882 # Some tools Automake needs.
5883
5884 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5885
5886
5887 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5888
5889
5890 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5891
5892
5893 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5894
5895
5896 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5897
5898 # For better backward compatibility.  To be removed once Automake 1.9.x
5899 # dies out for good.  For more background, see:
5900 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5901 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5902 mkdir_p='$(MKDIR_P)'
5903
5904 # We need awk for the "check" target (and possibly the TAP driver).  The
5905 # system "awk" is bad on some platforms.
5906 # Always define AMTAR for backward compatibility.  Yes, it's still used
5907 # in the wild :-(  We should find a proper way to deprecate it ...
5908 AMTAR='$${TAR-tar}'
5909
5910
5911 # We'll loop over all known methods to create a tar archive until one works.
5912 _am_tools='gnutar  pax cpio none'
5913
5914 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5915
5916
5917
5918
5919
5920 depcc="$CC"   am_compiler_list=
5921
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5923 $as_echo_n "checking dependency style of $depcc... " >&6; }
5924 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5925   $as_echo_n "(cached) " >&6
5926 else
5927   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5928   # We make a subdir and do the tests there.  Otherwise we can end up
5929   # making bogus files that we don't know about and never remove.  For
5930   # instance it was reported that on HP-UX the gcc test will end up
5931   # making a dummy file named 'D' -- because '-MD' means "put the output
5932   # in D".
5933   rm -rf conftest.dir
5934   mkdir conftest.dir
5935   # Copy depcomp to subdir because otherwise we won't find it if we're
5936   # using a relative directory.
5937   cp "$am_depcomp" conftest.dir
5938   cd conftest.dir
5939   # We will build objects and dependencies in a subdirectory because
5940   # it helps to detect inapplicable dependency modes.  For instance
5941   # both Tru64's cc and ICC support -MD to output dependencies as a
5942   # side effect of compilation, but ICC will put the dependencies in
5943   # the current directory while Tru64 will put them in the object
5944   # directory.
5945   mkdir sub
5946
5947   am_cv_CC_dependencies_compiler_type=none
5948   if test "$am_compiler_list" = ""; then
5949      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5950   fi
5951   am__universal=false
5952   case " $depcc " in #(
5953      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5954      esac
5955
5956   for depmode in $am_compiler_list; do
5957     # Setup a source with many dependencies, because some compilers
5958     # like to wrap large dependency lists on column 80 (with \), and
5959     # we should not choose a depcomp mode which is confused by this.
5960     #
5961     # We need to recreate these files for each test, as the compiler may
5962     # overwrite some of them when testing with obscure command lines.
5963     # This happens at least with the AIX C compiler.
5964     : > sub/conftest.c
5965     for i in 1 2 3 4 5 6; do
5966       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5967       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5968       # Solaris 10 /bin/sh.
5969       echo '/* dummy */' > sub/conftst$i.h
5970     done
5971     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5972
5973     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5974     # mode.  It turns out that the SunPro C++ compiler does not properly
5975     # handle '-M -o', and we need to detect this.  Also, some Intel
5976     # versions had trouble with output in subdirs.
5977     am__obj=sub/conftest.${OBJEXT-o}
5978     am__minus_obj="-o $am__obj"
5979     case $depmode in
5980     gcc)
5981       # This depmode causes a compiler race in universal mode.
5982       test "$am__universal" = false || continue
5983       ;;
5984     nosideeffect)
5985       # After this tag, mechanisms are not by side-effect, so they'll
5986       # only be used when explicitly requested.
5987       if test "x$enable_dependency_tracking" = xyes; then
5988         continue
5989       else
5990         break
5991       fi
5992       ;;
5993     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5994       # This compiler won't grok '-c -o', but also, the minuso test has
5995       # not run yet.  These depmodes are late enough in the game, and
5996       # so weak that their functioning should not be impacted.
5997       am__obj=conftest.${OBJEXT-o}
5998       am__minus_obj=
5999       ;;
6000     none) break ;;
6001     esac
6002     if depmode=$depmode \
6003        source=sub/conftest.c object=$am__obj \
6004        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6005        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6006          >/dev/null 2>conftest.err &&
6007        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6008        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6009        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6010        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6011       # icc doesn't choke on unknown options, it will just issue warnings
6012       # or remarks (even with -Werror).  So we grep stderr for any message
6013       # that says an option was ignored or not supported.
6014       # When given -MP, icc 7.0 and 7.1 complain thusly:
6015       #   icc: Command line warning: ignoring option '-M'; no argument required
6016       # The diagnosis changed in icc 8.0:
6017       #   icc: Command line remark: option '-MP' not supported
6018       if (grep 'ignoring option' conftest.err ||
6019           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6020         am_cv_CC_dependencies_compiler_type=$depmode
6021         break
6022       fi
6023     fi
6024   done
6025
6026   cd ..
6027   rm -rf conftest.dir
6028 else
6029   am_cv_CC_dependencies_compiler_type=none
6030 fi
6031
6032 fi
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6034 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6035 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6036
6037  if
6038   test "x$enable_dependency_tracking" != xno \
6039   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6040   am__fastdepCC_TRUE=
6041   am__fastdepCC_FALSE='#'
6042 else
6043   am__fastdepCC_TRUE='#'
6044   am__fastdepCC_FALSE=
6045 fi
6046
6047
6048
6049 # POSIX will say in a future version that running "rm -f" with no argument
6050 # is OK; and we want to be able to make that assumption in our Makefile
6051 # recipes.  So use an aggressive probe to check that the usage we want is
6052 # actually supported "in the wild" to an acceptable degree.
6053 # See automake bug#10828.
6054 # To make any issue more visible, cause the running configure to be aborted
6055 # by default if the 'rm' program in use doesn't match our expectations; the
6056 # user can still override this though.
6057 if rm -f && rm -fr && rm -rf; then : OK; else
6058   cat >&2 <<'END'
6059 Oops!
6060
6061 Your 'rm' program seems unable to run without file operands specified
6062 on the command line, even when the '-f' option is present.  This is contrary
6063 to the behaviour of most rm programs out there, and not conforming with
6064 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6065
6066 Please tell bug-automake@gnu.org about your system, including the value
6067 of your $PATH and any error possibly output before this message.  This
6068 can help us improve future automake versions.
6069
6070 END
6071   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6072     echo 'Configuration will proceed anyway, since you have set the' >&2
6073     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6074     echo >&2
6075   else
6076     cat >&2 <<'END'
6077 Aborting the configuration process, to ensure you take notice of the issue.
6078
6079 You can download and install GNU coreutils to get an 'rm' implementation
6080 that behaves properly: <http://www.gnu.org/software/coreutils/>.
6081
6082 If you want to complete the configuration process using your problematic
6083 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6084 to "yes", and re-run configure.
6085
6086 END
6087     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6088   fi
6089 fi
6090
6091 ## ------------------------------------- ##
6092 ##  End of automake initialization code  ##
6093 ## ------------------------------------- ##
6094
6095
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
6097 $as_echo_n "checking curl version... " >&6; }
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
6099 $as_echo "$CURLVERSION" >&6; }
6100
6101
6102
6103 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
6104
6105
6106 PKGADD_PKG="HAXXcurl"
6107 PKGADD_NAME="curl - a client that groks URLs"
6108 PKGADD_VENDOR="curl.haxx.se"
6109
6110
6111
6112
6113     curl_ssl_msg="no      (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,axtls,winssl,darwinssl} )"
6114     curl_ssh_msg="no      (--with-libssh2)"
6115    curl_zlib_msg="no      (--with-zlib)"
6116  curl_brotli_msg="no      (--with-brotli)"
6117     curl_gss_msg="no      (--with-gssapi)"
6118 curl_tls_srp_msg="no      (--enable-tls-srp)"
6119     curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
6120    curl_ipv6_msg="no      (--enable-ipv6)"
6121 curl_unix_sockets_msg="no      (--enable-unix-sockets)"
6122     curl_idn_msg="no      (--with-{libidn2,winidn})"
6123  curl_manual_msg="no      (--enable-manual)"
6124 curl_libcurl_msg="enabled (--disable-libcurl-option)"
6125 curl_verbose_msg="enabled (--disable-verbose)"
6126    curl_sspi_msg="no      (--enable-sspi)"
6127    curl_ldap_msg="no      (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
6128   curl_ldaps_msg="no      (--enable-ldaps)"
6129    curl_rtsp_msg="no      (--enable-rtsp)"
6130    curl_rtmp_msg="no      (--with-librtmp)"
6131   curl_mtlnk_msg="no      (--with-libmetalink)"
6132     curl_psl_msg="no      (--with-libpsl)"
6133
6134     ssl_backends=
6135
6136 INITIAL_LDFLAGS=$LDFLAGS
6137 INITIAL_LIBS=$LIBS
6138
6139
6140 # Make sure we can run config.sub.
6141 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6142   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6143
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6145 $as_echo_n "checking build system type... " >&6; }
6146 if ${ac_cv_build+:} false; then :
6147   $as_echo_n "(cached) " >&6
6148 else
6149   ac_build_alias=$build_alias
6150 test "x$ac_build_alias" = x &&
6151   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6152 test "x$ac_build_alias" = x &&
6153   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6154 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6155   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6156
6157 fi
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6159 $as_echo "$ac_cv_build" >&6; }
6160 case $ac_cv_build in
6161 *-*-*) ;;
6162 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6163 esac
6164 build=$ac_cv_build
6165 ac_save_IFS=$IFS; IFS='-'
6166 set x $ac_cv_build
6167 shift
6168 build_cpu=$1
6169 build_vendor=$2
6170 shift; shift
6171 # Remember, the first character of IFS is used to create $*,
6172 # except with old shells:
6173 build_os=$*
6174 IFS=$ac_save_IFS
6175 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6176
6177
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6179 $as_echo_n "checking host system type... " >&6; }
6180 if ${ac_cv_host+:} false; then :
6181   $as_echo_n "(cached) " >&6
6182 else
6183   if test "x$host_alias" = x; then
6184   ac_cv_host=$ac_cv_build
6185 else
6186   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6187     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6188 fi
6189
6190 fi
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6192 $as_echo "$ac_cv_host" >&6; }
6193 case $ac_cv_host in
6194 *-*-*) ;;
6195 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6196 esac
6197 host=$ac_cv_host
6198 ac_save_IFS=$IFS; IFS='-'
6199 set x $ac_cv_host
6200 shift
6201 host_cpu=$1
6202 host_vendor=$2
6203 shift; shift
6204 # Remember, the first character of IFS is used to create $*,
6205 # except with old shells:
6206 host_os=$*
6207 IFS=$ac_save_IFS
6208 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6209
6210
6211
6212 cat >>confdefs.h <<_ACEOF
6213 #define OS "${host}"
6214 _ACEOF
6215
6216
6217
6218
6219
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6221 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6222 if ${ac_cv_path_GREP+:} false; then :
6223   $as_echo_n "(cached) " >&6
6224 else
6225   if test -z "$GREP"; then
6226   ac_path_GREP_found=false
6227   # Loop through the user's path and test for each of PROGNAME-LIST
6228   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6230 do
6231   IFS=$as_save_IFS
6232   test -z "$as_dir" && as_dir=.
6233     for ac_prog in grep ggrep; do
6234     for ac_exec_ext in '' $ac_executable_extensions; do
6235       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6236       as_fn_executable_p "$ac_path_GREP" || continue
6237 # Check for GNU ac_path_GREP and select it if it is found.
6238   # Check for GNU $ac_path_GREP
6239 case `"$ac_path_GREP" --version 2>&1` in
6240 *GNU*)
6241   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6242 *)
6243   ac_count=0
6244   $as_echo_n 0123456789 >"conftest.in"
6245   while :
6246   do
6247     cat "conftest.in" "conftest.in" >"conftest.tmp"
6248     mv "conftest.tmp" "conftest.in"
6249     cp "conftest.in" "conftest.nl"
6250     $as_echo 'GREP' >> "conftest.nl"
6251     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6252     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6253     as_fn_arith $ac_count + 1 && ac_count=$as_val
6254     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6255       # Best one so far, save it but keep looking for a better one
6256       ac_cv_path_GREP="$ac_path_GREP"
6257       ac_path_GREP_max=$ac_count
6258     fi
6259     # 10*(2^10) chars as input seems more than enough
6260     test $ac_count -gt 10 && break
6261   done
6262   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6263 esac
6264
6265       $ac_path_GREP_found && break 3
6266     done
6267   done
6268   done
6269 IFS=$as_save_IFS
6270   if test -z "$ac_cv_path_GREP"; then
6271     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6272   fi
6273 else
6274   ac_cv_path_GREP=$GREP
6275 fi
6276
6277 fi
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6279 $as_echo "$ac_cv_path_GREP" >&6; }
6280  GREP="$ac_cv_path_GREP"
6281
6282
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6284 $as_echo_n "checking for egrep... " >&6; }
6285 if ${ac_cv_path_EGREP+:} false; then :
6286   $as_echo_n "(cached) " >&6
6287 else
6288   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6289    then ac_cv_path_EGREP="$GREP -E"
6290    else
6291      if test -z "$EGREP"; then
6292   ac_path_EGREP_found=false
6293   # Loop through the user's path and test for each of PROGNAME-LIST
6294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6296 do
6297   IFS=$as_save_IFS
6298   test -z "$as_dir" && as_dir=.
6299     for ac_prog in egrep; do
6300     for ac_exec_ext in '' $ac_executable_extensions; do
6301       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6302       as_fn_executable_p "$ac_path_EGREP" || continue
6303 # Check for GNU ac_path_EGREP and select it if it is found.
6304   # Check for GNU $ac_path_EGREP
6305 case `"$ac_path_EGREP" --version 2>&1` in
6306 *GNU*)
6307   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6308 *)
6309   ac_count=0
6310   $as_echo_n 0123456789 >"conftest.in"
6311   while :
6312   do
6313     cat "conftest.in" "conftest.in" >"conftest.tmp"
6314     mv "conftest.tmp" "conftest.in"
6315     cp "conftest.in" "conftest.nl"
6316     $as_echo 'EGREP' >> "conftest.nl"
6317     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6318     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6319     as_fn_arith $ac_count + 1 && ac_count=$as_val
6320     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6321       # Best one so far, save it but keep looking for a better one
6322       ac_cv_path_EGREP="$ac_path_EGREP"
6323       ac_path_EGREP_max=$ac_count
6324     fi
6325     # 10*(2^10) chars as input seems more than enough
6326     test $ac_count -gt 10 && break
6327   done
6328   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6329 esac
6330
6331       $ac_path_EGREP_found && break 3
6332     done
6333   done
6334   done
6335 IFS=$as_save_IFS
6336   if test -z "$ac_cv_path_EGREP"; then
6337     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6338   fi
6339 else
6340   ac_cv_path_EGREP=$EGREP
6341 fi
6342
6343    fi
6344 fi
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6346 $as_echo "$ac_cv_path_EGREP" >&6; }
6347  EGREP="$ac_cv_path_EGREP"
6348
6349
6350
6351
6352         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6353 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h.  */
6356
6357 #ifdef _AIX
6358    yes_this_is_aix
6359 #endif
6360
6361 _ACEOF
6362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6363   $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6364
6365     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6366 $as_echo "yes" >&6; }
6367     $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6368
6369
6370 else
6371
6372     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373 $as_echo "no" >&6; }
6374
6375 fi
6376 rm -f conftest*
6377
6378
6379
6380
6381     #
6382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6383 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h.  */
6386
6387
6388
6389 int main (void)
6390 {
6391
6392 #ifdef _THREAD_SAFE
6393       int dummy=1;
6394 #else
6395       force compilation error
6396 #endif
6397
6398  ;
6399  return 0;
6400 }
6401
6402 _ACEOF
6403 if ac_fn_c_try_compile "$LINENO"; then :
6404
6405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6406 $as_echo "yes" >&6; }
6407     tmp_thread_safe_initially_defined="yes"
6408
6409 else
6410
6411     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412 $as_echo "no" >&6; }
6413     tmp_thread_safe_initially_defined="no"
6414
6415 fi
6416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6417   #
6418   if test "$tmp_thread_safe_initially_defined" = "no"; then
6419     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6420 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6421
6422   case $host_os in
6423     aix[123].* | aix4.[012].*)
6424             tmp_need_thread_safe="no"
6425       ;;
6426     aix*)
6427             tmp_need_thread_safe="yes"
6428       ;;
6429     *)
6430       tmp_need_thread_safe="no"
6431       ;;
6432   esac
6433
6434     if test "$tmp_need_thread_safe" = "yes"; then
6435       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6436 $as_echo "yes" >&6; }
6437     else
6438       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6440     fi
6441   fi
6442   #
6443   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6444 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6445   if test "$tmp_thread_safe_initially_defined" = "yes" ||
6446     test "$tmp_need_thread_safe" = "yes"; then
6447
6448
6449 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6450
6451 cat >>confdefs.h <<_EOF
6452 #ifndef _THREAD_SAFE
6453 #  define _THREAD_SAFE
6454 #endif
6455 _EOF
6456
6457     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6458 $as_echo "yes" >&6; }
6459   else
6460     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6462   fi
6463   #
6464
6465
6466     #
6467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6468 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h.  */
6471
6472
6473
6474 int main (void)
6475 {
6476
6477 #ifdef _REENTRANT
6478       int dummy=1;
6479 #else
6480       force compilation error
6481 #endif
6482
6483  ;
6484  return 0;
6485 }
6486
6487 _ACEOF
6488 if ac_fn_c_try_compile "$LINENO"; then :
6489
6490     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6491 $as_echo "yes" >&6; }
6492     tmp_reentrant_initially_defined="yes"
6493
6494 else
6495
6496     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6497 $as_echo "no" >&6; }
6498     tmp_reentrant_initially_defined="no"
6499
6500 fi
6501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502   #
6503   if test "$tmp_reentrant_initially_defined" = "no"; then
6504     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6505 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6506
6507   case $host_os in
6508     solaris*)
6509       tmp_need_reentrant="yes"
6510       ;;
6511     *)
6512       tmp_need_reentrant="no"
6513       ;;
6514   esac
6515
6516     if test "$tmp_need_reentrant" = "no"; then
6517
6518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h.  */
6520
6521
6522 #include <errno.h>
6523
6524 int main (void)
6525 {
6526
6527       if(0 != errno)
6528         return 1;
6529
6530  ;
6531  return 0;
6532 }
6533
6534 _ACEOF
6535 if ac_fn_c_try_compile "$LINENO"; then :
6536
6537     tmp_errno="yes"
6538
6539 else
6540
6541     tmp_errno="no"
6542
6543 fi
6544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6545   if test "$tmp_errno" = "yes"; then
6546     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547 /* end confdefs.h.  */
6548
6549
6550 #include <errno.h>
6551
6552 int main (void)
6553 {
6554
6555 #ifdef errno
6556         int dummy=1;
6557 #else
6558         force compilation error
6559 #endif
6560
6561  ;
6562  return 0;
6563 }
6564
6565 _ACEOF
6566 if ac_fn_c_try_compile "$LINENO"; then :
6567
6568       tmp_errno="errno_macro_defined"
6569
6570 else
6571
6572       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h.  */
6574
6575
6576 #define _REENTRANT
6577 #include <errno.h>
6578
6579 int main (void)
6580 {
6581
6582 #ifdef errno
6583           int dummy=1;
6584 #else
6585           force compilation error
6586 #endif
6587
6588  ;
6589  return 0;
6590 }
6591
6592 _ACEOF
6593 if ac_fn_c_try_compile "$LINENO"; then :
6594
6595         tmp_errno="errno_macro_needs_reentrant"
6596         tmp_need_reentrant="yes"
6597
6598 fi
6599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600
6601 fi
6602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6603   fi
6604
6605     fi
6606     if test "$tmp_need_reentrant" = "no"; then
6607
6608   if test "$tmp_need_reentrant" = "no"; then
6609
6610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h.  */
6612
6613
6614 #define gmtime_r innocuous_gmtime_r
6615 #ifdef __STDC__
6616 # include <limits.h>
6617 #else
6618 # include <assert.h>
6619 #endif
6620 #undef gmtime_r
6621 #ifdef __cplusplus
6622 extern "C"
6623 #endif
6624 char gmtime_r ();
6625 #if defined __stub_gmtime_r || defined __stub___gmtime_r
6626 choke me
6627 #endif
6628
6629 int main (void)
6630 {
6631 return gmtime_r ();
6632  ;
6633  return 0;
6634 }
6635
6636 _ACEOF
6637 if ac_fn_c_try_link "$LINENO"; then :
6638
6639     tmp_gmtime_r="yes"
6640
6641 else
6642
6643     tmp_gmtime_r="no"
6644
6645 fi
6646 rm -f core conftest.err conftest.$ac_objext \
6647     conftest$ac_exeext conftest.$ac_ext
6648   if test "$tmp_gmtime_r" = "yes"; then
6649     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6650 /* end confdefs.h.  */
6651
6652 #include <sys/types.h>
6653 #include <time.h>
6654
6655 _ACEOF
6656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6657   $EGREP "gmtime_r" >/dev/null 2>&1; then :
6658
6659       tmp_gmtime_r="proto_declared"
6660
6661 else
6662
6663       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664 /* end confdefs.h.  */
6665
6666 #define _REENTRANT
6667 #include <sys/types.h>
6668 #include <time.h>
6669
6670 _ACEOF
6671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6672   $EGREP "gmtime_r" >/dev/null 2>&1; then :
6673
6674         tmp_gmtime_r="proto_needs_reentrant"
6675         tmp_need_reentrant="yes"
6676
6677 fi
6678 rm -f conftest*
6679
6680
6681 fi
6682 rm -f conftest*
6683
6684   fi
6685
6686   fi
6687   if test "$tmp_need_reentrant" = "no"; then
6688
6689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6690 /* end confdefs.h.  */
6691
6692
6693 #define localtime_r innocuous_localtime_r
6694 #ifdef __STDC__
6695 # include <limits.h>
6696 #else
6697 # include <assert.h>
6698 #endif
6699 #undef localtime_r
6700 #ifdef __cplusplus
6701 extern "C"
6702 #endif
6703 char localtime_r ();
6704 #if defined __stub_localtime_r || defined __stub___localtime_r
6705 choke me
6706 #endif
6707
6708 int main (void)
6709 {
6710 return localtime_r ();
6711  ;
6712  return 0;
6713 }
6714
6715 _ACEOF
6716 if ac_fn_c_try_link "$LINENO"; then :
6717
6718     tmp_localtime_r="yes"
6719
6720 else
6721
6722     tmp_localtime_r="no"
6723
6724 fi
6725 rm -f core conftest.err conftest.$ac_objext \
6726     conftest$ac_exeext conftest.$ac_ext
6727   if test "$tmp_localtime_r" = "yes"; then
6728     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729 /* end confdefs.h.  */
6730
6731 #include <sys/types.h>
6732 #include <time.h>
6733
6734 _ACEOF
6735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6736   $EGREP "localtime_r" >/dev/null 2>&1; then :
6737
6738       tmp_localtime_r="proto_declared"
6739
6740 else
6741
6742       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6743 /* end confdefs.h.  */
6744
6745 #define _REENTRANT
6746 #include <sys/types.h>
6747 #include <time.h>
6748
6749 _ACEOF
6750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6751   $EGREP "localtime_r" >/dev/null 2>&1; then :
6752
6753         tmp_localtime_r="proto_needs_reentrant"
6754         tmp_need_reentrant="yes"
6755
6756 fi
6757 rm -f conftest*
6758
6759
6760 fi
6761 rm -f conftest*
6762
6763   fi
6764
6765   fi
6766   if test "$tmp_need_reentrant" = "no"; then
6767
6768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h.  */
6770
6771
6772 #define strerror_r innocuous_strerror_r
6773 #ifdef __STDC__
6774 # include <limits.h>
6775 #else
6776 # include <assert.h>
6777 #endif
6778 #undef strerror_r
6779 #ifdef __cplusplus
6780 extern "C"
6781 #endif
6782 char strerror_r ();
6783 #if defined __stub_strerror_r || defined __stub___strerror_r
6784 choke me
6785 #endif
6786
6787 int main (void)
6788 {
6789 return strerror_r ();
6790  ;
6791  return 0;
6792 }
6793
6794 _ACEOF
6795 if ac_fn_c_try_link "$LINENO"; then :
6796
6797     tmp_strerror_r="yes"
6798
6799 else
6800
6801     tmp_strerror_r="no"
6802
6803 fi
6804 rm -f core conftest.err conftest.$ac_objext \
6805     conftest$ac_exeext conftest.$ac_ext
6806   if test "$tmp_strerror_r" = "yes"; then
6807     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808 /* end confdefs.h.  */
6809
6810 #include <sys/types.h>
6811 #include <string.h>
6812
6813 _ACEOF
6814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6815   $EGREP "strerror_r" >/dev/null 2>&1; then :
6816
6817       tmp_strerror_r="proto_declared"
6818
6819 else
6820
6821       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h.  */
6823
6824 #define _REENTRANT
6825 #include <sys/types.h>
6826 #include <string.h>
6827
6828 _ACEOF
6829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6830   $EGREP "strerror_r" >/dev/null 2>&1; then :
6831
6832         tmp_strerror_r="proto_needs_reentrant"
6833         tmp_need_reentrant="yes"
6834
6835 fi
6836 rm -f conftest*
6837
6838
6839 fi
6840 rm -f conftest*
6841
6842   fi
6843
6844   fi
6845   if test "$tmp_need_reentrant" = "no"; then
6846
6847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h.  */
6849
6850
6851 #define strtok_r innocuous_strtok_r
6852 #ifdef __STDC__
6853 # include <limits.h>
6854 #else
6855 # include <assert.h>
6856 #endif
6857 #undef strtok_r
6858 #ifdef __cplusplus
6859 extern "C"
6860 #endif
6861 char strtok_r ();
6862 #if defined __stub_strtok_r || defined __stub___strtok_r
6863 choke me
6864 #endif
6865
6866 int main (void)
6867 {
6868 return strtok_r ();
6869  ;
6870  return 0;
6871 }
6872
6873 _ACEOF
6874 if ac_fn_c_try_link "$LINENO"; then :
6875
6876     tmp_strtok_r="yes"
6877
6878 else
6879
6880     tmp_strtok_r="no"
6881
6882 fi
6883 rm -f core conftest.err conftest.$ac_objext \
6884     conftest$ac_exeext conftest.$ac_ext
6885   if test "$tmp_strtok_r" = "yes"; then
6886     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h.  */
6888
6889 #include <sys/types.h>
6890 #include <string.h>
6891
6892 _ACEOF
6893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6894   $EGREP "strtok_r" >/dev/null 2>&1; then :
6895
6896       tmp_strtok_r="proto_declared"
6897
6898 else
6899
6900       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901 /* end confdefs.h.  */
6902
6903 #define _REENTRANT
6904 #include <sys/types.h>
6905 #include <string.h>
6906
6907 _ACEOF
6908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6909   $EGREP "strtok_r" >/dev/null 2>&1; then :
6910
6911         tmp_strtok_r="proto_needs_reentrant"
6912         tmp_need_reentrant="yes"
6913
6914 fi
6915 rm -f conftest*
6916
6917
6918 fi
6919 rm -f conftest*
6920
6921   fi
6922
6923   fi
6924   if test "$tmp_need_reentrant" = "no"; then
6925
6926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h.  */
6928
6929
6930 #define inet_ntoa_r innocuous_inet_ntoa_r
6931 #ifdef __STDC__
6932 # include <limits.h>
6933 #else
6934 # include <assert.h>
6935 #endif
6936 #undef inet_ntoa_r
6937 #ifdef __cplusplus
6938 extern "C"
6939 #endif
6940 char inet_ntoa_r ();
6941 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
6942 choke me
6943 #endif
6944
6945 int main (void)
6946 {
6947 return inet_ntoa_r ();
6948  ;
6949  return 0;
6950 }
6951
6952 _ACEOF
6953 if ac_fn_c_try_link "$LINENO"; then :
6954
6955     tmp_inet_ntoa_r="yes"
6956
6957 else
6958
6959     tmp_inet_ntoa_r="no"
6960
6961 fi
6962 rm -f core conftest.err conftest.$ac_objext \
6963     conftest$ac_exeext conftest.$ac_ext
6964   if test "$tmp_inet_ntoa_r" = "yes"; then
6965     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966 /* end confdefs.h.  */
6967
6968 #include <sys/types.h>
6969 #include <sys/socket.h>
6970 #include <netinet/in.h>
6971 #include <arpa/inet.h>
6972
6973 _ACEOF
6974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6975   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6976
6977       tmp_inet_ntoa_r="proto_declared"
6978
6979 else
6980
6981       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982 /* end confdefs.h.  */
6983
6984 #define _REENTRANT
6985 #include <sys/types.h>
6986 #include <sys/socket.h>
6987 #include <netinet/in.h>
6988 #include <arpa/inet.h>
6989
6990 _ACEOF
6991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6992   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6993
6994         tmp_inet_ntoa_r="proto_needs_reentrant"
6995         tmp_need_reentrant="yes"
6996
6997 fi
6998 rm -f conftest*
6999
7000
7001 fi
7002 rm -f conftest*
7003
7004   fi
7005
7006   fi
7007   if test "$tmp_need_reentrant" = "no"; then
7008
7009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7010 /* end confdefs.h.  */
7011
7012
7013 #define gethostbyaddr_r innocuous_gethostbyaddr_r
7014 #ifdef __STDC__
7015 # include <limits.h>
7016 #else
7017 # include <assert.h>
7018 #endif
7019 #undef gethostbyaddr_r
7020 #ifdef __cplusplus
7021 extern "C"
7022 #endif
7023 char gethostbyaddr_r ();
7024 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
7025 choke me
7026 #endif
7027
7028 int main (void)
7029 {
7030 return gethostbyaddr_r ();
7031  ;
7032  return 0;
7033 }
7034
7035 _ACEOF
7036 if ac_fn_c_try_link "$LINENO"; then :
7037
7038     tmp_gethostbyaddr_r="yes"
7039
7040 else
7041
7042     tmp_gethostbyaddr_r="no"
7043
7044 fi
7045 rm -f core conftest.err conftest.$ac_objext \
7046     conftest$ac_exeext conftest.$ac_ext
7047   if test "$tmp_gethostbyaddr_r" = "yes"; then
7048     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h.  */
7050
7051 #include <sys/types.h>
7052 #include <netdb.h>
7053
7054 _ACEOF
7055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7056   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7057
7058       tmp_gethostbyaddr_r="proto_declared"
7059
7060 else
7061
7062       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h.  */
7064
7065 #define _REENTRANT
7066 #include <sys/types.h>
7067 #include <netdb.h>
7068
7069 _ACEOF
7070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7071   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7072
7073         tmp_gethostbyaddr_r="proto_needs_reentrant"
7074         tmp_need_reentrant="yes"
7075
7076 fi
7077 rm -f conftest*
7078
7079
7080 fi
7081 rm -f conftest*
7082
7083   fi
7084
7085   fi
7086   if test "$tmp_need_reentrant" = "no"; then
7087
7088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089 /* end confdefs.h.  */
7090
7091
7092 #define gethostbyname_r innocuous_gethostbyname_r
7093 #ifdef __STDC__
7094 # include <limits.h>
7095 #else
7096 # include <assert.h>
7097 #endif
7098 #undef gethostbyname_r
7099 #ifdef __cplusplus
7100 extern "C"
7101 #endif
7102 char gethostbyname_r ();
7103 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7104 choke me
7105 #endif
7106
7107 int main (void)
7108 {
7109 return gethostbyname_r ();
7110  ;
7111  return 0;
7112 }
7113
7114 _ACEOF
7115 if ac_fn_c_try_link "$LINENO"; then :
7116
7117     tmp_gethostbyname_r="yes"
7118
7119 else
7120
7121     tmp_gethostbyname_r="no"
7122
7123 fi
7124 rm -f core conftest.err conftest.$ac_objext \
7125     conftest$ac_exeext conftest.$ac_ext
7126   if test "$tmp_gethostbyname_r" = "yes"; then
7127     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128 /* end confdefs.h.  */
7129
7130 #include <sys/types.h>
7131 #include <netdb.h>
7132
7133 _ACEOF
7134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7135   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7136
7137       tmp_gethostbyname_r="proto_declared"
7138
7139 else
7140
7141       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h.  */
7143
7144 #define _REENTRANT
7145 #include <sys/types.h>
7146 #include <netdb.h>
7147
7148 _ACEOF
7149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7150   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7151
7152         tmp_gethostbyname_r="proto_needs_reentrant"
7153         tmp_need_reentrant="yes"
7154
7155 fi
7156 rm -f conftest*
7157
7158
7159 fi
7160 rm -f conftest*
7161
7162   fi
7163
7164   fi
7165   if test "$tmp_need_reentrant" = "no"; then
7166
7167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h.  */
7169
7170
7171 #define getprotobyname_r innocuous_getprotobyname_r
7172 #ifdef __STDC__
7173 # include <limits.h>
7174 #else
7175 # include <assert.h>
7176 #endif
7177 #undef getprotobyname_r
7178 #ifdef __cplusplus
7179 extern "C"
7180 #endif
7181 char getprotobyname_r ();
7182 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7183 choke me
7184 #endif
7185
7186 int main (void)
7187 {
7188 return getprotobyname_r ();
7189  ;
7190  return 0;
7191 }
7192
7193 _ACEOF
7194 if ac_fn_c_try_link "$LINENO"; then :
7195
7196     tmp_getprotobyname_r="yes"
7197
7198 else
7199
7200     tmp_getprotobyname_r="no"
7201
7202 fi
7203 rm -f core conftest.err conftest.$ac_objext \
7204     conftest$ac_exeext conftest.$ac_ext
7205   if test "$tmp_getprotobyname_r" = "yes"; then
7206     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207 /* end confdefs.h.  */
7208
7209 #include <sys/types.h>
7210 #include <netdb.h>
7211
7212 _ACEOF
7213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7214   $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7215
7216       tmp_getprotobyname_r="proto_declared"
7217
7218 else
7219
7220       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h.  */
7222
7223 #define _REENTRANT
7224 #include <sys/types.h>
7225 #include <netdb.h>
7226
7227 _ACEOF
7228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7229   $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7230
7231         tmp_getprotobyname_r="proto_needs_reentrant"
7232         tmp_need_reentrant="yes"
7233
7234 fi
7235 rm -f conftest*
7236
7237
7238 fi
7239 rm -f conftest*
7240
7241   fi
7242
7243   fi
7244   if test "$tmp_need_reentrant" = "no"; then
7245
7246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h.  */
7248
7249
7250 #define getservbyport_r innocuous_getservbyport_r
7251 #ifdef __STDC__
7252 # include <limits.h>
7253 #else
7254 # include <assert.h>
7255 #endif
7256 #undef getservbyport_r
7257 #ifdef __cplusplus
7258 extern "C"
7259 #endif
7260 char getservbyport_r ();
7261 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7262 choke me
7263 #endif
7264
7265 int main (void)
7266 {
7267 return getservbyport_r ();
7268  ;
7269  return 0;
7270 }
7271
7272 _ACEOF
7273 if ac_fn_c_try_link "$LINENO"; then :
7274
7275     tmp_getservbyport_r="yes"
7276
7277 else
7278
7279     tmp_getservbyport_r="no"
7280
7281 fi
7282 rm -f core conftest.err conftest.$ac_objext \
7283     conftest$ac_exeext conftest.$ac_ext
7284   if test "$tmp_getservbyport_r" = "yes"; then
7285     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7286 /* end confdefs.h.  */
7287
7288 #include <sys/types.h>
7289 #include <netdb.h>
7290
7291 _ACEOF
7292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7293   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7294
7295       tmp_getservbyport_r="proto_declared"
7296
7297 else
7298
7299       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h.  */
7301
7302 #define _REENTRANT
7303 #include <sys/types.h>
7304 #include <netdb.h>
7305
7306 _ACEOF
7307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7308   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7309
7310         tmp_getservbyport_r="proto_needs_reentrant"
7311         tmp_need_reentrant="yes"
7312
7313 fi
7314 rm -f conftest*
7315
7316
7317 fi
7318 rm -f conftest*
7319
7320   fi
7321
7322   fi
7323
7324     fi
7325     if test "$tmp_need_reentrant" = "yes"; then
7326       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7327 $as_echo "yes" >&6; }
7328     else
7329       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330 $as_echo "no" >&6; }
7331     fi
7332   fi
7333   #
7334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7335 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7336   if test "$tmp_reentrant_initially_defined" = "yes" ||
7337     test "$tmp_need_reentrant" = "yes"; then
7338
7339
7340 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7341
7342 cat >>confdefs.h <<_EOF
7343 #ifndef _REENTRANT
7344 #  define _REENTRANT
7345 #endif
7346 _EOF
7347
7348     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7349 $as_echo "yes" >&6; }
7350   else
7351     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352 $as_echo "no" >&6; }
7353   fi
7354   #
7355
7356
7357 # Check whether --enable-largefile was given.
7358 if test "${enable_largefile+set}" = set; then :
7359   enableval=$enable_largefile;
7360 fi
7361
7362 if test "$enable_largefile" != no; then
7363
7364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7365 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7366 if ${ac_cv_sys_largefile_CC+:} false; then :
7367   $as_echo_n "(cached) " >&6
7368 else
7369   ac_cv_sys_largefile_CC=no
7370      if test "$GCC" != yes; then
7371        ac_save_CC=$CC
7372        while :; do
7373          # IRIX 6.2 and later do not support large files by default,
7374          # so use the C compiler's -n32 option if that helps.
7375          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7376 /* end confdefs.h.  */
7377 #include <sys/types.h>
7378  /* Check that off_t can represent 2**63 - 1 correctly.
7379     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7380     since some C++ compilers masquerading as C compilers
7381     incorrectly reject 9223372036854775807.  */
7382 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7383   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7384                        && LARGE_OFF_T % 2147483647 == 1)
7385                       ? 1 : -1];
7386 int main (void)
7387 {
7388
7389  ;
7390  return 0;
7391 }
7392 _ACEOF
7393          if ac_fn_c_try_compile "$LINENO"; then :
7394   break
7395 fi
7396 rm -f core conftest.err conftest.$ac_objext
7397          CC="$CC -n32"
7398          if ac_fn_c_try_compile "$LINENO"; then :
7399   ac_cv_sys_largefile_CC=' -n32'; break
7400 fi
7401 rm -f core conftest.err conftest.$ac_objext
7402          break
7403        done
7404        CC=$ac_save_CC
7405        rm -f conftest.$ac_ext
7406     fi
7407 fi
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7409 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7410   if test "$ac_cv_sys_largefile_CC" != no; then
7411     CC=$CC$ac_cv_sys_largefile_CC
7412   fi
7413
7414   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7415 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7416 if ${ac_cv_sys_file_offset_bits+:} false; then :
7417   $as_echo_n "(cached) " >&6
7418 else
7419   while :; do
7420   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421 /* end confdefs.h.  */
7422 #include <sys/types.h>
7423  /* Check that off_t can represent 2**63 - 1 correctly.
7424     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7425     since some C++ compilers masquerading as C compilers
7426     incorrectly reject 9223372036854775807.  */
7427 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7428   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7429                        && LARGE_OFF_T % 2147483647 == 1)
7430                       ? 1 : -1];
7431 int main (void)
7432 {
7433
7434  ;
7435  return 0;
7436 }
7437 _ACEOF
7438 if ac_fn_c_try_compile "$LINENO"; then :
7439   ac_cv_sys_file_offset_bits=no; break
7440 fi
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443 /* end confdefs.h.  */
7444 #define _FILE_OFFSET_BITS 64
7445 #include <sys/types.h>
7446  /* Check that off_t can represent 2**63 - 1 correctly.
7447     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7448     since some C++ compilers masquerading as C compilers
7449     incorrectly reject 9223372036854775807.  */
7450 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7451   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7452                        && LARGE_OFF_T % 2147483647 == 1)
7453                       ? 1 : -1];
7454 int main (void)
7455 {
7456
7457  ;
7458  return 0;
7459 }
7460 _ACEOF
7461 if ac_fn_c_try_compile "$LINENO"; then :
7462   ac_cv_sys_file_offset_bits=64; break
7463 fi
7464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7465   ac_cv_sys_file_offset_bits=unknown
7466   break
7467 done
7468 fi
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7470 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7471 case $ac_cv_sys_file_offset_bits in #(
7472   no | unknown) ;;
7473   *)
7474 cat >>confdefs.h <<_ACEOF
7475 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7476 _ACEOF
7477 ;;
7478 esac
7479 rm -rf conftest*
7480   if test $ac_cv_sys_file_offset_bits = unknown; then
7481     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7482 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7483 if ${ac_cv_sys_large_files+:} false; then :
7484   $as_echo_n "(cached) " >&6
7485 else
7486   while :; do
7487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488 /* end confdefs.h.  */
7489 #include <sys/types.h>
7490  /* Check that off_t can represent 2**63 - 1 correctly.
7491     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7492     since some C++ compilers masquerading as C compilers
7493     incorrectly reject 9223372036854775807.  */
7494 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7495   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7496                        && LARGE_OFF_T % 2147483647 == 1)
7497                       ? 1 : -1];
7498 int main (void)
7499 {
7500
7501  ;
7502  return 0;
7503 }
7504 _ACEOF
7505 if ac_fn_c_try_compile "$LINENO"; then :
7506   ac_cv_sys_large_files=no; break
7507 fi
7508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510 /* end confdefs.h.  */
7511 #define _LARGE_FILES 1
7512 #include <sys/types.h>
7513  /* Check that off_t can represent 2**63 - 1 correctly.
7514     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7515     since some C++ compilers masquerading as C compilers
7516     incorrectly reject 9223372036854775807.  */
7517 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7518   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7519                        && LARGE_OFF_T % 2147483647 == 1)
7520                       ? 1 : -1];
7521 int main (void)
7522 {
7523
7524  ;
7525  return 0;
7526 }
7527 _ACEOF
7528 if ac_fn_c_try_compile "$LINENO"; then :
7529   ac_cv_sys_large_files=1; break
7530 fi
7531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7532   ac_cv_sys_large_files=unknown
7533   break
7534 done
7535 fi
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7537 $as_echo "$ac_cv_sys_large_files" >&6; }
7538 case $ac_cv_sys_large_files in #(
7539   no | unknown) ;;
7540   *)
7541 cat >>confdefs.h <<_ACEOF
7542 #define _LARGE_FILES $ac_cv_sys_large_files
7543 _ACEOF
7544 ;;
7545 esac
7546 rm -rf conftest*
7547   fi
7548
7549
7550 fi
7551
7552
7553 case `pwd` in
7554   *\ * | *\     *)
7555     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7556 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7557 esac
7558
7559
7560
7561 macro_version='2.4.6'
7562 macro_revision='2.4.6'
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576 ltmain=$ac_aux_dir/ltmain.sh
7577
7578 # Backslashify metacharacters that are still active within
7579 # double-quoted strings.
7580 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7581
7582 # Same as above, but do not quote variable references.
7583 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7584
7585 # Sed substitution to delay expansion of an escaped shell variable in a
7586 # double_quote_subst'ed string.
7587 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7588
7589 # Sed substitution to delay expansion of an escaped single quote.
7590 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7591
7592 # Sed substitution to avoid accidental globbing in evaled expressions
7593 no_glob_subst='s/\*/\\\*/g'
7594
7595 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7596 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7597 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7598
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7600 $as_echo_n "checking how to print strings... " >&6; }
7601 # Test print first, because it will be a builtin if present.
7602 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7603    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7604   ECHO='print -r --'
7605 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7606   ECHO='printf %s\n'
7607 else
7608   # Use this function as a fallback that always works.
7609   func_fallback_echo ()
7610   {
7611     eval 'cat <<_LTECHO_EOF
7612 $1
7613 _LTECHO_EOF'
7614   }
7615   ECHO='func_fallback_echo'
7616 fi
7617
7618 # func_echo_all arg...
7619 # Invoke $ECHO with all args, space-separated.
7620 func_echo_all ()
7621 {
7622     $ECHO ""
7623 }
7624
7625 case $ECHO in
7626   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7627 $as_echo "printf" >&6; } ;;
7628   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7629 $as_echo "print -r" >&6; } ;;
7630   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7631 $as_echo "cat" >&6; } ;;
7632 esac
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7648 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7649 if ${ac_cv_path_SED+:} false; then :
7650   $as_echo_n "(cached) " >&6
7651 else
7652             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7653      for ac_i in 1 2 3 4 5 6 7; do
7654        ac_script="$ac_script$as_nl$ac_script"
7655      done
7656      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7657      { ac_script=; unset ac_script;}
7658      if test -z "$SED"; then
7659   ac_path_SED_found=false
7660   # Loop through the user's path and test for each of PROGNAME-LIST
7661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662 for as_dir in $PATH
7663 do
7664   IFS=$as_save_IFS
7665   test -z "$as_dir" && as_dir=.
7666     for ac_prog in sed gsed; do
7667     for ac_exec_ext in '' $ac_executable_extensions; do
7668       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7669       as_fn_executable_p "$ac_path_SED" || continue
7670 # Check for GNU ac_path_SED and select it if it is found.
7671   # Check for GNU $ac_path_SED
7672 case `"$ac_path_SED" --version 2>&1` in
7673 *GNU*)
7674   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7675 *)
7676   ac_count=0
7677   $as_echo_n 0123456789 >"conftest.in"
7678   while :
7679   do
7680     cat "conftest.in" "conftest.in" >"conftest.tmp"
7681     mv "conftest.tmp" "conftest.in"
7682     cp "conftest.in" "conftest.nl"
7683     $as_echo '' >> "conftest.nl"
7684     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7685     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7686     as_fn_arith $ac_count + 1 && ac_count=$as_val
7687     if test $ac_count -gt ${ac_path_SED_max-0}; then
7688       # Best one so far, save it but keep looking for a better one
7689       ac_cv_path_SED="$ac_path_SED"
7690       ac_path_SED_max=$ac_count
7691     fi
7692     # 10*(2^10) chars as input seems more than enough
7693     test $ac_count -gt 10 && break
7694   done
7695   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7696 esac
7697
7698       $ac_path_SED_found && break 3
7699     done
7700   done
7701   done
7702 IFS=$as_save_IFS
7703   if test -z "$ac_cv_path_SED"; then
7704     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7705   fi
7706 else
7707   ac_cv_path_SED=$SED
7708 fi
7709
7710 fi
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7712 $as_echo "$ac_cv_path_SED" >&6; }
7713  SED="$ac_cv_path_SED"
7714   rm -f conftest.sed
7715
7716 test -z "$SED" && SED=sed
7717 Xsed="$SED -e 1s/^X//"
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7730 $as_echo_n "checking for fgrep... " >&6; }
7731 if ${ac_cv_path_FGREP+:} false; then :
7732   $as_echo_n "(cached) " >&6
7733 else
7734   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7735    then ac_cv_path_FGREP="$GREP -F"
7736    else
7737      if test -z "$FGREP"; then
7738   ac_path_FGREP_found=false
7739   # Loop through the user's path and test for each of PROGNAME-LIST
7740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7742 do
7743   IFS=$as_save_IFS
7744   test -z "$as_dir" && as_dir=.
7745     for ac_prog in fgrep; do
7746     for ac_exec_ext in '' $ac_executable_extensions; do
7747       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7748       as_fn_executable_p "$ac_path_FGREP" || continue
7749 # Check for GNU ac_path_FGREP and select it if it is found.
7750   # Check for GNU $ac_path_FGREP
7751 case `"$ac_path_FGREP" --version 2>&1` in
7752 *GNU*)
7753   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7754 *)
7755   ac_count=0
7756   $as_echo_n 0123456789 >"conftest.in"
7757   while :
7758   do
7759     cat "conftest.in" "conftest.in" >"conftest.tmp"
7760     mv "conftest.tmp" "conftest.in"
7761     cp "conftest.in" "conftest.nl"
7762     $as_echo 'FGREP' >> "conftest.nl"
7763     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7764     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7765     as_fn_arith $ac_count + 1 && ac_count=$as_val
7766     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7767       # Best one so far, save it but keep looking for a better one
7768       ac_cv_path_FGREP="$ac_path_FGREP"
7769       ac_path_FGREP_max=$ac_count
7770     fi
7771     # 10*(2^10) chars as input seems more than enough
7772     test $ac_count -gt 10 && break
7773   done
7774   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7775 esac
7776
7777       $ac_path_FGREP_found && break 3
7778     done
7779   done
7780   done
7781 IFS=$as_save_IFS
7782   if test -z "$ac_cv_path_FGREP"; then
7783     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7784   fi
7785 else
7786   ac_cv_path_FGREP=$FGREP
7787 fi
7788
7789    fi
7790 fi
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7792 $as_echo "$ac_cv_path_FGREP" >&6; }
7793  FGREP="$ac_cv_path_FGREP"
7794
7795
7796 test -z "$GREP" && GREP=grep
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816 # Check whether --with-gnu-ld was given.
7817 if test "${with_gnu_ld+set}" = set; then :
7818   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7819 else
7820   with_gnu_ld=no
7821 fi
7822
7823 ac_prog=ld
7824 if test yes = "$GCC"; then
7825   # Check if gcc -print-prog-name=ld gives a path.
7826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7827 $as_echo_n "checking for ld used by $CC... " >&6; }
7828   case $host in
7829   *-*-mingw*)
7830     # gcc leaves a trailing carriage return, which upsets mingw
7831     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7832   *)
7833     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7834   esac
7835   case $ac_prog in
7836     # Accept absolute paths.
7837     [\\/]* | ?:[\\/]*)
7838       re_direlt='/[^/][^/]*/\.\./'
7839       # Canonicalize the pathname of ld
7840       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7841       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7842         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7843       done
7844       test -z "$LD" && LD=$ac_prog
7845       ;;
7846   "")
7847     # If it fails, then pretend we aren't using GCC.
7848     ac_prog=ld
7849     ;;
7850   *)
7851     # If it is relative, then search for the first ld in PATH.
7852     with_gnu_ld=unknown
7853     ;;
7854   esac
7855 elif test yes = "$with_gnu_ld"; then
7856   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7857 $as_echo_n "checking for GNU ld... " >&6; }
7858 else
7859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7860 $as_echo_n "checking for non-GNU ld... " >&6; }
7861 fi
7862 if ${lt_cv_path_LD+:} false; then :
7863   $as_echo_n "(cached) " >&6
7864 else
7865   if test -z "$LD"; then
7866   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7867   for ac_dir in $PATH; do
7868     IFS=$lt_save_ifs
7869     test -z "$ac_dir" && ac_dir=.
7870     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7871       lt_cv_path_LD=$ac_dir/$ac_prog
7872       # Check to see if the program is GNU ld.  I'd rather use --version,
7873       # but apparently some variants of GNU ld only accept -v.
7874       # Break only if it was the GNU/non-GNU ld that we prefer.
7875       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7876       *GNU* | *'with BFD'*)
7877         test no != "$with_gnu_ld" && break
7878         ;;
7879       *)
7880         test yes != "$with_gnu_ld" && break
7881         ;;
7882       esac
7883     fi
7884   done
7885   IFS=$lt_save_ifs
7886 else
7887   lt_cv_path_LD=$LD # Let the user override the test with a path.
7888 fi
7889 fi
7890
7891 LD=$lt_cv_path_LD
7892 if test -n "$LD"; then
7893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7894 $as_echo "$LD" >&6; }
7895 else
7896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897 $as_echo "no" >&6; }
7898 fi
7899 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7901 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7902 if ${lt_cv_prog_gnu_ld+:} false; then :
7903   $as_echo_n "(cached) " >&6
7904 else
7905   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7906 case `$LD -v 2>&1 </dev/null` in
7907 *GNU* | *'with BFD'*)
7908   lt_cv_prog_gnu_ld=yes
7909   ;;
7910 *)
7911   lt_cv_prog_gnu_ld=no
7912   ;;
7913 esac
7914 fi
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7916 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7917 with_gnu_ld=$lt_cv_prog_gnu_ld
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7928 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7929 if ${lt_cv_path_NM+:} false; then :
7930   $as_echo_n "(cached) " >&6
7931 else
7932   if test -n "$NM"; then
7933   # Let the user override the test.
7934   lt_cv_path_NM=$NM
7935 else
7936   lt_nm_to_check=${ac_tool_prefix}nm
7937   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7938     lt_nm_to_check="$lt_nm_to_check nm"
7939   fi
7940   for lt_tmp_nm in $lt_nm_to_check; do
7941     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7942     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7943       IFS=$lt_save_ifs
7944       test -z "$ac_dir" && ac_dir=.
7945       tmp_nm=$ac_dir/$lt_tmp_nm
7946       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7947         # Check to see if the nm accepts a BSD-compat flag.
7948         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7949         #   nm: unknown option "B" ignored
7950         # Tru64's nm complains that /dev/null is an invalid object file
7951         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7952         case $build_os in
7953         mingw*) lt_bad_file=conftest.nm/nofile ;;
7954         *) lt_bad_file=/dev/null ;;
7955         esac
7956         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7957         *$lt_bad_file* | *'Invalid file or object type'*)
7958           lt_cv_path_NM="$tmp_nm -B"
7959           break 2
7960           ;;
7961         *)
7962           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7963           */dev/null*)
7964             lt_cv_path_NM="$tmp_nm -p"
7965             break 2
7966             ;;
7967           *)
7968             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7969             continue # so that we can try to find one that supports BSD flags
7970             ;;
7971           esac
7972           ;;
7973         esac
7974       fi
7975     done
7976     IFS=$lt_save_ifs
7977   done
7978   : ${lt_cv_path_NM=no}
7979 fi
7980 fi
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7982 $as_echo "$lt_cv_path_NM" >&6; }
7983 if test no != "$lt_cv_path_NM"; then
7984   NM=$lt_cv_path_NM
7985 else
7986   # Didn't find any BSD compatible name lister, look for dumpbin.
7987   if test -n "$DUMPBIN"; then :
7988     # Let the user override the test.
7989   else
7990     if test -n "$ac_tool_prefix"; then
7991   for ac_prog in dumpbin "link -dump"
7992   do
7993     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7994 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7996 $as_echo_n "checking for $ac_word... " >&6; }
7997 if ${ac_cv_prog_DUMPBIN+:} false; then :
7998   $as_echo_n "(cached) " >&6
7999 else
8000   if test -n "$DUMPBIN"; then
8001   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8002 else
8003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8004 for as_dir in $PATH
8005 do
8006   IFS=$as_save_IFS
8007   test -z "$as_dir" && as_dir=.
8008     for ac_exec_ext in '' $ac_executable_extensions; do
8009   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8010     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8012     break 2
8013   fi
8014 done
8015   done
8016 IFS=$as_save_IFS
8017
8018 fi
8019 fi
8020 DUMPBIN=$ac_cv_prog_DUMPBIN
8021 if test -n "$DUMPBIN"; then
8022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8023 $as_echo "$DUMPBIN" >&6; }
8024 else
8025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8027 fi
8028
8029
8030     test -n "$DUMPBIN" && break
8031   done
8032 fi
8033 if test -z "$DUMPBIN"; then
8034   ac_ct_DUMPBIN=$DUMPBIN
8035   for ac_prog in dumpbin "link -dump"
8036 do
8037   # Extract the first word of "$ac_prog", so it can be a program name with args.
8038 set dummy $ac_prog; ac_word=$2
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8040 $as_echo_n "checking for $ac_word... " >&6; }
8041 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8042   $as_echo_n "(cached) " >&6
8043 else
8044   if test -n "$ac_ct_DUMPBIN"; then
8045   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8046 else
8047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048 for as_dir in $PATH
8049 do
8050   IFS=$as_save_IFS
8051   test -z "$as_dir" && as_dir=.
8052     for ac_exec_ext in '' $ac_executable_extensions; do
8053   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8054     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8056     break 2
8057   fi
8058 done
8059   done
8060 IFS=$as_save_IFS
8061
8062 fi
8063 fi
8064 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8065 if test -n "$ac_ct_DUMPBIN"; then
8066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8067 $as_echo "$ac_ct_DUMPBIN" >&6; }
8068 else
8069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070 $as_echo "no" >&6; }
8071 fi
8072
8073
8074   test -n "$ac_ct_DUMPBIN" && break
8075 done
8076
8077   if test "x$ac_ct_DUMPBIN" = x; then
8078     DUMPBIN=":"
8079   else
8080     case $cross_compiling:$ac_tool_warned in
8081 yes:)
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8084 ac_tool_warned=yes ;;
8085 esac
8086     DUMPBIN=$ac_ct_DUMPBIN
8087   fi
8088 fi
8089
8090     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8091     *COFF*)
8092       DUMPBIN="$DUMPBIN -symbols -headers"
8093       ;;
8094     *)
8095       DUMPBIN=:
8096       ;;
8097     esac
8098   fi
8099
8100   if test : != "$DUMPBIN"; then
8101     NM=$DUMPBIN
8102   fi
8103 fi
8104 test -z "$NM" && NM=nm
8105
8106
8107
8108
8109
8110
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8112 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8113 if ${lt_cv_nm_interface+:} false; then :
8114   $as_echo_n "(cached) " >&6
8115 else
8116   lt_cv_nm_interface="BSD nm"
8117   echo "int some_variable = 0;" > conftest.$ac_ext
8118   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8119   (eval "$ac_compile" 2>conftest.err)
8120   cat conftest.err >&5
8121   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8122   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8123   cat conftest.err >&5
8124   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8125   cat conftest.out >&5
8126   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8127     lt_cv_nm_interface="MS dumpbin"
8128   fi
8129   rm -f conftest*
8130 fi
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8132 $as_echo "$lt_cv_nm_interface" >&6; }
8133
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8135 $as_echo_n "checking whether ln -s works... " >&6; }
8136 LN_S=$as_ln_s
8137 if test "$LN_S" = "ln -s"; then
8138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8139 $as_echo "yes" >&6; }
8140 else
8141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8142 $as_echo "no, using $LN_S" >&6; }
8143 fi
8144
8145 # find the maximum length of command line arguments
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8147 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8148 if ${lt_cv_sys_max_cmd_len+:} false; then :
8149   $as_echo_n "(cached) " >&6
8150 else
8151     i=0
8152   teststring=ABCD
8153
8154   case $build_os in
8155   msdosdjgpp*)
8156     # On DJGPP, this test can blow up pretty badly due to problems in libc
8157     # (any single argument exceeding 2000 bytes causes a buffer overrun
8158     # during glob expansion).  Even if it were fixed, the result of this
8159     # check would be larger than it should be.
8160     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8161     ;;
8162
8163   gnu*)
8164     # Under GNU Hurd, this test is not required because there is
8165     # no limit to the length of command line arguments.
8166     # Libtool will interpret -1 as no limit whatsoever
8167     lt_cv_sys_max_cmd_len=-1;
8168     ;;
8169
8170   cygwin* | mingw* | cegcc*)
8171     # On Win9x/ME, this test blows up -- it succeeds, but takes
8172     # about 5 minutes as the teststring grows exponentially.
8173     # Worse, since 9x/ME are not pre-emptively multitasking,
8174     # you end up with a "frozen" computer, even though with patience
8175     # the test eventually succeeds (with a max line length of 256k).
8176     # Instead, let's just punt: use the minimum linelength reported by
8177     # all of the supported platforms: 8192 (on NT/2K/XP).
8178     lt_cv_sys_max_cmd_len=8192;
8179     ;;
8180
8181   mint*)
8182     # On MiNT this can take a long time and run out of memory.
8183     lt_cv_sys_max_cmd_len=8192;
8184     ;;
8185
8186   amigaos*)
8187     # On AmigaOS with pdksh, this test takes hours, literally.
8188     # So we just punt and use a minimum line length of 8192.
8189     lt_cv_sys_max_cmd_len=8192;
8190     ;;
8191
8192   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8193     # This has been around since 386BSD, at least.  Likely further.
8194     if test -x /sbin/sysctl; then
8195       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8196     elif test -x /usr/sbin/sysctl; then
8197       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8198     else
8199       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8200     fi
8201     # And add a safety zone
8202     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8203     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8204     ;;
8205
8206   interix*)
8207     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8208     lt_cv_sys_max_cmd_len=196608
8209     ;;
8210
8211   os2*)
8212     # The test takes a long time on OS/2.
8213     lt_cv_sys_max_cmd_len=8192
8214     ;;
8215
8216   osf*)
8217     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8218     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8219     # nice to cause kernel panics so lets avoid the loop below.
8220     # First set a reasonable default.
8221     lt_cv_sys_max_cmd_len=16384
8222     #
8223     if test -x /sbin/sysconfig; then
8224       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8225         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8226       esac
8227     fi
8228     ;;
8229   sco3.2v5*)
8230     lt_cv_sys_max_cmd_len=102400
8231     ;;
8232   sysv5* | sco5v6* | sysv4.2uw2*)
8233     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8234     if test -n "$kargmax"; then
8235       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
8236     else
8237       lt_cv_sys_max_cmd_len=32768
8238     fi
8239     ;;
8240   *)
8241     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8242     if test -n "$lt_cv_sys_max_cmd_len" && \
8243        test undefined != "$lt_cv_sys_max_cmd_len"; then
8244       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8245       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8246     else
8247       # Make teststring a little bigger before we do anything with it.
8248       # a 1K string should be a reasonable start.
8249       for i in 1 2 3 4 5 6 7 8; do
8250         teststring=$teststring$teststring
8251       done
8252       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8253       # If test is not a shell built-in, we'll probably end up computing a
8254       # maximum length that is only half of the actual maximum length, but
8255       # we can't tell.
8256       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8257                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8258               test 17 != "$i" # 1/2 MB should be enough
8259       do
8260         i=`expr $i + 1`
8261         teststring=$teststring$teststring
8262       done
8263       # Only check the string length outside the loop.
8264       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8265       teststring=
8266       # Add a significant safety factor because C++ compilers can tack on
8267       # massive amounts of additional arguments before passing them to the
8268       # linker.  It appears as though 1/2 is a usable value.
8269       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8270     fi
8271     ;;
8272   esac
8273
8274 fi
8275
8276 if test -n "$lt_cv_sys_max_cmd_len"; then
8277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8278 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8279 else
8280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8281 $as_echo "none" >&6; }
8282 fi
8283 max_cmd_len=$lt_cv_sys_max_cmd_len
8284
8285
8286
8287
8288
8289
8290 : ${CP="cp -f"}
8291 : ${MV="mv -f"}
8292 : ${RM="rm -f"}
8293
8294 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8295   lt_unset=unset
8296 else
8297   lt_unset=false
8298 fi
8299
8300
8301
8302
8303
8304 # test EBCDIC or ASCII
8305 case `echo X|tr X '\101'` in
8306  A) # ASCII based system
8307     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8308   lt_SP2NL='tr \040 \012'
8309   lt_NL2SP='tr \015\012 \040\040'
8310   ;;
8311  *) # EBCDIC based system
8312   lt_SP2NL='tr \100 \n'
8313   lt_NL2SP='tr \r\n \100\100'
8314   ;;
8315 esac
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8326 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8327 if ${lt_cv_to_host_file_cmd+:} false; then :
8328   $as_echo_n "(cached) " >&6
8329 else
8330   case $host in
8331   *-*-mingw* )
8332     case $build in
8333       *-*-mingw* ) # actually msys
8334         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8335         ;;
8336       *-*-cygwin* )
8337         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8338         ;;
8339       * ) # otherwise, assume *nix
8340         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8341         ;;
8342     esac
8343     ;;
8344   *-*-cygwin* )
8345     case $build in
8346       *-*-mingw* ) # actually msys
8347         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8348         ;;
8349       *-*-cygwin* )
8350         lt_cv_to_host_file_cmd=func_convert_file_noop
8351         ;;
8352       * ) # otherwise, assume *nix
8353         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8354         ;;
8355     esac
8356     ;;
8357   * ) # unhandled hosts (and "normal" native builds)
8358     lt_cv_to_host_file_cmd=func_convert_file_noop
8359     ;;
8360 esac
8361
8362 fi
8363
8364 to_host_file_cmd=$lt_cv_to_host_file_cmd
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8366 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8367
8368
8369
8370
8371
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8373 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8374 if ${lt_cv_to_tool_file_cmd+:} false; then :
8375   $as_echo_n "(cached) " >&6
8376 else
8377   #assume ordinary cross tools, or native build.
8378 lt_cv_to_tool_file_cmd=func_convert_file_noop
8379 case $host in
8380   *-*-mingw* )
8381     case $build in
8382       *-*-mingw* ) # actually msys
8383         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8384         ;;
8385     esac
8386     ;;
8387 esac
8388
8389 fi
8390
8391 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8393 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8394
8395
8396
8397
8398
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8400 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8401 if ${lt_cv_ld_reload_flag+:} false; then :
8402   $as_echo_n "(cached) " >&6
8403 else
8404   lt_cv_ld_reload_flag='-r'
8405 fi
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8407 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8408 reload_flag=$lt_cv_ld_reload_flag
8409 case $reload_flag in
8410 "" | " "*) ;;
8411 *) reload_flag=" $reload_flag" ;;
8412 esac
8413 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8414 case $host_os in
8415   cygwin* | mingw* | pw32* | cegcc*)
8416     if test yes != "$GCC"; then
8417       reload_cmds=false
8418     fi
8419     ;;
8420   darwin*)
8421     if test yes = "$GCC"; then
8422       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8423     else
8424       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8425     fi
8426     ;;
8427 esac
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437 if test -n "$ac_tool_prefix"; then
8438   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8439 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8441 $as_echo_n "checking for $ac_word... " >&6; }
8442 if ${ac_cv_prog_OBJDUMP+:} false; then :
8443   $as_echo_n "(cached) " >&6
8444 else
8445   if test -n "$OBJDUMP"; then
8446   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8447 else
8448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8449 for as_dir in $PATH
8450 do
8451   IFS=$as_save_IFS
8452   test -z "$as_dir" && as_dir=.
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_OBJDUMP="${ac_tool_prefix}objdump"
8456     $as_echo "$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 OBJDUMP=$ac_cv_prog_OBJDUMP
8466 if test -n "$OBJDUMP"; then
8467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8468 $as_echo "$OBJDUMP" >&6; }
8469 else
8470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8471 $as_echo "no" >&6; }
8472 fi
8473
8474
8475 fi
8476 if test -z "$ac_cv_prog_OBJDUMP"; then
8477   ac_ct_OBJDUMP=$OBJDUMP
8478   # Extract the first word of "objdump", so it can be a program name with args.
8479 set dummy objdump; ac_word=$2
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8481 $as_echo_n "checking for $ac_word... " >&6; }
8482 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8483   $as_echo_n "(cached) " >&6
8484 else
8485   if test -n "$ac_ct_OBJDUMP"; then
8486   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8487 else
8488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8489 for as_dir in $PATH
8490 do
8491   IFS=$as_save_IFS
8492   test -z "$as_dir" && as_dir=.
8493     for ac_exec_ext in '' $ac_executable_extensions; do
8494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8495     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8497     break 2
8498   fi
8499 done
8500   done
8501 IFS=$as_save_IFS
8502
8503 fi
8504 fi
8505 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8506 if test -n "$ac_ct_OBJDUMP"; then
8507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8508 $as_echo "$ac_ct_OBJDUMP" >&6; }
8509 else
8510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511 $as_echo "no" >&6; }
8512 fi
8513
8514   if test "x$ac_ct_OBJDUMP" = x; then
8515     OBJDUMP="false"
8516   else
8517     case $cross_compiling:$ac_tool_warned in
8518 yes:)
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8521 ac_tool_warned=yes ;;
8522 esac
8523     OBJDUMP=$ac_ct_OBJDUMP
8524   fi
8525 else
8526   OBJDUMP="$ac_cv_prog_OBJDUMP"
8527 fi
8528
8529 test -z "$OBJDUMP" && OBJDUMP=objdump
8530
8531
8532
8533
8534
8535
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8537 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8538 if ${lt_cv_deplibs_check_method+:} false; then :
8539   $as_echo_n "(cached) " >&6
8540 else
8541   lt_cv_file_magic_cmd='$MAGIC_CMD'
8542 lt_cv_file_magic_test_file=
8543 lt_cv_deplibs_check_method='unknown'
8544 # Need to set the preceding variable on all platforms that support
8545 # interlibrary dependencies.
8546 # 'none' -- dependencies not supported.
8547 # 'unknown' -- same as none, but documents that we really don't know.
8548 # 'pass_all' -- all dependencies passed with no checks.
8549 # 'test_compile' -- check by making test program.
8550 # 'file_magic [[regex]]' -- check by looking for files in library path
8551 # that responds to the $file_magic_cmd with a given extended regex.
8552 # If you have 'file' or equivalent on your system and you're not sure
8553 # whether 'pass_all' will *always* work, you probably want this one.
8554
8555 case $host_os in
8556 aix[4-9]*)
8557   lt_cv_deplibs_check_method=pass_all
8558   ;;
8559
8560 beos*)
8561   lt_cv_deplibs_check_method=pass_all
8562   ;;
8563
8564 bsdi[45]*)
8565   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8566   lt_cv_file_magic_cmd='/usr/bin/file -L'
8567   lt_cv_file_magic_test_file=/shlib/libc.so
8568   ;;
8569
8570 cygwin*)
8571   # func_win32_libid is a shell function defined in ltmain.sh
8572   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8573   lt_cv_file_magic_cmd='func_win32_libid'
8574   ;;
8575
8576 mingw* | pw32*)
8577   # Base MSYS/MinGW do not provide the 'file' command needed by
8578   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8579   # unless we find 'file', for example because we are cross-compiling.
8580   if ( file / ) >/dev/null 2>&1; then
8581     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8582     lt_cv_file_magic_cmd='func_win32_libid'
8583   else
8584     # Keep this pattern in sync with the one in func_win32_libid.
8585     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8586     lt_cv_file_magic_cmd='$OBJDUMP -f'
8587   fi
8588   ;;
8589
8590 cegcc*)
8591   # use the weaker test based on 'objdump'. See mingw*.
8592   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8593   lt_cv_file_magic_cmd='$OBJDUMP -f'
8594   ;;
8595
8596 darwin* | rhapsody*)
8597   lt_cv_deplibs_check_method=pass_all
8598   ;;
8599
8600 freebsd* | dragonfly*)
8601   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8602     case $host_cpu in
8603     i*86 )
8604       # Not sure whether the presence of OpenBSD here was a mistake.
8605       # Let's accept both of them until this is cleared up.
8606       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8607       lt_cv_file_magic_cmd=/usr/bin/file
8608       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8609       ;;
8610     esac
8611   else
8612     lt_cv_deplibs_check_method=pass_all
8613   fi
8614   ;;
8615
8616 haiku*)
8617   lt_cv_deplibs_check_method=pass_all
8618   ;;
8619
8620 hpux10.20* | hpux11*)
8621   lt_cv_file_magic_cmd=/usr/bin/file
8622   case $host_cpu in
8623   ia64*)
8624     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8625     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8626     ;;
8627   hppa*64*)
8628     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]'
8629     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8630     ;;
8631   *)
8632     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8633     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8634     ;;
8635   esac
8636   ;;
8637
8638 interix[3-9]*)
8639   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8640   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8641   ;;
8642
8643 irix5* | irix6* | nonstopux*)
8644   case $LD in
8645   *-32|*"-32 ") libmagic=32-bit;;
8646   *-n32|*"-n32 ") libmagic=N32;;
8647   *-64|*"-64 ") libmagic=64-bit;;
8648   *) libmagic=never-match;;
8649   esac
8650   lt_cv_deplibs_check_method=pass_all
8651   ;;
8652
8653 # This must be glibc/ELF.
8654 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8655   lt_cv_deplibs_check_method=pass_all
8656   ;;
8657
8658 netbsd* | netbsdelf*-gnu)
8659   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8660     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8661   else
8662     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8663   fi
8664   ;;
8665
8666 newos6*)
8667   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8668   lt_cv_file_magic_cmd=/usr/bin/file
8669   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8670   ;;
8671
8672 *nto* | *qnx*)
8673   lt_cv_deplibs_check_method=pass_all
8674   ;;
8675
8676 openbsd* | bitrig*)
8677   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8678     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8679   else
8680     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8681   fi
8682   ;;
8683
8684 osf3* | osf4* | osf5*)
8685   lt_cv_deplibs_check_method=pass_all
8686   ;;
8687
8688 rdos*)
8689   lt_cv_deplibs_check_method=pass_all
8690   ;;
8691
8692 solaris*)
8693   lt_cv_deplibs_check_method=pass_all
8694   ;;
8695
8696 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8697   lt_cv_deplibs_check_method=pass_all
8698   ;;
8699
8700 sysv4 | sysv4.3*)
8701   case $host_vendor in
8702   motorola)
8703     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]'
8704     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8705     ;;
8706   ncr)
8707     lt_cv_deplibs_check_method=pass_all
8708     ;;
8709   sequent)
8710     lt_cv_file_magic_cmd='/bin/file'
8711     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8712     ;;
8713   sni)
8714     lt_cv_file_magic_cmd='/bin/file'
8715     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8716     lt_cv_file_magic_test_file=/lib/libc.so
8717     ;;
8718   siemens)
8719     lt_cv_deplibs_check_method=pass_all
8720     ;;
8721   pc)
8722     lt_cv_deplibs_check_method=pass_all
8723     ;;
8724   esac
8725   ;;
8726
8727 tpf*)
8728   lt_cv_deplibs_check_method=pass_all
8729   ;;
8730 os2*)
8731   lt_cv_deplibs_check_method=pass_all
8732   ;;
8733 esac
8734
8735 fi
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8737 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8738
8739 file_magic_glob=
8740 want_nocaseglob=no
8741 if test "$build" = "$host"; then
8742   case $host_os in
8743   mingw* | pw32*)
8744     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8745       want_nocaseglob=yes
8746     else
8747       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8748     fi
8749     ;;
8750   esac
8751 fi
8752
8753 file_magic_cmd=$lt_cv_file_magic_cmd
8754 deplibs_check_method=$lt_cv_deplibs_check_method
8755 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778 if test -n "$ac_tool_prefix"; then
8779   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8780 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8782 $as_echo_n "checking for $ac_word... " >&6; }
8783 if ${ac_cv_prog_DLLTOOL+:} false; then :
8784   $as_echo_n "(cached) " >&6
8785 else
8786   if test -n "$DLLTOOL"; then
8787   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8788 else
8789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790 for as_dir in $PATH
8791 do
8792   IFS=$as_save_IFS
8793   test -z "$as_dir" && as_dir=.
8794     for ac_exec_ext in '' $ac_executable_extensions; do
8795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8796     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8798     break 2
8799   fi
8800 done
8801   done
8802 IFS=$as_save_IFS
8803
8804 fi
8805 fi
8806 DLLTOOL=$ac_cv_prog_DLLTOOL
8807 if test -n "$DLLTOOL"; then
8808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8809 $as_echo "$DLLTOOL" >&6; }
8810 else
8811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812 $as_echo "no" >&6; }
8813 fi
8814
8815
8816 fi
8817 if test -z "$ac_cv_prog_DLLTOOL"; then
8818   ac_ct_DLLTOOL=$DLLTOOL
8819   # Extract the first word of "dlltool", so it can be a program name with args.
8820 set dummy dlltool; ac_word=$2
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8822 $as_echo_n "checking for $ac_word... " >&6; }
8823 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8824   $as_echo_n "(cached) " >&6
8825 else
8826   if test -n "$ac_ct_DLLTOOL"; then
8827   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8828 else
8829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8830 for as_dir in $PATH
8831 do
8832   IFS=$as_save_IFS
8833   test -z "$as_dir" && as_dir=.
8834     for ac_exec_ext in '' $ac_executable_extensions; do
8835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8836     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8838     break 2
8839   fi
8840 done
8841   done
8842 IFS=$as_save_IFS
8843
8844 fi
8845 fi
8846 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8847 if test -n "$ac_ct_DLLTOOL"; then
8848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8849 $as_echo "$ac_ct_DLLTOOL" >&6; }
8850 else
8851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852 $as_echo "no" >&6; }
8853 fi
8854
8855   if test "x$ac_ct_DLLTOOL" = x; then
8856     DLLTOOL="false"
8857   else
8858     case $cross_compiling:$ac_tool_warned in
8859 yes:)
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8862 ac_tool_warned=yes ;;
8863 esac
8864     DLLTOOL=$ac_ct_DLLTOOL
8865   fi
8866 else
8867   DLLTOOL="$ac_cv_prog_DLLTOOL"
8868 fi
8869
8870 test -z "$DLLTOOL" && DLLTOOL=dlltool
8871
8872
8873
8874
8875
8876
8877
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8879 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8880 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8881   $as_echo_n "(cached) " >&6
8882 else
8883   lt_cv_sharedlib_from_linklib_cmd='unknown'
8884
8885 case $host_os in
8886 cygwin* | mingw* | pw32* | cegcc*)
8887   # two different shell functions defined in ltmain.sh;
8888   # decide which one to use based on capabilities of $DLLTOOL
8889   case `$DLLTOOL --help 2>&1` in
8890   *--identify-strict*)
8891     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8892     ;;
8893   *)
8894     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8895     ;;
8896   esac
8897   ;;
8898 *)
8899   # fallback: assume linklib IS sharedlib
8900   lt_cv_sharedlib_from_linklib_cmd=$ECHO
8901   ;;
8902 esac
8903
8904 fi
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8906 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8907 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8908 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8909
8910
8911
8912
8913
8914
8915
8916 if test -n "$ac_tool_prefix"; then
8917   for ac_prog in ar
8918   do
8919     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8920 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8922 $as_echo_n "checking for $ac_word... " >&6; }
8923 if ${ac_cv_prog_AR+:} false; then :
8924   $as_echo_n "(cached) " >&6
8925 else
8926   if test -n "$AR"; then
8927   ac_cv_prog_AR="$AR" # Let the user override the test.
8928 else
8929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930 for as_dir in $PATH
8931 do
8932   IFS=$as_save_IFS
8933   test -z "$as_dir" && as_dir=.
8934     for ac_exec_ext in '' $ac_executable_extensions; do
8935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8936     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8938     break 2
8939   fi
8940 done
8941   done
8942 IFS=$as_save_IFS
8943
8944 fi
8945 fi
8946 AR=$ac_cv_prog_AR
8947 if test -n "$AR"; then
8948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8949 $as_echo "$AR" >&6; }
8950 else
8951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952 $as_echo "no" >&6; }
8953 fi
8954
8955
8956     test -n "$AR" && break
8957   done
8958 fi
8959 if test -z "$AR"; then
8960   ac_ct_AR=$AR
8961   for ac_prog in ar
8962 do
8963   # Extract the first word of "$ac_prog", so it can be a program name with args.
8964 set dummy $ac_prog; ac_word=$2
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8966 $as_echo_n "checking for $ac_word... " >&6; }
8967 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8968   $as_echo_n "(cached) " >&6
8969 else
8970   if test -n "$ac_ct_AR"; then
8971   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8972 else
8973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8974 for as_dir in $PATH
8975 do
8976   IFS=$as_save_IFS
8977   test -z "$as_dir" && as_dir=.
8978     for ac_exec_ext in '' $ac_executable_extensions; do
8979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8980     ac_cv_prog_ac_ct_AR="$ac_prog"
8981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8982     break 2
8983   fi
8984 done
8985   done
8986 IFS=$as_save_IFS
8987
8988 fi
8989 fi
8990 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8991 if test -n "$ac_ct_AR"; then
8992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8993 $as_echo "$ac_ct_AR" >&6; }
8994 else
8995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8996 $as_echo "no" >&6; }
8997 fi
8998
8999
9000   test -n "$ac_ct_AR" && break
9001 done
9002
9003   if test "x$ac_ct_AR" = x; then
9004     AR="false"
9005   else
9006     case $cross_compiling:$ac_tool_warned in
9007 yes:)
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9010 ac_tool_warned=yes ;;
9011 esac
9012     AR=$ac_ct_AR
9013   fi
9014 fi
9015
9016 : ${AR=ar}
9017 : ${AR_FLAGS=cru}
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9030 $as_echo_n "checking for archiver @FILE support... " >&6; }
9031 if ${lt_cv_ar_at_file+:} false; then :
9032   $as_echo_n "(cached) " >&6
9033 else
9034   lt_cv_ar_at_file=no
9035    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9036 /* end confdefs.h.  */
9037
9038 int main (void)
9039 {
9040
9041  ;
9042  return 0;
9043 }
9044 _ACEOF
9045 if ac_fn_c_try_compile "$LINENO"; then :
9046   echo conftest.$ac_objext > conftest.lst
9047       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9048       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9049   (eval $lt_ar_try) 2>&5
9050   ac_status=$?
9051   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9052   test $ac_status = 0; }
9053       if test 0 -eq "$ac_status"; then
9054         # Ensure the archiver fails upon bogus file names.
9055         rm -f conftest.$ac_objext libconftest.a
9056         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9057   (eval $lt_ar_try) 2>&5
9058   ac_status=$?
9059   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9060   test $ac_status = 0; }
9061         if test 0 -ne "$ac_status"; then
9062           lt_cv_ar_at_file=@
9063         fi
9064       fi
9065       rm -f conftest.* libconftest.a
9066
9067 fi
9068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9069
9070 fi
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9072 $as_echo "$lt_cv_ar_at_file" >&6; }
9073
9074 if test no = "$lt_cv_ar_at_file"; then
9075   archiver_list_spec=
9076 else
9077   archiver_list_spec=$lt_cv_ar_at_file
9078 fi
9079
9080
9081
9082
9083
9084
9085
9086 if test -n "$ac_tool_prefix"; then
9087   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9088 set dummy ${ac_tool_prefix}strip; ac_word=$2
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9090 $as_echo_n "checking for $ac_word... " >&6; }
9091 if ${ac_cv_prog_STRIP+:} false; then :
9092   $as_echo_n "(cached) " >&6
9093 else
9094   if test -n "$STRIP"; then
9095   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9096 else
9097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9098 for as_dir in $PATH
9099 do
9100   IFS=$as_save_IFS
9101   test -z "$as_dir" && as_dir=.
9102     for ac_exec_ext in '' $ac_executable_extensions; do
9103   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9104     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9106     break 2
9107   fi
9108 done
9109   done
9110 IFS=$as_save_IFS
9111
9112 fi
9113 fi
9114 STRIP=$ac_cv_prog_STRIP
9115 if test -n "$STRIP"; then
9116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9117 $as_echo "$STRIP" >&6; }
9118 else
9119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9120 $as_echo "no" >&6; }
9121 fi
9122
9123
9124 fi
9125 if test -z "$ac_cv_prog_STRIP"; then
9126   ac_ct_STRIP=$STRIP
9127   # Extract the first word of "strip", so it can be a program name with args.
9128 set dummy strip; ac_word=$2
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9130 $as_echo_n "checking for $ac_word... " >&6; }
9131 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9132   $as_echo_n "(cached) " >&6
9133 else
9134   if test -n "$ac_ct_STRIP"; then
9135   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9136 else
9137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9138 for as_dir in $PATH
9139 do
9140   IFS=$as_save_IFS
9141   test -z "$as_dir" && as_dir=.
9142     for ac_exec_ext in '' $ac_executable_extensions; do
9143   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9144     ac_cv_prog_ac_ct_STRIP="strip"
9145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9146     break 2
9147   fi
9148 done
9149   done
9150 IFS=$as_save_IFS
9151
9152 fi
9153 fi
9154 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9155 if test -n "$ac_ct_STRIP"; then
9156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9157 $as_echo "$ac_ct_STRIP" >&6; }
9158 else
9159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9160 $as_echo "no" >&6; }
9161 fi
9162
9163   if test "x$ac_ct_STRIP" = x; then
9164     STRIP=":"
9165   else
9166     case $cross_compiling:$ac_tool_warned in
9167 yes:)
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9170 ac_tool_warned=yes ;;
9171 esac
9172     STRIP=$ac_ct_STRIP
9173   fi
9174 else
9175   STRIP="$ac_cv_prog_STRIP"
9176 fi
9177
9178 test -z "$STRIP" && STRIP=:
9179
9180
9181
9182
9183
9184
9185 if test -n "$ac_tool_prefix"; then
9186   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9187 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9189 $as_echo_n "checking for $ac_word... " >&6; }
9190 if ${ac_cv_prog_RANLIB+:} false; then :
9191   $as_echo_n "(cached) " >&6
9192 else
9193   if test -n "$RANLIB"; then
9194   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9195 else
9196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9197 for as_dir in $PATH
9198 do
9199   IFS=$as_save_IFS
9200   test -z "$as_dir" && as_dir=.
9201     for ac_exec_ext in '' $ac_executable_extensions; do
9202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9203     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9205     break 2
9206   fi
9207 done
9208   done
9209 IFS=$as_save_IFS
9210
9211 fi
9212 fi
9213 RANLIB=$ac_cv_prog_RANLIB
9214 if test -n "$RANLIB"; then
9215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9216 $as_echo "$RANLIB" >&6; }
9217 else
9218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9219 $as_echo "no" >&6; }
9220 fi
9221
9222
9223 fi
9224 if test -z "$ac_cv_prog_RANLIB"; then
9225   ac_ct_RANLIB=$RANLIB
9226   # Extract the first word of "ranlib", so it can be a program name with args.
9227 set dummy ranlib; ac_word=$2
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9229 $as_echo_n "checking for $ac_word... " >&6; }
9230 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9231   $as_echo_n "(cached) " >&6
9232 else
9233   if test -n "$ac_ct_RANLIB"; then
9234   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9235 else
9236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9237 for as_dir in $PATH
9238 do
9239   IFS=$as_save_IFS
9240   test -z "$as_dir" && as_dir=.
9241     for ac_exec_ext in '' $ac_executable_extensions; do
9242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9243     ac_cv_prog_ac_ct_RANLIB="ranlib"
9244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9245     break 2
9246   fi
9247 done
9248   done
9249 IFS=$as_save_IFS
9250
9251 fi
9252 fi
9253 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9254 if test -n "$ac_ct_RANLIB"; then
9255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9256 $as_echo "$ac_ct_RANLIB" >&6; }
9257 else
9258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9259 $as_echo "no" >&6; }
9260 fi
9261
9262   if test "x$ac_ct_RANLIB" = x; then
9263     RANLIB=":"
9264   else
9265     case $cross_compiling:$ac_tool_warned in
9266 yes:)
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9269 ac_tool_warned=yes ;;
9270 esac
9271     RANLIB=$ac_ct_RANLIB
9272   fi
9273 else
9274   RANLIB="$ac_cv_prog_RANLIB"
9275 fi
9276
9277 test -z "$RANLIB" && RANLIB=:
9278
9279
9280
9281
9282
9283
9284 # Determine commands to create old-style static archives.
9285 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9286 old_postinstall_cmds='chmod 644 $oldlib'
9287 old_postuninstall_cmds=
9288
9289 if test -n "$RANLIB"; then
9290   case $host_os in
9291   bitrig* | openbsd*)
9292     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9293     ;;
9294   *)
9295     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9296     ;;
9297   esac
9298   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9299 fi
9300
9301 case $host_os in
9302   darwin*)
9303     lock_old_archive_extraction=yes ;;
9304   *)
9305     lock_old_archive_extraction=no ;;
9306 esac
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346 # If no C compiler was specified, use CC.
9347 LTCC=${LTCC-"$CC"}
9348
9349 # If no C compiler flags were specified, use CFLAGS.
9350 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9351
9352 # Allow CC to be a program name with arguments.
9353 compiler=$CC
9354
9355
9356 # Check for command to grab the raw symbol name followed by C symbol from nm.
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9358 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9359 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9360   $as_echo_n "(cached) " >&6
9361 else
9362
9363 # These are sane defaults that work on at least a few old systems.
9364 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9365
9366 # Character class describing NM global symbol codes.
9367 symcode='[BCDEGRST]'
9368
9369 # Regexp to match symbols that can be accessed directly from C.
9370 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9371
9372 # Define system-specific variables.
9373 case $host_os in
9374 aix*)
9375   symcode='[BCDT]'
9376   ;;
9377 cygwin* | mingw* | pw32* | cegcc*)
9378   symcode='[ABCDGISTW]'
9379   ;;
9380 hpux*)
9381   if test ia64 = "$host_cpu"; then
9382     symcode='[ABCDEGRST]'
9383   fi
9384   ;;
9385 irix* | nonstopux*)
9386   symcode='[BCDEGRST]'
9387   ;;
9388 osf*)
9389   symcode='[BCDEGQRST]'
9390   ;;
9391 solaris*)
9392   symcode='[BDRT]'
9393   ;;
9394 sco3.2v5*)
9395   symcode='[DT]'
9396   ;;
9397 sysv4.2uw2*)
9398   symcode='[DT]'
9399   ;;
9400 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9401   symcode='[ABDT]'
9402   ;;
9403 sysv4)
9404   symcode='[DFNSTU]'
9405   ;;
9406 esac
9407
9408 # If we're using GNU nm, then use its standard symbol codes.
9409 case `$NM -V 2>&1` in
9410 *GNU* | *'with BFD'*)
9411   symcode='[ABCDGIRSTW]' ;;
9412 esac
9413
9414 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9415   # Gets list of data symbols to import.
9416   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9417   # Adjust the below global symbol transforms to fixup imported variables.
9418   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9419   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9420   lt_c_name_lib_hook="\
9421   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9422   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9423 else
9424   # Disable hooks by default.
9425   lt_cv_sys_global_symbol_to_import=
9426   lt_cdecl_hook=
9427   lt_c_name_hook=
9428   lt_c_name_lib_hook=
9429 fi
9430
9431 # Transform an extracted symbol line into a proper C declaration.
9432 # Some systems (esp. on ia64) link data and code symbols differently,
9433 # so use this general approach.
9434 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9435 $lt_cdecl_hook\
9436 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9437 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9438
9439 # Transform an extracted symbol line into symbol name and symbol address
9440 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9441 $lt_c_name_hook\
9442 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9443 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9444
9445 # Transform an extracted symbol line into symbol name with lib prefix and
9446 # symbol address.
9447 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9448 $lt_c_name_lib_hook\
9449 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9450 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9451 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9452
9453 # Handle CRLF in mingw tool chain
9454 opt_cr=
9455 case $build_os in
9456 mingw*)
9457   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9458   ;;
9459 esac
9460
9461 # Try without a prefix underscore, then with it.
9462 for ac_symprfx in "" "_"; do
9463
9464   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9465   symxfrm="\\1 $ac_symprfx\\2 \\2"
9466
9467   # Write the raw and C identifiers.
9468   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9469     # Fake it for dumpbin and say T for any non-static function,
9470     # D for any global variable and I for any imported variable.
9471     # Also find C++ and __fastcall symbols from MSVC++,
9472     # which start with @ or ?.
9473     lt_cv_sys_global_symbol_pipe="$AWK '"\
9474 "     {last_section=section; section=\$ 3};"\
9475 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9476 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9477 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9478 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9479 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9480 "     \$ 0!~/External *\|/{next};"\
9481 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9482 "     {if(hide[section]) next};"\
9483 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9484 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9485 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9486 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9487 "     ' prfx=^$ac_symprfx"
9488   else
9489     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9490   fi
9491   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9492
9493   # Check to see that the pipe works correctly.
9494   pipe_works=no
9495
9496   rm -f conftest*
9497   cat > conftest.$ac_ext <<_LT_EOF
9498 #ifdef __cplusplus
9499 extern "C" {
9500 #endif
9501 char nm_test_var;
9502 void nm_test_func(void);
9503 void nm_test_func(void){}
9504 #ifdef __cplusplus
9505 }
9506 #endif
9507 int main(){nm_test_var='a';nm_test_func();return(0);}
9508 _LT_EOF
9509
9510   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9511   (eval $ac_compile) 2>&5
9512   ac_status=$?
9513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9514   test $ac_status = 0; }; then
9515     # Now try to grab the symbols.
9516     nlist=conftest.nm
9517     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9518   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9519   ac_status=$?
9520   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9521   test $ac_status = 0; } && test -s "$nlist"; then
9522       # Try sorting and uniquifying the output.
9523       if sort "$nlist" | uniq > "$nlist"T; then
9524         mv -f "$nlist"T "$nlist"
9525       else
9526         rm -f "$nlist"T
9527       fi
9528
9529       # Make sure that we snagged all the symbols we need.
9530       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9531         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9532           cat <<_LT_EOF > conftest.$ac_ext
9533 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9534 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9535 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9536    relocations are performed -- see ld's documentation on pseudo-relocs.  */
9537 # define LT_DLSYM_CONST
9538 #elif defined __osf__
9539 /* This system does not cope well with relocations in const data.  */
9540 # define LT_DLSYM_CONST
9541 #else
9542 # define LT_DLSYM_CONST const
9543 #endif
9544
9545 #ifdef __cplusplus
9546 extern "C" {
9547 #endif
9548
9549 _LT_EOF
9550           # Now generate the symbol file.
9551           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9552
9553           cat <<_LT_EOF >> conftest.$ac_ext
9554
9555 /* The mapping between symbol names and symbols.  */
9556 LT_DLSYM_CONST struct {
9557   const char *name;
9558   void       *address;
9559 }
9560 lt__PROGRAM__LTX_preloaded_symbols[] =
9561 {
9562   { "@PROGRAM@", (void *) 0 },
9563 _LT_EOF
9564           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9565           cat <<\_LT_EOF >> conftest.$ac_ext
9566   {0, (void *) 0}
9567 };
9568
9569 /* This works around a problem in FreeBSD linker */
9570 #ifdef FREEBSD_WORKAROUND
9571 static const void *lt_preloaded_setup() {
9572   return lt__PROGRAM__LTX_preloaded_symbols;
9573 }
9574 #endif
9575
9576 #ifdef __cplusplus
9577 }
9578 #endif
9579 _LT_EOF
9580           # Now try linking the two files.
9581           mv -f conftest.$ac_objext conftstm.$ac_objext
9582           lt_globsym_save_LIBS=$LIBS
9583           lt_globsym_save_CFLAGS=$CFLAGS
9584           LIBS=conftstm.$ac_objext
9585           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9586           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9587   (eval $ac_link) 2>&5
9588   ac_status=$?
9589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9590   test $ac_status = 0; } && test -s conftest$ac_exeext; then
9591             pipe_works=yes
9592           fi
9593           LIBS=$lt_globsym_save_LIBS
9594           CFLAGS=$lt_globsym_save_CFLAGS
9595         else
9596           echo "cannot find nm_test_func in $nlist" >&5
9597         fi
9598       else
9599         echo "cannot find nm_test_var in $nlist" >&5
9600       fi
9601     else
9602       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9603     fi
9604   else
9605     echo "$progname: failed program was:" >&5
9606     cat conftest.$ac_ext >&5
9607   fi
9608   rm -rf conftest* conftst*
9609
9610   # Do not use the global_symbol_pipe unless it works.
9611   if test yes = "$pipe_works"; then
9612     break
9613   else
9614     lt_cv_sys_global_symbol_pipe=
9615   fi
9616 done
9617
9618 fi
9619
9620 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9621   lt_cv_sys_global_symbol_to_cdecl=
9622 fi
9623 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9625 $as_echo "failed" >&6; }
9626 else
9627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9628 $as_echo "ok" >&6; }
9629 fi
9630
9631 # Response file support.
9632 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9633   nm_file_list_spec='@'
9634 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9635   nm_file_list_spec='@'
9636 fi
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9675 $as_echo_n "checking for sysroot... " >&6; }
9676
9677 # Check whether --with-sysroot was given.
9678 if test "${with_sysroot+set}" = set; then :
9679   withval=$with_sysroot;
9680 else
9681   with_sysroot=no
9682 fi
9683
9684
9685 lt_sysroot=
9686 case $with_sysroot in #(
9687  yes)
9688    if test yes = "$GCC"; then
9689      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9690    fi
9691    ;; #(
9692  /*)
9693    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9694    ;; #(
9695  no|'')
9696    ;; #(
9697  *)
9698    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9699 $as_echo "$with_sysroot" >&6; }
9700    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9701    ;;
9702 esac
9703
9704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9705 $as_echo "${lt_sysroot:-no}" >&6; }
9706
9707
9708
9709
9710
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9712 $as_echo_n "checking for a working dd... " >&6; }
9713 if ${ac_cv_path_lt_DD+:} false; then :
9714   $as_echo_n "(cached) " >&6
9715 else
9716   printf 0123456789abcdef0123456789abcdef >conftest.i
9717 cat conftest.i conftest.i >conftest2.i
9718 : ${lt_DD:=$DD}
9719 if test -z "$lt_DD"; then
9720   ac_path_lt_DD_found=false
9721   # Loop through the user's path and test for each of PROGNAME-LIST
9722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9723 for as_dir in $PATH
9724 do
9725   IFS=$as_save_IFS
9726   test -z "$as_dir" && as_dir=.
9727     for ac_prog in dd; do
9728     for ac_exec_ext in '' $ac_executable_extensions; do
9729       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9730       as_fn_executable_p "$ac_path_lt_DD" || continue
9731 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9732   cmp -s conftest.i conftest.out \
9733   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9734 fi
9735       $ac_path_lt_DD_found && break 3
9736     done
9737   done
9738   done
9739 IFS=$as_save_IFS
9740   if test -z "$ac_cv_path_lt_DD"; then
9741     :
9742   fi
9743 else
9744   ac_cv_path_lt_DD=$lt_DD
9745 fi
9746
9747 rm -f conftest.i conftest2.i conftest.out
9748 fi
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9750 $as_echo "$ac_cv_path_lt_DD" >&6; }
9751
9752
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9754 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9755 if ${lt_cv_truncate_bin+:} false; then :
9756   $as_echo_n "(cached) " >&6
9757 else
9758   printf 0123456789abcdef0123456789abcdef >conftest.i
9759 cat conftest.i conftest.i >conftest2.i
9760 lt_cv_truncate_bin=
9761 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9762   cmp -s conftest.i conftest.out \
9763   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9764 fi
9765 rm -f conftest.i conftest2.i conftest.out
9766 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9767 fi
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9769 $as_echo "$lt_cv_truncate_bin" >&6; }
9770
9771
9772
9773
9774
9775
9776
9777 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9778 func_cc_basename ()
9779 {
9780     for cc_temp in $*""; do
9781       case $cc_temp in
9782         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9783         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9784         \-*) ;;
9785         *) break;;
9786       esac
9787     done
9788     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9789 }
9790
9791 # Check whether --enable-libtool-lock was given.
9792 if test "${enable_libtool_lock+set}" = set; then :
9793   enableval=$enable_libtool_lock;
9794 fi
9795
9796 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9797
9798 # Some flags need to be propagated to the compiler or linker for good
9799 # libtool support.
9800 case $host in
9801 ia64-*-hpux*)
9802   # Find out what ABI is being produced by ac_compile, and set mode
9803   # options accordingly.
9804   echo 'int i;' > conftest.$ac_ext
9805   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9806   (eval $ac_compile) 2>&5
9807   ac_status=$?
9808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9809   test $ac_status = 0; }; then
9810     case `/usr/bin/file conftest.$ac_objext` in
9811       *ELF-32*)
9812         HPUX_IA64_MODE=32
9813         ;;
9814       *ELF-64*)
9815         HPUX_IA64_MODE=64
9816         ;;
9817     esac
9818   fi
9819   rm -rf conftest*
9820   ;;
9821 *-*-irix6*)
9822   # Find out what ABI is being produced by ac_compile, and set linker
9823   # options accordingly.
9824   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9825   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9826   (eval $ac_compile) 2>&5
9827   ac_status=$?
9828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9829   test $ac_status = 0; }; then
9830     if test yes = "$lt_cv_prog_gnu_ld"; then
9831       case `/usr/bin/file conftest.$ac_objext` in
9832         *32-bit*)
9833           LD="${LD-ld} -melf32bsmip"
9834           ;;
9835         *N32*)
9836           LD="${LD-ld} -melf32bmipn32"
9837           ;;
9838         *64-bit*)
9839           LD="${LD-ld} -melf64bmip"
9840         ;;
9841       esac
9842     else
9843       case `/usr/bin/file conftest.$ac_objext` in
9844         *32-bit*)
9845           LD="${LD-ld} -32"
9846           ;;
9847         *N32*)
9848           LD="${LD-ld} -n32"
9849           ;;
9850         *64-bit*)
9851           LD="${LD-ld} -64"
9852           ;;
9853       esac
9854     fi
9855   fi
9856   rm -rf conftest*
9857   ;;
9858
9859 mips64*-*linux*)
9860   # Find out what ABI is being produced by ac_compile, and set linker
9861   # options accordingly.
9862   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9863   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9864   (eval $ac_compile) 2>&5
9865   ac_status=$?
9866   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9867   test $ac_status = 0; }; then
9868     emul=elf
9869     case `/usr/bin/file conftest.$ac_objext` in
9870       *32-bit*)
9871         emul="${emul}32"
9872         ;;
9873       *64-bit*)
9874         emul="${emul}64"
9875         ;;
9876     esac
9877     case `/usr/bin/file conftest.$ac_objext` in
9878       *MSB*)
9879         emul="${emul}btsmip"
9880         ;;
9881       *LSB*)
9882         emul="${emul}ltsmip"
9883         ;;
9884     esac
9885     case `/usr/bin/file conftest.$ac_objext` in
9886       *N32*)
9887         emul="${emul}n32"
9888         ;;
9889     esac
9890     LD="${LD-ld} -m $emul"
9891   fi
9892   rm -rf conftest*
9893   ;;
9894
9895 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9896 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9897   # Find out what ABI is being produced by ac_compile, and set linker
9898   # options accordingly.  Note that the listed cases only cover the
9899   # situations where additional linker options are needed (such as when
9900   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9901   # vice versa); the common cases where no linker options are needed do
9902   # not appear in the list.
9903   echo 'int i;' > conftest.$ac_ext
9904   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9905   (eval $ac_compile) 2>&5
9906   ac_status=$?
9907   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9908   test $ac_status = 0; }; then
9909     case `/usr/bin/file conftest.o` in
9910       *32-bit*)
9911         case $host in
9912           x86_64-*kfreebsd*-gnu)
9913             LD="${LD-ld} -m elf_i386_fbsd"
9914             ;;
9915           x86_64-*linux*)
9916             case `/usr/bin/file conftest.o` in
9917               *x86-64*)
9918                 LD="${LD-ld} -m elf32_x86_64"
9919                 ;;
9920               *)
9921                 LD="${LD-ld} -m elf_i386"
9922                 ;;
9923             esac
9924             ;;
9925           powerpc64le-*linux*)
9926             LD="${LD-ld} -m elf32lppclinux"
9927             ;;
9928           powerpc64-*linux*)
9929             LD="${LD-ld} -m elf32ppclinux"
9930             ;;
9931           s390x-*linux*)
9932             LD="${LD-ld} -m elf_s390"
9933             ;;
9934           sparc64-*linux*)
9935             LD="${LD-ld} -m elf32_sparc"
9936             ;;
9937         esac
9938         ;;
9939       *64-bit*)
9940         case $host in
9941           x86_64-*kfreebsd*-gnu)
9942             LD="${LD-ld} -m elf_x86_64_fbsd"
9943             ;;
9944           x86_64-*linux*)
9945             LD="${LD-ld} -m elf_x86_64"
9946             ;;
9947           powerpcle-*linux*)
9948             LD="${LD-ld} -m elf64lppc"
9949             ;;
9950           powerpc-*linux*)
9951             LD="${LD-ld} -m elf64ppc"
9952             ;;
9953           s390*-*linux*|s390*-*tpf*)
9954             LD="${LD-ld} -m elf64_s390"
9955             ;;
9956           sparc*-*linux*)
9957             LD="${LD-ld} -m elf64_sparc"
9958             ;;
9959         esac
9960         ;;
9961     esac
9962   fi
9963   rm -rf conftest*
9964   ;;
9965
9966 *-*-sco3.2v5*)
9967   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9968   SAVE_CFLAGS=$CFLAGS
9969   CFLAGS="$CFLAGS -belf"
9970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9971 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9972 if ${lt_cv_cc_needs_belf+:} false; then :
9973   $as_echo_n "(cached) " >&6
9974 else
9975   ac_ext=c
9976 ac_cpp='$CPP $CPPFLAGS'
9977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9980
9981      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9982 /* end confdefs.h.  */
9983
9984 int main (void)
9985 {
9986
9987  ;
9988  return 0;
9989 }
9990 _ACEOF
9991 if ac_fn_c_try_link "$LINENO"; then :
9992   lt_cv_cc_needs_belf=yes
9993 else
9994   lt_cv_cc_needs_belf=no
9995 fi
9996 rm -f core conftest.err conftest.$ac_objext \
9997     conftest$ac_exeext conftest.$ac_ext
9998      ac_ext=c
9999 ac_cpp='$CPP $CPPFLAGS'
10000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10003
10004 fi
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10006 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10007   if test yes != "$lt_cv_cc_needs_belf"; then
10008     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10009     CFLAGS=$SAVE_CFLAGS
10010   fi
10011   ;;
10012 *-*solaris*)
10013   # Find out what ABI is being produced by ac_compile, and set linker
10014   # options accordingly.
10015   echo 'int i;' > conftest.$ac_ext
10016   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10017   (eval $ac_compile) 2>&5
10018   ac_status=$?
10019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10020   test $ac_status = 0; }; then
10021     case `/usr/bin/file conftest.o` in
10022     *64-bit*)
10023       case $lt_cv_prog_gnu_ld in
10024       yes*)
10025         case $host in
10026         i?86-*-solaris*|x86_64-*-solaris*)
10027           LD="${LD-ld} -m elf_x86_64"
10028           ;;
10029         sparc*-*-solaris*)
10030           LD="${LD-ld} -m elf64_sparc"
10031           ;;
10032         esac
10033         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
10034         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10035           LD=${LD-ld}_sol2
10036         fi
10037         ;;
10038       *)
10039         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10040           LD="${LD-ld} -64"
10041         fi
10042         ;;
10043       esac
10044       ;;
10045     esac
10046   fi
10047   rm -rf conftest*
10048   ;;
10049 esac
10050
10051 need_locks=$enable_libtool_lock
10052
10053 if test -n "$ac_tool_prefix"; then
10054   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10055 set dummy ${ac_tool_prefix}mt; ac_word=$2
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10057 $as_echo_n "checking for $ac_word... " >&6; }
10058 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10059   $as_echo_n "(cached) " >&6
10060 else
10061   if test -n "$MANIFEST_TOOL"; then
10062   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10063 else
10064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10065 for as_dir in $PATH
10066 do
10067   IFS=$as_save_IFS
10068   test -z "$as_dir" && as_dir=.
10069     for ac_exec_ext in '' $ac_executable_extensions; do
10070   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10071     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10073     break 2
10074   fi
10075 done
10076   done
10077 IFS=$as_save_IFS
10078
10079 fi
10080 fi
10081 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10082 if test -n "$MANIFEST_TOOL"; then
10083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10084 $as_echo "$MANIFEST_TOOL" >&6; }
10085 else
10086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087 $as_echo "no" >&6; }
10088 fi
10089
10090
10091 fi
10092 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10093   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10094   # Extract the first word of "mt", so it can be a program name with args.
10095 set dummy mt; ac_word=$2
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10097 $as_echo_n "checking for $ac_word... " >&6; }
10098 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10099   $as_echo_n "(cached) " >&6
10100 else
10101   if test -n "$ac_ct_MANIFEST_TOOL"; then
10102   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10103 else
10104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10105 for as_dir in $PATH
10106 do
10107   IFS=$as_save_IFS
10108   test -z "$as_dir" && as_dir=.
10109     for ac_exec_ext in '' $ac_executable_extensions; do
10110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10111     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10113     break 2
10114   fi
10115 done
10116   done
10117 IFS=$as_save_IFS
10118
10119 fi
10120 fi
10121 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10122 if test -n "$ac_ct_MANIFEST_TOOL"; then
10123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10124 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10125 else
10126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10127 $as_echo "no" >&6; }
10128 fi
10129
10130   if test "x$ac_ct_MANIFEST_TOOL" = x; then
10131     MANIFEST_TOOL=":"
10132   else
10133     case $cross_compiling:$ac_tool_warned in
10134 yes:)
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10137 ac_tool_warned=yes ;;
10138 esac
10139     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10140   fi
10141 else
10142   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10143 fi
10144
10145 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10147 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10148 if ${lt_cv_path_mainfest_tool+:} false; then :
10149   $as_echo_n "(cached) " >&6
10150 else
10151   lt_cv_path_mainfest_tool=no
10152   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10153   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10154   cat conftest.err >&5
10155   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10156     lt_cv_path_mainfest_tool=yes
10157   fi
10158   rm -f conftest*
10159 fi
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10161 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10162 if test yes != "$lt_cv_path_mainfest_tool"; then
10163   MANIFEST_TOOL=:
10164 fi
10165
10166
10167
10168
10169
10170
10171   case $host_os in
10172     rhapsody* | darwin*)
10173     if test -n "$ac_tool_prefix"; then
10174   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10175 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10177 $as_echo_n "checking for $ac_word... " >&6; }
10178 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10179   $as_echo_n "(cached) " >&6
10180 else
10181   if test -n "$DSYMUTIL"; then
10182   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10183 else
10184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10185 for as_dir in $PATH
10186 do
10187   IFS=$as_save_IFS
10188   test -z "$as_dir" && as_dir=.
10189     for ac_exec_ext in '' $ac_executable_extensions; do
10190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10191     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10193     break 2
10194   fi
10195 done
10196   done
10197 IFS=$as_save_IFS
10198
10199 fi
10200 fi
10201 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10202 if test -n "$DSYMUTIL"; then
10203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10204 $as_echo "$DSYMUTIL" >&6; }
10205 else
10206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10207 $as_echo "no" >&6; }
10208 fi
10209
10210
10211 fi
10212 if test -z "$ac_cv_prog_DSYMUTIL"; then
10213   ac_ct_DSYMUTIL=$DSYMUTIL
10214   # Extract the first word of "dsymutil", so it can be a program name with args.
10215 set dummy dsymutil; ac_word=$2
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10217 $as_echo_n "checking for $ac_word... " >&6; }
10218 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10219   $as_echo_n "(cached) " >&6
10220 else
10221   if test -n "$ac_ct_DSYMUTIL"; then
10222   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10223 else
10224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10225 for as_dir in $PATH
10226 do
10227   IFS=$as_save_IFS
10228   test -z "$as_dir" && as_dir=.
10229     for ac_exec_ext in '' $ac_executable_extensions; do
10230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10231     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10233     break 2
10234   fi
10235 done
10236   done
10237 IFS=$as_save_IFS
10238
10239 fi
10240 fi
10241 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10242 if test -n "$ac_ct_DSYMUTIL"; then
10243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10244 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10245 else
10246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10247 $as_echo "no" >&6; }
10248 fi
10249
10250   if test "x$ac_ct_DSYMUTIL" = x; then
10251     DSYMUTIL=":"
10252   else
10253     case $cross_compiling:$ac_tool_warned in
10254 yes:)
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10257 ac_tool_warned=yes ;;
10258 esac
10259     DSYMUTIL=$ac_ct_DSYMUTIL
10260   fi
10261 else
10262   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10263 fi
10264
10265     if test -n "$ac_tool_prefix"; then
10266   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10267 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10269 $as_echo_n "checking for $ac_word... " >&6; }
10270 if ${ac_cv_prog_NMEDIT+:} false; then :
10271   $as_echo_n "(cached) " >&6
10272 else
10273   if test -n "$NMEDIT"; then
10274   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10275 else
10276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10277 for as_dir in $PATH
10278 do
10279   IFS=$as_save_IFS
10280   test -z "$as_dir" && as_dir=.
10281     for ac_exec_ext in '' $ac_executable_extensions; do
10282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10283     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10285     break 2
10286   fi
10287 done
10288   done
10289 IFS=$as_save_IFS
10290
10291 fi
10292 fi
10293 NMEDIT=$ac_cv_prog_NMEDIT
10294 if test -n "$NMEDIT"; then
10295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10296 $as_echo "$NMEDIT" >&6; }
10297 else
10298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10299 $as_echo "no" >&6; }
10300 fi
10301
10302
10303 fi
10304 if test -z "$ac_cv_prog_NMEDIT"; then
10305   ac_ct_NMEDIT=$NMEDIT
10306   # Extract the first word of "nmedit", so it can be a program name with args.
10307 set dummy nmedit; ac_word=$2
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10309 $as_echo_n "checking for $ac_word... " >&6; }
10310 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10311   $as_echo_n "(cached) " >&6
10312 else
10313   if test -n "$ac_ct_NMEDIT"; then
10314   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10315 else
10316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10317 for as_dir in $PATH
10318 do
10319   IFS=$as_save_IFS
10320   test -z "$as_dir" && as_dir=.
10321     for ac_exec_ext in '' $ac_executable_extensions; do
10322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10323     ac_cv_prog_ac_ct_NMEDIT="nmedit"
10324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10325     break 2
10326   fi
10327 done
10328   done
10329 IFS=$as_save_IFS
10330
10331 fi
10332 fi
10333 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10334 if test -n "$ac_ct_NMEDIT"; then
10335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10336 $as_echo "$ac_ct_NMEDIT" >&6; }
10337 else
10338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339 $as_echo "no" >&6; }
10340 fi
10341
10342   if test "x$ac_ct_NMEDIT" = x; then
10343     NMEDIT=":"
10344   else
10345     case $cross_compiling:$ac_tool_warned in
10346 yes:)
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10349 ac_tool_warned=yes ;;
10350 esac
10351     NMEDIT=$ac_ct_NMEDIT
10352   fi
10353 else
10354   NMEDIT="$ac_cv_prog_NMEDIT"
10355 fi
10356
10357     if test -n "$ac_tool_prefix"; then
10358   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10359 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10361 $as_echo_n "checking for $ac_word... " >&6; }
10362 if ${ac_cv_prog_LIPO+:} false; then :
10363   $as_echo_n "(cached) " >&6
10364 else
10365   if test -n "$LIPO"; then
10366   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10367 else
10368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10369 for as_dir in $PATH
10370 do
10371   IFS=$as_save_IFS
10372   test -z "$as_dir" && as_dir=.
10373     for ac_exec_ext in '' $ac_executable_extensions; do
10374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10375     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10377     break 2
10378   fi
10379 done
10380   done
10381 IFS=$as_save_IFS
10382
10383 fi
10384 fi
10385 LIPO=$ac_cv_prog_LIPO
10386 if test -n "$LIPO"; then
10387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10388 $as_echo "$LIPO" >&6; }
10389 else
10390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391 $as_echo "no" >&6; }
10392 fi
10393
10394
10395 fi
10396 if test -z "$ac_cv_prog_LIPO"; then
10397   ac_ct_LIPO=$LIPO
10398   # Extract the first word of "lipo", so it can be a program name with args.
10399 set dummy lipo; ac_word=$2
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10401 $as_echo_n "checking for $ac_word... " >&6; }
10402 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10403   $as_echo_n "(cached) " >&6
10404 else
10405   if test -n "$ac_ct_LIPO"; then
10406   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10407 else
10408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10409 for as_dir in $PATH
10410 do
10411   IFS=$as_save_IFS
10412   test -z "$as_dir" && as_dir=.
10413     for ac_exec_ext in '' $ac_executable_extensions; do
10414   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10415     ac_cv_prog_ac_ct_LIPO="lipo"
10416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10417     break 2
10418   fi
10419 done
10420   done
10421 IFS=$as_save_IFS
10422
10423 fi
10424 fi
10425 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10426 if test -n "$ac_ct_LIPO"; then
10427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10428 $as_echo "$ac_ct_LIPO" >&6; }
10429 else
10430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10431 $as_echo "no" >&6; }
10432 fi
10433
10434   if test "x$ac_ct_LIPO" = x; then
10435     LIPO=":"
10436   else
10437     case $cross_compiling:$ac_tool_warned in
10438 yes:)
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10441 ac_tool_warned=yes ;;
10442 esac
10443     LIPO=$ac_ct_LIPO
10444   fi
10445 else
10446   LIPO="$ac_cv_prog_LIPO"
10447 fi
10448
10449     if test -n "$ac_tool_prefix"; then
10450   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10451 set dummy ${ac_tool_prefix}otool; ac_word=$2
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10453 $as_echo_n "checking for $ac_word... " >&6; }
10454 if ${ac_cv_prog_OTOOL+:} false; then :
10455   $as_echo_n "(cached) " >&6
10456 else
10457   if test -n "$OTOOL"; then
10458   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10459 else
10460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10461 for as_dir in $PATH
10462 do
10463   IFS=$as_save_IFS
10464   test -z "$as_dir" && as_dir=.
10465     for ac_exec_ext in '' $ac_executable_extensions; do
10466   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10467     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10469     break 2
10470   fi
10471 done
10472   done
10473 IFS=$as_save_IFS
10474
10475 fi
10476 fi
10477 OTOOL=$ac_cv_prog_OTOOL
10478 if test -n "$OTOOL"; then
10479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10480 $as_echo "$OTOOL" >&6; }
10481 else
10482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10483 $as_echo "no" >&6; }
10484 fi
10485
10486
10487 fi
10488 if test -z "$ac_cv_prog_OTOOL"; then
10489   ac_ct_OTOOL=$OTOOL
10490   # Extract the first word of "otool", so it can be a program name with args.
10491 set dummy otool; ac_word=$2
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10493 $as_echo_n "checking for $ac_word... " >&6; }
10494 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10495   $as_echo_n "(cached) " >&6
10496 else
10497   if test -n "$ac_ct_OTOOL"; then
10498   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10499 else
10500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10501 for as_dir in $PATH
10502 do
10503   IFS=$as_save_IFS
10504   test -z "$as_dir" && as_dir=.
10505     for ac_exec_ext in '' $ac_executable_extensions; do
10506   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10507     ac_cv_prog_ac_ct_OTOOL="otool"
10508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10509     break 2
10510   fi
10511 done
10512   done
10513 IFS=$as_save_IFS
10514
10515 fi
10516 fi
10517 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10518 if test -n "$ac_ct_OTOOL"; then
10519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10520 $as_echo "$ac_ct_OTOOL" >&6; }
10521 else
10522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10523 $as_echo "no" >&6; }
10524 fi
10525
10526   if test "x$ac_ct_OTOOL" = x; then
10527     OTOOL=":"
10528   else
10529     case $cross_compiling:$ac_tool_warned in
10530 yes:)
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10533 ac_tool_warned=yes ;;
10534 esac
10535     OTOOL=$ac_ct_OTOOL
10536   fi
10537 else
10538   OTOOL="$ac_cv_prog_OTOOL"
10539 fi
10540
10541     if test -n "$ac_tool_prefix"; then
10542   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10543 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10545 $as_echo_n "checking for $ac_word... " >&6; }
10546 if ${ac_cv_prog_OTOOL64+:} false; then :
10547   $as_echo_n "(cached) " >&6
10548 else
10549   if test -n "$OTOOL64"; then
10550   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10551 else
10552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10553 for as_dir in $PATH
10554 do
10555   IFS=$as_save_IFS
10556   test -z "$as_dir" && as_dir=.
10557     for ac_exec_ext in '' $ac_executable_extensions; do
10558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10559     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10561     break 2
10562   fi
10563 done
10564   done
10565 IFS=$as_save_IFS
10566
10567 fi
10568 fi
10569 OTOOL64=$ac_cv_prog_OTOOL64
10570 if test -n "$OTOOL64"; then
10571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10572 $as_echo "$OTOOL64" >&6; }
10573 else
10574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10575 $as_echo "no" >&6; }
10576 fi
10577
10578
10579 fi
10580 if test -z "$ac_cv_prog_OTOOL64"; then
10581   ac_ct_OTOOL64=$OTOOL64
10582   # Extract the first word of "otool64", so it can be a program name with args.
10583 set dummy otool64; ac_word=$2
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10585 $as_echo_n "checking for $ac_word... " >&6; }
10586 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10587   $as_echo_n "(cached) " >&6
10588 else
10589   if test -n "$ac_ct_OTOOL64"; then
10590   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10591 else
10592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10593 for as_dir in $PATH
10594 do
10595   IFS=$as_save_IFS
10596   test -z "$as_dir" && as_dir=.
10597     for ac_exec_ext in '' $ac_executable_extensions; do
10598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10599     ac_cv_prog_ac_ct_OTOOL64="otool64"
10600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10601     break 2
10602   fi
10603 done
10604   done
10605 IFS=$as_save_IFS
10606
10607 fi
10608 fi
10609 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10610 if test -n "$ac_ct_OTOOL64"; then
10611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10612 $as_echo "$ac_ct_OTOOL64" >&6; }
10613 else
10614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10615 $as_echo "no" >&6; }
10616 fi
10617
10618   if test "x$ac_ct_OTOOL64" = x; then
10619     OTOOL64=":"
10620   else
10621     case $cross_compiling:$ac_tool_warned in
10622 yes:)
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10625 ac_tool_warned=yes ;;
10626 esac
10627     OTOOL64=$ac_ct_OTOOL64
10628   fi
10629 else
10630   OTOOL64="$ac_cv_prog_OTOOL64"
10631 fi
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10660 $as_echo_n "checking for -single_module linker flag... " >&6; }
10661 if ${lt_cv_apple_cc_single_mod+:} false; then :
10662   $as_echo_n "(cached) " >&6
10663 else
10664   lt_cv_apple_cc_single_mod=no
10665       if test -z "$LT_MULTI_MODULE"; then
10666         # By default we will add the -single_module flag. You can override
10667         # by either setting the environment variable LT_MULTI_MODULE
10668         # non-empty at configure time, or by adding -multi_module to the
10669         # link flags.
10670         rm -rf libconftest.dylib*
10671         echo "int foo(void){return 1;}" > conftest.c
10672         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10673 -dynamiclib -Wl,-single_module conftest.c" >&5
10674         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10675           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10676         _lt_result=$?
10677         # If there is a non-empty error log, and "single_module"
10678         # appears in it, assume the flag caused a linker warning
10679         if test -s conftest.err && $GREP single_module conftest.err; then
10680           cat conftest.err >&5
10681         # Otherwise, if the output was created with a 0 exit code from
10682         # the compiler, it worked.
10683         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10684           lt_cv_apple_cc_single_mod=yes
10685         else
10686           cat conftest.err >&5
10687         fi
10688         rm -rf libconftest.dylib*
10689         rm -f conftest.*
10690       fi
10691 fi
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10693 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10694
10695     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10696 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10697 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10698   $as_echo_n "(cached) " >&6
10699 else
10700   lt_cv_ld_exported_symbols_list=no
10701       save_LDFLAGS=$LDFLAGS
10702       echo "_main" > conftest.sym
10703       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10704       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10705 /* end confdefs.h.  */
10706
10707 int main (void)
10708 {
10709
10710  ;
10711  return 0;
10712 }
10713 _ACEOF
10714 if ac_fn_c_try_link "$LINENO"; then :
10715   lt_cv_ld_exported_symbols_list=yes
10716 else
10717   lt_cv_ld_exported_symbols_list=no
10718 fi
10719 rm -f core conftest.err conftest.$ac_objext \
10720     conftest$ac_exeext conftest.$ac_ext
10721         LDFLAGS=$save_LDFLAGS
10722
10723 fi
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10725 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10726
10727     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10728 $as_echo_n "checking for -force_load linker flag... " >&6; }
10729 if ${lt_cv_ld_force_load+:} false; then :
10730   $as_echo_n "(cached) " >&6
10731 else
10732   lt_cv_ld_force_load=no
10733       cat > conftest.c << _LT_EOF
10734 int forced_loaded() { return 2;}
10735 _LT_EOF
10736       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10737       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10738       echo "$AR cru libconftest.a conftest.o" >&5
10739       $AR cru libconftest.a conftest.o 2>&5
10740       echo "$RANLIB libconftest.a" >&5
10741       $RANLIB libconftest.a 2>&5
10742       cat > conftest.c << _LT_EOF
10743 int main() { return 0;}
10744 _LT_EOF
10745       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10746       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10747       _lt_result=$?
10748       if test -s conftest.err && $GREP force_load conftest.err; then
10749         cat conftest.err >&5
10750       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10751         lt_cv_ld_force_load=yes
10752       else
10753         cat conftest.err >&5
10754       fi
10755         rm -f conftest.err libconftest.a conftest conftest.c
10756         rm -rf conftest.dSYM
10757
10758 fi
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10760 $as_echo "$lt_cv_ld_force_load" >&6; }
10761     case $host_os in
10762     rhapsody* | darwin1.[012])
10763       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10764     darwin1.*)
10765       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10766     darwin*) # darwin 5.x on
10767       # if running on 10.5 or later, the deployment target defaults
10768       # to the OS version, if on x86, and 10.4, the deployment
10769       # target defaults to 10.4. Don't you love it?
10770       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10771         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10772           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10773         10.[012][,.]*)
10774           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10775         10.*)
10776           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10777       esac
10778     ;;
10779   esac
10780     if test yes = "$lt_cv_apple_cc_single_mod"; then
10781       _lt_dar_single_mod='$single_module'
10782     fi
10783     if test yes = "$lt_cv_ld_exported_symbols_list"; then
10784       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10785     else
10786       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10787     fi
10788     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10789       _lt_dsymutil='~$DSYMUTIL $lib || :'
10790     else
10791       _lt_dsymutil=
10792     fi
10793     ;;
10794   esac
10795
10796 # func_munge_path_list VARIABLE PATH
10797 # -----------------------------------
10798 # VARIABLE is name of variable containing _space_ separated list of
10799 # directories to be munged by the contents of PATH, which is string
10800 # having a format:
10801 # "DIR[:DIR]:"
10802 #       string "DIR[ DIR]" will be prepended to VARIABLE
10803 # ":DIR[:DIR]"
10804 #       string "DIR[ DIR]" will be appended to VARIABLE
10805 # "DIRP[:DIRP]::[DIRA:]DIRA"
10806 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10807 #       "DIRA[ DIRA]" will be appended to VARIABLE
10808 # "DIR[:DIR]"
10809 #       VARIABLE will be replaced by "DIR[ DIR]"
10810 func_munge_path_list ()
10811 {
10812     case x$2 in
10813     x)
10814         ;;
10815     *:)
10816         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10817         ;;
10818     x:*)
10819         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10820         ;;
10821     *::*)
10822         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10823         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10824         ;;
10825     *)
10826         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10827         ;;
10828     esac
10829 }
10830
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10832 $as_echo_n "checking for ANSI C header files... " >&6; }
10833 if ${ac_cv_header_stdc+:} false; then :
10834   $as_echo_n "(cached) " >&6
10835 else
10836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837 /* end confdefs.h.  */
10838 #include <stdlib.h>
10839 #include <stdarg.h>
10840 #include <string.h>
10841 #include <float.h>
10842
10843 int main (void)
10844 {
10845
10846  ;
10847  return 0;
10848 }
10849 _ACEOF
10850 if ac_fn_c_try_compile "$LINENO"; then :
10851   ac_cv_header_stdc=yes
10852 else
10853   ac_cv_header_stdc=no
10854 fi
10855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10856
10857 if test $ac_cv_header_stdc = yes; then
10858   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10860 /* end confdefs.h.  */
10861 #include <string.h>
10862
10863 _ACEOF
10864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10865   $EGREP "memchr" >/dev/null 2>&1; then :
10866
10867 else
10868   ac_cv_header_stdc=no
10869 fi
10870 rm -f conftest*
10871
10872 fi
10873
10874 if test $ac_cv_header_stdc = yes; then
10875   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h.  */
10878 #include <stdlib.h>
10879
10880 _ACEOF
10881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10882   $EGREP "free" >/dev/null 2>&1; then :
10883
10884 else
10885   ac_cv_header_stdc=no
10886 fi
10887 rm -f conftest*
10888
10889 fi
10890
10891 if test $ac_cv_header_stdc = yes; then
10892   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10893   if test "$cross_compiling" = yes; then :
10894   :
10895 else
10896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10897 /* end confdefs.h.  */
10898 #include <ctype.h>
10899 #include <stdlib.h>
10900 #if ((' ' & 0x0FF) == 0x020)
10901 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10902 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10903 #else
10904 # define ISLOWER(c) \
10905                    (('a' <= (c) && (c) <= 'i') \
10906                      || ('j' <= (c) && (c) <= 'r') \
10907                      || ('s' <= (c) && (c) <= 'z'))
10908 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10909 #endif
10910
10911 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10912 int
10913 main ()
10914 {
10915   int i;
10916   for (i = 0; i < 256; i++)
10917     if (XOR (islower (i), ISLOWER (i))
10918         || toupper (i) != TOUPPER (i))
10919       return 2;
10920   return 0;
10921 }
10922 _ACEOF
10923 if ac_fn_c_try_run "$LINENO"; then :
10924
10925 else
10926   ac_cv_header_stdc=no
10927 fi
10928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10929   conftest.$ac_objext conftest.beam conftest.$ac_ext
10930 fi
10931
10932 fi
10933 fi
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10935 $as_echo "$ac_cv_header_stdc" >&6; }
10936 if test $ac_cv_header_stdc = yes; then
10937
10938 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10939
10940 fi
10941
10942 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10943 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10944                   inttypes.h stdint.h unistd.h
10945 do :
10946   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10947 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10948 "
10949 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10950   cat >>confdefs.h <<_ACEOF
10951 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10952 _ACEOF
10953
10954 fi
10955
10956 done
10957
10958
10959 for ac_header in dlfcn.h
10960 do :
10961   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10962 "
10963 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10964   cat >>confdefs.h <<_ACEOF
10965 #define HAVE_DLFCN_H 1
10966 _ACEOF
10967
10968 fi
10969
10970 done
10971
10972 # ------------------------------------ #
10973 #  Determine libtool default behavior  #
10974 # ------------------------------------ #
10975
10976 #
10977 # Default behavior is to enable shared and static libraries on systems
10978 # where libtool knows how to build both library versions, and does not
10979 # require separate configuration and build runs for each flavor.
10980 #
10981
10982 xc_lt_want_enable_shared='yes'
10983 xc_lt_want_enable_static='yes'
10984
10985 #
10986 # User may have disabled shared or static libraries.
10987 #
10988 case "x$enable_shared" in # (
10989   xno)
10990     xc_lt_want_enable_shared='no'
10991     ;;
10992 esac
10993 case "x$enable_static" in # (
10994   xno)
10995     xc_lt_want_enable_static='no'
10996     ;;
10997 esac
10998 if test "x$xc_lt_want_enable_shared" = 'xno' &&
10999   test "x$xc_lt_want_enable_static" = 'xno'; then
11000   as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
11001 fi
11002
11003 #
11004 # Default behavior on systems that require independent configuration
11005 # and build runs for shared and static is to enable shared libraries
11006 # and disable static ones. On these systems option '--disable-shared'
11007 # must be used in order to build a proper static library.
11008 #
11009
11010 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
11011   test "x$xc_lt_want_enable_static" = 'xyes'; then
11012   case $host_os in # (
11013     pw32* | cegcc* | os2* | aix*)
11014       xc_lt_want_enable_static='no'
11015       ;;
11016   esac
11017 fi
11018
11019 #
11020 # Make libtool aware of current shared and static library preferences
11021 # taking in account that, depending on host characteristics, libtool
11022 # may modify these option preferences later in this configure script.
11023 #
11024
11025 enable_shared=$xc_lt_want_enable_shared
11026 enable_static=$xc_lt_want_enable_static
11027
11028 #
11029 # Default behavior is to build PIC objects for shared libraries and
11030 # non-PIC objects for static libraries.
11031 #
11032
11033 xc_lt_want_with_pic='default'
11034
11035 #
11036 # User may have specified PIC preference.
11037 #
11038
11039 case "x$with_pic" in # ((
11040   xno)
11041     xc_lt_want_with_pic='no'
11042     ;;
11043   xyes)
11044     xc_lt_want_with_pic='yes'
11045     ;;
11046 esac
11047
11048 #
11049 # Default behavior on some systems where building a shared library out
11050 # of non-PIC compiled objects will fail with following linker error
11051 # "relocation R_X86_64_32 can not be used when making a shared object"
11052 # is to build PIC objects even for static libraries. This behavior may
11053 # be overridden using 'configure --disable-shared --without-pic'.
11054 #
11055
11056 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
11057   case $host_cpu in # (
11058     x86_64 | amd64 | ia64)
11059       case $host_os in # (
11060         linux* | freebsd*)
11061           xc_lt_want_with_pic='yes'
11062           ;;
11063       esac
11064       ;;
11065   esac
11066 fi
11067
11068 #
11069 # Make libtool aware of current PIC preference taking in account that,
11070 # depending on host characteristics, libtool may modify PIC default
11071 # behavior to fit host system idiosyncrasies later in this script.
11072 #
11073
11074 with_pic=$xc_lt_want_with_pic
11075
11076 ## ----------------------- ##
11077 ##  Start of libtool code  ##
11078 ## ----------------------- ##
11079
11080
11081
11082
11083 # Set options
11084 enable_win32_dll=yes
11085
11086 case $host in
11087 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11088   if test -n "$ac_tool_prefix"; then
11089   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11090 set dummy ${ac_tool_prefix}as; ac_word=$2
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11092 $as_echo_n "checking for $ac_word... " >&6; }
11093 if ${ac_cv_prog_AS+:} false; then :
11094   $as_echo_n "(cached) " >&6
11095 else
11096   if test -n "$AS"; then
11097   ac_cv_prog_AS="$AS" # Let the user override the test.
11098 else
11099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11100 for as_dir in $PATH
11101 do
11102   IFS=$as_save_IFS
11103   test -z "$as_dir" && as_dir=.
11104     for ac_exec_ext in '' $ac_executable_extensions; do
11105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11106     ac_cv_prog_AS="${ac_tool_prefix}as"
11107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11108     break 2
11109   fi
11110 done
11111   done
11112 IFS=$as_save_IFS
11113
11114 fi
11115 fi
11116 AS=$ac_cv_prog_AS
11117 if test -n "$AS"; then
11118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11119 $as_echo "$AS" >&6; }
11120 else
11121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11122 $as_echo "no" >&6; }
11123 fi
11124
11125
11126 fi
11127 if test -z "$ac_cv_prog_AS"; then
11128   ac_ct_AS=$AS
11129   # Extract the first word of "as", so it can be a program name with args.
11130 set dummy as; ac_word=$2
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11132 $as_echo_n "checking for $ac_word... " >&6; }
11133 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11134   $as_echo_n "(cached) " >&6
11135 else
11136   if test -n "$ac_ct_AS"; then
11137   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11138 else
11139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11140 for as_dir in $PATH
11141 do
11142   IFS=$as_save_IFS
11143   test -z "$as_dir" && as_dir=.
11144     for ac_exec_ext in '' $ac_executable_extensions; do
11145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11146     ac_cv_prog_ac_ct_AS="as"
11147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11148     break 2
11149   fi
11150 done
11151   done
11152 IFS=$as_save_IFS
11153
11154 fi
11155 fi
11156 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11157 if test -n "$ac_ct_AS"; then
11158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11159 $as_echo "$ac_ct_AS" >&6; }
11160 else
11161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11162 $as_echo "no" >&6; }
11163 fi
11164
11165   if test "x$ac_ct_AS" = x; then
11166     AS="false"
11167   else
11168     case $cross_compiling:$ac_tool_warned in
11169 yes:)
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11172 ac_tool_warned=yes ;;
11173 esac
11174     AS=$ac_ct_AS
11175   fi
11176 else
11177   AS="$ac_cv_prog_AS"
11178 fi
11179
11180   if test -n "$ac_tool_prefix"; then
11181   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11182 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11184 $as_echo_n "checking for $ac_word... " >&6; }
11185 if ${ac_cv_prog_DLLTOOL+:} false; then :
11186   $as_echo_n "(cached) " >&6
11187 else
11188   if test -n "$DLLTOOL"; then
11189   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11190 else
11191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11192 for as_dir in $PATH
11193 do
11194   IFS=$as_save_IFS
11195   test -z "$as_dir" && as_dir=.
11196     for ac_exec_ext in '' $ac_executable_extensions; do
11197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11198     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11200     break 2
11201   fi
11202 done
11203   done
11204 IFS=$as_save_IFS
11205
11206 fi
11207 fi
11208 DLLTOOL=$ac_cv_prog_DLLTOOL
11209 if test -n "$DLLTOOL"; then
11210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11211 $as_echo "$DLLTOOL" >&6; }
11212 else
11213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11214 $as_echo "no" >&6; }
11215 fi
11216
11217
11218 fi
11219 if test -z "$ac_cv_prog_DLLTOOL"; then
11220   ac_ct_DLLTOOL=$DLLTOOL
11221   # Extract the first word of "dlltool", so it can be a program name with args.
11222 set dummy dlltool; ac_word=$2
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11224 $as_echo_n "checking for $ac_word... " >&6; }
11225 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11226   $as_echo_n "(cached) " >&6
11227 else
11228   if test -n "$ac_ct_DLLTOOL"; then
11229   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11230 else
11231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232 for as_dir in $PATH
11233 do
11234   IFS=$as_save_IFS
11235   test -z "$as_dir" && as_dir=.
11236     for ac_exec_ext in '' $ac_executable_extensions; do
11237   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11238     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11240     break 2
11241   fi
11242 done
11243   done
11244 IFS=$as_save_IFS
11245
11246 fi
11247 fi
11248 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11249 if test -n "$ac_ct_DLLTOOL"; then
11250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11251 $as_echo "$ac_ct_DLLTOOL" >&6; }
11252 else
11253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254 $as_echo "no" >&6; }
11255 fi
11256
11257   if test "x$ac_ct_DLLTOOL" = x; then
11258     DLLTOOL="false"
11259   else
11260     case $cross_compiling:$ac_tool_warned in
11261 yes:)
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11264 ac_tool_warned=yes ;;
11265 esac
11266     DLLTOOL=$ac_ct_DLLTOOL
11267   fi
11268 else
11269   DLLTOOL="$ac_cv_prog_DLLTOOL"
11270 fi
11271
11272   if test -n "$ac_tool_prefix"; then
11273   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11274 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11276 $as_echo_n "checking for $ac_word... " >&6; }
11277 if ${ac_cv_prog_OBJDUMP+:} false; then :
11278   $as_echo_n "(cached) " >&6
11279 else
11280   if test -n "$OBJDUMP"; then
11281   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11282 else
11283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11284 for as_dir in $PATH
11285 do
11286   IFS=$as_save_IFS
11287   test -z "$as_dir" && as_dir=.
11288     for ac_exec_ext in '' $ac_executable_extensions; do
11289   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11290     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11292     break 2
11293   fi
11294 done
11295   done
11296 IFS=$as_save_IFS
11297
11298 fi
11299 fi
11300 OBJDUMP=$ac_cv_prog_OBJDUMP
11301 if test -n "$OBJDUMP"; then
11302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11303 $as_echo "$OBJDUMP" >&6; }
11304 else
11305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11306 $as_echo "no" >&6; }
11307 fi
11308
11309
11310 fi
11311 if test -z "$ac_cv_prog_OBJDUMP"; then
11312   ac_ct_OBJDUMP=$OBJDUMP
11313   # Extract the first word of "objdump", so it can be a program name with args.
11314 set dummy objdump; ac_word=$2
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11316 $as_echo_n "checking for $ac_word... " >&6; }
11317 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11318   $as_echo_n "(cached) " >&6
11319 else
11320   if test -n "$ac_ct_OBJDUMP"; then
11321   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11322 else
11323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11324 for as_dir in $PATH
11325 do
11326   IFS=$as_save_IFS
11327   test -z "$as_dir" && as_dir=.
11328     for ac_exec_ext in '' $ac_executable_extensions; do
11329   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11330     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11332     break 2
11333   fi
11334 done
11335   done
11336 IFS=$as_save_IFS
11337
11338 fi
11339 fi
11340 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11341 if test -n "$ac_ct_OBJDUMP"; then
11342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11343 $as_echo "$ac_ct_OBJDUMP" >&6; }
11344 else
11345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11346 $as_echo "no" >&6; }
11347 fi
11348
11349   if test "x$ac_ct_OBJDUMP" = x; then
11350     OBJDUMP="false"
11351   else
11352     case $cross_compiling:$ac_tool_warned in
11353 yes:)
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11356 ac_tool_warned=yes ;;
11357 esac
11358     OBJDUMP=$ac_ct_OBJDUMP
11359   fi
11360 else
11361   OBJDUMP="$ac_cv_prog_OBJDUMP"
11362 fi
11363
11364   ;;
11365 esac
11366
11367 test -z "$AS" && AS=as
11368
11369
11370
11371
11372
11373 test -z "$DLLTOOL" && DLLTOOL=dlltool
11374
11375
11376
11377
11378
11379 test -z "$OBJDUMP" && OBJDUMP=objdump
11380
11381
11382
11383
11384
11385
11386
11387         enable_dlopen=no
11388
11389
11390
11391             # Check whether --enable-shared was given.
11392 if test "${enable_shared+set}" = set; then :
11393   enableval=$enable_shared; p=${PACKAGE-default}
11394     case $enableval in
11395     yes) enable_shared=yes ;;
11396     no) enable_shared=no ;;
11397     *)
11398       enable_shared=no
11399       # Look at the argument we got.  We use all the common list separators.
11400       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11401       for pkg in $enableval; do
11402         IFS=$lt_save_ifs
11403         if test "X$pkg" = "X$p"; then
11404           enable_shared=yes
11405         fi
11406       done
11407       IFS=$lt_save_ifs
11408       ;;
11409     esac
11410 else
11411   enable_shared=yes
11412 fi
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422   # Check whether --enable-static was given.
11423 if test "${enable_static+set}" = set; then :
11424   enableval=$enable_static; p=${PACKAGE-default}
11425     case $enableval in
11426     yes) enable_static=yes ;;
11427     no) enable_static=no ;;
11428     *)
11429      enable_static=no
11430       # Look at the argument we got.  We use all the common list separators.
11431       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11432       for pkg in $enableval; do
11433         IFS=$lt_save_ifs
11434         if test "X$pkg" = "X$p"; then
11435           enable_static=yes
11436         fi
11437       done
11438       IFS=$lt_save_ifs
11439       ;;
11440     esac
11441 else
11442   enable_static=yes
11443 fi
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454 # Check whether --with-pic was given.
11455 if test "${with_pic+set}" = set; then :
11456   withval=$with_pic; lt_p=${PACKAGE-default}
11457     case $withval in
11458     yes|no) pic_mode=$withval ;;
11459     *)
11460       pic_mode=default
11461       # Look at the argument we got.  We use all the common list separators.
11462       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11463       for lt_pkg in $withval; do
11464         IFS=$lt_save_ifs
11465         if test "X$lt_pkg" = "X$lt_p"; then
11466           pic_mode=yes
11467         fi
11468       done
11469       IFS=$lt_save_ifs
11470       ;;
11471     esac
11472 else
11473   pic_mode=default
11474 fi
11475
11476
11477
11478
11479
11480
11481
11482
11483   # Check whether --enable-fast-install was given.
11484 if test "${enable_fast_install+set}" = set; then :
11485   enableval=$enable_fast_install; p=${PACKAGE-default}
11486     case $enableval in
11487     yes) enable_fast_install=yes ;;
11488     no) enable_fast_install=no ;;
11489     *)
11490       enable_fast_install=no
11491       # Look at the argument we got.  We use all the common list separators.
11492       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11493       for pkg in $enableval; do
11494         IFS=$lt_save_ifs
11495         if test "X$pkg" = "X$p"; then
11496           enable_fast_install=yes
11497         fi
11498       done
11499       IFS=$lt_save_ifs
11500       ;;
11501     esac
11502 else
11503   enable_fast_install=yes
11504 fi
11505
11506
11507
11508
11509
11510
11511
11512
11513   shared_archive_member_spec=
11514 case $host,$enable_shared in
11515 power*-*-aix[5-9]*,yes)
11516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11517 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11518
11519 # Check whether --with-aix-soname was given.
11520 if test "${with_aix_soname+set}" = set; then :
11521   withval=$with_aix_soname; case $withval in
11522     aix|svr4|both)
11523       ;;
11524     *)
11525       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11526       ;;
11527     esac
11528     lt_cv_with_aix_soname=$with_aix_soname
11529 else
11530   if ${lt_cv_with_aix_soname+:} false; then :
11531   $as_echo_n "(cached) " >&6
11532 else
11533   lt_cv_with_aix_soname=aix
11534 fi
11535
11536     with_aix_soname=$lt_cv_with_aix_soname
11537 fi
11538
11539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11540 $as_echo "$with_aix_soname" >&6; }
11541   if test aix != "$with_aix_soname"; then
11542     # For the AIX way of multilib, we name the shared archive member
11543     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11544     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11545     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11546     # the AIX toolchain works better with OBJECT_MODE set (default 32).
11547     if test 64 = "${OBJECT_MODE-32}"; then
11548       shared_archive_member_spec=shr_64
11549     else
11550       shared_archive_member_spec=shr
11551     fi
11552   fi
11553   ;;
11554 *)
11555   with_aix_soname=aix
11556   ;;
11557 esac
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568 # This can be used to rebuild libtool when needed
11569 LIBTOOL_DEPS=$ltmain
11570
11571 # Always use our own libtool.
11572 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603 test -z "$LN_S" && LN_S="ln -s"
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618 if test -n "${ZSH_VERSION+set}"; then
11619    setopt NO_GLOB_SUBST
11620 fi
11621
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11623 $as_echo_n "checking for objdir... " >&6; }
11624 if ${lt_cv_objdir+:} false; then :
11625   $as_echo_n "(cached) " >&6
11626 else
11627   rm -f .libs 2>/dev/null
11628 mkdir .libs 2>/dev/null
11629 if test -d .libs; then
11630   lt_cv_objdir=.libs
11631 else
11632   # MS-DOS does not allow filenames that begin with a dot.
11633   lt_cv_objdir=_libs
11634 fi
11635 rmdir .libs 2>/dev/null
11636 fi
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11638 $as_echo "$lt_cv_objdir" >&6; }
11639 objdir=$lt_cv_objdir
11640
11641
11642
11643
11644
11645 cat >>confdefs.h <<_ACEOF
11646 #define LT_OBJDIR "$lt_cv_objdir/"
11647 _ACEOF
11648
11649
11650
11651
11652 case $host_os in
11653 aix3*)
11654   # AIX sometimes has problems with the GCC collect2 program.  For some
11655   # reason, if we set the COLLECT_NAMES environment variable, the problems
11656   # vanish in a puff of smoke.
11657   if test set != "${COLLECT_NAMES+set}"; then
11658     COLLECT_NAMES=
11659     export COLLECT_NAMES
11660   fi
11661   ;;
11662 esac
11663
11664 # Global variables:
11665 ofile=libtool
11666 can_build_shared=yes
11667
11668 # All known linkers require a '.a' archive for static linking (except MSVC,
11669 # which needs '.lib').
11670 libext=a
11671
11672 with_gnu_ld=$lt_cv_prog_gnu_ld
11673
11674 old_CC=$CC
11675 old_CFLAGS=$CFLAGS
11676
11677 # Set sane defaults for various variables
11678 test -z "$CC" && CC=cc
11679 test -z "$LTCC" && LTCC=$CC
11680 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11681 test -z "$LD" && LD=ld
11682 test -z "$ac_objext" && ac_objext=o
11683
11684 func_cc_basename $compiler
11685 cc_basename=$func_cc_basename_result
11686
11687
11688 # Only perform the check for file, if the check method requires it
11689 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11690 case $deplibs_check_method in
11691 file_magic*)
11692   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11693     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11694 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11695 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11696   $as_echo_n "(cached) " >&6
11697 else
11698   case $MAGIC_CMD in
11699 [\\/*] |  ?:[\\/]*)
11700   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11701   ;;
11702 *)
11703   lt_save_MAGIC_CMD=$MAGIC_CMD
11704   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11705   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11706   for ac_dir in $ac_dummy; do
11707     IFS=$lt_save_ifs
11708     test -z "$ac_dir" && ac_dir=.
11709     if test -f "$ac_dir/${ac_tool_prefix}file"; then
11710       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11711       if test -n "$file_magic_test_file"; then
11712         case $deplibs_check_method in
11713         "file_magic "*)
11714           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11715           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11716           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11717             $EGREP "$file_magic_regex" > /dev/null; then
11718             :
11719           else
11720             cat <<_LT_EOF 1>&2
11721
11722 *** Warning: the command libtool uses to detect shared libraries,
11723 *** $file_magic_cmd, produces output that libtool cannot recognize.
11724 *** The result is that libtool may fail to recognize shared libraries
11725 *** as such.  This will affect the creation of libtool libraries that
11726 *** depend on shared libraries, but programs linked with such libtool
11727 *** libraries will work regardless of this problem.  Nevertheless, you
11728 *** may want to report the problem to your system manager and/or to
11729 *** bug-libtool@gnu.org
11730
11731 _LT_EOF
11732           fi ;;
11733         esac
11734       fi
11735       break
11736     fi
11737   done
11738   IFS=$lt_save_ifs
11739   MAGIC_CMD=$lt_save_MAGIC_CMD
11740   ;;
11741 esac
11742 fi
11743
11744 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11745 if test -n "$MAGIC_CMD"; then
11746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11747 $as_echo "$MAGIC_CMD" >&6; }
11748 else
11749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11750 $as_echo "no" >&6; }
11751 fi
11752
11753
11754
11755
11756
11757 if test -z "$lt_cv_path_MAGIC_CMD"; then
11758   if test -n "$ac_tool_prefix"; then
11759     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11760 $as_echo_n "checking for file... " >&6; }
11761 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11762   $as_echo_n "(cached) " >&6
11763 else
11764   case $MAGIC_CMD in
11765 [\\/*] |  ?:[\\/]*)
11766   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11767   ;;
11768 *)
11769   lt_save_MAGIC_CMD=$MAGIC_CMD
11770   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11771   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11772   for ac_dir in $ac_dummy; do
11773     IFS=$lt_save_ifs
11774     test -z "$ac_dir" && ac_dir=.
11775     if test -f "$ac_dir/file"; then
11776       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11777       if test -n "$file_magic_test_file"; then
11778         case $deplibs_check_method in
11779         "file_magic "*)
11780           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11781           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11782           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11783             $EGREP "$file_magic_regex" > /dev/null; then
11784             :
11785           else
11786             cat <<_LT_EOF 1>&2
11787
11788 *** Warning: the command libtool uses to detect shared libraries,
11789 *** $file_magic_cmd, produces output that libtool cannot recognize.
11790 *** The result is that libtool may fail to recognize shared libraries
11791 *** as such.  This will affect the creation of libtool libraries that
11792 *** depend on shared libraries, but programs linked with such libtool
11793 *** libraries will work regardless of this problem.  Nevertheless, you
11794 *** may want to report the problem to your system manager and/or to
11795 *** bug-libtool@gnu.org
11796
11797 _LT_EOF
11798           fi ;;
11799         esac
11800       fi
11801       break
11802     fi
11803   done
11804   IFS=$lt_save_ifs
11805   MAGIC_CMD=$lt_save_MAGIC_CMD
11806   ;;
11807 esac
11808 fi
11809
11810 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11811 if test -n "$MAGIC_CMD"; then
11812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11813 $as_echo "$MAGIC_CMD" >&6; }
11814 else
11815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11816 $as_echo "no" >&6; }
11817 fi
11818
11819
11820   else
11821     MAGIC_CMD=:
11822   fi
11823 fi
11824
11825   fi
11826   ;;
11827 esac
11828
11829 # Use C for the default configuration in the libtool script
11830
11831 lt_save_CC=$CC
11832 ac_ext=c
11833 ac_cpp='$CPP $CPPFLAGS'
11834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11837
11838
11839 # Source file extension for C test sources.
11840 ac_ext=c
11841
11842 # Object file extension for compiled C test sources.
11843 objext=o
11844 objext=$objext
11845
11846 # Code to be used in simple compile tests
11847 lt_simple_compile_test_code="int some_variable = 0;"
11848
11849 # Code to be used in simple link tests
11850 lt_simple_link_test_code='int main(){return(0);}'
11851
11852
11853
11854
11855
11856
11857
11858 # If no C compiler was specified, use CC.
11859 LTCC=${LTCC-"$CC"}
11860
11861 # If no C compiler flags were specified, use CFLAGS.
11862 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11863
11864 # Allow CC to be a program name with arguments.
11865 compiler=$CC
11866
11867 # Save the default compiler, since it gets overwritten when the other
11868 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11869 compiler_DEFAULT=$CC
11870
11871 # save warnings/boilerplate of simple test code
11872 ac_outfile=conftest.$ac_objext
11873 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11874 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11875 _lt_compiler_boilerplate=`cat conftest.err`
11876 $RM conftest*
11877
11878 ac_outfile=conftest.$ac_objext
11879 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11880 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11881 _lt_linker_boilerplate=`cat conftest.err`
11882 $RM -r conftest*
11883
11884
11885 ## CAVEAT EMPTOR:
11886 ## There is no encapsulation within the following macros, do not change
11887 ## the running order or otherwise move them around unless you know exactly
11888 ## what you are doing...
11889 if test -n "$compiler"; then
11890
11891 lt_prog_compiler_no_builtin_flag=
11892
11893 if test yes = "$GCC"; then
11894   case $cc_basename in
11895   nvcc*)
11896     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11897   *)
11898     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11899   esac
11900
11901   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11902 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11903 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11904   $as_echo_n "(cached) " >&6
11905 else
11906   lt_cv_prog_compiler_rtti_exceptions=no
11907    ac_outfile=conftest.$ac_objext
11908    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11909    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11910    # Insert the option either (1) after the last *FLAGS variable, or
11911    # (2) before a word containing "conftest.", or (3) at the end.
11912    # Note that $ac_compile itself does not contain backslashes and begins
11913    # with a dollar sign (not a hyphen), so the echo should work correctly.
11914    # The option is referenced via a variable to avoid confusing sed.
11915    lt_compile=`echo "$ac_compile" | $SED \
11916    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11917    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11918    -e 's:$: $lt_compiler_flag:'`
11919    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11920    (eval "$lt_compile" 2>conftest.err)
11921    ac_status=$?
11922    cat conftest.err >&5
11923    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924    if (exit $ac_status) && test -s "$ac_outfile"; then
11925      # The compiler can only warn and ignore the option if not recognized
11926      # So say no if there are warnings other than the usual output.
11927      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11928      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11929      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11930        lt_cv_prog_compiler_rtti_exceptions=yes
11931      fi
11932    fi
11933    $RM conftest*
11934
11935 fi
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11937 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11938
11939 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11940     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11941 else
11942     :
11943 fi
11944
11945 fi
11946
11947
11948
11949
11950
11951
11952   lt_prog_compiler_wl=
11953 lt_prog_compiler_pic=
11954 lt_prog_compiler_static=
11955
11956
11957   if test yes = "$GCC"; then
11958     lt_prog_compiler_wl='-Wl,'
11959     lt_prog_compiler_static='-static'
11960
11961     case $host_os in
11962       aix*)
11963       # All AIX code is PIC.
11964       if test ia64 = "$host_cpu"; then
11965         # AIX 5 now supports IA64 processor
11966         lt_prog_compiler_static='-Bstatic'
11967       fi
11968       lt_prog_compiler_pic='-fPIC'
11969       ;;
11970
11971     amigaos*)
11972       case $host_cpu in
11973       powerpc)
11974             # see comment about AmigaOS4 .so support
11975             lt_prog_compiler_pic='-fPIC'
11976         ;;
11977       m68k)
11978             # FIXME: we need at least 68020 code to build shared libraries, but
11979             # adding the '-m68020' flag to GCC prevents building anything better,
11980             # like '-m68040'.
11981             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11982         ;;
11983       esac
11984       ;;
11985
11986     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11987       # PIC is the default for these OSes.
11988       ;;
11989
11990     mingw* | cygwin* | pw32* | os2* | cegcc*)
11991       # This hack is so that the source file can tell whether it is being
11992       # built for inclusion in a dll (and should export symbols for example).
11993       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11994       # (--disable-auto-import) libraries
11995       lt_prog_compiler_pic='-DDLL_EXPORT'
11996       case $host_os in
11997       os2*)
11998         lt_prog_compiler_static='$wl-static'
11999         ;;
12000       esac
12001       ;;
12002
12003     darwin* | rhapsody*)
12004       # PIC is the default on this platform
12005       # Common symbols not allowed in MH_DYLIB files
12006       lt_prog_compiler_pic='-fno-common'
12007       ;;
12008
12009     haiku*)
12010       # PIC is the default for Haiku.
12011       # The "-static" flag exists, but is broken.
12012       lt_prog_compiler_static=
12013       ;;
12014
12015     hpux*)
12016       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12017       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12018       # sets the default TLS model and affects inlining.
12019       case $host_cpu in
12020       hppa*64*)
12021         # +Z the default
12022         ;;
12023       *)
12024         lt_prog_compiler_pic='-fPIC'
12025         ;;
12026       esac
12027       ;;
12028
12029     interix[3-9]*)
12030       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12031       # Instead, we relocate shared libraries at runtime.
12032       ;;
12033
12034     msdosdjgpp*)
12035       # Just because we use GCC doesn't mean we suddenly get shared libraries
12036       # on systems that don't support them.
12037       lt_prog_compiler_can_build_shared=no
12038       enable_shared=no
12039       ;;
12040
12041     *nto* | *qnx*)
12042       # QNX uses GNU C++, but need to define -shared option too, otherwise
12043       # it will coredump.
12044       lt_prog_compiler_pic='-fPIC -shared'
12045       ;;
12046
12047     sysv4*MP*)
12048       if test -d /usr/nec; then
12049         lt_prog_compiler_pic=-Kconform_pic
12050       fi
12051       ;;
12052
12053     *)
12054       lt_prog_compiler_pic='-fPIC'
12055       ;;
12056     esac
12057
12058     case $cc_basename in
12059     nvcc*) # Cuda Compiler Driver 2.2
12060       lt_prog_compiler_wl='-Xlinker '
12061       if test -n "$lt_prog_compiler_pic"; then
12062         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12063       fi
12064       ;;
12065     esac
12066   else
12067     # PORTME Check for flag to pass linker flags through the system compiler.
12068     case $host_os in
12069     aix*)
12070       lt_prog_compiler_wl='-Wl,'
12071       if test ia64 = "$host_cpu"; then
12072         # AIX 5 now supports IA64 processor
12073         lt_prog_compiler_static='-Bstatic'
12074       else
12075         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12076       fi
12077       ;;
12078
12079     darwin* | rhapsody*)
12080       # PIC is the default on this platform
12081       # Common symbols not allowed in MH_DYLIB files
12082       lt_prog_compiler_pic='-fno-common'
12083       case $cc_basename in
12084       nagfor*)
12085         # NAG Fortran compiler
12086         lt_prog_compiler_wl='-Wl,-Wl,,'
12087         lt_prog_compiler_pic='-PIC'
12088         lt_prog_compiler_static='-Bstatic'
12089         ;;
12090       esac
12091       ;;
12092
12093     mingw* | cygwin* | pw32* | os2* | cegcc*)
12094       # This hack is so that the source file can tell whether it is being
12095       # built for inclusion in a dll (and should export symbols for example).
12096       lt_prog_compiler_pic='-DDLL_EXPORT'
12097       case $host_os in
12098       os2*)
12099         lt_prog_compiler_static='$wl-static'
12100         ;;
12101       esac
12102       ;;
12103
12104     hpux9* | hpux10* | hpux11*)
12105       lt_prog_compiler_wl='-Wl,'
12106       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12107       # not for PA HP-UX.
12108       case $host_cpu in
12109       hppa*64*|ia64*)
12110         # +Z the default
12111         ;;
12112       *)
12113         lt_prog_compiler_pic='+Z'
12114         ;;
12115       esac
12116       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12117       lt_prog_compiler_static='$wl-a ${wl}archive'
12118       ;;
12119
12120     irix5* | irix6* | nonstopux*)
12121       lt_prog_compiler_wl='-Wl,'
12122       # PIC (with -KPIC) is the default.
12123       lt_prog_compiler_static='-non_shared'
12124       ;;
12125
12126     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12127       case $cc_basename in
12128       # old Intel for x86_64, which still supported -KPIC.
12129       ecc*)
12130         lt_prog_compiler_wl='-Wl,'
12131         lt_prog_compiler_pic='-KPIC'
12132         lt_prog_compiler_static='-static'
12133         ;;
12134       # icc used to be incompatible with GCC.
12135       # ICC 10 doesn't accept -KPIC any more.
12136       icc* | ifort*)
12137         lt_prog_compiler_wl='-Wl,'
12138         lt_prog_compiler_pic='-fPIC'
12139         lt_prog_compiler_static='-static'
12140         ;;
12141       # Lahey Fortran 8.1.
12142       lf95*)
12143         lt_prog_compiler_wl='-Wl,'
12144         lt_prog_compiler_pic='--shared'
12145         lt_prog_compiler_static='--static'
12146         ;;
12147       nagfor*)
12148         # NAG Fortran compiler
12149         lt_prog_compiler_wl='-Wl,-Wl,,'
12150         lt_prog_compiler_pic='-PIC'
12151         lt_prog_compiler_static='-Bstatic'
12152         ;;
12153       tcc*)
12154         # Fabrice Bellard et al's Tiny C Compiler
12155         lt_prog_compiler_wl='-Wl,'
12156         lt_prog_compiler_pic='-fPIC'
12157         lt_prog_compiler_static='-static'
12158         ;;
12159       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12160         # Portland Group compilers (*not* the Pentium gcc compiler,
12161         # which looks to be a dead project)
12162         lt_prog_compiler_wl='-Wl,'
12163         lt_prog_compiler_pic='-fpic'
12164         lt_prog_compiler_static='-Bstatic'
12165         ;;
12166       ccc*)
12167         lt_prog_compiler_wl='-Wl,'
12168         # All Alpha code is PIC.
12169         lt_prog_compiler_static='-non_shared'
12170         ;;
12171       xl* | bgxl* | bgf* | mpixl*)
12172         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12173         lt_prog_compiler_wl='-Wl,'
12174         lt_prog_compiler_pic='-qpic'
12175         lt_prog_compiler_static='-qstaticlink'
12176         ;;
12177       *)
12178         case `$CC -V 2>&1 | sed 5q` in
12179         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12180           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12181           lt_prog_compiler_pic='-KPIC'
12182           lt_prog_compiler_static='-Bstatic'
12183           lt_prog_compiler_wl=''
12184           ;;
12185         *Sun\ F* | *Sun*Fortran*)
12186           lt_prog_compiler_pic='-KPIC'
12187           lt_prog_compiler_static='-Bstatic'
12188           lt_prog_compiler_wl='-Qoption ld '
12189           ;;
12190         *Sun\ C*)
12191           # Sun C 5.9
12192           lt_prog_compiler_pic='-KPIC'
12193           lt_prog_compiler_static='-Bstatic'
12194           lt_prog_compiler_wl='-Wl,'
12195           ;;
12196         *Intel*\ [CF]*Compiler*)
12197           lt_prog_compiler_wl='-Wl,'
12198           lt_prog_compiler_pic='-fPIC'
12199           lt_prog_compiler_static='-static'
12200           ;;
12201         *Portland\ Group*)
12202           lt_prog_compiler_wl='-Wl,'
12203           lt_prog_compiler_pic='-fpic'
12204           lt_prog_compiler_static='-Bstatic'
12205           ;;
12206         esac
12207         ;;
12208       esac
12209       ;;
12210
12211     newsos6)
12212       lt_prog_compiler_pic='-KPIC'
12213       lt_prog_compiler_static='-Bstatic'
12214       ;;
12215
12216     *nto* | *qnx*)
12217       # QNX uses GNU C++, but need to define -shared option too, otherwise
12218       # it will coredump.
12219       lt_prog_compiler_pic='-fPIC -shared'
12220       ;;
12221
12222     osf3* | osf4* | osf5*)
12223       lt_prog_compiler_wl='-Wl,'
12224       # All OSF/1 code is PIC.
12225       lt_prog_compiler_static='-non_shared'
12226       ;;
12227
12228     rdos*)
12229       lt_prog_compiler_static='-non_shared'
12230       ;;
12231
12232     solaris*)
12233       lt_prog_compiler_pic='-KPIC'
12234       lt_prog_compiler_static='-Bstatic'
12235       case $cc_basename in
12236       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12237         lt_prog_compiler_wl='-Qoption ld ';;
12238       *)
12239         lt_prog_compiler_wl='-Wl,';;
12240       esac
12241       ;;
12242
12243     sunos4*)
12244       lt_prog_compiler_wl='-Qoption ld '
12245       lt_prog_compiler_pic='-PIC'
12246       lt_prog_compiler_static='-Bstatic'
12247       ;;
12248
12249     sysv4 | sysv4.2uw2* | sysv4.3*)
12250       lt_prog_compiler_wl='-Wl,'
12251       lt_prog_compiler_pic='-KPIC'
12252       lt_prog_compiler_static='-Bstatic'
12253       ;;
12254
12255     sysv4*MP*)
12256       if test -d /usr/nec; then
12257         lt_prog_compiler_pic='-Kconform_pic'
12258         lt_prog_compiler_static='-Bstatic'
12259       fi
12260       ;;
12261
12262     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12263       lt_prog_compiler_wl='-Wl,'
12264       lt_prog_compiler_pic='-KPIC'
12265       lt_prog_compiler_static='-Bstatic'
12266       ;;
12267
12268     unicos*)
12269       lt_prog_compiler_wl='-Wl,'
12270       lt_prog_compiler_can_build_shared=no
12271       ;;
12272
12273     uts4*)
12274       lt_prog_compiler_pic='-pic'
12275       lt_prog_compiler_static='-Bstatic'
12276       ;;
12277
12278     *)
12279       lt_prog_compiler_can_build_shared=no
12280       ;;
12281     esac
12282   fi
12283
12284 case $host_os in
12285   # For platforms that do not support PIC, -DPIC is meaningless:
12286   *djgpp*)
12287     lt_prog_compiler_pic=
12288     ;;
12289   *)
12290     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12291     ;;
12292 esac
12293
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12295 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12296 if ${lt_cv_prog_compiler_pic+:} false; then :
12297   $as_echo_n "(cached) " >&6
12298 else
12299   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12300 fi
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12302 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12303 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12304
12305 #
12306 # Check to make sure the PIC flag actually works.
12307 #
12308 if test -n "$lt_prog_compiler_pic"; then
12309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12310 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12311 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12312   $as_echo_n "(cached) " >&6
12313 else
12314   lt_cv_prog_compiler_pic_works=no
12315    ac_outfile=conftest.$ac_objext
12316    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12317    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
12318    # Insert the option either (1) after the last *FLAGS variable, or
12319    # (2) before a word containing "conftest.", or (3) at the end.
12320    # Note that $ac_compile itself does not contain backslashes and begins
12321    # with a dollar sign (not a hyphen), so the echo should work correctly.
12322    # The option is referenced via a variable to avoid confusing sed.
12323    lt_compile=`echo "$ac_compile" | $SED \
12324    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12325    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12326    -e 's:$: $lt_compiler_flag:'`
12327    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12328    (eval "$lt_compile" 2>conftest.err)
12329    ac_status=$?
12330    cat conftest.err >&5
12331    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332    if (exit $ac_status) && test -s "$ac_outfile"; then
12333      # The compiler can only warn and ignore the option if not recognized
12334      # So say no if there are warnings other than the usual output.
12335      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12336      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12337      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12338        lt_cv_prog_compiler_pic_works=yes
12339      fi
12340    fi
12341    $RM conftest*
12342
12343 fi
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12345 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12346
12347 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12348     case $lt_prog_compiler_pic in
12349      "" | " "*) ;;
12350      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12351      esac
12352 else
12353     lt_prog_compiler_pic=
12354      lt_prog_compiler_can_build_shared=no
12355 fi
12356
12357 fi
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369 #
12370 # Check to make sure the static flag actually works.
12371 #
12372 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12374 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12375 if ${lt_cv_prog_compiler_static_works+:} false; then :
12376   $as_echo_n "(cached) " >&6
12377 else
12378   lt_cv_prog_compiler_static_works=no
12379    save_LDFLAGS=$LDFLAGS
12380    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12381    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12382    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12383      # The linker can only warn and ignore the option if not recognized
12384      # So say no if there are warnings
12385      if test -s conftest.err; then
12386        # Append any errors to the config.log.
12387        cat conftest.err 1>&5
12388        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12389        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12390        if diff conftest.exp conftest.er2 >/dev/null; then
12391          lt_cv_prog_compiler_static_works=yes
12392        fi
12393      else
12394        lt_cv_prog_compiler_static_works=yes
12395      fi
12396    fi
12397    $RM -r conftest*
12398    LDFLAGS=$save_LDFLAGS
12399
12400 fi
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12402 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12403
12404 if test yes = "$lt_cv_prog_compiler_static_works"; then
12405     :
12406 else
12407     lt_prog_compiler_static=
12408 fi
12409
12410
12411
12412
12413
12414
12415
12416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12417 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12418 if ${lt_cv_prog_compiler_c_o+:} false; then :
12419   $as_echo_n "(cached) " >&6
12420 else
12421   lt_cv_prog_compiler_c_o=no
12422    $RM -r conftest 2>/dev/null
12423    mkdir conftest
12424    cd conftest
12425    mkdir out
12426    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12427
12428    lt_compiler_flag="-o out/conftest2.$ac_objext"
12429    # Insert the option either (1) after the last *FLAGS variable, or
12430    # (2) before a word containing "conftest.", or (3) at the end.
12431    # Note that $ac_compile itself does not contain backslashes and begins
12432    # with a dollar sign (not a hyphen), so the echo should work correctly.
12433    lt_compile=`echo "$ac_compile" | $SED \
12434    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12435    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12436    -e 's:$: $lt_compiler_flag:'`
12437    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12438    (eval "$lt_compile" 2>out/conftest.err)
12439    ac_status=$?
12440    cat out/conftest.err >&5
12441    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12443    then
12444      # The compiler can only warn and ignore the option if not recognized
12445      # So say no if there are warnings
12446      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12447      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12448      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12449        lt_cv_prog_compiler_c_o=yes
12450      fi
12451    fi
12452    chmod u+w . 2>&5
12453    $RM conftest*
12454    # SGI C++ compiler will create directory out/ii_files/ for
12455    # template instantiation
12456    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12457    $RM out/* && rmdir out
12458    cd ..
12459    $RM -r conftest
12460    $RM conftest*
12461
12462 fi
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12464 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12465
12466
12467
12468
12469
12470
12471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12472 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12473 if ${lt_cv_prog_compiler_c_o+:} false; then :
12474   $as_echo_n "(cached) " >&6
12475 else
12476   lt_cv_prog_compiler_c_o=no
12477    $RM -r conftest 2>/dev/null
12478    mkdir conftest
12479    cd conftest
12480    mkdir out
12481    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12482
12483    lt_compiler_flag="-o out/conftest2.$ac_objext"
12484    # Insert the option either (1) after the last *FLAGS variable, or
12485    # (2) before a word containing "conftest.", or (3) at the end.
12486    # Note that $ac_compile itself does not contain backslashes and begins
12487    # with a dollar sign (not a hyphen), so the echo should work correctly.
12488    lt_compile=`echo "$ac_compile" | $SED \
12489    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12490    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12491    -e 's:$: $lt_compiler_flag:'`
12492    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12493    (eval "$lt_compile" 2>out/conftest.err)
12494    ac_status=$?
12495    cat out/conftest.err >&5
12496    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12498    then
12499      # The compiler can only warn and ignore the option if not recognized
12500      # So say no if there are warnings
12501      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12502      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12503      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12504        lt_cv_prog_compiler_c_o=yes
12505      fi
12506    fi
12507    chmod u+w . 2>&5
12508    $RM conftest*
12509    # SGI C++ compiler will create directory out/ii_files/ for
12510    # template instantiation
12511    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12512    $RM out/* && rmdir out
12513    cd ..
12514    $RM -r conftest
12515    $RM conftest*
12516
12517 fi
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12519 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12520
12521
12522
12523
12524 hard_links=nottested
12525 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12526   # do not overwrite the value of need_locks provided by the user
12527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12528 $as_echo_n "checking if we can lock with hard links... " >&6; }
12529   hard_links=yes
12530   $RM conftest*
12531   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12532   touch conftest.a
12533   ln conftest.a conftest.b 2>&5 || hard_links=no
12534   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12536 $as_echo "$hard_links" >&6; }
12537   if test no = "$hard_links"; then
12538     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12539 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12540     need_locks=warn
12541   fi
12542 else
12543   need_locks=no
12544 fi
12545
12546
12547
12548
12549
12550
12551   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12552 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12553
12554   runpath_var=
12555   allow_undefined_flag=
12556   always_export_symbols=no
12557   archive_cmds=
12558   archive_expsym_cmds=
12559   compiler_needs_object=no
12560   enable_shared_with_static_runtimes=no
12561   export_dynamic_flag_spec=
12562   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12563   hardcode_automatic=no
12564   hardcode_direct=no
12565   hardcode_direct_absolute=no
12566   hardcode_libdir_flag_spec=
12567   hardcode_libdir_separator=
12568   hardcode_minus_L=no
12569   hardcode_shlibpath_var=unsupported
12570   inherit_rpath=no
12571   link_all_deplibs=unknown
12572   module_cmds=
12573   module_expsym_cmds=
12574   old_archive_from_new_cmds=
12575   old_archive_from_expsyms_cmds=
12576   thread_safe_flag_spec=
12577   whole_archive_flag_spec=
12578   # include_expsyms should be a list of space-separated symbols to be *always*
12579   # included in the symbol list
12580   include_expsyms=
12581   # exclude_expsyms can be an extended regexp of symbols to exclude
12582   # it will be wrapped by ' (' and ')$', so one must not match beginning or
12583   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12584   # as well as any symbol that contains 'd'.
12585   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12586   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12587   # platforms (ab)use it in PIC code, but their linkers get confused if
12588   # the symbol is explicitly referenced.  Since portable code cannot
12589   # rely on this symbol name, it's probably fine to never include it in
12590   # preloaded symbol tables.
12591   # Exclude shared library initialization/finalization symbols.
12592   extract_expsyms_cmds=
12593
12594   case $host_os in
12595   cygwin* | mingw* | pw32* | cegcc*)
12596     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12597     # When not using gcc, we currently assume that we are using
12598     # Microsoft Visual C++.
12599     if test yes != "$GCC"; then
12600       with_gnu_ld=no
12601     fi
12602     ;;
12603   interix*)
12604     # we just hope/assume this is gcc and not c89 (= MSVC++)
12605     with_gnu_ld=yes
12606     ;;
12607   openbsd* | bitrig*)
12608     with_gnu_ld=no
12609     ;;
12610   linux* | k*bsd*-gnu | gnu*)
12611     link_all_deplibs=no
12612     ;;
12613   esac
12614
12615   ld_shlibs=yes
12616
12617   # On some targets, GNU ld is compatible enough with the native linker
12618   # that we're better off using the native interface for both.
12619   lt_use_gnu_ld_interface=no
12620   if test yes = "$with_gnu_ld"; then
12621     case $host_os in
12622       aix*)
12623         # The AIX port of GNU ld has always aspired to compatibility
12624         # with the native linker.  However, as the warning in the GNU ld
12625         # block says, versions before 2.19.5* couldn't really create working
12626         # shared libraries, regardless of the interface used.
12627         case `$LD -v 2>&1` in
12628           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12629           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12630           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12631           *)
12632             lt_use_gnu_ld_interface=yes
12633             ;;
12634         esac
12635         ;;
12636       *)
12637         lt_use_gnu_ld_interface=yes
12638         ;;
12639     esac
12640   fi
12641
12642   if test yes = "$lt_use_gnu_ld_interface"; then
12643     # If archive_cmds runs LD, not CC, wlarc should be empty
12644     wlarc='$wl'
12645
12646     # Set some defaults for GNU ld with shared library support. These
12647     # are reset later if shared libraries are not supported. Putting them
12648     # here allows them to be overridden if necessary.
12649     runpath_var=LD_RUN_PATH
12650     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12651     export_dynamic_flag_spec='$wl--export-dynamic'
12652     # ancient GNU ld didn't support --whole-archive et. al.
12653     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12654       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12655     else
12656       whole_archive_flag_spec=
12657     fi
12658     supports_anon_versioning=no
12659     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12660       *GNU\ gold*) supports_anon_versioning=yes ;;
12661       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12662       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12663       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12664       *\ 2.11.*) ;; # other 2.11 versions
12665       *) supports_anon_versioning=yes ;;
12666     esac
12667
12668     # See if GNU ld supports shared libraries.
12669     case $host_os in
12670     aix[3-9]*)
12671       # On AIX/PPC, the GNU linker is very broken
12672       if test ia64 != "$host_cpu"; then
12673         ld_shlibs=no
12674         cat <<_LT_EOF 1>&2
12675
12676 *** Warning: the GNU linker, at least up to release 2.19, is reported
12677 *** to be unable to reliably create shared libraries on AIX.
12678 *** Therefore, libtool is disabling shared libraries support.  If you
12679 *** really care for shared libraries, you may want to install binutils
12680 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12681 *** You will then need to restart the configuration process.
12682
12683 _LT_EOF
12684       fi
12685       ;;
12686
12687     amigaos*)
12688       case $host_cpu in
12689       powerpc)
12690             # see comment about AmigaOS4 .so support
12691             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12692             archive_expsym_cmds=''
12693         ;;
12694       m68k)
12695             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)'
12696             hardcode_libdir_flag_spec='-L$libdir'
12697             hardcode_minus_L=yes
12698         ;;
12699       esac
12700       ;;
12701
12702     beos*)
12703       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12704         allow_undefined_flag=unsupported
12705         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12706         # support --undefined.  This deserves some investigation.  FIXME
12707         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12708       else
12709         ld_shlibs=no
12710       fi
12711       ;;
12712
12713     cygwin* | mingw* | pw32* | cegcc*)
12714       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12715       # as there is no search path for DLLs.
12716       hardcode_libdir_flag_spec='-L$libdir'
12717       export_dynamic_flag_spec='$wl--export-all-symbols'
12718       allow_undefined_flag=unsupported
12719       always_export_symbols=no
12720       enable_shared_with_static_runtimes=yes
12721       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'
12722       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12723
12724       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12725         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12726         # If the export-symbols file already is a .def file, use it as
12727         # is; otherwise, prepend EXPORTS...
12728         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12729           cp $export_symbols $output_objdir/$soname.def;
12730         else
12731           echo EXPORTS > $output_objdir/$soname.def;
12732           cat $export_symbols >> $output_objdir/$soname.def;
12733         fi~
12734         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12735       else
12736         ld_shlibs=no
12737       fi
12738       ;;
12739
12740     haiku*)
12741       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12742       link_all_deplibs=yes
12743       ;;
12744
12745     os2*)
12746       hardcode_libdir_flag_spec='-L$libdir'
12747       hardcode_minus_L=yes
12748       allow_undefined_flag=unsupported
12749       shrext_cmds=.dll
12750       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12751         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12752         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12753         $ECHO EXPORTS >> $output_objdir/$libname.def~
12754         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12755         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12756         emximp -o $lib $output_objdir/$libname.def'
12757       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12758         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12759         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12760         $ECHO EXPORTS >> $output_objdir/$libname.def~
12761         prefix_cmds="$SED"~
12762         if test EXPORTS = "`$SED 1q $export_symbols`"; then
12763           prefix_cmds="$prefix_cmds -e 1d";
12764         fi~
12765         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12766         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12767         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12768         emximp -o $lib $output_objdir/$libname.def'
12769       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12770       enable_shared_with_static_runtimes=yes
12771       ;;
12772
12773     interix[3-9]*)
12774       hardcode_direct=no
12775       hardcode_shlibpath_var=no
12776       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12777       export_dynamic_flag_spec='$wl-E'
12778       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12779       # Instead, shared libraries are loaded at an image base (0x10000000 by
12780       # default) and relocated if they conflict, which is a slow very memory
12781       # consuming and fragmenting process.  To avoid this, we pick a random,
12782       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12783       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12784       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12785       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'
12786       ;;
12787
12788     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12789       tmp_diet=no
12790       if test linux-dietlibc = "$host_os"; then
12791         case $cc_basename in
12792           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12793         esac
12794       fi
12795       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12796          && test no = "$tmp_diet"
12797       then
12798         tmp_addflag=' $pic_flag'
12799         tmp_sharedflag='-shared'
12800         case $cc_basename,$host_cpu in
12801         pgcc*)                          # Portland Group C compiler
12802           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'
12803           tmp_addflag=' $pic_flag'
12804           ;;
12805         pgf77* | pgf90* | pgf95* | pgfortran*)
12806                                         # Portland Group f77 and f90 compilers
12807           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'
12808           tmp_addflag=' $pic_flag -Mnomain' ;;
12809         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12810           tmp_addflag=' -i_dynamic' ;;
12811         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12812           tmp_addflag=' -i_dynamic -nofor_main' ;;
12813         ifc* | ifort*)                  # Intel Fortran compiler
12814           tmp_addflag=' -nofor_main' ;;
12815         lf95*)                          # Lahey Fortran 8.1
12816           whole_archive_flag_spec=
12817           tmp_sharedflag='--shared' ;;
12818         nagfor*)                        # NAGFOR 5.3
12819           tmp_sharedflag='-Wl,-shared' ;;
12820         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12821           tmp_sharedflag='-qmkshrobj'
12822           tmp_addflag= ;;
12823         nvcc*)  # Cuda Compiler Driver 2.2
12824           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'
12825           compiler_needs_object=yes
12826           ;;
12827         esac
12828         case `$CC -V 2>&1 | sed 5q` in
12829         *Sun\ C*)                       # Sun C 5.9
12830           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'
12831           compiler_needs_object=yes
12832           tmp_sharedflag='-G' ;;
12833         *Sun\ F*)                       # Sun Fortran 8.3
12834           tmp_sharedflag='-G' ;;
12835         esac
12836         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12837
12838         if test yes = "$supports_anon_versioning"; then
12839           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12840             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12841             echo "local: *; };" >> $output_objdir/$libname.ver~
12842             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12843         fi
12844
12845         case $cc_basename in
12846         tcc*)
12847           export_dynamic_flag_spec='-rdynamic'
12848           ;;
12849         xlf* | bgf* | bgxlf* | mpixlf*)
12850           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12851           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12852           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12853           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12854           if test yes = "$supports_anon_versioning"; then
12855             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12856               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12857               echo "local: *; };" >> $output_objdir/$libname.ver~
12858               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12859           fi
12860           ;;
12861         esac
12862       else
12863         ld_shlibs=no
12864       fi
12865       ;;
12866
12867     netbsd* | netbsdelf*-gnu)
12868       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12869         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12870         wlarc=
12871       else
12872         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12873         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12874       fi
12875       ;;
12876
12877     solaris*)
12878       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12879         ld_shlibs=no
12880         cat <<_LT_EOF 1>&2
12881
12882 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12883 *** create shared libraries on Solaris systems.  Therefore, libtool
12884 *** is disabling shared libraries support.  We urge you to upgrade GNU
12885 *** binutils to release 2.9.1 or newer.  Another option is to modify
12886 *** your PATH or compiler configuration so that the native linker is
12887 *** used, and then restart.
12888
12889 _LT_EOF
12890       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12891         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12892         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12893       else
12894         ld_shlibs=no
12895       fi
12896       ;;
12897
12898     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12899       case `$LD -v 2>&1` in
12900         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12901         ld_shlibs=no
12902         cat <<_LT_EOF 1>&2
12903
12904 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12905 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12906 *** is disabling shared libraries support.  We urge you to upgrade GNU
12907 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12908 *** your PATH or compiler configuration so that the native linker is
12909 *** used, and then restart.
12910
12911 _LT_EOF
12912         ;;
12913         *)
12914           # For security reasons, it is highly recommended that you always
12915           # use absolute paths for naming shared libraries, and exclude the
12916           # DT_RUNPATH tag from executables and libraries.  But doing so
12917           # requires that you compile everything twice, which is a pain.
12918           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12919             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12920             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12921             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12922           else
12923             ld_shlibs=no
12924           fi
12925         ;;
12926       esac
12927       ;;
12928
12929     sunos4*)
12930       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12931       wlarc=
12932       hardcode_direct=yes
12933       hardcode_shlibpath_var=no
12934       ;;
12935
12936     *)
12937       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12938         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12939         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12940       else
12941         ld_shlibs=no
12942       fi
12943       ;;
12944     esac
12945
12946     if test no = "$ld_shlibs"; then
12947       runpath_var=
12948       hardcode_libdir_flag_spec=
12949       export_dynamic_flag_spec=
12950       whole_archive_flag_spec=
12951     fi
12952   else
12953     # PORTME fill in a description of your system's linker (not GNU ld)
12954     case $host_os in
12955     aix3*)
12956       allow_undefined_flag=unsupported
12957       always_export_symbols=yes
12958       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'
12959       # Note: this linker hardcodes the directories in LIBPATH if there
12960       # are no directories specified by -L.
12961       hardcode_minus_L=yes
12962       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12963         # Neither direct hardcoding nor static linking is supported with a
12964         # broken collect2.
12965         hardcode_direct=unsupported
12966       fi
12967       ;;
12968
12969     aix[4-9]*)
12970       if test ia64 = "$host_cpu"; then
12971         # On IA64, the linker does run time linking by default, so we don't
12972         # have to do anything special.
12973         aix_use_runtimelinking=no
12974         exp_sym_flag='-Bexport'
12975         no_entry_flag=
12976       else
12977         # If we're using GNU nm, then we don't want the "-C" option.
12978         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12979         # Without the "-l" option, or with the "-B" option, AIX nm treats
12980         # weak defined symbols like other global defined symbols, whereas
12981         # GNU nm marks them as "W".
12982         # While the 'weak' keyword is ignored in the Export File, we need
12983         # it in the Import File for the 'aix-soname' feature, so we have
12984         # to replace the "-B" option with "-P" for AIX nm.
12985         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12986           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'
12987         else
12988           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'
12989         fi
12990         aix_use_runtimelinking=no
12991
12992         # Test if we are trying to use run time linking or normal
12993         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12994         # have runtime linking enabled, and use it for executables.
12995         # For shared libraries, we enable/disable runtime linking
12996         # depending on the kind of the shared library created -
12997         # when "with_aix_soname,aix_use_runtimelinking" is:
12998         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12999         # "aix,yes"  lib.so          shared, rtl:yes, for executables
13000         #            lib.a           static archive
13001         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13002         #            lib.a(lib.so.V) shared, rtl:no,  for executables
13003         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13004         #            lib.a(lib.so.V) shared, rtl:no
13005         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13006         #            lib.a           static archive
13007         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13008           for ld_flag in $LDFLAGS; do
13009           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13010             aix_use_runtimelinking=yes
13011             break
13012           fi
13013           done
13014           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13015             # With aix-soname=svr4, we create the lib.so.V shared archives only,
13016             # so we don't have lib.a shared libs to link our executables.
13017             # We have to force runtime linking in this case.
13018             aix_use_runtimelinking=yes
13019             LDFLAGS="$LDFLAGS -Wl,-brtl"
13020           fi
13021           ;;
13022         esac
13023
13024         exp_sym_flag='-bexport'
13025         no_entry_flag='-bnoentry'
13026       fi
13027
13028       # When large executables or shared objects are built, AIX ld can
13029       # have problems creating the table of contents.  If linking a library
13030       # or program results in "error TOC overflow" add -mminimal-toc to
13031       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13032       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13033
13034       archive_cmds=''
13035       hardcode_direct=yes
13036       hardcode_direct_absolute=yes
13037       hardcode_libdir_separator=':'
13038       link_all_deplibs=yes
13039       file_list_spec='$wl-f,'
13040       case $with_aix_soname,$aix_use_runtimelinking in
13041       aix,*) ;; # traditional, no import file
13042       svr4,* | *,yes) # use import file
13043         # The Import File defines what to hardcode.
13044         hardcode_direct=no
13045         hardcode_direct_absolute=no
13046         ;;
13047       esac
13048
13049       if test yes = "$GCC"; then
13050         case $host_os in aix4.[012]|aix4.[012].*)
13051         # We only want to do this on AIX 4.2 and lower, the check
13052         # below for broken collect2 doesn't work under 4.3+
13053           collect2name=`$CC -print-prog-name=collect2`
13054           if test -f "$collect2name" &&
13055            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13056           then
13057           # We have reworked collect2
13058           :
13059           else
13060           # We have old collect2
13061           hardcode_direct=unsupported
13062           # It fails to find uninstalled libraries when the uninstalled
13063           # path is not listed in the libpath.  Setting hardcode_minus_L
13064           # to unsupported forces relinking
13065           hardcode_minus_L=yes
13066           hardcode_libdir_flag_spec='-L$libdir'
13067           hardcode_libdir_separator=
13068           fi
13069           ;;
13070         esac
13071         shared_flag='-shared'
13072         if test yes = "$aix_use_runtimelinking"; then
13073           shared_flag="$shared_flag "'$wl-G'
13074         fi
13075         # Need to ensure runtime linking is disabled for the traditional
13076         # shared library, or the linker may eventually find shared libraries
13077         # /with/ Import File - we do not want to mix them.
13078         shared_flag_aix='-shared'
13079         shared_flag_svr4='-shared $wl-G'
13080       else
13081         # not using gcc
13082         if test ia64 = "$host_cpu"; then
13083         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13084         # chokes on -Wl,-G. The following line is correct:
13085           shared_flag='-G'
13086         else
13087           if test yes = "$aix_use_runtimelinking"; then
13088             shared_flag='$wl-G'
13089           else
13090             shared_flag='$wl-bM:SRE'
13091           fi
13092           shared_flag_aix='$wl-bM:SRE'
13093           shared_flag_svr4='$wl-G'
13094         fi
13095       fi
13096
13097       export_dynamic_flag_spec='$wl-bexpall'
13098       # It seems that -bexpall does not export symbols beginning with
13099       # underscore (_), so it is better to generate a list of symbols to export.
13100       always_export_symbols=yes
13101       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13102         # Warning - without using the other runtime loading flags (-brtl),
13103         # -berok will link without error, but may produce a broken library.
13104         allow_undefined_flag='-berok'
13105         # Determine the default libpath from the value encoded in an
13106         # empty executable.
13107         if test set = "${lt_cv_aix_libpath+set}"; then
13108   aix_libpath=$lt_cv_aix_libpath
13109 else
13110   if ${lt_cv_aix_libpath_+:} false; then :
13111   $as_echo_n "(cached) " >&6
13112 else
13113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13114 /* end confdefs.h.  */
13115
13116 int main (void)
13117 {
13118
13119  ;
13120  return 0;
13121 }
13122 _ACEOF
13123 if ac_fn_c_try_link "$LINENO"; then :
13124
13125   lt_aix_libpath_sed='
13126       /Import File Strings/,/^$/ {
13127           /^0/ {
13128               s/^0  *\([^ ]*\) *$/\1/
13129               p
13130           }
13131       }'
13132   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13133   # Check for a 64-bit object if we didn't find anything.
13134   if test -z "$lt_cv_aix_libpath_"; then
13135     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13136   fi
13137 fi
13138 rm -f core conftest.err conftest.$ac_objext \
13139     conftest$ac_exeext conftest.$ac_ext
13140   if test -z "$lt_cv_aix_libpath_"; then
13141     lt_cv_aix_libpath_=/usr/lib:/lib
13142   fi
13143
13144 fi
13145
13146   aix_libpath=$lt_cv_aix_libpath_
13147 fi
13148
13149         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13150         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
13151       else
13152         if test ia64 = "$host_cpu"; then
13153           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13154           allow_undefined_flag="-z nodefs"
13155           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"
13156         else
13157          # Determine the default libpath from the value encoded in an
13158          # empty executable.
13159          if test set = "${lt_cv_aix_libpath+set}"; then
13160   aix_libpath=$lt_cv_aix_libpath
13161 else
13162   if ${lt_cv_aix_libpath_+:} false; then :
13163   $as_echo_n "(cached) " >&6
13164 else
13165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166 /* end confdefs.h.  */
13167
13168 int main (void)
13169 {
13170
13171  ;
13172  return 0;
13173 }
13174 _ACEOF
13175 if ac_fn_c_try_link "$LINENO"; then :
13176
13177   lt_aix_libpath_sed='
13178       /Import File Strings/,/^$/ {
13179           /^0/ {
13180               s/^0  *\([^ ]*\) *$/\1/
13181               p
13182           }
13183       }'
13184   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13185   # Check for a 64-bit object if we didn't find anything.
13186   if test -z "$lt_cv_aix_libpath_"; then
13187     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13188   fi
13189 fi
13190 rm -f core conftest.err conftest.$ac_objext \
13191     conftest$ac_exeext conftest.$ac_ext
13192   if test -z "$lt_cv_aix_libpath_"; then
13193     lt_cv_aix_libpath_=/usr/lib:/lib
13194   fi
13195
13196 fi
13197
13198   aix_libpath=$lt_cv_aix_libpath_
13199 fi
13200
13201          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13202           # Warning - without using the other run time loading flags,
13203           # -berok will link without error, but may produce a broken library.
13204           no_undefined_flag=' $wl-bernotok'
13205           allow_undefined_flag=' $wl-berok'
13206           if test yes = "$with_gnu_ld"; then
13207             # We only use this code for GNU lds that support --whole-archive.
13208             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13209           else
13210             # Exported symbols can be pulled into shared objects from archives
13211             whole_archive_flag_spec='$convenience'
13212           fi
13213           archive_cmds_need_lc=yes
13214           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13215           # -brtl affects multiple linker settings, -berok does not and is overridden later
13216           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13217           if test svr4 != "$with_aix_soname"; then
13218             # This is similar to how AIX traditionally builds its shared libraries.
13219             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'
13220           fi
13221           if test aix != "$with_aix_soname"; then
13222             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'
13223           else
13224             # used by -dlpreopen to get the symbols
13225             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13226           fi
13227           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13228         fi
13229       fi
13230       ;;
13231
13232     amigaos*)
13233       case $host_cpu in
13234       powerpc)
13235             # see comment about AmigaOS4 .so support
13236             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13237             archive_expsym_cmds=''
13238         ;;
13239       m68k)
13240             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)'
13241             hardcode_libdir_flag_spec='-L$libdir'
13242             hardcode_minus_L=yes
13243         ;;
13244       esac
13245       ;;
13246
13247     bsdi[45]*)
13248       export_dynamic_flag_spec=-rdynamic
13249       ;;
13250
13251     cygwin* | mingw* | pw32* | cegcc*)
13252       # When not using gcc, we currently assume that we are using
13253       # Microsoft Visual C++.
13254       # hardcode_libdir_flag_spec is actually meaningless, as there is
13255       # no search path for DLLs.
13256       case $cc_basename in
13257       cl*)
13258         # Native MSVC
13259         hardcode_libdir_flag_spec=' '
13260         allow_undefined_flag=unsupported
13261         always_export_symbols=yes
13262         file_list_spec='@'
13263         # Tell ltmain to make .lib files, not .a files.
13264         libext=lib
13265         # Tell ltmain to make .dll files, not .so files.
13266         shrext_cmds=.dll
13267         # FIXME: Setting linknames here is a bad hack.
13268         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13269         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13270             cp "$export_symbols" "$output_objdir/$soname.def";
13271             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13272           else
13273             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13274           fi~
13275           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13276           linknames='
13277         # The linker will not automatically build a static lib if we build a DLL.
13278         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13279         enable_shared_with_static_runtimes=yes
13280         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13281         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13282         # Don't use ranlib
13283         old_postinstall_cmds='chmod 644 $oldlib'
13284         postlink_cmds='lt_outputfile="@OUTPUT@"~
13285           lt_tool_outputfile="@TOOL_OUTPUT@"~
13286           case $lt_outputfile in
13287             *.exe|*.EXE) ;;
13288             *)
13289               lt_outputfile=$lt_outputfile.exe
13290               lt_tool_outputfile=$lt_tool_outputfile.exe
13291               ;;
13292           esac~
13293           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13294             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13295             $RM "$lt_outputfile.manifest";
13296           fi'
13297         ;;
13298       *)
13299         # Assume MSVC wrapper
13300         hardcode_libdir_flag_spec=' '
13301         allow_undefined_flag=unsupported
13302         # Tell ltmain to make .lib files, not .a files.
13303         libext=lib
13304         # Tell ltmain to make .dll files, not .so files.
13305         shrext_cmds=.dll
13306         # FIXME: Setting linknames here is a bad hack.
13307         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13308         # The linker will automatically build a .lib file if we build a DLL.
13309         old_archive_from_new_cmds='true'
13310         # FIXME: Should let the user specify the lib program.
13311         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13312         enable_shared_with_static_runtimes=yes
13313         ;;
13314       esac
13315       ;;
13316
13317     darwin* | rhapsody*)
13318
13319
13320   archive_cmds_need_lc=no
13321   hardcode_direct=no
13322   hardcode_automatic=yes
13323   hardcode_shlibpath_var=unsupported
13324   if test yes = "$lt_cv_ld_force_load"; then
13325     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\"`'
13326
13327   else
13328     whole_archive_flag_spec=''
13329   fi
13330   link_all_deplibs=yes
13331   allow_undefined_flag=$_lt_dar_allow_undefined
13332   case $cc_basename in
13333      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13334      *) _lt_dar_can_shared=$GCC ;;
13335   esac
13336   if test yes = "$_lt_dar_can_shared"; then
13337     output_verbose_link_cmd=func_echo_all
13338     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13339     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13340     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"
13341     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"
13342
13343   else
13344   ld_shlibs=no
13345   fi
13346
13347       ;;
13348
13349     dgux*)
13350       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13351       hardcode_libdir_flag_spec='-L$libdir'
13352       hardcode_shlibpath_var=no
13353       ;;
13354
13355     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13356     # support.  Future versions do this automatically, but an explicit c++rt0.o
13357     # does not break anything, and helps significantly (at the cost of a little
13358     # extra space).
13359     freebsd2.2*)
13360       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13361       hardcode_libdir_flag_spec='-R$libdir'
13362       hardcode_direct=yes
13363       hardcode_shlibpath_var=no
13364       ;;
13365
13366     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13367     freebsd2.*)
13368       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13369       hardcode_direct=yes
13370       hardcode_minus_L=yes
13371       hardcode_shlibpath_var=no
13372       ;;
13373
13374     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13375     freebsd* | dragonfly*)
13376       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13377       hardcode_libdir_flag_spec='-R$libdir'
13378       hardcode_direct=yes
13379       hardcode_shlibpath_var=no
13380       ;;
13381
13382     hpux9*)
13383       if test yes = "$GCC"; then
13384         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
13385       else
13386         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
13387       fi
13388       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13389       hardcode_libdir_separator=:
13390       hardcode_direct=yes
13391
13392       # hardcode_minus_L: Not really in the search PATH,
13393       # but as the default location of the library.
13394       hardcode_minus_L=yes
13395       export_dynamic_flag_spec='$wl-E'
13396       ;;
13397
13398     hpux10*)
13399       if test yes,no = "$GCC,$with_gnu_ld"; then
13400         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13401       else
13402         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13403       fi
13404       if test no = "$with_gnu_ld"; then
13405         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13406         hardcode_libdir_separator=:
13407         hardcode_direct=yes
13408         hardcode_direct_absolute=yes
13409         export_dynamic_flag_spec='$wl-E'
13410         # hardcode_minus_L: Not really in the search PATH,
13411         # but as the default location of the library.
13412         hardcode_minus_L=yes
13413       fi
13414       ;;
13415
13416     hpux11*)
13417       if test yes,no = "$GCC,$with_gnu_ld"; then
13418         case $host_cpu in
13419         hppa*64*)
13420           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13421           ;;
13422         ia64*)
13423           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13424           ;;
13425         *)
13426           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13427           ;;
13428         esac
13429       else
13430         case $host_cpu in
13431         hppa*64*)
13432           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13433           ;;
13434         ia64*)
13435           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13436           ;;
13437         *)
13438
13439           # Older versions of the 11.00 compiler do not understand -b yet
13440           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13441           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13442 $as_echo_n "checking if $CC understands -b... " >&6; }
13443 if ${lt_cv_prog_compiler__b+:} false; then :
13444   $as_echo_n "(cached) " >&6
13445 else
13446   lt_cv_prog_compiler__b=no
13447    save_LDFLAGS=$LDFLAGS
13448    LDFLAGS="$LDFLAGS -b"
13449    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13450    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13451      # The linker can only warn and ignore the option if not recognized
13452      # So say no if there are warnings
13453      if test -s conftest.err; then
13454        # Append any errors to the config.log.
13455        cat conftest.err 1>&5
13456        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13457        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13458        if diff conftest.exp conftest.er2 >/dev/null; then
13459          lt_cv_prog_compiler__b=yes
13460        fi
13461      else
13462        lt_cv_prog_compiler__b=yes
13463      fi
13464    fi
13465    $RM -r conftest*
13466    LDFLAGS=$save_LDFLAGS
13467
13468 fi
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13470 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13471
13472 if test yes = "$lt_cv_prog_compiler__b"; then
13473     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13474 else
13475     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13476 fi
13477
13478           ;;
13479         esac
13480       fi
13481       if test no = "$with_gnu_ld"; then
13482         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13483         hardcode_libdir_separator=:
13484
13485         case $host_cpu in
13486         hppa*64*|ia64*)
13487           hardcode_direct=no
13488           hardcode_shlibpath_var=no
13489           ;;
13490         *)
13491           hardcode_direct=yes
13492           hardcode_direct_absolute=yes
13493           export_dynamic_flag_spec='$wl-E'
13494
13495           # hardcode_minus_L: Not really in the search PATH,
13496           # but as the default location of the library.
13497           hardcode_minus_L=yes
13498           ;;
13499         esac
13500       fi
13501       ;;
13502
13503     irix5* | irix6* | nonstopux*)
13504       if test yes = "$GCC"; then
13505         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'
13506         # Try to use the -exported_symbol ld option, if it does not
13507         # work, assume that -exports_file does not work either and
13508         # implicitly export all symbols.
13509         # This should be the same for all languages, so no per-tag cache variable.
13510         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13511 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13512 if ${lt_cv_irix_exported_symbol+:} false; then :
13513   $as_echo_n "(cached) " >&6
13514 else
13515   save_LDFLAGS=$LDFLAGS
13516            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13517            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13518 /* end confdefs.h.  */
13519 int foo (void) { return 0; }
13520 _ACEOF
13521 if ac_fn_c_try_link "$LINENO"; then :
13522   lt_cv_irix_exported_symbol=yes
13523 else
13524   lt_cv_irix_exported_symbol=no
13525 fi
13526 rm -f core conftest.err conftest.$ac_objext \
13527     conftest$ac_exeext conftest.$ac_ext
13528            LDFLAGS=$save_LDFLAGS
13529 fi
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13531 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13532         if test yes = "$lt_cv_irix_exported_symbol"; then
13533           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'
13534         fi
13535         link_all_deplibs=no
13536       else
13537         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'
13538         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'
13539       fi
13540       archive_cmds_need_lc='no'
13541       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13542       hardcode_libdir_separator=:
13543       inherit_rpath=yes
13544       link_all_deplibs=yes
13545       ;;
13546
13547     linux*)
13548       case $cc_basename in
13549       tcc*)
13550         # Fabrice Bellard et al's Tiny C Compiler
13551         ld_shlibs=yes
13552         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13553         ;;
13554       esac
13555       ;;
13556
13557     netbsd* | netbsdelf*-gnu)
13558       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13559         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13560       else
13561         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13562       fi
13563       hardcode_libdir_flag_spec='-R$libdir'
13564       hardcode_direct=yes
13565       hardcode_shlibpath_var=no
13566       ;;
13567
13568     newsos6)
13569       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13570       hardcode_direct=yes
13571       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13572       hardcode_libdir_separator=:
13573       hardcode_shlibpath_var=no
13574       ;;
13575
13576     *nto* | *qnx*)
13577       ;;
13578
13579     openbsd* | bitrig*)
13580       if test -f /usr/libexec/ld.so; then
13581         hardcode_direct=yes
13582         hardcode_shlibpath_var=no
13583         hardcode_direct_absolute=yes
13584         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13585           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13586           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13587           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13588           export_dynamic_flag_spec='$wl-E'
13589         else
13590           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13591           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13592         fi
13593       else
13594         ld_shlibs=no
13595       fi
13596       ;;
13597
13598     os2*)
13599       hardcode_libdir_flag_spec='-L$libdir'
13600       hardcode_minus_L=yes
13601       allow_undefined_flag=unsupported
13602       shrext_cmds=.dll
13603       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13604         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13605         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13606         $ECHO EXPORTS >> $output_objdir/$libname.def~
13607         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13608         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13609         emximp -o $lib $output_objdir/$libname.def'
13610       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13611         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13612         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13613         $ECHO EXPORTS >> $output_objdir/$libname.def~
13614         prefix_cmds="$SED"~
13615         if test EXPORTS = "`$SED 1q $export_symbols`"; then
13616           prefix_cmds="$prefix_cmds -e 1d";
13617         fi~
13618         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13619         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13620         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13621         emximp -o $lib $output_objdir/$libname.def'
13622       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13623       enable_shared_with_static_runtimes=yes
13624       ;;
13625
13626     osf3*)
13627       if test yes = "$GCC"; then
13628         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13629         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'
13630       else
13631         allow_undefined_flag=' -expect_unresolved \*'
13632         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'
13633       fi
13634       archive_cmds_need_lc='no'
13635       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13636       hardcode_libdir_separator=:
13637       ;;
13638
13639     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13640       if test yes = "$GCC"; then
13641         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13642         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'
13643         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13644       else
13645         allow_undefined_flag=' -expect_unresolved \*'
13646         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'
13647         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~
13648           $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'
13649
13650         # Both c and cxx compiler support -rpath directly
13651         hardcode_libdir_flag_spec='-rpath $libdir'
13652       fi
13653       archive_cmds_need_lc='no'
13654       hardcode_libdir_separator=:
13655       ;;
13656
13657     solaris*)
13658       no_undefined_flag=' -z defs'
13659       if test yes = "$GCC"; then
13660         wlarc='$wl'
13661         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13662         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13663           $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'
13664       else
13665         case `$CC -V 2>&1` in
13666         *"Compilers 5.0"*)
13667           wlarc=''
13668           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13669           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13670             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13671           ;;
13672         *)
13673           wlarc='$wl'
13674           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13675           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13676             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13677           ;;
13678         esac
13679       fi
13680       hardcode_libdir_flag_spec='-R$libdir'
13681       hardcode_shlibpath_var=no
13682       case $host_os in
13683       solaris2.[0-5] | solaris2.[0-5].*) ;;
13684       *)
13685         # The compiler driver will combine and reorder linker options,
13686         # but understands '-z linker_flag'.  GCC discards it without '$wl',
13687         # but is careful enough not to reorder.
13688         # Supported since Solaris 2.6 (maybe 2.5.1?)
13689         if test yes = "$GCC"; then
13690           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13691         else
13692           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13693         fi
13694         ;;
13695       esac
13696       link_all_deplibs=yes
13697       ;;
13698
13699     sunos4*)
13700       if test sequent = "$host_vendor"; then
13701         # Use $CC to link under sequent, because it throws in some extra .o
13702         # files that make .init and .fini sections work.
13703         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13704       else
13705         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13706       fi
13707       hardcode_libdir_flag_spec='-L$libdir'
13708       hardcode_direct=yes
13709       hardcode_minus_L=yes
13710       hardcode_shlibpath_var=no
13711       ;;
13712
13713     sysv4)
13714       case $host_vendor in
13715         sni)
13716           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13717           hardcode_direct=yes # is this really true???
13718         ;;
13719         siemens)
13720           ## LD is ld it makes a PLAMLIB
13721           ## CC just makes a GrossModule.
13722           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13723           reload_cmds='$CC -r -o $output$reload_objs'
13724           hardcode_direct=no
13725         ;;
13726         motorola)
13727           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13728           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13729         ;;
13730       esac
13731       runpath_var='LD_RUN_PATH'
13732       hardcode_shlibpath_var=no
13733       ;;
13734
13735     sysv4.3*)
13736       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13737       hardcode_shlibpath_var=no
13738       export_dynamic_flag_spec='-Bexport'
13739       ;;
13740
13741     sysv4*MP*)
13742       if test -d /usr/nec; then
13743         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13744         hardcode_shlibpath_var=no
13745         runpath_var=LD_RUN_PATH
13746         hardcode_runpath_var=yes
13747         ld_shlibs=yes
13748       fi
13749       ;;
13750
13751     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13752       no_undefined_flag='$wl-z,text'
13753       archive_cmds_need_lc=no
13754       hardcode_shlibpath_var=no
13755       runpath_var='LD_RUN_PATH'
13756
13757       if test yes = "$GCC"; then
13758         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13759         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13760       else
13761         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13762         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13763       fi
13764       ;;
13765
13766     sysv5* | sco3.2v5* | sco5v6*)
13767       # Note: We CANNOT use -z defs as we might desire, because we do not
13768       # link with -lc, and that would cause any symbols used from libc to
13769       # always be unresolved, which means just about no library would
13770       # ever link correctly.  If we're not using GNU ld we use -z text
13771       # though, which does catch some bad symbols but isn't as heavy-handed
13772       # as -z defs.
13773       no_undefined_flag='$wl-z,text'
13774       allow_undefined_flag='$wl-z,nodefs'
13775       archive_cmds_need_lc=no
13776       hardcode_shlibpath_var=no
13777       hardcode_libdir_flag_spec='$wl-R,$libdir'
13778       hardcode_libdir_separator=':'
13779       link_all_deplibs=yes
13780       export_dynamic_flag_spec='$wl-Bexport'
13781       runpath_var='LD_RUN_PATH'
13782
13783       if test yes = "$GCC"; then
13784         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13785         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13786       else
13787         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13788         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13789       fi
13790       ;;
13791
13792     uts4*)
13793       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13794       hardcode_libdir_flag_spec='-L$libdir'
13795       hardcode_shlibpath_var=no
13796       ;;
13797
13798     *)
13799       ld_shlibs=no
13800       ;;
13801     esac
13802
13803     if test sni = "$host_vendor"; then
13804       case $host in
13805       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13806         export_dynamic_flag_spec='$wl-Blargedynsym'
13807         ;;
13808       esac
13809     fi
13810   fi
13811
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13813 $as_echo "$ld_shlibs" >&6; }
13814 test no = "$ld_shlibs" && can_build_shared=no
13815
13816 with_gnu_ld=$with_gnu_ld
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832 #
13833 # Do we need to explicitly link libc?
13834 #
13835 case "x$archive_cmds_need_lc" in
13836 x|xyes)
13837   # Assume -lc should be added
13838   archive_cmds_need_lc=yes
13839
13840   if test yes,yes = "$GCC,$enable_shared"; then
13841     case $archive_cmds in
13842     *'~'*)
13843       # FIXME: we may have to deal with multi-command sequences.
13844       ;;
13845     '$CC '*)
13846       # Test whether the compiler implicitly links with -lc since on some
13847       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13848       # to ld, don't add -lc before -lgcc.
13849       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13850 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13851 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13852   $as_echo_n "(cached) " >&6
13853 else
13854   $RM conftest*
13855         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13856
13857         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13858   (eval $ac_compile) 2>&5
13859   ac_status=$?
13860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13861   test $ac_status = 0; } 2>conftest.err; then
13862           soname=conftest
13863           lib=conftest
13864           libobjs=conftest.$ac_objext
13865           deplibs=
13866           wl=$lt_prog_compiler_wl
13867           pic_flag=$lt_prog_compiler_pic
13868           compiler_flags=-v
13869           linker_flags=-v
13870           verstring=
13871           output_objdir=.
13872           libname=conftest
13873           lt_save_allow_undefined_flag=$allow_undefined_flag
13874           allow_undefined_flag=
13875           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13876   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13877   ac_status=$?
13878   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13879   test $ac_status = 0; }
13880           then
13881             lt_cv_archive_cmds_need_lc=no
13882           else
13883             lt_cv_archive_cmds_need_lc=yes
13884           fi
13885           allow_undefined_flag=$lt_save_allow_undefined_flag
13886         else
13887           cat conftest.err 1>&5
13888         fi
13889         $RM conftest*
13890
13891 fi
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13893 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13894       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13895       ;;
13896     esac
13897   fi
13898   ;;
13899 esac
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14053 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14054
14055 if test yes = "$GCC"; then
14056   case $host_os in
14057     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14058     *) lt_awk_arg='/^libraries:/' ;;
14059   esac
14060   case $host_os in
14061     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14062     *) lt_sed_strip_eq='s|=/|/|g' ;;
14063   esac
14064   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14065   case $lt_search_path_spec in
14066   *\;*)
14067     # if the path contains ";" then we assume it to be the separator
14068     # otherwise default to the standard path separator (i.e. ":") - it is
14069     # assumed that no part of a normal pathname contains ";" but that should
14070     # okay in the real world where ";" in dirpaths is itself problematic.
14071     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14072     ;;
14073   *)
14074     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14075     ;;
14076   esac
14077   # Ok, now we have the path, separated by spaces, we can step through it
14078   # and add multilib dir if necessary...
14079   lt_tmp_lt_search_path_spec=
14080   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14081   # ...but if some path component already ends with the multilib dir we assume
14082   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14083   case "$lt_multi_os_dir; $lt_search_path_spec " in
14084   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14085     lt_multi_os_dir=
14086     ;;
14087   esac
14088   for lt_sys_path in $lt_search_path_spec; do
14089     if test -d "$lt_sys_path$lt_multi_os_dir"; then
14090       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14091     elif test -n "$lt_multi_os_dir"; then
14092       test -d "$lt_sys_path" && \
14093         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14094     fi
14095   done
14096   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14097 BEGIN {RS = " "; FS = "/|\n";} {
14098   lt_foo = "";
14099   lt_count = 0;
14100   for (lt_i = NF; lt_i > 0; lt_i--) {
14101     if ($lt_i != "" && $lt_i != ".") {
14102       if ($lt_i == "..") {
14103         lt_count++;
14104       } else {
14105         if (lt_count == 0) {
14106           lt_foo = "/" $lt_i lt_foo;
14107         } else {
14108           lt_count--;
14109         }
14110       }
14111     }
14112   }
14113   if (lt_foo != "") { lt_freq[lt_foo]++; }
14114   if (lt_freq[lt_foo] == 1) { print lt_foo; }
14115 }'`
14116   # AWK program above erroneously prepends '/' to C:/dos/paths
14117   # for these hosts.
14118   case $host_os in
14119     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14120       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14121   esac
14122   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14123 else
14124   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14125 fi
14126 library_names_spec=
14127 libname_spec='lib$name'
14128 soname_spec=
14129 shrext_cmds=.so
14130 postinstall_cmds=
14131 postuninstall_cmds=
14132 finish_cmds=
14133 finish_eval=
14134 shlibpath_var=
14135 shlibpath_overrides_runpath=unknown
14136 version_type=none
14137 dynamic_linker="$host_os ld.so"
14138 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14139 need_lib_prefix=unknown
14140 hardcode_into_libs=no
14141
14142 # when you set need_version to no, make sure it does not cause -set_version
14143 # flags to be left without arguments
14144 need_version=unknown
14145
14146
14147
14148 case $host_os in
14149 aix3*)
14150   version_type=linux # correct to gnu/linux during the next big refactor
14151   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14152   shlibpath_var=LIBPATH
14153
14154   # AIX 3 has no versioning support, so we append a major version to the name.
14155   soname_spec='$libname$release$shared_ext$major'
14156   ;;
14157
14158 aix[4-9]*)
14159   version_type=linux # correct to gnu/linux during the next big refactor
14160   need_lib_prefix=no
14161   need_version=no
14162   hardcode_into_libs=yes
14163   if test ia64 = "$host_cpu"; then
14164     # AIX 5 supports IA64
14165     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14166     shlibpath_var=LD_LIBRARY_PATH
14167   else
14168     # With GCC up to 2.95.x, collect2 would create an import file
14169     # for dependence libraries.  The import file would start with
14170     # the line '#! .'.  This would cause the generated library to
14171     # depend on '.', always an invalid library.  This was fixed in
14172     # development snapshots of GCC prior to 3.0.
14173     case $host_os in
14174       aix4 | aix4.[01] | aix4.[01].*)
14175       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14176            echo ' yes '
14177            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14178         :
14179       else
14180         can_build_shared=no
14181       fi
14182       ;;
14183     esac
14184     # Using Import Files as archive members, it is possible to support
14185     # filename-based versioning of shared library archives on AIX. While
14186     # this would work for both with and without runtime linking, it will
14187     # prevent static linking of such archives. So we do filename-based
14188     # shared library versioning with .so extension only, which is used
14189     # when both runtime linking and shared linking is enabled.
14190     # Unfortunately, runtime linking may impact performance, so we do
14191     # not want this to be the default eventually. Also, we use the
14192     # versioned .so libs for executables only if there is the -brtl
14193     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14194     # To allow for filename-based versioning support, we need to create
14195     # libNAME.so.V as an archive file, containing:
14196     # *) an Import File, referring to the versioned filename of the
14197     #    archive as well as the shared archive member, telling the
14198     #    bitwidth (32 or 64) of that shared object, and providing the
14199     #    list of exported symbols of that shared object, eventually
14200     #    decorated with the 'weak' keyword
14201     # *) the shared object with the F_LOADONLY flag set, to really avoid
14202     #    it being seen by the linker.
14203     # At run time we better use the real file rather than another symlink,
14204     # but for link time we create the symlink libNAME.so -> libNAME.so.V
14205
14206     case $with_aix_soname,$aix_use_runtimelinking in
14207     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14208     # soname into executable. Probably we can add versioning support to
14209     # collect2, so additional links can be useful in future.
14210     aix,yes) # traditional libtool
14211       dynamic_linker='AIX unversionable lib.so'
14212       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14213       # instead of lib<name>.a to let people know that these are not
14214       # typical AIX shared libraries.
14215       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14216       ;;
14217     aix,no) # traditional AIX only
14218       dynamic_linker='AIX lib.a(lib.so.V)'
14219       # We preserve .a as extension for shared libraries through AIX4.2
14220       # and later when we are not doing run time linking.
14221       library_names_spec='$libname$release.a $libname.a'
14222       soname_spec='$libname$release$shared_ext$major'
14223       ;;
14224     svr4,*) # full svr4 only
14225       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14226       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14227       # We do not specify a path in Import Files, so LIBPATH fires.
14228       shlibpath_overrides_runpath=yes
14229       ;;
14230     *,yes) # both, prefer svr4
14231       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14232       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14233       # unpreferred sharedlib libNAME.a needs extra handling
14234       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"'
14235       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"'
14236       # We do not specify a path in Import Files, so LIBPATH fires.
14237       shlibpath_overrides_runpath=yes
14238       ;;
14239     *,no) # both, prefer aix
14240       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14241       library_names_spec='$libname$release.a $libname.a'
14242       soname_spec='$libname$release$shared_ext$major'
14243       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14244       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)'
14245       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"'
14246       ;;
14247     esac
14248     shlibpath_var=LIBPATH
14249   fi
14250   ;;
14251
14252 amigaos*)
14253   case $host_cpu in
14254   powerpc)
14255     # Since July 2007 AmigaOS4 officially supports .so libraries.
14256     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14257     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14258     ;;
14259   m68k)
14260     library_names_spec='$libname.ixlibrary $libname.a'
14261     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14262     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'
14263     ;;
14264   esac
14265   ;;
14266
14267 beos*)
14268   library_names_spec='$libname$shared_ext'
14269   dynamic_linker="$host_os ld.so"
14270   shlibpath_var=LIBRARY_PATH
14271   ;;
14272
14273 bsdi[45]*)
14274   version_type=linux # correct to gnu/linux during the next big refactor
14275   need_version=no
14276   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14277   soname_spec='$libname$release$shared_ext$major'
14278   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14279   shlibpath_var=LD_LIBRARY_PATH
14280   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14281   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14282   # the default ld.so.conf also contains /usr/contrib/lib and
14283   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14284   # libtool to hard-code these into programs
14285   ;;
14286
14287 cygwin* | mingw* | pw32* | cegcc*)
14288   version_type=windows
14289   shrext_cmds=.dll
14290   need_version=no
14291   need_lib_prefix=no
14292
14293   case $GCC,$cc_basename in
14294   yes,*)
14295     # gcc
14296     library_names_spec='$libname.dll.a'
14297     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14298     postinstall_cmds='base_file=`basename \$file`~
14299       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14300       dldir=$destdir/`dirname \$dlpath`~
14301       test -d \$dldir || mkdir -p \$dldir~
14302       $install_prog $dir/$dlname \$dldir/$dlname~
14303       chmod a+x \$dldir/$dlname~
14304       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14305         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14306       fi'
14307     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14308       dlpath=$dir/\$dldll~
14309        $RM \$dlpath'
14310     shlibpath_overrides_runpath=yes
14311
14312     case $host_os in
14313     cygwin*)
14314       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14315       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14316
14317       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14318       ;;
14319     mingw* | cegcc*)
14320       # MinGW DLLs use traditional 'lib' prefix
14321       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14322       ;;
14323     pw32*)
14324       # pw32 DLLs use 'pw' prefix rather than 'lib'
14325       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14326       ;;
14327     esac
14328     dynamic_linker='Win32 ld.exe'
14329     ;;
14330
14331   *,cl*)
14332     # Native MSVC
14333     libname_spec='$name'
14334     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14335     library_names_spec='$libname.dll.lib'
14336
14337     case $build_os in
14338     mingw*)
14339       sys_lib_search_path_spec=
14340       lt_save_ifs=$IFS
14341       IFS=';'
14342       for lt_path in $LIB
14343       do
14344         IFS=$lt_save_ifs
14345         # Let DOS variable expansion print the short 8.3 style file name.
14346         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14347         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14348       done
14349       IFS=$lt_save_ifs
14350       # Convert to MSYS style.
14351       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14352       ;;
14353     cygwin*)
14354       # Convert to unix form, then to dos form, then back to unix form
14355       # but this time dos style (no spaces!) so that the unix form looks
14356       # like /cygdrive/c/PROGRA~1:/cygdr...
14357       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14358       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14359       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14360       ;;
14361     *)
14362       sys_lib_search_path_spec=$LIB
14363       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14364         # It is most probably a Windows format PATH.
14365         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14366       else
14367         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14368       fi
14369       # FIXME: find the short name or the path components, as spaces are
14370       # common. (e.g. "Program Files" -> "PROGRA~1")
14371       ;;
14372     esac
14373
14374     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14375     postinstall_cmds='base_file=`basename \$file`~
14376       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14377       dldir=$destdir/`dirname \$dlpath`~
14378       test -d \$dldir || mkdir -p \$dldir~
14379       $install_prog $dir/$dlname \$dldir/$dlname'
14380     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14381       dlpath=$dir/\$dldll~
14382        $RM \$dlpath'
14383     shlibpath_overrides_runpath=yes
14384     dynamic_linker='Win32 link.exe'
14385     ;;
14386
14387   *)
14388     # Assume MSVC wrapper
14389     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14390     dynamic_linker='Win32 ld.exe'
14391     ;;
14392   esac
14393   # FIXME: first we should search . and the directory the executable is in
14394   shlibpath_var=PATH
14395   ;;
14396
14397 darwin* | rhapsody*)
14398   dynamic_linker="$host_os dyld"
14399   version_type=darwin
14400   need_lib_prefix=no
14401   need_version=no
14402   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14403   soname_spec='$libname$release$major$shared_ext'
14404   shlibpath_overrides_runpath=yes
14405   shlibpath_var=DYLD_LIBRARY_PATH
14406   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14407
14408   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14409   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14410   ;;
14411
14412 dgux*)
14413   version_type=linux # correct to gnu/linux during the next big refactor
14414   need_lib_prefix=no
14415   need_version=no
14416   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14417   soname_spec='$libname$release$shared_ext$major'
14418   shlibpath_var=LD_LIBRARY_PATH
14419   ;;
14420
14421 freebsd* | dragonfly*)
14422   # DragonFly does not have aout.  When/if they implement a new
14423   # versioning mechanism, adjust this.
14424   if test -x /usr/bin/objformat; then
14425     objformat=`/usr/bin/objformat`
14426   else
14427     case $host_os in
14428     freebsd[23].*) objformat=aout ;;
14429     *) objformat=elf ;;
14430     esac
14431   fi
14432   version_type=freebsd-$objformat
14433   case $version_type in
14434     freebsd-elf*)
14435       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14436       soname_spec='$libname$release$shared_ext$major'
14437       need_version=no
14438       need_lib_prefix=no
14439       ;;
14440     freebsd-*)
14441       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14442       need_version=yes
14443       ;;
14444   esac
14445   shlibpath_var=LD_LIBRARY_PATH
14446   case $host_os in
14447   freebsd2.*)
14448     shlibpath_overrides_runpath=yes
14449     ;;
14450   freebsd3.[01]* | freebsdelf3.[01]*)
14451     shlibpath_overrides_runpath=yes
14452     hardcode_into_libs=yes
14453     ;;
14454   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14455   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14456     shlibpath_overrides_runpath=no
14457     hardcode_into_libs=yes
14458     ;;
14459   *) # from 4.6 on, and DragonFly
14460     shlibpath_overrides_runpath=yes
14461     hardcode_into_libs=yes
14462     ;;
14463   esac
14464   ;;
14465
14466 haiku*)
14467   version_type=linux # correct to gnu/linux during the next big refactor
14468   need_lib_prefix=no
14469   need_version=no
14470   dynamic_linker="$host_os runtime_loader"
14471   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14472   soname_spec='$libname$release$shared_ext$major'
14473   shlibpath_var=LIBRARY_PATH
14474   shlibpath_overrides_runpath=no
14475   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14476   hardcode_into_libs=yes
14477   ;;
14478
14479 hpux9* | hpux10* | hpux11*)
14480   # Give a soname corresponding to the major version so that dld.sl refuses to
14481   # link against other versions.
14482   version_type=sunos
14483   need_lib_prefix=no
14484   need_version=no
14485   case $host_cpu in
14486   ia64*)
14487     shrext_cmds='.so'
14488     hardcode_into_libs=yes
14489     dynamic_linker="$host_os dld.so"
14490     shlibpath_var=LD_LIBRARY_PATH
14491     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14492     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14493     soname_spec='$libname$release$shared_ext$major'
14494     if test 32 = "$HPUX_IA64_MODE"; then
14495       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14496       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14497     else
14498       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14499       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14500     fi
14501     ;;
14502   hppa*64*)
14503     shrext_cmds='.sl'
14504     hardcode_into_libs=yes
14505     dynamic_linker="$host_os dld.sl"
14506     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14507     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14508     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14509     soname_spec='$libname$release$shared_ext$major'
14510     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14511     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14512     ;;
14513   *)
14514     shrext_cmds='.sl'
14515     dynamic_linker="$host_os dld.sl"
14516     shlibpath_var=SHLIB_PATH
14517     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14518     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14519     soname_spec='$libname$release$shared_ext$major'
14520     ;;
14521   esac
14522   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14523   postinstall_cmds='chmod 555 $lib'
14524   # or fails outright, so override atomically:
14525   install_override_mode=555
14526   ;;
14527
14528 interix[3-9]*)
14529   version_type=linux # correct to gnu/linux during the next big refactor
14530   need_lib_prefix=no
14531   need_version=no
14532   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14533   soname_spec='$libname$release$shared_ext$major'
14534   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14535   shlibpath_var=LD_LIBRARY_PATH
14536   shlibpath_overrides_runpath=no
14537   hardcode_into_libs=yes
14538   ;;
14539
14540 irix5* | irix6* | nonstopux*)
14541   case $host_os in
14542     nonstopux*) version_type=nonstopux ;;
14543     *)
14544         if test yes = "$lt_cv_prog_gnu_ld"; then
14545                 version_type=linux # correct to gnu/linux during the next big refactor
14546         else
14547                 version_type=irix
14548         fi ;;
14549   esac
14550   need_lib_prefix=no
14551   need_version=no
14552   soname_spec='$libname$release$shared_ext$major'
14553   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14554   case $host_os in
14555   irix5* | nonstopux*)
14556     libsuff= shlibsuff=
14557     ;;
14558   *)
14559     case $LD in # libtool.m4 will add one of these switches to LD
14560     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14561       libsuff= shlibsuff= libmagic=32-bit;;
14562     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14563       libsuff=32 shlibsuff=N32 libmagic=N32;;
14564     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14565       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14566     *) libsuff= shlibsuff= libmagic=never-match;;
14567     esac
14568     ;;
14569   esac
14570   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14571   shlibpath_overrides_runpath=no
14572   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14573   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14574   hardcode_into_libs=yes
14575   ;;
14576
14577 # No shared lib support for Linux oldld, aout, or coff.
14578 linux*oldld* | linux*aout* | linux*coff*)
14579   dynamic_linker=no
14580   ;;
14581
14582 linux*android*)
14583   version_type=none # Android doesn't support versioned libraries.
14584   need_lib_prefix=no
14585   need_version=no
14586   library_names_spec='$libname$release$shared_ext'
14587   soname_spec='$libname$release$shared_ext'
14588   finish_cmds=
14589   shlibpath_var=LD_LIBRARY_PATH
14590   shlibpath_overrides_runpath=yes
14591
14592   # This implies no fast_install, which is unacceptable.
14593   # Some rework will be needed to allow for fast_install
14594   # before this can be enabled.
14595   hardcode_into_libs=yes
14596
14597   dynamic_linker='Android linker'
14598   # Don't embed -rpath directories since the linker doesn't support them.
14599   hardcode_libdir_flag_spec='-L$libdir'
14600   ;;
14601
14602 # This must be glibc/ELF.
14603 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14604   version_type=linux # correct to gnu/linux during the next big refactor
14605   need_lib_prefix=no
14606   need_version=no
14607   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14608   soname_spec='$libname$release$shared_ext$major'
14609   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14610   shlibpath_var=LD_LIBRARY_PATH
14611   shlibpath_overrides_runpath=no
14612
14613   # Some binutils ld are patched to set DT_RUNPATH
14614   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14615   $as_echo_n "(cached) " >&6
14616 else
14617   lt_cv_shlibpath_overrides_runpath=no
14618     save_LDFLAGS=$LDFLAGS
14619     save_libdir=$libdir
14620     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14621          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14622     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14623 /* end confdefs.h.  */
14624
14625 int main (void)
14626 {
14627
14628  ;
14629  return 0;
14630 }
14631 _ACEOF
14632 if ac_fn_c_try_link "$LINENO"; then :
14633   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14634   lt_cv_shlibpath_overrides_runpath=yes
14635 fi
14636 fi
14637 rm -f core conftest.err conftest.$ac_objext \
14638     conftest$ac_exeext conftest.$ac_ext
14639     LDFLAGS=$save_LDFLAGS
14640     libdir=$save_libdir
14641
14642 fi
14643
14644   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14645
14646   # This implies no fast_install, which is unacceptable.
14647   # Some rework will be needed to allow for fast_install
14648   # before this can be enabled.
14649   hardcode_into_libs=yes
14650
14651   # Ideally, we could use ldconfig to report *all* directores which are
14652   # searched for libraries, however this is still not possible.  Aside from not
14653   # being certain /sbin/ldconfig is available, command
14654   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14655   # even though it is searched at run-time.  Try to do the best guess by
14656   # appending ld.so.conf contents (and includes) to the search path.
14657   if test -f /etc/ld.so.conf; then
14658     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' ' '`
14659     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14660   fi
14661
14662   # We used to test for /lib/ld.so.1 and disable shared libraries on
14663   # powerpc, because MkLinux only supported shared libraries with the
14664   # GNU dynamic linker.  Since this was broken with cross compilers,
14665   # most powerpc-linux boxes support dynamic linking these days and
14666   # people can always --disable-shared, the test was removed, and we
14667   # assume the GNU/Linux dynamic linker is in use.
14668   dynamic_linker='GNU/Linux ld.so'
14669   ;;
14670
14671 netbsdelf*-gnu)
14672   version_type=linux
14673   need_lib_prefix=no
14674   need_version=no
14675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14676   soname_spec='${libname}${release}${shared_ext}$major'
14677   shlibpath_var=LD_LIBRARY_PATH
14678   shlibpath_overrides_runpath=no
14679   hardcode_into_libs=yes
14680   dynamic_linker='NetBSD ld.elf_so'
14681   ;;
14682
14683 netbsd*)
14684   version_type=sunos
14685   need_lib_prefix=no
14686   need_version=no
14687   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14688     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14689     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14690     dynamic_linker='NetBSD (a.out) ld.so'
14691   else
14692     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14693     soname_spec='$libname$release$shared_ext$major'
14694     dynamic_linker='NetBSD ld.elf_so'
14695   fi
14696   shlibpath_var=LD_LIBRARY_PATH
14697   shlibpath_overrides_runpath=yes
14698   hardcode_into_libs=yes
14699   ;;
14700
14701 newsos6)
14702   version_type=linux # correct to gnu/linux during the next big refactor
14703   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14704   shlibpath_var=LD_LIBRARY_PATH
14705   shlibpath_overrides_runpath=yes
14706   ;;
14707
14708 *nto* | *qnx*)
14709   version_type=qnx
14710   need_lib_prefix=no
14711   need_version=no
14712   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14713   soname_spec='$libname$release$shared_ext$major'
14714   shlibpath_var=LD_LIBRARY_PATH
14715   shlibpath_overrides_runpath=no
14716   hardcode_into_libs=yes
14717   dynamic_linker='ldqnx.so'
14718   ;;
14719
14720 openbsd* | bitrig*)
14721   version_type=sunos
14722   sys_lib_dlsearch_path_spec=/usr/lib
14723   need_lib_prefix=no
14724   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14725     need_version=no
14726   else
14727     need_version=yes
14728   fi
14729   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14730   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14731   shlibpath_var=LD_LIBRARY_PATH
14732   shlibpath_overrides_runpath=yes
14733   ;;
14734
14735 os2*)
14736   libname_spec='$name'
14737   version_type=windows
14738   shrext_cmds=.dll
14739   need_version=no
14740   need_lib_prefix=no
14741   # OS/2 can only load a DLL with a base name of 8 characters or less.
14742   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14743     v=$($ECHO $release$versuffix | tr -d .-);
14744     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14745     $ECHO $n$v`$shared_ext'
14746   library_names_spec='${libname}_dll.$libext'
14747   dynamic_linker='OS/2 ld.exe'
14748   shlibpath_var=BEGINLIBPATH
14749   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14750   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14751   postinstall_cmds='base_file=`basename \$file`~
14752     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14753     dldir=$destdir/`dirname \$dlpath`~
14754     test -d \$dldir || mkdir -p \$dldir~
14755     $install_prog $dir/$dlname \$dldir/$dlname~
14756     chmod a+x \$dldir/$dlname~
14757     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14758       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14759     fi'
14760   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14761     dlpath=$dir/\$dldll~
14762     $RM \$dlpath'
14763   ;;
14764
14765 osf3* | osf4* | osf5*)
14766   version_type=osf
14767   need_lib_prefix=no
14768   need_version=no
14769   soname_spec='$libname$release$shared_ext$major'
14770   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14771   shlibpath_var=LD_LIBRARY_PATH
14772   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14773   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14774   ;;
14775
14776 rdos*)
14777   dynamic_linker=no
14778   ;;
14779
14780 solaris*)
14781   version_type=linux # correct to gnu/linux during the next big refactor
14782   need_lib_prefix=no
14783   need_version=no
14784   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14785   soname_spec='$libname$release$shared_ext$major'
14786   shlibpath_var=LD_LIBRARY_PATH
14787   shlibpath_overrides_runpath=yes
14788   hardcode_into_libs=yes
14789   # ldd complains unless libraries are executable
14790   postinstall_cmds='chmod +x $lib'
14791   ;;
14792
14793 sunos4*)
14794   version_type=sunos
14795   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14796   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14797   shlibpath_var=LD_LIBRARY_PATH
14798   shlibpath_overrides_runpath=yes
14799   if test yes = "$with_gnu_ld"; then
14800     need_lib_prefix=no
14801   fi
14802   need_version=yes
14803   ;;
14804
14805 sysv4 | sysv4.3*)
14806   version_type=linux # correct to gnu/linux during the next big refactor
14807   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14808   soname_spec='$libname$release$shared_ext$major'
14809   shlibpath_var=LD_LIBRARY_PATH
14810   case $host_vendor in
14811     sni)
14812       shlibpath_overrides_runpath=no
14813       need_lib_prefix=no
14814       runpath_var=LD_RUN_PATH
14815       ;;
14816     siemens)
14817       need_lib_prefix=no
14818       ;;
14819     motorola)
14820       need_lib_prefix=no
14821       need_version=no
14822       shlibpath_overrides_runpath=no
14823       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14824       ;;
14825   esac
14826   ;;
14827
14828 sysv4*MP*)
14829   if test -d /usr/nec; then
14830     version_type=linux # correct to gnu/linux during the next big refactor
14831     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14832     soname_spec='$libname$shared_ext.$major'
14833     shlibpath_var=LD_LIBRARY_PATH
14834   fi
14835   ;;
14836
14837 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14838   version_type=sco
14839   need_lib_prefix=no
14840   need_version=no
14841   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14842   soname_spec='$libname$release$shared_ext$major'
14843   shlibpath_var=LD_LIBRARY_PATH
14844   shlibpath_overrides_runpath=yes
14845   hardcode_into_libs=yes
14846   if test yes = "$with_gnu_ld"; then
14847     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14848   else
14849     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14850     case $host_os in
14851       sco3.2v5*)
14852         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14853         ;;
14854     esac
14855   fi
14856   sys_lib_dlsearch_path_spec='/usr/lib'
14857   ;;
14858
14859 tpf*)
14860   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14861   version_type=linux # correct to gnu/linux during the next big refactor
14862   need_lib_prefix=no
14863   need_version=no
14864   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14865   shlibpath_var=LD_LIBRARY_PATH
14866   shlibpath_overrides_runpath=no
14867   hardcode_into_libs=yes
14868   ;;
14869
14870 uts4*)
14871   version_type=linux # correct to gnu/linux during the next big refactor
14872   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14873   soname_spec='$libname$release$shared_ext$major'
14874   shlibpath_var=LD_LIBRARY_PATH
14875   ;;
14876
14877 *)
14878   dynamic_linker=no
14879   ;;
14880 esac
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14882 $as_echo "$dynamic_linker" >&6; }
14883 test no = "$dynamic_linker" && can_build_shared=no
14884
14885 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14886 if test yes = "$GCC"; then
14887   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14888 fi
14889
14890 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14891   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14892 fi
14893
14894 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14895   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14896 fi
14897
14898 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14899 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14900
14901 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14902 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14903
14904 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14905 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15004 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15005 hardcode_action=
15006 if test -n "$hardcode_libdir_flag_spec" ||
15007    test -n "$runpath_var" ||
15008    test yes = "$hardcode_automatic"; then
15009
15010   # We can hardcode non-existent directories.
15011   if test no != "$hardcode_direct" &&
15012      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15013      # have to relink, otherwise we might link with an installed library
15014      # when we should be linking with a yet-to-be-installed one
15015      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15016      test no != "$hardcode_minus_L"; then
15017     # Linking always hardcodes the temporary library directory.
15018     hardcode_action=relink
15019   else
15020     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15021     hardcode_action=immediate
15022   fi
15023 else
15024   # We cannot hardcode anything, or else we can only hardcode existing
15025   # directories.
15026   hardcode_action=unsupported
15027 fi
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15029 $as_echo "$hardcode_action" >&6; }
15030
15031 if test relink = "$hardcode_action" ||
15032    test yes = "$inherit_rpath"; then
15033   # Fast installation is not supported
15034   enable_fast_install=no
15035 elif test yes = "$shlibpath_overrides_runpath" ||
15036      test no = "$enable_shared"; then
15037   # Fast installation is not necessary
15038   enable_fast_install=needless
15039 fi
15040
15041
15042
15043
15044
15045
15046   if test yes != "$enable_dlopen"; then
15047   enable_dlopen=unknown
15048   enable_dlopen_self=unknown
15049   enable_dlopen_self_static=unknown
15050 else
15051   lt_cv_dlopen=no
15052   lt_cv_dlopen_libs=
15053
15054   case $host_os in
15055   beos*)
15056     lt_cv_dlopen=load_add_on
15057     lt_cv_dlopen_libs=
15058     lt_cv_dlopen_self=yes
15059     ;;
15060
15061   mingw* | pw32* | cegcc*)
15062     lt_cv_dlopen=LoadLibrary
15063     lt_cv_dlopen_libs=
15064     ;;
15065
15066   cygwin*)
15067     lt_cv_dlopen=dlopen
15068     lt_cv_dlopen_libs=
15069     ;;
15070
15071   darwin*)
15072     # if libdl is installed we need to link against it
15073     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15074 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15075 if ${ac_cv_lib_dl_dlopen+:} false; then :
15076   $as_echo_n "(cached) " >&6
15077 else
15078   ac_check_lib_save_LIBS=$LIBS
15079 LIBS="-ldl  $LIBS"
15080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15081 /* end confdefs.h.  */
15082
15083
15084 #ifdef __cplusplus
15085 extern "C"
15086 #endif
15087 char dlopen ();
15088 int main (void)
15089 {
15090 return dlopen ();
15091  ;
15092  return 0;
15093 }
15094 _ACEOF
15095 if ac_fn_c_try_link "$LINENO"; then :
15096   ac_cv_lib_dl_dlopen=yes
15097 else
15098   ac_cv_lib_dl_dlopen=no
15099 fi
15100 rm -f core conftest.err conftest.$ac_objext \
15101     conftest$ac_exeext conftest.$ac_ext
15102 LIBS=$ac_check_lib_save_LIBS
15103 fi
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15105 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15106 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15107   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15108 else
15109
15110     lt_cv_dlopen=dyld
15111     lt_cv_dlopen_libs=
15112     lt_cv_dlopen_self=yes
15113
15114 fi
15115
15116     ;;
15117
15118   tpf*)
15119     # Don't try to run any link tests for TPF.  We know it's impossible
15120     # because TPF is a cross-compiler, and we know how we open DSOs.
15121     lt_cv_dlopen=dlopen
15122     lt_cv_dlopen_libs=
15123     lt_cv_dlopen_self=no
15124     ;;
15125
15126   *)
15127     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15128 if test "x$ac_cv_func_shl_load" = xyes; then :
15129   lt_cv_dlopen=shl_load
15130 else
15131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15132 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15133 if ${ac_cv_lib_dld_shl_load+:} false; then :
15134   $as_echo_n "(cached) " >&6
15135 else
15136   ac_check_lib_save_LIBS=$LIBS
15137 LIBS="-ldld  $LIBS"
15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h.  */
15140
15141
15142 #ifdef __cplusplus
15143 extern "C"
15144 #endif
15145 char shl_load ();
15146 int main (void)
15147 {
15148 return shl_load ();
15149  ;
15150  return 0;
15151 }
15152 _ACEOF
15153 if ac_fn_c_try_link "$LINENO"; then :
15154   ac_cv_lib_dld_shl_load=yes
15155 else
15156   ac_cv_lib_dld_shl_load=no
15157 fi
15158 rm -f core conftest.err conftest.$ac_objext \
15159     conftest$ac_exeext conftest.$ac_ext
15160 LIBS=$ac_check_lib_save_LIBS
15161 fi
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15163 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15164 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15165   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15166 else
15167   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15168 if test "x$ac_cv_func_dlopen" = xyes; then :
15169   lt_cv_dlopen=dlopen
15170 else
15171   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15172 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15173 if ${ac_cv_lib_dl_dlopen+:} false; then :
15174   $as_echo_n "(cached) " >&6
15175 else
15176   ac_check_lib_save_LIBS=$LIBS
15177 LIBS="-ldl  $LIBS"
15178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15179 /* end confdefs.h.  */
15180
15181
15182 #ifdef __cplusplus
15183 extern "C"
15184 #endif
15185 char dlopen ();
15186 int main (void)
15187 {
15188 return dlopen ();
15189  ;
15190  return 0;
15191 }
15192 _ACEOF
15193 if ac_fn_c_try_link "$LINENO"; then :
15194   ac_cv_lib_dl_dlopen=yes
15195 else
15196   ac_cv_lib_dl_dlopen=no
15197 fi
15198 rm -f core conftest.err conftest.$ac_objext \
15199     conftest$ac_exeext conftest.$ac_ext
15200 LIBS=$ac_check_lib_save_LIBS
15201 fi
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15203 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15204 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15205   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15206 else
15207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15208 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15209 if ${ac_cv_lib_svld_dlopen+:} false; then :
15210   $as_echo_n "(cached) " >&6
15211 else
15212   ac_check_lib_save_LIBS=$LIBS
15213 LIBS="-lsvld  $LIBS"
15214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15215 /* end confdefs.h.  */
15216
15217
15218 #ifdef __cplusplus
15219 extern "C"
15220 #endif
15221 char dlopen ();
15222 int main (void)
15223 {
15224 return dlopen ();
15225  ;
15226  return 0;
15227 }
15228 _ACEOF
15229 if ac_fn_c_try_link "$LINENO"; then :
15230   ac_cv_lib_svld_dlopen=yes
15231 else
15232   ac_cv_lib_svld_dlopen=no
15233 fi
15234 rm -f core conftest.err conftest.$ac_objext \
15235     conftest$ac_exeext conftest.$ac_ext
15236 LIBS=$ac_check_lib_save_LIBS
15237 fi
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15239 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15240 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15241   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15242 else
15243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15244 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15245 if ${ac_cv_lib_dld_dld_link+:} false; then :
15246   $as_echo_n "(cached) " >&6
15247 else
15248   ac_check_lib_save_LIBS=$LIBS
15249 LIBS="-ldld  $LIBS"
15250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15251 /* end confdefs.h.  */
15252
15253
15254 #ifdef __cplusplus
15255 extern "C"
15256 #endif
15257 char dld_link ();
15258 int main (void)
15259 {
15260 return dld_link ();
15261  ;
15262  return 0;
15263 }
15264 _ACEOF
15265 if ac_fn_c_try_link "$LINENO"; then :
15266   ac_cv_lib_dld_dld_link=yes
15267 else
15268   ac_cv_lib_dld_dld_link=no
15269 fi
15270 rm -f core conftest.err conftest.$ac_objext \
15271     conftest$ac_exeext conftest.$ac_ext
15272 LIBS=$ac_check_lib_save_LIBS
15273 fi
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15275 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15276 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15277   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15278 fi
15279
15280
15281 fi
15282
15283
15284 fi
15285
15286
15287 fi
15288
15289
15290 fi
15291
15292
15293 fi
15294
15295     ;;
15296   esac
15297
15298   if test no = "$lt_cv_dlopen"; then
15299     enable_dlopen=no
15300   else
15301     enable_dlopen=yes
15302   fi
15303
15304   case $lt_cv_dlopen in
15305   dlopen)
15306     save_CPPFLAGS=$CPPFLAGS
15307     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15308
15309     save_LDFLAGS=$LDFLAGS
15310     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15311
15312     save_LIBS=$LIBS
15313     LIBS="$lt_cv_dlopen_libs $LIBS"
15314
15315     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15316 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15317 if ${lt_cv_dlopen_self+:} false; then :
15318   $as_echo_n "(cached) " >&6
15319 else
15320           if test yes = "$cross_compiling"; then :
15321   lt_cv_dlopen_self=cross
15322 else
15323   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15324   lt_status=$lt_dlunknown
15325   cat > conftest.$ac_ext <<_LT_EOF
15326 #line $LINENO "configure"
15327 #include "confdefs.h"
15328
15329 #if HAVE_DLFCN_H
15330 #include <dlfcn.h>
15331 #endif
15332
15333 #include <stdio.h>
15334
15335 #ifdef RTLD_GLOBAL
15336 #  define LT_DLGLOBAL           RTLD_GLOBAL
15337 #else
15338 #  ifdef DL_GLOBAL
15339 #    define LT_DLGLOBAL         DL_GLOBAL
15340 #  else
15341 #    define LT_DLGLOBAL         0
15342 #  endif
15343 #endif
15344
15345 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15346    find out it does not work in some platform. */
15347 #ifndef LT_DLLAZY_OR_NOW
15348 #  ifdef RTLD_LAZY
15349 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15350 #  else
15351 #    ifdef DL_LAZY
15352 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15353 #    else
15354 #      ifdef RTLD_NOW
15355 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15356 #      else
15357 #        ifdef DL_NOW
15358 #          define LT_DLLAZY_OR_NOW      DL_NOW
15359 #        else
15360 #          define LT_DLLAZY_OR_NOW      0
15361 #        endif
15362 #      endif
15363 #    endif
15364 #  endif
15365 #endif
15366
15367 /* When -fvisibility=hidden is used, assume the code has been annotated
15368    correspondingly for the symbols needed.  */
15369 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15370 int fnord () __attribute__((visibility("default")));
15371 #endif
15372
15373 int fnord () { return 42; }
15374 int main ()
15375 {
15376   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15377   int status = $lt_dlunknown;
15378
15379   if (self)
15380     {
15381       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15382       else
15383         {
15384           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15385           else puts (dlerror ());
15386         }
15387       /* dlclose (self); */
15388     }
15389   else
15390     puts (dlerror ());
15391
15392   return status;
15393 }
15394 _LT_EOF
15395   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15396   (eval $ac_link) 2>&5
15397   ac_status=$?
15398   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15399   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15400     (./conftest; exit; ) >&5 2>/dev/null
15401     lt_status=$?
15402     case x$lt_status in
15403       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15404       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15405       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15406     esac
15407   else :
15408     # compilation failed
15409     lt_cv_dlopen_self=no
15410   fi
15411 fi
15412 rm -fr conftest*
15413
15414
15415 fi
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15417 $as_echo "$lt_cv_dlopen_self" >&6; }
15418
15419     if test yes = "$lt_cv_dlopen_self"; then
15420       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15421       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15422 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15423 if ${lt_cv_dlopen_self_static+:} false; then :
15424   $as_echo_n "(cached) " >&6
15425 else
15426           if test yes = "$cross_compiling"; then :
15427   lt_cv_dlopen_self_static=cross
15428 else
15429   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15430   lt_status=$lt_dlunknown
15431   cat > conftest.$ac_ext <<_LT_EOF
15432 #line $LINENO "configure"
15433 #include "confdefs.h"
15434
15435 #if HAVE_DLFCN_H
15436 #include <dlfcn.h>
15437 #endif
15438
15439 #include <stdio.h>
15440
15441 #ifdef RTLD_GLOBAL
15442 #  define LT_DLGLOBAL           RTLD_GLOBAL
15443 #else
15444 #  ifdef DL_GLOBAL
15445 #    define LT_DLGLOBAL         DL_GLOBAL
15446 #  else
15447 #    define LT_DLGLOBAL         0
15448 #  endif
15449 #endif
15450
15451 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15452    find out it does not work in some platform. */
15453 #ifndef LT_DLLAZY_OR_NOW
15454 #  ifdef RTLD_LAZY
15455 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15456 #  else
15457 #    ifdef DL_LAZY
15458 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15459 #    else
15460 #      ifdef RTLD_NOW
15461 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15462 #      else
15463 #        ifdef DL_NOW
15464 #          define LT_DLLAZY_OR_NOW      DL_NOW
15465 #        else
15466 #          define LT_DLLAZY_OR_NOW      0
15467 #        endif
15468 #      endif
15469 #    endif
15470 #  endif
15471 #endif
15472
15473 /* When -fvisibility=hidden is used, assume the code has been annotated
15474    correspondingly for the symbols needed.  */
15475 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15476 int fnord () __attribute__((visibility("default")));
15477 #endif
15478
15479 int fnord () { return 42; }
15480 int main ()
15481 {
15482   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15483   int status = $lt_dlunknown;
15484
15485   if (self)
15486     {
15487       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15488       else
15489         {
15490           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15491           else puts (dlerror ());
15492         }
15493       /* dlclose (self); */
15494     }
15495   else
15496     puts (dlerror ());
15497
15498   return status;
15499 }
15500 _LT_EOF
15501   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15502   (eval $ac_link) 2>&5
15503   ac_status=$?
15504   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15505   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15506     (./conftest; exit; ) >&5 2>/dev/null
15507     lt_status=$?
15508     case x$lt_status in
15509       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15510       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15511       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15512     esac
15513   else :
15514     # compilation failed
15515     lt_cv_dlopen_self_static=no
15516   fi
15517 fi
15518 rm -fr conftest*
15519
15520
15521 fi
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15523 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15524     fi
15525
15526     CPPFLAGS=$save_CPPFLAGS
15527     LDFLAGS=$save_LDFLAGS
15528     LIBS=$save_LIBS
15529     ;;
15530   esac
15531
15532   case $lt_cv_dlopen_self in
15533   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15534   *) enable_dlopen_self=unknown ;;
15535   esac
15536
15537   case $lt_cv_dlopen_self_static in
15538   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15539   *) enable_dlopen_self_static=unknown ;;
15540   esac
15541 fi
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559 striplib=
15560 old_striplib=
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15562 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15563 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15564   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15565   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15567 $as_echo "yes" >&6; }
15568 else
15569 # FIXME - insert some real tests, host_os isn't really good enough
15570   case $host_os in
15571   darwin*)
15572     if test -n "$STRIP"; then
15573       striplib="$STRIP -x"
15574       old_striplib="$STRIP -S"
15575       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15576 $as_echo "yes" >&6; }
15577     else
15578       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15579 $as_echo "no" >&6; }
15580     fi
15581     ;;
15582   *)
15583     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15584 $as_echo "no" >&6; }
15585     ;;
15586   esac
15587 fi
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600   # Report what library types will actually be built
15601   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15602 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15604 $as_echo "$can_build_shared" >&6; }
15605
15606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15607 $as_echo_n "checking whether to build shared libraries... " >&6; }
15608   test no = "$can_build_shared" && enable_shared=no
15609
15610   # On AIX, shared libraries and static libraries use the same namespace, and
15611   # are all built from PIC.
15612   case $host_os in
15613   aix3*)
15614     test yes = "$enable_shared" && enable_static=no
15615     if test -n "$RANLIB"; then
15616       archive_cmds="$archive_cmds~\$RANLIB \$lib"
15617       postinstall_cmds='$RANLIB $lib'
15618     fi
15619     ;;
15620
15621   aix[4-9]*)
15622     if test ia64 != "$host_cpu"; then
15623       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15624       yes,aix,yes) ;;                   # shared object as lib.so file only
15625       yes,svr4,*) ;;                    # shared object as lib.so archive member only
15626       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
15627       esac
15628     fi
15629     ;;
15630   esac
15631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15632 $as_echo "$enable_shared" >&6; }
15633
15634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15635 $as_echo_n "checking whether to build static libraries... " >&6; }
15636   # Make sure either enable_shared or enable_static is yes.
15637   test yes = "$enable_shared" || enable_static=yes
15638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15639 $as_echo "$enable_static" >&6; }
15640
15641
15642
15643
15644 fi
15645 ac_ext=c
15646 ac_cpp='$CPP $CPPFLAGS'
15647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15650
15651 CC=$lt_save_CC
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667         ac_config_commands="$ac_config_commands libtool"
15668
15669
15670
15671
15672 # Only expand once:
15673
15674
15675 ## --------------------- ##
15676 ##  End of libtool code  ##
15677 ## --------------------- ##
15678
15679 #
15680 # Verify if finally libtool shared libraries will be built
15681 #
15682
15683 case "x$enable_shared" in # ((
15684   xyes | xno)
15685     xc_lt_build_shared=$enable_shared
15686     ;;
15687   *)
15688     as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15689     ;;
15690 esac
15691
15692 #
15693 # Verify if finally libtool static libraries will be built
15694 #
15695
15696 case "x$enable_static" in # ((
15697   xyes | xno)
15698     xc_lt_build_static=$enable_static
15699     ;;
15700   *)
15701     as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15702     ;;
15703 esac
15704
15705 #
15706 # Verify if libtool shared libraries should be linked using flag -version-info
15707 #
15708
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15710 $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15711 xc_lt_shlib_use_version_info='yes'
15712 if test "x$version_type" = 'xnone'; then
15713   xc_lt_shlib_use_version_info='no'
15714 fi
15715 case $host_os in # (
15716   amigaos*)
15717     xc_lt_shlib_use_version_info='yes'
15718     ;;
15719 esac
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15721 $as_echo "$xc_lt_shlib_use_version_info" >&6; }
15722
15723 #
15724 # Verify if libtool shared libraries should be linked using flag -no-undefined
15725 #
15726
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15728 $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15729 xc_lt_shlib_use_no_undefined='no'
15730 if test "x$allow_undefined" = 'xno'; then
15731   xc_lt_shlib_use_no_undefined='yes'
15732 elif test "x$allow_undefined_flag" = 'xunsupported'; then
15733   xc_lt_shlib_use_no_undefined='yes'
15734 fi
15735 case $host_os in # (
15736   cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15737     xc_lt_shlib_use_no_undefined='yes'
15738     ;;
15739 esac
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15741 $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15742
15743 #
15744 # Verify if libtool shared libraries should be linked using flag -mimpure-text
15745 #
15746
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15748 $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15749 xc_lt_shlib_use_mimpure_text='no'
15750 case $host_os in # (
15751   solaris2*)
15752     if test "x$GCC" = 'xyes'; then
15753       xc_lt_shlib_use_mimpure_text='yes'
15754     fi
15755     ;;
15756 esac
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15758 $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15759
15760 #
15761 # Find out whether libtool libraries would be built wit PIC
15762 #
15763
15764 case "x$pic_mode" in # ((((
15765   xdefault)
15766     xc_lt_build_shared_with_pic='yes'
15767     xc_lt_build_static_with_pic='no'
15768     ;;
15769   xyes)
15770     xc_lt_build_shared_with_pic='yes'
15771     xc_lt_build_static_with_pic='yes'
15772     ;;
15773   xno)
15774     xc_lt_build_shared_with_pic='no'
15775     xc_lt_build_static_with_pic='no'
15776     ;;
15777   *)
15778     xc_lt_build_shared_with_pic='unknown'
15779     xc_lt_build_static_with_pic='unknown'
15780     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15781 $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15782     ;;
15783 esac
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15785 $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15787 $as_echo "$xc_lt_build_shared_with_pic" >&6; }
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15789 $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15791 $as_echo "$xc_lt_build_static_with_pic" >&6; }
15792
15793 #
15794 # Verify if libtool shared libraries will be built while static not built
15795 #
15796
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15798 $as_echo_n "checking whether to build shared libraries only... " >&6; }
15799 if test "$xc_lt_build_shared" = 'yes' &&
15800   test "$xc_lt_build_static" = 'no'; then
15801   xc_lt_build_shared_only='yes'
15802 else
15803   xc_lt_build_shared_only='no'
15804 fi
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15806 $as_echo "$xc_lt_build_shared_only" >&6; }
15807
15808 #
15809 # Verify if libtool static libraries will be built while shared not built
15810 #
15811
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15813 $as_echo_n "checking whether to build static libraries only... " >&6; }
15814 if test "$xc_lt_build_static" = 'yes' &&
15815   test "$xc_lt_build_shared" = 'no'; then
15816   xc_lt_build_static_only='yes'
15817 else
15818   xc_lt_build_static_only='no'
15819 fi
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15821 $as_echo "$xc_lt_build_static_only" >&6; }
15822
15823
15824
15825
15826 #
15827 # Automake conditionals based on libtool related checks
15828 #
15829
15830  if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15831   CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15832   CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15833 else
15834   CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15835   CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15836 fi
15837
15838  if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15839   CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15840   CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15841 else
15842   CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15843   CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15844 fi
15845
15846  if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15847   CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15848   CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15849 else
15850   CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15851   CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15852 fi
15853
15854
15855 #
15856 # Due to libtool and automake machinery limitations of not allowing
15857 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
15858 # inclusion of these in shared or static libraries, we are forced to
15859 # build using separate configure runs for shared and static libraries
15860 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
15861 # to compile objects for each kind of library. Notice that relying on
15862 # the '-DPIC' CFLAG that libtool provides is not valid given that the
15863 # user might for example choose to build static libraries with PIC.
15864 #
15865
15866 #
15867 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15868 # targeting a static library and not building its shared counterpart.
15869 #
15870
15871  if test "x$xc_lt_build_static_only" = 'xyes'; then
15872   USE_CPPFLAG_CURL_STATICLIB_TRUE=
15873   USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
15874 else
15875   USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
15876   USE_CPPFLAG_CURL_STATICLIB_FALSE=
15877 fi
15878
15879
15880 #
15881 # Make staticlib CPPFLAG variable and its definition visible in output
15882 # files unconditionally, providing an empty definition unless strictly
15883 # targeting a static library and not building its shared counterpart.
15884 #
15885
15886 CPPFLAG_CURL_STATICLIB=
15887 if test "x$xc_lt_build_static_only" = 'xyes'; then
15888   CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
15889 fi
15890
15891
15892
15893 # Determine whether all dependent libraries must be specified when linking
15894 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
15895 then
15896     REQUIRE_LIB_DEPS=no
15897 else
15898     REQUIRE_LIB_DEPS=yes
15899 fi
15900
15901  if test x$REQUIRE_LIB_DEPS = xyes; then
15902   USE_EXPLICIT_LIB_DEPS_TRUE=
15903   USE_EXPLICIT_LIB_DEPS_FALSE='#'
15904 else
15905   USE_EXPLICIT_LIB_DEPS_TRUE='#'
15906   USE_EXPLICIT_LIB_DEPS_FALSE=
15907 fi
15908
15909
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15911 $as_echo_n "checking for inline... " >&6; }
15912 if ${ac_cv_c_inline+:} false; then :
15913   $as_echo_n "(cached) " >&6
15914 else
15915   ac_cv_c_inline=no
15916 for ac_kw in inline __inline__ __inline; do
15917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15918 /* end confdefs.h.  */
15919 #ifndef __cplusplus
15920 typedef int foo_t;
15921 static $ac_kw foo_t static_foo () {return 0; }
15922 $ac_kw foo_t foo () {return 0; }
15923 #endif
15924
15925 _ACEOF
15926 if ac_fn_c_try_compile "$LINENO"; then :
15927   ac_cv_c_inline=$ac_kw
15928 fi
15929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15930   test "$ac_cv_c_inline" != no && break
15931 done
15932
15933 fi
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15935 $as_echo "$ac_cv_c_inline" >&6; }
15936
15937 case $ac_cv_c_inline in
15938   inline | yes) ;;
15939   *)
15940     case $ac_cv_c_inline in
15941       no) ac_val=;;
15942       *) ac_val=$ac_cv_c_inline;;
15943     esac
15944     cat >>confdefs.h <<_ACEOF
15945 #ifndef __cplusplus
15946 #define inline $ac_val
15947 #endif
15948 _ACEOF
15949     ;;
15950 esac
15951
15952
15953
15954
15955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
15956 $as_echo_n "checking if cpp -P is needed... " >&6; }
15957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15958 /* end confdefs.h.  */
15959
15960  #include <errno.h>
15961 TEST EINVAL TEST
15962
15963 _ACEOF
15964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15965   $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15966   cpp=no
15967 else
15968   cpp=yes
15969 fi
15970 rm -f conftest*
15971
15972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
15973 $as_echo "$cpp" >&6; }
15974
15975     if test "x$cpp" = "xyes"; then
15976     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
15977 $as_echo_n "checking if cpp -P works... " >&6; }
15978     OLDCPPFLAGS=$CPPFLAGS
15979     CPPFLAGS="$CPPFLAGS -P"
15980     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15981 /* end confdefs.h.  */
15982
15983  #include <errno.h>
15984 TEST EINVAL TEST
15985
15986 _ACEOF
15987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15988   $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15989   cpp_p=yes
15990 else
15991   cpp_p=no
15992 fi
15993 rm -f conftest*
15994
15995     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
15996 $as_echo "$cpp_p" >&6; }
15997
15998     if test "x$cpp_p" = "xno"; then
15999       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
16000 $as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
16001       # without -P
16002       CPPPFLAG=""
16003     else
16004       # with -P
16005       CPPPFLAG="-P"
16006     fi
16007         CPPFLAGS=$OLDCPPFLAGS
16008   else
16009     # without -P
16010     CPPPFLAG=""
16011   fi
16012
16013
16014   #
16015   compiler_id="unknown"
16016   compiler_num="0"
16017   #
16018   flags_dbg_all="unknown"
16019   flags_dbg_yes="unknown"
16020   flags_dbg_off="unknown"
16021   flags_opt_all="unknown"
16022   flags_opt_yes="unknown"
16023   flags_opt_off="unknown"
16024   #
16025   flags_prefer_cppflags="no"
16026   #
16027
16028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
16029 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
16030
16031     OLDCPPFLAGS=$CPPFLAGS
16032   # CPPPFLAG comes from CURL_CPP_P
16033   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16034       if test -z "$SED"; then
16035     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16036   fi
16037   if test -z "$GREP"; then
16038     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16039   fi
16040
16041   tmp_exp=""
16042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16043 /* end confdefs.h.  */
16044
16045
16046 #ifdef __DECC
16047 CURL_DEF_TOKEN __DECC
16048 #endif
16049
16050
16051 _ACEOF
16052 if ac_fn_c_try_cpp "$LINENO"; then :
16053
16054     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16055       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16056       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16057       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16058     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
16059       tmp_exp=""
16060     fi
16061
16062 fi
16063 rm -f conftest.err conftest.i conftest.$ac_ext
16064   if test -z "$tmp_exp"; then
16065     curl_cv_have_def___DECC=no
16066
16067   else
16068     curl_cv_have_def___DECC=yes
16069     curl_cv_def___DECC=$tmp_exp
16070
16071   fi
16072       CPPFLAGS=$OLDCPPFLAGS
16073
16074
16075     OLDCPPFLAGS=$CPPFLAGS
16076   # CPPPFLAG comes from CURL_CPP_P
16077   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16078       if test -z "$SED"; then
16079     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16080   fi
16081   if test -z "$GREP"; then
16082     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16083   fi
16084
16085   tmp_exp=""
16086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16087 /* end confdefs.h.  */
16088
16089
16090 #ifdef __DECC_VER
16091 CURL_DEF_TOKEN __DECC_VER
16092 #endif
16093
16094
16095 _ACEOF
16096 if ac_fn_c_try_cpp "$LINENO"; then :
16097
16098     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16099       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16100       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16101       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16102     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
16103       tmp_exp=""
16104     fi
16105
16106 fi
16107 rm -f conftest.err conftest.i conftest.$ac_ext
16108   if test -z "$tmp_exp"; then
16109     curl_cv_have_def___DECC_VER=no
16110
16111   else
16112     curl_cv_have_def___DECC_VER=yes
16113     curl_cv_def___DECC_VER=$tmp_exp
16114
16115   fi
16116       CPPFLAGS=$OLDCPPFLAGS
16117
16118   if test "$curl_cv_have_def___DECC" = "yes" &&
16119     test "$curl_cv_have_def___DECC_VER" = "yes"; then
16120     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16121 $as_echo "yes" >&6; }
16122     compiler_id="DEC_C"
16123     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16124     flags_dbg_yes="-g2"
16125     flags_dbg_off=""
16126     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
16127     flags_opt_yes="-O1"
16128     flags_opt_off="-O0"
16129   else
16130     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16131 $as_echo "no" >&6; }
16132   fi
16133
16134
16135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
16136 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
16137
16138     OLDCPPFLAGS=$CPPFLAGS
16139   # CPPPFLAG comes from CURL_CPP_P
16140   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16141       if test -z "$SED"; then
16142     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16143   fi
16144   if test -z "$GREP"; then
16145     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16146   fi
16147
16148   tmp_exp=""
16149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16150 /* end confdefs.h.  */
16151
16152
16153 #ifdef __HP_cc
16154 CURL_DEF_TOKEN __HP_cc
16155 #endif
16156
16157
16158 _ACEOF
16159 if ac_fn_c_try_cpp "$LINENO"; then :
16160
16161     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16162       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16163       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16164       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16165     if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
16166       tmp_exp=""
16167     fi
16168
16169 fi
16170 rm -f conftest.err conftest.i conftest.$ac_ext
16171   if test -z "$tmp_exp"; then
16172     curl_cv_have_def___HP_cc=no
16173
16174   else
16175     curl_cv_have_def___HP_cc=yes
16176     curl_cv_def___HP_cc=$tmp_exp
16177
16178   fi
16179       CPPFLAGS=$OLDCPPFLAGS
16180
16181   if test "$curl_cv_have_def___HP_cc" = "yes"; then
16182     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16183 $as_echo "yes" >&6; }
16184     compiler_id="HP_UX_C"
16185     flags_dbg_all="-g -s"
16186     flags_dbg_yes="-g"
16187     flags_dbg_off="-s"
16188     flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
16189     flags_opt_yes="+O2"
16190     flags_opt_off="+O0"
16191   else
16192     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16193 $as_echo "no" >&6; }
16194   fi
16195
16196
16197   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
16198 $as_echo_n "checking if compiler is IBM C... " >&6; }
16199
16200     OLDCPPFLAGS=$CPPFLAGS
16201   # CPPPFLAG comes from CURL_CPP_P
16202   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16203       if test -z "$SED"; then
16204     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16205   fi
16206   if test -z "$GREP"; then
16207     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16208   fi
16209
16210   tmp_exp=""
16211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16212 /* end confdefs.h.  */
16213
16214
16215 #ifdef __IBMC__
16216 CURL_DEF_TOKEN __IBMC__
16217 #endif
16218
16219
16220 _ACEOF
16221 if ac_fn_c_try_cpp "$LINENO"; then :
16222
16223     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16224       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16225       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16226       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16227     if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
16228       tmp_exp=""
16229     fi
16230
16231 fi
16232 rm -f conftest.err conftest.i conftest.$ac_ext
16233   if test -z "$tmp_exp"; then
16234     curl_cv_have_def___IBMC__=no
16235
16236   else
16237     curl_cv_have_def___IBMC__=yes
16238     curl_cv_def___IBMC__=$tmp_exp
16239
16240   fi
16241       CPPFLAGS=$OLDCPPFLAGS
16242
16243   if test "$curl_cv_have_def___IBMC__" = "yes"; then
16244     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16245 $as_echo "yes" >&6; }
16246     compiler_id="IBM_C"
16247     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16248     flags_dbg_yes="-g"
16249     flags_dbg_off=""
16250     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
16251     flags_opt_all="$flags_opt_all -qnooptimize"
16252     flags_opt_all="$flags_opt_all -qoptimize=0"
16253     flags_opt_all="$flags_opt_all -qoptimize=1"
16254     flags_opt_all="$flags_opt_all -qoptimize=2"
16255     flags_opt_all="$flags_opt_all -qoptimize=3"
16256     flags_opt_all="$flags_opt_all -qoptimize=4"
16257     flags_opt_all="$flags_opt_all -qoptimize=5"
16258     flags_opt_yes="-O2"
16259     flags_opt_off="-qnooptimize"
16260     flags_prefer_cppflags="yes"
16261   else
16262     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16263 $as_echo "no" >&6; }
16264   fi
16265
16266
16267     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
16268 $as_echo_n "checking if compiler is Intel C... " >&6; }
16269
16270     OLDCPPFLAGS=$CPPFLAGS
16271   # CPPPFLAG comes from CURL_CPP_P
16272   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16273       if test -z "$SED"; then
16274     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16275   fi
16276   if test -z "$GREP"; then
16277     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16278   fi
16279
16280   tmp_exp=""
16281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16282 /* end confdefs.h.  */
16283
16284
16285 #ifdef __INTEL_COMPILER
16286 CURL_DEF_TOKEN __INTEL_COMPILER
16287 #endif
16288
16289
16290 _ACEOF
16291 if ac_fn_c_try_cpp "$LINENO"; then :
16292
16293     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16294       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16295       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16296       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16297     if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
16298       tmp_exp=""
16299     fi
16300
16301 fi
16302 rm -f conftest.err conftest.i conftest.$ac_ext
16303   if test -z "$tmp_exp"; then
16304     curl_cv_have_def___INTEL_COMPILER=no
16305
16306   else
16307     curl_cv_have_def___INTEL_COMPILER=yes
16308     curl_cv_def___INTEL_COMPILER=$tmp_exp
16309
16310   fi
16311       CPPFLAGS=$OLDCPPFLAGS
16312
16313   if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
16314     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16315 $as_echo "yes" >&6; }
16316     compiler_num="$curl_cv_def___INTEL_COMPILER"
16317
16318     OLDCPPFLAGS=$CPPFLAGS
16319   # CPPPFLAG comes from CURL_CPP_P
16320   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16321       if test -z "$SED"; then
16322     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16323   fi
16324   if test -z "$GREP"; then
16325     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16326   fi
16327
16328   tmp_exp=""
16329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16330 /* end confdefs.h.  */
16331
16332
16333 #ifdef __unix__
16334 CURL_DEF_TOKEN __unix__
16335 #endif
16336
16337
16338 _ACEOF
16339 if ac_fn_c_try_cpp "$LINENO"; then :
16340
16341     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16342       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16343       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16344       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16345     if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16346       tmp_exp=""
16347     fi
16348
16349 fi
16350 rm -f conftest.err conftest.i conftest.$ac_ext
16351   if test -z "$tmp_exp"; then
16352     curl_cv_have_def___unix__=no
16353
16354   else
16355     curl_cv_have_def___unix__=yes
16356     curl_cv_def___unix__=$tmp_exp
16357
16358   fi
16359       CPPFLAGS=$OLDCPPFLAGS
16360
16361     if test "$curl_cv_have_def___unix__" = "yes"; then
16362       compiler_id="INTEL_UNIX_C"
16363       flags_dbg_all="-g -g0"
16364       flags_dbg_yes="-g"
16365       flags_dbg_off=""
16366       flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16367       flags_opt_yes="-O2"
16368       flags_opt_off="-O0"
16369     else
16370       compiler_id="INTEL_WINDOWS_C"
16371       flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
16372       flags_dbg_all="$flags_dbg_all /debug"
16373       flags_dbg_all="$flags_dbg_all /debug:none"
16374       flags_dbg_all="$flags_dbg_all /debug:minimal"
16375       flags_dbg_all="$flags_dbg_all /debug:partial"
16376       flags_dbg_all="$flags_dbg_all /debug:full"
16377       flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
16378       flags_dbg_all="$flags_dbg_all /debug:extended"
16379       flags_dbg_yes="/Zi /Oy-"
16380       flags_dbg_off="/debug:none /Oy-"
16381       flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16382       flags_opt_yes="/O2"
16383       flags_opt_off="/Od"
16384     fi
16385   else
16386     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16387 $as_echo "no" >&6; }
16388   fi
16389
16390
16391     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16392 $as_echo_n "checking if compiler is clang... " >&6; }
16393
16394     OLDCPPFLAGS=$CPPFLAGS
16395   # CPPPFLAG comes from CURL_CPP_P
16396   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16397       if test -z "$SED"; then
16398     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16399   fi
16400   if test -z "$GREP"; then
16401     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16402   fi
16403
16404   tmp_exp=""
16405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16406 /* end confdefs.h.  */
16407
16408
16409 #ifdef __clang__
16410 CURL_DEF_TOKEN __clang__
16411 #endif
16412
16413
16414 _ACEOF
16415 if ac_fn_c_try_cpp "$LINENO"; then :
16416
16417     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16418       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16419       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16420       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16421     if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16422       tmp_exp=""
16423     fi
16424
16425 fi
16426 rm -f conftest.err conftest.i conftest.$ac_ext
16427   if test -z "$tmp_exp"; then
16428     curl_cv_have_def___clang__=no
16429
16430   else
16431     curl_cv_have_def___clang__=yes
16432     curl_cv_def___clang__=$tmp_exp
16433
16434   fi
16435       CPPFLAGS=$OLDCPPFLAGS
16436
16437   if test "$curl_cv_have_def___clang__" = "yes"; then
16438     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16439 $as_echo "yes" >&6; }
16440     compiler_id="CLANG"
16441     fullclangver=`$CC -v 2>&1 | grep version`
16442     clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
16443     if test -z "$clangver"; then
16444       if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
16445                 clangver="3.7"
16446       else
16447         clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
16448       fi
16449     fi
16450     clangvhi=`echo $clangver | cut -d . -f1`
16451     clangvlo=`echo $clangver | cut -d . -f2`
16452     compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16453     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16454     flags_dbg_all="$flags_dbg_all -ggdb"
16455     flags_dbg_all="$flags_dbg_all -gstabs"
16456     flags_dbg_all="$flags_dbg_all -gstabs+"
16457     flags_dbg_all="$flags_dbg_all -gcoff"
16458     flags_dbg_all="$flags_dbg_all -gxcoff"
16459     flags_dbg_all="$flags_dbg_all -gdwarf-2"
16460     flags_dbg_all="$flags_dbg_all -gvms"
16461     flags_dbg_yes="-g"
16462     flags_dbg_off=""
16463     flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16464     flags_opt_yes="-Os"
16465     flags_opt_off="-O0"
16466   else
16467     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16468 $as_echo "no" >&6; }
16469   fi
16470
16471
16472       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16473 $as_echo_n "checking if compiler is GNU C... " >&6; }
16474
16475     OLDCPPFLAGS=$CPPFLAGS
16476   # CPPPFLAG comes from CURL_CPP_P
16477   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16478       if test -z "$SED"; then
16479     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16480   fi
16481   if test -z "$GREP"; then
16482     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16483   fi
16484
16485   tmp_exp=""
16486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16487 /* end confdefs.h.  */
16488
16489
16490 #ifdef __GNUC__
16491 CURL_DEF_TOKEN __GNUC__
16492 #endif
16493
16494
16495 _ACEOF
16496 if ac_fn_c_try_cpp "$LINENO"; then :
16497
16498     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16499       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16500       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16501       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16502     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16503       tmp_exp=""
16504     fi
16505
16506 fi
16507 rm -f conftest.err conftest.i conftest.$ac_ext
16508   if test -z "$tmp_exp"; then
16509     curl_cv_have_def___GNUC__=no
16510
16511   else
16512     curl_cv_have_def___GNUC__=yes
16513     curl_cv_def___GNUC__=$tmp_exp
16514
16515   fi
16516       CPPFLAGS=$OLDCPPFLAGS
16517
16518   if test "$curl_cv_have_def___GNUC__" = "yes" &&
16519     test "$compiler_id" = "unknown"; then
16520     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16521 $as_echo "yes" >&6; }
16522     compiler_id="GNU_C"
16523     gccver=`$CC -dumpversion`
16524     gccvhi=`echo $gccver | cut -d . -f1`
16525     gccvlo=`echo $gccver | cut -d . -f2`
16526     compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16527     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16528     flags_dbg_all="$flags_dbg_all -ggdb"
16529     flags_dbg_all="$flags_dbg_all -gstabs"
16530     flags_dbg_all="$flags_dbg_all -gstabs+"
16531     flags_dbg_all="$flags_dbg_all -gcoff"
16532     flags_dbg_all="$flags_dbg_all -gxcoff"
16533     flags_dbg_all="$flags_dbg_all -gdwarf-2"
16534     flags_dbg_all="$flags_dbg_all -gvms"
16535     flags_dbg_yes="-g"
16536     flags_dbg_off=""
16537     flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
16538     flags_opt_yes="-O2"
16539     flags_opt_off="-O0"
16540
16541     OLDCPPFLAGS=$CPPFLAGS
16542   # CPPPFLAG comes from CURL_CPP_P
16543   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16544       if test -z "$SED"; then
16545     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16546   fi
16547   if test -z "$GREP"; then
16548     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16549   fi
16550
16551   tmp_exp=""
16552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16553 /* end confdefs.h.  */
16554
16555
16556 #ifdef _WIN32
16557 CURL_DEF_TOKEN _WIN32
16558 #endif
16559
16560
16561 _ACEOF
16562 if ac_fn_c_try_cpp "$LINENO"; then :
16563
16564     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16565       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16566       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16567       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16568     if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16569       tmp_exp=""
16570     fi
16571
16572 fi
16573 rm -f conftest.err conftest.i conftest.$ac_ext
16574   if test -z "$tmp_exp"; then
16575     curl_cv_have_def__WIN32=no
16576
16577   else
16578     curl_cv_have_def__WIN32=yes
16579     curl_cv_def__WIN32=$tmp_exp
16580
16581   fi
16582       CPPFLAGS=$OLDCPPFLAGS
16583
16584   else
16585     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16586 $as_echo "no" >&6; }
16587   fi
16588
16589
16590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16591 $as_echo_n "checking if compiler is LCC... " >&6; }
16592
16593     OLDCPPFLAGS=$CPPFLAGS
16594   # CPPPFLAG comes from CURL_CPP_P
16595   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16596       if test -z "$SED"; then
16597     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16598   fi
16599   if test -z "$GREP"; then
16600     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16601   fi
16602
16603   tmp_exp=""
16604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16605 /* end confdefs.h.  */
16606
16607
16608 #ifdef __LCC__
16609 CURL_DEF_TOKEN __LCC__
16610 #endif
16611
16612
16613 _ACEOF
16614 if ac_fn_c_try_cpp "$LINENO"; then :
16615
16616     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16617       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16618       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16619       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16620     if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16621       tmp_exp=""
16622     fi
16623
16624 fi
16625 rm -f conftest.err conftest.i conftest.$ac_ext
16626   if test -z "$tmp_exp"; then
16627     curl_cv_have_def___LCC__=no
16628
16629   else
16630     curl_cv_have_def___LCC__=yes
16631     curl_cv_def___LCC__=$tmp_exp
16632
16633   fi
16634       CPPFLAGS=$OLDCPPFLAGS
16635
16636   if test "$curl_cv_have_def___LCC__" = "yes"; then
16637     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16638 $as_echo "yes" >&6; }
16639     compiler_id="LCC"
16640     flags_dbg_all="-g"
16641     flags_dbg_yes="-g"
16642     flags_dbg_off=""
16643     flags_opt_all=""
16644     flags_opt_yes=""
16645     flags_opt_off=""
16646   else
16647     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16648 $as_echo "no" >&6; }
16649   fi
16650
16651
16652     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16653 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16654
16655     OLDCPPFLAGS=$CPPFLAGS
16656   # CPPPFLAG comes from CURL_CPP_P
16657   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16658       if test -z "$SED"; then
16659     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16660   fi
16661   if test -z "$GREP"; then
16662     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16663   fi
16664
16665   tmp_exp=""
16666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16667 /* end confdefs.h.  */
16668
16669
16670 #ifdef __GNUC__
16671 CURL_DEF_TOKEN __GNUC__
16672 #endif
16673
16674
16675 _ACEOF
16676 if ac_fn_c_try_cpp "$LINENO"; then :
16677
16678     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16679       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16680       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16681       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16682     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16683       tmp_exp=""
16684     fi
16685
16686 fi
16687 rm -f conftest.err conftest.i conftest.$ac_ext
16688   if test -z "$tmp_exp"; then
16689     curl_cv_have_def___GNUC__=no
16690
16691   else
16692     curl_cv_have_def___GNUC__=yes
16693     curl_cv_def___GNUC__=$tmp_exp
16694
16695   fi
16696       CPPFLAGS=$OLDCPPFLAGS
16697
16698
16699     OLDCPPFLAGS=$CPPFLAGS
16700   # CPPPFLAG comes from CURL_CPP_P
16701   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16702       if test -z "$SED"; then
16703     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16704   fi
16705   if test -z "$GREP"; then
16706     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16707   fi
16708
16709   tmp_exp=""
16710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16711 /* end confdefs.h.  */
16712
16713
16714 #ifdef _COMPILER_VERSION
16715 CURL_DEF_TOKEN _COMPILER_VERSION
16716 #endif
16717
16718
16719 _ACEOF
16720 if ac_fn_c_try_cpp "$LINENO"; 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" = "_COMPILER_VERSION"; 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__COMPILER_VERSION=no
16734
16735   else
16736     curl_cv_have_def__COMPILER_VERSION=yes
16737     curl_cv_def__COMPILER_VERSION=$tmp_exp
16738
16739   fi
16740       CPPFLAGS=$OLDCPPFLAGS
16741
16742
16743     OLDCPPFLAGS=$CPPFLAGS
16744   # CPPPFLAG comes from CURL_CPP_P
16745   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16746       if test -z "$SED"; then
16747     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16748   fi
16749   if test -z "$GREP"; then
16750     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16751   fi
16752
16753   tmp_exp=""
16754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16755 /* end confdefs.h.  */
16756
16757
16758 #ifdef _SGI_COMPILER_VERSION
16759 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16760 #endif
16761
16762
16763 _ACEOF
16764 if ac_fn_c_try_cpp "$LINENO"; then :
16765
16766     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16767       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16768       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16769       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16770     if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16771       tmp_exp=""
16772     fi
16773
16774 fi
16775 rm -f conftest.err conftest.i conftest.$ac_ext
16776   if test -z "$tmp_exp"; then
16777     curl_cv_have_def__SGI_COMPILER_VERSION=no
16778
16779   else
16780     curl_cv_have_def__SGI_COMPILER_VERSION=yes
16781     curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16782
16783   fi
16784       CPPFLAGS=$OLDCPPFLAGS
16785
16786   if test "$curl_cv_have_def___GNUC__" = "no" &&
16787     (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16788      test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16789     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16790 $as_echo "yes" >&6; }
16791     compiler_id="SGI_MIPSPRO_C"
16792     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16793     flags_dbg_yes="-g"
16794     flags_dbg_off=""
16795     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16796     flags_opt_yes="-O2"
16797     flags_opt_off="-O0"
16798   else
16799     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16800 $as_echo "no" >&6; }
16801   fi
16802
16803
16804     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16805 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16806
16807     OLDCPPFLAGS=$CPPFLAGS
16808   # CPPPFLAG comes from CURL_CPP_P
16809   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16810       if test -z "$SED"; then
16811     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16812   fi
16813   if test -z "$GREP"; then
16814     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16815   fi
16816
16817   tmp_exp=""
16818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16819 /* end confdefs.h.  */
16820
16821
16822 #ifdef __GNUC__
16823 CURL_DEF_TOKEN __GNUC__
16824 #endif
16825
16826
16827 _ACEOF
16828 if ac_fn_c_try_cpp "$LINENO"; then :
16829
16830     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16831       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16832       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16833       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16834     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16835       tmp_exp=""
16836     fi
16837
16838 fi
16839 rm -f conftest.err conftest.i conftest.$ac_ext
16840   if test -z "$tmp_exp"; then
16841     curl_cv_have_def___GNUC__=no
16842
16843   else
16844     curl_cv_have_def___GNUC__=yes
16845     curl_cv_def___GNUC__=$tmp_exp
16846
16847   fi
16848       CPPFLAGS=$OLDCPPFLAGS
16849
16850
16851     OLDCPPFLAGS=$CPPFLAGS
16852   # CPPPFLAG comes from CURL_CPP_P
16853   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16854       if test -z "$SED"; then
16855     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16856   fi
16857   if test -z "$GREP"; then
16858     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16859   fi
16860
16861   tmp_exp=""
16862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16863 /* end confdefs.h.  */
16864
16865
16866 #ifdef __sgi
16867 CURL_DEF_TOKEN __sgi
16868 #endif
16869
16870
16871 _ACEOF
16872 if ac_fn_c_try_cpp "$LINENO"; then :
16873
16874     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16875       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16876       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16877       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16878     if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16879       tmp_exp=""
16880     fi
16881
16882 fi
16883 rm -f conftest.err conftest.i conftest.$ac_ext
16884   if test -z "$tmp_exp"; then
16885     curl_cv_have_def___sgi=no
16886
16887   else
16888     curl_cv_have_def___sgi=yes
16889     curl_cv_def___sgi=$tmp_exp
16890
16891   fi
16892       CPPFLAGS=$OLDCPPFLAGS
16893
16894   if test "$curl_cv_have_def___GNUC__" = "no" &&
16895     test "$curl_cv_have_def___sgi" = "yes" &&
16896     test "$compiler_id" = "unknown"; then
16897     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16898 $as_echo "yes" >&6; }
16899     compiler_id="SGI_MIPS_C"
16900     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16901     flags_dbg_yes="-g"
16902     flags_dbg_off=""
16903     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16904     flags_opt_yes="-O2"
16905     flags_opt_off="-O0"
16906   else
16907     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16908 $as_echo "no" >&6; }
16909   fi
16910
16911
16912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16913 $as_echo_n "checking if compiler is SunPro C... " >&6; }
16914
16915     OLDCPPFLAGS=$CPPFLAGS
16916   # CPPPFLAG comes from CURL_CPP_P
16917   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16918       if test -z "$SED"; then
16919     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16920   fi
16921   if test -z "$GREP"; then
16922     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16923   fi
16924
16925   tmp_exp=""
16926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16927 /* end confdefs.h.  */
16928
16929
16930 #ifdef __SUNPRO_C
16931 CURL_DEF_TOKEN __SUNPRO_C
16932 #endif
16933
16934
16935 _ACEOF
16936 if ac_fn_c_try_cpp "$LINENO"; then :
16937
16938     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16939       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16940       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16941       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16942     if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16943       tmp_exp=""
16944     fi
16945
16946 fi
16947 rm -f conftest.err conftest.i conftest.$ac_ext
16948   if test -z "$tmp_exp"; then
16949     curl_cv_have_def___SUNPRO_C=no
16950
16951   else
16952     curl_cv_have_def___SUNPRO_C=yes
16953     curl_cv_def___SUNPRO_C=$tmp_exp
16954
16955   fi
16956       CPPFLAGS=$OLDCPPFLAGS
16957
16958   if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16959     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16960 $as_echo "yes" >&6; }
16961     compiler_id="SUNPRO_C"
16962     flags_dbg_all="-g -s"
16963     flags_dbg_yes="-g"
16964     flags_dbg_off="-s"
16965     flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16966     flags_opt_yes="-xO2"
16967     flags_opt_off=""
16968   else
16969     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16970 $as_echo "no" >&6; }
16971   fi
16972
16973
16974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16975 $as_echo_n "checking if compiler is Tiny C... " >&6; }
16976
16977     OLDCPPFLAGS=$CPPFLAGS
16978   # CPPPFLAG comes from CURL_CPP_P
16979   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16980       if test -z "$SED"; then
16981     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16982   fi
16983   if test -z "$GREP"; then
16984     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16985   fi
16986
16987   tmp_exp=""
16988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16989 /* end confdefs.h.  */
16990
16991
16992 #ifdef __TINYC__
16993 CURL_DEF_TOKEN __TINYC__
16994 #endif
16995
16996
16997 _ACEOF
16998 if ac_fn_c_try_cpp "$LINENO"; then :
16999
17000     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17001       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17002       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17003       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17004     if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
17005       tmp_exp=""
17006     fi
17007
17008 fi
17009 rm -f conftest.err conftest.i conftest.$ac_ext
17010   if test -z "$tmp_exp"; then
17011     curl_cv_have_def___TINYC__=no
17012
17013   else
17014     curl_cv_have_def___TINYC__=yes
17015     curl_cv_def___TINYC__=$tmp_exp
17016
17017   fi
17018       CPPFLAGS=$OLDCPPFLAGS
17019
17020   if test "$curl_cv_have_def___TINYC__" = "yes"; then
17021     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17022 $as_echo "yes" >&6; }
17023     compiler_id="TINY_C"
17024     flags_dbg_all="-g -b"
17025     flags_dbg_yes="-g"
17026     flags_dbg_off=""
17027     flags_opt_all=""
17028     flags_opt_yes=""
17029     flags_opt_off=""
17030   else
17031     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17032 $as_echo "no" >&6; }
17033   fi
17034
17035
17036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
17037 $as_echo_n "checking if compiler is Watcom C... " >&6; }
17038
17039     OLDCPPFLAGS=$CPPFLAGS
17040   # CPPPFLAG comes from CURL_CPP_P
17041   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17042       if test -z "$SED"; then
17043     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17044   fi
17045   if test -z "$GREP"; then
17046     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17047   fi
17048
17049   tmp_exp=""
17050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17051 /* end confdefs.h.  */
17052
17053
17054 #ifdef __WATCOMC__
17055 CURL_DEF_TOKEN __WATCOMC__
17056 #endif
17057
17058
17059 _ACEOF
17060 if ac_fn_c_try_cpp "$LINENO"; then :
17061
17062     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17063       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17064       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17065       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17066     if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
17067       tmp_exp=""
17068     fi
17069
17070 fi
17071 rm -f conftest.err conftest.i conftest.$ac_ext
17072   if test -z "$tmp_exp"; then
17073     curl_cv_have_def___WATCOMC__=no
17074
17075   else
17076     curl_cv_have_def___WATCOMC__=yes
17077     curl_cv_def___WATCOMC__=$tmp_exp
17078
17079   fi
17080       CPPFLAGS=$OLDCPPFLAGS
17081
17082   if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
17083     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17084 $as_echo "yes" >&6; }
17085
17086     OLDCPPFLAGS=$CPPFLAGS
17087   # CPPPFLAG comes from CURL_CPP_P
17088   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17089       if test -z "$SED"; then
17090     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17091   fi
17092   if test -z "$GREP"; then
17093     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17094   fi
17095
17096   tmp_exp=""
17097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17098 /* end confdefs.h.  */
17099
17100
17101 #ifdef __UNIX__
17102 CURL_DEF_TOKEN __UNIX__
17103 #endif
17104
17105
17106 _ACEOF
17107 if ac_fn_c_try_cpp "$LINENO"; then :
17108
17109     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17110       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17111       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17112       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17113     if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
17114       tmp_exp=""
17115     fi
17116
17117 fi
17118 rm -f conftest.err conftest.i conftest.$ac_ext
17119   if test -z "$tmp_exp"; then
17120     curl_cv_have_def___UNIX__=no
17121
17122   else
17123     curl_cv_have_def___UNIX__=yes
17124     curl_cv_def___UNIX__=$tmp_exp
17125
17126   fi
17127       CPPFLAGS=$OLDCPPFLAGS
17128
17129     if test "$curl_cv_have_def___UNIX__" = "yes"; then
17130       compiler_id="WATCOM_UNIX_C"
17131       flags_dbg_all="-g1 -g1+ -g2 -g3"
17132       flags_dbg_yes="-g2"
17133       flags_dbg_off=""
17134       flags_opt_all="-O0 -O1 -O2 -O3"
17135       flags_opt_yes="-O2"
17136       flags_opt_off="-O0"
17137     else
17138       compiler_id="WATCOM_WINDOWS_C"
17139       flags_dbg_all=""
17140       flags_dbg_yes=""
17141       flags_dbg_off=""
17142       flags_opt_all=""
17143       flags_opt_yes=""
17144       flags_opt_off=""
17145     fi
17146   else
17147     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17148 $as_echo "no" >&6; }
17149   fi
17150
17151   #
17152   if test "$compiler_id" = "unknown"; then
17153   cat <<_EOF 1>&2
17154 ***
17155 *** Warning: This configure script does not have information about the
17156 *** compiler you are using, relative to the flags required to enable or
17157 *** disable generation of debug info, optimization options or warnings.
17158 ***
17159 *** Whatever settings are present in CFLAGS will be used for this run.
17160 ***
17161 *** If you wish to help the curl project to better support your compiler
17162 *** you can report this and the required info on the libcurl development
17163 *** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
17164 ***
17165 _EOF
17166   fi
17167
17168
17169 squeeze() {
17170   _sqz_result=""
17171   eval _sqz_input=\$$1
17172   for _sqz_token in $_sqz_input; do
17173     if test -z "$_sqz_result"; then
17174       _sqz_result="$_sqz_token"
17175     else
17176       _sqz_result="$_sqz_result $_sqz_token"
17177     fi
17178   done
17179   eval $1=\$_sqz_result
17180   return 0
17181 }
17182
17183
17184       #
17185   if test "$compiler_id" != "unknown"; then
17186     #
17187     if test "$compiler_id" = "GNU_C" ||
17188       test "$compiler_id" = "CLANG"; then
17189
17190       if test "$compiler_id" = "GNU_C" ||
17191     test "$compiler_id" = "CLANG"; then
17192     tmp_has_include="no"
17193     tmp_chg_FLAGS="$CFLAGS"
17194     for word1 in $tmp_chg_FLAGS; do
17195       case "$word1" in
17196         -I*)
17197           tmp_has_include="yes"
17198           ;;
17199       esac
17200     done
17201     if test "$tmp_has_include" = "yes"; then
17202       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17203       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17204       CFLAGS="$tmp_chg_FLAGS"
17205       squeeze CFLAGS
17206     fi
17207     tmp_has_include="no"
17208     tmp_chg_FLAGS="$CPPFLAGS"
17209     for word1 in $tmp_chg_FLAGS; do
17210       case "$word1" in
17211         -I*)
17212           tmp_has_include="yes"
17213           ;;
17214       esac
17215     done
17216     if test "$tmp_has_include" = "yes"; then
17217       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17218       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17219       CPPFLAGS="$tmp_chg_FLAGS"
17220       squeeze CPPFLAGS
17221     fi
17222   fi
17223
17224     fi
17225     #
17226     tmp_save_CPPFLAGS="$CPPFLAGS"
17227     tmp_save_CFLAGS="$CFLAGS"
17228     tmp_CPPFLAGS=""
17229     tmp_CFLAGS=""
17230     #
17231     case "$compiler_id" in
17232         #
17233       CLANG)
17234         #
17235                                 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
17236         ;;
17237         #
17238       DEC_C)
17239         #
17240                 tmp_CFLAGS="$tmp_CFLAGS -std1"
17241                 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
17242                 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
17243                 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
17244         ;;
17245         #
17246       GNU_C)
17247         #
17248                         if test "$compiler_num" -ge "295"; then
17249           tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
17250         fi
17251         ;;
17252         #
17253       HP_UX_C)
17254         #
17255                 tmp_CFLAGS="$tmp_CFLAGS -z"
17256                                 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
17257         ;;
17258         #
17259       IBM_C)
17260         #
17261                 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
17262                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
17263                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
17264         ;;
17265         #
17266       INTEL_UNIX_C)
17267         #
17268                         tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
17269                                                 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
17270                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17271         ;;
17272         #
17273       INTEL_WINDOWS_C)
17274         #
17275                 tmp_CFLAGS="$tmp_CFLAGS"
17276         ;;
17277         #
17278       LCC)
17279         #
17280                 tmp_CFLAGS="$tmp_CFLAGS -n"
17281         ;;
17282         #
17283       SGI_MIPS_C)
17284         #
17285                 tmp_CFLAGS="$tmp_CFLAGS"
17286         ;;
17287         #
17288       SGI_MIPSPRO_C)
17289         #
17290                 tmp_CFLAGS="$tmp_CFLAGS"
17291         ;;
17292         #
17293       SUNPRO_C)
17294         #
17295                 tmp_CFLAGS="$tmp_CFLAGS"
17296         ;;
17297         #
17298       TINY_C)
17299         #
17300                 tmp_CFLAGS="$tmp_CFLAGS"
17301         ;;
17302         #
17303       WATCOM_UNIX_C)
17304         #
17305                 tmp_CFLAGS="$tmp_CFLAGS"
17306         ;;
17307         #
17308       WATCOM_WINDOWS_C)
17309         #
17310                 tmp_CFLAGS="$tmp_CFLAGS"
17311         ;;
17312         #
17313     esac
17314     #
17315     squeeze tmp_CPPFLAGS
17316     squeeze tmp_CFLAGS
17317     #
17318     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17319       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17320 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
17321       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17322       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17323       squeeze CPPFLAGS
17324       squeeze CFLAGS
17325
17326     tmp_compiler_works="unknown"
17327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17328 /* end confdefs.h.  */
17329
17330
17331
17332 int main (void)
17333 {
17334
17335       int i = 1;
17336       return i;
17337
17338  ;
17339  return 0;
17340 }
17341
17342 _ACEOF
17343 if ac_fn_c_try_compile "$LINENO"; then :
17344
17345     tmp_compiler_works="yes"
17346
17347 else
17348
17349     tmp_compiler_works="no"
17350     echo " " >&6
17351     sed 's/^/cc-fail: /' conftest.err >&6
17352     echo " " >&6
17353
17354 fi
17355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17356     if test "$tmp_compiler_works" = "yes"; then
17357     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17358 /* end confdefs.h.  */
17359
17360
17361
17362 int main (void)
17363 {
17364
17365         int i = 1;
17366         return i;
17367
17368  ;
17369  return 0;
17370 }
17371
17372 _ACEOF
17373 if ac_fn_c_try_link "$LINENO"; then :
17374
17375       tmp_compiler_works="yes"
17376
17377 else
17378
17379       tmp_compiler_works="no"
17380       echo " " >&6
17381       sed 's/^/link-fail: /' conftest.err >&6
17382       echo " " >&6
17383
17384 fi
17385 rm -f core conftest.err conftest.$ac_objext \
17386     conftest$ac_exeext conftest.$ac_ext
17387   fi
17388     if test "x$cross_compiling" != "xyes" &&
17389     test "$tmp_compiler_works" = "yes"; then
17390     if test "$cross_compiling" = yes; then :
17391   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17393 as_fn_error $? "cannot run test program while cross compiling
17394 See \`config.log' for more details" "$LINENO" 5; }
17395 else
17396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17397 /* end confdefs.h.  */
17398
17399
17400 #       ifdef __STDC__
17401 #         include <stdlib.h>
17402 #       endif
17403
17404 int main (void)
17405 {
17406
17407         int i = 0;
17408         exit(i);
17409
17410  ;
17411  return 0;
17412 }
17413
17414 _ACEOF
17415 if ac_fn_c_try_run "$LINENO"; then :
17416
17417       tmp_compiler_works="yes"
17418
17419 else
17420
17421       tmp_compiler_works="no"
17422       echo " " >&6
17423       echo "run-fail: test program exited with status $ac_status" >&6
17424       echo " " >&6
17425
17426 fi
17427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17428   conftest.$ac_objext conftest.beam conftest.$ac_ext
17429 fi
17430
17431   fi
17432     if test "$tmp_compiler_works" = "yes"; then
17433
17434         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17435 $as_echo "yes" >&6; }
17436         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17437 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17438
17439   else
17440
17441         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17442 $as_echo "no" >&6; }
17443         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17444 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17445                 CPPFLAGS="$tmp_save_CPPFLAGS"
17446         CFLAGS="$tmp_save_CFLAGS"
17447
17448   fi
17449
17450     fi
17451     #
17452   fi
17453
17454
17455         #
17456   if test "$compiler_id" != "unknown"; then
17457     #
17458     tmp_save_CFLAGS="$CFLAGS"
17459     tmp_save_CPPFLAGS="$CPPFLAGS"
17460     #
17461     tmp_options=""
17462     tmp_CFLAGS="$CFLAGS"
17463     tmp_CPPFLAGS="$CPPFLAGS"
17464
17465     ac_var_stripped=""
17466   for word1 in $tmp_CFLAGS; do
17467     ac_var_strip_word="no"
17468     for word2 in $flags_dbg_all; do
17469       if test "$word1" = "$word2"; then
17470         ac_var_strip_word="yes"
17471       fi
17472     done
17473     if test "$ac_var_strip_word" = "no"; then
17474       ac_var_stripped="$ac_var_stripped $word1"
17475     fi
17476   done
17477     tmp_CFLAGS="$ac_var_stripped"
17478   squeeze tmp_CFLAGS
17479
17480
17481     ac_var_stripped=""
17482   for word1 in $tmp_CPPFLAGS; do
17483     ac_var_strip_word="no"
17484     for word2 in $flags_dbg_all; do
17485       if test "$word1" = "$word2"; then
17486         ac_var_strip_word="yes"
17487       fi
17488     done
17489     if test "$ac_var_strip_word" = "no"; then
17490       ac_var_stripped="$ac_var_stripped $word1"
17491     fi
17492   done
17493     tmp_CPPFLAGS="$ac_var_stripped"
17494   squeeze tmp_CPPFLAGS
17495
17496     #
17497     if test "$want_debug" = "yes"; then
17498       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
17499 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
17500       tmp_options="$flags_dbg_yes"
17501     fi
17502     if test "$want_debug" = "no"; then
17503       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17504 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17505       tmp_options="$flags_dbg_off"
17506     fi
17507     #
17508     if test "$flags_prefer_cppflags" = "yes"; then
17509       CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17510       CFLAGS="$tmp_CFLAGS"
17511     else
17512       CPPFLAGS="$tmp_CPPFLAGS"
17513       CFLAGS="$tmp_CFLAGS $tmp_options"
17514     fi
17515     squeeze CPPFLAGS
17516     squeeze CFLAGS
17517
17518     tmp_compiler_works="unknown"
17519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17520 /* end confdefs.h.  */
17521
17522
17523
17524 int main (void)
17525 {
17526
17527       int i = 1;
17528       return i;
17529
17530  ;
17531  return 0;
17532 }
17533
17534 _ACEOF
17535 if ac_fn_c_try_compile "$LINENO"; then :
17536
17537     tmp_compiler_works="yes"
17538
17539 else
17540
17541     tmp_compiler_works="no"
17542     echo " " >&6
17543     sed 's/^/cc-fail: /' conftest.err >&6
17544     echo " " >&6
17545
17546 fi
17547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17548     if test "$tmp_compiler_works" = "yes"; then
17549     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17550 /* end confdefs.h.  */
17551
17552
17553
17554 int main (void)
17555 {
17556
17557         int i = 1;
17558         return i;
17559
17560  ;
17561  return 0;
17562 }
17563
17564 _ACEOF
17565 if ac_fn_c_try_link "$LINENO"; then :
17566
17567       tmp_compiler_works="yes"
17568
17569 else
17570
17571       tmp_compiler_works="no"
17572       echo " " >&6
17573       sed 's/^/link-fail: /' conftest.err >&6
17574       echo " " >&6
17575
17576 fi
17577 rm -f core conftest.err conftest.$ac_objext \
17578     conftest$ac_exeext conftest.$ac_ext
17579   fi
17580     if test "x$cross_compiling" != "xyes" &&
17581     test "$tmp_compiler_works" = "yes"; then
17582     if test "$cross_compiling" = yes; then :
17583   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17585 as_fn_error $? "cannot run test program while cross compiling
17586 See \`config.log' for more details" "$LINENO" 5; }
17587 else
17588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17589 /* end confdefs.h.  */
17590
17591
17592 #       ifdef __STDC__
17593 #         include <stdlib.h>
17594 #       endif
17595
17596 int main (void)
17597 {
17598
17599         int i = 0;
17600         exit(i);
17601
17602  ;
17603  return 0;
17604 }
17605
17606 _ACEOF
17607 if ac_fn_c_try_run "$LINENO"; then :
17608
17609       tmp_compiler_works="yes"
17610
17611 else
17612
17613       tmp_compiler_works="no"
17614       echo " " >&6
17615       echo "run-fail: test program exited with status $ac_status" >&6
17616       echo " " >&6
17617
17618 fi
17619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17620   conftest.$ac_objext conftest.beam conftest.$ac_ext
17621 fi
17622
17623   fi
17624     if test "$tmp_compiler_works" = "yes"; then
17625
17626       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17627 $as_echo "yes" >&6; }
17628       { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17629 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17630
17631   else
17632
17633       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17634 $as_echo "no" >&6; }
17635       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17636 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17637             CPPFLAGS="$tmp_save_CPPFLAGS"
17638       CFLAGS="$tmp_save_CFLAGS"
17639
17640   fi
17641
17642     #
17643   fi
17644
17645
17646         #
17647   if test "$compiler_id" != "unknown"; then
17648     #
17649     tmp_save_CFLAGS="$CFLAGS"
17650     tmp_save_CPPFLAGS="$CPPFLAGS"
17651     #
17652     tmp_options=""
17653     tmp_CFLAGS="$CFLAGS"
17654     tmp_CPPFLAGS="$CPPFLAGS"
17655     honor_optimize_option="yes"
17656     #
17657                         #
17658     if test "$want_optimize" = "assume_no" ||
17659        test "$want_optimize" = "assume_yes"; then
17660       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17661 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17662
17663
17664   ac_var_match_word="no"
17665   for word1 in $tmp_CFLAGS; do
17666     for word2 in $flags_opt_all; do
17667       if test "$word1" = "$word2"; then
17668         ac_var_match_word="yes"
17669       fi
17670     done
17671   done
17672
17673   if test "$ac_var_match_word" = "yes"; then
17674
17675         honor_optimize_option="no"
17676
17677
17678   fi
17679
17680
17681
17682   ac_var_match_word="no"
17683   for word1 in $tmp_CPPFLAGS; do
17684     for word2 in $flags_opt_all; do
17685       if test "$word1" = "$word2"; then
17686         ac_var_match_word="yes"
17687       fi
17688     done
17689   done
17690
17691   if test "$ac_var_match_word" = "yes"; then
17692
17693         honor_optimize_option="no"
17694
17695
17696   fi
17697
17698       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17699 $as_echo "$honor_optimize_option" >&6; }
17700       if test "$honor_optimize_option" = "yes"; then
17701         if test "$want_optimize" = "assume_yes"; then
17702           want_optimize="yes"
17703         fi
17704         if test "$want_optimize" = "assume_no"; then
17705           want_optimize="no"
17706         fi
17707       fi
17708     fi
17709     #
17710     if test "$honor_optimize_option" = "yes"; then
17711
17712     ac_var_stripped=""
17713   for word1 in $tmp_CFLAGS; do
17714     ac_var_strip_word="no"
17715     for word2 in $flags_opt_all; do
17716       if test "$word1" = "$word2"; then
17717         ac_var_strip_word="yes"
17718       fi
17719     done
17720     if test "$ac_var_strip_word" = "no"; then
17721       ac_var_stripped="$ac_var_stripped $word1"
17722     fi
17723   done
17724     tmp_CFLAGS="$ac_var_stripped"
17725   squeeze tmp_CFLAGS
17726
17727
17728     ac_var_stripped=""
17729   for word1 in $tmp_CPPFLAGS; do
17730     ac_var_strip_word="no"
17731     for word2 in $flags_opt_all; do
17732       if test "$word1" = "$word2"; then
17733         ac_var_strip_word="yes"
17734       fi
17735     done
17736     if test "$ac_var_strip_word" = "no"; then
17737       ac_var_stripped="$ac_var_stripped $word1"
17738     fi
17739   done
17740     tmp_CPPFLAGS="$ac_var_stripped"
17741   squeeze tmp_CPPFLAGS
17742
17743       if test "$want_optimize" = "yes"; then
17744         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17745 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17746         tmp_options="$flags_opt_yes"
17747       fi
17748       if test "$want_optimize" = "no"; then
17749         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17750 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17751         tmp_options="$flags_opt_off"
17752       fi
17753       if test "$flags_prefer_cppflags" = "yes"; then
17754         CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17755         CFLAGS="$tmp_CFLAGS"
17756       else
17757         CPPFLAGS="$tmp_CPPFLAGS"
17758         CFLAGS="$tmp_CFLAGS $tmp_options"
17759       fi
17760       squeeze CPPFLAGS
17761       squeeze CFLAGS
17762
17763     tmp_compiler_works="unknown"
17764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17765 /* end confdefs.h.  */
17766
17767
17768
17769 int main (void)
17770 {
17771
17772       int i = 1;
17773       return i;
17774
17775  ;
17776  return 0;
17777 }
17778
17779 _ACEOF
17780 if ac_fn_c_try_compile "$LINENO"; then :
17781
17782     tmp_compiler_works="yes"
17783
17784 else
17785
17786     tmp_compiler_works="no"
17787     echo " " >&6
17788     sed 's/^/cc-fail: /' conftest.err >&6
17789     echo " " >&6
17790
17791 fi
17792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17793     if test "$tmp_compiler_works" = "yes"; then
17794     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17795 /* end confdefs.h.  */
17796
17797
17798
17799 int main (void)
17800 {
17801
17802         int i = 1;
17803         return i;
17804
17805  ;
17806  return 0;
17807 }
17808
17809 _ACEOF
17810 if ac_fn_c_try_link "$LINENO"; then :
17811
17812       tmp_compiler_works="yes"
17813
17814 else
17815
17816       tmp_compiler_works="no"
17817       echo " " >&6
17818       sed 's/^/link-fail: /' conftest.err >&6
17819       echo " " >&6
17820
17821 fi
17822 rm -f core conftest.err conftest.$ac_objext \
17823     conftest$ac_exeext conftest.$ac_ext
17824   fi
17825     if test "x$cross_compiling" != "xyes" &&
17826     test "$tmp_compiler_works" = "yes"; then
17827     if test "$cross_compiling" = yes; then :
17828   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17830 as_fn_error $? "cannot run test program while cross compiling
17831 See \`config.log' for more details" "$LINENO" 5; }
17832 else
17833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17834 /* end confdefs.h.  */
17835
17836
17837 #       ifdef __STDC__
17838 #         include <stdlib.h>
17839 #       endif
17840
17841 int main (void)
17842 {
17843
17844         int i = 0;
17845         exit(i);
17846
17847  ;
17848  return 0;
17849 }
17850
17851 _ACEOF
17852 if ac_fn_c_try_run "$LINENO"; then :
17853
17854       tmp_compiler_works="yes"
17855
17856 else
17857
17858       tmp_compiler_works="no"
17859       echo " " >&6
17860       echo "run-fail: test program exited with status $ac_status" >&6
17861       echo " " >&6
17862
17863 fi
17864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17865   conftest.$ac_objext conftest.beam conftest.$ac_ext
17866 fi
17867
17868   fi
17869     if test "$tmp_compiler_works" = "yes"; then
17870
17871         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17872 $as_echo "yes" >&6; }
17873         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17874 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17875
17876   else
17877
17878         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17879 $as_echo "no" >&6; }
17880         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17881 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17882                 CPPFLAGS="$tmp_save_CPPFLAGS"
17883         CFLAGS="$tmp_save_CFLAGS"
17884
17885   fi
17886
17887     fi
17888     #
17889   fi
17890
17891
17892         #
17893   if test "$compiler_id" != "unknown"; then
17894     #
17895     tmp_save_CPPFLAGS="$CPPFLAGS"
17896     tmp_save_CFLAGS="$CFLAGS"
17897     tmp_CPPFLAGS=""
17898     tmp_CFLAGS=""
17899     #
17900     case "$compiler_id" in
17901         #
17902       CLANG)
17903         #
17904         if test "$want_warnings" = "yes"; then
17905           tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17906           tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17907           tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17908           tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
17909           tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17910           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17911           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17912           tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17913           tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17914           tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17915           tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17916           tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17917           tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17918           tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17919           tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17920           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17921           tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
17922           #
17923                     if test "$compiler_num" -ge "101"; then
17924             tmp_CFLAGS="$tmp_CFLAGS -Wunused"
17925           fi
17926           #
17927                     if test "$compiler_num" -ge "208"; then
17928             tmp_CFLAGS="$tmp_CFLAGS -Wvla"
17929           fi
17930           #
17931                     if test "$compiler_num" -ge "209"; then
17932             tmp_CFLAGS="$tmp_CFLAGS -Wshift-sign-overflow"
17933           fi
17934           #
17935                     if test "$compiler_num" -ge "302"; then
17936             case $host_os in
17937             cygwin* | mingw*)
17938                                           ;;
17939             *)
17940               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-variable-declarations"
17941               ;;
17942             esac
17943           fi
17944           #
17945                     if test "$compiler_num" -ge "306"; then
17946             tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17947           fi
17948           #
17949                     if test "$compiler_num" -ge "309"; then
17950             tmp_CFLAGS="$tmp_CFLAGS -Wcomma"
17951             # avoid the varargs warning, fixed in 4.0
17952             # https://bugs.llvm.org/show_bug.cgi?id=29140
17953             if test "$compiler_num" -lt "400"; then
17954               tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
17955             fi
17956           fi
17957         fi
17958         ;;
17959         #
17960       DEC_C)
17961         #
17962         if test "$want_warnings" = "yes"; then
17963                     tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
17964         fi
17965         ;;
17966         #
17967       GNU_C)
17968         #
17969         if test "$want_warnings" = "yes"; then
17970           #
17971                               if test "x$cross_compiling" != "xyes" ||
17972             test "$compiler_num" -ge "300"; then
17973             tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17974           fi
17975           #
17976                     tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
17977           #
17978                     if test "$compiler_num" -ge "104"; then
17979             tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17980                         if test "x$cross_compiling" != "xyes" ||
17981               test "$compiler_num" -ge "300"; then
17982               tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
17983             fi
17984           fi
17985           #
17986                     if test "$compiler_num" -ge "207"; then
17987             tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17988                         if test "x$cross_compiling" != "xyes" ||
17989               test "$compiler_num" -ge "300"; then
17990               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17991               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17992             fi
17993           fi
17994           #
17995                     if test "$compiler_num" -ge "295"; then
17996             tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17997           fi
17998           #
17999                     if test "$compiler_num" -ge "296"; then
18000             tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
18001             tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
18002                                                 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
18003           fi
18004           #
18005                     if test "$compiler_num" -ge "297"; then
18006             tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
18007           fi
18008           #
18009                     if test "$compiler_num" -ge "300"; then
18010                                                             tmp_CFLAGS="$tmp_CFLAGS"
18011           fi
18012           #
18013                     if test "$compiler_num" -ge "303"; then
18014             tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
18015           fi
18016           #
18017                     if test "$compiler_num" -ge "304"; then
18018             tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
18019           fi
18020           #
18021                     if test "$compiler_num" -ge "400"; then
18022             tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
18023           fi
18024           #
18025                     if test "$compiler_num" -ge "402"; then
18026             tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
18027           fi
18028           #
18029                     if test "$compiler_num" -ge "403"; then
18030             tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
18031             tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
18032             tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
18033             tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
18034           fi
18035           #
18036                     if test "$compiler_num" -ge "405"; then
18037                         if test "$curl_cv_have_def__WIN32" = "yes"; then
18038               tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
18039             fi
18040           fi
18041           #
18042                     if test "$compiler_num" -ge "406"; then
18043             tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
18044           fi
18045           #
18046         fi
18047         #
18048                 if test "$compiler_num" -ge "300"; then
18049           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
18050         else
18051                               if test "x$cross_compiling" = "xyes"; then
18052             if test "$compiler_num" -ge "104"; then
18053                             tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
18054             fi
18055             if test "$compiler_num" -ge "207"; then
18056                             tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
18057               tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
18058             fi
18059           fi
18060         fi
18061         ;;
18062         #
18063       HP_UX_C)
18064         #
18065         if test "$want_warnings" = "yes"; then
18066                     tmp_CFLAGS="$tmp_CFLAGS +w1"
18067         fi
18068         ;;
18069         #
18070       IBM_C)
18071         #
18072                 tmp_CFLAGS="$tmp_CFLAGS"
18073         ;;
18074         #
18075       INTEL_UNIX_C)
18076         #
18077         if test "$want_warnings" = "yes"; then
18078           if test "$compiler_num" -gt "600"; then
18079                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
18080                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
18081                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
18082                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
18083                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
18084                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
18085                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
18086                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
18087                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
18088                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
18089                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
18090           fi
18091         fi
18092                 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
18093                 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
18094                 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
18095                 if test "$compiler_num" -ge "1000"; then
18096                     tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
18097         fi
18098         ;;
18099         #
18100       INTEL_WINDOWS_C)
18101         #
18102                 tmp_CFLAGS="$tmp_CFLAGS"
18103         ;;
18104         #
18105       LCC)
18106         #
18107         if test "$want_warnings" = "yes"; then
18108                                                   tmp_CFLAGS="$tmp_CFLAGS"
18109         fi
18110         ;;
18111         #
18112       SGI_MIPS_C)
18113         #
18114         if test "$want_warnings" = "yes"; then
18115                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18116         fi
18117         ;;
18118         #
18119       SGI_MIPSPRO_C)
18120         #
18121         if test "$want_warnings" = "yes"; then
18122                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18123                               tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
18124         fi
18125         ;;
18126         #
18127       SUNPRO_C)
18128         #
18129         if test "$want_warnings" = "yes"; then
18130                     tmp_CFLAGS="$tmp_CFLAGS -v"
18131         fi
18132         ;;
18133         #
18134       TINY_C)
18135         #
18136         if test "$want_warnings" = "yes"; then
18137                     tmp_CFLAGS="$tmp_CFLAGS -Wall"
18138                     tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
18139                     tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
18140         fi
18141         ;;
18142         #
18143       WATCOM_UNIX_C)
18144         #
18145         if test "$want_warnings" = "yes"; then
18146                     tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
18147         fi
18148         ;;
18149         #
18150       WATCOM_WINDOWS_C)
18151         #
18152                 tmp_CFLAGS="$tmp_CFLAGS"
18153         ;;
18154         #
18155     esac
18156     #
18157     squeeze tmp_CPPFLAGS
18158     squeeze tmp_CFLAGS
18159     #
18160     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18161       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
18162 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
18163       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18164       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18165       squeeze CPPFLAGS
18166       squeeze CFLAGS
18167
18168     tmp_compiler_works="unknown"
18169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18170 /* end confdefs.h.  */
18171
18172
18173
18174 int main (void)
18175 {
18176
18177       int i = 1;
18178       return i;
18179
18180  ;
18181  return 0;
18182 }
18183
18184 _ACEOF
18185 if ac_fn_c_try_compile "$LINENO"; then :
18186
18187     tmp_compiler_works="yes"
18188
18189 else
18190
18191     tmp_compiler_works="no"
18192     echo " " >&6
18193     sed 's/^/cc-fail: /' conftest.err >&6
18194     echo " " >&6
18195
18196 fi
18197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18198     if test "$tmp_compiler_works" = "yes"; then
18199     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18200 /* end confdefs.h.  */
18201
18202
18203
18204 int main (void)
18205 {
18206
18207         int i = 1;
18208         return i;
18209
18210  ;
18211  return 0;
18212 }
18213
18214 _ACEOF
18215 if ac_fn_c_try_link "$LINENO"; then :
18216
18217       tmp_compiler_works="yes"
18218
18219 else
18220
18221       tmp_compiler_works="no"
18222       echo " " >&6
18223       sed 's/^/link-fail: /' conftest.err >&6
18224       echo " " >&6
18225
18226 fi
18227 rm -f core conftest.err conftest.$ac_objext \
18228     conftest$ac_exeext conftest.$ac_ext
18229   fi
18230     if test "x$cross_compiling" != "xyes" &&
18231     test "$tmp_compiler_works" = "yes"; then
18232     if test "$cross_compiling" = yes; then :
18233   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18235 as_fn_error $? "cannot run test program while cross compiling
18236 See \`config.log' for more details" "$LINENO" 5; }
18237 else
18238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18239 /* end confdefs.h.  */
18240
18241
18242 #       ifdef __STDC__
18243 #         include <stdlib.h>
18244 #       endif
18245
18246 int main (void)
18247 {
18248
18249         int i = 0;
18250         exit(i);
18251
18252  ;
18253  return 0;
18254 }
18255
18256 _ACEOF
18257 if ac_fn_c_try_run "$LINENO"; then :
18258
18259       tmp_compiler_works="yes"
18260
18261 else
18262
18263       tmp_compiler_works="no"
18264       echo " " >&6
18265       echo "run-fail: test program exited with status $ac_status" >&6
18266       echo " " >&6
18267
18268 fi
18269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18270   conftest.$ac_objext conftest.beam conftest.$ac_ext
18271 fi
18272
18273   fi
18274     if test "$tmp_compiler_works" = "yes"; then
18275
18276         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18277 $as_echo "yes" >&6; }
18278         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18279 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18280
18281   else
18282
18283         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18284 $as_echo "no" >&6; }
18285         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18286 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18287                 CPPFLAGS="$tmp_save_CPPFLAGS"
18288         CFLAGS="$tmp_save_CFLAGS"
18289
18290   fi
18291
18292     fi
18293     #
18294   fi
18295
18296
18297 if test "$compiler_id" = "INTEL_UNIX_C"; then
18298   #
18299   if test "$compiler_num" -ge "1000"; then
18300         CFLAGS="$CFLAGS -shared-intel"
18301   elif test "$compiler_num" -ge "900"; then
18302         CFLAGS="$CFLAGS -i-dynamic"
18303   fi
18304   #
18305 fi
18306
18307
18308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
18309 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
18310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18311 /* end confdefs.h.  */
18312
18313
18314
18315 int main (void)
18316 {
18317
18318       force compilation error
18319
18320  ;
18321  return 0;
18322 }
18323
18324 _ACEOF
18325 if ac_fn_c_try_compile "$LINENO"; then :
18326
18327     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18328 $as_echo "no" >&6; }
18329     as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
18330
18331 else
18332
18333     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18334 $as_echo "yes" >&6; }
18335
18336 fi
18337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18338
18339
18340     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
18341 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
18342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18343 /* end confdefs.h.  */
18344
18345
18346       typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
18347
18348 int main (void)
18349 {
18350
18351       bad_t dummy;
18352
18353  ;
18354  return 0;
18355 }
18356
18357 _ACEOF
18358 if ac_fn_c_try_compile "$LINENO"; then :
18359
18360     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18361 $as_echo "no" >&6; }
18362     as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
18363
18364 else
18365
18366     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18367 $as_echo "yes" >&6; }
18368
18369 fi
18370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18371
18372
18373     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
18374 $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
18375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18376 /* end confdefs.h.  */
18377
18378
18379 #     include <stdlib.h>
18380       int rand(int n);
18381       int rand(int n)
18382       {
18383         if(n)
18384           return ++n;
18385         else
18386           return n;
18387       }
18388
18389 int main (void)
18390 {
18391
18392       int i[2]={0,0};
18393       int j = rand(i[0]);
18394       if(j)
18395         return j;
18396
18397  ;
18398  return 0;
18399 }
18400
18401 _ACEOF
18402 if ac_fn_c_try_compile "$LINENO"; then :
18403
18404     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18405 $as_echo "no" >&6; }
18406     as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
18407
18408 else
18409
18410     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18411 $as_echo "yes" >&6; }
18412
18413 fi
18414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18415
18416
18417       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
18418 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
18419   supports_symbol_hiding="no"
18420   symbol_hiding_CFLAGS=""
18421   symbol_hiding_EXTERN=""
18422   tmp_CFLAGS=""
18423   tmp_EXTERN=""
18424   case "$compiler_id" in
18425     CLANG)
18426             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18427       tmp_CFLAGS="-fvisibility=hidden"
18428       supports_symbol_hiding="yes"
18429       ;;
18430     GNU_C)
18431             if test "$compiler_num" -ge "304"; then
18432         if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
18433           tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18434           tmp_CFLAGS="-fvisibility=hidden"
18435           supports_symbol_hiding="yes"
18436         fi
18437       fi
18438       ;;
18439     INTEL_UNIX_C)
18440             if test "$compiler_num" -ge "900"; then
18441         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
18442           tmp_save_CFLAGS="$CFLAGS"
18443           CFLAGS="$CFLAGS -fvisibility=hidden"
18444           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18445 /* end confdefs.h.  */
18446
18447
18448 #             include <stdio.h>
18449
18450 int main (void)
18451 {
18452
18453               printf("icc fvisibility bug test");
18454
18455  ;
18456  return 0;
18457 }
18458
18459 _ACEOF
18460 if ac_fn_c_try_link "$LINENO"; then :
18461
18462             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18463             tmp_CFLAGS="-fvisibility=hidden"
18464             supports_symbol_hiding="yes"
18465
18466 fi
18467 rm -f core conftest.err conftest.$ac_objext \
18468     conftest$ac_exeext conftest.$ac_ext
18469           CFLAGS="$tmp_save_CFLAGS"
18470         fi
18471       fi
18472       ;;
18473     SUNPRO_C)
18474       if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
18475         tmp_EXTERN="__global"
18476         tmp_CFLAGS="-xldscope=hidden"
18477         supports_symbol_hiding="yes"
18478       fi
18479       ;;
18480   esac
18481   if test "$supports_symbol_hiding" = "yes"; then
18482     tmp_save_CFLAGS="$CFLAGS"
18483     CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18484     squeeze CFLAGS
18485     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18486 /* end confdefs.h.  */
18487
18488
18489         $tmp_EXTERN char *dummy(char *buff);
18490         char *dummy(char *buff)
18491         {
18492          if(buff)
18493            return ++buff;
18494          else
18495            return buff;
18496         }
18497
18498 int main (void)
18499 {
18500
18501         char b[16];
18502         char *r = dummy(&b[0]);
18503         if(r)
18504           return (int)*r;
18505
18506  ;
18507  return 0;
18508 }
18509
18510 _ACEOF
18511 if ac_fn_c_try_compile "$LINENO"; then :
18512
18513       supports_symbol_hiding="yes"
18514       if test -f conftest.err; then
18515         grep 'visibility' conftest.err >/dev/null
18516         if test "$?" -eq "0"; then
18517           supports_symbol_hiding="no"
18518         fi
18519       fi
18520
18521 else
18522
18523       supports_symbol_hiding="no"
18524       echo " " >&6
18525       sed 's/^/cc-src: /' conftest.$ac_ext >&6
18526       sed 's/^/cc-err: /' conftest.err >&6
18527       echo " " >&6
18528
18529 fi
18530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18531     CFLAGS="$tmp_save_CFLAGS"
18532   fi
18533   if test "$supports_symbol_hiding" = "yes"; then
18534     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18535 $as_echo "yes" >&6; }
18536     symbol_hiding_CFLAGS="$tmp_CFLAGS"
18537     symbol_hiding_EXTERN="$tmp_EXTERN"
18538   else
18539     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18540 $as_echo "no" >&6; }
18541   fi
18542
18543
18544
18545       supports_curldebug="unknown"
18546   if test "$want_curldebug" = "yes"; then
18547     if test "x$enable_shared" != "xno" &&
18548       test "x$enable_shared" != "xyes"; then
18549       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
18550 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
18551       supports_curldebug="no"
18552     fi
18553     if test "x$enable_static" != "xno" &&
18554       test "x$enable_static" != "xyes"; then
18555       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
18556 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
18557       supports_curldebug="no"
18558     fi
18559     if test "$supports_curldebug" != "no"; then
18560       if test "$enable_shared" = "yes" &&
18561         test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
18562         supports_curldebug="no"
18563         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
18564 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
18565       fi
18566     fi
18567   fi
18568   #
18569   if test "$want_curldebug" = "yes"; then
18570     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
18571 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
18572     test "$supports_curldebug" = "no" || supports_curldebug="yes"
18573     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
18574 $as_echo "$supports_curldebug" >&6; }
18575     if test "$supports_curldebug" = "no"; then
18576       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18577 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18578       want_curldebug="no"
18579     fi
18580   fi
18581   #
18582   if test "$want_curldebug" = "yes"; then
18583     CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
18584     squeeze CPPFLAGS
18585   fi
18586   if test "$want_debug" = "yes"; then
18587     CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
18588     squeeze CPPFLAGS
18589   fi
18590
18591  if test x$want_curldebug = xyes; then
18592   CURLDEBUG_TRUE=
18593   CURLDEBUG_FALSE='#'
18594 else
18595   CURLDEBUG_TRUE='#'
18596   CURLDEBUG_FALSE=
18597 fi
18598
18599
18600 supports_unittests=yes
18601 # cross-compilation of unit tests static library/programs fails when
18602 # libcurl shared library is built. This might be due to a libtool or
18603 # automake issue. In this case we disable unit tests.
18604 if test "x$cross_compiling" != "xno" &&
18605    test "x$enable_shared" != "xno"; then
18606   supports_unittests=no
18607 fi
18608
18609 # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18610 # a problem related with OpenSSL headers and library versions not matching.
18611 # Disable unit tests while time to further investigate this is found.
18612 case $host in
18613   mips-sgi-irix6.5)
18614     if test "$compiler_id" = "GNU_C"; then
18615       supports_unittests=no
18616     fi
18617     ;;
18618 esac
18619
18620 # All AIX autobuilds fails unit tests linking against unittests library
18621 # due to unittests library being built with no symbols or members. Libtool ?
18622 # Disable unit tests while time to further investigate this is found.
18623 case $host_os in
18624   aix*)
18625     supports_unittests=no
18626     ;;
18627 esac
18628
18629 if test "x$want_debug" = "xyes" &&
18630    test "x$supports_unittests" = "xyes"; then
18631   want_unittests=yes
18632 else
18633   want_unittests=no
18634 fi
18635  if test x$want_unittests = xyes; then
18636   BUILD_UNITTESTS_TRUE=
18637   BUILD_UNITTESTS_FALSE='#'
18638 else
18639   BUILD_UNITTESTS_TRUE='#'
18640   BUILD_UNITTESTS_FALSE=
18641 fi
18642
18643
18644
18645
18646
18647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18648 $as_echo_n "checking for windows.h... " >&6; }
18649 if ${curl_cv_header_windows_h+:} false; then :
18650   $as_echo_n "(cached) " >&6
18651 else
18652
18653     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18654 /* end confdefs.h.  */
18655
18656
18657 #undef inline
18658 #ifndef WIN32_LEAN_AND_MEAN
18659 #define WIN32_LEAN_AND_MEAN
18660 #endif
18661 #include <windows.h>
18662
18663 int main (void)
18664 {
18665
18666 #if defined(__CYGWIN__) || defined(__CEGCC__)
18667         HAVE_WINDOWS_H shall not be defined.
18668 #else
18669         int dummy=2*WINVER;
18670 #endif
18671
18672  ;
18673  return 0;
18674 }
18675
18676 _ACEOF
18677 if ac_fn_c_try_compile "$LINENO"; then :
18678
18679       curl_cv_header_windows_h="yes"
18680
18681 else
18682
18683       curl_cv_header_windows_h="no"
18684
18685 fi
18686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18687
18688 fi
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
18690 $as_echo "$curl_cv_header_windows_h" >&6; }
18691   case "$curl_cv_header_windows_h" in
18692     yes)
18693
18694 cat >>confdefs.h <<_ACEOF
18695 #define HAVE_WINDOWS_H 1
18696 _ACEOF
18697
18698       ;;
18699   esac
18700
18701
18702     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18703 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
18704 if ${curl_cv_native_windows+:} false; then :
18705   $as_echo_n "(cached) " >&6
18706 else
18707
18708     if test "$curl_cv_header_windows_h" = "no"; then
18709       curl_cv_native_windows="no"
18710     else
18711       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18712 /* end confdefs.h.  */
18713
18714
18715
18716 int main (void)
18717 {
18718
18719 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18720    (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18721           int dummy=1;
18722 #else
18723           Not a native Windows build target.
18724 #endif
18725
18726  ;
18727  return 0;
18728 }
18729
18730 _ACEOF
18731 if ac_fn_c_try_compile "$LINENO"; then :
18732
18733         curl_cv_native_windows="yes"
18734
18735 else
18736
18737         curl_cv_native_windows="no"
18738
18739 fi
18740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18741     fi
18742
18743 fi
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
18745 $as_echo "$curl_cv_native_windows" >&6; }
18746    if test "x$curl_cv_native_windows" = xyes; then
18747   DOING_NATIVE_WINDOWS_TRUE=
18748   DOING_NATIVE_WINDOWS_FALSE='#'
18749 else
18750   DOING_NATIVE_WINDOWS_TRUE='#'
18751   DOING_NATIVE_WINDOWS_FALSE=
18752 fi
18753
18754
18755 case X-"$curl_cv_native_windows" in
18756   X-yes)
18757
18758     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18759 $as_echo_n "checking for winsock.h... " >&6; }
18760 if ${curl_cv_header_winsock_h+:} false; then :
18761   $as_echo_n "(cached) " >&6
18762 else
18763
18764     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18765 /* end confdefs.h.  */
18766
18767
18768 #undef inline
18769 #ifndef WIN32_LEAN_AND_MEAN
18770 #define WIN32_LEAN_AND_MEAN
18771 #endif
18772 #include <windows.h>
18773 #include <winsock.h>
18774
18775 int main (void)
18776 {
18777
18778 #if defined(__CYGWIN__) || defined(__CEGCC__)
18779         HAVE_WINSOCK_H shall not be defined.
18780 #else
18781         int dummy=WSACleanup();
18782 #endif
18783
18784  ;
18785  return 0;
18786 }
18787
18788 _ACEOF
18789 if ac_fn_c_try_compile "$LINENO"; then :
18790
18791       curl_cv_header_winsock_h="yes"
18792
18793 else
18794
18795       curl_cv_header_winsock_h="no"
18796
18797 fi
18798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18799
18800 fi
18801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
18802 $as_echo "$curl_cv_header_winsock_h" >&6; }
18803   case "$curl_cv_header_winsock_h" in
18804     yes)
18805
18806 cat >>confdefs.h <<_ACEOF
18807 #define HAVE_WINSOCK_H 1
18808 _ACEOF
18809
18810       ;;
18811   esac
18812
18813
18814     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18815 $as_echo_n "checking for winsock2.h... " >&6; }
18816 if ${curl_cv_header_winsock2_h+:} false; then :
18817   $as_echo_n "(cached) " >&6
18818 else
18819
18820     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18821 /* end confdefs.h.  */
18822
18823
18824 #undef inline
18825 #ifndef WIN32_LEAN_AND_MEAN
18826 #define WIN32_LEAN_AND_MEAN
18827 #endif
18828 #include <windows.h>
18829 #include <winsock2.h>
18830
18831 int main (void)
18832 {
18833
18834 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18835         HAVE_WINSOCK2_H shall not be defined.
18836 #else
18837         int dummy=2*IPPROTO_ESP;
18838 #endif
18839
18840  ;
18841  return 0;
18842 }
18843
18844 _ACEOF
18845 if ac_fn_c_try_compile "$LINENO"; then :
18846
18847       curl_cv_header_winsock2_h="yes"
18848
18849 else
18850
18851       curl_cv_header_winsock2_h="no"
18852
18853 fi
18854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18855
18856 fi
18857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
18858 $as_echo "$curl_cv_header_winsock2_h" >&6; }
18859   case "$curl_cv_header_winsock2_h" in
18860     yes)
18861
18862 cat >>confdefs.h <<_ACEOF
18863 #define HAVE_WINSOCK2_H 1
18864 _ACEOF
18865
18866       ;;
18867   esac
18868
18869
18870     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18871 $as_echo_n "checking for ws2tcpip.h... " >&6; }
18872 if ${curl_cv_header_ws2tcpip_h+:} false; then :
18873   $as_echo_n "(cached) " >&6
18874 else
18875
18876     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18877 /* end confdefs.h.  */
18878
18879
18880 #undef inline
18881 #ifndef WIN32_LEAN_AND_MEAN
18882 #define WIN32_LEAN_AND_MEAN
18883 #endif
18884 #include <windows.h>
18885 #include <winsock2.h>
18886 #include <ws2tcpip.h>
18887
18888 int main (void)
18889 {
18890
18891 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18892         HAVE_WS2TCPIP_H shall not be defined.
18893 #else
18894         int dummy=2*IP_PKTINFO;
18895 #endif
18896
18897  ;
18898  return 0;
18899 }
18900
18901 _ACEOF
18902 if ac_fn_c_try_compile "$LINENO"; then :
18903
18904       curl_cv_header_ws2tcpip_h="yes"
18905
18906 else
18907
18908       curl_cv_header_ws2tcpip_h="no"
18909
18910 fi
18911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18912
18913 fi
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
18915 $as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
18916   case "$curl_cv_header_ws2tcpip_h" in
18917     yes)
18918
18919 cat >>confdefs.h <<_ACEOF
18920 #define HAVE_WS2TCPIP_H 1
18921 _ACEOF
18922
18923       ;;
18924   esac
18925
18926
18927     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18928 $as_echo_n "checking for winldap.h... " >&6; }
18929 if ${curl_cv_header_winldap_h+:} false; then :
18930   $as_echo_n "(cached) " >&6
18931 else
18932
18933     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18934 /* end confdefs.h.  */
18935
18936
18937 #undef inline
18938 #ifdef HAVE_WINDOWS_H
18939 #ifndef WIN32_LEAN_AND_MEAN
18940 #define WIN32_LEAN_AND_MEAN
18941 #endif
18942 #include <windows.h>
18943 #endif
18944 #include <winldap.h>
18945
18946 int main (void)
18947 {
18948
18949 #if defined(__CYGWIN__) || defined(__CEGCC__)
18950         HAVE_WINLDAP_H shall not be defined.
18951 #else
18952         LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18953         ULONG res = ldap_unbind(ldp);
18954 #endif
18955
18956  ;
18957  return 0;
18958 }
18959
18960 _ACEOF
18961 if ac_fn_c_try_compile "$LINENO"; then :
18962
18963       curl_cv_header_winldap_h="yes"
18964
18965 else
18966
18967       curl_cv_header_winldap_h="no"
18968
18969 fi
18970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18971
18972 fi
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
18974 $as_echo "$curl_cv_header_winldap_h" >&6; }
18975   case "$curl_cv_header_winldap_h" in
18976     yes)
18977
18978 cat >>confdefs.h <<_ACEOF
18979 #define HAVE_WINLDAP_H 1
18980 _ACEOF
18981
18982       ;;
18983   esac
18984
18985
18986     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
18987 $as_echo_n "checking for winber.h... " >&6; }
18988 if ${curl_cv_header_winber_h+:} false; then :
18989   $as_echo_n "(cached) " >&6
18990 else
18991
18992     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18993 /* end confdefs.h.  */
18994
18995
18996 #undef inline
18997 #ifdef HAVE_WINDOWS_H
18998 #ifndef WIN32_LEAN_AND_MEAN
18999 #define WIN32_LEAN_AND_MEAN
19000 #endif
19001 #include <windows.h>
19002 #endif
19003 #include <winldap.h>
19004 #include <winber.h>
19005
19006 int main (void)
19007 {
19008
19009 #if defined(__CYGWIN__) || defined(__CEGCC__)
19010         HAVE_WINBER_H shall not be defined.
19011 #else
19012         BERVAL *bvp = NULL;
19013         BerElement *bep = ber_init(bvp);
19014         ber_free(bep, 1);
19015 #endif
19016
19017  ;
19018  return 0;
19019 }
19020
19021 _ACEOF
19022 if ac_fn_c_try_compile "$LINENO"; then :
19023
19024       curl_cv_header_winber_h="yes"
19025
19026 else
19027
19028       curl_cv_header_winber_h="no"
19029
19030 fi
19031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19032
19033 fi
19034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
19035 $as_echo "$curl_cv_header_winber_h" >&6; }
19036   case "$curl_cv_header_winber_h" in
19037     yes)
19038
19039 cat >>confdefs.h <<_ACEOF
19040 #define HAVE_WINBER_H 1
19041 _ACEOF
19042
19043       ;;
19044   esac
19045
19046     ;;
19047   *)
19048     curl_cv_header_winsock_h="no"
19049     curl_cv_header_winsock2_h="no"
19050     curl_cv_header_ws2tcpip_h="no"
19051     curl_cv_header_winldap_h="no"
19052     curl_cv_header_winber_h="no"
19053     ;;
19054 esac
19055
19056     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
19057 $as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
19058   curl_win32_file_api="no"
19059   if test "$curl_cv_header_windows_h" = "yes"; then
19060     if test x"$enable_largefile" != "xno"; then
19061       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19062 /* end confdefs.h.  */
19063
19064
19065
19066 int main (void)
19067 {
19068
19069 #if !defined(_WIN32_WCE) && \
19070     (defined(__MINGW32__) || \
19071     (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
19072           int dummy=1;
19073 #else
19074           WIN32 large file API not supported.
19075 #endif
19076
19077  ;
19078  return 0;
19079 }
19080
19081 _ACEOF
19082 if ac_fn_c_try_compile "$LINENO"; then :
19083
19084         curl_win32_file_api="win32_large_files"
19085
19086 fi
19087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19088     fi
19089     if test "$curl_win32_file_api" = "no"; then
19090       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19091 /* end confdefs.h.  */
19092
19093
19094
19095 int main (void)
19096 {
19097
19098 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
19099           int dummy=1;
19100 #else
19101           WIN32 small file API not supported.
19102 #endif
19103
19104  ;
19105  return 0;
19106 }
19107
19108 _ACEOF
19109 if ac_fn_c_try_compile "$LINENO"; then :
19110
19111         curl_win32_file_api="win32_small_files"
19112
19113 fi
19114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19115     fi
19116   fi
19117   case "$curl_win32_file_api" in
19118     win32_large_files)
19119       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
19120 $as_echo "yes (large file enabled)" >&6; }
19121
19122 cat >>confdefs.h <<_ACEOF
19123 #define USE_WIN32_LARGE_FILES 1
19124 _ACEOF
19125
19126       ;;
19127     win32_small_files)
19128       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
19129 $as_echo "yes (large file disabled)" >&6; }
19130
19131 cat >>confdefs.h <<_ACEOF
19132 #define USE_WIN32_SMALL_FILES 1
19133 _ACEOF
19134
19135       ;;
19136     *)
19137       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19138 $as_echo "no" >&6; }
19139       ;;
19140   esac
19141
19142
19143
19144
19145   tst_cflags="no"
19146   case $host_os in
19147     darwin*)
19148       tst_cflags="yes"
19149       ;;
19150   esac
19151
19152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good-to-use Mac CFLAGS" >&5
19153 $as_echo_n "checking for good-to-use Mac CFLAGS... " >&6; }
19154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
19155 $as_echo "$tst_cflags" >&6; };
19156
19157   if test "$tst_cflags" = "yes"; then
19158     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *version-min in CFLAGS" >&5
19159 $as_echo_n "checking for *version-min in CFLAGS... " >&6; }
19160     min=""
19161     if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then
19162       min="-mmacosx-version-min=10.8"
19163       CFLAGS="$CFLAGS $min"
19164     fi
19165     if test -z "$min"; then
19166       { $as_echo "$as_me:${as_lineno-$LINENO}: result: set by user" >&5
19167 $as_echo "set by user" >&6; }
19168     else
19169       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $min set" >&5
19170 $as_echo "$min set" >&6; }
19171     fi
19172
19173     old_CFLAGS=$CFLAGS
19174     CFLAGS="$CFLAGS -Werror=partial-availability"
19175     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
19176 $as_echo_n "checking whether $CC accepts -Werror=partial-availability... " >&6; }
19177     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19178 /* end confdefs.h.  */
19179
19180 int main (void)
19181 {
19182
19183  ;
19184  return 0;
19185 }
19186 _ACEOF
19187 if ac_fn_c_try_compile "$LINENO"; then :
19188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19189 $as_echo "yes" >&6; }
19190 else
19191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19192 $as_echo "no" >&6; }
19193       CFLAGS=$old_CFLAGS
19194 fi
19195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19196   fi
19197
19198
19199
19200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
19201 $as_echo_n "checking to see if the compiler supports __builtin_available()... " >&6; }
19202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19203 /* end confdefs.h.  */
19204
19205
19206 #include <stdlib.h>
19207
19208 int main (void)
19209 {
19210
19211       if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
19212
19213  ;
19214  return 0;
19215 }
19216
19217 _ACEOF
19218 if ac_fn_c_try_compile "$LINENO"; then :
19219
19220     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19221 $as_echo "yes" >&6; }
19222
19223 cat >>confdefs.h <<_ACEOF
19224 #define HAVE_BUILTIN_AVAILABLE 1
19225 _ACEOF
19226
19227
19228 else
19229
19230     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19231 $as_echo "no" >&6; }
19232
19233 fi
19234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19235
19236
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
19238 $as_echo_n "checking whether to support http... " >&6; }
19239 # Check whether --enable-http was given.
19240 if test "${enable_http+set}" = set; then :
19241   enableval=$enable_http;  case "$enableval" in
19242   no)
19243        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19244 $as_echo "no" >&6; }
19245
19246 $as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
19247
19248        disable_http="yes"
19249        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
19250 $as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
19251        CURL_DISABLE_HTTP=1
19252
19253
19254 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19255
19256        CURL_DISABLE_RTSP=1
19257
19258        ;;
19259   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19260 $as_echo "yes" >&6; }
19261        ;;
19262   esac
19263 else
19264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19265 $as_echo "yes" >&6; }
19266
19267 fi
19268
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
19270 $as_echo_n "checking whether to support ftp... " >&6; }
19271 # Check whether --enable-ftp was given.
19272 if test "${enable_ftp+set}" = set; then :
19273   enableval=$enable_ftp;  case "$enableval" in
19274   no)
19275        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19276 $as_echo "no" >&6; }
19277
19278 $as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
19279
19280        CURL_DISABLE_FTP=1
19281
19282        ;;
19283   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19284 $as_echo "yes" >&6; }
19285        ;;
19286   esac
19287 else
19288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19289 $as_echo "yes" >&6; }
19290
19291 fi
19292
19293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
19294 $as_echo_n "checking whether to support file... " >&6; }
19295 # Check whether --enable-file was given.
19296 if test "${enable_file+set}" = set; then :
19297   enableval=$enable_file;  case "$enableval" in
19298   no)
19299        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19300 $as_echo "no" >&6; }
19301
19302 $as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
19303
19304        CURL_DISABLE_FILE=1
19305
19306        ;;
19307   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19308 $as_echo "yes" >&6; }
19309        ;;
19310   esac
19311 else
19312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19313 $as_echo "yes" >&6; }
19314
19315 fi
19316
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
19318 $as_echo_n "checking whether to support ldap... " >&6; }
19319 # Check whether --enable-ldap was given.
19320 if test "${enable_ldap+set}" = set; then :
19321   enableval=$enable_ldap;  case "$enableval" in
19322   no)
19323        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19324 $as_echo "no" >&6; }
19325
19326 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
19327
19328        CURL_DISABLE_LDAP=1
19329
19330        ;;
19331   *)
19332        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19333 $as_echo "yes" >&6; }
19334        ;;
19335   esac
19336 else
19337
19338        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19339 $as_echo "yes" >&6; }
19340
19341 fi
19342
19343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
19344 $as_echo_n "checking whether to support ldaps... " >&6; }
19345 # Check whether --enable-ldaps was given.
19346 if test "${enable_ldaps+set}" = set; then :
19347   enableval=$enable_ldaps;  case "$enableval" in
19348   no)
19349        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19350 $as_echo "no" >&6; }
19351
19352 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19353
19354        CURL_DISABLE_LDAPS=1
19355
19356        ;;
19357   *)   if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19358          { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
19359 $as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
19360
19361 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19362
19363          CURL_DISABLE_LDAPS=1
19364
19365        else
19366          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19367 $as_echo "yes" >&6; }
19368
19369 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19370
19371          HAVE_LDAP_SSL=1
19372
19373        fi
19374        ;;
19375   esac
19376 else
19377
19378        if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19379          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19380 $as_echo "no" >&6; }
19381
19382 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19383
19384          CURL_DISABLE_LDAPS=1
19385
19386        else
19387          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19388 $as_echo "yes" >&6; }
19389
19390 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19391
19392          HAVE_LDAP_SSL=1
19393
19394        fi
19395
19396 fi
19397
19398
19399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
19400 $as_echo_n "checking whether to support rtsp... " >&6; }
19401 # Check whether --enable-rtsp was given.
19402 if test "${enable_rtsp+set}" = set; then :
19403   enableval=$enable_rtsp;  case "$enableval" in
19404   no)
19405        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19406 $as_echo "no" >&6; }
19407
19408 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19409
19410        CURL_DISABLE_RTSP=1
19411
19412        ;;
19413   *)   if test x$CURL_DISABLE_HTTP = x1 ; then
19414           as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
19415        else
19416           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19417 $as_echo "yes" >&6; }
19418           curl_rtsp_msg="enabled"
19419        fi
19420        ;;
19421   esac
19422 else
19423   if test "x$CURL_DISABLE_HTTP" != "x1"; then
19424           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19425 $as_echo "yes" >&6; }
19426           curl_rtsp_msg="enabled"
19427        else
19428           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19429 $as_echo "no" >&6; }
19430        fi
19431
19432 fi
19433
19434
19435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
19436 $as_echo_n "checking whether to support proxies... " >&6; }
19437 # Check whether --enable-proxy was given.
19438 if test "${enable_proxy+set}" = set; then :
19439   enableval=$enable_proxy;  case "$enableval" in
19440   no)
19441        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19442 $as_echo "no" >&6; }
19443
19444 $as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
19445
19446        CURL_DISABLE_PROXY=1
19447
19448        ;;
19449   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19450 $as_echo "yes" >&6; }
19451        ;;
19452   esac
19453 else
19454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19455 $as_echo "yes" >&6; }
19456
19457 fi
19458
19459
19460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
19461 $as_echo_n "checking whether to support dict... " >&6; }
19462 # Check whether --enable-dict was given.
19463 if test "${enable_dict+set}" = set; then :
19464   enableval=$enable_dict;  case "$enableval" in
19465   no)
19466        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19467 $as_echo "no" >&6; }
19468
19469 $as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
19470
19471        CURL_DISABLE_DICT=1
19472
19473        ;;
19474   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19475 $as_echo "yes" >&6; }
19476        ;;
19477   esac
19478 else
19479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19480 $as_echo "yes" >&6; }
19481
19482 fi
19483
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
19485 $as_echo_n "checking whether to support telnet... " >&6; }
19486 # Check whether --enable-telnet was given.
19487 if test "${enable_telnet+set}" = set; then :
19488   enableval=$enable_telnet;  case "$enableval" in
19489   no)
19490        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19491 $as_echo "no" >&6; }
19492
19493 $as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
19494
19495        CURL_DISABLE_TELNET=1
19496
19497        ;;
19498   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19499 $as_echo "yes" >&6; }
19500        ;;
19501   esac
19502 else
19503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19504 $as_echo "yes" >&6; }
19505
19506 fi
19507
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
19509 $as_echo_n "checking whether to support tftp... " >&6; }
19510 # Check whether --enable-tftp was given.
19511 if test "${enable_tftp+set}" = set; then :
19512   enableval=$enable_tftp;  case "$enableval" in
19513   no)
19514        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19515 $as_echo "no" >&6; }
19516
19517 $as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
19518
19519        CURL_DISABLE_TFTP=1
19520
19521        ;;
19522   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19523 $as_echo "yes" >&6; }
19524        ;;
19525   esac
19526 else
19527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19528 $as_echo "yes" >&6; }
19529
19530 fi
19531
19532
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
19534 $as_echo_n "checking whether to support pop3... " >&6; }
19535 # Check whether --enable-pop3 was given.
19536 if test "${enable_pop3+set}" = set; then :
19537   enableval=$enable_pop3;  case "$enableval" in
19538   no)
19539        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19540 $as_echo "no" >&6; }
19541
19542 $as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
19543
19544        CURL_DISABLE_POP3=1
19545
19546        ;;
19547   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19548 $as_echo "yes" >&6; }
19549        ;;
19550   esac
19551 else
19552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19553 $as_echo "yes" >&6; }
19554
19555 fi
19556
19557
19558
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
19560 $as_echo_n "checking whether to support imap... " >&6; }
19561 # Check whether --enable-imap was given.
19562 if test "${enable_imap+set}" = set; then :
19563   enableval=$enable_imap;  case "$enableval" in
19564   no)
19565        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19566 $as_echo "no" >&6; }
19567
19568 $as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
19569
19570        CURL_DISABLE_IMAP=1
19571
19572        ;;
19573   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19574 $as_echo "yes" >&6; }
19575        ;;
19576   esac
19577 else
19578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19579 $as_echo "yes" >&6; }
19580
19581 fi
19582
19583
19584
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
19586 $as_echo_n "checking whether to support smb... " >&6; }
19587 # Check whether --enable-smb was given.
19588 if test "${enable_smb+set}" = set; then :
19589   enableval=$enable_smb;  case "$enableval" in
19590   no)
19591        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19592 $as_echo "no" >&6; }
19593
19594 $as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
19595
19596        CURL_DISABLE_SMB=1
19597
19598        ;;
19599   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19600 $as_echo "yes" >&6; }
19601        ;;
19602   esac
19603 else
19604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19605 $as_echo "yes" >&6; }
19606
19607 fi
19608
19609
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
19611 $as_echo_n "checking whether to support smtp... " >&6; }
19612 # Check whether --enable-smtp was given.
19613 if test "${enable_smtp+set}" = set; then :
19614   enableval=$enable_smtp;  case "$enableval" in
19615   no)
19616        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19617 $as_echo "no" >&6; }
19618
19619 $as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
19620
19621        CURL_DISABLE_SMTP=1
19622
19623        ;;
19624   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19625 $as_echo "yes" >&6; }
19626        ;;
19627   esac
19628 else
19629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19630 $as_echo "yes" >&6; }
19631
19632 fi
19633
19634
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
19636 $as_echo_n "checking whether to support gopher... " >&6; }
19637 # Check whether --enable-gopher was given.
19638 if test "${enable_gopher+set}" = set; then :
19639   enableval=$enable_gopher;  case "$enableval" in
19640   no)
19641        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19642 $as_echo "no" >&6; }
19643
19644 $as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
19645
19646        CURL_DISABLE_GOPHER=1
19647
19648        ;;
19649   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19650 $as_echo "yes" >&6; }
19651        ;;
19652   esac
19653 else
19654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19655 $as_echo "yes" >&6; }
19656
19657 fi
19658
19659
19660
19661
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
19663 $as_echo_n "checking whether to provide built-in manual... " >&6; }
19664 # Check whether --enable-manual was given.
19665 if test "${enable_manual+set}" = set; then :
19666   enableval=$enable_manual;  case "$enableval" in
19667   no)
19668        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19669 $as_echo "no" >&6; }
19670        ;;
19671   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19672 $as_echo "yes" >&6; }
19673        USE_MANUAL="1"
19674        ;;
19675   esac
19676 else
19677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19678 $as_echo "yes" >&6; }
19679        USE_MANUAL="1"
19680
19681 fi
19682
19683
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
19685 $as_echo_n "checking whether to enable generation of C code... " >&6; }
19686 # Check whether --enable-libcurl_option was given.
19687 if test "${enable_libcurl_option+set}" = set; then :
19688   enableval=$enable_libcurl_option;  case "$enableval" in
19689   no)
19690        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19691 $as_echo "no" >&6; }
19692
19693 $as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19694
19695        curl_libcurl_msg="no"
19696        ;;
19697   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19698 $as_echo "yes" >&6; }
19699        ;;
19700   esac
19701 else
19702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19703 $as_echo "yes" >&6; }
19704
19705 fi
19706
19707
19708
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19710 $as_echo_n "checking whether to use libgcc... " >&6; }
19711 # Check whether --enable-libgcc was given.
19712 if test "${enable_libgcc+set}" = set; then :
19713   enableval=$enable_libgcc;  case "$enableval" in
19714   yes)
19715        LIBS="-lgcc $LIBS"
19716        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19717 $as_echo "yes" >&6; }
19718        ;;
19719   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19720 $as_echo "no" >&6; }
19721        ;;
19722   esac
19723 else
19724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19725 $as_echo "no" >&6; }
19726
19727 fi
19728
19729
19730
19731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19732 $as_echo_n "checking if X/Open network library is required... " >&6; }
19733   tst_lib_xnet_required="no"
19734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19735 /* end confdefs.h.  */
19736
19737
19738 int main (void)
19739 {
19740 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19741   return 0;
19742 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19743   return 0;
19744 #else
19745   force compilation error
19746 #endif
19747 }
19748
19749
19750 _ACEOF
19751 if ac_fn_c_try_compile "$LINENO"; then :
19752
19753     tst_lib_xnet_required="yes"
19754     LIBS="-lxnet $LIBS"
19755
19756 fi
19757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19759 $as_echo "$tst_lib_xnet_required" >&6; }
19760
19761
19762 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19763 if test "x$ac_cv_func_gethostbyname" = xyes; then :
19764   HAVE_GETHOSTBYNAME="1"
19765
19766 else
19767    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19768 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19769 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19770   $as_echo_n "(cached) " >&6
19771 else
19772   ac_check_lib_save_LIBS=$LIBS
19773 LIBS="-lnsl  $LIBS"
19774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19775 /* end confdefs.h.  */
19776
19777
19778 #ifdef __cplusplus
19779 extern "C"
19780 #endif
19781 char gethostbyname ();
19782 int main (void)
19783 {
19784 return gethostbyname ();
19785  ;
19786  return 0;
19787 }
19788 _ACEOF
19789 if ac_fn_c_try_link "$LINENO"; then :
19790   ac_cv_lib_nsl_gethostbyname=yes
19791 else
19792   ac_cv_lib_nsl_gethostbyname=no
19793 fi
19794 rm -f core conftest.err conftest.$ac_objext \
19795     conftest$ac_exeext conftest.$ac_ext
19796 LIBS=$ac_check_lib_save_LIBS
19797 fi
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19799 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19800 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19801   HAVE_GETHOSTBYNAME="1"
19802                              LIBS="-lnsl $LIBS"
19803
19804 fi
19805
19806
19807 fi
19808
19809
19810 if test "$HAVE_GETHOSTBYNAME" != "1"
19811 then
19812     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19813 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19814 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19815   $as_echo_n "(cached) " >&6
19816 else
19817   ac_check_lib_save_LIBS=$LIBS
19818 LIBS="-lsocket  $LIBS"
19819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19820 /* end confdefs.h.  */
19821
19822
19823 #ifdef __cplusplus
19824 extern "C"
19825 #endif
19826 char gethostbyname ();
19827 int main (void)
19828 {
19829 return gethostbyname ();
19830  ;
19831  return 0;
19832 }
19833 _ACEOF
19834 if ac_fn_c_try_link "$LINENO"; then :
19835   ac_cv_lib_socket_gethostbyname=yes
19836 else
19837   ac_cv_lib_socket_gethostbyname=no
19838 fi
19839 rm -f core conftest.err conftest.$ac_objext \
19840     conftest$ac_exeext conftest.$ac_ext
19841 LIBS=$ac_check_lib_save_LIBS
19842 fi
19843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19844 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19845 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19846   HAVE_GETHOSTBYNAME="1"
19847                LIBS="-lsocket $LIBS"
19848
19849 fi
19850
19851 fi
19852
19853 if test "$HAVE_GETHOSTBYNAME" != "1"
19854 then
19855     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19856 $as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19857 if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19858   $as_echo_n "(cached) " >&6
19859 else
19860   ac_check_lib_save_LIBS=$LIBS
19861 LIBS="-lwatt  $LIBS"
19862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19863 /* end confdefs.h.  */
19864
19865
19866 #ifdef __cplusplus
19867 extern "C"
19868 #endif
19869 char gethostbyname ();
19870 int main (void)
19871 {
19872 return gethostbyname ();
19873  ;
19874  return 0;
19875 }
19876 _ACEOF
19877 if ac_fn_c_try_link "$LINENO"; then :
19878   ac_cv_lib_watt_gethostbyname=yes
19879 else
19880   ac_cv_lib_watt_gethostbyname=no
19881 fi
19882 rm -f core conftest.err conftest.$ac_objext \
19883     conftest$ac_exeext conftest.$ac_ext
19884 LIBS=$ac_check_lib_save_LIBS
19885 fi
19886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19887 $as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19888 if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19889   HAVE_GETHOSTBYNAME="1"
19890                CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19891                LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19892                LIBS="-lwatt $LIBS"
19893
19894 fi
19895
19896 fi
19897
19898 if test "$HAVE_GETHOSTBYNAME" != "1"
19899 then
19900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19901 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19902   my_ac_save_LIBS=$LIBS
19903   LIBS="-lnsl -lsocket $LIBS"
19904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19905 /* end confdefs.h.  */
19906
19907
19908
19909 int main (void)
19910 {
19911
19912       gethostbyname();
19913
19914  ;
19915  return 0;
19916 }
19917
19918 _ACEOF
19919 if ac_fn_c_try_link "$LINENO"; then :
19920
19921     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19922 $as_echo "yes" >&6; }
19923     HAVE_GETHOSTBYNAME="1"
19924
19925 else
19926
19927     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19928 $as_echo "no" >&6; }
19929     LIBS=$my_ac_save_LIBS
19930
19931 fi
19932 rm -f core conftest.err conftest.$ac_objext \
19933     conftest$ac_exeext conftest.$ac_ext
19934 fi
19935
19936 if test "$HAVE_GETHOSTBYNAME" != "1"
19937 then
19938     if test "$curl_cv_header_windows_h" = "yes"; then
19939     if test "$curl_cv_header_winsock_h" = "yes"; then
19940       case $host in
19941         *-*-mingw32ce*)
19942           winsock_LIB="-lwinsock"
19943           ;;
19944         *)
19945           winsock_LIB="-lwsock32"
19946           ;;
19947       esac
19948     fi
19949     if test "$curl_cv_header_winsock2_h" = "yes"; then
19950       winsock_LIB="-lws2_32"
19951     fi
19952     if test ! -z "$winsock_LIB"; then
19953       my_ac_save_LIBS=$LIBS
19954       LIBS="$winsock_LIB $LIBS"
19955       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19956 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19957       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19958 /* end confdefs.h.  */
19959
19960
19961 #ifdef HAVE_WINDOWS_H
19962 #ifndef WIN32_LEAN_AND_MEAN
19963 #define WIN32_LEAN_AND_MEAN
19964 #endif
19965 #include <windows.h>
19966 #ifdef HAVE_WINSOCK2_H
19967 #include <winsock2.h>
19968 #else
19969 #ifdef HAVE_WINSOCK_H
19970 #include <winsock.h>
19971 #endif
19972 #endif
19973 #endif
19974
19975 int main (void)
19976 {
19977
19978           gethostbyname("www.dummysite.com");
19979
19980  ;
19981  return 0;
19982 }
19983
19984 _ACEOF
19985 if ac_fn_c_try_link "$LINENO"; then :
19986
19987         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19988 $as_echo "yes" >&6; }
19989         HAVE_GETHOSTBYNAME="1"
19990
19991 else
19992
19993         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19994 $as_echo "no" >&6; }
19995         winsock_LIB=""
19996         LIBS=$my_ac_save_LIBS
19997
19998 fi
19999 rm -f core conftest.err conftest.$ac_objext \
20000     conftest$ac_exeext conftest.$ac_ext
20001     fi
20002   fi
20003 fi
20004
20005 if test "$HAVE_GETHOSTBYNAME" != "1"
20006 then
20007     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
20008 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
20009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20010 /* end confdefs.h.  */
20011
20012
20013 /* Older Minix versions may need <net/gen/netdb.h> here instead */
20014 #include <netdb.h>
20015
20016 int main (void)
20017 {
20018
20019       gethostbyname("www.dummysite.com");
20020
20021  ;
20022  return 0;
20023 }
20024
20025 _ACEOF
20026 if ac_fn_c_try_link "$LINENO"; then :
20027
20028     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20029 $as_echo "yes" >&6; }
20030     HAVE_GETHOSTBYNAME="1"
20031
20032 else
20033
20034     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20035 $as_echo "no" >&6; }
20036
20037 fi
20038 rm -f core conftest.err conftest.$ac_objext \
20039     conftest$ac_exeext conftest.$ac_ext
20040 fi
20041
20042 if test "$HAVE_GETHOSTBYNAME" != "1"
20043 then
20044     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
20045 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
20046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20047 /* end confdefs.h.  */
20048
20049
20050 #include <stdio.h>
20051 #include <netdb.h>
20052
20053 int main (void)
20054 {
20055
20056       gethostbyname("www.dummysite.com");
20057
20058  ;
20059  return 0;
20060 }
20061
20062 _ACEOF
20063 if ac_fn_c_try_link "$LINENO"; then :
20064
20065     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20066 $as_echo "yes" >&6; }
20067     HAVE_GETHOSTBYNAME="1"
20068
20069 else
20070
20071     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20072 $as_echo "no" >&6; }
20073
20074 fi
20075 rm -f core conftest.err conftest.$ac_objext \
20076     conftest$ac_exeext conftest.$ac_ext
20077 fi
20078
20079 if test "$HAVE_GETHOSTBYNAME" != "1"
20080 then
20081     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
20082 $as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
20083 if ${ac_cv_lib_network_gethostbyname+:} false; then :
20084   $as_echo_n "(cached) " >&6
20085 else
20086   ac_check_lib_save_LIBS=$LIBS
20087 LIBS="-lnetwork  $LIBS"
20088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20089 /* end confdefs.h.  */
20090
20091
20092 #ifdef __cplusplus
20093 extern "C"
20094 #endif
20095 char gethostbyname ();
20096 int main (void)
20097 {
20098 return gethostbyname ();
20099  ;
20100  return 0;
20101 }
20102 _ACEOF
20103 if ac_fn_c_try_link "$LINENO"; then :
20104   ac_cv_lib_network_gethostbyname=yes
20105 else
20106   ac_cv_lib_network_gethostbyname=no
20107 fi
20108 rm -f core conftest.err conftest.$ac_objext \
20109     conftest$ac_exeext conftest.$ac_ext
20110 LIBS=$ac_check_lib_save_LIBS
20111 fi
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
20113 $as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
20114 if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
20115   HAVE_GETHOSTBYNAME="1"
20116                LIBS="-lnetwork $LIBS"
20117
20118 fi
20119
20120 fi
20121
20122 if test "$HAVE_GETHOSTBYNAME" != "1"
20123 then
20124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
20125 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
20126 if ${ac_cv_lib_net_gethostbyname+:} false; then :
20127   $as_echo_n "(cached) " >&6
20128 else
20129   ac_check_lib_save_LIBS=$LIBS
20130 LIBS="-lnet  $LIBS"
20131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20132 /* end confdefs.h.  */
20133
20134
20135 #ifdef __cplusplus
20136 extern "C"
20137 #endif
20138 char gethostbyname ();
20139 int main (void)
20140 {
20141 return gethostbyname ();
20142  ;
20143  return 0;
20144 }
20145 _ACEOF
20146 if ac_fn_c_try_link "$LINENO"; then :
20147   ac_cv_lib_net_gethostbyname=yes
20148 else
20149   ac_cv_lib_net_gethostbyname=no
20150 fi
20151 rm -f core conftest.err conftest.$ac_objext \
20152     conftest$ac_exeext conftest.$ac_ext
20153 LIBS=$ac_check_lib_save_LIBS
20154 fi
20155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
20156 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
20157 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
20158   HAVE_GETHOSTBYNAME="1"
20159                LIBS="-lnet $LIBS"
20160
20161 fi
20162
20163 fi
20164
20165
20166 if test "$HAVE_GETHOSTBYNAME" != "1"; then
20167   as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
20168 fi
20169
20170
20171 curl_includes_winsock2="\
20172 /* includes start */
20173 #ifdef HAVE_WINDOWS_H
20174 #  ifndef WIN32_LEAN_AND_MEAN
20175 #    define WIN32_LEAN_AND_MEAN
20176 #  endif
20177 #  include <windows.h>
20178 #  ifdef HAVE_WINSOCK2_H
20179 #    include <winsock2.h>
20180 #  else
20181 #    ifdef HAVE_WINSOCK_H
20182 #      include <winsock.h>
20183 #    endif
20184 #  endif
20185 #endif
20186 /* includes end */"
20187
20188   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20189 $as_echo_n "checking for windows.h... " >&6; }
20190 if ${curl_cv_header_windows_h+:} false; then :
20191   $as_echo_n "(cached) " >&6
20192 else
20193
20194     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20195 /* end confdefs.h.  */
20196
20197
20198 #undef inline
20199 #ifndef WIN32_LEAN_AND_MEAN
20200 #define WIN32_LEAN_AND_MEAN
20201 #endif
20202 #include <windows.h>
20203
20204 int main (void)
20205 {
20206
20207 #if defined(__CYGWIN__) || defined(__CEGCC__)
20208         HAVE_WINDOWS_H shall not be defined.
20209 #else
20210         int dummy=2*WINVER;
20211 #endif
20212
20213  ;
20214  return 0;
20215 }
20216
20217 _ACEOF
20218 if ac_fn_c_try_compile "$LINENO"; then :
20219
20220       curl_cv_header_windows_h="yes"
20221
20222 else
20223
20224       curl_cv_header_windows_h="no"
20225
20226 fi
20227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20228
20229 fi
20230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
20231 $as_echo "$curl_cv_header_windows_h" >&6; }
20232   case "$curl_cv_header_windows_h" in
20233     yes)
20234
20235 cat >>confdefs.h <<_ACEOF
20236 #define HAVE_WINDOWS_H 1
20237 _ACEOF
20238
20239       ;;
20240   esac
20241
20242
20243     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
20244 $as_echo_n "checking for winsock.h... " >&6; }
20245 if ${curl_cv_header_winsock_h+:} false; then :
20246   $as_echo_n "(cached) " >&6
20247 else
20248
20249     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20250 /* end confdefs.h.  */
20251
20252
20253 #undef inline
20254 #ifndef WIN32_LEAN_AND_MEAN
20255 #define WIN32_LEAN_AND_MEAN
20256 #endif
20257 #include <windows.h>
20258 #include <winsock.h>
20259
20260 int main (void)
20261 {
20262
20263 #if defined(__CYGWIN__) || defined(__CEGCC__)
20264         HAVE_WINSOCK_H shall not be defined.
20265 #else
20266         int dummy=WSACleanup();
20267 #endif
20268
20269  ;
20270  return 0;
20271 }
20272
20273 _ACEOF
20274 if ac_fn_c_try_compile "$LINENO"; then :
20275
20276       curl_cv_header_winsock_h="yes"
20277
20278 else
20279
20280       curl_cv_header_winsock_h="no"
20281
20282 fi
20283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20284
20285 fi
20286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
20287 $as_echo "$curl_cv_header_winsock_h" >&6; }
20288   case "$curl_cv_header_winsock_h" in
20289     yes)
20290
20291 cat >>confdefs.h <<_ACEOF
20292 #define HAVE_WINSOCK_H 1
20293 _ACEOF
20294
20295       ;;
20296   esac
20297
20298
20299     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20300 $as_echo_n "checking for winsock2.h... " >&6; }
20301 if ${curl_cv_header_winsock2_h+:} false; then :
20302   $as_echo_n "(cached) " >&6
20303 else
20304
20305     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20306 /* end confdefs.h.  */
20307
20308
20309 #undef inline
20310 #ifndef WIN32_LEAN_AND_MEAN
20311 #define WIN32_LEAN_AND_MEAN
20312 #endif
20313 #include <windows.h>
20314 #include <winsock2.h>
20315
20316 int main (void)
20317 {
20318
20319 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20320         HAVE_WINSOCK2_H shall not be defined.
20321 #else
20322         int dummy=2*IPPROTO_ESP;
20323 #endif
20324
20325  ;
20326  return 0;
20327 }
20328
20329 _ACEOF
20330 if ac_fn_c_try_compile "$LINENO"; then :
20331
20332       curl_cv_header_winsock2_h="yes"
20333
20334 else
20335
20336       curl_cv_header_winsock2_h="no"
20337
20338 fi
20339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20340
20341 fi
20342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
20343 $as_echo "$curl_cv_header_winsock2_h" >&6; }
20344   case "$curl_cv_header_winsock2_h" in
20345     yes)
20346
20347 cat >>confdefs.h <<_ACEOF
20348 #define HAVE_WINSOCK2_H 1
20349 _ACEOF
20350
20351       ;;
20352   esac
20353
20354
20355
20356     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
20357 $as_echo_n "checking for connect in libraries... " >&6; }
20358   tst_connect_save_LIBS="$LIBS"
20359   tst_connect_need_LIBS="unknown"
20360   for tst_lib in '' '-lsocket' ; do
20361     if test "$tst_connect_need_LIBS" = "unknown"; then
20362       LIBS="$tst_lib $tst_connect_save_LIBS"
20363       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20364 /* end confdefs.h.  */
20365
20366
20367           $curl_includes_winsock2
20368           #ifndef HAVE_WINDOWS_H
20369             int connect(int, void*, int);
20370           #endif
20371
20372 int main (void)
20373 {
20374
20375           if(0 != connect(0, 0, 0))
20376             return 1;
20377
20378  ;
20379  return 0;
20380 }
20381
20382 _ACEOF
20383 if ac_fn_c_try_link "$LINENO"; then :
20384
20385         tst_connect_need_LIBS="$tst_lib"
20386
20387 fi
20388 rm -f core conftest.err conftest.$ac_objext \
20389     conftest$ac_exeext conftest.$ac_ext
20390     fi
20391   done
20392   LIBS="$tst_connect_save_LIBS"
20393   #
20394   case X-"$tst_connect_need_LIBS" in
20395     X-unknown)
20396       { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
20397 $as_echo "cannot find connect" >&6; }
20398       as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
20399       ;;
20400     X-)
20401       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20402 $as_echo "yes" >&6; }
20403       ;;
20404     *)
20405       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
20406 $as_echo "$tst_connect_need_LIBS" >&6; }
20407       LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
20408       ;;
20409   esac
20410
20411
20412 CURL_NETWORK_LIBS=$LIBS
20413
20414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20415 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20416 if ${ac_cv_header_time+:} false; then :
20417   $as_echo_n "(cached) " >&6
20418 else
20419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20420 /* end confdefs.h.  */
20421 #include <sys/types.h>
20422 #include <sys/time.h>
20423 #include <time.h>
20424
20425 int main (void)
20426 {
20427 if ((struct tm *) 0)
20428 return 0;
20429  ;
20430  return 0;
20431 }
20432 _ACEOF
20433 if ac_fn_c_try_compile "$LINENO"; then :
20434   ac_cv_header_time=yes
20435 else
20436   ac_cv_header_time=no
20437 fi
20438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20439 fi
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20441 $as_echo "$ac_cv_header_time" >&6; }
20442 if test $ac_cv_header_time = yes; then
20443
20444 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20445
20446 fi
20447
20448
20449     for ac_header in sys/types.h sys/time.h time.h
20450 do :
20451   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20452 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20453 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20454   cat >>confdefs.h <<_ACEOF
20455 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20456 _ACEOF
20457
20458 fi
20459
20460 done
20461
20462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
20463 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
20464   #
20465   if test "x$dontwant_rt" = "xno" ; then
20466     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20467 /* end confdefs.h.  */
20468
20469
20470 #ifdef HAVE_SYS_TYPES_H
20471 #include <sys/types.h>
20472 #endif
20473 #ifdef HAVE_SYS_TIME_H
20474 #include <sys/time.h>
20475 #ifdef TIME_WITH_SYS_TIME
20476 #include <time.h>
20477 #endif
20478 #else
20479 #ifdef HAVE_TIME_H
20480 #include <time.h>
20481 #endif
20482 #endif
20483
20484 int main (void)
20485 {
20486
20487         struct timespec ts;
20488         (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20489
20490  ;
20491  return 0;
20492 }
20493
20494 _ACEOF
20495 if ac_fn_c_try_compile "$LINENO"; then :
20496
20497       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20498 $as_echo "yes" >&6; }
20499       curl_func_clock_gettime="yes"
20500
20501 else
20502
20503       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20504 $as_echo "no" >&6; }
20505       curl_func_clock_gettime="no"
20506
20507 fi
20508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20509   fi
20510
20511
20512     #
20513   if test "$curl_func_clock_gettime" = "yes"; then
20514     #
20515     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
20516 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
20517     #
20518     curl_cv_save_LIBS="$LIBS"
20519     curl_cv_gclk_LIBS="unknown"
20520     #
20521     for x_xlibs in '' '-lrt' '-lposix4' ; do
20522       if test "$curl_cv_gclk_LIBS" = "unknown"; then
20523         if test -z "$x_xlibs"; then
20524           LIBS="$curl_cv_save_LIBS"
20525         else
20526           LIBS="$x_xlibs $curl_cv_save_LIBS"
20527         fi
20528         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20529 /* end confdefs.h.  */
20530
20531
20532 #ifdef HAVE_SYS_TYPES_H
20533 #include <sys/types.h>
20534 #endif
20535 #ifdef HAVE_SYS_TIME_H
20536 #include <sys/time.h>
20537 #ifdef TIME_WITH_SYS_TIME
20538 #include <time.h>
20539 #endif
20540 #else
20541 #ifdef HAVE_TIME_H
20542 #include <time.h>
20543 #endif
20544 #endif
20545
20546 int main (void)
20547 {
20548
20549             struct timespec ts;
20550             (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20551
20552  ;
20553  return 0;
20554 }
20555
20556 _ACEOF
20557 if ac_fn_c_try_link "$LINENO"; then :
20558
20559           curl_cv_gclk_LIBS="$x_xlibs"
20560
20561 fi
20562 rm -f core conftest.err conftest.$ac_objext \
20563     conftest$ac_exeext conftest.$ac_ext
20564       fi
20565     done
20566     #
20567     LIBS="$curl_cv_save_LIBS"
20568     #
20569     case X-"$curl_cv_gclk_LIBS" in
20570       X-unknown)
20571         { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
20572 $as_echo "cannot find clock_gettime" >&6; }
20573         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20574 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20575         curl_func_clock_gettime="no"
20576         ;;
20577       X-)
20578         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20579 $as_echo "no additional lib required" >&6; }
20580         curl_func_clock_gettime="yes"
20581         ;;
20582       *)
20583         if test -z "$curl_cv_save_LIBS"; then
20584           LIBS="$curl_cv_gclk_LIBS"
20585         else
20586           LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
20587         fi
20588         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
20589 $as_echo "$curl_cv_gclk_LIBS" >&6; }
20590         curl_func_clock_gettime="yes"
20591         ;;
20592     esac
20593     #
20594         if test "x$cross_compiling" != "xyes" &&
20595       test "$curl_func_clock_gettime" = "yes"; then
20596       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
20597 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
20598       if test "$cross_compiling" = yes; then :
20599   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20601 as_fn_error $? "cannot run test program while cross compiling
20602 See \`config.log' for more details" "$LINENO" 5; }
20603 else
20604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20605 /* end confdefs.h.  */
20606
20607
20608 #ifdef HAVE_STDLIB_H
20609 #include <stdlib.h>
20610 #endif
20611 #ifdef HAVE_SYS_TYPES_H
20612 #include <sys/types.h>
20613 #endif
20614 #ifdef HAVE_SYS_TIME_H
20615 #include <sys/time.h>
20616 #ifdef TIME_WITH_SYS_TIME
20617 #include <time.h>
20618 #endif
20619 #else
20620 #ifdef HAVE_TIME_H
20621 #include <time.h>
20622 #endif
20623 #endif
20624
20625 int main (void)
20626 {
20627
20628           struct timespec ts;
20629           if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20630             exit(0);
20631           else
20632             exit(1);
20633
20634  ;
20635  return 0;
20636 }
20637
20638 _ACEOF
20639 if ac_fn_c_try_run "$LINENO"; then :
20640
20641         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20642 $as_echo "yes" >&6; }
20643
20644 else
20645
20646         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20647 $as_echo "no" >&6; }
20648         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20649 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20650         curl_func_clock_gettime="no"
20651         LIBS="$curl_cv_save_LIBS"
20652
20653 fi
20654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20655   conftest.$ac_objext conftest.beam conftest.$ac_ext
20656 fi
20657
20658     fi
20659     #
20660     case "$curl_func_clock_gettime" in
20661       yes)
20662
20663 cat >>confdefs.h <<_ACEOF
20664 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
20665 _ACEOF
20666
20667         ;;
20668     esac
20669     #
20670   fi
20671   #
20672
20673
20674 CURL_NETWORK_AND_TIME_LIBS=$LIBS
20675
20676
20677
20678 clean_CPPFLAGS=$CPPFLAGS
20679 clean_LDFLAGS=$LDFLAGS
20680 clean_LIBS=$LIBS
20681 ZLIB_LIBS=""
20682
20683 # Check whether --with-zlib was given.
20684 if test "${with_zlib+set}" = set; then :
20685   withval=$with_zlib; OPT_ZLIB="$withval"
20686 fi
20687
20688
20689 if test "$OPT_ZLIB" = "no" ; then
20690     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20691 $as_echo "$as_me: WARNING: zlib disabled" >&2;}
20692 else
20693   if test "$OPT_ZLIB" = "yes" ; then
20694     OPT_ZLIB=""
20695   fi
20696
20697   if test -z "$OPT_ZLIB" ; then
20698
20699     if test -n "$PKG_CONFIG"; then
20700       PKGCONFIG="$PKG_CONFIG"
20701     else
20702       if test -n "$ac_tool_prefix"; then
20703   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20704 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20706 $as_echo_n "checking for $ac_word... " >&6; }
20707 if ${ac_cv_path_PKGCONFIG+:} false; then :
20708   $as_echo_n "(cached) " >&6
20709 else
20710   case $PKGCONFIG in
20711   [\\/]* | ?:[\\/]*)
20712   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20713   ;;
20714   *)
20715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20716 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20717 for as_dir in $as_dummy
20718 do
20719   IFS=$as_save_IFS
20720   test -z "$as_dir" && as_dir=.
20721     for ac_exec_ext in '' $ac_executable_extensions; do
20722   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20723     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20725     break 2
20726   fi
20727 done
20728   done
20729 IFS=$as_save_IFS
20730
20731   ;;
20732 esac
20733 fi
20734 PKGCONFIG=$ac_cv_path_PKGCONFIG
20735 if test -n "$PKGCONFIG"; then
20736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20737 $as_echo "$PKGCONFIG" >&6; }
20738 else
20739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20740 $as_echo "no" >&6; }
20741 fi
20742
20743
20744 fi
20745 if test -z "$ac_cv_path_PKGCONFIG"; then
20746   ac_pt_PKGCONFIG=$PKGCONFIG
20747   # Extract the first word of "pkg-config", so it can be a program name with args.
20748 set dummy pkg-config; ac_word=$2
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20750 $as_echo_n "checking for $ac_word... " >&6; }
20751 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20752   $as_echo_n "(cached) " >&6
20753 else
20754   case $ac_pt_PKGCONFIG in
20755   [\\/]* | ?:[\\/]*)
20756   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20757   ;;
20758   *)
20759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20760 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20761 for as_dir in $as_dummy
20762 do
20763   IFS=$as_save_IFS
20764   test -z "$as_dir" && as_dir=.
20765     for ac_exec_ext in '' $ac_executable_extensions; do
20766   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20767     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20769     break 2
20770   fi
20771 done
20772   done
20773 IFS=$as_save_IFS
20774
20775   ;;
20776 esac
20777 fi
20778 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
20779 if test -n "$ac_pt_PKGCONFIG"; then
20780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
20781 $as_echo "$ac_pt_PKGCONFIG" >&6; }
20782 else
20783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20784 $as_echo "no" >&6; }
20785 fi
20786
20787   if test "x$ac_pt_PKGCONFIG" = x; then
20788     PKGCONFIG="no"
20789   else
20790     case $cross_compiling:$ac_tool_warned in
20791 yes:)
20792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20794 ac_tool_warned=yes ;;
20795 esac
20796     PKGCONFIG=$ac_pt_PKGCONFIG
20797   fi
20798 else
20799   PKGCONFIG="$ac_cv_path_PKGCONFIG"
20800 fi
20801
20802     fi
20803
20804     if test "x$PKGCONFIG" != "xno"; then
20805       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
20806 $as_echo_n "checking for zlib options with pkg-config... " >&6; }
20807             itexists=`
20808     if test -n ""; then
20809       PKG_CONFIG_LIBDIR=""
20810       export PKG_CONFIG_LIBDIR
20811     fi
20812          $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
20813
20814       if test -z "$itexists"; then
20815                         PKGCONFIG="no"
20816         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20817 $as_echo "no" >&6; }
20818       else
20819         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20820 $as_echo "found" >&6; }
20821       fi
20822     fi
20823
20824
20825     if test "$PKGCONFIG" != "no" ; then
20826       LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
20827       LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
20828       CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
20829       OPT_ZLIB=""
20830       HAVE_LIBZ="1"
20831     fi
20832
20833     if test -z "$HAVE_LIBZ"; then
20834
20835
20836       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20837 $as_echo_n "checking for inflateEnd in -lz... " >&6; }
20838 if ${ac_cv_lib_z_inflateEnd+:} false; then :
20839   $as_echo_n "(cached) " >&6
20840 else
20841   ac_check_lib_save_LIBS=$LIBS
20842 LIBS="-lz  $LIBS"
20843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20844 /* end confdefs.h.  */
20845
20846
20847 #ifdef __cplusplus
20848 extern "C"
20849 #endif
20850 char inflateEnd ();
20851 int main (void)
20852 {
20853 return inflateEnd ();
20854  ;
20855  return 0;
20856 }
20857 _ACEOF
20858 if ac_fn_c_try_link "$LINENO"; then :
20859   ac_cv_lib_z_inflateEnd=yes
20860 else
20861   ac_cv_lib_z_inflateEnd=no
20862 fi
20863 rm -f core conftest.err conftest.$ac_objext \
20864     conftest$ac_exeext conftest.$ac_ext
20865 LIBS=$ac_check_lib_save_LIBS
20866 fi
20867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20868 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20869 if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20870                      HAVE_LIBZ="1"
20871                     LIBS="-lz $LIBS"
20872 else
20873                      OPT_ZLIB="/usr/local"
20874 fi
20875
20876     fi
20877   fi
20878
20879     if test -n "$OPT_ZLIB"; then
20880      CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20881      LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20882   fi
20883
20884   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20885 if test "x$ac_cv_header_zlib_h" = xyes; then :
20886
20887         HAVE_ZLIB_H="1"
20888         if test "$HAVE_LIBZ" != "1"; then
20889       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20890 $as_echo_n "checking for gzread in -lz... " >&6; }
20891 if ${ac_cv_lib_z_gzread+:} false; then :
20892   $as_echo_n "(cached) " >&6
20893 else
20894   ac_check_lib_save_LIBS=$LIBS
20895 LIBS="-lz  $LIBS"
20896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20897 /* end confdefs.h.  */
20898
20899
20900 #ifdef __cplusplus
20901 extern "C"
20902 #endif
20903 char gzread ();
20904 int main (void)
20905 {
20906 return gzread ();
20907  ;
20908  return 0;
20909 }
20910 _ACEOF
20911 if ac_fn_c_try_link "$LINENO"; then :
20912   ac_cv_lib_z_gzread=yes
20913 else
20914   ac_cv_lib_z_gzread=no
20915 fi
20916 rm -f core conftest.err conftest.$ac_objext \
20917     conftest$ac_exeext conftest.$ac_ext
20918 LIBS=$ac_check_lib_save_LIBS
20919 fi
20920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20921 $as_echo "$ac_cv_lib_z_gzread" >&6; }
20922 if test "x$ac_cv_lib_z_gzread" = xyes; then :
20923
20924                                       HAVE_LIBZ="1"
20925                    LIBS="-lz $LIBS"
20926
20927 else
20928    CPPFLAGS=$clean_CPPFLAGS
20929                    LDFLAGS=$clean_LDFLAGS
20930 fi
20931
20932     fi
20933
20934 else
20935
20936             CPPFLAGS=$clean_CPPFLAGS
20937       LDFLAGS=$clean_LDFLAGS
20938
20939 fi
20940
20941
20942
20943   if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20944   then
20945     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20946 $as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20947     HAVE_LIBZ=""
20948     CPPFLAGS=$clean_CPPFLAGS
20949     LDFLAGS=$clean_LDFLAGS
20950     LIBS=$clean_LIBS
20951   elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20952   then
20953     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20954 $as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20955     CPPFLAGS=$clean_CPPFLAGS
20956     LDFLAGS=$clean_LDFLAGS
20957     LIBS=$clean_LIBS
20958   elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20959   then
20960
20961
20962 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20963
20964
20965 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20966
20967
20968     ZLIB_LIBS="-lz"
20969     LIBS="-lz $clean_LIBS"
20970
20971         AMFIXLIB="1"
20972     { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20973 $as_echo "$as_me: found both libz and libz.h header" >&6;}
20974     curl_zlib_msg="enabled"
20975   fi
20976 fi
20977
20978  if test x"$AMFIXLIB" = x1; then
20979   HAVE_LIBZ_TRUE=
20980   HAVE_LIBZ_FALSE='#'
20981 else
20982   HAVE_LIBZ_TRUE='#'
20983   HAVE_LIBZ_FALSE=
20984 fi
20985
20986
20987
20988
20989
20990 OPT_BROTLI=off
20991
20992 # Check whether --with-brotli was given.
20993 if test "${with_brotli+set}" = set; then :
20994   withval=$with_brotli; OPT_BROTLI=$withval
20995 fi
20996
20997
20998 if test X"$OPT_BROTLI" != Xno; then
20999     CLEANLDFLAGS="$LDFLAGS"
21000   CLEANCPPFLAGS="$CPPFLAGS"
21001   CLEANLIBS="$LIBS"
21002
21003   case "$OPT_BROTLI" in
21004   yes)
21005
21006     if test -n "$PKG_CONFIG"; then
21007       PKGCONFIG="$PKG_CONFIG"
21008     else
21009       if test -n "$ac_tool_prefix"; then
21010   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21011 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21013 $as_echo_n "checking for $ac_word... " >&6; }
21014 if ${ac_cv_path_PKGCONFIG+:} false; then :
21015   $as_echo_n "(cached) " >&6
21016 else
21017   case $PKGCONFIG in
21018   [\\/]* | ?:[\\/]*)
21019   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21020   ;;
21021   *)
21022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21023 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21024 for as_dir in $as_dummy
21025 do
21026   IFS=$as_save_IFS
21027   test -z "$as_dir" && as_dir=.
21028     for ac_exec_ext in '' $ac_executable_extensions; do
21029   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21030     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21032     break 2
21033   fi
21034 done
21035   done
21036 IFS=$as_save_IFS
21037
21038   ;;
21039 esac
21040 fi
21041 PKGCONFIG=$ac_cv_path_PKGCONFIG
21042 if test -n "$PKGCONFIG"; then
21043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21044 $as_echo "$PKGCONFIG" >&6; }
21045 else
21046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21047 $as_echo "no" >&6; }
21048 fi
21049
21050
21051 fi
21052 if test -z "$ac_cv_path_PKGCONFIG"; then
21053   ac_pt_PKGCONFIG=$PKGCONFIG
21054   # Extract the first word of "pkg-config", so it can be a program name with args.
21055 set dummy pkg-config; ac_word=$2
21056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21057 $as_echo_n "checking for $ac_word... " >&6; }
21058 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
21059   $as_echo_n "(cached) " >&6
21060 else
21061   case $ac_pt_PKGCONFIG in
21062   [\\/]* | ?:[\\/]*)
21063   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_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   test -z "$as_dir" && as_dir=.
21072     for ac_exec_ext in '' $ac_executable_extensions; do
21073   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21074     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21076     break 2
21077   fi
21078 done
21079   done
21080 IFS=$as_save_IFS
21081
21082   ;;
21083 esac
21084 fi
21085 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21086 if test -n "$ac_pt_PKGCONFIG"; then
21087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21088 $as_echo "$ac_pt_PKGCONFIG" >&6; }
21089 else
21090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21091 $as_echo "no" >&6; }
21092 fi
21093
21094   if test "x$ac_pt_PKGCONFIG" = x; then
21095     PKGCONFIG="no"
21096   else
21097     case $cross_compiling:$ac_tool_warned in
21098 yes:)
21099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21101 ac_tool_warned=yes ;;
21102 esac
21103     PKGCONFIG=$ac_pt_PKGCONFIG
21104   fi
21105 else
21106   PKGCONFIG="$ac_cv_path_PKGCONFIG"
21107 fi
21108
21109     fi
21110
21111     if test "x$PKGCONFIG" != "xno"; then
21112       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
21113 $as_echo_n "checking for libbrotlidec options with pkg-config... " >&6; }
21114             itexists=`
21115     if test -n ""; then
21116       PKG_CONFIG_LIBDIR=""
21117       export PKG_CONFIG_LIBDIR
21118     fi
21119          $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
21120
21121       if test -z "$itexists"; then
21122                         PKGCONFIG="no"
21123         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21124 $as_echo "no" >&6; }
21125       else
21126         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
21127 $as_echo "found" >&6; }
21128       fi
21129     fi
21130
21131
21132     if test "$PKGCONFIG" != "no" ; then
21133       LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
21134       LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
21135       CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
21136       version=`$PKGCONFIG --modversion libbrotlidec`
21137       DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/-L//'`
21138     fi
21139
21140     ;;
21141   off)
21142         ;;
21143   *)
21144         PREFIX_BROTLI=$OPT_BROTLI
21145     ;;
21146   esac
21147
21148     if test -n "$PREFIX_BROTLI"; then
21149     LIB_BROTLI="-lbrotlidec"
21150     LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
21151     CPP_BROTLI=-I${PREFIX_BROTLI}/include
21152     DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
21153   fi
21154
21155   LDFLAGS="$LDFLAGS $LD_BROTLI"
21156   CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
21157   LIBS="$LIB_BROTLI $LIBS"
21158
21159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
21160 $as_echo_n "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
21161 if ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+:} false; then :
21162   $as_echo_n "(cached) " >&6
21163 else
21164   ac_check_lib_save_LIBS=$LIBS
21165 LIBS="-lbrotlidec  $LIBS"
21166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21167 /* end confdefs.h.  */
21168
21169
21170 #ifdef __cplusplus
21171 extern "C"
21172 #endif
21173 char BrotliDecoderDecompress ();
21174 int main (void)
21175 {
21176 return BrotliDecoderDecompress ();
21177  ;
21178  return 0;
21179 }
21180 _ACEOF
21181 if ac_fn_c_try_link "$LINENO"; then :
21182   ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
21183 else
21184   ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
21185 fi
21186 rm -f core conftest.err conftest.$ac_objext \
21187     conftest$ac_exeext conftest.$ac_ext
21188 LIBS=$ac_check_lib_save_LIBS
21189 fi
21190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
21191 $as_echo "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
21192 if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes; then :
21193   cat >>confdefs.h <<_ACEOF
21194 #define HAVE_LIBBROTLIDEC 1
21195 _ACEOF
21196
21197   LIBS="-lbrotlidec $LIBS"
21198
21199 fi
21200
21201
21202   for ac_header in brotli/decode.h
21203 do :
21204   ac_fn_c_check_header_mongrel "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
21205 if test "x$ac_cv_header_brotli_decode_h" = xyes; then :
21206   cat >>confdefs.h <<_ACEOF
21207 #define HAVE_BROTLI_DECODE_H 1
21208 _ACEOF
21209  curl_brotli_msg="enabled (libbrotlidec)"
21210     HAVE_BROTLI=1
21211
21212 $as_echo "#define HAVE_BROTLI 1" >>confdefs.h
21213
21214     HAVE_BROTLI=1
21215
21216
21217 fi
21218
21219 done
21220
21221
21222   if test X"$OPT_BROTLI" != Xoff &&
21223      test "$HAVE_BROTLI" != "1"; then
21224     as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
21225   fi
21226
21227   if test "$HAVE_BROTLI" = "1"; then
21228     if test -n "$DIR_BROTLI"; then
21229
21230        if test "x$cross_compiling" != "xyes"; then
21231          LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_BROTLI"
21232          export LD_LIBRARY_PATH
21233          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to LD_LIBRARY_PATH" >&5
21234 $as_echo "$as_me: Added $DIR_BROTLI to LD_LIBRARY_PATH" >&6;}
21235        fi
21236     fi
21237   else
21238         LDFLAGS=$CLEANLDFLAGS
21239     CPPFLAGS=$CLEANCPPFLAGS
21240     LIBS=$CLEANLIBS
21241   fi
21242 fi
21243
21244
21245 LDAPLIBNAME=""
21246
21247 # Check whether --with-ldap-lib was given.
21248 if test "${with_ldap_lib+set}" = set; then :
21249   withval=$with_ldap_lib; LDAPLIBNAME="$withval"
21250 fi
21251
21252
21253 LBERLIBNAME=""
21254
21255 # Check whether --with-lber-lib was given.
21256 if test "${with_lber_lib+set}" = set; then :
21257   withval=$with_lber_lib; LBERLIBNAME="$withval"
21258 fi
21259
21260
21261 if test x$CURL_DISABLE_LDAP != x1 ; then
21262
21263
21264     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
21265 $as_echo_n "checking for lber.h... " >&6; }
21266 if ${curl_cv_header_lber_h+:} false; then :
21267   $as_echo_n "(cached) " >&6
21268 else
21269
21270     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21271 /* end confdefs.h.  */
21272
21273
21274 #undef inline
21275 #ifdef HAVE_WINDOWS_H
21276 #ifndef WIN32_LEAN_AND_MEAN
21277 #define WIN32_LEAN_AND_MEAN
21278 #endif
21279 #include <windows.h>
21280 #else
21281 #ifdef HAVE_SYS_TYPES_H
21282 #include <sys/types.h>
21283 #endif
21284 #endif
21285 #ifndef NULL
21286 #define NULL (void *)0
21287 #endif
21288 #include <lber.h>
21289
21290 int main (void)
21291 {
21292
21293         BerValue *bvp = NULL;
21294         BerElement *bep = ber_init(bvp);
21295         ber_free(bep, 1);
21296
21297  ;
21298  return 0;
21299 }
21300
21301 _ACEOF
21302 if ac_fn_c_try_compile "$LINENO"; then :
21303
21304       curl_cv_header_lber_h="yes"
21305
21306 else
21307
21308       curl_cv_header_lber_h="no"
21309
21310 fi
21311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21312
21313 fi
21314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
21315 $as_echo "$curl_cv_header_lber_h" >&6; }
21316   if test "$curl_cv_header_lber_h" = "yes"; then
21317
21318 cat >>confdefs.h <<_ACEOF
21319 #define HAVE_LBER_H 1
21320 _ACEOF
21321
21322     #
21323     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21324 /* end confdefs.h.  */
21325
21326
21327 #undef inline
21328 #ifdef HAVE_WINDOWS_H
21329 #ifndef WIN32_LEAN_AND_MEAN
21330 #define WIN32_LEAN_AND_MEAN
21331 #endif
21332 #include <windows.h>
21333 #else
21334 #ifdef HAVE_SYS_TYPES_H
21335 #include <sys/types.h>
21336 #endif
21337 #endif
21338 #ifndef NULL
21339 #define NULL (void *)0
21340 #endif
21341 #ifndef LDAP_DEPRECATED
21342 #define LDAP_DEPRECATED 1
21343 #endif
21344 #include <ldap.h>
21345
21346 int main (void)
21347 {
21348
21349         BerValue *bvp = NULL;
21350         BerElement *bep = ber_init(bvp);
21351         ber_free(bep, 1);
21352
21353  ;
21354  return 0;
21355 }
21356
21357 _ACEOF
21358 if ac_fn_c_try_compile "$LINENO"; then :
21359
21360       curl_cv_need_header_lber_h="no"
21361
21362 else
21363
21364       curl_cv_need_header_lber_h="yes"
21365
21366 fi
21367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21368     #
21369     case "$curl_cv_need_header_lber_h" in
21370       yes)
21371
21372 cat >>confdefs.h <<_ACEOF
21373 #define NEED_LBER_H 1
21374 _ACEOF
21375
21376         ;;
21377     esac
21378   fi
21379
21380
21381     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
21382 $as_echo_n "checking for ldap.h... " >&6; }
21383 if ${curl_cv_header_ldap_h+:} false; then :
21384   $as_echo_n "(cached) " >&6
21385 else
21386
21387     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21388 /* end confdefs.h.  */
21389
21390
21391 #undef inline
21392 #ifdef HAVE_WINDOWS_H
21393 #ifndef WIN32_LEAN_AND_MEAN
21394 #define WIN32_LEAN_AND_MEAN
21395 #endif
21396 #include <windows.h>
21397 #else
21398 #ifdef HAVE_SYS_TYPES_H
21399 #include <sys/types.h>
21400 #endif
21401 #endif
21402 #ifndef LDAP_DEPRECATED
21403 #define LDAP_DEPRECATED 1
21404 #endif
21405 #ifdef NEED_LBER_H
21406 #include <lber.h>
21407 #endif
21408 #include <ldap.h>
21409
21410 int main (void)
21411 {
21412
21413         LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21414         int res = ldap_unbind(ldp);
21415
21416  ;
21417  return 0;
21418 }
21419
21420 _ACEOF
21421 if ac_fn_c_try_compile "$LINENO"; then :
21422
21423       curl_cv_header_ldap_h="yes"
21424
21425 else
21426
21427       curl_cv_header_ldap_h="no"
21428
21429 fi
21430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21431
21432 fi
21433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
21434 $as_echo "$curl_cv_header_ldap_h" >&6; }
21435   case "$curl_cv_header_ldap_h" in
21436     yes)
21437
21438 cat >>confdefs.h <<_ACEOF
21439 #define HAVE_LDAP_H 1
21440 _ACEOF
21441
21442       ;;
21443   esac
21444
21445
21446     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
21447 $as_echo_n "checking for ldapssl.h... " >&6; }
21448 if ${curl_cv_header_ldapssl_h+:} false; then :
21449   $as_echo_n "(cached) " >&6
21450 else
21451
21452     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21453 /* end confdefs.h.  */
21454
21455
21456 #undef inline
21457 #ifdef HAVE_WINDOWS_H
21458 #ifndef WIN32_LEAN_AND_MEAN
21459 #define WIN32_LEAN_AND_MEAN
21460 #endif
21461 #include <windows.h>
21462 #else
21463 #ifdef HAVE_SYS_TYPES_H
21464 #include <sys/types.h>
21465 #endif
21466 #endif
21467 #ifndef NULL
21468 #define NULL (void *)0
21469 #endif
21470 #ifndef LDAP_DEPRECATED
21471 #define LDAP_DEPRECATED 1
21472 #endif
21473 #ifdef NEED_LBER_H
21474 #include <lber.h>
21475 #endif
21476 #ifdef HAVE_LDAP_H
21477 #include <ldap.h>
21478 #endif
21479 #include <ldapssl.h>
21480
21481 int main (void)
21482 {
21483
21484         char *cert_label = NULL;
21485         LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
21486
21487  ;
21488  return 0;
21489 }
21490
21491 _ACEOF
21492 if ac_fn_c_try_compile "$LINENO"; then :
21493
21494       curl_cv_header_ldapssl_h="yes"
21495
21496 else
21497
21498       curl_cv_header_ldapssl_h="no"
21499
21500 fi
21501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21502
21503 fi
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
21505 $as_echo "$curl_cv_header_ldapssl_h" >&6; }
21506   case "$curl_cv_header_ldapssl_h" in
21507     yes)
21508
21509 cat >>confdefs.h <<_ACEOF
21510 #define HAVE_LDAPSSL_H 1
21511 _ACEOF
21512
21513       ;;
21514   esac
21515
21516
21517     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
21518 $as_echo_n "checking for ldap_ssl.h... " >&6; }
21519 if ${curl_cv_header_ldap_ssl_h+:} false; then :
21520   $as_echo_n "(cached) " >&6
21521 else
21522
21523     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21524 /* end confdefs.h.  */
21525
21526
21527 #undef inline
21528 #ifdef HAVE_WINDOWS_H
21529 #ifndef WIN32_LEAN_AND_MEAN
21530 #define WIN32_LEAN_AND_MEAN
21531 #endif
21532 #include <windows.h>
21533 #else
21534 #ifdef HAVE_SYS_TYPES_H
21535 #include <sys/types.h>
21536 #endif
21537 #endif
21538 #ifndef LDAP_DEPRECATED
21539 #define LDAP_DEPRECATED 1
21540 #endif
21541 #ifdef NEED_LBER_H
21542 #include <lber.h>
21543 #endif
21544 #ifdef HAVE_LDAP_H
21545 #include <ldap.h>
21546 #endif
21547 #include <ldap_ssl.h>
21548
21549 int main (void)
21550 {
21551
21552         LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
21553
21554  ;
21555  return 0;
21556 }
21557
21558 _ACEOF
21559 if ac_fn_c_try_compile "$LINENO"; then :
21560
21561       curl_cv_header_ldap_ssl_h="yes"
21562
21563 else
21564
21565       curl_cv_header_ldap_ssl_h="no"
21566
21567 fi
21568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21569
21570 fi
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
21572 $as_echo "$curl_cv_header_ldap_ssl_h" >&6; }
21573   case "$curl_cv_header_ldap_ssl_h" in
21574     yes)
21575
21576 cat >>confdefs.h <<_ACEOF
21577 #define HAVE_LDAP_SSL_H 1
21578 _ACEOF
21579
21580       ;;
21581   esac
21582
21583
21584   if test -z "$LDAPLIBNAME" ; then
21585     if test "$curl_cv_native_windows" = "yes"; then
21586             LDAPLIBNAME="wldap32"
21587       LBERLIBNAME="no"
21588     fi
21589   fi
21590
21591   if test "$LDAPLIBNAME" ; then
21592     as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
21593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
21594 $as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
21595 if eval \${$as_ac_Lib+:} false; then :
21596   $as_echo_n "(cached) " >&6
21597 else
21598   ac_check_lib_save_LIBS=$LIBS
21599 LIBS="-l"$LDAPLIBNAME"  $LIBS"
21600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21601 /* end confdefs.h.  */
21602
21603
21604 #ifdef __cplusplus
21605 extern "C"
21606 #endif
21607 char ldap_init ();
21608 int main (void)
21609 {
21610 return ldap_init ();
21611  ;
21612  return 0;
21613 }
21614 _ACEOF
21615 if ac_fn_c_try_link "$LINENO"; then :
21616   eval "$as_ac_Lib=yes"
21617 else
21618   eval "$as_ac_Lib=no"
21619 fi
21620 rm -f core conftest.err conftest.$ac_objext \
21621     conftest$ac_exeext conftest.$ac_ext
21622 LIBS=$ac_check_lib_save_LIBS
21623 fi
21624 eval ac_res=\$$as_ac_Lib
21625                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21626 $as_echo "$ac_res" >&6; }
21627 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21628   cat >>confdefs.h <<_ACEOF
21629 #define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
21630 _ACEOF
21631
21632   LIBS="-l"$LDAPLIBNAME" $LIBS"
21633
21634 else
21635
21636       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
21637 $as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
21638
21639 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21640
21641       CURL_DISABLE_LDAP=1
21642
21643
21644 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21645
21646       CURL_DISABLE_LDAPS=1
21647
21648 fi
21649
21650   else
21651
21652     #
21653   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
21654 $as_echo_n "checking for LDAP libraries... " >&6; }
21655   #
21656   u_libs=""
21657   #
21658
21659   #
21660   curl_cv_save_LIBS="$LIBS"
21661   curl_cv_ldap_LIBS="unknown"
21662   #
21663   for x_nlibs in '' "$u_libs" \
21664     '-lldap' \
21665     '-lldap -llber' \
21666     '-llber -lldap' \
21667     '-lldapssl -lldapx -lldapsdk' \
21668     '-lldapsdk -lldapx -lldapssl' ; do
21669     if test "$curl_cv_ldap_LIBS" = "unknown"; then
21670       if test -z "$x_nlibs"; then
21671         LIBS="$curl_cv_save_LIBS"
21672       else
21673         LIBS="$x_nlibs $curl_cv_save_LIBS"
21674       fi
21675       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21676 /* end confdefs.h.  */
21677
21678
21679 #undef inline
21680 #ifdef HAVE_WINDOWS_H
21681 #ifndef WIN32_LEAN_AND_MEAN
21682 #define WIN32_LEAN_AND_MEAN
21683 #endif
21684 #include <windows.h>
21685 #else
21686 #ifdef HAVE_SYS_TYPES_H
21687 #include <sys/types.h>
21688 #endif
21689 #endif
21690 #ifndef NULL
21691 #define NULL (void *)0
21692 #endif
21693 #ifndef LDAP_DEPRECATED
21694 #define LDAP_DEPRECATED 1
21695 #endif
21696 #ifdef NEED_LBER_H
21697 #include <lber.h>
21698 #endif
21699 #ifdef HAVE_LDAP_H
21700 #include <ldap.h>
21701 #endif
21702
21703 int main (void)
21704 {
21705
21706           BerValue *bvp = NULL;
21707           BerElement *bep = ber_init(bvp);
21708           LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21709           int res = ldap_unbind(ldp);
21710           ber_free(bep, 1);
21711
21712  ;
21713  return 0;
21714 }
21715
21716 _ACEOF
21717 if ac_fn_c_try_link "$LINENO"; then :
21718
21719         curl_cv_ldap_LIBS="$x_nlibs"
21720
21721 fi
21722 rm -f core conftest.err conftest.$ac_objext \
21723     conftest$ac_exeext conftest.$ac_ext
21724     fi
21725   done
21726   #
21727   LIBS="$curl_cv_save_LIBS"
21728   #
21729   case X-"$curl_cv_ldap_LIBS" in
21730     X-unknown)
21731       { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
21732 $as_echo "cannot find LDAP libraries" >&6; }
21733       ;;
21734     X-)
21735       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
21736 $as_echo "no additional lib required" >&6; }
21737       ;;
21738     *)
21739       if test -z "$curl_cv_save_LIBS"; then
21740         LIBS="$curl_cv_ldap_LIBS"
21741       else
21742         LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
21743       fi
21744       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
21745 $as_echo "$curl_cv_ldap_LIBS" >&6; }
21746       ;;
21747   esac
21748   #
21749
21750     case X-"$curl_cv_ldap_LIBS" in
21751       X-unknown)
21752         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
21753 $as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
21754
21755 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21756
21757         CURL_DISABLE_LDAP=1
21758
21759
21760 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21761
21762         CURL_DISABLE_LDAPS=1
21763
21764         ;;
21765     esac
21766   fi
21767 fi
21768
21769 if test x$CURL_DISABLE_LDAP != x1 ; then
21770
21771   if test "$LBERLIBNAME" ; then
21772             if test "$LBERLIBNAME" != "no" ; then
21773       as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
21775 $as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
21776 if eval \${$as_ac_Lib+:} false; then :
21777   $as_echo_n "(cached) " >&6
21778 else
21779   ac_check_lib_save_LIBS=$LIBS
21780 LIBS="-l"$LBERLIBNAME"  $LIBS"
21781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21782 /* end confdefs.h.  */
21783
21784
21785 #ifdef __cplusplus
21786 extern "C"
21787 #endif
21788 char ber_free ();
21789 int main (void)
21790 {
21791 return ber_free ();
21792  ;
21793  return 0;
21794 }
21795 _ACEOF
21796 if ac_fn_c_try_link "$LINENO"; then :
21797   eval "$as_ac_Lib=yes"
21798 else
21799   eval "$as_ac_Lib=no"
21800 fi
21801 rm -f core conftest.err conftest.$ac_objext \
21802     conftest$ac_exeext conftest.$ac_ext
21803 LIBS=$ac_check_lib_save_LIBS
21804 fi
21805 eval ac_res=\$$as_ac_Lib
21806                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21807 $as_echo "$ac_res" >&6; }
21808 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21809   cat >>confdefs.h <<_ACEOF
21810 #define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
21811 _ACEOF
21812
21813   LIBS="-l"$LBERLIBNAME" $LIBS"
21814
21815 else
21816
21817         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
21818 $as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
21819
21820 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21821
21822         CURL_DISABLE_LDAP=1
21823
21824
21825 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21826
21827         CURL_DISABLE_LDAPS=1
21828
21829 fi
21830
21831     fi
21832   fi
21833 fi
21834
21835 if test x$CURL_DISABLE_LDAP != x1 ; then
21836   for ac_func in ldap_url_parse ldap_init_fd
21837 do :
21838   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21839 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21840 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21841   cat >>confdefs.h <<_ACEOF
21842 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21843 _ACEOF
21844
21845 fi
21846 done
21847
21848
21849   if test "$LDAPLIBNAME" = "wldap32"; then
21850     curl_ldap_msg="enabled (winldap)"
21851
21852 $as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
21853
21854   else
21855     curl_ldap_msg="enabled (OpenLDAP)"
21856     if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
21857
21858 $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
21859
21860       USE_OPENLDAP=1
21861
21862     fi
21863   fi
21864 fi
21865
21866 if test x$CURL_DISABLE_LDAPS != x1 ; then
21867     curl_ldaps_msg="enabled"
21868 fi
21869
21870
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
21872 $as_echo_n "checking whether to enable IPv6... " >&6; }
21873 # Check whether --enable-ipv6 was given.
21874 if test "${enable_ipv6+set}" = set; then :
21875   enableval=$enable_ipv6;  case "$enableval" in
21876   no)
21877        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21878 $as_echo "no" >&6; }
21879        ipv6=no
21880        ;;
21881   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21882 $as_echo "yes" >&6; }
21883        ipv6=yes
21884        ;;
21885   esac
21886 else
21887   if test "$cross_compiling" = yes; then :
21888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21889 $as_echo "yes" >&6; }
21890   ipv6=yes
21891
21892 else
21893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21894 /* end confdefs.h.  */
21895  /* is AF_INET6 available? */
21896 #include <sys/types.h>
21897 #ifdef HAVE_WINSOCK2_H
21898 #include <winsock2.h>
21899 #else
21900 #include <sys/socket.h>
21901 #endif
21902 #include <stdlib.h> /* for exit() */
21903 main()
21904 {
21905  if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
21906    exit(1);
21907  else
21908    exit(0);
21909 }
21910
21911 _ACEOF
21912 if ac_fn_c_try_run "$LINENO"; then :
21913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21914 $as_echo "yes" >&6; }
21915   ipv6=yes
21916 else
21917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21918 $as_echo "no" >&6; }
21919   ipv6=no
21920 fi
21921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21922   conftest.$ac_objext conftest.beam conftest.$ac_ext
21923 fi
21924
21925 fi
21926
21927
21928 if test "$ipv6" = "yes"; then
21929   curl_ipv6_msg="enabled"
21930 fi
21931
21932 # Check if struct sockaddr_in6 have sin6_scope_id member
21933 if test "$ipv6" = yes; then
21934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
21935 $as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
21936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21937 /* end confdefs.h.  */
21938
21939 #include <sys/types.h>
21940 #ifdef HAVE_WINSOCK2_H
21941 #include <winsock2.h>
21942 #include <ws2tcpip.h>
21943 #else
21944 #include <netinet/in.h>
21945 #if defined (__TANDEM)
21946 # include <netinet/in6.h>
21947 #endif
21948 #endif
21949 int main (void)
21950 {
21951 struct sockaddr_in6 s; s.sin6_scope_id = 0;
21952  ;
21953  return 0;
21954 }
21955 _ACEOF
21956 if ac_fn_c_try_compile "$LINENO"; then :
21957   have_sin6_scope_id=yes
21958 fi
21959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21960   if test "$have_sin6_scope_id" = yes; then
21961     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21962 $as_echo "yes" >&6; }
21963
21964 $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
21965
21966   else
21967     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21968 $as_echo "no" >&6; }
21969   fi
21970 fi
21971
21972
21973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
21974 $as_echo_n "checking if argv can be written to... " >&6; }
21975 if test "$cross_compiling" = yes; then :
21976
21977   curl_cv_writable_argv=cross
21978
21979 else
21980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21981 /* end confdefs.h.  */
21982
21983
21984 int main(int argc, char ** argv) {
21985     argv[0][0] = ' ';
21986     return (argv[0][0] == ' ')?0:1;
21987 }
21988
21989
21990 _ACEOF
21991 if ac_fn_c_try_run "$LINENO"; then :
21992
21993   curl_cv_writable_argv=yes
21994
21995 else
21996
21997   curl_cv_writable_argv=no
21998
21999 fi
22000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22001   conftest.$ac_objext conftest.beam conftest.$ac_ext
22002 fi
22003
22004 case $curl_cv_writable_argv in
22005 yes)
22006
22007 $as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
22008
22009         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22010 $as_echo "yes" >&6; }
22011         ;;
22012 no)
22013         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22014 $as_echo "no" >&6; }
22015         ;;
22016 *)
22017         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22018 $as_echo "no" >&6; }
22019         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
22020 $as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
22021         ;;
22022 esac
22023
22024
22025
22026 GSSAPI_ROOT="/usr"
22027
22028 # Check whether --with-gssapi-includes was given.
22029 if test "${with_gssapi_includes+set}" = set; then :
22030   withval=$with_gssapi_includes;  GSSAPI_INCS="-I$withval"
22031     want_gss="yes"
22032
22033 fi
22034
22035
22036
22037 # Check whether --with-gssapi-libs was given.
22038 if test "${with_gssapi_libs+set}" = set; then :
22039   withval=$with_gssapi_libs;  GSSAPI_LIB_DIR="-L$withval"
22040     want_gss="yes"
22041
22042 fi
22043
22044
22045
22046 # Check whether --with-gssapi was given.
22047 if test "${with_gssapi+set}" = set; then :
22048   withval=$with_gssapi;
22049   GSSAPI_ROOT="$withval"
22050   if test x"$GSSAPI_ROOT" != xno; then
22051     want_gss="yes"
22052     if test x"$GSSAPI_ROOT" = xyes; then
22053             GSSAPI_ROOT="/usr"
22054     fi
22055   fi
22056
22057 fi
22058
22059
22060 : ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
22061
22062 save_CPPFLAGS="$CPPFLAGS"
22063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
22064 $as_echo_n "checking if GSS-API support is requested... " >&6; }
22065 if test x"$want_gss" = xyes; then
22066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22067 $as_echo "yes" >&6; }
22068
22069   if test -z "$GSSAPI_INCS"; then
22070      if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22071         GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
22072      elif test -f "$KRB5CONFIG"; then
22073         GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
22074      elif test "$GSSAPI_ROOT" != "yes"; then
22075         GSSAPI_INCS="-I$GSSAPI_ROOT/include"
22076      fi
22077   fi
22078
22079   CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
22080
22081   ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
22082 if test "x$ac_cv_header_gss_h" = xyes; then :
22083
22084
22085 $as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
22086
22087       gnu_gss=yes
22088
22089 else
22090
22091             for ac_header in gssapi/gssapi.h
22092 do :
22093   ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
22094 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
22095   cat >>confdefs.h <<_ACEOF
22096 #define HAVE_GSSAPI_GSSAPI_H 1
22097 _ACEOF
22098
22099 else
22100   not_mit=1
22101 fi
22102
22103 done
22104
22105       for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
22106 do :
22107   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22108 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
22109 $ac_includes_default
22110 #ifdef HAVE_GSSAPI_GSSAPI_H
22111 #include <gssapi/gssapi.h>
22112 #endif
22113
22114 "
22115 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22116   cat >>confdefs.h <<_ACEOF
22117 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22118 _ACEOF
22119
22120 else
22121   not_mit=1
22122 fi
22123
22124 done
22125
22126       if test "x$not_mit" = "x1"; then
22127                 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
22128 if test "x$ac_cv_header_gssapi_h" = xyes; then :
22129
22130
22131 $as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
22132
22133
22134 else
22135
22136                             want_gss=no
22137               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
22138 $as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
22139
22140
22141 fi
22142
22143
22144       else
22145
22146 $as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
22147
22148                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
22149 $as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
22150         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22151 /* end confdefs.h.  */
22152
22153
22154 #include <gssapi/gssapi.h>
22155 #include <gssapi/gssapi_generic.h>
22156 #include <gssapi/gssapi_krb5.h>
22157
22158 int main (void)
22159 {
22160
22161             gss_import_name(
22162                             (OM_uint32 *)0,
22163                             (gss_buffer_t)0,
22164                             GSS_C_NT_HOSTBASED_SERVICE,
22165                             (gss_name_t *)0);
22166
22167  ;
22168  return 0;
22169 }
22170
22171 _ACEOF
22172 if ac_fn_c_try_compile "$LINENO"; then :
22173
22174           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22175 $as_echo "yes" >&6; }
22176
22177 else
22178
22179           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22180 $as_echo "no" >&6; }
22181
22182 $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
22183
22184
22185 fi
22186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22187       fi
22188
22189
22190 fi
22191
22192
22193 else
22194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22195 $as_echo "no" >&6; }
22196 fi
22197 if test x"$want_gss" = xyes; then
22198
22199 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
22200
22201   HAVE_GSSAPI=1
22202   curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
22203
22204   if test -n "$gnu_gss"; then
22205     curl_gss_msg="enabled (GNU GSS)"
22206     LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22207     LIBS="-lgss $LIBS"
22208   elif test -z "$GSSAPI_LIB_DIR"; then
22209      case $host in
22210      *-*-darwin*)
22211         LIBS="-lgssapi_krb5 -lresolv $LIBS"
22212         ;;
22213      *)
22214         if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22215                                  gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
22216            LIBS="$gss_libs $LIBS"
22217         elif test -f "$KRB5CONFIG"; then
22218                                  gss_libs=`$KRB5CONFIG --libs gssapi`
22219            LIBS="$gss_libs $LIBS"
22220         else
22221            case $host in
22222            *-hp-hpux*)
22223               gss_libname="gss"
22224               ;;
22225            *)
22226               gss_libname="gssapi"
22227               ;;
22228            esac
22229
22230            if test "$GSSAPI_ROOT" != "yes"; then
22231               LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
22232               LIBS="-l$gss_libname $LIBS"
22233            else
22234               LIBS="-l$gss_libname $LIBS"
22235            fi
22236         fi
22237         ;;
22238      esac
22239   else
22240      LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22241      case $host in
22242      *-hp-hpux*)
22243         LIBS="-lgss $LIBS"
22244         ;;
22245      *)
22246         LIBS="-lgssapi $LIBS"
22247         ;;
22248      esac
22249   fi
22250 else
22251   CPPFLAGS="$save_CPPFLAGS"
22252 fi
22253
22254 build_libstubgss=no
22255 if test x"$want_gss" = "xyes"; then
22256   build_libstubgss=yes
22257 fi
22258
22259  if test "x$build_libstubgss" = "xyes"; then
22260   BUILD_STUB_GSS_TRUE=
22261   BUILD_STUB_GSS_FALSE='#'
22262 else
22263   BUILD_STUB_GSS_TRUE='#'
22264   BUILD_STUB_GSS_FALSE=
22265 fi
22266
22267
22268
22269 DEFAULT_SSL_BACKEND=no
22270 VALID_DEFAULT_SSL_BACKEND=
22271
22272 # Check whether --with-default-ssl-backend was given.
22273 if test "${with_default_ssl_backend+set}" = set; then :
22274   withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
22275 fi
22276
22277 case "$DEFAULT_SSL_BACKEND" in
22278   no)
22279         ;;
22280   default|yes)
22281         as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
22282     ;;
22283   *)
22284
22285         VALID_DEFAULT_SSL_BACKEND=no
22286     ;;
22287 esac
22288
22289
22290
22291 OPT_WINSSL=no
22292
22293 # Check whether --with-winssl was given.
22294 if test "${with_winssl+set}" = set; then :
22295   withval=$with_winssl; OPT_WINSSL=$withval
22296 fi
22297
22298
22299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
22300 $as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
22301 if test -z "$ssl_backends" -o "x$OPT_WINSSL" != xno; then
22302   ssl_msg=
22303   if test "x$OPT_WINSSL" != "xno"  &&
22304      test "x$curl_cv_native_windows" = "xyes"; then
22305     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22306 $as_echo "yes" >&6; }
22307
22308 $as_echo "#define USE_SCHANNEL 1" >>confdefs.h
22309
22310     USE_SCHANNEL=1
22311
22312     ssl_msg="Windows-native"
22313     test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22314     WINSSL_ENABLED=1
22315     # --with-winssl implies --enable-sspi
22316
22317 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
22318
22319     USE_WINDOWS_SSPI=1
22320
22321     curl_sspi_msg="enabled"
22322     LIBS="-lcrypt32 $LIBS"
22323   else
22324     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22325 $as_echo "no" >&6; }
22326   fi
22327   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
22328 else
22329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22330 $as_echo "no" >&6; }
22331 fi
22332
22333 OPT_DARWINSSL=no
22334
22335 # Check whether --with-darwinssl was given.
22336 if test "${with_darwinssl+set}" = set; then :
22337   withval=$with_darwinssl; OPT_DARWINSSL=$withval
22338 fi
22339
22340
22341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Apple OS native SSL/TLS" >&5
22342 $as_echo_n "checking whether to enable Apple OS native SSL/TLS... " >&6; }
22343 if test -z "$ssl_backends" -o "x$OPT_DARWINSSL" != xno; then
22344   if test "x$OPT_DARWINSSL" != "xno" &&
22345      test -d "/System/Library/Frameworks/Security.framework"; then
22346     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22347 $as_echo "yes" >&6; }
22348
22349 $as_echo "#define USE_DARWINSSL 1" >>confdefs.h
22350
22351     USE_DARWINSSL=1
22352
22353     ssl_msg="Apple OS-native"
22354     test darwinssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22355     DARWINSSL_ENABLED=1
22356     LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
22357   else
22358     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22359 $as_echo "no" >&6; }
22360   fi
22361   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
22362 else
22363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22364 $as_echo "no" >&6; }
22365 fi
22366
22367
22368 OPT_SSL=off
22369 ca="no"
22370
22371 # Check whether --with-ssl was given.
22372 if test "${with_ssl+set}" = set; then :
22373   withval=$with_ssl; OPT_SSL=$withval
22374 fi
22375
22376
22377 if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
22378    test X"$OPT_SSL" != Xno; then
22379   ssl_msg=
22380
22381     CLEANLDFLAGS="$LDFLAGS"
22382   CLEANCPPFLAGS="$CPPFLAGS"
22383   CLEANLIBS="$LIBS"
22384
22385     case $host in
22386     *-*-msys* | *-*-mingw*)
22387       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
22388 $as_echo_n "checking for gdi32... " >&6; }
22389       my_ac_save_LIBS=$LIBS
22390       LIBS="-lgdi32 $LIBS"
22391       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22392 /* end confdefs.h.  */
22393 #include <windef.h>
22394                    #include <wingdi.h>
22395 int main (void)
22396 {
22397 GdiFlush();
22398  ;
22399  return 0;
22400 }
22401 _ACEOF
22402 if ac_fn_c_try_link "$LINENO"; then :
22403                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22404 $as_echo "yes" >&6; }
22405 else
22406                       LIBS=$my_ac_save_LIBS
22407                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22408 $as_echo "no" >&6; }
22409
22410 fi
22411 rm -f core conftest.err conftest.$ac_objext \
22412     conftest$ac_exeext conftest.$ac_ext
22413       ;;
22414   esac
22415
22416   case "$OPT_SSL" in
22417   yes)
22418         if test x$cross_compiling != xyes; then
22419             PKGTEST="yes"
22420     fi
22421     PREFIX_OPENSSL=/usr/local/ssl
22422     LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22423     ;;
22424   off)
22425         if test x$cross_compiling != xyes; then
22426             PKGTEST="yes"
22427     fi
22428     PREFIX_OPENSSL=
22429     ;;
22430   *)
22431         PKGTEST="no"
22432     PREFIX_OPENSSL=$OPT_SSL
22433
22434                 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
22435     { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
22436 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
22437     if test -f "$OPENSSL_PCDIR/openssl.pc"; then
22438       PKGTEST="yes"
22439     fi
22440
22441             LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22442     if test "$PREFIX_OPENSSL" != "/usr" ; then
22443       SSL_LDFLAGS="-L$LIB_OPENSSL"
22444       SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
22445     fi
22446     SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
22447     ;;
22448   esac
22449
22450   if test "$PKGTEST" = "yes"; then
22451
22452
22453     if test -n "$PKG_CONFIG"; then
22454       PKGCONFIG="$PKG_CONFIG"
22455     else
22456       if test -n "$ac_tool_prefix"; then
22457   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22458 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22460 $as_echo_n "checking for $ac_word... " >&6; }
22461 if ${ac_cv_path_PKGCONFIG+:} false; then :
22462   $as_echo_n "(cached) " >&6
22463 else
22464   case $PKGCONFIG in
22465   [\\/]* | ?:[\\/]*)
22466   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22467   ;;
22468   *)
22469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22470 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22471 for as_dir in $as_dummy
22472 do
22473   IFS=$as_save_IFS
22474   test -z "$as_dir" && as_dir=.
22475     for ac_exec_ext in '' $ac_executable_extensions; do
22476   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22477     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22479     break 2
22480   fi
22481 done
22482   done
22483 IFS=$as_save_IFS
22484
22485   ;;
22486 esac
22487 fi
22488 PKGCONFIG=$ac_cv_path_PKGCONFIG
22489 if test -n "$PKGCONFIG"; then
22490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22491 $as_echo "$PKGCONFIG" >&6; }
22492 else
22493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22494 $as_echo "no" >&6; }
22495 fi
22496
22497
22498 fi
22499 if test -z "$ac_cv_path_PKGCONFIG"; then
22500   ac_pt_PKGCONFIG=$PKGCONFIG
22501   # Extract the first word of "pkg-config", so it can be a program name with args.
22502 set dummy pkg-config; ac_word=$2
22503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22504 $as_echo_n "checking for $ac_word... " >&6; }
22505 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22506   $as_echo_n "(cached) " >&6
22507 else
22508   case $ac_pt_PKGCONFIG in
22509   [\\/]* | ?:[\\/]*)
22510   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22511   ;;
22512   *)
22513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22514 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22515 for as_dir in $as_dummy
22516 do
22517   IFS=$as_save_IFS
22518   test -z "$as_dir" && as_dir=.
22519     for ac_exec_ext in '' $ac_executable_extensions; do
22520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22521     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22523     break 2
22524   fi
22525 done
22526   done
22527 IFS=$as_save_IFS
22528
22529   ;;
22530 esac
22531 fi
22532 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22533 if test -n "$ac_pt_PKGCONFIG"; then
22534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22535 $as_echo "$ac_pt_PKGCONFIG" >&6; }
22536 else
22537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22538 $as_echo "no" >&6; }
22539 fi
22540
22541   if test "x$ac_pt_PKGCONFIG" = x; then
22542     PKGCONFIG="no"
22543   else
22544     case $cross_compiling:$ac_tool_warned in
22545 yes:)
22546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22548 ac_tool_warned=yes ;;
22549 esac
22550     PKGCONFIG=$ac_pt_PKGCONFIG
22551   fi
22552 else
22553   PKGCONFIG="$ac_cv_path_PKGCONFIG"
22554 fi
22555
22556     fi
22557
22558     if test "x$PKGCONFIG" != "xno"; then
22559       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
22560 $as_echo_n "checking for openssl options with pkg-config... " >&6; }
22561             itexists=`
22562     if test -n "$OPENSSL_PCDIR"; then
22563       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22564       export PKG_CONFIG_LIBDIR
22565     fi
22566          $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
22567
22568       if test -z "$itexists"; then
22569                         PKGCONFIG="no"
22570         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22571 $as_echo "no" >&6; }
22572       else
22573         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22574 $as_echo "found" >&6; }
22575       fi
22576     fi
22577
22578
22579     if test "$PKGCONFIG" != "no" ; then
22580       SSL_LIBS=`
22581     if test -n "$OPENSSL_PCDIR"; then
22582       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22583       export PKG_CONFIG_LIBDIR
22584     fi
22585          $PKGCONFIG --libs-only-l openssl 2>/dev/null`
22586
22587       SSL_LDFLAGS=`
22588     if test -n "$OPENSSL_PCDIR"; then
22589       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22590       export PKG_CONFIG_LIBDIR
22591     fi
22592          $PKGCONFIG --libs-only-L openssl 2>/dev/null`
22593
22594       SSL_CPPFLAGS=`
22595     if test -n "$OPENSSL_PCDIR"; then
22596       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22597       export PKG_CONFIG_LIBDIR
22598     fi
22599          $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
22600
22601
22602       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
22603 $as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
22604       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
22605 $as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
22606       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
22607 $as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
22608
22609       LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
22610
22611                                           LIBS="$SSL_LIBS $LIBS"
22612     fi
22613   fi
22614
22615     CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
22616   LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
22617
22618   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
22619 $as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
22620 if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
22621   $as_echo_n "(cached) " >&6
22622 else
22623   ac_check_lib_save_LIBS=$LIBS
22624 LIBS="-lcrypto  $LIBS"
22625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22626 /* end confdefs.h.  */
22627
22628
22629 #ifdef __cplusplus
22630 extern "C"
22631 #endif
22632 char HMAC_Update ();
22633 int main (void)
22634 {
22635 return HMAC_Update ();
22636  ;
22637  return 0;
22638 }
22639 _ACEOF
22640 if ac_fn_c_try_link "$LINENO"; then :
22641   ac_cv_lib_crypto_HMAC_Update=yes
22642 else
22643   ac_cv_lib_crypto_HMAC_Update=no
22644 fi
22645 rm -f core conftest.err conftest.$ac_objext \
22646     conftest$ac_exeext conftest.$ac_ext
22647 LIBS=$ac_check_lib_save_LIBS
22648 fi
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
22650 $as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
22651 if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
22652
22653      HAVECRYPTO="yes"
22654      LIBS="-lcrypto $LIBS"
22655
22656 else
22657
22658      LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
22659      CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
22660      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
22661 $as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
22662 if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
22663   $as_echo_n "(cached) " >&6
22664 else
22665   ac_check_lib_save_LIBS=$LIBS
22666 LIBS="-lcrypto  $LIBS"
22667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22668 /* end confdefs.h.  */
22669
22670
22671 #ifdef __cplusplus
22672 extern "C"
22673 #endif
22674 char HMAC_Init_ex ();
22675 int main (void)
22676 {
22677 return HMAC_Init_ex ();
22678  ;
22679  return 0;
22680 }
22681 _ACEOF
22682 if ac_fn_c_try_link "$LINENO"; then :
22683   ac_cv_lib_crypto_HMAC_Init_ex=yes
22684 else
22685   ac_cv_lib_crypto_HMAC_Init_ex=no
22686 fi
22687 rm -f core conftest.err conftest.$ac_objext \
22688     conftest$ac_exeext conftest.$ac_ext
22689 LIBS=$ac_check_lib_save_LIBS
22690 fi
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
22692 $as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
22693 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
22694
22695        HAVECRYPTO="yes"
22696        LIBS="-lcrypto $LIBS"
22697 else
22698
22699
22700               { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
22701 $as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
22702        LIBS="$LIBS -ldl"
22703        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22704 /* end confdefs.h.  */
22705
22706          #include <openssl/err.h>
22707
22708 int main (void)
22709 {
22710
22711          ERR_clear_error();
22712
22713  ;
22714  return 0;
22715 }
22716 _ACEOF
22717 if ac_fn_c_try_link "$LINENO"; then :
22718
22719          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22720 $as_echo "yes" >&6; }
22721          HAVECRYPTO="yes"
22722
22723 else
22724
22725          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22726 $as_echo "no" >&6; }
22727
22728          { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
22729 $as_echo_n "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
22730          LIBS="$LIBS -lpthread"
22731          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22732 /* end confdefs.h.  */
22733
22734            #include <openssl/err.h>
22735
22736 int main (void)
22737 {
22738
22739            ERR_clear_error();
22740
22741  ;
22742  return 0;
22743 }
22744 _ACEOF
22745 if ac_fn_c_try_link "$LINENO"; then :
22746
22747            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22748 $as_echo "yes" >&6; }
22749            HAVECRYPTO="yes"
22750
22751 else
22752
22753            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22754 $as_echo "no" >&6; }
22755            LDFLAGS="$CLEANLDFLAGS"
22756            CPPFLAGS="$CLEANCPPFLAGS"
22757            LIBS="$CLEANLIBS"
22758
22759
22760 fi
22761 rm -f core conftest.err conftest.$ac_objext \
22762     conftest$ac_exeext conftest.$ac_ext
22763
22764
22765 fi
22766 rm -f core conftest.err conftest.$ac_objext \
22767     conftest$ac_exeext conftest.$ac_ext
22768
22769
22770 fi
22771
22772
22773 fi
22774
22775
22776   if test X"$HAVECRYPTO" = X"yes"; then
22777
22778     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22779 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22780 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22781   $as_echo_n "(cached) " >&6
22782 else
22783   ac_check_lib_save_LIBS=$LIBS
22784 LIBS="-lssl  $LIBS"
22785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22786 /* end confdefs.h.  */
22787
22788
22789 #ifdef __cplusplus
22790 extern "C"
22791 #endif
22792 char SSL_connect ();
22793 int main (void)
22794 {
22795 return SSL_connect ();
22796  ;
22797  return 0;
22798 }
22799 _ACEOF
22800 if ac_fn_c_try_link "$LINENO"; then :
22801   ac_cv_lib_ssl_SSL_connect=yes
22802 else
22803   ac_cv_lib_ssl_SSL_connect=no
22804 fi
22805 rm -f core conftest.err conftest.$ac_objext \
22806     conftest$ac_exeext conftest.$ac_ext
22807 LIBS=$ac_check_lib_save_LIBS
22808 fi
22809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22810 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22811 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22812   cat >>confdefs.h <<_ACEOF
22813 #define HAVE_LIBSSL 1
22814 _ACEOF
22815
22816   LIBS="-lssl $LIBS"
22817
22818 fi
22819
22820
22821     if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22822                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
22823 $as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
22824         OLIBS=$LIBS
22825         LIBS="-lRSAglue -lrsaref $LIBS"
22826         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22827 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22828 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22829   $as_echo_n "(cached) " >&6
22830 else
22831   ac_check_lib_save_LIBS=$LIBS
22832 LIBS="-lssl  $LIBS"
22833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22834 /* end confdefs.h.  */
22835
22836
22837 #ifdef __cplusplus
22838 extern "C"
22839 #endif
22840 char SSL_connect ();
22841 int main (void)
22842 {
22843 return SSL_connect ();
22844  ;
22845  return 0;
22846 }
22847 _ACEOF
22848 if ac_fn_c_try_link "$LINENO"; then :
22849   ac_cv_lib_ssl_SSL_connect=yes
22850 else
22851   ac_cv_lib_ssl_SSL_connect=no
22852 fi
22853 rm -f core conftest.err conftest.$ac_objext \
22854     conftest$ac_exeext conftest.$ac_ext
22855 LIBS=$ac_check_lib_save_LIBS
22856 fi
22857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22858 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22859 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22860   cat >>confdefs.h <<_ACEOF
22861 #define HAVE_LIBSSL 1
22862 _ACEOF
22863
22864   LIBS="-lssl $LIBS"
22865
22866 fi
22867
22868         if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22869                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22870 $as_echo "no" >&6; }
22871             LIBS=$OLIBS
22872         else
22873             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22874 $as_echo "yes" >&6; }
22875         fi
22876
22877     else
22878
22879             for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
22880                        openssl/pem.h openssl/ssl.h openssl/err.h
22881 do :
22882   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22883 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22884 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22885   cat >>confdefs.h <<_ACEOF
22886 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22887 _ACEOF
22888  ssl_msg="OpenSSL"
22889         test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22890         OPENSSL_ENABLED=1
22891
22892 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
22893
22894 fi
22895
22896 done
22897
22898
22899       if test $ac_cv_header_openssl_x509_h = no; then
22900                                 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
22901 do :
22902   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22903 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22904 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22905   cat >>confdefs.h <<_ACEOF
22906 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22907 _ACEOF
22908
22909 fi
22910
22911 done
22912
22913
22914         if test $ac_cv_header_x509_h = yes &&
22915            test $ac_cv_header_crypto_h = yes &&
22916            test $ac_cv_header_ssl_h = yes; then
22917                     ssl_msg="OpenSSL"
22918           OPENSSL_ENABLED=1
22919         fi
22920       fi
22921     fi
22922
22923     if test X"$OPENSSL_ENABLED" != X"1"; then
22924        LIBS="$CLEANLIBS"
22925     fi
22926
22927     if test X"$OPT_SSL" != Xoff &&
22928        test "$OPENSSL_ENABLED" != "1"; then
22929       as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
22930     fi
22931   fi
22932
22933   if test X"$OPENSSL_ENABLED" = X"1"; then
22934             ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init"
22935 if test "x$ac_cv_func_ENGINE_init" = xyes; then :
22936
22937                 for ac_header in openssl/engine.h
22938 do :
22939   ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
22940 if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
22941   cat >>confdefs.h <<_ACEOF
22942 #define HAVE_OPENSSL_ENGINE_H 1
22943 _ACEOF
22944
22945 fi
22946
22947 done
22948
22949                 for ac_func in ENGINE_load_builtin_engines
22950 do :
22951   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22952 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22953 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22954   cat >>confdefs.h <<_ACEOF
22955 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22956 _ACEOF
22957
22958 fi
22959 done
22960
22961
22962 fi
22963
22964
22965
22966     for ac_func in RAND_egd \
22967                     ENGINE_cleanup \
22968                     SSL_get_shutdown \
22969                     SSLv2_client_method
22970 do :
22971   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22972 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22973 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22974   cat >>confdefs.h <<_ACEOF
22975 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22976 _ACEOF
22977
22978 fi
22979 done
22980
22981
22982     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
22983 $as_echo_n "checking for BoringSSL... " >&6; }
22984     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22985 /* end confdefs.h.  */
22986
22987
22988                 #include <openssl/base.h>
22989
22990 int main (void)
22991 {
22992
22993                 #ifndef OPENSSL_IS_BORINGSSL
22994                 #error not boringssl
22995                 #endif
22996
22997  ;
22998  return 0;
22999 }
23000
23001 _ACEOF
23002 if ac_fn_c_try_compile "$LINENO"; then :
23003
23004         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23005 $as_echo "yes" >&6; }
23006
23007 cat >>confdefs.h <<_ACEOF
23008 #define HAVE_BORINGSSL 1
23009 _ACEOF
23010
23011         ssl_msg="BoringSSL"
23012
23013 else
23014
23015         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23016 $as_echo "no" >&6; }
23017
23018 fi
23019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23020
23021     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
23022 $as_echo_n "checking for libressl... " >&6; }
23023     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23024 /* end confdefs.h.  */
23025
23026
23027 #include <openssl/opensslv.h>
23028
23029 int main (void)
23030 {
23031
23032         int dummy = LIBRESSL_VERSION_NUMBER;
23033
23034  ;
23035  return 0;
23036 }
23037
23038 _ACEOF
23039 if ac_fn_c_try_compile "$LINENO"; then :
23040
23041       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23042 $as_echo "yes" >&6; }
23043
23044 cat >>confdefs.h <<_ACEOF
23045 #define HAVE_LIBRESSL 1
23046 _ACEOF
23047
23048       ssl_msg="libressl"
23049
23050 else
23051
23052       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23053 $as_echo "no" >&6; }
23054
23055 fi
23056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23057   fi
23058
23059   if test "$OPENSSL_ENABLED" = "1"; then
23060     if test -n "$LIB_OPENSSL"; then
23061                             if test "x$cross_compiling" != "xyes"; then
23062          LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
23063          export LD_LIBRARY_PATH
23064          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5
23065 $as_echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;}
23066        fi
23067     fi
23068
23069   #
23070
23071   #
23072   tst_api="unknown"
23073   #
23074   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
23075 $as_echo_n "checking for OpenSSL headers version... " >&6; }
23076
23077     OLDCPPFLAGS=$CPPFLAGS
23078   # CPPPFLAG comes from CURL_CPP_P
23079   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
23080       if test -z "$SED"; then
23081     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
23082   fi
23083   if test -z "$GREP"; then
23084     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
23085   fi
23086
23087   tmp_exp=""
23088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23089 /* end confdefs.h.  */
23090
23091
23092 #   ifdef USE_OPENSSL
23093 #     include <openssl/crypto.h>
23094 #   else
23095 #     include <crypto.h>
23096 #   endif
23097
23098 #ifdef OPENSSL_VERSION_NUMBER
23099 CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
23100 #endif
23101
23102
23103 _ACEOF
23104 if ac_fn_c_try_cpp "$LINENO"; then :
23105
23106     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
23107       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
23108       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
23109       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
23110     if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
23111       tmp_exp=""
23112     fi
23113
23114 fi
23115 rm -f conftest.err conftest.i conftest.$ac_ext
23116   if test -z "$tmp_exp"; then
23117     curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
23118
23119   else
23120     curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
23121     curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
23122
23123   fi
23124       CPPFLAGS=$OLDCPPFLAGS
23125
23126   if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
23127     tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
23128     case "x$tst_verlen" in
23129       x6)
23130         tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23131         tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
23132         tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23133         tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23134         ;;
23135       x11|x10)
23136         tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23137         tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23138         tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
23139         tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23140         ;;
23141       *)
23142         tst_api="unknown"
23143         ;;
23144     esac
23145     case $tst_api in
23146       0x111) tst_show="1.1.1" ;;
23147       0x110) tst_show="1.1.0" ;;
23148       0x102) tst_show="1.0.2" ;;
23149       0x101) tst_show="1.0.1" ;;
23150       0x100) tst_show="1.0.0" ;;
23151       0x099) tst_show="0.9.9" ;;
23152       0x098) tst_show="0.9.8" ;;
23153       0x097) tst_show="0.9.7" ;;
23154       0x096) tst_show="0.9.6" ;;
23155       0x095) tst_show="0.9.5" ;;
23156       0x094) tst_show="0.9.4" ;;
23157       0x093) tst_show="0.9.3" ;;
23158       0x092) tst_show="0.9.2" ;;
23159       0x091) tst_show="0.9.1" ;;
23160       *)     tst_show="unknown" ;;
23161     esac
23162     tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
23163   else
23164     tst_show="unknown"
23165   fi
23166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23167 $as_echo "$tst_show" >&6; }
23168   #
23169   curl_openssl_api_headers=$tst_api
23170
23171
23172   #
23173   tst_api="unknown"
23174   #
23175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
23176 $as_echo_n "checking for OpenSSL library version... " >&6; }
23177   if test "$tst_api" = "unknown"; then
23178     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23179 /* end confdefs.h.  */
23180
23181
23182 #define ERR_clear_last_mark innocuous_ERR_clear_last_mark
23183 #ifdef __STDC__
23184 # include <limits.h>
23185 #else
23186 # include <assert.h>
23187 #endif
23188 #undef ERR_clear_last_mark
23189 #ifdef __cplusplus
23190 extern "C"
23191 #endif
23192 char ERR_clear_last_mark ();
23193 #if defined __stub_ERR_clear_last_mark || defined __stub___ERR_clear_last_mark
23194 choke me
23195 #endif
23196
23197 int main (void)
23198 {
23199 return ERR_clear_last_mark ();
23200  ;
23201  return 0;
23202 }
23203
23204 _ACEOF
23205 if ac_fn_c_try_link "$LINENO"; then :
23206
23207       tst_api="0x111"
23208
23209 fi
23210 rm -f core conftest.err conftest.$ac_objext \
23211     conftest$ac_exeext conftest.$ac_ext
23212   fi
23213   if test "$tst_api" = "unknown"; then
23214     case $host in
23215       *-*-vms*)
23216         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23217 /* end confdefs.h.  */
23218
23219
23220 #define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
23221 #ifdef __STDC__
23222 # include <limits.h>
23223 #else
23224 # include <assert.h>
23225 #endif
23226 #undef SSL_CTX_set_not_resumbl_sess_cb
23227 #ifdef __cplusplus
23228 extern "C"
23229 #endif
23230 char SSL_CTX_set_not_resumbl_sess_cb ();
23231 #if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
23232 choke me
23233 #endif
23234
23235 int main (void)
23236 {
23237 return SSL_CTX_set_not_resumbl_sess_cb ();
23238  ;
23239  return 0;
23240 }
23241
23242 _ACEOF
23243 if ac_fn_c_try_link "$LINENO"; then :
23244
23245           tst_api="0x110"
23246
23247 fi
23248 rm -f core conftest.err conftest.$ac_objext \
23249     conftest$ac_exeext conftest.$ac_ext
23250         ;;
23251       *)
23252         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23253 /* end confdefs.h.  */
23254
23255
23256 #define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
23257 #ifdef __STDC__
23258 # include <limits.h>
23259 #else
23260 # include <assert.h>
23261 #endif
23262 #undef SSL_CTX_set_not_resumable_session_callback
23263 #ifdef __cplusplus
23264 extern "C"
23265 #endif
23266 char SSL_CTX_set_not_resumable_session_callback ();
23267 #if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
23268 choke me
23269 #endif
23270
23271 int main (void)
23272 {
23273 return SSL_CTX_set_not_resumable_session_callback ();
23274  ;
23275  return 0;
23276 }
23277
23278 _ACEOF
23279 if ac_fn_c_try_link "$LINENO"; then :
23280
23281           tst_api="0x110"
23282
23283 fi
23284 rm -f core conftest.err conftest.$ac_objext \
23285     conftest$ac_exeext conftest.$ac_ext
23286         ;;
23287     esac
23288   fi
23289   if test "$tst_api" = "unknown"; then
23290     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23291 /* end confdefs.h.  */
23292
23293
23294 #define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
23295 #ifdef __STDC__
23296 # include <limits.h>
23297 #else
23298 # include <assert.h>
23299 #endif
23300 #undef SSL_CONF_CTX_new
23301 #ifdef __cplusplus
23302 extern "C"
23303 #endif
23304 char SSL_CONF_CTX_new ();
23305 #if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
23306 choke me
23307 #endif
23308
23309 int main (void)
23310 {
23311 return SSL_CONF_CTX_new ();
23312  ;
23313  return 0;
23314 }
23315
23316 _ACEOF
23317 if ac_fn_c_try_link "$LINENO"; then :
23318
23319       tst_api="0x102"
23320
23321 fi
23322 rm -f core conftest.err conftest.$ac_objext \
23323     conftest$ac_exeext conftest.$ac_ext
23324   fi
23325   if test "$tst_api" = "unknown"; then
23326     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23327 /* end confdefs.h.  */
23328
23329
23330 #define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
23331 #ifdef __STDC__
23332 # include <limits.h>
23333 #else
23334 # include <assert.h>
23335 #endif
23336 #undef SSL_renegotiate_abbreviated
23337 #ifdef __cplusplus
23338 extern "C"
23339 #endif
23340 char SSL_renegotiate_abbreviated ();
23341 #if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
23342 choke me
23343 #endif
23344
23345 int main (void)
23346 {
23347 return SSL_renegotiate_abbreviated ();
23348  ;
23349  return 0;
23350 }
23351
23352 _ACEOF
23353 if ac_fn_c_try_link "$LINENO"; then :
23354
23355       tst_api="0x101"
23356
23357 fi
23358 rm -f core conftest.err conftest.$ac_objext \
23359     conftest$ac_exeext conftest.$ac_ext
23360   fi
23361   if test "$tst_api" = "unknown"; then
23362     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23363 /* end confdefs.h.  */
23364
23365
23366 #define OBJ_add_sigid innocuous_OBJ_add_sigid
23367 #ifdef __STDC__
23368 # include <limits.h>
23369 #else
23370 # include <assert.h>
23371 #endif
23372 #undef OBJ_add_sigid
23373 #ifdef __cplusplus
23374 extern "C"
23375 #endif
23376 char OBJ_add_sigid ();
23377 #if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
23378 choke me
23379 #endif
23380
23381 int main (void)
23382 {
23383 return OBJ_add_sigid ();
23384  ;
23385  return 0;
23386 }
23387
23388 _ACEOF
23389 if ac_fn_c_try_link "$LINENO"; then :
23390
23391       tst_api="0x100"
23392
23393 fi
23394 rm -f core conftest.err conftest.$ac_objext \
23395     conftest$ac_exeext conftest.$ac_ext
23396   fi
23397   if test "$tst_api" = "unknown"; then
23398     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23399 /* end confdefs.h.  */
23400
23401
23402 #define ERR_set_mark innocuous_ERR_set_mark
23403 #ifdef __STDC__
23404 # include <limits.h>
23405 #else
23406 # include <assert.h>
23407 #endif
23408 #undef ERR_set_mark
23409 #ifdef __cplusplus
23410 extern "C"
23411 #endif
23412 char ERR_set_mark ();
23413 #if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
23414 choke me
23415 #endif
23416
23417 int main (void)
23418 {
23419 return ERR_set_mark ();
23420  ;
23421  return 0;
23422 }
23423
23424 _ACEOF
23425 if ac_fn_c_try_link "$LINENO"; then :
23426
23427       tst_api="0x098"
23428
23429 fi
23430 rm -f core conftest.err conftest.$ac_objext \
23431     conftest$ac_exeext conftest.$ac_ext
23432   fi
23433   if test "$tst_api" = "unknown"; then
23434     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23435 /* end confdefs.h.  */
23436
23437
23438 #define ERR_peek_last_error innocuous_ERR_peek_last_error
23439 #ifdef __STDC__
23440 # include <limits.h>
23441 #else
23442 # include <assert.h>
23443 #endif
23444 #undef ERR_peek_last_error
23445 #ifdef __cplusplus
23446 extern "C"
23447 #endif
23448 char ERR_peek_last_error ();
23449 #if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
23450 choke me
23451 #endif
23452
23453 int main (void)
23454 {
23455 return ERR_peek_last_error ();
23456  ;
23457  return 0;
23458 }
23459
23460 _ACEOF
23461 if ac_fn_c_try_link "$LINENO"; then :
23462
23463       tst_api="0x097"
23464
23465 fi
23466 rm -f core conftest.err conftest.$ac_objext \
23467     conftest$ac_exeext conftest.$ac_ext
23468   fi
23469   if test "$tst_api" = "unknown"; then
23470     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23471 /* end confdefs.h.  */
23472
23473
23474 #define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
23475 #ifdef __STDC__
23476 # include <limits.h>
23477 #else
23478 # include <assert.h>
23479 #endif
23480 #undef c2i_ASN1_OBJECT
23481 #ifdef __cplusplus
23482 extern "C"
23483 #endif
23484 char c2i_ASN1_OBJECT ();
23485 #if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
23486 choke me
23487 #endif
23488
23489 int main (void)
23490 {
23491 return c2i_ASN1_OBJECT ();
23492  ;
23493  return 0;
23494 }
23495
23496 _ACEOF
23497 if ac_fn_c_try_link "$LINENO"; then :
23498
23499       tst_api="0x096"
23500
23501 fi
23502 rm -f core conftest.err conftest.$ac_objext \
23503     conftest$ac_exeext conftest.$ac_ext
23504   fi
23505   if test "$tst_api" = "unknown"; then
23506     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23507 /* end confdefs.h.  */
23508
23509
23510 #define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
23511 #ifdef __STDC__
23512 # include <limits.h>
23513 #else
23514 # include <assert.h>
23515 #endif
23516 #undef SSL_CTX_set_purpose
23517 #ifdef __cplusplus
23518 extern "C"
23519 #endif
23520 char SSL_CTX_set_purpose ();
23521 #if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
23522 choke me
23523 #endif
23524
23525 int main (void)
23526 {
23527 return SSL_CTX_set_purpose ();
23528  ;
23529  return 0;
23530 }
23531
23532 _ACEOF
23533 if ac_fn_c_try_link "$LINENO"; then :
23534
23535       tst_api="0x095"
23536
23537 fi
23538 rm -f core conftest.err conftest.$ac_objext \
23539     conftest$ac_exeext conftest.$ac_ext
23540   fi
23541   if test "$tst_api" = "unknown"; then
23542     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23543 /* end confdefs.h.  */
23544
23545
23546 #define OBJ_obj2txt innocuous_OBJ_obj2txt
23547 #ifdef __STDC__
23548 # include <limits.h>
23549 #else
23550 # include <assert.h>
23551 #endif
23552 #undef OBJ_obj2txt
23553 #ifdef __cplusplus
23554 extern "C"
23555 #endif
23556 char OBJ_obj2txt ();
23557 #if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
23558 choke me
23559 #endif
23560
23561 int main (void)
23562 {
23563 return OBJ_obj2txt ();
23564  ;
23565  return 0;
23566 }
23567
23568 _ACEOF
23569 if ac_fn_c_try_link "$LINENO"; then :
23570
23571       tst_api="0x094"
23572
23573 fi
23574 rm -f core conftest.err conftest.$ac_objext \
23575     conftest$ac_exeext conftest.$ac_ext
23576   fi
23577   if test "$tst_api" = "unknown"; then
23578     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23579 /* end confdefs.h.  */
23580
23581
23582 #define SSL_get_verify_depth innocuous_SSL_get_verify_depth
23583 #ifdef __STDC__
23584 # include <limits.h>
23585 #else
23586 # include <assert.h>
23587 #endif
23588 #undef SSL_get_verify_depth
23589 #ifdef __cplusplus
23590 extern "C"
23591 #endif
23592 char SSL_get_verify_depth ();
23593 #if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
23594 choke me
23595 #endif
23596
23597 int main (void)
23598 {
23599 return SSL_get_verify_depth ();
23600  ;
23601  return 0;
23602 }
23603
23604 _ACEOF
23605 if ac_fn_c_try_link "$LINENO"; then :
23606
23607       tst_api="0x093"
23608
23609 fi
23610 rm -f core conftest.err conftest.$ac_objext \
23611     conftest$ac_exeext conftest.$ac_ext
23612   fi
23613   if test "$tst_api" = "unknown"; then
23614     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23615 /* end confdefs.h.  */
23616
23617
23618 #define SSL_library_init innocuous_SSL_library_init
23619 #ifdef __STDC__
23620 # include <limits.h>
23621 #else
23622 # include <assert.h>
23623 #endif
23624 #undef SSL_library_init
23625 #ifdef __cplusplus
23626 extern "C"
23627 #endif
23628 char SSL_library_init ();
23629 #if defined __stub_SSL_library_init || defined __stub___SSL_library_init
23630 choke me
23631 #endif
23632
23633 int main (void)
23634 {
23635 return SSL_library_init ();
23636  ;
23637  return 0;
23638 }
23639
23640 _ACEOF
23641 if ac_fn_c_try_link "$LINENO"; then :
23642
23643       tst_api="0x092"
23644
23645 fi
23646 rm -f core conftest.err conftest.$ac_objext \
23647     conftest$ac_exeext conftest.$ac_ext
23648   fi
23649   if test "$tst_api" = "unknown"; then
23650     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23651 /* end confdefs.h.  */
23652
23653
23654 #define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
23655 #ifdef __STDC__
23656 # include <limits.h>
23657 #else
23658 # include <assert.h>
23659 #endif
23660 #undef SSL_CTX_set_cipher_list
23661 #ifdef __cplusplus
23662 extern "C"
23663 #endif
23664 char SSL_CTX_set_cipher_list ();
23665 #if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
23666 choke me
23667 #endif
23668
23669 int main (void)
23670 {
23671 return SSL_CTX_set_cipher_list ();
23672  ;
23673  return 0;
23674 }
23675
23676 _ACEOF
23677 if ac_fn_c_try_link "$LINENO"; then :
23678
23679       tst_api="0x091"
23680
23681 fi
23682 rm -f core conftest.err conftest.$ac_objext \
23683     conftest$ac_exeext conftest.$ac_ext
23684   fi
23685   case $tst_api in
23686     0x111) tst_show="1.1.1" ;;
23687     0x110) tst_show="1.1.0" ;;
23688     0x102) tst_show="1.0.2" ;;
23689     0x101) tst_show="1.0.1" ;;
23690     0x100) tst_show="1.0.0" ;;
23691     0x099) tst_show="0.9.9" ;;
23692     0x098) tst_show="0.9.8" ;;
23693     0x097) tst_show="0.9.7" ;;
23694     0x096) tst_show="0.9.6" ;;
23695     0x095) tst_show="0.9.5" ;;
23696     0x094) tst_show="0.9.4" ;;
23697     0x093) tst_show="0.9.3" ;;
23698     0x092) tst_show="0.9.2" ;;
23699     0x091) tst_show="0.9.1" ;;
23700     *)     tst_show="unknown" ;;
23701   esac
23702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23703 $as_echo "$tst_show" >&6; }
23704   #
23705   curl_openssl_api_library=$tst_api
23706
23707   #
23708   tst_match="yes"
23709   #
23710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
23711 $as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
23712   if test "$curl_openssl_api_headers" = "unknown" ||
23713     test "$curl_openssl_api_library" = "unknown"; then
23714     tst_match="fail"
23715     tst_warns="Can not compare OpenSSL headers and library versions."
23716   elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
23717     tst_match="no"
23718     tst_warns="OpenSSL headers and library versions do not match."
23719   fi
23720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
23721 $as_echo "$tst_match" >&6; }
23722   if test "$tst_match" != "yes"; then
23723     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
23724 $as_echo "$as_me: WARNING: $tst_warns" >&2;}
23725   fi
23726
23727   fi
23728
23729   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
23730 fi
23731
23732
23733 if test X"$OPENSSL_ENABLED" = X"1"; then
23734
23735 # Check whether --with-egd-socket was given.
23736 if test "${with_egd_socket+set}" = set; then :
23737   withval=$with_egd_socket;  EGD_SOCKET="$withval"
23738
23739 fi
23740
23741   if test -n "$EGD_SOCKET" ; then
23742
23743 cat >>confdefs.h <<_ACEOF
23744 #define EGD_SOCKET "$EGD_SOCKET"
23745 _ACEOF
23746
23747   fi
23748
23749
23750 # Check whether --with-random was given.
23751 if test "${with_random+set}" = set; then :
23752   withval=$with_random;  RANDOM_FILE="$withval"
23753 else
23754
23755           if test x$cross_compiling != xyes; then
23756                         as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
23757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
23758 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
23759 if eval \${$as_ac_File+:} false; then :
23760   $as_echo_n "(cached) " >&6
23761 else
23762   test "$cross_compiling" = yes &&
23763   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23764 if test -r ""/dev/urandom""; then
23765   eval "$as_ac_File=yes"
23766 else
23767   eval "$as_ac_File=no"
23768 fi
23769 fi
23770 eval ac_res=\$$as_ac_File
23771                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23772 $as_echo "$ac_res" >&6; }
23773 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
23774    RANDOM_FILE="/dev/urandom"
23775 fi
23776
23777           else
23778             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
23779 $as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
23780           fi
23781
23782
23783 fi
23784
23785   if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
23786
23787
23788 cat >>confdefs.h <<_ACEOF
23789 #define RANDOM_FILE "$RANDOM_FILE"
23790 _ACEOF
23791
23792   fi
23793 fi
23794
23795 if test "$OPENSSL_ENABLED" = "1"; then
23796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
23797 $as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
23798 if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
23799   $as_echo_n "(cached) " >&6
23800 else
23801   ac_check_lib_save_LIBS=$LIBS
23802 LIBS="-lcrypto  $LIBS"
23803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23804 /* end confdefs.h.  */
23805
23806
23807 #ifdef __cplusplus
23808 extern "C"
23809 #endif
23810 char SRP_Calc_client_key ();
23811 int main (void)
23812 {
23813 return SRP_Calc_client_key ();
23814  ;
23815  return 0;
23816 }
23817 _ACEOF
23818 if ac_fn_c_try_link "$LINENO"; then :
23819   ac_cv_lib_crypto_SRP_Calc_client_key=yes
23820 else
23821   ac_cv_lib_crypto_SRP_Calc_client_key=no
23822 fi
23823 rm -f core conftest.err conftest.$ac_objext \
23824     conftest$ac_exeext conftest.$ac_ext
23825 LIBS=$ac_check_lib_save_LIBS
23826 fi
23827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
23828 $as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
23829 if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
23830
23831
23832 $as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
23833
23834      HAVE_OPENSSL_SRP=1
23835
23836
23837 fi
23838
23839 fi
23840
23841
23842 OPT_GNUTLS=no
23843
23844
23845 # Check whether --with-gnutls was given.
23846 if test "${with_gnutls+set}" = set; then :
23847   withval=$with_gnutls; OPT_GNUTLS=$withval
23848 fi
23849
23850
23851 if test -z "$ssl_backends" -o "x$OPT_GNUTLS" != xno; then
23852   ssl_msg=
23853
23854   if test X"$OPT_GNUTLS" != Xno; then
23855
23856     addld=""
23857     addlib=""
23858     gtlslib=""
23859     version=""
23860     addcflags=""
23861
23862     if test "x$OPT_GNUTLS" = "xyes"; then
23863
23864     if test -n "$PKG_CONFIG"; then
23865       PKGCONFIG="$PKG_CONFIG"
23866     else
23867       if test -n "$ac_tool_prefix"; then
23868   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23869 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23871 $as_echo_n "checking for $ac_word... " >&6; }
23872 if ${ac_cv_path_PKGCONFIG+:} false; then :
23873   $as_echo_n "(cached) " >&6
23874 else
23875   case $PKGCONFIG in
23876   [\\/]* | ?:[\\/]*)
23877   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23878   ;;
23879   *)
23880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23881 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23882 for as_dir in $as_dummy
23883 do
23884   IFS=$as_save_IFS
23885   test -z "$as_dir" && as_dir=.
23886     for ac_exec_ext in '' $ac_executable_extensions; do
23887   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23888     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23890     break 2
23891   fi
23892 done
23893   done
23894 IFS=$as_save_IFS
23895
23896   ;;
23897 esac
23898 fi
23899 PKGCONFIG=$ac_cv_path_PKGCONFIG
23900 if test -n "$PKGCONFIG"; then
23901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23902 $as_echo "$PKGCONFIG" >&6; }
23903 else
23904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23905 $as_echo "no" >&6; }
23906 fi
23907
23908
23909 fi
23910 if test -z "$ac_cv_path_PKGCONFIG"; then
23911   ac_pt_PKGCONFIG=$PKGCONFIG
23912   # Extract the first word of "pkg-config", so it can be a program name with args.
23913 set dummy pkg-config; ac_word=$2
23914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23915 $as_echo_n "checking for $ac_word... " >&6; }
23916 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23917   $as_echo_n "(cached) " >&6
23918 else
23919   case $ac_pt_PKGCONFIG in
23920   [\\/]* | ?:[\\/]*)
23921   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23922   ;;
23923   *)
23924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23925 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23926 for as_dir in $as_dummy
23927 do
23928   IFS=$as_save_IFS
23929   test -z "$as_dir" && as_dir=.
23930     for ac_exec_ext in '' $ac_executable_extensions; do
23931   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23932     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23934     break 2
23935   fi
23936 done
23937   done
23938 IFS=$as_save_IFS
23939
23940   ;;
23941 esac
23942 fi
23943 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23944 if test -n "$ac_pt_PKGCONFIG"; then
23945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23946 $as_echo "$ac_pt_PKGCONFIG" >&6; }
23947 else
23948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23949 $as_echo "no" >&6; }
23950 fi
23951
23952   if test "x$ac_pt_PKGCONFIG" = x; then
23953     PKGCONFIG="no"
23954   else
23955     case $cross_compiling:$ac_tool_warned in
23956 yes:)
23957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23959 ac_tool_warned=yes ;;
23960 esac
23961     PKGCONFIG=$ac_pt_PKGCONFIG
23962   fi
23963 else
23964   PKGCONFIG="$ac_cv_path_PKGCONFIG"
23965 fi
23966
23967     fi
23968
23969     if test "x$PKGCONFIG" != "xno"; then
23970       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
23971 $as_echo_n "checking for gnutls options with pkg-config... " >&6; }
23972             itexists=`
23973     if test -n ""; then
23974       PKG_CONFIG_LIBDIR=""
23975       export PKG_CONFIG_LIBDIR
23976     fi
23977          $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
23978
23979       if test -z "$itexists"; then
23980                         PKGCONFIG="no"
23981         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23982 $as_echo "no" >&6; }
23983       else
23984         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23985 $as_echo "found" >&6; }
23986       fi
23987     fi
23988
23989
23990       if test "$PKGCONFIG" != "no" ; then
23991         addlib=`$PKGCONFIG --libs-only-l gnutls`
23992         addld=`$PKGCONFIG --libs-only-L gnutls`
23993         addcflags=`$PKGCONFIG --cflags-only-I gnutls`
23994         version=`$PKGCONFIG --modversion gnutls`
23995         gtlslib=`echo $addld | $SED -e 's/-L//'`
23996       else
23997                         check=`libgnutls-config --version 2>/dev/null`
23998         if test -n "$check"; then
23999           addlib=`libgnutls-config --libs`
24000           addcflags=`libgnutls-config --cflags`
24001           version=`libgnutls-config --version`
24002           gtlslib=`libgnutls-config --prefix`/lib$libsuff
24003         fi
24004       fi
24005     else
24006                   cfg=$OPT_GNUTLS/bin/libgnutls-config
24007       check=`$cfg --version 2>/dev/null`
24008       if test -n "$check"; then
24009         addlib=`$cfg --libs`
24010         addcflags=`$cfg --cflags`
24011         version=`$cfg --version`
24012         gtlslib=`$cfg --prefix`/lib$libsuff
24013       else
24014                 addlib=-lgnutls
24015         addld=-L$OPT_GNUTLS/lib$libsuff
24016         addcflags=-I$OPT_GNUTLS/include
24017         version="" # we just don't know
24018         gtlslib=$OPT_GNUTLS/lib$libsuff
24019       fi
24020     fi
24021
24022     if test -z "$version"; then
24023             version="unknown"
24024     fi
24025
24026     if test -n "$addlib"; then
24027
24028       CLEANLIBS="$LIBS"
24029       CLEANCPPFLAGS="$CPPFLAGS"
24030       CLEANLDFLAGS="$LDFLAGS"
24031
24032       LIBS="$addlib $LIBS"
24033       LDFLAGS="$LDFLAGS $addld"
24034       if test "$addcflags" != "-I/usr/include"; then
24035          CPPFLAGS="$CPPFLAGS $addcflags"
24036       fi
24037
24038       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
24039 $as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
24040 if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
24041   $as_echo_n "(cached) " >&6
24042 else
24043   ac_check_lib_save_LIBS=$LIBS
24044 LIBS="-lgnutls  $LIBS"
24045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24046 /* end confdefs.h.  */
24047
24048
24049 #ifdef __cplusplus
24050 extern "C"
24051 #endif
24052 char gnutls_check_version ();
24053 int main (void)
24054 {
24055 return gnutls_check_version ();
24056  ;
24057  return 0;
24058 }
24059 _ACEOF
24060 if ac_fn_c_try_link "$LINENO"; then :
24061   ac_cv_lib_gnutls_gnutls_check_version=yes
24062 else
24063   ac_cv_lib_gnutls_gnutls_check_version=no
24064 fi
24065 rm -f core conftest.err conftest.$ac_objext \
24066     conftest$ac_exeext conftest.$ac_ext
24067 LIBS=$ac_check_lib_save_LIBS
24068 fi
24069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
24070 $as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
24071 if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
24072
24073
24074 $as_echo "#define USE_GNUTLS 1" >>confdefs.h
24075
24076        USE_GNUTLS=1
24077
24078        GNUTLS_ENABLED=1
24079        USE_GNUTLS="yes"
24080        ssl_msg="GnuTLS"
24081        test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24082
24083 else
24084
24085          LIBS="$CLEANLIBS"
24086          CPPFLAGS="$CLEANCPPFLAGS"
24087
24088 fi
24089
24090
24091       if test "x$USE_GNUTLS" = "xyes"; then
24092         { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
24093 $as_echo "$as_me: detected GnuTLS version $version" >&6;}
24094
24095         if test -n "$gtlslib"; then
24096                                                   if test "x$cross_compiling" != "xyes"; then
24097             LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib"
24098             export LD_LIBRARY_PATH
24099             { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to LD_LIBRARY_PATH" >&5
24100 $as_echo "$as_me: Added $gtlslib to LD_LIBRARY_PATH" >&6;}
24101           fi
24102         fi
24103         for ac_func in gnutls_certificate_set_x509_key_file2 gnutls_alpn_set_protocols gnutls_ocsp_req_init
24104 do :
24105   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24106 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24107 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24108   cat >>confdefs.h <<_ACEOF
24109 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24110 _ACEOF
24111
24112 fi
24113 done
24114
24115       fi
24116
24117     fi
24118
24119   fi
24120   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24121 fi
24122
24123
24124 if test "$GNUTLS_ENABLED" = "1"; then
24125   USE_GNUTLS_NETTLE=
24126   # First check if we can detect either crypto library via transitive linking
24127   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
24128 $as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
24129 if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
24130   $as_echo_n "(cached) " >&6
24131 else
24132   ac_check_lib_save_LIBS=$LIBS
24133 LIBS="-lgnutls  $LIBS"
24134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24135 /* end confdefs.h.  */
24136
24137
24138 #ifdef __cplusplus
24139 extern "C"
24140 #endif
24141 char nettle_MD5Init ();
24142 int main (void)
24143 {
24144 return nettle_MD5Init ();
24145  ;
24146  return 0;
24147 }
24148 _ACEOF
24149 if ac_fn_c_try_link "$LINENO"; then :
24150   ac_cv_lib_gnutls_nettle_MD5Init=yes
24151 else
24152   ac_cv_lib_gnutls_nettle_MD5Init=no
24153 fi
24154 rm -f core conftest.err conftest.$ac_objext \
24155     conftest$ac_exeext conftest.$ac_ext
24156 LIBS=$ac_check_lib_save_LIBS
24157 fi
24158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
24159 $as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
24160 if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
24161    USE_GNUTLS_NETTLE=1
24162 fi
24163
24164   if test "$USE_GNUTLS_NETTLE" = ""; then
24165     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
24166 $as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
24167 if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
24168   $as_echo_n "(cached) " >&6
24169 else
24170   ac_check_lib_save_LIBS=$LIBS
24171 LIBS="-lgnutls  $LIBS"
24172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24173 /* end confdefs.h.  */
24174
24175
24176 #ifdef __cplusplus
24177 extern "C"
24178 #endif
24179 char gcry_control ();
24180 int main (void)
24181 {
24182 return gcry_control ();
24183  ;
24184  return 0;
24185 }
24186 _ACEOF
24187 if ac_fn_c_try_link "$LINENO"; then :
24188   ac_cv_lib_gnutls_gcry_control=yes
24189 else
24190   ac_cv_lib_gnutls_gcry_control=no
24191 fi
24192 rm -f core conftest.err conftest.$ac_objext \
24193     conftest$ac_exeext conftest.$ac_ext
24194 LIBS=$ac_check_lib_save_LIBS
24195 fi
24196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
24197 $as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
24198 if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
24199    USE_GNUTLS_NETTLE=0
24200 fi
24201
24202   fi
24203   # If not, try linking directly to both of them to see if they are available
24204   if test "$USE_GNUTLS_NETTLE" = ""; then
24205     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
24206 $as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
24207 if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
24208   $as_echo_n "(cached) " >&6
24209 else
24210   ac_check_lib_save_LIBS=$LIBS
24211 LIBS="-lnettle  $LIBS"
24212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24213 /* end confdefs.h.  */
24214
24215
24216 #ifdef __cplusplus
24217 extern "C"
24218 #endif
24219 char nettle_MD5Init ();
24220 int main (void)
24221 {
24222 return nettle_MD5Init ();
24223  ;
24224  return 0;
24225 }
24226 _ACEOF
24227 if ac_fn_c_try_link "$LINENO"; then :
24228   ac_cv_lib_nettle_nettle_MD5Init=yes
24229 else
24230   ac_cv_lib_nettle_nettle_MD5Init=no
24231 fi
24232 rm -f core conftest.err conftest.$ac_objext \
24233     conftest$ac_exeext conftest.$ac_ext
24234 LIBS=$ac_check_lib_save_LIBS
24235 fi
24236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
24237 $as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
24238 if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
24239    USE_GNUTLS_NETTLE=1
24240 fi
24241
24242   fi
24243   if test "$USE_GNUTLS_NETTLE" = ""; then
24244     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
24245 $as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
24246 if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
24247   $as_echo_n "(cached) " >&6
24248 else
24249   ac_check_lib_save_LIBS=$LIBS
24250 LIBS="-lgcrypt  $LIBS"
24251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24252 /* end confdefs.h.  */
24253
24254
24255 #ifdef __cplusplus
24256 extern "C"
24257 #endif
24258 char gcry_control ();
24259 int main (void)
24260 {
24261 return gcry_control ();
24262  ;
24263  return 0;
24264 }
24265 _ACEOF
24266 if ac_fn_c_try_link "$LINENO"; then :
24267   ac_cv_lib_gcrypt_gcry_control=yes
24268 else
24269   ac_cv_lib_gcrypt_gcry_control=no
24270 fi
24271 rm -f core conftest.err conftest.$ac_objext \
24272     conftest$ac_exeext conftest.$ac_ext
24273 LIBS=$ac_check_lib_save_LIBS
24274 fi
24275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
24276 $as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
24277 if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
24278    USE_GNUTLS_NETTLE=0
24279 fi
24280
24281   fi
24282   if test "$USE_GNUTLS_NETTLE" = ""; then
24283     as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
24284   fi
24285   if test "$USE_GNUTLS_NETTLE" = "1"; then
24286
24287 $as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
24288
24289     USE_GNUTLS_NETTLE=1
24290
24291     LIBS="-lnettle $LIBS"
24292   else
24293     LIBS="-lgcrypt $LIBS"
24294   fi
24295 fi
24296
24297 if test "$GNUTLS_ENABLED" = "1"; then
24298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
24299 $as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
24300 if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
24301   $as_echo_n "(cached) " >&6
24302 else
24303   ac_check_lib_save_LIBS=$LIBS
24304 LIBS="-lgnutls  $LIBS"
24305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24306 /* end confdefs.h.  */
24307
24308
24309 #ifdef __cplusplus
24310 extern "C"
24311 #endif
24312 char gnutls_srp_verifier ();
24313 int main (void)
24314 {
24315 return gnutls_srp_verifier ();
24316  ;
24317  return 0;
24318 }
24319 _ACEOF
24320 if ac_fn_c_try_link "$LINENO"; then :
24321   ac_cv_lib_gnutls_gnutls_srp_verifier=yes
24322 else
24323   ac_cv_lib_gnutls_gnutls_srp_verifier=no
24324 fi
24325 rm -f core conftest.err conftest.$ac_objext \
24326     conftest$ac_exeext conftest.$ac_ext
24327 LIBS=$ac_check_lib_save_LIBS
24328 fi
24329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
24330 $as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
24331 if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
24332
24333
24334 $as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
24335
24336      HAVE_GNUTLS_SRP=1
24337
24338
24339 fi
24340
24341 fi
24342
24343
24344 OPT_POLARSSL=no
24345
24346 _cppflags=$CPPFLAGS
24347 _ldflags=$LDFLAGS
24348
24349 # Check whether --with-polarssl was given.
24350 if test "${with_polarssl+set}" = set; then :
24351   withval=$with_polarssl; OPT_POLARSSL=$withval
24352 fi
24353
24354
24355 if test -z "$ssl_backends" -o "x$OPT_POLARSSL" != xno; then
24356   ssl_msg=
24357
24358   if test X"$OPT_POLARSSL" != Xno; then
24359
24360     if test "$OPT_POLARSSL" = "yes"; then
24361       OPT_POLARSSL=""
24362     fi
24363
24364     if test -z "$OPT_POLARSSL" ; then
24365
24366       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
24367 $as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
24368 if ${ac_cv_lib_polarssl_havege_init+:} false; then :
24369   $as_echo_n "(cached) " >&6
24370 else
24371   ac_check_lib_save_LIBS=$LIBS
24372 LIBS="-lpolarssl  $LIBS"
24373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24374 /* end confdefs.h.  */
24375
24376
24377 #ifdef __cplusplus
24378 extern "C"
24379 #endif
24380 char havege_init ();
24381 int main (void)
24382 {
24383 return havege_init ();
24384  ;
24385  return 0;
24386 }
24387 _ACEOF
24388 if ac_fn_c_try_link "$LINENO"; then :
24389   ac_cv_lib_polarssl_havege_init=yes
24390 else
24391   ac_cv_lib_polarssl_havege_init=no
24392 fi
24393 rm -f core conftest.err conftest.$ac_objext \
24394     conftest$ac_exeext conftest.$ac_ext
24395 LIBS=$ac_check_lib_save_LIBS
24396 fi
24397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
24398 $as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
24399 if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
24400
24401
24402 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
24403
24404          USE_POLARSSL=1
24405
24406          POLARSSL_ENABLED=1
24407          USE_POLARSSL="yes"
24408          ssl_msg="PolarSSL"
24409          test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24410
24411 fi
24412
24413     fi
24414
24415     addld=""
24416     addlib=""
24417     addcflags=""
24418     polarssllib=""
24419
24420     if test "x$USE_POLARSSL" != "xyes"; then
24421             addld=-L$OPT_POLARSSL/lib$libsuff
24422       addcflags=-I$OPT_POLARSSL/include
24423       polarssllib=$OPT_POLARSSL/lib$libsuff
24424
24425       LDFLAGS="$LDFLAGS $addld"
24426       if test "$addcflags" != "-I/usr/include"; then
24427          CPPFLAGS="$CPPFLAGS $addcflags"
24428       fi
24429
24430       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
24431 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
24432 if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
24433   $as_echo_n "(cached) " >&6
24434 else
24435   ac_check_lib_save_LIBS=$LIBS
24436 LIBS="-lpolarssl  $LIBS"
24437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24438 /* end confdefs.h.  */
24439
24440
24441 #ifdef __cplusplus
24442 extern "C"
24443 #endif
24444 char ssl_init ();
24445 int main (void)
24446 {
24447 return ssl_init ();
24448  ;
24449  return 0;
24450 }
24451 _ACEOF
24452 if ac_fn_c_try_link "$LINENO"; then :
24453   ac_cv_lib_polarssl_ssl_init=yes
24454 else
24455   ac_cv_lib_polarssl_ssl_init=no
24456 fi
24457 rm -f core conftest.err conftest.$ac_objext \
24458     conftest$ac_exeext conftest.$ac_ext
24459 LIBS=$ac_check_lib_save_LIBS
24460 fi
24461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
24462 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
24463 if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
24464
24465
24466 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
24467
24468        USE_POLARSSL=1
24469
24470        POLARSSL_ENABLED=1
24471        USE_POLARSSL="yes"
24472        ssl_msg="PolarSSL"
24473        test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24474
24475 else
24476
24477          CPPFLAGS=$_cppflags
24478          LDFLAGS=$_ldflags
24479
24480 fi
24481
24482     fi
24483
24484     if test "x$USE_POLARSSL" = "xyes"; then
24485       { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
24486 $as_echo "$as_me: detected PolarSSL" >&6;}
24487
24488       LIBS="-lpolarssl $LIBS"
24489
24490       if test -n "$polarssllib"; then
24491                                         if test "x$cross_compiling" != "xyes"; then
24492           LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$polarssllib"
24493           export LD_LIBRARY_PATH
24494           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to LD_LIBRARY_PATH" >&5
24495 $as_echo "$as_me: Added $polarssllib to LD_LIBRARY_PATH" >&6;}
24496         fi
24497       fi
24498     fi
24499
24500   fi
24501   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24502 fi
24503
24504
24505 OPT_MBEDTLS=no
24506
24507 _cppflags=$CPPFLAGS
24508 _ldflags=$LDFLAGS
24509
24510 # Check whether --with-mbedtls was given.
24511 if test "${with_mbedtls+set}" = set; then :
24512   withval=$with_mbedtls; OPT_MBEDTLS=$withval
24513 fi
24514
24515
24516 if test -z "$ssl_backends" -o "x$OPT_MBEDTLS" != xno; then
24517   ssl_msg=
24518
24519   if test X"$OPT_MBEDTLS" != Xno; then
24520
24521     if test "$OPT_MBEDTLS" = "yes"; then
24522       OPT_MBEDTLS=""
24523     fi
24524
24525     if test -z "$OPT_MBEDTLS" ; then
24526
24527       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
24528 $as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
24529 if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then :
24530   $as_echo_n "(cached) " >&6
24531 else
24532   ac_check_lib_save_LIBS=$LIBS
24533 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24535 /* end confdefs.h.  */
24536
24537
24538 #ifdef __cplusplus
24539 extern "C"
24540 #endif
24541 char mbedtls_havege_init ();
24542 int main (void)
24543 {
24544 return mbedtls_havege_init ();
24545  ;
24546  return 0;
24547 }
24548 _ACEOF
24549 if ac_fn_c_try_link "$LINENO"; then :
24550   ac_cv_lib_mbedtls_mbedtls_havege_init=yes
24551 else
24552   ac_cv_lib_mbedtls_mbedtls_havege_init=no
24553 fi
24554 rm -f core conftest.err conftest.$ac_objext \
24555     conftest$ac_exeext conftest.$ac_ext
24556 LIBS=$ac_check_lib_save_LIBS
24557 fi
24558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
24559 $as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
24560 if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then :
24561
24562
24563 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24564
24565          USE_MBEDTLS=1
24566
24567          MBEDTLS_ENABLED=1
24568          USE_MBEDTLS="yes"
24569          ssl_msg="mbedTLS"
24570          test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24571
24572 fi
24573
24574     fi
24575
24576     addld=""
24577     addlib=""
24578     addcflags=""
24579     mbedtlslib=""
24580
24581     if test "x$USE_MBEDTLS" != "xyes"; then
24582             addld=-L$OPT_MBEDTLS/lib$libsuff
24583       addcflags=-I$OPT_MBEDTLS/include
24584       mbedtlslib=$OPT_MBEDTLS/lib$libsuff
24585
24586       LDFLAGS="$LDFLAGS $addld"
24587       if test "$addcflags" != "-I/usr/include"; then
24588          CPPFLAGS="$CPPFLAGS $addcflags"
24589       fi
24590
24591       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
24592 $as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
24593 if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
24594   $as_echo_n "(cached) " >&6
24595 else
24596   ac_check_lib_save_LIBS=$LIBS
24597 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24599 /* end confdefs.h.  */
24600
24601
24602 #ifdef __cplusplus
24603 extern "C"
24604 #endif
24605 char mbedtls_ssl_init ();
24606 int main (void)
24607 {
24608 return mbedtls_ssl_init ();
24609  ;
24610  return 0;
24611 }
24612 _ACEOF
24613 if ac_fn_c_try_link "$LINENO"; then :
24614   ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
24615 else
24616   ac_cv_lib_mbedtls_mbedtls_ssl_init=no
24617 fi
24618 rm -f core conftest.err conftest.$ac_objext \
24619     conftest$ac_exeext conftest.$ac_ext
24620 LIBS=$ac_check_lib_save_LIBS
24621 fi
24622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
24623 $as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
24624 if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
24625
24626
24627 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24628
24629        USE_MBEDTLS=1
24630
24631        MBEDTLS_ENABLED=1
24632        USE_MBEDTLS="yes"
24633        ssl_msg="mbedTLS"
24634        test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24635
24636 else
24637
24638          CPPFLAGS=$_cppflags
24639          LDFLAGS=$_ldflags
24640
24641 fi
24642
24643     fi
24644
24645     if test "x$USE_MBEDTLS" = "xyes"; then
24646       { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
24647 $as_echo "$as_me: detected mbedTLS" >&6;}
24648
24649       LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24650
24651       if test -n "$mbedtlslib"; then
24652                                         if test "x$cross_compiling" != "xyes"; then
24653           LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mbedtlslib"
24654           export LD_LIBRARY_PATH
24655           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to LD_LIBRARY_PATH" >&5
24656 $as_echo "$as_me: Added $mbedtlslib to LD_LIBRARY_PATH" >&6;}
24657         fi
24658       fi
24659     fi
24660
24661   fi
24662   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24663 fi
24664
24665
24666 OPT_CYASSL=no
24667
24668 _cppflags=$CPPFLAGS
24669 _ldflags=$LDFLAGS
24670
24671 # Check whether --with-cyassl was given.
24672 if test "${with_cyassl+set}" = set; then :
24673   withval=$with_cyassl; OPT_CYASSL=$withval
24674 fi
24675
24676
24677 if test -z "$ssl_backends" -o "x$OPT_CYASSL" != xno; then
24678   ssl_msg=
24679
24680   if test X"$OPT_CYASSL" != Xno; then
24681
24682     if test "$OPT_CYASSL" = "yes"; then
24683       OPT_CYASSL=""
24684     fi
24685
24686
24687     cyassllibname=cyassl
24688
24689     if test -z "$OPT_CYASSL" ; then
24690
24691       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24692 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24693 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24694   $as_echo_n "(cached) " >&6
24695 else
24696   ac_check_lib_save_LIBS=$LIBS
24697 LIBS="-lcyassl  $LIBS"
24698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24699 /* end confdefs.h.  */
24700
24701
24702 #ifdef __cplusplus
24703 extern "C"
24704 #endif
24705 char CyaSSL_Init ();
24706 int main (void)
24707 {
24708 return CyaSSL_Init ();
24709  ;
24710  return 0;
24711 }
24712 _ACEOF
24713 if ac_fn_c_try_link "$LINENO"; then :
24714   ac_cv_lib_cyassl_CyaSSL_Init=yes
24715 else
24716   ac_cv_lib_cyassl_CyaSSL_Init=no
24717 fi
24718 rm -f core conftest.err conftest.$ac_objext \
24719     conftest$ac_exeext conftest.$ac_ext
24720 LIBS=$ac_check_lib_save_LIBS
24721 fi
24722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24723 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24724 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24725
24726
24727 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24728
24729          USE_CYASSL=1
24730
24731          CYASSL_ENABLED=1
24732          USE_CYASSL="yes"
24733          ssl_msg="CyaSSL"
24734          test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24735
24736 fi
24737
24738     fi
24739
24740     addld=""
24741     addlib=""
24742     addcflags=""
24743     cyassllib=""
24744
24745     if test "x$USE_CYASSL" != "xyes"; then
24746             addld=-L$OPT_CYASSL/lib$libsuff
24747       addcflags=-I$OPT_CYASSL/include
24748       cyassllib=$OPT_CYASSL/lib$libsuff
24749
24750       LDFLAGS="$LDFLAGS $addld"
24751       if test "$addcflags" != "-I/usr/include"; then
24752          CPPFLAGS="$CPPFLAGS $addcflags"
24753       fi
24754
24755       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24756 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24757 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24758   $as_echo_n "(cached) " >&6
24759 else
24760   ac_check_lib_save_LIBS=$LIBS
24761 LIBS="-lcyassl  $LIBS"
24762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24763 /* end confdefs.h.  */
24764
24765
24766 #ifdef __cplusplus
24767 extern "C"
24768 #endif
24769 char CyaSSL_Init ();
24770 int main (void)
24771 {
24772 return CyaSSL_Init ();
24773  ;
24774  return 0;
24775 }
24776 _ACEOF
24777 if ac_fn_c_try_link "$LINENO"; then :
24778   ac_cv_lib_cyassl_CyaSSL_Init=yes
24779 else
24780   ac_cv_lib_cyassl_CyaSSL_Init=no
24781 fi
24782 rm -f core conftest.err conftest.$ac_objext \
24783     conftest$ac_exeext conftest.$ac_ext
24784 LIBS=$ac_check_lib_save_LIBS
24785 fi
24786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24787 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24788 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24789
24790
24791 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24792
24793        USE_CYASSL=1
24794
24795        CYASSL_ENABLED=1
24796        USE_CYASSL="yes"
24797        ssl_msg="CyaSSL"
24798        test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24799
24800 else
24801
24802          CPPFLAGS=$_cppflags
24803          LDFLAGS=$_ldflags
24804          cyassllib=""
24805
24806 fi
24807
24808     fi
24809
24810     addld=""
24811     addlib=""
24812     addcflags=""
24813
24814     if test "x$USE_CYASSL" != "xyes"; then
24815             addld=-L$OPT_CYASSL/lib$libsuff
24816       addcflags=-I$OPT_CYASSL/include
24817       cyassllib=$OPT_CYASSL/lib$libsuff
24818
24819       LDFLAGS="$LDFLAGS $addld"
24820       if test "$addcflags" != "-I/usr/include"; then
24821          CPPFLAGS="$CPPFLAGS $addcflags"
24822       fi
24823
24824       cyassllibname=wolfssl
24825       my_ac_save_LIBS="$LIBS"
24826       LIBS="-l$cyassllibname -lm $LIBS"
24827
24828       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5
24829 $as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; }
24830       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24831 /* end confdefs.h.  */
24832
24833
24834 /* These aren't needed for detection and confuse WolfSSL.
24835    They are set up properly later if it is detected.  */
24836 #undef SIZEOF_LONG
24837 #undef SIZEOF_LONG_LONG
24838 #include <cyassl/ssl.h>
24839
24840 int main (void)
24841 {
24842
24843           return CyaSSL_Init();
24844
24845  ;
24846  return 0;
24847 }
24848
24849 _ACEOF
24850 if ac_fn_c_try_link "$LINENO"; then :
24851
24852          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24853 $as_echo "yes" >&6; }
24854
24855 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24856
24857          USE_CYASSL=1
24858
24859          CYASSL_ENABLED=1
24860          USE_CYASSL="yes"
24861          ssl_msg="WolfSSL"
24862          test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24863
24864 else
24865
24866          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24867 $as_echo "no" >&6; }
24868          CPPFLAGS=$_cppflags
24869          LDFLAGS=$_ldflags
24870          cyassllib=""
24871
24872 fi
24873 rm -f core conftest.err conftest.$ac_objext \
24874     conftest$ac_exeext conftest.$ac_ext
24875       LIBS="$my_ac_save_LIBS"
24876     fi
24877
24878     if test "x$USE_CYASSL" = "xyes"; then
24879       { $as_echo "$as_me:${as_lineno-$LINENO}: detected $cyassllibname" >&5
24880 $as_echo "$as_me: detected $cyassllibname" >&6;}
24881
24882             # The cast to long int works around a bug in the HP C Compiler
24883 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24884 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24885 # This bug is HP SR number 8606223364.
24886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
24887 $as_echo_n "checking size of long long... " >&6; }
24888 if ${ac_cv_sizeof_long_long+:} false; then :
24889   $as_echo_n "(cached) " >&6
24890 else
24891   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
24892
24893 else
24894   if test "$ac_cv_type_long_long" = yes; then
24895      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24897 as_fn_error 77 "cannot compute sizeof (long long)
24898 See \`config.log' for more details" "$LINENO" 5; }
24899    else
24900      ac_cv_sizeof_long_long=0
24901    fi
24902 fi
24903
24904 fi
24905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24906 $as_echo "$ac_cv_sizeof_long_long" >&6; }
24907
24908
24909
24910 cat >>confdefs.h <<_ACEOF
24911 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24912 _ACEOF
24913
24914
24915
24916             for ac_header in cyassl/options.h
24917 do :
24918   ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default"
24919 if test "x$ac_cv_header_cyassl_options_h" = xyes; then :
24920   cat >>confdefs.h <<_ACEOF
24921 #define HAVE_CYASSL_OPTIONS_H 1
24922 _ACEOF
24923
24924 fi
24925
24926 done
24927
24928
24929             for ac_header in cyassl/error-ssl.h
24930 do :
24931   ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
24932 if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
24933   cat >>confdefs.h <<_ACEOF
24934 #define HAVE_CYASSL_ERROR_SSL_H 1
24935 _ACEOF
24936
24937 fi
24938
24939 done
24940
24941
24942       LIBS="-l$cyassllibname -lm $LIBS"
24943
24944       if test "x$cyassllibname" = "xwolfssl"; then
24945                         for ac_func in wolfSSLv3_client_method \
24946                        wolfSSL_CTX_UseSupportedCurve \
24947                        wolfSSL_get_peer_certificate \
24948                        wolfSSL_UseALPN
24949 do :
24950   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24951 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24952 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24953   cat >>confdefs.h <<_ACEOF
24954 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24955 _ACEOF
24956
24957 fi
24958 done
24959
24960       else
24961                 for ac_func in CyaSSL_CTX_UseSupportedCurve \
24962                        CyaSSL_get_peer_certificate
24963 do :
24964   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24965 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24966 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24967   cat >>confdefs.h <<_ACEOF
24968 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24969 _ACEOF
24970
24971 fi
24972 done
24973
24974       fi
24975
24976       if test -n "$cyassllib"; then
24977                                         if test "x$cross_compiling" != "xyes"; then
24978           LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$cyassllib"
24979           export LD_LIBRARY_PATH
24980           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to LD_LIBRARY_PATH" >&5
24981 $as_echo "$as_me: Added $cyassllib to LD_LIBRARY_PATH" >&6;}
24982         fi
24983       fi
24984
24985     fi
24986
24987   fi
24988   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24989 fi
24990
24991
24992 OPT_NSS=no
24993
24994
24995 # Check whether --with-nss was given.
24996 if test "${with_nss+set}" = set; then :
24997   withval=$with_nss; OPT_NSS=$withval
24998 fi
24999
25000
25001 if test -z "$ssl_backends" -o "x$OPT_NSS" != xno; then
25002   ssl_msg=
25003
25004   if test X"$OPT_NSS" != Xno; then
25005
25006     addld=""
25007     addlib=""
25008     addcflags=""
25009     nssprefix=""
25010     version=""
25011
25012     if test "x$OPT_NSS" = "xyes"; then
25013
25014
25015     if test -n "$PKG_CONFIG"; then
25016       PKGCONFIG="$PKG_CONFIG"
25017     else
25018       if test -n "$ac_tool_prefix"; then
25019   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25020 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25022 $as_echo_n "checking for $ac_word... " >&6; }
25023 if ${ac_cv_path_PKGCONFIG+:} false; then :
25024   $as_echo_n "(cached) " >&6
25025 else
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   test -z "$as_dir" && as_dir=.
25037     for ac_exec_ext in '' $ac_executable_extensions; do
25038   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25039     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25041     break 2
25042   fi
25043 done
25044   done
25045 IFS=$as_save_IFS
25046
25047   ;;
25048 esac
25049 fi
25050 PKGCONFIG=$ac_cv_path_PKGCONFIG
25051 if test -n "$PKGCONFIG"; then
25052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25053 $as_echo "$PKGCONFIG" >&6; }
25054 else
25055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25056 $as_echo "no" >&6; }
25057 fi
25058
25059
25060 fi
25061 if test -z "$ac_cv_path_PKGCONFIG"; then
25062   ac_pt_PKGCONFIG=$PKGCONFIG
25063   # Extract the first word of "pkg-config", so it can be a program name with args.
25064 set dummy pkg-config; ac_word=$2
25065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25066 $as_echo_n "checking for $ac_word... " >&6; }
25067 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25068   $as_echo_n "(cached) " >&6
25069 else
25070   case $ac_pt_PKGCONFIG in
25071   [\\/]* | ?:[\\/]*)
25072   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25073   ;;
25074   *)
25075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25076 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25077 for as_dir in $as_dummy
25078 do
25079   IFS=$as_save_IFS
25080   test -z "$as_dir" && as_dir=.
25081     for ac_exec_ext in '' $ac_executable_extensions; do
25082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25083     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25085     break 2
25086   fi
25087 done
25088   done
25089 IFS=$as_save_IFS
25090
25091   ;;
25092 esac
25093 fi
25094 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25095 if test -n "$ac_pt_PKGCONFIG"; then
25096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25097 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25098 else
25099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25100 $as_echo "no" >&6; }
25101 fi
25102
25103   if test "x$ac_pt_PKGCONFIG" = x; then
25104     PKGCONFIG="no"
25105   else
25106     case $cross_compiling:$ac_tool_warned in
25107 yes:)
25108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25110 ac_tool_warned=yes ;;
25111 esac
25112     PKGCONFIG=$ac_pt_PKGCONFIG
25113   fi
25114 else
25115   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25116 fi
25117
25118     fi
25119
25120     if test "x$PKGCONFIG" != "xno"; then
25121       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25122 $as_echo_n "checking for nss options with pkg-config... " >&6; }
25123             itexists=`
25124     if test -n ""; then
25125       PKG_CONFIG_LIBDIR=""
25126       export PKG_CONFIG_LIBDIR
25127     fi
25128          $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25129
25130       if test -z "$itexists"; then
25131                         PKGCONFIG="no"
25132         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25133 $as_echo "no" >&6; }
25134       else
25135         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25136 $as_echo "found" >&6; }
25137       fi
25138     fi
25139
25140
25141       if test "$PKGCONFIG" != "no" ; then
25142         addlib=`$PKGCONFIG --libs nss`
25143         addcflags=`$PKGCONFIG --cflags nss`
25144         version=`$PKGCONFIG --modversion nss`
25145         nssprefix=`$PKGCONFIG --variable=prefix nss`
25146       else
25147
25148         check=`nss-config --version 2>/dev/null`
25149         if test -n "$check"; then
25150           addlib=`nss-config --libs`
25151           addcflags=`nss-config --cflags`
25152           version=`nss-config --version`
25153           nssprefix=`nss-config --prefix`
25154         else
25155           addlib="-lnss3"
25156           addcflags=""
25157           version="unknown"
25158         fi
25159       fi
25160     else
25161       NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
25162       if test -f "$NSS_PCDIR/nss.pc"; then
25163
25164     if test -n "$PKG_CONFIG"; then
25165       PKGCONFIG="$PKG_CONFIG"
25166     else
25167       if test -n "$ac_tool_prefix"; then
25168   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25169 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25171 $as_echo_n "checking for $ac_word... " >&6; }
25172 if ${ac_cv_path_PKGCONFIG+:} false; then :
25173   $as_echo_n "(cached) " >&6
25174 else
25175   case $PKGCONFIG in
25176   [\\/]* | ?:[\\/]*)
25177   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25178   ;;
25179   *)
25180   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25181 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25182 for as_dir in $as_dummy
25183 do
25184   IFS=$as_save_IFS
25185   test -z "$as_dir" && as_dir=.
25186     for ac_exec_ext in '' $ac_executable_extensions; do
25187   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25188     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25190     break 2
25191   fi
25192 done
25193   done
25194 IFS=$as_save_IFS
25195
25196   ;;
25197 esac
25198 fi
25199 PKGCONFIG=$ac_cv_path_PKGCONFIG
25200 if test -n "$PKGCONFIG"; then
25201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25202 $as_echo "$PKGCONFIG" >&6; }
25203 else
25204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25205 $as_echo "no" >&6; }
25206 fi
25207
25208
25209 fi
25210 if test -z "$ac_cv_path_PKGCONFIG"; then
25211   ac_pt_PKGCONFIG=$PKGCONFIG
25212   # Extract the first word of "pkg-config", so it can be a program name with args.
25213 set dummy pkg-config; ac_word=$2
25214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25215 $as_echo_n "checking for $ac_word... " >&6; }
25216 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25217   $as_echo_n "(cached) " >&6
25218 else
25219   case $ac_pt_PKGCONFIG in
25220   [\\/]* | ?:[\\/]*)
25221   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25222   ;;
25223   *)
25224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25225 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25226 for as_dir in $as_dummy
25227 do
25228   IFS=$as_save_IFS
25229   test -z "$as_dir" && as_dir=.
25230     for ac_exec_ext in '' $ac_executable_extensions; do
25231   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25232     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25234     break 2
25235   fi
25236 done
25237   done
25238 IFS=$as_save_IFS
25239
25240   ;;
25241 esac
25242 fi
25243 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25244 if test -n "$ac_pt_PKGCONFIG"; then
25245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25246 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25247 else
25248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25249 $as_echo "no" >&6; }
25250 fi
25251
25252   if test "x$ac_pt_PKGCONFIG" = x; then
25253     PKGCONFIG="no"
25254   else
25255     case $cross_compiling:$ac_tool_warned in
25256 yes:)
25257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25259 ac_tool_warned=yes ;;
25260 esac
25261     PKGCONFIG=$ac_pt_PKGCONFIG
25262   fi
25263 else
25264   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25265 fi
25266
25267     fi
25268
25269     if test "x$PKGCONFIG" != "xno"; then
25270       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25271 $as_echo_n "checking for nss options with pkg-config... " >&6; }
25272             itexists=`
25273     if test -n "$NSS_PCDIR"; then
25274       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25275       export PKG_CONFIG_LIBDIR
25276     fi
25277          $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25278
25279       if test -z "$itexists"; then
25280                         PKGCONFIG="no"
25281         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25282 $as_echo "no" >&6; }
25283       else
25284         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25285 $as_echo "found" >&6; }
25286       fi
25287     fi
25288
25289         if test "$PKGCONFIG" != "no" ; then
25290           addld=`
25291     if test -n "$NSS_PCDIR"; then
25292       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25293       export PKG_CONFIG_LIBDIR
25294     fi
25295  $PKGCONFIG --libs-only-L nss`
25296           addlib=`
25297     if test -n "$NSS_PCDIR"; then
25298       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25299       export PKG_CONFIG_LIBDIR
25300     fi
25301  $PKGCONFIG --libs-only-l nss`
25302           addcflags=`
25303     if test -n "$NSS_PCDIR"; then
25304       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25305       export PKG_CONFIG_LIBDIR
25306     fi
25307  $PKGCONFIG --cflags nss`
25308           version=`
25309     if test -n "$NSS_PCDIR"; then
25310       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25311       export PKG_CONFIG_LIBDIR
25312     fi
25313  $PKGCONFIG --modversion nss`
25314           nssprefix=`
25315     if test -n "$NSS_PCDIR"; then
25316       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25317       export PKG_CONFIG_LIBDIR
25318     fi
25319  $PKGCONFIG --variable=prefix nss`
25320         fi
25321       fi
25322     fi
25323
25324     if test -z "$addlib"; then
25325       # Without pkg-config, we'll kludge in some defaults
25326       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
25327 $as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
25328       addld="-L$OPT_NSS/lib"
25329       addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
25330       addcflags="-I$OPT_NSS/include"
25331       version="unknown"
25332       nssprefix=$OPT_NSS
25333     fi
25334
25335     CLEANLDFLAGS="$LDFLAGS"
25336     CLEANLIBS="$LIBS"
25337     CLEANCPPFLAGS="$CPPFLAGS"
25338
25339     LDFLAGS="$addld $LDFLAGS"
25340     LIBS="$addlib $LIBS"
25341     if test "$addcflags" != "-I/usr/include"; then
25342        CPPFLAGS="$CPPFLAGS $addcflags"
25343     fi
25344
25345         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
25346 $as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
25347 if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
25348   $as_echo_n "(cached) " >&6
25349 else
25350   ac_check_lib_save_LIBS=$LIBS
25351 LIBS="-lnss3  $LIBS"
25352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25353 /* end confdefs.h.  */
25354
25355
25356 #ifdef __cplusplus
25357 extern "C"
25358 #endif
25359 char SSL_VersionRangeSet ();
25360 int main (void)
25361 {
25362 return SSL_VersionRangeSet ();
25363  ;
25364  return 0;
25365 }
25366 _ACEOF
25367 if ac_fn_c_try_link "$LINENO"; then :
25368   ac_cv_lib_nss3_SSL_VersionRangeSet=yes
25369 else
25370   ac_cv_lib_nss3_SSL_VersionRangeSet=no
25371 fi
25372 rm -f core conftest.err conftest.$ac_objext \
25373     conftest$ac_exeext conftest.$ac_ext
25374 LIBS=$ac_check_lib_save_LIBS
25375 fi
25376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
25377 $as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
25378 if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
25379
25380
25381 $as_echo "#define USE_NSS 1" >>confdefs.h
25382
25383      USE_NSS=1
25384
25385      USE_NSS="yes"
25386      NSS_ENABLED=1
25387      ssl_msg="NSS"
25388      test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25389
25390 else
25391
25392        LDFLAGS="$CLEANLDFLAGS"
25393        LIBS="$CLEANLIBS"
25394        CPPFLAGS="$CLEANCPPFLAGS"
25395
25396 fi
25397
25398
25399     if test "x$USE_NSS" = "xyes"; then
25400       { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
25401 $as_echo "$as_me: detected NSS version $version" >&6;}
25402
25403                         ac_fn_c_check_func "$LINENO" "PK11_CreateManagedGenericObject" "ac_cv_func_PK11_CreateManagedGenericObject"
25404 if test "x$ac_cv_func_PK11_CreateManagedGenericObject" = xyes; then :
25405
25406
25407 $as_echo "#define HAVE_PK11_CREATEMANAGEDGENERICOBJECT 1" >>confdefs.h
25408
25409
25410 fi
25411
25412
25413             NSS_LIBS=$addlib
25414
25415
25416                               if test "x$cross_compiling" != "xyes"; then
25417         LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff"
25418         export LD_LIBRARY_PATH
25419         { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
25420 $as_echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
25421       fi
25422
25423     fi
25424   fi
25425   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25426 fi
25427
25428 OPT_AXTLS=off
25429
25430
25431 # Check whether --with-axtls was given.
25432 if test "${with_axtls+set}" = set; then :
25433   withval=$with_axtls; OPT_AXTLS=$withval
25434 fi
25435
25436
25437 if test -z "$ssl_backends" -o "x$OPT_AXTLS" != xno; then
25438   ssl_msg=
25439   if test X"$OPT_AXTLS" != Xno; then
25440         CLEANLDFLAGS="$LDFLAGS"
25441     CLEANCPPFLAGS="$CPPFLAGS"
25442     CLEANLIBS="$LIBS"
25443
25444     case "$OPT_AXTLS" in
25445     yes)
25446             PREFIX_AXTLS=/usr/local
25447       LIB_AXTLS="$PREFIX_AXTLS/lib"
25448       LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25449       CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25450       ;;
25451     off)
25452             PREFIX_AXTLS=
25453       ;;
25454     *)
25455             PREFIX_AXTLS=$OPT_AXTLS
25456       LIB_AXTLS="$PREFIX_AXTLS/lib"
25457       LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25458       CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25459       ;;
25460     esac
25461
25462     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5
25463 $as_echo_n "checking for ssl_version in -laxtls... " >&6; }
25464 if ${ac_cv_lib_axtls_ssl_version+:} false; then :
25465   $as_echo_n "(cached) " >&6
25466 else
25467   ac_check_lib_save_LIBS=$LIBS
25468 LIBS="-laxtls  $LIBS"
25469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25470 /* end confdefs.h.  */
25471
25472
25473 #ifdef __cplusplus
25474 extern "C"
25475 #endif
25476 char ssl_version ();
25477 int main (void)
25478 {
25479 return ssl_version ();
25480  ;
25481  return 0;
25482 }
25483 _ACEOF
25484 if ac_fn_c_try_link "$LINENO"; then :
25485   ac_cv_lib_axtls_ssl_version=yes
25486 else
25487   ac_cv_lib_axtls_ssl_version=no
25488 fi
25489 rm -f core conftest.err conftest.$ac_objext \
25490     conftest$ac_exeext conftest.$ac_ext
25491 LIBS=$ac_check_lib_save_LIBS
25492 fi
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5
25494 $as_echo "$ac_cv_lib_axtls_ssl_version" >&6; }
25495 if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then :
25496
25497       LIBS="-laxtls $LIBS"
25498
25499 $as_echo "#define USE_AXTLS 1" >>confdefs.h
25500
25501       USE_AXTLS=1
25502
25503       AXTLS_ENABLED=1
25504       USE_AXTLS="yes"
25505       ssl_msg="axTLS"
25506       test axtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25507
25508       if test "x$cross_compiling" != "xyes"; then
25509         LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_AXTLS"
25510         export LD_LIBRARY_PATH
25511         { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&5
25512 $as_echo "$as_me: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&6;}
25513       fi
25514
25515 else
25516
25517       LDFLAGS="$CLEANLDFLAGS"
25518       CPPFLAGS="$CLEANCPPFLAGS"
25519       LIBS="$CLEANLIBS"
25520
25521 fi
25522
25523   fi
25524   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25525 fi
25526
25527 case "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$MBEDTLS_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" in
25528 x)
25529   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
25530 $as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
25531   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, or --with-darwinssl to address this." >&5
25532 $as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, or --with-darwinssl to address this." >&2;}
25533   ;;
25534 x1)
25535   # one SSL backend is enabled
25536
25537   SSL_ENABLED="1"
25538   { $as_echo "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
25539 $as_echo "$as_me: built with one SSL backend" >&6;}
25540   ;;
25541 *)
25542   # more than one SSL backend is enabled
25543
25544   SSL_ENABLED="1"
25545
25546   CURL_WITH_MULTI_SSL="1"
25547
25548 $as_echo "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
25549
25550   { $as_echo "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
25551 $as_echo "$as_me: built with multiple SSL backends" >&6;}
25552   ;;
25553 esac
25554
25555 if test -n "$ssl_backends"; then
25556   curl_ssl_msg="enabled ($ssl_backends)"
25557 fi
25558
25559 if test no = "$VALID_DEFAULT_SSL_BACKEND"
25560 then
25561   if test -n "$SSL_ENABLED"
25562   then
25563     as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
25564   else
25565     as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
25566   fi
25567 elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
25568 then
25569
25570 cat >>confdefs.h <<_ACEOF
25571 #define CURL_DEFAULT_SSL_BACKEND "$DEFAULT_SSL_BACKEND"
25572 _ACEOF
25573
25574 fi
25575
25576
25577
25578
25579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
25580 $as_echo_n "checking default CA cert bundle/path... " >&6; }
25581
25582
25583 # Check whether --with-ca-bundle was given.
25584 if test "${with_ca_bundle+set}" = set; then :
25585   withval=$with_ca_bundle;
25586     want_ca="$withval"
25587     if test "x$want_ca" = "xyes"; then
25588       as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
25589     fi
25590
25591 else
25592    want_ca="unset"
25593 fi
25594
25595
25596 # Check whether --with-ca-path was given.
25597 if test "${with_ca_path+set}" = set; then :
25598   withval=$with_ca_path;
25599     want_capath="$withval"
25600     if test "x$want_capath" = "xyes"; then
25601       as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
25602     fi
25603
25604 else
25605    want_capath="unset"
25606 fi
25607
25608
25609   ca_warning="   (warning: certs not found)"
25610   capath_warning="   (warning: certs not found)"
25611   check_capath=""
25612
25613   if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
25614           "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25615         ca="$want_ca"
25616     capath="$want_capath"
25617   elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
25618         ca="$want_ca"
25619     capath="no"
25620   elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25621         if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
25622       as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5
25623     fi
25624     capath="$want_capath"
25625     ca="no"
25626   else
25627             ca="no"
25628     capath="no"
25629     if test "x$cross_compiling" != "xyes"; then
25630                   if test "x$want_ca" = "xunset"; then
25631                                 if test "x$prefix" != xNONE; then
25632           cac="${prefix}/share/curl/curl-ca-bundle.crt"
25633         else
25634           cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25635         fi
25636
25637         for a in /etc/ssl/certs/ca-certificates.crt \
25638                  /etc/pki/tls/certs/ca-bundle.crt \
25639                  /usr/share/ssl/certs/ca-bundle.crt \
25640                  /usr/local/share/certs/ca-root-nss.crt \
25641                  /etc/ssl/cert.pem \
25642                  "$cac"; do
25643           if test -f "$a"; then
25644             ca="$a"
25645             break
25646           fi
25647         done
25648       fi
25649       if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
25650               "x$OPENSSL_ENABLED" = "x1"; then
25651         check_capath="/etc/ssl/certs/"
25652       fi
25653     else
25654             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
25655 $as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
25656     fi
25657   fi
25658
25659   if test "x$ca" = "xno" || test -f "$ca"; then
25660     ca_warning=""
25661   fi
25662
25663   if test "x$capath" != "xno"; then
25664     check_capath="$capath"
25665   fi
25666
25667   if test ! -z "$check_capath"; then
25668     for a in "$check_capath"; do
25669       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
25670         if test "x$capath" = "xno"; then
25671           capath="$a"
25672         fi
25673         capath_warning=""
25674         break
25675       fi
25676     done
25677   fi
25678
25679   if test "x$capath" = "xno"; then
25680     capath_warning=""
25681   fi
25682
25683   if test "x$ca" != "xno"; then
25684     CURL_CA_BUNDLE='"'$ca'"'
25685
25686 cat >>confdefs.h <<_ACEOF
25687 #define CURL_CA_BUNDLE "$ca"
25688 _ACEOF
25689
25690
25691     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
25692 $as_echo "$ca" >&6; }
25693   fi
25694   if test "x$capath" != "xno"; then
25695     CURL_CA_PATH="\"$capath\""
25696
25697 cat >>confdefs.h <<_ACEOF
25698 #define CURL_CA_PATH "$capath"
25699 _ACEOF
25700
25701     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
25702 $as_echo "$capath (capath)" >&6; }
25703   fi
25704   if test "x$ca" = "xno" && test "x$capath" = "xno"; then
25705     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25706 $as_echo "no" >&6; }
25707   fi
25708
25709   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
25710 $as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; }
25711
25712 # Check whether --with-ca-fallback was given.
25713 if test "${with_ca_fallback+set}" = set; then :
25714   withval=$with_ca_fallback;
25715     if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
25716       as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
25717     fi
25718
25719 else
25720    with_ca_fallback="no"
25721 fi
25722
25723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
25724 $as_echo "$with_ca_fallback" >&6; }
25725   if test "x$with_ca_fallback" = "xyes"; then
25726     if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
25727       as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
25728     fi
25729
25730 cat >>confdefs.h <<_ACEOF
25731 #define CURL_CA_FALLBACK 1
25732 _ACEOF
25733
25734   fi
25735
25736
25737
25738
25739 # Check whether --with-libpsl was given.
25740 if test "${with_libpsl+set}" = set; then :
25741   withval=$with_libpsl; with_libpsl=$withval
25742 else
25743   with_libpsl=yes
25744 fi
25745
25746 if test $with_libpsl != "no"; then
25747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
25748 $as_echo_n "checking for library containing psl_builtin... " >&6; }
25749 if ${ac_cv_search_psl_builtin+:} false; then :
25750   $as_echo_n "(cached) " >&6
25751 else
25752   ac_func_search_save_LIBS=$LIBS
25753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25754 /* end confdefs.h.  */
25755
25756
25757 #ifdef __cplusplus
25758 extern "C"
25759 #endif
25760 char psl_builtin ();
25761 int main (void)
25762 {
25763 return psl_builtin ();
25764  ;
25765  return 0;
25766 }
25767 _ACEOF
25768 for ac_lib in '' psl; do
25769   if test -z "$ac_lib"; then
25770     ac_res="none required"
25771   else
25772     ac_res=-l$ac_lib
25773     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25774   fi
25775   if ac_fn_c_try_link "$LINENO"; then :
25776   ac_cv_search_psl_builtin=$ac_res
25777 fi
25778 rm -f core conftest.err conftest.$ac_objext \
25779     conftest$ac_exeext
25780   if ${ac_cv_search_psl_builtin+:} false; then :
25781   break
25782 fi
25783 done
25784 if ${ac_cv_search_psl_builtin+:} false; then :
25785
25786 else
25787   ac_cv_search_psl_builtin=no
25788 fi
25789 rm conftest.$ac_ext
25790 LIBS=$ac_func_search_save_LIBS
25791 fi
25792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
25793 $as_echo "$ac_cv_search_psl_builtin" >&6; }
25794 ac_res=$ac_cv_search_psl_builtin
25795 if test "$ac_res" != no; then :
25796   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25797   curl_psl_msg="yes";
25798
25799 $as_echo "#define USE_LIBPSL 1" >>confdefs.h
25800
25801
25802 else
25803   curl_psl_msg="no      (libpsl not found)";
25804      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
25805 $as_echo "$as_me: WARNING: libpsl was not found" >&2;}
25806
25807
25808 fi
25809
25810 fi
25811  if test "$curl_psl_msg" = "yes"; then
25812   USE_LIBPSL_TRUE=
25813   USE_LIBPSL_FALSE='#'
25814 else
25815   USE_LIBPSL_TRUE='#'
25816   USE_LIBPSL_FALSE=
25817 fi
25818
25819
25820
25821 OPT_LIBMETALINK=no
25822
25823
25824 # Check whether --with-libmetalink was given.
25825 if test "${with_libmetalink+set}" = set; then :
25826   withval=$with_libmetalink; OPT_LIBMETALINK=$withval
25827 fi
25828
25829
25830 if test X"$OPT_LIBMETALINK" != Xno; then
25831
25832   addld=""
25833   addlib=""
25834   addcflags=""
25835   version=""
25836   libmetalinklib=""
25837
25838   PKGTEST="no"
25839   if test "x$OPT_LIBMETALINK" = "xyes"; then
25840         PKGTEST="yes"
25841
25842     if test -n "$PKG_CONFIG"; then
25843       PKGCONFIG="$PKG_CONFIG"
25844     else
25845       if test -n "$ac_tool_prefix"; then
25846   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25847 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25849 $as_echo_n "checking for $ac_word... " >&6; }
25850 if ${ac_cv_path_PKGCONFIG+:} false; then :
25851   $as_echo_n "(cached) " >&6
25852 else
25853   case $PKGCONFIG in
25854   [\\/]* | ?:[\\/]*)
25855   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25856   ;;
25857   *)
25858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25859 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25860 for as_dir in $as_dummy
25861 do
25862   IFS=$as_save_IFS
25863   test -z "$as_dir" && as_dir=.
25864     for ac_exec_ext in '' $ac_executable_extensions; do
25865   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25866     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25868     break 2
25869   fi
25870 done
25871   done
25872 IFS=$as_save_IFS
25873
25874   ;;
25875 esac
25876 fi
25877 PKGCONFIG=$ac_cv_path_PKGCONFIG
25878 if test -n "$PKGCONFIG"; then
25879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25880 $as_echo "$PKGCONFIG" >&6; }
25881 else
25882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25883 $as_echo "no" >&6; }
25884 fi
25885
25886
25887 fi
25888 if test -z "$ac_cv_path_PKGCONFIG"; then
25889   ac_pt_PKGCONFIG=$PKGCONFIG
25890   # Extract the first word of "pkg-config", so it can be a program name with args.
25891 set dummy pkg-config; ac_word=$2
25892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25893 $as_echo_n "checking for $ac_word... " >&6; }
25894 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25895   $as_echo_n "(cached) " >&6
25896 else
25897   case $ac_pt_PKGCONFIG in
25898   [\\/]* | ?:[\\/]*)
25899   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25900   ;;
25901   *)
25902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25903 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25904 for as_dir in $as_dummy
25905 do
25906   IFS=$as_save_IFS
25907   test -z "$as_dir" && as_dir=.
25908     for ac_exec_ext in '' $ac_executable_extensions; do
25909   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25910     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25912     break 2
25913   fi
25914 done
25915   done
25916 IFS=$as_save_IFS
25917
25918   ;;
25919 esac
25920 fi
25921 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25922 if test -n "$ac_pt_PKGCONFIG"; then
25923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25924 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25925 else
25926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25927 $as_echo "no" >&6; }
25928 fi
25929
25930   if test "x$ac_pt_PKGCONFIG" = x; then
25931     PKGCONFIG="no"
25932   else
25933     case $cross_compiling:$ac_tool_warned in
25934 yes:)
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25937 ac_tool_warned=yes ;;
25938 esac
25939     PKGCONFIG=$ac_pt_PKGCONFIG
25940   fi
25941 else
25942   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25943 fi
25944
25945     fi
25946
25947     if test "x$PKGCONFIG" != "xno"; then
25948       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25949 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25950             itexists=`
25951     if test -n ""; then
25952       PKG_CONFIG_LIBDIR=""
25953       export PKG_CONFIG_LIBDIR
25954     fi
25955          $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25956
25957       if test -z "$itexists"; then
25958                         PKGCONFIG="no"
25959         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25960 $as_echo "no" >&6; }
25961       else
25962         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25963 $as_echo "found" >&6; }
25964       fi
25965     fi
25966
25967   else
25968         LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
25969     { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
25970 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
25971     if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
25972       PKGTEST="yes"
25973     fi
25974     if test "$PKGTEST" = "yes"; then
25975
25976     if test -n "$PKG_CONFIG"; then
25977       PKGCONFIG="$PKG_CONFIG"
25978     else
25979       if test -n "$ac_tool_prefix"; then
25980   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25981 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25983 $as_echo_n "checking for $ac_word... " >&6; }
25984 if ${ac_cv_path_PKGCONFIG+:} false; then :
25985   $as_echo_n "(cached) " >&6
25986 else
25987   case $PKGCONFIG in
25988   [\\/]* | ?:[\\/]*)
25989   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25990   ;;
25991   *)
25992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25993 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25994 for as_dir in $as_dummy
25995 do
25996   IFS=$as_save_IFS
25997   test -z "$as_dir" && as_dir=.
25998     for ac_exec_ext in '' $ac_executable_extensions; do
25999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26000     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26002     break 2
26003   fi
26004 done
26005   done
26006 IFS=$as_save_IFS
26007
26008   ;;
26009 esac
26010 fi
26011 PKGCONFIG=$ac_cv_path_PKGCONFIG
26012 if test -n "$PKGCONFIG"; then
26013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26014 $as_echo "$PKGCONFIG" >&6; }
26015 else
26016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26017 $as_echo "no" >&6; }
26018 fi
26019
26020
26021 fi
26022 if test -z "$ac_cv_path_PKGCONFIG"; then
26023   ac_pt_PKGCONFIG=$PKGCONFIG
26024   # Extract the first word of "pkg-config", so it can be a program name with args.
26025 set dummy pkg-config; ac_word=$2
26026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26027 $as_echo_n "checking for $ac_word... " >&6; }
26028 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26029   $as_echo_n "(cached) " >&6
26030 else
26031   case $ac_pt_PKGCONFIG in
26032   [\\/]* | ?:[\\/]*)
26033   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26034   ;;
26035   *)
26036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26037 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26038 for as_dir in $as_dummy
26039 do
26040   IFS=$as_save_IFS
26041   test -z "$as_dir" && as_dir=.
26042     for ac_exec_ext in '' $ac_executable_extensions; do
26043   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26044     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26046     break 2
26047   fi
26048 done
26049   done
26050 IFS=$as_save_IFS
26051
26052   ;;
26053 esac
26054 fi
26055 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26056 if test -n "$ac_pt_PKGCONFIG"; then
26057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26058 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26059 else
26060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26061 $as_echo "no" >&6; }
26062 fi
26063
26064   if test "x$ac_pt_PKGCONFIG" = x; then
26065     PKGCONFIG="no"
26066   else
26067     case $cross_compiling:$ac_tool_warned in
26068 yes:)
26069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26071 ac_tool_warned=yes ;;
26072 esac
26073     PKGCONFIG=$ac_pt_PKGCONFIG
26074   fi
26075 else
26076   PKGCONFIG="$ac_cv_path_PKGCONFIG"
26077 fi
26078
26079     fi
26080
26081     if test "x$PKGCONFIG" != "xno"; then
26082       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
26083 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
26084             itexists=`
26085     if test -n "$LIBMETALINK_PCDIR"; then
26086       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26087       export PKG_CONFIG_LIBDIR
26088     fi
26089          $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
26090
26091       if test -z "$itexists"; then
26092                         PKGCONFIG="no"
26093         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26094 $as_echo "no" >&6; }
26095       else
26096         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26097 $as_echo "found" >&6; }
26098       fi
26099     fi
26100
26101     fi
26102   fi
26103   if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
26104     addlib=`
26105     if test -n "$LIBMETALINK_PCDIR"; then
26106       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26107       export PKG_CONFIG_LIBDIR
26108     fi
26109        $PKGCONFIG --libs-only-l libmetalink`
26110     addld=`
26111     if test -n "$LIBMETALINK_PCDIR"; then
26112       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26113       export PKG_CONFIG_LIBDIR
26114     fi
26115        $PKGCONFIG --libs-only-L libmetalink`
26116     addcflags=`
26117     if test -n "$LIBMETALINK_PCDIR"; then
26118       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26119       export PKG_CONFIG_LIBDIR
26120     fi
26121        $PKGCONFIG --cflags-only-I libmetalink`
26122     version=`
26123     if test -n "$LIBMETALINK_PCDIR"; then
26124       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26125       export PKG_CONFIG_LIBDIR
26126     fi
26127        $PKGCONFIG --modversion libmetalink`
26128     libmetalinklib=`echo $addld | $SED -e 's/-L//'`
26129   fi
26130   if test -n "$addlib"; then
26131
26132     clean_CPPFLAGS="$CPPFLAGS"
26133     clean_LDFLAGS="$LDFLAGS"
26134     clean_LIBS="$LIBS"
26135     CPPFLAGS="$clean_CPPFLAGS $addcflags"
26136     LDFLAGS="$clean_LDFLAGS $addld"
26137     LIBS="$addlib $clean_LIBS"
26138     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
26139 $as_echo_n "checking if libmetalink is recent enough... " >&6; }
26140     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26141 /* end confdefs.h.  */
26142
26143
26144 #       include <metalink/metalink.h>
26145
26146 int main (void)
26147 {
26148
26149         if(0 != metalink_strerror(0)) /* added in 0.1.0 */
26150           return 1;
26151
26152  ;
26153  return 0;
26154 }
26155
26156 _ACEOF
26157 if ac_fn_c_try_link "$LINENO"; then :
26158
26159       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
26160 $as_echo "yes ($version)" >&6; }
26161       want_metalink="yes"
26162
26163 else
26164
26165       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
26166 $as_echo "no ($version)" >&6; }
26167       { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
26168 $as_echo "$as_me: libmetalink library defective or too old" >&6;}
26169       want_metalink="no"
26170
26171 fi
26172 rm -f core conftest.err conftest.$ac_objext \
26173     conftest$ac_exeext conftest.$ac_ext
26174     CPPFLAGS="$clean_CPPFLAGS"
26175     LDFLAGS="$clean_LDFLAGS"
26176     LIBS="$clean_LIBS"
26177     if test "$want_metalink" = "yes"; then
26178
26179 $as_echo "#define USE_METALINK 1" >>confdefs.h
26180
26181       LIBMETALINK_LIBS=$addlib
26182       LIBMETALINK_LDFLAGS=$addld
26183       LIBMETALINK_CPPFLAGS=$addcflags
26184
26185
26186
26187       curl_mtlnk_msg="enabled"
26188     fi
26189
26190   fi
26191 fi
26192
26193
26194 OPT_LIBSSH2=off
26195
26196 # Check whether --with-libssh2 was given.
26197 if test "${with_libssh2+set}" = set; then :
26198   withval=$with_libssh2; OPT_LIBSSH2=$withval
26199 else
26200   OPT_LIBSSH2=no
26201 fi
26202
26203
26204
26205 OPT_LIBSSH=off
26206
26207 # Check whether --with-libssh was given.
26208 if test "${with_libssh+set}" = set; then :
26209   withval=$with_libssh; OPT_LIBSSH=$withval
26210 else
26211   OPT_LIBSSH=no
26212 fi
26213
26214
26215 if test X"$OPT_LIBSSH2" != Xno; then
26216     CLEANLDFLAGS="$LDFLAGS"
26217   CLEANCPPFLAGS="$CPPFLAGS"
26218   CLEANLIBS="$LIBS"
26219
26220   case "$OPT_LIBSSH2" in
26221   yes)
26222
26223     if test -n "$PKG_CONFIG"; then
26224       PKGCONFIG="$PKG_CONFIG"
26225     else
26226       if test -n "$ac_tool_prefix"; then
26227   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26228 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26230 $as_echo_n "checking for $ac_word... " >&6; }
26231 if ${ac_cv_path_PKGCONFIG+:} false; then :
26232   $as_echo_n "(cached) " >&6
26233 else
26234   case $PKGCONFIG in
26235   [\\/]* | ?:[\\/]*)
26236   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26237   ;;
26238   *)
26239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26240 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26241 for as_dir in $as_dummy
26242 do
26243   IFS=$as_save_IFS
26244   test -z "$as_dir" && as_dir=.
26245     for ac_exec_ext in '' $ac_executable_extensions; do
26246   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26247     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26249     break 2
26250   fi
26251 done
26252   done
26253 IFS=$as_save_IFS
26254
26255   ;;
26256 esac
26257 fi
26258 PKGCONFIG=$ac_cv_path_PKGCONFIG
26259 if test -n "$PKGCONFIG"; then
26260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26261 $as_echo "$PKGCONFIG" >&6; }
26262 else
26263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26264 $as_echo "no" >&6; }
26265 fi
26266
26267
26268 fi
26269 if test -z "$ac_cv_path_PKGCONFIG"; then
26270   ac_pt_PKGCONFIG=$PKGCONFIG
26271   # Extract the first word of "pkg-config", so it can be a program name with args.
26272 set dummy pkg-config; ac_word=$2
26273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26274 $as_echo_n "checking for $ac_word... " >&6; }
26275 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26276   $as_echo_n "(cached) " >&6
26277 else
26278   case $ac_pt_PKGCONFIG in
26279   [\\/]* | ?:[\\/]*)
26280   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26281   ;;
26282   *)
26283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26284 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26285 for as_dir in $as_dummy
26286 do
26287   IFS=$as_save_IFS
26288   test -z "$as_dir" && as_dir=.
26289     for ac_exec_ext in '' $ac_executable_extensions; do
26290   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26291     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26293     break 2
26294   fi
26295 done
26296   done
26297 IFS=$as_save_IFS
26298
26299   ;;
26300 esac
26301 fi
26302 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26303 if test -n "$ac_pt_PKGCONFIG"; then
26304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26305 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26306 else
26307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26308 $as_echo "no" >&6; }
26309 fi
26310
26311   if test "x$ac_pt_PKGCONFIG" = x; then
26312     PKGCONFIG="no"
26313   else
26314     case $cross_compiling:$ac_tool_warned in
26315 yes:)
26316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26318 ac_tool_warned=yes ;;
26319 esac
26320     PKGCONFIG=$ac_pt_PKGCONFIG
26321   fi
26322 else
26323   PKGCONFIG="$ac_cv_path_PKGCONFIG"
26324 fi
26325
26326     fi
26327
26328     if test "x$PKGCONFIG" != "xno"; then
26329       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
26330 $as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
26331             itexists=`
26332     if test -n ""; then
26333       PKG_CONFIG_LIBDIR=""
26334       export PKG_CONFIG_LIBDIR
26335     fi
26336          $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
26337
26338       if test -z "$itexists"; then
26339                         PKGCONFIG="no"
26340         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26341 $as_echo "no" >&6; }
26342       else
26343         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26344 $as_echo "found" >&6; }
26345       fi
26346     fi
26347
26348
26349     if test "$PKGCONFIG" != "no" ; then
26350       LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
26351       LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
26352       CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
26353       version=`$PKGCONFIG --modversion libssh2`
26354       DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
26355     fi
26356
26357     ;;
26358   off)
26359         ;;
26360   *)
26361         PREFIX_SSH2=$OPT_LIBSSH2
26362     ;;
26363   esac
26364
26365     if test -n "$PREFIX_SSH2"; then
26366     LIB_SSH2="-lssh2"
26367     LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
26368     CPP_SSH2=-I${PREFIX_SSH2}/include
26369     DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
26370   fi
26371
26372   LDFLAGS="$LDFLAGS $LD_SSH2"
26373   CPPFLAGS="$CPPFLAGS $CPP_SSH2"
26374   LIBS="$LIB_SSH2 $LIBS"
26375
26376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
26377 $as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
26378 if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
26379   $as_echo_n "(cached) " >&6
26380 else
26381   ac_check_lib_save_LIBS=$LIBS
26382 LIBS="-lssh2  $LIBS"
26383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26384 /* end confdefs.h.  */
26385
26386
26387 #ifdef __cplusplus
26388 extern "C"
26389 #endif
26390 char libssh2_channel_open_ex ();
26391 int main (void)
26392 {
26393 return libssh2_channel_open_ex ();
26394  ;
26395  return 0;
26396 }
26397 _ACEOF
26398 if ac_fn_c_try_link "$LINENO"; then :
26399   ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
26400 else
26401   ac_cv_lib_ssh2_libssh2_channel_open_ex=no
26402 fi
26403 rm -f core conftest.err conftest.$ac_objext \
26404     conftest$ac_exeext conftest.$ac_ext
26405 LIBS=$ac_check_lib_save_LIBS
26406 fi
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
26408 $as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
26409 if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
26410   cat >>confdefs.h <<_ACEOF
26411 #define HAVE_LIBSSH2 1
26412 _ACEOF
26413
26414   LIBS="-lssh2 $LIBS"
26415
26416 fi
26417
26418
26419   for ac_header in libssh2.h
26420 do :
26421   ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
26422 if test "x$ac_cv_header_libssh2_h" = xyes; then :
26423   cat >>confdefs.h <<_ACEOF
26424 #define HAVE_LIBSSH2_H 1
26425 _ACEOF
26426  curl_ssh_msg="enabled (libSSH2)"
26427     LIBSSH2_ENABLED=1
26428
26429 $as_echo "#define USE_LIBSSH2 1" >>confdefs.h
26430
26431     USE_LIBSSH2=1
26432
26433
26434 fi
26435
26436 done
26437
26438
26439   if test X"$OPT_LIBSSH2" != Xoff &&
26440      test "$LIBSSH2_ENABLED" != "1"; then
26441     as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
26442   fi
26443
26444   if test "$LIBSSH2_ENABLED" = "1"; then
26445     if test -n "$DIR_SSH2"; then
26446
26447        if test "x$cross_compiling" != "xyes"; then
26448          LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
26449          export LD_LIBRARY_PATH
26450          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&5
26451 $as_echo "$as_me: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&6;}
26452        fi
26453     fi
26454   else
26455         LDFLAGS=$CLEANLDFLAGS
26456     CPPFLAGS=$CLEANCPPFLAGS
26457     LIBS=$CLEANLIBS
26458   fi
26459 elif test X"$OPT_LIBSSH" != Xno; then
26460     CLEANLDFLAGS="$LDFLAGS"
26461   CLEANCPPFLAGS="$CPPFLAGS"
26462   CLEANLIBS="$LIBS"
26463
26464   case "$OPT_LIBSSH" in
26465   yes)
26466
26467     if test -n "$PKG_CONFIG"; then
26468       PKGCONFIG="$PKG_CONFIG"
26469     else
26470       if test -n "$ac_tool_prefix"; then
26471   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26472 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26474 $as_echo_n "checking for $ac_word... " >&6; }
26475 if ${ac_cv_path_PKGCONFIG+:} false; then :
26476   $as_echo_n "(cached) " >&6
26477 else
26478   case $PKGCONFIG in
26479   [\\/]* | ?:[\\/]*)
26480   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26481   ;;
26482   *)
26483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26484 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26485 for as_dir in $as_dummy
26486 do
26487   IFS=$as_save_IFS
26488   test -z "$as_dir" && as_dir=.
26489     for ac_exec_ext in '' $ac_executable_extensions; do
26490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26491     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26493     break 2
26494   fi
26495 done
26496   done
26497 IFS=$as_save_IFS
26498
26499   ;;
26500 esac
26501 fi
26502 PKGCONFIG=$ac_cv_path_PKGCONFIG
26503 if test -n "$PKGCONFIG"; then
26504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26505 $as_echo "$PKGCONFIG" >&6; }
26506 else
26507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26508 $as_echo "no" >&6; }
26509 fi
26510
26511
26512 fi
26513 if test -z "$ac_cv_path_PKGCONFIG"; then
26514   ac_pt_PKGCONFIG=$PKGCONFIG
26515   # Extract the first word of "pkg-config", so it can be a program name with args.
26516 set dummy pkg-config; ac_word=$2
26517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26518 $as_echo_n "checking for $ac_word... " >&6; }
26519 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26520   $as_echo_n "(cached) " >&6
26521 else
26522   case $ac_pt_PKGCONFIG in
26523   [\\/]* | ?:[\\/]*)
26524   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26525   ;;
26526   *)
26527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26528 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26529 for as_dir in $as_dummy
26530 do
26531   IFS=$as_save_IFS
26532   test -z "$as_dir" && as_dir=.
26533     for ac_exec_ext in '' $ac_executable_extensions; do
26534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26535     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26537     break 2
26538   fi
26539 done
26540   done
26541 IFS=$as_save_IFS
26542
26543   ;;
26544 esac
26545 fi
26546 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26547 if test -n "$ac_pt_PKGCONFIG"; then
26548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26549 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26550 else
26551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26552 $as_echo "no" >&6; }
26553 fi
26554
26555   if test "x$ac_pt_PKGCONFIG" = x; then
26556     PKGCONFIG="no"
26557   else
26558     case $cross_compiling:$ac_tool_warned in
26559 yes:)
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26562 ac_tool_warned=yes ;;
26563 esac
26564     PKGCONFIG=$ac_pt_PKGCONFIG
26565   fi
26566 else
26567   PKGCONFIG="$ac_cv_path_PKGCONFIG"
26568 fi
26569
26570     fi
26571
26572     if test "x$PKGCONFIG" != "xno"; then
26573       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
26574 $as_echo_n "checking for libssh options with pkg-config... " >&6; }
26575             itexists=`
26576     if test -n ""; then
26577       PKG_CONFIG_LIBDIR=""
26578       export PKG_CONFIG_LIBDIR
26579     fi
26580          $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
26581
26582       if test -z "$itexists"; then
26583                         PKGCONFIG="no"
26584         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26585 $as_echo "no" >&6; }
26586       else
26587         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26588 $as_echo "found" >&6; }
26589       fi
26590     fi
26591
26592
26593     if test "$PKGCONFIG" != "no" ; then
26594       LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
26595       LD_SSH=`$PKGCONFIG --libs-only-L libssh`
26596       CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
26597       version=`$PKGCONFIG --modversion libssh`
26598       DIR_SSH=`echo $LD_SSH | $SED -e 's/-L//'`
26599     fi
26600
26601     ;;
26602   off)
26603         ;;
26604   *)
26605         PREFIX_SSH=$OPT_LIBSSH
26606     ;;
26607   esac
26608
26609     if test -n "$PREFIX_SSH"; then
26610     LIB_SSH="-lssh"
26611     LD_SSH=-L${PREFIX_SSH}/lib$libsuff
26612     CPP_SSH=-I${PREFIX_SSH}/include
26613     DIR_SSH=${PREFIX_SSH}/lib$libsuff
26614   fi
26615
26616   LDFLAGS="$LDFLAGS $LD_SSH"
26617   CPPFLAGS="$CPPFLAGS $CPP_SSH"
26618   LIBS="$LIB_SSH $LIBS"
26619
26620   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
26621 $as_echo_n "checking for ssh_new in -lssh... " >&6; }
26622 if ${ac_cv_lib_ssh_ssh_new+:} false; then :
26623   $as_echo_n "(cached) " >&6
26624 else
26625   ac_check_lib_save_LIBS=$LIBS
26626 LIBS="-lssh  $LIBS"
26627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26628 /* end confdefs.h.  */
26629
26630
26631 #ifdef __cplusplus
26632 extern "C"
26633 #endif
26634 char ssh_new ();
26635 int main (void)
26636 {
26637 return ssh_new ();
26638  ;
26639  return 0;
26640 }
26641 _ACEOF
26642 if ac_fn_c_try_link "$LINENO"; then :
26643   ac_cv_lib_ssh_ssh_new=yes
26644 else
26645   ac_cv_lib_ssh_ssh_new=no
26646 fi
26647 rm -f core conftest.err conftest.$ac_objext \
26648     conftest$ac_exeext conftest.$ac_ext
26649 LIBS=$ac_check_lib_save_LIBS
26650 fi
26651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
26652 $as_echo "$ac_cv_lib_ssh_ssh_new" >&6; }
26653 if test "x$ac_cv_lib_ssh_ssh_new" = xyes; then :
26654   cat >>confdefs.h <<_ACEOF
26655 #define HAVE_LIBSSH 1
26656 _ACEOF
26657
26658   LIBS="-lssh $LIBS"
26659
26660 fi
26661
26662
26663   for ac_header in libssh/libssh.h
26664 do :
26665   ac_fn_c_check_header_mongrel "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
26666 if test "x$ac_cv_header_libssh_libssh_h" = xyes; then :
26667   cat >>confdefs.h <<_ACEOF
26668 #define HAVE_LIBSSH_LIBSSH_H 1
26669 _ACEOF
26670  curl_ssh_msg="enabled (libSSH)"
26671     LIBSSH_ENABLED=1
26672
26673 $as_echo "#define USE_LIBSSH 1" >>confdefs.h
26674
26675     USE_LIBSSH=1
26676
26677
26678 fi
26679
26680 done
26681
26682
26683   if test X"$OPT_LIBSSH" != Xoff &&
26684      test "$LIBSSH_ENABLED" != "1"; then
26685     as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
26686   fi
26687
26688   if test "$LIBSSH_ENABLED" = "1"; then
26689     if test -n "$DIR_SSH"; then
26690
26691        if test "x$cross_compiling" != "xyes"; then
26692          LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH"
26693          export LD_LIBRARY_PATH
26694          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to LD_LIBRARY_PATH" >&5
26695 $as_echo "$as_me: Added $DIR_SSH to LD_LIBRARY_PATH" >&6;}
26696        fi
26697     fi
26698   else
26699         LDFLAGS=$CLEANLDFLAGS
26700     CPPFLAGS=$CLEANCPPFLAGS
26701     LIBS=$CLEANLIBS
26702   fi
26703 fi
26704
26705
26706 OPT_LIBRTMP=off
26707
26708 # Check whether --with-librtmp was given.
26709 if test "${with_librtmp+set}" = set; then :
26710   withval=$with_librtmp; OPT_LIBRTMP=$withval
26711 fi
26712
26713
26714 if test X"$OPT_LIBRTMP" != Xno; then
26715     CLEANLDFLAGS="$LDFLAGS"
26716   CLEANCPPFLAGS="$CPPFLAGS"
26717   CLEANLIBS="$LIBS"
26718
26719   case "$OPT_LIBRTMP" in
26720   yes)
26721
26722     if test -n "$PKG_CONFIG"; then
26723       PKGCONFIG="$PKG_CONFIG"
26724     else
26725       if test -n "$ac_tool_prefix"; then
26726   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26727 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26729 $as_echo_n "checking for $ac_word... " >&6; }
26730 if ${ac_cv_path_PKGCONFIG+:} false; then :
26731   $as_echo_n "(cached) " >&6
26732 else
26733   case $PKGCONFIG in
26734   [\\/]* | ?:[\\/]*)
26735   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26736   ;;
26737   *)
26738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26739 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26740 for as_dir in $as_dummy
26741 do
26742   IFS=$as_save_IFS
26743   test -z "$as_dir" && as_dir=.
26744     for ac_exec_ext in '' $ac_executable_extensions; do
26745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26746     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26748     break 2
26749   fi
26750 done
26751   done
26752 IFS=$as_save_IFS
26753
26754   ;;
26755 esac
26756 fi
26757 PKGCONFIG=$ac_cv_path_PKGCONFIG
26758 if test -n "$PKGCONFIG"; then
26759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26760 $as_echo "$PKGCONFIG" >&6; }
26761 else
26762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26763 $as_echo "no" >&6; }
26764 fi
26765
26766
26767 fi
26768 if test -z "$ac_cv_path_PKGCONFIG"; then
26769   ac_pt_PKGCONFIG=$PKGCONFIG
26770   # Extract the first word of "pkg-config", so it can be a program name with args.
26771 set dummy pkg-config; ac_word=$2
26772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26773 $as_echo_n "checking for $ac_word... " >&6; }
26774 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26775   $as_echo_n "(cached) " >&6
26776 else
26777   case $ac_pt_PKGCONFIG in
26778   [\\/]* | ?:[\\/]*)
26779   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26780   ;;
26781   *)
26782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26783 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26784 for as_dir in $as_dummy
26785 do
26786   IFS=$as_save_IFS
26787   test -z "$as_dir" && as_dir=.
26788     for ac_exec_ext in '' $ac_executable_extensions; do
26789   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26790     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26792     break 2
26793   fi
26794 done
26795   done
26796 IFS=$as_save_IFS
26797
26798   ;;
26799 esac
26800 fi
26801 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26802 if test -n "$ac_pt_PKGCONFIG"; then
26803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26804 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26805 else
26806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26807 $as_echo "no" >&6; }
26808 fi
26809
26810   if test "x$ac_pt_PKGCONFIG" = x; then
26811     PKGCONFIG="no"
26812   else
26813     case $cross_compiling:$ac_tool_warned in
26814 yes:)
26815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26817 ac_tool_warned=yes ;;
26818 esac
26819     PKGCONFIG=$ac_pt_PKGCONFIG
26820   fi
26821 else
26822   PKGCONFIG="$ac_cv_path_PKGCONFIG"
26823 fi
26824
26825     fi
26826
26827     if test "x$PKGCONFIG" != "xno"; then
26828       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
26829 $as_echo_n "checking for librtmp options with pkg-config... " >&6; }
26830             itexists=`
26831     if test -n ""; then
26832       PKG_CONFIG_LIBDIR=""
26833       export PKG_CONFIG_LIBDIR
26834     fi
26835          $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
26836
26837       if test -z "$itexists"; then
26838                         PKGCONFIG="no"
26839         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26840 $as_echo "no" >&6; }
26841       else
26842         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26843 $as_echo "found" >&6; }
26844       fi
26845     fi
26846
26847
26848     if test "$PKGCONFIG" != "no" ; then
26849       LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
26850       LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
26851       CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
26852       version=`$PKGCONFIG --modversion librtmp`
26853       DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
26854     else
26855                   as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
26856     fi
26857
26858     ;;
26859   off)
26860         LIB_RTMP="-lrtmp"
26861     ;;
26862   *)
26863         LIB_RTMP="-lrtmp"
26864     PREFIX_RTMP=$OPT_LIBRTMP
26865     ;;
26866   esac
26867
26868     if test -n "$PREFIX_RTMP"; then
26869     LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
26870     CPP_RTMP=-I${PREFIX_RTMP}/include
26871     DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
26872   fi
26873
26874   LDFLAGS="$LDFLAGS $LD_RTMP"
26875   CPPFLAGS="$CPPFLAGS $CPP_RTMP"
26876   LIBS="$LIB_RTMP $LIBS"
26877
26878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
26879 $as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
26880 if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
26881   $as_echo_n "(cached) " >&6
26882 else
26883   ac_check_lib_save_LIBS=$LIBS
26884 LIBS="-lrtmp  $LIBS"
26885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26886 /* end confdefs.h.  */
26887
26888
26889 #ifdef __cplusplus
26890 extern "C"
26891 #endif
26892 char RTMP_Init ();
26893 int main (void)
26894 {
26895 return RTMP_Init ();
26896  ;
26897  return 0;
26898 }
26899 _ACEOF
26900 if ac_fn_c_try_link "$LINENO"; then :
26901   ac_cv_lib_rtmp_RTMP_Init=yes
26902 else
26903   ac_cv_lib_rtmp_RTMP_Init=no
26904 fi
26905 rm -f core conftest.err conftest.$ac_objext \
26906     conftest$ac_exeext conftest.$ac_ext
26907 LIBS=$ac_check_lib_save_LIBS
26908 fi
26909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
26910 $as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
26911 if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
26912
26913      for ac_header in librtmp/rtmp.h
26914 do :
26915   ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
26916 if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
26917   cat >>confdefs.h <<_ACEOF
26918 #define HAVE_LIBRTMP_RTMP_H 1
26919 _ACEOF
26920  curl_rtmp_msg="enabled (librtmp)"
26921         LIBRTMP_ENABLED=1
26922
26923 $as_echo "#define USE_LIBRTMP 1" >>confdefs.h
26924
26925         USE_LIBRTMP=1
26926
26927
26928 fi
26929
26930 done
26931
26932
26933 else
26934         LDFLAGS=$CLEANLDFLAGS
26935       CPPFLAGS=$CLEANCPPFLAGS
26936       LIBS=$CLEANLIBS
26937
26938 fi
26939
26940
26941   if test X"$OPT_LIBRTMP" != Xoff &&
26942      test "$LIBRTMP_ENABLED" != "1"; then
26943     as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
26944   fi
26945
26946 fi
26947
26948
26949 versioned_symbols_flavour=
26950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
26951 $as_echo_n "checking whether versioned symbols are wanted... " >&6; }
26952 # Check whether --enable-versioned-symbols was given.
26953 if test "${enable_versioned_symbols+set}" = set; then :
26954   enableval=$enable_versioned_symbols;  case "$enableval" in
26955   yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26956 $as_echo "yes" >&6; }
26957     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
26958 $as_echo_n "checking if libraries can be versioned... " >&6; }
26959     GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
26960     if test -z "$GLD"; then
26961         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26962 $as_echo "no" >&6; }
26963         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
26964 $as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
26965     else
26966         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26967 $as_echo "yes" >&6; }
26968         if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
26969           versioned_symbols_flavour="MULTISSL_"
26970         elif test "x$OPENSSL_ENABLED" = "x1"; then
26971           versioned_symbols_flavour="OPENSSL_"
26972         elif test "x$GNUTLS_ENABLED" = "x1"; then
26973           versioned_symbols_flavour="GNUTLS_"
26974         elif test "x$NSS_ENABLED" = "x1"; then
26975           versioned_symbols_flavour="NSS_"
26976         elif test "x$POLARSSL_ENABLED" = "x1"; then
26977           versioned_symbols_flavour="POLARSSL_"
26978         elif test "x$CYASSL_ENABLED" = "x1"; then
26979           versioned_symbols_flavour="CYASSL_"
26980         elif test "x$AXTLS_ENABLED" = "x1"; then
26981           versioned_symbols_flavour="AXTLS_"
26982         elif test "x$WINSSL_ENABLED" = "x1"; then
26983           versioned_symbols_flavour="WINSSL_"
26984         elif test "x$DARWINSSL_ENABLED" = "x1"; then
26985           versioned_symbols_flavour="DARWINSSL_"
26986         else
26987           versioned_symbols_flavour=""
26988         fi
26989         versioned_symbols="yes"
26990     fi
26991     ;;
26992
26993   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26994 $as_echo "no" >&6; }
26995     ;;
26996   esac
26997
26998 else
26999
27000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27001 $as_echo "no" >&6; }
27002
27003
27004 fi
27005
27006
27007 CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
27008
27009  if test "x$versioned_symbols" = 'xyes'; then
27010   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
27011   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
27012 else
27013   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
27014   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
27015 fi
27016
27017
27018
27019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
27020 $as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
27021 OPT_WINIDN="default"
27022
27023 # Check whether --with-winidn was given.
27024 if test "${with_winidn+set}" = set; then :
27025   withval=$with_winidn; OPT_WINIDN=$withval
27026 fi
27027
27028 case "$OPT_WINIDN" in
27029   no|default)
27030         want_winidn="no"
27031     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27032 $as_echo "no" >&6; }
27033     ;;
27034   yes)
27035         want_winidn="yes"
27036     want_winidn_path="default"
27037     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27038 $as_echo "yes" >&6; }
27039     ;;
27040   *)
27041         want_winidn="yes"
27042     want_winidn_path="$withval"
27043     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
27044 $as_echo "yes ($withval)" >&6; }
27045     ;;
27046 esac
27047
27048 if test "$want_winidn" = "yes"; then
27049     clean_CPPFLAGS="$CPPFLAGS"
27050   clean_LDFLAGS="$LDFLAGS"
27051   clean_LIBS="$LIBS"
27052   WINIDN_LIBS="-lnormaliz"
27053   WINIDN_CPPFLAGS="-DWINVER=0x0600"
27054   #
27055   if test "$want_winidn_path" != "default"; then
27056             WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
27057     WINIDN_CPPFLAGS="-I$want_winidn_path/include"
27058     WINIDN_DIR="$want_winidn_path/lib$libsuff"
27059   fi
27060   #
27061   CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
27062   LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
27063   LIBS="$WINIDN_LIBS $LIBS"
27064   #
27065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
27066 $as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
27067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27068 /* end confdefs.h.  */
27069
27070
27071       #include <windows.h>
27072
27073 int main (void)
27074 {
27075
27076       IdnToUnicode(0, NULL, 0, NULL, 0);
27077
27078  ;
27079  return 0;
27080 }
27081
27082 _ACEOF
27083 if ac_fn_c_try_link "$LINENO"; then :
27084
27085     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27086 $as_echo "yes" >&6; }
27087     tst_links_winidn="yes"
27088
27089 else
27090
27091     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27092 $as_echo "no" >&6; }
27093     tst_links_winidn="no"
27094
27095 fi
27096 rm -f core conftest.err conftest.$ac_objext \
27097     conftest$ac_exeext conftest.$ac_ext
27098   #
27099   if test "$tst_links_winidn" = "yes"; then
27100
27101 $as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
27102
27103
27104 $as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
27105
27106     IDN_ENABLED=1
27107
27108     curl_idn_msg="enabled (Windows-native)"
27109   else
27110     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27111 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27112     CPPFLAGS="$clean_CPPFLAGS"
27113     LDFLAGS="$clean_LDFLAGS"
27114     LIBS="$clean_LIBS"
27115   fi
27116 fi
27117
27118
27119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
27120 $as_echo_n "checking whether to build with libidn2... " >&6; }
27121 OPT_IDN="default"
27122
27123 # Check whether --with-libidn2 was given.
27124 if test "${with_libidn2+set}" = set; then :
27125   withval=$with_libidn2; OPT_IDN=$withval
27126 fi
27127
27128 case "$OPT_IDN" in
27129   no)
27130         want_idn="no"
27131     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27132 $as_echo "no" >&6; }
27133     ;;
27134   default)
27135         want_idn="yes"
27136     want_idn_path="default"
27137     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
27138 $as_echo "(assumed) yes" >&6; }
27139     ;;
27140   yes)
27141         want_idn="yes"
27142     want_idn_path="default"
27143     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27144 $as_echo "yes" >&6; }
27145     ;;
27146   *)
27147         want_idn="yes"
27148     want_idn_path="$withval"
27149     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
27150 $as_echo "yes ($withval)" >&6; }
27151     ;;
27152 esac
27153
27154 if test "$want_idn" = "yes"; then
27155     clean_CPPFLAGS="$CPPFLAGS"
27156   clean_LDFLAGS="$LDFLAGS"
27157   clean_LIBS="$LIBS"
27158   PKGCONFIG="no"
27159   #
27160   if test "$want_idn_path" != "default"; then
27161         IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
27162
27163     if test -n "$PKG_CONFIG"; then
27164       PKGCONFIG="$PKG_CONFIG"
27165     else
27166       if test -n "$ac_tool_prefix"; then
27167   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27168 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27170 $as_echo_n "checking for $ac_word... " >&6; }
27171 if ${ac_cv_path_PKGCONFIG+:} false; then :
27172   $as_echo_n "(cached) " >&6
27173 else
27174   case $PKGCONFIG in
27175   [\\/]* | ?:[\\/]*)
27176   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27177   ;;
27178   *)
27179   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27180 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27181 for as_dir in $as_dummy
27182 do
27183   IFS=$as_save_IFS
27184   test -z "$as_dir" && as_dir=.
27185     for ac_exec_ext in '' $ac_executable_extensions; do
27186   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27187     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27189     break 2
27190   fi
27191 done
27192   done
27193 IFS=$as_save_IFS
27194
27195   ;;
27196 esac
27197 fi
27198 PKGCONFIG=$ac_cv_path_PKGCONFIG
27199 if test -n "$PKGCONFIG"; then
27200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27201 $as_echo "$PKGCONFIG" >&6; }
27202 else
27203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27204 $as_echo "no" >&6; }
27205 fi
27206
27207
27208 fi
27209 if test -z "$ac_cv_path_PKGCONFIG"; then
27210   ac_pt_PKGCONFIG=$PKGCONFIG
27211   # Extract the first word of "pkg-config", so it can be a program name with args.
27212 set dummy pkg-config; ac_word=$2
27213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27214 $as_echo_n "checking for $ac_word... " >&6; }
27215 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27216   $as_echo_n "(cached) " >&6
27217 else
27218   case $ac_pt_PKGCONFIG in
27219   [\\/]* | ?:[\\/]*)
27220   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27221   ;;
27222   *)
27223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27224 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27225 for as_dir in $as_dummy
27226 do
27227   IFS=$as_save_IFS
27228   test -z "$as_dir" && as_dir=.
27229     for ac_exec_ext in '' $ac_executable_extensions; do
27230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27231     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27233     break 2
27234   fi
27235 done
27236   done
27237 IFS=$as_save_IFS
27238
27239   ;;
27240 esac
27241 fi
27242 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27243 if test -n "$ac_pt_PKGCONFIG"; then
27244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27245 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27246 else
27247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27248 $as_echo "no" >&6; }
27249 fi
27250
27251   if test "x$ac_pt_PKGCONFIG" = x; then
27252     PKGCONFIG="no"
27253   else
27254     case $cross_compiling:$ac_tool_warned in
27255 yes:)
27256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27258 ac_tool_warned=yes ;;
27259 esac
27260     PKGCONFIG=$ac_pt_PKGCONFIG
27261   fi
27262 else
27263   PKGCONFIG="$ac_cv_path_PKGCONFIG"
27264 fi
27265
27266     fi
27267
27268     if test "x$PKGCONFIG" != "xno"; then
27269       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27270 $as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27271             itexists=`
27272     if test -n "$IDN_PCDIR"; then
27273       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27274       export PKG_CONFIG_LIBDIR
27275     fi
27276          $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27277
27278       if test -z "$itexists"; then
27279                         PKGCONFIG="no"
27280         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27281 $as_echo "no" >&6; }
27282       else
27283         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27284 $as_echo "found" >&6; }
27285       fi
27286     fi
27287
27288     if test "$PKGCONFIG" != "no"; then
27289       IDN_LIBS=`
27290     if test -n "$IDN_PCDIR"; then
27291       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27292       export PKG_CONFIG_LIBDIR
27293     fi
27294          $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27295       IDN_LDFLAGS=`
27296     if test -n "$IDN_PCDIR"; then
27297       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27298       export PKG_CONFIG_LIBDIR
27299     fi
27300          $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27301       IDN_CPPFLAGS=`
27302     if test -n "$IDN_PCDIR"; then
27303       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27304       export PKG_CONFIG_LIBDIR
27305     fi
27306          $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27307       IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27308     else
27309             IDN_LIBS="-lidn2"
27310       IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
27311       IDN_CPPFLAGS="-I$want_idn_path/include"
27312       IDN_DIR="$want_idn_path/lib$libsuff"
27313     fi
27314   else
27315
27316     if test -n "$PKG_CONFIG"; then
27317       PKGCONFIG="$PKG_CONFIG"
27318     else
27319       if test -n "$ac_tool_prefix"; then
27320   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27321 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27323 $as_echo_n "checking for $ac_word... " >&6; }
27324 if ${ac_cv_path_PKGCONFIG+:} false; then :
27325   $as_echo_n "(cached) " >&6
27326 else
27327   case $PKGCONFIG in
27328   [\\/]* | ?:[\\/]*)
27329   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27330   ;;
27331   *)
27332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27333 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27334 for as_dir in $as_dummy
27335 do
27336   IFS=$as_save_IFS
27337   test -z "$as_dir" && as_dir=.
27338     for ac_exec_ext in '' $ac_executable_extensions; do
27339   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27340     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27342     break 2
27343   fi
27344 done
27345   done
27346 IFS=$as_save_IFS
27347
27348   ;;
27349 esac
27350 fi
27351 PKGCONFIG=$ac_cv_path_PKGCONFIG
27352 if test -n "$PKGCONFIG"; then
27353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27354 $as_echo "$PKGCONFIG" >&6; }
27355 else
27356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27357 $as_echo "no" >&6; }
27358 fi
27359
27360
27361 fi
27362 if test -z "$ac_cv_path_PKGCONFIG"; then
27363   ac_pt_PKGCONFIG=$PKGCONFIG
27364   # Extract the first word of "pkg-config", so it can be a program name with args.
27365 set dummy pkg-config; ac_word=$2
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27367 $as_echo_n "checking for $ac_word... " >&6; }
27368 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27369   $as_echo_n "(cached) " >&6
27370 else
27371   case $ac_pt_PKGCONFIG in
27372   [\\/]* | ?:[\\/]*)
27373   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27374   ;;
27375   *)
27376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27377 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27378 for as_dir in $as_dummy
27379 do
27380   IFS=$as_save_IFS
27381   test -z "$as_dir" && as_dir=.
27382     for ac_exec_ext in '' $ac_executable_extensions; do
27383   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27384     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27386     break 2
27387   fi
27388 done
27389   done
27390 IFS=$as_save_IFS
27391
27392   ;;
27393 esac
27394 fi
27395 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27396 if test -n "$ac_pt_PKGCONFIG"; then
27397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27398 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27399 else
27400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27401 $as_echo "no" >&6; }
27402 fi
27403
27404   if test "x$ac_pt_PKGCONFIG" = x; then
27405     PKGCONFIG="no"
27406   else
27407     case $cross_compiling:$ac_tool_warned in
27408 yes:)
27409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27411 ac_tool_warned=yes ;;
27412 esac
27413     PKGCONFIG=$ac_pt_PKGCONFIG
27414   fi
27415 else
27416   PKGCONFIG="$ac_cv_path_PKGCONFIG"
27417 fi
27418
27419     fi
27420
27421     if test "x$PKGCONFIG" != "xno"; then
27422       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27423 $as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27424             itexists=`
27425     if test -n ""; then
27426       PKG_CONFIG_LIBDIR=""
27427       export PKG_CONFIG_LIBDIR
27428     fi
27429          $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27430
27431       if test -z "$itexists"; then
27432                         PKGCONFIG="no"
27433         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27434 $as_echo "no" >&6; }
27435       else
27436         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27437 $as_echo "found" >&6; }
27438       fi
27439     fi
27440
27441     if test "$PKGCONFIG" != "no"; then
27442       IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27443       IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27444       IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27445       IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27446     else
27447             IDN_LIBS="-lidn2"
27448     fi
27449   fi
27450   #
27451   if test "$PKGCONFIG" != "no"; then
27452     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
27453 $as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27454     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27455 $as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27456     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27457 $as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27458     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
27459 $as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
27460   else
27461     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
27462 $as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27463     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27464 $as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27465     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27466 $as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27467     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
27468 $as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
27469   fi
27470   #
27471   CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
27472   LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
27473   LIBS="$IDN_LIBS $LIBS"
27474   #
27475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
27476 $as_echo_n "checking if idn2_lookup_ul can be linked... " >&6; }
27477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27478 /* end confdefs.h.  */
27479
27480
27481 #define idn2_lookup_ul innocuous_idn2_lookup_ul
27482 #ifdef __STDC__
27483 # include <limits.h>
27484 #else
27485 # include <assert.h>
27486 #endif
27487 #undef idn2_lookup_ul
27488 #ifdef __cplusplus
27489 extern "C"
27490 #endif
27491 char idn2_lookup_ul ();
27492 #if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
27493 choke me
27494 #endif
27495
27496 int main (void)
27497 {
27498 return idn2_lookup_ul ();
27499  ;
27500  return 0;
27501 }
27502
27503 _ACEOF
27504 if ac_fn_c_try_link "$LINENO"; then :
27505
27506     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27507 $as_echo "yes" >&6; }
27508     tst_links_libidn="yes"
27509
27510 else
27511
27512     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27513 $as_echo "no" >&6; }
27514     tst_links_libidn="no"
27515
27516 fi
27517 rm -f core conftest.err conftest.$ac_objext \
27518     conftest$ac_exeext conftest.$ac_ext
27519   #
27520   for ac_header in idn2.h
27521 do :
27522   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27523 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27524 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27525   cat >>confdefs.h <<_ACEOF
27526 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27527 _ACEOF
27528
27529 fi
27530
27531 done
27532
27533
27534   if test "$tst_links_libidn" = "yes"; then
27535
27536 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
27537
27538
27539     IDN_ENABLED=1
27540
27541     curl_idn_msg="enabled (libidn2)"
27542     if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
27543       LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$IDN_DIR"
27544       export LD_LIBRARY_PATH
27545       { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to LD_LIBRARY_PATH" >&5
27546 $as_echo "$as_me: Added $IDN_DIR to LD_LIBRARY_PATH" >&6;}
27547     fi
27548   else
27549     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27550 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27551     CPPFLAGS="$clean_CPPFLAGS"
27552     LDFLAGS="$clean_LDFLAGS"
27553     LIBS="$clean_LIBS"
27554   fi
27555 fi
27556
27557
27558
27559
27560
27561 OPT_H2="yes"
27562
27563 if test "x$disable_http" = "xyes"; then
27564   # without HTTP, nghttp2 is no use
27565   OPT_H2="no"
27566 fi
27567
27568
27569 # Check whether --with-nghttp2 was given.
27570 if test "${with_nghttp2+set}" = set; then :
27571   withval=$with_nghttp2; OPT_H2=$withval
27572 fi
27573
27574 case "$OPT_H2" in
27575   no)
27576         want_h2="no"
27577     ;;
27578   yes)
27579         want_h2="default"
27580     want_h2_path=""
27581     ;;
27582   *)
27583         want_h2="yes"
27584     want_h2_path="$withval/lib/pkgconfig"
27585     ;;
27586 esac
27587
27588 curl_h2_msg="disabled (--with-nghttp2)"
27589 if test X"$want_h2" != Xno; then
27590     CLEANLDFLAGS="$LDFLAGS"
27591   CLEANCPPFLAGS="$CPPFLAGS"
27592   CLEANLIBS="$LIBS"
27593
27594
27595     if test -n "$PKG_CONFIG"; then
27596       PKGCONFIG="$PKG_CONFIG"
27597     else
27598       if test -n "$ac_tool_prefix"; then
27599   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27600 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27602 $as_echo_n "checking for $ac_word... " >&6; }
27603 if ${ac_cv_path_PKGCONFIG+:} false; then :
27604   $as_echo_n "(cached) " >&6
27605 else
27606   case $PKGCONFIG in
27607   [\\/]* | ?:[\\/]*)
27608   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27609   ;;
27610   *)
27611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27612 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27613 for as_dir in $as_dummy
27614 do
27615   IFS=$as_save_IFS
27616   test -z "$as_dir" && as_dir=.
27617     for ac_exec_ext in '' $ac_executable_extensions; do
27618   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27619     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27621     break 2
27622   fi
27623 done
27624   done
27625 IFS=$as_save_IFS
27626
27627   ;;
27628 esac
27629 fi
27630 PKGCONFIG=$ac_cv_path_PKGCONFIG
27631 if test -n "$PKGCONFIG"; then
27632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27633 $as_echo "$PKGCONFIG" >&6; }
27634 else
27635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27636 $as_echo "no" >&6; }
27637 fi
27638
27639
27640 fi
27641 if test -z "$ac_cv_path_PKGCONFIG"; then
27642   ac_pt_PKGCONFIG=$PKGCONFIG
27643   # Extract the first word of "pkg-config", so it can be a program name with args.
27644 set dummy pkg-config; ac_word=$2
27645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27646 $as_echo_n "checking for $ac_word... " >&6; }
27647 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27648   $as_echo_n "(cached) " >&6
27649 else
27650   case $ac_pt_PKGCONFIG in
27651   [\\/]* | ?:[\\/]*)
27652   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27653   ;;
27654   *)
27655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27656 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27657 for as_dir in $as_dummy
27658 do
27659   IFS=$as_save_IFS
27660   test -z "$as_dir" && as_dir=.
27661     for ac_exec_ext in '' $ac_executable_extensions; do
27662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27663     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27665     break 2
27666   fi
27667 done
27668   done
27669 IFS=$as_save_IFS
27670
27671   ;;
27672 esac
27673 fi
27674 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27675 if test -n "$ac_pt_PKGCONFIG"; then
27676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27677 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27678 else
27679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27680 $as_echo "no" >&6; }
27681 fi
27682
27683   if test "x$ac_pt_PKGCONFIG" = x; then
27684     PKGCONFIG="no"
27685   else
27686     case $cross_compiling:$ac_tool_warned in
27687 yes:)
27688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27690 ac_tool_warned=yes ;;
27691 esac
27692     PKGCONFIG=$ac_pt_PKGCONFIG
27693   fi
27694 else
27695   PKGCONFIG="$ac_cv_path_PKGCONFIG"
27696 fi
27697
27698     fi
27699
27700     if test "x$PKGCONFIG" != "xno"; then
27701       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
27702 $as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
27703             itexists=`
27704     if test -n "$want_h2_path"; then
27705       PKG_CONFIG_LIBDIR="$want_h2_path"
27706       export PKG_CONFIG_LIBDIR
27707     fi
27708          $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
27709
27710       if test -z "$itexists"; then
27711                         PKGCONFIG="no"
27712         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27713 $as_echo "no" >&6; }
27714       else
27715         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27716 $as_echo "found" >&6; }
27717       fi
27718     fi
27719
27720
27721   if test "$PKGCONFIG" != "no" ; then
27722     LIB_H2=`
27723     if test -n "$want_h2_path"; then
27724       PKG_CONFIG_LIBDIR="$want_h2_path"
27725       export PKG_CONFIG_LIBDIR
27726     fi
27727
27728       $PKGCONFIG --libs-only-l libnghttp2`
27729     { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
27730 $as_echo "$as_me: -l is $LIB_H2" >&6;}
27731
27732     CPP_H2=`
27733     if test -n "$want_h2_path"; then
27734       PKG_CONFIG_LIBDIR="$want_h2_path"
27735       export PKG_CONFIG_LIBDIR
27736     fi
27737        $PKGCONFIG --cflags-only-I libnghttp2`
27738     { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
27739 $as_echo "$as_me: -I is $CPP_H2" >&6;}
27740
27741     LD_H2=`
27742     if test -n "$want_h2_path"; then
27743       PKG_CONFIG_LIBDIR="$want_h2_path"
27744       export PKG_CONFIG_LIBDIR
27745     fi
27746
27747       $PKGCONFIG --libs-only-L libnghttp2`
27748     { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
27749 $as_echo "$as_me: -L is $LD_H2" >&6;}
27750
27751     LDFLAGS="$LDFLAGS $LD_H2"
27752     CPPFLAGS="$CPPFLAGS $CPP_H2"
27753     LIBS="$LIB_H2 $LIBS"
27754
27755     # use nghttp2_option_set_no_recv_client_magic to require nghttp2
27756     # >= 1.0.0
27757     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5
27758 $as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; }
27759 if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then :
27760   $as_echo_n "(cached) " >&6
27761 else
27762   ac_check_lib_save_LIBS=$LIBS
27763 LIBS="-lnghttp2  $LIBS"
27764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27765 /* end confdefs.h.  */
27766
27767
27768 #ifdef __cplusplus
27769 extern "C"
27770 #endif
27771 char nghttp2_option_set_no_recv_client_magic ();
27772 int main (void)
27773 {
27774 return nghttp2_option_set_no_recv_client_magic ();
27775  ;
27776  return 0;
27777 }
27778 _ACEOF
27779 if ac_fn_c_try_link "$LINENO"; then :
27780   ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes
27781 else
27782   ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no
27783 fi
27784 rm -f core conftest.err conftest.$ac_objext \
27785     conftest$ac_exeext conftest.$ac_ext
27786 LIBS=$ac_check_lib_save_LIBS
27787 fi
27788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5
27789 $as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; }
27790 if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then :
27791
27792        for ac_header in nghttp2/nghttp2.h
27793 do :
27794   ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
27795 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
27796   cat >>confdefs.h <<_ACEOF
27797 #define HAVE_NGHTTP2_NGHTTP2_H 1
27798 _ACEOF
27799  curl_h2_msg="enabled (nghttp2)"
27800           NGHTTP2_ENABLED=1
27801
27802 $as_echo "#define USE_NGHTTP2 1" >>confdefs.h
27803
27804           USE_NGHTTP2=1
27805
27806
27807 fi
27808
27809 done
27810
27811
27812 else
27813           LDFLAGS=$CLEANLDFLAGS
27814         CPPFLAGS=$CLEANCPPFLAGS
27815         LIBS=$CLEANLIBS
27816
27817 fi
27818
27819
27820   else
27821         if test X"$want_h2" != Xdefault; then
27822                   as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
27823     fi
27824   fi
27825
27826 fi
27827
27828
27829 OPT_ZSH_FPATH=default
27830
27831 # Check whether --with-zsh-functions-dir was given.
27832 if test "${with_zsh_functions_dir+set}" = set; then :
27833   withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
27834 fi
27835
27836 case "$OPT_ZSH_FPATH" in
27837   no)
27838         ;;
27839   default|yes)
27840         ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
27841
27842     ;;
27843   *)
27844         ZSH_FUNCTIONS_DIR="$withval"
27845
27846     ;;
27847 esac
27848
27849
27850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
27851 $as_echo_n "checking for ANSI C header files... " >&6; }
27852 if ${ac_cv_header_stdc+:} false; then :
27853   $as_echo_n "(cached) " >&6
27854 else
27855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27856 /* end confdefs.h.  */
27857 #include <stdlib.h>
27858 #include <stdarg.h>
27859 #include <string.h>
27860 #include <float.h>
27861
27862 int main (void)
27863 {
27864
27865  ;
27866  return 0;
27867 }
27868 _ACEOF
27869 if ac_fn_c_try_compile "$LINENO"; then :
27870   ac_cv_header_stdc=yes
27871 else
27872   ac_cv_header_stdc=no
27873 fi
27874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27875
27876 if test $ac_cv_header_stdc = yes; then
27877   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27879 /* end confdefs.h.  */
27880 #include <string.h>
27881
27882 _ACEOF
27883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27884   $EGREP "memchr" >/dev/null 2>&1; then :
27885
27886 else
27887   ac_cv_header_stdc=no
27888 fi
27889 rm -f conftest*
27890
27891 fi
27892
27893 if test $ac_cv_header_stdc = yes; then
27894   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27896 /* end confdefs.h.  */
27897 #include <stdlib.h>
27898
27899 _ACEOF
27900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27901   $EGREP "free" >/dev/null 2>&1; then :
27902
27903 else
27904   ac_cv_header_stdc=no
27905 fi
27906 rm -f conftest*
27907
27908 fi
27909
27910 if test $ac_cv_header_stdc = yes; then
27911   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27912   if test "$cross_compiling" = yes; then :
27913   :
27914 else
27915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27916 /* end confdefs.h.  */
27917 #include <ctype.h>
27918 #include <stdlib.h>
27919 #if ((' ' & 0x0FF) == 0x020)
27920 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27921 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27922 #else
27923 # define ISLOWER(c) \
27924                    (('a' <= (c) && (c) <= 'i') \
27925                      || ('j' <= (c) && (c) <= 'r') \
27926                      || ('s' <= (c) && (c) <= 'z'))
27927 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27928 #endif
27929
27930 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27931 int
27932 main ()
27933 {
27934   int i;
27935   for (i = 0; i < 256; i++)
27936     if (XOR (islower (i), ISLOWER (i))
27937         || toupper (i) != TOUPPER (i))
27938       return 2;
27939   return 0;
27940 }
27941 _ACEOF
27942 if ac_fn_c_try_run "$LINENO"; then :
27943
27944 else
27945   ac_cv_header_stdc=no
27946 fi
27947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27948   conftest.$ac_objext conftest.beam conftest.$ac_ext
27949 fi
27950
27951 fi
27952 fi
27953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
27954 $as_echo "$ac_cv_header_stdc" >&6; }
27955 if test $ac_cv_header_stdc = yes; then
27956
27957 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
27958
27959 fi
27960
27961
27962
27963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
27964 $as_echo_n "checking for malloc.h... " >&6; }
27965 if ${curl_cv_header_malloc_h+:} false; then :
27966   $as_echo_n "(cached) " >&6
27967 else
27968
27969     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27970 /* end confdefs.h.  */
27971
27972
27973 #include <malloc.h>
27974
27975 int main (void)
27976 {
27977
27978         void *p = malloc(10);
27979         void *q = calloc(10,10);
27980         free(p);
27981         free(q);
27982
27983  ;
27984  return 0;
27985 }
27986
27987 _ACEOF
27988 if ac_fn_c_try_compile "$LINENO"; then :
27989
27990       curl_cv_header_malloc_h="yes"
27991
27992 else
27993
27994       curl_cv_header_malloc_h="no"
27995
27996 fi
27997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27998
27999 fi
28000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
28001 $as_echo "$curl_cv_header_malloc_h" >&6; }
28002   if test "$curl_cv_header_malloc_h" = "yes"; then
28003
28004 cat >>confdefs.h <<_ACEOF
28005 #define HAVE_MALLOC_H 1
28006 _ACEOF
28007
28008     #
28009     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28010 /* end confdefs.h.  */
28011
28012
28013 #include <stdlib.h>
28014
28015 int main (void)
28016 {
28017
28018         void *p = malloc(10);
28019         void *q = calloc(10,10);
28020         free(p);
28021         free(q);
28022
28023  ;
28024  return 0;
28025 }
28026
28027 _ACEOF
28028 if ac_fn_c_try_compile "$LINENO"; then :
28029
28030       curl_cv_need_header_malloc_h="no"
28031
28032 else
28033
28034       curl_cv_need_header_malloc_h="yes"
28035
28036 fi
28037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28038     #
28039     case "$curl_cv_need_header_malloc_h" in
28040       yes)
28041
28042 cat >>confdefs.h <<_ACEOF
28043 #define NEED_MALLOC_H 1
28044 _ACEOF
28045
28046         ;;
28047     esac
28048   fi
28049
28050
28051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
28052 $as_echo_n "checking for memory.h... " >&6; }
28053 if ${curl_cv_header_memory_h+:} false; then :
28054   $as_echo_n "(cached) " >&6
28055 else
28056
28057     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28058 /* end confdefs.h.  */
28059
28060
28061 #include <memory.h>
28062
28063 int main (void)
28064 {
28065
28066         void *p = malloc(10);
28067         void *q = calloc(10,10);
28068         free(p);
28069         free(q);
28070
28071  ;
28072  return 0;
28073 }
28074
28075 _ACEOF
28076 if ac_fn_c_try_compile "$LINENO"; then :
28077
28078       curl_cv_header_memory_h="yes"
28079
28080 else
28081
28082       curl_cv_header_memory_h="no"
28083
28084 fi
28085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28086
28087 fi
28088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
28089 $as_echo "$curl_cv_header_memory_h" >&6; }
28090   if test "$curl_cv_header_memory_h" = "yes"; then
28091
28092 cat >>confdefs.h <<_ACEOF
28093 #define HAVE_MEMORY_H 1
28094 _ACEOF
28095
28096     #
28097     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28098 /* end confdefs.h.  */
28099
28100
28101 #include <stdlib.h>
28102
28103 int main (void)
28104 {
28105
28106         void *p = malloc(10);
28107         void *q = calloc(10,10);
28108         free(p);
28109         free(q);
28110
28111  ;
28112  return 0;
28113 }
28114
28115 _ACEOF
28116 if ac_fn_c_try_compile "$LINENO"; then :
28117
28118       curl_cv_need_header_memory_h="no"
28119
28120 else
28121
28122       curl_cv_need_header_memory_h="yes"
28123
28124 fi
28125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28126     #
28127     case "$curl_cv_need_header_memory_h" in
28128       yes)
28129
28130 cat >>confdefs.h <<_ACEOF
28131 #define NEED_MEMORY_H 1
28132 _ACEOF
28133
28134         ;;
28135     esac
28136   fi
28137
28138
28139 for ac_header in sys/types.h \
28140         sys/time.h \
28141         sys/select.h \
28142         sys/socket.h \
28143         sys/ioctl.h \
28144         sys/uio.h \
28145         assert.h \
28146         unistd.h \
28147         stdlib.h \
28148         arpa/inet.h \
28149         net/if.h \
28150         netinet/in.h \
28151         netinet/in6.h \
28152         sys/un.h \
28153         linux/tcp.h \
28154         netinet/tcp.h \
28155         netdb.h \
28156         sys/sockio.h \
28157         sys/stat.h \
28158         sys/param.h \
28159         termios.h \
28160         termio.h \
28161         sgtty.h \
28162         fcntl.h \
28163         alloca.h \
28164         time.h \
28165         io.h \
28166         pwd.h \
28167         utime.h \
28168         sys/utime.h \
28169         sys/poll.h \
28170         poll.h \
28171         socket.h \
28172         sys/resource.h \
28173         libgen.h \
28174         locale.h \
28175         errno.h \
28176         stdbool.h \
28177         arpa/tftp.h \
28178         sys/filio.h \
28179         sys/wait.h \
28180         setjmp.h
28181 do :
28182   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28183 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
28184 #ifdef HAVE_SYS_TYPES_H
28185 #include <sys/types.h>
28186 #endif
28187 #ifdef HAVE_SYS_TIME_H
28188 #include <sys/time.h>
28189 #endif
28190 #ifdef HAVE_SYS_SELECT_H
28191 #include <sys/select.h>
28192 #endif
28193 #ifdef HAVE_SYS_SOCKET_H
28194 #include <sys/socket.h>
28195 #endif
28196 #ifdef HAVE_NETINET_IN_H
28197 #include <netinet/in.h>
28198 #endif
28199 #ifdef HAVE_NETINET_IN6_H
28200 #include <netinet/in6.h>
28201 #endif
28202 #ifdef HAVE_SYS_UN_H
28203 #include <sys/un.h>
28204 #endif
28205
28206
28207 "
28208 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28209   cat >>confdefs.h <<_ACEOF
28210 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28211 _ACEOF
28212
28213 fi
28214
28215 done
28216
28217
28218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
28219 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
28220 if ${ac_cv_c_const+:} false; then :
28221   $as_echo_n "(cached) " >&6
28222 else
28223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28224 /* end confdefs.h.  */
28225
28226 int main (void)
28227 {
28228
28229 #ifndef __cplusplus
28230   /* Ultrix mips cc rejects this sort of thing.  */
28231   typedef int charset[2];
28232   const charset cs = { 0, 0 };
28233   /* SunOS 4.1.1 cc rejects this.  */
28234   char const *const *pcpcc;
28235   char **ppc;
28236   /* NEC SVR4.0.2 mips cc rejects this.  */
28237   struct point {int x, y;};
28238   static struct point const zero = {0,0};
28239   /* AIX XL C 1.02.0.0 rejects this.
28240      It does not let you subtract one const X* pointer from another in
28241      an arm of an if-expression whose if-part is not a constant
28242      expression */
28243   const char *g = "string";
28244   pcpcc = &g + (g ? g-g : 0);
28245   /* HPUX 7.0 cc rejects these. */
28246   ++pcpcc;
28247   ppc = (char**) pcpcc;
28248   pcpcc = (char const *const *) ppc;
28249   { /* SCO 3.2v4 cc rejects this sort of thing.  */
28250     char tx;
28251     char *t = &tx;
28252     char const *s = 0 ? (char *) 0 : (char const *) 0;
28253
28254     *t++ = 0;
28255     if (s) return 0;
28256   }
28257   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
28258     int x[] = {25, 17};
28259     const int *foo = &x[0];
28260     ++foo;
28261   }
28262   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28263     typedef const int *iptr;
28264     iptr p = 0;
28265     ++p;
28266   }
28267   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
28268        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28269     struct s { int j; const int *ap[3]; } bx;
28270     struct s *b = &bx; b->j = 5;
28271   }
28272   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28273     const int foo = 10;
28274     if (!foo) return 0;
28275   }
28276   return !cs[0] && !zero.x;
28277 #endif
28278
28279  ;
28280  return 0;
28281 }
28282 _ACEOF
28283 if ac_fn_c_try_compile "$LINENO"; then :
28284   ac_cv_c_const=yes
28285 else
28286   ac_cv_c_const=no
28287 fi
28288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28289 fi
28290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
28291 $as_echo "$ac_cv_c_const" >&6; }
28292 if test $ac_cv_c_const = no; then
28293
28294 $as_echo "#define const /**/" >>confdefs.h
28295
28296 fi
28297
28298
28299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
28300 $as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
28301 if ${curl_cv_variadic_macros_c99+:} false; then :
28302   $as_echo_n "(cached) " >&6
28303 else
28304
28305     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28306 /* end confdefs.h.  */
28307
28308
28309 #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
28310 #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
28311         int fun3(int arg1, int arg2, int arg3);
28312         int fun2(int arg1, int arg2);
28313         int fun3(int arg1, int arg2, int arg3)
28314         { return arg1 + arg2 + arg3; }
28315         int fun2(int arg1, int arg2)
28316         { return arg1 + arg2; }
28317
28318 int main (void)
28319 {
28320
28321         int res3 = c99_vmacro3(1, 2, 3);
28322         int res2 = c99_vmacro2(1, 2);
28323
28324  ;
28325  return 0;
28326 }
28327
28328 _ACEOF
28329 if ac_fn_c_try_compile "$LINENO"; then :
28330
28331       curl_cv_variadic_macros_c99="yes"
28332
28333 else
28334
28335       curl_cv_variadic_macros_c99="no"
28336
28337 fi
28338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28339
28340 fi
28341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
28342 $as_echo "$curl_cv_variadic_macros_c99" >&6; }
28343   case "$curl_cv_variadic_macros_c99" in
28344     yes)
28345
28346 cat >>confdefs.h <<_ACEOF
28347 #define HAVE_VARIADIC_MACROS_C99 1
28348 _ACEOF
28349
28350       ;;
28351   esac
28352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
28353 $as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
28354 if ${curl_cv_variadic_macros_gcc+:} false; then :
28355   $as_echo_n "(cached) " >&6
28356 else
28357
28358     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28359 /* end confdefs.h.  */
28360
28361
28362 #define gcc_vmacro3(first, args...) fun3(first, args)
28363 #define gcc_vmacro2(first, args...) fun2(first, args)
28364         int fun3(int arg1, int arg2, int arg3);
28365         int fun2(int arg1, int arg2);
28366         int fun3(int arg1, int arg2, int arg3)
28367         { return arg1 + arg2 + arg3; }
28368         int fun2(int arg1, int arg2)
28369         { return arg1 + arg2; }
28370
28371 int main (void)
28372 {
28373
28374         int res3 = gcc_vmacro3(1, 2, 3);
28375         int res2 = gcc_vmacro2(1, 2);
28376
28377  ;
28378  return 0;
28379 }
28380
28381 _ACEOF
28382 if ac_fn_c_try_compile "$LINENO"; then :
28383
28384       curl_cv_variadic_macros_gcc="yes"
28385
28386 else
28387
28388       curl_cv_variadic_macros_gcc="no"
28389
28390 fi
28391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28392
28393 fi
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
28395 $as_echo "$curl_cv_variadic_macros_gcc" >&6; }
28396   case "$curl_cv_variadic_macros_gcc" in
28397     yes)
28398
28399 cat >>confdefs.h <<_ACEOF
28400 #define HAVE_VARIADIC_MACROS_GCC 1
28401 _ACEOF
28402
28403       ;;
28404   esac
28405
28406 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
28407 if test "x$ac_cv_type_size_t" = xyes; then :
28408
28409 else
28410
28411 cat >>confdefs.h <<_ACEOF
28412 #define size_t unsigned int
28413 _ACEOF
28414
28415 fi
28416
28417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
28418 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
28419 if ${ac_cv_header_time+:} false; then :
28420   $as_echo_n "(cached) " >&6
28421 else
28422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28423 /* end confdefs.h.  */
28424 #include <sys/types.h>
28425 #include <sys/time.h>
28426 #include <time.h>
28427
28428 int main (void)
28429 {
28430 if ((struct tm *) 0)
28431 return 0;
28432  ;
28433  return 0;
28434 }
28435 _ACEOF
28436 if ac_fn_c_try_compile "$LINENO"; then :
28437   ac_cv_header_time=yes
28438 else
28439   ac_cv_header_time=no
28440 fi
28441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28442 fi
28443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
28444 $as_echo "$ac_cv_header_time" >&6; }
28445 if test $ac_cv_header_time = yes; then
28446
28447 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
28448
28449 fi
28450
28451
28452         for ac_header in sys/types.h sys/time.h time.h sys/socket.h
28453 do :
28454   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28455 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28456 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28457   cat >>confdefs.h <<_ACEOF
28458 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28459 _ACEOF
28460
28461 fi
28462
28463 done
28464
28465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
28466 $as_echo_n "checking for struct timeval... " >&6; }
28467 if ${curl_cv_struct_timeval+:} false; then :
28468   $as_echo_n "(cached) " >&6
28469 else
28470
28471     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28472 /* end confdefs.h.  */
28473
28474
28475 #undef inline
28476 #ifdef HAVE_WINDOWS_H
28477 #ifndef WIN32_LEAN_AND_MEAN
28478 #define WIN32_LEAN_AND_MEAN
28479 #endif
28480 #include <windows.h>
28481 #ifdef HAVE_WINSOCK2_H
28482 #include <winsock2.h>
28483 #else
28484 #ifdef HAVE_WINSOCK_H
28485 #include <winsock.h>
28486 #endif
28487 #endif
28488 #endif
28489 #ifdef HAVE_SYS_TYPES_H
28490 #include <sys/types.h>
28491 #endif
28492 #ifdef HAVE_SYS_TIME_H
28493 #include <sys/time.h>
28494 #ifdef TIME_WITH_SYS_TIME
28495 #include <time.h>
28496 #endif
28497 #else
28498 #ifdef HAVE_TIME_H
28499 #include <time.h>
28500 #endif
28501 #endif
28502 #ifdef HAVE_SYS_SOCKET_H
28503 #include <sys/socket.h>
28504 #endif
28505
28506 int main (void)
28507 {
28508
28509         struct timeval ts;
28510         ts.tv_sec  = 0;
28511         ts.tv_usec = 0;
28512
28513  ;
28514  return 0;
28515 }
28516
28517 _ACEOF
28518 if ac_fn_c_try_compile "$LINENO"; then :
28519
28520       curl_cv_struct_timeval="yes"
28521
28522 else
28523
28524       curl_cv_struct_timeval="no"
28525
28526 fi
28527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28528
28529 fi
28530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
28531 $as_echo "$curl_cv_struct_timeval" >&6; }
28532   case "$curl_cv_struct_timeval" in
28533     yes)
28534
28535 cat >>confdefs.h <<_ACEOF
28536 #define HAVE_STRUCT_TIMEVAL 1
28537 _ACEOF
28538
28539       ;;
28540   esac
28541
28542
28543
28544     if test "x$cross_compiling" != xyes; then
28545
28546             { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
28547 $as_echo_n "checking run-time libs availability... " >&6; }
28548     if test "$cross_compiling" = yes; then :
28549   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28551 as_fn_error $? "cannot run test program while cross compiling
28552 See \`config.log' for more details" "$LINENO" 5; }
28553 else
28554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28555 /* end confdefs.h.  */
28556
28557 main()
28558 {
28559   return 0;
28560 }
28561
28562 _ACEOF
28563 if ac_fn_c_try_run "$LINENO"; then :
28564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
28565 $as_echo "fine" >&6; }
28566 else
28567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
28568 $as_echo "failed" >&6; }
28569     as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
28570
28571 fi
28572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28573   conftest.$ac_objext conftest.beam conftest.$ac_ext
28574 fi
28575
28576
28577       fi
28578
28579
28580 # The cast to long int works around a bug in the HP C Compiler
28581 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28582 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28583 # This bug is HP SR number 8606223364.
28584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
28585 $as_echo_n "checking size of size_t... " >&6; }
28586 if ${ac_cv_sizeof_size_t+:} false; then :
28587   $as_echo_n "(cached) " >&6
28588 else
28589   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
28590
28591 else
28592   if test "$ac_cv_type_size_t" = yes; then
28593      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28595 as_fn_error 77 "cannot compute sizeof (size_t)
28596 See \`config.log' for more details" "$LINENO" 5; }
28597    else
28598      ac_cv_sizeof_size_t=0
28599    fi
28600 fi
28601
28602 fi
28603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
28604 $as_echo "$ac_cv_sizeof_size_t" >&6; }
28605
28606
28607
28608 cat >>confdefs.h <<_ACEOF
28609 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28610 _ACEOF
28611
28612
28613 # The cast to long int works around a bug in the HP C Compiler
28614 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28615 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28616 # This bug is HP SR number 8606223364.
28617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
28618 $as_echo_n "checking size of long... " >&6; }
28619 if ${ac_cv_sizeof_long+:} false; then :
28620   $as_echo_n "(cached) " >&6
28621 else
28622   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
28623
28624 else
28625   if test "$ac_cv_type_long" = yes; then
28626      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28628 as_fn_error 77 "cannot compute sizeof (long)
28629 See \`config.log' for more details" "$LINENO" 5; }
28630    else
28631      ac_cv_sizeof_long=0
28632    fi
28633 fi
28634
28635 fi
28636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
28637 $as_echo "$ac_cv_sizeof_long" >&6; }
28638
28639
28640
28641 cat >>confdefs.h <<_ACEOF
28642 #define SIZEOF_LONG $ac_cv_sizeof_long
28643 _ACEOF
28644
28645
28646 # The cast to long int works around a bug in the HP C Compiler
28647 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28648 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28649 # This bug is HP SR number 8606223364.
28650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
28651 $as_echo_n "checking size of int... " >&6; }
28652 if ${ac_cv_sizeof_int+:} false; then :
28653   $as_echo_n "(cached) " >&6
28654 else
28655   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
28656
28657 else
28658   if test "$ac_cv_type_int" = yes; then
28659      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28661 as_fn_error 77 "cannot compute sizeof (int)
28662 See \`config.log' for more details" "$LINENO" 5; }
28663    else
28664      ac_cv_sizeof_int=0
28665    fi
28666 fi
28667
28668 fi
28669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
28670 $as_echo "$ac_cv_sizeof_int" >&6; }
28671
28672
28673
28674 cat >>confdefs.h <<_ACEOF
28675 #define SIZEOF_INT $ac_cv_sizeof_int
28676 _ACEOF
28677
28678
28679 # The cast to long int works around a bug in the HP C Compiler
28680 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28681 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28682 # This bug is HP SR number 8606223364.
28683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
28684 $as_echo_n "checking size of short... " >&6; }
28685 if ${ac_cv_sizeof_short+:} false; then :
28686   $as_echo_n "(cached) " >&6
28687 else
28688   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
28689
28690 else
28691   if test "$ac_cv_type_short" = yes; then
28692      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28694 as_fn_error 77 "cannot compute sizeof (short)
28695 See \`config.log' for more details" "$LINENO" 5; }
28696    else
28697      ac_cv_sizeof_short=0
28698    fi
28699 fi
28700
28701 fi
28702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
28703 $as_echo "$ac_cv_sizeof_short" >&6; }
28704
28705
28706
28707 cat >>confdefs.h <<_ACEOF
28708 #define SIZEOF_SHORT $ac_cv_sizeof_short
28709 _ACEOF
28710
28711
28712 # The cast to long int works around a bug in the HP C Compiler
28713 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28714 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28715 # This bug is HP SR number 8606223364.
28716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
28717 $as_echo_n "checking size of time_t... " >&6; }
28718 if ${ac_cv_sizeof_time_t+:} false; then :
28719   $as_echo_n "(cached) " >&6
28720 else
28721   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
28722
28723 else
28724   if test "$ac_cv_type_time_t" = yes; then
28725      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28727 as_fn_error 77 "cannot compute sizeof (time_t)
28728 See \`config.log' for more details" "$LINENO" 5; }
28729    else
28730      ac_cv_sizeof_time_t=0
28731    fi
28732 fi
28733
28734 fi
28735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
28736 $as_echo "$ac_cv_sizeof_time_t" >&6; }
28737
28738
28739
28740 cat >>confdefs.h <<_ACEOF
28741 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
28742 _ACEOF
28743
28744
28745 # The cast to long int works around a bug in the HP C Compiler
28746 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28747 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28748 # This bug is HP SR number 8606223364.
28749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
28750 $as_echo_n "checking size of off_t... " >&6; }
28751 if ${ac_cv_sizeof_off_t+:} false; then :
28752   $as_echo_n "(cached) " >&6
28753 else
28754   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
28755
28756 else
28757   if test "$ac_cv_type_off_t" = yes; then
28758      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28760 as_fn_error 77 "cannot compute sizeof (off_t)
28761 See \`config.log' for more details" "$LINENO" 5; }
28762    else
28763      ac_cv_sizeof_off_t=0
28764    fi
28765 fi
28766
28767 fi
28768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
28769 $as_echo "$ac_cv_sizeof_off_t" >&6; }
28770
28771
28772
28773 cat >>confdefs.h <<_ACEOF
28774 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
28775 _ACEOF
28776
28777
28778
28779 o=$CPPFLAGS
28780 CPPFLAGS="-I$srcdir/include $CPPFLAGS"
28781 # The cast to long int works around a bug in the HP C Compiler
28782 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28783 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28784 # This bug is HP SR number 8606223364.
28785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
28786 $as_echo_n "checking size of curl_off_t... " >&6; }
28787 if ${ac_cv_sizeof_curl_off_t+:} false; then :
28788   $as_echo_n "(cached) " >&6
28789 else
28790   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (curl_off_t))" "ac_cv_sizeof_curl_off_t"        "
28791 #include <curl/system.h>
28792
28793 "; then :
28794
28795 else
28796   if test "$ac_cv_type_curl_off_t" = yes; then
28797      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28799 as_fn_error 77 "cannot compute sizeof (curl_off_t)
28800 See \`config.log' for more details" "$LINENO" 5; }
28801    else
28802      ac_cv_sizeof_curl_off_t=0
28803    fi
28804 fi
28805
28806 fi
28807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_curl_off_t" >&5
28808 $as_echo "$ac_cv_sizeof_curl_off_t" >&6; }
28809
28810
28811
28812 cat >>confdefs.h <<_ACEOF
28813 #define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t
28814 _ACEOF
28815
28816
28817 CPPFLAGS=$o
28818
28819 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
28820 if test "x$ac_cv_type_long_long" = xyes; then :
28821
28822 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
28823
28824    longlong="yes"
28825
28826 fi
28827
28828
28829 if test "xyes" = "x$longlong"; then
28830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
28831 $as_echo_n "checking if numberLL works... " >&6; }
28832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28833 /* end confdefs.h.  */
28834
28835
28836
28837 int main (void)
28838 {
28839
28840       long long val = 1000LL;
28841
28842  ;
28843  return 0;
28844 }
28845
28846 _ACEOF
28847 if ac_fn_c_try_compile "$LINENO"; then :
28848
28849     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28850 $as_echo "yes" >&6; }
28851
28852 $as_echo "#define HAVE_LL 1" >>confdefs.h
28853
28854
28855 else
28856
28857     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28858 $as_echo "no" >&6; }
28859
28860 fi
28861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28862 fi
28863
28864
28865 # check for ssize_t
28866 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
28867 if test "x$ac_cv_type_ssize_t" = xyes; then :
28868
28869 else
28870
28871 $as_echo "#define ssize_t int" >>confdefs.h
28872
28873 fi
28874
28875
28876 # check for bool type
28877 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
28878 #ifdef HAVE_SYS_TYPES_H
28879 #include <sys/types.h>
28880 #endif
28881 #ifdef HAVE_STDBOOL_H
28882 #include <stdbool.h>
28883 #endif
28884
28885 "
28886 if test "x$ac_cv_type_bool" = xyes; then :
28887
28888
28889 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
28890
28891
28892 fi
28893
28894
28895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
28896 $as_echo_n "checking if time_t is unsigned... " >&6; }
28897 if test "$cross_compiling" = yes; then :
28898
28899     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28900 $as_echo "no" >&6; }
28901
28902 else
28903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28904 /* end confdefs.h.  */
28905
28906
28907   #include <time.h>
28908   #include <limits.h>
28909   time_t t = -1;
28910   return (t > 0);
28911
28912 _ACEOF
28913 if ac_fn_c_try_run "$LINENO"; then :
28914
28915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28916 $as_echo "yes" >&6; }
28917
28918 $as_echo "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
28919
28920
28921 else
28922
28923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28924 $as_echo "no" >&6; }
28925
28926 fi
28927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28928   conftest.$ac_objext conftest.beam conftest.$ac_ext
28929 fi
28930
28931
28932
28933 curl_includes_ws2tcpip="\
28934 /* includes start */
28935 #ifdef HAVE_WINDOWS_H
28936 #  ifndef WIN32_LEAN_AND_MEAN
28937 #    define WIN32_LEAN_AND_MEAN
28938 #  endif
28939 #  include <windows.h>
28940 #  ifdef HAVE_WINSOCK2_H
28941 #    include <winsock2.h>
28942 #    ifdef HAVE_WS2TCPIP_H
28943 #       include <ws2tcpip.h>
28944 #    endif
28945 #  endif
28946 #endif
28947 /* includes end */"
28948
28949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
28950 $as_echo_n "checking for windows.h... " >&6; }
28951 if ${curl_cv_header_windows_h+:} false; then :
28952   $as_echo_n "(cached) " >&6
28953 else
28954
28955     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28956 /* end confdefs.h.  */
28957
28958
28959 #undef inline
28960 #ifndef WIN32_LEAN_AND_MEAN
28961 #define WIN32_LEAN_AND_MEAN
28962 #endif
28963 #include <windows.h>
28964
28965 int main (void)
28966 {
28967
28968 #if defined(__CYGWIN__) || defined(__CEGCC__)
28969         HAVE_WINDOWS_H shall not be defined.
28970 #else
28971         int dummy=2*WINVER;
28972 #endif
28973
28974  ;
28975  return 0;
28976 }
28977
28978 _ACEOF
28979 if ac_fn_c_try_compile "$LINENO"; then :
28980
28981       curl_cv_header_windows_h="yes"
28982
28983 else
28984
28985       curl_cv_header_windows_h="no"
28986
28987 fi
28988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28989
28990 fi
28991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
28992 $as_echo "$curl_cv_header_windows_h" >&6; }
28993   case "$curl_cv_header_windows_h" in
28994     yes)
28995
28996 cat >>confdefs.h <<_ACEOF
28997 #define HAVE_WINDOWS_H 1
28998 _ACEOF
28999
29000       ;;
29001   esac
29002
29003
29004     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
29005 $as_echo_n "checking for winsock2.h... " >&6; }
29006 if ${curl_cv_header_winsock2_h+:} false; then :
29007   $as_echo_n "(cached) " >&6
29008 else
29009
29010     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29011 /* end confdefs.h.  */
29012
29013
29014 #undef inline
29015 #ifndef WIN32_LEAN_AND_MEAN
29016 #define WIN32_LEAN_AND_MEAN
29017 #endif
29018 #include <windows.h>
29019 #include <winsock2.h>
29020
29021 int main (void)
29022 {
29023
29024 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
29025         HAVE_WINSOCK2_H shall not be defined.
29026 #else
29027         int dummy=2*IPPROTO_ESP;
29028 #endif
29029
29030  ;
29031  return 0;
29032 }
29033
29034 _ACEOF
29035 if ac_fn_c_try_compile "$LINENO"; then :
29036
29037       curl_cv_header_winsock2_h="yes"
29038
29039 else
29040
29041       curl_cv_header_winsock2_h="no"
29042
29043 fi
29044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29045
29046 fi
29047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
29048 $as_echo "$curl_cv_header_winsock2_h" >&6; }
29049   case "$curl_cv_header_winsock2_h" in
29050     yes)
29051
29052 cat >>confdefs.h <<_ACEOF
29053 #define HAVE_WINSOCK2_H 1
29054 _ACEOF
29055
29056       ;;
29057   esac
29058
29059
29060     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
29061 $as_echo_n "checking for ws2tcpip.h... " >&6; }
29062 if ${curl_cv_header_ws2tcpip_h+:} false; then :
29063   $as_echo_n "(cached) " >&6
29064 else
29065
29066     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29067 /* end confdefs.h.  */
29068
29069
29070 #undef inline
29071 #ifndef WIN32_LEAN_AND_MEAN
29072 #define WIN32_LEAN_AND_MEAN
29073 #endif
29074 #include <windows.h>
29075 #include <winsock2.h>
29076 #include <ws2tcpip.h>
29077
29078 int main (void)
29079 {
29080
29081 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
29082         HAVE_WS2TCPIP_H shall not be defined.
29083 #else
29084         int dummy=2*IP_PKTINFO;
29085 #endif
29086
29087  ;
29088  return 0;
29089 }
29090
29091 _ACEOF
29092 if ac_fn_c_try_compile "$LINENO"; then :
29093
29094       curl_cv_header_ws2tcpip_h="yes"
29095
29096 else
29097
29098       curl_cv_header_ws2tcpip_h="no"
29099
29100 fi
29101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29102
29103 fi
29104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
29105 $as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
29106   case "$curl_cv_header_ws2tcpip_h" in
29107     yes)
29108
29109 cat >>confdefs.h <<_ACEOF
29110 #define HAVE_WS2TCPIP_H 1
29111 _ACEOF
29112
29113       ;;
29114   esac
29115
29116
29117
29118 curl_includes_sys_socket="\
29119 /* includes start */
29120 #ifdef HAVE_SYS_TYPES_H
29121 #  include <sys/types.h>
29122 #endif
29123 #ifdef HAVE_SYS_SOCKET_H
29124 #  include <sys/socket.h>
29125 #endif
29126 /* includes end */"
29127   for ac_header in sys/types.h sys/socket.h
29128 do :
29129   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29130 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
29131 "
29132 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29133   cat >>confdefs.h <<_ACEOF
29134 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29135 _ACEOF
29136
29137 fi
29138
29139 done
29140
29141
29142
29143 curl_preprocess_callconv="\
29144 /* preprocess start */
29145 #ifdef HAVE_WINDOWS_H
29146 #  define FUNCALLCONV __stdcall
29147 #else
29148 #  define FUNCALLCONV
29149 #endif
29150 /* preprocess end */"
29151
29152
29153         #
29154     #
29155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5
29156 $as_echo_n "checking for curl_socklen_t data type... " >&6; }
29157   curl_typeof_curl_socklen_t="unknown"
29158   for arg1 in int SOCKET; do
29159     for arg2 in 'struct sockaddr' void; do
29160       for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
29161         if test "$curl_typeof_curl_socklen_t" = "unknown"; then
29162           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29163 /* end confdefs.h.  */
29164
29165
29166               $curl_includes_ws2tcpip
29167               $curl_includes_sys_socket
29168               $curl_preprocess_callconv
29169               extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
29170
29171 int main (void)
29172 {
29173
29174               $t *lenptr = 0;
29175               if(0 != getpeername(0, 0, lenptr))
29176                 return 1;
29177
29178  ;
29179  return 0;
29180 }
29181
29182 _ACEOF
29183 if ac_fn_c_try_compile "$LINENO"; then :
29184
29185             curl_typeof_curl_socklen_t="$t"
29186
29187 fi
29188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29189         fi
29190       done
29191     done
29192   done
29193   for t in socklen_t int; do
29194     if test "$curl_typeof_curl_socklen_t" = "void"; then
29195       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29196 /* end confdefs.h.  */
29197
29198
29199           $curl_includes_sys_socket
29200           typedef $t curl_socklen_t;
29201
29202 int main (void)
29203 {
29204
29205           curl_socklen_t dummy;
29206
29207  ;
29208  return 0;
29209 }
29210
29211 _ACEOF
29212 if ac_fn_c_try_compile "$LINENO"; then :
29213
29214         curl_typeof_curl_socklen_t="$t"
29215
29216 fi
29217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29218     fi
29219   done
29220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5
29221 $as_echo "$curl_typeof_curl_socklen_t" >&6; }
29222   if test "$curl_typeof_curl_socklen_t" = "void" ||
29223     test "$curl_typeof_curl_socklen_t" = "unknown"; then
29224     as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5
29225   fi
29226   #
29227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5
29228 $as_echo_n "checking size of curl_socklen_t... " >&6; }
29229   curl_sizeof_curl_socklen_t="unknown"
29230   curl_pull_headers_socklen_t="unknown"
29231   if test "$curl_cv_header_ws2tcpip_h" = "yes"; then
29232     tst_pull_header_checks='none ws2tcpip'
29233     tst_size_checks='4'
29234   else
29235     tst_pull_header_checks='none systypes syssocket'
29236     tst_size_checks='4 8 2'
29237   fi
29238   for tst_size in $tst_size_checks; do
29239     for tst_pull_headers in $tst_pull_header_checks; do
29240       if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
29241         case $tst_pull_headers in
29242           ws2tcpip)
29243             tmp_includes="$curl_includes_ws2tcpip"
29244             ;;
29245           systypes)
29246             tmp_includes="$curl_includes_sys_types"
29247             ;;
29248           syssocket)
29249             tmp_includes="$curl_includes_sys_socket"
29250             ;;
29251           *)
29252             tmp_includes=""
29253             ;;
29254         esac
29255         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29256 /* end confdefs.h.  */
29257
29258
29259             $tmp_includes
29260             typedef $curl_typeof_curl_socklen_t curl_socklen_t;
29261             typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1];
29262
29263 int main (void)
29264 {
29265
29266             curl_socklen_t dummy;
29267
29268  ;
29269  return 0;
29270 }
29271
29272 _ACEOF
29273 if ac_fn_c_try_compile "$LINENO"; then :
29274
29275           curl_sizeof_curl_socklen_t="$tst_size"
29276           curl_pull_headers_socklen_t="$tst_pull_headers"
29277
29278 fi
29279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29280       fi
29281     done
29282   done
29283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5
29284 $as_echo "$curl_sizeof_curl_socklen_t" >&6; }
29285   if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
29286     as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5
29287   fi
29288   #
29289   case $curl_pull_headers_socklen_t in
29290     ws2tcpip)
29291
29292 cat >>confdefs.h <<_EOF
29293 #define CURL_PULL_WS2TCPIP_H 1
29294 _EOF
29295
29296       ;;
29297     systypes)
29298
29299 cat >>confdefs.h <<_EOF
29300 #define CURL_PULL_SYS_TYPES_H 1
29301 _EOF
29302
29303       ;;
29304     syssocket)
29305
29306 cat >>confdefs.h <<_EOF
29307 #define CURL_PULL_SYS_TYPES_H 1
29308 _EOF
29309
29310
29311 cat >>confdefs.h <<_EOF
29312 #define CURL_PULL_SYS_SOCKET_H 1
29313 _EOF
29314
29315       ;;
29316   esac
29317
29318 cat >>confdefs.h <<_EOF
29319 #define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t
29320 _EOF
29321
29322
29323 cat >>confdefs.h <<_EOF
29324 #define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t
29325 _EOF
29326
29327
29328
29329
29330 curl_includes_poll="\
29331 /* includes start */
29332 #ifdef HAVE_SYS_TYPES_H
29333 #  include <sys/types.h>
29334 #endif
29335 #ifdef HAVE_POLL_H
29336 #  include <poll.h>
29337 #endif
29338 #ifdef HAVE_SYS_POLL_H
29339 #  include <sys/poll.h>
29340 #endif
29341 /* includes end */"
29342   for ac_header in sys/types.h poll.h sys/poll.h
29343 do :
29344   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29345 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
29346 "
29347 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29348   cat >>confdefs.h <<_ACEOF
29349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29350 _ACEOF
29351
29352 fi
29353
29354 done
29355
29356
29357
29358     #
29359   tst_poll_events_macro_defined="unknown"
29360   #
29361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29362 /* end confdefs.h.  */
29363
29364
29365       $curl_includes_poll
29366
29367 int main (void)
29368 {
29369
29370 #if defined(events) || defined(revents)
29371       return 0;
29372 #else
29373       force compilation error
29374 #endif
29375
29376  ;
29377  return 0;
29378 }
29379
29380 _ACEOF
29381 if ac_fn_c_try_compile "$LINENO"; then :
29382
29383     tst_poll_events_macro_defined="yes"
29384
29385 else
29386
29387     tst_poll_events_macro_defined="no"
29388
29389 fi
29390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29391   #
29392   if test "$tst_poll_events_macro_defined" = "yes"; then
29393     if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
29394
29395 cat >>confdefs.h <<_EOF
29396 #define CURL_PULL_SYS_POLL_H 1
29397 _EOF
29398
29399     fi
29400   fi
29401   #
29402
29403
29404
29405   ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
29406 #undef inline
29407 #ifdef HAVE_WINDOWS_H
29408 #ifndef WIN32_LEAN_AND_MEAN
29409 #define WIN32_LEAN_AND_MEAN
29410 #endif
29411 #include <windows.h>
29412 #ifdef HAVE_WINSOCK2_H
29413 #include <winsock2.h>
29414 #else
29415 #ifdef HAVE_WINSOCK_H
29416 #include <winsock.h>
29417 #endif
29418 #endif
29419 #else
29420 #ifdef HAVE_SYS_TYPES_H
29421 #include <sys/types.h>
29422 #endif
29423 #ifdef HAVE_SYS_SOCKET_H
29424 #include <sys/socket.h>
29425 #endif
29426 #ifdef HAVE_NETINET_IN_H
29427 #include <netinet/in.h>
29428 #endif
29429 #ifdef HAVE_ARPA_INET_H
29430 #include <arpa/inet.h>
29431 #endif
29432 #endif
29433
29434 "
29435 if test "x$ac_cv_type_in_addr_t" = xyes; then :
29436
29437 else
29438
29439         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
29440 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
29441 if ${curl_cv_in_addr_t_equiv+:} false; then :
29442   $as_echo_n "(cached) " >&6
29443 else
29444
29445       curl_cv_in_addr_t_equiv="unknown"
29446       for t in "unsigned long" int size_t unsigned long; do
29447         if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
29448           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29449 /* end confdefs.h.  */
29450
29451
29452 #undef inline
29453 #ifdef HAVE_WINDOWS_H
29454 #ifndef WIN32_LEAN_AND_MEAN
29455 #define WIN32_LEAN_AND_MEAN
29456 #endif
29457 #include <windows.h>
29458 #ifdef HAVE_WINSOCK2_H
29459 #include <winsock2.h>
29460 #else
29461 #ifdef HAVE_WINSOCK_H
29462 #include <winsock.h>
29463 #endif
29464 #endif
29465 #else
29466 #ifdef HAVE_SYS_TYPES_H
29467 #include <sys/types.h>
29468 #endif
29469 #ifdef HAVE_SYS_SOCKET_H
29470 #include <sys/socket.h>
29471 #endif
29472 #ifdef HAVE_NETINET_IN_H
29473 #include <netinet/in.h>
29474 #endif
29475 #ifdef HAVE_ARPA_INET_H
29476 #include <arpa/inet.h>
29477 #endif
29478 #endif
29479
29480 int main (void)
29481 {
29482
29483               $t data = inet_addr ("1.2.3.4");
29484
29485  ;
29486  return 0;
29487 }
29488
29489 _ACEOF
29490 if ac_fn_c_try_link "$LINENO"; then :
29491
29492             curl_cv_in_addr_t_equiv="$t"
29493
29494 fi
29495 rm -f core conftest.err conftest.$ac_objext \
29496     conftest$ac_exeext conftest.$ac_ext
29497         fi
29498       done
29499
29500 fi
29501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
29502 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
29503     case "$curl_cv_in_addr_t_equiv" in
29504       unknown)
29505         as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
29506         ;;
29507       *)
29508
29509 cat >>confdefs.h <<_ACEOF
29510 #define in_addr_t $curl_cv_in_addr_t_equiv
29511 _ACEOF
29512
29513         ;;
29514     esac
29515
29516 fi
29517
29518
29519
29520
29521    ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
29522 #undef inline
29523 #ifdef HAVE_WINDOWS_H
29524 #ifndef WIN32_LEAN_AND_MEAN
29525 #define WIN32_LEAN_AND_MEAN
29526 #endif
29527 #include <windows.h>
29528 #ifdef HAVE_WINSOCK2_H
29529 #include <winsock2.h>
29530 #endif
29531 #else
29532 #ifdef HAVE_SYS_TYPES_H
29533 #include <sys/types.h>
29534 #endif
29535 #ifdef HAVE_SYS_SOCKET_H
29536 #include <sys/socket.h>
29537 #endif
29538 #ifdef HAVE_NETINET_IN_H
29539 #include <netinet/in.h>
29540 #endif
29541 #ifdef HAVE_ARPA_INET_H
29542 #include <arpa/inet.h>
29543 #endif
29544 #endif
29545
29546 "
29547 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
29548
29549 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
29550
29551 fi
29552
29553
29554
29555
29556   for ac_header in signal.h
29557 do :
29558   ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
29559 if test "x$ac_cv_header_signal_h" = xyes; then :
29560   cat >>confdefs.h <<_ACEOF
29561 #define HAVE_SIGNAL_H 1
29562 _ACEOF
29563
29564 fi
29565
29566 done
29567
29568   ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
29569 #ifdef HAVE_SIGNAL_H
29570 #include <signal.h>
29571 #endif
29572
29573 "
29574 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
29575
29576
29577 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
29578
29579
29580 fi
29581
29582   case "$ac_cv_type_sig_atomic_t" in
29583     yes)
29584       #
29585       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
29586 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
29587       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29588 /* end confdefs.h.  */
29589
29590
29591 #ifdef HAVE_SIGNAL_H
29592 #include <signal.h>
29593 #endif
29594
29595 int main (void)
29596 {
29597
29598           static volatile sig_atomic_t dummy = 0;
29599
29600  ;
29601  return 0;
29602 }
29603
29604 _ACEOF
29605 if ac_fn_c_try_link "$LINENO"; then :
29606
29607         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29608 $as_echo "no" >&6; }
29609         curl_cv_sig_atomic_t_volatile="no"
29610
29611 else
29612
29613         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29614 $as_echo "yes" >&6; }
29615         curl_cv_sig_atomic_t_volatile="yes"
29616
29617 fi
29618 rm -f core conftest.err conftest.$ac_objext \
29619     conftest$ac_exeext conftest.$ac_ext
29620       #
29621       if test "$curl_cv_sig_atomic_t_volatile" = "yes"; then
29622
29623 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
29624
29625       fi
29626       ;;
29627   esac
29628
29629
29630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
29631 $as_echo_n "checking return type of signal handlers... " >&6; }
29632 if ${ac_cv_type_signal+:} false; then :
29633   $as_echo_n "(cached) " >&6
29634 else
29635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29636 /* end confdefs.h.  */
29637 #include <sys/types.h>
29638 #include <signal.h>
29639
29640 int main (void)
29641 {
29642 return *(signal (0, 0)) (0) == 1;
29643  ;
29644  return 0;
29645 }
29646 _ACEOF
29647 if ac_fn_c_try_compile "$LINENO"; then :
29648   ac_cv_type_signal=int
29649 else
29650   ac_cv_type_signal=void
29651 fi
29652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29653 fi
29654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
29655 $as_echo "$ac_cv_type_signal" >&6; }
29656
29657 cat >>confdefs.h <<_ACEOF
29658 #define RETSIGTYPE $ac_cv_type_signal
29659 _ACEOF
29660
29661
29662
29663
29664     for ac_header in sys/select.h sys/socket.h
29665 do :
29666   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29667 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29668 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29669   cat >>confdefs.h <<_ACEOF
29670 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29671 _ACEOF
29672
29673 fi
29674
29675 done
29676
29677   #
29678   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
29679 $as_echo_n "checking for select... " >&6; }
29680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29681 /* end confdefs.h.  */
29682
29683
29684 #undef inline
29685 #ifdef HAVE_WINDOWS_H
29686 #ifndef WIN32_LEAN_AND_MEAN
29687 #define WIN32_LEAN_AND_MEAN
29688 #endif
29689 #include <windows.h>
29690 #ifdef HAVE_WINSOCK2_H
29691 #include <winsock2.h>
29692 #else
29693 #ifdef HAVE_WINSOCK_H
29694 #include <winsock.h>
29695 #endif
29696 #endif
29697 #endif
29698 #ifdef HAVE_SYS_TYPES_H
29699 #include <sys/types.h>
29700 #endif
29701 #ifdef HAVE_SYS_TIME_H
29702 #include <sys/time.h>
29703 #ifdef TIME_WITH_SYS_TIME
29704 #include <time.h>
29705 #endif
29706 #else
29707 #ifdef HAVE_TIME_H
29708 #include <time.h>
29709 #endif
29710 #endif
29711 #ifndef HAVE_WINDOWS_H
29712 #ifdef HAVE_SYS_SELECT_H
29713 #include <sys/select.h>
29714 #endif
29715 #ifdef HAVE_SYS_SOCKET_H
29716 #include <sys/socket.h>
29717 #endif
29718 #endif
29719
29720 int main (void)
29721 {
29722
29723       select(0, 0, 0, 0, 0);
29724
29725  ;
29726  return 0;
29727 }
29728
29729 _ACEOF
29730 if ac_fn_c_try_link "$LINENO"; then :
29731
29732     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29733 $as_echo "yes" >&6; }
29734     curl_cv_select="yes"
29735
29736 else
29737
29738     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29739 $as_echo "no" >&6; }
29740     curl_cv_select="no"
29741
29742 fi
29743 rm -f core conftest.err conftest.$ac_objext \
29744     conftest$ac_exeext conftest.$ac_ext
29745   #
29746   if test "$curl_cv_select" = "yes"; then
29747     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
29748 $as_echo_n "checking types of args and return type for select... " >&6; }
29749 if ${curl_cv_func_select_args+:} false; then :
29750   $as_echo_n "(cached) " >&6
29751 else
29752
29753       curl_cv_func_select_args="unknown"
29754       for sel_retv in 'int' 'ssize_t'; do
29755         for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
29756           for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
29757             for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
29758               if test "$curl_cv_func_select_args" = "unknown"; then
29759                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29760 /* end confdefs.h.  */
29761
29762
29763 #undef inline
29764 #ifdef HAVE_WINDOWS_H
29765 #ifndef WIN32_LEAN_AND_MEAN
29766 #define WIN32_LEAN_AND_MEAN
29767 #endif
29768 #include <windows.h>
29769 #ifdef HAVE_WINSOCK2_H
29770 #include <winsock2.h>
29771 #else
29772 #ifdef HAVE_WINSOCK_H
29773 #include <winsock.h>
29774 #endif
29775 #endif
29776 #define SELECTCALLCONV PASCAL
29777 #endif
29778 #ifdef HAVE_SYS_TYPES_H
29779 #include <sys/types.h>
29780 #endif
29781 #ifdef HAVE_SYS_TIME_H
29782 #include <sys/time.h>
29783 #ifdef TIME_WITH_SYS_TIME
29784 #include <time.h>
29785 #endif
29786 #else
29787 #ifdef HAVE_TIME_H
29788 #include <time.h>
29789 #endif
29790 #endif
29791 #ifndef HAVE_WINDOWS_H
29792 #ifdef HAVE_SYS_SELECT_H
29793 #include <sys/select.h>
29794 #endif
29795 #ifdef HAVE_SYS_SOCKET_H
29796 #include <sys/socket.h>
29797 #endif
29798 #define SELECTCALLCONV
29799 #endif
29800 #ifndef HAVE_STRUCT_TIMEVAL
29801                     struct timeval {
29802                       long tv_sec;
29803                       long tv_usec;
29804                     };
29805 #endif
29806                     extern $sel_retv SELECTCALLCONV
29807 #ifdef __ANDROID__
29808 __attribute__((overloadable))
29809 #endif
29810                         select($sel_arg1,
29811                                         $sel_arg234,
29812                                         $sel_arg234,
29813                                         $sel_arg234,
29814                                         $sel_arg5);
29815
29816 int main (void)
29817 {
29818
29819                     $sel_arg1   nfds=0;
29820                     $sel_arg234 rfds=0;
29821                     $sel_arg234 wfds=0;
29822                     $sel_arg234 efds=0;
29823                     $sel_retv res = select(nfds, rfds, wfds, efds, 0);
29824
29825  ;
29826  return 0;
29827 }
29828
29829 _ACEOF
29830 if ac_fn_c_try_compile "$LINENO"; then :
29831
29832                   curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
29833
29834 fi
29835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29836               fi
29837             done
29838           done
29839         done
29840       done
29841
29842 fi
29843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
29844 $as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
29845     if test "$curl_cv_func_select_args" = "unknown"; then
29846       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
29847 $as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
29848       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
29849 $as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
29850     else
29851       select_prev_IFS=$IFS; IFS=','
29852       set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
29853       IFS=$select_prev_IFS
29854       shift
29855       #
29856       sel_qual_type_arg5=$3
29857       #
29858
29859 cat >>confdefs.h <<_ACEOF
29860 #define SELECT_TYPE_ARG1 $1
29861 _ACEOF
29862
29863
29864 cat >>confdefs.h <<_ACEOF
29865 #define SELECT_TYPE_ARG234 $2
29866 _ACEOF
29867
29868
29869 cat >>confdefs.h <<_ACEOF
29870 #define SELECT_TYPE_RETV $4
29871 _ACEOF
29872
29873       #
29874       prev_sh_opts=$-
29875       #
29876       case $prev_sh_opts in
29877         *f*)
29878           ;;
29879         *)
29880           set -f
29881           ;;
29882       esac
29883       #
29884       case "$sel_qual_type_arg5" in
29885         const*)
29886           sel_qual_arg5=const
29887           sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
29888         ;;
29889         *)
29890           sel_qual_arg5=
29891           sel_type_arg5=$sel_qual_type_arg5
29892         ;;
29893       esac
29894       #
29895
29896 cat >>confdefs.h <<_ACEOF
29897 #define SELECT_QUAL_ARG5 $sel_qual_arg5
29898 _ACEOF
29899
29900
29901 cat >>confdefs.h <<_ACEOF
29902 #define SELECT_TYPE_ARG5 $sel_type_arg5
29903 _ACEOF
29904
29905       #
29906       case $prev_sh_opts in
29907         *f*)
29908           ;;
29909         *)
29910           set +f
29911           ;;
29912       esac
29913       #
29914
29915 cat >>confdefs.h <<_ACEOF
29916 #define HAVE_SELECT 1
29917 _ACEOF
29918
29919       curl_cv_func_select="yes"
29920     fi
29921   fi
29922
29923
29924
29925       for ac_header in sys/types.h sys/socket.h
29926 do :
29927   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29928 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29929 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29930   cat >>confdefs.h <<_ACEOF
29931 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29932 _ACEOF
29933
29934 fi
29935
29936 done
29937
29938   #
29939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
29940 $as_echo_n "checking for recv... " >&6; }
29941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29942 /* end confdefs.h.  */
29943
29944
29945 #undef inline
29946 #ifdef HAVE_WINDOWS_H
29947 #ifndef WIN32_LEAN_AND_MEAN
29948 #define WIN32_LEAN_AND_MEAN
29949 #endif
29950 #include <windows.h>
29951 #ifdef HAVE_WINSOCK2_H
29952 #include <winsock2.h>
29953 #else
29954 #ifdef HAVE_WINSOCK_H
29955 #include <winsock.h>
29956 #endif
29957 #endif
29958 #else
29959 #ifdef HAVE_SYS_TYPES_H
29960 #include <sys/types.h>
29961 #endif
29962 #ifdef HAVE_SYS_SOCKET_H
29963 #include <sys/socket.h>
29964 #endif
29965 #endif
29966
29967 int main (void)
29968 {
29969
29970       recv(0, 0, 0, 0);
29971
29972  ;
29973  return 0;
29974 }
29975
29976 _ACEOF
29977 if ac_fn_c_try_link "$LINENO"; then :
29978
29979     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29980 $as_echo "yes" >&6; }
29981     curl_cv_recv="yes"
29982
29983 else
29984
29985     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29986 $as_echo "no" >&6; }
29987     curl_cv_recv="no"
29988
29989 fi
29990 rm -f core conftest.err conftest.$ac_objext \
29991     conftest$ac_exeext conftest.$ac_ext
29992   #
29993   if test "$curl_cv_recv" = "yes"; then
29994     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
29995 $as_echo_n "checking types of args and return type for recv... " >&6; }
29996 if ${curl_cv_func_recv_args+:} false; then :
29997   $as_echo_n "(cached) " >&6
29998 else
29999
30000       curl_cv_func_recv_args="unknown"
30001       for recv_retv in 'int' 'ssize_t'; do
30002         for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
30003           for recv_arg2 in 'char *' 'void *'; do
30004             for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
30005               for recv_arg4 in 'int' 'unsigned int'; do
30006                 if test "$curl_cv_func_recv_args" = "unknown"; then
30007                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30008 /* end confdefs.h.  */
30009
30010
30011 #undef inline
30012 #ifdef HAVE_WINDOWS_H
30013 #ifndef WIN32_LEAN_AND_MEAN
30014 #define WIN32_LEAN_AND_MEAN
30015 #endif
30016 #include <windows.h>
30017 #ifdef HAVE_WINSOCK2_H
30018 #include <winsock2.h>
30019 #else
30020 #ifdef HAVE_WINSOCK_H
30021 #include <winsock.h>
30022 #endif
30023 #endif
30024 #define RECVCALLCONV PASCAL
30025 #else
30026 #ifdef HAVE_SYS_TYPES_H
30027 #include <sys/types.h>
30028 #endif
30029 #ifdef HAVE_SYS_SOCKET_H
30030 #include <sys/socket.h>
30031 #endif
30032 #define RECVCALLCONV
30033 #endif
30034                       extern $recv_retv RECVCALLCONV
30035 #ifdef __ANDROID__
30036 __attribute__((overloadable))
30037 #endif
30038                       recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
30039
30040 int main (void)
30041 {
30042
30043                       $recv_arg1 s=0;
30044                       $recv_arg2 buf=0;
30045                       $recv_arg3 len=0;
30046                       $recv_arg4 flags=0;
30047                       $recv_retv res = recv(s, buf, len, flags);
30048
30049  ;
30050  return 0;
30051 }
30052
30053 _ACEOF
30054 if ac_fn_c_try_compile "$LINENO"; then :
30055
30056                     curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
30057
30058 fi
30059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30060                 fi
30061               done
30062             done
30063           done
30064         done
30065       done
30066
30067 fi
30068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
30069 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
30070     if test "$curl_cv_func_recv_args" = "unknown"; then
30071       as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
30072     else
30073       recv_prev_IFS=$IFS; IFS=','
30074       set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
30075       IFS=$recv_prev_IFS
30076       shift
30077       #
30078
30079 cat >>confdefs.h <<_ACEOF
30080 #define RECV_TYPE_ARG1 $1
30081 _ACEOF
30082
30083
30084 cat >>confdefs.h <<_ACEOF
30085 #define RECV_TYPE_ARG2 $2
30086 _ACEOF
30087
30088
30089 cat >>confdefs.h <<_ACEOF
30090 #define RECV_TYPE_ARG3 $3
30091 _ACEOF
30092
30093
30094 cat >>confdefs.h <<_ACEOF
30095 #define RECV_TYPE_ARG4 $4
30096 _ACEOF
30097
30098
30099 cat >>confdefs.h <<_ACEOF
30100 #define RECV_TYPE_RETV $5
30101 _ACEOF
30102
30103       #
30104
30105 cat >>confdefs.h <<_ACEOF
30106 #define HAVE_RECV 1
30107 _ACEOF
30108
30109       curl_cv_func_recv="yes"
30110     fi
30111   else
30112     as_fn_error $? "Unable to link function recv" "$LINENO" 5
30113   fi
30114
30115
30116       for ac_header in sys/types.h sys/socket.h
30117 do :
30118   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30119 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30120 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30121   cat >>confdefs.h <<_ACEOF
30122 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30123 _ACEOF
30124
30125 fi
30126
30127 done
30128
30129   #
30130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
30131 $as_echo_n "checking for send... " >&6; }
30132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30133 /* end confdefs.h.  */
30134
30135
30136 #undef inline
30137 #ifdef HAVE_WINDOWS_H
30138 #ifndef WIN32_LEAN_AND_MEAN
30139 #define WIN32_LEAN_AND_MEAN
30140 #endif
30141 #include <windows.h>
30142 #ifdef HAVE_WINSOCK2_H
30143 #include <winsock2.h>
30144 #else
30145 #ifdef HAVE_WINSOCK_H
30146 #include <winsock.h>
30147 #endif
30148 #endif
30149 #else
30150 #ifdef HAVE_SYS_TYPES_H
30151 #include <sys/types.h>
30152 #endif
30153 #ifdef HAVE_SYS_SOCKET_H
30154 #include <sys/socket.h>
30155 #endif
30156 #endif
30157
30158 int main (void)
30159 {
30160
30161       send(0, 0, 0, 0);
30162
30163  ;
30164  return 0;
30165 }
30166
30167 _ACEOF
30168 if ac_fn_c_try_link "$LINENO"; then :
30169
30170     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30171 $as_echo "yes" >&6; }
30172     curl_cv_send="yes"
30173
30174 else
30175
30176     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30177 $as_echo "no" >&6; }
30178     curl_cv_send="no"
30179
30180 fi
30181 rm -f core conftest.err conftest.$ac_objext \
30182     conftest$ac_exeext conftest.$ac_ext
30183   #
30184   if test "$curl_cv_send" = "yes"; then
30185     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
30186 $as_echo_n "checking types of args and return type for send... " >&6; }
30187 if ${curl_cv_func_send_args+:} false; then :
30188   $as_echo_n "(cached) " >&6
30189 else
30190
30191       curl_cv_func_send_args="unknown"
30192       for send_retv in 'int' 'ssize_t'; do
30193         for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
30194           for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
30195             for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
30196               for send_arg4 in 'int' 'unsigned int'; do
30197                 if test "$curl_cv_func_send_args" = "unknown"; then
30198                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30199 /* end confdefs.h.  */
30200
30201
30202 #undef inline
30203 #ifdef HAVE_WINDOWS_H
30204 #ifndef WIN32_LEAN_AND_MEAN
30205 #define WIN32_LEAN_AND_MEAN
30206 #endif
30207 #include <windows.h>
30208 #ifdef HAVE_WINSOCK2_H
30209 #include <winsock2.h>
30210 #else
30211 #ifdef HAVE_WINSOCK_H
30212 #include <winsock.h>
30213 #endif
30214 #endif
30215 #define SENDCALLCONV PASCAL
30216 #else
30217 #ifdef HAVE_SYS_TYPES_H
30218 #include <sys/types.h>
30219 #endif
30220 #ifdef HAVE_SYS_SOCKET_H
30221 #include <sys/socket.h>
30222 #endif
30223 #define SENDCALLCONV
30224 #endif
30225                       extern $send_retv SENDCALLCONV
30226 #ifdef __ANDROID__
30227 __attribute__((overloadable))
30228 #endif
30229                       send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
30230
30231 int main (void)
30232 {
30233
30234                       $send_arg1 s=0;
30235                       $send_arg3 len=0;
30236                       $send_arg4 flags=0;
30237                       $send_retv res = send(s, 0, len, flags);
30238
30239  ;
30240  return 0;
30241 }
30242
30243 _ACEOF
30244 if ac_fn_c_try_compile "$LINENO"; then :
30245
30246                     curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
30247
30248 fi
30249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30250                 fi
30251               done
30252             done
30253           done
30254         done
30255       done
30256
30257 fi
30258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
30259 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
30260     if test "$curl_cv_func_send_args" = "unknown"; then
30261       as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
30262     else
30263       send_prev_IFS=$IFS; IFS=','
30264       set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
30265       IFS=$send_prev_IFS
30266       shift
30267       #
30268       send_qual_type_arg2=$2
30269       #
30270
30271 cat >>confdefs.h <<_ACEOF
30272 #define SEND_TYPE_ARG1 $1
30273 _ACEOF
30274
30275
30276 cat >>confdefs.h <<_ACEOF
30277 #define SEND_TYPE_ARG3 $3
30278 _ACEOF
30279
30280
30281 cat >>confdefs.h <<_ACEOF
30282 #define SEND_TYPE_ARG4 $4
30283 _ACEOF
30284
30285
30286 cat >>confdefs.h <<_ACEOF
30287 #define SEND_TYPE_RETV $5
30288 _ACEOF
30289
30290       #
30291       prev_sh_opts=$-
30292       #
30293       case $prev_sh_opts in
30294         *f*)
30295           ;;
30296         *)
30297           set -f
30298           ;;
30299       esac
30300       #
30301       case "$send_qual_type_arg2" in
30302         const*)
30303           send_qual_arg2=const
30304           send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
30305         ;;
30306         *)
30307           send_qual_arg2=
30308           send_type_arg2=$send_qual_type_arg2
30309         ;;
30310       esac
30311       #
30312
30313 cat >>confdefs.h <<_ACEOF
30314 #define SEND_QUAL_ARG2 $send_qual_arg2
30315 _ACEOF
30316
30317
30318 cat >>confdefs.h <<_ACEOF
30319 #define SEND_TYPE_ARG2 $send_type_arg2
30320 _ACEOF
30321
30322       #
30323       case $prev_sh_opts in
30324         *f*)
30325           ;;
30326         *)
30327           set +f
30328           ;;
30329       esac
30330       #
30331
30332 cat >>confdefs.h <<_ACEOF
30333 #define HAVE_SEND 1
30334 _ACEOF
30335
30336       curl_cv_func_send="yes"
30337     fi
30338   else
30339     as_fn_error $? "Unable to link function send" "$LINENO" 5
30340   fi
30341
30342
30343   for ac_header in sys/types.h sys/socket.h
30344 do :
30345   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30346 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30347 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30348   cat >>confdefs.h <<_ACEOF
30349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30350 _ACEOF
30351
30352 fi
30353
30354 done
30355
30356   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
30357 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
30358 if ${curl_cv_msg_nosignal+:} false; then :
30359   $as_echo_n "(cached) " >&6
30360 else
30361
30362     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30363 /* end confdefs.h.  */
30364
30365
30366 #undef inline
30367 #ifdef HAVE_WINDOWS_H
30368 #ifndef WIN32_LEAN_AND_MEAN
30369 #define WIN32_LEAN_AND_MEAN
30370 #endif
30371 #include <windows.h>
30372 #ifdef HAVE_WINSOCK2_H
30373 #include <winsock2.h>
30374 #else
30375 #ifdef HAVE_WINSOCK_H
30376 #include <winsock.h>
30377 #endif
30378 #endif
30379 #else
30380 #ifdef HAVE_SYS_TYPES_H
30381 #include <sys/types.h>
30382 #endif
30383 #ifdef HAVE_SYS_SOCKET_H
30384 #include <sys/socket.h>
30385 #endif
30386 #endif
30387
30388 int main (void)
30389 {
30390
30391         int flag=MSG_NOSIGNAL;
30392
30393  ;
30394  return 0;
30395 }
30396
30397 _ACEOF
30398 if ac_fn_c_try_compile "$LINENO"; then :
30399
30400       curl_cv_msg_nosignal="yes"
30401
30402 else
30403
30404       curl_cv_msg_nosignal="no"
30405
30406 fi
30407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30408
30409 fi
30410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
30411 $as_echo "$curl_cv_msg_nosignal" >&6; }
30412   case "$curl_cv_msg_nosignal" in
30413     yes)
30414
30415 cat >>confdefs.h <<_ACEOF
30416 #define HAVE_MSG_NOSIGNAL 1
30417 _ACEOF
30418
30419       ;;
30420   esac
30421
30422
30423
30424 curl_includes_unistd="\
30425 /* includes start */
30426 #ifdef HAVE_SYS_TYPES_H
30427 #  include <sys/types.h>
30428 #endif
30429 #ifdef HAVE_UNISTD_H
30430 #  include <unistd.h>
30431 #endif
30432 /* includes end */"
30433   for ac_header in sys/types.h unistd.h
30434 do :
30435   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30436 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
30437 "
30438 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30439   cat >>confdefs.h <<_ACEOF
30440 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30441 _ACEOF
30442
30443 fi
30444
30445 done
30446
30447
30448
30449     #
30450   tst_links_alarm="unknown"
30451   tst_proto_alarm="unknown"
30452   tst_compi_alarm="unknown"
30453   tst_allow_alarm="unknown"
30454   #
30455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
30456 $as_echo_n "checking if alarm can be linked... " >&6; }
30457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30458 /* end confdefs.h.  */
30459
30460
30461 #define alarm innocuous_alarm
30462 #ifdef __STDC__
30463 # include <limits.h>
30464 #else
30465 # include <assert.h>
30466 #endif
30467 #undef alarm
30468 #ifdef __cplusplus
30469 extern "C"
30470 #endif
30471 char alarm ();
30472 #if defined __stub_alarm || defined __stub___alarm
30473 choke me
30474 #endif
30475
30476 int main (void)
30477 {
30478 return alarm ();
30479  ;
30480  return 0;
30481 }
30482
30483 _ACEOF
30484 if ac_fn_c_try_link "$LINENO"; then :
30485
30486     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30487 $as_echo "yes" >&6; }
30488     tst_links_alarm="yes"
30489
30490 else
30491
30492     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30493 $as_echo "no" >&6; }
30494     tst_links_alarm="no"
30495
30496 fi
30497 rm -f core conftest.err conftest.$ac_objext \
30498     conftest$ac_exeext conftest.$ac_ext
30499   #
30500   if test "$tst_links_alarm" = "yes"; then
30501     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
30502 $as_echo_n "checking if alarm is prototyped... " >&6; }
30503     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30504 /* end confdefs.h.  */
30505
30506       $curl_includes_unistd
30507
30508 _ACEOF
30509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30510   $EGREP "alarm" >/dev/null 2>&1; then :
30511
30512       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30513 $as_echo "yes" >&6; }
30514       tst_proto_alarm="yes"
30515
30516 else
30517
30518       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30519 $as_echo "no" >&6; }
30520       tst_proto_alarm="no"
30521
30522 fi
30523 rm -f conftest*
30524
30525   fi
30526   #
30527   if test "$tst_proto_alarm" = "yes"; then
30528     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
30529 $as_echo_n "checking if alarm is compilable... " >&6; }
30530     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30531 /* end confdefs.h.  */
30532
30533
30534         $curl_includes_unistd
30535
30536 int main (void)
30537 {
30538
30539         if(0 != alarm(0))
30540           return 1;
30541
30542  ;
30543  return 0;
30544 }
30545
30546 _ACEOF
30547 if ac_fn_c_try_compile "$LINENO"; then :
30548
30549       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30550 $as_echo "yes" >&6; }
30551       tst_compi_alarm="yes"
30552
30553 else
30554
30555       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30556 $as_echo "no" >&6; }
30557       tst_compi_alarm="no"
30558
30559 fi
30560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30561   fi
30562   #
30563   if test "$tst_compi_alarm" = "yes"; then
30564     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
30565 $as_echo_n "checking if alarm usage allowed... " >&6; }
30566     if test "x$curl_disallow_alarm" != "xyes"; then
30567       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30568 $as_echo "yes" >&6; }
30569       tst_allow_alarm="yes"
30570     else
30571       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30572 $as_echo "no" >&6; }
30573       tst_allow_alarm="no"
30574     fi
30575   fi
30576   #
30577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
30578 $as_echo_n "checking if alarm might be used... " >&6; }
30579   if test "$tst_links_alarm" = "yes" &&
30580      test "$tst_proto_alarm" = "yes" &&
30581      test "$tst_compi_alarm" = "yes" &&
30582      test "$tst_allow_alarm" = "yes"; then
30583     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30584 $as_echo "yes" >&6; }
30585
30586 cat >>confdefs.h <<_ACEOF
30587 #define HAVE_ALARM 1
30588 _ACEOF
30589
30590     curl_cv_func_alarm="yes"
30591   else
30592     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30593 $as_echo "no" >&6; }
30594     curl_cv_func_alarm="no"
30595   fi
30596
30597
30598 curl_includes_string="\
30599 /* includes start */
30600 #ifdef HAVE_SYS_TYPES_H
30601 #  include <sys/types.h>
30602 #endif
30603 #ifdef HAVE_STRING_H
30604 #  include <string.h>
30605 #endif
30606 #ifdef HAVE_STRINGS_H
30607 #  include <strings.h>
30608 #endif
30609 /* includes end */"
30610   for ac_header in sys/types.h string.h strings.h
30611 do :
30612   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30613 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
30614 "
30615 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30616   cat >>confdefs.h <<_ACEOF
30617 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30618 _ACEOF
30619
30620 fi
30621
30622 done
30623
30624
30625
30626 curl_includes_libgen="\
30627 /* includes start */
30628 #ifdef HAVE_SYS_TYPES_H
30629 #  include <sys/types.h>
30630 #endif
30631 #ifdef HAVE_LIBGEN_H
30632 #  include <libgen.h>
30633 #endif
30634 /* includes end */"
30635   for ac_header in sys/types.h libgen.h
30636 do :
30637   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30638 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
30639 "
30640 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30641   cat >>confdefs.h <<_ACEOF
30642 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30643 _ACEOF
30644
30645 fi
30646
30647 done
30648
30649
30650
30651         #
30652   tst_links_basename="unknown"
30653   tst_proto_basename="unknown"
30654   tst_compi_basename="unknown"
30655   tst_allow_basename="unknown"
30656   #
30657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
30658 $as_echo_n "checking if basename can be linked... " >&6; }
30659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30660 /* end confdefs.h.  */
30661
30662
30663 #define basename innocuous_basename
30664 #ifdef __STDC__
30665 # include <limits.h>
30666 #else
30667 # include <assert.h>
30668 #endif
30669 #undef basename
30670 #ifdef __cplusplus
30671 extern "C"
30672 #endif
30673 char basename ();
30674 #if defined __stub_basename || defined __stub___basename
30675 choke me
30676 #endif
30677
30678 int main (void)
30679 {
30680 return basename ();
30681  ;
30682  return 0;
30683 }
30684
30685 _ACEOF
30686 if ac_fn_c_try_link "$LINENO"; then :
30687
30688     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30689 $as_echo "yes" >&6; }
30690     tst_links_basename="yes"
30691
30692 else
30693
30694     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30695 $as_echo "no" >&6; }
30696     tst_links_basename="no"
30697
30698 fi
30699 rm -f core conftest.err conftest.$ac_objext \
30700     conftest$ac_exeext conftest.$ac_ext
30701   #
30702   if test "$tst_links_basename" = "yes"; then
30703     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
30704 $as_echo_n "checking if basename is prototyped... " >&6; }
30705     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30706 /* end confdefs.h.  */
30707
30708       $curl_includes_string
30709       $curl_includes_libgen
30710       $curl_includes_unistd
30711
30712 _ACEOF
30713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30714   $EGREP "basename" >/dev/null 2>&1; then :
30715
30716       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30717 $as_echo "yes" >&6; }
30718       tst_proto_basename="yes"
30719
30720 else
30721
30722       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30723 $as_echo "no" >&6; }
30724       tst_proto_basename="no"
30725
30726 fi
30727 rm -f conftest*
30728
30729   fi
30730   #
30731   if test "$tst_proto_basename" = "yes"; then
30732     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
30733 $as_echo_n "checking if basename is compilable... " >&6; }
30734     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30735 /* end confdefs.h.  */
30736
30737
30738         $curl_includes_string
30739         $curl_includes_libgen
30740         $curl_includes_unistd
30741
30742 int main (void)
30743 {
30744
30745         if(0 != basename(0))
30746           return 1;
30747
30748  ;
30749  return 0;
30750 }
30751
30752 _ACEOF
30753 if ac_fn_c_try_compile "$LINENO"; then :
30754
30755       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30756 $as_echo "yes" >&6; }
30757       tst_compi_basename="yes"
30758
30759 else
30760
30761       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30762 $as_echo "no" >&6; }
30763       tst_compi_basename="no"
30764
30765 fi
30766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30767   fi
30768   #
30769   if test "$tst_compi_basename" = "yes"; then
30770     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
30771 $as_echo_n "checking if basename usage allowed... " >&6; }
30772     if test "x$curl_disallow_basename" != "xyes"; then
30773       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30774 $as_echo "yes" >&6; }
30775       tst_allow_basename="yes"
30776     else
30777       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30778 $as_echo "no" >&6; }
30779       tst_allow_basename="no"
30780     fi
30781   fi
30782   #
30783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
30784 $as_echo_n "checking if basename might be used... " >&6; }
30785   if test "$tst_links_basename" = "yes" &&
30786      test "$tst_proto_basename" = "yes" &&
30787      test "$tst_compi_basename" = "yes" &&
30788      test "$tst_allow_basename" = "yes"; then
30789     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30790 $as_echo "yes" >&6; }
30791
30792 cat >>confdefs.h <<_ACEOF
30793 #define HAVE_BASENAME 1
30794 _ACEOF
30795
30796     curl_cv_func_basename="yes"
30797   else
30798     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30799 $as_echo "no" >&6; }
30800     curl_cv_func_basename="no"
30801   fi
30802
30803
30804 curl_includes_socket="\
30805 /* includes start */
30806 #ifdef HAVE_SYS_TYPES_H
30807 #  include <sys/types.h>
30808 #endif
30809 #ifdef HAVE_SOCKET_H
30810 #  include <socket.h>
30811 #endif
30812 /* includes end */"
30813   for ac_header in sys/types.h socket.h
30814 do :
30815   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30816 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
30817 "
30818 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30819   cat >>confdefs.h <<_ACEOF
30820 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30821 _ACEOF
30822
30823 fi
30824
30825 done
30826
30827
30828
30829       #
30830   tst_links_closesocket="unknown"
30831   tst_proto_closesocket="unknown"
30832   tst_compi_closesocket="unknown"
30833   tst_allow_closesocket="unknown"
30834   #
30835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
30836 $as_echo_n "checking if closesocket can be linked... " >&6; }
30837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30838 /* end confdefs.h.  */
30839
30840
30841       $curl_includes_winsock2
30842       $curl_includes_socket
30843
30844 int main (void)
30845 {
30846
30847       if(0 != closesocket(0))
30848         return 1;
30849
30850  ;
30851  return 0;
30852 }
30853
30854 _ACEOF
30855 if ac_fn_c_try_link "$LINENO"; then :
30856
30857     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30858 $as_echo "yes" >&6; }
30859     tst_links_closesocket="yes"
30860
30861 else
30862
30863     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30864 $as_echo "no" >&6; }
30865     tst_links_closesocket="no"
30866
30867 fi
30868 rm -f core conftest.err conftest.$ac_objext \
30869     conftest$ac_exeext conftest.$ac_ext
30870   #
30871   if test "$tst_links_closesocket" = "yes"; then
30872     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
30873 $as_echo_n "checking if closesocket is prototyped... " >&6; }
30874     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30875 /* end confdefs.h.  */
30876
30877       $curl_includes_winsock2
30878       $curl_includes_socket
30879
30880 _ACEOF
30881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30882   $EGREP "closesocket" >/dev/null 2>&1; then :
30883
30884       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30885 $as_echo "yes" >&6; }
30886       tst_proto_closesocket="yes"
30887
30888 else
30889
30890       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30891 $as_echo "no" >&6; }
30892       tst_proto_closesocket="no"
30893
30894 fi
30895 rm -f conftest*
30896
30897   fi
30898   #
30899   if test "$tst_proto_closesocket" = "yes"; then
30900     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
30901 $as_echo_n "checking if closesocket is compilable... " >&6; }
30902     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30903 /* end confdefs.h.  */
30904
30905
30906         $curl_includes_winsock2
30907         $curl_includes_socket
30908
30909 int main (void)
30910 {
30911
30912         if(0 != closesocket(0))
30913           return 1;
30914
30915  ;
30916  return 0;
30917 }
30918
30919 _ACEOF
30920 if ac_fn_c_try_compile "$LINENO"; then :
30921
30922       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30923 $as_echo "yes" >&6; }
30924       tst_compi_closesocket="yes"
30925
30926 else
30927
30928       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30929 $as_echo "no" >&6; }
30930       tst_compi_closesocket="no"
30931
30932 fi
30933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30934   fi
30935   #
30936   if test "$tst_compi_closesocket" = "yes"; then
30937     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
30938 $as_echo_n "checking if closesocket usage allowed... " >&6; }
30939     if test "x$curl_disallow_closesocket" != "xyes"; then
30940       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30941 $as_echo "yes" >&6; }
30942       tst_allow_closesocket="yes"
30943     else
30944       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30945 $as_echo "no" >&6; }
30946       tst_allow_closesocket="no"
30947     fi
30948   fi
30949   #
30950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
30951 $as_echo_n "checking if closesocket might be used... " >&6; }
30952   if test "$tst_links_closesocket" = "yes" &&
30953      test "$tst_proto_closesocket" = "yes" &&
30954      test "$tst_compi_closesocket" = "yes" &&
30955      test "$tst_allow_closesocket" = "yes"; then
30956     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30957 $as_echo "yes" >&6; }
30958
30959 cat >>confdefs.h <<_ACEOF
30960 #define HAVE_CLOSESOCKET 1
30961 _ACEOF
30962
30963     curl_cv_func_closesocket="yes"
30964   else
30965     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30966 $as_echo "no" >&6; }
30967     curl_cv_func_closesocket="no"
30968   fi
30969
30970
30971     #
30972   tst_links_closesocket_camel="unknown"
30973   tst_proto_closesocket_camel="unknown"
30974   tst_compi_closesocket_camel="unknown"
30975   tst_allow_closesocket_camel="unknown"
30976   #
30977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
30978 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
30979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30980 /* end confdefs.h.  */
30981
30982
30983       $curl_includes_sys_socket
30984
30985 int main (void)
30986 {
30987
30988       if(0 != CloseSocket(0))
30989         return 1;
30990
30991  ;
30992  return 0;
30993 }
30994
30995 _ACEOF
30996 if ac_fn_c_try_link "$LINENO"; then :
30997
30998     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30999 $as_echo "yes" >&6; }
31000     tst_links_closesocket_camel="yes"
31001
31002 else
31003
31004     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31005 $as_echo "no" >&6; }
31006     tst_links_closesocket_camel="no"
31007
31008 fi
31009 rm -f core conftest.err conftest.$ac_objext \
31010     conftest$ac_exeext conftest.$ac_ext
31011   #
31012   if test "$tst_links_closesocket_camel" = "yes"; then
31013     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
31014 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
31015     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31016 /* end confdefs.h.  */
31017
31018       $curl_includes_sys_socket
31019
31020 _ACEOF
31021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31022   $EGREP "CloseSocket" >/dev/null 2>&1; then :
31023
31024       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31025 $as_echo "yes" >&6; }
31026       tst_proto_closesocket_camel="yes"
31027
31028 else
31029
31030       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31031 $as_echo "no" >&6; }
31032       tst_proto_closesocket_camel="no"
31033
31034 fi
31035 rm -f conftest*
31036
31037   fi
31038   #
31039   if test "$tst_proto_closesocket_camel" = "yes"; then
31040     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
31041 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
31042     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31043 /* end confdefs.h.  */
31044
31045
31046         $curl_includes_sys_socket
31047
31048 int main (void)
31049 {
31050
31051         if(0 != CloseSocket(0))
31052           return 1;
31053
31054  ;
31055  return 0;
31056 }
31057
31058 _ACEOF
31059 if ac_fn_c_try_compile "$LINENO"; then :
31060
31061       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31062 $as_echo "yes" >&6; }
31063       tst_compi_closesocket_camel="yes"
31064
31065 else
31066
31067       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31068 $as_echo "no" >&6; }
31069       tst_compi_closesocket_camel="no"
31070
31071 fi
31072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31073   fi
31074   #
31075   if test "$tst_compi_closesocket_camel" = "yes"; then
31076     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
31077 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
31078     if test "x$curl_disallow_closesocket_camel" != "xyes"; then
31079       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31080 $as_echo "yes" >&6; }
31081       tst_allow_closesocket_camel="yes"
31082     else
31083       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31084 $as_echo "no" >&6; }
31085       tst_allow_closesocket_camel="no"
31086     fi
31087   fi
31088   #
31089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
31090 $as_echo_n "checking if CloseSocket might be used... " >&6; }
31091   if test "$tst_links_closesocket_camel" = "yes" &&
31092      test "$tst_proto_closesocket_camel" = "yes" &&
31093      test "$tst_compi_closesocket_camel" = "yes" &&
31094      test "$tst_allow_closesocket_camel" = "yes"; then
31095     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31096 $as_echo "yes" >&6; }
31097
31098 cat >>confdefs.h <<_ACEOF
31099 #define HAVE_CLOSESOCKET_CAMEL 1
31100 _ACEOF
31101
31102     curl_cv_func_closesocket_camel="yes"
31103   else
31104     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31105 $as_echo "no" >&6; }
31106     curl_cv_func_closesocket_camel="no"
31107   fi
31108
31109
31110         #
31111   tst_links_connect="unknown"
31112   tst_proto_connect="unknown"
31113   tst_compi_connect="unknown"
31114   tst_allow_connect="unknown"
31115   #
31116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
31117 $as_echo_n "checking if connect can be linked... " >&6; }
31118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31119 /* end confdefs.h.  */
31120
31121
31122       $curl_includes_winsock2
31123       $curl_includes_sys_socket
31124       $curl_includes_socket
31125
31126 int main (void)
31127 {
31128
31129       if(0 != connect(0, 0, 0))
31130         return 1;
31131
31132  ;
31133  return 0;
31134 }
31135
31136 _ACEOF
31137 if ac_fn_c_try_link "$LINENO"; then :
31138
31139     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31140 $as_echo "yes" >&6; }
31141     tst_links_connect="yes"
31142
31143 else
31144
31145     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31146 $as_echo "no" >&6; }
31147     tst_links_connect="no"
31148
31149 fi
31150 rm -f core conftest.err conftest.$ac_objext \
31151     conftest$ac_exeext conftest.$ac_ext
31152   #
31153   if test "$tst_links_connect" = "yes"; then
31154     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
31155 $as_echo_n "checking if connect is prototyped... " >&6; }
31156     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31157 /* end confdefs.h.  */
31158
31159       $curl_includes_winsock2
31160       $curl_includes_sys_socket
31161       $curl_includes_socket
31162
31163 _ACEOF
31164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31165   $EGREP "connect" >/dev/null 2>&1; then :
31166
31167       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31168 $as_echo "yes" >&6; }
31169       tst_proto_connect="yes"
31170
31171 else
31172
31173       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31174 $as_echo "no" >&6; }
31175       tst_proto_connect="no"
31176
31177 fi
31178 rm -f conftest*
31179
31180   fi
31181   #
31182   if test "$tst_proto_connect" = "yes"; then
31183     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
31184 $as_echo_n "checking if connect is compilable... " >&6; }
31185     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31186 /* end confdefs.h.  */
31187
31188
31189         $curl_includes_winsock2
31190         $curl_includes_sys_socket
31191         $curl_includes_socket
31192
31193 int main (void)
31194 {
31195
31196         if(0 != connect(0, 0, 0))
31197           return 1;
31198
31199  ;
31200  return 0;
31201 }
31202
31203 _ACEOF
31204 if ac_fn_c_try_compile "$LINENO"; then :
31205
31206       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31207 $as_echo "yes" >&6; }
31208       tst_compi_connect="yes"
31209
31210 else
31211
31212       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31213 $as_echo "no" >&6; }
31214       tst_compi_connect="no"
31215
31216 fi
31217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31218   fi
31219   #
31220   if test "$tst_compi_connect" = "yes"; then
31221     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
31222 $as_echo_n "checking if connect usage allowed... " >&6; }
31223     if test "x$curl_disallow_connect" != "xyes"; then
31224       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31225 $as_echo "yes" >&6; }
31226       tst_allow_connect="yes"
31227     else
31228       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31229 $as_echo "no" >&6; }
31230       tst_allow_connect="no"
31231     fi
31232   fi
31233   #
31234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
31235 $as_echo_n "checking if connect might be used... " >&6; }
31236   if test "$tst_links_connect" = "yes" &&
31237      test "$tst_proto_connect" = "yes" &&
31238      test "$tst_compi_connect" = "yes" &&
31239      test "$tst_allow_connect" = "yes"; then
31240     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31241 $as_echo "yes" >&6; }
31242
31243 cat >>confdefs.h <<_ACEOF
31244 #define HAVE_CONNECT 1
31245 _ACEOF
31246
31247     curl_cv_func_connect="yes"
31248   else
31249     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31250 $as_echo "no" >&6; }
31251     curl_cv_func_connect="no"
31252   fi
31253
31254
31255 curl_includes_fcntl="\
31256 /* includes start */
31257 #ifdef HAVE_SYS_TYPES_H
31258 #  include <sys/types.h>
31259 #endif
31260 #ifdef HAVE_UNISTD_H
31261 #  include <unistd.h>
31262 #endif
31263 #ifdef HAVE_FCNTL_H
31264 #  include <fcntl.h>
31265 #endif
31266 /* includes end */"
31267   for ac_header in sys/types.h unistd.h fcntl.h
31268 do :
31269   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31270 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
31271 "
31272 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31273   cat >>confdefs.h <<_ACEOF
31274 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31275 _ACEOF
31276
31277 fi
31278
31279 done
31280
31281
31282
31283     #
31284   tst_links_fcntl="unknown"
31285   tst_proto_fcntl="unknown"
31286   tst_compi_fcntl="unknown"
31287   tst_allow_fcntl="unknown"
31288   #
31289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
31290 $as_echo_n "checking if fcntl can be linked... " >&6; }
31291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31292 /* end confdefs.h.  */
31293
31294
31295 #define fcntl innocuous_fcntl
31296 #ifdef __STDC__
31297 # include <limits.h>
31298 #else
31299 # include <assert.h>
31300 #endif
31301 #undef fcntl
31302 #ifdef __cplusplus
31303 extern "C"
31304 #endif
31305 char fcntl ();
31306 #if defined __stub_fcntl || defined __stub___fcntl
31307 choke me
31308 #endif
31309
31310 int main (void)
31311 {
31312 return fcntl ();
31313  ;
31314  return 0;
31315 }
31316
31317 _ACEOF
31318 if ac_fn_c_try_link "$LINENO"; then :
31319
31320     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31321 $as_echo "yes" >&6; }
31322     tst_links_fcntl="yes"
31323
31324 else
31325
31326     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31327 $as_echo "no" >&6; }
31328     tst_links_fcntl="no"
31329
31330 fi
31331 rm -f core conftest.err conftest.$ac_objext \
31332     conftest$ac_exeext conftest.$ac_ext
31333   #
31334   if test "$tst_links_fcntl" = "yes"; then
31335     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
31336 $as_echo_n "checking if fcntl is prototyped... " >&6; }
31337     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31338 /* end confdefs.h.  */
31339
31340       $curl_includes_fcntl
31341
31342 _ACEOF
31343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31344   $EGREP "fcntl" >/dev/null 2>&1; then :
31345
31346       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31347 $as_echo "yes" >&6; }
31348       tst_proto_fcntl="yes"
31349
31350 else
31351
31352       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31353 $as_echo "no" >&6; }
31354       tst_proto_fcntl="no"
31355
31356 fi
31357 rm -f conftest*
31358
31359   fi
31360   #
31361   if test "$tst_proto_fcntl" = "yes"; then
31362     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
31363 $as_echo_n "checking if fcntl is compilable... " >&6; }
31364     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31365 /* end confdefs.h.  */
31366
31367
31368         $curl_includes_fcntl
31369
31370 int main (void)
31371 {
31372
31373         if(0 != fcntl(0, 0, 0))
31374           return 1;
31375
31376  ;
31377  return 0;
31378 }
31379
31380 _ACEOF
31381 if ac_fn_c_try_compile "$LINENO"; then :
31382
31383       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31384 $as_echo "yes" >&6; }
31385       tst_compi_fcntl="yes"
31386
31387 else
31388
31389       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31390 $as_echo "no" >&6; }
31391       tst_compi_fcntl="no"
31392
31393 fi
31394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31395   fi
31396   #
31397   if test "$tst_compi_fcntl" = "yes"; then
31398     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
31399 $as_echo_n "checking if fcntl usage allowed... " >&6; }
31400     if test "x$curl_disallow_fcntl" != "xyes"; then
31401       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31402 $as_echo "yes" >&6; }
31403       tst_allow_fcntl="yes"
31404     else
31405       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31406 $as_echo "no" >&6; }
31407       tst_allow_fcntl="no"
31408     fi
31409   fi
31410   #
31411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
31412 $as_echo_n "checking if fcntl might be used... " >&6; }
31413   if test "$tst_links_fcntl" = "yes" &&
31414      test "$tst_proto_fcntl" = "yes" &&
31415      test "$tst_compi_fcntl" = "yes" &&
31416      test "$tst_allow_fcntl" = "yes"; then
31417     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31418 $as_echo "yes" >&6; }
31419
31420 cat >>confdefs.h <<_ACEOF
31421 #define HAVE_FCNTL 1
31422 _ACEOF
31423
31424     curl_cv_func_fcntl="yes"
31425
31426   #
31427   tst_compi_fcntl_o_nonblock="unknown"
31428   tst_allow_fcntl_o_nonblock="unknown"
31429   #
31430   case $host_os in
31431     sunos4* | aix3* | beos*)
31432             curl_disallow_fcntl_o_nonblock="yes"
31433       ;;
31434   esac
31435   #
31436   if test "$curl_cv_func_fcntl" = "yes"; then
31437     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
31438 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
31439     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31440 /* end confdefs.h.  */
31441
31442
31443         $curl_includes_fcntl
31444
31445 int main (void)
31446 {
31447
31448         int flags = 0;
31449         if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
31450           return 1;
31451
31452  ;
31453  return 0;
31454 }
31455
31456 _ACEOF
31457 if ac_fn_c_try_compile "$LINENO"; then :
31458
31459       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31460 $as_echo "yes" >&6; }
31461       tst_compi_fcntl_o_nonblock="yes"
31462
31463 else
31464
31465       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31466 $as_echo "no" >&6; }
31467       tst_compi_fcntl_o_nonblock="no"
31468
31469 fi
31470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31471   fi
31472   #
31473   if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
31474     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
31475 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
31476     if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
31477       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31478 $as_echo "yes" >&6; }
31479       tst_allow_fcntl_o_nonblock="yes"
31480     else
31481       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31482 $as_echo "no" >&6; }
31483       tst_allow_fcntl_o_nonblock="no"
31484     fi
31485   fi
31486   #
31487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
31488 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
31489   if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
31490      test "$tst_allow_fcntl_o_nonblock" = "yes"; then
31491     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31492 $as_echo "yes" >&6; }
31493
31494 cat >>confdefs.h <<_ACEOF
31495 #define HAVE_FCNTL_O_NONBLOCK 1
31496 _ACEOF
31497
31498     curl_cv_func_fcntl_o_nonblock="yes"
31499   else
31500     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31501 $as_echo "no" >&6; }
31502     curl_cv_func_fcntl_o_nonblock="no"
31503   fi
31504
31505   else
31506     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31507 $as_echo "no" >&6; }
31508     curl_cv_func_fcntl="no"
31509   fi
31510
31511
31512 curl_includes_stdio="\
31513 /* includes start */
31514 #ifdef HAVE_SYS_TYPES_H
31515 #  include <sys/types.h>
31516 #endif
31517 #ifdef HAVE_STDIO_H
31518 #  include <stdio.h>
31519 #endif
31520 /* includes end */"
31521   for ac_header in sys/types.h stdio.h
31522 do :
31523   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31524 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
31525 "
31526 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31527   cat >>confdefs.h <<_ACEOF
31528 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31529 _ACEOF
31530
31531 fi
31532
31533 done
31534
31535
31536
31537     #
31538   tst_links_fdopen="unknown"
31539   tst_proto_fdopen="unknown"
31540   tst_compi_fdopen="unknown"
31541   tst_allow_fdopen="unknown"
31542   #
31543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
31544 $as_echo_n "checking if fdopen can be linked... " >&6; }
31545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31546 /* end confdefs.h.  */
31547
31548
31549 #define fdopen innocuous_fdopen
31550 #ifdef __STDC__
31551 # include <limits.h>
31552 #else
31553 # include <assert.h>
31554 #endif
31555 #undef fdopen
31556 #ifdef __cplusplus
31557 extern "C"
31558 #endif
31559 char fdopen ();
31560 #if defined __stub_fdopen || defined __stub___fdopen
31561 choke me
31562 #endif
31563
31564 int main (void)
31565 {
31566 return fdopen ();
31567  ;
31568  return 0;
31569 }
31570
31571 _ACEOF
31572 if ac_fn_c_try_link "$LINENO"; then :
31573
31574     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31575 $as_echo "yes" >&6; }
31576     tst_links_fdopen="yes"
31577
31578 else
31579
31580     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31581 $as_echo "no" >&6; }
31582     tst_links_fdopen="no"
31583
31584 fi
31585 rm -f core conftest.err conftest.$ac_objext \
31586     conftest$ac_exeext conftest.$ac_ext
31587   #
31588   if test "$tst_links_fdopen" = "yes"; then
31589     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
31590 $as_echo_n "checking if fdopen is prototyped... " >&6; }
31591     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31592 /* end confdefs.h.  */
31593
31594       $curl_includes_stdio
31595
31596 _ACEOF
31597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31598   $EGREP "fdopen" >/dev/null 2>&1; then :
31599
31600       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31601 $as_echo "yes" >&6; }
31602       tst_proto_fdopen="yes"
31603
31604 else
31605
31606       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31607 $as_echo "no" >&6; }
31608       tst_proto_fdopen="no"
31609
31610 fi
31611 rm -f conftest*
31612
31613   fi
31614   #
31615   if test "$tst_proto_fdopen" = "yes"; then
31616     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
31617 $as_echo_n "checking if fdopen is compilable... " >&6; }
31618     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31619 /* end confdefs.h.  */
31620
31621
31622         $curl_includes_stdio
31623
31624 int main (void)
31625 {
31626
31627         if(0 != fdopen(0, 0))
31628           return 1;
31629
31630  ;
31631  return 0;
31632 }
31633
31634 _ACEOF
31635 if ac_fn_c_try_compile "$LINENO"; then :
31636
31637       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31638 $as_echo "yes" >&6; }
31639       tst_compi_fdopen="yes"
31640
31641 else
31642
31643       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31644 $as_echo "no" >&6; }
31645       tst_compi_fdopen="no"
31646
31647 fi
31648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31649   fi
31650   #
31651   if test "$tst_compi_fdopen" = "yes"; then
31652     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
31653 $as_echo_n "checking if fdopen usage allowed... " >&6; }
31654     if test "x$curl_disallow_fdopen" != "xyes"; then
31655       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31656 $as_echo "yes" >&6; }
31657       tst_allow_fdopen="yes"
31658     else
31659       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31660 $as_echo "no" >&6; }
31661       tst_allow_fdopen="no"
31662     fi
31663   fi
31664   #
31665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
31666 $as_echo_n "checking if fdopen might be used... " >&6; }
31667   if test "$tst_links_fdopen" = "yes" &&
31668      test "$tst_proto_fdopen" = "yes" &&
31669      test "$tst_compi_fdopen" = "yes" &&
31670      test "$tst_allow_fdopen" = "yes"; then
31671     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31672 $as_echo "yes" >&6; }
31673
31674 cat >>confdefs.h <<_ACEOF
31675 #define HAVE_FDOPEN 1
31676 _ACEOF
31677
31678     curl_cv_func_fdopen="yes"
31679   else
31680     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31681 $as_echo "no" >&6; }
31682     curl_cv_func_fdopen="no"
31683   fi
31684
31685
31686 curl_includes_netdb="\
31687 /* includes start */
31688 #ifdef HAVE_SYS_TYPES_H
31689 #  include <sys/types.h>
31690 #endif
31691 #ifdef HAVE_NETDB_H
31692 #  include <netdb.h>
31693 #endif
31694 /* includes end */"
31695   for ac_header in sys/types.h netdb.h
31696 do :
31697   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31698 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
31699 "
31700 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31701   cat >>confdefs.h <<_ACEOF
31702 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31703 _ACEOF
31704
31705 fi
31706
31707 done
31708
31709
31710
31711         #
31712   tst_links_freeaddrinfo="unknown"
31713   tst_proto_freeaddrinfo="unknown"
31714   tst_compi_freeaddrinfo="unknown"
31715   tst_allow_freeaddrinfo="unknown"
31716   #
31717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
31718 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
31719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31720 /* end confdefs.h.  */
31721
31722
31723       $curl_includes_ws2tcpip
31724       $curl_includes_sys_socket
31725       $curl_includes_netdb
31726
31727 int main (void)
31728 {
31729
31730       freeaddrinfo(0);
31731
31732  ;
31733  return 0;
31734 }
31735
31736 _ACEOF
31737 if ac_fn_c_try_link "$LINENO"; then :
31738
31739     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31740 $as_echo "yes" >&6; }
31741     tst_links_freeaddrinfo="yes"
31742
31743 else
31744
31745     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31746 $as_echo "no" >&6; }
31747     tst_links_freeaddrinfo="no"
31748
31749 fi
31750 rm -f core conftest.err conftest.$ac_objext \
31751     conftest$ac_exeext conftest.$ac_ext
31752   #
31753   if test "$tst_links_freeaddrinfo" = "yes"; then
31754     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
31755 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
31756     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31757 /* end confdefs.h.  */
31758
31759       $curl_includes_ws2tcpip
31760       $curl_includes_sys_socket
31761       $curl_includes_netdb
31762
31763 _ACEOF
31764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31765   $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
31766
31767       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31768 $as_echo "yes" >&6; }
31769       tst_proto_freeaddrinfo="yes"
31770
31771 else
31772
31773       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31774 $as_echo "no" >&6; }
31775       tst_proto_freeaddrinfo="no"
31776
31777 fi
31778 rm -f conftest*
31779
31780   fi
31781   #
31782   if test "$tst_proto_freeaddrinfo" = "yes"; then
31783     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
31784 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
31785     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31786 /* end confdefs.h.  */
31787
31788
31789         $curl_includes_ws2tcpip
31790         $curl_includes_sys_socket
31791         $curl_includes_netdb
31792
31793 int main (void)
31794 {
31795
31796         freeaddrinfo(0);
31797
31798  ;
31799  return 0;
31800 }
31801
31802 _ACEOF
31803 if ac_fn_c_try_compile "$LINENO"; then :
31804
31805       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31806 $as_echo "yes" >&6; }
31807       tst_compi_freeaddrinfo="yes"
31808
31809 else
31810
31811       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31812 $as_echo "no" >&6; }
31813       tst_compi_freeaddrinfo="no"
31814
31815 fi
31816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31817   fi
31818   #
31819   if test "$tst_compi_freeaddrinfo" = "yes"; then
31820     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
31821 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
31822     if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
31823       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31824 $as_echo "yes" >&6; }
31825       tst_allow_freeaddrinfo="yes"
31826     else
31827       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31828 $as_echo "no" >&6; }
31829       tst_allow_freeaddrinfo="no"
31830     fi
31831   fi
31832   #
31833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
31834 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
31835   if test "$tst_links_freeaddrinfo" = "yes" &&
31836      test "$tst_proto_freeaddrinfo" = "yes" &&
31837      test "$tst_compi_freeaddrinfo" = "yes" &&
31838      test "$tst_allow_freeaddrinfo" = "yes"; then
31839     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31840 $as_echo "yes" >&6; }
31841
31842 cat >>confdefs.h <<_ACEOF
31843 #define HAVE_FREEADDRINFO 1
31844 _ACEOF
31845
31846     curl_cv_func_freeaddrinfo="yes"
31847   else
31848     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31849 $as_echo "no" >&6; }
31850     curl_cv_func_freeaddrinfo="no"
31851   fi
31852
31853
31854 curl_includes_ifaddrs="\
31855 /* includes start */
31856 #ifdef HAVE_SYS_TYPES_H
31857 #  include <sys/types.h>
31858 #endif
31859 #ifdef HAVE_SYS_SOCKET_H
31860 #  include <sys/socket.h>
31861 #endif
31862 #ifdef HAVE_NETINET_IN_H
31863 #  include <netinet/in.h>
31864 #endif
31865 #ifdef HAVE_IFADDRS_H
31866 #  include <ifaddrs.h>
31867 #endif
31868 /* includes end */"
31869   for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
31870 do :
31871   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31872 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
31873 "
31874 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31875   cat >>confdefs.h <<_ACEOF
31876 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31877 _ACEOF
31878
31879 fi
31880
31881 done
31882
31883
31884
31885     #
31886   tst_links_freeifaddrs="unknown"
31887   tst_proto_freeifaddrs="unknown"
31888   tst_compi_freeifaddrs="unknown"
31889   tst_allow_freeifaddrs="unknown"
31890   #
31891   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
31892 $as_echo_n "checking if freeifaddrs can be linked... " >&6; }
31893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31894 /* end confdefs.h.  */
31895
31896
31897 #define freeifaddrs innocuous_freeifaddrs
31898 #ifdef __STDC__
31899 # include <limits.h>
31900 #else
31901 # include <assert.h>
31902 #endif
31903 #undef freeifaddrs
31904 #ifdef __cplusplus
31905 extern "C"
31906 #endif
31907 char freeifaddrs ();
31908 #if defined __stub_freeifaddrs || defined __stub___freeifaddrs
31909 choke me
31910 #endif
31911
31912 int main (void)
31913 {
31914 return freeifaddrs ();
31915  ;
31916  return 0;
31917 }
31918
31919 _ACEOF
31920 if ac_fn_c_try_link "$LINENO"; then :
31921
31922     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31923 $as_echo "yes" >&6; }
31924     tst_links_freeifaddrs="yes"
31925
31926 else
31927
31928     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31929 $as_echo "no" >&6; }
31930     tst_links_freeifaddrs="no"
31931
31932 fi
31933 rm -f core conftest.err conftest.$ac_objext \
31934     conftest$ac_exeext conftest.$ac_ext
31935   #
31936   if test "$tst_links_freeifaddrs" = "yes"; then
31937     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
31938 $as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
31939     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31940 /* end confdefs.h.  */
31941
31942       $curl_includes_ifaddrs
31943
31944 _ACEOF
31945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31946   $EGREP "freeifaddrs" >/dev/null 2>&1; then :
31947
31948       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31949 $as_echo "yes" >&6; }
31950       tst_proto_freeifaddrs="yes"
31951
31952 else
31953
31954       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31955 $as_echo "no" >&6; }
31956       tst_proto_freeifaddrs="no"
31957
31958 fi
31959 rm -f conftest*
31960
31961   fi
31962   #
31963   if test "$tst_proto_freeifaddrs" = "yes"; then
31964     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
31965 $as_echo_n "checking if freeifaddrs is compilable... " >&6; }
31966     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31967 /* end confdefs.h.  */
31968
31969
31970         $curl_includes_ifaddrs
31971
31972 int main (void)
31973 {
31974
31975         freeifaddrs(0);
31976
31977  ;
31978  return 0;
31979 }
31980
31981 _ACEOF
31982 if ac_fn_c_try_compile "$LINENO"; then :
31983
31984       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31985 $as_echo "yes" >&6; }
31986       tst_compi_freeifaddrs="yes"
31987
31988 else
31989
31990       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31991 $as_echo "no" >&6; }
31992       tst_compi_freeifaddrs="no"
31993
31994 fi
31995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31996   fi
31997   #
31998   if test "$tst_compi_freeifaddrs" = "yes"; then
31999     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
32000 $as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
32001     if test "x$curl_disallow_freeifaddrs" != "xyes"; then
32002       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32003 $as_echo "yes" >&6; }
32004       tst_allow_freeifaddrs="yes"
32005     else
32006       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32007 $as_echo "no" >&6; }
32008       tst_allow_freeifaddrs="no"
32009     fi
32010   fi
32011   #
32012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
32013 $as_echo_n "checking if freeifaddrs might be used... " >&6; }
32014   if test "$tst_links_freeifaddrs" = "yes" &&
32015      test "$tst_proto_freeifaddrs" = "yes" &&
32016      test "$tst_compi_freeifaddrs" = "yes" &&
32017      test "$tst_allow_freeifaddrs" = "yes"; then
32018     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32019 $as_echo "yes" >&6; }
32020
32021 cat >>confdefs.h <<_ACEOF
32022 #define HAVE_FREEIFADDRS 1
32023 _ACEOF
32024
32025     curl_cv_func_freeifaddrs="yes"
32026   else
32027     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32028 $as_echo "no" >&6; }
32029     curl_cv_func_freeifaddrs="no"
32030   fi
32031
32032
32033 curl_includes_sys_xattr="\
32034 /* includes start */
32035 #ifdef HAVE_SYS_TYPES_H
32036 #  include <sys/types.h>
32037 #endif
32038 #ifdef HAVE_SYS_XATTR_H
32039 #  include <sys/xattr.h>
32040 #endif
32041 /* includes end */"
32042   for ac_header in sys/types.h sys/xattr.h
32043 do :
32044   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32045 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
32046 "
32047 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32048   cat >>confdefs.h <<_ACEOF
32049 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32050 _ACEOF
32051
32052 fi
32053
32054 done
32055
32056
32057
32058     #
32059   tst_links_fsetxattr="unknown"
32060   tst_proto_fsetxattr="unknown"
32061   tst_compi_fsetxattr="unknown"
32062   tst_allow_fsetxattr="unknown"
32063   tst_nargs_fsetxattr="unknown"
32064   #
32065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
32066 $as_echo_n "checking if fsetxattr can be linked... " >&6; }
32067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32068 /* end confdefs.h.  */
32069
32070
32071 #define fsetxattr innocuous_fsetxattr
32072 #ifdef __STDC__
32073 # include <limits.h>
32074 #else
32075 # include <assert.h>
32076 #endif
32077 #undef fsetxattr
32078 #ifdef __cplusplus
32079 extern "C"
32080 #endif
32081 char fsetxattr ();
32082 #if defined __stub_fsetxattr || defined __stub___fsetxattr
32083 choke me
32084 #endif
32085
32086 int main (void)
32087 {
32088 return fsetxattr ();
32089  ;
32090  return 0;
32091 }
32092
32093 _ACEOF
32094 if ac_fn_c_try_link "$LINENO"; then :
32095
32096     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32097 $as_echo "yes" >&6; }
32098     tst_links_fsetxattr="yes"
32099
32100 else
32101
32102     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32103 $as_echo "no" >&6; }
32104     tst_links_fsetxattr="no"
32105
32106 fi
32107 rm -f core conftest.err conftest.$ac_objext \
32108     conftest$ac_exeext conftest.$ac_ext
32109   #
32110   if test "$tst_links_fsetxattr" = "yes"; then
32111     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
32112 $as_echo_n "checking if fsetxattr is prototyped... " >&6; }
32113     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32114 /* end confdefs.h.  */
32115
32116       $curl_includes_sys_xattr
32117
32118 _ACEOF
32119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32120   $EGREP "fsetxattr" >/dev/null 2>&1; then :
32121
32122       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32123 $as_echo "yes" >&6; }
32124       tst_proto_fsetxattr="yes"
32125
32126 else
32127
32128       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32129 $as_echo "no" >&6; }
32130       tst_proto_fsetxattr="no"
32131
32132 fi
32133 rm -f conftest*
32134
32135   fi
32136   #
32137   if test "$tst_proto_fsetxattr" = "yes"; then
32138     if test "$tst_nargs_fsetxattr" = "unknown"; then
32139       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
32140 $as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
32141       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32142 /* end confdefs.h.  */
32143
32144
32145           $curl_includes_sys_xattr
32146
32147 int main (void)
32148 {
32149
32150           if(0 != fsetxattr(0, 0, 0, 0, 0))
32151             return 1;
32152
32153  ;
32154  return 0;
32155 }
32156
32157 _ACEOF
32158 if ac_fn_c_try_compile "$LINENO"; then :
32159
32160         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32161 $as_echo "yes" >&6; }
32162         tst_compi_fsetxattr="yes"
32163         tst_nargs_fsetxattr="5"
32164
32165 else
32166
32167         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32168 $as_echo "no" >&6; }
32169         tst_compi_fsetxattr="no"
32170
32171 fi
32172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32173     fi
32174     if test "$tst_nargs_fsetxattr" = "unknown"; then
32175       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
32176 $as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
32177       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32178 /* end confdefs.h.  */
32179
32180
32181           $curl_includes_sys_xattr
32182
32183 int main (void)
32184 {
32185
32186           if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
32187             return 1;
32188
32189  ;
32190  return 0;
32191 }
32192
32193 _ACEOF
32194 if ac_fn_c_try_compile "$LINENO"; then :
32195
32196         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32197 $as_echo "yes" >&6; }
32198         tst_compi_fsetxattr="yes"
32199         tst_nargs_fsetxattr="6"
32200
32201 else
32202
32203         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32204 $as_echo "no" >&6; }
32205         tst_compi_fsetxattr="no"
32206
32207 fi
32208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32209     fi
32210     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
32211 $as_echo_n "checking if fsetxattr is compilable... " >&6; }
32212     if test "$tst_compi_fsetxattr" = "yes"; then
32213       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32214 $as_echo "yes" >&6; }
32215     else
32216       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32217 $as_echo "no" >&6; }
32218     fi
32219   fi
32220   #
32221   if test "$tst_compi_fsetxattr" = "yes"; then
32222     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
32223 $as_echo_n "checking if fsetxattr usage allowed... " >&6; }
32224     if test "x$curl_disallow_fsetxattr" != "xyes"; then
32225       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32226 $as_echo "yes" >&6; }
32227       tst_allow_fsetxattr="yes"
32228     else
32229       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32230 $as_echo "no" >&6; }
32231       tst_allow_fsetxattr="no"
32232     fi
32233   fi
32234   #
32235   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
32236 $as_echo_n "checking if fsetxattr might be used... " >&6; }
32237   if test "$tst_links_fsetxattr" = "yes" &&
32238      test "$tst_proto_fsetxattr" = "yes" &&
32239      test "$tst_compi_fsetxattr" = "yes" &&
32240      test "$tst_allow_fsetxattr" = "yes"; then
32241     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32242 $as_echo "yes" >&6; }
32243
32244 cat >>confdefs.h <<_ACEOF
32245 #define HAVE_FSETXATTR 1
32246 _ACEOF
32247
32248             #
32249     if test "$tst_nargs_fsetxattr" -eq "5"; then
32250
32251 $as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
32252
32253     elif test "$tst_nargs_fsetxattr" -eq "6"; then
32254
32255 $as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
32256
32257     fi
32258     #
32259     curl_cv_func_fsetxattr="yes"
32260   else
32261     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32262 $as_echo "no" >&6; }
32263     curl_cv_func_fsetxattr="no"
32264   fi
32265
32266
32267     #
32268   tst_links_ftruncate="unknown"
32269   tst_proto_ftruncate="unknown"
32270   tst_compi_ftruncate="unknown"
32271   tst_allow_ftruncate="unknown"
32272   #
32273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
32274 $as_echo_n "checking if ftruncate can be linked... " >&6; }
32275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32276 /* end confdefs.h.  */
32277
32278
32279 #define ftruncate innocuous_ftruncate
32280 #ifdef __STDC__
32281 # include <limits.h>
32282 #else
32283 # include <assert.h>
32284 #endif
32285 #undef ftruncate
32286 #ifdef __cplusplus
32287 extern "C"
32288 #endif
32289 char ftruncate ();
32290 #if defined __stub_ftruncate || defined __stub___ftruncate
32291 choke me
32292 #endif
32293
32294 int main (void)
32295 {
32296 return ftruncate ();
32297  ;
32298  return 0;
32299 }
32300
32301 _ACEOF
32302 if ac_fn_c_try_link "$LINENO"; then :
32303
32304     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32305 $as_echo "yes" >&6; }
32306     tst_links_ftruncate="yes"
32307
32308 else
32309
32310     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32311 $as_echo "no" >&6; }
32312     tst_links_ftruncate="no"
32313
32314 fi
32315 rm -f core conftest.err conftest.$ac_objext \
32316     conftest$ac_exeext conftest.$ac_ext
32317   #
32318   if test "$tst_links_ftruncate" = "yes"; then
32319     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
32320 $as_echo_n "checking if ftruncate is prototyped... " >&6; }
32321     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32322 /* end confdefs.h.  */
32323
32324       $curl_includes_unistd
32325
32326 _ACEOF
32327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32328   $EGREP "ftruncate" >/dev/null 2>&1; then :
32329
32330       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32331 $as_echo "yes" >&6; }
32332       tst_proto_ftruncate="yes"
32333
32334 else
32335
32336       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32337 $as_echo "no" >&6; }
32338       tst_proto_ftruncate="no"
32339
32340 fi
32341 rm -f conftest*
32342
32343   fi
32344   #
32345   if test "$tst_proto_ftruncate" = "yes"; then
32346     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
32347 $as_echo_n "checking if ftruncate is compilable... " >&6; }
32348     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32349 /* end confdefs.h.  */
32350
32351
32352         $curl_includes_unistd
32353
32354 int main (void)
32355 {
32356
32357         if(0 != ftruncate(0, 0))
32358           return 1;
32359
32360  ;
32361  return 0;
32362 }
32363
32364 _ACEOF
32365 if ac_fn_c_try_compile "$LINENO"; then :
32366
32367       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32368 $as_echo "yes" >&6; }
32369       tst_compi_ftruncate="yes"
32370
32371 else
32372
32373       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32374 $as_echo "no" >&6; }
32375       tst_compi_ftruncate="no"
32376
32377 fi
32378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32379   fi
32380   #
32381   if test "$tst_compi_ftruncate" = "yes"; then
32382     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
32383 $as_echo_n "checking if ftruncate usage allowed... " >&6; }
32384     if test "x$curl_disallow_ftruncate" != "xyes"; then
32385       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32386 $as_echo "yes" >&6; }
32387       tst_allow_ftruncate="yes"
32388     else
32389       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32390 $as_echo "no" >&6; }
32391       tst_allow_ftruncate="no"
32392     fi
32393   fi
32394   #
32395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
32396 $as_echo_n "checking if ftruncate might be used... " >&6; }
32397   if test "$tst_links_ftruncate" = "yes" &&
32398      test "$tst_proto_ftruncate" = "yes" &&
32399      test "$tst_compi_ftruncate" = "yes" &&
32400      test "$tst_allow_ftruncate" = "yes"; then
32401     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32402 $as_echo "yes" >&6; }
32403
32404 cat >>confdefs.h <<_ACEOF
32405 #define HAVE_FTRUNCATE 1
32406 _ACEOF
32407
32408     curl_cv_func_ftruncate="yes"
32409   else
32410     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32411 $as_echo "no" >&6; }
32412     curl_cv_func_ftruncate="no"
32413   fi
32414
32415
32416 curl_includes_stdlib="\
32417 /* includes start */
32418 #ifdef HAVE_SYS_TYPES_H
32419 #  include <sys/types.h>
32420 #endif
32421 #ifdef HAVE_STDLIB_H
32422 #  include <stdlib.h>
32423 #endif
32424 /* includes end */"
32425   for ac_header in sys/types.h stdlib.h
32426 do :
32427   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32428 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
32429 "
32430 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32431   cat >>confdefs.h <<_ACEOF
32432 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32433 _ACEOF
32434
32435 fi
32436
32437 done
32438
32439
32440
32441               #
32442   tst_links_getaddrinfo="unknown"
32443   tst_proto_getaddrinfo="unknown"
32444   tst_compi_getaddrinfo="unknown"
32445   tst_works_getaddrinfo="unknown"
32446   tst_allow_getaddrinfo="unknown"
32447   tst_tsafe_getaddrinfo="unknown"
32448   #
32449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
32450 $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
32451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32452 /* end confdefs.h.  */
32453
32454
32455       $curl_includes_ws2tcpip
32456       $curl_includes_sys_socket
32457       $curl_includes_netdb
32458
32459 int main (void)
32460 {
32461
32462       if(0 != getaddrinfo(0, 0, 0, 0))
32463         return 1;
32464
32465  ;
32466  return 0;
32467 }
32468
32469 _ACEOF
32470 if ac_fn_c_try_link "$LINENO"; then :
32471
32472     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32473 $as_echo "yes" >&6; }
32474     tst_links_getaddrinfo="yes"
32475
32476 else
32477
32478     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32479 $as_echo "no" >&6; }
32480     tst_links_getaddrinfo="no"
32481
32482 fi
32483 rm -f core conftest.err conftest.$ac_objext \
32484     conftest$ac_exeext conftest.$ac_ext
32485   #
32486   if test "$tst_links_getaddrinfo" = "yes"; then
32487     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
32488 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
32489     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32490 /* end confdefs.h.  */
32491
32492       $curl_includes_ws2tcpip
32493       $curl_includes_sys_socket
32494       $curl_includes_netdb
32495
32496 _ACEOF
32497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32498   $EGREP "getaddrinfo" >/dev/null 2>&1; then :
32499
32500       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32501 $as_echo "yes" >&6; }
32502       tst_proto_getaddrinfo="yes"
32503
32504 else
32505
32506       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32507 $as_echo "no" >&6; }
32508       tst_proto_getaddrinfo="no"
32509
32510 fi
32511 rm -f conftest*
32512
32513   fi
32514   #
32515   if test "$tst_proto_getaddrinfo" = "yes"; then
32516     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
32517 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
32518     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32519 /* end confdefs.h.  */
32520
32521
32522         $curl_includes_ws2tcpip
32523         $curl_includes_sys_socket
32524         $curl_includes_netdb
32525
32526 int main (void)
32527 {
32528
32529         if(0 != getaddrinfo(0, 0, 0, 0))
32530           return 1;
32531
32532  ;
32533  return 0;
32534 }
32535
32536 _ACEOF
32537 if ac_fn_c_try_compile "$LINENO"; then :
32538
32539       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32540 $as_echo "yes" >&6; }
32541       tst_compi_getaddrinfo="yes"
32542
32543 else
32544
32545       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32546 $as_echo "no" >&6; }
32547       tst_compi_getaddrinfo="no"
32548
32549 fi
32550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32551   fi
32552   #
32553     if test "x$cross_compiling" != "xyes" &&
32554     test "$tst_compi_getaddrinfo" = "yes"; then
32555     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
32556 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
32557     if test "$cross_compiling" = yes; then :
32558   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32560 as_fn_error $? "cannot run test program while cross compiling
32561 See \`config.log' for more details" "$LINENO" 5; }
32562 else
32563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32564 /* end confdefs.h.  */
32565
32566
32567         $curl_includes_ws2tcpip
32568         $curl_includes_stdlib
32569         $curl_includes_string
32570         $curl_includes_sys_socket
32571         $curl_includes_netdb
32572
32573 int main (void)
32574 {
32575
32576         struct addrinfo hints;
32577         struct addrinfo *ai = 0;
32578         int error;
32579
32580         #ifdef HAVE_WINSOCK2_H
32581         WSADATA wsa;
32582         if (WSAStartup(MAKEWORD(2,2), &wsa))
32583                 exit(2);
32584         #endif
32585
32586         memset(&hints, 0, sizeof(hints));
32587         hints.ai_flags = AI_NUMERICHOST;
32588         hints.ai_family = AF_UNSPEC;
32589         hints.ai_socktype = SOCK_STREAM;
32590         error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
32591         if(error || !ai)
32592           exit(1); /* fail */
32593         else
32594           exit(0);
32595
32596  ;
32597  return 0;
32598 }
32599
32600 _ACEOF
32601 if ac_fn_c_try_run "$LINENO"; then :
32602
32603       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32604 $as_echo "yes" >&6; }
32605       tst_works_getaddrinfo="yes"
32606
32607 else
32608
32609       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32610 $as_echo "no" >&6; }
32611       tst_works_getaddrinfo="no"
32612
32613 fi
32614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32615   conftest.$ac_objext conftest.beam conftest.$ac_ext
32616 fi
32617
32618   fi
32619   #
32620   if test "$tst_compi_getaddrinfo" = "yes" &&
32621     test "$tst_works_getaddrinfo" != "no"; then
32622     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
32623 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
32624     if test "x$curl_disallow_getaddrinfo" != "xyes"; then
32625       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32626 $as_echo "yes" >&6; }
32627       tst_allow_getaddrinfo="yes"
32628     else
32629       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32630 $as_echo "no" >&6; }
32631       tst_allow_getaddrinfo="no"
32632     fi
32633   fi
32634   #
32635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
32636 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
32637   if test "$tst_links_getaddrinfo" = "yes" &&
32638      test "$tst_proto_getaddrinfo" = "yes" &&
32639      test "$tst_compi_getaddrinfo" = "yes" &&
32640      test "$tst_allow_getaddrinfo" = "yes" &&
32641      test "$tst_works_getaddrinfo" != "no"; then
32642     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32643 $as_echo "yes" >&6; }
32644
32645 cat >>confdefs.h <<_ACEOF
32646 #define HAVE_GETADDRINFO 1
32647 _ACEOF
32648
32649     curl_cv_func_getaddrinfo="yes"
32650   else
32651     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32652 $as_echo "no" >&6; }
32653     curl_cv_func_getaddrinfo="no"
32654     curl_cv_func_getaddrinfo_threadsafe="no"
32655   fi
32656   #
32657   if test "$curl_cv_func_getaddrinfo" = "yes"; then
32658     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
32659 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
32660     case $host_os in
32661       aix[1234].* | aix5.[01].*)
32662                 tst_tsafe_getaddrinfo="no"
32663         ;;
32664       aix*)
32665                 tst_tsafe_getaddrinfo="yes"
32666         ;;
32667       darwin[12345].*)
32668                 tst_tsafe_getaddrinfo="no"
32669         ;;
32670       darwin*)
32671                 tst_tsafe_getaddrinfo="yes"
32672         ;;
32673       freebsd[1234].* | freebsd5.[1234]*)
32674                 tst_tsafe_getaddrinfo="no"
32675         ;;
32676       freebsd*)
32677                 tst_tsafe_getaddrinfo="yes"
32678         ;;
32679       hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
32680                 tst_tsafe_getaddrinfo="no"
32681         ;;
32682       hpux*)
32683                 tst_tsafe_getaddrinfo="yes"
32684         ;;
32685       netbsd[123].*)
32686                 tst_tsafe_getaddrinfo="no"
32687         ;;
32688       netbsd*)
32689                 tst_tsafe_getaddrinfo="yes"
32690         ;;
32691       *bsd*)
32692                 tst_tsafe_getaddrinfo="no"
32693         ;;
32694       solaris2*)
32695                 tst_tsafe_getaddrinfo="yes"
32696         ;;
32697     esac
32698     if test "$tst_tsafe_getaddrinfo" = "unknown" &&
32699        test "$curl_cv_native_windows" = "yes"; then
32700       tst_tsafe_getaddrinfo="yes"
32701     fi
32702     if test "$tst_tsafe_getaddrinfo" = "unknown"; then
32703
32704
32705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32706 /* end confdefs.h.  */
32707
32708
32709         $curl_includes_sys_socket
32710         $curl_includes_netdb
32711
32712 int main (void)
32713 {
32714 #ifdef h_errno
32715   return 0;
32716 #else
32717   force compilation error
32718 #endif
32719 }
32720
32721
32722 _ACEOF
32723 if ac_fn_c_try_compile "$LINENO"; then :
32724
32725     tst_symbol_defined="yes"
32726
32727 else
32728
32729     tst_symbol_defined="no"
32730
32731 fi
32732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32733   if test "$tst_symbol_defined" = "yes"; then
32734     curl_cv_have_def_h_errno=yes
32735
32736   else
32737     curl_cv_have_def_h_errno=no
32738
32739   fi
32740
32741       if test "$curl_cv_have_def_h_errno" = "yes"; then
32742         tst_h_errno_macro="yes"
32743       else
32744         tst_h_errno_macro="no"
32745       fi
32746       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32747 /* end confdefs.h.  */
32748
32749
32750           $curl_includes_sys_socket
32751           $curl_includes_netdb
32752
32753 int main (void)
32754 {
32755
32756           h_errno = 2;
32757           if(0 != h_errno)
32758             return 1;
32759
32760  ;
32761  return 0;
32762 }
32763
32764 _ACEOF
32765 if ac_fn_c_try_compile "$LINENO"; then :
32766
32767         tst_h_errno_modifiable_lvalue="yes"
32768
32769 else
32770
32771         tst_h_errno_modifiable_lvalue="no"
32772
32773 fi
32774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32775       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32776 /* end confdefs.h.  */
32777
32778
32779
32780 int main (void)
32781 {
32782
32783 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
32784           return 0;
32785 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
32786           return 0;
32787 #else
32788           force compilation error
32789 #endif
32790
32791  ;
32792  return 0;
32793 }
32794
32795 _ACEOF
32796 if ac_fn_c_try_compile "$LINENO"; then :
32797
32798         tst_h_errno_sbs_issue_7="yes"
32799
32800 else
32801
32802         tst_h_errno_sbs_issue_7="no"
32803
32804 fi
32805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32806       if test "$tst_h_errno_macro" = "no" &&
32807          test "$tst_h_errno_modifiable_lvalue" = "no" &&
32808          test "$tst_h_errno_sbs_issue_7" = "no"; then
32809         tst_tsafe_getaddrinfo="no"
32810       else
32811         tst_tsafe_getaddrinfo="yes"
32812       fi
32813     fi
32814     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
32815 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
32816     if test "$tst_tsafe_getaddrinfo" = "yes"; then
32817
32818 cat >>confdefs.h <<_ACEOF
32819 #define HAVE_GETADDRINFO_THREADSAFE 1
32820 _ACEOF
32821
32822       curl_cv_func_getaddrinfo_threadsafe="yes"
32823     else
32824       curl_cv_func_getaddrinfo_threadsafe="no"
32825     fi
32826   fi
32827
32828
32829       #
32830   tst_links_gai_strerror="unknown"
32831   tst_proto_gai_strerror="unknown"
32832   tst_compi_gai_strerror="unknown"
32833   tst_allow_gai_strerror="unknown"
32834   #
32835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
32836 $as_echo_n "checking if gai_strerror can be linked... " >&6; }
32837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32838 /* end confdefs.h.  */
32839
32840
32841       $curl_includes_winsock2
32842       $curl_includes_netdb
32843
32844 int main (void)
32845 {
32846
32847       if(0 != gai_strerror(0))
32848         return 1;
32849
32850  ;
32851  return 0;
32852 }
32853
32854 _ACEOF
32855 if ac_fn_c_try_link "$LINENO"; then :
32856
32857     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32858 $as_echo "yes" >&6; }
32859     tst_links_gai_strerror="yes"
32860
32861 else
32862
32863     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32864 $as_echo "no" >&6; }
32865     tst_links_gai_strerror="no"
32866
32867 fi
32868 rm -f core conftest.err conftest.$ac_objext \
32869     conftest$ac_exeext conftest.$ac_ext
32870   #
32871   if test "$tst_links_gai_strerror" = "yes"; then
32872     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
32873 $as_echo_n "checking if gai_strerror is prototyped... " >&6; }
32874     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32875 /* end confdefs.h.  */
32876
32877       $curl_includes_winsock2
32878       $curl_includes_netdb
32879
32880 _ACEOF
32881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32882   $EGREP "gai_strerror" >/dev/null 2>&1; then :
32883
32884       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32885 $as_echo "yes" >&6; }
32886       tst_proto_gai_strerror="yes"
32887
32888 else
32889
32890       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32891 $as_echo "no" >&6; }
32892       tst_proto_gai_strerror="no"
32893
32894 fi
32895 rm -f conftest*
32896
32897   fi
32898   #
32899   if test "$tst_proto_gai_strerror" = "yes"; then
32900     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
32901 $as_echo_n "checking if gai_strerror is compilable... " >&6; }
32902     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32903 /* end confdefs.h.  */
32904
32905
32906         $curl_includes_winsock2
32907         $curl_includes_netdb
32908
32909 int main (void)
32910 {
32911
32912         if(0 != gai_strerror(0))
32913           return 1;
32914
32915  ;
32916  return 0;
32917 }
32918
32919 _ACEOF
32920 if ac_fn_c_try_compile "$LINENO"; then :
32921
32922       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32923 $as_echo "yes" >&6; }
32924       tst_compi_gai_strerror="yes"
32925
32926 else
32927
32928       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32929 $as_echo "no" >&6; }
32930       tst_compi_gai_strerror="no"
32931
32932 fi
32933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32934   fi
32935   #
32936   if test "$tst_compi_gai_strerror" = "yes"; then
32937     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
32938 $as_echo_n "checking if gai_strerror usage allowed... " >&6; }
32939     if test "x$curl_disallow_gai_strerror" != "xyes"; then
32940       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32941 $as_echo "yes" >&6; }
32942       tst_allow_gai_strerror="yes"
32943     else
32944       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32945 $as_echo "no" >&6; }
32946       tst_allow_gai_strerror="no"
32947     fi
32948   fi
32949   #
32950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
32951 $as_echo_n "checking if gai_strerror might be used... " >&6; }
32952   if test "$tst_links_gai_strerror" = "yes" &&
32953      test "$tst_proto_gai_strerror" = "yes" &&
32954      test "$tst_compi_gai_strerror" = "yes" &&
32955      test "$tst_allow_gai_strerror" = "yes"; then
32956     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32957 $as_echo "yes" >&6; }
32958
32959 cat >>confdefs.h <<_ACEOF
32960 #define HAVE_GAI_STRERROR 1
32961 _ACEOF
32962
32963     curl_cv_func_gai_strerror="yes"
32964   else
32965     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32966 $as_echo "no" >&6; }
32967     curl_cv_func_gai_strerror="no"
32968   fi
32969
32970
32971       #
32972   tst_links_gethostbyaddr="unknown"
32973   tst_proto_gethostbyaddr="unknown"
32974   tst_compi_gethostbyaddr="unknown"
32975   tst_allow_gethostbyaddr="unknown"
32976   #
32977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
32978 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
32979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32980 /* end confdefs.h.  */
32981
32982
32983       $curl_includes_winsock2
32984       $curl_includes_netdb
32985
32986 int main (void)
32987 {
32988
32989       if(0 != gethostbyaddr(0, 0, 0))
32990         return 1;
32991
32992  ;
32993  return 0;
32994 }
32995
32996 _ACEOF
32997 if ac_fn_c_try_link "$LINENO"; then :
32998
32999     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33000 $as_echo "yes" >&6; }
33001     tst_links_gethostbyaddr="yes"
33002
33003 else
33004
33005     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33006 $as_echo "no" >&6; }
33007     tst_links_gethostbyaddr="no"
33008
33009 fi
33010 rm -f core conftest.err conftest.$ac_objext \
33011     conftest$ac_exeext conftest.$ac_ext
33012   #
33013   if test "$tst_links_gethostbyaddr" = "yes"; then
33014     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
33015 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
33016     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33017 /* end confdefs.h.  */
33018
33019       $curl_includes_winsock2
33020       $curl_includes_netdb
33021
33022 _ACEOF
33023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33024   $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
33025
33026       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33027 $as_echo "yes" >&6; }
33028       tst_proto_gethostbyaddr="yes"
33029
33030 else
33031
33032       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33033 $as_echo "no" >&6; }
33034       tst_proto_gethostbyaddr="no"
33035
33036 fi
33037 rm -f conftest*
33038
33039   fi
33040   #
33041   if test "$tst_proto_gethostbyaddr" = "yes"; then
33042     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
33043 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
33044     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33045 /* end confdefs.h.  */
33046
33047
33048         $curl_includes_winsock2
33049         $curl_includes_netdb
33050
33051 int main (void)
33052 {
33053
33054         if(0 != gethostbyaddr(0, 0, 0))
33055           return 1;
33056
33057  ;
33058  return 0;
33059 }
33060
33061 _ACEOF
33062 if ac_fn_c_try_compile "$LINENO"; then :
33063
33064       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33065 $as_echo "yes" >&6; }
33066       tst_compi_gethostbyaddr="yes"
33067
33068 else
33069
33070       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33071 $as_echo "no" >&6; }
33072       tst_compi_gethostbyaddr="no"
33073
33074 fi
33075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33076   fi
33077   #
33078   if test "$tst_compi_gethostbyaddr" = "yes"; then
33079     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
33080 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
33081     if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
33082       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33083 $as_echo "yes" >&6; }
33084       tst_allow_gethostbyaddr="yes"
33085     else
33086       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33087 $as_echo "no" >&6; }
33088       tst_allow_gethostbyaddr="no"
33089     fi
33090   fi
33091   #
33092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
33093 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
33094   if test "$tst_links_gethostbyaddr" = "yes" &&
33095      test "$tst_proto_gethostbyaddr" = "yes" &&
33096      test "$tst_compi_gethostbyaddr" = "yes" &&
33097      test "$tst_allow_gethostbyaddr" = "yes"; then
33098     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33099 $as_echo "yes" >&6; }
33100
33101 cat >>confdefs.h <<_ACEOF
33102 #define HAVE_GETHOSTBYADDR 1
33103 _ACEOF
33104
33105     curl_cv_func_gethostbyaddr="yes"
33106   else
33107     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33108 $as_echo "no" >&6; }
33109     curl_cv_func_gethostbyaddr="no"
33110   fi
33111
33112
33113     #
33114   tst_links_gethostbyaddr_r="unknown"
33115   tst_proto_gethostbyaddr_r="unknown"
33116   tst_compi_gethostbyaddr_r="unknown"
33117   tst_allow_gethostbyaddr_r="unknown"
33118   tst_nargs_gethostbyaddr_r="unknown"
33119   #
33120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
33121 $as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
33122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33123 /* end confdefs.h.  */
33124
33125
33126 #define gethostbyaddr_r innocuous_gethostbyaddr_r
33127 #ifdef __STDC__
33128 # include <limits.h>
33129 #else
33130 # include <assert.h>
33131 #endif
33132 #undef gethostbyaddr_r
33133 #ifdef __cplusplus
33134 extern "C"
33135 #endif
33136 char gethostbyaddr_r ();
33137 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
33138 choke me
33139 #endif
33140
33141 int main (void)
33142 {
33143 return gethostbyaddr_r ();
33144  ;
33145  return 0;
33146 }
33147
33148 _ACEOF
33149 if ac_fn_c_try_link "$LINENO"; then :
33150
33151     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33152 $as_echo "yes" >&6; }
33153     tst_links_gethostbyaddr_r="yes"
33154
33155 else
33156
33157     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33158 $as_echo "no" >&6; }
33159     tst_links_gethostbyaddr_r="no"
33160
33161 fi
33162 rm -f core conftest.err conftest.$ac_objext \
33163     conftest$ac_exeext conftest.$ac_ext
33164   #
33165   if test "$tst_links_gethostbyaddr_r" = "yes"; then
33166     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
33167 $as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
33168     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33169 /* end confdefs.h.  */
33170
33171       $curl_includes_netdb
33172
33173 _ACEOF
33174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33175   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
33176
33177       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33178 $as_echo "yes" >&6; }
33179       tst_proto_gethostbyaddr_r="yes"
33180
33181 else
33182
33183       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33184 $as_echo "no" >&6; }
33185       tst_proto_gethostbyaddr_r="no"
33186
33187 fi
33188 rm -f conftest*
33189
33190   fi
33191   #
33192   if test "$tst_proto_gethostbyaddr_r" = "yes"; then
33193     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33194       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
33195 $as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
33196       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33197 /* end confdefs.h.  */
33198
33199
33200           $curl_includes_netdb
33201
33202 int main (void)
33203 {
33204
33205           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
33206             return 1;
33207
33208  ;
33209  return 0;
33210 }
33211
33212 _ACEOF
33213 if ac_fn_c_try_compile "$LINENO"; then :
33214
33215         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33216 $as_echo "yes" >&6; }
33217         tst_compi_gethostbyaddr_r="yes"
33218         tst_nargs_gethostbyaddr_r="5"
33219
33220 else
33221
33222         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33223 $as_echo "no" >&6; }
33224         tst_compi_gethostbyaddr_r="no"
33225
33226 fi
33227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33228     fi
33229     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33230       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
33231 $as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
33232       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33233 /* end confdefs.h.  */
33234
33235
33236           $curl_includes_netdb
33237
33238 int main (void)
33239 {
33240
33241           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
33242             return 1;
33243
33244  ;
33245  return 0;
33246 }
33247
33248 _ACEOF
33249 if ac_fn_c_try_compile "$LINENO"; then :
33250
33251         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33252 $as_echo "yes" >&6; }
33253         tst_compi_gethostbyaddr_r="yes"
33254         tst_nargs_gethostbyaddr_r="7"
33255
33256 else
33257
33258         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33259 $as_echo "no" >&6; }
33260         tst_compi_gethostbyaddr_r="no"
33261
33262 fi
33263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33264     fi
33265     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33266       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
33267 $as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
33268       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33269 /* end confdefs.h.  */
33270
33271
33272           $curl_includes_netdb
33273
33274 int main (void)
33275 {
33276
33277           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
33278             return 1;
33279
33280  ;
33281  return 0;
33282 }
33283
33284 _ACEOF
33285 if ac_fn_c_try_compile "$LINENO"; then :
33286
33287         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33288 $as_echo "yes" >&6; }
33289         tst_compi_gethostbyaddr_r="yes"
33290         tst_nargs_gethostbyaddr_r="8"
33291
33292 else
33293
33294         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33295 $as_echo "no" >&6; }
33296         tst_compi_gethostbyaddr_r="no"
33297
33298 fi
33299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33300     fi
33301     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
33302 $as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
33303     if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33304       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33305 $as_echo "yes" >&6; }
33306     else
33307       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33308 $as_echo "no" >&6; }
33309     fi
33310   fi
33311   #
33312   if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33313     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
33314 $as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
33315     if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
33316       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33317 $as_echo "yes" >&6; }
33318       tst_allow_gethostbyaddr_r="yes"
33319     else
33320       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33321 $as_echo "no" >&6; }
33322       tst_allow_gethostbyaddr_r="no"
33323     fi
33324   fi
33325   #
33326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
33327 $as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
33328   if test "$tst_links_gethostbyaddr_r" = "yes" &&
33329      test "$tst_proto_gethostbyaddr_r" = "yes" &&
33330      test "$tst_compi_gethostbyaddr_r" = "yes" &&
33331      test "$tst_allow_gethostbyaddr_r" = "yes"; then
33332     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33333 $as_echo "yes" >&6; }
33334
33335 cat >>confdefs.h <<_ACEOF
33336 #define HAVE_GETHOSTBYADDR_R 1
33337 _ACEOF
33338
33339             #
33340     if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
33341
33342 $as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
33343
33344     elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
33345
33346 $as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
33347
33348     elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
33349
33350 $as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
33351
33352     fi
33353     #
33354     curl_cv_func_gethostbyaddr_r="yes"
33355   else
33356     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33357 $as_echo "no" >&6; }
33358     curl_cv_func_gethostbyaddr_r="no"
33359   fi
33360
33361
33362       #
33363   tst_links_gethostbyname="unknown"
33364   tst_proto_gethostbyname="unknown"
33365   tst_compi_gethostbyname="unknown"
33366   tst_allow_gethostbyname="unknown"
33367   #
33368   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
33369 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
33370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33371 /* end confdefs.h.  */
33372
33373
33374       $curl_includes_winsock2
33375       $curl_includes_netdb
33376
33377 int main (void)
33378 {
33379
33380       if(0 != gethostbyname(0))
33381         return 1;
33382
33383  ;
33384  return 0;
33385 }
33386
33387 _ACEOF
33388 if ac_fn_c_try_link "$LINENO"; then :
33389
33390     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33391 $as_echo "yes" >&6; }
33392     tst_links_gethostbyname="yes"
33393
33394 else
33395
33396     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33397 $as_echo "no" >&6; }
33398     tst_links_gethostbyname="no"
33399
33400 fi
33401 rm -f core conftest.err conftest.$ac_objext \
33402     conftest$ac_exeext conftest.$ac_ext
33403   #
33404   if test "$tst_links_gethostbyname" = "yes"; then
33405     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
33406 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
33407     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33408 /* end confdefs.h.  */
33409
33410       $curl_includes_winsock2
33411       $curl_includes_netdb
33412
33413 _ACEOF
33414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33415   $EGREP "gethostbyname" >/dev/null 2>&1; then :
33416
33417       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33418 $as_echo "yes" >&6; }
33419       tst_proto_gethostbyname="yes"
33420
33421 else
33422
33423       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33424 $as_echo "no" >&6; }
33425       tst_proto_gethostbyname="no"
33426
33427 fi
33428 rm -f conftest*
33429
33430   fi
33431   #
33432   if test "$tst_proto_gethostbyname" = "yes"; then
33433     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
33434 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
33435     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33436 /* end confdefs.h.  */
33437
33438
33439         $curl_includes_winsock2
33440         $curl_includes_netdb
33441
33442 int main (void)
33443 {
33444
33445         if(0 != gethostbyname(0))
33446           return 1;
33447
33448  ;
33449  return 0;
33450 }
33451
33452 _ACEOF
33453 if ac_fn_c_try_compile "$LINENO"; then :
33454
33455       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33456 $as_echo "yes" >&6; }
33457       tst_compi_gethostbyname="yes"
33458
33459 else
33460
33461       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33462 $as_echo "no" >&6; }
33463       tst_compi_gethostbyname="no"
33464
33465 fi
33466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33467   fi
33468   #
33469   if test "$tst_compi_gethostbyname" = "yes"; then
33470     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
33471 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
33472     if test "x$curl_disallow_gethostbyname" != "xyes"; then
33473       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33474 $as_echo "yes" >&6; }
33475       tst_allow_gethostbyname="yes"
33476     else
33477       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33478 $as_echo "no" >&6; }
33479       tst_allow_gethostbyname="no"
33480     fi
33481   fi
33482   #
33483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
33484 $as_echo_n "checking if gethostbyname might be used... " >&6; }
33485   if test "$tst_links_gethostbyname" = "yes" &&
33486      test "$tst_proto_gethostbyname" = "yes" &&
33487      test "$tst_compi_gethostbyname" = "yes" &&
33488      test "$tst_allow_gethostbyname" = "yes"; then
33489     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33490 $as_echo "yes" >&6; }
33491
33492 cat >>confdefs.h <<_ACEOF
33493 #define HAVE_GETHOSTBYNAME 1
33494 _ACEOF
33495
33496     curl_cv_func_gethostbyname="yes"
33497   else
33498     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33499 $as_echo "no" >&6; }
33500     curl_cv_func_gethostbyname="no"
33501   fi
33502
33503
33504     #
33505   tst_links_gethostbyname_r="unknown"
33506   tst_proto_gethostbyname_r="unknown"
33507   tst_compi_gethostbyname_r="unknown"
33508   tst_allow_gethostbyname_r="unknown"
33509   tst_nargs_gethostbyname_r="unknown"
33510   #
33511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
33512 $as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
33513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33514 /* end confdefs.h.  */
33515
33516
33517 #define gethostbyname_r innocuous_gethostbyname_r
33518 #ifdef __STDC__
33519 # include <limits.h>
33520 #else
33521 # include <assert.h>
33522 #endif
33523 #undef gethostbyname_r
33524 #ifdef __cplusplus
33525 extern "C"
33526 #endif
33527 char gethostbyname_r ();
33528 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
33529 choke me
33530 #endif
33531
33532 int main (void)
33533 {
33534 return gethostbyname_r ();
33535  ;
33536  return 0;
33537 }
33538
33539 _ACEOF
33540 if ac_fn_c_try_link "$LINENO"; then :
33541
33542     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33543 $as_echo "yes" >&6; }
33544     tst_links_gethostbyname_r="yes"
33545
33546 else
33547
33548     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33549 $as_echo "no" >&6; }
33550     tst_links_gethostbyname_r="no"
33551
33552 fi
33553 rm -f core conftest.err conftest.$ac_objext \
33554     conftest$ac_exeext conftest.$ac_ext
33555   #
33556   if test "$tst_links_gethostbyname_r" = "yes"; then
33557     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
33558 $as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
33559     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33560 /* end confdefs.h.  */
33561
33562       $curl_includes_netdb
33563
33564 _ACEOF
33565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33566   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
33567
33568       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33569 $as_echo "yes" >&6; }
33570       tst_proto_gethostbyname_r="yes"
33571
33572 else
33573
33574       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33575 $as_echo "no" >&6; }
33576       tst_proto_gethostbyname_r="no"
33577
33578 fi
33579 rm -f conftest*
33580
33581   fi
33582   #
33583   if test "$tst_proto_gethostbyname_r" = "yes"; then
33584     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33585       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
33586 $as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
33587       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33588 /* end confdefs.h.  */
33589
33590
33591           $curl_includes_netdb
33592
33593 int main (void)
33594 {
33595
33596           if(0 != gethostbyname_r(0, 0, 0))
33597             return 1;
33598
33599  ;
33600  return 0;
33601 }
33602
33603 _ACEOF
33604 if ac_fn_c_try_compile "$LINENO"; then :
33605
33606         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33607 $as_echo "yes" >&6; }
33608         tst_compi_gethostbyname_r="yes"
33609         tst_nargs_gethostbyname_r="3"
33610
33611 else
33612
33613         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33614 $as_echo "no" >&6; }
33615         tst_compi_gethostbyname_r="no"
33616
33617 fi
33618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33619     fi
33620     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33621       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
33622 $as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
33623       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33624 /* end confdefs.h.  */
33625
33626
33627           $curl_includes_netdb
33628
33629 int main (void)
33630 {
33631
33632           if(0 != gethostbyname_r(0, 0, 0, 0, 0))
33633             return 1;
33634
33635  ;
33636  return 0;
33637 }
33638
33639 _ACEOF
33640 if ac_fn_c_try_compile "$LINENO"; then :
33641
33642         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33643 $as_echo "yes" >&6; }
33644         tst_compi_gethostbyname_r="yes"
33645         tst_nargs_gethostbyname_r="5"
33646
33647 else
33648
33649         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33650 $as_echo "no" >&6; }
33651         tst_compi_gethostbyname_r="no"
33652
33653 fi
33654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33655     fi
33656     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33657       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
33658 $as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
33659       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33660 /* end confdefs.h.  */
33661
33662
33663           $curl_includes_netdb
33664
33665 int main (void)
33666 {
33667
33668           if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
33669             return 1;
33670
33671  ;
33672  return 0;
33673 }
33674
33675 _ACEOF
33676 if ac_fn_c_try_compile "$LINENO"; then :
33677
33678         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33679 $as_echo "yes" >&6; }
33680         tst_compi_gethostbyname_r="yes"
33681         tst_nargs_gethostbyname_r="6"
33682
33683 else
33684
33685         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33686 $as_echo "no" >&6; }
33687         tst_compi_gethostbyname_r="no"
33688
33689 fi
33690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33691     fi
33692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
33693 $as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
33694     if test "$tst_compi_gethostbyname_r" = "yes"; then
33695       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33696 $as_echo "yes" >&6; }
33697     else
33698       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33699 $as_echo "no" >&6; }
33700     fi
33701   fi
33702   #
33703   if test "$tst_compi_gethostbyname_r" = "yes"; then
33704     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
33705 $as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
33706     if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
33707       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33708 $as_echo "yes" >&6; }
33709       tst_allow_gethostbyname_r="yes"
33710     else
33711       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33712 $as_echo "no" >&6; }
33713       tst_allow_gethostbyname_r="no"
33714     fi
33715   fi
33716   #
33717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
33718 $as_echo_n "checking if gethostbyname_r might be used... " >&6; }
33719   if test "$tst_links_gethostbyname_r" = "yes" &&
33720      test "$tst_proto_gethostbyname_r" = "yes" &&
33721      test "$tst_compi_gethostbyname_r" = "yes" &&
33722      test "$tst_allow_gethostbyname_r" = "yes"; then
33723     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33724 $as_echo "yes" >&6; }
33725
33726 cat >>confdefs.h <<_ACEOF
33727 #define HAVE_GETHOSTBYNAME_R 1
33728 _ACEOF
33729
33730             #
33731     if test "$tst_nargs_gethostbyname_r" -eq "3"; then
33732
33733 $as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
33734
33735     elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
33736
33737 $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
33738
33739     elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
33740
33741 $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
33742
33743     fi
33744     #
33745     curl_cv_func_gethostbyname_r="yes"
33746   else
33747     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33748 $as_echo "no" >&6; }
33749     curl_cv_func_gethostbyname_r="no"
33750   fi
33751
33752
33753         #
33754   tst_links_gethostname="unknown"
33755   tst_proto_gethostname="unknown"
33756   tst_compi_gethostname="unknown"
33757   tst_allow_gethostname="unknown"
33758   #
33759   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
33760 $as_echo_n "checking if gethostname can be linked... " >&6; }
33761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33762 /* end confdefs.h.  */
33763
33764
33765       $curl_includes_winsock2
33766       $curl_includes_unistd
33767
33768 int main (void)
33769 {
33770
33771       if(0 != gethostname(0, 0))
33772         return 1;
33773
33774  ;
33775  return 0;
33776 }
33777
33778 _ACEOF
33779 if ac_fn_c_try_link "$LINENO"; then :
33780
33781     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33782 $as_echo "yes" >&6; }
33783     tst_links_gethostname="yes"
33784
33785 else
33786
33787     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33788 $as_echo "no" >&6; }
33789     tst_links_gethostname="no"
33790
33791 fi
33792 rm -f core conftest.err conftest.$ac_objext \
33793     conftest$ac_exeext conftest.$ac_ext
33794   #
33795   if test "$tst_links_gethostname" = "yes"; then
33796     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
33797 $as_echo_n "checking if gethostname is prototyped... " >&6; }
33798     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33799 /* end confdefs.h.  */
33800
33801       $curl_includes_winsock2
33802       $curl_includes_unistd
33803
33804 _ACEOF
33805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33806   $EGREP "gethostname" >/dev/null 2>&1; then :
33807
33808       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33809 $as_echo "yes" >&6; }
33810       tst_proto_gethostname="yes"
33811
33812 else
33813
33814       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33815 $as_echo "no" >&6; }
33816       tst_proto_gethostname="no"
33817
33818 fi
33819 rm -f conftest*
33820
33821   fi
33822   #
33823   if test "$tst_proto_gethostname" = "yes"; then
33824     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
33825 $as_echo_n "checking if gethostname is compilable... " >&6; }
33826     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33827 /* end confdefs.h.  */
33828
33829
33830         $curl_includes_winsock2
33831         $curl_includes_unistd
33832
33833 int main (void)
33834 {
33835
33836         if(0 != gethostname(0, 0))
33837           return 1;
33838
33839  ;
33840  return 0;
33841 }
33842
33843 _ACEOF
33844 if ac_fn_c_try_compile "$LINENO"; then :
33845
33846       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33847 $as_echo "yes" >&6; }
33848       tst_compi_gethostname="yes"
33849
33850 else
33851
33852       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33853 $as_echo "no" >&6; }
33854       tst_compi_gethostname="no"
33855
33856 fi
33857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33858   fi
33859   #
33860   if test "$tst_compi_gethostname" = "yes"; then
33861     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
33862 $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
33863     tst_gethostname_type_arg2="unknown"
33864     for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
33865       for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
33866         if test "$tst_gethostname_type_arg2" = "unknown"; then
33867           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33868 /* end confdefs.h.  */
33869
33870
33871               $curl_includes_winsock2
33872               $curl_includes_unistd
33873               $curl_preprocess_callconv
33874               extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
33875
33876 int main (void)
33877 {
33878
33879               if(0 != gethostname(0, 0))
33880                 return 1;
33881
33882  ;
33883  return 0;
33884 }
33885
33886 _ACEOF
33887 if ac_fn_c_try_compile "$LINENO"; then :
33888
33889             tst_gethostname_type_arg2="$tst_arg2"
33890
33891 fi
33892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33893         fi
33894       done
33895     done
33896     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
33897 $as_echo "$tst_gethostname_type_arg2" >&6; }
33898     if test "$tst_gethostname_type_arg2" != "unknown"; then
33899
33900 cat >>confdefs.h <<_ACEOF
33901 #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
33902 _ACEOF
33903
33904     fi
33905   fi
33906   #
33907   if test "$tst_compi_gethostname" = "yes"; then
33908     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
33909 $as_echo_n "checking if gethostname usage allowed... " >&6; }
33910     if test "x$curl_disallow_gethostname" != "xyes"; then
33911       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33912 $as_echo "yes" >&6; }
33913       tst_allow_gethostname="yes"
33914     else
33915       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33916 $as_echo "no" >&6; }
33917       tst_allow_gethostname="no"
33918     fi
33919   fi
33920   #
33921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
33922 $as_echo_n "checking if gethostname might be used... " >&6; }
33923   if test "$tst_links_gethostname" = "yes" &&
33924      test "$tst_proto_gethostname" = "yes" &&
33925      test "$tst_compi_gethostname" = "yes" &&
33926      test "$tst_allow_gethostname" = "yes"; then
33927     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33928 $as_echo "yes" >&6; }
33929
33930 cat >>confdefs.h <<_ACEOF
33931 #define HAVE_GETHOSTNAME 1
33932 _ACEOF
33933
33934     curl_cv_func_gethostname="yes"
33935   else
33936     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33937 $as_echo "no" >&6; }
33938     curl_cv_func_gethostname="no"
33939   fi
33940
33941
33942       #
33943   tst_links_getifaddrs="unknown"
33944   tst_proto_getifaddrs="unknown"
33945   tst_compi_getifaddrs="unknown"
33946   tst_works_getifaddrs="unknown"
33947   tst_allow_getifaddrs="unknown"
33948   #
33949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
33950 $as_echo_n "checking if getifaddrs can be linked... " >&6; }
33951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33952 /* end confdefs.h.  */
33953
33954
33955 #define getifaddrs innocuous_getifaddrs
33956 #ifdef __STDC__
33957 # include <limits.h>
33958 #else
33959 # include <assert.h>
33960 #endif
33961 #undef getifaddrs
33962 #ifdef __cplusplus
33963 extern "C"
33964 #endif
33965 char getifaddrs ();
33966 #if defined __stub_getifaddrs || defined __stub___getifaddrs
33967 choke me
33968 #endif
33969
33970 int main (void)
33971 {
33972 return getifaddrs ();
33973  ;
33974  return 0;
33975 }
33976
33977 _ACEOF
33978 if ac_fn_c_try_link "$LINENO"; then :
33979
33980     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33981 $as_echo "yes" >&6; }
33982     tst_links_getifaddrs="yes"
33983
33984 else
33985
33986     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33987 $as_echo "no" >&6; }
33988     tst_links_getifaddrs="no"
33989
33990 fi
33991 rm -f core conftest.err conftest.$ac_objext \
33992     conftest$ac_exeext conftest.$ac_ext
33993   #
33994   if test "$tst_links_getifaddrs" = "yes"; then
33995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
33996 $as_echo_n "checking if getifaddrs is prototyped... " >&6; }
33997     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33998 /* end confdefs.h.  */
33999
34000       $curl_includes_ifaddrs
34001
34002 _ACEOF
34003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34004   $EGREP "getifaddrs" >/dev/null 2>&1; then :
34005
34006       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34007 $as_echo "yes" >&6; }
34008       tst_proto_getifaddrs="yes"
34009
34010 else
34011
34012       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34013 $as_echo "no" >&6; }
34014       tst_proto_getifaddrs="no"
34015
34016 fi
34017 rm -f conftest*
34018
34019   fi
34020   #
34021   if test "$tst_proto_getifaddrs" = "yes"; then
34022     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
34023 $as_echo_n "checking if getifaddrs is compilable... " >&6; }
34024     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34025 /* end confdefs.h.  */
34026
34027
34028         $curl_includes_ifaddrs
34029
34030 int main (void)
34031 {
34032
34033         if(0 != getifaddrs(0))
34034           return 1;
34035
34036  ;
34037  return 0;
34038 }
34039
34040 _ACEOF
34041 if ac_fn_c_try_compile "$LINENO"; then :
34042
34043       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34044 $as_echo "yes" >&6; }
34045       tst_compi_getifaddrs="yes"
34046
34047 else
34048
34049       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34050 $as_echo "no" >&6; }
34051       tst_compi_getifaddrs="no"
34052
34053 fi
34054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34055   fi
34056   #
34057     if test "x$cross_compiling" != "xyes" &&
34058     test "$tst_compi_getifaddrs" = "yes"; then
34059     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
34060 $as_echo_n "checking if getifaddrs seems to work... " >&6; }
34061     if test "$cross_compiling" = yes; then :
34062   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34064 as_fn_error $? "cannot run test program while cross compiling
34065 See \`config.log' for more details" "$LINENO" 5; }
34066 else
34067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34068 /* end confdefs.h.  */
34069
34070
34071         $curl_includes_stdlib
34072         $curl_includes_ifaddrs
34073
34074 int main (void)
34075 {
34076
34077         struct ifaddrs *ifa = 0;
34078         int error;
34079
34080         error = getifaddrs(&ifa);
34081         if(error || !ifa)
34082           exit(1); /* fail */
34083         else
34084           exit(0);
34085
34086  ;
34087  return 0;
34088 }
34089
34090 _ACEOF
34091 if ac_fn_c_try_run "$LINENO"; then :
34092
34093       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34094 $as_echo "yes" >&6; }
34095       tst_works_getifaddrs="yes"
34096
34097 else
34098
34099       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34100 $as_echo "no" >&6; }
34101       tst_works_getifaddrs="no"
34102
34103 fi
34104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34105   conftest.$ac_objext conftest.beam conftest.$ac_ext
34106 fi
34107
34108   fi
34109   #
34110   if test "$tst_compi_getifaddrs" = "yes" &&
34111     test "$tst_works_getifaddrs" != "no"; then
34112     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
34113 $as_echo_n "checking if getifaddrs usage allowed... " >&6; }
34114     if test "x$curl_disallow_getifaddrs" != "xyes"; then
34115       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34116 $as_echo "yes" >&6; }
34117       tst_allow_getifaddrs="yes"
34118     else
34119       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34120 $as_echo "no" >&6; }
34121       tst_allow_getifaddrs="no"
34122     fi
34123   fi
34124   #
34125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
34126 $as_echo_n "checking if getifaddrs might be used... " >&6; }
34127   if test "$tst_links_getifaddrs" = "yes" &&
34128      test "$tst_proto_getifaddrs" = "yes" &&
34129      test "$tst_compi_getifaddrs" = "yes" &&
34130      test "$tst_allow_getifaddrs" = "yes" &&
34131      test "$tst_works_getifaddrs" != "no"; then
34132     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34133 $as_echo "yes" >&6; }
34134
34135 cat >>confdefs.h <<_ACEOF
34136 #define HAVE_GETIFADDRS 1
34137 _ACEOF
34138
34139     curl_cv_func_getifaddrs="yes"
34140   else
34141     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34142 $as_echo "no" >&6; }
34143     curl_cv_func_getifaddrs="no"
34144   fi
34145
34146
34147     #
34148   tst_links_getservbyport_r="unknown"
34149   tst_proto_getservbyport_r="unknown"
34150   tst_compi_getservbyport_r="unknown"
34151   tst_allow_getservbyport_r="unknown"
34152   tst_nargs_getservbyport_r="unknown"
34153   #
34154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
34155 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
34156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34157 /* end confdefs.h.  */
34158
34159
34160 #define getservbyport_r innocuous_getservbyport_r
34161 #ifdef __STDC__
34162 # include <limits.h>
34163 #else
34164 # include <assert.h>
34165 #endif
34166 #undef getservbyport_r
34167 #ifdef __cplusplus
34168 extern "C"
34169 #endif
34170 char getservbyport_r ();
34171 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
34172 choke me
34173 #endif
34174
34175 int main (void)
34176 {
34177 return getservbyport_r ();
34178  ;
34179  return 0;
34180 }
34181
34182 _ACEOF
34183 if ac_fn_c_try_link "$LINENO"; then :
34184
34185     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34186 $as_echo "yes" >&6; }
34187     tst_links_getservbyport_r="yes"
34188
34189 else
34190
34191     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34192 $as_echo "no" >&6; }
34193     tst_links_getservbyport_r="no"
34194
34195 fi
34196 rm -f core conftest.err conftest.$ac_objext \
34197     conftest$ac_exeext conftest.$ac_ext
34198   #
34199   if test "$tst_links_getservbyport_r" = "yes"; then
34200     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
34201 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
34202     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34203 /* end confdefs.h.  */
34204
34205       $curl_includes_netdb
34206
34207 _ACEOF
34208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34209   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
34210
34211       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34212 $as_echo "yes" >&6; }
34213       tst_proto_getservbyport_r="yes"
34214
34215 else
34216
34217       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34218 $as_echo "no" >&6; }
34219       tst_proto_getservbyport_r="no"
34220
34221 fi
34222 rm -f conftest*
34223
34224   fi
34225   #
34226   if test "$tst_proto_getservbyport_r" = "yes"; then
34227     if test "$tst_nargs_getservbyport_r" = "unknown"; then
34228       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
34229 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
34230       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34231 /* end confdefs.h.  */
34232
34233
34234           $curl_includes_netdb
34235
34236 int main (void)
34237 {
34238
34239           if(0 != getservbyport_r(0, 0, 0, 0))
34240             return 1;
34241
34242  ;
34243  return 0;
34244 }
34245
34246 _ACEOF
34247 if ac_fn_c_try_compile "$LINENO"; then :
34248
34249         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34250 $as_echo "yes" >&6; }
34251         tst_compi_getservbyport_r="yes"
34252         tst_nargs_getservbyport_r="4"
34253
34254 else
34255
34256         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34257 $as_echo "no" >&6; }
34258         tst_compi_getservbyport_r="no"
34259
34260 fi
34261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34262     fi
34263     if test "$tst_nargs_getservbyport_r" = "unknown"; then
34264       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
34265 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
34266       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34267 /* end confdefs.h.  */
34268
34269
34270           $curl_includes_netdb
34271
34272 int main (void)
34273 {
34274
34275           if(0 != getservbyport_r(0, 0, 0, 0, 0))
34276             return 1;
34277
34278  ;
34279  return 0;
34280 }
34281
34282 _ACEOF
34283 if ac_fn_c_try_compile "$LINENO"; then :
34284
34285         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34286 $as_echo "yes" >&6; }
34287         tst_compi_getservbyport_r="yes"
34288         tst_nargs_getservbyport_r="5"
34289
34290 else
34291
34292         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34293 $as_echo "no" >&6; }
34294         tst_compi_getservbyport_r="no"
34295
34296 fi
34297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34298     fi
34299     if test "$tst_nargs_getservbyport_r" = "unknown"; then
34300       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
34301 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
34302       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34303 /* end confdefs.h.  */
34304
34305
34306           $curl_includes_netdb
34307
34308 int main (void)
34309 {
34310
34311           if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
34312             return 1;
34313
34314  ;
34315  return 0;
34316 }
34317
34318 _ACEOF
34319 if ac_fn_c_try_compile "$LINENO"; then :
34320
34321         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34322 $as_echo "yes" >&6; }
34323         tst_compi_getservbyport_r="yes"
34324         tst_nargs_getservbyport_r="6"
34325
34326 else
34327
34328         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34329 $as_echo "no" >&6; }
34330         tst_compi_getservbyport_r="no"
34331
34332 fi
34333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34334     fi
34335     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
34336 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
34337     if test "$tst_compi_getservbyport_r" = "yes"; then
34338       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34339 $as_echo "yes" >&6; }
34340     else
34341       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34342 $as_echo "no" >&6; }
34343     fi
34344   fi
34345   #
34346   if test "$tst_compi_getservbyport_r" = "yes"; then
34347     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
34348 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
34349     if test "x$curl_disallow_getservbyport_r" != "xyes"; then
34350       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34351 $as_echo "yes" >&6; }
34352       tst_allow_getservbyport_r="yes"
34353     else
34354       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34355 $as_echo "no" >&6; }
34356       tst_allow_getservbyport_r="no"
34357     fi
34358   fi
34359   #
34360   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
34361 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
34362   if test "$tst_links_getservbyport_r" = "yes" &&
34363      test "$tst_proto_getservbyport_r" = "yes" &&
34364      test "$tst_compi_getservbyport_r" = "yes" &&
34365      test "$tst_allow_getservbyport_r" = "yes"; then
34366     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34367 $as_echo "yes" >&6; }
34368
34369 cat >>confdefs.h <<_ACEOF
34370 #define HAVE_GETSERVBYPORT_R 1
34371 _ACEOF
34372
34373
34374 cat >>confdefs.h <<_ACEOF
34375 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
34376 _ACEOF
34377
34378     if test "$tst_nargs_getservbyport_r" -eq "4"; then
34379
34380 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
34381
34382     else
34383
34384 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
34385
34386     fi
34387     curl_cv_func_getservbyport_r="yes"
34388   else
34389     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34390 $as_echo "no" >&6; }
34391     curl_cv_func_getservbyport_r="no"
34392   fi
34393
34394
34395 curl_includes_time="\
34396 /* includes start */
34397 #ifdef HAVE_SYS_TYPES_H
34398 #  include <sys/types.h>
34399 #endif
34400 #ifdef HAVE_SYS_TIME_H
34401 #  include <sys/time.h>
34402 #  ifdef TIME_WITH_SYS_TIME
34403 #    include <time.h>
34404 #  endif
34405 #else
34406 #  ifdef HAVE_TIME_H
34407 #    include <time.h>
34408 #  endif
34409 #endif
34410 /* includes end */"
34411   for ac_header in sys/types.h sys/time.h time.h
34412 do :
34413   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34414 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
34415 "
34416 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34417   cat >>confdefs.h <<_ACEOF
34418 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34419 _ACEOF
34420
34421 fi
34422
34423 done
34424
34425
34426
34427       #
34428   tst_links_gmtime_r="unknown"
34429   tst_proto_gmtime_r="unknown"
34430   tst_compi_gmtime_r="unknown"
34431   tst_works_gmtime_r="unknown"
34432   tst_allow_gmtime_r="unknown"
34433   #
34434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
34435 $as_echo_n "checking if gmtime_r can be linked... " >&6; }
34436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34437 /* end confdefs.h.  */
34438
34439
34440 #define gmtime_r innocuous_gmtime_r
34441 #ifdef __STDC__
34442 # include <limits.h>
34443 #else
34444 # include <assert.h>
34445 #endif
34446 #undef gmtime_r
34447 #ifdef __cplusplus
34448 extern "C"
34449 #endif
34450 char gmtime_r ();
34451 #if defined __stub_gmtime_r || defined __stub___gmtime_r
34452 choke me
34453 #endif
34454
34455 int main (void)
34456 {
34457 return gmtime_r ();
34458  ;
34459  return 0;
34460 }
34461
34462 _ACEOF
34463 if ac_fn_c_try_link "$LINENO"; then :
34464
34465     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34466 $as_echo "yes" >&6; }
34467     tst_links_gmtime_r="yes"
34468
34469 else
34470
34471     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34472 $as_echo "no" >&6; }
34473     tst_links_gmtime_r="no"
34474
34475 fi
34476 rm -f core conftest.err conftest.$ac_objext \
34477     conftest$ac_exeext conftest.$ac_ext
34478   #
34479   if test "$tst_links_gmtime_r" = "yes"; then
34480     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
34481 $as_echo_n "checking if gmtime_r is prototyped... " >&6; }
34482     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34483 /* end confdefs.h.  */
34484
34485       $curl_includes_time
34486
34487 _ACEOF
34488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34489   $EGREP "gmtime_r" >/dev/null 2>&1; then :
34490
34491       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34492 $as_echo "yes" >&6; }
34493       tst_proto_gmtime_r="yes"
34494
34495 else
34496
34497       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34498 $as_echo "no" >&6; }
34499       tst_proto_gmtime_r="no"
34500
34501 fi
34502 rm -f conftest*
34503
34504   fi
34505   #
34506   if test "$tst_proto_gmtime_r" = "yes"; then
34507     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
34508 $as_echo_n "checking if gmtime_r is compilable... " >&6; }
34509     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34510 /* end confdefs.h.  */
34511
34512
34513         $curl_includes_time
34514
34515 int main (void)
34516 {
34517
34518         if(0 != gmtime_r(0, 0))
34519           return 1;
34520
34521  ;
34522  return 0;
34523 }
34524
34525 _ACEOF
34526 if ac_fn_c_try_compile "$LINENO"; then :
34527
34528       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34529 $as_echo "yes" >&6; }
34530       tst_compi_gmtime_r="yes"
34531
34532 else
34533
34534       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34535 $as_echo "no" >&6; }
34536       tst_compi_gmtime_r="no"
34537
34538 fi
34539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34540   fi
34541   #
34542     if test "x$cross_compiling" != "xyes" &&
34543     test "$tst_compi_gmtime_r" = "yes"; then
34544     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
34545 $as_echo_n "checking if gmtime_r seems to work... " >&6; }
34546     if test "$cross_compiling" = yes; then :
34547   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34549 as_fn_error $? "cannot run test program while cross compiling
34550 See \`config.log' for more details" "$LINENO" 5; }
34551 else
34552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34553 /* end confdefs.h.  */
34554
34555
34556         $curl_includes_stdlib
34557         $curl_includes_time
34558
34559 int main (void)
34560 {
34561
34562         time_t local = 1170352587;
34563         struct tm *gmt = 0;
34564         struct tm result;
34565         gmt = gmtime_r(&local, &result);
34566         if(gmt)
34567           exit(0);
34568         else
34569           exit(1);
34570
34571  ;
34572  return 0;
34573 }
34574
34575 _ACEOF
34576 if ac_fn_c_try_run "$LINENO"; then :
34577
34578       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34579 $as_echo "yes" >&6; }
34580       tst_works_gmtime_r="yes"
34581
34582 else
34583
34584       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34585 $as_echo "no" >&6; }
34586       tst_works_gmtime_r="no"
34587
34588 fi
34589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34590   conftest.$ac_objext conftest.beam conftest.$ac_ext
34591 fi
34592
34593   fi
34594   #
34595   if test "$tst_compi_gmtime_r" = "yes" &&
34596     test "$tst_works_gmtime_r" != "no"; then
34597     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
34598 $as_echo_n "checking if gmtime_r usage allowed... " >&6; }
34599     if test "x$curl_disallow_gmtime_r" != "xyes"; then
34600       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34601 $as_echo "yes" >&6; }
34602       tst_allow_gmtime_r="yes"
34603     else
34604       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34605 $as_echo "no" >&6; }
34606       tst_allow_gmtime_r="no"
34607     fi
34608   fi
34609   #
34610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
34611 $as_echo_n "checking if gmtime_r might be used... " >&6; }
34612   if test "$tst_links_gmtime_r" = "yes" &&
34613      test "$tst_proto_gmtime_r" = "yes" &&
34614      test "$tst_compi_gmtime_r" = "yes" &&
34615      test "$tst_allow_gmtime_r" = "yes" &&
34616      test "$tst_works_gmtime_r" != "no"; then
34617     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34618 $as_echo "yes" >&6; }
34619
34620 cat >>confdefs.h <<_ACEOF
34621 #define HAVE_GMTIME_R 1
34622 _ACEOF
34623
34624     curl_cv_func_gmtime_r="yes"
34625   else
34626     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34627 $as_echo "no" >&6; }
34628     curl_cv_func_gmtime_r="no"
34629   fi
34630
34631
34632 curl_includes_arpa_inet="\
34633 /* includes start */
34634 #ifdef HAVE_SYS_TYPES_H
34635 #  include <sys/types.h>
34636 #endif
34637 #ifdef HAVE_SYS_SOCKET_H
34638 #  include <sys/socket.h>
34639 #endif
34640 #ifdef HAVE_NETINET_IN_H
34641 #  include <netinet/in.h>
34642 #endif
34643 #ifdef HAVE_ARPA_INET_H
34644 #  include <arpa/inet.h>
34645 #endif
34646 #ifdef HAVE_WINSOCK2_H
34647 #include <winsock2.h>
34648 #include <ws2tcpip.h>
34649 #endif
34650 /* includes end */"
34651   for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
34652 do :
34653   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34654 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
34655 "
34656 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34657   cat >>confdefs.h <<_ACEOF
34658 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34659 _ACEOF
34660
34661 fi
34662
34663 done
34664
34665
34666
34667     #
34668   tst_links_inet_ntoa_r="unknown"
34669   tst_proto_inet_ntoa_r="unknown"
34670   tst_compi_inet_ntoa_r="unknown"
34671   tst_allow_inet_ntoa_r="unknown"
34672   tst_nargs_inet_ntoa_r="unknown"
34673   #
34674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
34675 $as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
34676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34677 /* end confdefs.h.  */
34678
34679
34680 #define inet_ntoa_r innocuous_inet_ntoa_r
34681 #ifdef __STDC__
34682 # include <limits.h>
34683 #else
34684 # include <assert.h>
34685 #endif
34686 #undef inet_ntoa_r
34687 #ifdef __cplusplus
34688 extern "C"
34689 #endif
34690 char inet_ntoa_r ();
34691 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
34692 choke me
34693 #endif
34694
34695 int main (void)
34696 {
34697 return inet_ntoa_r ();
34698  ;
34699  return 0;
34700 }
34701
34702 _ACEOF
34703 if ac_fn_c_try_link "$LINENO"; then :
34704
34705     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34706 $as_echo "yes" >&6; }
34707     tst_links_inet_ntoa_r="yes"
34708
34709 else
34710
34711     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34712 $as_echo "no" >&6; }
34713     tst_links_inet_ntoa_r="no"
34714
34715 fi
34716 rm -f core conftest.err conftest.$ac_objext \
34717     conftest$ac_exeext conftest.$ac_ext
34718   #
34719   if test "$tst_links_inet_ntoa_r" = "yes"; then
34720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
34721 $as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
34722     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34723 /* end confdefs.h.  */
34724
34725       $curl_includes_arpa_inet
34726
34727 _ACEOF
34728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34729   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
34730
34731       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34732 $as_echo "yes" >&6; }
34733       tst_proto_inet_ntoa_r="yes"
34734
34735 else
34736
34737       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34738 $as_echo "no" >&6; }
34739       tst_proto_inet_ntoa_r="no"
34740
34741 fi
34742 rm -f conftest*
34743
34744   fi
34745   #
34746   if test "$tst_proto_inet_ntoa_r" = "yes"; then
34747     if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34748       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
34749 $as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
34750       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34751 /* end confdefs.h.  */
34752
34753
34754           $curl_includes_arpa_inet
34755
34756 int main (void)
34757 {
34758
34759           struct in_addr addr;
34760           if(0 != inet_ntoa_r(addr, 0))
34761             return 1;
34762
34763  ;
34764  return 0;
34765 }
34766
34767 _ACEOF
34768 if ac_fn_c_try_compile "$LINENO"; then :
34769
34770         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34771 $as_echo "yes" >&6; }
34772         tst_compi_inet_ntoa_r="yes"
34773         tst_nargs_inet_ntoa_r="2"
34774
34775 else
34776
34777         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34778 $as_echo "no" >&6; }
34779         tst_compi_inet_ntoa_r="no"
34780
34781 fi
34782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34783     fi
34784     if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34785       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
34786 $as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
34787       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34788 /* end confdefs.h.  */
34789
34790
34791           $curl_includes_arpa_inet
34792
34793 int main (void)
34794 {
34795
34796           struct in_addr addr;
34797           if(0 != inet_ntoa_r(addr, 0, 0))
34798             return 1;
34799
34800  ;
34801  return 0;
34802 }
34803
34804 _ACEOF
34805 if ac_fn_c_try_compile "$LINENO"; then :
34806
34807         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34808 $as_echo "yes" >&6; }
34809         tst_compi_inet_ntoa_r="yes"
34810         tst_nargs_inet_ntoa_r="3"
34811
34812 else
34813
34814         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34815 $as_echo "no" >&6; }
34816         tst_compi_inet_ntoa_r="no"
34817
34818 fi
34819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34820     fi
34821     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
34822 $as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
34823     if test "$tst_compi_inet_ntoa_r" = "yes"; then
34824       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34825 $as_echo "yes" >&6; }
34826     else
34827       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34828 $as_echo "no" >&6; }
34829     fi
34830   fi
34831   #
34832   if test "$tst_compi_inet_ntoa_r" = "yes"; then
34833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
34834 $as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
34835     if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
34836       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34837 $as_echo "yes" >&6; }
34838       tst_allow_inet_ntoa_r="yes"
34839     else
34840       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34841 $as_echo "no" >&6; }
34842       tst_allow_inet_ntoa_r="no"
34843     fi
34844   fi
34845   #
34846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
34847 $as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
34848   if test "$tst_links_inet_ntoa_r" = "yes" &&
34849      test "$tst_proto_inet_ntoa_r" = "yes" &&
34850      test "$tst_compi_inet_ntoa_r" = "yes" &&
34851      test "$tst_allow_inet_ntoa_r" = "yes"; then
34852     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34853 $as_echo "yes" >&6; }
34854
34855 cat >>confdefs.h <<_ACEOF
34856 #define HAVE_INET_NTOA_R 1
34857 _ACEOF
34858
34859             #
34860     if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
34861
34862 $as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
34863
34864     elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
34865
34866 $as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
34867
34868     fi
34869     #
34870     curl_cv_func_inet_ntoa_r="yes"
34871   else
34872     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34873 $as_echo "no" >&6; }
34874     curl_cv_func_inet_ntoa_r="no"
34875   fi
34876
34877
34878         #
34879   tst_links_inet_ntop="unknown"
34880   tst_proto_inet_ntop="unknown"
34881   tst_compi_inet_ntop="unknown"
34882   tst_works_inet_ntop="unknown"
34883   tst_allow_inet_ntop="unknown"
34884   #
34885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
34886 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
34887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34888 /* end confdefs.h.  */
34889
34890
34891 #define inet_ntop innocuous_inet_ntop
34892 #ifdef __STDC__
34893 # include <limits.h>
34894 #else
34895 # include <assert.h>
34896 #endif
34897 #undef inet_ntop
34898 #ifdef __cplusplus
34899 extern "C"
34900 #endif
34901 char inet_ntop ();
34902 #if defined __stub_inet_ntop || defined __stub___inet_ntop
34903 choke me
34904 #endif
34905
34906 int main (void)
34907 {
34908 return inet_ntop ();
34909  ;
34910  return 0;
34911 }
34912
34913 _ACEOF
34914 if ac_fn_c_try_link "$LINENO"; then :
34915
34916     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34917 $as_echo "yes" >&6; }
34918     tst_links_inet_ntop="yes"
34919
34920 else
34921
34922     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34923 $as_echo "no" >&6; }
34924     tst_links_inet_ntop="no"
34925
34926 fi
34927 rm -f core conftest.err conftest.$ac_objext \
34928     conftest$ac_exeext conftest.$ac_ext
34929   #
34930   if test "$tst_links_inet_ntop" = "yes"; then
34931     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
34932 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
34933     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34934 /* end confdefs.h.  */
34935
34936       $curl_includes_arpa_inet
34937
34938 _ACEOF
34939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34940   $EGREP "inet_ntop" >/dev/null 2>&1; then :
34941
34942       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34943 $as_echo "yes" >&6; }
34944       tst_proto_inet_ntop="yes"
34945
34946 else
34947
34948       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34949 $as_echo "no" >&6; }
34950       tst_proto_inet_ntop="no"
34951
34952 fi
34953 rm -f conftest*
34954
34955   fi
34956   #
34957   if test "$tst_proto_inet_ntop" = "yes"; then
34958     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
34959 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
34960     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34961 /* end confdefs.h.  */
34962
34963
34964         $curl_includes_arpa_inet
34965
34966 int main (void)
34967 {
34968
34969         if(0 != inet_ntop(0, 0, 0, 0))
34970           return 1;
34971
34972  ;
34973  return 0;
34974 }
34975
34976 _ACEOF
34977 if ac_fn_c_try_compile "$LINENO"; then :
34978
34979       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34980 $as_echo "yes" >&6; }
34981       tst_compi_inet_ntop="yes"
34982
34983 else
34984
34985       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34986 $as_echo "no" >&6; }
34987       tst_compi_inet_ntop="no"
34988
34989 fi
34990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34991   fi
34992   #
34993     if test "x$cross_compiling" != "xyes" &&
34994     test "$tst_compi_inet_ntop" = "yes"; then
34995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
34996 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
34997     if test "$cross_compiling" = yes; then :
34998   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35000 as_fn_error $? "cannot run test program while cross compiling
35001 See \`config.log' for more details" "$LINENO" 5; }
35002 else
35003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35004 /* end confdefs.h.  */
35005
35006
35007         $curl_includes_stdlib
35008         $curl_includes_arpa_inet
35009         $curl_includes_string
35010
35011 int main (void)
35012 {
35013
35014         char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
35015         char ipv4res[sizeof "255.255.255.255"];
35016         unsigned char ipv6a[26];
35017         unsigned char ipv4a[5];
35018         char *ipv6ptr = 0;
35019         char *ipv4ptr = 0;
35020         /* - */
35021         ipv4res[0] = '\0';
35022         ipv4a[0] = 0xc0;
35023         ipv4a[1] = 0xa8;
35024         ipv4a[2] = 0x64;
35025         ipv4a[3] = 0x01;
35026         ipv4a[4] = 0x01;
35027         /* - */
35028         ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
35029         if(!ipv4ptr)
35030           exit(1); /* fail */
35031         if(ipv4ptr != ipv4res)
35032           exit(1); /* fail */
35033         if(!ipv4ptr[0])
35034           exit(1); /* fail */
35035         if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
35036           exit(1); /* fail */
35037         /* - */
35038         ipv6res[0] = '\0';
35039         memset(ipv6a, 0, sizeof(ipv6a));
35040         ipv6a[0] = 0xfe;
35041         ipv6a[1] = 0x80;
35042         ipv6a[8] = 0x02;
35043         ipv6a[9] = 0x14;
35044         ipv6a[10] = 0x4f;
35045         ipv6a[11] = 0xff;
35046         ipv6a[12] = 0xfe;
35047         ipv6a[13] = 0x0b;
35048         ipv6a[14] = 0x76;
35049         ipv6a[15] = 0xc8;
35050         ipv6a[25] = 0x01;
35051         /* - */
35052         ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
35053         if(!ipv6ptr)
35054           exit(1); /* fail */
35055         if(ipv6ptr != ipv6res)
35056           exit(1); /* fail */
35057         if(!ipv6ptr[0])
35058           exit(1); /* fail */
35059         if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
35060           exit(1); /* fail */
35061         /* - */
35062         exit(0);
35063
35064  ;
35065  return 0;
35066 }
35067
35068 _ACEOF
35069 if ac_fn_c_try_run "$LINENO"; then :
35070
35071       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35072 $as_echo "yes" >&6; }
35073       tst_works_inet_ntop="yes"
35074
35075 else
35076
35077       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35078 $as_echo "no" >&6; }
35079       tst_works_inet_ntop="no"
35080
35081 fi
35082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35083   conftest.$ac_objext conftest.beam conftest.$ac_ext
35084 fi
35085
35086   fi
35087   #
35088   if test "$tst_compi_inet_ntop" = "yes" &&
35089     test "$tst_works_inet_ntop" != "no"; then
35090     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
35091 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
35092     if test "x$curl_disallow_inet_ntop" != "xyes"; then
35093       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35094 $as_echo "yes" >&6; }
35095       tst_allow_inet_ntop="yes"
35096     else
35097       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35098 $as_echo "no" >&6; }
35099       tst_allow_inet_ntop="no"
35100     fi
35101   fi
35102   #
35103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
35104 $as_echo_n "checking if inet_ntop might be used... " >&6; }
35105   if test "$tst_links_inet_ntop" = "yes" &&
35106      test "$tst_proto_inet_ntop" = "yes" &&
35107      test "$tst_compi_inet_ntop" = "yes" &&
35108      test "$tst_allow_inet_ntop" = "yes" &&
35109      test "$tst_works_inet_ntop" != "no"; then
35110     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35111 $as_echo "yes" >&6; }
35112
35113 cat >>confdefs.h <<_ACEOF
35114 #define HAVE_INET_NTOP 1
35115 _ACEOF
35116
35117     curl_cv_func_inet_ntop="yes"
35118   else
35119     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35120 $as_echo "no" >&6; }
35121     curl_cv_func_inet_ntop="no"
35122   fi
35123
35124
35125         #
35126   tst_links_inet_pton="unknown"
35127   tst_proto_inet_pton="unknown"
35128   tst_compi_inet_pton="unknown"
35129   tst_works_inet_pton="unknown"
35130   tst_allow_inet_pton="unknown"
35131   #
35132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
35133 $as_echo_n "checking if inet_pton can be linked... " >&6; }
35134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35135 /* end confdefs.h.  */
35136
35137
35138 #define inet_pton innocuous_inet_pton
35139 #ifdef __STDC__
35140 # include <limits.h>
35141 #else
35142 # include <assert.h>
35143 #endif
35144 #undef inet_pton
35145 #ifdef __cplusplus
35146 extern "C"
35147 #endif
35148 char inet_pton ();
35149 #if defined __stub_inet_pton || defined __stub___inet_pton
35150 choke me
35151 #endif
35152
35153 int main (void)
35154 {
35155 return inet_pton ();
35156  ;
35157  return 0;
35158 }
35159
35160 _ACEOF
35161 if ac_fn_c_try_link "$LINENO"; then :
35162
35163     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35164 $as_echo "yes" >&6; }
35165     tst_links_inet_pton="yes"
35166
35167 else
35168
35169     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35170 $as_echo "no" >&6; }
35171     tst_links_inet_pton="no"
35172
35173 fi
35174 rm -f core conftest.err conftest.$ac_objext \
35175     conftest$ac_exeext conftest.$ac_ext
35176   #
35177   if test "$tst_links_inet_pton" = "yes"; then
35178     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
35179 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
35180     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35181 /* end confdefs.h.  */
35182
35183       $curl_includes_arpa_inet
35184
35185 _ACEOF
35186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35187   $EGREP "inet_pton" >/dev/null 2>&1; then :
35188
35189       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35190 $as_echo "yes" >&6; }
35191       tst_proto_inet_pton="yes"
35192
35193 else
35194
35195       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35196 $as_echo "no" >&6; }
35197       tst_proto_inet_pton="no"
35198
35199 fi
35200 rm -f conftest*
35201
35202   fi
35203   #
35204   if test "$tst_proto_inet_pton" = "yes"; then
35205     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
35206 $as_echo_n "checking if inet_pton is compilable... " >&6; }
35207     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35208 /* end confdefs.h.  */
35209
35210
35211         $curl_includes_arpa_inet
35212
35213 int main (void)
35214 {
35215
35216         if(0 != inet_pton(0, 0, 0))
35217           return 1;
35218
35219  ;
35220  return 0;
35221 }
35222
35223 _ACEOF
35224 if ac_fn_c_try_compile "$LINENO"; then :
35225
35226       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35227 $as_echo "yes" >&6; }
35228       tst_compi_inet_pton="yes"
35229
35230 else
35231
35232       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35233 $as_echo "no" >&6; }
35234       tst_compi_inet_pton="no"
35235
35236 fi
35237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35238   fi
35239   #
35240     if test "x$cross_compiling" != "xyes" &&
35241     test "$tst_compi_inet_pton" = "yes"; then
35242     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
35243 $as_echo_n "checking if inet_pton seems to work... " >&6; }
35244     if test "$cross_compiling" = yes; then :
35245   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35247 as_fn_error $? "cannot run test program while cross compiling
35248 See \`config.log' for more details" "$LINENO" 5; }
35249 else
35250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35251 /* end confdefs.h.  */
35252
35253
35254         $curl_includes_stdlib
35255         $curl_includes_arpa_inet
35256         $curl_includes_string
35257
35258 int main (void)
35259 {
35260
35261         unsigned char ipv6a[16+1];
35262         unsigned char ipv4a[4+1];
35263         const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
35264         const char *ipv4src = "192.168.100.1";
35265         /* - */
35266         memset(ipv4a, 1, sizeof(ipv4a));
35267         if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
35268           exit(1); /* fail */
35269         /* - */
35270         if( (ipv4a[0] != 0xc0) ||
35271             (ipv4a[1] != 0xa8) ||
35272             (ipv4a[2] != 0x64) ||
35273             (ipv4a[3] != 0x01) ||
35274             (ipv4a[4] != 0x01) )
35275           exit(1); /* fail */
35276         /* - */
35277         memset(ipv6a, 1, sizeof(ipv6a));
35278         if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
35279           exit(1); /* fail */
35280         /* - */
35281         if( (ipv6a[0]  != 0xfe) ||
35282             (ipv6a[1]  != 0x80) ||
35283             (ipv6a[8]  != 0x02) ||
35284             (ipv6a[9]  != 0x14) ||
35285             (ipv6a[10] != 0x4f) ||
35286             (ipv6a[11] != 0xff) ||
35287             (ipv6a[12] != 0xfe) ||
35288             (ipv6a[13] != 0x0b) ||
35289             (ipv6a[14] != 0x76) ||
35290             (ipv6a[15] != 0xc8) ||
35291             (ipv6a[16] != 0x01) )
35292           exit(1); /* fail */
35293         /* - */
35294         if( (ipv6a[2]  != 0x0) ||
35295             (ipv6a[3]  != 0x0) ||
35296             (ipv6a[4]  != 0x0) ||
35297             (ipv6a[5]  != 0x0) ||
35298             (ipv6a[6]  != 0x0) ||
35299             (ipv6a[7]  != 0x0) )
35300           exit(1); /* fail */
35301         /* - */
35302         exit(0);
35303
35304  ;
35305  return 0;
35306 }
35307
35308 _ACEOF
35309 if ac_fn_c_try_run "$LINENO"; then :
35310
35311       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35312 $as_echo "yes" >&6; }
35313       tst_works_inet_pton="yes"
35314
35315 else
35316
35317       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35318 $as_echo "no" >&6; }
35319       tst_works_inet_pton="no"
35320
35321 fi
35322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35323   conftest.$ac_objext conftest.beam conftest.$ac_ext
35324 fi
35325
35326   fi
35327   #
35328   if test "$tst_compi_inet_pton" = "yes" &&
35329     test "$tst_works_inet_pton" != "no"; then
35330     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
35331 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
35332     if test "x$curl_disallow_inet_pton" != "xyes"; then
35333       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35334 $as_echo "yes" >&6; }
35335       tst_allow_inet_pton="yes"
35336     else
35337       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35338 $as_echo "no" >&6; }
35339       tst_allow_inet_pton="no"
35340     fi
35341   fi
35342   #
35343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
35344 $as_echo_n "checking if inet_pton might be used... " >&6; }
35345   if test "$tst_links_inet_pton" = "yes" &&
35346      test "$tst_proto_inet_pton" = "yes" &&
35347      test "$tst_compi_inet_pton" = "yes" &&
35348      test "$tst_allow_inet_pton" = "yes" &&
35349      test "$tst_works_inet_pton" != "no"; then
35350     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35351 $as_echo "yes" >&6; }
35352
35353 cat >>confdefs.h <<_ACEOF
35354 #define HAVE_INET_PTON 1
35355 _ACEOF
35356
35357     curl_cv_func_inet_pton="yes"
35358   else
35359     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35360 $as_echo "no" >&6; }
35361     curl_cv_func_inet_pton="no"
35362   fi
35363
35364
35365 curl_includes_stropts="\
35366 /* includes start */
35367 #ifdef HAVE_SYS_TYPES_H
35368 #  include <sys/types.h>
35369 #endif
35370 #ifdef HAVE_UNISTD_H
35371 #  include <unistd.h>
35372 #endif
35373 #ifdef HAVE_SYS_SOCKET_H
35374 #  include <sys/socket.h>
35375 #endif
35376 #ifdef HAVE_SYS_IOCTL_H
35377 #  include <sys/ioctl.h>
35378 #endif
35379 #ifdef HAVE_STROPTS_H
35380 #  include <stropts.h>
35381 #endif
35382 /* includes end */"
35383   for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
35384 do :
35385   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35386 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
35387 "
35388 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35389   cat >>confdefs.h <<_ACEOF
35390 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35391 _ACEOF
35392
35393 fi
35394
35395 done
35396
35397
35398
35399     #
35400   tst_links_ioctl="unknown"
35401   tst_proto_ioctl="unknown"
35402   tst_compi_ioctl="unknown"
35403   tst_allow_ioctl="unknown"
35404   #
35405   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
35406 $as_echo_n "checking if ioctl can be linked... " >&6; }
35407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35408 /* end confdefs.h.  */
35409
35410
35411 #define ioctl innocuous_ioctl
35412 #ifdef __STDC__
35413 # include <limits.h>
35414 #else
35415 # include <assert.h>
35416 #endif
35417 #undef ioctl
35418 #ifdef __cplusplus
35419 extern "C"
35420 #endif
35421 char ioctl ();
35422 #if defined __stub_ioctl || defined __stub___ioctl
35423 choke me
35424 #endif
35425
35426 int main (void)
35427 {
35428 return ioctl ();
35429  ;
35430  return 0;
35431 }
35432
35433 _ACEOF
35434 if ac_fn_c_try_link "$LINENO"; then :
35435
35436     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35437 $as_echo "yes" >&6; }
35438     tst_links_ioctl="yes"
35439
35440 else
35441
35442     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35443 $as_echo "no" >&6; }
35444     tst_links_ioctl="no"
35445
35446 fi
35447 rm -f core conftest.err conftest.$ac_objext \
35448     conftest$ac_exeext conftest.$ac_ext
35449   #
35450   if test "$tst_links_ioctl" = "yes"; then
35451     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
35452 $as_echo_n "checking if ioctl is prototyped... " >&6; }
35453     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35454 /* end confdefs.h.  */
35455
35456       $curl_includes_stropts
35457
35458 _ACEOF
35459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35460   $EGREP "ioctl" >/dev/null 2>&1; then :
35461
35462       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35463 $as_echo "yes" >&6; }
35464       tst_proto_ioctl="yes"
35465
35466 else
35467
35468       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35469 $as_echo "no" >&6; }
35470       tst_proto_ioctl="no"
35471
35472 fi
35473 rm -f conftest*
35474
35475   fi
35476   #
35477   if test "$tst_proto_ioctl" = "yes"; then
35478     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
35479 $as_echo_n "checking if ioctl is compilable... " >&6; }
35480     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35481 /* end confdefs.h.  */
35482
35483
35484         $curl_includes_stropts
35485
35486 int main (void)
35487 {
35488
35489         if(0 != ioctl(0, 0, 0))
35490           return 1;
35491
35492  ;
35493  return 0;
35494 }
35495
35496 _ACEOF
35497 if ac_fn_c_try_compile "$LINENO"; then :
35498
35499       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35500 $as_echo "yes" >&6; }
35501       tst_compi_ioctl="yes"
35502
35503 else
35504
35505       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35506 $as_echo "no" >&6; }
35507       tst_compi_ioctl="no"
35508
35509 fi
35510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35511   fi
35512   #
35513   if test "$tst_compi_ioctl" = "yes"; then
35514     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
35515 $as_echo_n "checking if ioctl usage allowed... " >&6; }
35516     if test "x$curl_disallow_ioctl" != "xyes"; then
35517       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35518 $as_echo "yes" >&6; }
35519       tst_allow_ioctl="yes"
35520     else
35521       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35522 $as_echo "no" >&6; }
35523       tst_allow_ioctl="no"
35524     fi
35525   fi
35526   #
35527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
35528 $as_echo_n "checking if ioctl might be used... " >&6; }
35529   if test "$tst_links_ioctl" = "yes" &&
35530      test "$tst_proto_ioctl" = "yes" &&
35531      test "$tst_compi_ioctl" = "yes" &&
35532      test "$tst_allow_ioctl" = "yes"; then
35533     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35534 $as_echo "yes" >&6; }
35535
35536 cat >>confdefs.h <<_ACEOF
35537 #define HAVE_IOCTL 1
35538 _ACEOF
35539
35540     curl_cv_func_ioctl="yes"
35541
35542   #
35543   tst_compi_ioctl_fionbio="unknown"
35544   tst_allow_ioctl_fionbio="unknown"
35545   #
35546   if test "$curl_cv_func_ioctl" = "yes"; then
35547     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
35548 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
35549     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35550 /* end confdefs.h.  */
35551
35552
35553         $curl_includes_stropts
35554
35555 int main (void)
35556 {
35557
35558         int flags = 0;
35559         if(0 != ioctl(0, FIONBIO, &flags))
35560           return 1;
35561
35562  ;
35563  return 0;
35564 }
35565
35566 _ACEOF
35567 if ac_fn_c_try_compile "$LINENO"; then :
35568
35569       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35570 $as_echo "yes" >&6; }
35571       tst_compi_ioctl_fionbio="yes"
35572
35573 else
35574
35575       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35576 $as_echo "no" >&6; }
35577       tst_compi_ioctl_fionbio="no"
35578
35579 fi
35580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35581   fi
35582   #
35583   if test "$tst_compi_ioctl_fionbio" = "yes"; then
35584     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
35585 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
35586     if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
35587       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35588 $as_echo "yes" >&6; }
35589       tst_allow_ioctl_fionbio="yes"
35590     else
35591       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35592 $as_echo "no" >&6; }
35593       tst_allow_ioctl_fionbio="no"
35594     fi
35595   fi
35596   #
35597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
35598 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
35599   if test "$tst_compi_ioctl_fionbio" = "yes" &&
35600      test "$tst_allow_ioctl_fionbio" = "yes"; then
35601     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35602 $as_echo "yes" >&6; }
35603
35604 cat >>confdefs.h <<_ACEOF
35605 #define HAVE_IOCTL_FIONBIO 1
35606 _ACEOF
35607
35608     curl_cv_func_ioctl_fionbio="yes"
35609   else
35610     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35611 $as_echo "no" >&6; }
35612     curl_cv_func_ioctl_fionbio="no"
35613   fi
35614
35615
35616   #
35617   tst_compi_ioctl_siocgifaddr="unknown"
35618   tst_allow_ioctl_siocgifaddr="unknown"
35619   #
35620   if test "$curl_cv_func_ioctl" = "yes"; then
35621     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
35622 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
35623     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35624 /* end confdefs.h.  */
35625
35626
35627         $curl_includes_stropts
35628         #include <net/if.h>
35629
35630 int main (void)
35631 {
35632
35633         struct ifreq ifr;
35634         if(0 != ioctl(0, SIOCGIFADDR, &ifr))
35635           return 1;
35636
35637  ;
35638  return 0;
35639 }
35640
35641 _ACEOF
35642 if ac_fn_c_try_compile "$LINENO"; then :
35643
35644       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35645 $as_echo "yes" >&6; }
35646       tst_compi_ioctl_siocgifaddr="yes"
35647
35648 else
35649
35650       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35651 $as_echo "no" >&6; }
35652       tst_compi_ioctl_siocgifaddr="no"
35653
35654 fi
35655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35656   fi
35657   #
35658   if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
35659     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
35660 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
35661     if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
35662       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35663 $as_echo "yes" >&6; }
35664       tst_allow_ioctl_siocgifaddr="yes"
35665     else
35666       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35667 $as_echo "no" >&6; }
35668       tst_allow_ioctl_siocgifaddr="no"
35669     fi
35670   fi
35671   #
35672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
35673 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
35674   if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
35675      test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
35676     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35677 $as_echo "yes" >&6; }
35678
35679 cat >>confdefs.h <<_ACEOF
35680 #define HAVE_IOCTL_SIOCGIFADDR 1
35681 _ACEOF
35682
35683     curl_cv_func_ioctl_siocgifaddr="yes"
35684   else
35685     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35686 $as_echo "no" >&6; }
35687     curl_cv_func_ioctl_siocgifaddr="no"
35688   fi
35689
35690   else
35691     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35692 $as_echo "no" >&6; }
35693     curl_cv_func_ioctl="no"
35694   fi
35695
35696
35697     #
35698   tst_links_ioctlsocket="unknown"
35699   tst_proto_ioctlsocket="unknown"
35700   tst_compi_ioctlsocket="unknown"
35701   tst_allow_ioctlsocket="unknown"
35702   #
35703   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
35704 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
35705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35706 /* end confdefs.h.  */
35707
35708
35709       $curl_includes_winsock2
35710
35711 int main (void)
35712 {
35713
35714       if(0 != ioctlsocket(0, 0, 0))
35715         return 1;
35716
35717  ;
35718  return 0;
35719 }
35720
35721 _ACEOF
35722 if ac_fn_c_try_link "$LINENO"; then :
35723
35724     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35725 $as_echo "yes" >&6; }
35726     tst_links_ioctlsocket="yes"
35727
35728 else
35729
35730     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35731 $as_echo "no" >&6; }
35732     tst_links_ioctlsocket="no"
35733
35734 fi
35735 rm -f core conftest.err conftest.$ac_objext \
35736     conftest$ac_exeext conftest.$ac_ext
35737   #
35738   if test "$tst_links_ioctlsocket" = "yes"; then
35739     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
35740 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
35741     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35742 /* end confdefs.h.  */
35743
35744       $curl_includes_winsock2
35745
35746 _ACEOF
35747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35748   $EGREP "ioctlsocket" >/dev/null 2>&1; then :
35749
35750       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35751 $as_echo "yes" >&6; }
35752       tst_proto_ioctlsocket="yes"
35753
35754 else
35755
35756       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35757 $as_echo "no" >&6; }
35758       tst_proto_ioctlsocket="no"
35759
35760 fi
35761 rm -f conftest*
35762
35763   fi
35764   #
35765   if test "$tst_proto_ioctlsocket" = "yes"; then
35766     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
35767 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
35768     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35769 /* end confdefs.h.  */
35770
35771
35772         $curl_includes_winsock2
35773
35774 int main (void)
35775 {
35776
35777         if(0 != ioctlsocket(0, 0, 0))
35778           return 1;
35779
35780  ;
35781  return 0;
35782 }
35783
35784 _ACEOF
35785 if ac_fn_c_try_compile "$LINENO"; then :
35786
35787       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35788 $as_echo "yes" >&6; }
35789       tst_compi_ioctlsocket="yes"
35790
35791 else
35792
35793       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35794 $as_echo "no" >&6; }
35795       tst_compi_ioctlsocket="no"
35796
35797 fi
35798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35799   fi
35800   #
35801   if test "$tst_compi_ioctlsocket" = "yes"; then
35802     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
35803 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
35804     if test "x$curl_disallow_ioctlsocket" != "xyes"; then
35805       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35806 $as_echo "yes" >&6; }
35807       tst_allow_ioctlsocket="yes"
35808     else
35809       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35810 $as_echo "no" >&6; }
35811       tst_allow_ioctlsocket="no"
35812     fi
35813   fi
35814   #
35815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
35816 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
35817   if test "$tst_links_ioctlsocket" = "yes" &&
35818      test "$tst_proto_ioctlsocket" = "yes" &&
35819      test "$tst_compi_ioctlsocket" = "yes" &&
35820      test "$tst_allow_ioctlsocket" = "yes"; then
35821     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35822 $as_echo "yes" >&6; }
35823
35824 cat >>confdefs.h <<_ACEOF
35825 #define HAVE_IOCTLSOCKET 1
35826 _ACEOF
35827
35828     curl_cv_func_ioctlsocket="yes"
35829
35830   #
35831   tst_compi_ioctlsocket_fionbio="unknown"
35832   tst_allow_ioctlsocket_fionbio="unknown"
35833   #
35834   if test "$curl_cv_func_ioctlsocket" = "yes"; then
35835     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
35836 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
35837     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35838 /* end confdefs.h.  */
35839
35840
35841         $curl_includes_winsock2
35842
35843 int main (void)
35844 {
35845
35846         int flags = 0;
35847         if(0 != ioctlsocket(0, FIONBIO, &flags))
35848           return 1;
35849
35850  ;
35851  return 0;
35852 }
35853
35854 _ACEOF
35855 if ac_fn_c_try_compile "$LINENO"; then :
35856
35857       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35858 $as_echo "yes" >&6; }
35859       tst_compi_ioctlsocket_fionbio="yes"
35860
35861 else
35862
35863       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35864 $as_echo "no" >&6; }
35865       tst_compi_ioctlsocket_fionbio="no"
35866
35867 fi
35868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35869   fi
35870   #
35871   if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
35872     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
35873 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
35874     if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
35875       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35876 $as_echo "yes" >&6; }
35877       tst_allow_ioctlsocket_fionbio="yes"
35878     else
35879       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35880 $as_echo "no" >&6; }
35881       tst_allow_ioctlsocket_fionbio="no"
35882     fi
35883   fi
35884   #
35885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
35886 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
35887   if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
35888      test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
35889     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35890 $as_echo "yes" >&6; }
35891
35892 cat >>confdefs.h <<_ACEOF
35893 #define HAVE_IOCTLSOCKET_FIONBIO 1
35894 _ACEOF
35895
35896     curl_cv_func_ioctlsocket_fionbio="yes"
35897   else
35898     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35899 $as_echo "no" >&6; }
35900     curl_cv_func_ioctlsocket_fionbio="no"
35901   fi
35902
35903   else
35904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35905 $as_echo "no" >&6; }
35906     curl_cv_func_ioctlsocket="no"
35907   fi
35908
35909
35910     #
35911   tst_links_ioctlsocket_camel="unknown"
35912   tst_proto_ioctlsocket_camel="unknown"
35913   tst_compi_ioctlsocket_camel="unknown"
35914   tst_allow_ioctlsocket_camel="unknown"
35915   #
35916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
35917 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
35918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35919 /* end confdefs.h.  */
35920
35921
35922 #define IoctlSocket innocuous_IoctlSocket
35923 #ifdef __STDC__
35924 # include <limits.h>
35925 #else
35926 # include <assert.h>
35927 #endif
35928 #undef IoctlSocket
35929 #ifdef __cplusplus
35930 extern "C"
35931 #endif
35932 char IoctlSocket ();
35933 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
35934 choke me
35935 #endif
35936
35937 int main (void)
35938 {
35939 return IoctlSocket ();
35940  ;
35941  return 0;
35942 }
35943
35944 _ACEOF
35945 if ac_fn_c_try_link "$LINENO"; then :
35946
35947     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35948 $as_echo "yes" >&6; }
35949     tst_links_ioctlsocket_camel="yes"
35950
35951 else
35952
35953     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35954 $as_echo "no" >&6; }
35955     tst_links_ioctlsocket_camel="no"
35956
35957 fi
35958 rm -f core conftest.err conftest.$ac_objext \
35959     conftest$ac_exeext conftest.$ac_ext
35960   #
35961   if test "$tst_links_ioctlsocket_camel" = "yes"; then
35962     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
35963 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
35964     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35965 /* end confdefs.h.  */
35966
35967       $curl_includes_stropts
35968
35969 _ACEOF
35970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35971   $EGREP "IoctlSocket" >/dev/null 2>&1; then :
35972
35973       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35974 $as_echo "yes" >&6; }
35975       tst_proto_ioctlsocket_camel="yes"
35976
35977 else
35978
35979       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35980 $as_echo "no" >&6; }
35981       tst_proto_ioctlsocket_camel="no"
35982
35983 fi
35984 rm -f conftest*
35985
35986   fi
35987   #
35988   if test "$tst_proto_ioctlsocket_camel" = "yes"; then
35989     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
35990 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
35991     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35992 /* end confdefs.h.  */
35993
35994
35995         $curl_includes_stropts
35996
35997 int main (void)
35998 {
35999
36000         if(0 != IoctlSocket(0, 0, 0))
36001           return 1;
36002
36003  ;
36004  return 0;
36005 }
36006
36007 _ACEOF
36008 if ac_fn_c_try_compile "$LINENO"; then :
36009
36010       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36011 $as_echo "yes" >&6; }
36012       tst_compi_ioctlsocket_camel="yes"
36013
36014 else
36015
36016       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36017 $as_echo "no" >&6; }
36018       tst_compi_ioctlsocket_camel="no"
36019
36020 fi
36021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36022   fi
36023   #
36024   if test "$tst_compi_ioctlsocket_camel" = "yes"; then
36025     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
36026 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
36027     if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
36028       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36029 $as_echo "yes" >&6; }
36030       tst_allow_ioctlsocket_camel="yes"
36031     else
36032       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36033 $as_echo "no" >&6; }
36034       tst_allow_ioctlsocket_camel="no"
36035     fi
36036   fi
36037   #
36038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
36039 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
36040   if test "$tst_links_ioctlsocket_camel" = "yes" &&
36041      test "$tst_proto_ioctlsocket_camel" = "yes" &&
36042      test "$tst_compi_ioctlsocket_camel" = "yes" &&
36043      test "$tst_allow_ioctlsocket_camel" = "yes"; then
36044     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36045 $as_echo "yes" >&6; }
36046
36047 cat >>confdefs.h <<_ACEOF
36048 #define HAVE_IOCTLSOCKET_CAMEL 1
36049 _ACEOF
36050
36051     curl_cv_func_ioctlsocket_camel="yes"
36052
36053   #
36054   tst_compi_ioctlsocket_camel_fionbio="unknown"
36055   tst_allow_ioctlsocket_camel_fionbio="unknown"
36056   #
36057   if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
36058     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
36059 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
36060     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36061 /* end confdefs.h.  */
36062
36063
36064         $curl_includes_stropts
36065
36066 int main (void)
36067 {
36068
36069         long flags = 0;
36070         if(0 != ioctlsocket(0, FIONBIO, &flags))
36071           return 1;
36072
36073  ;
36074  return 0;
36075 }
36076
36077 _ACEOF
36078 if ac_fn_c_try_compile "$LINENO"; then :
36079
36080       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36081 $as_echo "yes" >&6; }
36082       tst_compi_ioctlsocket_camel_fionbio="yes"
36083
36084 else
36085
36086       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36087 $as_echo "no" >&6; }
36088       tst_compi_ioctlsocket_camel_fionbio="no"
36089
36090 fi
36091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36092   fi
36093   #
36094   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
36095     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
36096 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
36097     if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
36098       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36099 $as_echo "yes" >&6; }
36100       tst_allow_ioctlsocket_camel_fionbio="yes"
36101     else
36102       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36103 $as_echo "no" >&6; }
36104       tst_allow_ioctlsocket_camel_fionbio="no"
36105     fi
36106   fi
36107   #
36108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
36109 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
36110   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
36111      test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
36112     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36113 $as_echo "yes" >&6; }
36114
36115 cat >>confdefs.h <<_ACEOF
36116 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
36117 _ACEOF
36118
36119     curl_cv_func_ioctlsocket_camel_fionbio="yes"
36120   else
36121     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36122 $as_echo "no" >&6; }
36123     curl_cv_func_ioctlsocket_camel_fionbio="no"
36124   fi
36125
36126   else
36127     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36128 $as_echo "no" >&6; }
36129     curl_cv_func_ioctlsocket_camel="no"
36130   fi
36131
36132
36133       #
36134   tst_links_localtime_r="unknown"
36135   tst_proto_localtime_r="unknown"
36136   tst_compi_localtime_r="unknown"
36137   tst_works_localtime_r="unknown"
36138   tst_allow_localtime_r="unknown"
36139   #
36140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
36141 $as_echo_n "checking if localtime_r can be linked... " >&6; }
36142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36143 /* end confdefs.h.  */
36144
36145
36146 #define localtime_r innocuous_localtime_r
36147 #ifdef __STDC__
36148 # include <limits.h>
36149 #else
36150 # include <assert.h>
36151 #endif
36152 #undef localtime_r
36153 #ifdef __cplusplus
36154 extern "C"
36155 #endif
36156 char localtime_r ();
36157 #if defined __stub_localtime_r || defined __stub___localtime_r
36158 choke me
36159 #endif
36160
36161 int main (void)
36162 {
36163 return localtime_r ();
36164  ;
36165  return 0;
36166 }
36167
36168 _ACEOF
36169 if ac_fn_c_try_link "$LINENO"; then :
36170
36171     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36172 $as_echo "yes" >&6; }
36173     tst_links_localtime_r="yes"
36174
36175 else
36176
36177     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36178 $as_echo "no" >&6; }
36179     tst_links_localtime_r="no"
36180
36181 fi
36182 rm -f core conftest.err conftest.$ac_objext \
36183     conftest$ac_exeext conftest.$ac_ext
36184   #
36185   if test "$tst_links_localtime_r" = "yes"; then
36186     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
36187 $as_echo_n "checking if localtime_r is prototyped... " >&6; }
36188     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36189 /* end confdefs.h.  */
36190
36191       $curl_includes_time
36192
36193 _ACEOF
36194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36195   $EGREP "localtime_r" >/dev/null 2>&1; then :
36196
36197       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36198 $as_echo "yes" >&6; }
36199       tst_proto_localtime_r="yes"
36200
36201 else
36202
36203       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36204 $as_echo "no" >&6; }
36205       tst_proto_localtime_r="no"
36206
36207 fi
36208 rm -f conftest*
36209
36210   fi
36211   #
36212   if test "$tst_proto_localtime_r" = "yes"; then
36213     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
36214 $as_echo_n "checking if localtime_r is compilable... " >&6; }
36215     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36216 /* end confdefs.h.  */
36217
36218
36219         $curl_includes_time
36220
36221 int main (void)
36222 {
36223
36224         if(0 != localtime_r(0, 0))
36225           return 1;
36226
36227  ;
36228  return 0;
36229 }
36230
36231 _ACEOF
36232 if ac_fn_c_try_compile "$LINENO"; then :
36233
36234       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36235 $as_echo "yes" >&6; }
36236       tst_compi_localtime_r="yes"
36237
36238 else
36239
36240       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36241 $as_echo "no" >&6; }
36242       tst_compi_localtime_r="no"
36243
36244 fi
36245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36246   fi
36247   #
36248     if test "x$cross_compiling" != "xyes" &&
36249     test "$tst_compi_localtime_r" = "yes"; then
36250     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
36251 $as_echo_n "checking if localtime_r seems to work... " >&6; }
36252     if test "$cross_compiling" = yes; then :
36253   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36255 as_fn_error $? "cannot run test program while cross compiling
36256 See \`config.log' for more details" "$LINENO" 5; }
36257 else
36258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36259 /* end confdefs.h.  */
36260
36261
36262         $curl_includes_stdlib
36263         $curl_includes_time
36264
36265 int main (void)
36266 {
36267
36268         time_t clock = 1170352587;
36269         struct tm *tmp = 0;
36270         struct tm result;
36271         tmp = localtime_r(&clock, &result);
36272         if(tmp)
36273           exit(0);
36274         else
36275           exit(1);
36276
36277  ;
36278  return 0;
36279 }
36280
36281 _ACEOF
36282 if ac_fn_c_try_run "$LINENO"; then :
36283
36284       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36285 $as_echo "yes" >&6; }
36286       tst_works_localtime_r="yes"
36287
36288 else
36289
36290       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36291 $as_echo "no" >&6; }
36292       tst_works_localtime_r="no"
36293
36294 fi
36295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36296   conftest.$ac_objext conftest.beam conftest.$ac_ext
36297 fi
36298
36299   fi
36300   #
36301   if test "$tst_compi_localtime_r" = "yes" &&
36302     test "$tst_works_localtime_r" != "no"; then
36303     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
36304 $as_echo_n "checking if localtime_r usage allowed... " >&6; }
36305     if test "x$curl_disallow_localtime_r" != "xyes"; then
36306       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36307 $as_echo "yes" >&6; }
36308       tst_allow_localtime_r="yes"
36309     else
36310       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36311 $as_echo "no" >&6; }
36312       tst_allow_localtime_r="no"
36313     fi
36314   fi
36315   #
36316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
36317 $as_echo_n "checking if localtime_r might be used... " >&6; }
36318   if test "$tst_links_localtime_r" = "yes" &&
36319      test "$tst_proto_localtime_r" = "yes" &&
36320      test "$tst_compi_localtime_r" = "yes" &&
36321      test "$tst_allow_localtime_r" = "yes" &&
36322      test "$tst_works_localtime_r" != "no"; then
36323     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36324 $as_echo "yes" >&6; }
36325
36326 cat >>confdefs.h <<_ACEOF
36327 #define HAVE_LOCALTIME_R 1
36328 _ACEOF
36329
36330     curl_cv_func_localtime_r="yes"
36331   else
36332     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36333 $as_echo "no" >&6; }
36334     curl_cv_func_localtime_r="no"
36335   fi
36336
36337
36338     #
36339   tst_links_memrchr="unknown"
36340   tst_macro_memrchr="unknown"
36341   tst_proto_memrchr="unknown"
36342   tst_compi_memrchr="unknown"
36343   tst_allow_memrchr="unknown"
36344   #
36345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
36346 $as_echo_n "checking if memrchr can be linked... " >&6; }
36347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36348 /* end confdefs.h.  */
36349
36350
36351 #define memrchr innocuous_memrchr
36352 #ifdef __STDC__
36353 # include <limits.h>
36354 #else
36355 # include <assert.h>
36356 #endif
36357 #undef memrchr
36358 #ifdef __cplusplus
36359 extern "C"
36360 #endif
36361 char memrchr ();
36362 #if defined __stub_memrchr || defined __stub___memrchr
36363 choke me
36364 #endif
36365
36366 int main (void)
36367 {
36368 return memrchr ();
36369  ;
36370  return 0;
36371 }
36372
36373 _ACEOF
36374 if ac_fn_c_try_link "$LINENO"; then :
36375
36376     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36377 $as_echo "yes" >&6; }
36378     tst_links_memrchr="yes"
36379
36380 else
36381
36382     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36383 $as_echo "no" >&6; }
36384     tst_links_memrchr="no"
36385
36386 fi
36387 rm -f core conftest.err conftest.$ac_objext \
36388     conftest$ac_exeext conftest.$ac_ext
36389   #
36390   if test "$tst_links_memrchr" = "no"; then
36391     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
36392 $as_echo_n "checking if memrchr seems a macro... " >&6; }
36393     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36394 /* end confdefs.h.  */
36395
36396
36397         $curl_includes_string
36398
36399 int main (void)
36400 {
36401
36402         if(0 != memrchr(0, 0, 0))
36403           return 1;
36404
36405  ;
36406  return 0;
36407 }
36408
36409 _ACEOF
36410 if ac_fn_c_try_link "$LINENO"; then :
36411
36412       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36413 $as_echo "yes" >&6; }
36414       tst_macro_memrchr="yes"
36415
36416 else
36417
36418       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36419 $as_echo "no" >&6; }
36420       tst_macro_memrchr="no"
36421
36422 fi
36423 rm -f core conftest.err conftest.$ac_objext \
36424     conftest$ac_exeext conftest.$ac_ext
36425   fi
36426   #
36427   if test "$tst_links_memrchr" = "yes"; then
36428     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
36429 $as_echo_n "checking if memrchr is prototyped... " >&6; }
36430     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36431 /* end confdefs.h.  */
36432
36433       $curl_includes_string
36434
36435 _ACEOF
36436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36437   $EGREP "memrchr" >/dev/null 2>&1; then :
36438
36439       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36440 $as_echo "yes" >&6; }
36441       tst_proto_memrchr="yes"
36442
36443 else
36444
36445       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36446 $as_echo "no" >&6; }
36447       tst_proto_memrchr="no"
36448
36449 fi
36450 rm -f conftest*
36451
36452   fi
36453   #
36454   if test "$tst_proto_memrchr" = "yes" ||
36455      test "$tst_macro_memrchr" = "yes"; then
36456     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
36457 $as_echo_n "checking if memrchr is compilable... " >&6; }
36458     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36459 /* end confdefs.h.  */
36460
36461
36462         $curl_includes_string
36463
36464 int main (void)
36465 {
36466
36467         if(0 != memrchr(0, 0, 0))
36468           return 1;
36469
36470  ;
36471  return 0;
36472 }
36473
36474 _ACEOF
36475 if ac_fn_c_try_compile "$LINENO"; then :
36476
36477       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36478 $as_echo "yes" >&6; }
36479       tst_compi_memrchr="yes"
36480
36481 else
36482
36483       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36484 $as_echo "no" >&6; }
36485       tst_compi_memrchr="no"
36486
36487 fi
36488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36489   fi
36490   #
36491   if test "$tst_compi_memrchr" = "yes"; then
36492     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
36493 $as_echo_n "checking if memrchr usage allowed... " >&6; }
36494     if test "x$curl_disallow_memrchr" != "xyes"; then
36495       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36496 $as_echo "yes" >&6; }
36497       tst_allow_memrchr="yes"
36498     else
36499       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36500 $as_echo "no" >&6; }
36501       tst_allow_memrchr="no"
36502     fi
36503   fi
36504   #
36505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
36506 $as_echo_n "checking if memrchr might be used... " >&6; }
36507   if (test "$tst_proto_memrchr" = "yes" ||
36508       test "$tst_macro_memrchr" = "yes") &&
36509      test "$tst_compi_memrchr" = "yes" &&
36510      test "$tst_allow_memrchr" = "yes"; then
36511     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36512 $as_echo "yes" >&6; }
36513
36514 cat >>confdefs.h <<_ACEOF
36515 #define HAVE_MEMRCHR 1
36516 _ACEOF
36517
36518     curl_cv_func_memrchr="yes"
36519   else
36520     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36521 $as_echo "no" >&6; }
36522     curl_cv_func_memrchr="no"
36523   fi
36524
36525
36526       #
36527   tst_links_poll="unknown"
36528   tst_proto_poll="unknown"
36529   tst_compi_poll="unknown"
36530   tst_works_poll="unknown"
36531   tst_allow_poll="unknown"
36532   #
36533   case $host_os in
36534     darwin*|interix*)
36535                                           curl_disallow_poll="yes"
36536       tst_compi_poll="no"
36537       ;;
36538   esac
36539   #
36540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
36541 $as_echo_n "checking if poll can be linked... " >&6; }
36542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36543 /* end confdefs.h.  */
36544
36545
36546       $curl_includes_poll
36547
36548 int main (void)
36549 {
36550
36551       if(0 != poll(0, 0, 0))
36552         return 1;
36553
36554  ;
36555  return 0;
36556 }
36557
36558 _ACEOF
36559 if ac_fn_c_try_link "$LINENO"; then :
36560
36561     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36562 $as_echo "yes" >&6; }
36563     tst_links_poll="yes"
36564
36565 else
36566
36567     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36568 $as_echo "no" >&6; }
36569     tst_links_poll="no"
36570
36571 fi
36572 rm -f core conftest.err conftest.$ac_objext \
36573     conftest$ac_exeext conftest.$ac_ext
36574   #
36575   if test "$tst_links_poll" = "yes"; then
36576     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
36577 $as_echo_n "checking if poll is prototyped... " >&6; }
36578     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36579 /* end confdefs.h.  */
36580
36581       $curl_includes_poll
36582
36583 _ACEOF
36584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36585   $EGREP "poll" >/dev/null 2>&1; then :
36586
36587       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36588 $as_echo "yes" >&6; }
36589       tst_proto_poll="yes"
36590
36591 else
36592
36593       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36594 $as_echo "no" >&6; }
36595       tst_proto_poll="no"
36596
36597 fi
36598 rm -f conftest*
36599
36600   fi
36601   #
36602   if test "$tst_proto_poll" = "yes"; then
36603     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
36604 $as_echo_n "checking if poll is compilable... " >&6; }
36605     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36606 /* end confdefs.h.  */
36607
36608
36609         $curl_includes_poll
36610
36611 int main (void)
36612 {
36613
36614         if(0 != poll(0, 0, 0))
36615           return 1;
36616
36617  ;
36618  return 0;
36619 }
36620
36621 _ACEOF
36622 if ac_fn_c_try_compile "$LINENO"; then :
36623
36624       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36625 $as_echo "yes" >&6; }
36626       tst_compi_poll="yes"
36627
36628 else
36629
36630       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36631 $as_echo "no" >&6; }
36632       tst_compi_poll="no"
36633
36634 fi
36635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36636   fi
36637   #
36638     if test "x$cross_compiling" != "xyes" &&
36639     test "$tst_compi_poll" = "yes"; then
36640     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
36641 $as_echo_n "checking if poll seems to work... " >&6; }
36642     if test "$cross_compiling" = yes; then :
36643   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36645 as_fn_error $? "cannot run test program while cross compiling
36646 See \`config.log' for more details" "$LINENO" 5; }
36647 else
36648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36649 /* end confdefs.h.  */
36650
36651
36652         $curl_includes_stdlib
36653         $curl_includes_poll
36654         $curl_includes_time
36655
36656 int main (void)
36657 {
36658
36659         /* detect the original poll() breakage */
36660         if(0 != poll(0, 0, 10))
36661           exit(1); /* fail */
36662         else {
36663           /* detect the 10.12 poll() breakage */
36664           struct timeval before, after;
36665           int rc;
36666           size_t us;
36667
36668           gettimeofday(&before, NULL);
36669           rc = poll(NULL, 0, 500);
36670           gettimeofday(&after, NULL);
36671
36672           us = (after.tv_sec - before.tv_sec) * 1000000 +
36673             (after.tv_usec - before.tv_usec);
36674
36675           if(us < 400000)
36676             exit(1);
36677         }
36678
36679  ;
36680  return 0;
36681 }
36682
36683 _ACEOF
36684 if ac_fn_c_try_run "$LINENO"; then :
36685
36686       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36687 $as_echo "yes" >&6; }
36688       tst_works_poll="yes"
36689
36690 else
36691
36692       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36693 $as_echo "no" >&6; }
36694       tst_works_poll="no"
36695
36696 fi
36697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36698   conftest.$ac_objext conftest.beam conftest.$ac_ext
36699 fi
36700
36701   fi
36702   #
36703   if test "$tst_compi_poll" = "yes" &&
36704     test "$tst_works_poll" != "no"; then
36705     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
36706 $as_echo_n "checking if poll usage allowed... " >&6; }
36707     if test "x$curl_disallow_poll" != "xyes"; then
36708       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36709 $as_echo "yes" >&6; }
36710       tst_allow_poll="yes"
36711     else
36712       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36713 $as_echo "no" >&6; }
36714       tst_allow_poll="no"
36715     fi
36716   fi
36717   #
36718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
36719 $as_echo_n "checking if poll might be used... " >&6; }
36720   if test "$tst_links_poll" = "yes" &&
36721      test "$tst_proto_poll" = "yes" &&
36722      test "$tst_compi_poll" = "yes" &&
36723      test "$tst_allow_poll" = "yes" &&
36724      test "$tst_works_poll" != "no"; then
36725     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36726 $as_echo "yes" >&6; }
36727
36728 cat >>confdefs.h <<_ACEOF
36729 #define HAVE_POLL 1
36730 _ACEOF
36731
36732
36733 cat >>confdefs.h <<_ACEOF
36734 #define HAVE_POLL_FINE 1
36735 _ACEOF
36736
36737     curl_cv_func_poll="yes"
36738   else
36739     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36740 $as_echo "no" >&6; }
36741     curl_cv_func_poll="no"
36742   fi
36743
36744
36745       #
36746   tst_links_setsockopt="unknown"
36747   tst_proto_setsockopt="unknown"
36748   tst_compi_setsockopt="unknown"
36749   tst_allow_setsockopt="unknown"
36750   #
36751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
36752 $as_echo_n "checking if setsockopt can be linked... " >&6; }
36753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36754 /* end confdefs.h.  */
36755
36756
36757       $curl_includes_winsock2
36758       $curl_includes_sys_socket
36759
36760 int main (void)
36761 {
36762
36763       if(0 != setsockopt(0, 0, 0, 0, 0))
36764         return 1;
36765
36766  ;
36767  return 0;
36768 }
36769
36770 _ACEOF
36771 if ac_fn_c_try_link "$LINENO"; then :
36772
36773     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36774 $as_echo "yes" >&6; }
36775     tst_links_setsockopt="yes"
36776
36777 else
36778
36779     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36780 $as_echo "no" >&6; }
36781     tst_links_setsockopt="no"
36782
36783 fi
36784 rm -f core conftest.err conftest.$ac_objext \
36785     conftest$ac_exeext conftest.$ac_ext
36786   #
36787   if test "$tst_links_setsockopt" = "yes"; then
36788     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
36789 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
36790     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36791 /* end confdefs.h.  */
36792
36793       $curl_includes_winsock2
36794       $curl_includes_sys_socket
36795
36796 _ACEOF
36797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36798   $EGREP "setsockopt" >/dev/null 2>&1; then :
36799
36800       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36801 $as_echo "yes" >&6; }
36802       tst_proto_setsockopt="yes"
36803
36804 else
36805
36806       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36807 $as_echo "no" >&6; }
36808       tst_proto_setsockopt="no"
36809
36810 fi
36811 rm -f conftest*
36812
36813   fi
36814   #
36815   if test "$tst_proto_setsockopt" = "yes"; then
36816     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
36817 $as_echo_n "checking if setsockopt is compilable... " >&6; }
36818     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36819 /* end confdefs.h.  */
36820
36821
36822         $curl_includes_winsock2
36823         $curl_includes_sys_socket
36824
36825 int main (void)
36826 {
36827
36828         if(0 != setsockopt(0, 0, 0, 0, 0))
36829           return 1;
36830
36831  ;
36832  return 0;
36833 }
36834
36835 _ACEOF
36836 if ac_fn_c_try_compile "$LINENO"; then :
36837
36838       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36839 $as_echo "yes" >&6; }
36840       tst_compi_setsockopt="yes"
36841
36842 else
36843
36844       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36845 $as_echo "no" >&6; }
36846       tst_compi_setsockopt="no"
36847
36848 fi
36849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36850   fi
36851   #
36852   if test "$tst_compi_setsockopt" = "yes"; then
36853     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
36854 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
36855     if test "x$curl_disallow_setsockopt" != "xyes"; then
36856       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36857 $as_echo "yes" >&6; }
36858       tst_allow_setsockopt="yes"
36859     else
36860       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36861 $as_echo "no" >&6; }
36862       tst_allow_setsockopt="no"
36863     fi
36864   fi
36865   #
36866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
36867 $as_echo_n "checking if setsockopt might be used... " >&6; }
36868   if test "$tst_links_setsockopt" = "yes" &&
36869      test "$tst_proto_setsockopt" = "yes" &&
36870      test "$tst_compi_setsockopt" = "yes" &&
36871      test "$tst_allow_setsockopt" = "yes"; then
36872     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36873 $as_echo "yes" >&6; }
36874
36875 cat >>confdefs.h <<_ACEOF
36876 #define HAVE_SETSOCKOPT 1
36877 _ACEOF
36878
36879     curl_cv_func_setsockopt="yes"
36880
36881   #
36882   tst_compi_setsockopt_so_nonblock="unknown"
36883   tst_allow_setsockopt_so_nonblock="unknown"
36884   #
36885   if test "$curl_cv_func_setsockopt" = "yes"; then
36886     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
36887 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
36888     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36889 /* end confdefs.h.  */
36890
36891
36892         $curl_includes_winsock2
36893         $curl_includes_sys_socket
36894
36895 int main (void)
36896 {
36897
36898         if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
36899           return 1;
36900
36901  ;
36902  return 0;
36903 }
36904
36905 _ACEOF
36906 if ac_fn_c_try_compile "$LINENO"; then :
36907
36908       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36909 $as_echo "yes" >&6; }
36910       tst_compi_setsockopt_so_nonblock="yes"
36911
36912 else
36913
36914       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36915 $as_echo "no" >&6; }
36916       tst_compi_setsockopt_so_nonblock="no"
36917
36918 fi
36919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36920   fi
36921   #
36922   if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
36923     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
36924 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
36925     if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
36926       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36927 $as_echo "yes" >&6; }
36928       tst_allow_setsockopt_so_nonblock="yes"
36929     else
36930       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36931 $as_echo "no" >&6; }
36932       tst_allow_setsockopt_so_nonblock="no"
36933     fi
36934   fi
36935   #
36936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
36937 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
36938   if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
36939      test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
36940     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36941 $as_echo "yes" >&6; }
36942
36943 cat >>confdefs.h <<_ACEOF
36944 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
36945 _ACEOF
36946
36947     curl_cv_func_setsockopt_so_nonblock="yes"
36948   else
36949     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36950 $as_echo "no" >&6; }
36951     curl_cv_func_setsockopt_so_nonblock="no"
36952   fi
36953
36954   else
36955     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36956 $as_echo "no" >&6; }
36957     curl_cv_func_setsockopt="no"
36958   fi
36959
36960
36961 curl_includes_signal="\
36962 /* includes start */
36963 #ifdef HAVE_SYS_TYPES_H
36964 #  include <sys/types.h>
36965 #endif
36966 #ifdef HAVE_SIGNAL_H
36967 #  include <signal.h>
36968 #endif
36969 /* includes end */"
36970   for ac_header in sys/types.h signal.h
36971 do :
36972   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36973 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
36974 "
36975 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36976   cat >>confdefs.h <<_ACEOF
36977 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36978 _ACEOF
36979
36980 fi
36981
36982 done
36983
36984
36985
36986     #
36987   tst_links_sigaction="unknown"
36988   tst_proto_sigaction="unknown"
36989   tst_compi_sigaction="unknown"
36990   tst_allow_sigaction="unknown"
36991   #
36992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
36993 $as_echo_n "checking if sigaction can be linked... " >&6; }
36994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36995 /* end confdefs.h.  */
36996
36997
36998 #define sigaction innocuous_sigaction
36999 #ifdef __STDC__
37000 # include <limits.h>
37001 #else
37002 # include <assert.h>
37003 #endif
37004 #undef sigaction
37005 #ifdef __cplusplus
37006 extern "C"
37007 #endif
37008 char sigaction ();
37009 #if defined __stub_sigaction || defined __stub___sigaction
37010 choke me
37011 #endif
37012
37013 int main (void)
37014 {
37015 return sigaction ();
37016  ;
37017  return 0;
37018 }
37019
37020 _ACEOF
37021 if ac_fn_c_try_link "$LINENO"; then :
37022
37023     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37024 $as_echo "yes" >&6; }
37025     tst_links_sigaction="yes"
37026
37027 else
37028
37029     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37030 $as_echo "no" >&6; }
37031     tst_links_sigaction="no"
37032
37033 fi
37034 rm -f core conftest.err conftest.$ac_objext \
37035     conftest$ac_exeext conftest.$ac_ext
37036   #
37037   if test "$tst_links_sigaction" = "yes"; then
37038     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
37039 $as_echo_n "checking if sigaction is prototyped... " >&6; }
37040     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37041 /* end confdefs.h.  */
37042
37043       $curl_includes_signal
37044
37045 _ACEOF
37046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37047   $EGREP "sigaction" >/dev/null 2>&1; then :
37048
37049       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37050 $as_echo "yes" >&6; }
37051       tst_proto_sigaction="yes"
37052
37053 else
37054
37055       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37056 $as_echo "no" >&6; }
37057       tst_proto_sigaction="no"
37058
37059 fi
37060 rm -f conftest*
37061
37062   fi
37063   #
37064   if test "$tst_proto_sigaction" = "yes"; then
37065     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
37066 $as_echo_n "checking if sigaction is compilable... " >&6; }
37067     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37068 /* end confdefs.h.  */
37069
37070
37071         $curl_includes_signal
37072
37073 int main (void)
37074 {
37075
37076         if(0 != sigaction(0, 0, 0))
37077           return 1;
37078
37079  ;
37080  return 0;
37081 }
37082
37083 _ACEOF
37084 if ac_fn_c_try_compile "$LINENO"; then :
37085
37086       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37087 $as_echo "yes" >&6; }
37088       tst_compi_sigaction="yes"
37089
37090 else
37091
37092       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37093 $as_echo "no" >&6; }
37094       tst_compi_sigaction="no"
37095
37096 fi
37097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37098   fi
37099   #
37100   if test "$tst_compi_sigaction" = "yes"; then
37101     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
37102 $as_echo_n "checking if sigaction usage allowed... " >&6; }
37103     if test "x$curl_disallow_sigaction" != "xyes"; then
37104       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37105 $as_echo "yes" >&6; }
37106       tst_allow_sigaction="yes"
37107     else
37108       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37109 $as_echo "no" >&6; }
37110       tst_allow_sigaction="no"
37111     fi
37112   fi
37113   #
37114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
37115 $as_echo_n "checking if sigaction might be used... " >&6; }
37116   if test "$tst_links_sigaction" = "yes" &&
37117      test "$tst_proto_sigaction" = "yes" &&
37118      test "$tst_compi_sigaction" = "yes" &&
37119      test "$tst_allow_sigaction" = "yes"; then
37120     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37121 $as_echo "yes" >&6; }
37122
37123 cat >>confdefs.h <<_ACEOF
37124 #define HAVE_SIGACTION 1
37125 _ACEOF
37126
37127     curl_cv_func_sigaction="yes"
37128   else
37129     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37130 $as_echo "no" >&6; }
37131     curl_cv_func_sigaction="no"
37132   fi
37133
37134
37135     #
37136   tst_links_siginterrupt="unknown"
37137   tst_proto_siginterrupt="unknown"
37138   tst_compi_siginterrupt="unknown"
37139   tst_allow_siginterrupt="unknown"
37140   #
37141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
37142 $as_echo_n "checking if siginterrupt can be linked... " >&6; }
37143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37144 /* end confdefs.h.  */
37145
37146
37147 #define siginterrupt innocuous_siginterrupt
37148 #ifdef __STDC__
37149 # include <limits.h>
37150 #else
37151 # include <assert.h>
37152 #endif
37153 #undef siginterrupt
37154 #ifdef __cplusplus
37155 extern "C"
37156 #endif
37157 char siginterrupt ();
37158 #if defined __stub_siginterrupt || defined __stub___siginterrupt
37159 choke me
37160 #endif
37161
37162 int main (void)
37163 {
37164 return siginterrupt ();
37165  ;
37166  return 0;
37167 }
37168
37169 _ACEOF
37170 if ac_fn_c_try_link "$LINENO"; then :
37171
37172     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37173 $as_echo "yes" >&6; }
37174     tst_links_siginterrupt="yes"
37175
37176 else
37177
37178     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37179 $as_echo "no" >&6; }
37180     tst_links_siginterrupt="no"
37181
37182 fi
37183 rm -f core conftest.err conftest.$ac_objext \
37184     conftest$ac_exeext conftest.$ac_ext
37185   #
37186   if test "$tst_links_siginterrupt" = "yes"; then
37187     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
37188 $as_echo_n "checking if siginterrupt is prototyped... " >&6; }
37189     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37190 /* end confdefs.h.  */
37191
37192       $curl_includes_signal
37193
37194 _ACEOF
37195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37196   $EGREP "siginterrupt" >/dev/null 2>&1; then :
37197
37198       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37199 $as_echo "yes" >&6; }
37200       tst_proto_siginterrupt="yes"
37201
37202 else
37203
37204       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37205 $as_echo "no" >&6; }
37206       tst_proto_siginterrupt="no"
37207
37208 fi
37209 rm -f conftest*
37210
37211   fi
37212   #
37213   if test "$tst_proto_siginterrupt" = "yes"; then
37214     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
37215 $as_echo_n "checking if siginterrupt is compilable... " >&6; }
37216     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37217 /* end confdefs.h.  */
37218
37219
37220         $curl_includes_signal
37221
37222 int main (void)
37223 {
37224
37225         if(0 != siginterrupt(0, 0))
37226           return 1;
37227
37228  ;
37229  return 0;
37230 }
37231
37232 _ACEOF
37233 if ac_fn_c_try_compile "$LINENO"; then :
37234
37235       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37236 $as_echo "yes" >&6; }
37237       tst_compi_siginterrupt="yes"
37238
37239 else
37240
37241       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37242 $as_echo "no" >&6; }
37243       tst_compi_siginterrupt="no"
37244
37245 fi
37246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37247   fi
37248   #
37249   if test "$tst_compi_siginterrupt" = "yes"; then
37250     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
37251 $as_echo_n "checking if siginterrupt usage allowed... " >&6; }
37252     if test "x$curl_disallow_siginterrupt" != "xyes"; then
37253       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37254 $as_echo "yes" >&6; }
37255       tst_allow_siginterrupt="yes"
37256     else
37257       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37258 $as_echo "no" >&6; }
37259       tst_allow_siginterrupt="no"
37260     fi
37261   fi
37262   #
37263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
37264 $as_echo_n "checking if siginterrupt might be used... " >&6; }
37265   if test "$tst_links_siginterrupt" = "yes" &&
37266      test "$tst_proto_siginterrupt" = "yes" &&
37267      test "$tst_compi_siginterrupt" = "yes" &&
37268      test "$tst_allow_siginterrupt" = "yes"; then
37269     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37270 $as_echo "yes" >&6; }
37271
37272 cat >>confdefs.h <<_ACEOF
37273 #define HAVE_SIGINTERRUPT 1
37274 _ACEOF
37275
37276     curl_cv_func_siginterrupt="yes"
37277   else
37278     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37279 $as_echo "no" >&6; }
37280     curl_cv_func_siginterrupt="no"
37281   fi
37282
37283
37284     #
37285   tst_links_signal="unknown"
37286   tst_proto_signal="unknown"
37287   tst_compi_signal="unknown"
37288   tst_allow_signal="unknown"
37289   #
37290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
37291 $as_echo_n "checking if signal can be linked... " >&6; }
37292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37293 /* end confdefs.h.  */
37294
37295
37296 #define signal innocuous_signal
37297 #ifdef __STDC__
37298 # include <limits.h>
37299 #else
37300 # include <assert.h>
37301 #endif
37302 #undef signal
37303 #ifdef __cplusplus
37304 extern "C"
37305 #endif
37306 char signal ();
37307 #if defined __stub_signal || defined __stub___signal
37308 choke me
37309 #endif
37310
37311 int main (void)
37312 {
37313 return signal ();
37314  ;
37315  return 0;
37316 }
37317
37318 _ACEOF
37319 if ac_fn_c_try_link "$LINENO"; then :
37320
37321     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37322 $as_echo "yes" >&6; }
37323     tst_links_signal="yes"
37324
37325 else
37326
37327     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37328 $as_echo "no" >&6; }
37329     tst_links_signal="no"
37330
37331 fi
37332 rm -f core conftest.err conftest.$ac_objext \
37333     conftest$ac_exeext conftest.$ac_ext
37334   #
37335   if test "$tst_links_signal" = "yes"; then
37336     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
37337 $as_echo_n "checking if signal is prototyped... " >&6; }
37338     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37339 /* end confdefs.h.  */
37340
37341       $curl_includes_signal
37342
37343 _ACEOF
37344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37345   $EGREP "signal" >/dev/null 2>&1; then :
37346
37347       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37348 $as_echo "yes" >&6; }
37349       tst_proto_signal="yes"
37350
37351 else
37352
37353       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37354 $as_echo "no" >&6; }
37355       tst_proto_signal="no"
37356
37357 fi
37358 rm -f conftest*
37359
37360   fi
37361   #
37362   if test "$tst_proto_signal" = "yes"; then
37363     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
37364 $as_echo_n "checking if signal is compilable... " >&6; }
37365     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37366 /* end confdefs.h.  */
37367
37368
37369         $curl_includes_signal
37370
37371 int main (void)
37372 {
37373
37374         if(0 != signal(0, 0))
37375           return 1;
37376
37377  ;
37378  return 0;
37379 }
37380
37381 _ACEOF
37382 if ac_fn_c_try_compile "$LINENO"; then :
37383
37384       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37385 $as_echo "yes" >&6; }
37386       tst_compi_signal="yes"
37387
37388 else
37389
37390       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37391 $as_echo "no" >&6; }
37392       tst_compi_signal="no"
37393
37394 fi
37395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37396   fi
37397   #
37398   if test "$tst_compi_signal" = "yes"; then
37399     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
37400 $as_echo_n "checking if signal usage allowed... " >&6; }
37401     if test "x$curl_disallow_signal" != "xyes"; then
37402       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37403 $as_echo "yes" >&6; }
37404       tst_allow_signal="yes"
37405     else
37406       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37407 $as_echo "no" >&6; }
37408       tst_allow_signal="no"
37409     fi
37410   fi
37411   #
37412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
37413 $as_echo_n "checking if signal might be used... " >&6; }
37414   if test "$tst_links_signal" = "yes" &&
37415      test "$tst_proto_signal" = "yes" &&
37416      test "$tst_compi_signal" = "yes" &&
37417      test "$tst_allow_signal" = "yes"; then
37418     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37419 $as_echo "yes" >&6; }
37420
37421 cat >>confdefs.h <<_ACEOF
37422 #define HAVE_SIGNAL 1
37423 _ACEOF
37424
37425     curl_cv_func_signal="yes"
37426   else
37427     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37428 $as_echo "no" >&6; }
37429     curl_cv_func_signal="no"
37430   fi
37431
37432
37433 curl_includes_setjmp="\
37434 /* includes start */
37435 #ifdef HAVE_SYS_TYPES_H
37436 #  include <sys/types.h>
37437 #endif
37438 #ifdef HAVE_SETJMP_H
37439 #  include <setjmp.h>
37440 #endif
37441 /* includes end */"
37442   for ac_header in sys/types.h setjmp.h
37443 do :
37444   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37445 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
37446 "
37447 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37448   cat >>confdefs.h <<_ACEOF
37449 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37450 _ACEOF
37451
37452 fi
37453
37454 done
37455
37456
37457
37458     #
37459   tst_links_sigsetjmp="unknown"
37460   tst_macro_sigsetjmp="unknown"
37461   tst_proto_sigsetjmp="unknown"
37462   tst_compi_sigsetjmp="unknown"
37463   tst_allow_sigsetjmp="unknown"
37464   #
37465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
37466 $as_echo_n "checking if sigsetjmp can be linked... " >&6; }
37467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37468 /* end confdefs.h.  */
37469
37470
37471 #define sigsetjmp innocuous_sigsetjmp
37472 #ifdef __STDC__
37473 # include <limits.h>
37474 #else
37475 # include <assert.h>
37476 #endif
37477 #undef sigsetjmp
37478 #ifdef __cplusplus
37479 extern "C"
37480 #endif
37481 char sigsetjmp ();
37482 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
37483 choke me
37484 #endif
37485
37486 int main (void)
37487 {
37488 return sigsetjmp ();
37489  ;
37490  return 0;
37491 }
37492
37493 _ACEOF
37494 if ac_fn_c_try_link "$LINENO"; then :
37495
37496     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37497 $as_echo "yes" >&6; }
37498     tst_links_sigsetjmp="yes"
37499
37500 else
37501
37502     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37503 $as_echo "no" >&6; }
37504     tst_links_sigsetjmp="no"
37505
37506 fi
37507 rm -f core conftest.err conftest.$ac_objext \
37508     conftest$ac_exeext conftest.$ac_ext
37509   #
37510   if test "$tst_links_sigsetjmp" = "no"; then
37511     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
37512 $as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
37513     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37514 /* end confdefs.h.  */
37515
37516
37517         $curl_includes_setjmp
37518
37519 int main (void)
37520 {
37521
37522         sigjmp_buf env;
37523         if(0 != sigsetjmp(env, 0))
37524           return 1;
37525
37526  ;
37527  return 0;
37528 }
37529
37530 _ACEOF
37531 if ac_fn_c_try_link "$LINENO"; then :
37532
37533       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37534 $as_echo "yes" >&6; }
37535       tst_macro_sigsetjmp="yes"
37536
37537 else
37538
37539       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37540 $as_echo "no" >&6; }
37541       tst_macro_sigsetjmp="no"
37542
37543 fi
37544 rm -f core conftest.err conftest.$ac_objext \
37545     conftest$ac_exeext conftest.$ac_ext
37546   fi
37547   #
37548   if test "$tst_links_sigsetjmp" = "yes"; then
37549     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
37550 $as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
37551     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37552 /* end confdefs.h.  */
37553
37554       $curl_includes_setjmp
37555
37556 _ACEOF
37557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37558   $EGREP "sigsetjmp" >/dev/null 2>&1; then :
37559
37560       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37561 $as_echo "yes" >&6; }
37562       tst_proto_sigsetjmp="yes"
37563
37564 else
37565
37566       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37567 $as_echo "no" >&6; }
37568       tst_proto_sigsetjmp="no"
37569
37570 fi
37571 rm -f conftest*
37572
37573   fi
37574   #
37575   if test "$tst_proto_sigsetjmp" = "yes" ||
37576      test "$tst_macro_sigsetjmp" = "yes"; then
37577     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
37578 $as_echo_n "checking if sigsetjmp is compilable... " >&6; }
37579     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37580 /* end confdefs.h.  */
37581
37582
37583         $curl_includes_setjmp
37584
37585 int main (void)
37586 {
37587
37588         sigjmp_buf env;
37589         if(0 != sigsetjmp(env, 0))
37590           return 1;
37591
37592  ;
37593  return 0;
37594 }
37595
37596 _ACEOF
37597 if ac_fn_c_try_compile "$LINENO"; then :
37598
37599       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37600 $as_echo "yes" >&6; }
37601       tst_compi_sigsetjmp="yes"
37602
37603 else
37604
37605       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37606 $as_echo "no" >&6; }
37607       tst_compi_sigsetjmp="no"
37608
37609 fi
37610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37611   fi
37612   #
37613   if test "$tst_compi_sigsetjmp" = "yes"; then
37614     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
37615 $as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
37616     if test "x$curl_disallow_sigsetjmp" != "xyes"; then
37617       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37618 $as_echo "yes" >&6; }
37619       tst_allow_sigsetjmp="yes"
37620     else
37621       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37622 $as_echo "no" >&6; }
37623       tst_allow_sigsetjmp="no"
37624     fi
37625   fi
37626   #
37627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
37628 $as_echo_n "checking if sigsetjmp might be used... " >&6; }
37629   if (test "$tst_proto_sigsetjmp" = "yes" ||
37630       test "$tst_macro_sigsetjmp" = "yes") &&
37631      test "$tst_compi_sigsetjmp" = "yes" &&
37632      test "$tst_allow_sigsetjmp" = "yes"; then
37633     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37634 $as_echo "yes" >&6; }
37635
37636 cat >>confdefs.h <<_ACEOF
37637 #define HAVE_SIGSETJMP 1
37638 _ACEOF
37639
37640     curl_cv_func_sigsetjmp="yes"
37641   else
37642     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37643 $as_echo "no" >&6; }
37644     curl_cv_func_sigsetjmp="no"
37645   fi
37646
37647
37648         #
37649   tst_links_socket="unknown"
37650   tst_proto_socket="unknown"
37651   tst_compi_socket="unknown"
37652   tst_allow_socket="unknown"
37653   #
37654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
37655 $as_echo_n "checking if socket can be linked... " >&6; }
37656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37657 /* end confdefs.h.  */
37658
37659
37660       $curl_includes_winsock2
37661       $curl_includes_sys_socket
37662       $curl_includes_socket
37663
37664 int main (void)
37665 {
37666
37667       if(0 != socket(0, 0, 0))
37668         return 1;
37669
37670  ;
37671  return 0;
37672 }
37673
37674 _ACEOF
37675 if ac_fn_c_try_link "$LINENO"; then :
37676
37677     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37678 $as_echo "yes" >&6; }
37679     tst_links_socket="yes"
37680
37681 else
37682
37683     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37684 $as_echo "no" >&6; }
37685     tst_links_socket="no"
37686
37687 fi
37688 rm -f core conftest.err conftest.$ac_objext \
37689     conftest$ac_exeext conftest.$ac_ext
37690   #
37691   if test "$tst_links_socket" = "yes"; then
37692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
37693 $as_echo_n "checking if socket is prototyped... " >&6; }
37694     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37695 /* end confdefs.h.  */
37696
37697       $curl_includes_winsock2
37698       $curl_includes_sys_socket
37699       $curl_includes_socket
37700
37701 _ACEOF
37702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37703   $EGREP "socket" >/dev/null 2>&1; then :
37704
37705       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37706 $as_echo "yes" >&6; }
37707       tst_proto_socket="yes"
37708
37709 else
37710
37711       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37712 $as_echo "no" >&6; }
37713       tst_proto_socket="no"
37714
37715 fi
37716 rm -f conftest*
37717
37718   fi
37719   #
37720   if test "$tst_proto_socket" = "yes"; then
37721     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
37722 $as_echo_n "checking if socket is compilable... " >&6; }
37723     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37724 /* end confdefs.h.  */
37725
37726
37727         $curl_includes_winsock2
37728         $curl_includes_sys_socket
37729         $curl_includes_socket
37730
37731 int main (void)
37732 {
37733
37734         if(0 != socket(0, 0, 0))
37735           return 1;
37736
37737  ;
37738  return 0;
37739 }
37740
37741 _ACEOF
37742 if ac_fn_c_try_compile "$LINENO"; then :
37743
37744       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37745 $as_echo "yes" >&6; }
37746       tst_compi_socket="yes"
37747
37748 else
37749
37750       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37751 $as_echo "no" >&6; }
37752       tst_compi_socket="no"
37753
37754 fi
37755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37756   fi
37757   #
37758   if test "$tst_compi_socket" = "yes"; then
37759     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
37760 $as_echo_n "checking if socket usage allowed... " >&6; }
37761     if test "x$curl_disallow_socket" != "xyes"; then
37762       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37763 $as_echo "yes" >&6; }
37764       tst_allow_socket="yes"
37765     else
37766       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37767 $as_echo "no" >&6; }
37768       tst_allow_socket="no"
37769     fi
37770   fi
37771   #
37772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
37773 $as_echo_n "checking if socket might be used... " >&6; }
37774   if test "$tst_links_socket" = "yes" &&
37775      test "$tst_proto_socket" = "yes" &&
37776      test "$tst_compi_socket" = "yes" &&
37777      test "$tst_allow_socket" = "yes"; then
37778     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37779 $as_echo "yes" >&6; }
37780
37781 cat >>confdefs.h <<_ACEOF
37782 #define HAVE_SOCKET 1
37783 _ACEOF
37784
37785     curl_cv_func_socket="yes"
37786   else
37787     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37788 $as_echo "no" >&6; }
37789     curl_cv_func_socket="no"
37790   fi
37791
37792
37793       #
37794   tst_links_socketpair="unknown"
37795   tst_proto_socketpair="unknown"
37796   tst_compi_socketpair="unknown"
37797   tst_allow_socketpair="unknown"
37798   #
37799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
37800 $as_echo_n "checking if socketpair can be linked... " >&6; }
37801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37802 /* end confdefs.h.  */
37803
37804
37805 #define socketpair innocuous_socketpair
37806 #ifdef __STDC__
37807 # include <limits.h>
37808 #else
37809 # include <assert.h>
37810 #endif
37811 #undef socketpair
37812 #ifdef __cplusplus
37813 extern "C"
37814 #endif
37815 char socketpair ();
37816 #if defined __stub_socketpair || defined __stub___socketpair
37817 choke me
37818 #endif
37819
37820 int main (void)
37821 {
37822 return socketpair ();
37823  ;
37824  return 0;
37825 }
37826
37827 _ACEOF
37828 if ac_fn_c_try_link "$LINENO"; then :
37829
37830     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37831 $as_echo "yes" >&6; }
37832     tst_links_socketpair="yes"
37833
37834 else
37835
37836     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37837 $as_echo "no" >&6; }
37838     tst_links_socketpair="no"
37839
37840 fi
37841 rm -f core conftest.err conftest.$ac_objext \
37842     conftest$ac_exeext conftest.$ac_ext
37843   #
37844   if test "$tst_links_socketpair" = "yes"; then
37845     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
37846 $as_echo_n "checking if socketpair is prototyped... " >&6; }
37847     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37848 /* end confdefs.h.  */
37849
37850       $curl_includes_sys_socket
37851       $curl_includes_socket
37852
37853 _ACEOF
37854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37855   $EGREP "socketpair" >/dev/null 2>&1; then :
37856
37857       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37858 $as_echo "yes" >&6; }
37859       tst_proto_socketpair="yes"
37860
37861 else
37862
37863       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37864 $as_echo "no" >&6; }
37865       tst_proto_socketpair="no"
37866
37867 fi
37868 rm -f conftest*
37869
37870   fi
37871   #
37872   if test "$tst_proto_socketpair" = "yes"; then
37873     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
37874 $as_echo_n "checking if socketpair is compilable... " >&6; }
37875     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37876 /* end confdefs.h.  */
37877
37878
37879         $curl_includes_sys_socket
37880         $curl_includes_socket
37881
37882 int main (void)
37883 {
37884
37885         int sv[2];
37886         if(0 != socketpair(0, 0, 0, sv))
37887           return 1;
37888
37889  ;
37890  return 0;
37891 }
37892
37893 _ACEOF
37894 if ac_fn_c_try_compile "$LINENO"; then :
37895
37896       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37897 $as_echo "yes" >&6; }
37898       tst_compi_socketpair="yes"
37899
37900 else
37901
37902       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37903 $as_echo "no" >&6; }
37904       tst_compi_socketpair="no"
37905
37906 fi
37907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37908   fi
37909   #
37910   if test "$tst_compi_socketpair" = "yes"; then
37911     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
37912 $as_echo_n "checking if socketpair usage allowed... " >&6; }
37913     if test "x$curl_disallow_socketpair" != "xyes"; then
37914       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37915 $as_echo "yes" >&6; }
37916       tst_allow_socketpair="yes"
37917     else
37918       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37919 $as_echo "no" >&6; }
37920       tst_allow_socketpair="no"
37921     fi
37922   fi
37923   #
37924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
37925 $as_echo_n "checking if socketpair might be used... " >&6; }
37926   if test "$tst_links_socketpair" = "yes" &&
37927      test "$tst_proto_socketpair" = "yes" &&
37928      test "$tst_compi_socketpair" = "yes" &&
37929      test "$tst_allow_socketpair" = "yes"; then
37930     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37931 $as_echo "yes" >&6; }
37932
37933 cat >>confdefs.h <<_ACEOF
37934 #define HAVE_SOCKETPAIR 1
37935 _ACEOF
37936
37937     curl_cv_func_socketpair="yes"
37938   else
37939     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37940 $as_echo "no" >&6; }
37941     curl_cv_func_socketpair="no"
37942   fi
37943
37944
37945     #
37946   tst_links_strcasecmp="unknown"
37947   tst_proto_strcasecmp="unknown"
37948   tst_compi_strcasecmp="unknown"
37949   tst_allow_strcasecmp="unknown"
37950   #
37951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
37952 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
37953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37954 /* end confdefs.h.  */
37955
37956
37957 #define strcasecmp innocuous_strcasecmp
37958 #ifdef __STDC__
37959 # include <limits.h>
37960 #else
37961 # include <assert.h>
37962 #endif
37963 #undef strcasecmp
37964 #ifdef __cplusplus
37965 extern "C"
37966 #endif
37967 char strcasecmp ();
37968 #if defined __stub_strcasecmp || defined __stub___strcasecmp
37969 choke me
37970 #endif
37971
37972 int main (void)
37973 {
37974 return strcasecmp ();
37975  ;
37976  return 0;
37977 }
37978
37979 _ACEOF
37980 if ac_fn_c_try_link "$LINENO"; then :
37981
37982     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37983 $as_echo "yes" >&6; }
37984     tst_links_strcasecmp="yes"
37985
37986 else
37987
37988     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37989 $as_echo "no" >&6; }
37990     tst_links_strcasecmp="no"
37991
37992 fi
37993 rm -f core conftest.err conftest.$ac_objext \
37994     conftest$ac_exeext conftest.$ac_ext
37995   #
37996   if test "$tst_links_strcasecmp" = "yes"; then
37997     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
37998 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
37999     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38000 /* end confdefs.h.  */
38001
38002       $curl_includes_string
38003
38004 _ACEOF
38005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38006   $EGREP "strcasecmp" >/dev/null 2>&1; then :
38007
38008       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38009 $as_echo "yes" >&6; }
38010       tst_proto_strcasecmp="yes"
38011
38012 else
38013
38014       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38015 $as_echo "no" >&6; }
38016       tst_proto_strcasecmp="no"
38017
38018 fi
38019 rm -f conftest*
38020
38021   fi
38022   #
38023   if test "$tst_proto_strcasecmp" = "yes"; then
38024     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
38025 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
38026     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38027 /* end confdefs.h.  */
38028
38029
38030         $curl_includes_string
38031
38032 int main (void)
38033 {
38034
38035         if(0 != strcasecmp(0, 0))
38036           return 1;
38037
38038  ;
38039  return 0;
38040 }
38041
38042 _ACEOF
38043 if ac_fn_c_try_compile "$LINENO"; then :
38044
38045       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38046 $as_echo "yes" >&6; }
38047       tst_compi_strcasecmp="yes"
38048
38049 else
38050
38051       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38052 $as_echo "no" >&6; }
38053       tst_compi_strcasecmp="no"
38054
38055 fi
38056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38057   fi
38058   #
38059   if test "$tst_compi_strcasecmp" = "yes"; then
38060     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
38061 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
38062     if test "x$curl_disallow_strcasecmp" != "xyes"; then
38063       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38064 $as_echo "yes" >&6; }
38065       tst_allow_strcasecmp="yes"
38066     else
38067       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38068 $as_echo "no" >&6; }
38069       tst_allow_strcasecmp="no"
38070     fi
38071   fi
38072   #
38073   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
38074 $as_echo_n "checking if strcasecmp might be used... " >&6; }
38075   if test "$tst_links_strcasecmp" = "yes" &&
38076      test "$tst_proto_strcasecmp" = "yes" &&
38077      test "$tst_compi_strcasecmp" = "yes" &&
38078      test "$tst_allow_strcasecmp" = "yes"; then
38079     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38080 $as_echo "yes" >&6; }
38081
38082 cat >>confdefs.h <<_ACEOF
38083 #define HAVE_STRCASECMP 1
38084 _ACEOF
38085
38086     curl_cv_func_strcasecmp="yes"
38087   else
38088     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38089 $as_echo "no" >&6; }
38090     curl_cv_func_strcasecmp="no"
38091   fi
38092
38093
38094     #
38095   tst_links_strcmpi="unknown"
38096   tst_proto_strcmpi="unknown"
38097   tst_compi_strcmpi="unknown"
38098   tst_allow_strcmpi="unknown"
38099   #
38100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
38101 $as_echo_n "checking if strcmpi can be linked... " >&6; }
38102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38103 /* end confdefs.h.  */
38104
38105
38106 #define strcmpi innocuous_strcmpi
38107 #ifdef __STDC__
38108 # include <limits.h>
38109 #else
38110 # include <assert.h>
38111 #endif
38112 #undef strcmpi
38113 #ifdef __cplusplus
38114 extern "C"
38115 #endif
38116 char strcmpi ();
38117 #if defined __stub_strcmpi || defined __stub___strcmpi
38118 choke me
38119 #endif
38120
38121 int main (void)
38122 {
38123 return strcmpi ();
38124  ;
38125  return 0;
38126 }
38127
38128 _ACEOF
38129 if ac_fn_c_try_link "$LINENO"; then :
38130
38131     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38132 $as_echo "yes" >&6; }
38133     tst_links_strcmpi="yes"
38134
38135 else
38136
38137     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38138 $as_echo "no" >&6; }
38139     tst_links_strcmpi="no"
38140
38141 fi
38142 rm -f core conftest.err conftest.$ac_objext \
38143     conftest$ac_exeext conftest.$ac_ext
38144   #
38145   if test "$tst_links_strcmpi" = "yes"; then
38146     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
38147 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
38148     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38149 /* end confdefs.h.  */
38150
38151       $curl_includes_string
38152
38153 _ACEOF
38154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38155   $EGREP "strcmpi" >/dev/null 2>&1; then :
38156
38157       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38158 $as_echo "yes" >&6; }
38159       tst_proto_strcmpi="yes"
38160
38161 else
38162
38163       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38164 $as_echo "no" >&6; }
38165       tst_proto_strcmpi="no"
38166
38167 fi
38168 rm -f conftest*
38169
38170   fi
38171   #
38172   if test "$tst_proto_strcmpi" = "yes"; then
38173     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
38174 $as_echo_n "checking if strcmpi is compilable... " >&6; }
38175     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38176 /* end confdefs.h.  */
38177
38178
38179         $curl_includes_string
38180
38181 int main (void)
38182 {
38183
38184         if(0 != strcmpi(0, 0))
38185           return 1;
38186
38187  ;
38188  return 0;
38189 }
38190
38191 _ACEOF
38192 if ac_fn_c_try_compile "$LINENO"; then :
38193
38194       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38195 $as_echo "yes" >&6; }
38196       tst_compi_strcmpi="yes"
38197
38198 else
38199
38200       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38201 $as_echo "no" >&6; }
38202       tst_compi_strcmpi="no"
38203
38204 fi
38205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38206   fi
38207   #
38208   if test "$tst_compi_strcmpi" = "yes"; then
38209     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
38210 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
38211     if test "x$curl_disallow_strcmpi" != "xyes"; then
38212       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38213 $as_echo "yes" >&6; }
38214       tst_allow_strcmpi="yes"
38215     else
38216       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38217 $as_echo "no" >&6; }
38218       tst_allow_strcmpi="no"
38219     fi
38220   fi
38221   #
38222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
38223 $as_echo_n "checking if strcmpi might be used... " >&6; }
38224   if test "$tst_links_strcmpi" = "yes" &&
38225      test "$tst_proto_strcmpi" = "yes" &&
38226      test "$tst_compi_strcmpi" = "yes" &&
38227      test "$tst_allow_strcmpi" = "yes"; then
38228     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38229 $as_echo "yes" >&6; }
38230
38231 cat >>confdefs.h <<_ACEOF
38232 #define HAVE_STRCMPI 1
38233 _ACEOF
38234
38235     curl_cv_func_strcmpi="yes"
38236   else
38237     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38238 $as_echo "no" >&6; }
38239     curl_cv_func_strcmpi="no"
38240   fi
38241
38242
38243     #
38244   tst_links_strdup="unknown"
38245   tst_proto_strdup="unknown"
38246   tst_compi_strdup="unknown"
38247   tst_allow_strdup="unknown"
38248   #
38249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
38250 $as_echo_n "checking if strdup can be linked... " >&6; }
38251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38252 /* end confdefs.h.  */
38253
38254
38255 #define strdup innocuous_strdup
38256 #ifdef __STDC__
38257 # include <limits.h>
38258 #else
38259 # include <assert.h>
38260 #endif
38261 #undef strdup
38262 #ifdef __cplusplus
38263 extern "C"
38264 #endif
38265 char strdup ();
38266 #if defined __stub_strdup || defined __stub___strdup
38267 choke me
38268 #endif
38269
38270 int main (void)
38271 {
38272 return strdup ();
38273  ;
38274  return 0;
38275 }
38276
38277 _ACEOF
38278 if ac_fn_c_try_link "$LINENO"; then :
38279
38280     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38281 $as_echo "yes" >&6; }
38282     tst_links_strdup="yes"
38283
38284 else
38285
38286     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38287 $as_echo "no" >&6; }
38288     tst_links_strdup="no"
38289
38290 fi
38291 rm -f core conftest.err conftest.$ac_objext \
38292     conftest$ac_exeext conftest.$ac_ext
38293   #
38294   if test "$tst_links_strdup" = "yes"; then
38295     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
38296 $as_echo_n "checking if strdup is prototyped... " >&6; }
38297     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38298 /* end confdefs.h.  */
38299
38300       $curl_includes_string
38301
38302 _ACEOF
38303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38304   $EGREP "strdup" >/dev/null 2>&1; then :
38305
38306       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38307 $as_echo "yes" >&6; }
38308       tst_proto_strdup="yes"
38309
38310 else
38311
38312       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38313 $as_echo "no" >&6; }
38314       tst_proto_strdup="no"
38315
38316 fi
38317 rm -f conftest*
38318
38319   fi
38320   #
38321   if test "$tst_proto_strdup" = "yes"; then
38322     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
38323 $as_echo_n "checking if strdup is compilable... " >&6; }
38324     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38325 /* end confdefs.h.  */
38326
38327
38328         $curl_includes_string
38329
38330 int main (void)
38331 {
38332
38333         if(0 != strdup(0))
38334           return 1;
38335
38336  ;
38337  return 0;
38338 }
38339
38340 _ACEOF
38341 if ac_fn_c_try_compile "$LINENO"; then :
38342
38343       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38344 $as_echo "yes" >&6; }
38345       tst_compi_strdup="yes"
38346
38347 else
38348
38349       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38350 $as_echo "no" >&6; }
38351       tst_compi_strdup="no"
38352
38353 fi
38354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38355   fi
38356   #
38357   if test "$tst_compi_strdup" = "yes"; then
38358     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
38359 $as_echo_n "checking if strdup usage allowed... " >&6; }
38360     if test "x$curl_disallow_strdup" != "xyes"; then
38361       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38362 $as_echo "yes" >&6; }
38363       tst_allow_strdup="yes"
38364     else
38365       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38366 $as_echo "no" >&6; }
38367       tst_allow_strdup="no"
38368     fi
38369   fi
38370   #
38371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
38372 $as_echo_n "checking if strdup might be used... " >&6; }
38373   if test "$tst_links_strdup" = "yes" &&
38374      test "$tst_proto_strdup" = "yes" &&
38375      test "$tst_compi_strdup" = "yes" &&
38376      test "$tst_allow_strdup" = "yes"; then
38377     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38378 $as_echo "yes" >&6; }
38379
38380 cat >>confdefs.h <<_ACEOF
38381 #define HAVE_STRDUP 1
38382 _ACEOF
38383
38384     curl_cv_func_strdup="yes"
38385   else
38386     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38387 $as_echo "no" >&6; }
38388     curl_cv_func_strdup="no"
38389   fi
38390
38391
38392       #
38393   tst_links_strerror_r="unknown"
38394   tst_proto_strerror_r="unknown"
38395   tst_compi_strerror_r="unknown"
38396   tst_glibc_strerror_r="unknown"
38397   tst_posix_strerror_r="unknown"
38398   tst_allow_strerror_r="unknown"
38399   tst_works_glibc_strerror_r="unknown"
38400   tst_works_posix_strerror_r="unknown"
38401   tst_glibc_strerror_r_type_arg3="unknown"
38402   tst_posix_strerror_r_type_arg3="unknown"
38403   #
38404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
38405 $as_echo_n "checking if strerror_r can be linked... " >&6; }
38406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38407 /* end confdefs.h.  */
38408
38409
38410 #define strerror_r innocuous_strerror_r
38411 #ifdef __STDC__
38412 # include <limits.h>
38413 #else
38414 # include <assert.h>
38415 #endif
38416 #undef strerror_r
38417 #ifdef __cplusplus
38418 extern "C"
38419 #endif
38420 char strerror_r ();
38421 #if defined __stub_strerror_r || defined __stub___strerror_r
38422 choke me
38423 #endif
38424
38425 int main (void)
38426 {
38427 return strerror_r ();
38428  ;
38429  return 0;
38430 }
38431
38432 _ACEOF
38433 if ac_fn_c_try_link "$LINENO"; then :
38434
38435     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38436 $as_echo "yes" >&6; }
38437     tst_links_strerror_r="yes"
38438
38439 else
38440
38441     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38442 $as_echo "no" >&6; }
38443     tst_links_strerror_r="no"
38444
38445 fi
38446 rm -f core conftest.err conftest.$ac_objext \
38447     conftest$ac_exeext conftest.$ac_ext
38448   #
38449   if test "$tst_links_strerror_r" = "yes"; then
38450     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
38451 $as_echo_n "checking if strerror_r is prototyped... " >&6; }
38452     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38453 /* end confdefs.h.  */
38454
38455       $curl_includes_string
38456
38457 _ACEOF
38458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38459   $EGREP "strerror_r" >/dev/null 2>&1; then :
38460
38461       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38462 $as_echo "yes" >&6; }
38463       tst_proto_strerror_r="yes"
38464
38465 else
38466
38467       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38468 $as_echo "no" >&6; }
38469       tst_proto_strerror_r="no"
38470
38471 fi
38472 rm -f conftest*
38473
38474   fi
38475   #
38476   if test "$tst_proto_strerror_r" = "yes"; then
38477     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
38478 $as_echo_n "checking if strerror_r is compilable... " >&6; }
38479     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38480 /* end confdefs.h.  */
38481
38482
38483         $curl_includes_string
38484
38485 int main (void)
38486 {
38487
38488         if(0 != strerror_r(0, 0, 0))
38489           return 1;
38490
38491  ;
38492  return 0;
38493 }
38494
38495 _ACEOF
38496 if ac_fn_c_try_compile "$LINENO"; then :
38497
38498       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38499 $as_echo "yes" >&6; }
38500       tst_compi_strerror_r="yes"
38501
38502 else
38503
38504       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38505 $as_echo "no" >&6; }
38506       tst_compi_strerror_r="no"
38507
38508 fi
38509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38510   fi
38511   #
38512   if test "$tst_compi_strerror_r" = "yes"; then
38513     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
38514 $as_echo_n "checking if strerror_r is glibc like... " >&6; }
38515     tst_glibc_strerror_r_type_arg3="unknown"
38516     for arg3 in 'size_t' 'int' 'unsigned int'; do
38517       if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
38518         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38519 /* end confdefs.h.  */
38520
38521
38522             $curl_includes_string
38523             char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
38524
38525 int main (void)
38526 {
38527
38528             if(0 != strerror_r(0, 0, 0))
38529               return 1;
38530
38531  ;
38532  return 0;
38533 }
38534
38535 _ACEOF
38536 if ac_fn_c_try_compile "$LINENO"; then :
38537
38538           tst_glibc_strerror_r_type_arg3="$arg3"
38539
38540 fi
38541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38542       fi
38543     done
38544     case "$tst_glibc_strerror_r_type_arg3" in
38545       unknown)
38546         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38547 $as_echo "no" >&6; }
38548         tst_glibc_strerror_r="no"
38549         ;;
38550       *)
38551         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38552 $as_echo "yes" >&6; }
38553         tst_glibc_strerror_r="yes"
38554         ;;
38555     esac
38556   fi
38557   #
38558     if test "x$cross_compiling" != "xyes" &&
38559     test "$tst_glibc_strerror_r" = "yes"; then
38560     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38561 $as_echo_n "checking if strerror_r seems to work... " >&6; }
38562     if test "$cross_compiling" = yes; then :
38563   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38565 as_fn_error $? "cannot run test program while cross compiling
38566 See \`config.log' for more details" "$LINENO" 5; }
38567 else
38568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38569 /* end confdefs.h.  */
38570
38571
38572         $curl_includes_stdlib
38573         $curl_includes_string
38574 #       include <errno.h>
38575
38576 int main (void)
38577 {
38578
38579         char buffer[1024];
38580         char *string = 0;
38581         buffer[0] = '\0';
38582         string = strerror_r(EACCES, buffer, sizeof(buffer));
38583         if(!string)
38584           exit(1); /* fail */
38585         if(!string[0])
38586           exit(1); /* fail */
38587         else
38588           exit(0);
38589
38590  ;
38591  return 0;
38592 }
38593
38594 _ACEOF
38595 if ac_fn_c_try_run "$LINENO"; then :
38596
38597       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38598 $as_echo "yes" >&6; }
38599       tst_works_glibc_strerror_r="yes"
38600
38601 else
38602
38603       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38604 $as_echo "no" >&6; }
38605       tst_works_glibc_strerror_r="no"
38606
38607 fi
38608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38609   conftest.$ac_objext conftest.beam conftest.$ac_ext
38610 fi
38611
38612   fi
38613   #
38614   if test "$tst_compi_strerror_r" = "yes" &&
38615     test "$tst_works_glibc_strerror_r" != "yes"; then
38616     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
38617 $as_echo_n "checking if strerror_r is POSIX like... " >&6; }
38618     tst_posix_strerror_r_type_arg3="unknown"
38619     for arg3 in 'size_t' 'int' 'unsigned int'; do
38620       if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
38621         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38622 /* end confdefs.h.  */
38623
38624
38625             $curl_includes_string
38626             int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
38627
38628 int main (void)
38629 {
38630
38631             if(0 != strerror_r(0, 0, 0))
38632               return 1;
38633
38634  ;
38635  return 0;
38636 }
38637
38638 _ACEOF
38639 if ac_fn_c_try_compile "$LINENO"; then :
38640
38641           tst_posix_strerror_r_type_arg3="$arg3"
38642
38643 fi
38644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38645       fi
38646     done
38647     case "$tst_posix_strerror_r_type_arg3" in
38648       unknown)
38649         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38650 $as_echo "no" >&6; }
38651         tst_posix_strerror_r="no"
38652         ;;
38653       *)
38654         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38655 $as_echo "yes" >&6; }
38656         tst_posix_strerror_r="yes"
38657         ;;
38658     esac
38659   fi
38660   #
38661     if test "x$cross_compiling" != "xyes" &&
38662     test "$tst_posix_strerror_r" = "yes"; then
38663     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38664 $as_echo_n "checking if strerror_r seems to work... " >&6; }
38665     if test "$cross_compiling" = yes; then :
38666   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38668 as_fn_error $? "cannot run test program while cross compiling
38669 See \`config.log' for more details" "$LINENO" 5; }
38670 else
38671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38672 /* end confdefs.h.  */
38673
38674
38675         $curl_includes_stdlib
38676         $curl_includes_string
38677 #       include <errno.h>
38678
38679 int main (void)
38680 {
38681
38682         char buffer[1024];
38683         int error = 1;
38684         buffer[0] = '\0';
38685         error = strerror_r(EACCES, buffer, sizeof(buffer));
38686         if(error)
38687           exit(1); /* fail */
38688         if(buffer[0] == '\0')
38689           exit(1); /* fail */
38690         else
38691           exit(0);
38692
38693  ;
38694  return 0;
38695 }
38696
38697 _ACEOF
38698 if ac_fn_c_try_run "$LINENO"; then :
38699
38700       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38701 $as_echo "yes" >&6; }
38702       tst_works_posix_strerror_r="yes"
38703
38704 else
38705
38706       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38707 $as_echo "no" >&6; }
38708       tst_works_posix_strerror_r="no"
38709
38710 fi
38711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38712   conftest.$ac_objext conftest.beam conftest.$ac_ext
38713 fi
38714
38715   fi
38716   #
38717   if test "$tst_works_glibc_strerror_r" = "yes"; then
38718     tst_posix_strerror_r="no"
38719   fi
38720   if test "$tst_works_posix_strerror_r" = "yes"; then
38721     tst_glibc_strerror_r="no"
38722   fi
38723   if test "$tst_glibc_strerror_r" = "yes" &&
38724     test "$tst_works_glibc_strerror_r" != "no" &&
38725     test "$tst_posix_strerror_r" != "yes"; then
38726     tst_allow_strerror_r="check"
38727   fi
38728   if test "$tst_posix_strerror_r" = "yes" &&
38729     test "$tst_works_posix_strerror_r" != "no" &&
38730     test "$tst_glibc_strerror_r" != "yes"; then
38731     tst_allow_strerror_r="check"
38732   fi
38733   if test "$tst_allow_strerror_r" = "check"; then
38734     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
38735 $as_echo_n "checking if strerror_r usage allowed... " >&6; }
38736     if test "x$curl_disallow_strerror_r" != "xyes"; then
38737       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38738 $as_echo "yes" >&6; }
38739       tst_allow_strerror_r="yes"
38740     else
38741       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38742 $as_echo "no" >&6; }
38743       tst_allow_strerror_r="no"
38744     fi
38745   fi
38746   #
38747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
38748 $as_echo_n "checking if strerror_r might be used... " >&6; }
38749   if test "$tst_links_strerror_r" = "yes" &&
38750      test "$tst_proto_strerror_r" = "yes" &&
38751      test "$tst_compi_strerror_r" = "yes" &&
38752      test "$tst_allow_strerror_r" = "yes"; then
38753     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38754 $as_echo "yes" >&6; }
38755     if test "$tst_glibc_strerror_r" = "yes"; then
38756
38757 cat >>confdefs.h <<_ACEOF
38758 #define HAVE_STRERROR_R 1
38759 _ACEOF
38760
38761
38762 cat >>confdefs.h <<_ACEOF
38763 #define HAVE_GLIBC_STRERROR_R 1
38764 _ACEOF
38765
38766
38767 cat >>confdefs.h <<_ACEOF
38768 #define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
38769 _ACEOF
38770
38771     fi
38772     if test "$tst_posix_strerror_r" = "yes"; then
38773
38774 cat >>confdefs.h <<_ACEOF
38775 #define HAVE_STRERROR_R 1
38776 _ACEOF
38777
38778
38779 cat >>confdefs.h <<_ACEOF
38780 #define HAVE_POSIX_STRERROR_R 1
38781 _ACEOF
38782
38783
38784 cat >>confdefs.h <<_ACEOF
38785 #define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
38786 _ACEOF
38787
38788     fi
38789     curl_cv_func_strerror_r="yes"
38790   else
38791     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38792 $as_echo "no" >&6; }
38793     curl_cv_func_strerror_r="no"
38794   fi
38795   #
38796   if test "$tst_compi_strerror_r" = "yes" &&
38797      test "$tst_allow_strerror_r" = "unknown"; then
38798     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
38799 $as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
38800   fi
38801   #
38802
38803
38804     #
38805   tst_links_stricmp="unknown"
38806   tst_proto_stricmp="unknown"
38807   tst_compi_stricmp="unknown"
38808   tst_allow_stricmp="unknown"
38809   #
38810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
38811 $as_echo_n "checking if stricmp can be linked... " >&6; }
38812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38813 /* end confdefs.h.  */
38814
38815
38816 #define stricmp innocuous_stricmp
38817 #ifdef __STDC__
38818 # include <limits.h>
38819 #else
38820 # include <assert.h>
38821 #endif
38822 #undef stricmp
38823 #ifdef __cplusplus
38824 extern "C"
38825 #endif
38826 char stricmp ();
38827 #if defined __stub_stricmp || defined __stub___stricmp
38828 choke me
38829 #endif
38830
38831 int main (void)
38832 {
38833 return stricmp ();
38834  ;
38835  return 0;
38836 }
38837
38838 _ACEOF
38839 if ac_fn_c_try_link "$LINENO"; then :
38840
38841     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38842 $as_echo "yes" >&6; }
38843     tst_links_stricmp="yes"
38844
38845 else
38846
38847     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38848 $as_echo "no" >&6; }
38849     tst_links_stricmp="no"
38850
38851 fi
38852 rm -f core conftest.err conftest.$ac_objext \
38853     conftest$ac_exeext conftest.$ac_ext
38854   #
38855   if test "$tst_links_stricmp" = "yes"; then
38856     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
38857 $as_echo_n "checking if stricmp is prototyped... " >&6; }
38858     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38859 /* end confdefs.h.  */
38860
38861       $curl_includes_string
38862
38863 _ACEOF
38864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38865   $EGREP "stricmp" >/dev/null 2>&1; then :
38866
38867       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38868 $as_echo "yes" >&6; }
38869       tst_proto_stricmp="yes"
38870
38871 else
38872
38873       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38874 $as_echo "no" >&6; }
38875       tst_proto_stricmp="no"
38876
38877 fi
38878 rm -f conftest*
38879
38880   fi
38881   #
38882   if test "$tst_proto_stricmp" = "yes"; then
38883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
38884 $as_echo_n "checking if stricmp is compilable... " >&6; }
38885     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38886 /* end confdefs.h.  */
38887
38888
38889         $curl_includes_string
38890
38891 int main (void)
38892 {
38893
38894         if(0 != stricmp(0, 0))
38895           return 1;
38896
38897  ;
38898  return 0;
38899 }
38900
38901 _ACEOF
38902 if ac_fn_c_try_compile "$LINENO"; then :
38903
38904       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38905 $as_echo "yes" >&6; }
38906       tst_compi_stricmp="yes"
38907
38908 else
38909
38910       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38911 $as_echo "no" >&6; }
38912       tst_compi_stricmp="no"
38913
38914 fi
38915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38916   fi
38917   #
38918   if test "$tst_compi_stricmp" = "yes"; then
38919     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
38920 $as_echo_n "checking if stricmp usage allowed... " >&6; }
38921     if test "x$curl_disallow_stricmp" != "xyes"; then
38922       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38923 $as_echo "yes" >&6; }
38924       tst_allow_stricmp="yes"
38925     else
38926       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38927 $as_echo "no" >&6; }
38928       tst_allow_stricmp="no"
38929     fi
38930   fi
38931   #
38932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
38933 $as_echo_n "checking if stricmp might be used... " >&6; }
38934   if test "$tst_links_stricmp" = "yes" &&
38935      test "$tst_proto_stricmp" = "yes" &&
38936      test "$tst_compi_stricmp" = "yes" &&
38937      test "$tst_allow_stricmp" = "yes"; then
38938     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38939 $as_echo "yes" >&6; }
38940
38941 cat >>confdefs.h <<_ACEOF
38942 #define HAVE_STRICMP 1
38943 _ACEOF
38944
38945     curl_cv_func_stricmp="yes"
38946   else
38947     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38948 $as_echo "no" >&6; }
38949     curl_cv_func_stricmp="no"
38950   fi
38951
38952
38953     #
38954   tst_links_strncasecmp="unknown"
38955   tst_proto_strncasecmp="unknown"
38956   tst_compi_strncasecmp="unknown"
38957   tst_allow_strncasecmp="unknown"
38958   #
38959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
38960 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
38961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38962 /* end confdefs.h.  */
38963
38964
38965 #define strncasecmp innocuous_strncasecmp
38966 #ifdef __STDC__
38967 # include <limits.h>
38968 #else
38969 # include <assert.h>
38970 #endif
38971 #undef strncasecmp
38972 #ifdef __cplusplus
38973 extern "C"
38974 #endif
38975 char strncasecmp ();
38976 #if defined __stub_strncasecmp || defined __stub___strncasecmp
38977 choke me
38978 #endif
38979
38980 int main (void)
38981 {
38982 return strncasecmp ();
38983  ;
38984  return 0;
38985 }
38986
38987 _ACEOF
38988 if ac_fn_c_try_link "$LINENO"; then :
38989
38990     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38991 $as_echo "yes" >&6; }
38992     tst_links_strncasecmp="yes"
38993
38994 else
38995
38996     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38997 $as_echo "no" >&6; }
38998     tst_links_strncasecmp="no"
38999
39000 fi
39001 rm -f core conftest.err conftest.$ac_objext \
39002     conftest$ac_exeext conftest.$ac_ext
39003   #
39004   if test "$tst_links_strncasecmp" = "yes"; then
39005     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
39006 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
39007     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39008 /* end confdefs.h.  */
39009
39010       $curl_includes_string
39011
39012 _ACEOF
39013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39014   $EGREP "strncasecmp" >/dev/null 2>&1; then :
39015
39016       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39017 $as_echo "yes" >&6; }
39018       tst_proto_strncasecmp="yes"
39019
39020 else
39021
39022       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39023 $as_echo "no" >&6; }
39024       tst_proto_strncasecmp="no"
39025
39026 fi
39027 rm -f conftest*
39028
39029   fi
39030   #
39031   if test "$tst_proto_strncasecmp" = "yes"; then
39032     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
39033 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
39034     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39035 /* end confdefs.h.  */
39036
39037
39038         $curl_includes_string
39039
39040 int main (void)
39041 {
39042
39043         if(0 != strncasecmp(0, 0, 0))
39044           return 1;
39045
39046  ;
39047  return 0;
39048 }
39049
39050 _ACEOF
39051 if ac_fn_c_try_compile "$LINENO"; then :
39052
39053       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39054 $as_echo "yes" >&6; }
39055       tst_compi_strncasecmp="yes"
39056
39057 else
39058
39059       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39060 $as_echo "no" >&6; }
39061       tst_compi_strncasecmp="no"
39062
39063 fi
39064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39065   fi
39066   #
39067   if test "$tst_compi_strncasecmp" = "yes"; then
39068     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
39069 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
39070     if test "x$curl_disallow_strncasecmp" != "xyes"; then
39071       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39072 $as_echo "yes" >&6; }
39073       tst_allow_strncasecmp="yes"
39074     else
39075       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39076 $as_echo "no" >&6; }
39077       tst_allow_strncasecmp="no"
39078     fi
39079   fi
39080   #
39081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
39082 $as_echo_n "checking if strncasecmp might be used... " >&6; }
39083   if test "$tst_links_strncasecmp" = "yes" &&
39084      test "$tst_proto_strncasecmp" = "yes" &&
39085      test "$tst_compi_strncasecmp" = "yes" &&
39086      test "$tst_allow_strncasecmp" = "yes"; then
39087     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39088 $as_echo "yes" >&6; }
39089
39090 cat >>confdefs.h <<_ACEOF
39091 #define HAVE_STRNCASECMP 1
39092 _ACEOF
39093
39094     curl_cv_func_strncasecmp="yes"
39095   else
39096     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39097 $as_echo "no" >&6; }
39098     curl_cv_func_strncasecmp="no"
39099   fi
39100
39101
39102     #
39103   tst_links_strncmpi="unknown"
39104   tst_proto_strncmpi="unknown"
39105   tst_compi_strncmpi="unknown"
39106   tst_allow_strncmpi="unknown"
39107   #
39108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
39109 $as_echo_n "checking if strncmpi can be linked... " >&6; }
39110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39111 /* end confdefs.h.  */
39112
39113
39114 #define strncmpi innocuous_strncmpi
39115 #ifdef __STDC__
39116 # include <limits.h>
39117 #else
39118 # include <assert.h>
39119 #endif
39120 #undef strncmpi
39121 #ifdef __cplusplus
39122 extern "C"
39123 #endif
39124 char strncmpi ();
39125 #if defined __stub_strncmpi || defined __stub___strncmpi
39126 choke me
39127 #endif
39128
39129 int main (void)
39130 {
39131 return strncmpi ();
39132  ;
39133  return 0;
39134 }
39135
39136 _ACEOF
39137 if ac_fn_c_try_link "$LINENO"; then :
39138
39139     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39140 $as_echo "yes" >&6; }
39141     tst_links_strncmpi="yes"
39142
39143 else
39144
39145     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39146 $as_echo "no" >&6; }
39147     tst_links_strncmpi="no"
39148
39149 fi
39150 rm -f core conftest.err conftest.$ac_objext \
39151     conftest$ac_exeext conftest.$ac_ext
39152   #
39153   if test "$tst_links_strncmpi" = "yes"; then
39154     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
39155 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
39156     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39157 /* end confdefs.h.  */
39158
39159       $curl_includes_string
39160
39161 _ACEOF
39162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39163   $EGREP "strncmpi" >/dev/null 2>&1; then :
39164
39165       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39166 $as_echo "yes" >&6; }
39167       tst_proto_strncmpi="yes"
39168
39169 else
39170
39171       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39172 $as_echo "no" >&6; }
39173       tst_proto_strncmpi="no"
39174
39175 fi
39176 rm -f conftest*
39177
39178   fi
39179   #
39180   if test "$tst_proto_strncmpi" = "yes"; then
39181     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
39182 $as_echo_n "checking if strncmpi is compilable... " >&6; }
39183     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39184 /* end confdefs.h.  */
39185
39186
39187         $curl_includes_string
39188
39189 int main (void)
39190 {
39191
39192         if(0 != strncmpi(0, 0))
39193           return 1;
39194
39195  ;
39196  return 0;
39197 }
39198
39199 _ACEOF
39200 if ac_fn_c_try_compile "$LINENO"; then :
39201
39202       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39203 $as_echo "yes" >&6; }
39204       tst_compi_strncmpi="yes"
39205
39206 else
39207
39208       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39209 $as_echo "no" >&6; }
39210       tst_compi_strncmpi="no"
39211
39212 fi
39213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39214   fi
39215   #
39216   if test "$tst_compi_strncmpi" = "yes"; then
39217     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
39218 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
39219     if test "x$curl_disallow_strncmpi" != "xyes"; then
39220       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39221 $as_echo "yes" >&6; }
39222       tst_allow_strncmpi="yes"
39223     else
39224       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39225 $as_echo "no" >&6; }
39226       tst_allow_strncmpi="no"
39227     fi
39228   fi
39229   #
39230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
39231 $as_echo_n "checking if strncmpi might be used... " >&6; }
39232   if test "$tst_links_strncmpi" = "yes" &&
39233      test "$tst_proto_strncmpi" = "yes" &&
39234      test "$tst_compi_strncmpi" = "yes" &&
39235      test "$tst_allow_strncmpi" = "yes"; then
39236     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39237 $as_echo "yes" >&6; }
39238
39239 cat >>confdefs.h <<_ACEOF
39240 #define HAVE_STRNCMPI 1
39241 _ACEOF
39242
39243     curl_cv_func_strncmpi="yes"
39244   else
39245     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39246 $as_echo "no" >&6; }
39247     curl_cv_func_strncmpi="no"
39248   fi
39249
39250
39251     #
39252   tst_links_strnicmp="unknown"
39253   tst_proto_strnicmp="unknown"
39254   tst_compi_strnicmp="unknown"
39255   tst_allow_strnicmp="unknown"
39256   #
39257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
39258 $as_echo_n "checking if strnicmp can be linked... " >&6; }
39259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39260 /* end confdefs.h.  */
39261
39262
39263 #define strnicmp innocuous_strnicmp
39264 #ifdef __STDC__
39265 # include <limits.h>
39266 #else
39267 # include <assert.h>
39268 #endif
39269 #undef strnicmp
39270 #ifdef __cplusplus
39271 extern "C"
39272 #endif
39273 char strnicmp ();
39274 #if defined __stub_strnicmp || defined __stub___strnicmp
39275 choke me
39276 #endif
39277
39278 int main (void)
39279 {
39280 return strnicmp ();
39281  ;
39282  return 0;
39283 }
39284
39285 _ACEOF
39286 if ac_fn_c_try_link "$LINENO"; then :
39287
39288     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39289 $as_echo "yes" >&6; }
39290     tst_links_strnicmp="yes"
39291
39292 else
39293
39294     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39295 $as_echo "no" >&6; }
39296     tst_links_strnicmp="no"
39297
39298 fi
39299 rm -f core conftest.err conftest.$ac_objext \
39300     conftest$ac_exeext conftest.$ac_ext
39301   #
39302   if test "$tst_links_strnicmp" = "yes"; then
39303     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
39304 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
39305     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39306 /* end confdefs.h.  */
39307
39308       $curl_includes_string
39309
39310 _ACEOF
39311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39312   $EGREP "strnicmp" >/dev/null 2>&1; then :
39313
39314       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39315 $as_echo "yes" >&6; }
39316       tst_proto_strnicmp="yes"
39317
39318 else
39319
39320       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39321 $as_echo "no" >&6; }
39322       tst_proto_strnicmp="no"
39323
39324 fi
39325 rm -f conftest*
39326
39327   fi
39328   #
39329   if test "$tst_proto_strnicmp" = "yes"; then
39330     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
39331 $as_echo_n "checking if strnicmp is compilable... " >&6; }
39332     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39333 /* end confdefs.h.  */
39334
39335
39336         $curl_includes_string
39337
39338 int main (void)
39339 {
39340
39341         if(0 != strnicmp(0, 0))
39342           return 1;
39343
39344  ;
39345  return 0;
39346 }
39347
39348 _ACEOF
39349 if ac_fn_c_try_compile "$LINENO"; then :
39350
39351       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39352 $as_echo "yes" >&6; }
39353       tst_compi_strnicmp="yes"
39354
39355 else
39356
39357       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39358 $as_echo "no" >&6; }
39359       tst_compi_strnicmp="no"
39360
39361 fi
39362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39363   fi
39364   #
39365   if test "$tst_compi_strnicmp" = "yes"; then
39366     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
39367 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
39368     if test "x$curl_disallow_strnicmp" != "xyes"; then
39369       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39370 $as_echo "yes" >&6; }
39371       tst_allow_strnicmp="yes"
39372     else
39373       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39374 $as_echo "no" >&6; }
39375       tst_allow_strnicmp="no"
39376     fi
39377   fi
39378   #
39379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
39380 $as_echo_n "checking if strnicmp might be used... " >&6; }
39381   if test "$tst_links_strnicmp" = "yes" &&
39382      test "$tst_proto_strnicmp" = "yes" &&
39383      test "$tst_compi_strnicmp" = "yes" &&
39384      test "$tst_allow_strnicmp" = "yes"; then
39385     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39386 $as_echo "yes" >&6; }
39387
39388 cat >>confdefs.h <<_ACEOF
39389 #define HAVE_STRNICMP 1
39390 _ACEOF
39391
39392     curl_cv_func_strnicmp="yes"
39393   else
39394     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39395 $as_echo "no" >&6; }
39396     curl_cv_func_strnicmp="no"
39397   fi
39398
39399
39400     #
39401   tst_links_strstr="unknown"
39402   tst_proto_strstr="unknown"
39403   tst_compi_strstr="unknown"
39404   tst_allow_strstr="unknown"
39405   #
39406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
39407 $as_echo_n "checking if strstr can be linked... " >&6; }
39408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39409 /* end confdefs.h.  */
39410
39411
39412 #define strstr innocuous_strstr
39413 #ifdef __STDC__
39414 # include <limits.h>
39415 #else
39416 # include <assert.h>
39417 #endif
39418 #undef strstr
39419 #ifdef __cplusplus
39420 extern "C"
39421 #endif
39422 char strstr ();
39423 #if defined __stub_strstr || defined __stub___strstr
39424 choke me
39425 #endif
39426
39427 int main (void)
39428 {
39429 return strstr ();
39430  ;
39431  return 0;
39432 }
39433
39434 _ACEOF
39435 if ac_fn_c_try_link "$LINENO"; then :
39436
39437     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39438 $as_echo "yes" >&6; }
39439     tst_links_strstr="yes"
39440
39441 else
39442
39443     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39444 $as_echo "no" >&6; }
39445     tst_links_strstr="no"
39446
39447 fi
39448 rm -f core conftest.err conftest.$ac_objext \
39449     conftest$ac_exeext conftest.$ac_ext
39450   #
39451   if test "$tst_links_strstr" = "yes"; then
39452     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
39453 $as_echo_n "checking if strstr is prototyped... " >&6; }
39454     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39455 /* end confdefs.h.  */
39456
39457       $curl_includes_string
39458
39459 _ACEOF
39460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39461   $EGREP "strstr" >/dev/null 2>&1; then :
39462
39463       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39464 $as_echo "yes" >&6; }
39465       tst_proto_strstr="yes"
39466
39467 else
39468
39469       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39470 $as_echo "no" >&6; }
39471       tst_proto_strstr="no"
39472
39473 fi
39474 rm -f conftest*
39475
39476   fi
39477   #
39478   if test "$tst_proto_strstr" = "yes"; then
39479     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
39480 $as_echo_n "checking if strstr is compilable... " >&6; }
39481     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39482 /* end confdefs.h.  */
39483
39484
39485         $curl_includes_string
39486
39487 int main (void)
39488 {
39489
39490         if(0 != strstr(0, 0))
39491           return 1;
39492
39493  ;
39494  return 0;
39495 }
39496
39497 _ACEOF
39498 if ac_fn_c_try_compile "$LINENO"; then :
39499
39500       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39501 $as_echo "yes" >&6; }
39502       tst_compi_strstr="yes"
39503
39504 else
39505
39506       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39507 $as_echo "no" >&6; }
39508       tst_compi_strstr="no"
39509
39510 fi
39511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39512   fi
39513   #
39514   if test "$tst_compi_strstr" = "yes"; then
39515     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
39516 $as_echo_n "checking if strstr usage allowed... " >&6; }
39517     if test "x$curl_disallow_strstr" != "xyes"; then
39518       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39519 $as_echo "yes" >&6; }
39520       tst_allow_strstr="yes"
39521     else
39522       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39523 $as_echo "no" >&6; }
39524       tst_allow_strstr="no"
39525     fi
39526   fi
39527   #
39528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
39529 $as_echo_n "checking if strstr might be used... " >&6; }
39530   if test "$tst_links_strstr" = "yes" &&
39531      test "$tst_proto_strstr" = "yes" &&
39532      test "$tst_compi_strstr" = "yes" &&
39533      test "$tst_allow_strstr" = "yes"; then
39534     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39535 $as_echo "yes" >&6; }
39536
39537 cat >>confdefs.h <<_ACEOF
39538 #define HAVE_STRSTR 1
39539 _ACEOF
39540
39541     curl_cv_func_strstr="yes"
39542   else
39543     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39544 $as_echo "no" >&6; }
39545     curl_cv_func_strstr="no"
39546   fi
39547
39548
39549     #
39550   tst_links_strtok_r="unknown"
39551   tst_proto_strtok_r="unknown"
39552   tst_compi_strtok_r="unknown"
39553   tst_allow_strtok_r="unknown"
39554   #
39555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
39556 $as_echo_n "checking if strtok_r can be linked... " >&6; }
39557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39558 /* end confdefs.h.  */
39559
39560
39561 #define strtok_r innocuous_strtok_r
39562 #ifdef __STDC__
39563 # include <limits.h>
39564 #else
39565 # include <assert.h>
39566 #endif
39567 #undef strtok_r
39568 #ifdef __cplusplus
39569 extern "C"
39570 #endif
39571 char strtok_r ();
39572 #if defined __stub_strtok_r || defined __stub___strtok_r
39573 choke me
39574 #endif
39575
39576 int main (void)
39577 {
39578 return strtok_r ();
39579  ;
39580  return 0;
39581 }
39582
39583 _ACEOF
39584 if ac_fn_c_try_link "$LINENO"; then :
39585
39586     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39587 $as_echo "yes" >&6; }
39588     tst_links_strtok_r="yes"
39589
39590 else
39591
39592     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39593 $as_echo "no" >&6; }
39594     tst_links_strtok_r="no"
39595
39596 fi
39597 rm -f core conftest.err conftest.$ac_objext \
39598     conftest$ac_exeext conftest.$ac_ext
39599   #
39600   if test "$tst_links_strtok_r" = "yes"; then
39601     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
39602 $as_echo_n "checking if strtok_r is prototyped... " >&6; }
39603     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39604 /* end confdefs.h.  */
39605
39606       $curl_includes_string
39607
39608 _ACEOF
39609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39610   $EGREP "strtok_r" >/dev/null 2>&1; then :
39611
39612       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39613 $as_echo "yes" >&6; }
39614       tst_proto_strtok_r="yes"
39615
39616 else
39617
39618       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39619 $as_echo "no" >&6; }
39620       tst_proto_strtok_r="no"
39621
39622 fi
39623 rm -f conftest*
39624
39625   fi
39626   #
39627   if test "$tst_proto_strtok_r" = "yes"; then
39628     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
39629 $as_echo_n "checking if strtok_r is compilable... " >&6; }
39630     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39631 /* end confdefs.h.  */
39632
39633
39634         $curl_includes_string
39635
39636 int main (void)
39637 {
39638
39639         if(0 != strtok_r(0, 0, 0))
39640           return 1;
39641
39642  ;
39643  return 0;
39644 }
39645
39646 _ACEOF
39647 if ac_fn_c_try_compile "$LINENO"; then :
39648
39649       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39650 $as_echo "yes" >&6; }
39651       tst_compi_strtok_r="yes"
39652
39653 else
39654
39655       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39656 $as_echo "no" >&6; }
39657       tst_compi_strtok_r="no"
39658
39659 fi
39660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39661   fi
39662   #
39663   if test "$tst_compi_strtok_r" = "yes"; then
39664     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
39665 $as_echo_n "checking if strtok_r usage allowed... " >&6; }
39666     if test "x$curl_disallow_strtok_r" != "xyes"; then
39667       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39668 $as_echo "yes" >&6; }
39669       tst_allow_strtok_r="yes"
39670     else
39671       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39672 $as_echo "no" >&6; }
39673       tst_allow_strtok_r="no"
39674     fi
39675   fi
39676   #
39677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
39678 $as_echo_n "checking if strtok_r might be used... " >&6; }
39679   if test "$tst_links_strtok_r" = "yes" &&
39680      test "$tst_proto_strtok_r" = "yes" &&
39681      test "$tst_compi_strtok_r" = "yes" &&
39682      test "$tst_allow_strtok_r" = "yes"; then
39683     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39684 $as_echo "yes" >&6; }
39685
39686 cat >>confdefs.h <<_ACEOF
39687 #define HAVE_STRTOK_R 1
39688 _ACEOF
39689
39690     curl_cv_func_strtok_r="yes"
39691   else
39692     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39693 $as_echo "no" >&6; }
39694     curl_cv_func_strtok_r="no"
39695   fi
39696
39697
39698     #
39699   tst_links_strtoll="unknown"
39700   tst_proto_strtoll="unknown"
39701   tst_compi_strtoll="unknown"
39702   tst_allow_strtoll="unknown"
39703   #
39704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
39705 $as_echo_n "checking if strtoll can be linked... " >&6; }
39706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39707 /* end confdefs.h.  */
39708
39709
39710 #define strtoll innocuous_strtoll
39711 #ifdef __STDC__
39712 # include <limits.h>
39713 #else
39714 # include <assert.h>
39715 #endif
39716 #undef strtoll
39717 #ifdef __cplusplus
39718 extern "C"
39719 #endif
39720 char strtoll ();
39721 #if defined __stub_strtoll || defined __stub___strtoll
39722 choke me
39723 #endif
39724
39725 int main (void)
39726 {
39727 return strtoll ();
39728  ;
39729  return 0;
39730 }
39731
39732 _ACEOF
39733 if ac_fn_c_try_link "$LINENO"; then :
39734
39735     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39736 $as_echo "yes" >&6; }
39737     tst_links_strtoll="yes"
39738
39739 else
39740
39741     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39742 $as_echo "no" >&6; }
39743     tst_links_strtoll="no"
39744
39745 fi
39746 rm -f core conftest.err conftest.$ac_objext \
39747     conftest$ac_exeext conftest.$ac_ext
39748   #
39749   if test "$tst_links_strtoll" = "yes"; then
39750     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
39751 $as_echo_n "checking if strtoll is prototyped... " >&6; }
39752     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39753 /* end confdefs.h.  */
39754
39755       $curl_includes_stdlib
39756
39757 _ACEOF
39758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39759   $EGREP "strtoll" >/dev/null 2>&1; then :
39760
39761       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39762 $as_echo "yes" >&6; }
39763       tst_proto_strtoll="yes"
39764
39765 else
39766
39767       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39768 $as_echo "no" >&6; }
39769       tst_proto_strtoll="no"
39770
39771 fi
39772 rm -f conftest*
39773
39774   fi
39775   #
39776   if test "$tst_proto_strtoll" = "yes"; then
39777     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
39778 $as_echo_n "checking if strtoll is compilable... " >&6; }
39779     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39780 /* end confdefs.h.  */
39781
39782
39783         $curl_includes_stdlib
39784
39785 int main (void)
39786 {
39787
39788         if(0 != strtoll(0, 0, 0))
39789           return 1;
39790
39791  ;
39792  return 0;
39793 }
39794
39795 _ACEOF
39796 if ac_fn_c_try_compile "$LINENO"; then :
39797
39798       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39799 $as_echo "yes" >&6; }
39800       tst_compi_strtoll="yes"
39801
39802 else
39803
39804       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39805 $as_echo "no" >&6; }
39806       tst_compi_strtoll="no"
39807
39808 fi
39809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39810   fi
39811   #
39812   if test "$tst_compi_strtoll" = "yes"; then
39813     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
39814 $as_echo_n "checking if strtoll usage allowed... " >&6; }
39815     if test "x$curl_disallow_strtoll" != "xyes"; then
39816       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39817 $as_echo "yes" >&6; }
39818       tst_allow_strtoll="yes"
39819     else
39820       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39821 $as_echo "no" >&6; }
39822       tst_allow_strtoll="no"
39823     fi
39824   fi
39825   #
39826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
39827 $as_echo_n "checking if strtoll might be used... " >&6; }
39828   if test "$tst_links_strtoll" = "yes" &&
39829      test "$tst_proto_strtoll" = "yes" &&
39830      test "$tst_compi_strtoll" = "yes" &&
39831      test "$tst_allow_strtoll" = "yes"; then
39832     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39833 $as_echo "yes" >&6; }
39834
39835 cat >>confdefs.h <<_ACEOF
39836 #define HAVE_STRTOLL 1
39837 _ACEOF
39838
39839     curl_cv_func_strtoll="yes"
39840   else
39841     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39842 $as_echo "no" >&6; }
39843     curl_cv_func_strtoll="no"
39844   fi
39845
39846
39847 curl_includes_sys_uio="\
39848 /* includes start */
39849 #ifdef HAVE_SYS_TYPES_H
39850 #  include <sys/types.h>
39851 #endif
39852 #ifdef HAVE_SYS_UIO_H
39853 #  include <sys/uio.h>
39854 #endif
39855 /* includes end */"
39856   for ac_header in sys/types.h sys/uio.h
39857 do :
39858   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39859 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
39860 "
39861 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39862   cat >>confdefs.h <<_ACEOF
39863 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39864 _ACEOF
39865
39866 fi
39867
39868 done
39869
39870
39871
39872     #
39873   tst_links_writev="unknown"
39874   tst_proto_writev="unknown"
39875   tst_compi_writev="unknown"
39876   tst_allow_writev="unknown"
39877   #
39878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
39879 $as_echo_n "checking if writev can be linked... " >&6; }
39880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39881 /* end confdefs.h.  */
39882
39883
39884 #define writev innocuous_writev
39885 #ifdef __STDC__
39886 # include <limits.h>
39887 #else
39888 # include <assert.h>
39889 #endif
39890 #undef writev
39891 #ifdef __cplusplus
39892 extern "C"
39893 #endif
39894 char writev ();
39895 #if defined __stub_writev || defined __stub___writev
39896 choke me
39897 #endif
39898
39899 int main (void)
39900 {
39901 return writev ();
39902  ;
39903  return 0;
39904 }
39905
39906 _ACEOF
39907 if ac_fn_c_try_link "$LINENO"; then :
39908
39909     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39910 $as_echo "yes" >&6; }
39911     tst_links_writev="yes"
39912
39913 else
39914
39915     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39916 $as_echo "no" >&6; }
39917     tst_links_writev="no"
39918
39919 fi
39920 rm -f core conftest.err conftest.$ac_objext \
39921     conftest$ac_exeext conftest.$ac_ext
39922   #
39923   if test "$tst_links_writev" = "yes"; then
39924     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
39925 $as_echo_n "checking if writev is prototyped... " >&6; }
39926     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39927 /* end confdefs.h.  */
39928
39929       $curl_includes_sys_uio
39930
39931 _ACEOF
39932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39933   $EGREP "writev" >/dev/null 2>&1; then :
39934
39935       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39936 $as_echo "yes" >&6; }
39937       tst_proto_writev="yes"
39938
39939 else
39940
39941       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39942 $as_echo "no" >&6; }
39943       tst_proto_writev="no"
39944
39945 fi
39946 rm -f conftest*
39947
39948   fi
39949   #
39950   if test "$tst_proto_writev" = "yes"; then
39951     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
39952 $as_echo_n "checking if writev is compilable... " >&6; }
39953     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39954 /* end confdefs.h.  */
39955
39956
39957         $curl_includes_sys_uio
39958
39959 int main (void)
39960 {
39961
39962         if(0 != writev(0, 0, 0))
39963           return 1;
39964
39965  ;
39966  return 0;
39967 }
39968
39969 _ACEOF
39970 if ac_fn_c_try_compile "$LINENO"; then :
39971
39972       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39973 $as_echo "yes" >&6; }
39974       tst_compi_writev="yes"
39975
39976 else
39977
39978       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39979 $as_echo "no" >&6; }
39980       tst_compi_writev="no"
39981
39982 fi
39983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39984   fi
39985   #
39986   if test "$tst_compi_writev" = "yes"; then
39987     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
39988 $as_echo_n "checking if writev usage allowed... " >&6; }
39989     if test "x$curl_disallow_writev" != "xyes"; then
39990       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39991 $as_echo "yes" >&6; }
39992       tst_allow_writev="yes"
39993     else
39994       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39995 $as_echo "no" >&6; }
39996       tst_allow_writev="no"
39997     fi
39998   fi
39999   #
40000   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
40001 $as_echo_n "checking if writev might be used... " >&6; }
40002   if test "$tst_links_writev" = "yes" &&
40003      test "$tst_proto_writev" = "yes" &&
40004      test "$tst_compi_writev" = "yes" &&
40005      test "$tst_allow_writev" = "yes"; then
40006     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40007 $as_echo "yes" >&6; }
40008
40009 cat >>confdefs.h <<_ACEOF
40010 #define HAVE_WRITEV 1
40011 _ACEOF
40012
40013     curl_cv_func_writev="yes"
40014   else
40015     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40016 $as_echo "no" >&6; }
40017     curl_cv_func_writev="no"
40018   fi
40019
40020
40021 case $host in
40022   *msdosdjgpp)
40023      ac_cv_func_pipe=no
40024      skipcheck_pipe=yes
40025      { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
40026 $as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
40027     ;;
40028 esac
40029
40030 for ac_func in geteuid \
40031   getpass_r \
40032   getppid \
40033   getpwuid \
40034   getpwuid_r \
40035   getrlimit \
40036   gettimeofday \
40037   if_nametoindex \
40038   mach_absolute_time \
40039   pipe \
40040   setlocale \
40041   setmode \
40042   setrlimit \
40043   utime \
40044   utimes
40045
40046 do :
40047   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40048 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
40049 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
40050   cat >>confdefs.h <<_ACEOF
40051 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40052 _ACEOF
40053
40054
40055 else
40056
40057   func="$ac_func"
40058   eval skipcheck=\$skipcheck_$func
40059   if test "x$skipcheck" != "xyes"; then
40060     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
40061 $as_echo_n "checking deeper for $func... " >&6; }
40062     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40063 /* end confdefs.h.  */
40064
40065
40066
40067 int main (void)
40068 {
40069
40070         $func ();
40071
40072  ;
40073  return 0;
40074 }
40075
40076 _ACEOF
40077 if ac_fn_c_try_link "$LINENO"; then :
40078
40079       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40080 $as_echo "yes" >&6; }
40081       eval "ac_cv_func_$func=yes"
40082
40083 cat >>confdefs.h <<_ACEOF
40084 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
40085 _ACEOF
40086
40087
40088 else
40089
40090       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
40091 $as_echo "but still no" >&6; }
40092
40093 fi
40094 rm -f core conftest.err conftest.$ac_objext \
40095     conftest$ac_exeext conftest.$ac_ext
40096   fi
40097
40098 fi
40099 done
40100
40101
40102
40103     for ac_header in sys/types.h sys/socket.h netdb.h
40104 do :
40105   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
40106 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
40107 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
40108   cat >>confdefs.h <<_ACEOF
40109 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
40110 _ACEOF
40111
40112 fi
40113
40114 done
40115
40116   #
40117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
40118 $as_echo_n "checking for getnameinfo... " >&6; }
40119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40120 /* end confdefs.h.  */
40121
40122
40123 #define getnameinfo innocuous_getnameinfo
40124 #ifdef __STDC__
40125 # include <limits.h>
40126 #else
40127 # include <assert.h>
40128 #endif
40129 #undef getnameinfo
40130 #ifdef __cplusplus
40131 extern "C"
40132 #endif
40133 char getnameinfo ();
40134 #if defined __stub_getnameinfo || defined __stub___getnameinfo
40135 choke me
40136 #endif
40137
40138 int main (void)
40139 {
40140 return getnameinfo ();
40141  ;
40142  return 0;
40143 }
40144
40145 _ACEOF
40146 if ac_fn_c_try_link "$LINENO"; then :
40147
40148     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40149 $as_echo "yes" >&6; }
40150     curl_cv_getnameinfo="yes"
40151
40152 else
40153
40154     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40155 $as_echo "no" >&6; }
40156     curl_cv_getnameinfo="no"
40157
40158 fi
40159 rm -f core conftest.err conftest.$ac_objext \
40160     conftest$ac_exeext conftest.$ac_ext
40161   #
40162   if test "$curl_cv_getnameinfo" != "yes"; then
40163     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
40164 $as_echo_n "checking deeper for getnameinfo... " >&6; }
40165     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40166 /* end confdefs.h.  */
40167
40168
40169
40170 int main (void)
40171 {
40172
40173         getnameinfo();
40174
40175  ;
40176  return 0;
40177 }
40178
40179 _ACEOF
40180 if ac_fn_c_try_link "$LINENO"; then :
40181
40182       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40183 $as_echo "yes" >&6; }
40184       curl_cv_getnameinfo="yes"
40185
40186 else
40187
40188       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
40189 $as_echo "but still no" >&6; }
40190       curl_cv_getnameinfo="no"
40191
40192 fi
40193 rm -f core conftest.err conftest.$ac_objext \
40194     conftest$ac_exeext conftest.$ac_ext
40195   fi
40196   #
40197   if test "$curl_cv_getnameinfo" != "yes"; then
40198     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
40199 $as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
40200     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40201 /* end confdefs.h.  */
40202
40203
40204 #undef inline
40205 #ifdef HAVE_WINDOWS_H
40206 #ifndef WIN32_LEAN_AND_MEAN
40207 #define WIN32_LEAN_AND_MEAN
40208 #endif
40209 #include <windows.h>
40210 #ifdef HAVE_WINSOCK2_H
40211 #include <winsock2.h>
40212 #ifdef HAVE_WS2TCPIP_H
40213 #include <ws2tcpip.h>
40214 #endif
40215 #endif
40216 #else
40217 #ifdef HAVE_SYS_TYPES_H
40218 #include <sys/types.h>
40219 #endif
40220 #ifdef HAVE_SYS_SOCKET_H
40221 #include <sys/socket.h>
40222 #endif
40223 #ifdef HAVE_NETDB_H
40224 #include <netdb.h>
40225 #endif
40226 #endif
40227
40228 int main (void)
40229 {
40230
40231         getnameinfo(0, 0, 0, 0, 0, 0, 0);
40232
40233  ;
40234  return 0;
40235 }
40236
40237 _ACEOF
40238 if ac_fn_c_try_link "$LINENO"; then :
40239
40240       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40241 $as_echo "yes" >&6; }
40242       curl_cv_getnameinfo="yes"
40243
40244 else
40245
40246       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
40247 $as_echo "but still no" >&6; }
40248       curl_cv_getnameinfo="no"
40249
40250 fi
40251 rm -f core conftest.err conftest.$ac_objext \
40252     conftest$ac_exeext conftest.$ac_ext
40253   fi
40254   #
40255   if test "$curl_cv_getnameinfo" = "yes"; then
40256     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
40257 $as_echo_n "checking types of arguments for getnameinfo... " >&6; }
40258 if ${curl_cv_func_getnameinfo_args+:} false; then :
40259   $as_echo_n "(cached) " >&6
40260 else
40261
40262       curl_cv_func_getnameinfo_args="unknown"
40263       for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
40264         for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
40265           for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
40266             for gni_arg7 in 'int' 'unsigned int'; do
40267               if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
40268                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40269 /* end confdefs.h.  */
40270
40271
40272 #undef inline
40273 #ifdef HAVE_WINDOWS_H
40274 #ifndef WIN32_LEAN_AND_MEAN
40275 #define WIN32_LEAN_AND_MEAN
40276 #endif
40277 #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
40278 #undef _WIN32_WINNT
40279 #define _WIN32_WINNT 0x0501
40280 #endif
40281 #include <windows.h>
40282 #ifdef HAVE_WINSOCK2_H
40283 #include <winsock2.h>
40284 #ifdef HAVE_WS2TCPIP_H
40285 #include <ws2tcpip.h>
40286 #endif
40287 #endif
40288 #define GNICALLCONV WSAAPI
40289 #else
40290 #ifdef HAVE_SYS_TYPES_H
40291 #include <sys/types.h>
40292 #endif
40293 #ifdef HAVE_SYS_SOCKET_H
40294 #include <sys/socket.h>
40295 #endif
40296 #ifdef HAVE_NETDB_H
40297 #include <netdb.h>
40298 #endif
40299 #define GNICALLCONV
40300 #endif
40301                     extern int GNICALLCONV
40302 #ifdef __ANDROID__
40303 __attribute__((overloadable))
40304 #endif
40305                                 getnameinfo($gni_arg1, $gni_arg2,
40306                                            char *, $gni_arg46,
40307                                            char *, $gni_arg46,
40308                                            $gni_arg7);
40309
40310 int main (void)
40311 {
40312
40313                     $gni_arg2 salen=0;
40314                     $gni_arg46 hostlen=0;
40315                     $gni_arg46 servlen=0;
40316                     $gni_arg7 flags=0;
40317                     int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
40318
40319  ;
40320  return 0;
40321 }
40322
40323 _ACEOF
40324 if ac_fn_c_try_compile "$LINENO"; then :
40325
40326                   curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
40327
40328 fi
40329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40330               fi
40331             done
40332           done
40333         done
40334       done
40335
40336 fi
40337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
40338 $as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
40339     if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
40340       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
40341 $as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
40342       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
40343 $as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
40344     else
40345       gni_prev_IFS=$IFS; IFS=','
40346       set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
40347       IFS=$gni_prev_IFS
40348       shift
40349       #
40350       gni_qual_type_arg1=$1
40351       #
40352
40353 cat >>confdefs.h <<_ACEOF
40354 #define GETNAMEINFO_TYPE_ARG2 $2
40355 _ACEOF
40356
40357
40358 cat >>confdefs.h <<_ACEOF
40359 #define GETNAMEINFO_TYPE_ARG46 $3
40360 _ACEOF
40361
40362
40363 cat >>confdefs.h <<_ACEOF
40364 #define GETNAMEINFO_TYPE_ARG7 $4
40365 _ACEOF
40366
40367       #
40368       prev_sh_opts=$-
40369       #
40370       case $prev_sh_opts in
40371         *f*)
40372           ;;
40373         *)
40374           set -f
40375           ;;
40376       esac
40377       #
40378       case "$gni_qual_type_arg1" in
40379         const*)
40380           gni_qual_arg1=const
40381           gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
40382         ;;
40383         *)
40384           gni_qual_arg1=
40385           gni_type_arg1=$gni_qual_type_arg1
40386         ;;
40387       esac
40388       #
40389
40390 cat >>confdefs.h <<_ACEOF
40391 #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
40392 _ACEOF
40393
40394
40395 cat >>confdefs.h <<_ACEOF
40396 #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
40397 _ACEOF
40398
40399       #
40400       case $prev_sh_opts in
40401         *f*)
40402           ;;
40403         *)
40404           set +f
40405           ;;
40406       esac
40407       #
40408
40409 cat >>confdefs.h <<_ACEOF
40410 #define HAVE_GETNAMEINFO 1
40411 _ACEOF
40412
40413       curl_cv_func_getnameinfo="yes"
40414     fi
40415   fi
40416
40417
40418 if test "$ipv6" = "yes"; then
40419   if test "$curl_cv_func_getaddrinfo" = "yes"; then
40420
40421 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
40422
40423     IPV6_ENABLED=1
40424
40425   fi
40426
40427       for ac_header in stdio.h sys/types.h sys/socket.h \
40428                    netdb.h netinet/in.h arpa/inet.h
40429 do :
40430   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
40431 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
40432 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
40433   cat >>confdefs.h <<_ACEOF
40434 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
40435 _ACEOF
40436
40437 fi
40438
40439 done
40440
40441   #
40442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working NI_WITHSCOPEID" >&5
40443 $as_echo_n "checking for working NI_WITHSCOPEID... " >&6; }
40444 if ${curl_cv_working_ni_withscopeid+:} false; then :
40445   $as_echo_n "(cached) " >&6
40446 else
40447
40448     if test "$cross_compiling" = yes; then :
40449
40450       # Program is not run when cross-compiling. So we assume
40451       # NI_WITHSCOPEID will work if we are able to compile it.
40452       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40453 /* end confdefs.h.  */
40454
40455
40456 #include <sys/types.h>
40457 #include <sys/socket.h>
40458 #include <netdb.h>
40459
40460 int main (void)
40461 {
40462
40463           unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
40464
40465  ;
40466  return 0;
40467 }
40468
40469 _ACEOF
40470 if ac_fn_c_try_compile "$LINENO"; then :
40471
40472         curl_cv_working_ni_withscopeid="yes"
40473
40474 else
40475
40476         curl_cv_working_ni_withscopeid="no"
40477
40478 fi
40479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE
40480
40481 else
40482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40483 /* end confdefs.h.  */
40484
40485
40486 #ifdef HAVE_STDLIB_H
40487 #include <stdlib.h>
40488 #endif
40489 #ifdef HAVE_STDIO_H
40490 #include <stdio.h>
40491 #endif
40492 #ifdef HAVE_SYS_TYPES_H
40493 #include <sys/types.h>
40494 #endif
40495 #ifdef HAVE_SYS_SOCKET_H
40496 #include <sys/socket.h>
40497 #endif
40498 #ifdef HAVE_NETDB_H
40499 #include <netdb.h>
40500 #endif
40501 #ifdef HAVE_NETINET_IN_H
40502 #include <netinet/in.h>
40503 #endif
40504 #ifdef HAVE_ARPA_INET_H
40505 #include <arpa/inet.h>
40506 #endif
40507
40508 int main (void)
40509 {
40510
40511 #if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
40512 #ifdef HAVE_STRUCT_SOCKADDR_STORAGE
40513         struct sockaddr_storage sa;
40514 #else
40515         unsigned char sa[256];
40516 #endif
40517         char hostbuf[NI_MAXHOST];
40518         int rc;
40519         GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa);
40520         GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf);
40521         GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
40522         int fd = socket(AF_INET6, SOCK_STREAM, 0);
40523         if(fd < 0) {
40524           perror("socket()");
40525           return 1; /* Error creating socket */
40526         }
40527         rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
40528         if(rc) {
40529           perror("getsockname()");
40530           return 2; /* Error retrieving socket name */
40531         }
40532         rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
40533         if(rc) {
40534           printf("rc = %s\n", gai_strerror(rc));
40535           return 3; /* Error translating socket address */
40536         }
40537         return 0; /* Ok, NI_WITHSCOPEID works */
40538 #else
40539         return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
40540 #endif
40541
40542  ;
40543  return 0;
40544 } # AC-LANG-PROGRAM
40545
40546 _ACEOF
40547 if ac_fn_c_try_run "$LINENO"; then :
40548
40549       # Exit code == 0. Program worked.
40550       curl_cv_working_ni_withscopeid="yes"
40551
40552 else
40553
40554       # Exit code != 0. Program failed.
40555       curl_cv_working_ni_withscopeid="no"
40556
40557 fi
40558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40559   conftest.$ac_objext conftest.beam conftest.$ac_ext
40560 fi
40561  # AC-RUN-IFELSE
40562
40563 fi
40564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_working_ni_withscopeid" >&5
40565 $as_echo "$curl_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK
40566   case "$curl_cv_working_ni_withscopeid" in
40567     yes)
40568
40569 $as_echo "#define HAVE_NI_WITHSCOPEID 1" >>confdefs.h
40570
40571       ;;
40572   esac
40573
40574 fi
40575
40576
40577             #
40578   tst_method="unknown"
40579
40580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
40581 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
40582   if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
40583     tst_method="fcntl O_NONBLOCK"
40584   elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
40585     tst_method="ioctl FIONBIO"
40586   elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
40587     tst_method="ioctlsocket FIONBIO"
40588   elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
40589     tst_method="IoctlSocket FIONBIO"
40590   elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
40591     tst_method="setsockopt SO_NONBLOCK"
40592   fi
40593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
40594 $as_echo "$tst_method" >&6; }
40595   if test "$tst_method" = "unknown"; then
40596     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
40597 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
40598   fi
40599
40600
40601
40602 # Extract the first word of "perl", so it can be a program name with args.
40603 set dummy perl; ac_word=$2
40604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40605 $as_echo_n "checking for $ac_word... " >&6; }
40606 if ${ac_cv_path_PERL+:} false; then :
40607   $as_echo_n "(cached) " >&6
40608 else
40609   case $PERL in
40610   [\\/]* | ?:[\\/]*)
40611   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
40612   ;;
40613   *)
40614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40615 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
40616 for as_dir in $as_dummy
40617 do
40618   IFS=$as_save_IFS
40619   test -z "$as_dir" && as_dir=.
40620     for ac_exec_ext in '' $ac_executable_extensions; do
40621   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40622     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
40623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40624     break 2
40625   fi
40626 done
40627   done
40628 IFS=$as_save_IFS
40629
40630   ;;
40631 esac
40632 fi
40633 PERL=$ac_cv_path_PERL
40634 if test -n "$PERL"; then
40635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
40636 $as_echo "$PERL" >&6; }
40637 else
40638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40639 $as_echo "no" >&6; }
40640 fi
40641
40642
40643
40644
40645 for ac_prog in gnroff nroff
40646 do
40647   # Extract the first word of "$ac_prog", so it can be a program name with args.
40648 set dummy $ac_prog; ac_word=$2
40649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40650 $as_echo_n "checking for $ac_word... " >&6; }
40651 if ${ac_cv_path_NROFF+:} false; then :
40652   $as_echo_n "(cached) " >&6
40653 else
40654   case $NROFF in
40655   [\\/]* | ?:[\\/]*)
40656   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
40657   ;;
40658   *)
40659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40660 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
40661 for as_dir in $as_dummy
40662 do
40663   IFS=$as_save_IFS
40664   test -z "$as_dir" && as_dir=.
40665     for ac_exec_ext in '' $ac_executable_extensions; do
40666   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40667     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
40668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40669     break 2
40670   fi
40671 done
40672   done
40673 IFS=$as_save_IFS
40674
40675   ;;
40676 esac
40677 fi
40678 NROFF=$ac_cv_path_NROFF
40679 if test -n "$NROFF"; then
40680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
40681 $as_echo "$NROFF" >&6; }
40682 else
40683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40684 $as_echo "no" >&6; }
40685 fi
40686
40687
40688   test -n "$NROFF" && break
40689 done
40690
40691
40692
40693 if test -n "$NROFF"; then
40694
40695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
40696 $as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
40697   MANOPT="-man"
40698   mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40699   if test -z "$mancheck"; then
40700     MANOPT="-mandoc"
40701    mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40702     if test -z "$mancheck"; then
40703       MANOPT=""
40704       { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
40705 $as_echo "failed" >&6; }
40706       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
40707 $as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
40708     else
40709       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40710 $as_echo "$MANOPT" >&6; }
40711     fi
40712   else
40713     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40714 $as_echo "$MANOPT" >&6; }
40715   fi
40716
40717 fi
40718
40719 if test -z "$MANOPT"
40720 then
40721       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
40722 $as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
40723   USE_MANUAL="no";
40724 fi
40725
40726
40727 if test "$USE_MANUAL" = "1"; then
40728
40729 $as_echo "#define USE_MANUAL 1" >>confdefs.h
40730
40731   curl_manual_msg="enabled"
40732 fi
40733
40734  if test x"$USE_MANUAL" = x1; then
40735   USE_MANUAL_TRUE=
40736   USE_MANUAL_FALSE='#'
40737 else
40738   USE_MANUAL_TRUE='#'
40739   USE_MANUAL_FALSE=
40740 fi
40741
40742
40743
40744
40745
40746   #
40747   if test "$want_ares" = "yes"; then
40748         clean_CPPFLAGS="$CPPFLAGS"
40749     clean_LDFLAGS="$LDFLAGS"
40750     clean_LIBS="$LIBS"
40751     embedded_ares="unknown"
40752     configure_runpath=`pwd`
40753     embedded_ares_builddir="$configure_runpath/ares"
40754     if test -n "$want_ares_path"; then
40755             ares_CPPFLAGS="-I$want_ares_path/include"
40756       ares_LDFLAGS="-L$want_ares_path/lib"
40757       ares_LIBS="-lcares"
40758     else
40759             if test -d "$srcdir/ares"; then
40760                 embedded_ares="yes"
40761         subdirs="$subdirs ares"
40762
40763                         ares_CPPFLAGS=""
40764         ares_LDFLAGS="-L$embedded_ares_builddir"
40765         ares_LIBS="-lcares"
40766       else
40767                 ares_CPPFLAGS=""
40768         ares_LDFLAGS=""
40769         ares_LIBS="-lcares"
40770       fi
40771     fi
40772     #
40773     CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
40774     LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
40775     LIBS="$ares_LIBS $clean_LIBS"
40776     #
40777     if test "$embedded_ares" != "yes"; then
40778                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
40779 $as_echo_n "checking that c-ares is good and recent enough... " >&6; }
40780       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40781 /* end confdefs.h.  */
40782
40783
40784 #include <ares.h>
40785           /* set of dummy functions in case c-ares was built with debug */
40786           void curl_dofree() { }
40787           void curl_sclose() { }
40788           void curl_domalloc() { }
40789           void curl_docalloc() { }
40790           void curl_socket() { }
40791
40792 int main (void)
40793 {
40794
40795           ares_channel channel;
40796           ares_cancel(channel); /* added in 1.2.0 */
40797           ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
40798           ares_dup(&channel, channel); /* added in 1.6.0 */
40799
40800  ;
40801  return 0;
40802 }
40803
40804 _ACEOF
40805 if ac_fn_c_try_link "$LINENO"; then :
40806
40807         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40808 $as_echo "yes" >&6; }
40809
40810 else
40811
40812         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40813 $as_echo "no" >&6; }
40814         as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
40815                 CPPFLAGS="$clean_CPPFLAGS"
40816         LDFLAGS="$clean_LDFLAGS"
40817         LIBS="$clean_LIBS"
40818         # prevent usage
40819         want_ares="no"
40820
40821 fi
40822 rm -f core conftest.err conftest.$ac_objext \
40823     conftest$ac_exeext conftest.$ac_ext
40824     fi
40825     if test "$want_ares" = "yes"; then
40826
40827 $as_echo "#define USE_ARES 1" >>confdefs.h
40828
40829       USE_ARES=1
40830
40831       curl_res_msg="c-ares"
40832     fi
40833   fi
40834
40835  if test x$embedded_ares = xyes; then
40836   USE_EMBEDDED_ARES_TRUE=
40837   USE_EMBEDDED_ARES_FALSE='#'
40838 else
40839   USE_EMBEDDED_ARES_TRUE='#'
40840   USE_EMBEDDED_ARES_FALSE=
40841 fi
40842
40843
40844 if test "x$curl_cv_native_windows" != "xyes" &&
40845    test "x$enable_shared" = "xyes"; then
40846   build_libhostname=yes
40847 else
40848   build_libhostname=no
40849 fi
40850  if test x$build_libhostname = xyes; then
40851   BUILD_LIBHOSTNAME_TRUE=
40852   BUILD_LIBHOSTNAME_FALSE='#'
40853 else
40854   BUILD_LIBHOSTNAME_TRUE='#'
40855   BUILD_LIBHOSTNAME_FALSE=
40856 fi
40857
40858
40859 if test "x$want_ares" != xyes; then
40860
40861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
40862 $as_echo_n "checking whether to enable the threaded resolver... " >&6; }
40863   OPT_THRES="default"
40864   # Check whether --enable-threaded_resolver was given.
40865 if test "${enable_threaded_resolver+set}" = set; then :
40866   enableval=$enable_threaded_resolver; OPT_THRES=$enableval
40867 fi
40868
40869   case "$OPT_THRES" in
40870     no)
40871             want_thres="no"
40872       ;;
40873     *)
40874             want_thres="yes"
40875       ;;
40876   esac
40877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
40878 $as_echo "$want_thres" >&6; }
40879
40880 fi
40881
40882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
40883 $as_echo_n "checking whether to use POSIX threads for threaded resolver... " >&6; }
40884 # Check whether --enable-pthreads was given.
40885 if test "${enable_pthreads+set}" = set; then :
40886   enableval=$enable_pthreads;  case "$enableval" in
40887   no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40888 $as_echo "no" >&6; }
40889        want_pthreads=no
40890        ;;
40891   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40892 $as_echo "yes" >&6; }
40893        want_pthreads=yes
40894        ;;
40895   esac
40896 else
40897
40898        { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40899 $as_echo "auto" >&6; }
40900        want_pthreads=auto
40901
40902
40903 fi
40904
40905
40906 if test "$want_pthreads" != "no"; then
40907   if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
40908     as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
40909   fi
40910   if test "$dontwant_rt" != "no"; then
40911         if test "$want_pthreads" = "yes"; then
40912       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
40913 $as_echo "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
40914     fi
40915     want_pthreads=no
40916   fi
40917 fi
40918
40919 if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
40920   want_pthreads=no
40921 fi
40922
40923 if test "$want_pthreads" != "no"; then
40924   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
40925 if test "x$ac_cv_header_pthread_h" = xyes; then :
40926
40927 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
40928
40929       save_CFLAGS="$CFLAGS"
40930
40931             ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
40932 if test "x$ac_cv_func_pthread_create" = xyes; then :
40933   USE_THREADS_POSIX=1
40934 fi
40935
40936
40937             if test "$USE_THREADS_POSIX" != "1"
40938       then
40939         CFLAGS="$CFLAGS -pthread"
40940         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
40941 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
40942 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
40943   $as_echo_n "(cached) " >&6
40944 else
40945   ac_check_lib_save_LIBS=$LIBS
40946 LIBS="-lpthread  $LIBS"
40947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40948 /* end confdefs.h.  */
40949
40950
40951 #ifdef __cplusplus
40952 extern "C"
40953 #endif
40954 char pthread_create ();
40955 int main (void)
40956 {
40957 return pthread_create ();
40958  ;
40959  return 0;
40960 }
40961 _ACEOF
40962 if ac_fn_c_try_link "$LINENO"; then :
40963   ac_cv_lib_pthread_pthread_create=yes
40964 else
40965   ac_cv_lib_pthread_pthread_create=no
40966 fi
40967 rm -f core conftest.err conftest.$ac_objext \
40968     conftest$ac_exeext conftest.$ac_ext
40969 LIBS=$ac_check_lib_save_LIBS
40970 fi
40971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
40972 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
40973 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
40974   USE_THREADS_POSIX=1
40975 else
40976    CFLAGS="$save_CFLAGS"
40977 fi
40978
40979       fi
40980
40981       if test "x$USE_THREADS_POSIX" = "x1"
40982       then
40983
40984 $as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
40985
40986         curl_res_msg="POSIX threaded"
40987       fi
40988
40989 fi
40990
40991
40992 fi
40993
40994 if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
40995   if test "$want_pthreads" = "yes"; then
40996     as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
40997   fi
40998     if test "$curl_cv_native_windows" = "yes"; then
40999     USE_THREADS_WIN32=1
41000
41001 $as_echo "#define USE_THREADS_WIN32 1" >>confdefs.h
41002
41003     curl_res_msg="Win32 threaded"
41004   else
41005     as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
41006   fi
41007 fi
41008
41009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
41010 $as_echo_n "checking whether to enable verbose strings... " >&6; }
41011 # Check whether --enable-verbose was given.
41012 if test "${enable_verbose+set}" = set; then :
41013   enableval=$enable_verbose;  case "$enableval" in
41014   no)
41015        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41016 $as_echo "no" >&6; }
41017
41018 $as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
41019
41020        curl_verbose_msg="no"
41021        ;;
41022   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41023 $as_echo "yes" >&6; }
41024        ;;
41025   esac
41026 else
41027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41028 $as_echo "yes" >&6; }
41029
41030 fi
41031
41032
41033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
41034 $as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
41035 # Check whether --enable-sspi was given.
41036 if test "${enable_sspi+set}" = set; then :
41037   enableval=$enable_sspi;  case "$enableval" in
41038   yes)
41039        if test "$curl_cv_native_windows" = "yes"; then
41040          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41041 $as_echo "yes" >&6; }
41042
41043 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
41044
41045          USE_WINDOWS_SSPI=1
41046
41047          curl_sspi_msg="enabled"
41048        else
41049          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41050 $as_echo "no" >&6; }
41051          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
41052 $as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
41053        fi
41054        ;;
41055   *)
41056        if test "x$WINSSL_ENABLED" = "x1"; then
41057          # --with-winssl implies --enable-sspi
41058          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41059 $as_echo "yes" >&6; }
41060        else
41061          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41062 $as_echo "no" >&6; }
41063        fi
41064        ;;
41065   esac
41066 else
41067   if test "x$WINSSL_ENABLED" = "x1"; then
41068          # --with-winssl implies --enable-sspi
41069          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41070 $as_echo "yes" >&6; }
41071        else
41072          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41073 $as_echo "no" >&6; }
41074        fi
41075
41076 fi
41077
41078
41079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
41080 $as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
41081 # Check whether --enable-crypto-auth was given.
41082 if test "${enable_crypto_auth+set}" = set; then :
41083   enableval=$enable_crypto_auth;  case "$enableval" in
41084   no)
41085        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41086 $as_echo "no" >&6; }
41087
41088 $as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
41089
41090        CURL_DISABLE_CRYPTO_AUTH=1
41091        ;;
41092   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41093 $as_echo "yes" >&6; }
41094        ;;
41095   esac
41096 else
41097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41098 $as_echo "yes" >&6; }
41099
41100 fi
41101
41102
41103
41104     OPT_NTLM_WB="default"
41105   # Check whether --enable-ntlm-wb was given.
41106 if test "${enable_ntlm_wb+set}" = set; then :
41107   enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
41108 fi
41109
41110   want_ntlm_wb_file="/usr/bin/ntlm_auth"
41111   case "$OPT_NTLM_WB" in
41112     no)
41113             want_ntlm_wb="no"
41114       ;;
41115     default)
41116             want_ntlm_wb="yes"
41117       ;;
41118     *)
41119             want_ntlm_wb="yes"
41120       if test -n "$enableval" && test "$enableval" != "yes"; then
41121         want_ntlm_wb_file="$enableval"
41122       fi
41123       ;;
41124   esac
41125
41126
41127
41128       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
41129 $as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
41130   if test "$curl_cv_native_windows" = "yes" ||
41131     test "x$SSL_ENABLED" = "x"; then
41132     want_ntlm_wb_file=""
41133     want_ntlm_wb="no"
41134   fi
41135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
41136 $as_echo "$want_ntlm_wb" >&6; }
41137   if test "$want_ntlm_wb" = "yes"; then
41138
41139 $as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
41140
41141
41142 cat >>confdefs.h <<_ACEOF
41143 #define NTLM_WB_FILE "$want_ntlm_wb_file"
41144 _ACEOF
41145
41146     NTLM_WB_ENABLED=1
41147   fi
41148
41149
41150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
41151 $as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
41152 # Check whether --enable-tls-srp was given.
41153 if test "${enable_tls_srp+set}" = set; then :
41154   enableval=$enable_tls_srp;  case "$enableval" in
41155   no)
41156        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41157 $as_echo "no" >&6; }
41158
41159 $as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
41160
41161        want_tls_srp=no
41162        ;;
41163   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41164 $as_echo "yes" >&6; }
41165        want_tls_srp=yes
41166        ;;
41167   esac
41168 else
41169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41170 $as_echo "yes" >&6; }
41171        want_tls_srp=yes
41172
41173 fi
41174
41175
41176 if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
41177
41178 $as_echo "#define USE_TLS_SRP 1" >>confdefs.h
41179
41180    USE_TLS_SRP=1
41181    curl_tls_srp_msg="enabled"
41182 fi
41183
41184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
41185 $as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
41186 # Check whether --enable-unix-sockets was given.
41187 if test "${enable_unix_sockets+set}" = set; then :
41188   enableval=$enable_unix_sockets;  case "$enableval" in
41189   no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41190 $as_echo "no" >&6; }
41191        want_unix_sockets=no
41192        ;;
41193   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41194 $as_echo "yes" >&6; }
41195        want_unix_sockets=yes
41196        ;;
41197   esac
41198 else
41199
41200        { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
41201 $as_echo "auto" >&6; }
41202        want_unix_sockets=auto
41203
41204
41205 fi
41206
41207 if test "x$want_unix_sockets" != "xno"; then
41208   ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
41209     #include <sys/un.h>
41210
41211 "
41212 if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
41213
41214
41215 $as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
41216
41217     USE_UNIX_SOCKETS=1
41218
41219     curl_unix_sockets_msg="enabled"
41220
41221 else
41222
41223     if test "x$want_unix_sockets" = "xyes"; then
41224       as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
41225     fi
41226
41227 fi
41228
41229 fi
41230
41231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
41232 $as_echo_n "checking whether to enable support for cookies... " >&6; }
41233 # Check whether --enable-cookies was given.
41234 if test "${enable_cookies+set}" = set; then :
41235   enableval=$enable_cookies;  case "$enableval" in
41236   no)
41237        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41238 $as_echo "no" >&6; }
41239
41240 $as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
41241
41242        ;;
41243   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41244 $as_echo "yes" >&6; }
41245        ;;
41246   esac
41247 else
41248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41249 $as_echo "yes" >&6; }
41250
41251 fi
41252
41253
41254
41255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
41256 $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
41257   CFLAG_CURL_SYMBOL_HIDING=""
41258   doing_symbol_hiding="no"
41259   if test x"$curl_cv_native_windows" != "xyes" &&
41260     test "$want_symbol_hiding" = "yes" &&
41261     test "$supports_symbol_hiding" = "yes"; then
41262     doing_symbol_hiding="yes"
41263     CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
41264
41265 cat >>confdefs.h <<_ACEOF
41266 #define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
41267 _ACEOF
41268
41269     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41270 $as_echo "yes" >&6; }
41271   else
41272     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41273 $as_echo "no" >&6; }
41274   fi
41275    if test x$doing_symbol_hiding = xyes; then
41276   DOING_CURL_SYMBOL_HIDING_TRUE=
41277   DOING_CURL_SYMBOL_HIDING_FALSE='#'
41278 else
41279   DOING_CURL_SYMBOL_HIDING_TRUE='#'
41280   DOING_CURL_SYMBOL_HIDING_FALSE=
41281 fi
41282
41283
41284
41285
41286 LIBCURL_LIBS=$LIBS
41287
41288
41289
41290
41291
41292 BLANK_AT_MAKETIME=
41293
41294
41295  if test x$cross_compiling = xyes; then
41296   CROSSCOMPILING_TRUE=
41297   CROSSCOMPILING_FALSE='#'
41298 else
41299   CROSSCOMPILING_TRUE='#'
41300   CROSSCOMPILING_FALSE=
41301 fi
41302
41303
41304 ENABLE_SHARED="$enable_shared"
41305
41306
41307 ENABLE_STATIC="$enable_static"
41308
41309
41310
41311
41312 if test "x$OPENSSL_ENABLED" = "x1"; then
41313   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
41314 elif test -n "$SSL_ENABLED"; then
41315   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
41316 fi
41317 if test "x$IPV6_ENABLED" = "x1"; then
41318   SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
41319 fi
41320 if test "x$USE_UNIX_SOCKETS" = "x1"; then
41321   SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
41322 fi
41323 if test "x$HAVE_LIBZ" = "x1"; then
41324   SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
41325 fi
41326 if test "x$HAVE_BROTLI" = "x1"; then
41327   SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
41328 fi
41329 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
41330                             -o "x$USE_THREADS_WIN32" = "x1"; then
41331   SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
41332 fi
41333 if test "x$IDN_ENABLED" = "x1"; then
41334   SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
41335 fi
41336 if test "x$USE_WINDOWS_SSPI" = "x1"; then
41337   SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
41338 fi
41339
41340 if test "x$HAVE_GSSAPI" = "x1"; then
41341   SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
41342 fi
41343
41344 if test "x$curl_psl_msg" = "xyes"; then
41345   SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
41346 fi
41347
41348 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41349     \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41350   SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
41351 fi
41352
41353 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41354     \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41355   SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
41356 fi
41357
41358 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
41359   if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41360       -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
41361       -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1"; then
41362     SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
41363
41364     if test "x$CURL_DISABLE_HTTP" != "x1" -a \
41365         "x$NTLM_WB_ENABLED" = "x1"; then
41366       SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
41367     fi
41368   fi
41369 fi
41370
41371 if test "x$USE_TLS_SRP" = "x1"; then
41372   SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
41373 fi
41374
41375 if test "x$USE_NGHTTP2" = "x1"; then
41376   SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
41377 fi
41378
41379 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
41380   SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
41381 fi
41382
41383 if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
41384     -o "x$NSS_ENABLED" = "x1"; then
41385   SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
41386 fi
41387
41388
41389
41390 if test "x$CURL_DISABLE_HTTP" != "x1"; then
41391   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
41392   if test "x$SSL_ENABLED" = "x1"; then
41393     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
41394   fi
41395 fi
41396 if test "x$CURL_DISABLE_FTP" != "x1"; then
41397   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
41398   if test "x$SSL_ENABLED" = "x1"; then
41399     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
41400   fi
41401 fi
41402 if test "x$CURL_DISABLE_FILE" != "x1"; then
41403   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
41404 fi
41405 if test "x$CURL_DISABLE_TELNET" != "x1"; then
41406   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
41407 fi
41408 if test "x$CURL_DISABLE_LDAP" != "x1"; then
41409   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
41410   if test "x$CURL_DISABLE_LDAPS" != "x1"; then
41411     if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
41412       (test "x$USE_OPENLDAP" != "x1"  && test "x$HAVE_LDAP_SSL" = "x1"); then
41413       SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
41414     fi
41415   fi
41416 fi
41417 if test "x$CURL_DISABLE_DICT" != "x1"; then
41418   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
41419 fi
41420 if test "x$CURL_DISABLE_TFTP" != "x1"; then
41421   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
41422 fi
41423 if test "x$CURL_DISABLE_GOPHER" != "x1"; then
41424   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
41425 fi
41426 if test "x$CURL_DISABLE_POP3" != "x1"; then
41427   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
41428   if test "x$SSL_ENABLED" = "x1"; then
41429     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
41430   fi
41431 fi
41432 if test "x$CURL_DISABLE_IMAP" != "x1"; then
41433   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
41434   if test "x$SSL_ENABLED" = "x1"; then
41435     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
41436   fi
41437 fi
41438 if test "x$CURL_DISABLE_SMB" != "x1" \
41439     -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
41440     -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41441       -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
41442       -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1" \); then
41443   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
41444   if test "x$SSL_ENABLED" = "x1"; then
41445     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
41446   fi
41447 fi
41448 if test "x$CURL_DISABLE_SMTP" != "x1"; then
41449   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
41450   if test "x$SSL_ENABLED" = "x1"; then
41451     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
41452   fi
41453 fi
41454 if test "x$USE_LIBSSH2" = "x1"; then
41455   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41456   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41457 fi
41458 if test "x$USE_LIBSSH" = "x1"; then
41459   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41460   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41461 fi
41462 if test "x$CURL_DISABLE_RTSP" != "x1"; then
41463   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
41464 fi
41465 if test "x$USE_LIBRTMP" = "x1"; then
41466   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
41467 fi
41468
41469 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
41470
41471
41472
41473
41474 squeeze CFLAGS
41475 squeeze CPPFLAGS
41476 squeeze DEFS
41477 squeeze LDFLAGS
41478 squeeze LIBS
41479
41480 squeeze LIBCURL_LIBS
41481 squeeze CURL_NETWORK_LIBS
41482 squeeze CURL_NETWORK_AND_TIME_LIBS
41483
41484 squeeze SUPPORT_FEATURES
41485 squeeze SUPPORT_PROTOCOLS
41486
41487
41488
41489   xc_bad_var_libs=no
41490   for xc_word in $LIBS; do
41491     case "$xc_word" in
41492       -l* | --library=*)
41493         :
41494         ;;
41495       *)
41496         xc_bad_var_libs=yes
41497         ;;
41498     esac
41499   done
41500   if test $xc_bad_var_libs = yes; then
41501     { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
41502 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
41503     { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
41504 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
41505   fi
41506
41507
41508   xc_bad_var_ldflags=no
41509   for xc_word in $LDFLAGS; do
41510     case "$xc_word" in
41511       -D*)
41512         xc_bad_var_ldflags=yes
41513         ;;
41514       -U*)
41515         xc_bad_var_ldflags=yes
41516         ;;
41517       -I*)
41518         xc_bad_var_ldflags=yes
41519         ;;
41520       -l* | --library=*)
41521         xc_bad_var_ldflags=yes
41522         ;;
41523     esac
41524   done
41525   if test $xc_bad_var_ldflags = yes; then
41526     { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
41527 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
41528     xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
41529     for xc_word in $LDFLAGS; do
41530       case "$xc_word" in
41531         -D*)
41532           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41533 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41534           ;;
41535         -U*)
41536           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41537 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41538           ;;
41539         -I*)
41540           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41541 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41542           ;;
41543         -l* | --library=*)
41544           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41545 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41546           ;;
41547       esac
41548     done
41549   fi
41550
41551
41552   xc_bad_var_cppflags=no
41553   for xc_word in $CPPFLAGS; do
41554     case "$xc_word" in
41555       -rpath*)
41556         xc_bad_var_cppflags=yes
41557         ;;
41558       -L* | --library-path=*)
41559         xc_bad_var_cppflags=yes
41560         ;;
41561       -l* | --library=*)
41562         xc_bad_var_cppflags=yes
41563         ;;
41564     esac
41565   done
41566   if test $xc_bad_var_cppflags = yes; then
41567     { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
41568 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
41569     xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
41570     for xc_word in $CPPFLAGS; do
41571       case "$xc_word" in
41572         -rpath*)
41573           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41574 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41575           ;;
41576         -L* | --library-path=*)
41577           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41578 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41579           ;;
41580         -l* | --library=*)
41581           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41582 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41583           ;;
41584       esac
41585     done
41586   fi
41587
41588
41589   xc_bad_var_cflags=no
41590   for xc_word in $CFLAGS; do
41591     case "$xc_word" in
41592       -D*)
41593         xc_bad_var_cflags=yes
41594         ;;
41595       -U*)
41596         xc_bad_var_cflags=yes
41597         ;;
41598       -I*)
41599         xc_bad_var_cflags=yes
41600         ;;
41601       -rpath*)
41602         xc_bad_var_cflags=yes
41603         ;;
41604       -L* | --library-path=*)
41605         xc_bad_var_cflags=yes
41606         ;;
41607       -l* | --library=*)
41608         xc_bad_var_cflags=yes
41609         ;;
41610     esac
41611   done
41612   if test $xc_bad_var_cflags = yes; then
41613     { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
41614 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
41615     xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
41616     for xc_word in $CFLAGS; do
41617       case "$xc_word" in
41618         -D*)
41619           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41620 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41621           ;;
41622         -U*)
41623           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41624 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41625           ;;
41626         -I*)
41627           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41628 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41629           ;;
41630         -rpath*)
41631           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41632 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41633           ;;
41634         -L* | --library-path=*)
41635           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41636 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41637           ;;
41638         -l* | --library=*)
41639           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41640 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41641           ;;
41642       esac
41643     done
41644   fi
41645
41646   if test $xc_bad_var_libs = yes ||
41647      test $xc_bad_var_cflags = yes ||
41648      test $xc_bad_var_ldflags = yes ||
41649      test $xc_bad_var_cppflags = yes; then
41650      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
41651 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
41652   fi
41653
41654
41655 SSL_BACKENDS=${ssl_backends}
41656
41657
41658 if test "x$want_curldebug_assumed" = "xyes" &&
41659   test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
41660   ac_configure_args="$ac_configure_args --enable-curldebug"
41661 fi
41662
41663 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/Win32/Makefile packages/Win32/cygwin/Makefile packages/Linux/Makefile packages/Linux/RPM/Makefile packages/Linux/RPM/curl.spec packages/Linux/RPM/curl-ssl.spec packages/Solaris/Makefile packages/EPM/curl.list packages/EPM/Makefile packages/vms/Makefile packages/AIX/Makefile packages/AIX/RPM/Makefile packages/AIX/RPM/curl.spec curl-config libcurl.pc"
41664
41665 cat >confcache <<\_ACEOF
41666 # This file is a shell script that caches the results of configure
41667 # tests run on this system so they can be shared between configure
41668 # scripts and configure runs, see configure's option --config-cache.
41669 # It is not useful on other systems.  If it contains results you don't
41670 # want to keep, you may remove or edit it.
41671 #
41672 # config.status only pays attention to the cache file if you give it
41673 # the --recheck option to rerun configure.
41674 #
41675 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41676 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41677 # following values.
41678
41679 _ACEOF
41680
41681 # The following way of writing the cache mishandles newlines in values,
41682 # but we know of no workaround that is simple, portable, and efficient.
41683 # So, we kill variables containing newlines.
41684 # Ultrix sh set writes to stderr and can't be redirected directly,
41685 # and sets the high bit in the cache file unless we assign to the vars.
41686 (
41687   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41688     eval ac_val=\$$ac_var
41689     case $ac_val in #(
41690     *${as_nl}*)
41691       case $ac_var in #(
41692       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
41693 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
41694       esac
41695       case $ac_var in #(
41696       _ | IFS | as_nl) ;; #(
41697       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
41698       *) { eval $ac_var=; unset $ac_var;} ;;
41699       esac ;;
41700     esac
41701   done
41702
41703   (set) 2>&1 |
41704     case $as_nl`(ac_space=' '; set) 2>&1` in #(
41705     *${as_nl}ac_space=\ *)
41706       # `set' does not quote correctly, so add quotes: double-quote
41707       # substitution turns \\\\ into \\, and sed turns \\ into \.
41708       sed -n \
41709         "s/'/'\\\\''/g;
41710           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41711       ;; #(
41712     *)
41713       # `set' quotes correctly as required by POSIX, so do not add quotes.
41714       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41715       ;;
41716     esac |
41717     sort
41718 ) |
41719   sed '
41720      /^ac_cv_env_/b end
41721      t clear
41722      :clear
41723      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41724      t end
41725      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41726      :end' >>confcache
41727 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41728   if test -w "$cache_file"; then
41729     if test "x$cache_file" != "x/dev/null"; then
41730       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
41731 $as_echo "$as_me: updating cache $cache_file" >&6;}
41732       if test ! -f "$cache_file" || test -h "$cache_file"; then
41733         cat confcache >"$cache_file"
41734       else
41735         case $cache_file in #(
41736         */* | ?:*)
41737           mv -f confcache "$cache_file"$$ &&
41738           mv -f "$cache_file"$$ "$cache_file" ;; #(
41739         *)
41740           mv -f confcache "$cache_file" ;;
41741         esac
41742       fi
41743     fi
41744   else
41745     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
41746 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41747   fi
41748 fi
41749 rm -f confcache
41750
41751 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41752 # Let make expand exec_prefix.
41753 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41754
41755 DEFS=-DHAVE_CONFIG_H
41756
41757 ac_libobjs=
41758 ac_ltlibobjs=
41759 U=
41760 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41761   # 1. Remove the extension, and $U if already installed.
41762   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41763   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
41764   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
41765   #    will be set to the directory where LIBOBJS objects are built.
41766   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41767   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
41768 done
41769 LIBOBJS=$ac_libobjs
41770
41771 LTLIBOBJS=$ac_ltlibobjs
41772
41773
41774 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41775   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
41776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41777 fi
41778 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
41779   as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
41780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41781 fi
41782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41783 $as_echo_n "checking that generated files are newer than configure... " >&6; }
41784    if test -n "$am_sleep_pid"; then
41785      # Hide warnings about reused PIDs.
41786      wait $am_sleep_pid 2>/dev/null
41787    fi
41788    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
41789 $as_echo "done" >&6; }
41790 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41791   as_fn_error $? "conditional \"AMDEP\" was never defined.
41792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41793 fi
41794 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41795   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41797 fi
41798  if test -n "$EXEEXT"; then
41799   am__EXEEXT_TRUE=
41800   am__EXEEXT_FALSE='#'
41801 else
41802   am__EXEEXT_TRUE='#'
41803   am__EXEEXT_FALSE=
41804 fi
41805
41806 if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
41807   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
41808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41809 fi
41810 if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
41811   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
41812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41813 fi
41814 if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
41815   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
41816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41817 fi
41818 if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
41819   as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
41820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41821 fi
41822 if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
41823   as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
41824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41825 fi
41826 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
41827   as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
41828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41829 fi
41830 if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
41831   as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
41832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41833 fi
41834 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
41835   as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
41836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41837 fi
41838 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
41839   as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
41840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41841 fi
41842 if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
41843   as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
41844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41845 fi
41846 if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
41847   as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
41848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41849 fi
41850 if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
41851   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
41852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41853 fi
41854 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
41855   as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
41856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41857 fi
41858 if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
41859   as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
41860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41861 fi
41862 if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
41863   as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
41864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41865 fi
41866 if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
41867   as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
41868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41869 fi
41870 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
41871   as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
41872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41873 fi
41874
41875 : "${CONFIG_STATUS=./config.status}"
41876 ac_write_fail=0
41877 ac_clean_files_save=$ac_clean_files
41878 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41879 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
41880 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
41881 as_write_fail=0
41882 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
41883 #! $SHELL
41884 # Generated by $as_me.
41885 # Run this file to recreate the current configuration.
41886 # Compiler output produced by configure, useful for debugging
41887 # configure, is in config.log if it exists.
41888
41889 debug=false
41890 ac_cs_recheck=false
41891 ac_cs_silent=false
41892
41893 SHELL=\${CONFIG_SHELL-$SHELL}
41894 export SHELL
41895 _ASEOF
41896 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
41897 ## -------------------- ##
41898 ## M4sh Initialization. ##
41899 ## -------------------- ##
41900
41901 # Be more Bourne compatible
41902 DUALCASE=1; export DUALCASE # for MKS sh
41903 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
41904   emulate sh
41905   NULLCMD=:
41906   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41907   # is contrary to our usage.  Disable this feature.
41908   alias -g '${1+"$@"}'='"$@"'
41909   setopt NO_GLOB_SUBST
41910 else
41911   case `(set -o) 2>/dev/null` in #(
41912   *posix*) :
41913     set -o posix ;; #(
41914   *) :
41915      ;;
41916 esac
41917 fi
41918
41919
41920 as_nl='
41921 '
41922 export as_nl
41923 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41924 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41925 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41926 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41927 # Prefer a ksh shell builtin over an external printf program on Solaris,
41928 # but without wasting forks for bash or zsh.
41929 if test -z "$BASH_VERSION$ZSH_VERSION" \
41930     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
41931   as_echo='print -r --'
41932   as_echo_n='print -rn --'
41933 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
41934   as_echo='printf %s\n'
41935   as_echo_n='printf %s'
41936 else
41937   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
41938     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
41939     as_echo_n='/usr/ucb/echo -n'
41940   else
41941     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
41942     as_echo_n_body='eval
41943       arg=$1;
41944       case $arg in #(
41945       *"$as_nl"*)
41946         expr "X$arg" : "X\\(.*\\)$as_nl";
41947         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
41948       esac;
41949       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
41950     '
41951     export as_echo_n_body
41952     as_echo_n='sh -c $as_echo_n_body as_echo'
41953   fi
41954   export as_echo_body
41955   as_echo='sh -c $as_echo_body as_echo'
41956 fi
41957
41958
41959
41960 # IFS
41961 # We need space, tab and new line, in precisely that order.  Quoting is
41962 # there to prevent editors from complaining about space-tab.
41963 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41964 # splitting by setting IFS to empty value.)
41965 IFS=" ""        $as_nl"
41966
41967 # Find who we are.  Look in the path if we contain no directory separator.
41968 as_myself=
41969 case $0 in #((
41970   *[\\/]* ) as_myself=$0 ;;
41971   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41972 for as_dir in $PATH
41973 do
41974   IFS=$as_save_IFS
41975   test -z "$as_dir" && as_dir=.
41976     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41977   done
41978 IFS=$as_save_IFS
41979
41980      ;;
41981 esac
41982 # We did not find ourselves, most probably we were run as `sh COMMAND'
41983 # in which case we are not to be found in the path.
41984 if test "x$as_myself" = x; then
41985   as_myself=$0
41986 fi
41987 if test ! -f "$as_myself"; then
41988   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41989   exit 1
41990 fi
41991
41992 # Unset variables that we do not need and which cause bugs (e.g. in
41993 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
41994 # suppresses any "Segmentation fault" message there.  '((' could
41995 # trigger a bug in pdksh 5.2.14.
41996 for as_var in BASH_ENV ENV MAIL MAILPATH
41997 do eval test x\${$as_var+set} = xset \
41998   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
41999 done
42000 PS1='$ '
42001 PS2='> '
42002 PS4='+ '
42003
42004 # NLS nuisances.
42005 LC_ALL=C
42006 export LC_ALL
42007 LANGUAGE=C
42008 export LANGUAGE
42009
42010 # CDPATH.
42011 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42012
42013
42014 # as_fn_error STATUS ERROR [LINENO LOG_FD]
42015 # ----------------------------------------
42016 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
42017 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
42018 # script with STATUS, using 1 if that was 0.
42019 as_fn_error ()
42020 {
42021   as_status=$1; test $as_status -eq 0 && as_status=1
42022   if test "$4"; then
42023     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
42024     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
42025   fi
42026   $as_echo "$as_me: error: $2" >&2
42027   as_fn_exit $as_status
42028 } # as_fn_error
42029
42030
42031 # as_fn_set_status STATUS
42032 # -----------------------
42033 # Set $? to STATUS, without forking.
42034 as_fn_set_status ()
42035 {
42036   return $1
42037 } # as_fn_set_status
42038
42039 # as_fn_exit STATUS
42040 # -----------------
42041 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
42042 as_fn_exit ()
42043 {
42044   set +e
42045   as_fn_set_status $1
42046   exit $1
42047 } # as_fn_exit
42048
42049 # as_fn_unset VAR
42050 # ---------------
42051 # Portably unset VAR.
42052 as_fn_unset ()
42053 {
42054   { eval $1=; unset $1;}
42055 }
42056 as_unset=as_fn_unset
42057 # as_fn_append VAR VALUE
42058 # ----------------------
42059 # Append the text in VALUE to the end of the definition contained in VAR. Take
42060 # advantage of any shell optimizations that allow amortized linear growth over
42061 # repeated appends, instead of the typical quadratic growth present in naive
42062 # implementations.
42063 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
42064   eval 'as_fn_append ()
42065   {
42066     eval $1+=\$2
42067   }'
42068 else
42069   as_fn_append ()
42070   {
42071     eval $1=\$$1\$2
42072   }
42073 fi # as_fn_append
42074
42075 # as_fn_arith ARG...
42076 # ------------------
42077 # Perform arithmetic evaluation on the ARGs, and store the result in the
42078 # global $as_val. Take advantage of shells that can avoid forks. The arguments
42079 # must be portable across $(()) and expr.
42080 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
42081   eval 'as_fn_arith ()
42082   {
42083     as_val=$(( $* ))
42084   }'
42085 else
42086   as_fn_arith ()
42087   {
42088     as_val=`expr "$@" || test $? -eq 1`
42089   }
42090 fi # as_fn_arith
42091
42092
42093 if expr a : '\(a\)' >/dev/null 2>&1 &&
42094    test "X`expr 00001 : '.*\(...\)'`" = X001; then
42095   as_expr=expr
42096 else
42097   as_expr=false
42098 fi
42099
42100 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42101   as_basename=basename
42102 else
42103   as_basename=false
42104 fi
42105
42106 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
42107   as_dirname=dirname
42108 else
42109   as_dirname=false
42110 fi
42111
42112 as_me=`$as_basename -- "$0" ||
42113 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42114          X"$0" : 'X\(//\)$' \| \
42115          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
42116 $as_echo X/"$0" |
42117     sed '/^.*\/\([^/][^/]*\)\/*$/{
42118             s//\1/
42119             q
42120           }
42121           /^X\/\(\/\/\)$/{
42122             s//\1/
42123             q
42124           }
42125           /^X\/\(\/\).*/{
42126             s//\1/
42127             q
42128           }
42129           s/.*/./; q'`
42130
42131 # Avoid depending upon Character Ranges.
42132 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42133 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42134 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42135 as_cr_digits='0123456789'
42136 as_cr_alnum=$as_cr_Letters$as_cr_digits
42137
42138 ECHO_C= ECHO_N= ECHO_T=
42139 case `echo -n x` in #(((((
42140 -n*)
42141   case `echo 'xy\c'` in
42142   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
42143   xy)  ECHO_C='\c';;
42144   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
42145        ECHO_T=' ';;
42146   esac;;
42147 *)
42148   ECHO_N='-n';;
42149 esac
42150
42151 rm -f conf$$ conf$$.exe conf$$.file
42152 if test -d conf$$.dir; then
42153   rm -f conf$$.dir/conf$$.file
42154 else
42155   rm -f conf$$.dir
42156   mkdir conf$$.dir 2>/dev/null
42157 fi
42158 if (echo >conf$$.file) 2>/dev/null; then
42159   if ln -s conf$$.file conf$$ 2>/dev/null; then
42160     as_ln_s='ln -s'
42161     # ... but there are two gotchas:
42162     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
42163     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
42164     # In both cases, we have to default to `cp -pR'.
42165     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
42166       as_ln_s='cp -pR'
42167   elif ln conf$$.file conf$$ 2>/dev/null; then
42168     as_ln_s=ln
42169   else
42170     as_ln_s='cp -pR'
42171   fi
42172 else
42173   as_ln_s='cp -pR'
42174 fi
42175 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
42176 rmdir conf$$.dir 2>/dev/null
42177
42178
42179 # as_fn_mkdir_p
42180 # -------------
42181 # Create "$as_dir" as a directory, including parents if necessary.
42182 as_fn_mkdir_p ()
42183 {
42184
42185   case $as_dir in #(
42186   -*) as_dir=./$as_dir;;
42187   esac
42188   test -d "$as_dir" || eval $as_mkdir_p || {
42189     as_dirs=
42190     while :; do
42191       case $as_dir in #(
42192       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
42193       *) as_qdir=$as_dir;;
42194       esac
42195       as_dirs="'$as_qdir' $as_dirs"
42196       as_dir=`$as_dirname -- "$as_dir" ||
42197 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42198          X"$as_dir" : 'X\(//\)[^/]' \| \
42199          X"$as_dir" : 'X\(//\)$' \| \
42200          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42201 $as_echo X"$as_dir" |
42202     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42203             s//\1/
42204             q
42205           }
42206           /^X\(\/\/\)[^/].*/{
42207             s//\1/
42208             q
42209           }
42210           /^X\(\/\/\)$/{
42211             s//\1/
42212             q
42213           }
42214           /^X\(\/\).*/{
42215             s//\1/
42216             q
42217           }
42218           s/.*/./; q'`
42219       test -d "$as_dir" && break
42220     done
42221     test -z "$as_dirs" || eval "mkdir $as_dirs"
42222   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
42223
42224
42225 } # as_fn_mkdir_p
42226 if mkdir -p . 2>/dev/null; then
42227   as_mkdir_p='mkdir -p "$as_dir"'
42228 else
42229   test -d ./-p && rmdir ./-p
42230   as_mkdir_p=false
42231 fi
42232
42233
42234 # as_fn_executable_p FILE
42235 # -----------------------
42236 # Test if FILE is an executable regular file.
42237 as_fn_executable_p ()
42238 {
42239   test -f "$1" && test -x "$1"
42240 } # as_fn_executable_p
42241 as_test_x='test -x'
42242 as_executable_p=as_fn_executable_p
42243
42244 # Sed expression to map a string onto a valid CPP name.
42245 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
42246
42247 # Sed expression to map a string onto a valid variable name.
42248 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
42249
42250
42251 exec 6>&1
42252 ## ----------------------------------- ##
42253 ## Main body of $CONFIG_STATUS script. ##
42254 ## ----------------------------------- ##
42255 _ASEOF
42256 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
42257
42258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42259 # Save the log message, to keep $0 and so on meaningful, and to
42260 # report actual input values of CONFIG_FILES etc. instead of their
42261 # values after options handling.
42262 ac_log="
42263 This file was extended by curl $as_me -, which was
42264 generated by GNU Autoconf 2.69.  Invocation command line was
42265
42266   CONFIG_FILES    = $CONFIG_FILES
42267   CONFIG_HEADERS  = $CONFIG_HEADERS
42268   CONFIG_LINKS    = $CONFIG_LINKS
42269   CONFIG_COMMANDS = $CONFIG_COMMANDS
42270   $ $0 $@
42271
42272 on `(hostname || uname -n) 2>/dev/null | sed 1q`
42273 "
42274
42275 _ACEOF
42276
42277 case $ac_config_files in *"
42278 "*) set x $ac_config_files; shift; ac_config_files=$*;;
42279 esac
42280
42281 case $ac_config_headers in *"
42282 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
42283 esac
42284
42285
42286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42287 # Files that config.status was made for.
42288 config_files="$ac_config_files"
42289 config_headers="$ac_config_headers"
42290 config_commands="$ac_config_commands"
42291
42292 _ACEOF
42293
42294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42295 ac_cs_usage="\
42296 \`$as_me' instantiates files and other configuration actions
42297 from templates according to the current configuration.  Unless the files
42298 and actions are specified as TAGs, all are instantiated by default.
42299
42300 Usage: $0 [OPTION]... [TAG]...
42301
42302   -h, --help       print this help, then exit
42303   -V, --version    print version number and configuration settings, then exit
42304       --config     print configuration, then exit
42305   -q, --quiet, --silent
42306                    do not print progress messages
42307   -d, --debug      don't remove temporary files
42308       --recheck    update $as_me by reconfiguring in the same conditions
42309       --file=FILE[:TEMPLATE]
42310                    instantiate the configuration file FILE
42311       --header=FILE[:TEMPLATE]
42312                    instantiate the configuration header FILE
42313
42314 Configuration files:
42315 $config_files
42316
42317 Configuration headers:
42318 $config_headers
42319
42320 Configuration commands:
42321 $config_commands
42322
42323 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>."
42324
42325 _ACEOF
42326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42327 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
42328 ac_cs_version="\\
42329 curl config.status -
42330 configured by $0, generated by GNU Autoconf 2.69,
42331   with options \\"\$ac_cs_config\\"
42332
42333 Copyright (C) 2012 Free Software Foundation, Inc.
42334 This config.status script is free software; the Free Software Foundation
42335 gives unlimited permission to copy, distribute and modify it."
42336
42337 ac_pwd='$ac_pwd'
42338 srcdir='$srcdir'
42339 INSTALL='$INSTALL'
42340 MKDIR_P='$MKDIR_P'
42341 AWK='$AWK'
42342 test -n "\$AWK" || AWK=awk
42343 _ACEOF
42344
42345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42346 # The default lists apply if the user does not specify any file.
42347 ac_need_defaults=:
42348 while test $# != 0
42349 do
42350   case $1 in
42351   --*=?*)
42352     ac_option=`expr "X$1" : 'X\([^=]*\)='`
42353     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42354     ac_shift=:
42355     ;;
42356   --*=)
42357     ac_option=`expr "X$1" : 'X\([^=]*\)='`
42358     ac_optarg=
42359     ac_shift=:
42360     ;;
42361   *)
42362     ac_option=$1
42363     ac_optarg=$2
42364     ac_shift=shift
42365     ;;
42366   esac
42367
42368   case $ac_option in
42369   # Handling of the options.
42370   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42371     ac_cs_recheck=: ;;
42372   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
42373     $as_echo "$ac_cs_version"; exit ;;
42374   --config | --confi | --conf | --con | --co | --c )
42375     $as_echo "$ac_cs_config"; exit ;;
42376   --debug | --debu | --deb | --de | --d | -d )
42377     debug=: ;;
42378   --file | --fil | --fi | --f )
42379     $ac_shift
42380     case $ac_optarg in
42381     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42382     '') as_fn_error $? "missing file argument" ;;
42383     esac
42384     as_fn_append CONFIG_FILES " '$ac_optarg'"
42385     ac_need_defaults=false;;
42386   --header | --heade | --head | --hea )
42387     $ac_shift
42388     case $ac_optarg in
42389     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42390     esac
42391     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42392     ac_need_defaults=false;;
42393   --he | --h)
42394     # Conflict between --help and --header
42395     as_fn_error $? "ambiguous option: \`$1'
42396 Try \`$0 --help' for more information.";;
42397   --help | --hel | -h )
42398     $as_echo "$ac_cs_usage"; exit ;;
42399   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42400   | -silent | --silent | --silen | --sile | --sil | --si | --s)
42401     ac_cs_silent=: ;;
42402
42403   # This is an error.
42404   -*) as_fn_error $? "unrecognized option: \`$1'
42405 Try \`$0 --help' for more information." ;;
42406
42407   *) as_fn_append ac_config_targets " $1"
42408      ac_need_defaults=false ;;
42409
42410   esac
42411   shift
42412 done
42413
42414 ac_configure_extra_args=
42415
42416 if $ac_cs_silent; then
42417   exec 6>/dev/null
42418   ac_configure_extra_args="$ac_configure_extra_args --silent"
42419 fi
42420
42421 _ACEOF
42422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42423 if \$ac_cs_recheck; then
42424   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42425   shift
42426   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
42427   CONFIG_SHELL='$SHELL'
42428   export CONFIG_SHELL
42429   exec "\$@"
42430 fi
42431
42432 _ACEOF
42433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42434 exec 5>>config.log
42435 {
42436   echo
42437   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42438 ## Running $as_me. ##
42439 _ASBOX
42440   $as_echo "$ac_log"
42441 } >&5
42442
42443 _ACEOF
42444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42445 #
42446 # INIT-COMMANDS
42447 #
42448 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
42449
42450
42451 # The HP-UX ksh and POSIX shell print the target directory to stdout
42452 # if CDPATH is set.
42453 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42454
42455 sed_quote_subst='$sed_quote_subst'
42456 double_quote_subst='$double_quote_subst'
42457 delay_variable_subst='$delay_variable_subst'
42458 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
42459 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
42460 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
42461 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
42462 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
42463 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
42464 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
42465 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
42466 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
42467 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
42468 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
42469 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
42470 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
42471 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
42472 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
42473 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
42474 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
42475 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
42476 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
42477 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
42478 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
42479 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
42480 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
42481 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
42482 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
42483 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
42484 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
42485 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
42486 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
42487 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
42488 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
42489 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
42490 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
42491 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
42492 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
42493 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
42494 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
42495 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
42496 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
42497 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
42498 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
42499 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
42500 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
42501 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
42502 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
42503 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
42504 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
42505 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42506 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42507 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
42508 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
42509 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
42510 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
42511 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
42512 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
42513 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
42514 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
42515 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
42516 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
42517 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"`'
42518 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
42519 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
42520 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
42521 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
42522 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
42523 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
42524 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
42525 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
42526 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
42527 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
42528 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
42529 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
42530 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
42531 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
42532 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
42533 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
42534 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
42535 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
42536 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
42537 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
42538 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42539 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
42540 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
42541 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
42542 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
42543 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
42544 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
42545 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42546 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
42547 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42548 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
42549 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42550 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
42551 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
42552 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
42553 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
42554 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
42555 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
42556 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
42557 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
42558 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
42559 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
42560 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
42561 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
42562 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
42563 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
42564 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
42565 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
42566 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
42567 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
42568 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
42569 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
42570 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
42571 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
42572 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
42573 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
42574 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
42575 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
42576 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
42577 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
42578 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
42579 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
42580 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42581 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42582 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
42583 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
42584 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
42585 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
42586 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
42587 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
42588 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
42589 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
42590 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
42591 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
42592 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
42593 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
42594
42595 LTCC='$LTCC'
42596 LTCFLAGS='$LTCFLAGS'
42597 compiler='$compiler_DEFAULT'
42598
42599 # A function that is used when there is no print builtin or printf.
42600 func_fallback_echo ()
42601 {
42602   eval 'cat <<_LTECHO_EOF
42603 \$1
42604 _LTECHO_EOF'
42605 }
42606
42607 # Quote evaled strings.
42608 for var in AS \
42609 DLLTOOL \
42610 OBJDUMP \
42611 SHELL \
42612 ECHO \
42613 PATH_SEPARATOR \
42614 SED \
42615 GREP \
42616 EGREP \
42617 FGREP \
42618 LD \
42619 NM \
42620 LN_S \
42621 lt_SP2NL \
42622 lt_NL2SP \
42623 reload_flag \
42624 deplibs_check_method \
42625 file_magic_cmd \
42626 file_magic_glob \
42627 want_nocaseglob \
42628 sharedlib_from_linklib_cmd \
42629 AR \
42630 AR_FLAGS \
42631 archiver_list_spec \
42632 STRIP \
42633 RANLIB \
42634 CC \
42635 CFLAGS \
42636 compiler \
42637 lt_cv_sys_global_symbol_pipe \
42638 lt_cv_sys_global_symbol_to_cdecl \
42639 lt_cv_sys_global_symbol_to_import \
42640 lt_cv_sys_global_symbol_to_c_name_address \
42641 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42642 lt_cv_nm_interface \
42643 nm_file_list_spec \
42644 lt_cv_truncate_bin \
42645 lt_prog_compiler_no_builtin_flag \
42646 lt_prog_compiler_pic \
42647 lt_prog_compiler_wl \
42648 lt_prog_compiler_static \
42649 lt_cv_prog_compiler_c_o \
42650 need_locks \
42651 MANIFEST_TOOL \
42652 DSYMUTIL \
42653 NMEDIT \
42654 LIPO \
42655 OTOOL \
42656 OTOOL64 \
42657 shrext_cmds \
42658 export_dynamic_flag_spec \
42659 whole_archive_flag_spec \
42660 compiler_needs_object \
42661 with_gnu_ld \
42662 allow_undefined_flag \
42663 no_undefined_flag \
42664 hardcode_libdir_flag_spec \
42665 hardcode_libdir_separator \
42666 exclude_expsyms \
42667 include_expsyms \
42668 file_list_spec \
42669 variables_saved_for_relink \
42670 libname_spec \
42671 library_names_spec \
42672 soname_spec \
42673 install_override_mode \
42674 finish_eval \
42675 old_striplib \
42676 striplib; do
42677     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42678     *[\\\\\\\`\\"\\\$]*)
42679       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42680       ;;
42681     *)
42682       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42683       ;;
42684     esac
42685 done
42686
42687 # Double-quote double-evaled strings.
42688 for var in reload_cmds \
42689 old_postinstall_cmds \
42690 old_postuninstall_cmds \
42691 old_archive_cmds \
42692 extract_expsyms_cmds \
42693 old_archive_from_new_cmds \
42694 old_archive_from_expsyms_cmds \
42695 archive_cmds \
42696 archive_expsym_cmds \
42697 module_cmds \
42698 module_expsym_cmds \
42699 export_symbols_cmds \
42700 prelink_cmds \
42701 postlink_cmds \
42702 postinstall_cmds \
42703 postuninstall_cmds \
42704 finish_cmds \
42705 sys_lib_search_path_spec \
42706 configure_time_dlsearch_path \
42707 configure_time_lt_sys_library_path; do
42708     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42709     *[\\\\\\\`\\"\\\$]*)
42710       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42711       ;;
42712     *)
42713       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42714       ;;
42715     esac
42716 done
42717
42718 ac_aux_dir='$ac_aux_dir'
42719
42720 # See if we are running on zsh, and set the options that allow our
42721 # commands through without removal of \ escapes INIT.
42722 if test -n "\${ZSH_VERSION+set}"; then
42723    setopt NO_GLOB_SUBST
42724 fi
42725
42726
42727     PACKAGE='$PACKAGE'
42728     VERSION='$VERSION'
42729     RM='$RM'
42730     ofile='$ofile'
42731
42732
42733
42734
42735 _ACEOF
42736
42737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42738
42739 # Handling of arguments.
42740 for ac_config_target in $ac_config_targets
42741 do
42742   case $ac_config_target in
42743     "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
42744     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
42745     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42746     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42747     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
42748     "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
42749     "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
42750     "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
42751     "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
42752     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
42753     "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
42754     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42755     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
42756     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42757     "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
42758     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
42759     "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
42760     "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
42761     "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
42762     "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
42763     "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
42764     "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
42765     "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
42766     "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
42767     "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
42768     "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
42769     "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
42770     "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
42771     "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
42772     "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
42773     "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
42774     "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
42775     "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
42776     "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
42777     "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
42778     "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
42779     "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
42780     "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
42781
42782   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
42783   esac
42784 done
42785
42786
42787 # If the user did not use the arguments to specify the items to instantiate,
42788 # then the envvar interface is used.  Set only those that are not.
42789 # We use the long form for the default assignment because of an extremely
42790 # bizarre bug on SunOS 4.1.3.
42791 if $ac_need_defaults; then
42792   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42793   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42794   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42795 fi
42796
42797 # Have a temporary directory for convenience.  Make it in the build tree
42798 # simply because there is no reason against having it here, and in addition,
42799 # creating and moving files from /tmp can sometimes cause problems.
42800 # Hook for its removal unless debugging.
42801 # Note that there is a small window in which the directory will not be cleaned:
42802 # after its creation but before its name has been assigned to `$tmp'.
42803 $debug ||
42804 {
42805   tmp= ac_tmp=
42806   trap 'exit_status=$?
42807   : "${ac_tmp:=$tmp}"
42808   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42809 ' 0
42810   trap 'as_fn_exit 1' 1 2 13 15
42811 }
42812 # Create a (secure) tmp directory for tmp files.
42813
42814 {
42815   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42816   test -d "$tmp"
42817 }  ||
42818 {
42819   tmp=./conf$$-$RANDOM
42820   (umask 077 && mkdir "$tmp")
42821 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
42822 ac_tmp=$tmp
42823
42824 # Set up the scripts for CONFIG_FILES section.
42825 # No need to generate them if there are no CONFIG_FILES.
42826 # This happens for instance with `./config.status config.h'.
42827 if test -n "$CONFIG_FILES"; then
42828
42829
42830 ac_cr=`echo X | tr X '\015'`
42831 # On cygwin, bash can eat \r inside `` if the user requested igncr.
42832 # But we know of no other shell where ac_cr would be empty at this
42833 # point, so we can use a bashism as a fallback.
42834 if test "x$ac_cr" = x; then
42835   eval ac_cr=\$\'\\r\'
42836 fi
42837 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42838 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42839   ac_cs_awk_cr='\\r'
42840 else
42841   ac_cs_awk_cr=$ac_cr
42842 fi
42843
42844 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42845 _ACEOF
42846
42847
42848 {
42849   echo "cat >conf$$subs.awk <<_ACEOF" &&
42850   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42851   echo "_ACEOF"
42852 } >conf$$subs.sh ||
42853   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42854 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
42855 ac_delim='%!_!# '
42856 for ac_last_try in false false false false false :; do
42857   . ./conf$$subs.sh ||
42858     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42859
42860   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
42861   if test $ac_delim_n = $ac_delim_num; then
42862     break
42863   elif $ac_last_try; then
42864     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42865   else
42866     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42867   fi
42868 done
42869 rm -f conf$$subs.sh
42870
42871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42872 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
42873 _ACEOF
42874 sed -n '
42875 h
42876 s/^/S["/; s/!.*/"]=/
42877 p
42878 g
42879 s/^[^!]*!//
42880 :repl
42881 t repl
42882 s/'"$ac_delim"'$//
42883 t delim
42884 :nl
42885 h
42886 s/\(.\{148\}\)..*/\1/
42887 t more1
42888 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
42889 p
42890 n
42891 b repl
42892 :more1
42893 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42894 p
42895 g
42896 s/.\{148\}//
42897 t nl
42898 :delim
42899 h
42900 s/\(.\{148\}\)..*/\1/
42901 t more2
42902 s/["\\]/\\&/g; s/^/"/; s/$/"/
42903 p
42904 b
42905 :more2
42906 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42907 p
42908 g
42909 s/.\{148\}//
42910 t delim
42911 ' <conf$$subs.awk | sed '
42912 /^[^""]/{
42913   N
42914   s/\n//
42915 }
42916 ' >>$CONFIG_STATUS || ac_write_fail=1
42917 rm -f conf$$subs.awk
42918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42919 _ACAWK
42920 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
42921   for (key in S) S_is_set[key] = 1
42922   FS = "\a"
42923
42924 }
42925 {
42926   line = $ 0
42927   nfields = split(line, field, "@")
42928   substed = 0
42929   len = length(field[1])
42930   for (i = 2; i < nfields; i++) {
42931     key = field[i]
42932     keylen = length(key)
42933     if (S_is_set[key]) {
42934       value = S[key]
42935       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
42936       len += length(value) + length(field[++i])
42937       substed = 1
42938     } else
42939       len += 1 + keylen
42940   }
42941
42942   print line
42943 }
42944
42945 _ACAWK
42946 _ACEOF
42947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42948 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
42949   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
42950 else
42951   cat
42952 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
42953   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42954 _ACEOF
42955
42956 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
42957 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
42958 # trailing colons and then remove the whole line if VPATH becomes empty
42959 # (actually we leave an empty line to preserve line numbers).
42960 if test "x$srcdir" = x.; then
42961   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
42962 h
42963 s///
42964 s/^/:/
42965 s/[      ]*$/:/
42966 s/:\$(srcdir):/:/g
42967 s/:\${srcdir}:/:/g
42968 s/:@srcdir@:/:/g
42969 s/^:*//
42970 s/:*$//
42971 x
42972 s/\(=[   ]*\).*/\1/
42973 G
42974 s/\n//
42975 s/^[^=]*=[       ]*$//
42976 }'
42977 fi
42978
42979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42980 fi # test -n "$CONFIG_FILES"
42981
42982 # Set up the scripts for CONFIG_HEADERS section.
42983 # No need to generate them if there are no CONFIG_HEADERS.
42984 # This happens for instance with `./config.status Makefile'.
42985 if test -n "$CONFIG_HEADERS"; then
42986 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
42987 BEGIN {
42988 _ACEOF
42989
42990 # Transform confdefs.h into an awk script `defines.awk', embedded as
42991 # here-document in config.status, that substitutes the proper values into
42992 # config.h.in to produce config.h.
42993
42994 # Create a delimiter string that does not exist in confdefs.h, to ease
42995 # handling of long lines.
42996 ac_delim='%!_!# '
42997 for ac_last_try in false false :; do
42998   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
42999   if test -z "$ac_tt"; then
43000     break
43001   elif $ac_last_try; then
43002     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
43003   else
43004     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43005   fi
43006 done
43007
43008 # For the awk script, D is an array of macro values keyed by name,
43009 # likewise P contains macro parameters if any.  Preserve backslash
43010 # newline sequences.
43011
43012 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43013 sed -n '
43014 s/.\{148\}/&'"$ac_delim"'/g
43015 t rset
43016 :rset
43017 s/^[     ]*#[    ]*define[       ][      ]*/ /
43018 t def
43019 d
43020 :def
43021 s/\\$//
43022 t bsnl
43023 s/["\\]/\\&/g
43024 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
43025 D["\1"]=" \3"/p
43026 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
43027 d
43028 :bsnl
43029 s/["\\]/\\&/g
43030 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
43031 D["\1"]=" \3\\\\\\n"\\/p
43032 t cont
43033 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
43034 t cont
43035 d
43036 :cont
43037 n
43038 s/.\{148\}/&'"$ac_delim"'/g
43039 t clear
43040 :clear
43041 s/\\$//
43042 t bsnlc
43043 s/["\\]/\\&/g; s/^/"/; s/$/"/p
43044 d
43045 :bsnlc
43046 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
43047 b cont
43048 ' <confdefs.h | sed '
43049 s/'"$ac_delim"'/"\\\
43050 "/g' >>$CONFIG_STATUS || ac_write_fail=1
43051
43052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43053   for (key in D) D_is_set[key] = 1
43054   FS = "\a"
43055 }
43056 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
43057   line = \$ 0
43058   split(line, arg, " ")
43059   if (arg[1] == "#") {
43060     defundef = arg[2]
43061     mac1 = arg[3]
43062   } else {
43063     defundef = substr(arg[1], 2)
43064     mac1 = arg[2]
43065   }
43066   split(mac1, mac2, "(") #)
43067   macro = mac2[1]
43068   prefix = substr(line, 1, index(line, defundef) - 1)
43069   if (D_is_set[macro]) {
43070     # Preserve the white space surrounding the "#".
43071     print prefix "define", macro P[macro] D[macro]
43072     next
43073   } else {
43074     # Replace #undef with comments.  This is necessary, for example,
43075     # in the case of _POSIX_SOURCE, which is predefined and required
43076     # on some systems where configure will not decide to define it.
43077     if (defundef == "undef") {
43078       print "/*", prefix defundef, macro, "*/"
43079       next
43080     }
43081   }
43082 }
43083 { print }
43084 _ACAWK
43085 _ACEOF
43086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43087   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
43088 fi # test -n "$CONFIG_HEADERS"
43089
43090
43091 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
43092 shift
43093 for ac_tag
43094 do
43095   case $ac_tag in
43096   :[FHLC]) ac_mode=$ac_tag; continue;;
43097   esac
43098   case $ac_mode$ac_tag in
43099   :[FHL]*:*);;
43100   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
43101   :[FH]-) ac_tag=-:-;;
43102   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
43103   esac
43104   ac_save_IFS=$IFS
43105   IFS=:
43106   set x $ac_tag
43107   IFS=$ac_save_IFS
43108   shift
43109   ac_file=$1
43110   shift
43111
43112   case $ac_mode in
43113   :L) ac_source=$1;;
43114   :[FH])
43115     ac_file_inputs=
43116     for ac_f
43117     do
43118       case $ac_f in
43119       -) ac_f="$ac_tmp/stdin";;
43120       *) # Look for the file first in the build tree, then in the source tree
43121          # (if the path is not absolute).  The absolute path cannot be DOS-style,
43122          # because $ac_f cannot contain `:'.
43123          test -f "$ac_f" ||
43124            case $ac_f in
43125            [\\/$]*) false;;
43126            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
43127            esac ||
43128            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
43129       esac
43130       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
43131       as_fn_append ac_file_inputs " '$ac_f'"
43132     done
43133
43134     # Let's still pretend it is `configure' which instantiates (i.e., don't
43135     # use $as_me), people would be surprised to read:
43136     #    /* config.h.  Generated by config.status.  */
43137     configure_input='Generated from '`
43138           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
43139         `' by configure.'
43140     if test x"$ac_file" != x-; then
43141       configure_input="$ac_file.  $configure_input"
43142       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
43143 $as_echo "$as_me: creating $ac_file" >&6;}
43144     fi
43145     # Neutralize special characters interpreted by sed in replacement strings.
43146     case $configure_input in #(
43147     *\&* | *\|* | *\\* )
43148        ac_sed_conf_input=`$as_echo "$configure_input" |
43149        sed 's/[\\\\&|]/\\\\&/g'`;; #(
43150     *) ac_sed_conf_input=$configure_input;;
43151     esac
43152
43153     case $ac_tag in
43154     *:-:* | *:-) cat >"$ac_tmp/stdin" \
43155       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
43156     esac
43157     ;;
43158   esac
43159
43160   ac_dir=`$as_dirname -- "$ac_file" ||
43161 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43162          X"$ac_file" : 'X\(//\)[^/]' \| \
43163          X"$ac_file" : 'X\(//\)$' \| \
43164          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
43165 $as_echo X"$ac_file" |
43166     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43167             s//\1/
43168             q
43169           }
43170           /^X\(\/\/\)[^/].*/{
43171             s//\1/
43172             q
43173           }
43174           /^X\(\/\/\)$/{
43175             s//\1/
43176             q
43177           }
43178           /^X\(\/\).*/{
43179             s//\1/
43180             q
43181           }
43182           s/.*/./; q'`
43183   as_dir="$ac_dir"; as_fn_mkdir_p
43184   ac_builddir=.
43185
43186 case "$ac_dir" in
43187 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43188 *)
43189   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43190   # A ".." for each directory in $ac_dir_suffix.
43191   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43192   case $ac_top_builddir_sub in
43193   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43194   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43195   esac ;;
43196 esac
43197 ac_abs_top_builddir=$ac_pwd
43198 ac_abs_builddir=$ac_pwd$ac_dir_suffix
43199 # for backward compatibility:
43200 ac_top_builddir=$ac_top_build_prefix
43201
43202 case $srcdir in
43203   .)  # We are building in place.
43204     ac_srcdir=.
43205     ac_top_srcdir=$ac_top_builddir_sub
43206     ac_abs_top_srcdir=$ac_pwd ;;
43207   [\\/]* | ?:[\\/]* )  # Absolute name.
43208     ac_srcdir=$srcdir$ac_dir_suffix;
43209     ac_top_srcdir=$srcdir
43210     ac_abs_top_srcdir=$srcdir ;;
43211   *) # Relative name.
43212     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43213     ac_top_srcdir=$ac_top_build_prefix$srcdir
43214     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43215 esac
43216 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43217
43218
43219   case $ac_mode in
43220   :F)
43221   #
43222   # CONFIG_FILE
43223   #
43224
43225   case $INSTALL in
43226   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43227   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
43228   esac
43229   ac_MKDIR_P=$MKDIR_P
43230   case $MKDIR_P in
43231   [\\/$]* | ?:[\\/]* ) ;;
43232   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
43233   esac
43234 _ACEOF
43235
43236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43237 # If the template does not know about datarootdir, expand it.
43238 # FIXME: This hack should be removed a few years after 2.60.
43239 ac_datarootdir_hack=; ac_datarootdir_seen=
43240 ac_sed_dataroot='
43241 /datarootdir/ {
43242   p
43243   q
43244 }
43245 /@datadir@/p
43246 /@docdir@/p
43247 /@infodir@/p
43248 /@localedir@/p
43249 /@mandir@/p'
43250 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
43251 *datarootdir*) ac_datarootdir_seen=yes;;
43252 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
43253   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
43254 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
43255 _ACEOF
43256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43257   ac_datarootdir_hack='
43258   s&@datadir@&$datadir&g
43259   s&@docdir@&$docdir&g
43260   s&@infodir@&$infodir&g
43261   s&@localedir@&$localedir&g
43262   s&@mandir@&$mandir&g
43263   s&\\\${datarootdir}&$datarootdir&g' ;;
43264 esac
43265 _ACEOF
43266
43267 # Neutralize VPATH when `$srcdir' = `.'.
43268 # Shell code in configure.ac might set extrasub.
43269 # FIXME: do we really want to maintain this feature?
43270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43271 ac_sed_extra="$ac_vpsub
43272 $extrasub
43273 _ACEOF
43274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43275 :t
43276 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43277 s|@configure_input@|$ac_sed_conf_input|;t t
43278 s&@top_builddir@&$ac_top_builddir_sub&;t t
43279 s&@top_build_prefix@&$ac_top_build_prefix&;t t
43280 s&@srcdir@&$ac_srcdir&;t t
43281 s&@abs_srcdir@&$ac_abs_srcdir&;t t
43282 s&@top_srcdir@&$ac_top_srcdir&;t t
43283 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
43284 s&@builddir@&$ac_builddir&;t t
43285 s&@abs_builddir@&$ac_abs_builddir&;t t
43286 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
43287 s&@INSTALL@&$ac_INSTALL&;t t
43288 s&@MKDIR_P@&$ac_MKDIR_P&;t t
43289 $ac_datarootdir_hack
43290 "
43291 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
43292   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43293
43294 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
43295   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
43296   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
43297       "$ac_tmp/out"`; test -z "$ac_out"; } &&
43298   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43299 which seems to be undefined.  Please make sure it is defined" >&5
43300 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43301 which seems to be undefined.  Please make sure it is defined" >&2;}
43302
43303   rm -f "$ac_tmp/stdin"
43304   case $ac_file in
43305   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
43306   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
43307   esac \
43308   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43309  ;;
43310   :H)
43311   #
43312   # CONFIG_HEADER
43313   #
43314   if test x"$ac_file" != x-; then
43315     {
43316       $as_echo "/* $configure_input  */" \
43317       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
43318     } >"$ac_tmp/config.h" \
43319       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43320     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
43321       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
43322 $as_echo "$as_me: $ac_file is unchanged" >&6;}
43323     else
43324       rm -f "$ac_file"
43325       mv "$ac_tmp/config.h" "$ac_file" \
43326         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43327     fi
43328   else
43329     $as_echo "/* $configure_input  */" \
43330       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
43331       || as_fn_error $? "could not create -" "$LINENO" 5
43332   fi
43333 # Compute "$ac_file"'s index in $config_headers.
43334 _am_arg="$ac_file"
43335 _am_stamp_count=1
43336 for _am_header in $config_headers :; do
43337   case $_am_header in
43338     $_am_arg | $_am_arg:* )
43339       break ;;
43340     * )
43341       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
43342   esac
43343 done
43344 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
43345 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43346          X"$_am_arg" : 'X\(//\)[^/]' \| \
43347          X"$_am_arg" : 'X\(//\)$' \| \
43348          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
43349 $as_echo X"$_am_arg" |
43350     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43351             s//\1/
43352             q
43353           }
43354           /^X\(\/\/\)[^/].*/{
43355             s//\1/
43356             q
43357           }
43358           /^X\(\/\/\)$/{
43359             s//\1/
43360             q
43361           }
43362           /^X\(\/\).*/{
43363             s//\1/
43364             q
43365           }
43366           s/.*/./; q'`/stamp-h$_am_stamp_count
43367  ;;
43368
43369   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
43370 $as_echo "$as_me: executing $ac_file commands" >&6;}
43371  ;;
43372   esac
43373
43374
43375   case $ac_file$ac_mode in
43376     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
43377   # Older Autoconf quotes --file arguments for eval, but not when files
43378   # are listed without --file.  Let's play safe and only enable the eval
43379   # if we detect the quoting.
43380   case $CONFIG_FILES in
43381   *\'*) eval set x "$CONFIG_FILES" ;;
43382   *)   set x $CONFIG_FILES ;;
43383   esac
43384   shift
43385   for mf
43386   do
43387     # Strip MF so we end up with the name of the file.
43388     mf=`echo "$mf" | sed -e 's/:.*$//'`
43389     # Check whether this is an Automake generated Makefile or not.
43390     # We used to match only the files named 'Makefile.in', but
43391     # some people rename them; so instead we look at the file content.
43392     # Grep'ing the first line is not enough: some people post-process
43393     # each Makefile.in and add a new line on top of each file to say so.
43394     # Grep'ing the whole file is not good either: AIX grep has a line
43395     # limit of 2048, but all sed's we know have understand at least 4000.
43396     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
43397       dirpart=`$as_dirname -- "$mf" ||
43398 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43399          X"$mf" : 'X\(//\)[^/]' \| \
43400          X"$mf" : 'X\(//\)$' \| \
43401          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
43402 $as_echo X"$mf" |
43403     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43404             s//\1/
43405             q
43406           }
43407           /^X\(\/\/\)[^/].*/{
43408             s//\1/
43409             q
43410           }
43411           /^X\(\/\/\)$/{
43412             s//\1/
43413             q
43414           }
43415           /^X\(\/\).*/{
43416             s//\1/
43417             q
43418           }
43419           s/.*/./; q'`
43420     else
43421       continue
43422     fi
43423     # Extract the definition of DEPDIR, am__include, and am__quote
43424     # from the Makefile without running 'make'.
43425     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
43426     test -z "$DEPDIR" && continue
43427     am__include=`sed -n 's/^am__include = //p' < "$mf"`
43428     test -z "$am__include" && continue
43429     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
43430     # Find all dependency output files, they are included files with
43431     # $(DEPDIR) in their names.  We invoke sed twice because it is the
43432     # simplest approach to changing $(DEPDIR) to its actual value in the
43433     # expansion.
43434     for file in `sed -n "
43435       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
43436          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
43437       # Make sure the directory exists.
43438       test -f "$dirpart/$file" && continue
43439       fdir=`$as_dirname -- "$file" ||
43440 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43441          X"$file" : 'X\(//\)[^/]' \| \
43442          X"$file" : 'X\(//\)$' \| \
43443          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
43444 $as_echo X"$file" |
43445     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43446             s//\1/
43447             q
43448           }
43449           /^X\(\/\/\)[^/].*/{
43450             s//\1/
43451             q
43452           }
43453           /^X\(\/\/\)$/{
43454             s//\1/
43455             q
43456           }
43457           /^X\(\/\).*/{
43458             s//\1/
43459             q
43460           }
43461           s/.*/./; q'`
43462       as_dir=$dirpart/$fdir; as_fn_mkdir_p
43463       # echo "creating $dirpart/$file"
43464       echo '# dummy' > "$dirpart/$file"
43465     done
43466   done
43467 }
43468  ;;
43469     "libtool":C)
43470
43471     # See if we are running on zsh, and set the options that allow our
43472     # commands through without removal of \ escapes.
43473     if test -n "${ZSH_VERSION+set}"; then
43474       setopt NO_GLOB_SUBST
43475     fi
43476
43477     cfgfile=${ofile}T
43478     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43479     $RM "$cfgfile"
43480
43481     cat <<_LT_EOF >> "$cfgfile"
43482 #! $SHELL
43483 # Generated automatically by $as_me ($PACKAGE) $VERSION
43484 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43485
43486 # Provide generalized library-building support services.
43487 # Written by Gordon Matzigkeit, 1996
43488
43489 # Copyright (C) 2014 Free Software Foundation, Inc.
43490 # This is free software; see the source for copying conditions.  There is NO
43491 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
43492
43493 # GNU Libtool is free software; you can redistribute it and/or modify
43494 # it under the terms of the GNU General Public License as published by
43495 # the Free Software Foundation; either version 2 of of the License, or
43496 # (at your option) any later version.
43497 #
43498 # As a special exception to the GNU General Public License, if you
43499 # distribute this file as part of a program or library that is built
43500 # using GNU Libtool, you may include this file under the  same
43501 # distribution terms that you use for the rest of that program.
43502 #
43503 # GNU Libtool is distributed in the hope that it will be useful, but
43504 # WITHOUT ANY WARRANTY; without even the implied warranty of
43505 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
43506 # GNU General Public License for more details.
43507 #
43508 # You should have received a copy of the GNU General Public License
43509 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
43510
43511
43512 # The names of the tagged configurations supported by this script.
43513 available_tags=''
43514
43515 # Configured defaults for sys_lib_dlsearch_path munging.
43516 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
43517
43518 # ### BEGIN LIBTOOL CONFIG
43519
43520 # Which release of libtool.m4 was used?
43521 macro_version=$macro_version
43522 macro_revision=$macro_revision
43523
43524 # Assembler program.
43525 AS=$lt_AS
43526
43527 # DLL creation program.
43528 DLLTOOL=$lt_DLLTOOL
43529
43530 # Object dumper program.
43531 OBJDUMP=$lt_OBJDUMP
43532
43533 # Whether or not to build shared libraries.
43534 build_libtool_libs=$enable_shared
43535
43536 # Whether or not to build static libraries.
43537 build_old_libs=$enable_static
43538
43539 # What type of objects to build.
43540 pic_mode=$pic_mode
43541
43542 # Whether or not to optimize for fast installation.
43543 fast_install=$enable_fast_install
43544
43545 # Shared archive member basename,for filename based shared library versioning on AIX.
43546 shared_archive_member_spec=$shared_archive_member_spec
43547
43548 # Shell to use when invoking shell scripts.
43549 SHELL=$lt_SHELL
43550
43551 # An echo program that protects backslashes.
43552 ECHO=$lt_ECHO
43553
43554 # The PATH separator for the build system.
43555 PATH_SEPARATOR=$lt_PATH_SEPARATOR
43556
43557 # The host system.
43558 host_alias=$host_alias
43559 host=$host
43560 host_os=$host_os
43561
43562 # The build system.
43563 build_alias=$build_alias
43564 build=$build
43565 build_os=$build_os
43566
43567 # A sed program that does not truncate output.
43568 SED=$lt_SED
43569
43570 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43571 Xsed="\$SED -e 1s/^X//"
43572
43573 # A grep program that handles long lines.
43574 GREP=$lt_GREP
43575
43576 # An ERE matcher.
43577 EGREP=$lt_EGREP
43578
43579 # A literal string matcher.
43580 FGREP=$lt_FGREP
43581
43582 # A BSD- or MS-compatible name lister.
43583 NM=$lt_NM
43584
43585 # Whether we need soft or hard links.
43586 LN_S=$lt_LN_S
43587
43588 # What is the maximum length of a command?
43589 max_cmd_len=$max_cmd_len
43590
43591 # Object file suffix (normally "o").
43592 objext=$ac_objext
43593
43594 # Executable file suffix (normally "").
43595 exeext=$exeext
43596
43597 # whether the shell understands "unset".
43598 lt_unset=$lt_unset
43599
43600 # turn spaces into newlines.
43601 SP2NL=$lt_lt_SP2NL
43602
43603 # turn newlines into spaces.
43604 NL2SP=$lt_lt_NL2SP
43605
43606 # convert \$build file names to \$host format.
43607 to_host_file_cmd=$lt_cv_to_host_file_cmd
43608
43609 # convert \$build files to toolchain format.
43610 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
43611
43612 # Method to check whether dependent libraries are shared objects.
43613 deplibs_check_method=$lt_deplibs_check_method
43614
43615 # Command to use when deplibs_check_method = "file_magic".
43616 file_magic_cmd=$lt_file_magic_cmd
43617
43618 # How to find potential files when deplibs_check_method = "file_magic".
43619 file_magic_glob=$lt_file_magic_glob
43620
43621 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
43622 want_nocaseglob=$lt_want_nocaseglob
43623
43624 # Command to associate shared and link libraries.
43625 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
43626
43627 # The archiver.
43628 AR=$lt_AR
43629
43630 # Flags to create an archive.
43631 AR_FLAGS=$lt_AR_FLAGS
43632
43633 # How to feed a file listing to the archiver.
43634 archiver_list_spec=$lt_archiver_list_spec
43635
43636 # A symbol stripping program.
43637 STRIP=$lt_STRIP
43638
43639 # Commands used to install an old-style archive.
43640 RANLIB=$lt_RANLIB
43641 old_postinstall_cmds=$lt_old_postinstall_cmds
43642 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43643
43644 # Whether to use a lock for old archive extraction.
43645 lock_old_archive_extraction=$lock_old_archive_extraction
43646
43647 # A C compiler.
43648 LTCC=$lt_CC
43649
43650 # LTCC compiler flags.
43651 LTCFLAGS=$lt_CFLAGS
43652
43653 # Take the output of nm and produce a listing of raw symbols and C names.
43654 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43655
43656 # Transform the output of nm in a proper C declaration.
43657 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43658
43659 # Transform the output of nm into a list of symbols to manually relocate.
43660 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
43661
43662 # Transform the output of nm in a C name address pair.
43663 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43664
43665 # Transform the output of nm in a C name address pair when lib prefix is needed.
43666 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43667
43668 # The name lister interface.
43669 nm_interface=$lt_lt_cv_nm_interface
43670
43671 # Specify filename containing input files for \$NM.
43672 nm_file_list_spec=$lt_nm_file_list_spec
43673
43674 # The root where to search for dependent libraries,and where our libraries should be installed.
43675 lt_sysroot=$lt_sysroot
43676
43677 # Command to truncate a binary pipe.
43678 lt_truncate_bin=$lt_lt_cv_truncate_bin
43679
43680 # The name of the directory that contains temporary libtool files.
43681 objdir=$objdir
43682
43683 # Used to examine libraries when file_magic_cmd begins with "file".
43684 MAGIC_CMD=$MAGIC_CMD
43685
43686 # Must we lock files when doing compilation?
43687 need_locks=$lt_need_locks
43688
43689 # Manifest tool.
43690 MANIFEST_TOOL=$lt_MANIFEST_TOOL
43691
43692 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43693 DSYMUTIL=$lt_DSYMUTIL
43694
43695 # Tool to change global to local symbols on Mac OS X.
43696 NMEDIT=$lt_NMEDIT
43697
43698 # Tool to manipulate fat objects and archives on Mac OS X.
43699 LIPO=$lt_LIPO
43700
43701 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43702 OTOOL=$lt_OTOOL
43703
43704 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43705 OTOOL64=$lt_OTOOL64
43706
43707 # Old archive suffix (normally "a").
43708 libext=$libext
43709
43710 # Shared library suffix (normally ".so").
43711 shrext_cmds=$lt_shrext_cmds
43712
43713 # The commands to extract the exported symbol list from a shared archive.
43714 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43715
43716 # Variables whose values should be saved in libtool wrapper scripts and
43717 # restored at link time.
43718 variables_saved_for_relink=$lt_variables_saved_for_relink
43719
43720 # Do we need the "lib" prefix for modules?
43721 need_lib_prefix=$need_lib_prefix
43722
43723 # Do we need a version for libraries?
43724 need_version=$need_version
43725
43726 # Library versioning type.
43727 version_type=$version_type
43728
43729 # Shared library runtime path variable.
43730 runpath_var=$runpath_var
43731
43732 # Shared library path variable.
43733 shlibpath_var=$shlibpath_var
43734
43735 # Is shlibpath searched before the hard-coded library search path?
43736 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43737
43738 # Format of library name prefix.
43739 libname_spec=$lt_libname_spec
43740
43741 # List of archive names.  First name is the real one, the rest are links.
43742 # The last name is the one that the linker finds with -lNAME
43743 library_names_spec=$lt_library_names_spec
43744
43745 # The coded name of the library, if different from the real name.
43746 soname_spec=$lt_soname_spec
43747
43748 # Permission mode override for installation of shared libraries.
43749 install_override_mode=$lt_install_override_mode
43750
43751 # Command to use after installation of a shared archive.
43752 postinstall_cmds=$lt_postinstall_cmds
43753
43754 # Command to use after uninstallation of a shared archive.
43755 postuninstall_cmds=$lt_postuninstall_cmds
43756
43757 # Commands used to finish a libtool library installation in a directory.
43758 finish_cmds=$lt_finish_cmds
43759
43760 # As "finish_cmds", except a single script fragment to be evaled but
43761 # not shown.
43762 finish_eval=$lt_finish_eval
43763
43764 # Whether we should hardcode library paths into libraries.
43765 hardcode_into_libs=$hardcode_into_libs
43766
43767 # Compile-time system search path for libraries.
43768 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43769
43770 # Detected run-time system search path for libraries.
43771 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
43772
43773 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
43774 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
43775
43776 # Whether dlopen is supported.
43777 dlopen_support=$enable_dlopen
43778
43779 # Whether dlopen of programs is supported.
43780 dlopen_self=$enable_dlopen_self
43781
43782 # Whether dlopen of statically linked programs is supported.
43783 dlopen_self_static=$enable_dlopen_self_static
43784
43785 # Commands to strip libraries.
43786 old_striplib=$lt_old_striplib
43787 striplib=$lt_striplib
43788
43789
43790 # The linker used to build libraries.
43791 LD=$lt_LD
43792
43793 # How to create reloadable object files.
43794 reload_flag=$lt_reload_flag
43795 reload_cmds=$lt_reload_cmds
43796
43797 # Commands used to build an old-style archive.
43798 old_archive_cmds=$lt_old_archive_cmds
43799
43800 # A language specific compiler.
43801 CC=$lt_compiler
43802
43803 # Is the compiler the GNU compiler?
43804 with_gcc=$GCC
43805
43806 # Compiler flag to turn off builtin functions.
43807 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43808
43809 # Additional compiler flags for building library objects.
43810 pic_flag=$lt_lt_prog_compiler_pic
43811
43812 # How to pass a linker flag through the compiler.
43813 wl=$lt_lt_prog_compiler_wl
43814
43815 # Compiler flag to prevent dynamic linking.
43816 link_static_flag=$lt_lt_prog_compiler_static
43817
43818 # Does compiler simultaneously support -c and -o options?
43819 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43820
43821 # Whether or not to add -lc for building shared libraries.
43822 build_libtool_need_lc=$archive_cmds_need_lc
43823
43824 # Whether or not to disallow shared libs when runtime libs are static.
43825 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43826
43827 # Compiler flag to allow reflexive dlopens.
43828 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43829
43830 # Compiler flag to generate shared objects directly from archives.
43831 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43832
43833 # Whether the compiler copes with passing no objects directly.
43834 compiler_needs_object=$lt_compiler_needs_object
43835
43836 # Create an old-style archive from a shared archive.
43837 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43838
43839 # Create a temporary old-style archive to link instead of a shared archive.
43840 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43841
43842 # Commands used to build a shared archive.
43843 archive_cmds=$lt_archive_cmds
43844 archive_expsym_cmds=$lt_archive_expsym_cmds
43845
43846 # Commands used to build a loadable module if different from building
43847 # a shared archive.
43848 module_cmds=$lt_module_cmds
43849 module_expsym_cmds=$lt_module_expsym_cmds
43850
43851 # Whether we are building with GNU ld or not.
43852 with_gnu_ld=$lt_with_gnu_ld
43853
43854 # Flag that allows shared libraries with undefined symbols to be built.
43855 allow_undefined_flag=$lt_allow_undefined_flag
43856
43857 # Flag that enforces no undefined symbols.
43858 no_undefined_flag=$lt_no_undefined_flag
43859
43860 # Flag to hardcode \$libdir into a binary during linking.
43861 # This must work even if \$libdir does not exist
43862 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43863
43864 # Whether we need a single "-rpath" flag with a separated argument.
43865 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43866
43867 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43868 # DIR into the resulting binary.
43869 hardcode_direct=$hardcode_direct
43870
43871 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43872 # DIR into the resulting binary and the resulting library dependency is
43873 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
43874 # library is relocated.
43875 hardcode_direct_absolute=$hardcode_direct_absolute
43876
43877 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43878 # into the resulting binary.
43879 hardcode_minus_L=$hardcode_minus_L
43880
43881 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43882 # into the resulting binary.
43883 hardcode_shlibpath_var=$hardcode_shlibpath_var
43884
43885 # Set to "yes" if building a shared library automatically hardcodes DIR
43886 # into the library and all subsequent libraries and executables linked
43887 # against it.
43888 hardcode_automatic=$hardcode_automatic
43889
43890 # Set to yes if linker adds runtime paths of dependent libraries
43891 # to runtime path list.
43892 inherit_rpath=$inherit_rpath
43893
43894 # Whether libtool must link a program against all its dependency libraries.
43895 link_all_deplibs=$link_all_deplibs
43896
43897 # Set to "yes" if exported symbols are required.
43898 always_export_symbols=$always_export_symbols
43899
43900 # The commands to list exported symbols.
43901 export_symbols_cmds=$lt_export_symbols_cmds
43902
43903 # Symbols that should not be listed in the preloaded symbols.
43904 exclude_expsyms=$lt_exclude_expsyms
43905
43906 # Symbols that must always be exported.
43907 include_expsyms=$lt_include_expsyms
43908
43909 # Commands necessary for linking programs (against libraries) with templates.
43910 prelink_cmds=$lt_prelink_cmds
43911
43912 # Commands necessary for finishing linking programs.
43913 postlink_cmds=$lt_postlink_cmds
43914
43915 # Specify filename containing input files.
43916 file_list_spec=$lt_file_list_spec
43917
43918 # How to hardcode a shared library path into an executable.
43919 hardcode_action=$hardcode_action
43920
43921 # ### END LIBTOOL CONFIG
43922
43923 _LT_EOF
43924
43925     cat <<'_LT_EOF' >> "$cfgfile"
43926
43927 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
43928
43929 # func_munge_path_list VARIABLE PATH
43930 # -----------------------------------
43931 # VARIABLE is name of variable containing _space_ separated list of
43932 # directories to be munged by the contents of PATH, which is string
43933 # having a format:
43934 # "DIR[:DIR]:"
43935 #       string "DIR[ DIR]" will be prepended to VARIABLE
43936 # ":DIR[:DIR]"
43937 #       string "DIR[ DIR]" will be appended to VARIABLE
43938 # "DIRP[:DIRP]::[DIRA:]DIRA"
43939 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
43940 #       "DIRA[ DIRA]" will be appended to VARIABLE
43941 # "DIR[:DIR]"
43942 #       VARIABLE will be replaced by "DIR[ DIR]"
43943 func_munge_path_list ()
43944 {
43945     case x$2 in
43946     x)
43947         ;;
43948     *:)
43949         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
43950         ;;
43951     x:*)
43952         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
43953         ;;
43954     *::*)
43955         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
43956         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
43957         ;;
43958     *)
43959         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
43960         ;;
43961     esac
43962 }
43963
43964
43965 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
43966 func_cc_basename ()
43967 {
43968     for cc_temp in $*""; do
43969       case $cc_temp in
43970         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43971         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43972         \-*) ;;
43973         *) break;;
43974       esac
43975     done
43976     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43977 }
43978
43979
43980 # ### END FUNCTIONS SHARED WITH CONFIGURE
43981
43982 _LT_EOF
43983
43984   case $host_os in
43985   aix3*)
43986     cat <<\_LT_EOF >> "$cfgfile"
43987 # AIX sometimes has problems with the GCC collect2 program.  For some
43988 # reason, if we set the COLLECT_NAMES environment variable, the problems
43989 # vanish in a puff of smoke.
43990 if test set != "${COLLECT_NAMES+set}"; then
43991   COLLECT_NAMES=
43992   export COLLECT_NAMES
43993 fi
43994 _LT_EOF
43995     ;;
43996   esac
43997
43998
43999 ltmain=$ac_aux_dir/ltmain.sh
44000
44001
44002   # We use sed instead of cat because bash on DJGPP gets confused if
44003   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
44004   # text mode, it properly converts lines to CR/LF.  This bash problem
44005   # is reportedly fixed, but why not run on old versions too?
44006   sed '$q' "$ltmain" >> "$cfgfile" \
44007      || (rm -f "$cfgfile"; exit 1)
44008
44009    mv -f "$cfgfile" "$ofile" ||
44010     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
44011   chmod +x "$ofile"
44012
44013  ;;
44014
44015   esac
44016 done # for ac_tag
44017
44018
44019 as_fn_exit 0
44020 _ACEOF
44021 ac_clean_files=$ac_clean_files_save
44022
44023 test $ac_write_fail = 0 ||
44024   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
44025
44026
44027 # configure is writing to config.log, and then calls config.status.
44028 # config.status does its own redirection, appending to config.log.
44029 # Unfortunately, on DOS this fails, as config.log is still kept open
44030 # by configure, so config.status won't be able to write to it; its
44031 # output is simply discarded.  So we exec the FD to /dev/null,
44032 # effectively closing config.log, so it can be properly (re)opened and
44033 # appended to by config.status.  When coming back to configure, we
44034 # need to make the FD available again.
44035 if test "$no_create" != yes; then
44036   ac_cs_success=:
44037   ac_config_status_args=
44038   test "$silent" = yes &&
44039     ac_config_status_args="$ac_config_status_args --quiet"
44040   exec 5>/dev/null
44041   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44042   exec 5>>config.log
44043   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44044   # would make configure fail if this is the last instruction.
44045   $ac_cs_success || as_fn_exit 1
44046 fi
44047
44048 #
44049 # CONFIG_SUBDIRS section.
44050 #
44051 if test "$no_recursion" != yes; then
44052
44053   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
44054   # so they do not pile up.
44055   ac_sub_configure_args=
44056   ac_prev=
44057   eval "set x $ac_configure_args"
44058   shift
44059   for ac_arg
44060   do
44061     if test -n "$ac_prev"; then
44062       ac_prev=
44063       continue
44064     fi
44065     case $ac_arg in
44066     -cache-file | --cache-file | --cache-fil | --cache-fi \
44067     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
44068       ac_prev=cache_file ;;
44069     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
44070     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
44071     | --c=*)
44072       ;;
44073     --config-cache | -C)
44074       ;;
44075     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
44076       ac_prev=srcdir ;;
44077     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
44078       ;;
44079     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
44080       ac_prev=prefix ;;
44081     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
44082       ;;
44083     --disable-option-checking)
44084       ;;
44085     *)
44086       case $ac_arg in
44087       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
44088       esac
44089       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
44090     esac
44091   done
44092
44093   # Always prepend --prefix to ensure using the same prefix
44094   # in subdir configurations.
44095   ac_arg="--prefix=$prefix"
44096   case $ac_arg in
44097   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
44098   esac
44099   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
44100
44101   # Pass --silent
44102   if test "$silent" = yes; then
44103     ac_sub_configure_args="--silent $ac_sub_configure_args"
44104   fi
44105
44106   # Always prepend --disable-option-checking to silence warnings, since
44107   # different subdirs can have different --enable and --with options.
44108   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
44109
44110   ac_popdir=`pwd`
44111   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
44112
44113     # Do not complain, so a configure script can configure whichever
44114     # parts of a large source tree are present.
44115     test -d "$srcdir/$ac_dir" || continue
44116
44117     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
44118     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
44119     $as_echo "$ac_msg" >&6
44120     as_dir="$ac_dir"; as_fn_mkdir_p
44121     ac_builddir=.
44122
44123 case "$ac_dir" in
44124 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
44125 *)
44126   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
44127   # A ".." for each directory in $ac_dir_suffix.
44128   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
44129   case $ac_top_builddir_sub in
44130   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
44131   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
44132   esac ;;
44133 esac
44134 ac_abs_top_builddir=$ac_pwd
44135 ac_abs_builddir=$ac_pwd$ac_dir_suffix
44136 # for backward compatibility:
44137 ac_top_builddir=$ac_top_build_prefix
44138
44139 case $srcdir in
44140   .)  # We are building in place.
44141     ac_srcdir=.
44142     ac_top_srcdir=$ac_top_builddir_sub
44143     ac_abs_top_srcdir=$ac_pwd ;;
44144   [\\/]* | ?:[\\/]* )  # Absolute name.
44145     ac_srcdir=$srcdir$ac_dir_suffix;
44146     ac_top_srcdir=$srcdir
44147     ac_abs_top_srcdir=$srcdir ;;
44148   *) # Relative name.
44149     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
44150     ac_top_srcdir=$ac_top_build_prefix$srcdir
44151     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
44152 esac
44153 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44154
44155
44156     cd "$ac_dir"
44157
44158     # Check for guested configure; otherwise get Cygnus style configure.
44159     if test -f "$ac_srcdir/configure.gnu"; then
44160       ac_sub_configure=$ac_srcdir/configure.gnu
44161     elif test -f "$ac_srcdir/configure"; then
44162       ac_sub_configure=$ac_srcdir/configure
44163     elif test -f "$ac_srcdir/configure.in"; then
44164       # This should be Cygnus configure.
44165       ac_sub_configure=$ac_aux_dir/configure
44166     else
44167       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
44168 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
44169       ac_sub_configure=
44170     fi
44171
44172     # The recursion is here.
44173     if test -n "$ac_sub_configure"; then
44174       # Make the cache file name correct relative to the subdirectory.
44175       case $cache_file in
44176       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
44177       *) # Relative name.
44178         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
44179       esac
44180
44181       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
44182 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
44183       # The eval makes quoting arguments work.
44184       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
44185            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
44186         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
44187     fi
44188
44189     cd "$ac_popdir"
44190   done
44191 fi
44192 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
44193   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
44194 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
44195 fi
44196
44197
44198
44199     tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
44200   if test -z "$tmp_cpp"; then
44201     tmp_cpp='cpp'
44202   fi
44203   cat >./tests/configurehelp.pm <<_EOF
44204 # This is a generated file.  Do not edit.
44205
44206 package configurehelp;
44207
44208 use strict;
44209 use warnings;
44210 use Exporter;
44211
44212 use vars qw(
44213     @ISA
44214     @EXPORT_OK
44215     \$Cpreprocessor
44216     );
44217
44218 @ISA = qw(Exporter);
44219
44220 @EXPORT_OK = qw(
44221     \$Cpreprocessor
44222     );
44223
44224 \$Cpreprocessor = '$tmp_cpp';
44225
44226 1;
44227 _EOF
44228
44229
44230
44231 ## ---------------------------------- ##
44232 ##  Start of distclean amending code  ##
44233 ## ---------------------------------- ##
44234
44235 for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
44236 do
44237
44238 if test ! -f "$xc_subdir/Makefile"; then
44239   echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
44240   exit 1
44241 fi
44242
44243 # Fetch dependency tracking file list from Makefile include lines.
44244
44245 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
44246 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
44247
44248 # --disable-dependency-tracking might have been used, consequently
44249 # there is nothing to amend without a dependency tracking file list.
44250
44251 if test $xc_cnt_words -gt 0; then
44252
44253 { $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
44254 $as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
44255
44256 # Build Makefile specific patch hunk.
44257
44258 xc_p="$xc_subdir/xc_patch.tmp"
44259
44260 xc_rm_depfiles=`echo "$xc_inc_lines" \
44261   | $SED 's%include%    -rm -f%' 2>/dev/null`
44262
44263 xc_dep_subdirs=`echo "$xc_inc_lines" \
44264   | $SED 's%include[ ][ ]*%%' 2>/dev/null \
44265   | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
44266   | sort | uniq`
44267
44268 echo "$xc_rm_depfiles" >$xc_p
44269
44270 for xc_dep_dir in $xc_dep_subdirs; do
44271   echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\"            >>$xc_p
44272   echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\"      >>$xc_p
44273   echo "${xc_tab}  rm -rf $xc_dep_dir; \\"                                          >>$xc_p
44274   echo "${xc_tab}fi"                                                                >>$xc_p
44275 done
44276
44277 # Build Makefile patching sed scripts.
44278
44279 xc_s1="$xc_subdir/xc_script_1.tmp"
44280 xc_s2="$xc_subdir/xc_script_2.tmp"
44281 xc_s3="$xc_subdir/xc_script_3.tmp"
44282
44283 cat >$xc_s1 <<\_EOT
44284 /^distclean[ ]*:/,/^[^  ][^     ]*:/{
44285   s/^.*(DEPDIR)/___xc_depdir_line___/
44286 }
44287 /^maintainer-clean[ ]*:/,/^[^   ][^     ]*:/{
44288   s/^.*(DEPDIR)/___xc_depdir_line___/
44289 }
44290 _EOT
44291
44292 cat >$xc_s2 <<\_EOT
44293 /___xc_depdir_line___$/{
44294   N
44295   /___xc_depdir_line___$/D
44296 }
44297 _EOT
44298
44299 cat >$xc_s3 <<_EOT
44300 /^___xc_depdir_line___/{
44301   r $xc_p
44302   d
44303 }
44304 _EOT
44305
44306 # Apply patch to Makefile and cleanup.
44307
44308 $SED -f "$xc_s1" "$xc_subdir/Makefile"      >"$xc_subdir/Makefile.tmp1"
44309 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
44310 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
44311
44312 if test -f "$xc_subdir/Makefile.tmp3"; then
44313   mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
44314 fi
44315
44316 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
44317 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
44318 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
44319
44320 test -f "$xc_p"  && rm -f "$xc_p"
44321 test -f "$xc_s1" && rm -f "$xc_s1"
44322 test -f "$xc_s2" && rm -f "$xc_s2"
44323 test -f "$xc_s3" && rm -f "$xc_s3"
44324
44325 fi
44326
44327 done
44328
44329 ## -------------------------------- ##
44330 ##  End of distclean amending code  ##
44331 ## -------------------------------- ##
44332
44333
44334
44335 { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
44336
44337   curl version:     ${CURLVERSION}
44338   Host setup:       ${host}
44339   Install prefix:   ${prefix}
44340   Compiler:         ${CC}
44341   SSL support:      ${curl_ssl_msg}
44342   SSH support:      ${curl_ssh_msg}
44343   zlib support:     ${curl_zlib_msg}
44344   brotli support:   ${curl_brotli_msg}
44345   GSS-API support:  ${curl_gss_msg}
44346   TLS-SRP support:  ${curl_tls_srp_msg}
44347   resolver:         ${curl_res_msg}
44348   IPv6 support:     ${curl_ipv6_msg}
44349   Unix sockets support: ${curl_unix_sockets_msg}
44350   IDN support:      ${curl_idn_msg}
44351   Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
44352   Built-in manual:  ${curl_manual_msg}
44353   --libcurl option: ${curl_libcurl_msg}
44354   Verbose errors:   ${curl_verbose_msg}
44355   SSPI support:     ${curl_sspi_msg}
44356   ca cert bundle:   ${ca}${ca_warning}
44357   ca cert path:     ${capath}${capath_warning}
44358   ca fallback:      ${with_ca_fallback}
44359   LDAP support:     ${curl_ldap_msg}
44360   LDAPS support:    ${curl_ldaps_msg}
44361   RTSP support:     ${curl_rtsp_msg}
44362   RTMP support:     ${curl_rtmp_msg}
44363   metalink support: ${curl_mtlnk_msg}
44364   PSL support:      ${curl_psl_msg}
44365   HTTP2 support:    ${curl_h2_msg}
44366   Protocols:        ${SUPPORT_PROTOCOLS}
44367 " >&5
44368 $as_echo "$as_me: Configured to build curl/libcurl:
44369
44370   curl version:     ${CURLVERSION}
44371   Host setup:       ${host}
44372   Install prefix:   ${prefix}
44373   Compiler:         ${CC}
44374   SSL support:      ${curl_ssl_msg}
44375   SSH support:      ${curl_ssh_msg}
44376   zlib support:     ${curl_zlib_msg}
44377   brotli support:   ${curl_brotli_msg}
44378   GSS-API support:  ${curl_gss_msg}
44379   TLS-SRP support:  ${curl_tls_srp_msg}
44380   resolver:         ${curl_res_msg}
44381   IPv6 support:     ${curl_ipv6_msg}
44382   Unix sockets support: ${curl_unix_sockets_msg}
44383   IDN support:      ${curl_idn_msg}
44384   Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
44385   Built-in manual:  ${curl_manual_msg}
44386   --libcurl option: ${curl_libcurl_msg}
44387   Verbose errors:   ${curl_verbose_msg}
44388   SSPI support:     ${curl_sspi_msg}
44389   ca cert bundle:   ${ca}${ca_warning}
44390   ca cert path:     ${capath}${capath_warning}
44391   ca fallback:      ${with_ca_fallback}
44392   LDAP support:     ${curl_ldap_msg}
44393   LDAPS support:    ${curl_ldaps_msg}
44394   RTSP support:     ${curl_rtsp_msg}
44395   RTMP support:     ${curl_rtmp_msg}
44396   metalink support: ${curl_mtlnk_msg}
44397   PSL support:      ${curl_psl_msg}
44398   HTTP2 support:    ${curl_h2_msg}
44399   Protocols:        ${SUPPORT_PROTOCOLS}
44400 " >&6;}