cb00bd670473e6178fb18dd2cf730de45640a577
[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 - 2016 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     # Stop dead until user provides 'PATH_SEPARATOR' definition.
237     echo "$xc_msg_err 'PATH_SEPARATOR' variable not set. $xc_msg_abrt" >&2
238     exit 1
239   fi
240 else
241   # Separator with the greater directory count is the auto-detected one.
242   if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
243     xc_tst_auto_separator=';'
244   else
245     xc_tst_auto_separator=':'
246   fi
247   if test -z "$PATH_SEPARATOR"; then
248     # Simply use the auto-detected one when not already set.
249     PATH_SEPARATOR=$xc_tst_auto_separator
250   elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
251     echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
252   fi
253 fi
254 xc_PATH_SEPARATOR=$PATH_SEPARATOR
255
256 xc_configure_preamble_result='yes'
257
258
259 ## -------------------- ##
260 ## M4sh Initialization. ##
261 ## -------------------- ##
262
263 # Be more Bourne compatible
264 DUALCASE=1; export DUALCASE # for MKS sh
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
266   emulate sh
267   NULLCMD=:
268   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
269   # is contrary to our usage.  Disable this feature.
270   alias -g '${1+"$@"}'='"$@"'
271   setopt NO_GLOB_SUBST
272 else
273   case `(set -o) 2>/dev/null` in #(
274   *posix*) :
275     set -o posix ;; #(
276   *) :
277      ;;
278 esac
279 fi
280
281
282 as_nl='
283 '
284 export as_nl
285 # Printing a long string crashes Solaris 7 /usr/bin/printf.
286 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
287 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
288 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
289 # Prefer a ksh shell builtin over an external printf program on Solaris,
290 # but without wasting forks for bash or zsh.
291 if test -z "$BASH_VERSION$ZSH_VERSION" \
292     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
293   as_echo='print -r --'
294   as_echo_n='print -rn --'
295 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
296   as_echo='printf %s\n'
297   as_echo_n='printf %s'
298 else
299   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
300     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
301     as_echo_n='/usr/ucb/echo -n'
302   else
303     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
304     as_echo_n_body='eval
305       arg=$1;
306       case $arg in #(
307       *"$as_nl"*)
308         expr "X$arg" : "X\\(.*\\)$as_nl";
309         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
310       esac;
311       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
312     '
313     export as_echo_n_body
314     as_echo_n='sh -c $as_echo_n_body as_echo'
315   fi
316   export as_echo_body
317   as_echo='sh -c $as_echo_body as_echo'
318 fi
319
320
321
322 # IFS
323 # We need space, tab and new line, in precisely that order.  Quoting is
324 # there to prevent editors from complaining about space-tab.
325 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
326 # splitting by setting IFS to empty value.)
327 IFS=" ""        $as_nl"
328
329 # Find who we are.  Look in the path if we contain no directory separator.
330 as_myself=
331 case $0 in #((
332   *[\\/]* ) as_myself=$0 ;;
333   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
334 for as_dir in $PATH
335 do
336   IFS=$as_save_IFS
337   test -z "$as_dir" && as_dir=.
338     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
339   done
340 IFS=$as_save_IFS
341
342      ;;
343 esac
344 # We did not find ourselves, most probably we were run as `sh COMMAND'
345 # in which case we are not to be found in the path.
346 if test "x$as_myself" = x; then
347   as_myself=$0
348 fi
349 if test ! -f "$as_myself"; then
350   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
351   exit 1
352 fi
353
354 # Unset variables that we do not need and which cause bugs (e.g. in
355 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
356 # suppresses any "Segmentation fault" message there.  '((' could
357 # trigger a bug in pdksh 5.2.14.
358 for as_var in BASH_ENV ENV MAIL MAILPATH
359 do eval test x\${$as_var+set} = xset \
360   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
361 done
362 PS1='$ '
363 PS2='> '
364 PS4='+ '
365
366 # NLS nuisances.
367 LC_ALL=C
368 export LC_ALL
369 LANGUAGE=C
370 export LANGUAGE
371
372 # CDPATH.
373 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
374
375 # Use a proper internal environment variable to ensure we don't fall
376   # into an infinite loop, continuously re-executing ourselves.
377   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
378     _as_can_reexec=no; export _as_can_reexec;
379     # We cannot yet assume a decent shell, so we have to provide a
380 # neutralization value for shells without unset; and this also
381 # works around shells that cannot unset nonexistent variables.
382 # Preserve -v and -x to the replacement shell.
383 BASH_ENV=/dev/null
384 ENV=/dev/null
385 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
386 case $- in # ((((
387   *v*x* | *x*v* ) as_opts=-vx ;;
388   *v* ) as_opts=-v ;;
389   *x* ) as_opts=-x ;;
390   * ) as_opts= ;;
391 esac
392 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
393 # Admittedly, this is quite paranoid, since all the known shells bail
394 # out after a failed `exec'.
395 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
396 as_fn_exit 255
397   fi
398   # We don't want this to propagate to other subprocesses.
399           { _as_can_reexec=; unset _as_can_reexec;}
400 if test "x$CONFIG_SHELL" = x; then
401   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
402   emulate sh
403   NULLCMD=:
404   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
405   # is contrary to our usage.  Disable this feature.
406   alias -g '\${1+\"\$@\"}'='\"\$@\"'
407   setopt NO_GLOB_SUBST
408 else
409   case \`(set -o) 2>/dev/null\` in #(
410   *posix*) :
411     set -o posix ;; #(
412   *) :
413      ;;
414 esac
415 fi
416 "
417   as_required="as_fn_return () { (exit \$1); }
418 as_fn_success () { as_fn_return 0; }
419 as_fn_failure () { as_fn_return 1; }
420 as_fn_ret_success () { return 0; }
421 as_fn_ret_failure () { return 1; }
422
423 exitcode=0
424 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
425 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
426 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
427 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
428 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
429
430 else
431   exitcode=1; echo positional parameters were not saved.
432 fi
433 test x\$exitcode = x0 || exit 1
434 test -x / || exit 1"
435   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
436   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
437   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
438   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
439 test \$(( 1 + 1 )) = 2 || exit 1
440
441   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
442     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
443     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
444     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
445     PATH=/empty FPATH=/empty; export PATH FPATH
446     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
447       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
448   if (eval "$as_required") 2>/dev/null; then :
449   as_have_required=yes
450 else
451   as_have_required=no
452 fi
453   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
454
455 else
456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
457 as_found=false
458 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
459 do
460   IFS=$as_save_IFS
461   test -z "$as_dir" && as_dir=.
462   as_found=:
463   case $as_dir in #(
464          /*)
465            for as_base in sh bash ksh sh5; do
466              # Try only shells that exist, to save several forks.
467              as_shell=$as_dir/$as_base
468              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
469                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
470   CONFIG_SHELL=$as_shell as_have_required=yes
471                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
472   break 2
473 fi
474 fi
475            done;;
476        esac
477   as_found=false
478 done
479 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
480               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
481   CONFIG_SHELL=$SHELL as_have_required=yes
482 fi; }
483 IFS=$as_save_IFS
484
485
486       if test "x$CONFIG_SHELL" != x; then :
487   export CONFIG_SHELL
488              # We cannot yet assume a decent shell, so we have to provide a
489 # neutralization value for shells without unset; and this also
490 # works around shells that cannot unset nonexistent variables.
491 # Preserve -v and -x to the replacement shell.
492 BASH_ENV=/dev/null
493 ENV=/dev/null
494 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
495 case $- in # ((((
496   *v*x* | *x*v* ) as_opts=-vx ;;
497   *v* ) as_opts=-v ;;
498   *x* ) as_opts=-x ;;
499   * ) as_opts= ;;
500 esac
501 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
502 # Admittedly, this is quite paranoid, since all the known shells bail
503 # out after a failed `exec'.
504 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
505 exit 255
506 fi
507
508     if test x$as_have_required = xno; then :
509   $as_echo "$0: This script requires a shell more modern than all"
510   $as_echo "$0: the shells that I found on your system."
511   if test x${ZSH_VERSION+set} = xset ; then
512     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
513     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
514   else
515     $as_echo "$0: Please tell bug-autoconf@gnu.org and a suitable curl
516 $0: mailing list: https://curl.haxx.se/mail/ about your
517 $0: system, including any error possibly output before this
518 $0: message. Then install a modern shell, or manually run
519 $0: the script under such a shell if you do have one."
520   fi
521   exit 1
522 fi
523 fi
524 fi
525 SHELL=${CONFIG_SHELL-/bin/sh}
526 export SHELL
527 # Unset more variables known to interfere with behavior of common tools.
528 CLICOLOR_FORCE= GREP_OPTIONS=
529 unset CLICOLOR_FORCE GREP_OPTIONS
530
531 ## --------------------- ##
532 ## M4sh Shell Functions. ##
533 ## --------------------- ##
534 # as_fn_unset VAR
535 # ---------------
536 # Portably unset VAR.
537 as_fn_unset ()
538 {
539   { eval $1=; unset $1;}
540 }
541 as_unset=as_fn_unset
542
543 # as_fn_set_status STATUS
544 # -----------------------
545 # Set $? to STATUS, without forking.
546 as_fn_set_status ()
547 {
548   return $1
549 } # as_fn_set_status
550
551 # as_fn_exit STATUS
552 # -----------------
553 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
554 as_fn_exit ()
555 {
556   set +e
557   as_fn_set_status $1
558   exit $1
559 } # as_fn_exit
560
561 # as_fn_mkdir_p
562 # -------------
563 # Create "$as_dir" as a directory, including parents if necessary.
564 as_fn_mkdir_p ()
565 {
566
567   case $as_dir in #(
568   -*) as_dir=./$as_dir;;
569   esac
570   test -d "$as_dir" || eval $as_mkdir_p || {
571     as_dirs=
572     while :; do
573       case $as_dir in #(
574       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
575       *) as_qdir=$as_dir;;
576       esac
577       as_dirs="'$as_qdir' $as_dirs"
578       as_dir=`$as_dirname -- "$as_dir" ||
579 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
580          X"$as_dir" : 'X\(//\)[^/]' \| \
581          X"$as_dir" : 'X\(//\)$' \| \
582          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
583 $as_echo X"$as_dir" |
584     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
585             s//\1/
586             q
587           }
588           /^X\(\/\/\)[^/].*/{
589             s//\1/
590             q
591           }
592           /^X\(\/\/\)$/{
593             s//\1/
594             q
595           }
596           /^X\(\/\).*/{
597             s//\1/
598             q
599           }
600           s/.*/./; q'`
601       test -d "$as_dir" && break
602     done
603     test -z "$as_dirs" || eval "mkdir $as_dirs"
604   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
605
606
607 } # as_fn_mkdir_p
608
609 # as_fn_executable_p FILE
610 # -----------------------
611 # Test if FILE is an executable regular file.
612 as_fn_executable_p ()
613 {
614   test -f "$1" && test -x "$1"
615 } # as_fn_executable_p
616 # as_fn_append VAR VALUE
617 # ----------------------
618 # Append the text in VALUE to the end of the definition contained in VAR. Take
619 # advantage of any shell optimizations that allow amortized linear growth over
620 # repeated appends, instead of the typical quadratic growth present in naive
621 # implementations.
622 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
623   eval 'as_fn_append ()
624   {
625     eval $1+=\$2
626   }'
627 else
628   as_fn_append ()
629   {
630     eval $1=\$$1\$2
631   }
632 fi # as_fn_append
633
634 # as_fn_arith ARG...
635 # ------------------
636 # Perform arithmetic evaluation on the ARGs, and store the result in the
637 # global $as_val. Take advantage of shells that can avoid forks. The arguments
638 # must be portable across $(()) and expr.
639 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
640   eval 'as_fn_arith ()
641   {
642     as_val=$(( $* ))
643   }'
644 else
645   as_fn_arith ()
646   {
647     as_val=`expr "$@" || test $? -eq 1`
648   }
649 fi # as_fn_arith
650
651
652 # as_fn_error STATUS ERROR [LINENO LOG_FD]
653 # ----------------------------------------
654 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
655 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
656 # script with STATUS, using 1 if that was 0.
657 as_fn_error ()
658 {
659   as_status=$1; test $as_status -eq 0 && as_status=1
660   if test "$4"; then
661     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
662     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
663   fi
664   $as_echo "$as_me: error: $2" >&2
665   as_fn_exit $as_status
666 } # as_fn_error
667
668 if expr a : '\(a\)' >/dev/null 2>&1 &&
669    test "X`expr 00001 : '.*\(...\)'`" = X001; then
670   as_expr=expr
671 else
672   as_expr=false
673 fi
674
675 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
676   as_basename=basename
677 else
678   as_basename=false
679 fi
680
681 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
682   as_dirname=dirname
683 else
684   as_dirname=false
685 fi
686
687 as_me=`$as_basename -- "$0" ||
688 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
689          X"$0" : 'X\(//\)$' \| \
690          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
691 $as_echo X/"$0" |
692     sed '/^.*\/\([^/][^/]*\)\/*$/{
693             s//\1/
694             q
695           }
696           /^X\/\(\/\/\)$/{
697             s//\1/
698             q
699           }
700           /^X\/\(\/\).*/{
701             s//\1/
702             q
703           }
704           s/.*/./; q'`
705
706 # Avoid depending upon Character Ranges.
707 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
708 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
709 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
710 as_cr_digits='0123456789'
711 as_cr_alnum=$as_cr_Letters$as_cr_digits
712
713
714   as_lineno_1=$LINENO as_lineno_1a=$LINENO
715   as_lineno_2=$LINENO as_lineno_2a=$LINENO
716   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
717   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
718   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
719   sed -n '
720     p
721     /[$]LINENO/=
722   ' <$as_myself |
723     sed '
724       s/[$]LINENO.*/&-/
725       t lineno
726       b
727       :lineno
728       N
729       :loop
730       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
731       t loop
732       s/-\n.*//
733     ' >$as_me.lineno &&
734   chmod +x "$as_me.lineno" ||
735     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
736
737   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
738   # already done that, so ensure we don't try to do so again and fall
739   # in an infinite loop.  This has already happened in practice.
740   _as_can_reexec=no; export _as_can_reexec
741   # Don't try to exec as it changes $[0], causing all sort of problems
742   # (the dirname of $[0] is not the place where we might find the
743   # original and so on.  Autoconf is especially sensitive to this).
744   . "./$as_me.lineno"
745   # Exit status is that of the last command.
746   exit
747 }
748
749 ECHO_C= ECHO_N= ECHO_T=
750 case `echo -n x` in #(((((
751 -n*)
752   case `echo 'xy\c'` in
753   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
754   xy)  ECHO_C='\c';;
755   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
756        ECHO_T=' ';;
757   esac;;
758 *)
759   ECHO_N='-n';;
760 esac
761
762 rm -f conf$$ conf$$.exe conf$$.file
763 if test -d conf$$.dir; then
764   rm -f conf$$.dir/conf$$.file
765 else
766   rm -f conf$$.dir
767   mkdir conf$$.dir 2>/dev/null
768 fi
769 if (echo >conf$$.file) 2>/dev/null; then
770   if ln -s conf$$.file conf$$ 2>/dev/null; then
771     as_ln_s='ln -s'
772     # ... but there are two gotchas:
773     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
774     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
775     # In both cases, we have to default to `cp -pR'.
776     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
777       as_ln_s='cp -pR'
778   elif ln conf$$.file conf$$ 2>/dev/null; then
779     as_ln_s=ln
780   else
781     as_ln_s='cp -pR'
782   fi
783 else
784   as_ln_s='cp -pR'
785 fi
786 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
787 rmdir conf$$.dir 2>/dev/null
788
789 if mkdir -p . 2>/dev/null; then
790   as_mkdir_p='mkdir -p "$as_dir"'
791 else
792   test -d ./-p && rmdir ./-p
793   as_mkdir_p=false
794 fi
795
796 as_test_x='test -x'
797 as_executable_p=as_fn_executable_p
798
799 # Sed expression to map a string onto a valid CPP name.
800 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
801
802 # Sed expression to map a string onto a valid variable name.
803 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
804
805 SHELL=${CONFIG_SHELL-/bin/sh}
806
807
808 test -n "$DJDIR" || exec 7<&0 </dev/null
809 exec 6>&1
810
811 # Name of the host.
812 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
813 # so uname gets run too.
814 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
815
816 #
817 # Initializations.
818 #
819 ac_default_prefix=/usr/local
820 ac_clean_files=
821 ac_config_libobj_dir=.
822 LIBOBJS=
823 cross_compiling=no
824 subdirs=
825 MFLAGS=
826 MAKEFLAGS=
827
828 # Identity of this package.
829 PACKAGE_NAME='curl'
830 PACKAGE_TARNAME='curl'
831 PACKAGE_VERSION='-'
832 PACKAGE_STRING='curl -'
833 PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.haxx.se/mail/'
834 PACKAGE_URL=''
835
836 ac_unique_file="lib/urldata.h"
837 # Factoring default headers for most tests.
838 ac_includes_default="\
839 #include <stdio.h>
840 #ifdef HAVE_SYS_TYPES_H
841 # include <sys/types.h>
842 #endif
843 #ifdef HAVE_SYS_STAT_H
844 # include <sys/stat.h>
845 #endif
846 #ifdef STDC_HEADERS
847 # include <stdlib.h>
848 # include <stddef.h>
849 #else
850 # ifdef HAVE_STDLIB_H
851 #  include <stdlib.h>
852 # endif
853 #endif
854 #ifdef HAVE_STRING_H
855 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
856 #  include <memory.h>
857 # endif
858 # include <string.h>
859 #endif
860 #ifdef HAVE_STRINGS_H
861 # include <strings.h>
862 #endif
863 #ifdef HAVE_INTTYPES_H
864 # include <inttypes.h>
865 #endif
866 #ifdef HAVE_STDINT_H
867 # include <stdint.h>
868 #endif
869 #ifdef HAVE_UNISTD_H
870 # include <unistd.h>
871 #endif"
872
873 enable_option_checking=no
874 ac_subst_vars='am__EXEEXT_FALSE
875 am__EXEEXT_TRUE
876 LTLIBOBJS
877 LIBOBJS
878 SUPPORT_PROTOCOLS
879 SUPPORT_FEATURES
880 ENABLE_STATIC
881 ENABLE_SHARED
882 CROSSCOMPILING_FALSE
883 CROSSCOMPILING_TRUE
884 BLANK_AT_MAKETIME
885 CURL_NETWORK_AND_TIME_LIBS
886 CURL_NETWORK_LIBS
887 LIBCURL_LIBS
888 SONAME_BUMP_FALSE
889 SONAME_BUMP_TRUE
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_LIBSSH2
914 LIBMETALINK_CPPFLAGS
915 LIBMETALINK_LDFLAGS
916 LIBMETALINK_LIBS
917 USE_LIBPSL_FALSE
918 USE_LIBPSL_TRUE
919 CURL_CA_BUNDLE
920 SSL_ENABLED
921 USE_AXTLS
922 NSS_LIBS
923 USE_NSS
924 USE_CYASSL
925 USE_MBEDTLS
926 USE_POLARSSL
927 HAVE_GNUTLS_SRP
928 USE_GNUTLS_NETTLE
929 USE_GNUTLS
930 HAVE_OPENSSL_SRP
931 RANDOM_FILE
932 SSL_LIBS
933 PKGCONFIG
934 USE_DARWINSSL
935 USE_WINDOWS_SSPI
936 USE_SCHANNEL
937 USE_OPENLDAP
938 ZLIB_LIBS
939 HAVE_LIBZ_FALSE
940 HAVE_LIBZ_TRUE
941 HAVE_LIBZ
942 CURL_DISABLE_GOPHER
943 CURL_DISABLE_SMTP
944 CURL_DISABLE_SMB
945 CURL_DISABLE_IMAP
946 CURL_DISABLE_POP3
947 CURL_DISABLE_TFTP
948 CURL_DISABLE_TELNET
949 CURL_DISABLE_DICT
950 CURL_DISABLE_PROXY
951 HAVE_LDAP_SSL
952 CURL_DISABLE_LDAPS
953 CURL_DISABLE_LDAP
954 CURL_DISABLE_FILE
955 CURL_DISABLE_FTP
956 CURL_DISABLE_RTSP
957 CURL_DISABLE_HTTP
958 DOING_NATIVE_WINDOWS_FALSE
959 DOING_NATIVE_WINDOWS_TRUE
960 BUILD_UNITTESTS_FALSE
961 BUILD_UNITTESTS_TRUE
962 CURLDEBUG_FALSE
963 CURLDEBUG_TRUE
964 USE_EXPLICIT_LIB_DEPS_FALSE
965 USE_EXPLICIT_LIB_DEPS_TRUE
966 REQUIRE_LIB_DEPS
967 CPPFLAG_CURL_STATICLIB
968 USE_CPPFLAG_CURL_STATICLIB_FALSE
969 USE_CPPFLAG_CURL_STATICLIB_TRUE
970 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
971 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
972 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
973 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
974 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
975 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
976 LT_SYS_LIBRARY_PATH
977 OTOOL64
978 OTOOL
979 LIPO
980 NMEDIT
981 DSYMUTIL
982 MANIFEST_TOOL
983 RANLIB
984 ac_ct_AR
985 LN_S
986 NM
987 ac_ct_DUMPBIN
988 DUMPBIN
989 LD
990 FGREP
991 LIBTOOL
992 OBJDUMP
993 DLLTOOL
994 AS
995 host_os
996 host_vendor
997 host_cpu
998 host
999 build_os
1000 build_vendor
1001 build_cpu
1002 build
1003 PKGADD_VENDOR
1004 PKGADD_NAME
1005 PKGADD_PKG
1006 VERSIONNUM
1007 CURLVERSION
1008 am__fastdepCC_FALSE
1009 am__fastdepCC_TRUE
1010 CCDEPMODE
1011 am__nodep
1012 AMDEPBACKSLASH
1013 AMDEP_FALSE
1014 AMDEP_TRUE
1015 am__quote
1016 am__include
1017 DEPDIR
1018 am__untar
1019 am__tar
1020 AMTAR
1021 am__leading_dot
1022 SET_MAKE
1023 AWK
1024 mkdir_p
1025 MKDIR_P
1026 INSTALL_STRIP_PROGRAM
1027 STRIP
1028 install_sh
1029 MAKEINFO
1030 AUTOHEADER
1031 AUTOMAKE
1032 AUTOCONF
1033 ACLOCAL
1034 VERSION
1035 PACKAGE
1036 CYGPATH_W
1037 am__isrc
1038 CPP
1039 OBJEXT
1040 EXEEXT
1041 ac_ct_CC
1042 CPPFLAGS
1043 LDFLAGS
1044 CFLAGS
1045 CC
1046 INSTALL_DATA
1047 INSTALL_SCRIPT
1048 INSTALL_PROGRAM
1049 libext
1050 AR
1051 EGREP
1052 GREP
1053 SED
1054 CURL_CFLAG_EXTRAS
1055 CONFIGURE_OPTIONS
1056 AM_BACKSLASH
1057 AM_DEFAULT_VERBOSITY
1058 AM_DEFAULT_V
1059 AM_V
1060 MAINT
1061 MAINTAINER_MODE_FALSE
1062 MAINTAINER_MODE_TRUE
1063 target_alias
1064 host_alias
1065 build_alias
1066 LIBS
1067 ECHO_T
1068 ECHO_N
1069 ECHO_C
1070 DEFS
1071 mandir
1072 localedir
1073 libdir
1074 psdir
1075 pdfdir
1076 dvidir
1077 htmldir
1078 infodir
1079 docdir
1080 oldincludedir
1081 includedir
1082 runstatedir
1083 localstatedir
1084 sharedstatedir
1085 sysconfdir
1086 datadir
1087 datarootdir
1088 libexecdir
1089 sbindir
1090 bindir
1091 program_transform_name
1092 prefix
1093 exec_prefix
1094 PACKAGE_URL
1095 PACKAGE_BUGREPORT
1096 PACKAGE_STRING
1097 PACKAGE_VERSION
1098 PACKAGE_TARNAME
1099 PACKAGE_NAME
1100 SHELL
1101 PATH_SEPARATOR'
1102 ac_subst_files=''
1103 ac_user_opts='
1104 enable_option_checking
1105 enable_maintainer_mode
1106 enable_silent_rules
1107 enable_debug
1108 enable_optimize
1109 enable_warnings
1110 enable_werror
1111 enable_curldebug
1112 enable_symbol_hiding
1113 enable_hidden_symbols
1114 enable_ares
1115 enable_rt
1116 enable_dependency_tracking
1117 enable_largefile
1118 enable_shared
1119 enable_static
1120 with_pic
1121 enable_fast_install
1122 with_aix_soname
1123 with_gnu_ld
1124 with_sysroot
1125 enable_libtool_lock
1126 enable_http
1127 enable_ftp
1128 enable_file
1129 enable_ldap
1130 enable_ldaps
1131 enable_rtsp
1132 enable_proxy
1133 enable_dict
1134 enable_telnet
1135 enable_tftp
1136 enable_pop3
1137 enable_imap
1138 enable_smb
1139 enable_smtp
1140 enable_gopher
1141 enable_manual
1142 enable_libcurl_option
1143 enable_libgcc
1144 with_zlib
1145 with_ldap_lib
1146 with_lber_lib
1147 enable_ipv6
1148 with_gssapi_includes
1149 with_gssapi_libs
1150 with_gssapi
1151 with_winssl
1152 with_darwinssl
1153 with_ssl
1154 with_egd_socket
1155 with_random
1156 with_gnutls
1157 with_polarssl
1158 with_mbedtls
1159 with_cyassl
1160 with_nss
1161 with_axtls
1162 with_ca_bundle
1163 with_ca_path
1164 with_ca_fallback
1165 with_libpsl
1166 with_libmetalink
1167 with_libssh2
1168 with_librtmp
1169 enable_versioned_symbols
1170 with_winidn
1171 with_libidn
1172 with_nghttp2
1173 with_zsh_functions_dir
1174 enable_threaded_resolver
1175 enable_verbose
1176 enable_sspi
1177 enable_crypto_auth
1178 enable_ntlm_wb
1179 enable_tls_srp
1180 enable_unix_sockets
1181 enable_cookies
1182 enable_soname_bump
1183 '
1184       ac_precious_vars='build_alias
1185 host_alias
1186 target_alias
1187 CC
1188 CFLAGS
1189 LDFLAGS
1190 LIBS
1191 CPPFLAGS
1192 CPP
1193 LT_SYS_LIBRARY_PATH'
1194 ac_subdirs_all='ares'
1195
1196 # Initialize some variables set by options.
1197 ac_init_help=
1198 ac_init_version=false
1199 ac_unrecognized_opts=
1200 ac_unrecognized_sep=
1201 # The variables have the same names as the options, with
1202 # dashes changed to underlines.
1203 cache_file=/dev/null
1204 exec_prefix=NONE
1205 no_create=
1206 no_recursion=
1207 prefix=NONE
1208 program_prefix=NONE
1209 program_suffix=NONE
1210 program_transform_name=s,x,x,
1211 silent=
1212 site=
1213 srcdir=
1214 verbose=
1215 x_includes=NONE
1216 x_libraries=NONE
1217
1218 # Installation directory options.
1219 # These are left unexpanded so users can "make install exec_prefix=/foo"
1220 # and all the variables that are supposed to be based on exec_prefix
1221 # by default will actually change.
1222 # Use braces instead of parens because sh, perl, etc. also accept them.
1223 # (The list follows the same order as the GNU Coding Standards.)
1224 bindir='${exec_prefix}/bin'
1225 sbindir='${exec_prefix}/sbin'
1226 libexecdir='${exec_prefix}/libexec'
1227 datarootdir='${prefix}/share'
1228 datadir='${datarootdir}'
1229 sysconfdir='${prefix}/etc'
1230 sharedstatedir='${prefix}/com'
1231 localstatedir='${prefix}/var'
1232 runstatedir='${localstatedir}/run'
1233 includedir='${prefix}/include'
1234 oldincludedir='/usr/include'
1235 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1236 infodir='${datarootdir}/info'
1237 htmldir='${docdir}'
1238 dvidir='${docdir}'
1239 pdfdir='${docdir}'
1240 psdir='${docdir}'
1241 libdir='${exec_prefix}/lib'
1242 localedir='${datarootdir}/locale'
1243 mandir='${datarootdir}/man'
1244
1245 ac_prev=
1246 ac_dashdash=
1247 for ac_option
1248 do
1249   # If the previous option needs an argument, assign it.
1250   if test -n "$ac_prev"; then
1251     eval $ac_prev=\$ac_option
1252     ac_prev=
1253     continue
1254   fi
1255
1256   case $ac_option in
1257   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1258   *=)   ac_optarg= ;;
1259   *)    ac_optarg=yes ;;
1260   esac
1261
1262   # Accept the important Cygnus configure options, so we can diagnose typos.
1263
1264   case $ac_dashdash$ac_option in
1265   --)
1266     ac_dashdash=yes ;;
1267
1268   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1269     ac_prev=bindir ;;
1270   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1271     bindir=$ac_optarg ;;
1272
1273   -build | --build | --buil | --bui | --bu)
1274     ac_prev=build_alias ;;
1275   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1276     build_alias=$ac_optarg ;;
1277
1278   -cache-file | --cache-file | --cache-fil | --cache-fi \
1279   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1280     ac_prev=cache_file ;;
1281   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1282   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1283     cache_file=$ac_optarg ;;
1284
1285   --config-cache | -C)
1286     cache_file=config.cache ;;
1287
1288   -datadir | --datadir | --datadi | --datad)
1289     ac_prev=datadir ;;
1290   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1291     datadir=$ac_optarg ;;
1292
1293   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1294   | --dataroo | --dataro | --datar)
1295     ac_prev=datarootdir ;;
1296   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1297   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1298     datarootdir=$ac_optarg ;;
1299
1300   -disable-* | --disable-*)
1301     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1302     # Reject names that are not valid shell variable names.
1303     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1304       as_fn_error $? "invalid feature name: $ac_useropt"
1305     ac_useropt_orig=$ac_useropt
1306     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307     case $ac_user_opts in
1308       *"
1309 "enable_$ac_useropt"
1310 "*) ;;
1311       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1312          ac_unrecognized_sep=', ';;
1313     esac
1314     eval enable_$ac_useropt=no ;;
1315
1316   -docdir | --docdir | --docdi | --doc | --do)
1317     ac_prev=docdir ;;
1318   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1319     docdir=$ac_optarg ;;
1320
1321   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1322     ac_prev=dvidir ;;
1323   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1324     dvidir=$ac_optarg ;;
1325
1326   -enable-* | --enable-*)
1327     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1328     # Reject names that are not valid shell variable names.
1329     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1330       as_fn_error $? "invalid feature name: $ac_useropt"
1331     ac_useropt_orig=$ac_useropt
1332     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1333     case $ac_user_opts in
1334       *"
1335 "enable_$ac_useropt"
1336 "*) ;;
1337       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1338          ac_unrecognized_sep=', ';;
1339     esac
1340     eval enable_$ac_useropt=\$ac_optarg ;;
1341
1342   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1343   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1344   | --exec | --exe | --ex)
1345     ac_prev=exec_prefix ;;
1346   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1347   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1348   | --exec=* | --exe=* | --ex=*)
1349     exec_prefix=$ac_optarg ;;
1350
1351   -gas | --gas | --ga | --g)
1352     # Obsolete; use --with-gas.
1353     with_gas=yes ;;
1354
1355   -help | --help | --hel | --he | -h)
1356     ac_init_help=long ;;
1357   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1358     ac_init_help=recursive ;;
1359   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1360     ac_init_help=short ;;
1361
1362   -host | --host | --hos | --ho)
1363     ac_prev=host_alias ;;
1364   -host=* | --host=* | --hos=* | --ho=*)
1365     host_alias=$ac_optarg ;;
1366
1367   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1368     ac_prev=htmldir ;;
1369   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1370   | --ht=*)
1371     htmldir=$ac_optarg ;;
1372
1373   -includedir | --includedir | --includedi | --included | --include \
1374   | --includ | --inclu | --incl | --inc)
1375     ac_prev=includedir ;;
1376   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1377   | --includ=* | --inclu=* | --incl=* | --inc=*)
1378     includedir=$ac_optarg ;;
1379
1380   -infodir | --infodir | --infodi | --infod | --info | --inf)
1381     ac_prev=infodir ;;
1382   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1383     infodir=$ac_optarg ;;
1384
1385   -libdir | --libdir | --libdi | --libd)
1386     ac_prev=libdir ;;
1387   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1388     libdir=$ac_optarg ;;
1389
1390   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1391   | --libexe | --libex | --libe)
1392     ac_prev=libexecdir ;;
1393   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1394   | --libexe=* | --libex=* | --libe=*)
1395     libexecdir=$ac_optarg ;;
1396
1397   -localedir | --localedir | --localedi | --localed | --locale)
1398     ac_prev=localedir ;;
1399   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1400     localedir=$ac_optarg ;;
1401
1402   -localstatedir | --localstatedir | --localstatedi | --localstated \
1403   | --localstate | --localstat | --localsta | --localst | --locals)
1404     ac_prev=localstatedir ;;
1405   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1406   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1407     localstatedir=$ac_optarg ;;
1408
1409   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1410     ac_prev=mandir ;;
1411   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1412     mandir=$ac_optarg ;;
1413
1414   -nfp | --nfp | --nf)
1415     # Obsolete; use --without-fp.
1416     with_fp=no ;;
1417
1418   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1419   | --no-cr | --no-c | -n)
1420     no_create=yes ;;
1421
1422   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1423   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1424     no_recursion=yes ;;
1425
1426   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1427   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1428   | --oldin | --oldi | --old | --ol | --o)
1429     ac_prev=oldincludedir ;;
1430   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1431   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1432   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1433     oldincludedir=$ac_optarg ;;
1434
1435   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1436     ac_prev=prefix ;;
1437   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1438     prefix=$ac_optarg ;;
1439
1440   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1441   | --program-pre | --program-pr | --program-p)
1442     ac_prev=program_prefix ;;
1443   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1444   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1445     program_prefix=$ac_optarg ;;
1446
1447   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1448   | --program-suf | --program-su | --program-s)
1449     ac_prev=program_suffix ;;
1450   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1451   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1452     program_suffix=$ac_optarg ;;
1453
1454   -program-transform-name | --program-transform-name \
1455   | --program-transform-nam | --program-transform-na \
1456   | --program-transform-n | --program-transform- \
1457   | --program-transform | --program-transfor \
1458   | --program-transfo | --program-transf \
1459   | --program-trans | --program-tran \
1460   | --progr-tra | --program-tr | --program-t)
1461     ac_prev=program_transform_name ;;
1462   -program-transform-name=* | --program-transform-name=* \
1463   | --program-transform-nam=* | --program-transform-na=* \
1464   | --program-transform-n=* | --program-transform-=* \
1465   | --program-transform=* | --program-transfor=* \
1466   | --program-transfo=* | --program-transf=* \
1467   | --program-trans=* | --program-tran=* \
1468   | --progr-tra=* | --program-tr=* | --program-t=*)
1469     program_transform_name=$ac_optarg ;;
1470
1471   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1472     ac_prev=pdfdir ;;
1473   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1474     pdfdir=$ac_optarg ;;
1475
1476   -psdir | --psdir | --psdi | --psd | --ps)
1477     ac_prev=psdir ;;
1478   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1479     psdir=$ac_optarg ;;
1480
1481   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1482   | -silent | --silent | --silen | --sile | --sil)
1483     silent=yes ;;
1484
1485   -runstatedir | --runstatedir | --runstatedi | --runstated \
1486   | --runstate | --runstat | --runsta | --runst | --runs \
1487   | --run | --ru | --r)
1488     ac_prev=runstatedir ;;
1489   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1490   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1491   | --run=* | --ru=* | --r=*)
1492     runstatedir=$ac_optarg ;;
1493
1494   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1495     ac_prev=sbindir ;;
1496   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1497   | --sbi=* | --sb=*)
1498     sbindir=$ac_optarg ;;
1499
1500   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1501   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1502   | --sharedst | --shareds | --shared | --share | --shar \
1503   | --sha | --sh)
1504     ac_prev=sharedstatedir ;;
1505   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1506   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1507   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1508   | --sha=* | --sh=*)
1509     sharedstatedir=$ac_optarg ;;
1510
1511   -site | --site | --sit)
1512     ac_prev=site ;;
1513   -site=* | --site=* | --sit=*)
1514     site=$ac_optarg ;;
1515
1516   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1517     ac_prev=srcdir ;;
1518   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1519     srcdir=$ac_optarg ;;
1520
1521   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1522   | --syscon | --sysco | --sysc | --sys | --sy)
1523     ac_prev=sysconfdir ;;
1524   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1525   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1526     sysconfdir=$ac_optarg ;;
1527
1528   -target | --target | --targe | --targ | --tar | --ta | --t)
1529     ac_prev=target_alias ;;
1530   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1531     target_alias=$ac_optarg ;;
1532
1533   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1534     verbose=yes ;;
1535
1536   -version | --version | --versio | --versi | --vers | -V)
1537     ac_init_version=: ;;
1538
1539   -with-* | --with-*)
1540     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1541     # Reject names that are not valid shell variable names.
1542     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1543       as_fn_error $? "invalid package name: $ac_useropt"
1544     ac_useropt_orig=$ac_useropt
1545     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1546     case $ac_user_opts in
1547       *"
1548 "with_$ac_useropt"
1549 "*) ;;
1550       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1551          ac_unrecognized_sep=', ';;
1552     esac
1553     eval with_$ac_useropt=\$ac_optarg ;;
1554
1555   -without-* | --without-*)
1556     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1557     # Reject names that are not valid shell variable names.
1558     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1559       as_fn_error $? "invalid package name: $ac_useropt"
1560     ac_useropt_orig=$ac_useropt
1561     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1562     case $ac_user_opts in
1563       *"
1564 "with_$ac_useropt"
1565 "*) ;;
1566       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1567          ac_unrecognized_sep=', ';;
1568     esac
1569     eval with_$ac_useropt=no ;;
1570
1571   --x)
1572     # Obsolete; use --with-x.
1573     with_x=yes ;;
1574
1575   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1576   | --x-incl | --x-inc | --x-in | --x-i)
1577     ac_prev=x_includes ;;
1578   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1579   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1580     x_includes=$ac_optarg ;;
1581
1582   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1583   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1584     ac_prev=x_libraries ;;
1585   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1586   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1587     x_libraries=$ac_optarg ;;
1588
1589   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1590 Try \`$0 --help' for more information"
1591     ;;
1592
1593   *=*)
1594     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1595     # Reject names that are not valid shell variable names.
1596     case $ac_envvar in #(
1597       '' | [0-9]* | *[!_$as_cr_alnum]* )
1598       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1599     esac
1600     eval $ac_envvar=\$ac_optarg
1601     export $ac_envvar ;;
1602
1603   *)
1604     # FIXME: should be removed in autoconf 3.0.
1605     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1606     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1607       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1608     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1609     ;;
1610
1611   esac
1612 done
1613
1614 if test -n "$ac_prev"; then
1615   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1616   as_fn_error $? "missing argument to $ac_option"
1617 fi
1618
1619 if test -n "$ac_unrecognized_opts"; then
1620   case $enable_option_checking in
1621     no) ;;
1622     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1623     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1624   esac
1625 fi
1626
1627 # Check all directory arguments for consistency.
1628 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1629                 datadir sysconfdir sharedstatedir localstatedir includedir \
1630                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1631                 libdir localedir mandir runstatedir
1632 do
1633   eval ac_val=\$$ac_var
1634   # Remove trailing slashes.
1635   case $ac_val in
1636     */ )
1637       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1638       eval $ac_var=\$ac_val;;
1639   esac
1640   # Be sure to have absolute directory names.
1641   case $ac_val in
1642     [\\/$]* | ?:[\\/]* )  continue;;
1643     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1644   esac
1645   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1646 done
1647
1648 # There might be people who depend on the old broken behavior: `$host'
1649 # used to hold the argument of --host etc.
1650 # FIXME: To remove some day.
1651 build=$build_alias
1652 host=$host_alias
1653 target=$target_alias
1654
1655 # FIXME: To remove some day.
1656 if test "x$host_alias" != x; then
1657   if test "x$build_alias" = x; then
1658     cross_compiling=maybe
1659   elif test "x$build_alias" != "x$host_alias"; then
1660     cross_compiling=yes
1661   fi
1662 fi
1663
1664 ac_tool_prefix=
1665 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1666
1667 test "$silent" = yes && exec 6>/dev/null
1668
1669
1670 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1671 ac_ls_di=`ls -di .` &&
1672 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1673   as_fn_error $? "working directory cannot be determined"
1674 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1675   as_fn_error $? "pwd does not report name of working directory"
1676
1677
1678 # Find the source files, if location was not specified.
1679 if test -z "$srcdir"; then
1680   ac_srcdir_defaulted=yes
1681   # Try the directory containing this script, then the parent directory.
1682   ac_confdir=`$as_dirname -- "$as_myself" ||
1683 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1684          X"$as_myself" : 'X\(//\)[^/]' \| \
1685          X"$as_myself" : 'X\(//\)$' \| \
1686          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1687 $as_echo X"$as_myself" |
1688     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1689             s//\1/
1690             q
1691           }
1692           /^X\(\/\/\)[^/].*/{
1693             s//\1/
1694             q
1695           }
1696           /^X\(\/\/\)$/{
1697             s//\1/
1698             q
1699           }
1700           /^X\(\/\).*/{
1701             s//\1/
1702             q
1703           }
1704           s/.*/./; q'`
1705   srcdir=$ac_confdir
1706   if test ! -r "$srcdir/$ac_unique_file"; then
1707     srcdir=..
1708   fi
1709 else
1710   ac_srcdir_defaulted=no
1711 fi
1712 if test ! -r "$srcdir/$ac_unique_file"; then
1713   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1714   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1715 fi
1716 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1717 ac_abs_confdir=`(
1718         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1719         pwd)`
1720 # When building in place, set srcdir=.
1721 if test "$ac_abs_confdir" = "$ac_pwd"; then
1722   srcdir=.
1723 fi
1724 # Remove unnecessary trailing slashes from srcdir.
1725 # Double slashes in file names in object file debugging info
1726 # mess up M-x gdb in Emacs.
1727 case $srcdir in
1728 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1729 esac
1730 for ac_var in $ac_precious_vars; do
1731   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1732   eval ac_env_${ac_var}_value=\$${ac_var}
1733   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1734   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1735 done
1736
1737 #
1738 # Report the --help message.
1739 #
1740 if test "$ac_init_help" = "long"; then
1741   # Omit some internal or obsolete options to make the list less imposing.
1742   # This message is too long to be a string in the A/UX 3.1 sh.
1743   cat <<_ACEOF
1744 \`configure' configures curl - to adapt to many kinds of systems.
1745
1746 Usage: $0 [OPTION]... [VAR=VALUE]...
1747
1748 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1749 VAR=VALUE.  See below for descriptions of some of the useful variables.
1750
1751 Defaults for the options are specified in brackets.
1752
1753 Configuration:
1754   -h, --help              display this help and exit
1755       --help=short        display options specific to this package
1756       --help=recursive    display the short help of all the included packages
1757   -V, --version           display version information and exit
1758   -q, --quiet, --silent   do not print \`checking ...' messages
1759       --cache-file=FILE   cache test results in FILE [disabled]
1760   -C, --config-cache      alias for \`--cache-file=config.cache'
1761   -n, --no-create         do not create output files
1762       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1763
1764 Installation directories:
1765   --prefix=PREFIX         install architecture-independent files in PREFIX
1766                           [$ac_default_prefix]
1767   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1768                           [PREFIX]
1769
1770 By default, \`make install' will install all the files in
1771 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1772 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1773 for instance \`--prefix=\$HOME'.
1774
1775 For better control, use the options below.
1776
1777 Fine tuning of the installation directories:
1778   --bindir=DIR            user executables [EPREFIX/bin]
1779   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1780   --libexecdir=DIR        program executables [EPREFIX/libexec]
1781   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1782   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1783   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1784   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1785   --libdir=DIR            object code libraries [EPREFIX/lib]
1786   --includedir=DIR        C header files [PREFIX/include]
1787   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1788   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1789   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1790   --infodir=DIR           info documentation [DATAROOTDIR/info]
1791   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1792   --mandir=DIR            man documentation [DATAROOTDIR/man]
1793   --docdir=DIR            documentation root [DATAROOTDIR/doc/curl]
1794   --htmldir=DIR           html documentation [DOCDIR]
1795   --dvidir=DIR            dvi documentation [DOCDIR]
1796   --pdfdir=DIR            pdf documentation [DOCDIR]
1797   --psdir=DIR             ps documentation [DOCDIR]
1798 _ACEOF
1799
1800   cat <<\_ACEOF
1801
1802 Program names:
1803   --program-prefix=PREFIX            prepend PREFIX to installed program names
1804   --program-suffix=SUFFIX            append SUFFIX to installed program names
1805   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1806
1807 System types:
1808   --build=BUILD     configure for building on BUILD [guessed]
1809   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1810 _ACEOF
1811 fi
1812
1813 if test -n "$ac_init_help"; then
1814   case $ac_init_help in
1815      short | recursive ) echo "Configuration of curl -:";;
1816    esac
1817   cat <<\_ACEOF
1818
1819 Optional Features:
1820   --disable-option-checking  ignore unrecognized --enable/--with options
1821   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1822   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1823   --enable-maintainer-mode
1824                           enable make rules and dependencies not useful (and
1825                           sometimes confusing) to the casual installer
1826   --enable-silent-rules   less verbose build output (undo: "make V=1")
1827   --disable-silent-rules  verbose build output (undo: "make V=0")
1828   --enable-debug          Enable debug build options
1829   --disable-debug         Disable debug build options
1830   --enable-optimize       Enable compiler optimizations
1831   --disable-optimize      Disable compiler optimizations
1832   --enable-warnings       Enable strict compiler warnings
1833   --disable-warnings      Disable strict compiler warnings
1834   --enable-werror         Enable compiler warnings as errors
1835   --disable-werror        Disable compiler warnings as errors
1836   --enable-curldebug      Enable curl debug memory tracking
1837   --disable-curldebug     Disable curl debug memory tracking
1838   --enable-symbol-hiding  Enable hiding of library internal symbols
1839   --disable-symbol-hiding Disable hiding of library internal symbols
1840   --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1841   --disable-hidden-symbols
1842                           To be deprecated, use --disable-symbol-hiding
1843   --enable-ares[=PATH]    Enable c-ares for DNS lookups
1844   --disable-ares          Disable c-ares for DNS lookups
1845   --disable-rt            disable dependency on -lrt
1846   --enable-dependency-tracking
1847                           do not reject slow dependency extractors
1848   --disable-dependency-tracking
1849                           speeds up one-time build
1850   --disable-largefile     omit support for large files
1851   --enable-shared[=PKGS]  build shared libraries [default=yes]
1852   --enable-static[=PKGS]  build static libraries [default=yes]
1853   --enable-fast-install[=PKGS]
1854                           optimize for fast installation [default=yes]
1855   --disable-libtool-lock  avoid locking (might break parallel builds)
1856   --enable-http           Enable HTTP support
1857   --disable-http          Disable HTTP support
1858   --enable-ftp            Enable FTP support
1859   --disable-ftp           Disable FTP support
1860   --enable-file           Enable FILE support
1861   --disable-file          Disable FILE support
1862   --enable-ldap           Enable LDAP support
1863   --disable-ldap          Disable LDAP support
1864   --enable-ldaps          Enable LDAPS support
1865   --disable-ldaps         Disable LDAPS support
1866   --enable-rtsp           Enable RTSP support
1867   --disable-rtsp          Disable RTSP support
1868   --enable-proxy          Enable proxy support
1869   --disable-proxy         Disable proxy support
1870   --enable-dict           Enable DICT support
1871   --disable-dict          Disable DICT support
1872   --enable-telnet         Enable TELNET support
1873   --disable-telnet        Disable TELNET support
1874   --enable-tftp           Enable TFTP support
1875   --disable-tftp          Disable TFTP support
1876   --enable-pop3           Enable POP3 support
1877   --disable-pop3          Disable POP3 support
1878   --enable-imap           Enable IMAP support
1879   --disable-imap          Disable IMAP support
1880   --enable-smb            Enable SMB/CIFS support
1881   --disable-smb           Disable SMB/CIFS support
1882   --enable-smtp           Enable SMTP support
1883   --disable-smtp          Disable SMTP support
1884   --enable-gopher         Enable Gopher support
1885   --disable-gopher        Disable Gopher support
1886   --enable-manual         Enable built-in manual
1887   --disable-manual        Disable built-in manual
1888   --enable-libcurl-option Enable --libcurl C code generation support
1889   --disable-libcurl-option
1890                           Disable --libcurl C code generation support
1891   --enable-libgcc         use libgcc when linking
1892   --enable-ipv6           Enable IPv6 (with IPv4) support
1893   --disable-ipv6          Disable IPv6 support
1894   --enable-versioned-symbols
1895                           Enable versioned symbols in shared library
1896   --disable-versioned-symbols
1897                           Disable versioned symbols in shared library
1898   --enable-threaded-resolver
1899                           Enable threaded resolver
1900   --disable-threaded-resolver
1901                           Disable threaded resolver
1902   --enable-verbose        Enable verbose strings
1903   --disable-verbose       Disable verbose strings
1904   --enable-sspi           Enable SSPI
1905   --disable-sspi          Disable SSPI
1906   --enable-crypto-auth    Enable cryptographic authentication
1907   --disable-crypto-auth   Disable cryptographic authentication
1908   --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1909                           helper, where FILE is ntlm_auth's absolute filename
1910                           (default: /usr/bin/ntlm_auth)
1911   --disable-ntlm-wb       Disable NTLM delegation to winbind's ntlm_auth
1912                           helper
1913   --enable-tls-srp        Enable TLS-SRP authentication
1914   --disable-tls-srp       Disable TLS-SRP authentication
1915   --enable-unix-sockets   Enable Unix domain sockets
1916   --disable-unix-sockets  Disable Unix domain sockets
1917   --enable-cookies        Enable cookies support
1918   --disable-cookies       Disable cookies support
1919   --enable-soname-bump    Enable enforced SONAME bump
1920   --disable-soname-bump   Disable enforced SONAME bump
1921
1922 Optional Packages:
1923   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1924   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1925   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1926                           both]
1927   --with-aix-soname=aix|svr4|both
1928                           shared library versioning (aka "SONAME") variant to
1929                           provide on AIX, [default=aix].
1930   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1931   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1932                           compiler's sysroot if not specified).
1933   --with-zlib=PATH        search for zlib in PATH
1934   --without-zlib          disable use of zlib
1935   --with-ldap-lib=libname Specify name of ldap lib file
1936   --with-lber-lib=libname Specify name of lber lib file
1937   --with-gssapi-includes=DIR
1938                           Specify location of GSS-API headers
1939   --with-gssapi-libs=DIR  Specify location of GSS-API libs
1940   --with-gssapi=DIR       Where to look for GSS-API
1941   --with-winssl           enable Windows native SSL/TLS
1942   --without-winssl        disable Windows native SSL/TLS
1943   --with-darwinssl        enable iOS/Mac OS X native SSL/TLS
1944   --without-darwinssl     disable iOS/Mac OS X native SSL/TLS
1945   --with-ssl=PATH         Where to look for OpenSSL, PATH points to the SSL
1946                           installation (default: /usr/local/ssl); when
1947                           possible, set the PKG_CONFIG_PATH environment
1948                           variable instead of using this option
1949   --without-ssl           disable OpenSSL
1950   --with-egd-socket=FILE  Entropy Gathering Daemon socket pathname
1951   --with-random=FILE      read randomness from FILE (default=/dev/urandom)
1952   --with-gnutls=PATH      where to look for GnuTLS, PATH points to the
1953                           installation root
1954   --without-gnutls        disable GnuTLS detection
1955   --with-polarssl=PATH    where to look for PolarSSL, PATH points to the
1956                           installation root
1957   --without-polarssl      disable PolarSSL detection
1958   --with-mbedtls=PATH     where to look for mbedTLS, PATH points to the
1959                           installation root
1960   --without-mbedtls       disable mbedTLS detection
1961   --with-cyassl=PATH      where to look for CyaSSL, PATH points to the
1962                           installation root (default: system lib default)
1963   --without-cyassl        disable CyaSSL detection
1964   --with-nss=PATH         where to look for NSS, PATH points to the
1965                           installation root
1966   --without-nss           disable NSS detection
1967   --with-axtls=PATH       Where to look for axTLS, PATH points to the axTLS
1968                           installation prefix (default: /usr/local). Ignored
1969                           if another SSL engine is selected.
1970   --without-axtls         disable axTLS
1971   --with-ca-bundle=FILE   Path to a file containing CA certificates (example:
1972                           /etc/ca-bundle.crt)
1973   --without-ca-bundle     Don't use a default CA bundle
1974   --with-ca-path=DIRECTORY
1975                           Path to a directory containing CA certificates
1976                           stored individually, with their filenames in a hash
1977                           format. This option can be used with OpenSSL, GnuTLS
1978                           and PolarSSL backends. Refer to OpenSSL c_rehash for
1979                           details. (example: /etc/certificates)
1980   --without-ca-path       Don't use a default CA path
1981   --with-ca-fallback      Use the built in CA store of the SSL library
1982   --without-ca-fallback   Don't use the built in CA store of the SSL library
1983   --without-libpsl        disable support for libpsl cookie checking
1984   --with-libmetalink=PATH where to look for libmetalink, PATH points to the
1985                           installation root
1986   --without-libmetalink   disable libmetalink detection
1987   --with-libssh2=PATH     Where to look for libssh2, PATH points to the
1988                           LIBSSH2 installation; when possible, set the
1989                           PKG_CONFIG_PATH environment variable instead of
1990                           using this option
1991   --without-libssh2       disable LIBSSH2
1992   --with-librtmp=PATH     Where to look for librtmp, PATH points to the
1993                           LIBRTMP installation; when possible, set the
1994                           PKG_CONFIG_PATH environment variable instead of
1995                           using this option
1996   --without-librtmp       disable LIBRTMP
1997   --with-winidn=PATH      enable Windows native IDN
1998   --without-winidn        disable Windows native IDN
1999   --with-libidn=PATH      Enable libidn usage
2000   --without-libidn        Disable libidn usage
2001   --with-nghttp2=PATH     Enable nghttp2 usage
2002   --without-nghttp2       Disable nghttp2 usage
2003   --with-zsh-functions-dir=PATH
2004                           Install zsh completions to PATH
2005   --without-zsh-functions-dir
2006                           Do not install zsh completions
2007
2008 Some influential environment variables:
2009   CC          C compiler command
2010   CFLAGS      C compiler flags
2011   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2012               nonstandard directory <lib dir>
2013   LIBS        libraries to pass to the linker, e.g. -l<library>
2014   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2015               you have headers in a nonstandard directory <include dir>
2016   CPP         C preprocessor
2017   LT_SYS_LIBRARY_PATH
2018               User-defined run-time library search path.
2019
2020 Use these variables to override the choices made by `configure' or to help
2021 it to find libraries and programs with nonstandard names/locations.
2022
2023 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
2024 _ACEOF
2025 ac_status=$?
2026 fi
2027
2028 if test "$ac_init_help" = "recursive"; then
2029   # If there are subdirs, report their specific --help.
2030   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2031     test -d "$ac_dir" ||
2032       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2033       continue
2034     ac_builddir=.
2035
2036 case "$ac_dir" in
2037 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2038 *)
2039   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2040   # A ".." for each directory in $ac_dir_suffix.
2041   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2042   case $ac_top_builddir_sub in
2043   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2044   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2045   esac ;;
2046 esac
2047 ac_abs_top_builddir=$ac_pwd
2048 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2049 # for backward compatibility:
2050 ac_top_builddir=$ac_top_build_prefix
2051
2052 case $srcdir in
2053   .)  # We are building in place.
2054     ac_srcdir=.
2055     ac_top_srcdir=$ac_top_builddir_sub
2056     ac_abs_top_srcdir=$ac_pwd ;;
2057   [\\/]* | ?:[\\/]* )  # Absolute name.
2058     ac_srcdir=$srcdir$ac_dir_suffix;
2059     ac_top_srcdir=$srcdir
2060     ac_abs_top_srcdir=$srcdir ;;
2061   *) # Relative name.
2062     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2063     ac_top_srcdir=$ac_top_build_prefix$srcdir
2064     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2065 esac
2066 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2067
2068     cd "$ac_dir" || { ac_status=$?; continue; }
2069     # Check for guested configure.
2070     if test -f "$ac_srcdir/configure.gnu"; then
2071       echo &&
2072       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2073     elif test -f "$ac_srcdir/configure"; then
2074       echo &&
2075       $SHELL "$ac_srcdir/configure" --help=recursive
2076     else
2077       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2078     fi || ac_status=$?
2079     cd "$ac_pwd" || { ac_status=$?; break; }
2080   done
2081 fi
2082
2083 test -n "$ac_init_help" && exit $ac_status
2084 if $ac_init_version; then
2085   cat <<\_ACEOF
2086 curl configure -
2087 generated by GNU Autoconf 2.69
2088
2089 Copyright (C) 2012 Free Software Foundation, Inc.
2090 This configure script is free software; the Free Software Foundation
2091 gives unlimited permission to copy, distribute and modify it.
2092
2093 Copyright (c) 1998 - 2016 Daniel Stenberg, <daniel@haxx.se>
2094 This configure script may be copied, distributed and modified under the
2095 terms of the curl license; see COPYING for more details
2096 _ACEOF
2097   exit
2098 fi
2099
2100 ## ------------------------ ##
2101 ## Autoconf initialization. ##
2102 ## ------------------------ ##
2103
2104 # ac_fn_c_try_compile LINENO
2105 # --------------------------
2106 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2107 ac_fn_c_try_compile ()
2108 {
2109   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110   rm -f conftest.$ac_objext
2111   if { { ac_try="$ac_compile"
2112 case "(($ac_try" in
2113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2114   *) ac_try_echo=$ac_try;;
2115 esac
2116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2117 $as_echo "$ac_try_echo"; } >&5
2118   (eval "$ac_compile") 2>conftest.err
2119   ac_status=$?
2120   if test -s conftest.err; then
2121     grep -v '^ *+' conftest.err >conftest.er1
2122     cat conftest.er1 >&5
2123     mv -f conftest.er1 conftest.err
2124   fi
2125   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2126   test $ac_status = 0; } && {
2127          test -z "$ac_c_werror_flag" ||
2128          test ! -s conftest.err
2129        } && test -s conftest.$ac_objext; then :
2130   ac_retval=0
2131 else
2132   $as_echo "$as_me: failed program was:" >&5
2133 sed 's/^/| /' conftest.$ac_ext >&5
2134
2135         ac_retval=1
2136 fi
2137   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2138   as_fn_set_status $ac_retval
2139
2140 } # ac_fn_c_try_compile
2141
2142 # ac_fn_c_try_cpp LINENO
2143 # ----------------------
2144 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2145 ac_fn_c_try_cpp ()
2146 {
2147   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148   if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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; } > conftest.i && {
2164          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2165          test ! -s conftest.err
2166        }; 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_cpp
2178
2179 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2180 # -------------------------------------------------------
2181 # Tests whether HEADER exists and can be compiled using the include files in
2182 # INCLUDES, setting the cache variable VAR accordingly.
2183 ac_fn_c_check_header_compile ()
2184 {
2185   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2186   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2187 $as_echo_n "checking for $2... " >&6; }
2188 if eval \${$3+:} false; then :
2189   $as_echo_n "(cached) " >&6
2190 else
2191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h.  */
2193 $4
2194 #include <$2>
2195 _ACEOF
2196 if ac_fn_c_try_compile "$LINENO"; then :
2197   eval "$3=yes"
2198 else
2199   eval "$3=no"
2200 fi
2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202 fi
2203 eval ac_res=\$$3
2204                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2205 $as_echo "$ac_res" >&6; }
2206   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207
2208 } # ac_fn_c_check_header_compile
2209
2210 # ac_fn_c_try_run LINENO
2211 # ----------------------
2212 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2213 # that executables *can* be run.
2214 ac_fn_c_try_run ()
2215 {
2216   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217   if { { ac_try="$ac_link"
2218 case "(($ac_try" in
2219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2220   *) ac_try_echo=$ac_try;;
2221 esac
2222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2223 $as_echo "$ac_try_echo"; } >&5
2224   (eval "$ac_link") 2>&5
2225   ac_status=$?
2226   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2227   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2228   { { case "(($ac_try" in
2229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230   *) ac_try_echo=$ac_try;;
2231 esac
2232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2233 $as_echo "$ac_try_echo"; } >&5
2234   (eval "$ac_try") 2>&5
2235   ac_status=$?
2236   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2237   test $ac_status = 0; }; }; then :
2238   ac_retval=0
2239 else
2240   $as_echo "$as_me: program exited with status $ac_status" >&5
2241        $as_echo "$as_me: failed program was:" >&5
2242 sed 's/^/| /' conftest.$ac_ext >&5
2243
2244        ac_retval=$ac_status
2245 fi
2246   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2247   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2248   as_fn_set_status $ac_retval
2249
2250 } # ac_fn_c_try_run
2251
2252 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2253 # --------------------------------------------
2254 # Tries to find the compile-time value of EXPR in a program that includes
2255 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2256 # computed
2257 ac_fn_c_compute_int ()
2258 {
2259   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260   if test "$cross_compiling" = yes; then
2261     # Depending upon the size, compute the lo and hi bounds.
2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263 /* end confdefs.h.  */
2264 $4
2265 int main (void)
2266 {
2267 static int test_array [1 - 2 * !(($2) >= 0)];
2268 test_array [0] = 0;
2269 return test_array [0];
2270
2271  ;
2272  return 0;
2273 }
2274 _ACEOF
2275 if ac_fn_c_try_compile "$LINENO"; then :
2276   ac_lo=0 ac_mid=0
2277   while :; do
2278     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h.  */
2280 $4
2281 int main (void)
2282 {
2283 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2284 test_array [0] = 0;
2285 return test_array [0];
2286
2287  ;
2288  return 0;
2289 }
2290 _ACEOF
2291 if ac_fn_c_try_compile "$LINENO"; then :
2292   ac_hi=$ac_mid; break
2293 else
2294   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2295                         if test $ac_lo -le $ac_mid; then
2296                           ac_lo= ac_hi=
2297                           break
2298                         fi
2299                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2300 fi
2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302   done
2303 else
2304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h.  */
2306 $4
2307 int main (void)
2308 {
2309 static int test_array [1 - 2 * !(($2) < 0)];
2310 test_array [0] = 0;
2311 return test_array [0];
2312
2313  ;
2314  return 0;
2315 }
2316 _ACEOF
2317 if ac_fn_c_try_compile "$LINENO"; then :
2318   ac_hi=-1 ac_mid=-1
2319   while :; do
2320     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321 /* end confdefs.h.  */
2322 $4
2323 int main (void)
2324 {
2325 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2326 test_array [0] = 0;
2327 return test_array [0];
2328
2329  ;
2330  return 0;
2331 }
2332 _ACEOF
2333 if ac_fn_c_try_compile "$LINENO"; then :
2334   ac_lo=$ac_mid; break
2335 else
2336   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2337                         if test $ac_mid -le $ac_hi; then
2338                           ac_lo= ac_hi=
2339                           break
2340                         fi
2341                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2342 fi
2343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344   done
2345 else
2346   ac_lo= ac_hi=
2347 fi
2348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349 fi
2350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351 # Binary search between lo and hi bounds.
2352 while test "x$ac_lo" != "x$ac_hi"; do
2353   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h.  */
2356 $4
2357 int main (void)
2358 {
2359 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2360 test_array [0] = 0;
2361 return test_array [0];
2362
2363  ;
2364  return 0;
2365 }
2366 _ACEOF
2367 if ac_fn_c_try_compile "$LINENO"; then :
2368   ac_hi=$ac_mid
2369 else
2370   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2371 fi
2372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2373 done
2374 case $ac_lo in #((
2375 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2376 '') ac_retval=1 ;;
2377 esac
2378   else
2379     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2380 /* end confdefs.h.  */
2381 $4
2382 static long int longval () { return $2; }
2383 static unsigned long int ulongval () { return $2; }
2384 #include <stdio.h>
2385 #include <stdlib.h>
2386 int main (void)
2387 {
2388
2389   FILE *f = fopen ("conftest.val", "w");
2390   if (! f)
2391     return 1;
2392   if (($2) < 0)
2393     {
2394       long int i = longval ();
2395       if (i != ($2))
2396         return 1;
2397       fprintf (f, "%ld", i);
2398     }
2399   else
2400     {
2401       unsigned long int i = ulongval ();
2402       if (i != ($2))
2403         return 1;
2404       fprintf (f, "%lu", i);
2405     }
2406   /* Do not output a trailing newline, as this causes \r\n confusion
2407      on some platforms.  */
2408   return ferror (f) || fclose (f) != 0;
2409
2410  ;
2411  return 0;
2412 }
2413 _ACEOF
2414 if ac_fn_c_try_run "$LINENO"; then :
2415   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2416 else
2417   ac_retval=1
2418 fi
2419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2420   conftest.$ac_objext conftest.beam conftest.$ac_ext
2421 rm -f conftest.val
2422
2423   fi
2424   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2425   as_fn_set_status $ac_retval
2426
2427 } # ac_fn_c_compute_int
2428
2429 # ac_fn_c_try_link LINENO
2430 # -----------------------
2431 # Try to link conftest.$ac_ext, and return whether this succeeded.
2432 ac_fn_c_try_link ()
2433 {
2434   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2435   rm -f conftest.$ac_objext conftest$ac_exeext
2436   if { { ac_try="$ac_link"
2437 case "(($ac_try" in
2438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2439   *) ac_try_echo=$ac_try;;
2440 esac
2441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2442 $as_echo "$ac_try_echo"; } >&5
2443   (eval "$ac_link") 2>conftest.err
2444   ac_status=$?
2445   if test -s conftest.err; then
2446     grep -v '^ *+' conftest.err >conftest.er1
2447     cat conftest.er1 >&5
2448     mv -f conftest.er1 conftest.err
2449   fi
2450   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2451   test $ac_status = 0; } && {
2452          test -z "$ac_c_werror_flag" ||
2453          test ! -s conftest.err
2454        } && test -s conftest$ac_exeext && {
2455          test "$cross_compiling" = yes ||
2456          test -x conftest$ac_exeext
2457        }; then :
2458   ac_retval=0
2459 else
2460   $as_echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.$ac_ext >&5
2462
2463         ac_retval=1
2464 fi
2465   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2466   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2467   # interfere with the next link command; also delete a directory that is
2468   # left behind by Apple's compiler.  We do this before executing the actions.
2469   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2470   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2471   as_fn_set_status $ac_retval
2472
2473 } # ac_fn_c_try_link
2474
2475 # ac_fn_c_check_func LINENO FUNC VAR
2476 # ----------------------------------
2477 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2478 ac_fn_c_check_func ()
2479 {
2480   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2481   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2482 $as_echo_n "checking for $2... " >&6; }
2483 if eval \${$3+:} false; then :
2484   $as_echo_n "(cached) " >&6
2485 else
2486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2487 /* end confdefs.h.  */
2488
2489 #define $2 innocuous_$2
2490 #ifdef __STDC__
2491 # include <limits.h>
2492 #else
2493 # include <assert.h>
2494 #endif
2495 #undef $2
2496 #ifdef __cplusplus
2497 extern "C"
2498 #endif
2499 char $2 ();
2500 #if defined __stub_$2 || defined __stub___$2
2501 choke me
2502 #endif
2503
2504 int main (void)
2505 {
2506 return $2 ();
2507  ;
2508  return 0;
2509 }
2510 _ACEOF
2511 if ac_fn_c_try_link "$LINENO"; then :
2512   eval "$3=yes"
2513 else
2514   eval "$3=no"
2515 fi
2516 rm -f core conftest.err conftest.$ac_objext \
2517     conftest$ac_exeext conftest.$ac_ext
2518 fi
2519 eval ac_res=\$$3
2520                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2521 $as_echo "$ac_res" >&6; }
2522   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2523
2524 } # ac_fn_c_check_func
2525
2526 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2527 # -------------------------------------------------------
2528 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2529 # the include files in INCLUDES and setting the cache variable VAR
2530 # accordingly.
2531 ac_fn_c_check_header_mongrel ()
2532 {
2533   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2534   if eval \${$3+:} false; then :
2535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2536 $as_echo_n "checking for $2... " >&6; }
2537 if eval \${$3+:} false; then :
2538   $as_echo_n "(cached) " >&6
2539 fi
2540 eval ac_res=\$$3
2541                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2542 $as_echo "$ac_res" >&6; }
2543 else
2544   # Is the header compilable?
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2546 $as_echo_n "checking $2 usability... " >&6; }
2547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2548 /* end confdefs.h.  */
2549 $4
2550 #include <$2>
2551 _ACEOF
2552 if ac_fn_c_try_compile "$LINENO"; then :
2553   ac_header_compiler=yes
2554 else
2555   ac_header_compiler=no
2556 fi
2557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2559 $as_echo "$ac_header_compiler" >&6; }
2560
2561 # Is the header present?
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2563 $as_echo_n "checking $2 presence... " >&6; }
2564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2565 /* end confdefs.h.  */
2566 #include <$2>
2567 _ACEOF
2568 if ac_fn_c_try_cpp "$LINENO"; then :
2569   ac_header_preproc=yes
2570 else
2571   ac_header_preproc=no
2572 fi
2573 rm -f conftest.err conftest.i conftest.$ac_ext
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2575 $as_echo "$ac_header_preproc" >&6; }
2576
2577 # So?  What about this header?
2578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2579   yes:no: )
2580     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2581 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2582     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2583 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2584     ;;
2585   no:yes:* )
2586     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2587 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2588     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2589 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2590     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2591 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2592     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2593 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2594     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2595 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2596 ( $as_echo "## ----------------------------------------------------------------------- ##
2597 ## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ##
2598 ## ----------------------------------------------------------------------- ##"
2599      ) | sed "s/^/$as_me: WARNING:     /" >&2
2600     ;;
2601 esac
2602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2603 $as_echo_n "checking for $2... " >&6; }
2604 if eval \${$3+:} false; then :
2605   $as_echo_n "(cached) " >&6
2606 else
2607   eval "$3=\$ac_header_compiler"
2608 fi
2609 eval ac_res=\$$3
2610                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2611 $as_echo "$ac_res" >&6; }
2612 fi
2613   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2614
2615 } # ac_fn_c_check_header_mongrel
2616
2617 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2618 # -------------------------------------------
2619 # Tests whether TYPE exists after having included INCLUDES, setting cache
2620 # variable VAR accordingly.
2621 ac_fn_c_check_type ()
2622 {
2623   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2625 $as_echo_n "checking for $2... " >&6; }
2626 if eval \${$3+:} false; then :
2627   $as_echo_n "(cached) " >&6
2628 else
2629   eval "$3=no"
2630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2631 /* end confdefs.h.  */
2632 $4
2633 int main (void)
2634 {
2635 if (sizeof ($2))
2636          return 0;
2637  ;
2638  return 0;
2639 }
2640 _ACEOF
2641 if ac_fn_c_try_compile "$LINENO"; then :
2642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2643 /* end confdefs.h.  */
2644 $4
2645 int main (void)
2646 {
2647 if (sizeof (($2)))
2648             return 0;
2649  ;
2650  return 0;
2651 }
2652 _ACEOF
2653 if ac_fn_c_try_compile "$LINENO"; then :
2654
2655 else
2656   eval "$3=yes"
2657 fi
2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659 fi
2660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2661 fi
2662 eval ac_res=\$$3
2663                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2664 $as_echo "$ac_res" >&6; }
2665   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2666
2667 } # ac_fn_c_check_type
2668
2669 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2670 # ----------------------------------------------------
2671 # Tries to find if the field MEMBER exists in type AGGR, after including
2672 # INCLUDES, setting cache variable VAR accordingly.
2673 ac_fn_c_check_member ()
2674 {
2675   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2677 $as_echo_n "checking for $2.$3... " >&6; }
2678 if eval \${$4+:} false; then :
2679   $as_echo_n "(cached) " >&6
2680 else
2681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2682 /* end confdefs.h.  */
2683 $5
2684 int main (void)
2685 {
2686 static $2 ac_aggr;
2687 if (ac_aggr.$3)
2688 return 0;
2689  ;
2690  return 0;
2691 }
2692 _ACEOF
2693 if ac_fn_c_try_compile "$LINENO"; then :
2694   eval "$4=yes"
2695 else
2696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2697 /* end confdefs.h.  */
2698 $5
2699 int main (void)
2700 {
2701 static $2 ac_aggr;
2702 if (sizeof ac_aggr.$3)
2703 return 0;
2704  ;
2705  return 0;
2706 }
2707 _ACEOF
2708 if ac_fn_c_try_compile "$LINENO"; then :
2709   eval "$4=yes"
2710 else
2711   eval "$4=no"
2712 fi
2713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2714 fi
2715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2716 fi
2717 eval ac_res=\$$4
2718                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2719 $as_echo "$ac_res" >&6; }
2720   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2721
2722 } # ac_fn_c_check_member
2723 cat >config.log <<_ACEOF
2724 This file contains any messages produced by compilers while
2725 running configure, to aid debugging if configure makes a mistake.
2726
2727 It was created by curl $as_me -, which was
2728 generated by GNU Autoconf 2.69.  Invocation command line was
2729
2730   $ $0 $@
2731
2732 _ACEOF
2733 exec 5>>config.log
2734 {
2735 cat <<_ASUNAME
2736 ## --------- ##
2737 ## Platform. ##
2738 ## --------- ##
2739
2740 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2741 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2742 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2743 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2744 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2745
2746 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2747 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2748
2749 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2750 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2751 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2752 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2753 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2754 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2755 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2756
2757 _ASUNAME
2758
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2761 do
2762   IFS=$as_save_IFS
2763   test -z "$as_dir" && as_dir=.
2764     $as_echo "PATH: $as_dir"
2765   done
2766 IFS=$as_save_IFS
2767
2768 } >&5
2769
2770 cat >&5 <<_ACEOF
2771
2772
2773 ## ----------- ##
2774 ## Core tests. ##
2775 ## ----------- ##
2776
2777 _ACEOF
2778
2779
2780 # Keep a trace of the command line.
2781 # Strip out --no-create and --no-recursion so they do not pile up.
2782 # Strip out --silent because we don't want to record it for future runs.
2783 # Also quote any args containing shell meta-characters.
2784 # Make two passes to allow for proper duplicate-argument suppression.
2785 ac_configure_args=
2786 ac_configure_args0=
2787 ac_configure_args1=
2788 ac_must_keep_next=false
2789 for ac_pass in 1 2
2790 do
2791   for ac_arg
2792   do
2793     case $ac_arg in
2794     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2795     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2796     | -silent | --silent | --silen | --sile | --sil)
2797       continue ;;
2798     *\'*)
2799       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2800     esac
2801     case $ac_pass in
2802     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2803     2)
2804       as_fn_append ac_configure_args1 " '$ac_arg'"
2805       if test $ac_must_keep_next = true; then
2806         ac_must_keep_next=false # Got value, back to normal.
2807       else
2808         case $ac_arg in
2809           *=* | --config-cache | -C | -disable-* | --disable-* \
2810           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2811           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2812           | -with-* | --with-* | -without-* | --without-* | --x)
2813             case "$ac_configure_args0 " in
2814               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2815             esac
2816             ;;
2817           -* ) ac_must_keep_next=true ;;
2818         esac
2819       fi
2820       as_fn_append ac_configure_args " '$ac_arg'"
2821       ;;
2822     esac
2823   done
2824 done
2825 { ac_configure_args0=; unset ac_configure_args0;}
2826 { ac_configure_args1=; unset ac_configure_args1;}
2827
2828 # When interrupted or exit'd, cleanup temporary files, and complete
2829 # config.log.  We remove comments because anyway the quotes in there
2830 # would cause problems or look ugly.
2831 # WARNING: Use '\'' to represent an apostrophe within the trap.
2832 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2833 trap 'exit_status=$?
2834   # Save into config.log some information that might help in debugging.
2835   {
2836     echo
2837
2838     $as_echo "## ---------------- ##
2839 ## Cache variables. ##
2840 ## ---------------- ##"
2841     echo
2842     # The following way of writing the cache mishandles newlines in values,
2843 (
2844   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2845     eval ac_val=\$$ac_var
2846     case $ac_val in #(
2847     *${as_nl}*)
2848       case $ac_var in #(
2849       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2850 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2851       esac
2852       case $ac_var in #(
2853       _ | IFS | as_nl) ;; #(
2854       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2855       *) { eval $ac_var=; unset $ac_var;} ;;
2856       esac ;;
2857     esac
2858   done
2859   (set) 2>&1 |
2860     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2861     *${as_nl}ac_space=\ *)
2862       sed -n \
2863         "s/'\''/'\''\\\\'\'''\''/g;
2864           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2865       ;; #(
2866     *)
2867       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2868       ;;
2869     esac |
2870     sort
2871 )
2872     echo
2873
2874     $as_echo "## ----------------- ##
2875 ## Output variables. ##
2876 ## ----------------- ##"
2877     echo
2878     for ac_var in $ac_subst_vars
2879     do
2880       eval ac_val=\$$ac_var
2881       case $ac_val in
2882       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2883       esac
2884       $as_echo "$ac_var='\''$ac_val'\''"
2885     done | sort
2886     echo
2887
2888     if test -n "$ac_subst_files"; then
2889       $as_echo "## ------------------- ##
2890 ## File substitutions. ##
2891 ## ------------------- ##"
2892       echo
2893       for ac_var in $ac_subst_files
2894       do
2895         eval ac_val=\$$ac_var
2896         case $ac_val in
2897         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2898         esac
2899         $as_echo "$ac_var='\''$ac_val'\''"
2900       done | sort
2901       echo
2902     fi
2903
2904     if test -s confdefs.h; then
2905       $as_echo "## ----------- ##
2906 ## confdefs.h. ##
2907 ## ----------- ##"
2908       echo
2909       cat confdefs.h
2910       echo
2911     fi
2912     test "$ac_signal" != 0 &&
2913       $as_echo "$as_me: caught signal $ac_signal"
2914     $as_echo "$as_me: exit $exit_status"
2915   } >&5
2916   rm -f core *.core core.conftest.* &&
2917     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2918     exit $exit_status
2919 ' 0
2920 for ac_signal in 1 2 13 15; do
2921   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2922 done
2923 ac_signal=0
2924
2925 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2926 rm -f -r conftest* confdefs.h
2927
2928 $as_echo "/* confdefs.h */" > confdefs.h
2929
2930 # Predefined preprocessor variables.
2931
2932 cat >>confdefs.h <<_ACEOF
2933 #define PACKAGE_NAME "$PACKAGE_NAME"
2934 _ACEOF
2935
2936 cat >>confdefs.h <<_ACEOF
2937 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2938 _ACEOF
2939
2940 cat >>confdefs.h <<_ACEOF
2941 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2942 _ACEOF
2943
2944 cat >>confdefs.h <<_ACEOF
2945 #define PACKAGE_STRING "$PACKAGE_STRING"
2946 _ACEOF
2947
2948 cat >>confdefs.h <<_ACEOF
2949 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2950 _ACEOF
2951
2952 cat >>confdefs.h <<_ACEOF
2953 #define PACKAGE_URL "$PACKAGE_URL"
2954 _ACEOF
2955
2956
2957 # Let the site file select an alternate cache file if it wants to.
2958 # Prefer an explicitly selected file to automatically selected ones.
2959 ac_site_file1=NONE
2960 ac_site_file2=NONE
2961 if test -n "$CONFIG_SITE"; then
2962   # We do not want a PATH search for config.site.
2963   case $CONFIG_SITE in #((
2964     -*)  ac_site_file1=./$CONFIG_SITE;;
2965     */*) ac_site_file1=$CONFIG_SITE;;
2966     *)   ac_site_file1=./$CONFIG_SITE;;
2967   esac
2968 elif test "x$prefix" != xNONE; then
2969   ac_site_file1=$prefix/share/config.site
2970   ac_site_file2=$prefix/etc/config.site
2971 else
2972   ac_site_file1=$ac_default_prefix/share/config.site
2973   ac_site_file2=$ac_default_prefix/etc/config.site
2974 fi
2975 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2976 do
2977   test "x$ac_site_file" = xNONE && continue
2978   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2979     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2980 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2981     sed 's/^/| /' "$ac_site_file" >&5
2982     . "$ac_site_file" \
2983       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2985 as_fn_error $? "failed to load site script $ac_site_file
2986 See \`config.log' for more details" "$LINENO" 5; }
2987   fi
2988 done
2989
2990 if test -r "$cache_file"; then
2991   # Some versions of bash will fail to source /dev/null (special files
2992   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2993   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2994     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2995 $as_echo "$as_me: loading cache $cache_file" >&6;}
2996     case $cache_file in
2997       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2998       *)                      . "./$cache_file";;
2999     esac
3000   fi
3001 else
3002   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3003 $as_echo "$as_me: creating cache $cache_file" >&6;}
3004   >$cache_file
3005 fi
3006
3007 # Check that the precious variables saved in the cache have kept the same
3008 # value.
3009 ac_cache_corrupted=false
3010 for ac_var in $ac_precious_vars; do
3011   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3012   eval ac_new_set=\$ac_env_${ac_var}_set
3013   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3014   eval ac_new_val=\$ac_env_${ac_var}_value
3015   case $ac_old_set,$ac_new_set in
3016     set,)
3017       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3018 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3019       ac_cache_corrupted=: ;;
3020     ,set)
3021       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3022 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3023       ac_cache_corrupted=: ;;
3024     ,);;
3025     *)
3026       if test "x$ac_old_val" != "x$ac_new_val"; then
3027         # differences in whitespace do not lead to failure.
3028         ac_old_val_w=`echo x $ac_old_val`
3029         ac_new_val_w=`echo x $ac_new_val`
3030         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3031           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3032 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3033           ac_cache_corrupted=:
3034         else
3035           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3036 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3037           eval $ac_var=\$ac_old_val
3038         fi
3039         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3040 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3041         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3042 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3043       fi;;
3044   esac
3045   # Pass precious variables to config.status.
3046   if test "$ac_new_set" = set; then
3047     case $ac_new_val in
3048     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3049     *) ac_arg=$ac_var=$ac_new_val ;;
3050     esac
3051     case " $ac_configure_args " in
3052       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3053       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3054     esac
3055   fi
3056 done
3057 if $ac_cache_corrupted; then
3058   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3060   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3061 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3062   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3063 fi
3064 ## -------------------- ##
3065 ## Main body of script. ##
3066 ## -------------------- ##
3067
3068 ac_ext=c
3069 ac_cpp='$CPP $CPPFLAGS'
3070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3073
3074
3075
3076
3077
3078
3079
3080 # using curl-override.m4
3081
3082
3083
3084
3085
3086 ac_config_headers="$ac_config_headers lib/curl_config.h include/curl/curlbuild.h"
3087
3088
3089
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3091 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3092     # Check whether --enable-maintainer-mode was given.
3093 if test "${enable_maintainer_mode+set}" = set; then :
3094   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3095 else
3096   USE_MAINTAINER_MODE=no
3097 fi
3098
3099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3100 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3101    if test $USE_MAINTAINER_MODE = yes; then
3102   MAINTAINER_MODE_TRUE=
3103   MAINTAINER_MODE_FALSE='#'
3104 else
3105   MAINTAINER_MODE_TRUE='#'
3106   MAINTAINER_MODE_FALSE=
3107 fi
3108
3109   MAINT=$MAINTAINER_MODE_TRUE
3110
3111
3112 # Check whether --enable-silent-rules was given.
3113 if test "${enable_silent_rules+set}" = set; then :
3114   enableval=$enable_silent_rules;
3115 fi
3116
3117 case $enable_silent_rules in # (((
3118   yes) AM_DEFAULT_VERBOSITY=0;;
3119    no) AM_DEFAULT_VERBOSITY=1;;
3120     *) AM_DEFAULT_VERBOSITY=0;;
3121 esac
3122 am_make=${MAKE-make}
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3124 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3125 if ${am_cv_make_support_nested_variables+:} false; then :
3126   $as_echo_n "(cached) " >&6
3127 else
3128   if $as_echo 'TRUE=$(BAR$(V))
3129 BAR0=false
3130 BAR1=true
3131 V=1
3132 am__doit:
3133         @$(TRUE)
3134 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3135   am_cv_make_support_nested_variables=yes
3136 else
3137   am_cv_make_support_nested_variables=no
3138 fi
3139 fi
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3141 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3142 if test $am_cv_make_support_nested_variables = yes; then
3143     AM_V='$(V)'
3144   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3145 else
3146   AM_V=$AM_DEFAULT_VERBOSITY
3147   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3148 fi
3149 AM_BACKSLASH='\'
3150
3151
3152
3153         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3154 $as_echo_n "checking whether to enable debug build options... " >&6; }
3155   OPT_DEBUG_BUILD="default"
3156   # Check whether --enable-debug was given.
3157 if test "${enable_debug+set}" = set; then :
3158   enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3159 fi
3160
3161   case "$OPT_DEBUG_BUILD" in
3162     no)
3163             want_debug="no"
3164       ;;
3165     default)
3166             want_debug="no"
3167       ;;
3168     *)
3169             want_debug="yes"
3170       ;;
3171   esac
3172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3173 $as_echo "$want_debug" >&6; }
3174
3175
3176       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3177 $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3178   OPT_COMPILER_OPTIMIZE="default"
3179   # Check whether --enable-optimize was given.
3180 if test "${enable_optimize+set}" = set; then :
3181   enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3182 fi
3183
3184   case "$OPT_COMPILER_OPTIMIZE" in
3185     no)
3186                               want_optimize="no"
3187       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3189       ;;
3190     default)
3191                                                                         if test "$want_debug" = "yes"; then
3192         want_optimize="assume_no"
3193         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3194 $as_echo "(assumed) no" >&6; }
3195       else
3196         want_optimize="assume_yes"
3197         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3198 $as_echo "(assumed) yes" >&6; }
3199       fi
3200       ;;
3201     *)
3202                               want_optimize="yes"
3203       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3204 $as_echo "yes" >&6; }
3205       ;;
3206   esac
3207
3208
3209         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3210 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3211   OPT_COMPILER_WARNINGS="default"
3212   # Check whether --enable-warnings was given.
3213 if test "${enable_warnings+set}" = set; then :
3214   enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3215 fi
3216
3217   case "$OPT_COMPILER_WARNINGS" in
3218     no)
3219             want_warnings="no"
3220       ;;
3221     default)
3222                   want_warnings="$want_debug"
3223       ;;
3224     *)
3225             want_warnings="yes"
3226       ;;
3227   esac
3228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3229 $as_echo "$want_warnings" >&6; }
3230
3231
3232     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3233 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3234   OPT_COMPILER_WERROR="default"
3235   # Check whether --enable-werror was given.
3236 if test "${enable_werror+set}" = set; then :
3237   enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3238 fi
3239
3240   case "$OPT_COMPILER_WERROR" in
3241     no)
3242             want_werror="no"
3243       ;;
3244     default)
3245             want_werror="no"
3246       ;;
3247     *)
3248             want_werror="yes"
3249       ;;
3250   esac
3251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3252 $as_echo "$want_werror" >&6; }
3253
3254
3255     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3256 $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3257   OPT_CURLDEBUG_BUILD="default"
3258   # Check whether --enable-curldebug was given.
3259 if test "${enable_curldebug+set}" = set; then :
3260   enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3261 fi
3262
3263   case "$OPT_CURLDEBUG_BUILD" in
3264     no)
3265             want_curldebug="no"
3266       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3268       ;;
3269     default)
3270                                           if test "$want_debug" = "yes"; then
3271         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3272 $as_echo "(assumed) yes" >&6; }
3273       else
3274         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275 $as_echo "no" >&6; }
3276       fi
3277       want_curldebug_assumed="yes"
3278       want_curldebug="$want_debug"
3279       ;;
3280     *)
3281                                                       want_curldebug="yes"
3282       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3283 $as_echo "yes" >&6; }
3284       ;;
3285   esac
3286
3287
3288     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3289 $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3290   OPT_SYMBOL_HIDING="default"
3291   # Check whether --enable-symbol-hiding was given.
3292 if test "${enable_symbol_hiding+set}" = set; then :
3293   enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3294 fi
3295
3296   # Check whether --enable-hidden-symbols was given.
3297 if test "${enable_hidden_symbols+set}" = set; then :
3298   enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3299 fi
3300
3301   case "$OPT_SYMBOL_HIDING" in
3302     no)
3303                               want_symbol_hiding="no"
3304       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305 $as_echo "no" >&6; }
3306       ;;
3307     default)
3308                   want_symbol_hiding="yes"
3309       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3310 $as_echo "yes" >&6; }
3311       ;;
3312     *)
3313                         want_symbol_hiding="yes"
3314       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3315 $as_echo "yes" >&6; }
3316       ;;
3317   esac
3318
3319
3320     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3321 $as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3322   OPT_ARES="default"
3323   # Check whether --enable-ares was given.
3324 if test "${enable_ares+set}" = set; then :
3325   enableval=$enable_ares; OPT_ARES=$enableval
3326 fi
3327
3328   case "$OPT_ARES" in
3329     no)
3330             want_ares="no"
3331       ;;
3332     default)
3333             want_ares="no"
3334       ;;
3335     *)
3336             want_ares="yes"
3337       if test -n "$enableval" && test "$enableval" != "yes"; then
3338         want_ares_path="$enableval"
3339       fi
3340       ;;
3341   esac
3342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3343 $as_echo "$want_ares" >&6; }
3344
3345
3346     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3347 $as_echo_n "checking whether to disable dependency on -lrt... " >&6; }
3348   OPT_RT="default"
3349   # Check whether --enable-rt was given.
3350 if test "${enable_rt+set}" = set; then :
3351   enableval=$enable_rt; OPT_RT=$enableval
3352 fi
3353
3354   case "$OPT_RT" in
3355     no)
3356             dontwant_rt="yes"
3357       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3358 $as_echo "yes" >&6; }
3359       ;;
3360     default)
3361             dontwant_rt="no"
3362       { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3363 $as_echo "(assumed no)" >&6; }
3364       ;;
3365     *)
3366             dontwant_rt="no"
3367       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368 $as_echo "no" >&6; }
3369       ;;
3370   esac
3371     if test "$dontwant_rt" = "yes" && test "$want_thres" = "yes" ; then
3372     as_fn_error $? "options --disable-rt and --enable-thread-resolver are mutually exclusive, at most one can be selected." "$LINENO" 5
3373   fi
3374
3375
3376 #
3377 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3378 #
3379
3380 if test -z "$xc_configure_preamble_result"; then
3381   as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3382 fi
3383
3384 #
3385 # Check that 'PATH_SEPARATOR' has already been set.
3386 #
3387
3388 if test -z "$xc_PATH_SEPARATOR"; then
3389   as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3390 fi
3391 if test -z "$PATH_SEPARATOR"; then
3392   as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3393 fi
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3395 $as_echo_n "checking for path separator... " >&6; }
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3397 $as_echo "$PATH_SEPARATOR" >&6; }
3398 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3399   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3400 $as_echo_n "checking for initial path separator... " >&6; }
3401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3402 $as_echo "$xc_PATH_SEPARATOR" >&6; }
3403   as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3404 fi
3405
3406
3407 #
3408 # save the configure arguments
3409 #
3410 CONFIGURE_OPTIONS="\"$ac_configure_args\""
3411
3412
3413 CURL_CFLAG_EXTRAS=""
3414 if test X"$want_werror" = Xyes; then
3415   CURL_CFLAG_EXTRAS="-Werror"
3416 fi
3417
3418
3419 if test -z "$SED"; then
3420     # Extract the first word of "sed", so it can be a program name with args.
3421 set dummy sed; ac_word=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if ${ac_cv_path_SED+:} false; then :
3425   $as_echo_n "(cached) " >&6
3426 else
3427   case $SED in
3428   [\\/]* | ?:[\\/]*)
3429   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3430   ;;
3431   *)
3432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3434 for as_dir in $as_dummy
3435 do
3436   IFS=$as_save_IFS
3437   test -z "$as_dir" && as_dir=.
3438     for ac_exec_ext in '' $ac_executable_extensions; do
3439   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3440     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3442     break 2
3443   fi
3444 done
3445   done
3446 IFS=$as_save_IFS
3447
3448   test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3449   ;;
3450 esac
3451 fi
3452 SED=$ac_cv_path_SED
3453 if test -n "$SED"; then
3454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3455 $as_echo "$SED" >&6; }
3456 else
3457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458 $as_echo "no" >&6; }
3459 fi
3460
3461
3462   if test -z "$SED" || test "$SED" = "not_found"; then
3463     as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3464   fi
3465 fi
3466
3467
3468 if test -z "$GREP"; then
3469     # Extract the first word of "grep", so it can be a program name with args.
3470 set dummy grep; ac_word=$2
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472 $as_echo_n "checking for $ac_word... " >&6; }
3473 if ${ac_cv_path_GREP+:} false; then :
3474   $as_echo_n "(cached) " >&6
3475 else
3476   case $GREP in
3477   [\\/]* | ?:[\\/]*)
3478   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3479   ;;
3480   *)
3481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3483 for as_dir in $as_dummy
3484 do
3485   IFS=$as_save_IFS
3486   test -z "$as_dir" && as_dir=.
3487     for ac_exec_ext in '' $ac_executable_extensions; do
3488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3489     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3491     break 2
3492   fi
3493 done
3494   done
3495 IFS=$as_save_IFS
3496
3497   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3498   ;;
3499 esac
3500 fi
3501 GREP=$ac_cv_path_GREP
3502 if test -n "$GREP"; then
3503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3504 $as_echo "$GREP" >&6; }
3505 else
3506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507 $as_echo "no" >&6; }
3508 fi
3509
3510
3511   if test -z "$GREP" || test "$GREP" = "not_found"; then
3512     as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3513   fi
3514 fi
3515
3516
3517 if test -z "$EGREP"; then
3518     if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3519     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3520 $as_echo_n "checking for egrep... " >&6; }
3521     EGREP="$GREP -E"
3522     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3523 $as_echo "$EGREP" >&6; }
3524   else
3525     # Extract the first word of "egrep", so it can be a program name with args.
3526 set dummy egrep; ac_word=$2
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3528 $as_echo_n "checking for $ac_word... " >&6; }
3529 if ${ac_cv_path_EGREP+:} false; then :
3530   $as_echo_n "(cached) " >&6
3531 else
3532   case $EGREP in
3533   [\\/]* | ?:[\\/]*)
3534   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3535   ;;
3536   *)
3537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3539 for as_dir in $as_dummy
3540 do
3541   IFS=$as_save_IFS
3542   test -z "$as_dir" && as_dir=.
3543     for ac_exec_ext in '' $ac_executable_extensions; do
3544   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3545     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3547     break 2
3548   fi
3549 done
3550   done
3551 IFS=$as_save_IFS
3552
3553   test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3554   ;;
3555 esac
3556 fi
3557 EGREP=$ac_cv_path_EGREP
3558 if test -n "$EGREP"; then
3559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3560 $as_echo "$EGREP" >&6; }
3561 else
3562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 $as_echo "no" >&6; }
3564 fi
3565
3566
3567   fi
3568 fi
3569 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3570   as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3571 fi
3572
3573
3574 if test -z "$AR"; then
3575     if test -n "$ac_tool_prefix"; then
3576   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3577 set dummy ${ac_tool_prefix}ar; ac_word=$2
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3579 $as_echo_n "checking for $ac_word... " >&6; }
3580 if ${ac_cv_path_AR+:} false; then :
3581   $as_echo_n "(cached) " >&6
3582 else
3583   case $AR in
3584   [\\/]* | ?:[\\/]*)
3585   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3586   ;;
3587   *)
3588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3590 for as_dir in $as_dummy
3591 do
3592   IFS=$as_save_IFS
3593   test -z "$as_dir" && as_dir=.
3594     for ac_exec_ext in '' $ac_executable_extensions; do
3595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3596     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3598     break 2
3599   fi
3600 done
3601   done
3602 IFS=$as_save_IFS
3603
3604   ;;
3605 esac
3606 fi
3607 AR=$ac_cv_path_AR
3608 if test -n "$AR"; then
3609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3610 $as_echo "$AR" >&6; }
3611 else
3612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613 $as_echo "no" >&6; }
3614 fi
3615
3616
3617 fi
3618 if test -z "$ac_cv_path_AR"; then
3619   ac_pt_AR=$AR
3620   # Extract the first word of "ar", so it can be a program name with args.
3621 set dummy ar; ac_word=$2
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3623 $as_echo_n "checking for $ac_word... " >&6; }
3624 if ${ac_cv_path_ac_pt_AR+:} false; then :
3625   $as_echo_n "(cached) " >&6
3626 else
3627   case $ac_pt_AR in
3628   [\\/]* | ?:[\\/]*)
3629   ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3630   ;;
3631   *)
3632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3634 for as_dir in $as_dummy
3635 do
3636   IFS=$as_save_IFS
3637   test -z "$as_dir" && as_dir=.
3638     for ac_exec_ext in '' $ac_executable_extensions; do
3639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3640     ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3642     break 2
3643   fi
3644 done
3645   done
3646 IFS=$as_save_IFS
3647
3648   ;;
3649 esac
3650 fi
3651 ac_pt_AR=$ac_cv_path_ac_pt_AR
3652 if test -n "$ac_pt_AR"; then
3653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3654 $as_echo "$ac_pt_AR" >&6; }
3655 else
3656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657 $as_echo "no" >&6; }
3658 fi
3659
3660   if test "x$ac_pt_AR" = x; then
3661     AR="not_found"
3662   else
3663     case $cross_compiling:$ac_tool_warned in
3664 yes:)
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3667 ac_tool_warned=yes ;;
3668 esac
3669     AR=$ac_pt_AR
3670   fi
3671 else
3672   AR="$ac_cv_path_AR"
3673 fi
3674
3675   if test -z "$AR" || test "$AR" = "not_found"; then
3676     as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3677   fi
3678 fi
3679
3680
3681
3682
3683 if test -f ${srcdir}/include/curl/curlbuild.h; then
3684   rm -f ${srcdir}/include/curl/curlbuild.h
3685 fi
3686
3687 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h`
3688
3689   xc_prog_cc_prev_IFS=$IFS
3690   xc_prog_cc_prev_LIBS=$LIBS
3691   xc_prog_cc_prev_CFLAGS=$CFLAGS
3692   xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3693   xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3694
3695
3696
3697   xc_bad_var_libs=no
3698   for xc_word in $LIBS; do
3699     case "$xc_word" in
3700       -l* | --library=*)
3701         :
3702         ;;
3703       *)
3704         xc_bad_var_libs=yes
3705         ;;
3706     esac
3707   done
3708   if test $xc_bad_var_libs = yes; then
3709     { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3710 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
3711     { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3712 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3713   fi
3714
3715
3716   xc_bad_var_ldflags=no
3717   for xc_word in $LDFLAGS; do
3718     case "$xc_word" in
3719       -D*)
3720         xc_bad_var_ldflags=yes
3721         ;;
3722       -U*)
3723         xc_bad_var_ldflags=yes
3724         ;;
3725       -I*)
3726         xc_bad_var_ldflags=yes
3727         ;;
3728       -l* | --library=*)
3729         xc_bad_var_ldflags=yes
3730         ;;
3731     esac
3732   done
3733   if test $xc_bad_var_ldflags = yes; then
3734     { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3735 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3736     xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3737     for xc_word in $LDFLAGS; do
3738       case "$xc_word" in
3739         -D*)
3740           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3741 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3742           ;;
3743         -U*)
3744           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3745 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3746           ;;
3747         -I*)
3748           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3749 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3750           ;;
3751         -l* | --library=*)
3752           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3753 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3754           ;;
3755       esac
3756     done
3757   fi
3758
3759
3760   xc_bad_var_cppflags=no
3761   for xc_word in $CPPFLAGS; do
3762     case "$xc_word" in
3763       -rpath*)
3764         xc_bad_var_cppflags=yes
3765         ;;
3766       -L* | --library-path=*)
3767         xc_bad_var_cppflags=yes
3768         ;;
3769       -l* | --library=*)
3770         xc_bad_var_cppflags=yes
3771         ;;
3772     esac
3773   done
3774   if test $xc_bad_var_cppflags = yes; then
3775     { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3776 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3777     xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3778     for xc_word in $CPPFLAGS; do
3779       case "$xc_word" in
3780         -rpath*)
3781           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3782 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3783           ;;
3784         -L* | --library-path=*)
3785           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3786 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3787           ;;
3788         -l* | --library=*)
3789           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3790 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3791           ;;
3792       esac
3793     done
3794   fi
3795
3796
3797   xc_bad_var_cflags=no
3798   for xc_word in $CFLAGS; do
3799     case "$xc_word" in
3800       -D*)
3801         xc_bad_var_cflags=yes
3802         ;;
3803       -U*)
3804         xc_bad_var_cflags=yes
3805         ;;
3806       -I*)
3807         xc_bad_var_cflags=yes
3808         ;;
3809       -rpath*)
3810         xc_bad_var_cflags=yes
3811         ;;
3812       -L* | --library-path=*)
3813         xc_bad_var_cflags=yes
3814         ;;
3815       -l* | --library=*)
3816         xc_bad_var_cflags=yes
3817         ;;
3818     esac
3819   done
3820   if test $xc_bad_var_cflags = yes; then
3821     { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3822 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3823     xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3824     for xc_word in $CFLAGS; do
3825       case "$xc_word" in
3826         -D*)
3827           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3828 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3829           ;;
3830         -U*)
3831           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3832 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3833           ;;
3834         -I*)
3835           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3836 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3837           ;;
3838         -rpath*)
3839           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3840 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3841           ;;
3842         -L* | --library-path=*)
3843           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3844 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3845           ;;
3846         -l* | --library=*)
3847           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3848 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3849           ;;
3850       esac
3851     done
3852   fi
3853
3854   if test $xc_bad_var_libs = yes ||
3855      test $xc_bad_var_cflags = yes ||
3856      test $xc_bad_var_ldflags = yes ||
3857      test $xc_bad_var_cppflags = yes; then
3858      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3859 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3860   fi
3861
3862 ac_aux_dir=
3863 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3864   if test -f "$ac_dir/install-sh"; then
3865     ac_aux_dir=$ac_dir
3866     ac_install_sh="$ac_aux_dir/install-sh -c"
3867     break
3868   elif test -f "$ac_dir/install.sh"; then
3869     ac_aux_dir=$ac_dir
3870     ac_install_sh="$ac_aux_dir/install.sh -c"
3871     break
3872   elif test -f "$ac_dir/shtool"; then
3873     ac_aux_dir=$ac_dir
3874     ac_install_sh="$ac_aux_dir/shtool install -c"
3875     break
3876   fi
3877 done
3878 if test -z "$ac_aux_dir"; then
3879   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3880 fi
3881
3882 # These three variables are undocumented and unsupported,
3883 # and are intended to be withdrawn in a future Autoconf release.
3884 # They can cause serious problems if a builder's source tree is in a directory
3885 # whose full name contains unusual characters.
3886 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3887 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3888 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3889
3890
3891 # Find a good install program.  We prefer a C program (faster),
3892 # so one script is as good as another.  But avoid the broken or
3893 # incompatible versions:
3894 # SysV /etc/install, /usr/sbin/install
3895 # SunOS /usr/etc/install
3896 # IRIX /sbin/install
3897 # AIX /bin/install
3898 # AmigaOS /C/install, which installs bootblocks on floppy discs
3899 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3900 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3901 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3902 # OS/2's system install, which has a completely different semantic
3903 # ./install, which can be erroneously created by make from ./install.sh.
3904 # Reject install programs that cannot install multiple files.
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3906 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3907 if test -z "$INSTALL"; then
3908 if ${ac_cv_path_install+:} false; then :
3909   $as_echo_n "(cached) " >&6
3910 else
3911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 for as_dir in $PATH
3913 do
3914   IFS=$as_save_IFS
3915   test -z "$as_dir" && as_dir=.
3916     # Account for people who put trailing slashes in PATH elements.
3917 case $as_dir/ in #((
3918   ./ | .// | /[cC]/* | \
3919   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3920   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3921   /usr/ucb/* ) ;;
3922   *)
3923     # OSF1 and SCO ODT 3.0 have their own names for install.
3924     # Don't use installbsd from OSF since it installs stuff as root
3925     # by default.
3926     for ac_prog in ginstall scoinst install; do
3927       for ac_exec_ext in '' $ac_executable_extensions; do
3928         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3929           if test $ac_prog = install &&
3930             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3931             # AIX install.  It has an incompatible calling convention.
3932             :
3933           elif test $ac_prog = install &&
3934             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3935             # program-specific install script used by HP pwplus--don't use.
3936             :
3937           else
3938             rm -rf conftest.one conftest.two conftest.dir
3939             echo one > conftest.one
3940             echo two > conftest.two
3941             mkdir conftest.dir
3942             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3943               test -s conftest.one && test -s conftest.two &&
3944               test -s conftest.dir/conftest.one &&
3945               test -s conftest.dir/conftest.two
3946             then
3947               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3948               break 3
3949             fi
3950           fi
3951         fi
3952       done
3953     done
3954     ;;
3955 esac
3956
3957   done
3958 IFS=$as_save_IFS
3959
3960 rm -rf conftest.one conftest.two conftest.dir
3961
3962 fi
3963   if test "${ac_cv_path_install+set}" = set; then
3964     INSTALL=$ac_cv_path_install
3965   else
3966     # As a last resort, use the slow shell script.  Don't cache a
3967     # value for INSTALL within a source directory, because that will
3968     # break other packages using the cache if that directory is
3969     # removed, or if the value is a relative name.
3970     INSTALL=$ac_install_sh
3971   fi
3972 fi
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3974 $as_echo "$INSTALL" >&6; }
3975
3976 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3977 # It thinks the first close brace ends the variable substitution.
3978 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3979
3980 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3981
3982 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3983
3984 # Expand $ac_aux_dir to an absolute path.
3985 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3986
3987 ac_ext=c
3988 ac_cpp='$CPP $CPPFLAGS'
3989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3992 if test -n "$ac_tool_prefix"; then
3993   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3994 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3996 $as_echo_n "checking for $ac_word... " >&6; }
3997 if ${ac_cv_prog_CC+:} false; then :
3998   $as_echo_n "(cached) " >&6
3999 else
4000   if test -n "$CC"; then
4001   ac_cv_prog_CC="$CC" # Let the user override the test.
4002 else
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 for as_dir in $PATH
4005 do
4006   IFS=$as_save_IFS
4007   test -z "$as_dir" && as_dir=.
4008     for ac_exec_ext in '' $ac_executable_extensions; do
4009   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4010     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4012     break 2
4013   fi
4014 done
4015   done
4016 IFS=$as_save_IFS
4017
4018 fi
4019 fi
4020 CC=$ac_cv_prog_CC
4021 if test -n "$CC"; then
4022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4023 $as_echo "$CC" >&6; }
4024 else
4025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026 $as_echo "no" >&6; }
4027 fi
4028
4029
4030 fi
4031 if test -z "$ac_cv_prog_CC"; then
4032   ac_ct_CC=$CC
4033   # Extract the first word of "gcc", so it can be a program name with args.
4034 set dummy gcc; ac_word=$2
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4036 $as_echo_n "checking for $ac_word... " >&6; }
4037 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4038   $as_echo_n "(cached) " >&6
4039 else
4040   if test -n "$ac_ct_CC"; then
4041   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4042 else
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 for as_dir in $PATH
4045 do
4046   IFS=$as_save_IFS
4047   test -z "$as_dir" && as_dir=.
4048     for ac_exec_ext in '' $ac_executable_extensions; do
4049   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4050     ac_cv_prog_ac_ct_CC="gcc"
4051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4052     break 2
4053   fi
4054 done
4055   done
4056 IFS=$as_save_IFS
4057
4058 fi
4059 fi
4060 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4061 if test -n "$ac_ct_CC"; then
4062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4063 $as_echo "$ac_ct_CC" >&6; }
4064 else
4065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066 $as_echo "no" >&6; }
4067 fi
4068
4069   if test "x$ac_ct_CC" = x; then
4070     CC=""
4071   else
4072     case $cross_compiling:$ac_tool_warned in
4073 yes:)
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4076 ac_tool_warned=yes ;;
4077 esac
4078     CC=$ac_ct_CC
4079   fi
4080 else
4081   CC="$ac_cv_prog_CC"
4082 fi
4083
4084 if test -z "$CC"; then
4085           if test -n "$ac_tool_prefix"; then
4086     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4087 set dummy ${ac_tool_prefix}cc; ac_word=$2
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4089 $as_echo_n "checking for $ac_word... " >&6; }
4090 if ${ac_cv_prog_CC+:} false; then :
4091   $as_echo_n "(cached) " >&6
4092 else
4093   if test -n "$CC"; then
4094   ac_cv_prog_CC="$CC" # Let the user override the test.
4095 else
4096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 for as_dir in $PATH
4098 do
4099   IFS=$as_save_IFS
4100   test -z "$as_dir" && as_dir=.
4101     for ac_exec_ext in '' $ac_executable_extensions; do
4102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4103     ac_cv_prog_CC="${ac_tool_prefix}cc"
4104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4105     break 2
4106   fi
4107 done
4108   done
4109 IFS=$as_save_IFS
4110
4111 fi
4112 fi
4113 CC=$ac_cv_prog_CC
4114 if test -n "$CC"; then
4115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4116 $as_echo "$CC" >&6; }
4117 else
4118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4119 $as_echo "no" >&6; }
4120 fi
4121
4122
4123   fi
4124 fi
4125 if test -z "$CC"; then
4126   # Extract the first word of "cc", so it can be a program name with args.
4127 set dummy cc; ac_word=$2
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4129 $as_echo_n "checking for $ac_word... " >&6; }
4130 if ${ac_cv_prog_CC+:} false; then :
4131   $as_echo_n "(cached) " >&6
4132 else
4133   if test -n "$CC"; then
4134   ac_cv_prog_CC="$CC" # Let the user override the test.
4135 else
4136   ac_prog_rejected=no
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4139 do
4140   IFS=$as_save_IFS
4141   test -z "$as_dir" && as_dir=.
4142     for ac_exec_ext in '' $ac_executable_extensions; do
4143   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4144     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4145        ac_prog_rejected=yes
4146        continue
4147      fi
4148     ac_cv_prog_CC="cc"
4149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4150     break 2
4151   fi
4152 done
4153   done
4154 IFS=$as_save_IFS
4155
4156 if test $ac_prog_rejected = yes; then
4157   # We found a bogon in the path, so make sure we never use it.
4158   set dummy $ac_cv_prog_CC
4159   shift
4160   if test $# != 0; then
4161     # We chose a different compiler from the bogus one.
4162     # However, it has the same basename, so the bogon will be chosen
4163     # first if we set CC to just the basename; use the full file name.
4164     shift
4165     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4166   fi
4167 fi
4168 fi
4169 fi
4170 CC=$ac_cv_prog_CC
4171 if test -n "$CC"; then
4172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4173 $as_echo "$CC" >&6; }
4174 else
4175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4176 $as_echo "no" >&6; }
4177 fi
4178
4179
4180 fi
4181 if test -z "$CC"; then
4182   if test -n "$ac_tool_prefix"; then
4183   for ac_prog in cl.exe
4184   do
4185     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4186 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4188 $as_echo_n "checking for $ac_word... " >&6; }
4189 if ${ac_cv_prog_CC+:} false; then :
4190   $as_echo_n "(cached) " >&6
4191 else
4192   if test -n "$CC"; then
4193   ac_cv_prog_CC="$CC" # Let the user override the test.
4194 else
4195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196 for as_dir in $PATH
4197 do
4198   IFS=$as_save_IFS
4199   test -z "$as_dir" && as_dir=.
4200     for ac_exec_ext in '' $ac_executable_extensions; do
4201   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4202     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4204     break 2
4205   fi
4206 done
4207   done
4208 IFS=$as_save_IFS
4209
4210 fi
4211 fi
4212 CC=$ac_cv_prog_CC
4213 if test -n "$CC"; then
4214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4215 $as_echo "$CC" >&6; }
4216 else
4217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4218 $as_echo "no" >&6; }
4219 fi
4220
4221
4222     test -n "$CC" && break
4223   done
4224 fi
4225 if test -z "$CC"; then
4226   ac_ct_CC=$CC
4227   for ac_prog in cl.exe
4228 do
4229   # Extract the first word of "$ac_prog", so it can be a program name with args.
4230 set dummy $ac_prog; ac_word=$2
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4232 $as_echo_n "checking for $ac_word... " >&6; }
4233 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4234   $as_echo_n "(cached) " >&6
4235 else
4236   if test -n "$ac_ct_CC"; then
4237   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4238 else
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 for as_dir in $PATH
4241 do
4242   IFS=$as_save_IFS
4243   test -z "$as_dir" && as_dir=.
4244     for ac_exec_ext in '' $ac_executable_extensions; do
4245   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4246     ac_cv_prog_ac_ct_CC="$ac_prog"
4247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4248     break 2
4249   fi
4250 done
4251   done
4252 IFS=$as_save_IFS
4253
4254 fi
4255 fi
4256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4257 if test -n "$ac_ct_CC"; then
4258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4259 $as_echo "$ac_ct_CC" >&6; }
4260 else
4261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4262 $as_echo "no" >&6; }
4263 fi
4264
4265
4266   test -n "$ac_ct_CC" && break
4267 done
4268
4269   if test "x$ac_ct_CC" = x; then
4270     CC=""
4271   else
4272     case $cross_compiling:$ac_tool_warned in
4273 yes:)
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4276 ac_tool_warned=yes ;;
4277 esac
4278     CC=$ac_ct_CC
4279   fi
4280 fi
4281
4282 fi
4283
4284
4285 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4287 as_fn_error $? "no acceptable C compiler found in \$PATH
4288 See \`config.log' for more details" "$LINENO" 5; }
4289
4290 # Provide some information about the compiler.
4291 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4292 set X $ac_compile
4293 ac_compiler=$2
4294 for ac_option in --version -v -V -qversion; do
4295   { { ac_try="$ac_compiler $ac_option >&5"
4296 case "(($ac_try" in
4297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298   *) ac_try_echo=$ac_try;;
4299 esac
4300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4301 $as_echo "$ac_try_echo"; } >&5
4302   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4303   ac_status=$?
4304   if test -s conftest.err; then
4305     sed '10a\
4306 ... rest of stderr output deleted ...
4307          10q' conftest.err >conftest.er1
4308     cat conftest.er1 >&5
4309   fi
4310   rm -f conftest.er1 conftest.err
4311   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4312   test $ac_status = 0; }
4313 done
4314
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h.  */
4317
4318 int main (void)
4319 {
4320
4321  ;
4322  return 0;
4323 }
4324 _ACEOF
4325 ac_clean_files_save=$ac_clean_files
4326 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4327 # Try to create an executable without -o first, disregard a.out.
4328 # It will help us diagnose broken compilers, and finding out an intuition
4329 # of exeext.
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4331 $as_echo_n "checking whether the C compiler works... " >&6; }
4332 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4333
4334 # The possible output files:
4335 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4336
4337 ac_rmfiles=
4338 for ac_file in $ac_files
4339 do
4340   case $ac_file in
4341     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4342     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4343   esac
4344 done
4345 rm -f $ac_rmfiles
4346
4347 if { { ac_try="$ac_link_default"
4348 case "(($ac_try" in
4349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350   *) ac_try_echo=$ac_try;;
4351 esac
4352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4353 $as_echo "$ac_try_echo"; } >&5
4354   (eval "$ac_link_default") 2>&5
4355   ac_status=$?
4356   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4357   test $ac_status = 0; }; then :
4358   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4359 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4360 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4361 # so that the user can short-circuit this test for compilers unknown to
4362 # Autoconf.
4363 for ac_file in $ac_files ''
4364 do
4365   test -f "$ac_file" || continue
4366   case $ac_file in
4367     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4368         ;;
4369     [ab].out )
4370         # We found the default executable, but exeext='' is most
4371         # certainly right.
4372         break;;
4373     *.* )
4374         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4375         then :; else
4376            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4377         fi
4378         # We set ac_cv_exeext here because the later test for it is not
4379         # safe: cross compilers may not add the suffix if given an `-o'
4380         # argument, so we may need to know it at that point already.
4381         # Even if this section looks crufty: it has the advantage of
4382         # actually working.
4383         break;;
4384     * )
4385         break;;
4386   esac
4387 done
4388 test "$ac_cv_exeext" = no && ac_cv_exeext=
4389
4390 else
4391   ac_file=''
4392 fi
4393 if test -z "$ac_file"; then :
4394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 $as_echo "no" >&6; }
4396 $as_echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.$ac_ext >&5
4398
4399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4401 as_fn_error 77 "C compiler cannot create executables
4402 See \`config.log' for more details" "$LINENO" 5; }
4403 else
4404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4405 $as_echo "yes" >&6; }
4406 fi
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4408 $as_echo_n "checking for C compiler default output file name... " >&6; }
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4410 $as_echo "$ac_file" >&6; }
4411 ac_exeext=$ac_cv_exeext
4412
4413 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4414 ac_clean_files=$ac_clean_files_save
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4416 $as_echo_n "checking for suffix of executables... " >&6; }
4417 if { { ac_try="$ac_link"
4418 case "(($ac_try" in
4419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420   *) ac_try_echo=$ac_try;;
4421 esac
4422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4423 $as_echo "$ac_try_echo"; } >&5
4424   (eval "$ac_link") 2>&5
4425   ac_status=$?
4426   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4427   test $ac_status = 0; }; then :
4428   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4429 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4430 # work properly (i.e., refer to `conftest.exe'), while it won't with
4431 # `rm'.
4432 for ac_file in conftest.exe conftest conftest.*; do
4433   test -f "$ac_file" || continue
4434   case $ac_file in
4435     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4436     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4437           break;;
4438     * ) break;;
4439   esac
4440 done
4441 else
4442   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4444 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4445 See \`config.log' for more details" "$LINENO" 5; }
4446 fi
4447 rm -f conftest conftest$ac_cv_exeext
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4449 $as_echo "$ac_cv_exeext" >&6; }
4450
4451 rm -f conftest.$ac_ext
4452 EXEEXT=$ac_cv_exeext
4453 ac_exeext=$EXEEXT
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h.  */
4456 #include <stdio.h>
4457 int main (void)
4458 {
4459 FILE *f = fopen ("conftest.out", "w");
4460  return ferror (f) || fclose (f) != 0;
4461
4462  ;
4463  return 0;
4464 }
4465 _ACEOF
4466 ac_clean_files="$ac_clean_files conftest.out"
4467 # Check that the compiler produces executables we can run.  If not, either
4468 # the compiler is broken, or we cross compile.
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4470 $as_echo_n "checking whether we are cross compiling... " >&6; }
4471 if test "$cross_compiling" != yes; then
4472   { { ac_try="$ac_link"
4473 case "(($ac_try" in
4474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475   *) ac_try_echo=$ac_try;;
4476 esac
4477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4478 $as_echo "$ac_try_echo"; } >&5
4479   (eval "$ac_link") 2>&5
4480   ac_status=$?
4481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4482   test $ac_status = 0; }
4483   if { ac_try='./conftest$ac_cv_exeext'
4484   { { case "(($ac_try" in
4485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486   *) ac_try_echo=$ac_try;;
4487 esac
4488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489 $as_echo "$ac_try_echo"; } >&5
4490   (eval "$ac_try") 2>&5
4491   ac_status=$?
4492   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493   test $ac_status = 0; }; }; then
4494     cross_compiling=no
4495   else
4496     if test "$cross_compiling" = maybe; then
4497         cross_compiling=yes
4498     else
4499         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4501 as_fn_error $? "cannot run C compiled programs.
4502 If you meant to cross compile, use \`--host'.
4503 See \`config.log' for more details" "$LINENO" 5; }
4504     fi
4505   fi
4506 fi
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4508 $as_echo "$cross_compiling" >&6; }
4509
4510 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4511 ac_clean_files=$ac_clean_files_save
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4513 $as_echo_n "checking for suffix of object files... " >&6; }
4514 if ${ac_cv_objext+:} false; then :
4515   $as_echo_n "(cached) " >&6
4516 else
4517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h.  */
4519
4520 int main (void)
4521 {
4522
4523  ;
4524  return 0;
4525 }
4526 _ACEOF
4527 rm -f conftest.o conftest.obj
4528 if { { ac_try="$ac_compile"
4529 case "(($ac_try" in
4530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531   *) ac_try_echo=$ac_try;;
4532 esac
4533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4534 $as_echo "$ac_try_echo"; } >&5
4535   (eval "$ac_compile") 2>&5
4536   ac_status=$?
4537   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4538   test $ac_status = 0; }; then :
4539   for ac_file in conftest.o conftest.obj conftest.*; do
4540   test -f "$ac_file" || continue;
4541   case $ac_file in
4542     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4543     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4544        break;;
4545   esac
4546 done
4547 else
4548   $as_echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4550
4551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4553 as_fn_error $? "cannot compute suffix of object files: cannot compile
4554 See \`config.log' for more details" "$LINENO" 5; }
4555 fi
4556 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4557 fi
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4559 $as_echo "$ac_cv_objext" >&6; }
4560 OBJEXT=$ac_cv_objext
4561 ac_objext=$OBJEXT
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4563 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4564 if ${ac_cv_c_compiler_gnu+:} false; then :
4565   $as_echo_n "(cached) " >&6
4566 else
4567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h.  */
4569
4570 int main (void)
4571 {
4572 #ifndef __GNUC__
4573        choke me
4574 #endif
4575
4576  ;
4577  return 0;
4578 }
4579 _ACEOF
4580 if ac_fn_c_try_compile "$LINENO"; then :
4581   ac_compiler_gnu=yes
4582 else
4583   ac_compiler_gnu=no
4584 fi
4585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4586 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4587
4588 fi
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4590 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4591 if test $ac_compiler_gnu = yes; then
4592   GCC=yes
4593 else
4594   GCC=
4595 fi
4596 ac_test_CFLAGS=${CFLAGS+set}
4597 ac_save_CFLAGS=$CFLAGS
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4599 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4600 if ${ac_cv_prog_cc_g+:} false; then :
4601   $as_echo_n "(cached) " >&6
4602 else
4603   ac_save_c_werror_flag=$ac_c_werror_flag
4604    ac_c_werror_flag=yes
4605    ac_cv_prog_cc_g=no
4606    CFLAGS="-g"
4607    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h.  */
4609
4610 int main (void)
4611 {
4612
4613  ;
4614  return 0;
4615 }
4616 _ACEOF
4617 if ac_fn_c_try_compile "$LINENO"; then :
4618   ac_cv_prog_cc_g=yes
4619 else
4620   CFLAGS=""
4621       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h.  */
4623
4624 int main (void)
4625 {
4626
4627  ;
4628  return 0;
4629 }
4630 _ACEOF
4631 if ac_fn_c_try_compile "$LINENO"; then :
4632
4633 else
4634   ac_c_werror_flag=$ac_save_c_werror_flag
4635          CFLAGS="-g"
4636          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h.  */
4638
4639 int main (void)
4640 {
4641
4642  ;
4643  return 0;
4644 }
4645 _ACEOF
4646 if ac_fn_c_try_compile "$LINENO"; then :
4647   ac_cv_prog_cc_g=yes
4648 fi
4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 fi
4651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4652 fi
4653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654    ac_c_werror_flag=$ac_save_c_werror_flag
4655 fi
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4657 $as_echo "$ac_cv_prog_cc_g" >&6; }
4658 if test "$ac_test_CFLAGS" = set; then
4659   CFLAGS=$ac_save_CFLAGS
4660 elif test $ac_cv_prog_cc_g = yes; then
4661   if test "$GCC" = yes; then
4662     CFLAGS="-g -O2"
4663   else
4664     CFLAGS="-g"
4665   fi
4666 else
4667   if test "$GCC" = yes; then
4668     CFLAGS="-O2"
4669   else
4670     CFLAGS=
4671   fi
4672 fi
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4674 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4675 if ${ac_cv_prog_cc_c89+:} false; then :
4676   $as_echo_n "(cached) " >&6
4677 else
4678   ac_cv_prog_cc_c89=no
4679 ac_save_CC=$CC
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h.  */
4682 #include <stdarg.h>
4683 #include <stdio.h>
4684 struct stat;
4685 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4686 struct buf { int x; };
4687 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4688 static char *e (p, i)
4689      char **p;
4690      int i;
4691 {
4692   return p[i];
4693 }
4694 static char *f (char * (*g) (char **, int), char **p, ...)
4695 {
4696   char *s;
4697   va_list v;
4698   va_start (v,p);
4699   s = g (p, va_arg (v,int));
4700   va_end (v);
4701   return s;
4702 }
4703
4704 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4705    function prototypes and stuff, but not '\xHH' hex character constants.
4706    These don't provoke an error unfortunately, instead are silently treated
4707    as 'x'.  The following induces an error, until -std is added to get
4708    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4709    array size at least.  It's necessary to write '\x00'==0 to get something
4710    that's true only with -std.  */
4711 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4712
4713 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4714    inside strings and character constants.  */
4715 #define FOO(x) 'x'
4716 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4717
4718 int test (int i, double x);
4719 struct s1 {int (*f) (int a);};
4720 struct s2 {int (*f) (double a);};
4721 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4722 int argc;
4723 char **argv;
4724 int main (void)
4725 {
4726 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4727  ;
4728  return 0;
4729 }
4730 _ACEOF
4731 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4732         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4733 do
4734   CC="$ac_save_CC $ac_arg"
4735   if ac_fn_c_try_compile "$LINENO"; then :
4736   ac_cv_prog_cc_c89=$ac_arg
4737 fi
4738 rm -f core conftest.err conftest.$ac_objext
4739   test "x$ac_cv_prog_cc_c89" != "xno" && break
4740 done
4741 rm -f conftest.$ac_ext
4742 CC=$ac_save_CC
4743
4744 fi
4745 # AC_CACHE_VAL
4746 case "x$ac_cv_prog_cc_c89" in
4747   x)
4748     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4749 $as_echo "none needed" >&6; } ;;
4750   xno)
4751     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4752 $as_echo "unsupported" >&6; } ;;
4753   *)
4754     CC="$CC $ac_cv_prog_cc_c89"
4755     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4756 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4757 esac
4758 if test "x$ac_cv_prog_cc_c89" != xno; then :
4759
4760 fi
4761
4762 ac_ext=c
4763 ac_cpp='$CPP $CPPFLAGS'
4764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4767
4768 ac_ext=c
4769 ac_cpp='$CPP $CPPFLAGS'
4770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4774 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4775 if ${am_cv_prog_cc_c_o+:} false; then :
4776   $as_echo_n "(cached) " >&6
4777 else
4778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h.  */
4780
4781 int main (void)
4782 {
4783
4784  ;
4785  return 0;
4786 }
4787 _ACEOF
4788   # Make sure it works both with $CC and with simple cc.
4789   # Following AC_PROG_CC_C_O, we do the test twice because some
4790   # compilers refuse to overwrite an existing .o file with -o,
4791   # though they will create one.
4792   am_cv_prog_cc_c_o=yes
4793   for am_i in 1 2; do
4794     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4795    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4796    ac_status=$?
4797    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798    (exit $ac_status); } \
4799          && test -f conftest2.$ac_objext; then
4800       : OK
4801     else
4802       am_cv_prog_cc_c_o=no
4803       break
4804     fi
4805   done
4806   rm -f core conftest*
4807   unset am_i
4808 fi
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4810 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4811 if test "$am_cv_prog_cc_c_o" != yes; then
4812    # Losing compiler, so override with the script.
4813    # FIXME: It is wrong to rewrite CC.
4814    # But if we don't then we get into trouble of one sort or another.
4815    # A longer-term fix would be to have automake use am__CC in this case,
4816    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4817    CC="$am_aux_dir/compile $CC"
4818 fi
4819 ac_ext=c
4820 ac_cpp='$CPP $CPPFLAGS'
4821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4824
4825
4826
4827 ac_ext=c
4828 ac_cpp='$CPP $CPPFLAGS'
4829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4833 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4834 # On Suns, sometimes $CPP names a directory.
4835 if test -n "$CPP" && test -d "$CPP"; then
4836   CPP=
4837 fi
4838 if test -z "$CPP"; then
4839   if ${ac_cv_prog_CPP+:} false; then :
4840   $as_echo_n "(cached) " >&6
4841 else
4842       # Double quotes because CPP needs to be expanded
4843     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4844     do
4845       ac_preproc_ok=false
4846 for ac_c_preproc_warn_flag in '' yes
4847 do
4848   # Use a header file that comes with gcc, so configuring glibc
4849   # with a fresh cross-compiler works.
4850   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4851   # <limits.h> exists even on freestanding compilers.
4852   # On the NeXT, cc -E runs the code through the compiler's parser,
4853   # not just through cpp. "Syntax error" is here to catch this case.
4854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h.  */
4856 #ifdef __STDC__
4857 # include <limits.h>
4858 #else
4859 # include <assert.h>
4860 #endif
4861                      Syntax error
4862 _ACEOF
4863 if ac_fn_c_try_cpp "$LINENO"; then :
4864
4865 else
4866   # Broken: fails on valid input.
4867 continue
4868 fi
4869 rm -f conftest.err conftest.i conftest.$ac_ext
4870
4871   # OK, works on sane cases.  Now check whether nonexistent headers
4872   # can be detected and how.
4873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h.  */
4875 #include <ac_nonexistent.h>
4876 _ACEOF
4877 if ac_fn_c_try_cpp "$LINENO"; then :
4878   # Broken: success on invalid input.
4879 continue
4880 else
4881   # Passes both tests.
4882 ac_preproc_ok=:
4883 break
4884 fi
4885 rm -f conftest.err conftest.i conftest.$ac_ext
4886
4887 done
4888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4889 rm -f conftest.i conftest.err conftest.$ac_ext
4890 if $ac_preproc_ok; then :
4891   break
4892 fi
4893
4894     done
4895     ac_cv_prog_CPP=$CPP
4896
4897 fi
4898   CPP=$ac_cv_prog_CPP
4899 else
4900   ac_cv_prog_CPP=$CPP
4901 fi
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4903 $as_echo "$CPP" >&6; }
4904 ac_preproc_ok=false
4905 for ac_c_preproc_warn_flag in '' yes
4906 do
4907   # Use a header file that comes with gcc, so configuring glibc
4908   # with a fresh cross-compiler works.
4909   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4910   # <limits.h> exists even on freestanding compilers.
4911   # On the NeXT, cc -E runs the code through the compiler's parser,
4912   # not just through cpp. "Syntax error" is here to catch this case.
4913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h.  */
4915 #ifdef __STDC__
4916 # include <limits.h>
4917 #else
4918 # include <assert.h>
4919 #endif
4920                      Syntax error
4921 _ACEOF
4922 if ac_fn_c_try_cpp "$LINENO"; then :
4923
4924 else
4925   # Broken: fails on valid input.
4926 continue
4927 fi
4928 rm -f conftest.err conftest.i conftest.$ac_ext
4929
4930   # OK, works on sane cases.  Now check whether nonexistent headers
4931   # can be detected and how.
4932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h.  */
4934 #include <ac_nonexistent.h>
4935 _ACEOF
4936 if ac_fn_c_try_cpp "$LINENO"; then :
4937   # Broken: success on invalid input.
4938 continue
4939 else
4940   # Passes both tests.
4941 ac_preproc_ok=:
4942 break
4943 fi
4944 rm -f conftest.err conftest.i conftest.$ac_ext
4945
4946 done
4947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4948 rm -f conftest.i conftest.err conftest.$ac_ext
4949 if $ac_preproc_ok; then :
4950
4951 else
4952   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4954 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4955 See \`config.log' for more details" "$LINENO" 5; }
4956 fi
4957
4958 ac_ext=c
4959 ac_cpp='$CPP $CPPFLAGS'
4960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4963
4964
4965   IFS=$xc_prog_cc_prev_IFS
4966   LIBS=$xc_prog_cc_prev_LIBS
4967   CFLAGS=$xc_prog_cc_prev_CFLAGS
4968   LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4969   CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
4970
4971
4972
4973
4974
4975 am__api_version='1.15'
4976
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4978 $as_echo_n "checking whether build environment is sane... " >&6; }
4979 # Reject unsafe characters in $srcdir or the absolute working directory
4980 # name.  Accept space and tab only in the latter.
4981 am_lf='
4982 '
4983 case `pwd` in
4984   *[\\\"\#\$\&\'\`$am_lf]*)
4985     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4986 esac
4987 case $srcdir in
4988   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4989     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4990 esac
4991
4992 # Do 'set' in a subshell so we don't clobber the current shell's
4993 # arguments.  Must try -L first in case configure is actually a
4994 # symlink; some systems play weird games with the mod time of symlinks
4995 # (eg FreeBSD returns the mod time of the symlink's containing
4996 # directory).
4997 if (
4998    am_has_slept=no
4999    for am_try in 1 2; do
5000      echo "timestamp, slept: $am_has_slept" > conftest.file
5001      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5002      if test "$*" = "X"; then
5003         # -L didn't work.
5004         set X `ls -t "$srcdir/configure" conftest.file`
5005      fi
5006      if test "$*" != "X $srcdir/configure conftest.file" \
5007         && test "$*" != "X conftest.file $srcdir/configure"; then
5008
5009         # If neither matched, then we have a broken ls.  This can happen
5010         # if, for instance, CONFIG_SHELL is bash and it inherits a
5011         # broken ls alias from the environment.  This has actually
5012         # happened.  Such a system could not be considered "sane".
5013         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
5014   alias in your environment" "$LINENO" 5
5015      fi
5016      if test "$2" = conftest.file || test $am_try -eq 2; then
5017        break
5018      fi
5019      # Just in case.
5020      sleep 1
5021      am_has_slept=yes
5022    done
5023    test "$2" = conftest.file
5024    )
5025 then
5026    # Ok.
5027    :
5028 else
5029    as_fn_error $? "newly created file is older than distributed files!
5030 Check your system clock" "$LINENO" 5
5031 fi
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5033 $as_echo "yes" >&6; }
5034 # If we didn't sleep, we still need to ensure time stamps of config.status and
5035 # generated files are strictly newer.
5036 am_sleep_pid=
5037 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5038   ( sleep 1 ) &
5039   am_sleep_pid=$!
5040 fi
5041
5042 rm -f conftest.file
5043
5044 test "$program_prefix" != NONE &&
5045   program_transform_name="s&^&$program_prefix&;$program_transform_name"
5046 # Use a double $ so make ignores it.
5047 test "$program_suffix" != NONE &&
5048   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5049 # Double any \ or $.
5050 # By default was `s,x,x', remove it if useless.
5051 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5052 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5053
5054 if test x"${MISSING+set}" != xset; then
5055   case $am_aux_dir in
5056   *\ * | *\     *)
5057     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5058   *)
5059     MISSING="\${SHELL} $am_aux_dir/missing" ;;
5060   esac
5061 fi
5062 # Use eval to expand $SHELL
5063 if eval "$MISSING --is-lightweight"; then
5064   am_missing_run="$MISSING "
5065 else
5066   am_missing_run=
5067   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5068 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5069 fi
5070
5071 if test x"${install_sh+set}" != xset; then
5072   case $am_aux_dir in
5073   *\ * | *\     *)
5074     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5075   *)
5076     install_sh="\${SHELL} $am_aux_dir/install-sh"
5077   esac
5078 fi
5079
5080 # Installed binaries are usually stripped using 'strip' when the user
5081 # run "make install-strip".  However 'strip' might not be the right
5082 # tool to use in cross-compilation environments, therefore Automake
5083 # will honor the 'STRIP' environment variable to overrule this program.
5084 if test "$cross_compiling" != no; then
5085   if test -n "$ac_tool_prefix"; then
5086   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5087 set dummy ${ac_tool_prefix}strip; ac_word=$2
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if ${ac_cv_prog_STRIP+:} false; then :
5091   $as_echo_n "(cached) " >&6
5092 else
5093   if test -n "$STRIP"; then
5094   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5095 else
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH
5098 do
5099   IFS=$as_save_IFS
5100   test -z "$as_dir" && as_dir=.
5101     for ac_exec_ext in '' $ac_executable_extensions; do
5102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105     break 2
5106   fi
5107 done
5108   done
5109 IFS=$as_save_IFS
5110
5111 fi
5112 fi
5113 STRIP=$ac_cv_prog_STRIP
5114 if test -n "$STRIP"; then
5115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5116 $as_echo "$STRIP" >&6; }
5117 else
5118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 $as_echo "no" >&6; }
5120 fi
5121
5122
5123 fi
5124 if test -z "$ac_cv_prog_STRIP"; then
5125   ac_ct_STRIP=$STRIP
5126   # Extract the first word of "strip", so it can be a program name with args.
5127 set dummy strip; ac_word=$2
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5129 $as_echo_n "checking for $ac_word... " >&6; }
5130 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5131   $as_echo_n "(cached) " >&6
5132 else
5133   if test -n "$ac_ct_STRIP"; then
5134   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5135 else
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH
5138 do
5139   IFS=$as_save_IFS
5140   test -z "$as_dir" && as_dir=.
5141     for ac_exec_ext in '' $ac_executable_extensions; do
5142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5143     ac_cv_prog_ac_ct_STRIP="strip"
5144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5145     break 2
5146   fi
5147 done
5148   done
5149 IFS=$as_save_IFS
5150
5151 fi
5152 fi
5153 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5154 if test -n "$ac_ct_STRIP"; then
5155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5156 $as_echo "$ac_ct_STRIP" >&6; }
5157 else
5158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5160 fi
5161
5162   if test "x$ac_ct_STRIP" = x; then
5163     STRIP=":"
5164   else
5165     case $cross_compiling:$ac_tool_warned in
5166 yes:)
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5169 ac_tool_warned=yes ;;
5170 esac
5171     STRIP=$ac_ct_STRIP
5172   fi
5173 else
5174   STRIP="$ac_cv_prog_STRIP"
5175 fi
5176
5177 fi
5178 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5179
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5181 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5182 if test -z "$MKDIR_P"; then
5183   if ${ac_cv_path_mkdir+:} false; then :
5184   $as_echo_n "(cached) " >&6
5185 else
5186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5188 do
5189   IFS=$as_save_IFS
5190   test -z "$as_dir" && as_dir=.
5191     for ac_prog in mkdir gmkdir; do
5192          for ac_exec_ext in '' $ac_executable_extensions; do
5193            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5194            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5195              'mkdir (GNU coreutils) '* | \
5196              'mkdir (coreutils) '* | \
5197              'mkdir (fileutils) '4.1*)
5198                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5199                break 3;;
5200            esac
5201          done
5202        done
5203   done
5204 IFS=$as_save_IFS
5205
5206 fi
5207
5208   test -d ./--version && rmdir ./--version
5209   if test "${ac_cv_path_mkdir+set}" = set; then
5210     MKDIR_P="$ac_cv_path_mkdir -p"
5211   else
5212     # As a last resort, use the slow shell script.  Don't cache a
5213     # value for MKDIR_P within a source directory, because that will
5214     # break other packages using the cache if that directory is
5215     # removed, or if the value is a relative name.
5216     MKDIR_P="$ac_install_sh -d"
5217   fi
5218 fi
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5220 $as_echo "$MKDIR_P" >&6; }
5221
5222 for ac_prog in gawk mawk nawk awk
5223 do
5224   # Extract the first word of "$ac_prog", so it can be a program name with args.
5225 set dummy $ac_prog; ac_word=$2
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if ${ac_cv_prog_AWK+:} false; then :
5229   $as_echo_n "(cached) " >&6
5230 else
5231   if test -n "$AWK"; then
5232   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5233 else
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5236 do
5237   IFS=$as_save_IFS
5238   test -z "$as_dir" && as_dir=.
5239     for ac_exec_ext in '' $ac_executable_extensions; do
5240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241     ac_cv_prog_AWK="$ac_prog"
5242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243     break 2
5244   fi
5245 done
5246   done
5247 IFS=$as_save_IFS
5248
5249 fi
5250 fi
5251 AWK=$ac_cv_prog_AWK
5252 if test -n "$AWK"; then
5253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5254 $as_echo "$AWK" >&6; }
5255 else
5256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257 $as_echo "no" >&6; }
5258 fi
5259
5260
5261   test -n "$AWK" && break
5262 done
5263
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5265 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5266 set x ${MAKE-make}
5267 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5268 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5269   $as_echo_n "(cached) " >&6
5270 else
5271   cat >conftest.make <<\_ACEOF
5272 SHELL = /bin/sh
5273 all:
5274         @echo '@@@%%%=$(MAKE)=@@@%%%'
5275 _ACEOF
5276 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5277 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5278   *@@@%%%=?*=@@@%%%*)
5279     eval ac_cv_prog_make_${ac_make}_set=yes;;
5280   *)
5281     eval ac_cv_prog_make_${ac_make}_set=no;;
5282 esac
5283 rm -f conftest.make
5284 fi
5285 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5287 $as_echo "yes" >&6; }
5288   SET_MAKE=
5289 else
5290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 $as_echo "no" >&6; }
5292   SET_MAKE="MAKE=${MAKE-make}"
5293 fi
5294
5295 rm -rf .tst 2>/dev/null
5296 mkdir .tst 2>/dev/null
5297 if test -d .tst; then
5298   am__leading_dot=.
5299 else
5300   am__leading_dot=_
5301 fi
5302 rmdir .tst 2>/dev/null
5303
5304 DEPDIR="${am__leading_dot}deps"
5305
5306 ac_config_commands="$ac_config_commands depfiles"
5307
5308
5309 am_make=${MAKE-make}
5310 cat > confinc << 'END'
5311 am__doit:
5312         @echo this is the am__doit target
5313 .PHONY: am__doit
5314 END
5315 # If we don't find an include directive, just comment out the code.
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5317 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5318 am__include="#"
5319 am__quote=
5320 _am_result=none
5321 # First try GNU make style include.
5322 echo "include confinc" > confmf
5323 # Ignore all kinds of additional output from 'make'.
5324 case `$am_make -s -f confmf 2> /dev/null` in #(
5325 *the\ am__doit\ target*)
5326   am__include=include
5327   am__quote=
5328   _am_result=GNU
5329   ;;
5330 esac
5331 # Now try BSD make style include.
5332 if test "$am__include" = "#"; then
5333    echo '.include "confinc"' > confmf
5334    case `$am_make -s -f confmf 2> /dev/null` in #(
5335    *the\ am__doit\ target*)
5336      am__include=.include
5337      am__quote="\""
5338      _am_result=BSD
5339      ;;
5340    esac
5341 fi
5342
5343
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5345 $as_echo "$_am_result" >&6; }
5346 rm -f confinc confmf
5347
5348 # Check whether --enable-dependency-tracking was given.
5349 if test "${enable_dependency_tracking+set}" = set; then :
5350   enableval=$enable_dependency_tracking;
5351 fi
5352
5353 if test "x$enable_dependency_tracking" != xno; then
5354   am_depcomp="$ac_aux_dir/depcomp"
5355   AMDEPBACKSLASH='\'
5356   am__nodep='_no'
5357 fi
5358  if test "x$enable_dependency_tracking" != xno; then
5359   AMDEP_TRUE=
5360   AMDEP_FALSE='#'
5361 else
5362   AMDEP_TRUE='#'
5363   AMDEP_FALSE=
5364 fi
5365
5366
5367 ## --------------------------------------- ##
5368 ##  Start of automake initialization code  ##
5369 ## --------------------------------------- ##
5370
5371 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5372   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5373   # is not polluted with repeated "-I."
5374   am__isrc=' -I$(srcdir)'
5375   # test to see if srcdir already configured
5376   if test -f $srcdir/config.status; then
5377     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5378   fi
5379 fi
5380
5381 # test whether we have cygpath
5382 if test -z "$CYGPATH_W"; then
5383   if (cygpath --version) >/dev/null 2>/dev/null; then
5384     CYGPATH_W='cygpath -w'
5385   else
5386     CYGPATH_W=echo
5387   fi
5388 fi
5389
5390
5391 # Define the identity of the package.
5392  PACKAGE='curl'
5393  VERSION='-'
5394
5395
5396 cat >>confdefs.h <<_ACEOF
5397 #define PACKAGE "$PACKAGE"
5398 _ACEOF
5399
5400
5401 cat >>confdefs.h <<_ACEOF
5402 #define VERSION "$VERSION"
5403 _ACEOF
5404
5405 # Some tools Automake needs.
5406
5407 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5408
5409
5410 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5411
5412
5413 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5414
5415
5416 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5417
5418
5419 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5420
5421 # For better backward compatibility.  To be removed once Automake 1.9.x
5422 # dies out for good.  For more background, see:
5423 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5424 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5425 mkdir_p='$(MKDIR_P)'
5426
5427 # We need awk for the "check" target (and possibly the TAP driver).  The
5428 # system "awk" is bad on some platforms.
5429 # Always define AMTAR for backward compatibility.  Yes, it's still used
5430 # in the wild :-(  We should find a proper way to deprecate it ...
5431 AMTAR='$${TAR-tar}'
5432
5433
5434 # We'll loop over all known methods to create a tar archive until one works.
5435 _am_tools='gnutar  pax cpio none'
5436
5437 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5438
5439
5440
5441
5442
5443 depcc="$CC"   am_compiler_list=
5444
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5446 $as_echo_n "checking dependency style of $depcc... " >&6; }
5447 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5448   $as_echo_n "(cached) " >&6
5449 else
5450   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5451   # We make a subdir and do the tests there.  Otherwise we can end up
5452   # making bogus files that we don't know about and never remove.  For
5453   # instance it was reported that on HP-UX the gcc test will end up
5454   # making a dummy file named 'D' -- because '-MD' means "put the output
5455   # in D".
5456   rm -rf conftest.dir
5457   mkdir conftest.dir
5458   # Copy depcomp to subdir because otherwise we won't find it if we're
5459   # using a relative directory.
5460   cp "$am_depcomp" conftest.dir
5461   cd conftest.dir
5462   # We will build objects and dependencies in a subdirectory because
5463   # it helps to detect inapplicable dependency modes.  For instance
5464   # both Tru64's cc and ICC support -MD to output dependencies as a
5465   # side effect of compilation, but ICC will put the dependencies in
5466   # the current directory while Tru64 will put them in the object
5467   # directory.
5468   mkdir sub
5469
5470   am_cv_CC_dependencies_compiler_type=none
5471   if test "$am_compiler_list" = ""; then
5472      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5473   fi
5474   am__universal=false
5475   case " $depcc " in #(
5476      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5477      esac
5478
5479   for depmode in $am_compiler_list; do
5480     # Setup a source with many dependencies, because some compilers
5481     # like to wrap large dependency lists on column 80 (with \), and
5482     # we should not choose a depcomp mode which is confused by this.
5483     #
5484     # We need to recreate these files for each test, as the compiler may
5485     # overwrite some of them when testing with obscure command lines.
5486     # This happens at least with the AIX C compiler.
5487     : > sub/conftest.c
5488     for i in 1 2 3 4 5 6; do
5489       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5490       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5491       # Solaris 10 /bin/sh.
5492       echo '/* dummy */' > sub/conftst$i.h
5493     done
5494     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5495
5496     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5497     # mode.  It turns out that the SunPro C++ compiler does not properly
5498     # handle '-M -o', and we need to detect this.  Also, some Intel
5499     # versions had trouble with output in subdirs.
5500     am__obj=sub/conftest.${OBJEXT-o}
5501     am__minus_obj="-o $am__obj"
5502     case $depmode in
5503     gcc)
5504       # This depmode causes a compiler race in universal mode.
5505       test "$am__universal" = false || continue
5506       ;;
5507     nosideeffect)
5508       # After this tag, mechanisms are not by side-effect, so they'll
5509       # only be used when explicitly requested.
5510       if test "x$enable_dependency_tracking" = xyes; then
5511         continue
5512       else
5513         break
5514       fi
5515       ;;
5516     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5517       # This compiler won't grok '-c -o', but also, the minuso test has
5518       # not run yet.  These depmodes are late enough in the game, and
5519       # so weak that their functioning should not be impacted.
5520       am__obj=conftest.${OBJEXT-o}
5521       am__minus_obj=
5522       ;;
5523     none) break ;;
5524     esac
5525     if depmode=$depmode \
5526        source=sub/conftest.c object=$am__obj \
5527        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5528        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5529          >/dev/null 2>conftest.err &&
5530        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5531        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5532        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5533        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5534       # icc doesn't choke on unknown options, it will just issue warnings
5535       # or remarks (even with -Werror).  So we grep stderr for any message
5536       # that says an option was ignored or not supported.
5537       # When given -MP, icc 7.0 and 7.1 complain thusly:
5538       #   icc: Command line warning: ignoring option '-M'; no argument required
5539       # The diagnosis changed in icc 8.0:
5540       #   icc: Command line remark: option '-MP' not supported
5541       if (grep 'ignoring option' conftest.err ||
5542           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5543         am_cv_CC_dependencies_compiler_type=$depmode
5544         break
5545       fi
5546     fi
5547   done
5548
5549   cd ..
5550   rm -rf conftest.dir
5551 else
5552   am_cv_CC_dependencies_compiler_type=none
5553 fi
5554
5555 fi
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5557 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5558 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5559
5560  if
5561   test "x$enable_dependency_tracking" != xno \
5562   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5563   am__fastdepCC_TRUE=
5564   am__fastdepCC_FALSE='#'
5565 else
5566   am__fastdepCC_TRUE='#'
5567   am__fastdepCC_FALSE=
5568 fi
5569
5570
5571
5572 # POSIX will say in a future version that running "rm -f" with no argument
5573 # is OK; and we want to be able to make that assumption in our Makefile
5574 # recipes.  So use an aggressive probe to check that the usage we want is
5575 # actually supported "in the wild" to an acceptable degree.
5576 # See automake bug#10828.
5577 # To make any issue more visible, cause the running configure to be aborted
5578 # by default if the 'rm' program in use doesn't match our expectations; the
5579 # user can still override this though.
5580 if rm -f && rm -fr && rm -rf; then : OK; else
5581   cat >&2 <<'END'
5582 Oops!
5583
5584 Your 'rm' program seems unable to run without file operands specified
5585 on the command line, even when the '-f' option is present.  This is contrary
5586 to the behaviour of most rm programs out there, and not conforming with
5587 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5588
5589 Please tell bug-automake@gnu.org about your system, including the value
5590 of your $PATH and any error possibly output before this message.  This
5591 can help us improve future automake versions.
5592
5593 END
5594   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5595     echo 'Configuration will proceed anyway, since you have set the' >&2
5596     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5597     echo >&2
5598   else
5599     cat >&2 <<'END'
5600 Aborting the configuration process, to ensure you take notice of the issue.
5601
5602 You can download and install GNU coreutils to get an 'rm' implementation
5603 that behaves properly: <http://www.gnu.org/software/coreutils/>.
5604
5605 If you want to complete the configuration process using your problematic
5606 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5607 to "yes", and re-run configure.
5608
5609 END
5610     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5611   fi
5612 fi
5613
5614 ## ------------------------------------- ##
5615 ##  End of automake initialization code  ##
5616 ## ------------------------------------- ##
5617
5618
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
5620 $as_echo_n "checking curl version... " >&6; }
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
5622 $as_echo "$CURLVERSION" >&6; }
5623
5624
5625
5626 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curlver.h`
5627
5628
5629 PKGADD_PKG="HAXXcurl"
5630 PKGADD_NAME="cURL - a client that groks URLs"
5631 PKGADD_VENDOR="curl.haxx.se"
5632
5633
5634
5635
5636     curl_ssl_msg="no      (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,axtls,winssl,darwinssl} )"
5637     curl_ssh_msg="no      (--with-libssh2)"
5638    curl_zlib_msg="no      (--with-zlib)"
5639     curl_gss_msg="no      (--with-gssapi)"
5640 curl_tls_srp_msg="no      (--enable-tls-srp)"
5641     curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
5642    curl_ipv6_msg="no      (--enable-ipv6)"
5643 curl_unix_sockets_msg="no      (--enable-unix-sockets)"
5644     curl_idn_msg="no      (--with-{libidn,winidn})"
5645  curl_manual_msg="no      (--enable-manual)"
5646 curl_libcurl_msg="enabled (--disable-libcurl-option)"
5647 curl_verbose_msg="enabled (--disable-verbose)"
5648    curl_sspi_msg="no      (--enable-sspi)"
5649    curl_ldap_msg="no      (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
5650   curl_ldaps_msg="no      (--enable-ldaps)"
5651    curl_rtsp_msg="no      (--enable-rtsp)"
5652    curl_rtmp_msg="no      (--with-librtmp)"
5653   curl_mtlnk_msg="no      (--with-libmetalink)"
5654     curl_psl_msg="no      (--with-libpsl)"
5655
5656     init_ssl_msg=${curl_ssl_msg}
5657
5658 INITIAL_LDFLAGS=$LDFLAGS
5659 INITIAL_LIBS=$LIBS
5660
5661
5662 # Make sure we can run config.sub.
5663 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5664   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5665
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5667 $as_echo_n "checking build system type... " >&6; }
5668 if ${ac_cv_build+:} false; then :
5669   $as_echo_n "(cached) " >&6
5670 else
5671   ac_build_alias=$build_alias
5672 test "x$ac_build_alias" = x &&
5673   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5674 test "x$ac_build_alias" = x &&
5675   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5676 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5677   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5678
5679 fi
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5681 $as_echo "$ac_cv_build" >&6; }
5682 case $ac_cv_build in
5683 *-*-*) ;;
5684 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5685 esac
5686 build=$ac_cv_build
5687 ac_save_IFS=$IFS; IFS='-'
5688 set x $ac_cv_build
5689 shift
5690 build_cpu=$1
5691 build_vendor=$2
5692 shift; shift
5693 # Remember, the first character of IFS is used to create $*,
5694 # except with old shells:
5695 build_os=$*
5696 IFS=$ac_save_IFS
5697 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5698
5699
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5701 $as_echo_n "checking host system type... " >&6; }
5702 if ${ac_cv_host+:} false; then :
5703   $as_echo_n "(cached) " >&6
5704 else
5705   if test "x$host_alias" = x; then
5706   ac_cv_host=$ac_cv_build
5707 else
5708   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5709     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5710 fi
5711
5712 fi
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5714 $as_echo "$ac_cv_host" >&6; }
5715 case $ac_cv_host in
5716 *-*-*) ;;
5717 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5718 esac
5719 host=$ac_cv_host
5720 ac_save_IFS=$IFS; IFS='-'
5721 set x $ac_cv_host
5722 shift
5723 host_cpu=$1
5724 host_vendor=$2
5725 shift; shift
5726 # Remember, the first character of IFS is used to create $*,
5727 # except with old shells:
5728 host_os=$*
5729 IFS=$ac_save_IFS
5730 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5731
5732
5733
5734 cat >>confdefs.h <<_ACEOF
5735 #define OS "${host}"
5736 _ACEOF
5737
5738
5739
5740
5741
5742 curl_includes_inttypes="\
5743 /* includes start */
5744 #ifdef HAVE_SYS_TYPES_H
5745 # include <sys/types.h>
5746 #endif
5747 #ifdef HAVE_STDINT_H
5748 # include <stdint.h>
5749 #endif
5750 #ifdef HAVE_INTTYPES_H
5751 # include <inttypes.h>
5752 #endif
5753 /* includes end */"
5754   case $host_os in
5755     irix*)
5756       ac_cv_header_stdint_h="no"
5757       ;;
5758   esac
5759   for ac_header in sys/types.h stdint.h inttypes.h
5760 do :
5761   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5762 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_inttypes
5763 "
5764 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5765   cat >>confdefs.h <<_ACEOF
5766 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5767 _ACEOF
5768
5769 fi
5770
5771 done
5772
5773
5774
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5776 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5777 if ${ac_cv_path_GREP+:} false; then :
5778   $as_echo_n "(cached) " >&6
5779 else
5780   if test -z "$GREP"; then
5781   ac_path_GREP_found=false
5782   # Loop through the user's path and test for each of PROGNAME-LIST
5783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5785 do
5786   IFS=$as_save_IFS
5787   test -z "$as_dir" && as_dir=.
5788     for ac_prog in grep ggrep; do
5789     for ac_exec_ext in '' $ac_executable_extensions; do
5790       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5791       as_fn_executable_p "$ac_path_GREP" || continue
5792 # Check for GNU ac_path_GREP and select it if it is found.
5793   # Check for GNU $ac_path_GREP
5794 case `"$ac_path_GREP" --version 2>&1` in
5795 *GNU*)
5796   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5797 *)
5798   ac_count=0
5799   $as_echo_n 0123456789 >"conftest.in"
5800   while :
5801   do
5802     cat "conftest.in" "conftest.in" >"conftest.tmp"
5803     mv "conftest.tmp" "conftest.in"
5804     cp "conftest.in" "conftest.nl"
5805     $as_echo 'GREP' >> "conftest.nl"
5806     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5807     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5808     as_fn_arith $ac_count + 1 && ac_count=$as_val
5809     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5810       # Best one so far, save it but keep looking for a better one
5811       ac_cv_path_GREP="$ac_path_GREP"
5812       ac_path_GREP_max=$ac_count
5813     fi
5814     # 10*(2^10) chars as input seems more than enough
5815     test $ac_count -gt 10 && break
5816   done
5817   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5818 esac
5819
5820       $ac_path_GREP_found && break 3
5821     done
5822   done
5823   done
5824 IFS=$as_save_IFS
5825   if test -z "$ac_cv_path_GREP"; then
5826     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5827   fi
5828 else
5829   ac_cv_path_GREP=$GREP
5830 fi
5831
5832 fi
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5834 $as_echo "$ac_cv_path_GREP" >&6; }
5835  GREP="$ac_cv_path_GREP"
5836
5837
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5839 $as_echo_n "checking for egrep... " >&6; }
5840 if ${ac_cv_path_EGREP+:} false; then :
5841   $as_echo_n "(cached) " >&6
5842 else
5843   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5844    then ac_cv_path_EGREP="$GREP -E"
5845    else
5846      if test -z "$EGREP"; then
5847   ac_path_EGREP_found=false
5848   # Loop through the user's path and test for each of PROGNAME-LIST
5849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5851 do
5852   IFS=$as_save_IFS
5853   test -z "$as_dir" && as_dir=.
5854     for ac_prog in egrep; do
5855     for ac_exec_ext in '' $ac_executable_extensions; do
5856       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5857       as_fn_executable_p "$ac_path_EGREP" || continue
5858 # Check for GNU ac_path_EGREP and select it if it is found.
5859   # Check for GNU $ac_path_EGREP
5860 case `"$ac_path_EGREP" --version 2>&1` in
5861 *GNU*)
5862   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5863 *)
5864   ac_count=0
5865   $as_echo_n 0123456789 >"conftest.in"
5866   while :
5867   do
5868     cat "conftest.in" "conftest.in" >"conftest.tmp"
5869     mv "conftest.tmp" "conftest.in"
5870     cp "conftest.in" "conftest.nl"
5871     $as_echo 'EGREP' >> "conftest.nl"
5872     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5873     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5874     as_fn_arith $ac_count + 1 && ac_count=$as_val
5875     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5876       # Best one so far, save it but keep looking for a better one
5877       ac_cv_path_EGREP="$ac_path_EGREP"
5878       ac_path_EGREP_max=$ac_count
5879     fi
5880     # 10*(2^10) chars as input seems more than enough
5881     test $ac_count -gt 10 && break
5882   done
5883   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5884 esac
5885
5886       $ac_path_EGREP_found && break 3
5887     done
5888   done
5889   done
5890 IFS=$as_save_IFS
5891   if test -z "$ac_cv_path_EGREP"; then
5892     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5893   fi
5894 else
5895   ac_cv_path_EGREP=$EGREP
5896 fi
5897
5898    fi
5899 fi
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5901 $as_echo "$ac_cv_path_EGREP" >&6; }
5902  EGREP="$ac_cv_path_EGREP"
5903
5904
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5906 $as_echo_n "checking for ANSI C header files... " >&6; }
5907 if ${ac_cv_header_stdc+:} false; then :
5908   $as_echo_n "(cached) " >&6
5909 else
5910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911 /* end confdefs.h.  */
5912 #include <stdlib.h>
5913 #include <stdarg.h>
5914 #include <string.h>
5915 #include <float.h>
5916
5917 int main (void)
5918 {
5919
5920  ;
5921  return 0;
5922 }
5923 _ACEOF
5924 if ac_fn_c_try_compile "$LINENO"; then :
5925   ac_cv_header_stdc=yes
5926 else
5927   ac_cv_header_stdc=no
5928 fi
5929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5930
5931 if test $ac_cv_header_stdc = yes; then
5932   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5934 /* end confdefs.h.  */
5935 #include <string.h>
5936
5937 _ACEOF
5938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5939   $EGREP "memchr" >/dev/null 2>&1; then :
5940
5941 else
5942   ac_cv_header_stdc=no
5943 fi
5944 rm -f conftest*
5945
5946 fi
5947
5948 if test $ac_cv_header_stdc = yes; then
5949   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h.  */
5952 #include <stdlib.h>
5953
5954 _ACEOF
5955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5956   $EGREP "free" >/dev/null 2>&1; then :
5957
5958 else
5959   ac_cv_header_stdc=no
5960 fi
5961 rm -f conftest*
5962
5963 fi
5964
5965 if test $ac_cv_header_stdc = yes; then
5966   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5967   if test "$cross_compiling" = yes; then :
5968   :
5969 else
5970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h.  */
5972 #include <ctype.h>
5973 #include <stdlib.h>
5974 #if ((' ' & 0x0FF) == 0x020)
5975 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5976 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5977 #else
5978 # define ISLOWER(c) \
5979                    (('a' <= (c) && (c) <= 'i') \
5980                      || ('j' <= (c) && (c) <= 'r') \
5981                      || ('s' <= (c) && (c) <= 'z'))
5982 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5983 #endif
5984
5985 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5986 int
5987 main ()
5988 {
5989   int i;
5990   for (i = 0; i < 256; i++)
5991     if (XOR (islower (i), ISLOWER (i))
5992         || toupper (i) != TOUPPER (i))
5993       return 2;
5994   return 0;
5995 }
5996 _ACEOF
5997 if ac_fn_c_try_run "$LINENO"; then :
5998
5999 else
6000   ac_cv_header_stdc=no
6001 fi
6002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6003   conftest.$ac_objext conftest.beam conftest.$ac_ext
6004 fi
6005
6006 fi
6007 fi
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6009 $as_echo "$ac_cv_header_stdc" >&6; }
6010 if test $ac_cv_header_stdc = yes; then
6011
6012 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6013
6014 fi
6015
6016 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6017 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6018                   inttypes.h stdint.h unistd.h
6019 do :
6020   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6021 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6022 "
6023 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6024   cat >>confdefs.h <<_ACEOF
6025 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6026 _ACEOF
6027
6028 fi
6029
6030 done
6031
6032
6033
6034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
6035 $as_echo_n "checking if cpp -P is needed... " >&6; }
6036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h.  */
6038
6039  #include <errno.h>
6040 TEST EINVAL TEST
6041
6042 _ACEOF
6043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6044   $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
6045   cpp=no
6046 else
6047   cpp=yes
6048 fi
6049 rm -f conftest*
6050
6051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
6052 $as_echo "$cpp" >&6; }
6053
6054     if test "x$cpp" = "xyes"; then
6055     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
6056 $as_echo_n "checking if cpp -P works... " >&6; }
6057     OLDCPPFLAGS=$CPPFLAGS
6058     CPPFLAGS="$CPPFLAGS -P"
6059     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060 /* end confdefs.h.  */
6061
6062  #include <errno.h>
6063 TEST EINVAL TEST
6064
6065 _ACEOF
6066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6067   $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
6068   cpp_p=yes
6069 else
6070   cpp_p=no
6071 fi
6072 rm -f conftest*
6073
6074     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
6075 $as_echo "$cpp_p" >&6; }
6076
6077     if test "x$cpp_p" = "xno"; then
6078       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
6079 $as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
6080       # without -P
6081       CPPPFLAGS=$OLDCPPFLAGS
6082     else
6083       # with -P
6084       CPPPFLAGS=$CPPFLAGS
6085     fi
6086         CPPFLAGS=$OLDCPPFLAGS
6087   fi
6088
6089
6090     #
6091         #
6092   if test -z "$SED"; then
6093     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6094   fi
6095   #
6096   # The cast to long int works around a bug in the HP C Compiler
6097 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6098 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6099 # This bug is HP SR number 8606223364.
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6101 $as_echo_n "checking size of long... " >&6; }
6102 if ${ac_cv_sizeof_long+:} false; then :
6103   $as_echo_n "(cached) " >&6
6104 else
6105   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
6106
6107 else
6108   if test "$ac_cv_type_long" = yes; then
6109      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6111 as_fn_error 77 "cannot compute sizeof (long)
6112 See \`config.log' for more details" "$LINENO" 5; }
6113    else
6114      ac_cv_sizeof_long=0
6115    fi
6116 fi
6117
6118 fi
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6120 $as_echo "$ac_cv_sizeof_long" >&6; }
6121
6122
6123
6124 cat >>confdefs.h <<_ACEOF
6125 #define SIZEOF_LONG $ac_cv_sizeof_long
6126 _ACEOF
6127
6128
6129   # The cast to long int works around a bug in the HP C Compiler
6130 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6131 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6132 # This bug is HP SR number 8606223364.
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
6134 $as_echo_n "checking size of void*... " >&6; }
6135 if ${ac_cv_sizeof_voidp+:} false; then :
6136   $as_echo_n "(cached) " >&6
6137 else
6138   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
6139
6140 else
6141   if test "$ac_cv_type_voidp" = yes; then
6142      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6144 as_fn_error 77 "cannot compute sizeof (void*)
6145 See \`config.log' for more details" "$LINENO" 5; }
6146    else
6147      ac_cv_sizeof_voidp=0
6148    fi
6149 fi
6150
6151 fi
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
6153 $as_echo "$ac_cv_sizeof_voidp" >&6; }
6154
6155
6156
6157 cat >>confdefs.h <<_ACEOF
6158 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
6159 _ACEOF
6160
6161
6162   #
6163   if test -z "$ac_cv_sizeof_long" ||
6164     test "$ac_cv_sizeof_long" -eq "0"; then
6165     as_fn_error $? "cannot find out size of long." "$LINENO" 5
6166   fi
6167   if test -z "$ac_cv_sizeof_voidp" ||
6168      test "$ac_cv_sizeof_voidp" -eq "0"; then
6169     as_fn_error $? "cannot find out size of void*." "$LINENO" 5
6170   fi
6171   #
6172   x_LP64_long=""
6173   x_LP32_long=""
6174   #
6175   if test "$ac_cv_sizeof_long" -eq "8" &&
6176      test "$ac_cv_sizeof_voidp" -ge "8"; then
6177     x_LP64_long="long"
6178   elif test "$ac_cv_sizeof_long" -eq "4" &&
6179        test "$ac_cv_sizeof_voidp" -ge "4"; then
6180     x_LP32_long="long"
6181   fi
6182   #
6183     #
6184   curl_typeof_curl_off_t="unknown"
6185   curl_sizeof_curl_off_t="unknown"
6186   curl_format_curl_off_t="unknown"
6187   curl_format_curl_off_tu="unknown"
6188   #
6189   if test "$curl_typeof_curl_off_t" = "unknown"; then
6190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit curl_off_t data type" >&5
6191 $as_echo_n "checking for 64-bit curl_off_t data type... " >&6; }
6192     for t8 in          \
6193       "$x_LP64_long"   \
6194       'int64_t'        \
6195       '__int64'        \
6196       'long long'      \
6197       '__longlong'     \
6198       '__longlong_t'   ; do
6199
6200     if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t8"; then
6201     tmp_includes=""
6202     tmp_source=""
6203     tmp_fmt=""
6204     case `echo "$t8" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6205       int64_t)
6206         tmp_includes="$curl_includes_inttypes"
6207         tmp_source="char f[] = PRId64;"
6208         tmp_fmt="PRId64"
6209         ;;
6210       int32_t)
6211         tmp_includes="$curl_includes_inttypes"
6212         tmp_source="char f[] = PRId32;"
6213         tmp_fmt="PRId32"
6214         ;;
6215       int16_t)
6216         tmp_includes="$curl_includes_inttypes"
6217         tmp_source="char f[] = PRId16;"
6218         tmp_fmt="PRId16"
6219         ;;
6220     esac
6221     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6222 /* end confdefs.h.  */
6223
6224
6225         $tmp_includes
6226         typedef $t8 curl_off_t;
6227         typedef char dummy_arr[sizeof(curl_off_t) == 8 ? 1 : -1];
6228
6229 int main (void)
6230 {
6231
6232         $tmp_source
6233         curl_off_t dummy;
6234
6235  ;
6236  return 0;
6237 }
6238
6239 _ACEOF
6240 if ac_fn_c_try_compile "$LINENO"; then :
6241
6242       if test -z "$tmp_fmt"; then
6243         curl_typeof_curl_off_t="$t8"
6244         curl_sizeof_curl_off_t="8"
6245       else
6246
6247     OLDCPPFLAGS=$CPPFLAGS
6248   # CPPPFLAGS comes from CURL_CPP_P
6249   CPPFLAGS="$CPPPFLAGS"
6250   as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6251   as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6252   if test -z "$SED"; then
6253     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6254   fi
6255   if test -z "$GREP"; then
6256     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6257   fi
6258
6259   tmp_exp=""
6260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h.  */
6262
6263     $curl_includes_inttypes
6264 #ifdef $tmp_fmt
6265 CURL_DEF_TOKEN $tmp_fmt
6266 #endif
6267
6268
6269 _ACEOF
6270 if ac_fn_c_try_cpp "$LINENO"; then :
6271
6272     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6273       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6274       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6275       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6276     if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6277       tmp_exp=""
6278     fi
6279
6280 fi
6281 rm -f conftest.err conftest.i conftest.$ac_ext
6282   if test -z "$tmp_exp"; then
6283     eval "$as_ac_HaveDef=no"
6284
6285   else
6286     eval "$as_ac_HaveDef=yes"
6287     eval "$as_ac_Def=\$tmp_exp"
6288
6289   fi
6290       CPPFLAGS=$OLDCPPFLAGS
6291
6292         as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6293         as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6294         if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6295           curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6296           curl_typeof_curl_off_t="$t8"
6297           curl_sizeof_curl_off_t="8"
6298         fi
6299                       fi
6300
6301 fi
6302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6303   fi
6304
6305     done
6306     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6307 $as_echo "$curl_typeof_curl_off_t" >&6; }
6308   fi
6309   if test "$curl_typeof_curl_off_t" = "unknown"; then
6310     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit curl_off_t data type" >&5
6311 $as_echo_n "checking for 32-bit curl_off_t data type... " >&6; }
6312     for t4 in          \
6313       "$x_LP32_long"   \
6314       'int32_t'        \
6315       '__int32'        \
6316       'int'            ; do
6317
6318     if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t4"; then
6319     tmp_includes=""
6320     tmp_source=""
6321     tmp_fmt=""
6322     case `echo "$t4" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6323       int64_t)
6324         tmp_includes="$curl_includes_inttypes"
6325         tmp_source="char f[] = PRId64;"
6326         tmp_fmt="PRId64"
6327         ;;
6328       int32_t)
6329         tmp_includes="$curl_includes_inttypes"
6330         tmp_source="char f[] = PRId32;"
6331         tmp_fmt="PRId32"
6332         ;;
6333       int16_t)
6334         tmp_includes="$curl_includes_inttypes"
6335         tmp_source="char f[] = PRId16;"
6336         tmp_fmt="PRId16"
6337         ;;
6338     esac
6339     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6340 /* end confdefs.h.  */
6341
6342
6343         $tmp_includes
6344         typedef $t4 curl_off_t;
6345         typedef char dummy_arr[sizeof(curl_off_t) == 4 ? 1 : -1];
6346
6347 int main (void)
6348 {
6349
6350         $tmp_source
6351         curl_off_t dummy;
6352
6353  ;
6354  return 0;
6355 }
6356
6357 _ACEOF
6358 if ac_fn_c_try_compile "$LINENO"; then :
6359
6360       if test -z "$tmp_fmt"; then
6361         curl_typeof_curl_off_t="$t4"
6362         curl_sizeof_curl_off_t="4"
6363       else
6364
6365     OLDCPPFLAGS=$CPPFLAGS
6366   # CPPPFLAGS comes from CURL_CPP_P
6367   CPPFLAGS="$CPPPFLAGS"
6368   as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6369   as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6370   if test -z "$SED"; then
6371     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6372   fi
6373   if test -z "$GREP"; then
6374     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6375   fi
6376
6377   tmp_exp=""
6378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h.  */
6380
6381     $curl_includes_inttypes
6382 #ifdef $tmp_fmt
6383 CURL_DEF_TOKEN $tmp_fmt
6384 #endif
6385
6386
6387 _ACEOF
6388 if ac_fn_c_try_cpp "$LINENO"; then :
6389
6390     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6391       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6392       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6393       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6394     if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6395       tmp_exp=""
6396     fi
6397
6398 fi
6399 rm -f conftest.err conftest.i conftest.$ac_ext
6400   if test -z "$tmp_exp"; then
6401     eval "$as_ac_HaveDef=no"
6402
6403   else
6404     eval "$as_ac_HaveDef=yes"
6405     eval "$as_ac_Def=\$tmp_exp"
6406
6407   fi
6408       CPPFLAGS=$OLDCPPFLAGS
6409
6410         as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6411         as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6412         if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6413           curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6414           curl_typeof_curl_off_t="$t4"
6415           curl_sizeof_curl_off_t="4"
6416         fi
6417                       fi
6418
6419 fi
6420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421   fi
6422
6423     done
6424     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6425 $as_echo "$curl_typeof_curl_off_t" >&6; }
6426   fi
6427   if test "$curl_typeof_curl_off_t" = "unknown"; then
6428     as_fn_error $? "cannot find data type for curl_off_t." "$LINENO" 5
6429   fi
6430   #
6431   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
6432 $as_echo_n "checking size of curl_off_t... " >&6; }
6433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_off_t" >&5
6434 $as_echo "$curl_sizeof_curl_off_t" >&6; }
6435   #
6436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for curl_off_t" >&5
6437 $as_echo_n "checking formatting string directive for curl_off_t... " >&6; }
6438   if test "$curl_format_curl_off_t" != "unknown"; then
6439     x_pull_headers="yes"
6440     curl_format_curl_off_t=`echo "$curl_format_curl_off_t" | "$SED" 's/["]//g'`
6441     curl_format_curl_off_tu=`echo "$curl_format_curl_off_t" | "$SED" 's/i$/u/'`
6442     curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/d$/u/'`
6443     curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/D$/U/'`
6444   else
6445     x_pull_headers="no"
6446     case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6447       long_long | __longlong | __longlong_t)
6448         curl_format_curl_off_t="lld"
6449         curl_format_curl_off_tu="llu"
6450         ;;
6451       long)
6452         curl_format_curl_off_t="ld"
6453         curl_format_curl_off_tu="lu"
6454         ;;
6455       int)
6456         curl_format_curl_off_t="d"
6457         curl_format_curl_off_tu="u"
6458         ;;
6459       __int64)
6460         curl_format_curl_off_t="I64d"
6461         curl_format_curl_off_tu="I64u"
6462         ;;
6463       __int32)
6464         curl_format_curl_off_t="I32d"
6465         curl_format_curl_off_tu="I32u"
6466         ;;
6467       __int16)
6468         curl_format_curl_off_t="I16d"
6469         curl_format_curl_off_tu="I16u"
6470         ;;
6471       *)
6472         as_fn_error $? "cannot find print format string for curl_off_t." "$LINENO" 5
6473         ;;
6474     esac
6475   fi
6476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_t\"" >&5
6477 $as_echo "\"$curl_format_curl_off_t\"" >&6; }
6478   #
6479   { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for unsigned curl_off_t" >&5
6480 $as_echo_n "checking formatting string directive for unsigned curl_off_t... " >&6; }
6481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_tu\"" >&5
6482 $as_echo "\"$curl_format_curl_off_tu\"" >&6; }
6483   #
6484
6485     { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for curl_off_t" >&5
6486 $as_echo_n "checking constant suffix string for curl_off_t... " >&6; }
6487   #
6488   curl_suffix_curl_off_t="unknown"
6489   curl_suffix_curl_off_tu="unknown"
6490   #
6491   case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6492     long_long | __longlong | __longlong_t)
6493       tst_suffixes="LL::"
6494       ;;
6495     long)
6496       tst_suffixes="L::"
6497       ;;
6498     int)
6499       tst_suffixes="::"
6500       ;;
6501     __int64 | int64_t)
6502       tst_suffixes="LL:i64::"
6503       ;;
6504     __int32 | int32_t)
6505       tst_suffixes="L:i32::"
6506       ;;
6507     __int16 | int16_t)
6508       tst_suffixes="L:i16::"
6509       ;;
6510     *)
6511       as_fn_error $? "unexpected data type $curl_typeof_curl_off_t" "$LINENO" 5
6512       ;;
6513   esac
6514   #
6515   old_IFS=$IFS; IFS=':'
6516   for tmp_ssuf in $tst_suffixes ; do
6517     IFS=$old_IFS
6518     if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6519       case $tmp_ssuf in
6520         i64 | i32 | i16)
6521           tmp_usuf="u$tmp_ssuf"
6522           ;;
6523         LL | L)
6524           tmp_usuf="U$tmp_ssuf"
6525           ;;
6526         *)
6527           tmp_usuf=""
6528           ;;
6529       esac
6530       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531 /* end confdefs.h.  */
6532
6533
6534           $curl_includes_inttypes
6535           typedef $curl_typeof_curl_off_t new_t;
6536
6537 int main (void)
6538 {
6539
6540           new_t s1;
6541           new_t s2;
6542           s1 = -10$tmp_ssuf ;
6543           s2 =  20$tmp_ssuf ;
6544           if(s1 > s2)
6545             return 1;
6546
6547  ;
6548  return 0;
6549 }
6550
6551 _ACEOF
6552 if ac_fn_c_try_compile "$LINENO"; then :
6553
6554         curl_suffix_curl_off_t="$tmp_ssuf"
6555         curl_suffix_curl_off_tu="$tmp_usuf"
6556
6557 fi
6558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6559     fi
6560   done
6561   IFS=$old_IFS
6562   #
6563   if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6564     as_fn_error $? "cannot find constant suffix string for curl_off_t." "$LINENO" 5
6565   else
6566     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_t" >&5
6567 $as_echo "$curl_suffix_curl_off_t" >&6; }
6568     { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for unsigned curl_off_t" >&5
6569 $as_echo_n "checking constant suffix string for unsigned curl_off_t... " >&6; }
6570     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_tu" >&5
6571 $as_echo "$curl_suffix_curl_off_tu" >&6; }
6572   fi
6573   #
6574
6575   #
6576   if test "$x_pull_headers" = "yes"; then
6577     if test "x$ac_cv_header_sys_types_h" = "xyes"; then
6578
6579 cat >>confdefs.h <<_EOF
6580 #define CURL_PULL_SYS_TYPES_H 1
6581 _EOF
6582
6583     fi
6584     if test "x$ac_cv_header_stdint_h" = "xyes"; then
6585
6586 cat >>confdefs.h <<_EOF
6587 #define CURL_PULL_STDINT_H 1
6588 _EOF
6589
6590     fi
6591     if test "x$ac_cv_header_inttypes_h" = "xyes"; then
6592
6593 cat >>confdefs.h <<_EOF
6594 #define CURL_PULL_INTTYPES_H 1
6595 _EOF
6596
6597     fi
6598   fi
6599   #
6600
6601 cat >>confdefs.h <<_EOF
6602 #define CURL_TYPEOF_CURL_OFF_T $curl_typeof_curl_off_t
6603 _EOF
6604
6605
6606 cat >>confdefs.h <<_EOF
6607 #define CURL_FORMAT_CURL_OFF_T "$curl_format_curl_off_t"
6608 _EOF
6609
6610
6611 cat >>confdefs.h <<_EOF
6612 #define CURL_FORMAT_CURL_OFF_TU "$curl_format_curl_off_tu"
6613 _EOF
6614
6615
6616 cat >>confdefs.h <<_EOF
6617 #define CURL_FORMAT_OFF_T "%$curl_format_curl_off_t"
6618 _EOF
6619
6620
6621 cat >>confdefs.h <<_EOF
6622 #define CURL_SIZEOF_CURL_OFF_T $curl_sizeof_curl_off_t
6623 _EOF
6624
6625
6626 cat >>confdefs.h <<_EOF
6627 #define CURL_SUFFIX_CURL_OFF_T $curl_suffix_curl_off_t
6628 _EOF
6629
6630
6631 cat >>confdefs.h <<_EOF
6632 #define CURL_SUFFIX_CURL_OFF_TU $curl_suffix_curl_off_tu
6633 _EOF
6634
6635   #
6636
6637
6638
6639
6640         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6641 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h.  */
6644
6645 #ifdef _AIX
6646    yes_this_is_aix
6647 #endif
6648
6649 _ACEOF
6650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6651   $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6652
6653     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6654 $as_echo "yes" >&6; }
6655     $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6656
6657
6658 else
6659
6660     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6661 $as_echo "no" >&6; }
6662
6663 fi
6664 rm -f conftest*
6665
6666
6667
6668
6669     #
6670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6671 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6673 /* end confdefs.h.  */
6674
6675
6676
6677 int main (void)
6678 {
6679
6680 #ifdef _THREAD_SAFE
6681       int dummy=1;
6682 #else
6683       force compilation error
6684 #endif
6685
6686  ;
6687  return 0;
6688 }
6689
6690 _ACEOF
6691 if ac_fn_c_try_compile "$LINENO"; then :
6692
6693     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6694 $as_echo "yes" >&6; }
6695     tmp_thread_safe_initially_defined="yes"
6696
6697 else
6698
6699     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 $as_echo "no" >&6; }
6701     tmp_thread_safe_initially_defined="no"
6702
6703 fi
6704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6705   #
6706   if test "$tmp_thread_safe_initially_defined" = "no"; then
6707     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6708 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6709
6710   case $host_os in
6711     aix[123].* | aix4.[012].*)
6712             tmp_need_thread_safe="no"
6713       ;;
6714     aix*)
6715             tmp_need_thread_safe="yes"
6716       ;;
6717     *)
6718       tmp_need_thread_safe="no"
6719       ;;
6720   esac
6721
6722     if test "$tmp_need_thread_safe" = "yes"; then
6723       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6724 $as_echo "yes" >&6; }
6725     else
6726       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6727 $as_echo "no" >&6; }
6728     fi
6729   fi
6730   #
6731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6732 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6733   if test "$tmp_thread_safe_initially_defined" = "yes" ||
6734     test "$tmp_need_thread_safe" = "yes"; then
6735
6736
6737 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6738
6739 cat >>confdefs.h <<_EOF
6740 #ifndef _THREAD_SAFE
6741 #  define _THREAD_SAFE
6742 #endif
6743 _EOF
6744
6745     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6746 $as_echo "yes" >&6; }
6747   else
6748     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6750   fi
6751   #
6752
6753
6754     #
6755   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6756 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h.  */
6759
6760
6761
6762 int main (void)
6763 {
6764
6765 #ifdef _REENTRANT
6766       int dummy=1;
6767 #else
6768       force compilation error
6769 #endif
6770
6771  ;
6772  return 0;
6773 }
6774
6775 _ACEOF
6776 if ac_fn_c_try_compile "$LINENO"; then :
6777
6778     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6779 $as_echo "yes" >&6; }
6780     tmp_reentrant_initially_defined="yes"
6781
6782 else
6783
6784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785 $as_echo "no" >&6; }
6786     tmp_reentrant_initially_defined="no"
6787
6788 fi
6789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6790   #
6791   if test "$tmp_reentrant_initially_defined" = "no"; then
6792     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6793 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6794
6795   case $host_os in
6796     solaris*)
6797       tmp_need_reentrant="yes"
6798       ;;
6799     *)
6800       tmp_need_reentrant="no"
6801       ;;
6802   esac
6803
6804     if test "$tmp_need_reentrant" = "no"; then
6805
6806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807 /* end confdefs.h.  */
6808
6809
6810 #include <errno.h>
6811
6812 int main (void)
6813 {
6814
6815       if(0 != errno)
6816         return 1;
6817
6818  ;
6819  return 0;
6820 }
6821
6822 _ACEOF
6823 if ac_fn_c_try_compile "$LINENO"; then :
6824
6825     tmp_errno="yes"
6826
6827 else
6828
6829     tmp_errno="no"
6830
6831 fi
6832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6833   if test "$tmp_errno" = "yes"; then
6834     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835 /* end confdefs.h.  */
6836
6837
6838 #include <errno.h>
6839
6840 int main (void)
6841 {
6842
6843 #ifdef errno
6844         int dummy=1;
6845 #else
6846         force compilation error
6847 #endif
6848
6849  ;
6850  return 0;
6851 }
6852
6853 _ACEOF
6854 if ac_fn_c_try_compile "$LINENO"; then :
6855
6856       tmp_errno="errno_macro_defined"
6857
6858 else
6859
6860       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6861 /* end confdefs.h.  */
6862
6863
6864 #define _REENTRANT
6865 #include <errno.h>
6866
6867 int main (void)
6868 {
6869
6870 #ifdef errno
6871           int dummy=1;
6872 #else
6873           force compilation error
6874 #endif
6875
6876  ;
6877  return 0;
6878 }
6879
6880 _ACEOF
6881 if ac_fn_c_try_compile "$LINENO"; then :
6882
6883         tmp_errno="errno_macro_needs_reentrant"
6884         tmp_need_reentrant="yes"
6885
6886 fi
6887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6888
6889 fi
6890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6891   fi
6892
6893     fi
6894     if test "$tmp_need_reentrant" = "no"; then
6895
6896   if test "$tmp_need_reentrant" = "no"; then
6897
6898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6899 /* end confdefs.h.  */
6900
6901
6902 #define gmtime_r innocuous_gmtime_r
6903 #ifdef __STDC__
6904 # include <limits.h>
6905 #else
6906 # include <assert.h>
6907 #endif
6908 #undef gmtime_r
6909 #ifdef __cplusplus
6910 extern "C"
6911 #endif
6912 char gmtime_r ();
6913 #if defined __stub_gmtime_r || defined __stub___gmtime_r
6914 choke me
6915 #endif
6916
6917 int main (void)
6918 {
6919 return gmtime_r ();
6920  ;
6921  return 0;
6922 }
6923
6924 _ACEOF
6925 if ac_fn_c_try_link "$LINENO"; then :
6926
6927     tmp_gmtime_r="yes"
6928
6929 else
6930
6931     tmp_gmtime_r="no"
6932
6933 fi
6934 rm -f core conftest.err conftest.$ac_objext \
6935     conftest$ac_exeext conftest.$ac_ext
6936   if test "$tmp_gmtime_r" = "yes"; then
6937     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6938 /* end confdefs.h.  */
6939
6940 #include <sys/types.h>
6941 #include <time.h>
6942
6943 _ACEOF
6944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6945   $EGREP "gmtime_r" >/dev/null 2>&1; then :
6946
6947       tmp_gmtime_r="proto_declared"
6948
6949 else
6950
6951       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6952 /* end confdefs.h.  */
6953
6954 #define _REENTRANT
6955 #include <sys/types.h>
6956 #include <time.h>
6957
6958 _ACEOF
6959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6960   $EGREP "gmtime_r" >/dev/null 2>&1; then :
6961
6962         tmp_gmtime_r="proto_needs_reentrant"
6963         tmp_need_reentrant="yes"
6964
6965 fi
6966 rm -f conftest*
6967
6968
6969 fi
6970 rm -f conftest*
6971
6972   fi
6973
6974   fi
6975   if test "$tmp_need_reentrant" = "no"; then
6976
6977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978 /* end confdefs.h.  */
6979
6980
6981 #define localtime_r innocuous_localtime_r
6982 #ifdef __STDC__
6983 # include <limits.h>
6984 #else
6985 # include <assert.h>
6986 #endif
6987 #undef localtime_r
6988 #ifdef __cplusplus
6989 extern "C"
6990 #endif
6991 char localtime_r ();
6992 #if defined __stub_localtime_r || defined __stub___localtime_r
6993 choke me
6994 #endif
6995
6996 int main (void)
6997 {
6998 return localtime_r ();
6999  ;
7000  return 0;
7001 }
7002
7003 _ACEOF
7004 if ac_fn_c_try_link "$LINENO"; then :
7005
7006     tmp_localtime_r="yes"
7007
7008 else
7009
7010     tmp_localtime_r="no"
7011
7012 fi
7013 rm -f core conftest.err conftest.$ac_objext \
7014     conftest$ac_exeext conftest.$ac_ext
7015   if test "$tmp_localtime_r" = "yes"; then
7016     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h.  */
7018
7019 #include <sys/types.h>
7020 #include <time.h>
7021
7022 _ACEOF
7023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7024   $EGREP "localtime_r" >/dev/null 2>&1; then :
7025
7026       tmp_localtime_r="proto_declared"
7027
7028 else
7029
7030       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031 /* end confdefs.h.  */
7032
7033 #define _REENTRANT
7034 #include <sys/types.h>
7035 #include <time.h>
7036
7037 _ACEOF
7038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7039   $EGREP "localtime_r" >/dev/null 2>&1; then :
7040
7041         tmp_localtime_r="proto_needs_reentrant"
7042         tmp_need_reentrant="yes"
7043
7044 fi
7045 rm -f conftest*
7046
7047
7048 fi
7049 rm -f conftest*
7050
7051   fi
7052
7053   fi
7054   if test "$tmp_need_reentrant" = "no"; then
7055
7056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h.  */
7058
7059
7060 #define strerror_r innocuous_strerror_r
7061 #ifdef __STDC__
7062 # include <limits.h>
7063 #else
7064 # include <assert.h>
7065 #endif
7066 #undef strerror_r
7067 #ifdef __cplusplus
7068 extern "C"
7069 #endif
7070 char strerror_r ();
7071 #if defined __stub_strerror_r || defined __stub___strerror_r
7072 choke me
7073 #endif
7074
7075 int main (void)
7076 {
7077 return strerror_r ();
7078  ;
7079  return 0;
7080 }
7081
7082 _ACEOF
7083 if ac_fn_c_try_link "$LINENO"; then :
7084
7085     tmp_strerror_r="yes"
7086
7087 else
7088
7089     tmp_strerror_r="no"
7090
7091 fi
7092 rm -f core conftest.err conftest.$ac_objext \
7093     conftest$ac_exeext conftest.$ac_ext
7094   if test "$tmp_strerror_r" = "yes"; then
7095     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h.  */
7097
7098 #include <sys/types.h>
7099 #include <string.h>
7100
7101 _ACEOF
7102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7103   $EGREP "strerror_r" >/dev/null 2>&1; then :
7104
7105       tmp_strerror_r="proto_declared"
7106
7107 else
7108
7109       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110 /* end confdefs.h.  */
7111
7112 #define _REENTRANT
7113 #include <sys/types.h>
7114 #include <string.h>
7115
7116 _ACEOF
7117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7118   $EGREP "strerror_r" >/dev/null 2>&1; then :
7119
7120         tmp_strerror_r="proto_needs_reentrant"
7121         tmp_need_reentrant="yes"
7122
7123 fi
7124 rm -f conftest*
7125
7126
7127 fi
7128 rm -f conftest*
7129
7130   fi
7131
7132   fi
7133   if test "$tmp_need_reentrant" = "no"; then
7134
7135   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136 /* end confdefs.h.  */
7137
7138
7139 #define strtok_r innocuous_strtok_r
7140 #ifdef __STDC__
7141 # include <limits.h>
7142 #else
7143 # include <assert.h>
7144 #endif
7145 #undef strtok_r
7146 #ifdef __cplusplus
7147 extern "C"
7148 #endif
7149 char strtok_r ();
7150 #if defined __stub_strtok_r || defined __stub___strtok_r
7151 choke me
7152 #endif
7153
7154 int main (void)
7155 {
7156 return strtok_r ();
7157  ;
7158  return 0;
7159 }
7160
7161 _ACEOF
7162 if ac_fn_c_try_link "$LINENO"; then :
7163
7164     tmp_strtok_r="yes"
7165
7166 else
7167
7168     tmp_strtok_r="no"
7169
7170 fi
7171 rm -f core conftest.err conftest.$ac_objext \
7172     conftest$ac_exeext conftest.$ac_ext
7173   if test "$tmp_strtok_r" = "yes"; then
7174     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h.  */
7176
7177 #include <sys/types.h>
7178 #include <string.h>
7179
7180 _ACEOF
7181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7182   $EGREP "strtok_r" >/dev/null 2>&1; then :
7183
7184       tmp_strtok_r="proto_declared"
7185
7186 else
7187
7188       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189 /* end confdefs.h.  */
7190
7191 #define _REENTRANT
7192 #include <sys/types.h>
7193 #include <string.h>
7194
7195 _ACEOF
7196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7197   $EGREP "strtok_r" >/dev/null 2>&1; then :
7198
7199         tmp_strtok_r="proto_needs_reentrant"
7200         tmp_need_reentrant="yes"
7201
7202 fi
7203 rm -f conftest*
7204
7205
7206 fi
7207 rm -f conftest*
7208
7209   fi
7210
7211   fi
7212   if test "$tmp_need_reentrant" = "no"; then
7213
7214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h.  */
7216
7217
7218 #define inet_ntoa_r innocuous_inet_ntoa_r
7219 #ifdef __STDC__
7220 # include <limits.h>
7221 #else
7222 # include <assert.h>
7223 #endif
7224 #undef inet_ntoa_r
7225 #ifdef __cplusplus
7226 extern "C"
7227 #endif
7228 char inet_ntoa_r ();
7229 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
7230 choke me
7231 #endif
7232
7233 int main (void)
7234 {
7235 return inet_ntoa_r ();
7236  ;
7237  return 0;
7238 }
7239
7240 _ACEOF
7241 if ac_fn_c_try_link "$LINENO"; then :
7242
7243     tmp_inet_ntoa_r="yes"
7244
7245 else
7246
7247     tmp_inet_ntoa_r="no"
7248
7249 fi
7250 rm -f core conftest.err conftest.$ac_objext \
7251     conftest$ac_exeext conftest.$ac_ext
7252   if test "$tmp_inet_ntoa_r" = "yes"; then
7253     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254 /* end confdefs.h.  */
7255
7256 #include <sys/types.h>
7257 #include <sys/socket.h>
7258 #include <netinet/in.h>
7259 #include <arpa/inet.h>
7260
7261 _ACEOF
7262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7263   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7264
7265       tmp_inet_ntoa_r="proto_declared"
7266
7267 else
7268
7269       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270 /* end confdefs.h.  */
7271
7272 #define _REENTRANT
7273 #include <sys/types.h>
7274 #include <sys/socket.h>
7275 #include <netinet/in.h>
7276 #include <arpa/inet.h>
7277
7278 _ACEOF
7279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7280   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7281
7282         tmp_inet_ntoa_r="proto_needs_reentrant"
7283         tmp_need_reentrant="yes"
7284
7285 fi
7286 rm -f conftest*
7287
7288
7289 fi
7290 rm -f conftest*
7291
7292   fi
7293
7294   fi
7295   if test "$tmp_need_reentrant" = "no"; then
7296
7297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298 /* end confdefs.h.  */
7299
7300
7301 #define gethostbyaddr_r innocuous_gethostbyaddr_r
7302 #ifdef __STDC__
7303 # include <limits.h>
7304 #else
7305 # include <assert.h>
7306 #endif
7307 #undef gethostbyaddr_r
7308 #ifdef __cplusplus
7309 extern "C"
7310 #endif
7311 char gethostbyaddr_r ();
7312 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
7313 choke me
7314 #endif
7315
7316 int main (void)
7317 {
7318 return gethostbyaddr_r ();
7319  ;
7320  return 0;
7321 }
7322
7323 _ACEOF
7324 if ac_fn_c_try_link "$LINENO"; then :
7325
7326     tmp_gethostbyaddr_r="yes"
7327
7328 else
7329
7330     tmp_gethostbyaddr_r="no"
7331
7332 fi
7333 rm -f core conftest.err conftest.$ac_objext \
7334     conftest$ac_exeext conftest.$ac_ext
7335   if test "$tmp_gethostbyaddr_r" = "yes"; then
7336     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7337 /* end confdefs.h.  */
7338
7339 #include <sys/types.h>
7340 #include <netdb.h>
7341
7342 _ACEOF
7343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7344   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7345
7346       tmp_gethostbyaddr_r="proto_declared"
7347
7348 else
7349
7350       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7351 /* end confdefs.h.  */
7352
7353 #define _REENTRANT
7354 #include <sys/types.h>
7355 #include <netdb.h>
7356
7357 _ACEOF
7358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7359   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7360
7361         tmp_gethostbyaddr_r="proto_needs_reentrant"
7362         tmp_need_reentrant="yes"
7363
7364 fi
7365 rm -f conftest*
7366
7367
7368 fi
7369 rm -f conftest*
7370
7371   fi
7372
7373   fi
7374   if test "$tmp_need_reentrant" = "no"; then
7375
7376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7377 /* end confdefs.h.  */
7378
7379
7380 #define gethostbyname_r innocuous_gethostbyname_r
7381 #ifdef __STDC__
7382 # include <limits.h>
7383 #else
7384 # include <assert.h>
7385 #endif
7386 #undef gethostbyname_r
7387 #ifdef __cplusplus
7388 extern "C"
7389 #endif
7390 char gethostbyname_r ();
7391 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7392 choke me
7393 #endif
7394
7395 int main (void)
7396 {
7397 return gethostbyname_r ();
7398  ;
7399  return 0;
7400 }
7401
7402 _ACEOF
7403 if ac_fn_c_try_link "$LINENO"; then :
7404
7405     tmp_gethostbyname_r="yes"
7406
7407 else
7408
7409     tmp_gethostbyname_r="no"
7410
7411 fi
7412 rm -f core conftest.err conftest.$ac_objext \
7413     conftest$ac_exeext conftest.$ac_ext
7414   if test "$tmp_gethostbyname_r" = "yes"; then
7415     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7416 /* end confdefs.h.  */
7417
7418 #include <sys/types.h>
7419 #include <netdb.h>
7420
7421 _ACEOF
7422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7423   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7424
7425       tmp_gethostbyname_r="proto_declared"
7426
7427 else
7428
7429       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7430 /* end confdefs.h.  */
7431
7432 #define _REENTRANT
7433 #include <sys/types.h>
7434 #include <netdb.h>
7435
7436 _ACEOF
7437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7438   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7439
7440         tmp_gethostbyname_r="proto_needs_reentrant"
7441         tmp_need_reentrant="yes"
7442
7443 fi
7444 rm -f conftest*
7445
7446
7447 fi
7448 rm -f conftest*
7449
7450   fi
7451
7452   fi
7453   if test "$tmp_need_reentrant" = "no"; then
7454
7455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456 /* end confdefs.h.  */
7457
7458
7459 #define getprotobyname_r innocuous_getprotobyname_r
7460 #ifdef __STDC__
7461 # include <limits.h>
7462 #else
7463 # include <assert.h>
7464 #endif
7465 #undef getprotobyname_r
7466 #ifdef __cplusplus
7467 extern "C"
7468 #endif
7469 char getprotobyname_r ();
7470 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7471 choke me
7472 #endif
7473
7474 int main (void)
7475 {
7476 return getprotobyname_r ();
7477  ;
7478  return 0;
7479 }
7480
7481 _ACEOF
7482 if ac_fn_c_try_link "$LINENO"; then :
7483
7484     tmp_getprotobyname_r="yes"
7485
7486 else
7487
7488     tmp_getprotobyname_r="no"
7489
7490 fi
7491 rm -f core conftest.err conftest.$ac_objext \
7492     conftest$ac_exeext conftest.$ac_ext
7493   if test "$tmp_getprotobyname_r" = "yes"; then
7494     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495 /* end confdefs.h.  */
7496
7497 #include <sys/types.h>
7498 #include <netdb.h>
7499
7500 _ACEOF
7501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7502   $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7503
7504       tmp_getprotobyname_r="proto_declared"
7505
7506 else
7507
7508       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7509 /* end confdefs.h.  */
7510
7511 #define _REENTRANT
7512 #include <sys/types.h>
7513 #include <netdb.h>
7514
7515 _ACEOF
7516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7517   $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7518
7519         tmp_getprotobyname_r="proto_needs_reentrant"
7520         tmp_need_reentrant="yes"
7521
7522 fi
7523 rm -f conftest*
7524
7525
7526 fi
7527 rm -f conftest*
7528
7529   fi
7530
7531   fi
7532   if test "$tmp_need_reentrant" = "no"; then
7533
7534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535 /* end confdefs.h.  */
7536
7537
7538 #define getservbyport_r innocuous_getservbyport_r
7539 #ifdef __STDC__
7540 # include <limits.h>
7541 #else
7542 # include <assert.h>
7543 #endif
7544 #undef getservbyport_r
7545 #ifdef __cplusplus
7546 extern "C"
7547 #endif
7548 char getservbyport_r ();
7549 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7550 choke me
7551 #endif
7552
7553 int main (void)
7554 {
7555 return getservbyport_r ();
7556  ;
7557  return 0;
7558 }
7559
7560 _ACEOF
7561 if ac_fn_c_try_link "$LINENO"; then :
7562
7563     tmp_getservbyport_r="yes"
7564
7565 else
7566
7567     tmp_getservbyport_r="no"
7568
7569 fi
7570 rm -f core conftest.err conftest.$ac_objext \
7571     conftest$ac_exeext conftest.$ac_ext
7572   if test "$tmp_getservbyport_r" = "yes"; then
7573     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h.  */
7575
7576 #include <sys/types.h>
7577 #include <netdb.h>
7578
7579 _ACEOF
7580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7581   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7582
7583       tmp_getservbyport_r="proto_declared"
7584
7585 else
7586
7587       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7588 /* end confdefs.h.  */
7589
7590 #define _REENTRANT
7591 #include <sys/types.h>
7592 #include <netdb.h>
7593
7594 _ACEOF
7595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7596   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7597
7598         tmp_getservbyport_r="proto_needs_reentrant"
7599         tmp_need_reentrant="yes"
7600
7601 fi
7602 rm -f conftest*
7603
7604
7605 fi
7606 rm -f conftest*
7607
7608   fi
7609
7610   fi
7611
7612     fi
7613     if test "$tmp_need_reentrant" = "yes"; then
7614       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7615 $as_echo "yes" >&6; }
7616     else
7617       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7619     fi
7620   fi
7621   #
7622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7623 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7624   if test "$tmp_reentrant_initially_defined" = "yes" ||
7625     test "$tmp_need_reentrant" = "yes"; then
7626
7627
7628 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7629
7630 cat >>confdefs.h <<_EOF
7631 #ifndef _REENTRANT
7632 #  define _REENTRANT
7633 #endif
7634 _EOF
7635
7636     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7637 $as_echo "yes" >&6; }
7638   else
7639     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640 $as_echo "no" >&6; }
7641   fi
7642   #
7643
7644
7645 # Check whether --enable-largefile was given.
7646 if test "${enable_largefile+set}" = set; then :
7647   enableval=$enable_largefile;
7648 fi
7649
7650 if test "$enable_largefile" != no; then
7651
7652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7653 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7654 if ${ac_cv_sys_largefile_CC+:} false; then :
7655   $as_echo_n "(cached) " >&6
7656 else
7657   ac_cv_sys_largefile_CC=no
7658      if test "$GCC" != yes; then
7659        ac_save_CC=$CC
7660        while :; do
7661          # IRIX 6.2 and later do not support large files by default,
7662          # so use the C compiler's -n32 option if that helps.
7663          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664 /* end confdefs.h.  */
7665 #include <sys/types.h>
7666  /* Check that off_t can represent 2**63 - 1 correctly.
7667     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7668     since some C++ compilers masquerading as C compilers
7669     incorrectly reject 9223372036854775807.  */
7670 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7671   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7672                        && LARGE_OFF_T % 2147483647 == 1)
7673                       ? 1 : -1];
7674 int main (void)
7675 {
7676
7677  ;
7678  return 0;
7679 }
7680 _ACEOF
7681          if ac_fn_c_try_compile "$LINENO"; then :
7682   break
7683 fi
7684 rm -f core conftest.err conftest.$ac_objext
7685          CC="$CC -n32"
7686          if ac_fn_c_try_compile "$LINENO"; then :
7687   ac_cv_sys_largefile_CC=' -n32'; break
7688 fi
7689 rm -f core conftest.err conftest.$ac_objext
7690          break
7691        done
7692        CC=$ac_save_CC
7693        rm -f conftest.$ac_ext
7694     fi
7695 fi
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7697 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7698   if test "$ac_cv_sys_largefile_CC" != no; then
7699     CC=$CC$ac_cv_sys_largefile_CC
7700   fi
7701
7702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7703 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7704 if ${ac_cv_sys_file_offset_bits+:} false; then :
7705   $as_echo_n "(cached) " >&6
7706 else
7707   while :; do
7708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709 /* end confdefs.h.  */
7710 #include <sys/types.h>
7711  /* Check that off_t can represent 2**63 - 1 correctly.
7712     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7713     since some C++ compilers masquerading as C compilers
7714     incorrectly reject 9223372036854775807.  */
7715 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7716   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7717                        && LARGE_OFF_T % 2147483647 == 1)
7718                       ? 1 : -1];
7719 int main (void)
7720 {
7721
7722  ;
7723  return 0;
7724 }
7725 _ACEOF
7726 if ac_fn_c_try_compile "$LINENO"; then :
7727   ac_cv_sys_file_offset_bits=no; break
7728 fi
7729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7731 /* end confdefs.h.  */
7732 #define _FILE_OFFSET_BITS 64
7733 #include <sys/types.h>
7734  /* Check that off_t can represent 2**63 - 1 correctly.
7735     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7736     since some C++ compilers masquerading as C compilers
7737     incorrectly reject 9223372036854775807.  */
7738 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7739   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7740                        && LARGE_OFF_T % 2147483647 == 1)
7741                       ? 1 : -1];
7742 int main (void)
7743 {
7744
7745  ;
7746  return 0;
7747 }
7748 _ACEOF
7749 if ac_fn_c_try_compile "$LINENO"; then :
7750   ac_cv_sys_file_offset_bits=64; break
7751 fi
7752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7753   ac_cv_sys_file_offset_bits=unknown
7754   break
7755 done
7756 fi
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7758 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7759 case $ac_cv_sys_file_offset_bits in #(
7760   no | unknown) ;;
7761   *)
7762 cat >>confdefs.h <<_ACEOF
7763 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7764 _ACEOF
7765 ;;
7766 esac
7767 rm -rf conftest*
7768   if test $ac_cv_sys_file_offset_bits = unknown; then
7769     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7770 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7771 if ${ac_cv_sys_large_files+:} false; then :
7772   $as_echo_n "(cached) " >&6
7773 else
7774   while :; do
7775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7776 /* end confdefs.h.  */
7777 #include <sys/types.h>
7778  /* Check that off_t can represent 2**63 - 1 correctly.
7779     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7780     since some C++ compilers masquerading as C compilers
7781     incorrectly reject 9223372036854775807.  */
7782 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7783   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7784                        && LARGE_OFF_T % 2147483647 == 1)
7785                       ? 1 : -1];
7786 int main (void)
7787 {
7788
7789  ;
7790  return 0;
7791 }
7792 _ACEOF
7793 if ac_fn_c_try_compile "$LINENO"; then :
7794   ac_cv_sys_large_files=no; break
7795 fi
7796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7798 /* end confdefs.h.  */
7799 #define _LARGE_FILES 1
7800 #include <sys/types.h>
7801  /* Check that off_t can represent 2**63 - 1 correctly.
7802     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7803     since some C++ compilers masquerading as C compilers
7804     incorrectly reject 9223372036854775807.  */
7805 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7806   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7807                        && LARGE_OFF_T % 2147483647 == 1)
7808                       ? 1 : -1];
7809 int main (void)
7810 {
7811
7812  ;
7813  return 0;
7814 }
7815 _ACEOF
7816 if ac_fn_c_try_compile "$LINENO"; then :
7817   ac_cv_sys_large_files=1; break
7818 fi
7819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7820   ac_cv_sys_large_files=unknown
7821   break
7822 done
7823 fi
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7825 $as_echo "$ac_cv_sys_large_files" >&6; }
7826 case $ac_cv_sys_large_files in #(
7827   no | unknown) ;;
7828   *)
7829 cat >>confdefs.h <<_ACEOF
7830 #define _LARGE_FILES $ac_cv_sys_large_files
7831 _ACEOF
7832 ;;
7833 esac
7834 rm -rf conftest*
7835   fi
7836
7837
7838 fi
7839
7840
7841 case `pwd` in
7842   *\ * | *\     *)
7843     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7844 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7845 esac
7846
7847
7848
7849 macro_version='2.4.6'
7850 macro_revision='2.4.6'
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864 ltmain=$ac_aux_dir/ltmain.sh
7865
7866 # Backslashify metacharacters that are still active within
7867 # double-quoted strings.
7868 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7869
7870 # Same as above, but do not quote variable references.
7871 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7872
7873 # Sed substitution to delay expansion of an escaped shell variable in a
7874 # double_quote_subst'ed string.
7875 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7876
7877 # Sed substitution to delay expansion of an escaped single quote.
7878 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7879
7880 # Sed substitution to avoid accidental globbing in evaled expressions
7881 no_glob_subst='s/\*/\\\*/g'
7882
7883 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7884 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7885 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7886
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7888 $as_echo_n "checking how to print strings... " >&6; }
7889 # Test print first, because it will be a builtin if present.
7890 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7891    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7892   ECHO='print -r --'
7893 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7894   ECHO='printf %s\n'
7895 else
7896   # Use this function as a fallback that always works.
7897   func_fallback_echo ()
7898   {
7899     eval 'cat <<_LTECHO_EOF
7900 $1
7901 _LTECHO_EOF'
7902   }
7903   ECHO='func_fallback_echo'
7904 fi
7905
7906 # func_echo_all arg...
7907 # Invoke $ECHO with all args, space-separated.
7908 func_echo_all ()
7909 {
7910     $ECHO ""
7911 }
7912
7913 case $ECHO in
7914   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7915 $as_echo "printf" >&6; } ;;
7916   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7917 $as_echo "print -r" >&6; } ;;
7918   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7919 $as_echo "cat" >&6; } ;;
7920 esac
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7936 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7937 if ${ac_cv_path_SED+:} false; then :
7938   $as_echo_n "(cached) " >&6
7939 else
7940             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7941      for ac_i in 1 2 3 4 5 6 7; do
7942        ac_script="$ac_script$as_nl$ac_script"
7943      done
7944      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7945      { ac_script=; unset ac_script;}
7946      if test -z "$SED"; then
7947   ac_path_SED_found=false
7948   # Loop through the user's path and test for each of PROGNAME-LIST
7949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950 for as_dir in $PATH
7951 do
7952   IFS=$as_save_IFS
7953   test -z "$as_dir" && as_dir=.
7954     for ac_prog in sed gsed; do
7955     for ac_exec_ext in '' $ac_executable_extensions; do
7956       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7957       as_fn_executable_p "$ac_path_SED" || continue
7958 # Check for GNU ac_path_SED and select it if it is found.
7959   # Check for GNU $ac_path_SED
7960 case `"$ac_path_SED" --version 2>&1` in
7961 *GNU*)
7962   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7963 *)
7964   ac_count=0
7965   $as_echo_n 0123456789 >"conftest.in"
7966   while :
7967   do
7968     cat "conftest.in" "conftest.in" >"conftest.tmp"
7969     mv "conftest.tmp" "conftest.in"
7970     cp "conftest.in" "conftest.nl"
7971     $as_echo '' >> "conftest.nl"
7972     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7973     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7974     as_fn_arith $ac_count + 1 && ac_count=$as_val
7975     if test $ac_count -gt ${ac_path_SED_max-0}; then
7976       # Best one so far, save it but keep looking for a better one
7977       ac_cv_path_SED="$ac_path_SED"
7978       ac_path_SED_max=$ac_count
7979     fi
7980     # 10*(2^10) chars as input seems more than enough
7981     test $ac_count -gt 10 && break
7982   done
7983   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7984 esac
7985
7986       $ac_path_SED_found && break 3
7987     done
7988   done
7989   done
7990 IFS=$as_save_IFS
7991   if test -z "$ac_cv_path_SED"; then
7992     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7993   fi
7994 else
7995   ac_cv_path_SED=$SED
7996 fi
7997
7998 fi
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8000 $as_echo "$ac_cv_path_SED" >&6; }
8001  SED="$ac_cv_path_SED"
8002   rm -f conftest.sed
8003
8004 test -z "$SED" && SED=sed
8005 Xsed="$SED -e 1s/^X//"
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8018 $as_echo_n "checking for fgrep... " >&6; }
8019 if ${ac_cv_path_FGREP+:} false; then :
8020   $as_echo_n "(cached) " >&6
8021 else
8022   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8023    then ac_cv_path_FGREP="$GREP -F"
8024    else
8025      if test -z "$FGREP"; then
8026   ac_path_FGREP_found=false
8027   # Loop through the user's path and test for each of PROGNAME-LIST
8028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8030 do
8031   IFS=$as_save_IFS
8032   test -z "$as_dir" && as_dir=.
8033     for ac_prog in fgrep; do
8034     for ac_exec_ext in '' $ac_executable_extensions; do
8035       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8036       as_fn_executable_p "$ac_path_FGREP" || continue
8037 # Check for GNU ac_path_FGREP and select it if it is found.
8038   # Check for GNU $ac_path_FGREP
8039 case `"$ac_path_FGREP" --version 2>&1` in
8040 *GNU*)
8041   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8042 *)
8043   ac_count=0
8044   $as_echo_n 0123456789 >"conftest.in"
8045   while :
8046   do
8047     cat "conftest.in" "conftest.in" >"conftest.tmp"
8048     mv "conftest.tmp" "conftest.in"
8049     cp "conftest.in" "conftest.nl"
8050     $as_echo 'FGREP' >> "conftest.nl"
8051     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8052     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8053     as_fn_arith $ac_count + 1 && ac_count=$as_val
8054     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8055       # Best one so far, save it but keep looking for a better one
8056       ac_cv_path_FGREP="$ac_path_FGREP"
8057       ac_path_FGREP_max=$ac_count
8058     fi
8059     # 10*(2^10) chars as input seems more than enough
8060     test $ac_count -gt 10 && break
8061   done
8062   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8063 esac
8064
8065       $ac_path_FGREP_found && break 3
8066     done
8067   done
8068   done
8069 IFS=$as_save_IFS
8070   if test -z "$ac_cv_path_FGREP"; then
8071     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8072   fi
8073 else
8074   ac_cv_path_FGREP=$FGREP
8075 fi
8076
8077    fi
8078 fi
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8080 $as_echo "$ac_cv_path_FGREP" >&6; }
8081  FGREP="$ac_cv_path_FGREP"
8082
8083
8084 test -z "$GREP" && GREP=grep
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104 # Check whether --with-gnu-ld was given.
8105 if test "${with_gnu_ld+set}" = set; then :
8106   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8107 else
8108   with_gnu_ld=no
8109 fi
8110
8111 ac_prog=ld
8112 if test yes = "$GCC"; then
8113   # Check if gcc -print-prog-name=ld gives a path.
8114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8115 $as_echo_n "checking for ld used by $CC... " >&6; }
8116   case $host in
8117   *-*-mingw*)
8118     # gcc leaves a trailing carriage return, which upsets mingw
8119     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8120   *)
8121     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8122   esac
8123   case $ac_prog in
8124     # Accept absolute paths.
8125     [\\/]* | ?:[\\/]*)
8126       re_direlt='/[^/][^/]*/\.\./'
8127       # Canonicalize the pathname of ld
8128       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8129       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8130         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8131       done
8132       test -z "$LD" && LD=$ac_prog
8133       ;;
8134   "")
8135     # If it fails, then pretend we aren't using GCC.
8136     ac_prog=ld
8137     ;;
8138   *)
8139     # If it is relative, then search for the first ld in PATH.
8140     with_gnu_ld=unknown
8141     ;;
8142   esac
8143 elif test yes = "$with_gnu_ld"; then
8144   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8145 $as_echo_n "checking for GNU ld... " >&6; }
8146 else
8147   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8148 $as_echo_n "checking for non-GNU ld... " >&6; }
8149 fi
8150 if ${lt_cv_path_LD+:} false; then :
8151   $as_echo_n "(cached) " >&6
8152 else
8153   if test -z "$LD"; then
8154   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8155   for ac_dir in $PATH; do
8156     IFS=$lt_save_ifs
8157     test -z "$ac_dir" && ac_dir=.
8158     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8159       lt_cv_path_LD=$ac_dir/$ac_prog
8160       # Check to see if the program is GNU ld.  I'd rather use --version,
8161       # but apparently some variants of GNU ld only accept -v.
8162       # Break only if it was the GNU/non-GNU ld that we prefer.
8163       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8164       *GNU* | *'with BFD'*)
8165         test no != "$with_gnu_ld" && break
8166         ;;
8167       *)
8168         test yes != "$with_gnu_ld" && break
8169         ;;
8170       esac
8171     fi
8172   done
8173   IFS=$lt_save_ifs
8174 else
8175   lt_cv_path_LD=$LD # Let the user override the test with a path.
8176 fi
8177 fi
8178
8179 LD=$lt_cv_path_LD
8180 if test -n "$LD"; then
8181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8182 $as_echo "$LD" >&6; }
8183 else
8184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8185 $as_echo "no" >&6; }
8186 fi
8187 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8189 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8190 if ${lt_cv_prog_gnu_ld+:} false; then :
8191   $as_echo_n "(cached) " >&6
8192 else
8193   # I'd rather use --version here, but apparently some GNU lds only accept -v.
8194 case `$LD -v 2>&1 </dev/null` in
8195 *GNU* | *'with BFD'*)
8196   lt_cv_prog_gnu_ld=yes
8197   ;;
8198 *)
8199   lt_cv_prog_gnu_ld=no
8200   ;;
8201 esac
8202 fi
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8204 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8205 with_gnu_ld=$lt_cv_prog_gnu_ld
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8216 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8217 if ${lt_cv_path_NM+:} false; then :
8218   $as_echo_n "(cached) " >&6
8219 else
8220   if test -n "$NM"; then
8221   # Let the user override the test.
8222   lt_cv_path_NM=$NM
8223 else
8224   lt_nm_to_check=${ac_tool_prefix}nm
8225   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8226     lt_nm_to_check="$lt_nm_to_check nm"
8227   fi
8228   for lt_tmp_nm in $lt_nm_to_check; do
8229     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8230     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8231       IFS=$lt_save_ifs
8232       test -z "$ac_dir" && ac_dir=.
8233       tmp_nm=$ac_dir/$lt_tmp_nm
8234       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8235         # Check to see if the nm accepts a BSD-compat flag.
8236         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8237         #   nm: unknown option "B" ignored
8238         # Tru64's nm complains that /dev/null is an invalid object file
8239         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8240         case $build_os in
8241         mingw*) lt_bad_file=conftest.nm/nofile ;;
8242         *) lt_bad_file=/dev/null ;;
8243         esac
8244         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8245         *$lt_bad_file* | *'Invalid file or object type'*)
8246           lt_cv_path_NM="$tmp_nm -B"
8247           break 2
8248           ;;
8249         *)
8250           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8251           */dev/null*)
8252             lt_cv_path_NM="$tmp_nm -p"
8253             break 2
8254             ;;
8255           *)
8256             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8257             continue # so that we can try to find one that supports BSD flags
8258             ;;
8259           esac
8260           ;;
8261         esac
8262       fi
8263     done
8264     IFS=$lt_save_ifs
8265   done
8266   : ${lt_cv_path_NM=no}
8267 fi
8268 fi
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8270 $as_echo "$lt_cv_path_NM" >&6; }
8271 if test no != "$lt_cv_path_NM"; then
8272   NM=$lt_cv_path_NM
8273 else
8274   # Didn't find any BSD compatible name lister, look for dumpbin.
8275   if test -n "$DUMPBIN"; then :
8276     # Let the user override the test.
8277   else
8278     if test -n "$ac_tool_prefix"; then
8279   for ac_prog in dumpbin "link -dump"
8280   do
8281     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8284 $as_echo_n "checking for $ac_word... " >&6; }
8285 if ${ac_cv_prog_DUMPBIN+:} false; then :
8286   $as_echo_n "(cached) " >&6
8287 else
8288   if test -n "$DUMPBIN"; then
8289   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8290 else
8291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292 for as_dir in $PATH
8293 do
8294   IFS=$as_save_IFS
8295   test -z "$as_dir" && as_dir=.
8296     for ac_exec_ext in '' $ac_executable_extensions; do
8297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8298     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8300     break 2
8301   fi
8302 done
8303   done
8304 IFS=$as_save_IFS
8305
8306 fi
8307 fi
8308 DUMPBIN=$ac_cv_prog_DUMPBIN
8309 if test -n "$DUMPBIN"; then
8310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8311 $as_echo "$DUMPBIN" >&6; }
8312 else
8313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314 $as_echo "no" >&6; }
8315 fi
8316
8317
8318     test -n "$DUMPBIN" && break
8319   done
8320 fi
8321 if test -z "$DUMPBIN"; then
8322   ac_ct_DUMPBIN=$DUMPBIN
8323   for ac_prog in dumpbin "link -dump"
8324 do
8325   # Extract the first word of "$ac_prog", so it can be a program name with args.
8326 set dummy $ac_prog; ac_word=$2
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8328 $as_echo_n "checking for $ac_word... " >&6; }
8329 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8330   $as_echo_n "(cached) " >&6
8331 else
8332   if test -n "$ac_ct_DUMPBIN"; then
8333   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8334 else
8335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336 for as_dir in $PATH
8337 do
8338   IFS=$as_save_IFS
8339   test -z "$as_dir" && as_dir=.
8340     for ac_exec_ext in '' $ac_executable_extensions; do
8341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8342     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8344     break 2
8345   fi
8346 done
8347   done
8348 IFS=$as_save_IFS
8349
8350 fi
8351 fi
8352 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8353 if test -n "$ac_ct_DUMPBIN"; then
8354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8355 $as_echo "$ac_ct_DUMPBIN" >&6; }
8356 else
8357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358 $as_echo "no" >&6; }
8359 fi
8360
8361
8362   test -n "$ac_ct_DUMPBIN" && break
8363 done
8364
8365   if test "x$ac_ct_DUMPBIN" = x; then
8366     DUMPBIN=":"
8367   else
8368     case $cross_compiling:$ac_tool_warned in
8369 yes:)
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8372 ac_tool_warned=yes ;;
8373 esac
8374     DUMPBIN=$ac_ct_DUMPBIN
8375   fi
8376 fi
8377
8378     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8379     *COFF*)
8380       DUMPBIN="$DUMPBIN -symbols -headers"
8381       ;;
8382     *)
8383       DUMPBIN=:
8384       ;;
8385     esac
8386   fi
8387
8388   if test : != "$DUMPBIN"; then
8389     NM=$DUMPBIN
8390   fi
8391 fi
8392 test -z "$NM" && NM=nm
8393
8394
8395
8396
8397
8398
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8400 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8401 if ${lt_cv_nm_interface+:} false; then :
8402   $as_echo_n "(cached) " >&6
8403 else
8404   lt_cv_nm_interface="BSD nm"
8405   echo "int some_variable = 0;" > conftest.$ac_ext
8406   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8407   (eval "$ac_compile" 2>conftest.err)
8408   cat conftest.err >&5
8409   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8410   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8411   cat conftest.err >&5
8412   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8413   cat conftest.out >&5
8414   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8415     lt_cv_nm_interface="MS dumpbin"
8416   fi
8417   rm -f conftest*
8418 fi
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8420 $as_echo "$lt_cv_nm_interface" >&6; }
8421
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8423 $as_echo_n "checking whether ln -s works... " >&6; }
8424 LN_S=$as_ln_s
8425 if test "$LN_S" = "ln -s"; then
8426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8427 $as_echo "yes" >&6; }
8428 else
8429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8430 $as_echo "no, using $LN_S" >&6; }
8431 fi
8432
8433 # find the maximum length of command line arguments
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8435 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8436 if ${lt_cv_sys_max_cmd_len+:} false; then :
8437   $as_echo_n "(cached) " >&6
8438 else
8439     i=0
8440   teststring=ABCD
8441
8442   case $build_os in
8443   msdosdjgpp*)
8444     # On DJGPP, this test can blow up pretty badly due to problems in libc
8445     # (any single argument exceeding 2000 bytes causes a buffer overrun
8446     # during glob expansion).  Even if it were fixed, the result of this
8447     # check would be larger than it should be.
8448     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8449     ;;
8450
8451   gnu*)
8452     # Under GNU Hurd, this test is not required because there is
8453     # no limit to the length of command line arguments.
8454     # Libtool will interpret -1 as no limit whatsoever
8455     lt_cv_sys_max_cmd_len=-1;
8456     ;;
8457
8458   cygwin* | mingw* | cegcc*)
8459     # On Win9x/ME, this test blows up -- it succeeds, but takes
8460     # about 5 minutes as the teststring grows exponentially.
8461     # Worse, since 9x/ME are not pre-emptively multitasking,
8462     # you end up with a "frozen" computer, even though with patience
8463     # the test eventually succeeds (with a max line length of 256k).
8464     # Instead, let's just punt: use the minimum linelength reported by
8465     # all of the supported platforms: 8192 (on NT/2K/XP).
8466     lt_cv_sys_max_cmd_len=8192;
8467     ;;
8468
8469   mint*)
8470     # On MiNT this can take a long time and run out of memory.
8471     lt_cv_sys_max_cmd_len=8192;
8472     ;;
8473
8474   amigaos*)
8475     # On AmigaOS with pdksh, this test takes hours, literally.
8476     # So we just punt and use a minimum line length of 8192.
8477     lt_cv_sys_max_cmd_len=8192;
8478     ;;
8479
8480   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8481     # This has been around since 386BSD, at least.  Likely further.
8482     if test -x /sbin/sysctl; then
8483       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8484     elif test -x /usr/sbin/sysctl; then
8485       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8486     else
8487       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8488     fi
8489     # And add a safety zone
8490     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8491     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8492     ;;
8493
8494   interix*)
8495     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8496     lt_cv_sys_max_cmd_len=196608
8497     ;;
8498
8499   os2*)
8500     # The test takes a long time on OS/2.
8501     lt_cv_sys_max_cmd_len=8192
8502     ;;
8503
8504   osf*)
8505     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8506     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8507     # nice to cause kernel panics so lets avoid the loop below.
8508     # First set a reasonable default.
8509     lt_cv_sys_max_cmd_len=16384
8510     #
8511     if test -x /sbin/sysconfig; then
8512       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8513         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8514       esac
8515     fi
8516     ;;
8517   sco3.2v5*)
8518     lt_cv_sys_max_cmd_len=102400
8519     ;;
8520   sysv5* | sco5v6* | sysv4.2uw2*)
8521     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8522     if test -n "$kargmax"; then
8523       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
8524     else
8525       lt_cv_sys_max_cmd_len=32768
8526     fi
8527     ;;
8528   *)
8529     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8530     if test -n "$lt_cv_sys_max_cmd_len" && \
8531        test undefined != "$lt_cv_sys_max_cmd_len"; then
8532       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8533       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8534     else
8535       # Make teststring a little bigger before we do anything with it.
8536       # a 1K string should be a reasonable start.
8537       for i in 1 2 3 4 5 6 7 8; do
8538         teststring=$teststring$teststring
8539       done
8540       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8541       # If test is not a shell built-in, we'll probably end up computing a
8542       # maximum length that is only half of the actual maximum length, but
8543       # we can't tell.
8544       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8545                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8546               test 17 != "$i" # 1/2 MB should be enough
8547       do
8548         i=`expr $i + 1`
8549         teststring=$teststring$teststring
8550       done
8551       # Only check the string length outside the loop.
8552       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8553       teststring=
8554       # Add a significant safety factor because C++ compilers can tack on
8555       # massive amounts of additional arguments before passing them to the
8556       # linker.  It appears as though 1/2 is a usable value.
8557       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8558     fi
8559     ;;
8560   esac
8561
8562 fi
8563
8564 if test -n "$lt_cv_sys_max_cmd_len"; then
8565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8566 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8567 else
8568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8569 $as_echo "none" >&6; }
8570 fi
8571 max_cmd_len=$lt_cv_sys_max_cmd_len
8572
8573
8574
8575
8576
8577
8578 : ${CP="cp -f"}
8579 : ${MV="mv -f"}
8580 : ${RM="rm -f"}
8581
8582 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8583   lt_unset=unset
8584 else
8585   lt_unset=false
8586 fi
8587
8588
8589
8590
8591
8592 # test EBCDIC or ASCII
8593 case `echo X|tr X '\101'` in
8594  A) # ASCII based system
8595     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8596   lt_SP2NL='tr \040 \012'
8597   lt_NL2SP='tr \015\012 \040\040'
8598   ;;
8599  *) # EBCDIC based system
8600   lt_SP2NL='tr \100 \n'
8601   lt_NL2SP='tr \r\n \100\100'
8602   ;;
8603 esac
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8614 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8615 if ${lt_cv_to_host_file_cmd+:} false; then :
8616   $as_echo_n "(cached) " >&6
8617 else
8618   case $host in
8619   *-*-mingw* )
8620     case $build in
8621       *-*-mingw* ) # actually msys
8622         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8623         ;;
8624       *-*-cygwin* )
8625         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8626         ;;
8627       * ) # otherwise, assume *nix
8628         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8629         ;;
8630     esac
8631     ;;
8632   *-*-cygwin* )
8633     case $build in
8634       *-*-mingw* ) # actually msys
8635         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8636         ;;
8637       *-*-cygwin* )
8638         lt_cv_to_host_file_cmd=func_convert_file_noop
8639         ;;
8640       * ) # otherwise, assume *nix
8641         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8642         ;;
8643     esac
8644     ;;
8645   * ) # unhandled hosts (and "normal" native builds)
8646     lt_cv_to_host_file_cmd=func_convert_file_noop
8647     ;;
8648 esac
8649
8650 fi
8651
8652 to_host_file_cmd=$lt_cv_to_host_file_cmd
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8654 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8655
8656
8657
8658
8659
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8661 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8662 if ${lt_cv_to_tool_file_cmd+:} false; then :
8663   $as_echo_n "(cached) " >&6
8664 else
8665   #assume ordinary cross tools, or native build.
8666 lt_cv_to_tool_file_cmd=func_convert_file_noop
8667 case $host in
8668   *-*-mingw* )
8669     case $build in
8670       *-*-mingw* ) # actually msys
8671         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8672         ;;
8673     esac
8674     ;;
8675 esac
8676
8677 fi
8678
8679 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8681 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8682
8683
8684
8685
8686
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8688 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8689 if ${lt_cv_ld_reload_flag+:} false; then :
8690   $as_echo_n "(cached) " >&6
8691 else
8692   lt_cv_ld_reload_flag='-r'
8693 fi
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8695 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8696 reload_flag=$lt_cv_ld_reload_flag
8697 case $reload_flag in
8698 "" | " "*) ;;
8699 *) reload_flag=" $reload_flag" ;;
8700 esac
8701 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8702 case $host_os in
8703   cygwin* | mingw* | pw32* | cegcc*)
8704     if test yes != "$GCC"; then
8705       reload_cmds=false
8706     fi
8707     ;;
8708   darwin*)
8709     if test yes = "$GCC"; then
8710       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8711     else
8712       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8713     fi
8714     ;;
8715 esac
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725 if test -n "$ac_tool_prefix"; then
8726   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8727 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8729 $as_echo_n "checking for $ac_word... " >&6; }
8730 if ${ac_cv_prog_OBJDUMP+:} false; then :
8731   $as_echo_n "(cached) " >&6
8732 else
8733   if test -n "$OBJDUMP"; then
8734   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8735 else
8736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737 for as_dir in $PATH
8738 do
8739   IFS=$as_save_IFS
8740   test -z "$as_dir" && as_dir=.
8741     for ac_exec_ext in '' $ac_executable_extensions; do
8742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8743     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8745     break 2
8746   fi
8747 done
8748   done
8749 IFS=$as_save_IFS
8750
8751 fi
8752 fi
8753 OBJDUMP=$ac_cv_prog_OBJDUMP
8754 if test -n "$OBJDUMP"; then
8755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8756 $as_echo "$OBJDUMP" >&6; }
8757 else
8758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8759 $as_echo "no" >&6; }
8760 fi
8761
8762
8763 fi
8764 if test -z "$ac_cv_prog_OBJDUMP"; then
8765   ac_ct_OBJDUMP=$OBJDUMP
8766   # Extract the first word of "objdump", so it can be a program name with args.
8767 set dummy objdump; ac_word=$2
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8769 $as_echo_n "checking for $ac_word... " >&6; }
8770 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8771   $as_echo_n "(cached) " >&6
8772 else
8773   if test -n "$ac_ct_OBJDUMP"; then
8774   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8775 else
8776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8777 for as_dir in $PATH
8778 do
8779   IFS=$as_save_IFS
8780   test -z "$as_dir" && as_dir=.
8781     for ac_exec_ext in '' $ac_executable_extensions; do
8782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8783     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8785     break 2
8786   fi
8787 done
8788   done
8789 IFS=$as_save_IFS
8790
8791 fi
8792 fi
8793 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8794 if test -n "$ac_ct_OBJDUMP"; then
8795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8796 $as_echo "$ac_ct_OBJDUMP" >&6; }
8797 else
8798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8799 $as_echo "no" >&6; }
8800 fi
8801
8802   if test "x$ac_ct_OBJDUMP" = x; then
8803     OBJDUMP="false"
8804   else
8805     case $cross_compiling:$ac_tool_warned in
8806 yes:)
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8809 ac_tool_warned=yes ;;
8810 esac
8811     OBJDUMP=$ac_ct_OBJDUMP
8812   fi
8813 else
8814   OBJDUMP="$ac_cv_prog_OBJDUMP"
8815 fi
8816
8817 test -z "$OBJDUMP" && OBJDUMP=objdump
8818
8819
8820
8821
8822
8823
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8825 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8826 if ${lt_cv_deplibs_check_method+:} false; then :
8827   $as_echo_n "(cached) " >&6
8828 else
8829   lt_cv_file_magic_cmd='$MAGIC_CMD'
8830 lt_cv_file_magic_test_file=
8831 lt_cv_deplibs_check_method='unknown'
8832 # Need to set the preceding variable on all platforms that support
8833 # interlibrary dependencies.
8834 # 'none' -- dependencies not supported.
8835 # 'unknown' -- same as none, but documents that we really don't know.
8836 # 'pass_all' -- all dependencies passed with no checks.
8837 # 'test_compile' -- check by making test program.
8838 # 'file_magic [[regex]]' -- check by looking for files in library path
8839 # that responds to the $file_magic_cmd with a given extended regex.
8840 # If you have 'file' or equivalent on your system and you're not sure
8841 # whether 'pass_all' will *always* work, you probably want this one.
8842
8843 case $host_os in
8844 aix[4-9]*)
8845   lt_cv_deplibs_check_method=pass_all
8846   ;;
8847
8848 beos*)
8849   lt_cv_deplibs_check_method=pass_all
8850   ;;
8851
8852 bsdi[45]*)
8853   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8854   lt_cv_file_magic_cmd='/usr/bin/file -L'
8855   lt_cv_file_magic_test_file=/shlib/libc.so
8856   ;;
8857
8858 cygwin*)
8859   # func_win32_libid is a shell function defined in ltmain.sh
8860   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8861   lt_cv_file_magic_cmd='func_win32_libid'
8862   ;;
8863
8864 mingw* | pw32*)
8865   # Base MSYS/MinGW do not provide the 'file' command needed by
8866   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8867   # unless we find 'file', for example because we are cross-compiling.
8868   if ( file / ) >/dev/null 2>&1; then
8869     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8870     lt_cv_file_magic_cmd='func_win32_libid'
8871   else
8872     # Keep this pattern in sync with the one in func_win32_libid.
8873     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8874     lt_cv_file_magic_cmd='$OBJDUMP -f'
8875   fi
8876   ;;
8877
8878 cegcc*)
8879   # use the weaker test based on 'objdump'. See mingw*.
8880   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8881   lt_cv_file_magic_cmd='$OBJDUMP -f'
8882   ;;
8883
8884 darwin* | rhapsody*)
8885   lt_cv_deplibs_check_method=pass_all
8886   ;;
8887
8888 freebsd* | dragonfly*)
8889   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8890     case $host_cpu in
8891     i*86 )
8892       # Not sure whether the presence of OpenBSD here was a mistake.
8893       # Let's accept both of them until this is cleared up.
8894       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8895       lt_cv_file_magic_cmd=/usr/bin/file
8896       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8897       ;;
8898     esac
8899   else
8900     lt_cv_deplibs_check_method=pass_all
8901   fi
8902   ;;
8903
8904 haiku*)
8905   lt_cv_deplibs_check_method=pass_all
8906   ;;
8907
8908 hpux10.20* | hpux11*)
8909   lt_cv_file_magic_cmd=/usr/bin/file
8910   case $host_cpu in
8911   ia64*)
8912     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8913     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8914     ;;
8915   hppa*64*)
8916     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]'
8917     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8918     ;;
8919   *)
8920     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8921     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8922     ;;
8923   esac
8924   ;;
8925
8926 interix[3-9]*)
8927   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8928   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8929   ;;
8930
8931 irix5* | irix6* | nonstopux*)
8932   case $LD in
8933   *-32|*"-32 ") libmagic=32-bit;;
8934   *-n32|*"-n32 ") libmagic=N32;;
8935   *-64|*"-64 ") libmagic=64-bit;;
8936   *) libmagic=never-match;;
8937   esac
8938   lt_cv_deplibs_check_method=pass_all
8939   ;;
8940
8941 # This must be glibc/ELF.
8942 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8943   lt_cv_deplibs_check_method=pass_all
8944   ;;
8945
8946 netbsd* | netbsdelf*-gnu)
8947   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8948     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8949   else
8950     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8951   fi
8952   ;;
8953
8954 newos6*)
8955   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8956   lt_cv_file_magic_cmd=/usr/bin/file
8957   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8958   ;;
8959
8960 *nto* | *qnx*)
8961   lt_cv_deplibs_check_method=pass_all
8962   ;;
8963
8964 openbsd* | bitrig*)
8965   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8966     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8967   else
8968     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8969   fi
8970   ;;
8971
8972 osf3* | osf4* | osf5*)
8973   lt_cv_deplibs_check_method=pass_all
8974   ;;
8975
8976 rdos*)
8977   lt_cv_deplibs_check_method=pass_all
8978   ;;
8979
8980 solaris*)
8981   lt_cv_deplibs_check_method=pass_all
8982   ;;
8983
8984 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8985   lt_cv_deplibs_check_method=pass_all
8986   ;;
8987
8988 sysv4 | sysv4.3*)
8989   case $host_vendor in
8990   motorola)
8991     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]'
8992     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8993     ;;
8994   ncr)
8995     lt_cv_deplibs_check_method=pass_all
8996     ;;
8997   sequent)
8998     lt_cv_file_magic_cmd='/bin/file'
8999     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9000     ;;
9001   sni)
9002     lt_cv_file_magic_cmd='/bin/file'
9003     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9004     lt_cv_file_magic_test_file=/lib/libc.so
9005     ;;
9006   siemens)
9007     lt_cv_deplibs_check_method=pass_all
9008     ;;
9009   pc)
9010     lt_cv_deplibs_check_method=pass_all
9011     ;;
9012   esac
9013   ;;
9014
9015 tpf*)
9016   lt_cv_deplibs_check_method=pass_all
9017   ;;
9018 os2*)
9019   lt_cv_deplibs_check_method=pass_all
9020   ;;
9021 esac
9022
9023 fi
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9025 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9026
9027 file_magic_glob=
9028 want_nocaseglob=no
9029 if test "$build" = "$host"; then
9030   case $host_os in
9031   mingw* | pw32*)
9032     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9033       want_nocaseglob=yes
9034     else
9035       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9036     fi
9037     ;;
9038   esac
9039 fi
9040
9041 file_magic_cmd=$lt_cv_file_magic_cmd
9042 deplibs_check_method=$lt_cv_deplibs_check_method
9043 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066 if test -n "$ac_tool_prefix"; then
9067   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9068 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9070 $as_echo_n "checking for $ac_word... " >&6; }
9071 if ${ac_cv_prog_DLLTOOL+:} false; then :
9072   $as_echo_n "(cached) " >&6
9073 else
9074   if test -n "$DLLTOOL"; then
9075   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9076 else
9077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9078 for as_dir in $PATH
9079 do
9080   IFS=$as_save_IFS
9081   test -z "$as_dir" && as_dir=.
9082     for ac_exec_ext in '' $ac_executable_extensions; do
9083   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9084     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9086     break 2
9087   fi
9088 done
9089   done
9090 IFS=$as_save_IFS
9091
9092 fi
9093 fi
9094 DLLTOOL=$ac_cv_prog_DLLTOOL
9095 if test -n "$DLLTOOL"; then
9096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9097 $as_echo "$DLLTOOL" >&6; }
9098 else
9099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9101 fi
9102
9103
9104 fi
9105 if test -z "$ac_cv_prog_DLLTOOL"; then
9106   ac_ct_DLLTOOL=$DLLTOOL
9107   # Extract the first word of "dlltool", so it can be a program name with args.
9108 set dummy dlltool; ac_word=$2
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9110 $as_echo_n "checking for $ac_word... " >&6; }
9111 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9112   $as_echo_n "(cached) " >&6
9113 else
9114   if test -n "$ac_ct_DLLTOOL"; then
9115   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9116 else
9117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9118 for as_dir in $PATH
9119 do
9120   IFS=$as_save_IFS
9121   test -z "$as_dir" && as_dir=.
9122     for ac_exec_ext in '' $ac_executable_extensions; do
9123   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9124     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9126     break 2
9127   fi
9128 done
9129   done
9130 IFS=$as_save_IFS
9131
9132 fi
9133 fi
9134 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9135 if test -n "$ac_ct_DLLTOOL"; then
9136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9137 $as_echo "$ac_ct_DLLTOOL" >&6; }
9138 else
9139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9140 $as_echo "no" >&6; }
9141 fi
9142
9143   if test "x$ac_ct_DLLTOOL" = x; then
9144     DLLTOOL="false"
9145   else
9146     case $cross_compiling:$ac_tool_warned in
9147 yes:)
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9150 ac_tool_warned=yes ;;
9151 esac
9152     DLLTOOL=$ac_ct_DLLTOOL
9153   fi
9154 else
9155   DLLTOOL="$ac_cv_prog_DLLTOOL"
9156 fi
9157
9158 test -z "$DLLTOOL" && DLLTOOL=dlltool
9159
9160
9161
9162
9163
9164
9165
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9167 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9168 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9169   $as_echo_n "(cached) " >&6
9170 else
9171   lt_cv_sharedlib_from_linklib_cmd='unknown'
9172
9173 case $host_os in
9174 cygwin* | mingw* | pw32* | cegcc*)
9175   # two different shell functions defined in ltmain.sh;
9176   # decide which one to use based on capabilities of $DLLTOOL
9177   case `$DLLTOOL --help 2>&1` in
9178   *--identify-strict*)
9179     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9180     ;;
9181   *)
9182     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9183     ;;
9184   esac
9185   ;;
9186 *)
9187   # fallback: assume linklib IS sharedlib
9188   lt_cv_sharedlib_from_linklib_cmd=$ECHO
9189   ;;
9190 esac
9191
9192 fi
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9194 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9195 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9196 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9197
9198
9199
9200
9201
9202
9203
9204 if test -n "$ac_tool_prefix"; then
9205   for ac_prog in ar
9206   do
9207     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9210 $as_echo_n "checking for $ac_word... " >&6; }
9211 if ${ac_cv_prog_AR+:} false; then :
9212   $as_echo_n "(cached) " >&6
9213 else
9214   if test -n "$AR"; then
9215   ac_cv_prog_AR="$AR" # Let the user override the test.
9216 else
9217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9218 for as_dir in $PATH
9219 do
9220   IFS=$as_save_IFS
9221   test -z "$as_dir" && as_dir=.
9222     for ac_exec_ext in '' $ac_executable_extensions; do
9223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9224     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9226     break 2
9227   fi
9228 done
9229   done
9230 IFS=$as_save_IFS
9231
9232 fi
9233 fi
9234 AR=$ac_cv_prog_AR
9235 if test -n "$AR"; then
9236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9237 $as_echo "$AR" >&6; }
9238 else
9239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9240 $as_echo "no" >&6; }
9241 fi
9242
9243
9244     test -n "$AR" && break
9245   done
9246 fi
9247 if test -z "$AR"; then
9248   ac_ct_AR=$AR
9249   for ac_prog in ar
9250 do
9251   # Extract the first word of "$ac_prog", so it can be a program name with args.
9252 set dummy $ac_prog; ac_word=$2
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9254 $as_echo_n "checking for $ac_word... " >&6; }
9255 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9256   $as_echo_n "(cached) " >&6
9257 else
9258   if test -n "$ac_ct_AR"; then
9259   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9260 else
9261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9262 for as_dir in $PATH
9263 do
9264   IFS=$as_save_IFS
9265   test -z "$as_dir" && as_dir=.
9266     for ac_exec_ext in '' $ac_executable_extensions; do
9267   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9268     ac_cv_prog_ac_ct_AR="$ac_prog"
9269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9270     break 2
9271   fi
9272 done
9273   done
9274 IFS=$as_save_IFS
9275
9276 fi
9277 fi
9278 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9279 if test -n "$ac_ct_AR"; then
9280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9281 $as_echo "$ac_ct_AR" >&6; }
9282 else
9283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9284 $as_echo "no" >&6; }
9285 fi
9286
9287
9288   test -n "$ac_ct_AR" && break
9289 done
9290
9291   if test "x$ac_ct_AR" = x; then
9292     AR="false"
9293   else
9294     case $cross_compiling:$ac_tool_warned in
9295 yes:)
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9298 ac_tool_warned=yes ;;
9299 esac
9300     AR=$ac_ct_AR
9301   fi
9302 fi
9303
9304 : ${AR=ar}
9305 : ${AR_FLAGS=cru}
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9318 $as_echo_n "checking for archiver @FILE support... " >&6; }
9319 if ${lt_cv_ar_at_file+:} false; then :
9320   $as_echo_n "(cached) " >&6
9321 else
9322   lt_cv_ar_at_file=no
9323    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324 /* end confdefs.h.  */
9325
9326 int main (void)
9327 {
9328
9329  ;
9330  return 0;
9331 }
9332 _ACEOF
9333 if ac_fn_c_try_compile "$LINENO"; then :
9334   echo conftest.$ac_objext > conftest.lst
9335       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9336       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9337   (eval $lt_ar_try) 2>&5
9338   ac_status=$?
9339   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9340   test $ac_status = 0; }
9341       if test 0 -eq "$ac_status"; then
9342         # Ensure the archiver fails upon bogus file names.
9343         rm -f conftest.$ac_objext libconftest.a
9344         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9345   (eval $lt_ar_try) 2>&5
9346   ac_status=$?
9347   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9348   test $ac_status = 0; }
9349         if test 0 -ne "$ac_status"; then
9350           lt_cv_ar_at_file=@
9351         fi
9352       fi
9353       rm -f conftest.* libconftest.a
9354
9355 fi
9356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9357
9358 fi
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9360 $as_echo "$lt_cv_ar_at_file" >&6; }
9361
9362 if test no = "$lt_cv_ar_at_file"; then
9363   archiver_list_spec=
9364 else
9365   archiver_list_spec=$lt_cv_ar_at_file
9366 fi
9367
9368
9369
9370
9371
9372
9373
9374 if test -n "$ac_tool_prefix"; then
9375   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9376 set dummy ${ac_tool_prefix}strip; ac_word=$2
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9378 $as_echo_n "checking for $ac_word... " >&6; }
9379 if ${ac_cv_prog_STRIP+:} false; then :
9380   $as_echo_n "(cached) " >&6
9381 else
9382   if test -n "$STRIP"; then
9383   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9384 else
9385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9386 for as_dir in $PATH
9387 do
9388   IFS=$as_save_IFS
9389   test -z "$as_dir" && as_dir=.
9390     for ac_exec_ext in '' $ac_executable_extensions; do
9391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9392     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9394     break 2
9395   fi
9396 done
9397   done
9398 IFS=$as_save_IFS
9399
9400 fi
9401 fi
9402 STRIP=$ac_cv_prog_STRIP
9403 if test -n "$STRIP"; then
9404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9405 $as_echo "$STRIP" >&6; }
9406 else
9407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9408 $as_echo "no" >&6; }
9409 fi
9410
9411
9412 fi
9413 if test -z "$ac_cv_prog_STRIP"; then
9414   ac_ct_STRIP=$STRIP
9415   # Extract the first word of "strip", so it can be a program name with args.
9416 set dummy strip; ac_word=$2
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9418 $as_echo_n "checking for $ac_word... " >&6; }
9419 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9420   $as_echo_n "(cached) " >&6
9421 else
9422   if test -n "$ac_ct_STRIP"; then
9423   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9424 else
9425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9426 for as_dir in $PATH
9427 do
9428   IFS=$as_save_IFS
9429   test -z "$as_dir" && as_dir=.
9430     for ac_exec_ext in '' $ac_executable_extensions; do
9431   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9432     ac_cv_prog_ac_ct_STRIP="strip"
9433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9434     break 2
9435   fi
9436 done
9437   done
9438 IFS=$as_save_IFS
9439
9440 fi
9441 fi
9442 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9443 if test -n "$ac_ct_STRIP"; then
9444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9445 $as_echo "$ac_ct_STRIP" >&6; }
9446 else
9447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9448 $as_echo "no" >&6; }
9449 fi
9450
9451   if test "x$ac_ct_STRIP" = x; then
9452     STRIP=":"
9453   else
9454     case $cross_compiling:$ac_tool_warned in
9455 yes:)
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9458 ac_tool_warned=yes ;;
9459 esac
9460     STRIP=$ac_ct_STRIP
9461   fi
9462 else
9463   STRIP="$ac_cv_prog_STRIP"
9464 fi
9465
9466 test -z "$STRIP" && STRIP=:
9467
9468
9469
9470
9471
9472
9473 if test -n "$ac_tool_prefix"; then
9474   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9475 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9477 $as_echo_n "checking for $ac_word... " >&6; }
9478 if ${ac_cv_prog_RANLIB+:} false; then :
9479   $as_echo_n "(cached) " >&6
9480 else
9481   if test -n "$RANLIB"; then
9482   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9483 else
9484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9485 for as_dir in $PATH
9486 do
9487   IFS=$as_save_IFS
9488   test -z "$as_dir" && as_dir=.
9489     for ac_exec_ext in '' $ac_executable_extensions; do
9490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9491     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9493     break 2
9494   fi
9495 done
9496   done
9497 IFS=$as_save_IFS
9498
9499 fi
9500 fi
9501 RANLIB=$ac_cv_prog_RANLIB
9502 if test -n "$RANLIB"; then
9503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9504 $as_echo "$RANLIB" >&6; }
9505 else
9506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9507 $as_echo "no" >&6; }
9508 fi
9509
9510
9511 fi
9512 if test -z "$ac_cv_prog_RANLIB"; then
9513   ac_ct_RANLIB=$RANLIB
9514   # Extract the first word of "ranlib", so it can be a program name with args.
9515 set dummy ranlib; ac_word=$2
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9517 $as_echo_n "checking for $ac_word... " >&6; }
9518 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9519   $as_echo_n "(cached) " >&6
9520 else
9521   if test -n "$ac_ct_RANLIB"; then
9522   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9523 else
9524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9525 for as_dir in $PATH
9526 do
9527   IFS=$as_save_IFS
9528   test -z "$as_dir" && as_dir=.
9529     for ac_exec_ext in '' $ac_executable_extensions; do
9530   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9531     ac_cv_prog_ac_ct_RANLIB="ranlib"
9532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9533     break 2
9534   fi
9535 done
9536   done
9537 IFS=$as_save_IFS
9538
9539 fi
9540 fi
9541 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9542 if test -n "$ac_ct_RANLIB"; then
9543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9544 $as_echo "$ac_ct_RANLIB" >&6; }
9545 else
9546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9547 $as_echo "no" >&6; }
9548 fi
9549
9550   if test "x$ac_ct_RANLIB" = x; then
9551     RANLIB=":"
9552   else
9553     case $cross_compiling:$ac_tool_warned in
9554 yes:)
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9557 ac_tool_warned=yes ;;
9558 esac
9559     RANLIB=$ac_ct_RANLIB
9560   fi
9561 else
9562   RANLIB="$ac_cv_prog_RANLIB"
9563 fi
9564
9565 test -z "$RANLIB" && RANLIB=:
9566
9567
9568
9569
9570
9571
9572 # Determine commands to create old-style static archives.
9573 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9574 old_postinstall_cmds='chmod 644 $oldlib'
9575 old_postuninstall_cmds=
9576
9577 if test -n "$RANLIB"; then
9578   case $host_os in
9579   bitrig* | openbsd*)
9580     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9581     ;;
9582   *)
9583     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9584     ;;
9585   esac
9586   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9587 fi
9588
9589 case $host_os in
9590   darwin*)
9591     lock_old_archive_extraction=yes ;;
9592   *)
9593     lock_old_archive_extraction=no ;;
9594 esac
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634 # If no C compiler was specified, use CC.
9635 LTCC=${LTCC-"$CC"}
9636
9637 # If no C compiler flags were specified, use CFLAGS.
9638 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9639
9640 # Allow CC to be a program name with arguments.
9641 compiler=$CC
9642
9643
9644 # Check for command to grab the raw symbol name followed by C symbol from nm.
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9646 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9647 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9648   $as_echo_n "(cached) " >&6
9649 else
9650
9651 # These are sane defaults that work on at least a few old systems.
9652 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9653
9654 # Character class describing NM global symbol codes.
9655 symcode='[BCDEGRST]'
9656
9657 # Regexp to match symbols that can be accessed directly from C.
9658 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9659
9660 # Define system-specific variables.
9661 case $host_os in
9662 aix*)
9663   symcode='[BCDT]'
9664   ;;
9665 cygwin* | mingw* | pw32* | cegcc*)
9666   symcode='[ABCDGISTW]'
9667   ;;
9668 hpux*)
9669   if test ia64 = "$host_cpu"; then
9670     symcode='[ABCDEGRST]'
9671   fi
9672   ;;
9673 irix* | nonstopux*)
9674   symcode='[BCDEGRST]'
9675   ;;
9676 osf*)
9677   symcode='[BCDEGQRST]'
9678   ;;
9679 solaris*)
9680   symcode='[BDRT]'
9681   ;;
9682 sco3.2v5*)
9683   symcode='[DT]'
9684   ;;
9685 sysv4.2uw2*)
9686   symcode='[DT]'
9687   ;;
9688 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9689   symcode='[ABDT]'
9690   ;;
9691 sysv4)
9692   symcode='[DFNSTU]'
9693   ;;
9694 esac
9695
9696 # If we're using GNU nm, then use its standard symbol codes.
9697 case `$NM -V 2>&1` in
9698 *GNU* | *'with BFD'*)
9699   symcode='[ABCDGIRSTW]' ;;
9700 esac
9701
9702 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9703   # Gets list of data symbols to import.
9704   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9705   # Adjust the below global symbol transforms to fixup imported variables.
9706   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9707   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9708   lt_c_name_lib_hook="\
9709   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9710   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9711 else
9712   # Disable hooks by default.
9713   lt_cv_sys_global_symbol_to_import=
9714   lt_cdecl_hook=
9715   lt_c_name_hook=
9716   lt_c_name_lib_hook=
9717 fi
9718
9719 # Transform an extracted symbol line into a proper C declaration.
9720 # Some systems (esp. on ia64) link data and code symbols differently,
9721 # so use this general approach.
9722 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9723 $lt_cdecl_hook\
9724 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9725 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9726
9727 # Transform an extracted symbol line into symbol name and symbol address
9728 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9729 $lt_c_name_hook\
9730 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9731 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9732
9733 # Transform an extracted symbol line into symbol name with lib prefix and
9734 # symbol address.
9735 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9736 $lt_c_name_lib_hook\
9737 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9738 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9739 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9740
9741 # Handle CRLF in mingw tool chain
9742 opt_cr=
9743 case $build_os in
9744 mingw*)
9745   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9746   ;;
9747 esac
9748
9749 # Try without a prefix underscore, then with it.
9750 for ac_symprfx in "" "_"; do
9751
9752   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9753   symxfrm="\\1 $ac_symprfx\\2 \\2"
9754
9755   # Write the raw and C identifiers.
9756   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9757     # Fake it for dumpbin and say T for any non-static function,
9758     # D for any global variable and I for any imported variable.
9759     # Also find C++ and __fastcall symbols from MSVC++,
9760     # which start with @ or ?.
9761     lt_cv_sys_global_symbol_pipe="$AWK '"\
9762 "     {last_section=section; section=\$ 3};"\
9763 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9764 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9765 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9766 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9767 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9768 "     \$ 0!~/External *\|/{next};"\
9769 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9770 "     {if(hide[section]) next};"\
9771 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9772 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9773 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9774 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9775 "     ' prfx=^$ac_symprfx"
9776   else
9777     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9778   fi
9779   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9780
9781   # Check to see that the pipe works correctly.
9782   pipe_works=no
9783
9784   rm -f conftest*
9785   cat > conftest.$ac_ext <<_LT_EOF
9786 #ifdef __cplusplus
9787 extern "C" {
9788 #endif
9789 char nm_test_var;
9790 void nm_test_func(void);
9791 void nm_test_func(void){}
9792 #ifdef __cplusplus
9793 }
9794 #endif
9795 int main(){nm_test_var='a';nm_test_func();return(0);}
9796 _LT_EOF
9797
9798   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9799   (eval $ac_compile) 2>&5
9800   ac_status=$?
9801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9802   test $ac_status = 0; }; then
9803     # Now try to grab the symbols.
9804     nlist=conftest.nm
9805     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9806   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9807   ac_status=$?
9808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9809   test $ac_status = 0; } && test -s "$nlist"; then
9810       # Try sorting and uniquifying the output.
9811       if sort "$nlist" | uniq > "$nlist"T; then
9812         mv -f "$nlist"T "$nlist"
9813       else
9814         rm -f "$nlist"T
9815       fi
9816
9817       # Make sure that we snagged all the symbols we need.
9818       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9819         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9820           cat <<_LT_EOF > conftest.$ac_ext
9821 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9822 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9823 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9824    relocations are performed -- see ld's documentation on pseudo-relocs.  */
9825 # define LT_DLSYM_CONST
9826 #elif defined __osf__
9827 /* This system does not cope well with relocations in const data.  */
9828 # define LT_DLSYM_CONST
9829 #else
9830 # define LT_DLSYM_CONST const
9831 #endif
9832
9833 #ifdef __cplusplus
9834 extern "C" {
9835 #endif
9836
9837 _LT_EOF
9838           # Now generate the symbol file.
9839           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9840
9841           cat <<_LT_EOF >> conftest.$ac_ext
9842
9843 /* The mapping between symbol names and symbols.  */
9844 LT_DLSYM_CONST struct {
9845   const char *name;
9846   void       *address;
9847 }
9848 lt__PROGRAM__LTX_preloaded_symbols[] =
9849 {
9850   { "@PROGRAM@", (void *) 0 },
9851 _LT_EOF
9852           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9853           cat <<\_LT_EOF >> conftest.$ac_ext
9854   {0, (void *) 0}
9855 };
9856
9857 /* This works around a problem in FreeBSD linker */
9858 #ifdef FREEBSD_WORKAROUND
9859 static const void *lt_preloaded_setup() {
9860   return lt__PROGRAM__LTX_preloaded_symbols;
9861 }
9862 #endif
9863
9864 #ifdef __cplusplus
9865 }
9866 #endif
9867 _LT_EOF
9868           # Now try linking the two files.
9869           mv -f conftest.$ac_objext conftstm.$ac_objext
9870           lt_globsym_save_LIBS=$LIBS
9871           lt_globsym_save_CFLAGS=$CFLAGS
9872           LIBS=conftstm.$ac_objext
9873           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9874           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9875   (eval $ac_link) 2>&5
9876   ac_status=$?
9877   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9878   test $ac_status = 0; } && test -s conftest$ac_exeext; then
9879             pipe_works=yes
9880           fi
9881           LIBS=$lt_globsym_save_LIBS
9882           CFLAGS=$lt_globsym_save_CFLAGS
9883         else
9884           echo "cannot find nm_test_func in $nlist" >&5
9885         fi
9886       else
9887         echo "cannot find nm_test_var in $nlist" >&5
9888       fi
9889     else
9890       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9891     fi
9892   else
9893     echo "$progname: failed program was:" >&5
9894     cat conftest.$ac_ext >&5
9895   fi
9896   rm -rf conftest* conftst*
9897
9898   # Do not use the global_symbol_pipe unless it works.
9899   if test yes = "$pipe_works"; then
9900     break
9901   else
9902     lt_cv_sys_global_symbol_pipe=
9903   fi
9904 done
9905
9906 fi
9907
9908 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9909   lt_cv_sys_global_symbol_to_cdecl=
9910 fi
9911 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9913 $as_echo "failed" >&6; }
9914 else
9915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9916 $as_echo "ok" >&6; }
9917 fi
9918
9919 # Response file support.
9920 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9921   nm_file_list_spec='@'
9922 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9923   nm_file_list_spec='@'
9924 fi
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9963 $as_echo_n "checking for sysroot... " >&6; }
9964
9965 # Check whether --with-sysroot was given.
9966 if test "${with_sysroot+set}" = set; then :
9967   withval=$with_sysroot;
9968 else
9969   with_sysroot=no
9970 fi
9971
9972
9973 lt_sysroot=
9974 case $with_sysroot in #(
9975  yes)
9976    if test yes = "$GCC"; then
9977      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9978    fi
9979    ;; #(
9980  /*)
9981    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9982    ;; #(
9983  no|'')
9984    ;; #(
9985  *)
9986    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9987 $as_echo "$with_sysroot" >&6; }
9988    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9989    ;;
9990 esac
9991
9992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9993 $as_echo "${lt_sysroot:-no}" >&6; }
9994
9995
9996
9997
9998
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10000 $as_echo_n "checking for a working dd... " >&6; }
10001 if ${ac_cv_path_lt_DD+:} false; then :
10002   $as_echo_n "(cached) " >&6
10003 else
10004   printf 0123456789abcdef0123456789abcdef >conftest.i
10005 cat conftest.i conftest.i >conftest2.i
10006 : ${lt_DD:=$DD}
10007 if test -z "$lt_DD"; then
10008   ac_path_lt_DD_found=false
10009   # Loop through the user's path and test for each of PROGNAME-LIST
10010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10011 for as_dir in $PATH
10012 do
10013   IFS=$as_save_IFS
10014   test -z "$as_dir" && as_dir=.
10015     for ac_prog in dd; do
10016     for ac_exec_ext in '' $ac_executable_extensions; do
10017       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
10018       as_fn_executable_p "$ac_path_lt_DD" || continue
10019 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10020   cmp -s conftest.i conftest.out \
10021   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10022 fi
10023       $ac_path_lt_DD_found && break 3
10024     done
10025   done
10026   done
10027 IFS=$as_save_IFS
10028   if test -z "$ac_cv_path_lt_DD"; then
10029     :
10030   fi
10031 else
10032   ac_cv_path_lt_DD=$lt_DD
10033 fi
10034
10035 rm -f conftest.i conftest2.i conftest.out
10036 fi
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10038 $as_echo "$ac_cv_path_lt_DD" >&6; }
10039
10040
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10042 $as_echo_n "checking how to truncate binary pipes... " >&6; }
10043 if ${lt_cv_truncate_bin+:} false; then :
10044   $as_echo_n "(cached) " >&6
10045 else
10046   printf 0123456789abcdef0123456789abcdef >conftest.i
10047 cat conftest.i conftest.i >conftest2.i
10048 lt_cv_truncate_bin=
10049 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10050   cmp -s conftest.i conftest.out \
10051   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10052 fi
10053 rm -f conftest.i conftest2.i conftest.out
10054 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10055 fi
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10057 $as_echo "$lt_cv_truncate_bin" >&6; }
10058
10059
10060
10061
10062
10063
10064
10065 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
10066 func_cc_basename ()
10067 {
10068     for cc_temp in $*""; do
10069       case $cc_temp in
10070         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10071         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10072         \-*) ;;
10073         *) break;;
10074       esac
10075     done
10076     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10077 }
10078
10079 # Check whether --enable-libtool-lock was given.
10080 if test "${enable_libtool_lock+set}" = set; then :
10081   enableval=$enable_libtool_lock;
10082 fi
10083
10084 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10085
10086 # Some flags need to be propagated to the compiler or linker for good
10087 # libtool support.
10088 case $host in
10089 ia64-*-hpux*)
10090   # Find out what ABI is being produced by ac_compile, and set mode
10091   # options accordingly.
10092   echo 'int i;' > conftest.$ac_ext
10093   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10094   (eval $ac_compile) 2>&5
10095   ac_status=$?
10096   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10097   test $ac_status = 0; }; then
10098     case `/usr/bin/file conftest.$ac_objext` in
10099       *ELF-32*)
10100         HPUX_IA64_MODE=32
10101         ;;
10102       *ELF-64*)
10103         HPUX_IA64_MODE=64
10104         ;;
10105     esac
10106   fi
10107   rm -rf conftest*
10108   ;;
10109 *-*-irix6*)
10110   # Find out what ABI is being produced by ac_compile, and set linker
10111   # options accordingly.
10112   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10113   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10114   (eval $ac_compile) 2>&5
10115   ac_status=$?
10116   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10117   test $ac_status = 0; }; then
10118     if test yes = "$lt_cv_prog_gnu_ld"; then
10119       case `/usr/bin/file conftest.$ac_objext` in
10120         *32-bit*)
10121           LD="${LD-ld} -melf32bsmip"
10122           ;;
10123         *N32*)
10124           LD="${LD-ld} -melf32bmipn32"
10125           ;;
10126         *64-bit*)
10127           LD="${LD-ld} -melf64bmip"
10128         ;;
10129       esac
10130     else
10131       case `/usr/bin/file conftest.$ac_objext` in
10132         *32-bit*)
10133           LD="${LD-ld} -32"
10134           ;;
10135         *N32*)
10136           LD="${LD-ld} -n32"
10137           ;;
10138         *64-bit*)
10139           LD="${LD-ld} -64"
10140           ;;
10141       esac
10142     fi
10143   fi
10144   rm -rf conftest*
10145   ;;
10146
10147 mips64*-*linux*)
10148   # Find out what ABI is being produced by ac_compile, and set linker
10149   # options accordingly.
10150   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10151   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10152   (eval $ac_compile) 2>&5
10153   ac_status=$?
10154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10155   test $ac_status = 0; }; then
10156     emul=elf
10157     case `/usr/bin/file conftest.$ac_objext` in
10158       *32-bit*)
10159         emul="${emul}32"
10160         ;;
10161       *64-bit*)
10162         emul="${emul}64"
10163         ;;
10164     esac
10165     case `/usr/bin/file conftest.$ac_objext` in
10166       *MSB*)
10167         emul="${emul}btsmip"
10168         ;;
10169       *LSB*)
10170         emul="${emul}ltsmip"
10171         ;;
10172     esac
10173     case `/usr/bin/file conftest.$ac_objext` in
10174       *N32*)
10175         emul="${emul}n32"
10176         ;;
10177     esac
10178     LD="${LD-ld} -m $emul"
10179   fi
10180   rm -rf conftest*
10181   ;;
10182
10183 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10184 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10185   # Find out what ABI is being produced by ac_compile, and set linker
10186   # options accordingly.  Note that the listed cases only cover the
10187   # situations where additional linker options are needed (such as when
10188   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10189   # vice versa); the common cases where no linker options are needed do
10190   # not appear in the list.
10191   echo 'int i;' > conftest.$ac_ext
10192   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10193   (eval $ac_compile) 2>&5
10194   ac_status=$?
10195   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10196   test $ac_status = 0; }; then
10197     case `/usr/bin/file conftest.o` in
10198       *32-bit*)
10199         case $host in
10200           x86_64-*kfreebsd*-gnu)
10201             LD="${LD-ld} -m elf_i386_fbsd"
10202             ;;
10203           x86_64-*linux*)
10204             case `/usr/bin/file conftest.o` in
10205               *x86-64*)
10206                 LD="${LD-ld} -m elf32_x86_64"
10207                 ;;
10208               *)
10209                 LD="${LD-ld} -m elf_i386"
10210                 ;;
10211             esac
10212             ;;
10213           powerpc64le-*linux*)
10214             LD="${LD-ld} -m elf32lppclinux"
10215             ;;
10216           powerpc64-*linux*)
10217             LD="${LD-ld} -m elf32ppclinux"
10218             ;;
10219           s390x-*linux*)
10220             LD="${LD-ld} -m elf_s390"
10221             ;;
10222           sparc64-*linux*)
10223             LD="${LD-ld} -m elf32_sparc"
10224             ;;
10225         esac
10226         ;;
10227       *64-bit*)
10228         case $host in
10229           x86_64-*kfreebsd*-gnu)
10230             LD="${LD-ld} -m elf_x86_64_fbsd"
10231             ;;
10232           x86_64-*linux*)
10233             LD="${LD-ld} -m elf_x86_64"
10234             ;;
10235           powerpcle-*linux*)
10236             LD="${LD-ld} -m elf64lppc"
10237             ;;
10238           powerpc-*linux*)
10239             LD="${LD-ld} -m elf64ppc"
10240             ;;
10241           s390*-*linux*|s390*-*tpf*)
10242             LD="${LD-ld} -m elf64_s390"
10243             ;;
10244           sparc*-*linux*)
10245             LD="${LD-ld} -m elf64_sparc"
10246             ;;
10247         esac
10248         ;;
10249     esac
10250   fi
10251   rm -rf conftest*
10252   ;;
10253
10254 *-*-sco3.2v5*)
10255   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10256   SAVE_CFLAGS=$CFLAGS
10257   CFLAGS="$CFLAGS -belf"
10258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10259 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10260 if ${lt_cv_cc_needs_belf+:} false; then :
10261   $as_echo_n "(cached) " >&6
10262 else
10263   ac_ext=c
10264 ac_cpp='$CPP $CPPFLAGS'
10265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10268
10269      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270 /* end confdefs.h.  */
10271
10272 int main (void)
10273 {
10274
10275  ;
10276  return 0;
10277 }
10278 _ACEOF
10279 if ac_fn_c_try_link "$LINENO"; then :
10280   lt_cv_cc_needs_belf=yes
10281 else
10282   lt_cv_cc_needs_belf=no
10283 fi
10284 rm -f core conftest.err conftest.$ac_objext \
10285     conftest$ac_exeext conftest.$ac_ext
10286      ac_ext=c
10287 ac_cpp='$CPP $CPPFLAGS'
10288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10291
10292 fi
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10294 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10295   if test yes != "$lt_cv_cc_needs_belf"; then
10296     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10297     CFLAGS=$SAVE_CFLAGS
10298   fi
10299   ;;
10300 *-*solaris*)
10301   # Find out what ABI is being produced by ac_compile, and set linker
10302   # options accordingly.
10303   echo 'int i;' > conftest.$ac_ext
10304   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10305   (eval $ac_compile) 2>&5
10306   ac_status=$?
10307   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10308   test $ac_status = 0; }; then
10309     case `/usr/bin/file conftest.o` in
10310     *64-bit*)
10311       case $lt_cv_prog_gnu_ld in
10312       yes*)
10313         case $host in
10314         i?86-*-solaris*|x86_64-*-solaris*)
10315           LD="${LD-ld} -m elf_x86_64"
10316           ;;
10317         sparc*-*-solaris*)
10318           LD="${LD-ld} -m elf64_sparc"
10319           ;;
10320         esac
10321         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
10322         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10323           LD=${LD-ld}_sol2
10324         fi
10325         ;;
10326       *)
10327         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10328           LD="${LD-ld} -64"
10329         fi
10330         ;;
10331       esac
10332       ;;
10333     esac
10334   fi
10335   rm -rf conftest*
10336   ;;
10337 esac
10338
10339 need_locks=$enable_libtool_lock
10340
10341 if test -n "$ac_tool_prefix"; then
10342   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10343 set dummy ${ac_tool_prefix}mt; ac_word=$2
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10345 $as_echo_n "checking for $ac_word... " >&6; }
10346 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10347   $as_echo_n "(cached) " >&6
10348 else
10349   if test -n "$MANIFEST_TOOL"; then
10350   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10351 else
10352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10353 for as_dir in $PATH
10354 do
10355   IFS=$as_save_IFS
10356   test -z "$as_dir" && as_dir=.
10357     for ac_exec_ext in '' $ac_executable_extensions; do
10358   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10359     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10361     break 2
10362   fi
10363 done
10364   done
10365 IFS=$as_save_IFS
10366
10367 fi
10368 fi
10369 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10370 if test -n "$MANIFEST_TOOL"; then
10371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10372 $as_echo "$MANIFEST_TOOL" >&6; }
10373 else
10374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375 $as_echo "no" >&6; }
10376 fi
10377
10378
10379 fi
10380 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10381   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10382   # Extract the first word of "mt", so it can be a program name with args.
10383 set dummy mt; ac_word=$2
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10385 $as_echo_n "checking for $ac_word... " >&6; }
10386 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10387   $as_echo_n "(cached) " >&6
10388 else
10389   if test -n "$ac_ct_MANIFEST_TOOL"; then
10390   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10391 else
10392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10393 for as_dir in $PATH
10394 do
10395   IFS=$as_save_IFS
10396   test -z "$as_dir" && as_dir=.
10397     for ac_exec_ext in '' $ac_executable_extensions; do
10398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10399     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10401     break 2
10402   fi
10403 done
10404   done
10405 IFS=$as_save_IFS
10406
10407 fi
10408 fi
10409 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10410 if test -n "$ac_ct_MANIFEST_TOOL"; then
10411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10412 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10413 else
10414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10415 $as_echo "no" >&6; }
10416 fi
10417
10418   if test "x$ac_ct_MANIFEST_TOOL" = x; then
10419     MANIFEST_TOOL=":"
10420   else
10421     case $cross_compiling:$ac_tool_warned in
10422 yes:)
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10425 ac_tool_warned=yes ;;
10426 esac
10427     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10428   fi
10429 else
10430   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10431 fi
10432
10433 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10435 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10436 if ${lt_cv_path_mainfest_tool+:} false; then :
10437   $as_echo_n "(cached) " >&6
10438 else
10439   lt_cv_path_mainfest_tool=no
10440   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10441   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10442   cat conftest.err >&5
10443   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10444     lt_cv_path_mainfest_tool=yes
10445   fi
10446   rm -f conftest*
10447 fi
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10449 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10450 if test yes != "$lt_cv_path_mainfest_tool"; then
10451   MANIFEST_TOOL=:
10452 fi
10453
10454
10455
10456
10457
10458
10459   case $host_os in
10460     rhapsody* | darwin*)
10461     if test -n "$ac_tool_prefix"; then
10462   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10463 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10465 $as_echo_n "checking for $ac_word... " >&6; }
10466 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10467   $as_echo_n "(cached) " >&6
10468 else
10469   if test -n "$DSYMUTIL"; then
10470   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10471 else
10472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10473 for as_dir in $PATH
10474 do
10475   IFS=$as_save_IFS
10476   test -z "$as_dir" && as_dir=.
10477     for ac_exec_ext in '' $ac_executable_extensions; do
10478   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10479     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10481     break 2
10482   fi
10483 done
10484   done
10485 IFS=$as_save_IFS
10486
10487 fi
10488 fi
10489 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10490 if test -n "$DSYMUTIL"; then
10491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10492 $as_echo "$DSYMUTIL" >&6; }
10493 else
10494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10495 $as_echo "no" >&6; }
10496 fi
10497
10498
10499 fi
10500 if test -z "$ac_cv_prog_DSYMUTIL"; then
10501   ac_ct_DSYMUTIL=$DSYMUTIL
10502   # Extract the first word of "dsymutil", so it can be a program name with args.
10503 set dummy dsymutil; ac_word=$2
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10505 $as_echo_n "checking for $ac_word... " >&6; }
10506 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10507   $as_echo_n "(cached) " >&6
10508 else
10509   if test -n "$ac_ct_DSYMUTIL"; then
10510   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10511 else
10512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10513 for as_dir in $PATH
10514 do
10515   IFS=$as_save_IFS
10516   test -z "$as_dir" && as_dir=.
10517     for ac_exec_ext in '' $ac_executable_extensions; do
10518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10519     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10521     break 2
10522   fi
10523 done
10524   done
10525 IFS=$as_save_IFS
10526
10527 fi
10528 fi
10529 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10530 if test -n "$ac_ct_DSYMUTIL"; then
10531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10532 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10533 else
10534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10535 $as_echo "no" >&6; }
10536 fi
10537
10538   if test "x$ac_ct_DSYMUTIL" = x; then
10539     DSYMUTIL=":"
10540   else
10541     case $cross_compiling:$ac_tool_warned in
10542 yes:)
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10545 ac_tool_warned=yes ;;
10546 esac
10547     DSYMUTIL=$ac_ct_DSYMUTIL
10548   fi
10549 else
10550   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10551 fi
10552
10553     if test -n "$ac_tool_prefix"; then
10554   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10555 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10557 $as_echo_n "checking for $ac_word... " >&6; }
10558 if ${ac_cv_prog_NMEDIT+:} false; then :
10559   $as_echo_n "(cached) " >&6
10560 else
10561   if test -n "$NMEDIT"; then
10562   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10563 else
10564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10565 for as_dir in $PATH
10566 do
10567   IFS=$as_save_IFS
10568   test -z "$as_dir" && as_dir=.
10569     for ac_exec_ext in '' $ac_executable_extensions; do
10570   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10571     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10573     break 2
10574   fi
10575 done
10576   done
10577 IFS=$as_save_IFS
10578
10579 fi
10580 fi
10581 NMEDIT=$ac_cv_prog_NMEDIT
10582 if test -n "$NMEDIT"; then
10583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10584 $as_echo "$NMEDIT" >&6; }
10585 else
10586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10587 $as_echo "no" >&6; }
10588 fi
10589
10590
10591 fi
10592 if test -z "$ac_cv_prog_NMEDIT"; then
10593   ac_ct_NMEDIT=$NMEDIT
10594   # Extract the first word of "nmedit", so it can be a program name with args.
10595 set dummy nmedit; ac_word=$2
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10597 $as_echo_n "checking for $ac_word... " >&6; }
10598 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10599   $as_echo_n "(cached) " >&6
10600 else
10601   if test -n "$ac_ct_NMEDIT"; then
10602   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10603 else
10604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10605 for as_dir in $PATH
10606 do
10607   IFS=$as_save_IFS
10608   test -z "$as_dir" && as_dir=.
10609     for ac_exec_ext in '' $ac_executable_extensions; do
10610   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10611     ac_cv_prog_ac_ct_NMEDIT="nmedit"
10612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10613     break 2
10614   fi
10615 done
10616   done
10617 IFS=$as_save_IFS
10618
10619 fi
10620 fi
10621 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10622 if test -n "$ac_ct_NMEDIT"; then
10623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10624 $as_echo "$ac_ct_NMEDIT" >&6; }
10625 else
10626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10627 $as_echo "no" >&6; }
10628 fi
10629
10630   if test "x$ac_ct_NMEDIT" = x; then
10631     NMEDIT=":"
10632   else
10633     case $cross_compiling:$ac_tool_warned in
10634 yes:)
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10637 ac_tool_warned=yes ;;
10638 esac
10639     NMEDIT=$ac_ct_NMEDIT
10640   fi
10641 else
10642   NMEDIT="$ac_cv_prog_NMEDIT"
10643 fi
10644
10645     if test -n "$ac_tool_prefix"; then
10646   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10647 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10649 $as_echo_n "checking for $ac_word... " >&6; }
10650 if ${ac_cv_prog_LIPO+:} false; then :
10651   $as_echo_n "(cached) " >&6
10652 else
10653   if test -n "$LIPO"; then
10654   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10655 else
10656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10657 for as_dir in $PATH
10658 do
10659   IFS=$as_save_IFS
10660   test -z "$as_dir" && as_dir=.
10661     for ac_exec_ext in '' $ac_executable_extensions; do
10662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10663     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10665     break 2
10666   fi
10667 done
10668   done
10669 IFS=$as_save_IFS
10670
10671 fi
10672 fi
10673 LIPO=$ac_cv_prog_LIPO
10674 if test -n "$LIPO"; then
10675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10676 $as_echo "$LIPO" >&6; }
10677 else
10678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10679 $as_echo "no" >&6; }
10680 fi
10681
10682
10683 fi
10684 if test -z "$ac_cv_prog_LIPO"; then
10685   ac_ct_LIPO=$LIPO
10686   # Extract the first word of "lipo", so it can be a program name with args.
10687 set dummy lipo; ac_word=$2
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10689 $as_echo_n "checking for $ac_word... " >&6; }
10690 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10691   $as_echo_n "(cached) " >&6
10692 else
10693   if test -n "$ac_ct_LIPO"; then
10694   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10695 else
10696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10697 for as_dir in $PATH
10698 do
10699   IFS=$as_save_IFS
10700   test -z "$as_dir" && as_dir=.
10701     for ac_exec_ext in '' $ac_executable_extensions; do
10702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10703     ac_cv_prog_ac_ct_LIPO="lipo"
10704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10705     break 2
10706   fi
10707 done
10708   done
10709 IFS=$as_save_IFS
10710
10711 fi
10712 fi
10713 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10714 if test -n "$ac_ct_LIPO"; then
10715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10716 $as_echo "$ac_ct_LIPO" >&6; }
10717 else
10718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10719 $as_echo "no" >&6; }
10720 fi
10721
10722   if test "x$ac_ct_LIPO" = x; then
10723     LIPO=":"
10724   else
10725     case $cross_compiling:$ac_tool_warned in
10726 yes:)
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10729 ac_tool_warned=yes ;;
10730 esac
10731     LIPO=$ac_ct_LIPO
10732   fi
10733 else
10734   LIPO="$ac_cv_prog_LIPO"
10735 fi
10736
10737     if test -n "$ac_tool_prefix"; then
10738   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10739 set dummy ${ac_tool_prefix}otool; ac_word=$2
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10741 $as_echo_n "checking for $ac_word... " >&6; }
10742 if ${ac_cv_prog_OTOOL+:} false; then :
10743   $as_echo_n "(cached) " >&6
10744 else
10745   if test -n "$OTOOL"; then
10746   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10747 else
10748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10749 for as_dir in $PATH
10750 do
10751   IFS=$as_save_IFS
10752   test -z "$as_dir" && as_dir=.
10753     for ac_exec_ext in '' $ac_executable_extensions; do
10754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10755     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10757     break 2
10758   fi
10759 done
10760   done
10761 IFS=$as_save_IFS
10762
10763 fi
10764 fi
10765 OTOOL=$ac_cv_prog_OTOOL
10766 if test -n "$OTOOL"; then
10767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10768 $as_echo "$OTOOL" >&6; }
10769 else
10770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10771 $as_echo "no" >&6; }
10772 fi
10773
10774
10775 fi
10776 if test -z "$ac_cv_prog_OTOOL"; then
10777   ac_ct_OTOOL=$OTOOL
10778   # Extract the first word of "otool", so it can be a program name with args.
10779 set dummy otool; ac_word=$2
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10781 $as_echo_n "checking for $ac_word... " >&6; }
10782 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10783   $as_echo_n "(cached) " >&6
10784 else
10785   if test -n "$ac_ct_OTOOL"; then
10786   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10787 else
10788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10789 for as_dir in $PATH
10790 do
10791   IFS=$as_save_IFS
10792   test -z "$as_dir" && as_dir=.
10793     for ac_exec_ext in '' $ac_executable_extensions; do
10794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10795     ac_cv_prog_ac_ct_OTOOL="otool"
10796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10797     break 2
10798   fi
10799 done
10800   done
10801 IFS=$as_save_IFS
10802
10803 fi
10804 fi
10805 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10806 if test -n "$ac_ct_OTOOL"; then
10807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10808 $as_echo "$ac_ct_OTOOL" >&6; }
10809 else
10810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811 $as_echo "no" >&6; }
10812 fi
10813
10814   if test "x$ac_ct_OTOOL" = x; then
10815     OTOOL=":"
10816   else
10817     case $cross_compiling:$ac_tool_warned in
10818 yes:)
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10821 ac_tool_warned=yes ;;
10822 esac
10823     OTOOL=$ac_ct_OTOOL
10824   fi
10825 else
10826   OTOOL="$ac_cv_prog_OTOOL"
10827 fi
10828
10829     if test -n "$ac_tool_prefix"; then
10830   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10831 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10833 $as_echo_n "checking for $ac_word... " >&6; }
10834 if ${ac_cv_prog_OTOOL64+:} false; then :
10835   $as_echo_n "(cached) " >&6
10836 else
10837   if test -n "$OTOOL64"; then
10838   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10839 else
10840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10841 for as_dir in $PATH
10842 do
10843   IFS=$as_save_IFS
10844   test -z "$as_dir" && as_dir=.
10845     for ac_exec_ext in '' $ac_executable_extensions; do
10846   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10847     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10849     break 2
10850   fi
10851 done
10852   done
10853 IFS=$as_save_IFS
10854
10855 fi
10856 fi
10857 OTOOL64=$ac_cv_prog_OTOOL64
10858 if test -n "$OTOOL64"; then
10859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10860 $as_echo "$OTOOL64" >&6; }
10861 else
10862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10863 $as_echo "no" >&6; }
10864 fi
10865
10866
10867 fi
10868 if test -z "$ac_cv_prog_OTOOL64"; then
10869   ac_ct_OTOOL64=$OTOOL64
10870   # Extract the first word of "otool64", so it can be a program name with args.
10871 set dummy otool64; ac_word=$2
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10873 $as_echo_n "checking for $ac_word... " >&6; }
10874 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10875   $as_echo_n "(cached) " >&6
10876 else
10877   if test -n "$ac_ct_OTOOL64"; then
10878   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10879 else
10880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10881 for as_dir in $PATH
10882 do
10883   IFS=$as_save_IFS
10884   test -z "$as_dir" && as_dir=.
10885     for ac_exec_ext in '' $ac_executable_extensions; do
10886   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10887     ac_cv_prog_ac_ct_OTOOL64="otool64"
10888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10889     break 2
10890   fi
10891 done
10892   done
10893 IFS=$as_save_IFS
10894
10895 fi
10896 fi
10897 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10898 if test -n "$ac_ct_OTOOL64"; then
10899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10900 $as_echo "$ac_ct_OTOOL64" >&6; }
10901 else
10902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10903 $as_echo "no" >&6; }
10904 fi
10905
10906   if test "x$ac_ct_OTOOL64" = x; then
10907     OTOOL64=":"
10908   else
10909     case $cross_compiling:$ac_tool_warned in
10910 yes:)
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10913 ac_tool_warned=yes ;;
10914 esac
10915     OTOOL64=$ac_ct_OTOOL64
10916   fi
10917 else
10918   OTOOL64="$ac_cv_prog_OTOOL64"
10919 fi
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10948 $as_echo_n "checking for -single_module linker flag... " >&6; }
10949 if ${lt_cv_apple_cc_single_mod+:} false; then :
10950   $as_echo_n "(cached) " >&6
10951 else
10952   lt_cv_apple_cc_single_mod=no
10953       if test -z "$LT_MULTI_MODULE"; then
10954         # By default we will add the -single_module flag. You can override
10955         # by either setting the environment variable LT_MULTI_MODULE
10956         # non-empty at configure time, or by adding -multi_module to the
10957         # link flags.
10958         rm -rf libconftest.dylib*
10959         echo "int foo(void){return 1;}" > conftest.c
10960         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10961 -dynamiclib -Wl,-single_module conftest.c" >&5
10962         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10963           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10964         _lt_result=$?
10965         # If there is a non-empty error log, and "single_module"
10966         # appears in it, assume the flag caused a linker warning
10967         if test -s conftest.err && $GREP single_module conftest.err; then
10968           cat conftest.err >&5
10969         # Otherwise, if the output was created with a 0 exit code from
10970         # the compiler, it worked.
10971         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10972           lt_cv_apple_cc_single_mod=yes
10973         else
10974           cat conftest.err >&5
10975         fi
10976         rm -rf libconftest.dylib*
10977         rm -f conftest.*
10978       fi
10979 fi
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10981 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10982
10983     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10984 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10985 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10986   $as_echo_n "(cached) " >&6
10987 else
10988   lt_cv_ld_exported_symbols_list=no
10989       save_LDFLAGS=$LDFLAGS
10990       echo "_main" > conftest.sym
10991       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10992       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10993 /* end confdefs.h.  */
10994
10995 int main (void)
10996 {
10997
10998  ;
10999  return 0;
11000 }
11001 _ACEOF
11002 if ac_fn_c_try_link "$LINENO"; then :
11003   lt_cv_ld_exported_symbols_list=yes
11004 else
11005   lt_cv_ld_exported_symbols_list=no
11006 fi
11007 rm -f core conftest.err conftest.$ac_objext \
11008     conftest$ac_exeext conftest.$ac_ext
11009         LDFLAGS=$save_LDFLAGS
11010
11011 fi
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11013 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11014
11015     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11016 $as_echo_n "checking for -force_load linker flag... " >&6; }
11017 if ${lt_cv_ld_force_load+:} false; then :
11018   $as_echo_n "(cached) " >&6
11019 else
11020   lt_cv_ld_force_load=no
11021       cat > conftest.c << _LT_EOF
11022 int forced_loaded() { return 2;}
11023 _LT_EOF
11024       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11025       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11026       echo "$AR cru libconftest.a conftest.o" >&5
11027       $AR cru libconftest.a conftest.o 2>&5
11028       echo "$RANLIB libconftest.a" >&5
11029       $RANLIB libconftest.a 2>&5
11030       cat > conftest.c << _LT_EOF
11031 int main() { return 0;}
11032 _LT_EOF
11033       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11034       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11035       _lt_result=$?
11036       if test -s conftest.err && $GREP force_load conftest.err; then
11037         cat conftest.err >&5
11038       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11039         lt_cv_ld_force_load=yes
11040       else
11041         cat conftest.err >&5
11042       fi
11043         rm -f conftest.err libconftest.a conftest conftest.c
11044         rm -rf conftest.dSYM
11045
11046 fi
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11048 $as_echo "$lt_cv_ld_force_load" >&6; }
11049     case $host_os in
11050     rhapsody* | darwin1.[012])
11051       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11052     darwin1.*)
11053       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11054     darwin*) # darwin 5.x on
11055       # if running on 10.5 or later, the deployment target defaults
11056       # to the OS version, if on x86, and 10.4, the deployment
11057       # target defaults to 10.4. Don't you love it?
11058       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11059         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11060           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11061         10.[012][,.]*)
11062           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11063         10.*)
11064           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11065       esac
11066     ;;
11067   esac
11068     if test yes = "$lt_cv_apple_cc_single_mod"; then
11069       _lt_dar_single_mod='$single_module'
11070     fi
11071     if test yes = "$lt_cv_ld_exported_symbols_list"; then
11072       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11073     else
11074       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11075     fi
11076     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11077       _lt_dsymutil='~$DSYMUTIL $lib || :'
11078     else
11079       _lt_dsymutil=
11080     fi
11081     ;;
11082   esac
11083
11084 # func_munge_path_list VARIABLE PATH
11085 # -----------------------------------
11086 # VARIABLE is name of variable containing _space_ separated list of
11087 # directories to be munged by the contents of PATH, which is string
11088 # having a format:
11089 # "DIR[:DIR]:"
11090 #       string "DIR[ DIR]" will be prepended to VARIABLE
11091 # ":DIR[:DIR]"
11092 #       string "DIR[ DIR]" will be appended to VARIABLE
11093 # "DIRP[:DIRP]::[DIRA:]DIRA"
11094 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11095 #       "DIRA[ DIRA]" will be appended to VARIABLE
11096 # "DIR[:DIR]"
11097 #       VARIABLE will be replaced by "DIR[ DIR]"
11098 func_munge_path_list ()
11099 {
11100     case x$2 in
11101     x)
11102         ;;
11103     *:)
11104         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11105         ;;
11106     x:*)
11107         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11108         ;;
11109     *::*)
11110         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11111         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11112         ;;
11113     *)
11114         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11115         ;;
11116     esac
11117 }
11118
11119 for ac_header in dlfcn.h
11120 do :
11121   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11122 "
11123 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11124   cat >>confdefs.h <<_ACEOF
11125 #define HAVE_DLFCN_H 1
11126 _ACEOF
11127
11128 fi
11129
11130 done
11131
11132 # ------------------------------------ #
11133 #  Determine libtool default behavior  #
11134 # ------------------------------------ #
11135
11136 #
11137 # Default behavior is to enable shared and static libraries on systems
11138 # where libtool knows how to build both library versions, and does not
11139 # require separate configuration and build runs for each flavor.
11140 #
11141
11142 xc_lt_want_enable_shared='yes'
11143 xc_lt_want_enable_static='yes'
11144
11145 #
11146 # User may have disabled shared or static libraries.
11147 #
11148 case "x$enable_shared" in # (
11149   xno)
11150     xc_lt_want_enable_shared='no'
11151     ;;
11152 esac
11153 case "x$enable_static" in # (
11154   xno)
11155     xc_lt_want_enable_static='no'
11156     ;;
11157 esac
11158 if test "x$xc_lt_want_enable_shared" = 'xno' &&
11159   test "x$xc_lt_want_enable_static" = 'xno'; then
11160   as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
11161 fi
11162
11163 #
11164 # Default behavior on systems that require independent configuration
11165 # and build runs for shared and static is to enable shared libraries
11166 # and disable static ones. On these systems option '--disable-shared'
11167 # must be used in order to build a proper static library.
11168 #
11169
11170 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
11171   test "x$xc_lt_want_enable_static" = 'xyes'; then
11172   case $host_os in # (
11173     pw32* | cegcc* | os2* | aix*)
11174       xc_lt_want_enable_static='no'
11175       ;;
11176   esac
11177 fi
11178
11179 #
11180 # Make libtool aware of current shared and static library preferences
11181 # taking in account that, depending on host characteristics, libtool
11182 # may modify these option preferences later in this configure script.
11183 #
11184
11185 enable_shared=$xc_lt_want_enable_shared
11186 enable_static=$xc_lt_want_enable_static
11187
11188 #
11189 # Default behavior is to build PIC objects for shared libraries and
11190 # non-PIC objects for static libraries.
11191 #
11192
11193 xc_lt_want_with_pic='default'
11194
11195 #
11196 # User may have specified PIC preference.
11197 #
11198
11199 case "x$with_pic" in # ((
11200   xno)
11201     xc_lt_want_with_pic='no'
11202     ;;
11203   xyes)
11204     xc_lt_want_with_pic='yes'
11205     ;;
11206 esac
11207
11208 #
11209 # Default behavior on some systems where building a shared library out
11210 # of non-PIC compiled objects will fail with following linker error
11211 # "relocation R_X86_64_32 can not be used when making a shared object"
11212 # is to build PIC objects even for static libraries. This behavior may
11213 # be overriden using 'configure --disable-shared --without-pic'.
11214 #
11215
11216 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
11217   case $host_cpu in # (
11218     x86_64 | amd64 | ia64)
11219       case $host_os in # (
11220         linux* | freebsd*)
11221           xc_lt_want_with_pic='yes'
11222           ;;
11223       esac
11224       ;;
11225   esac
11226 fi
11227
11228 #
11229 # Make libtool aware of current PIC preference taking in account that,
11230 # depending on host characteristics, libtool may modify PIC default
11231 # behavior to fit host system idiosyncrasies later in this script.
11232 #
11233
11234 with_pic=$xc_lt_want_with_pic
11235
11236 ## ----------------------- ##
11237 ##  Start of libtool code  ##
11238 ## ----------------------- ##
11239
11240
11241
11242
11243 # Set options
11244 enable_win32_dll=yes
11245
11246 case $host in
11247 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11248   if test -n "$ac_tool_prefix"; then
11249   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11250 set dummy ${ac_tool_prefix}as; ac_word=$2
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11252 $as_echo_n "checking for $ac_word... " >&6; }
11253 if ${ac_cv_prog_AS+:} false; then :
11254   $as_echo_n "(cached) " >&6
11255 else
11256   if test -n "$AS"; then
11257   ac_cv_prog_AS="$AS" # Let the user override the test.
11258 else
11259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260 for as_dir in $PATH
11261 do
11262   IFS=$as_save_IFS
11263   test -z "$as_dir" && as_dir=.
11264     for ac_exec_ext in '' $ac_executable_extensions; do
11265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11266     ac_cv_prog_AS="${ac_tool_prefix}as"
11267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11268     break 2
11269   fi
11270 done
11271   done
11272 IFS=$as_save_IFS
11273
11274 fi
11275 fi
11276 AS=$ac_cv_prog_AS
11277 if test -n "$AS"; then
11278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11279 $as_echo "$AS" >&6; }
11280 else
11281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11282 $as_echo "no" >&6; }
11283 fi
11284
11285
11286 fi
11287 if test -z "$ac_cv_prog_AS"; then
11288   ac_ct_AS=$AS
11289   # Extract the first word of "as", so it can be a program name with args.
11290 set dummy as; ac_word=$2
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11292 $as_echo_n "checking for $ac_word... " >&6; }
11293 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11294   $as_echo_n "(cached) " >&6
11295 else
11296   if test -n "$ac_ct_AS"; then
11297   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11298 else
11299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300 for as_dir in $PATH
11301 do
11302   IFS=$as_save_IFS
11303   test -z "$as_dir" && as_dir=.
11304     for ac_exec_ext in '' $ac_executable_extensions; do
11305   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11306     ac_cv_prog_ac_ct_AS="as"
11307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11308     break 2
11309   fi
11310 done
11311   done
11312 IFS=$as_save_IFS
11313
11314 fi
11315 fi
11316 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11317 if test -n "$ac_ct_AS"; then
11318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11319 $as_echo "$ac_ct_AS" >&6; }
11320 else
11321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11322 $as_echo "no" >&6; }
11323 fi
11324
11325   if test "x$ac_ct_AS" = x; then
11326     AS="false"
11327   else
11328     case $cross_compiling:$ac_tool_warned in
11329 yes:)
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11332 ac_tool_warned=yes ;;
11333 esac
11334     AS=$ac_ct_AS
11335   fi
11336 else
11337   AS="$ac_cv_prog_AS"
11338 fi
11339
11340   if test -n "$ac_tool_prefix"; then
11341   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11342 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11344 $as_echo_n "checking for $ac_word... " >&6; }
11345 if ${ac_cv_prog_DLLTOOL+:} false; then :
11346   $as_echo_n "(cached) " >&6
11347 else
11348   if test -n "$DLLTOOL"; then
11349   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11350 else
11351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352 for as_dir in $PATH
11353 do
11354   IFS=$as_save_IFS
11355   test -z "$as_dir" && as_dir=.
11356     for ac_exec_ext in '' $ac_executable_extensions; do
11357   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11358     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11360     break 2
11361   fi
11362 done
11363   done
11364 IFS=$as_save_IFS
11365
11366 fi
11367 fi
11368 DLLTOOL=$ac_cv_prog_DLLTOOL
11369 if test -n "$DLLTOOL"; then
11370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11371 $as_echo "$DLLTOOL" >&6; }
11372 else
11373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374 $as_echo "no" >&6; }
11375 fi
11376
11377
11378 fi
11379 if test -z "$ac_cv_prog_DLLTOOL"; then
11380   ac_ct_DLLTOOL=$DLLTOOL
11381   # Extract the first word of "dlltool", so it can be a program name with args.
11382 set dummy dlltool; ac_word=$2
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11384 $as_echo_n "checking for $ac_word... " >&6; }
11385 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11386   $as_echo_n "(cached) " >&6
11387 else
11388   if test -n "$ac_ct_DLLTOOL"; then
11389   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11390 else
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11393 do
11394   IFS=$as_save_IFS
11395   test -z "$as_dir" && as_dir=.
11396     for ac_exec_ext in '' $ac_executable_extensions; do
11397   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11398     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11400     break 2
11401   fi
11402 done
11403   done
11404 IFS=$as_save_IFS
11405
11406 fi
11407 fi
11408 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11409 if test -n "$ac_ct_DLLTOOL"; then
11410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11411 $as_echo "$ac_ct_DLLTOOL" >&6; }
11412 else
11413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414 $as_echo "no" >&6; }
11415 fi
11416
11417   if test "x$ac_ct_DLLTOOL" = x; then
11418     DLLTOOL="false"
11419   else
11420     case $cross_compiling:$ac_tool_warned in
11421 yes:)
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11424 ac_tool_warned=yes ;;
11425 esac
11426     DLLTOOL=$ac_ct_DLLTOOL
11427   fi
11428 else
11429   DLLTOOL="$ac_cv_prog_DLLTOOL"
11430 fi
11431
11432   if test -n "$ac_tool_prefix"; then
11433   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11434 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11436 $as_echo_n "checking for $ac_word... " >&6; }
11437 if ${ac_cv_prog_OBJDUMP+:} false; then :
11438   $as_echo_n "(cached) " >&6
11439 else
11440   if test -n "$OBJDUMP"; then
11441   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11442 else
11443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11444 for as_dir in $PATH
11445 do
11446   IFS=$as_save_IFS
11447   test -z "$as_dir" && as_dir=.
11448     for ac_exec_ext in '' $ac_executable_extensions; do
11449   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11450     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11452     break 2
11453   fi
11454 done
11455   done
11456 IFS=$as_save_IFS
11457
11458 fi
11459 fi
11460 OBJDUMP=$ac_cv_prog_OBJDUMP
11461 if test -n "$OBJDUMP"; then
11462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11463 $as_echo "$OBJDUMP" >&6; }
11464 else
11465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11466 $as_echo "no" >&6; }
11467 fi
11468
11469
11470 fi
11471 if test -z "$ac_cv_prog_OBJDUMP"; then
11472   ac_ct_OBJDUMP=$OBJDUMP
11473   # Extract the first word of "objdump", so it can be a program name with args.
11474 set dummy objdump; ac_word=$2
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11476 $as_echo_n "checking for $ac_word... " >&6; }
11477 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11478   $as_echo_n "(cached) " >&6
11479 else
11480   if test -n "$ac_ct_OBJDUMP"; then
11481   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11482 else
11483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11484 for as_dir in $PATH
11485 do
11486   IFS=$as_save_IFS
11487   test -z "$as_dir" && as_dir=.
11488     for ac_exec_ext in '' $ac_executable_extensions; do
11489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11490     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11492     break 2
11493   fi
11494 done
11495   done
11496 IFS=$as_save_IFS
11497
11498 fi
11499 fi
11500 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11501 if test -n "$ac_ct_OBJDUMP"; then
11502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11503 $as_echo "$ac_ct_OBJDUMP" >&6; }
11504 else
11505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11506 $as_echo "no" >&6; }
11507 fi
11508
11509   if test "x$ac_ct_OBJDUMP" = x; then
11510     OBJDUMP="false"
11511   else
11512     case $cross_compiling:$ac_tool_warned in
11513 yes:)
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11516 ac_tool_warned=yes ;;
11517 esac
11518     OBJDUMP=$ac_ct_OBJDUMP
11519   fi
11520 else
11521   OBJDUMP="$ac_cv_prog_OBJDUMP"
11522 fi
11523
11524   ;;
11525 esac
11526
11527 test -z "$AS" && AS=as
11528
11529
11530
11531
11532
11533 test -z "$DLLTOOL" && DLLTOOL=dlltool
11534
11535
11536
11537
11538
11539 test -z "$OBJDUMP" && OBJDUMP=objdump
11540
11541
11542
11543
11544
11545
11546
11547         enable_dlopen=no
11548
11549
11550
11551             # Check whether --enable-shared was given.
11552 if test "${enable_shared+set}" = set; then :
11553   enableval=$enable_shared; p=${PACKAGE-default}
11554     case $enableval in
11555     yes) enable_shared=yes ;;
11556     no) enable_shared=no ;;
11557     *)
11558       enable_shared=no
11559       # Look at the argument we got.  We use all the common list separators.
11560       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11561       for pkg in $enableval; do
11562         IFS=$lt_save_ifs
11563         if test "X$pkg" = "X$p"; then
11564           enable_shared=yes
11565         fi
11566       done
11567       IFS=$lt_save_ifs
11568       ;;
11569     esac
11570 else
11571   enable_shared=yes
11572 fi
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582   # Check whether --enable-static was given.
11583 if test "${enable_static+set}" = set; then :
11584   enableval=$enable_static; p=${PACKAGE-default}
11585     case $enableval in
11586     yes) enable_static=yes ;;
11587     no) enable_static=no ;;
11588     *)
11589      enable_static=no
11590       # Look at the argument we got.  We use all the common list separators.
11591       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11592       for pkg in $enableval; do
11593         IFS=$lt_save_ifs
11594         if test "X$pkg" = "X$p"; then
11595           enable_static=yes
11596         fi
11597       done
11598       IFS=$lt_save_ifs
11599       ;;
11600     esac
11601 else
11602   enable_static=yes
11603 fi
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614 # Check whether --with-pic was given.
11615 if test "${with_pic+set}" = set; then :
11616   withval=$with_pic; lt_p=${PACKAGE-default}
11617     case $withval in
11618     yes|no) pic_mode=$withval ;;
11619     *)
11620       pic_mode=default
11621       # Look at the argument we got.  We use all the common list separators.
11622       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11623       for lt_pkg in $withval; do
11624         IFS=$lt_save_ifs
11625         if test "X$lt_pkg" = "X$lt_p"; then
11626           pic_mode=yes
11627         fi
11628       done
11629       IFS=$lt_save_ifs
11630       ;;
11631     esac
11632 else
11633   pic_mode=default
11634 fi
11635
11636
11637
11638
11639
11640
11641
11642
11643   # Check whether --enable-fast-install was given.
11644 if test "${enable_fast_install+set}" = set; then :
11645   enableval=$enable_fast_install; p=${PACKAGE-default}
11646     case $enableval in
11647     yes) enable_fast_install=yes ;;
11648     no) enable_fast_install=no ;;
11649     *)
11650       enable_fast_install=no
11651       # Look at the argument we got.  We use all the common list separators.
11652       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11653       for pkg in $enableval; do
11654         IFS=$lt_save_ifs
11655         if test "X$pkg" = "X$p"; then
11656           enable_fast_install=yes
11657         fi
11658       done
11659       IFS=$lt_save_ifs
11660       ;;
11661     esac
11662 else
11663   enable_fast_install=yes
11664 fi
11665
11666
11667
11668
11669
11670
11671
11672
11673   shared_archive_member_spec=
11674 case $host,$enable_shared in
11675 power*-*-aix[5-9]*,yes)
11676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11677 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11678
11679 # Check whether --with-aix-soname was given.
11680 if test "${with_aix_soname+set}" = set; then :
11681   withval=$with_aix_soname; case $withval in
11682     aix|svr4|both)
11683       ;;
11684     *)
11685       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11686       ;;
11687     esac
11688     lt_cv_with_aix_soname=$with_aix_soname
11689 else
11690   if ${lt_cv_with_aix_soname+:} false; then :
11691   $as_echo_n "(cached) " >&6
11692 else
11693   lt_cv_with_aix_soname=aix
11694 fi
11695
11696     with_aix_soname=$lt_cv_with_aix_soname
11697 fi
11698
11699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11700 $as_echo "$with_aix_soname" >&6; }
11701   if test aix != "$with_aix_soname"; then
11702     # For the AIX way of multilib, we name the shared archive member
11703     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11704     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11705     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11706     # the AIX toolchain works better with OBJECT_MODE set (default 32).
11707     if test 64 = "${OBJECT_MODE-32}"; then
11708       shared_archive_member_spec=shr_64
11709     else
11710       shared_archive_member_spec=shr
11711     fi
11712   fi
11713   ;;
11714 *)
11715   with_aix_soname=aix
11716   ;;
11717 esac
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728 # This can be used to rebuild libtool when needed
11729 LIBTOOL_DEPS=$ltmain
11730
11731 # Always use our own libtool.
11732 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763 test -z "$LN_S" && LN_S="ln -s"
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778 if test -n "${ZSH_VERSION+set}"; then
11779    setopt NO_GLOB_SUBST
11780 fi
11781
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11783 $as_echo_n "checking for objdir... " >&6; }
11784 if ${lt_cv_objdir+:} false; then :
11785   $as_echo_n "(cached) " >&6
11786 else
11787   rm -f .libs 2>/dev/null
11788 mkdir .libs 2>/dev/null
11789 if test -d .libs; then
11790   lt_cv_objdir=.libs
11791 else
11792   # MS-DOS does not allow filenames that begin with a dot.
11793   lt_cv_objdir=_libs
11794 fi
11795 rmdir .libs 2>/dev/null
11796 fi
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11798 $as_echo "$lt_cv_objdir" >&6; }
11799 objdir=$lt_cv_objdir
11800
11801
11802
11803
11804
11805 cat >>confdefs.h <<_ACEOF
11806 #define LT_OBJDIR "$lt_cv_objdir/"
11807 _ACEOF
11808
11809
11810
11811
11812 case $host_os in
11813 aix3*)
11814   # AIX sometimes has problems with the GCC collect2 program.  For some
11815   # reason, if we set the COLLECT_NAMES environment variable, the problems
11816   # vanish in a puff of smoke.
11817   if test set != "${COLLECT_NAMES+set}"; then
11818     COLLECT_NAMES=
11819     export COLLECT_NAMES
11820   fi
11821   ;;
11822 esac
11823
11824 # Global variables:
11825 ofile=libtool
11826 can_build_shared=yes
11827
11828 # All known linkers require a '.a' archive for static linking (except MSVC,
11829 # which needs '.lib').
11830 libext=a
11831
11832 with_gnu_ld=$lt_cv_prog_gnu_ld
11833
11834 old_CC=$CC
11835 old_CFLAGS=$CFLAGS
11836
11837 # Set sane defaults for various variables
11838 test -z "$CC" && CC=cc
11839 test -z "$LTCC" && LTCC=$CC
11840 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11841 test -z "$LD" && LD=ld
11842 test -z "$ac_objext" && ac_objext=o
11843
11844 func_cc_basename $compiler
11845 cc_basename=$func_cc_basename_result
11846
11847
11848 # Only perform the check for file, if the check method requires it
11849 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11850 case $deplibs_check_method in
11851 file_magic*)
11852   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11853     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11854 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11855 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11856   $as_echo_n "(cached) " >&6
11857 else
11858   case $MAGIC_CMD in
11859 [\\/*] |  ?:[\\/]*)
11860   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11861   ;;
11862 *)
11863   lt_save_MAGIC_CMD=$MAGIC_CMD
11864   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11865   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11866   for ac_dir in $ac_dummy; do
11867     IFS=$lt_save_ifs
11868     test -z "$ac_dir" && ac_dir=.
11869     if test -f "$ac_dir/${ac_tool_prefix}file"; then
11870       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11871       if test -n "$file_magic_test_file"; then
11872         case $deplibs_check_method in
11873         "file_magic "*)
11874           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11875           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11876           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11877             $EGREP "$file_magic_regex" > /dev/null; then
11878             :
11879           else
11880             cat <<_LT_EOF 1>&2
11881
11882 *** Warning: the command libtool uses to detect shared libraries,
11883 *** $file_magic_cmd, produces output that libtool cannot recognize.
11884 *** The result is that libtool may fail to recognize shared libraries
11885 *** as such.  This will affect the creation of libtool libraries that
11886 *** depend on shared libraries, but programs linked with such libtool
11887 *** libraries will work regardless of this problem.  Nevertheless, you
11888 *** may want to report the problem to your system manager and/or to
11889 *** bug-libtool@gnu.org
11890
11891 _LT_EOF
11892           fi ;;
11893         esac
11894       fi
11895       break
11896     fi
11897   done
11898   IFS=$lt_save_ifs
11899   MAGIC_CMD=$lt_save_MAGIC_CMD
11900   ;;
11901 esac
11902 fi
11903
11904 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11905 if test -n "$MAGIC_CMD"; then
11906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11907 $as_echo "$MAGIC_CMD" >&6; }
11908 else
11909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11910 $as_echo "no" >&6; }
11911 fi
11912
11913
11914
11915
11916
11917 if test -z "$lt_cv_path_MAGIC_CMD"; then
11918   if test -n "$ac_tool_prefix"; then
11919     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11920 $as_echo_n "checking for file... " >&6; }
11921 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11922   $as_echo_n "(cached) " >&6
11923 else
11924   case $MAGIC_CMD in
11925 [\\/*] |  ?:[\\/]*)
11926   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11927   ;;
11928 *)
11929   lt_save_MAGIC_CMD=$MAGIC_CMD
11930   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11931   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11932   for ac_dir in $ac_dummy; do
11933     IFS=$lt_save_ifs
11934     test -z "$ac_dir" && ac_dir=.
11935     if test -f "$ac_dir/file"; then
11936       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11937       if test -n "$file_magic_test_file"; then
11938         case $deplibs_check_method in
11939         "file_magic "*)
11940           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11941           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11942           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11943             $EGREP "$file_magic_regex" > /dev/null; then
11944             :
11945           else
11946             cat <<_LT_EOF 1>&2
11947
11948 *** Warning: the command libtool uses to detect shared libraries,
11949 *** $file_magic_cmd, produces output that libtool cannot recognize.
11950 *** The result is that libtool may fail to recognize shared libraries
11951 *** as such.  This will affect the creation of libtool libraries that
11952 *** depend on shared libraries, but programs linked with such libtool
11953 *** libraries will work regardless of this problem.  Nevertheless, you
11954 *** may want to report the problem to your system manager and/or to
11955 *** bug-libtool@gnu.org
11956
11957 _LT_EOF
11958           fi ;;
11959         esac
11960       fi
11961       break
11962     fi
11963   done
11964   IFS=$lt_save_ifs
11965   MAGIC_CMD=$lt_save_MAGIC_CMD
11966   ;;
11967 esac
11968 fi
11969
11970 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11971 if test -n "$MAGIC_CMD"; then
11972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11973 $as_echo "$MAGIC_CMD" >&6; }
11974 else
11975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11976 $as_echo "no" >&6; }
11977 fi
11978
11979
11980   else
11981     MAGIC_CMD=:
11982   fi
11983 fi
11984
11985   fi
11986   ;;
11987 esac
11988
11989 # Use C for the default configuration in the libtool script
11990
11991 lt_save_CC=$CC
11992 ac_ext=c
11993 ac_cpp='$CPP $CPPFLAGS'
11994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11997
11998
11999 # Source file extension for C test sources.
12000 ac_ext=c
12001
12002 # Object file extension for compiled C test sources.
12003 objext=o
12004 objext=$objext
12005
12006 # Code to be used in simple compile tests
12007 lt_simple_compile_test_code="int some_variable = 0;"
12008
12009 # Code to be used in simple link tests
12010 lt_simple_link_test_code='int main(){return(0);}'
12011
12012
12013
12014
12015
12016
12017
12018 # If no C compiler was specified, use CC.
12019 LTCC=${LTCC-"$CC"}
12020
12021 # If no C compiler flags were specified, use CFLAGS.
12022 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12023
12024 # Allow CC to be a program name with arguments.
12025 compiler=$CC
12026
12027 # Save the default compiler, since it gets overwritten when the other
12028 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12029 compiler_DEFAULT=$CC
12030
12031 # save warnings/boilerplate of simple test code
12032 ac_outfile=conftest.$ac_objext
12033 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12034 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12035 _lt_compiler_boilerplate=`cat conftest.err`
12036 $RM conftest*
12037
12038 ac_outfile=conftest.$ac_objext
12039 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12040 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12041 _lt_linker_boilerplate=`cat conftest.err`
12042 $RM -r conftest*
12043
12044
12045 ## CAVEAT EMPTOR:
12046 ## There is no encapsulation within the following macros, do not change
12047 ## the running order or otherwise move them around unless you know exactly
12048 ## what you are doing...
12049 if test -n "$compiler"; then
12050
12051 lt_prog_compiler_no_builtin_flag=
12052
12053 if test yes = "$GCC"; then
12054   case $cc_basename in
12055   nvcc*)
12056     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12057   *)
12058     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12059   esac
12060
12061   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12062 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12063 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12064   $as_echo_n "(cached) " >&6
12065 else
12066   lt_cv_prog_compiler_rtti_exceptions=no
12067    ac_outfile=conftest.$ac_objext
12068    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12069    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
12070    # Insert the option either (1) after the last *FLAGS variable, or
12071    # (2) before a word containing "conftest.", or (3) at the end.
12072    # Note that $ac_compile itself does not contain backslashes and begins
12073    # with a dollar sign (not a hyphen), so the echo should work correctly.
12074    # The option is referenced via a variable to avoid confusing sed.
12075    lt_compile=`echo "$ac_compile" | $SED \
12076    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12077    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12078    -e 's:$: $lt_compiler_flag:'`
12079    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12080    (eval "$lt_compile" 2>conftest.err)
12081    ac_status=$?
12082    cat conftest.err >&5
12083    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084    if (exit $ac_status) && test -s "$ac_outfile"; then
12085      # The compiler can only warn and ignore the option if not recognized
12086      # So say no if there are warnings other than the usual output.
12087      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12088      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12089      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12090        lt_cv_prog_compiler_rtti_exceptions=yes
12091      fi
12092    fi
12093    $RM conftest*
12094
12095 fi
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12097 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12098
12099 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12100     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12101 else
12102     :
12103 fi
12104
12105 fi
12106
12107
12108
12109
12110
12111
12112   lt_prog_compiler_wl=
12113 lt_prog_compiler_pic=
12114 lt_prog_compiler_static=
12115
12116
12117   if test yes = "$GCC"; then
12118     lt_prog_compiler_wl='-Wl,'
12119     lt_prog_compiler_static='-static'
12120
12121     case $host_os in
12122       aix*)
12123       # All AIX code is PIC.
12124       if test ia64 = "$host_cpu"; then
12125         # AIX 5 now supports IA64 processor
12126         lt_prog_compiler_static='-Bstatic'
12127       fi
12128       lt_prog_compiler_pic='-fPIC'
12129       ;;
12130
12131     amigaos*)
12132       case $host_cpu in
12133       powerpc)
12134             # see comment about AmigaOS4 .so support
12135             lt_prog_compiler_pic='-fPIC'
12136         ;;
12137       m68k)
12138             # FIXME: we need at least 68020 code to build shared libraries, but
12139             # adding the '-m68020' flag to GCC prevents building anything better,
12140             # like '-m68040'.
12141             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12142         ;;
12143       esac
12144       ;;
12145
12146     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12147       # PIC is the default for these OSes.
12148       ;;
12149
12150     mingw* | cygwin* | pw32* | os2* | cegcc*)
12151       # This hack is so that the source file can tell whether it is being
12152       # built for inclusion in a dll (and should export symbols for example).
12153       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12154       # (--disable-auto-import) libraries
12155       lt_prog_compiler_pic='-DDLL_EXPORT'
12156       case $host_os in
12157       os2*)
12158         lt_prog_compiler_static='$wl-static'
12159         ;;
12160       esac
12161       ;;
12162
12163     darwin* | rhapsody*)
12164       # PIC is the default on this platform
12165       # Common symbols not allowed in MH_DYLIB files
12166       lt_prog_compiler_pic='-fno-common'
12167       ;;
12168
12169     haiku*)
12170       # PIC is the default for Haiku.
12171       # The "-static" flag exists, but is broken.
12172       lt_prog_compiler_static=
12173       ;;
12174
12175     hpux*)
12176       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12177       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12178       # sets the default TLS model and affects inlining.
12179       case $host_cpu in
12180       hppa*64*)
12181         # +Z the default
12182         ;;
12183       *)
12184         lt_prog_compiler_pic='-fPIC'
12185         ;;
12186       esac
12187       ;;
12188
12189     interix[3-9]*)
12190       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12191       # Instead, we relocate shared libraries at runtime.
12192       ;;
12193
12194     msdosdjgpp*)
12195       # Just because we use GCC doesn't mean we suddenly get shared libraries
12196       # on systems that don't support them.
12197       lt_prog_compiler_can_build_shared=no
12198       enable_shared=no
12199       ;;
12200
12201     *nto* | *qnx*)
12202       # QNX uses GNU C++, but need to define -shared option too, otherwise
12203       # it will coredump.
12204       lt_prog_compiler_pic='-fPIC -shared'
12205       ;;
12206
12207     sysv4*MP*)
12208       if test -d /usr/nec; then
12209         lt_prog_compiler_pic=-Kconform_pic
12210       fi
12211       ;;
12212
12213     *)
12214       lt_prog_compiler_pic='-fPIC'
12215       ;;
12216     esac
12217
12218     case $cc_basename in
12219     nvcc*) # Cuda Compiler Driver 2.2
12220       lt_prog_compiler_wl='-Xlinker '
12221       if test -n "$lt_prog_compiler_pic"; then
12222         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12223       fi
12224       ;;
12225     esac
12226   else
12227     # PORTME Check for flag to pass linker flags through the system compiler.
12228     case $host_os in
12229     aix*)
12230       lt_prog_compiler_wl='-Wl,'
12231       if test ia64 = "$host_cpu"; then
12232         # AIX 5 now supports IA64 processor
12233         lt_prog_compiler_static='-Bstatic'
12234       else
12235         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12236       fi
12237       ;;
12238
12239     darwin* | rhapsody*)
12240       # PIC is the default on this platform
12241       # Common symbols not allowed in MH_DYLIB files
12242       lt_prog_compiler_pic='-fno-common'
12243       case $cc_basename in
12244       nagfor*)
12245         # NAG Fortran compiler
12246         lt_prog_compiler_wl='-Wl,-Wl,,'
12247         lt_prog_compiler_pic='-PIC'
12248         lt_prog_compiler_static='-Bstatic'
12249         ;;
12250       esac
12251       ;;
12252
12253     mingw* | cygwin* | pw32* | os2* | cegcc*)
12254       # This hack is so that the source file can tell whether it is being
12255       # built for inclusion in a dll (and should export symbols for example).
12256       lt_prog_compiler_pic='-DDLL_EXPORT'
12257       case $host_os in
12258       os2*)
12259         lt_prog_compiler_static='$wl-static'
12260         ;;
12261       esac
12262       ;;
12263
12264     hpux9* | hpux10* | hpux11*)
12265       lt_prog_compiler_wl='-Wl,'
12266       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12267       # not for PA HP-UX.
12268       case $host_cpu in
12269       hppa*64*|ia64*)
12270         # +Z the default
12271         ;;
12272       *)
12273         lt_prog_compiler_pic='+Z'
12274         ;;
12275       esac
12276       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12277       lt_prog_compiler_static='$wl-a ${wl}archive'
12278       ;;
12279
12280     irix5* | irix6* | nonstopux*)
12281       lt_prog_compiler_wl='-Wl,'
12282       # PIC (with -KPIC) is the default.
12283       lt_prog_compiler_static='-non_shared'
12284       ;;
12285
12286     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12287       case $cc_basename in
12288       # old Intel for x86_64, which still supported -KPIC.
12289       ecc*)
12290         lt_prog_compiler_wl='-Wl,'
12291         lt_prog_compiler_pic='-KPIC'
12292         lt_prog_compiler_static='-static'
12293         ;;
12294       # icc used to be incompatible with GCC.
12295       # ICC 10 doesn't accept -KPIC any more.
12296       icc* | ifort*)
12297         lt_prog_compiler_wl='-Wl,'
12298         lt_prog_compiler_pic='-fPIC'
12299         lt_prog_compiler_static='-static'
12300         ;;
12301       # Lahey Fortran 8.1.
12302       lf95*)
12303         lt_prog_compiler_wl='-Wl,'
12304         lt_prog_compiler_pic='--shared'
12305         lt_prog_compiler_static='--static'
12306         ;;
12307       nagfor*)
12308         # NAG Fortran compiler
12309         lt_prog_compiler_wl='-Wl,-Wl,,'
12310         lt_prog_compiler_pic='-PIC'
12311         lt_prog_compiler_static='-Bstatic'
12312         ;;
12313       tcc*)
12314         # Fabrice Bellard et al's Tiny C Compiler
12315         lt_prog_compiler_wl='-Wl,'
12316         lt_prog_compiler_pic='-fPIC'
12317         lt_prog_compiler_static='-static'
12318         ;;
12319       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12320         # Portland Group compilers (*not* the Pentium gcc compiler,
12321         # which looks to be a dead project)
12322         lt_prog_compiler_wl='-Wl,'
12323         lt_prog_compiler_pic='-fpic'
12324         lt_prog_compiler_static='-Bstatic'
12325         ;;
12326       ccc*)
12327         lt_prog_compiler_wl='-Wl,'
12328         # All Alpha code is PIC.
12329         lt_prog_compiler_static='-non_shared'
12330         ;;
12331       xl* | bgxl* | bgf* | mpixl*)
12332         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12333         lt_prog_compiler_wl='-Wl,'
12334         lt_prog_compiler_pic='-qpic'
12335         lt_prog_compiler_static='-qstaticlink'
12336         ;;
12337       *)
12338         case `$CC -V 2>&1 | sed 5q` in
12339         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12340           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12341           lt_prog_compiler_pic='-KPIC'
12342           lt_prog_compiler_static='-Bstatic'
12343           lt_prog_compiler_wl=''
12344           ;;
12345         *Sun\ F* | *Sun*Fortran*)
12346           lt_prog_compiler_pic='-KPIC'
12347           lt_prog_compiler_static='-Bstatic'
12348           lt_prog_compiler_wl='-Qoption ld '
12349           ;;
12350         *Sun\ C*)
12351           # Sun C 5.9
12352           lt_prog_compiler_pic='-KPIC'
12353           lt_prog_compiler_static='-Bstatic'
12354           lt_prog_compiler_wl='-Wl,'
12355           ;;
12356         *Intel*\ [CF]*Compiler*)
12357           lt_prog_compiler_wl='-Wl,'
12358           lt_prog_compiler_pic='-fPIC'
12359           lt_prog_compiler_static='-static'
12360           ;;
12361         *Portland\ Group*)
12362           lt_prog_compiler_wl='-Wl,'
12363           lt_prog_compiler_pic='-fpic'
12364           lt_prog_compiler_static='-Bstatic'
12365           ;;
12366         esac
12367         ;;
12368       esac
12369       ;;
12370
12371     newsos6)
12372       lt_prog_compiler_pic='-KPIC'
12373       lt_prog_compiler_static='-Bstatic'
12374       ;;
12375
12376     *nto* | *qnx*)
12377       # QNX uses GNU C++, but need to define -shared option too, otherwise
12378       # it will coredump.
12379       lt_prog_compiler_pic='-fPIC -shared'
12380       ;;
12381
12382     osf3* | osf4* | osf5*)
12383       lt_prog_compiler_wl='-Wl,'
12384       # All OSF/1 code is PIC.
12385       lt_prog_compiler_static='-non_shared'
12386       ;;
12387
12388     rdos*)
12389       lt_prog_compiler_static='-non_shared'
12390       ;;
12391
12392     solaris*)
12393       lt_prog_compiler_pic='-KPIC'
12394       lt_prog_compiler_static='-Bstatic'
12395       case $cc_basename in
12396       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12397         lt_prog_compiler_wl='-Qoption ld ';;
12398       *)
12399         lt_prog_compiler_wl='-Wl,';;
12400       esac
12401       ;;
12402
12403     sunos4*)
12404       lt_prog_compiler_wl='-Qoption ld '
12405       lt_prog_compiler_pic='-PIC'
12406       lt_prog_compiler_static='-Bstatic'
12407       ;;
12408
12409     sysv4 | sysv4.2uw2* | sysv4.3*)
12410       lt_prog_compiler_wl='-Wl,'
12411       lt_prog_compiler_pic='-KPIC'
12412       lt_prog_compiler_static='-Bstatic'
12413       ;;
12414
12415     sysv4*MP*)
12416       if test -d /usr/nec; then
12417         lt_prog_compiler_pic='-Kconform_pic'
12418         lt_prog_compiler_static='-Bstatic'
12419       fi
12420       ;;
12421
12422     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12423       lt_prog_compiler_wl='-Wl,'
12424       lt_prog_compiler_pic='-KPIC'
12425       lt_prog_compiler_static='-Bstatic'
12426       ;;
12427
12428     unicos*)
12429       lt_prog_compiler_wl='-Wl,'
12430       lt_prog_compiler_can_build_shared=no
12431       ;;
12432
12433     uts4*)
12434       lt_prog_compiler_pic='-pic'
12435       lt_prog_compiler_static='-Bstatic'
12436       ;;
12437
12438     *)
12439       lt_prog_compiler_can_build_shared=no
12440       ;;
12441     esac
12442   fi
12443
12444 case $host_os in
12445   # For platforms that do not support PIC, -DPIC is meaningless:
12446   *djgpp*)
12447     lt_prog_compiler_pic=
12448     ;;
12449   *)
12450     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12451     ;;
12452 esac
12453
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12455 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12456 if ${lt_cv_prog_compiler_pic+:} false; then :
12457   $as_echo_n "(cached) " >&6
12458 else
12459   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12460 fi
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12462 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12463 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12464
12465 #
12466 # Check to make sure the PIC flag actually works.
12467 #
12468 if test -n "$lt_prog_compiler_pic"; then
12469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12470 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12471 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12472   $as_echo_n "(cached) " >&6
12473 else
12474   lt_cv_prog_compiler_pic_works=no
12475    ac_outfile=conftest.$ac_objext
12476    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12477    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
12478    # Insert the option either (1) after the last *FLAGS variable, or
12479    # (2) before a word containing "conftest.", or (3) at the end.
12480    # Note that $ac_compile itself does not contain backslashes and begins
12481    # with a dollar sign (not a hyphen), so the echo should work correctly.
12482    # The option is referenced via a variable to avoid confusing sed.
12483    lt_compile=`echo "$ac_compile" | $SED \
12484    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12485    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12486    -e 's:$: $lt_compiler_flag:'`
12487    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12488    (eval "$lt_compile" 2>conftest.err)
12489    ac_status=$?
12490    cat conftest.err >&5
12491    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492    if (exit $ac_status) && test -s "$ac_outfile"; then
12493      # The compiler can only warn and ignore the option if not recognized
12494      # So say no if there are warnings other than the usual output.
12495      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12496      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12497      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12498        lt_cv_prog_compiler_pic_works=yes
12499      fi
12500    fi
12501    $RM conftest*
12502
12503 fi
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12505 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12506
12507 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12508     case $lt_prog_compiler_pic in
12509      "" | " "*) ;;
12510      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12511      esac
12512 else
12513     lt_prog_compiler_pic=
12514      lt_prog_compiler_can_build_shared=no
12515 fi
12516
12517 fi
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529 #
12530 # Check to make sure the static flag actually works.
12531 #
12532 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12534 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12535 if ${lt_cv_prog_compiler_static_works+:} false; then :
12536   $as_echo_n "(cached) " >&6
12537 else
12538   lt_cv_prog_compiler_static_works=no
12539    save_LDFLAGS=$LDFLAGS
12540    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12541    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12542    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12543      # The linker can only warn and ignore the option if not recognized
12544      # So say no if there are warnings
12545      if test -s conftest.err; then
12546        # Append any errors to the config.log.
12547        cat conftest.err 1>&5
12548        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12549        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12550        if diff conftest.exp conftest.er2 >/dev/null; then
12551          lt_cv_prog_compiler_static_works=yes
12552        fi
12553      else
12554        lt_cv_prog_compiler_static_works=yes
12555      fi
12556    fi
12557    $RM -r conftest*
12558    LDFLAGS=$save_LDFLAGS
12559
12560 fi
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12562 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12563
12564 if test yes = "$lt_cv_prog_compiler_static_works"; then
12565     :
12566 else
12567     lt_prog_compiler_static=
12568 fi
12569
12570
12571
12572
12573
12574
12575
12576   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12577 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12578 if ${lt_cv_prog_compiler_c_o+:} false; then :
12579   $as_echo_n "(cached) " >&6
12580 else
12581   lt_cv_prog_compiler_c_o=no
12582    $RM -r conftest 2>/dev/null
12583    mkdir conftest
12584    cd conftest
12585    mkdir out
12586    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12587
12588    lt_compiler_flag="-o out/conftest2.$ac_objext"
12589    # Insert the option either (1) after the last *FLAGS variable, or
12590    # (2) before a word containing "conftest.", or (3) at the end.
12591    # Note that $ac_compile itself does not contain backslashes and begins
12592    # with a dollar sign (not a hyphen), so the echo should work correctly.
12593    lt_compile=`echo "$ac_compile" | $SED \
12594    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12595    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12596    -e 's:$: $lt_compiler_flag:'`
12597    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12598    (eval "$lt_compile" 2>out/conftest.err)
12599    ac_status=$?
12600    cat out/conftest.err >&5
12601    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12603    then
12604      # The compiler can only warn and ignore the option if not recognized
12605      # So say no if there are warnings
12606      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12607      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12608      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12609        lt_cv_prog_compiler_c_o=yes
12610      fi
12611    fi
12612    chmod u+w . 2>&5
12613    $RM conftest*
12614    # SGI C++ compiler will create directory out/ii_files/ for
12615    # template instantiation
12616    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12617    $RM out/* && rmdir out
12618    cd ..
12619    $RM -r conftest
12620    $RM conftest*
12621
12622 fi
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12624 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12625
12626
12627
12628
12629
12630
12631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12632 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12633 if ${lt_cv_prog_compiler_c_o+:} false; then :
12634   $as_echo_n "(cached) " >&6
12635 else
12636   lt_cv_prog_compiler_c_o=no
12637    $RM -r conftest 2>/dev/null
12638    mkdir conftest
12639    cd conftest
12640    mkdir out
12641    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12642
12643    lt_compiler_flag="-o out/conftest2.$ac_objext"
12644    # Insert the option either (1) after the last *FLAGS variable, or
12645    # (2) before a word containing "conftest.", or (3) at the end.
12646    # Note that $ac_compile itself does not contain backslashes and begins
12647    # with a dollar sign (not a hyphen), so the echo should work correctly.
12648    lt_compile=`echo "$ac_compile" | $SED \
12649    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12650    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12651    -e 's:$: $lt_compiler_flag:'`
12652    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12653    (eval "$lt_compile" 2>out/conftest.err)
12654    ac_status=$?
12655    cat out/conftest.err >&5
12656    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12658    then
12659      # The compiler can only warn and ignore the option if not recognized
12660      # So say no if there are warnings
12661      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12662      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12663      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12664        lt_cv_prog_compiler_c_o=yes
12665      fi
12666    fi
12667    chmod u+w . 2>&5
12668    $RM conftest*
12669    # SGI C++ compiler will create directory out/ii_files/ for
12670    # template instantiation
12671    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12672    $RM out/* && rmdir out
12673    cd ..
12674    $RM -r conftest
12675    $RM conftest*
12676
12677 fi
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12679 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12680
12681
12682
12683
12684 hard_links=nottested
12685 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12686   # do not overwrite the value of need_locks provided by the user
12687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12688 $as_echo_n "checking if we can lock with hard links... " >&6; }
12689   hard_links=yes
12690   $RM conftest*
12691   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12692   touch conftest.a
12693   ln conftest.a conftest.b 2>&5 || hard_links=no
12694   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12696 $as_echo "$hard_links" >&6; }
12697   if test no = "$hard_links"; then
12698     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12699 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12700     need_locks=warn
12701   fi
12702 else
12703   need_locks=no
12704 fi
12705
12706
12707
12708
12709
12710
12711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12712 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12713
12714   runpath_var=
12715   allow_undefined_flag=
12716   always_export_symbols=no
12717   archive_cmds=
12718   archive_expsym_cmds=
12719   compiler_needs_object=no
12720   enable_shared_with_static_runtimes=no
12721   export_dynamic_flag_spec=
12722   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12723   hardcode_automatic=no
12724   hardcode_direct=no
12725   hardcode_direct_absolute=no
12726   hardcode_libdir_flag_spec=
12727   hardcode_libdir_separator=
12728   hardcode_minus_L=no
12729   hardcode_shlibpath_var=unsupported
12730   inherit_rpath=no
12731   link_all_deplibs=unknown
12732   module_cmds=
12733   module_expsym_cmds=
12734   old_archive_from_new_cmds=
12735   old_archive_from_expsyms_cmds=
12736   thread_safe_flag_spec=
12737   whole_archive_flag_spec=
12738   # include_expsyms should be a list of space-separated symbols to be *always*
12739   # included in the symbol list
12740   include_expsyms=
12741   # exclude_expsyms can be an extended regexp of symbols to exclude
12742   # it will be wrapped by ' (' and ')$', so one must not match beginning or
12743   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12744   # as well as any symbol that contains 'd'.
12745   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12746   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12747   # platforms (ab)use it in PIC code, but their linkers get confused if
12748   # the symbol is explicitly referenced.  Since portable code cannot
12749   # rely on this symbol name, it's probably fine to never include it in
12750   # preloaded symbol tables.
12751   # Exclude shared library initialization/finalization symbols.
12752   extract_expsyms_cmds=
12753
12754   case $host_os in
12755   cygwin* | mingw* | pw32* | cegcc*)
12756     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12757     # When not using gcc, we currently assume that we are using
12758     # Microsoft Visual C++.
12759     if test yes != "$GCC"; then
12760       with_gnu_ld=no
12761     fi
12762     ;;
12763   interix*)
12764     # we just hope/assume this is gcc and not c89 (= MSVC++)
12765     with_gnu_ld=yes
12766     ;;
12767   openbsd* | bitrig*)
12768     with_gnu_ld=no
12769     ;;
12770   linux* | k*bsd*-gnu | gnu*)
12771     link_all_deplibs=no
12772     ;;
12773   esac
12774
12775   ld_shlibs=yes
12776
12777   # On some targets, GNU ld is compatible enough with the native linker
12778   # that we're better off using the native interface for both.
12779   lt_use_gnu_ld_interface=no
12780   if test yes = "$with_gnu_ld"; then
12781     case $host_os in
12782       aix*)
12783         # The AIX port of GNU ld has always aspired to compatibility
12784         # with the native linker.  However, as the warning in the GNU ld
12785         # block says, versions before 2.19.5* couldn't really create working
12786         # shared libraries, regardless of the interface used.
12787         case `$LD -v 2>&1` in
12788           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12789           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12790           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12791           *)
12792             lt_use_gnu_ld_interface=yes
12793             ;;
12794         esac
12795         ;;
12796       *)
12797         lt_use_gnu_ld_interface=yes
12798         ;;
12799     esac
12800   fi
12801
12802   if test yes = "$lt_use_gnu_ld_interface"; then
12803     # If archive_cmds runs LD, not CC, wlarc should be empty
12804     wlarc='$wl'
12805
12806     # Set some defaults for GNU ld with shared library support. These
12807     # are reset later if shared libraries are not supported. Putting them
12808     # here allows them to be overridden if necessary.
12809     runpath_var=LD_RUN_PATH
12810     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12811     export_dynamic_flag_spec='$wl--export-dynamic'
12812     # ancient GNU ld didn't support --whole-archive et. al.
12813     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12814       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12815     else
12816       whole_archive_flag_spec=
12817     fi
12818     supports_anon_versioning=no
12819     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12820       *GNU\ gold*) supports_anon_versioning=yes ;;
12821       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12822       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12823       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12824       *\ 2.11.*) ;; # other 2.11 versions
12825       *) supports_anon_versioning=yes ;;
12826     esac
12827
12828     # See if GNU ld supports shared libraries.
12829     case $host_os in
12830     aix[3-9]*)
12831       # On AIX/PPC, the GNU linker is very broken
12832       if test ia64 != "$host_cpu"; then
12833         ld_shlibs=no
12834         cat <<_LT_EOF 1>&2
12835
12836 *** Warning: the GNU linker, at least up to release 2.19, is reported
12837 *** to be unable to reliably create shared libraries on AIX.
12838 *** Therefore, libtool is disabling shared libraries support.  If you
12839 *** really care for shared libraries, you may want to install binutils
12840 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12841 *** You will then need to restart the configuration process.
12842
12843 _LT_EOF
12844       fi
12845       ;;
12846
12847     amigaos*)
12848       case $host_cpu in
12849       powerpc)
12850             # see comment about AmigaOS4 .so support
12851             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12852             archive_expsym_cmds=''
12853         ;;
12854       m68k)
12855             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)'
12856             hardcode_libdir_flag_spec='-L$libdir'
12857             hardcode_minus_L=yes
12858         ;;
12859       esac
12860       ;;
12861
12862     beos*)
12863       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12864         allow_undefined_flag=unsupported
12865         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12866         # support --undefined.  This deserves some investigation.  FIXME
12867         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12868       else
12869         ld_shlibs=no
12870       fi
12871       ;;
12872
12873     cygwin* | mingw* | pw32* | cegcc*)
12874       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12875       # as there is no search path for DLLs.
12876       hardcode_libdir_flag_spec='-L$libdir'
12877       export_dynamic_flag_spec='$wl--export-all-symbols'
12878       allow_undefined_flag=unsupported
12879       always_export_symbols=no
12880       enable_shared_with_static_runtimes=yes
12881       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'
12882       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12883
12884       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12885         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12886         # If the export-symbols file already is a .def file, use it as
12887         # is; otherwise, prepend EXPORTS...
12888         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12889           cp $export_symbols $output_objdir/$soname.def;
12890         else
12891           echo EXPORTS > $output_objdir/$soname.def;
12892           cat $export_symbols >> $output_objdir/$soname.def;
12893         fi~
12894         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12895       else
12896         ld_shlibs=no
12897       fi
12898       ;;
12899
12900     haiku*)
12901       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12902       link_all_deplibs=yes
12903       ;;
12904
12905     os2*)
12906       hardcode_libdir_flag_spec='-L$libdir'
12907       hardcode_minus_L=yes
12908       allow_undefined_flag=unsupported
12909       shrext_cmds=.dll
12910       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12911         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12912         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12913         $ECHO EXPORTS >> $output_objdir/$libname.def~
12914         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12915         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12916         emximp -o $lib $output_objdir/$libname.def'
12917       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12918         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12919         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12920         $ECHO EXPORTS >> $output_objdir/$libname.def~
12921         prefix_cmds="$SED"~
12922         if test EXPORTS = "`$SED 1q $export_symbols`"; then
12923           prefix_cmds="$prefix_cmds -e 1d";
12924         fi~
12925         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12926         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12927         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12928         emximp -o $lib $output_objdir/$libname.def'
12929       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12930       enable_shared_with_static_runtimes=yes
12931       ;;
12932
12933     interix[3-9]*)
12934       hardcode_direct=no
12935       hardcode_shlibpath_var=no
12936       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12937       export_dynamic_flag_spec='$wl-E'
12938       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12939       # Instead, shared libraries are loaded at an image base (0x10000000 by
12940       # default) and relocated if they conflict, which is a slow very memory
12941       # consuming and fragmenting process.  To avoid this, we pick a random,
12942       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12943       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12944       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12945       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'
12946       ;;
12947
12948     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12949       tmp_diet=no
12950       if test linux-dietlibc = "$host_os"; then
12951         case $cc_basename in
12952           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12953         esac
12954       fi
12955       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12956          && test no = "$tmp_diet"
12957       then
12958         tmp_addflag=' $pic_flag'
12959         tmp_sharedflag='-shared'
12960         case $cc_basename,$host_cpu in
12961         pgcc*)                          # Portland Group C compiler
12962           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'
12963           tmp_addflag=' $pic_flag'
12964           ;;
12965         pgf77* | pgf90* | pgf95* | pgfortran*)
12966                                         # Portland Group f77 and f90 compilers
12967           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'
12968           tmp_addflag=' $pic_flag -Mnomain' ;;
12969         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12970           tmp_addflag=' -i_dynamic' ;;
12971         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12972           tmp_addflag=' -i_dynamic -nofor_main' ;;
12973         ifc* | ifort*)                  # Intel Fortran compiler
12974           tmp_addflag=' -nofor_main' ;;
12975         lf95*)                          # Lahey Fortran 8.1
12976           whole_archive_flag_spec=
12977           tmp_sharedflag='--shared' ;;
12978         nagfor*)                        # NAGFOR 5.3
12979           tmp_sharedflag='-Wl,-shared' ;;
12980         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12981           tmp_sharedflag='-qmkshrobj'
12982           tmp_addflag= ;;
12983         nvcc*)  # Cuda Compiler Driver 2.2
12984           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'
12985           compiler_needs_object=yes
12986           ;;
12987         esac
12988         case `$CC -V 2>&1 | sed 5q` in
12989         *Sun\ C*)                       # Sun C 5.9
12990           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'
12991           compiler_needs_object=yes
12992           tmp_sharedflag='-G' ;;
12993         *Sun\ F*)                       # Sun Fortran 8.3
12994           tmp_sharedflag='-G' ;;
12995         esac
12996         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12997
12998         if test yes = "$supports_anon_versioning"; then
12999           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13000             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13001             echo "local: *; };" >> $output_objdir/$libname.ver~
13002             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13003         fi
13004
13005         case $cc_basename in
13006         tcc*)
13007           export_dynamic_flag_spec='-rdynamic'
13008           ;;
13009         xlf* | bgf* | bgxlf* | mpixlf*)
13010           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13011           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13012           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13013           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13014           if test yes = "$supports_anon_versioning"; then
13015             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13016               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13017               echo "local: *; };" >> $output_objdir/$libname.ver~
13018               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13019           fi
13020           ;;
13021         esac
13022       else
13023         ld_shlibs=no
13024       fi
13025       ;;
13026
13027     netbsd* | netbsdelf*-gnu)
13028       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13029         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13030         wlarc=
13031       else
13032         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13033         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13034       fi
13035       ;;
13036
13037     solaris*)
13038       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13039         ld_shlibs=no
13040         cat <<_LT_EOF 1>&2
13041
13042 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13043 *** create shared libraries on Solaris systems.  Therefore, libtool
13044 *** is disabling shared libraries support.  We urge you to upgrade GNU
13045 *** binutils to release 2.9.1 or newer.  Another option is to modify
13046 *** your PATH or compiler configuration so that the native linker is
13047 *** used, and then restart.
13048
13049 _LT_EOF
13050       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13051         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13052         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13053       else
13054         ld_shlibs=no
13055       fi
13056       ;;
13057
13058     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13059       case `$LD -v 2>&1` in
13060         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13061         ld_shlibs=no
13062         cat <<_LT_EOF 1>&2
13063
13064 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
13065 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13066 *** is disabling shared libraries support.  We urge you to upgrade GNU
13067 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13068 *** your PATH or compiler configuration so that the native linker is
13069 *** used, and then restart.
13070
13071 _LT_EOF
13072         ;;
13073         *)
13074           # For security reasons, it is highly recommended that you always
13075           # use absolute paths for naming shared libraries, and exclude the
13076           # DT_RUNPATH tag from executables and libraries.  But doing so
13077           # requires that you compile everything twice, which is a pain.
13078           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13079             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13080             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13081             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13082           else
13083             ld_shlibs=no
13084           fi
13085         ;;
13086       esac
13087       ;;
13088
13089     sunos4*)
13090       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13091       wlarc=
13092       hardcode_direct=yes
13093       hardcode_shlibpath_var=no
13094       ;;
13095
13096     *)
13097       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13098         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13099         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13100       else
13101         ld_shlibs=no
13102       fi
13103       ;;
13104     esac
13105
13106     if test no = "$ld_shlibs"; then
13107       runpath_var=
13108       hardcode_libdir_flag_spec=
13109       export_dynamic_flag_spec=
13110       whole_archive_flag_spec=
13111     fi
13112   else
13113     # PORTME fill in a description of your system's linker (not GNU ld)
13114     case $host_os in
13115     aix3*)
13116       allow_undefined_flag=unsupported
13117       always_export_symbols=yes
13118       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'
13119       # Note: this linker hardcodes the directories in LIBPATH if there
13120       # are no directories specified by -L.
13121       hardcode_minus_L=yes
13122       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13123         # Neither direct hardcoding nor static linking is supported with a
13124         # broken collect2.
13125         hardcode_direct=unsupported
13126       fi
13127       ;;
13128
13129     aix[4-9]*)
13130       if test ia64 = "$host_cpu"; then
13131         # On IA64, the linker does run time linking by default, so we don't
13132         # have to do anything special.
13133         aix_use_runtimelinking=no
13134         exp_sym_flag='-Bexport'
13135         no_entry_flag=
13136       else
13137         # If we're using GNU nm, then we don't want the "-C" option.
13138         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13139         # Without the "-l" option, or with the "-B" option, AIX nm treats
13140         # weak defined symbols like other global defined symbols, whereas
13141         # GNU nm marks them as "W".
13142         # While the 'weak' keyword is ignored in the Export File, we need
13143         # it in the Import File for the 'aix-soname' feature, so we have
13144         # to replace the "-B" option with "-P" for AIX nm.
13145         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13146           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'
13147         else
13148           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'
13149         fi
13150         aix_use_runtimelinking=no
13151
13152         # Test if we are trying to use run time linking or normal
13153         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13154         # have runtime linking enabled, and use it for executables.
13155         # For shared libraries, we enable/disable runtime linking
13156         # depending on the kind of the shared library created -
13157         # when "with_aix_soname,aix_use_runtimelinking" is:
13158         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13159         # "aix,yes"  lib.so          shared, rtl:yes, for executables
13160         #            lib.a           static archive
13161         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13162         #            lib.a(lib.so.V) shared, rtl:no,  for executables
13163         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13164         #            lib.a(lib.so.V) shared, rtl:no
13165         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13166         #            lib.a           static archive
13167         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13168           for ld_flag in $LDFLAGS; do
13169           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13170             aix_use_runtimelinking=yes
13171             break
13172           fi
13173           done
13174           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13175             # With aix-soname=svr4, we create the lib.so.V shared archives only,
13176             # so we don't have lib.a shared libs to link our executables.
13177             # We have to force runtime linking in this case.
13178             aix_use_runtimelinking=yes
13179             LDFLAGS="$LDFLAGS -Wl,-brtl"
13180           fi
13181           ;;
13182         esac
13183
13184         exp_sym_flag='-bexport'
13185         no_entry_flag='-bnoentry'
13186       fi
13187
13188       # When large executables or shared objects are built, AIX ld can
13189       # have problems creating the table of contents.  If linking a library
13190       # or program results in "error TOC overflow" add -mminimal-toc to
13191       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13192       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13193
13194       archive_cmds=''
13195       hardcode_direct=yes
13196       hardcode_direct_absolute=yes
13197       hardcode_libdir_separator=':'
13198       link_all_deplibs=yes
13199       file_list_spec='$wl-f,'
13200       case $with_aix_soname,$aix_use_runtimelinking in
13201       aix,*) ;; # traditional, no import file
13202       svr4,* | *,yes) # use import file
13203         # The Import File defines what to hardcode.
13204         hardcode_direct=no
13205         hardcode_direct_absolute=no
13206         ;;
13207       esac
13208
13209       if test yes = "$GCC"; then
13210         case $host_os in aix4.[012]|aix4.[012].*)
13211         # We only want to do this on AIX 4.2 and lower, the check
13212         # below for broken collect2 doesn't work under 4.3+
13213           collect2name=`$CC -print-prog-name=collect2`
13214           if test -f "$collect2name" &&
13215            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13216           then
13217           # We have reworked collect2
13218           :
13219           else
13220           # We have old collect2
13221           hardcode_direct=unsupported
13222           # It fails to find uninstalled libraries when the uninstalled
13223           # path is not listed in the libpath.  Setting hardcode_minus_L
13224           # to unsupported forces relinking
13225           hardcode_minus_L=yes
13226           hardcode_libdir_flag_spec='-L$libdir'
13227           hardcode_libdir_separator=
13228           fi
13229           ;;
13230         esac
13231         shared_flag='-shared'
13232         if test yes = "$aix_use_runtimelinking"; then
13233           shared_flag="$shared_flag "'$wl-G'
13234         fi
13235         # Need to ensure runtime linking is disabled for the traditional
13236         # shared library, or the linker may eventually find shared libraries
13237         # /with/ Import File - we do not want to mix them.
13238         shared_flag_aix='-shared'
13239         shared_flag_svr4='-shared $wl-G'
13240       else
13241         # not using gcc
13242         if test ia64 = "$host_cpu"; then
13243         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13244         # chokes on -Wl,-G. The following line is correct:
13245           shared_flag='-G'
13246         else
13247           if test yes = "$aix_use_runtimelinking"; then
13248             shared_flag='$wl-G'
13249           else
13250             shared_flag='$wl-bM:SRE'
13251           fi
13252           shared_flag_aix='$wl-bM:SRE'
13253           shared_flag_svr4='$wl-G'
13254         fi
13255       fi
13256
13257       export_dynamic_flag_spec='$wl-bexpall'
13258       # It seems that -bexpall does not export symbols beginning with
13259       # underscore (_), so it is better to generate a list of symbols to export.
13260       always_export_symbols=yes
13261       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13262         # Warning - without using the other runtime loading flags (-brtl),
13263         # -berok will link without error, but may produce a broken library.
13264         allow_undefined_flag='-berok'
13265         # Determine the default libpath from the value encoded in an
13266         # empty executable.
13267         if test set = "${lt_cv_aix_libpath+set}"; then
13268   aix_libpath=$lt_cv_aix_libpath
13269 else
13270   if ${lt_cv_aix_libpath_+:} false; then :
13271   $as_echo_n "(cached) " >&6
13272 else
13273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13274 /* end confdefs.h.  */
13275
13276 int main (void)
13277 {
13278
13279  ;
13280  return 0;
13281 }
13282 _ACEOF
13283 if ac_fn_c_try_link "$LINENO"; then :
13284
13285   lt_aix_libpath_sed='
13286       /Import File Strings/,/^$/ {
13287           /^0/ {
13288               s/^0  *\([^ ]*\) *$/\1/
13289               p
13290           }
13291       }'
13292   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13293   # Check for a 64-bit object if we didn't find anything.
13294   if test -z "$lt_cv_aix_libpath_"; then
13295     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13296   fi
13297 fi
13298 rm -f core conftest.err conftest.$ac_objext \
13299     conftest$ac_exeext conftest.$ac_ext
13300   if test -z "$lt_cv_aix_libpath_"; then
13301     lt_cv_aix_libpath_=/usr/lib:/lib
13302   fi
13303
13304 fi
13305
13306   aix_libpath=$lt_cv_aix_libpath_
13307 fi
13308
13309         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13310         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
13311       else
13312         if test ia64 = "$host_cpu"; then
13313           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13314           allow_undefined_flag="-z nodefs"
13315           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"
13316         else
13317          # Determine the default libpath from the value encoded in an
13318          # empty executable.
13319          if test set = "${lt_cv_aix_libpath+set}"; then
13320   aix_libpath=$lt_cv_aix_libpath
13321 else
13322   if ${lt_cv_aix_libpath_+:} false; then :
13323   $as_echo_n "(cached) " >&6
13324 else
13325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326 /* end confdefs.h.  */
13327
13328 int main (void)
13329 {
13330
13331  ;
13332  return 0;
13333 }
13334 _ACEOF
13335 if ac_fn_c_try_link "$LINENO"; then :
13336
13337   lt_aix_libpath_sed='
13338       /Import File Strings/,/^$/ {
13339           /^0/ {
13340               s/^0  *\([^ ]*\) *$/\1/
13341               p
13342           }
13343       }'
13344   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13345   # Check for a 64-bit object if we didn't find anything.
13346   if test -z "$lt_cv_aix_libpath_"; then
13347     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13348   fi
13349 fi
13350 rm -f core conftest.err conftest.$ac_objext \
13351     conftest$ac_exeext conftest.$ac_ext
13352   if test -z "$lt_cv_aix_libpath_"; then
13353     lt_cv_aix_libpath_=/usr/lib:/lib
13354   fi
13355
13356 fi
13357
13358   aix_libpath=$lt_cv_aix_libpath_
13359 fi
13360
13361          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13362           # Warning - without using the other run time loading flags,
13363           # -berok will link without error, but may produce a broken library.
13364           no_undefined_flag=' $wl-bernotok'
13365           allow_undefined_flag=' $wl-berok'
13366           if test yes = "$with_gnu_ld"; then
13367             # We only use this code for GNU lds that support --whole-archive.
13368             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13369           else
13370             # Exported symbols can be pulled into shared objects from archives
13371             whole_archive_flag_spec='$convenience'
13372           fi
13373           archive_cmds_need_lc=yes
13374           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13375           # -brtl affects multiple linker settings, -berok does not and is overridden later
13376           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13377           if test svr4 != "$with_aix_soname"; then
13378             # This is similar to how AIX traditionally builds its shared libraries.
13379             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'
13380           fi
13381           if test aix != "$with_aix_soname"; then
13382             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'
13383           else
13384             # used by -dlpreopen to get the symbols
13385             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13386           fi
13387           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13388         fi
13389       fi
13390       ;;
13391
13392     amigaos*)
13393       case $host_cpu in
13394       powerpc)
13395             # see comment about AmigaOS4 .so support
13396             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13397             archive_expsym_cmds=''
13398         ;;
13399       m68k)
13400             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)'
13401             hardcode_libdir_flag_spec='-L$libdir'
13402             hardcode_minus_L=yes
13403         ;;
13404       esac
13405       ;;
13406
13407     bsdi[45]*)
13408       export_dynamic_flag_spec=-rdynamic
13409       ;;
13410
13411     cygwin* | mingw* | pw32* | cegcc*)
13412       # When not using gcc, we currently assume that we are using
13413       # Microsoft Visual C++.
13414       # hardcode_libdir_flag_spec is actually meaningless, as there is
13415       # no search path for DLLs.
13416       case $cc_basename in
13417       cl*)
13418         # Native MSVC
13419         hardcode_libdir_flag_spec=' '
13420         allow_undefined_flag=unsupported
13421         always_export_symbols=yes
13422         file_list_spec='@'
13423         # Tell ltmain to make .lib files, not .a files.
13424         libext=lib
13425         # Tell ltmain to make .dll files, not .so files.
13426         shrext_cmds=.dll
13427         # FIXME: Setting linknames here is a bad hack.
13428         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13429         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13430             cp "$export_symbols" "$output_objdir/$soname.def";
13431             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13432           else
13433             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13434           fi~
13435           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13436           linknames='
13437         # The linker will not automatically build a static lib if we build a DLL.
13438         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13439         enable_shared_with_static_runtimes=yes
13440         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13441         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13442         # Don't use ranlib
13443         old_postinstall_cmds='chmod 644 $oldlib'
13444         postlink_cmds='lt_outputfile="@OUTPUT@"~
13445           lt_tool_outputfile="@TOOL_OUTPUT@"~
13446           case $lt_outputfile in
13447             *.exe|*.EXE) ;;
13448             *)
13449               lt_outputfile=$lt_outputfile.exe
13450               lt_tool_outputfile=$lt_tool_outputfile.exe
13451               ;;
13452           esac~
13453           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13454             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13455             $RM "$lt_outputfile.manifest";
13456           fi'
13457         ;;
13458       *)
13459         # Assume MSVC wrapper
13460         hardcode_libdir_flag_spec=' '
13461         allow_undefined_flag=unsupported
13462         # Tell ltmain to make .lib files, not .a files.
13463         libext=lib
13464         # Tell ltmain to make .dll files, not .so files.
13465         shrext_cmds=.dll
13466         # FIXME: Setting linknames here is a bad hack.
13467         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13468         # The linker will automatically build a .lib file if we build a DLL.
13469         old_archive_from_new_cmds='true'
13470         # FIXME: Should let the user specify the lib program.
13471         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13472         enable_shared_with_static_runtimes=yes
13473         ;;
13474       esac
13475       ;;
13476
13477     darwin* | rhapsody*)
13478
13479
13480   archive_cmds_need_lc=no
13481   hardcode_direct=no
13482   hardcode_automatic=yes
13483   hardcode_shlibpath_var=unsupported
13484   if test yes = "$lt_cv_ld_force_load"; then
13485     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\"`'
13486
13487   else
13488     whole_archive_flag_spec=''
13489   fi
13490   link_all_deplibs=yes
13491   allow_undefined_flag=$_lt_dar_allow_undefined
13492   case $cc_basename in
13493      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13494      *) _lt_dar_can_shared=$GCC ;;
13495   esac
13496   if test yes = "$_lt_dar_can_shared"; then
13497     output_verbose_link_cmd=func_echo_all
13498     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13499     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13500     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"
13501     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"
13502
13503   else
13504   ld_shlibs=no
13505   fi
13506
13507       ;;
13508
13509     dgux*)
13510       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13511       hardcode_libdir_flag_spec='-L$libdir'
13512       hardcode_shlibpath_var=no
13513       ;;
13514
13515     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13516     # support.  Future versions do this automatically, but an explicit c++rt0.o
13517     # does not break anything, and helps significantly (at the cost of a little
13518     # extra space).
13519     freebsd2.2*)
13520       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13521       hardcode_libdir_flag_spec='-R$libdir'
13522       hardcode_direct=yes
13523       hardcode_shlibpath_var=no
13524       ;;
13525
13526     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13527     freebsd2.*)
13528       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13529       hardcode_direct=yes
13530       hardcode_minus_L=yes
13531       hardcode_shlibpath_var=no
13532       ;;
13533
13534     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13535     freebsd* | dragonfly*)
13536       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13537       hardcode_libdir_flag_spec='-R$libdir'
13538       hardcode_direct=yes
13539       hardcode_shlibpath_var=no
13540       ;;
13541
13542     hpux9*)
13543       if test yes = "$GCC"; then
13544         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'
13545       else
13546         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'
13547       fi
13548       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13549       hardcode_libdir_separator=:
13550       hardcode_direct=yes
13551
13552       # hardcode_minus_L: Not really in the search PATH,
13553       # but as the default location of the library.
13554       hardcode_minus_L=yes
13555       export_dynamic_flag_spec='$wl-E'
13556       ;;
13557
13558     hpux10*)
13559       if test yes,no = "$GCC,$with_gnu_ld"; then
13560         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13561       else
13562         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13563       fi
13564       if test no = "$with_gnu_ld"; then
13565         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13566         hardcode_libdir_separator=:
13567         hardcode_direct=yes
13568         hardcode_direct_absolute=yes
13569         export_dynamic_flag_spec='$wl-E'
13570         # hardcode_minus_L: Not really in the search PATH,
13571         # but as the default location of the library.
13572         hardcode_minus_L=yes
13573       fi
13574       ;;
13575
13576     hpux11*)
13577       if test yes,no = "$GCC,$with_gnu_ld"; then
13578         case $host_cpu in
13579         hppa*64*)
13580           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13581           ;;
13582         ia64*)
13583           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13584           ;;
13585         *)
13586           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13587           ;;
13588         esac
13589       else
13590         case $host_cpu in
13591         hppa*64*)
13592           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13593           ;;
13594         ia64*)
13595           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13596           ;;
13597         *)
13598
13599           # Older versions of the 11.00 compiler do not understand -b yet
13600           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13601           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13602 $as_echo_n "checking if $CC understands -b... " >&6; }
13603 if ${lt_cv_prog_compiler__b+:} false; then :
13604   $as_echo_n "(cached) " >&6
13605 else
13606   lt_cv_prog_compiler__b=no
13607    save_LDFLAGS=$LDFLAGS
13608    LDFLAGS="$LDFLAGS -b"
13609    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13610    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13611      # The linker can only warn and ignore the option if not recognized
13612      # So say no if there are warnings
13613      if test -s conftest.err; then
13614        # Append any errors to the config.log.
13615        cat conftest.err 1>&5
13616        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13617        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13618        if diff conftest.exp conftest.er2 >/dev/null; then
13619          lt_cv_prog_compiler__b=yes
13620        fi
13621      else
13622        lt_cv_prog_compiler__b=yes
13623      fi
13624    fi
13625    $RM -r conftest*
13626    LDFLAGS=$save_LDFLAGS
13627
13628 fi
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13630 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13631
13632 if test yes = "$lt_cv_prog_compiler__b"; then
13633     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13634 else
13635     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13636 fi
13637
13638           ;;
13639         esac
13640       fi
13641       if test no = "$with_gnu_ld"; then
13642         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13643         hardcode_libdir_separator=:
13644
13645         case $host_cpu in
13646         hppa*64*|ia64*)
13647           hardcode_direct=no
13648           hardcode_shlibpath_var=no
13649           ;;
13650         *)
13651           hardcode_direct=yes
13652           hardcode_direct_absolute=yes
13653           export_dynamic_flag_spec='$wl-E'
13654
13655           # hardcode_minus_L: Not really in the search PATH,
13656           # but as the default location of the library.
13657           hardcode_minus_L=yes
13658           ;;
13659         esac
13660       fi
13661       ;;
13662
13663     irix5* | irix6* | nonstopux*)
13664       if test yes = "$GCC"; then
13665         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'
13666         # Try to use the -exported_symbol ld option, if it does not
13667         # work, assume that -exports_file does not work either and
13668         # implicitly export all symbols.
13669         # This should be the same for all languages, so no per-tag cache variable.
13670         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13671 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13672 if ${lt_cv_irix_exported_symbol+:} false; then :
13673   $as_echo_n "(cached) " >&6
13674 else
13675   save_LDFLAGS=$LDFLAGS
13676            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13677            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13678 /* end confdefs.h.  */
13679 int foo (void) { return 0; }
13680 _ACEOF
13681 if ac_fn_c_try_link "$LINENO"; then :
13682   lt_cv_irix_exported_symbol=yes
13683 else
13684   lt_cv_irix_exported_symbol=no
13685 fi
13686 rm -f core conftest.err conftest.$ac_objext \
13687     conftest$ac_exeext conftest.$ac_ext
13688            LDFLAGS=$save_LDFLAGS
13689 fi
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13691 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13692         if test yes = "$lt_cv_irix_exported_symbol"; then
13693           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'
13694         fi
13695         link_all_deplibs=no
13696       else
13697         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'
13698         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'
13699       fi
13700       archive_cmds_need_lc='no'
13701       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13702       hardcode_libdir_separator=:
13703       inherit_rpath=yes
13704       link_all_deplibs=yes
13705       ;;
13706
13707     linux*)
13708       case $cc_basename in
13709       tcc*)
13710         # Fabrice Bellard et al's Tiny C Compiler
13711         ld_shlibs=yes
13712         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13713         ;;
13714       esac
13715       ;;
13716
13717     netbsd* | netbsdelf*-gnu)
13718       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13719         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13720       else
13721         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13722       fi
13723       hardcode_libdir_flag_spec='-R$libdir'
13724       hardcode_direct=yes
13725       hardcode_shlibpath_var=no
13726       ;;
13727
13728     newsos6)
13729       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13730       hardcode_direct=yes
13731       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13732       hardcode_libdir_separator=:
13733       hardcode_shlibpath_var=no
13734       ;;
13735
13736     *nto* | *qnx*)
13737       ;;
13738
13739     openbsd* | bitrig*)
13740       if test -f /usr/libexec/ld.so; then
13741         hardcode_direct=yes
13742         hardcode_shlibpath_var=no
13743         hardcode_direct_absolute=yes
13744         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13745           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13746           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13747           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13748           export_dynamic_flag_spec='$wl-E'
13749         else
13750           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13751           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13752         fi
13753       else
13754         ld_shlibs=no
13755       fi
13756       ;;
13757
13758     os2*)
13759       hardcode_libdir_flag_spec='-L$libdir'
13760       hardcode_minus_L=yes
13761       allow_undefined_flag=unsupported
13762       shrext_cmds=.dll
13763       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13764         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13765         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13766         $ECHO EXPORTS >> $output_objdir/$libname.def~
13767         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13768         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13769         emximp -o $lib $output_objdir/$libname.def'
13770       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13771         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13772         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13773         $ECHO EXPORTS >> $output_objdir/$libname.def~
13774         prefix_cmds="$SED"~
13775         if test EXPORTS = "`$SED 1q $export_symbols`"; then
13776           prefix_cmds="$prefix_cmds -e 1d";
13777         fi~
13778         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13779         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13780         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13781         emximp -o $lib $output_objdir/$libname.def'
13782       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13783       enable_shared_with_static_runtimes=yes
13784       ;;
13785
13786     osf3*)
13787       if test yes = "$GCC"; then
13788         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13789         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'
13790       else
13791         allow_undefined_flag=' -expect_unresolved \*'
13792         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'
13793       fi
13794       archive_cmds_need_lc='no'
13795       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13796       hardcode_libdir_separator=:
13797       ;;
13798
13799     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13800       if test yes = "$GCC"; then
13801         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13802         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'
13803         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13804       else
13805         allow_undefined_flag=' -expect_unresolved \*'
13806         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'
13807         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~
13808           $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'
13809
13810         # Both c and cxx compiler support -rpath directly
13811         hardcode_libdir_flag_spec='-rpath $libdir'
13812       fi
13813       archive_cmds_need_lc='no'
13814       hardcode_libdir_separator=:
13815       ;;
13816
13817     solaris*)
13818       no_undefined_flag=' -z defs'
13819       if test yes = "$GCC"; then
13820         wlarc='$wl'
13821         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13822         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13823           $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'
13824       else
13825         case `$CC -V 2>&1` in
13826         *"Compilers 5.0"*)
13827           wlarc=''
13828           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13829           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13830             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13831           ;;
13832         *)
13833           wlarc='$wl'
13834           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13835           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13836             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13837           ;;
13838         esac
13839       fi
13840       hardcode_libdir_flag_spec='-R$libdir'
13841       hardcode_shlibpath_var=no
13842       case $host_os in
13843       solaris2.[0-5] | solaris2.[0-5].*) ;;
13844       *)
13845         # The compiler driver will combine and reorder linker options,
13846         # but understands '-z linker_flag'.  GCC discards it without '$wl',
13847         # but is careful enough not to reorder.
13848         # Supported since Solaris 2.6 (maybe 2.5.1?)
13849         if test yes = "$GCC"; then
13850           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13851         else
13852           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13853         fi
13854         ;;
13855       esac
13856       link_all_deplibs=yes
13857       ;;
13858
13859     sunos4*)
13860       if test sequent = "$host_vendor"; then
13861         # Use $CC to link under sequent, because it throws in some extra .o
13862         # files that make .init and .fini sections work.
13863         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13864       else
13865         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13866       fi
13867       hardcode_libdir_flag_spec='-L$libdir'
13868       hardcode_direct=yes
13869       hardcode_minus_L=yes
13870       hardcode_shlibpath_var=no
13871       ;;
13872
13873     sysv4)
13874       case $host_vendor in
13875         sni)
13876           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13877           hardcode_direct=yes # is this really true???
13878         ;;
13879         siemens)
13880           ## LD is ld it makes a PLAMLIB
13881           ## CC just makes a GrossModule.
13882           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13883           reload_cmds='$CC -r -o $output$reload_objs'
13884           hardcode_direct=no
13885         ;;
13886         motorola)
13887           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13888           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13889         ;;
13890       esac
13891       runpath_var='LD_RUN_PATH'
13892       hardcode_shlibpath_var=no
13893       ;;
13894
13895     sysv4.3*)
13896       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13897       hardcode_shlibpath_var=no
13898       export_dynamic_flag_spec='-Bexport'
13899       ;;
13900
13901     sysv4*MP*)
13902       if test -d /usr/nec; then
13903         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13904         hardcode_shlibpath_var=no
13905         runpath_var=LD_RUN_PATH
13906         hardcode_runpath_var=yes
13907         ld_shlibs=yes
13908       fi
13909       ;;
13910
13911     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13912       no_undefined_flag='$wl-z,text'
13913       archive_cmds_need_lc=no
13914       hardcode_shlibpath_var=no
13915       runpath_var='LD_RUN_PATH'
13916
13917       if test yes = "$GCC"; then
13918         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13919         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13920       else
13921         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13922         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13923       fi
13924       ;;
13925
13926     sysv5* | sco3.2v5* | sco5v6*)
13927       # Note: We CANNOT use -z defs as we might desire, because we do not
13928       # link with -lc, and that would cause any symbols used from libc to
13929       # always be unresolved, which means just about no library would
13930       # ever link correctly.  If we're not using GNU ld we use -z text
13931       # though, which does catch some bad symbols but isn't as heavy-handed
13932       # as -z defs.
13933       no_undefined_flag='$wl-z,text'
13934       allow_undefined_flag='$wl-z,nodefs'
13935       archive_cmds_need_lc=no
13936       hardcode_shlibpath_var=no
13937       hardcode_libdir_flag_spec='$wl-R,$libdir'
13938       hardcode_libdir_separator=':'
13939       link_all_deplibs=yes
13940       export_dynamic_flag_spec='$wl-Bexport'
13941       runpath_var='LD_RUN_PATH'
13942
13943       if test yes = "$GCC"; then
13944         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13945         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13946       else
13947         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13948         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13949       fi
13950       ;;
13951
13952     uts4*)
13953       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13954       hardcode_libdir_flag_spec='-L$libdir'
13955       hardcode_shlibpath_var=no
13956       ;;
13957
13958     *)
13959       ld_shlibs=no
13960       ;;
13961     esac
13962
13963     if test sni = "$host_vendor"; then
13964       case $host in
13965       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13966         export_dynamic_flag_spec='$wl-Blargedynsym'
13967         ;;
13968       esac
13969     fi
13970   fi
13971
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13973 $as_echo "$ld_shlibs" >&6; }
13974 test no = "$ld_shlibs" && can_build_shared=no
13975
13976 with_gnu_ld=$with_gnu_ld
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992 #
13993 # Do we need to explicitly link libc?
13994 #
13995 case "x$archive_cmds_need_lc" in
13996 x|xyes)
13997   # Assume -lc should be added
13998   archive_cmds_need_lc=yes
13999
14000   if test yes,yes = "$GCC,$enable_shared"; then
14001     case $archive_cmds in
14002     *'~'*)
14003       # FIXME: we may have to deal with multi-command sequences.
14004       ;;
14005     '$CC '*)
14006       # Test whether the compiler implicitly links with -lc since on some
14007       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14008       # to ld, don't add -lc before -lgcc.
14009       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14010 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14011 if ${lt_cv_archive_cmds_need_lc+:} false; then :
14012   $as_echo_n "(cached) " >&6
14013 else
14014   $RM conftest*
14015         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14016
14017         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14018   (eval $ac_compile) 2>&5
14019   ac_status=$?
14020   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14021   test $ac_status = 0; } 2>conftest.err; then
14022           soname=conftest
14023           lib=conftest
14024           libobjs=conftest.$ac_objext
14025           deplibs=
14026           wl=$lt_prog_compiler_wl
14027           pic_flag=$lt_prog_compiler_pic
14028           compiler_flags=-v
14029           linker_flags=-v
14030           verstring=
14031           output_objdir=.
14032           libname=conftest
14033           lt_save_allow_undefined_flag=$allow_undefined_flag
14034           allow_undefined_flag=
14035           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14036   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14037   ac_status=$?
14038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14039   test $ac_status = 0; }
14040           then
14041             lt_cv_archive_cmds_need_lc=no
14042           else
14043             lt_cv_archive_cmds_need_lc=yes
14044           fi
14045           allow_undefined_flag=$lt_save_allow_undefined_flag
14046         else
14047           cat conftest.err 1>&5
14048         fi
14049         $RM conftest*
14050
14051 fi
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14053 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14054       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14055       ;;
14056     esac
14057   fi
14058   ;;
14059 esac
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14213 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14214
14215 if test yes = "$GCC"; then
14216   case $host_os in
14217     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14218     *) lt_awk_arg='/^libraries:/' ;;
14219   esac
14220   case $host_os in
14221     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14222     *) lt_sed_strip_eq='s|=/|/|g' ;;
14223   esac
14224   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14225   case $lt_search_path_spec in
14226   *\;*)
14227     # if the path contains ";" then we assume it to be the separator
14228     # otherwise default to the standard path separator (i.e. ":") - it is
14229     # assumed that no part of a normal pathname contains ";" but that should
14230     # okay in the real world where ";" in dirpaths is itself problematic.
14231     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14232     ;;
14233   *)
14234     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14235     ;;
14236   esac
14237   # Ok, now we have the path, separated by spaces, we can step through it
14238   # and add multilib dir if necessary...
14239   lt_tmp_lt_search_path_spec=
14240   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14241   # ...but if some path component already ends with the multilib dir we assume
14242   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14243   case "$lt_multi_os_dir; $lt_search_path_spec " in
14244   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14245     lt_multi_os_dir=
14246     ;;
14247   esac
14248   for lt_sys_path in $lt_search_path_spec; do
14249     if test -d "$lt_sys_path$lt_multi_os_dir"; then
14250       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14251     elif test -n "$lt_multi_os_dir"; then
14252       test -d "$lt_sys_path" && \
14253         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14254     fi
14255   done
14256   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14257 BEGIN {RS = " "; FS = "/|\n";} {
14258   lt_foo = "";
14259   lt_count = 0;
14260   for (lt_i = NF; lt_i > 0; lt_i--) {
14261     if ($lt_i != "" && $lt_i != ".") {
14262       if ($lt_i == "..") {
14263         lt_count++;
14264       } else {
14265         if (lt_count == 0) {
14266           lt_foo = "/" $lt_i lt_foo;
14267         } else {
14268           lt_count--;
14269         }
14270       }
14271     }
14272   }
14273   if (lt_foo != "") { lt_freq[lt_foo]++; }
14274   if (lt_freq[lt_foo] == 1) { print lt_foo; }
14275 }'`
14276   # AWK program above erroneously prepends '/' to C:/dos/paths
14277   # for these hosts.
14278   case $host_os in
14279     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14280       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14281   esac
14282   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14283 else
14284   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14285 fi
14286 library_names_spec=
14287 libname_spec='lib$name'
14288 soname_spec=
14289 shrext_cmds=.so
14290 postinstall_cmds=
14291 postuninstall_cmds=
14292 finish_cmds=
14293 finish_eval=
14294 shlibpath_var=
14295 shlibpath_overrides_runpath=unknown
14296 version_type=none
14297 dynamic_linker="$host_os ld.so"
14298 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14299 need_lib_prefix=unknown
14300 hardcode_into_libs=no
14301
14302 # when you set need_version to no, make sure it does not cause -set_version
14303 # flags to be left without arguments
14304 need_version=unknown
14305
14306
14307
14308 case $host_os in
14309 aix3*)
14310   version_type=linux # correct to gnu/linux during the next big refactor
14311   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14312   shlibpath_var=LIBPATH
14313
14314   # AIX 3 has no versioning support, so we append a major version to the name.
14315   soname_spec='$libname$release$shared_ext$major'
14316   ;;
14317
14318 aix[4-9]*)
14319   version_type=linux # correct to gnu/linux during the next big refactor
14320   need_lib_prefix=no
14321   need_version=no
14322   hardcode_into_libs=yes
14323   if test ia64 = "$host_cpu"; then
14324     # AIX 5 supports IA64
14325     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14326     shlibpath_var=LD_LIBRARY_PATH
14327   else
14328     # With GCC up to 2.95.x, collect2 would create an import file
14329     # for dependence libraries.  The import file would start with
14330     # the line '#! .'.  This would cause the generated library to
14331     # depend on '.', always an invalid library.  This was fixed in
14332     # development snapshots of GCC prior to 3.0.
14333     case $host_os in
14334       aix4 | aix4.[01] | aix4.[01].*)
14335       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14336            echo ' yes '
14337            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14338         :
14339       else
14340         can_build_shared=no
14341       fi
14342       ;;
14343     esac
14344     # Using Import Files as archive members, it is possible to support
14345     # filename-based versioning of shared library archives on AIX. While
14346     # this would work for both with and without runtime linking, it will
14347     # prevent static linking of such archives. So we do filename-based
14348     # shared library versioning with .so extension only, which is used
14349     # when both runtime linking and shared linking is enabled.
14350     # Unfortunately, runtime linking may impact performance, so we do
14351     # not want this to be the default eventually. Also, we use the
14352     # versioned .so libs for executables only if there is the -brtl
14353     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14354     # To allow for filename-based versioning support, we need to create
14355     # libNAME.so.V as an archive file, containing:
14356     # *) an Import File, referring to the versioned filename of the
14357     #    archive as well as the shared archive member, telling the
14358     #    bitwidth (32 or 64) of that shared object, and providing the
14359     #    list of exported symbols of that shared object, eventually
14360     #    decorated with the 'weak' keyword
14361     # *) the shared object with the F_LOADONLY flag set, to really avoid
14362     #    it being seen by the linker.
14363     # At run time we better use the real file rather than another symlink,
14364     # but for link time we create the symlink libNAME.so -> libNAME.so.V
14365
14366     case $with_aix_soname,$aix_use_runtimelinking in
14367     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14368     # soname into executable. Probably we can add versioning support to
14369     # collect2, so additional links can be useful in future.
14370     aix,yes) # traditional libtool
14371       dynamic_linker='AIX unversionable lib.so'
14372       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14373       # instead of lib<name>.a to let people know that these are not
14374       # typical AIX shared libraries.
14375       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14376       ;;
14377     aix,no) # traditional AIX only
14378       dynamic_linker='AIX lib.a(lib.so.V)'
14379       # We preserve .a as extension for shared libraries through AIX4.2
14380       # and later when we are not doing run time linking.
14381       library_names_spec='$libname$release.a $libname.a'
14382       soname_spec='$libname$release$shared_ext$major'
14383       ;;
14384     svr4,*) # full svr4 only
14385       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14386       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14387       # We do not specify a path in Import Files, so LIBPATH fires.
14388       shlibpath_overrides_runpath=yes
14389       ;;
14390     *,yes) # both, prefer svr4
14391       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14392       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14393       # unpreferred sharedlib libNAME.a needs extra handling
14394       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"'
14395       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"'
14396       # We do not specify a path in Import Files, so LIBPATH fires.
14397       shlibpath_overrides_runpath=yes
14398       ;;
14399     *,no) # both, prefer aix
14400       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14401       library_names_spec='$libname$release.a $libname.a'
14402       soname_spec='$libname$release$shared_ext$major'
14403       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14404       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)'
14405       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"'
14406       ;;
14407     esac
14408     shlibpath_var=LIBPATH
14409   fi
14410   ;;
14411
14412 amigaos*)
14413   case $host_cpu in
14414   powerpc)
14415     # Since July 2007 AmigaOS4 officially supports .so libraries.
14416     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14417     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14418     ;;
14419   m68k)
14420     library_names_spec='$libname.ixlibrary $libname.a'
14421     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14422     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'
14423     ;;
14424   esac
14425   ;;
14426
14427 beos*)
14428   library_names_spec='$libname$shared_ext'
14429   dynamic_linker="$host_os ld.so"
14430   shlibpath_var=LIBRARY_PATH
14431   ;;
14432
14433 bsdi[45]*)
14434   version_type=linux # correct to gnu/linux during the next big refactor
14435   need_version=no
14436   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14437   soname_spec='$libname$release$shared_ext$major'
14438   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14439   shlibpath_var=LD_LIBRARY_PATH
14440   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14441   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14442   # the default ld.so.conf also contains /usr/contrib/lib and
14443   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14444   # libtool to hard-code these into programs
14445   ;;
14446
14447 cygwin* | mingw* | pw32* | cegcc*)
14448   version_type=windows
14449   shrext_cmds=.dll
14450   need_version=no
14451   need_lib_prefix=no
14452
14453   case $GCC,$cc_basename in
14454   yes,*)
14455     # gcc
14456     library_names_spec='$libname.dll.a'
14457     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14458     postinstall_cmds='base_file=`basename \$file`~
14459       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14460       dldir=$destdir/`dirname \$dlpath`~
14461       test -d \$dldir || mkdir -p \$dldir~
14462       $install_prog $dir/$dlname \$dldir/$dlname~
14463       chmod a+x \$dldir/$dlname~
14464       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14465         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14466       fi'
14467     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14468       dlpath=$dir/\$dldll~
14469        $RM \$dlpath'
14470     shlibpath_overrides_runpath=yes
14471
14472     case $host_os in
14473     cygwin*)
14474       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14475       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14476
14477       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14478       ;;
14479     mingw* | cegcc*)
14480       # MinGW DLLs use traditional 'lib' prefix
14481       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14482       ;;
14483     pw32*)
14484       # pw32 DLLs use 'pw' prefix rather than 'lib'
14485       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14486       ;;
14487     esac
14488     dynamic_linker='Win32 ld.exe'
14489     ;;
14490
14491   *,cl*)
14492     # Native MSVC
14493     libname_spec='$name'
14494     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14495     library_names_spec='$libname.dll.lib'
14496
14497     case $build_os in
14498     mingw*)
14499       sys_lib_search_path_spec=
14500       lt_save_ifs=$IFS
14501       IFS=';'
14502       for lt_path in $LIB
14503       do
14504         IFS=$lt_save_ifs
14505         # Let DOS variable expansion print the short 8.3 style file name.
14506         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14507         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14508       done
14509       IFS=$lt_save_ifs
14510       # Convert to MSYS style.
14511       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14512       ;;
14513     cygwin*)
14514       # Convert to unix form, then to dos form, then back to unix form
14515       # but this time dos style (no spaces!) so that the unix form looks
14516       # like /cygdrive/c/PROGRA~1:/cygdr...
14517       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14518       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14519       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14520       ;;
14521     *)
14522       sys_lib_search_path_spec=$LIB
14523       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14524         # It is most probably a Windows format PATH.
14525         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14526       else
14527         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14528       fi
14529       # FIXME: find the short name or the path components, as spaces are
14530       # common. (e.g. "Program Files" -> "PROGRA~1")
14531       ;;
14532     esac
14533
14534     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14535     postinstall_cmds='base_file=`basename \$file`~
14536       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14537       dldir=$destdir/`dirname \$dlpath`~
14538       test -d \$dldir || mkdir -p \$dldir~
14539       $install_prog $dir/$dlname \$dldir/$dlname'
14540     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14541       dlpath=$dir/\$dldll~
14542        $RM \$dlpath'
14543     shlibpath_overrides_runpath=yes
14544     dynamic_linker='Win32 link.exe'
14545     ;;
14546
14547   *)
14548     # Assume MSVC wrapper
14549     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14550     dynamic_linker='Win32 ld.exe'
14551     ;;
14552   esac
14553   # FIXME: first we should search . and the directory the executable is in
14554   shlibpath_var=PATH
14555   ;;
14556
14557 darwin* | rhapsody*)
14558   dynamic_linker="$host_os dyld"
14559   version_type=darwin
14560   need_lib_prefix=no
14561   need_version=no
14562   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14563   soname_spec='$libname$release$major$shared_ext'
14564   shlibpath_overrides_runpath=yes
14565   shlibpath_var=DYLD_LIBRARY_PATH
14566   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14567
14568   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14569   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14570   ;;
14571
14572 dgux*)
14573   version_type=linux # correct to gnu/linux during the next big refactor
14574   need_lib_prefix=no
14575   need_version=no
14576   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14577   soname_spec='$libname$release$shared_ext$major'
14578   shlibpath_var=LD_LIBRARY_PATH
14579   ;;
14580
14581 freebsd* | dragonfly*)
14582   # DragonFly does not have aout.  When/if they implement a new
14583   # versioning mechanism, adjust this.
14584   if test -x /usr/bin/objformat; then
14585     objformat=`/usr/bin/objformat`
14586   else
14587     case $host_os in
14588     freebsd[23].*) objformat=aout ;;
14589     *) objformat=elf ;;
14590     esac
14591   fi
14592   version_type=freebsd-$objformat
14593   case $version_type in
14594     freebsd-elf*)
14595       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14596       soname_spec='$libname$release$shared_ext$major'
14597       need_version=no
14598       need_lib_prefix=no
14599       ;;
14600     freebsd-*)
14601       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14602       need_version=yes
14603       ;;
14604   esac
14605   shlibpath_var=LD_LIBRARY_PATH
14606   case $host_os in
14607   freebsd2.*)
14608     shlibpath_overrides_runpath=yes
14609     ;;
14610   freebsd3.[01]* | freebsdelf3.[01]*)
14611     shlibpath_overrides_runpath=yes
14612     hardcode_into_libs=yes
14613     ;;
14614   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14615   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14616     shlibpath_overrides_runpath=no
14617     hardcode_into_libs=yes
14618     ;;
14619   *) # from 4.6 on, and DragonFly
14620     shlibpath_overrides_runpath=yes
14621     hardcode_into_libs=yes
14622     ;;
14623   esac
14624   ;;
14625
14626 haiku*)
14627   version_type=linux # correct to gnu/linux during the next big refactor
14628   need_lib_prefix=no
14629   need_version=no
14630   dynamic_linker="$host_os runtime_loader"
14631   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14632   soname_spec='$libname$release$shared_ext$major'
14633   shlibpath_var=LIBRARY_PATH
14634   shlibpath_overrides_runpath=no
14635   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14636   hardcode_into_libs=yes
14637   ;;
14638
14639 hpux9* | hpux10* | hpux11*)
14640   # Give a soname corresponding to the major version so that dld.sl refuses to
14641   # link against other versions.
14642   version_type=sunos
14643   need_lib_prefix=no
14644   need_version=no
14645   case $host_cpu in
14646   ia64*)
14647     shrext_cmds='.so'
14648     hardcode_into_libs=yes
14649     dynamic_linker="$host_os dld.so"
14650     shlibpath_var=LD_LIBRARY_PATH
14651     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14652     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14653     soname_spec='$libname$release$shared_ext$major'
14654     if test 32 = "$HPUX_IA64_MODE"; then
14655       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14656       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14657     else
14658       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14659       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14660     fi
14661     ;;
14662   hppa*64*)
14663     shrext_cmds='.sl'
14664     hardcode_into_libs=yes
14665     dynamic_linker="$host_os dld.sl"
14666     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14667     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14668     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14669     soname_spec='$libname$release$shared_ext$major'
14670     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14671     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14672     ;;
14673   *)
14674     shrext_cmds='.sl'
14675     dynamic_linker="$host_os dld.sl"
14676     shlibpath_var=SHLIB_PATH
14677     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14678     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14679     soname_spec='$libname$release$shared_ext$major'
14680     ;;
14681   esac
14682   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14683   postinstall_cmds='chmod 555 $lib'
14684   # or fails outright, so override atomically:
14685   install_override_mode=555
14686   ;;
14687
14688 interix[3-9]*)
14689   version_type=linux # correct to gnu/linux during the next big refactor
14690   need_lib_prefix=no
14691   need_version=no
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='Interix 3.x ld.so.1 (PE, like ELF)'
14695   shlibpath_var=LD_LIBRARY_PATH
14696   shlibpath_overrides_runpath=no
14697   hardcode_into_libs=yes
14698   ;;
14699
14700 irix5* | irix6* | nonstopux*)
14701   case $host_os in
14702     nonstopux*) version_type=nonstopux ;;
14703     *)
14704         if test yes = "$lt_cv_prog_gnu_ld"; then
14705                 version_type=linux # correct to gnu/linux during the next big refactor
14706         else
14707                 version_type=irix
14708         fi ;;
14709   esac
14710   need_lib_prefix=no
14711   need_version=no
14712   soname_spec='$libname$release$shared_ext$major'
14713   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14714   case $host_os in
14715   irix5* | nonstopux*)
14716     libsuff= shlibsuff=
14717     ;;
14718   *)
14719     case $LD in # libtool.m4 will add one of these switches to LD
14720     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14721       libsuff= shlibsuff= libmagic=32-bit;;
14722     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14723       libsuff=32 shlibsuff=N32 libmagic=N32;;
14724     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14725       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14726     *) libsuff= shlibsuff= libmagic=never-match;;
14727     esac
14728     ;;
14729   esac
14730   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14731   shlibpath_overrides_runpath=no
14732   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14733   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14734   hardcode_into_libs=yes
14735   ;;
14736
14737 # No shared lib support for Linux oldld, aout, or coff.
14738 linux*oldld* | linux*aout* | linux*coff*)
14739   dynamic_linker=no
14740   ;;
14741
14742 linux*android*)
14743   version_type=none # Android doesn't support versioned libraries.
14744   need_lib_prefix=no
14745   need_version=no
14746   library_names_spec='$libname$release$shared_ext'
14747   soname_spec='$libname$release$shared_ext'
14748   finish_cmds=
14749   shlibpath_var=LD_LIBRARY_PATH
14750   shlibpath_overrides_runpath=yes
14751
14752   # This implies no fast_install, which is unacceptable.
14753   # Some rework will be needed to allow for fast_install
14754   # before this can be enabled.
14755   hardcode_into_libs=yes
14756
14757   dynamic_linker='Android linker'
14758   # Don't embed -rpath directories since the linker doesn't support them.
14759   hardcode_libdir_flag_spec='-L$libdir'
14760   ;;
14761
14762 # This must be glibc/ELF.
14763 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14764   version_type=linux # correct to gnu/linux during the next big refactor
14765   need_lib_prefix=no
14766   need_version=no
14767   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14768   soname_spec='$libname$release$shared_ext$major'
14769   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14770   shlibpath_var=LD_LIBRARY_PATH
14771   shlibpath_overrides_runpath=no
14772
14773   # Some binutils ld are patched to set DT_RUNPATH
14774   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14775   $as_echo_n "(cached) " >&6
14776 else
14777   lt_cv_shlibpath_overrides_runpath=no
14778     save_LDFLAGS=$LDFLAGS
14779     save_libdir=$libdir
14780     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14781          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14782     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14783 /* end confdefs.h.  */
14784
14785 int main (void)
14786 {
14787
14788  ;
14789  return 0;
14790 }
14791 _ACEOF
14792 if ac_fn_c_try_link "$LINENO"; then :
14793   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14794   lt_cv_shlibpath_overrides_runpath=yes
14795 fi
14796 fi
14797 rm -f core conftest.err conftest.$ac_objext \
14798     conftest$ac_exeext conftest.$ac_ext
14799     LDFLAGS=$save_LDFLAGS
14800     libdir=$save_libdir
14801
14802 fi
14803
14804   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14805
14806   # This implies no fast_install, which is unacceptable.
14807   # Some rework will be needed to allow for fast_install
14808   # before this can be enabled.
14809   hardcode_into_libs=yes
14810
14811   # Ideally, we could use ldconfig to report *all* directores which are
14812   # searched for libraries, however this is still not possible.  Aside from not
14813   # being certain /sbin/ldconfig is available, command
14814   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14815   # even though it is searched at run-time.  Try to do the best guess by
14816   # appending ld.so.conf contents (and includes) to the search path.
14817   if test -f /etc/ld.so.conf; then
14818     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' ' '`
14819     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14820   fi
14821
14822   # We used to test for /lib/ld.so.1 and disable shared libraries on
14823   # powerpc, because MkLinux only supported shared libraries with the
14824   # GNU dynamic linker.  Since this was broken with cross compilers,
14825   # most powerpc-linux boxes support dynamic linking these days and
14826   # people can always --disable-shared, the test was removed, and we
14827   # assume the GNU/Linux dynamic linker is in use.
14828   dynamic_linker='GNU/Linux ld.so'
14829   ;;
14830
14831 netbsdelf*-gnu)
14832   version_type=linux
14833   need_lib_prefix=no
14834   need_version=no
14835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14836   soname_spec='${libname}${release}${shared_ext}$major'
14837   shlibpath_var=LD_LIBRARY_PATH
14838   shlibpath_overrides_runpath=no
14839   hardcode_into_libs=yes
14840   dynamic_linker='NetBSD ld.elf_so'
14841   ;;
14842
14843 netbsd*)
14844   version_type=sunos
14845   need_lib_prefix=no
14846   need_version=no
14847   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14848     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14849     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14850     dynamic_linker='NetBSD (a.out) ld.so'
14851   else
14852     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14853     soname_spec='$libname$release$shared_ext$major'
14854     dynamic_linker='NetBSD ld.elf_so'
14855   fi
14856   shlibpath_var=LD_LIBRARY_PATH
14857   shlibpath_overrides_runpath=yes
14858   hardcode_into_libs=yes
14859   ;;
14860
14861 newsos6)
14862   version_type=linux # correct to gnu/linux during the next big refactor
14863   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14864   shlibpath_var=LD_LIBRARY_PATH
14865   shlibpath_overrides_runpath=yes
14866   ;;
14867
14868 *nto* | *qnx*)
14869   version_type=qnx
14870   need_lib_prefix=no
14871   need_version=no
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   shlibpath_overrides_runpath=no
14876   hardcode_into_libs=yes
14877   dynamic_linker='ldqnx.so'
14878   ;;
14879
14880 openbsd* | bitrig*)
14881   version_type=sunos
14882   sys_lib_dlsearch_path_spec=/usr/lib
14883   need_lib_prefix=no
14884   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14885     need_version=no
14886   else
14887     need_version=yes
14888   fi
14889   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14890   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14891   shlibpath_var=LD_LIBRARY_PATH
14892   shlibpath_overrides_runpath=yes
14893   ;;
14894
14895 os2*)
14896   libname_spec='$name'
14897   version_type=windows
14898   shrext_cmds=.dll
14899   need_version=no
14900   need_lib_prefix=no
14901   # OS/2 can only load a DLL with a base name of 8 characters or less.
14902   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14903     v=$($ECHO $release$versuffix | tr -d .-);
14904     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14905     $ECHO $n$v`$shared_ext'
14906   library_names_spec='${libname}_dll.$libext'
14907   dynamic_linker='OS/2 ld.exe'
14908   shlibpath_var=BEGINLIBPATH
14909   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14910   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14911   postinstall_cmds='base_file=`basename \$file`~
14912     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14913     dldir=$destdir/`dirname \$dlpath`~
14914     test -d \$dldir || mkdir -p \$dldir~
14915     $install_prog $dir/$dlname \$dldir/$dlname~
14916     chmod a+x \$dldir/$dlname~
14917     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14918       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14919     fi'
14920   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14921     dlpath=$dir/\$dldll~
14922     $RM \$dlpath'
14923   ;;
14924
14925 osf3* | osf4* | osf5*)
14926   version_type=osf
14927   need_lib_prefix=no
14928   need_version=no
14929   soname_spec='$libname$release$shared_ext$major'
14930   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14931   shlibpath_var=LD_LIBRARY_PATH
14932   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14933   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14934   ;;
14935
14936 rdos*)
14937   dynamic_linker=no
14938   ;;
14939
14940 solaris*)
14941   version_type=linux # correct to gnu/linux during the next big refactor
14942   need_lib_prefix=no
14943   need_version=no
14944   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14945   soname_spec='$libname$release$shared_ext$major'
14946   shlibpath_var=LD_LIBRARY_PATH
14947   shlibpath_overrides_runpath=yes
14948   hardcode_into_libs=yes
14949   # ldd complains unless libraries are executable
14950   postinstall_cmds='chmod +x $lib'
14951   ;;
14952
14953 sunos4*)
14954   version_type=sunos
14955   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14956   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14957   shlibpath_var=LD_LIBRARY_PATH
14958   shlibpath_overrides_runpath=yes
14959   if test yes = "$with_gnu_ld"; then
14960     need_lib_prefix=no
14961   fi
14962   need_version=yes
14963   ;;
14964
14965 sysv4 | sysv4.3*)
14966   version_type=linux # correct to gnu/linux during the next big refactor
14967   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14968   soname_spec='$libname$release$shared_ext$major'
14969   shlibpath_var=LD_LIBRARY_PATH
14970   case $host_vendor in
14971     sni)
14972       shlibpath_overrides_runpath=no
14973       need_lib_prefix=no
14974       runpath_var=LD_RUN_PATH
14975       ;;
14976     siemens)
14977       need_lib_prefix=no
14978       ;;
14979     motorola)
14980       need_lib_prefix=no
14981       need_version=no
14982       shlibpath_overrides_runpath=no
14983       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14984       ;;
14985   esac
14986   ;;
14987
14988 sysv4*MP*)
14989   if test -d /usr/nec; then
14990     version_type=linux # correct to gnu/linux during the next big refactor
14991     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14992     soname_spec='$libname$shared_ext.$major'
14993     shlibpath_var=LD_LIBRARY_PATH
14994   fi
14995   ;;
14996
14997 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14998   version_type=sco
14999   need_lib_prefix=no
15000   need_version=no
15001   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15002   soname_spec='$libname$release$shared_ext$major'
15003   shlibpath_var=LD_LIBRARY_PATH
15004   shlibpath_overrides_runpath=yes
15005   hardcode_into_libs=yes
15006   if test yes = "$with_gnu_ld"; then
15007     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15008   else
15009     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15010     case $host_os in
15011       sco3.2v5*)
15012         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15013         ;;
15014     esac
15015   fi
15016   sys_lib_dlsearch_path_spec='/usr/lib'
15017   ;;
15018
15019 tpf*)
15020   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15021   version_type=linux # correct to gnu/linux during the next big refactor
15022   need_lib_prefix=no
15023   need_version=no
15024   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15025   shlibpath_var=LD_LIBRARY_PATH
15026   shlibpath_overrides_runpath=no
15027   hardcode_into_libs=yes
15028   ;;
15029
15030 uts4*)
15031   version_type=linux # correct to gnu/linux during the next big refactor
15032   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15033   soname_spec='$libname$release$shared_ext$major'
15034   shlibpath_var=LD_LIBRARY_PATH
15035   ;;
15036
15037 *)
15038   dynamic_linker=no
15039   ;;
15040 esac
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15042 $as_echo "$dynamic_linker" >&6; }
15043 test no = "$dynamic_linker" && can_build_shared=no
15044
15045 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15046 if test yes = "$GCC"; then
15047   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15048 fi
15049
15050 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15051   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15052 fi
15053
15054 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15055   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15056 fi
15057
15058 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15059 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15060
15061 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15062 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15063
15064 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15065 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15164 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15165 hardcode_action=
15166 if test -n "$hardcode_libdir_flag_spec" ||
15167    test -n "$runpath_var" ||
15168    test yes = "$hardcode_automatic"; then
15169
15170   # We can hardcode non-existent directories.
15171   if test no != "$hardcode_direct" &&
15172      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15173      # have to relink, otherwise we might link with an installed library
15174      # when we should be linking with a yet-to-be-installed one
15175      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15176      test no != "$hardcode_minus_L"; then
15177     # Linking always hardcodes the temporary library directory.
15178     hardcode_action=relink
15179   else
15180     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15181     hardcode_action=immediate
15182   fi
15183 else
15184   # We cannot hardcode anything, or else we can only hardcode existing
15185   # directories.
15186   hardcode_action=unsupported
15187 fi
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15189 $as_echo "$hardcode_action" >&6; }
15190
15191 if test relink = "$hardcode_action" ||
15192    test yes = "$inherit_rpath"; then
15193   # Fast installation is not supported
15194   enable_fast_install=no
15195 elif test yes = "$shlibpath_overrides_runpath" ||
15196      test no = "$enable_shared"; then
15197   # Fast installation is not necessary
15198   enable_fast_install=needless
15199 fi
15200
15201
15202
15203
15204
15205
15206   if test yes != "$enable_dlopen"; then
15207   enable_dlopen=unknown
15208   enable_dlopen_self=unknown
15209   enable_dlopen_self_static=unknown
15210 else
15211   lt_cv_dlopen=no
15212   lt_cv_dlopen_libs=
15213
15214   case $host_os in
15215   beos*)
15216     lt_cv_dlopen=load_add_on
15217     lt_cv_dlopen_libs=
15218     lt_cv_dlopen_self=yes
15219     ;;
15220
15221   mingw* | pw32* | cegcc*)
15222     lt_cv_dlopen=LoadLibrary
15223     lt_cv_dlopen_libs=
15224     ;;
15225
15226   cygwin*)
15227     lt_cv_dlopen=dlopen
15228     lt_cv_dlopen_libs=
15229     ;;
15230
15231   darwin*)
15232     # if libdl is installed we need to link against it
15233     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15234 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15235 if ${ac_cv_lib_dl_dlopen+:} false; then :
15236   $as_echo_n "(cached) " >&6
15237 else
15238   ac_check_lib_save_LIBS=$LIBS
15239 LIBS="-ldl  $LIBS"
15240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15241 /* end confdefs.h.  */
15242
15243
15244 #ifdef __cplusplus
15245 extern "C"
15246 #endif
15247 char dlopen ();
15248 int main (void)
15249 {
15250 return dlopen ();
15251  ;
15252  return 0;
15253 }
15254 _ACEOF
15255 if ac_fn_c_try_link "$LINENO"; then :
15256   ac_cv_lib_dl_dlopen=yes
15257 else
15258   ac_cv_lib_dl_dlopen=no
15259 fi
15260 rm -f core conftest.err conftest.$ac_objext \
15261     conftest$ac_exeext conftest.$ac_ext
15262 LIBS=$ac_check_lib_save_LIBS
15263 fi
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15265 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15266 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15267   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15268 else
15269
15270     lt_cv_dlopen=dyld
15271     lt_cv_dlopen_libs=
15272     lt_cv_dlopen_self=yes
15273
15274 fi
15275
15276     ;;
15277
15278   tpf*)
15279     # Don't try to run any link tests for TPF.  We know it's impossible
15280     # because TPF is a cross-compiler, and we know how we open DSOs.
15281     lt_cv_dlopen=dlopen
15282     lt_cv_dlopen_libs=
15283     lt_cv_dlopen_self=no
15284     ;;
15285
15286   *)
15287     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15288 if test "x$ac_cv_func_shl_load" = xyes; then :
15289   lt_cv_dlopen=shl_load
15290 else
15291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15292 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15293 if ${ac_cv_lib_dld_shl_load+:} false; then :
15294   $as_echo_n "(cached) " >&6
15295 else
15296   ac_check_lib_save_LIBS=$LIBS
15297 LIBS="-ldld  $LIBS"
15298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15299 /* end confdefs.h.  */
15300
15301
15302 #ifdef __cplusplus
15303 extern "C"
15304 #endif
15305 char shl_load ();
15306 int main (void)
15307 {
15308 return shl_load ();
15309  ;
15310  return 0;
15311 }
15312 _ACEOF
15313 if ac_fn_c_try_link "$LINENO"; then :
15314   ac_cv_lib_dld_shl_load=yes
15315 else
15316   ac_cv_lib_dld_shl_load=no
15317 fi
15318 rm -f core conftest.err conftest.$ac_objext \
15319     conftest$ac_exeext conftest.$ac_ext
15320 LIBS=$ac_check_lib_save_LIBS
15321 fi
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15323 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15324 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15325   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15326 else
15327   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15328 if test "x$ac_cv_func_dlopen" = xyes; then :
15329   lt_cv_dlopen=dlopen
15330 else
15331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15332 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15333 if ${ac_cv_lib_dl_dlopen+:} false; then :
15334   $as_echo_n "(cached) " >&6
15335 else
15336   ac_check_lib_save_LIBS=$LIBS
15337 LIBS="-ldl  $LIBS"
15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h.  */
15340
15341
15342 #ifdef __cplusplus
15343 extern "C"
15344 #endif
15345 char dlopen ();
15346 int main (void)
15347 {
15348 return dlopen ();
15349  ;
15350  return 0;
15351 }
15352 _ACEOF
15353 if ac_fn_c_try_link "$LINENO"; then :
15354   ac_cv_lib_dl_dlopen=yes
15355 else
15356   ac_cv_lib_dl_dlopen=no
15357 fi
15358 rm -f core conftest.err conftest.$ac_objext \
15359     conftest$ac_exeext conftest.$ac_ext
15360 LIBS=$ac_check_lib_save_LIBS
15361 fi
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15363 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15364 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15365   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15366 else
15367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15368 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15369 if ${ac_cv_lib_svld_dlopen+:} false; then :
15370   $as_echo_n "(cached) " >&6
15371 else
15372   ac_check_lib_save_LIBS=$LIBS
15373 LIBS="-lsvld  $LIBS"
15374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15375 /* end confdefs.h.  */
15376
15377
15378 #ifdef __cplusplus
15379 extern "C"
15380 #endif
15381 char dlopen ();
15382 int main (void)
15383 {
15384 return dlopen ();
15385  ;
15386  return 0;
15387 }
15388 _ACEOF
15389 if ac_fn_c_try_link "$LINENO"; then :
15390   ac_cv_lib_svld_dlopen=yes
15391 else
15392   ac_cv_lib_svld_dlopen=no
15393 fi
15394 rm -f core conftest.err conftest.$ac_objext \
15395     conftest$ac_exeext conftest.$ac_ext
15396 LIBS=$ac_check_lib_save_LIBS
15397 fi
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15399 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15400 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15401   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15402 else
15403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15404 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15405 if ${ac_cv_lib_dld_dld_link+:} false; then :
15406   $as_echo_n "(cached) " >&6
15407 else
15408   ac_check_lib_save_LIBS=$LIBS
15409 LIBS="-ldld  $LIBS"
15410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15411 /* end confdefs.h.  */
15412
15413
15414 #ifdef __cplusplus
15415 extern "C"
15416 #endif
15417 char dld_link ();
15418 int main (void)
15419 {
15420 return dld_link ();
15421  ;
15422  return 0;
15423 }
15424 _ACEOF
15425 if ac_fn_c_try_link "$LINENO"; then :
15426   ac_cv_lib_dld_dld_link=yes
15427 else
15428   ac_cv_lib_dld_dld_link=no
15429 fi
15430 rm -f core conftest.err conftest.$ac_objext \
15431     conftest$ac_exeext conftest.$ac_ext
15432 LIBS=$ac_check_lib_save_LIBS
15433 fi
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15435 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15436 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15437   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15438 fi
15439
15440
15441 fi
15442
15443
15444 fi
15445
15446
15447 fi
15448
15449
15450 fi
15451
15452
15453 fi
15454
15455     ;;
15456   esac
15457
15458   if test no = "$lt_cv_dlopen"; then
15459     enable_dlopen=no
15460   else
15461     enable_dlopen=yes
15462   fi
15463
15464   case $lt_cv_dlopen in
15465   dlopen)
15466     save_CPPFLAGS=$CPPFLAGS
15467     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15468
15469     save_LDFLAGS=$LDFLAGS
15470     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15471
15472     save_LIBS=$LIBS
15473     LIBS="$lt_cv_dlopen_libs $LIBS"
15474
15475     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15476 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15477 if ${lt_cv_dlopen_self+:} false; then :
15478   $as_echo_n "(cached) " >&6
15479 else
15480           if test yes = "$cross_compiling"; then :
15481   lt_cv_dlopen_self=cross
15482 else
15483   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15484   lt_status=$lt_dlunknown
15485   cat > conftest.$ac_ext <<_LT_EOF
15486 #line $LINENO "configure"
15487 #include "confdefs.h"
15488
15489 #if HAVE_DLFCN_H
15490 #include <dlfcn.h>
15491 #endif
15492
15493 #include <stdio.h>
15494
15495 #ifdef RTLD_GLOBAL
15496 #  define LT_DLGLOBAL           RTLD_GLOBAL
15497 #else
15498 #  ifdef DL_GLOBAL
15499 #    define LT_DLGLOBAL         DL_GLOBAL
15500 #  else
15501 #    define LT_DLGLOBAL         0
15502 #  endif
15503 #endif
15504
15505 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15506    find out it does not work in some platform. */
15507 #ifndef LT_DLLAZY_OR_NOW
15508 #  ifdef RTLD_LAZY
15509 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15510 #  else
15511 #    ifdef DL_LAZY
15512 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15513 #    else
15514 #      ifdef RTLD_NOW
15515 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15516 #      else
15517 #        ifdef DL_NOW
15518 #          define LT_DLLAZY_OR_NOW      DL_NOW
15519 #        else
15520 #          define LT_DLLAZY_OR_NOW      0
15521 #        endif
15522 #      endif
15523 #    endif
15524 #  endif
15525 #endif
15526
15527 /* When -fvisibility=hidden is used, assume the code has been annotated
15528    correspondingly for the symbols needed.  */
15529 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15530 int fnord () __attribute__((visibility("default")));
15531 #endif
15532
15533 int fnord () { return 42; }
15534 int main ()
15535 {
15536   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15537   int status = $lt_dlunknown;
15538
15539   if (self)
15540     {
15541       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15542       else
15543         {
15544           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15545           else puts (dlerror ());
15546         }
15547       /* dlclose (self); */
15548     }
15549   else
15550     puts (dlerror ());
15551
15552   return status;
15553 }
15554 _LT_EOF
15555   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15556   (eval $ac_link) 2>&5
15557   ac_status=$?
15558   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15559   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15560     (./conftest; exit; ) >&5 2>/dev/null
15561     lt_status=$?
15562     case x$lt_status in
15563       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15564       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15565       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15566     esac
15567   else :
15568     # compilation failed
15569     lt_cv_dlopen_self=no
15570   fi
15571 fi
15572 rm -fr conftest*
15573
15574
15575 fi
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15577 $as_echo "$lt_cv_dlopen_self" >&6; }
15578
15579     if test yes = "$lt_cv_dlopen_self"; then
15580       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15581       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15582 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15583 if ${lt_cv_dlopen_self_static+:} false; then :
15584   $as_echo_n "(cached) " >&6
15585 else
15586           if test yes = "$cross_compiling"; then :
15587   lt_cv_dlopen_self_static=cross
15588 else
15589   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15590   lt_status=$lt_dlunknown
15591   cat > conftest.$ac_ext <<_LT_EOF
15592 #line $LINENO "configure"
15593 #include "confdefs.h"
15594
15595 #if HAVE_DLFCN_H
15596 #include <dlfcn.h>
15597 #endif
15598
15599 #include <stdio.h>
15600
15601 #ifdef RTLD_GLOBAL
15602 #  define LT_DLGLOBAL           RTLD_GLOBAL
15603 #else
15604 #  ifdef DL_GLOBAL
15605 #    define LT_DLGLOBAL         DL_GLOBAL
15606 #  else
15607 #    define LT_DLGLOBAL         0
15608 #  endif
15609 #endif
15610
15611 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15612    find out it does not work in some platform. */
15613 #ifndef LT_DLLAZY_OR_NOW
15614 #  ifdef RTLD_LAZY
15615 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15616 #  else
15617 #    ifdef DL_LAZY
15618 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15619 #    else
15620 #      ifdef RTLD_NOW
15621 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15622 #      else
15623 #        ifdef DL_NOW
15624 #          define LT_DLLAZY_OR_NOW      DL_NOW
15625 #        else
15626 #          define LT_DLLAZY_OR_NOW      0
15627 #        endif
15628 #      endif
15629 #    endif
15630 #  endif
15631 #endif
15632
15633 /* When -fvisibility=hidden is used, assume the code has been annotated
15634    correspondingly for the symbols needed.  */
15635 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15636 int fnord () __attribute__((visibility("default")));
15637 #endif
15638
15639 int fnord () { return 42; }
15640 int main ()
15641 {
15642   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15643   int status = $lt_dlunknown;
15644
15645   if (self)
15646     {
15647       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15648       else
15649         {
15650           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15651           else puts (dlerror ());
15652         }
15653       /* dlclose (self); */
15654     }
15655   else
15656     puts (dlerror ());
15657
15658   return status;
15659 }
15660 _LT_EOF
15661   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15662   (eval $ac_link) 2>&5
15663   ac_status=$?
15664   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15665   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15666     (./conftest; exit; ) >&5 2>/dev/null
15667     lt_status=$?
15668     case x$lt_status in
15669       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15670       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15671       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15672     esac
15673   else :
15674     # compilation failed
15675     lt_cv_dlopen_self_static=no
15676   fi
15677 fi
15678 rm -fr conftest*
15679
15680
15681 fi
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15683 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15684     fi
15685
15686     CPPFLAGS=$save_CPPFLAGS
15687     LDFLAGS=$save_LDFLAGS
15688     LIBS=$save_LIBS
15689     ;;
15690   esac
15691
15692   case $lt_cv_dlopen_self in
15693   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15694   *) enable_dlopen_self=unknown ;;
15695   esac
15696
15697   case $lt_cv_dlopen_self_static in
15698   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15699   *) enable_dlopen_self_static=unknown ;;
15700   esac
15701 fi
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719 striplib=
15720 old_striplib=
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15722 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15723 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15724   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15725   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15727 $as_echo "yes" >&6; }
15728 else
15729 # FIXME - insert some real tests, host_os isn't really good enough
15730   case $host_os in
15731   darwin*)
15732     if test -n "$STRIP"; then
15733       striplib="$STRIP -x"
15734       old_striplib="$STRIP -S"
15735       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15736 $as_echo "yes" >&6; }
15737     else
15738       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15739 $as_echo "no" >&6; }
15740     fi
15741     ;;
15742   *)
15743     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15744 $as_echo "no" >&6; }
15745     ;;
15746   esac
15747 fi
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760   # Report what library types will actually be built
15761   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15762 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15764 $as_echo "$can_build_shared" >&6; }
15765
15766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15767 $as_echo_n "checking whether to build shared libraries... " >&6; }
15768   test no = "$can_build_shared" && enable_shared=no
15769
15770   # On AIX, shared libraries and static libraries use the same namespace, and
15771   # are all built from PIC.
15772   case $host_os in
15773   aix3*)
15774     test yes = "$enable_shared" && enable_static=no
15775     if test -n "$RANLIB"; then
15776       archive_cmds="$archive_cmds~\$RANLIB \$lib"
15777       postinstall_cmds='$RANLIB $lib'
15778     fi
15779     ;;
15780
15781   aix[4-9]*)
15782     if test ia64 != "$host_cpu"; then
15783       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15784       yes,aix,yes) ;;                   # shared object as lib.so file only
15785       yes,svr4,*) ;;                    # shared object as lib.so archive member only
15786       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
15787       esac
15788     fi
15789     ;;
15790   esac
15791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15792 $as_echo "$enable_shared" >&6; }
15793
15794   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15795 $as_echo_n "checking whether to build static libraries... " >&6; }
15796   # Make sure either enable_shared or enable_static is yes.
15797   test yes = "$enable_shared" || enable_static=yes
15798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15799 $as_echo "$enable_static" >&6; }
15800
15801
15802
15803
15804 fi
15805 ac_ext=c
15806 ac_cpp='$CPP $CPPFLAGS'
15807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15810
15811 CC=$lt_save_CC
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827         ac_config_commands="$ac_config_commands libtool"
15828
15829
15830
15831
15832 # Only expand once:
15833
15834
15835 ## --------------------- ##
15836 ##  End of libtool code  ##
15837 ## --------------------- ##
15838
15839 #
15840 # Verify if finally libtool shared libraries will be built
15841 #
15842
15843 case "x$enable_shared" in # ((
15844   xyes | xno)
15845     xc_lt_build_shared=$enable_shared
15846     ;;
15847   *)
15848     as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15849     ;;
15850 esac
15851
15852 #
15853 # Verify if finally libtool static libraries will be built
15854 #
15855
15856 case "x$enable_static" in # ((
15857   xyes | xno)
15858     xc_lt_build_static=$enable_static
15859     ;;
15860   *)
15861     as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15862     ;;
15863 esac
15864
15865 #
15866 # Verify if libtool shared libraries should be linked using flag -version-info
15867 #
15868
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15870 $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15871 xc_lt_shlib_use_version_info='yes'
15872 if test "x$version_type" = 'xnone'; then
15873   xc_lt_shlib_use_version_info='no'
15874 fi
15875 case $host_os in # (
15876   amigaos*)
15877     xc_lt_shlib_use_version_info='yes'
15878     ;;
15879 esac
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15881 $as_echo "$xc_lt_shlib_use_version_info" >&6; }
15882
15883 #
15884 # Verify if libtool shared libraries should be linked using flag -no-undefined
15885 #
15886
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15888 $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15889 xc_lt_shlib_use_no_undefined='no'
15890 if test "x$allow_undefined" = 'xno'; then
15891   xc_lt_shlib_use_no_undefined='yes'
15892 elif test "x$allow_undefined_flag" = 'xunsupported'; then
15893   xc_lt_shlib_use_no_undefined='yes'
15894 fi
15895 case $host_os in # (
15896   cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15897     xc_lt_shlib_use_no_undefined='yes'
15898     ;;
15899 esac
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15901 $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15902
15903 #
15904 # Verify if libtool shared libraries should be linked using flag -mimpure-text
15905 #
15906
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15908 $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15909 xc_lt_shlib_use_mimpure_text='no'
15910 case $host_os in # (
15911   solaris2*)
15912     if test "x$GCC" = 'xyes'; then
15913       xc_lt_shlib_use_mimpure_text='yes'
15914     fi
15915     ;;
15916 esac
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15918 $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15919
15920 #
15921 # Find out wether libtool libraries would be built wit PIC
15922 #
15923
15924 case "x$pic_mode" in # ((((
15925   xdefault)
15926     xc_lt_build_shared_with_pic='yes'
15927     xc_lt_build_static_with_pic='no'
15928     ;;
15929   xyes)
15930     xc_lt_build_shared_with_pic='yes'
15931     xc_lt_build_static_with_pic='yes'
15932     ;;
15933   xno)
15934     xc_lt_build_shared_with_pic='no'
15935     xc_lt_build_static_with_pic='no'
15936     ;;
15937   *)
15938     xc_lt_build_shared_with_pic='unknown'
15939     xc_lt_build_static_with_pic='unknown'
15940     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15941 $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15942     ;;
15943 esac
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15945 $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15947 $as_echo "$xc_lt_build_shared_with_pic" >&6; }
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15949 $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15951 $as_echo "$xc_lt_build_static_with_pic" >&6; }
15952
15953 #
15954 # Verify if libtool shared libraries will be built while static not built
15955 #
15956
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15958 $as_echo_n "checking whether to build shared libraries only... " >&6; }
15959 if test "$xc_lt_build_shared" = 'yes' &&
15960   test "$xc_lt_build_static" = 'no'; then
15961   xc_lt_build_shared_only='yes'
15962 else
15963   xc_lt_build_shared_only='no'
15964 fi
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15966 $as_echo "$xc_lt_build_shared_only" >&6; }
15967
15968 #
15969 # Verify if libtool static libraries will be built while shared not built
15970 #
15971
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15973 $as_echo_n "checking whether to build static libraries only... " >&6; }
15974 if test "$xc_lt_build_static" = 'yes' &&
15975   test "$xc_lt_build_shared" = 'no'; then
15976   xc_lt_build_static_only='yes'
15977 else
15978   xc_lt_build_static_only='no'
15979 fi
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15981 $as_echo "$xc_lt_build_static_only" >&6; }
15982
15983
15984
15985
15986 #
15987 # Automake conditionals based on libtool related checks
15988 #
15989
15990  if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15991   CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15992   CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15993 else
15994   CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15995   CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15996 fi
15997
15998  if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15999   CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
16000   CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
16001 else
16002   CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
16003   CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
16004 fi
16005
16006  if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
16007   CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
16008   CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
16009 else
16010   CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
16011   CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
16012 fi
16013
16014
16015 #
16016 # Due to libtool and automake machinery limitations of not allowing
16017 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
16018 # inclusion of these in shared or static libraries, we are forced to
16019 # build using separate configure runs for shared and static libraries
16020 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
16021 # to compile objects for each kind of library. Notice that relying on
16022 # the '-DPIC' CFLAG that libtool provides is not valid given that the
16023 # user might for example choose to build static libraries with PIC.
16024 #
16025
16026 #
16027 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
16028 # targeting a static library and not building its shared counterpart.
16029 #
16030
16031  if test "x$xc_lt_build_static_only" = 'xyes'; then
16032   USE_CPPFLAG_CURL_STATICLIB_TRUE=
16033   USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
16034 else
16035   USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
16036   USE_CPPFLAG_CURL_STATICLIB_FALSE=
16037 fi
16038
16039
16040 #
16041 # Make staticlib CPPFLAG variable and its definition visible in output
16042 # files unconditionally, providing an empty definition unless strictly
16043 # targeting a static library and not building its shared counterpart.
16044 #
16045
16046 CPPFLAG_CURL_STATICLIB=
16047 if test "x$xc_lt_build_static_only" = 'xyes'; then
16048   CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
16049 fi
16050
16051
16052
16053 # Determine whether all dependent libraries must be specified when linking
16054 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
16055 then
16056     REQUIRE_LIB_DEPS=no
16057 else
16058     REQUIRE_LIB_DEPS=yes
16059 fi
16060
16061  if test x$REQUIRE_LIB_DEPS = xyes; then
16062   USE_EXPLICIT_LIB_DEPS_TRUE=
16063   USE_EXPLICIT_LIB_DEPS_FALSE='#'
16064 else
16065   USE_EXPLICIT_LIB_DEPS_TRUE='#'
16066   USE_EXPLICIT_LIB_DEPS_FALSE=
16067 fi
16068
16069
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16071 $as_echo_n "checking for inline... " >&6; }
16072 if ${ac_cv_c_inline+:} false; then :
16073   $as_echo_n "(cached) " >&6
16074 else
16075   ac_cv_c_inline=no
16076 for ac_kw in inline __inline__ __inline; do
16077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16078 /* end confdefs.h.  */
16079 #ifndef __cplusplus
16080 typedef int foo_t;
16081 static $ac_kw foo_t static_foo () {return 0; }
16082 $ac_kw foo_t foo () {return 0; }
16083 #endif
16084
16085 _ACEOF
16086 if ac_fn_c_try_compile "$LINENO"; then :
16087   ac_cv_c_inline=$ac_kw
16088 fi
16089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16090   test "$ac_cv_c_inline" != no && break
16091 done
16092
16093 fi
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16095 $as_echo "$ac_cv_c_inline" >&6; }
16096
16097 case $ac_cv_c_inline in
16098   inline | yes) ;;
16099   *)
16100     case $ac_cv_c_inline in
16101       no) ac_val=;;
16102       *) ac_val=$ac_cv_c_inline;;
16103     esac
16104     cat >>confdefs.h <<_ACEOF
16105 #ifndef __cplusplus
16106 #define inline $ac_val
16107 #endif
16108 _ACEOF
16109     ;;
16110 esac
16111
16112
16113
16114
16115   #
16116   compiler_id="unknown"
16117   compiler_num="0"
16118   #
16119   flags_dbg_all="unknown"
16120   flags_dbg_yes="unknown"
16121   flags_dbg_off="unknown"
16122   flags_opt_all="unknown"
16123   flags_opt_yes="unknown"
16124   flags_opt_off="unknown"
16125   #
16126   flags_prefer_cppflags="no"
16127   #
16128
16129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
16130 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
16131
16132     OLDCPPFLAGS=$CPPFLAGS
16133   # CPPPFLAGS comes from CURL_CPP_P
16134   CPPFLAGS="$CPPPFLAGS"
16135       if test -z "$SED"; then
16136     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16137   fi
16138   if test -z "$GREP"; then
16139     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16140   fi
16141
16142   tmp_exp=""
16143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16144 /* end confdefs.h.  */
16145
16146
16147 #ifdef __DECC
16148 CURL_DEF_TOKEN __DECC
16149 #endif
16150
16151
16152 _ACEOF
16153 if ac_fn_c_try_cpp "$LINENO"; then :
16154
16155     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16156       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16157       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16158       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16159     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
16160       tmp_exp=""
16161     fi
16162
16163 fi
16164 rm -f conftest.err conftest.i conftest.$ac_ext
16165   if test -z "$tmp_exp"; then
16166     curl_cv_have_def___DECC=no
16167
16168   else
16169     curl_cv_have_def___DECC=yes
16170     curl_cv_def___DECC=$tmp_exp
16171
16172   fi
16173       CPPFLAGS=$OLDCPPFLAGS
16174
16175
16176     OLDCPPFLAGS=$CPPFLAGS
16177   # CPPPFLAGS comes from CURL_CPP_P
16178   CPPFLAGS="$CPPPFLAGS"
16179       if test -z "$SED"; then
16180     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16181   fi
16182   if test -z "$GREP"; then
16183     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16184   fi
16185
16186   tmp_exp=""
16187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16188 /* end confdefs.h.  */
16189
16190
16191 #ifdef __DECC_VER
16192 CURL_DEF_TOKEN __DECC_VER
16193 #endif
16194
16195
16196 _ACEOF
16197 if ac_fn_c_try_cpp "$LINENO"; then :
16198
16199     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16200       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16201       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16202       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16203     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
16204       tmp_exp=""
16205     fi
16206
16207 fi
16208 rm -f conftest.err conftest.i conftest.$ac_ext
16209   if test -z "$tmp_exp"; then
16210     curl_cv_have_def___DECC_VER=no
16211
16212   else
16213     curl_cv_have_def___DECC_VER=yes
16214     curl_cv_def___DECC_VER=$tmp_exp
16215
16216   fi
16217       CPPFLAGS=$OLDCPPFLAGS
16218
16219   if test "$curl_cv_have_def___DECC" = "yes" &&
16220     test "$curl_cv_have_def___DECC_VER" = "yes"; then
16221     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16222 $as_echo "yes" >&6; }
16223     compiler_id="DEC_C"
16224     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16225     flags_dbg_yes="-g2"
16226     flags_dbg_off=""
16227     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
16228     flags_opt_yes="-O1"
16229     flags_opt_off="-O0"
16230   else
16231     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16232 $as_echo "no" >&6; }
16233   fi
16234
16235
16236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
16237 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
16238
16239     OLDCPPFLAGS=$CPPFLAGS
16240   # CPPPFLAGS comes from CURL_CPP_P
16241   CPPFLAGS="$CPPPFLAGS"
16242       if test -z "$SED"; then
16243     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16244   fi
16245   if test -z "$GREP"; then
16246     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16247   fi
16248
16249   tmp_exp=""
16250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16251 /* end confdefs.h.  */
16252
16253
16254 #ifdef __HP_cc
16255 CURL_DEF_TOKEN __HP_cc
16256 #endif
16257
16258
16259 _ACEOF
16260 if ac_fn_c_try_cpp "$LINENO"; then :
16261
16262     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16263       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16264       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16265       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16266     if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
16267       tmp_exp=""
16268     fi
16269
16270 fi
16271 rm -f conftest.err conftest.i conftest.$ac_ext
16272   if test -z "$tmp_exp"; then
16273     curl_cv_have_def___HP_cc=no
16274
16275   else
16276     curl_cv_have_def___HP_cc=yes
16277     curl_cv_def___HP_cc=$tmp_exp
16278
16279   fi
16280       CPPFLAGS=$OLDCPPFLAGS
16281
16282   if test "$curl_cv_have_def___HP_cc" = "yes"; then
16283     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16284 $as_echo "yes" >&6; }
16285     compiler_id="HP_UX_C"
16286     flags_dbg_all="-g -s"
16287     flags_dbg_yes="-g"
16288     flags_dbg_off="-s"
16289     flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
16290     flags_opt_yes="+O2"
16291     flags_opt_off="+O0"
16292   else
16293     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16294 $as_echo "no" >&6; }
16295   fi
16296
16297
16298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
16299 $as_echo_n "checking if compiler is IBM C... " >&6; }
16300
16301     OLDCPPFLAGS=$CPPFLAGS
16302   # CPPPFLAGS comes from CURL_CPP_P
16303   CPPFLAGS="$CPPPFLAGS"
16304       if test -z "$SED"; then
16305     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16306   fi
16307   if test -z "$GREP"; then
16308     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16309   fi
16310
16311   tmp_exp=""
16312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16313 /* end confdefs.h.  */
16314
16315
16316 #ifdef __IBMC__
16317 CURL_DEF_TOKEN __IBMC__
16318 #endif
16319
16320
16321 _ACEOF
16322 if ac_fn_c_try_cpp "$LINENO"; then :
16323
16324     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16325       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16326       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16327       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16328     if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
16329       tmp_exp=""
16330     fi
16331
16332 fi
16333 rm -f conftest.err conftest.i conftest.$ac_ext
16334   if test -z "$tmp_exp"; then
16335     curl_cv_have_def___IBMC__=no
16336
16337   else
16338     curl_cv_have_def___IBMC__=yes
16339     curl_cv_def___IBMC__=$tmp_exp
16340
16341   fi
16342       CPPFLAGS=$OLDCPPFLAGS
16343
16344   if test "$curl_cv_have_def___IBMC__" = "yes"; then
16345     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16346 $as_echo "yes" >&6; }
16347     compiler_id="IBM_C"
16348     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16349     flags_dbg_yes="-g"
16350     flags_dbg_off=""
16351     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
16352     flags_opt_all="$flags_opt_all -qnooptimize"
16353     flags_opt_all="$flags_opt_all -qoptimize=0"
16354     flags_opt_all="$flags_opt_all -qoptimize=1"
16355     flags_opt_all="$flags_opt_all -qoptimize=2"
16356     flags_opt_all="$flags_opt_all -qoptimize=3"
16357     flags_opt_all="$flags_opt_all -qoptimize=4"
16358     flags_opt_all="$flags_opt_all -qoptimize=5"
16359     flags_opt_yes="-O2"
16360     flags_opt_off="-qnooptimize"
16361     flags_prefer_cppflags="yes"
16362   else
16363     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16364 $as_echo "no" >&6; }
16365   fi
16366
16367
16368     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
16369 $as_echo_n "checking if compiler is Intel C... " >&6; }
16370
16371     OLDCPPFLAGS=$CPPFLAGS
16372   # CPPPFLAGS comes from CURL_CPP_P
16373   CPPFLAGS="$CPPPFLAGS"
16374       if test -z "$SED"; then
16375     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16376   fi
16377   if test -z "$GREP"; then
16378     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16379   fi
16380
16381   tmp_exp=""
16382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16383 /* end confdefs.h.  */
16384
16385
16386 #ifdef __INTEL_COMPILER
16387 CURL_DEF_TOKEN __INTEL_COMPILER
16388 #endif
16389
16390
16391 _ACEOF
16392 if ac_fn_c_try_cpp "$LINENO"; then :
16393
16394     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16395       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16396       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16397       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16398     if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
16399       tmp_exp=""
16400     fi
16401
16402 fi
16403 rm -f conftest.err conftest.i conftest.$ac_ext
16404   if test -z "$tmp_exp"; then
16405     curl_cv_have_def___INTEL_COMPILER=no
16406
16407   else
16408     curl_cv_have_def___INTEL_COMPILER=yes
16409     curl_cv_def___INTEL_COMPILER=$tmp_exp
16410
16411   fi
16412       CPPFLAGS=$OLDCPPFLAGS
16413
16414   if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
16415     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16416 $as_echo "yes" >&6; }
16417     compiler_num="$curl_cv_def___INTEL_COMPILER"
16418
16419     OLDCPPFLAGS=$CPPFLAGS
16420   # CPPPFLAGS comes from CURL_CPP_P
16421   CPPFLAGS="$CPPPFLAGS"
16422       if test -z "$SED"; then
16423     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16424   fi
16425   if test -z "$GREP"; then
16426     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16427   fi
16428
16429   tmp_exp=""
16430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16431 /* end confdefs.h.  */
16432
16433
16434 #ifdef __unix__
16435 CURL_DEF_TOKEN __unix__
16436 #endif
16437
16438
16439 _ACEOF
16440 if ac_fn_c_try_cpp "$LINENO"; then :
16441
16442     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16443       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16444       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16445       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16446     if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16447       tmp_exp=""
16448     fi
16449
16450 fi
16451 rm -f conftest.err conftest.i conftest.$ac_ext
16452   if test -z "$tmp_exp"; then
16453     curl_cv_have_def___unix__=no
16454
16455   else
16456     curl_cv_have_def___unix__=yes
16457     curl_cv_def___unix__=$tmp_exp
16458
16459   fi
16460       CPPFLAGS=$OLDCPPFLAGS
16461
16462     if test "$curl_cv_have_def___unix__" = "yes"; then
16463       compiler_id="INTEL_UNIX_C"
16464       flags_dbg_all="-g -g0"
16465       flags_dbg_yes="-g"
16466       flags_dbg_off=""
16467       flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16468       flags_opt_yes="-O2"
16469       flags_opt_off="-O0"
16470     else
16471       compiler_id="INTEL_WINDOWS_C"
16472       flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
16473       flags_dbg_all="$flags_dbg_all /debug"
16474       flags_dbg_all="$flags_dbg_all /debug:none"
16475       flags_dbg_all="$flags_dbg_all /debug:minimal"
16476       flags_dbg_all="$flags_dbg_all /debug:partial"
16477       flags_dbg_all="$flags_dbg_all /debug:full"
16478       flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
16479       flags_dbg_all="$flags_dbg_all /debug:extended"
16480       flags_dbg_yes="/Zi /Oy-"
16481       flags_dbg_off="/debug:none /Oy-"
16482       flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16483       flags_opt_yes="/O2"
16484       flags_opt_off="/Od"
16485     fi
16486   else
16487     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16488 $as_echo "no" >&6; }
16489   fi
16490
16491
16492     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16493 $as_echo_n "checking if compiler is clang... " >&6; }
16494
16495     OLDCPPFLAGS=$CPPFLAGS
16496   # CPPPFLAGS comes from CURL_CPP_P
16497   CPPFLAGS="$CPPPFLAGS"
16498       if test -z "$SED"; then
16499     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16500   fi
16501   if test -z "$GREP"; then
16502     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16503   fi
16504
16505   tmp_exp=""
16506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16507 /* end confdefs.h.  */
16508
16509
16510 #ifdef __clang__
16511 CURL_DEF_TOKEN __clang__
16512 #endif
16513
16514
16515 _ACEOF
16516 if ac_fn_c_try_cpp "$LINENO"; then :
16517
16518     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16519       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16520       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16521       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16522     if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16523       tmp_exp=""
16524     fi
16525
16526 fi
16527 rm -f conftest.err conftest.i conftest.$ac_ext
16528   if test -z "$tmp_exp"; then
16529     curl_cv_have_def___clang__=no
16530
16531   else
16532     curl_cv_have_def___clang__=yes
16533     curl_cv_def___clang__=$tmp_exp
16534
16535   fi
16536       CPPFLAGS=$OLDCPPFLAGS
16537
16538   if test "$curl_cv_have_def___clang__" = "yes"; then
16539     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16540 $as_echo "yes" >&6; }
16541     compiler_id="CLANG"
16542     clangver=`$CC -dumpversion`
16543     clangvhi=`echo $clangver | cut -d . -f1`
16544     clangvlo=`echo $clangver | cut -d . -f2`
16545     compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16546     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16547     flags_dbg_all="$flags_dbg_all -ggdb"
16548     flags_dbg_all="$flags_dbg_all -gstabs"
16549     flags_dbg_all="$flags_dbg_all -gstabs+"
16550     flags_dbg_all="$flags_dbg_all -gcoff"
16551     flags_dbg_all="$flags_dbg_all -gxcoff"
16552     flags_dbg_all="$flags_dbg_all -gdwarf-2"
16553     flags_dbg_all="$flags_dbg_all -gvms"
16554     flags_dbg_yes="-g"
16555     flags_dbg_off=""
16556     flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16557     flags_opt_yes="-Os"
16558     flags_opt_off="-O0"
16559   else
16560     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16561 $as_echo "no" >&6; }
16562   fi
16563
16564
16565       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16566 $as_echo_n "checking if compiler is GNU C... " >&6; }
16567
16568     OLDCPPFLAGS=$CPPFLAGS
16569   # CPPPFLAGS comes from CURL_CPP_P
16570   CPPFLAGS="$CPPPFLAGS"
16571       if test -z "$SED"; then
16572     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16573   fi
16574   if test -z "$GREP"; then
16575     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16576   fi
16577
16578   tmp_exp=""
16579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16580 /* end confdefs.h.  */
16581
16582
16583 #ifdef __GNUC__
16584 CURL_DEF_TOKEN __GNUC__
16585 #endif
16586
16587
16588 _ACEOF
16589 if ac_fn_c_try_cpp "$LINENO"; then :
16590
16591     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16592       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16593       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16594       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16595     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16596       tmp_exp=""
16597     fi
16598
16599 fi
16600 rm -f conftest.err conftest.i conftest.$ac_ext
16601   if test -z "$tmp_exp"; then
16602     curl_cv_have_def___GNUC__=no
16603
16604   else
16605     curl_cv_have_def___GNUC__=yes
16606     curl_cv_def___GNUC__=$tmp_exp
16607
16608   fi
16609       CPPFLAGS=$OLDCPPFLAGS
16610
16611   if test "$curl_cv_have_def___GNUC__" = "yes" &&
16612     test "$compiler_id" = "unknown"; then
16613     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16614 $as_echo "yes" >&6; }
16615     compiler_id="GNU_C"
16616     gccver=`$CC -dumpversion`
16617     gccvhi=`echo $gccver | cut -d . -f1`
16618     gccvlo=`echo $gccver | cut -d . -f2`
16619     compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16620     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16621     flags_dbg_all="$flags_dbg_all -ggdb"
16622     flags_dbg_all="$flags_dbg_all -gstabs"
16623     flags_dbg_all="$flags_dbg_all -gstabs+"
16624     flags_dbg_all="$flags_dbg_all -gcoff"
16625     flags_dbg_all="$flags_dbg_all -gxcoff"
16626     flags_dbg_all="$flags_dbg_all -gdwarf-2"
16627     flags_dbg_all="$flags_dbg_all -gvms"
16628     flags_dbg_yes="-g"
16629     flags_dbg_off=""
16630     flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16631     flags_opt_yes="-O2"
16632     flags_opt_off="-O0"
16633
16634     OLDCPPFLAGS=$CPPFLAGS
16635   # CPPPFLAGS comes from CURL_CPP_P
16636   CPPFLAGS="$CPPPFLAGS"
16637       if test -z "$SED"; then
16638     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16639   fi
16640   if test -z "$GREP"; then
16641     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16642   fi
16643
16644   tmp_exp=""
16645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16646 /* end confdefs.h.  */
16647
16648
16649 #ifdef _WIN32
16650 CURL_DEF_TOKEN _WIN32
16651 #endif
16652
16653
16654 _ACEOF
16655 if ac_fn_c_try_cpp "$LINENO"; then :
16656
16657     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16658       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16659       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16660       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16661     if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16662       tmp_exp=""
16663     fi
16664
16665 fi
16666 rm -f conftest.err conftest.i conftest.$ac_ext
16667   if test -z "$tmp_exp"; then
16668     curl_cv_have_def__WIN32=no
16669
16670   else
16671     curl_cv_have_def__WIN32=yes
16672     curl_cv_def__WIN32=$tmp_exp
16673
16674   fi
16675       CPPFLAGS=$OLDCPPFLAGS
16676
16677   else
16678     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16679 $as_echo "no" >&6; }
16680   fi
16681
16682
16683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16684 $as_echo_n "checking if compiler is LCC... " >&6; }
16685
16686     OLDCPPFLAGS=$CPPFLAGS
16687   # CPPPFLAGS comes from CURL_CPP_P
16688   CPPFLAGS="$CPPPFLAGS"
16689       if test -z "$SED"; then
16690     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16691   fi
16692   if test -z "$GREP"; then
16693     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16694   fi
16695
16696   tmp_exp=""
16697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16698 /* end confdefs.h.  */
16699
16700
16701 #ifdef __LCC__
16702 CURL_DEF_TOKEN __LCC__
16703 #endif
16704
16705
16706 _ACEOF
16707 if ac_fn_c_try_cpp "$LINENO"; then :
16708
16709     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16710       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16711       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16712       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16713     if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16714       tmp_exp=""
16715     fi
16716
16717 fi
16718 rm -f conftest.err conftest.i conftest.$ac_ext
16719   if test -z "$tmp_exp"; then
16720     curl_cv_have_def___LCC__=no
16721
16722   else
16723     curl_cv_have_def___LCC__=yes
16724     curl_cv_def___LCC__=$tmp_exp
16725
16726   fi
16727       CPPFLAGS=$OLDCPPFLAGS
16728
16729   if test "$curl_cv_have_def___LCC__" = "yes"; then
16730     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16731 $as_echo "yes" >&6; }
16732     compiler_id="LCC"
16733     flags_dbg_all="-g"
16734     flags_dbg_yes="-g"
16735     flags_dbg_off=""
16736     flags_opt_all=""
16737     flags_opt_yes=""
16738     flags_opt_off=""
16739   else
16740     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16741 $as_echo "no" >&6; }
16742   fi
16743
16744
16745     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16746 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16747
16748     OLDCPPFLAGS=$CPPFLAGS
16749   # CPPPFLAGS comes from CURL_CPP_P
16750   CPPFLAGS="$CPPPFLAGS"
16751       if test -z "$SED"; then
16752     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16753   fi
16754   if test -z "$GREP"; then
16755     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16756   fi
16757
16758   tmp_exp=""
16759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16760 /* end confdefs.h.  */
16761
16762
16763 #ifdef __GNUC__
16764 CURL_DEF_TOKEN __GNUC__
16765 #endif
16766
16767
16768 _ACEOF
16769 if ac_fn_c_try_cpp "$LINENO"; then :
16770
16771     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16772       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16773       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16774       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16775     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16776       tmp_exp=""
16777     fi
16778
16779 fi
16780 rm -f conftest.err conftest.i conftest.$ac_ext
16781   if test -z "$tmp_exp"; then
16782     curl_cv_have_def___GNUC__=no
16783
16784   else
16785     curl_cv_have_def___GNUC__=yes
16786     curl_cv_def___GNUC__=$tmp_exp
16787
16788   fi
16789       CPPFLAGS=$OLDCPPFLAGS
16790
16791
16792     OLDCPPFLAGS=$CPPFLAGS
16793   # CPPPFLAGS comes from CURL_CPP_P
16794   CPPFLAGS="$CPPPFLAGS"
16795       if test -z "$SED"; then
16796     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16797   fi
16798   if test -z "$GREP"; then
16799     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16800   fi
16801
16802   tmp_exp=""
16803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16804 /* end confdefs.h.  */
16805
16806
16807 #ifdef _COMPILER_VERSION
16808 CURL_DEF_TOKEN _COMPILER_VERSION
16809 #endif
16810
16811
16812 _ACEOF
16813 if ac_fn_c_try_cpp "$LINENO"; then :
16814
16815     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16816       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16817       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16818       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16819     if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16820       tmp_exp=""
16821     fi
16822
16823 fi
16824 rm -f conftest.err conftest.i conftest.$ac_ext
16825   if test -z "$tmp_exp"; then
16826     curl_cv_have_def__COMPILER_VERSION=no
16827
16828   else
16829     curl_cv_have_def__COMPILER_VERSION=yes
16830     curl_cv_def__COMPILER_VERSION=$tmp_exp
16831
16832   fi
16833       CPPFLAGS=$OLDCPPFLAGS
16834
16835
16836     OLDCPPFLAGS=$CPPFLAGS
16837   # CPPPFLAGS comes from CURL_CPP_P
16838   CPPFLAGS="$CPPPFLAGS"
16839       if test -z "$SED"; then
16840     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16841   fi
16842   if test -z "$GREP"; then
16843     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16844   fi
16845
16846   tmp_exp=""
16847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16848 /* end confdefs.h.  */
16849
16850
16851 #ifdef _SGI_COMPILER_VERSION
16852 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16853 #endif
16854
16855
16856 _ACEOF
16857 if ac_fn_c_try_cpp "$LINENO"; then :
16858
16859     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16860       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16861       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16862       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16863     if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16864       tmp_exp=""
16865     fi
16866
16867 fi
16868 rm -f conftest.err conftest.i conftest.$ac_ext
16869   if test -z "$tmp_exp"; then
16870     curl_cv_have_def__SGI_COMPILER_VERSION=no
16871
16872   else
16873     curl_cv_have_def__SGI_COMPILER_VERSION=yes
16874     curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16875
16876   fi
16877       CPPFLAGS=$OLDCPPFLAGS
16878
16879   if test "$curl_cv_have_def___GNUC__" = "no" &&
16880     (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16881      test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16882     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16883 $as_echo "yes" >&6; }
16884     compiler_id="SGI_MIPSPRO_C"
16885     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16886     flags_dbg_yes="-g"
16887     flags_dbg_off=""
16888     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16889     flags_opt_yes="-O2"
16890     flags_opt_off="-O0"
16891   else
16892     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16893 $as_echo "no" >&6; }
16894   fi
16895
16896
16897     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16898 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16899
16900     OLDCPPFLAGS=$CPPFLAGS
16901   # CPPPFLAGS comes from CURL_CPP_P
16902   CPPFLAGS="$CPPPFLAGS"
16903       if test -z "$SED"; then
16904     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16905   fi
16906   if test -z "$GREP"; then
16907     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16908   fi
16909
16910   tmp_exp=""
16911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16912 /* end confdefs.h.  */
16913
16914
16915 #ifdef __GNUC__
16916 CURL_DEF_TOKEN __GNUC__
16917 #endif
16918
16919
16920 _ACEOF
16921 if ac_fn_c_try_cpp "$LINENO"; then :
16922
16923     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16924       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16925       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16926       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16927     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16928       tmp_exp=""
16929     fi
16930
16931 fi
16932 rm -f conftest.err conftest.i conftest.$ac_ext
16933   if test -z "$tmp_exp"; then
16934     curl_cv_have_def___GNUC__=no
16935
16936   else
16937     curl_cv_have_def___GNUC__=yes
16938     curl_cv_def___GNUC__=$tmp_exp
16939
16940   fi
16941       CPPFLAGS=$OLDCPPFLAGS
16942
16943
16944     OLDCPPFLAGS=$CPPFLAGS
16945   # CPPPFLAGS comes from CURL_CPP_P
16946   CPPFLAGS="$CPPPFLAGS"
16947       if test -z "$SED"; then
16948     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16949   fi
16950   if test -z "$GREP"; then
16951     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16952   fi
16953
16954   tmp_exp=""
16955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16956 /* end confdefs.h.  */
16957
16958
16959 #ifdef __sgi
16960 CURL_DEF_TOKEN __sgi
16961 #endif
16962
16963
16964 _ACEOF
16965 if ac_fn_c_try_cpp "$LINENO"; then :
16966
16967     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16968       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16969       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16970       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16971     if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16972       tmp_exp=""
16973     fi
16974
16975 fi
16976 rm -f conftest.err conftest.i conftest.$ac_ext
16977   if test -z "$tmp_exp"; then
16978     curl_cv_have_def___sgi=no
16979
16980   else
16981     curl_cv_have_def___sgi=yes
16982     curl_cv_def___sgi=$tmp_exp
16983
16984   fi
16985       CPPFLAGS=$OLDCPPFLAGS
16986
16987   if test "$curl_cv_have_def___GNUC__" = "no" &&
16988     test "$curl_cv_have_def___sgi" = "yes" &&
16989     test "$compiler_id" = "unknown"; then
16990     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16991 $as_echo "yes" >&6; }
16992     compiler_id="SGI_MIPS_C"
16993     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16994     flags_dbg_yes="-g"
16995     flags_dbg_off=""
16996     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16997     flags_opt_yes="-O2"
16998     flags_opt_off="-O0"
16999   else
17000     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17001 $as_echo "no" >&6; }
17002   fi
17003
17004
17005   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
17006 $as_echo_n "checking if compiler is SunPro C... " >&6; }
17007
17008     OLDCPPFLAGS=$CPPFLAGS
17009   # CPPPFLAGS comes from CURL_CPP_P
17010   CPPFLAGS="$CPPPFLAGS"
17011       if test -z "$SED"; then
17012     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17013   fi
17014   if test -z "$GREP"; then
17015     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17016   fi
17017
17018   tmp_exp=""
17019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17020 /* end confdefs.h.  */
17021
17022
17023 #ifdef __SUNPRO_C
17024 CURL_DEF_TOKEN __SUNPRO_C
17025 #endif
17026
17027
17028 _ACEOF
17029 if ac_fn_c_try_cpp "$LINENO"; then :
17030
17031     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17032       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17033       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17034       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17035     if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
17036       tmp_exp=""
17037     fi
17038
17039 fi
17040 rm -f conftest.err conftest.i conftest.$ac_ext
17041   if test -z "$tmp_exp"; then
17042     curl_cv_have_def___SUNPRO_C=no
17043
17044   else
17045     curl_cv_have_def___SUNPRO_C=yes
17046     curl_cv_def___SUNPRO_C=$tmp_exp
17047
17048   fi
17049       CPPFLAGS=$OLDCPPFLAGS
17050
17051   if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
17052     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17053 $as_echo "yes" >&6; }
17054     compiler_id="SUNPRO_C"
17055     flags_dbg_all="-g -s"
17056     flags_dbg_yes="-g"
17057     flags_dbg_off="-s"
17058     flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
17059     flags_opt_yes="-xO2"
17060     flags_opt_off=""
17061   else
17062     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17063 $as_echo "no" >&6; }
17064   fi
17065
17066
17067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
17068 $as_echo_n "checking if compiler is Tiny C... " >&6; }
17069
17070     OLDCPPFLAGS=$CPPFLAGS
17071   # CPPPFLAGS comes from CURL_CPP_P
17072   CPPFLAGS="$CPPPFLAGS"
17073       if test -z "$SED"; then
17074     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17075   fi
17076   if test -z "$GREP"; then
17077     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17078   fi
17079
17080   tmp_exp=""
17081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17082 /* end confdefs.h.  */
17083
17084
17085 #ifdef __TINYC__
17086 CURL_DEF_TOKEN __TINYC__
17087 #endif
17088
17089
17090 _ACEOF
17091 if ac_fn_c_try_cpp "$LINENO"; then :
17092
17093     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17094       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17095       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17096       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17097     if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
17098       tmp_exp=""
17099     fi
17100
17101 fi
17102 rm -f conftest.err conftest.i conftest.$ac_ext
17103   if test -z "$tmp_exp"; then
17104     curl_cv_have_def___TINYC__=no
17105
17106   else
17107     curl_cv_have_def___TINYC__=yes
17108     curl_cv_def___TINYC__=$tmp_exp
17109
17110   fi
17111       CPPFLAGS=$OLDCPPFLAGS
17112
17113   if test "$curl_cv_have_def___TINYC__" = "yes"; then
17114     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17115 $as_echo "yes" >&6; }
17116     compiler_id="TINY_C"
17117     flags_dbg_all="-g -b"
17118     flags_dbg_yes="-g"
17119     flags_dbg_off=""
17120     flags_opt_all=""
17121     flags_opt_yes=""
17122     flags_opt_off=""
17123   else
17124     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17125 $as_echo "no" >&6; }
17126   fi
17127
17128
17129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
17130 $as_echo_n "checking if compiler is Watcom C... " >&6; }
17131
17132     OLDCPPFLAGS=$CPPFLAGS
17133   # CPPPFLAGS comes from CURL_CPP_P
17134   CPPFLAGS="$CPPPFLAGS"
17135       if test -z "$SED"; then
17136     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17137   fi
17138   if test -z "$GREP"; then
17139     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17140   fi
17141
17142   tmp_exp=""
17143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17144 /* end confdefs.h.  */
17145
17146
17147 #ifdef __WATCOMC__
17148 CURL_DEF_TOKEN __WATCOMC__
17149 #endif
17150
17151
17152 _ACEOF
17153 if ac_fn_c_try_cpp "$LINENO"; then :
17154
17155     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17156       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17157       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17158       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17159     if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
17160       tmp_exp=""
17161     fi
17162
17163 fi
17164 rm -f conftest.err conftest.i conftest.$ac_ext
17165   if test -z "$tmp_exp"; then
17166     curl_cv_have_def___WATCOMC__=no
17167
17168   else
17169     curl_cv_have_def___WATCOMC__=yes
17170     curl_cv_def___WATCOMC__=$tmp_exp
17171
17172   fi
17173       CPPFLAGS=$OLDCPPFLAGS
17174
17175   if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
17176     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17177 $as_echo "yes" >&6; }
17178
17179     OLDCPPFLAGS=$CPPFLAGS
17180   # CPPPFLAGS comes from CURL_CPP_P
17181   CPPFLAGS="$CPPPFLAGS"
17182       if test -z "$SED"; then
17183     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17184   fi
17185   if test -z "$GREP"; then
17186     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17187   fi
17188
17189   tmp_exp=""
17190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17191 /* end confdefs.h.  */
17192
17193
17194 #ifdef __UNIX__
17195 CURL_DEF_TOKEN __UNIX__
17196 #endif
17197
17198
17199 _ACEOF
17200 if ac_fn_c_try_cpp "$LINENO"; then :
17201
17202     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17203       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17204       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17205       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17206     if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
17207       tmp_exp=""
17208     fi
17209
17210 fi
17211 rm -f conftest.err conftest.i conftest.$ac_ext
17212   if test -z "$tmp_exp"; then
17213     curl_cv_have_def___UNIX__=no
17214
17215   else
17216     curl_cv_have_def___UNIX__=yes
17217     curl_cv_def___UNIX__=$tmp_exp
17218
17219   fi
17220       CPPFLAGS=$OLDCPPFLAGS
17221
17222     if test "$curl_cv_have_def___UNIX__" = "yes"; then
17223       compiler_id="WATCOM_UNIX_C"
17224       flags_dbg_all="-g1 -g1+ -g2 -g3"
17225       flags_dbg_yes="-g2"
17226       flags_dbg_off=""
17227       flags_opt_all="-O0 -O1 -O2 -O3"
17228       flags_opt_yes="-O2"
17229       flags_opt_off="-O0"
17230     else
17231       compiler_id="WATCOM_WINDOWS_C"
17232       flags_dbg_all=""
17233       flags_dbg_yes=""
17234       flags_dbg_off=""
17235       flags_opt_all=""
17236       flags_opt_yes=""
17237       flags_opt_off=""
17238     fi
17239   else
17240     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17241 $as_echo "no" >&6; }
17242   fi
17243
17244   #
17245   if test "$compiler_id" = "unknown"; then
17246   cat <<_EOF 1>&2
17247 ***
17248 *** Warning: This configure script does not have information about the
17249 *** compiler you are using, relative to the flags required to enable or
17250 *** disable generation of debug info, optimization options or warnings.
17251 ***
17252 *** Whatever settings are present in CFLAGS will be used for this run.
17253 ***
17254 *** If you wish to help the cURL project to better support your compiler
17255 *** you can report this and the required info on the libcurl development
17256 *** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
17257 ***
17258 _EOF
17259   fi
17260
17261
17262 squeeze() {
17263   _sqz_result=""
17264   eval _sqz_input=\$$1
17265   for _sqz_token in $_sqz_input; do
17266     if test -z "$_sqz_result"; then
17267       _sqz_result="$_sqz_token"
17268     else
17269       _sqz_result="$_sqz_result $_sqz_token"
17270     fi
17271   done
17272   eval $1=\$_sqz_result
17273   return 0
17274 }
17275
17276
17277       #
17278   if test "$compiler_id" != "unknown"; then
17279     #
17280     if test "$compiler_id" = "GNU_C" ||
17281       test "$compiler_id" = "CLANG"; then
17282
17283       if test "$compiler_id" = "GNU_C" ||
17284     test "$compiler_id" = "CLANG"; then
17285     tmp_has_include="no"
17286     tmp_chg_FLAGS="$CFLAGS"
17287     for word1 in $tmp_chg_FLAGS; do
17288       case "$word1" in
17289         -I*)
17290           tmp_has_include="yes"
17291           ;;
17292       esac
17293     done
17294     if test "$tmp_has_include" = "yes"; then
17295       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17296       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17297       CFLAGS="$tmp_chg_FLAGS"
17298       squeeze CFLAGS
17299     fi
17300     tmp_has_include="no"
17301     tmp_chg_FLAGS="$CPPFLAGS"
17302     for word1 in $tmp_chg_FLAGS; do
17303       case "$word1" in
17304         -I*)
17305           tmp_has_include="yes"
17306           ;;
17307       esac
17308     done
17309     if test "$tmp_has_include" = "yes"; then
17310       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17311       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17312       CPPFLAGS="$tmp_chg_FLAGS"
17313       squeeze CPPFLAGS
17314     fi
17315   fi
17316
17317     fi
17318     #
17319     tmp_save_CPPFLAGS="$CPPFLAGS"
17320     tmp_save_CFLAGS="$CFLAGS"
17321     tmp_CPPFLAGS=""
17322     tmp_CFLAGS=""
17323     #
17324     case "$compiler_id" in
17325         #
17326       CLANG)
17327         #
17328                                 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
17329         ;;
17330         #
17331       DEC_C)
17332         #
17333                 tmp_CFLAGS="$tmp_CFLAGS -std1"
17334                 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
17335                 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
17336                 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
17337         ;;
17338         #
17339       GNU_C)
17340         #
17341                 tmp_CFLAGS="$tmp_CFLAGS"
17342         ;;
17343         #
17344       HP_UX_C)
17345         #
17346                 tmp_CFLAGS="$tmp_CFLAGS -z"
17347                                 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
17348         ;;
17349         #
17350       IBM_C)
17351         #
17352                 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
17353                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
17354                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
17355         ;;
17356         #
17357       INTEL_UNIX_C)
17358         #
17359                         tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
17360                                                 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
17361                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17362         ;;
17363         #
17364       INTEL_WINDOWS_C)
17365         #
17366                 tmp_CFLAGS="$tmp_CFLAGS"
17367         ;;
17368         #
17369       LCC)
17370         #
17371                 tmp_CFLAGS="$tmp_CFLAGS -n"
17372         ;;
17373         #
17374       SGI_MIPS_C)
17375         #
17376                 tmp_CFLAGS="$tmp_CFLAGS"
17377         ;;
17378         #
17379       SGI_MIPSPRO_C)
17380         #
17381                 tmp_CFLAGS="$tmp_CFLAGS"
17382         ;;
17383         #
17384       SUNPRO_C)
17385         #
17386                 tmp_CFLAGS="$tmp_CFLAGS"
17387         ;;
17388         #
17389       TINY_C)
17390         #
17391                 tmp_CFLAGS="$tmp_CFLAGS"
17392         ;;
17393         #
17394       WATCOM_UNIX_C)
17395         #
17396                 tmp_CFLAGS="$tmp_CFLAGS"
17397         ;;
17398         #
17399       WATCOM_WINDOWS_C)
17400         #
17401                 tmp_CFLAGS="$tmp_CFLAGS"
17402         ;;
17403         #
17404     esac
17405     #
17406     squeeze tmp_CPPFLAGS
17407     squeeze tmp_CFLAGS
17408     #
17409     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17410       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17411 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
17412       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17413       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17414       squeeze CPPFLAGS
17415       squeeze CFLAGS
17416
17417     tmp_compiler_works="unknown"
17418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17419 /* end confdefs.h.  */
17420
17421
17422
17423 int main (void)
17424 {
17425
17426       int i = 1;
17427       return i;
17428
17429  ;
17430  return 0;
17431 }
17432
17433 _ACEOF
17434 if ac_fn_c_try_compile "$LINENO"; then :
17435
17436     tmp_compiler_works="yes"
17437
17438 else
17439
17440     tmp_compiler_works="no"
17441     echo " " >&6
17442     sed 's/^/cc-fail: /' conftest.err >&6
17443     echo " " >&6
17444
17445 fi
17446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17447     if test "$tmp_compiler_works" = "yes"; then
17448     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17449 /* end confdefs.h.  */
17450
17451
17452
17453 int main (void)
17454 {
17455
17456         int i = 1;
17457         return i;
17458
17459  ;
17460  return 0;
17461 }
17462
17463 _ACEOF
17464 if ac_fn_c_try_link "$LINENO"; then :
17465
17466       tmp_compiler_works="yes"
17467
17468 else
17469
17470       tmp_compiler_works="no"
17471       echo " " >&6
17472       sed 's/^/link-fail: /' conftest.err >&6
17473       echo " " >&6
17474
17475 fi
17476 rm -f core conftest.err conftest.$ac_objext \
17477     conftest$ac_exeext conftest.$ac_ext
17478   fi
17479     if test "x$cross_compiling" != "xyes" &&
17480     test "$tmp_compiler_works" = "yes"; then
17481     if test "$cross_compiling" = yes; then :
17482   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17484 as_fn_error $? "cannot run test program while cross compiling
17485 See \`config.log' for more details" "$LINENO" 5; }
17486 else
17487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17488 /* end confdefs.h.  */
17489
17490
17491 #       ifdef __STDC__
17492 #         include <stdlib.h>
17493 #       endif
17494
17495 int main (void)
17496 {
17497
17498         int i = 0;
17499         exit(i);
17500
17501  ;
17502  return 0;
17503 }
17504
17505 _ACEOF
17506 if ac_fn_c_try_run "$LINENO"; then :
17507
17508       tmp_compiler_works="yes"
17509
17510 else
17511
17512       tmp_compiler_works="no"
17513       echo " " >&6
17514       echo "run-fail: test program exited with status $ac_status" >&6
17515       echo " " >&6
17516
17517 fi
17518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17519   conftest.$ac_objext conftest.beam conftest.$ac_ext
17520 fi
17521
17522   fi
17523     if test "$tmp_compiler_works" = "yes"; then
17524
17525         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17526 $as_echo "yes" >&6; }
17527         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17528 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17529
17530   else
17531
17532         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17533 $as_echo "no" >&6; }
17534         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17535 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17536                 CPPFLAGS="$tmp_save_CPPFLAGS"
17537         CFLAGS="$tmp_save_CFLAGS"
17538
17539   fi
17540
17541     fi
17542     #
17543   fi
17544
17545
17546         #
17547   if test "$compiler_id" != "unknown"; then
17548     #
17549     tmp_save_CFLAGS="$CFLAGS"
17550     tmp_save_CPPFLAGS="$CPPFLAGS"
17551     #
17552     tmp_options=""
17553     tmp_CFLAGS="$CFLAGS"
17554     tmp_CPPFLAGS="$CPPFLAGS"
17555
17556     ac_var_stripped=""
17557   for word1 in $tmp_CFLAGS; do
17558     ac_var_strip_word="no"
17559     for word2 in $flags_dbg_all; do
17560       if test "$word1" = "$word2"; then
17561         ac_var_strip_word="yes"
17562       fi
17563     done
17564     if test "$ac_var_strip_word" = "no"; then
17565       ac_var_stripped="$ac_var_stripped $word1"
17566     fi
17567   done
17568     tmp_CFLAGS="$ac_var_stripped"
17569   squeeze tmp_CFLAGS
17570
17571
17572     ac_var_stripped=""
17573   for word1 in $tmp_CPPFLAGS; do
17574     ac_var_strip_word="no"
17575     for word2 in $flags_dbg_all; do
17576       if test "$word1" = "$word2"; then
17577         ac_var_strip_word="yes"
17578       fi
17579     done
17580     if test "$ac_var_strip_word" = "no"; then
17581       ac_var_stripped="$ac_var_stripped $word1"
17582     fi
17583   done
17584     tmp_CPPFLAGS="$ac_var_stripped"
17585   squeeze tmp_CPPFLAGS
17586
17587     #
17588     if test "$want_debug" = "yes"; then
17589       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
17590 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
17591       tmp_options="$flags_dbg_yes"
17592     fi
17593     if test "$want_debug" = "no"; then
17594       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17595 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17596       tmp_options="$flags_dbg_off"
17597     fi
17598     #
17599     if test "$flags_prefer_cppflags" = "yes"; then
17600       CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17601       CFLAGS="$tmp_CFLAGS"
17602     else
17603       CPPFLAGS="$tmp_CPPFLAGS"
17604       CFLAGS="$tmp_CFLAGS $tmp_options"
17605     fi
17606     squeeze CPPFLAGS
17607     squeeze CFLAGS
17608
17609     tmp_compiler_works="unknown"
17610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17611 /* end confdefs.h.  */
17612
17613
17614
17615 int main (void)
17616 {
17617
17618       int i = 1;
17619       return i;
17620
17621  ;
17622  return 0;
17623 }
17624
17625 _ACEOF
17626 if ac_fn_c_try_compile "$LINENO"; then :
17627
17628     tmp_compiler_works="yes"
17629
17630 else
17631
17632     tmp_compiler_works="no"
17633     echo " " >&6
17634     sed 's/^/cc-fail: /' conftest.err >&6
17635     echo " " >&6
17636
17637 fi
17638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17639     if test "$tmp_compiler_works" = "yes"; then
17640     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17641 /* end confdefs.h.  */
17642
17643
17644
17645 int main (void)
17646 {
17647
17648         int i = 1;
17649         return i;
17650
17651  ;
17652  return 0;
17653 }
17654
17655 _ACEOF
17656 if ac_fn_c_try_link "$LINENO"; then :
17657
17658       tmp_compiler_works="yes"
17659
17660 else
17661
17662       tmp_compiler_works="no"
17663       echo " " >&6
17664       sed 's/^/link-fail: /' conftest.err >&6
17665       echo " " >&6
17666
17667 fi
17668 rm -f core conftest.err conftest.$ac_objext \
17669     conftest$ac_exeext conftest.$ac_ext
17670   fi
17671     if test "x$cross_compiling" != "xyes" &&
17672     test "$tmp_compiler_works" = "yes"; then
17673     if test "$cross_compiling" = yes; then :
17674   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17676 as_fn_error $? "cannot run test program while cross compiling
17677 See \`config.log' for more details" "$LINENO" 5; }
17678 else
17679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17680 /* end confdefs.h.  */
17681
17682
17683 #       ifdef __STDC__
17684 #         include <stdlib.h>
17685 #       endif
17686
17687 int main (void)
17688 {
17689
17690         int i = 0;
17691         exit(i);
17692
17693  ;
17694  return 0;
17695 }
17696
17697 _ACEOF
17698 if ac_fn_c_try_run "$LINENO"; then :
17699
17700       tmp_compiler_works="yes"
17701
17702 else
17703
17704       tmp_compiler_works="no"
17705       echo " " >&6
17706       echo "run-fail: test program exited with status $ac_status" >&6
17707       echo " " >&6
17708
17709 fi
17710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17711   conftest.$ac_objext conftest.beam conftest.$ac_ext
17712 fi
17713
17714   fi
17715     if test "$tmp_compiler_works" = "yes"; then
17716
17717       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17718 $as_echo "yes" >&6; }
17719       { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17720 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17721
17722   else
17723
17724       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17725 $as_echo "no" >&6; }
17726       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17727 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17728             CPPFLAGS="$tmp_save_CPPFLAGS"
17729       CFLAGS="$tmp_save_CFLAGS"
17730
17731   fi
17732
17733     #
17734   fi
17735
17736
17737         #
17738   if test "$compiler_id" != "unknown"; then
17739     #
17740     tmp_save_CFLAGS="$CFLAGS"
17741     tmp_save_CPPFLAGS="$CPPFLAGS"
17742     #
17743     tmp_options=""
17744     tmp_CFLAGS="$CFLAGS"
17745     tmp_CPPFLAGS="$CPPFLAGS"
17746     honor_optimize_option="yes"
17747     #
17748                         #
17749     if test "$want_optimize" = "assume_no" ||
17750        test "$want_optimize" = "assume_yes"; then
17751       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17752 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17753
17754
17755   ac_var_match_word="no"
17756   for word1 in $tmp_CFLAGS; do
17757     for word2 in $flags_opt_all; do
17758       if test "$word1" = "$word2"; then
17759         ac_var_match_word="yes"
17760       fi
17761     done
17762   done
17763
17764   if test "$ac_var_match_word" = "yes"; then
17765
17766         honor_optimize_option="no"
17767
17768
17769   fi
17770
17771
17772
17773   ac_var_match_word="no"
17774   for word1 in $tmp_CPPFLAGS; do
17775     for word2 in $flags_opt_all; do
17776       if test "$word1" = "$word2"; then
17777         ac_var_match_word="yes"
17778       fi
17779     done
17780   done
17781
17782   if test "$ac_var_match_word" = "yes"; then
17783
17784         honor_optimize_option="no"
17785
17786
17787   fi
17788
17789       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17790 $as_echo "$honor_optimize_option" >&6; }
17791       if test "$honor_optimize_option" = "yes"; then
17792         if test "$want_optimize" = "assume_yes"; then
17793           want_optimize="yes"
17794         fi
17795         if test "$want_optimize" = "assume_no"; then
17796           want_optimize="no"
17797         fi
17798       fi
17799     fi
17800     #
17801     if test "$honor_optimize_option" = "yes"; then
17802
17803     ac_var_stripped=""
17804   for word1 in $tmp_CFLAGS; do
17805     ac_var_strip_word="no"
17806     for word2 in $flags_opt_all; do
17807       if test "$word1" = "$word2"; then
17808         ac_var_strip_word="yes"
17809       fi
17810     done
17811     if test "$ac_var_strip_word" = "no"; then
17812       ac_var_stripped="$ac_var_stripped $word1"
17813     fi
17814   done
17815     tmp_CFLAGS="$ac_var_stripped"
17816   squeeze tmp_CFLAGS
17817
17818
17819     ac_var_stripped=""
17820   for word1 in $tmp_CPPFLAGS; do
17821     ac_var_strip_word="no"
17822     for word2 in $flags_opt_all; do
17823       if test "$word1" = "$word2"; then
17824         ac_var_strip_word="yes"
17825       fi
17826     done
17827     if test "$ac_var_strip_word" = "no"; then
17828       ac_var_stripped="$ac_var_stripped $word1"
17829     fi
17830   done
17831     tmp_CPPFLAGS="$ac_var_stripped"
17832   squeeze tmp_CPPFLAGS
17833
17834       if test "$want_optimize" = "yes"; then
17835         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17836 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17837         tmp_options="$flags_opt_yes"
17838       fi
17839       if test "$want_optimize" = "no"; then
17840         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17841 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17842         tmp_options="$flags_opt_off"
17843       fi
17844       if test "$flags_prefer_cppflags" = "yes"; then
17845         CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17846         CFLAGS="$tmp_CFLAGS"
17847       else
17848         CPPFLAGS="$tmp_CPPFLAGS"
17849         CFLAGS="$tmp_CFLAGS $tmp_options"
17850       fi
17851       squeeze CPPFLAGS
17852       squeeze CFLAGS
17853
17854     tmp_compiler_works="unknown"
17855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17856 /* end confdefs.h.  */
17857
17858
17859
17860 int main (void)
17861 {
17862
17863       int i = 1;
17864       return i;
17865
17866  ;
17867  return 0;
17868 }
17869
17870 _ACEOF
17871 if ac_fn_c_try_compile "$LINENO"; then :
17872
17873     tmp_compiler_works="yes"
17874
17875 else
17876
17877     tmp_compiler_works="no"
17878     echo " " >&6
17879     sed 's/^/cc-fail: /' conftest.err >&6
17880     echo " " >&6
17881
17882 fi
17883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17884     if test "$tmp_compiler_works" = "yes"; then
17885     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17886 /* end confdefs.h.  */
17887
17888
17889
17890 int main (void)
17891 {
17892
17893         int i = 1;
17894         return i;
17895
17896  ;
17897  return 0;
17898 }
17899
17900 _ACEOF
17901 if ac_fn_c_try_link "$LINENO"; then :
17902
17903       tmp_compiler_works="yes"
17904
17905 else
17906
17907       tmp_compiler_works="no"
17908       echo " " >&6
17909       sed 's/^/link-fail: /' conftest.err >&6
17910       echo " " >&6
17911
17912 fi
17913 rm -f core conftest.err conftest.$ac_objext \
17914     conftest$ac_exeext conftest.$ac_ext
17915   fi
17916     if test "x$cross_compiling" != "xyes" &&
17917     test "$tmp_compiler_works" = "yes"; then
17918     if test "$cross_compiling" = yes; then :
17919   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17921 as_fn_error $? "cannot run test program while cross compiling
17922 See \`config.log' for more details" "$LINENO" 5; }
17923 else
17924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17925 /* end confdefs.h.  */
17926
17927
17928 #       ifdef __STDC__
17929 #         include <stdlib.h>
17930 #       endif
17931
17932 int main (void)
17933 {
17934
17935         int i = 0;
17936         exit(i);
17937
17938  ;
17939  return 0;
17940 }
17941
17942 _ACEOF
17943 if ac_fn_c_try_run "$LINENO"; then :
17944
17945       tmp_compiler_works="yes"
17946
17947 else
17948
17949       tmp_compiler_works="no"
17950       echo " " >&6
17951       echo "run-fail: test program exited with status $ac_status" >&6
17952       echo " " >&6
17953
17954 fi
17955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17956   conftest.$ac_objext conftest.beam conftest.$ac_ext
17957 fi
17958
17959   fi
17960     if test "$tmp_compiler_works" = "yes"; then
17961
17962         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17963 $as_echo "yes" >&6; }
17964         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17965 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17966
17967   else
17968
17969         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17970 $as_echo "no" >&6; }
17971         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17972 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17973                 CPPFLAGS="$tmp_save_CPPFLAGS"
17974         CFLAGS="$tmp_save_CFLAGS"
17975
17976   fi
17977
17978     fi
17979     #
17980   fi
17981
17982
17983         #
17984   if test "$compiler_id" != "unknown"; then
17985     #
17986     tmp_save_CPPFLAGS="$CPPFLAGS"
17987     tmp_save_CFLAGS="$CFLAGS"
17988     tmp_CPPFLAGS=""
17989     tmp_CFLAGS=""
17990     #
17991     case "$compiler_id" in
17992         #
17993       CLANG)
17994         #
17995         if test "$want_warnings" = "yes"; then
17996           tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17997           tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17998           tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17999           tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
18000           tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
18001           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
18002           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
18003           tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
18004           tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
18005           tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
18006           tmp_CFLAGS="$tmp_CFLAGS -Wundef"
18007           tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
18008           tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
18009           tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
18010           tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
18011           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
18012           tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
18013           #
18014                     if test "$compiler_num" -ge "101"; then
18015             tmp_CFLAGS="$tmp_CFLAGS -Wunused"
18016           fi
18017         fi
18018         ;;
18019         #
18020       DEC_C)
18021         #
18022         if test "$want_warnings" = "yes"; then
18023                     tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
18024         fi
18025         ;;
18026         #
18027       GNU_C)
18028         #
18029         if test "$want_warnings" = "yes"; then
18030           #
18031                               if test "x$cross_compiling" != "xyes" ||
18032             test "$compiler_num" -ge "300"; then
18033             tmp_CFLAGS="$tmp_CFLAGS -pedantic"
18034           fi
18035           #
18036                     tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
18037           #
18038                     if test "$compiler_num" -ge "104"; then
18039             tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
18040                         if test "x$cross_compiling" != "xyes" ||
18041               test "$compiler_num" -ge "300"; then
18042               tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
18043             fi
18044           fi
18045           #
18046                     if test "$compiler_num" -ge "207"; then
18047             tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
18048                         if test "x$cross_compiling" != "xyes" ||
18049               test "$compiler_num" -ge "300"; then
18050               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
18051               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
18052             fi
18053           fi
18054           #
18055                     if test "$compiler_num" -ge "295"; then
18056             tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
18057           fi
18058           #
18059                     if test "$compiler_num" -ge "296"; then
18060             tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
18061             tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
18062                                                 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
18063           fi
18064           #
18065                     if test "$compiler_num" -ge "297"; then
18066             tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
18067           fi
18068           #
18069                     if test "$compiler_num" -ge "300"; then
18070                                                             tmp_CFLAGS="$tmp_CFLAGS"
18071           fi
18072           #
18073                     if test "$compiler_num" -ge "303"; then
18074             tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
18075           fi
18076           #
18077                     if test "$compiler_num" -ge "304"; then
18078             tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
18079           fi
18080           #
18081                     if test "$compiler_num" -ge "400"; then
18082             tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
18083           fi
18084           #
18085                     if test "$compiler_num" -ge "402"; then
18086             tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
18087           fi
18088           #
18089                     if test "$compiler_num" -ge "403"; then
18090             tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
18091             tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
18092             tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
18093             tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
18094           fi
18095           #
18096                     if test "$compiler_num" -ge "405"; then
18097                         if test "$curl_cv_have_def__WIN32" = "yes"; then
18098               tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
18099             fi
18100           fi
18101           #
18102         fi
18103         #
18104                 if test "$compiler_num" -ge "300"; then
18105           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
18106         else
18107                               if test "x$cross_compiling" = "xyes"; then
18108             if test "$compiler_num" -ge "104"; then
18109                             tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
18110             fi
18111             if test "$compiler_num" -ge "207"; then
18112                             tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
18113               tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
18114             fi
18115           fi
18116         fi
18117         ;;
18118         #
18119       HP_UX_C)
18120         #
18121         if test "$want_warnings" = "yes"; then
18122                     tmp_CFLAGS="$tmp_CFLAGS +w1"
18123         fi
18124         ;;
18125         #
18126       IBM_C)
18127         #
18128                 tmp_CFLAGS="$tmp_CFLAGS"
18129         ;;
18130         #
18131       INTEL_UNIX_C)
18132         #
18133         if test "$want_warnings" = "yes"; then
18134           if test "$compiler_num" -gt "600"; then
18135                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
18136                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
18137                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
18138                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
18139                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
18140                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
18141                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
18142                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
18143                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
18144                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
18145                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
18146           fi
18147         fi
18148                 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
18149                 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
18150                 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
18151                 if test "$compiler_num" -ge "1000"; then
18152                     tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
18153         fi
18154         ;;
18155         #
18156       INTEL_WINDOWS_C)
18157         #
18158                 tmp_CFLAGS="$tmp_CFLAGS"
18159         ;;
18160         #
18161       LCC)
18162         #
18163         if test "$want_warnings" = "yes"; then
18164                                                   tmp_CFLAGS="$tmp_CFLAGS"
18165         fi
18166         ;;
18167         #
18168       SGI_MIPS_C)
18169         #
18170         if test "$want_warnings" = "yes"; then
18171                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18172         fi
18173         ;;
18174         #
18175       SGI_MIPSPRO_C)
18176         #
18177         if test "$want_warnings" = "yes"; then
18178                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18179                               tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
18180         fi
18181         ;;
18182         #
18183       SUNPRO_C)
18184         #
18185         if test "$want_warnings" = "yes"; then
18186                     tmp_CFLAGS="$tmp_CFLAGS -v"
18187         fi
18188         ;;
18189         #
18190       TINY_C)
18191         #
18192         if test "$want_warnings" = "yes"; then
18193                     tmp_CFLAGS="$tmp_CFLAGS -Wall"
18194                     tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
18195                     tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
18196         fi
18197         ;;
18198         #
18199       WATCOM_UNIX_C)
18200         #
18201         if test "$want_warnings" = "yes"; then
18202                     tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
18203         fi
18204         ;;
18205         #
18206       WATCOM_WINDOWS_C)
18207         #
18208                 tmp_CFLAGS="$tmp_CFLAGS"
18209         ;;
18210         #
18211     esac
18212     #
18213     squeeze tmp_CPPFLAGS
18214     squeeze tmp_CFLAGS
18215     #
18216     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18217       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
18218 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
18219       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18220       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18221       squeeze CPPFLAGS
18222       squeeze CFLAGS
18223
18224     tmp_compiler_works="unknown"
18225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18226 /* end confdefs.h.  */
18227
18228
18229
18230 int main (void)
18231 {
18232
18233       int i = 1;
18234       return i;
18235
18236  ;
18237  return 0;
18238 }
18239
18240 _ACEOF
18241 if ac_fn_c_try_compile "$LINENO"; then :
18242
18243     tmp_compiler_works="yes"
18244
18245 else
18246
18247     tmp_compiler_works="no"
18248     echo " " >&6
18249     sed 's/^/cc-fail: /' conftest.err >&6
18250     echo " " >&6
18251
18252 fi
18253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18254     if test "$tmp_compiler_works" = "yes"; then
18255     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18256 /* end confdefs.h.  */
18257
18258
18259
18260 int main (void)
18261 {
18262
18263         int i = 1;
18264         return i;
18265
18266  ;
18267  return 0;
18268 }
18269
18270 _ACEOF
18271 if ac_fn_c_try_link "$LINENO"; then :
18272
18273       tmp_compiler_works="yes"
18274
18275 else
18276
18277       tmp_compiler_works="no"
18278       echo " " >&6
18279       sed 's/^/link-fail: /' conftest.err >&6
18280       echo " " >&6
18281
18282 fi
18283 rm -f core conftest.err conftest.$ac_objext \
18284     conftest$ac_exeext conftest.$ac_ext
18285   fi
18286     if test "x$cross_compiling" != "xyes" &&
18287     test "$tmp_compiler_works" = "yes"; then
18288     if test "$cross_compiling" = yes; then :
18289   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18291 as_fn_error $? "cannot run test program while cross compiling
18292 See \`config.log' for more details" "$LINENO" 5; }
18293 else
18294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18295 /* end confdefs.h.  */
18296
18297
18298 #       ifdef __STDC__
18299 #         include <stdlib.h>
18300 #       endif
18301
18302 int main (void)
18303 {
18304
18305         int i = 0;
18306         exit(i);
18307
18308  ;
18309  return 0;
18310 }
18311
18312 _ACEOF
18313 if ac_fn_c_try_run "$LINENO"; then :
18314
18315       tmp_compiler_works="yes"
18316
18317 else
18318
18319       tmp_compiler_works="no"
18320       echo " " >&6
18321       echo "run-fail: test program exited with status $ac_status" >&6
18322       echo " " >&6
18323
18324 fi
18325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18326   conftest.$ac_objext conftest.beam conftest.$ac_ext
18327 fi
18328
18329   fi
18330     if test "$tmp_compiler_works" = "yes"; then
18331
18332         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18333 $as_echo "yes" >&6; }
18334         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18335 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18336
18337   else
18338
18339         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18340 $as_echo "no" >&6; }
18341         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18342 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18343                 CPPFLAGS="$tmp_save_CPPFLAGS"
18344         CFLAGS="$tmp_save_CFLAGS"
18345
18346   fi
18347
18348     fi
18349     #
18350   fi
18351
18352
18353 if test "$compiler_id" = "INTEL_UNIX_C"; then
18354   #
18355   if test "$compiler_num" -ge "1000"; then
18356         CFLAGS="$CFLAGS -shared-intel"
18357   elif test "$compiler_num" -ge "900"; then
18358         CFLAGS="$CFLAGS -i-dynamic"
18359   fi
18360   #
18361 fi
18362
18363
18364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
18365 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
18366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18367 /* end confdefs.h.  */
18368
18369
18370
18371 int main (void)
18372 {
18373
18374       force compilation error
18375
18376  ;
18377  return 0;
18378 }
18379
18380 _ACEOF
18381 if ac_fn_c_try_compile "$LINENO"; then :
18382
18383     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18384 $as_echo "no" >&6; }
18385     as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
18386
18387 else
18388
18389     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18390 $as_echo "yes" >&6; }
18391
18392 fi
18393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18394
18395
18396     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
18397 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
18398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18399 /* end confdefs.h.  */
18400
18401
18402       typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
18403
18404 int main (void)
18405 {
18406
18407       bad_t dummy;
18408
18409  ;
18410  return 0;
18411 }
18412
18413 _ACEOF
18414 if ac_fn_c_try_compile "$LINENO"; then :
18415
18416     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18417 $as_echo "no" >&6; }
18418     as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
18419
18420 else
18421
18422     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18423 $as_echo "yes" >&6; }
18424
18425 fi
18426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18427
18428
18429     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
18430 $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
18431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18432 /* end confdefs.h.  */
18433
18434
18435 #     include <stdlib.h>
18436       int rand(int n);
18437       int rand(int n)
18438       {
18439         if(n)
18440           return ++n;
18441         else
18442           return n;
18443       }
18444
18445 int main (void)
18446 {
18447
18448       int i[2]={0,0};
18449       int j = rand(i[0]);
18450       if(j)
18451         return j;
18452
18453  ;
18454  return 0;
18455 }
18456
18457 _ACEOF
18458 if ac_fn_c_try_compile "$LINENO"; then :
18459
18460     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18461 $as_echo "no" >&6; }
18462     as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
18463
18464 else
18465
18466     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18467 $as_echo "yes" >&6; }
18468
18469 fi
18470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18471
18472
18473       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
18474 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
18475   supports_symbol_hiding="no"
18476   symbol_hiding_CFLAGS=""
18477   symbol_hiding_EXTERN=""
18478   tmp_CFLAGS=""
18479   tmp_EXTERN=""
18480   case "$compiler_id" in
18481     CLANG)
18482             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18483       tmp_CFLAGS="-fvisibility=hidden"
18484       supports_symbol_hiding="yes"
18485       ;;
18486     GNU_C)
18487             if test "$compiler_num" -ge "304"; then
18488         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
18489           tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18490           tmp_CFLAGS="-fvisibility=hidden"
18491           supports_symbol_hiding="yes"
18492         fi
18493       fi
18494       ;;
18495     INTEL_UNIX_C)
18496             if test "$compiler_num" -ge "900"; then
18497         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
18498           tmp_save_CFLAGS="$CFLAGS"
18499           CFLAGS="$CFLAGS -fvisibility=hidden"
18500           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18501 /* end confdefs.h.  */
18502
18503
18504 #             include <stdio.h>
18505
18506 int main (void)
18507 {
18508
18509               printf("icc fvisibility bug test");
18510
18511  ;
18512  return 0;
18513 }
18514
18515 _ACEOF
18516 if ac_fn_c_try_link "$LINENO"; then :
18517
18518             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18519             tmp_CFLAGS="-fvisibility=hidden"
18520             supports_symbol_hiding="yes"
18521
18522 fi
18523 rm -f core conftest.err conftest.$ac_objext \
18524     conftest$ac_exeext conftest.$ac_ext
18525           CFLAGS="$tmp_save_CFLAGS"
18526         fi
18527       fi
18528       ;;
18529     SUNPRO_C)
18530       if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
18531         tmp_EXTERN="__global"
18532         tmp_CFLAGS="-xldscope=hidden"
18533         supports_symbol_hiding="yes"
18534       fi
18535       ;;
18536   esac
18537   if test "$supports_symbol_hiding" = "yes"; then
18538     tmp_save_CFLAGS="$CFLAGS"
18539     CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18540     squeeze CFLAGS
18541     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18542 /* end confdefs.h.  */
18543
18544
18545         $tmp_EXTERN char *dummy(char *buff);
18546         char *dummy(char *buff)
18547         {
18548          if(buff)
18549            return ++buff;
18550          else
18551            return buff;
18552         }
18553
18554 int main (void)
18555 {
18556
18557         char b[16];
18558         char *r = dummy(&b[0]);
18559         if(r)
18560           return (int)*r;
18561
18562  ;
18563  return 0;
18564 }
18565
18566 _ACEOF
18567 if ac_fn_c_try_compile "$LINENO"; then :
18568
18569       supports_symbol_hiding="yes"
18570       if test -f conftest.err; then
18571         grep 'visibility' conftest.err >/dev/null
18572         if test "$?" -eq "0"; then
18573           supports_symbol_hiding="no"
18574         fi
18575       fi
18576
18577 else
18578
18579       supports_symbol_hiding="no"
18580       echo " " >&6
18581       sed 's/^/cc-src: /' conftest.$ac_ext >&6
18582       sed 's/^/cc-err: /' conftest.err >&6
18583       echo " " >&6
18584
18585 fi
18586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18587     CFLAGS="$tmp_save_CFLAGS"
18588   fi
18589   if test "$supports_symbol_hiding" = "yes"; then
18590     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18591 $as_echo "yes" >&6; }
18592     symbol_hiding_CFLAGS="$tmp_CFLAGS"
18593     symbol_hiding_EXTERN="$tmp_EXTERN"
18594   else
18595     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18596 $as_echo "no" >&6; }
18597   fi
18598
18599
18600
18601       supports_curldebug="unknown"
18602   if test "$want_curldebug" = "yes"; then
18603     if test "x$enable_shared" != "xno" &&
18604       test "x$enable_shared" != "xyes"; then
18605       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
18606 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
18607       supports_curldebug="no"
18608     fi
18609     if test "x$enable_static" != "xno" &&
18610       test "x$enable_static" != "xyes"; then
18611       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
18612 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
18613       supports_curldebug="no"
18614     fi
18615     if test "$supports_curldebug" != "no"; then
18616       if test "$enable_shared" = "yes" &&
18617         test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
18618         supports_curldebug="no"
18619         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
18620 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
18621       fi
18622     fi
18623   fi
18624   #
18625   if test "$want_curldebug" = "yes"; then
18626     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
18627 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
18628     test "$supports_curldebug" = "no" || supports_curldebug="yes"
18629     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
18630 $as_echo "$supports_curldebug" >&6; }
18631     if test "$supports_curldebug" = "no"; then
18632       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18633 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18634       want_curldebug="no"
18635     fi
18636   fi
18637   #
18638   if test "$want_curldebug" = "yes"; then
18639     CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
18640     squeeze CPPFLAGS
18641   fi
18642   if test "$want_debug" = "yes"; then
18643     CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
18644     squeeze CPPFLAGS
18645   fi
18646
18647  if test x$want_curldebug = xyes; then
18648   CURLDEBUG_TRUE=
18649   CURLDEBUG_FALSE='#'
18650 else
18651   CURLDEBUG_TRUE='#'
18652   CURLDEBUG_FALSE=
18653 fi
18654
18655
18656 supports_unittests=yes
18657 # cross-compilation of unit tests static library/programs fails when
18658 # libcurl shared library is built. This might be due to a libtool or
18659 # automake issue. In this case we disable unit tests.
18660 if test "x$cross_compiling" != "xno" &&
18661    test "x$enable_shared" != "xno"; then
18662   supports_unittests=no
18663 fi
18664
18665 # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18666 # a problem related with OpenSSL headers and library versions not matching.
18667 # Disable unit tests while time to further investigate this is found.
18668 case $host in
18669   mips-sgi-irix6.5)
18670     if test "$compiler_id" = "GNU_C"; then
18671       supports_unittests=no
18672     fi
18673     ;;
18674 esac
18675
18676 # All AIX autobuilds fails unit tests linking against unittests library
18677 # due to unittests library being built with no symbols or members. Libtool ?
18678 # Disable unit tests while time to further investigate this is found.
18679 case $host_os in
18680   aix*)
18681     supports_unittests=no
18682     ;;
18683 esac
18684
18685 if test "x$want_debug" = "xyes" &&
18686    test "x$supports_unittests" = "xyes"; then
18687   want_unittests=yes
18688 else
18689   want_unittests=no
18690 fi
18691  if test x$want_unittests = xyes; then
18692   BUILD_UNITTESTS_TRUE=
18693   BUILD_UNITTESTS_FALSE='#'
18694 else
18695   BUILD_UNITTESTS_TRUE='#'
18696   BUILD_UNITTESTS_FALSE=
18697 fi
18698
18699
18700
18701
18702
18703   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18704 $as_echo_n "checking for windows.h... " >&6; }
18705 if ${ac_cv_header_windows_h+:} false; then :
18706   $as_echo_n "(cached) " >&6
18707 else
18708
18709     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18710 /* end confdefs.h.  */
18711
18712
18713 #undef inline
18714 #ifndef WIN32_LEAN_AND_MEAN
18715 #define WIN32_LEAN_AND_MEAN
18716 #endif
18717 #include <windows.h>
18718
18719 int main (void)
18720 {
18721
18722 #if defined(__CYGWIN__) || defined(__CEGCC__)
18723         HAVE_WINDOWS_H shall not be defined.
18724 #else
18725         int dummy=2*WINVER;
18726 #endif
18727
18728  ;
18729  return 0;
18730 }
18731
18732 _ACEOF
18733 if ac_fn_c_try_compile "$LINENO"; then :
18734
18735       ac_cv_header_windows_h="yes"
18736
18737 else
18738
18739       ac_cv_header_windows_h="no"
18740
18741 fi
18742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18743
18744 fi
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
18746 $as_echo "$ac_cv_header_windows_h" >&6; }
18747   case "$ac_cv_header_windows_h" in
18748     yes)
18749
18750 cat >>confdefs.h <<_ACEOF
18751 #define HAVE_WINDOWS_H 1
18752 _ACEOF
18753
18754
18755 cat >>confdefs.h <<_ACEOF
18756 #define WIN32_LEAN_AND_MEAN 1
18757 _ACEOF
18758
18759       ;;
18760   esac
18761
18762
18763     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18764 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
18765 if ${ac_cv_native_windows+:} false; then :
18766   $as_echo_n "(cached) " >&6
18767 else
18768
18769     if test "$ac_cv_header_windows_h" = "no"; then
18770       ac_cv_native_windows="no"
18771     else
18772       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18773 /* end confdefs.h.  */
18774
18775
18776
18777 int main (void)
18778 {
18779
18780 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18781    (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18782           int dummy=1;
18783 #else
18784           Not a native Windows build target.
18785 #endif
18786
18787  ;
18788  return 0;
18789 }
18790
18791 _ACEOF
18792 if ac_fn_c_try_compile "$LINENO"; then :
18793
18794         ac_cv_native_windows="yes"
18795
18796 else
18797
18798         ac_cv_native_windows="no"
18799
18800 fi
18801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18802     fi
18803
18804 fi
18805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5
18806 $as_echo "$ac_cv_native_windows" >&6; }
18807    if test "x$ac_cv_native_windows" = xyes; then
18808   DOING_NATIVE_WINDOWS_TRUE=
18809   DOING_NATIVE_WINDOWS_FALSE='#'
18810 else
18811   DOING_NATIVE_WINDOWS_TRUE='#'
18812   DOING_NATIVE_WINDOWS_FALSE=
18813 fi
18814
18815
18816 case X-"$ac_cv_native_windows" in
18817   X-yes)
18818
18819     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18820 $as_echo_n "checking for winsock.h... " >&6; }
18821 if ${ac_cv_header_winsock_h+:} false; then :
18822   $as_echo_n "(cached) " >&6
18823 else
18824
18825     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18826 /* end confdefs.h.  */
18827
18828
18829 #undef inline
18830 #ifndef WIN32_LEAN_AND_MEAN
18831 #define WIN32_LEAN_AND_MEAN
18832 #endif
18833 #include <windows.h>
18834 #include <winsock.h>
18835
18836 int main (void)
18837 {
18838
18839 #if defined(__CYGWIN__) || defined(__CEGCC__)
18840         HAVE_WINSOCK_H shall not be defined.
18841 #else
18842         int dummy=WSACleanup();
18843 #endif
18844
18845  ;
18846  return 0;
18847 }
18848
18849 _ACEOF
18850 if ac_fn_c_try_compile "$LINENO"; then :
18851
18852       ac_cv_header_winsock_h="yes"
18853
18854 else
18855
18856       ac_cv_header_winsock_h="no"
18857
18858 fi
18859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18860
18861 fi
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
18863 $as_echo "$ac_cv_header_winsock_h" >&6; }
18864   case "$ac_cv_header_winsock_h" in
18865     yes)
18866
18867 cat >>confdefs.h <<_ACEOF
18868 #define HAVE_WINSOCK_H 1
18869 _ACEOF
18870
18871       ;;
18872   esac
18873
18874
18875     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18876 $as_echo_n "checking for winsock2.h... " >&6; }
18877 if ${ac_cv_header_winsock2_h+:} false; then :
18878   $as_echo_n "(cached) " >&6
18879 else
18880
18881     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18882 /* end confdefs.h.  */
18883
18884
18885 #undef inline
18886 #ifndef WIN32_LEAN_AND_MEAN
18887 #define WIN32_LEAN_AND_MEAN
18888 #endif
18889 #include <windows.h>
18890 #include <winsock2.h>
18891
18892 int main (void)
18893 {
18894
18895 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18896         HAVE_WINSOCK2_H shall not be defined.
18897 #else
18898         int dummy=2*IPPROTO_ESP;
18899 #endif
18900
18901  ;
18902  return 0;
18903 }
18904
18905 _ACEOF
18906 if ac_fn_c_try_compile "$LINENO"; then :
18907
18908       ac_cv_header_winsock2_h="yes"
18909
18910 else
18911
18912       ac_cv_header_winsock2_h="no"
18913
18914 fi
18915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18916
18917 fi
18918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
18919 $as_echo "$ac_cv_header_winsock2_h" >&6; }
18920   case "$ac_cv_header_winsock2_h" in
18921     yes)
18922
18923 cat >>confdefs.h <<_ACEOF
18924 #define HAVE_WINSOCK2_H 1
18925 _ACEOF
18926
18927       ;;
18928   esac
18929
18930
18931     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18932 $as_echo_n "checking for ws2tcpip.h... " >&6; }
18933 if ${ac_cv_header_ws2tcpip_h+:} false; then :
18934   $as_echo_n "(cached) " >&6
18935 else
18936
18937     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18938 /* end confdefs.h.  */
18939
18940
18941 #undef inline
18942 #ifndef WIN32_LEAN_AND_MEAN
18943 #define WIN32_LEAN_AND_MEAN
18944 #endif
18945 #include <windows.h>
18946 #include <winsock2.h>
18947 #include <ws2tcpip.h>
18948
18949 int main (void)
18950 {
18951
18952 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18953         HAVE_WS2TCPIP_H shall not be defined.
18954 #else
18955         int dummy=2*IP_PKTINFO;
18956 #endif
18957
18958  ;
18959  return 0;
18960 }
18961
18962 _ACEOF
18963 if ac_fn_c_try_compile "$LINENO"; then :
18964
18965       ac_cv_header_ws2tcpip_h="yes"
18966
18967 else
18968
18969       ac_cv_header_ws2tcpip_h="no"
18970
18971 fi
18972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18973
18974 fi
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
18976 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
18977   case "$ac_cv_header_ws2tcpip_h" in
18978     yes)
18979
18980 cat >>confdefs.h <<_ACEOF
18981 #define HAVE_WS2TCPIP_H 1
18982 _ACEOF
18983
18984       ;;
18985   esac
18986
18987
18988     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18989 $as_echo_n "checking for winldap.h... " >&6; }
18990 if ${ac_cv_header_winldap_h+:} false; then :
18991   $as_echo_n "(cached) " >&6
18992 else
18993
18994     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18995 /* end confdefs.h.  */
18996
18997
18998 #undef inline
18999 #ifdef HAVE_WINDOWS_H
19000 #ifndef WIN32_LEAN_AND_MEAN
19001 #define WIN32_LEAN_AND_MEAN
19002 #endif
19003 #include <windows.h>
19004 #endif
19005 #include <winldap.h>
19006
19007 int main (void)
19008 {
19009
19010 #if defined(__CYGWIN__) || defined(__CEGCC__)
19011         HAVE_WINLDAP_H shall not be defined.
19012 #else
19013         LDAP *ldp = ldap_init("dummy", LDAP_PORT);
19014         ULONG res = ldap_unbind(ldp);
19015 #endif
19016
19017  ;
19018  return 0;
19019 }
19020
19021 _ACEOF
19022 if ac_fn_c_try_compile "$LINENO"; then :
19023
19024       ac_cv_header_winldap_h="yes"
19025
19026 else
19027
19028       ac_cv_header_winldap_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: $ac_cv_header_winldap_h" >&5
19035 $as_echo "$ac_cv_header_winldap_h" >&6; }
19036   case "$ac_cv_header_winldap_h" in
19037     yes)
19038
19039 cat >>confdefs.h <<_ACEOF
19040 #define HAVE_WINLDAP_H 1
19041 _ACEOF
19042
19043       ;;
19044   esac
19045
19046
19047     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
19048 $as_echo_n "checking for winber.h... " >&6; }
19049 if ${ac_cv_header_winber_h+:} false; then :
19050   $as_echo_n "(cached) " >&6
19051 else
19052
19053     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19054 /* end confdefs.h.  */
19055
19056
19057 #undef inline
19058 #ifdef HAVE_WINDOWS_H
19059 #ifndef WIN32_LEAN_AND_MEAN
19060 #define WIN32_LEAN_AND_MEAN
19061 #endif
19062 #include <windows.h>
19063 #endif
19064 #include <winldap.h>
19065 #include <winber.h>
19066
19067 int main (void)
19068 {
19069
19070 #if defined(__CYGWIN__) || defined(__CEGCC__)
19071         HAVE_WINBER_H shall not be defined.
19072 #else
19073         BERVAL *bvp = NULL;
19074         BerElement *bep = ber_init(bvp);
19075         ber_free(bep, 1);
19076 #endif
19077
19078  ;
19079  return 0;
19080 }
19081
19082 _ACEOF
19083 if ac_fn_c_try_compile "$LINENO"; then :
19084
19085       ac_cv_header_winber_h="yes"
19086
19087 else
19088
19089       ac_cv_header_winber_h="no"
19090
19091 fi
19092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19093
19094 fi
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winber_h" >&5
19096 $as_echo "$ac_cv_header_winber_h" >&6; }
19097   case "$ac_cv_header_winber_h" in
19098     yes)
19099
19100 cat >>confdefs.h <<_ACEOF
19101 #define HAVE_WINBER_H 1
19102 _ACEOF
19103
19104       ;;
19105   esac
19106
19107     ;;
19108   *)
19109     ac_cv_header_winsock_h="no"
19110     ac_cv_header_winsock2_h="no"
19111     ac_cv_header_ws2tcpip_h="no"
19112     ac_cv_header_winldap_h="no"
19113     ac_cv_header_winber_h="no"
19114     ;;
19115 esac
19116
19117     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
19118 $as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
19119   curl_win32_file_api="no"
19120   if test "$ac_cv_header_windows_h" = "yes"; then
19121     if test x"$enable_largefile" != "xno"; then
19122       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19123 /* end confdefs.h.  */
19124
19125
19126
19127 int main (void)
19128 {
19129
19130 #if !defined(_WIN32_WCE) && \
19131     (defined(__MINGW32__) || \
19132     (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
19133           int dummy=1;
19134 #else
19135           WIN32 large file API not supported.
19136 #endif
19137
19138  ;
19139  return 0;
19140 }
19141
19142 _ACEOF
19143 if ac_fn_c_try_compile "$LINENO"; then :
19144
19145         curl_win32_file_api="win32_large_files"
19146
19147 fi
19148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19149     fi
19150     if test "$curl_win32_file_api" = "no"; then
19151       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19152 /* end confdefs.h.  */
19153
19154
19155
19156 int main (void)
19157 {
19158
19159 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
19160           int dummy=1;
19161 #else
19162           WIN32 small file API not supported.
19163 #endif
19164
19165  ;
19166  return 0;
19167 }
19168
19169 _ACEOF
19170 if ac_fn_c_try_compile "$LINENO"; then :
19171
19172         curl_win32_file_api="win32_small_files"
19173
19174 fi
19175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19176     fi
19177   fi
19178   case "$curl_win32_file_api" in
19179     win32_large_files)
19180       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
19181 $as_echo "yes (large file enabled)" >&6; }
19182
19183 cat >>confdefs.h <<_ACEOF
19184 #define USE_WIN32_LARGE_FILES 1
19185 _ACEOF
19186
19187       ;;
19188     win32_small_files)
19189       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
19190 $as_echo "yes (large file disabled)" >&6; }
19191
19192 cat >>confdefs.h <<_ACEOF
19193 #define USE_WIN32_SMALL_FILES 1
19194 _ACEOF
19195
19196       ;;
19197     *)
19198       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19199 $as_echo "no" >&6; }
19200       ;;
19201   esac
19202
19203
19204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
19205 $as_echo_n "checking whether to support http... " >&6; }
19206 # Check whether --enable-http was given.
19207 if test "${enable_http+set}" = set; then :
19208   enableval=$enable_http;  case "$enableval" in
19209   no)
19210        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19211 $as_echo "no" >&6; }
19212
19213 $as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
19214
19215        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
19216 $as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
19217        CURL_DISABLE_HTTP=1
19218
19219
19220 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19221
19222        CURL_DISABLE_RTSP=1
19223
19224        ;;
19225   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19226 $as_echo "yes" >&6; }
19227        ;;
19228   esac
19229 else
19230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19231 $as_echo "yes" >&6; }
19232
19233 fi
19234
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
19236 $as_echo_n "checking whether to support ftp... " >&6; }
19237 # Check whether --enable-ftp was given.
19238 if test "${enable_ftp+set}" = set; then :
19239   enableval=$enable_ftp;  case "$enableval" in
19240   no)
19241        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19242 $as_echo "no" >&6; }
19243
19244 $as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
19245
19246        CURL_DISABLE_FTP=1
19247
19248        ;;
19249   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19250 $as_echo "yes" >&6; }
19251        ;;
19252   esac
19253 else
19254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19255 $as_echo "yes" >&6; }
19256
19257 fi
19258
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
19260 $as_echo_n "checking whether to support file... " >&6; }
19261 # Check whether --enable-file was given.
19262 if test "${enable_file+set}" = set; then :
19263   enableval=$enable_file;  case "$enableval" in
19264   no)
19265        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19266 $as_echo "no" >&6; }
19267
19268 $as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
19269
19270        CURL_DISABLE_FILE=1
19271
19272        ;;
19273   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19274 $as_echo "yes" >&6; }
19275        ;;
19276   esac
19277 else
19278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19279 $as_echo "yes" >&6; }
19280
19281 fi
19282
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
19284 $as_echo_n "checking whether to support ldap... " >&6; }
19285 # Check whether --enable-ldap was given.
19286 if test "${enable_ldap+set}" = set; then :
19287   enableval=$enable_ldap;  case "$enableval" in
19288   no)
19289        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19290 $as_echo "no" >&6; }
19291
19292 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
19293
19294        CURL_DISABLE_LDAP=1
19295
19296        ;;
19297   *)
19298        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19299 $as_echo "yes" >&6; }
19300        ;;
19301   esac
19302 else
19303
19304        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19305 $as_echo "yes" >&6; }
19306
19307 fi
19308
19309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
19310 $as_echo_n "checking whether to support ldaps... " >&6; }
19311 # Check whether --enable-ldaps was given.
19312 if test "${enable_ldaps+set}" = set; then :
19313   enableval=$enable_ldaps;  case "$enableval" in
19314   no)
19315        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19316 $as_echo "no" >&6; }
19317
19318 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19319
19320        CURL_DISABLE_LDAPS=1
19321
19322        ;;
19323   *)   if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19324          { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
19325 $as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
19326
19327 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19328
19329          CURL_DISABLE_LDAPS=1
19330
19331        else
19332          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19333 $as_echo "yes" >&6; }
19334
19335 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19336
19337          HAVE_LDAP_SSL=1
19338
19339        fi
19340        ;;
19341   esac
19342 else
19343
19344        if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19345          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19346 $as_echo "no" >&6; }
19347
19348 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19349
19350          CURL_DISABLE_LDAPS=1
19351
19352        else
19353          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19354 $as_echo "yes" >&6; }
19355
19356 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19357
19358          HAVE_LDAP_SSL=1
19359
19360        fi
19361
19362 fi
19363
19364
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
19366 $as_echo_n "checking whether to support rtsp... " >&6; }
19367 # Check whether --enable-rtsp was given.
19368 if test "${enable_rtsp+set}" = set; then :
19369   enableval=$enable_rtsp;  case "$enableval" in
19370   no)
19371        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19372 $as_echo "no" >&6; }
19373
19374 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19375
19376        CURL_DISABLE_RTSP=1
19377
19378        ;;
19379   *)   if test x$CURL_DISABLE_HTTP = x1 ; then
19380           as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
19381        else
19382           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19383 $as_echo "yes" >&6; }
19384           curl_rtsp_msg="enabled"
19385        fi
19386        ;;
19387   esac
19388 else
19389   if test "x$CURL_DISABLE_HTTP" != "x1"; then
19390           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19391 $as_echo "yes" >&6; }
19392           curl_rtsp_msg="enabled"
19393        else
19394           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19395 $as_echo "no" >&6; }
19396        fi
19397
19398 fi
19399
19400
19401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
19402 $as_echo_n "checking whether to support proxies... " >&6; }
19403 # Check whether --enable-proxy was given.
19404 if test "${enable_proxy+set}" = set; then :
19405   enableval=$enable_proxy;  case "$enableval" in
19406   no)
19407        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19408 $as_echo "no" >&6; }
19409
19410 $as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
19411
19412        CURL_DISABLE_PROXY=1
19413
19414        ;;
19415   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19416 $as_echo "yes" >&6; }
19417        ;;
19418   esac
19419 else
19420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19421 $as_echo "yes" >&6; }
19422
19423 fi
19424
19425
19426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
19427 $as_echo_n "checking whether to support dict... " >&6; }
19428 # Check whether --enable-dict was given.
19429 if test "${enable_dict+set}" = set; then :
19430   enableval=$enable_dict;  case "$enableval" in
19431   no)
19432        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19433 $as_echo "no" >&6; }
19434
19435 $as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
19436
19437        CURL_DISABLE_DICT=1
19438
19439        ;;
19440   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19441 $as_echo "yes" >&6; }
19442        ;;
19443   esac
19444 else
19445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19446 $as_echo "yes" >&6; }
19447
19448 fi
19449
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
19451 $as_echo_n "checking whether to support telnet... " >&6; }
19452 # Check whether --enable-telnet was given.
19453 if test "${enable_telnet+set}" = set; then :
19454   enableval=$enable_telnet;  case "$enableval" in
19455   no)
19456        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19457 $as_echo "no" >&6; }
19458
19459 $as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
19460
19461        CURL_DISABLE_TELNET=1
19462
19463        ;;
19464   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19465 $as_echo "yes" >&6; }
19466        ;;
19467   esac
19468 else
19469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19470 $as_echo "yes" >&6; }
19471
19472 fi
19473
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
19475 $as_echo_n "checking whether to support tftp... " >&6; }
19476 # Check whether --enable-tftp was given.
19477 if test "${enable_tftp+set}" = set; then :
19478   enableval=$enable_tftp;  case "$enableval" in
19479   no)
19480        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19481 $as_echo "no" >&6; }
19482
19483 $as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
19484
19485        CURL_DISABLE_TFTP=1
19486
19487        ;;
19488   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19489 $as_echo "yes" >&6; }
19490        ;;
19491   esac
19492 else
19493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19494 $as_echo "yes" >&6; }
19495
19496 fi
19497
19498
19499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
19500 $as_echo_n "checking whether to support pop3... " >&6; }
19501 # Check whether --enable-pop3 was given.
19502 if test "${enable_pop3+set}" = set; then :
19503   enableval=$enable_pop3;  case "$enableval" in
19504   no)
19505        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19506 $as_echo "no" >&6; }
19507
19508 $as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
19509
19510        CURL_DISABLE_POP3=1
19511
19512        ;;
19513   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19514 $as_echo "yes" >&6; }
19515        ;;
19516   esac
19517 else
19518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19519 $as_echo "yes" >&6; }
19520
19521 fi
19522
19523
19524
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
19526 $as_echo_n "checking whether to support imap... " >&6; }
19527 # Check whether --enable-imap was given.
19528 if test "${enable_imap+set}" = set; then :
19529   enableval=$enable_imap;  case "$enableval" in
19530   no)
19531        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19532 $as_echo "no" >&6; }
19533
19534 $as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
19535
19536        CURL_DISABLE_IMAP=1
19537
19538        ;;
19539   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19540 $as_echo "yes" >&6; }
19541        ;;
19542   esac
19543 else
19544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19545 $as_echo "yes" >&6; }
19546
19547 fi
19548
19549
19550
19551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
19552 $as_echo_n "checking whether to support smb... " >&6; }
19553 # Check whether --enable-smb was given.
19554 if test "${enable_smb+set}" = set; then :
19555   enableval=$enable_smb;  case "$enableval" in
19556   no)
19557        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19558 $as_echo "no" >&6; }
19559
19560 $as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
19561
19562        CURL_DISABLE_SMB=1
19563
19564        ;;
19565   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19566 $as_echo "yes" >&6; }
19567        ;;
19568   esac
19569 else
19570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19571 $as_echo "yes" >&6; }
19572
19573 fi
19574
19575
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
19577 $as_echo_n "checking whether to support smtp... " >&6; }
19578 # Check whether --enable-smtp was given.
19579 if test "${enable_smtp+set}" = set; then :
19580   enableval=$enable_smtp;  case "$enableval" in
19581   no)
19582        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19583 $as_echo "no" >&6; }
19584
19585 $as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
19586
19587        CURL_DISABLE_SMTP=1
19588
19589        ;;
19590   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19591 $as_echo "yes" >&6; }
19592        ;;
19593   esac
19594 else
19595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19596 $as_echo "yes" >&6; }
19597
19598 fi
19599
19600
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
19602 $as_echo_n "checking whether to support gopher... " >&6; }
19603 # Check whether --enable-gopher was given.
19604 if test "${enable_gopher+set}" = set; then :
19605   enableval=$enable_gopher;  case "$enableval" in
19606   no)
19607        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19608 $as_echo "no" >&6; }
19609
19610 $as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
19611
19612        CURL_DISABLE_GOPHER=1
19613
19614        ;;
19615   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19616 $as_echo "yes" >&6; }
19617        ;;
19618   esac
19619 else
19620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19621 $as_echo "yes" >&6; }
19622
19623 fi
19624
19625
19626
19627
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
19629 $as_echo_n "checking whether to provide built-in manual... " >&6; }
19630 # Check whether --enable-manual was given.
19631 if test "${enable_manual+set}" = set; then :
19632   enableval=$enable_manual;  case "$enableval" in
19633   no)
19634        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19635 $as_echo "no" >&6; }
19636        ;;
19637   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19638 $as_echo "yes" >&6; }
19639        USE_MANUAL="1"
19640        ;;
19641   esac
19642 else
19643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19644 $as_echo "yes" >&6; }
19645        USE_MANUAL="1"
19646
19647 fi
19648
19649
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
19651 $as_echo_n "checking whether to enable generation of C code... " >&6; }
19652 # Check whether --enable-libcurl_option was given.
19653 if test "${enable_libcurl_option+set}" = set; then :
19654   enableval=$enable_libcurl_option;  case "$enableval" in
19655   no)
19656        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19657 $as_echo "no" >&6; }
19658
19659 $as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19660
19661        curl_libcurl_msg="no"
19662        ;;
19663   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19664 $as_echo "yes" >&6; }
19665        ;;
19666   esac
19667 else
19668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19669 $as_echo "yes" >&6; }
19670
19671 fi
19672
19673
19674
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19676 $as_echo_n "checking whether to use libgcc... " >&6; }
19677 # Check whether --enable-libgcc was given.
19678 if test "${enable_libgcc+set}" = set; then :
19679   enableval=$enable_libgcc;  case "$enableval" in
19680   yes)
19681        LIBS="-lgcc $LIBS"
19682        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19683 $as_echo "yes" >&6; }
19684        ;;
19685   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19686 $as_echo "no" >&6; }
19687        ;;
19688   esac
19689 else
19690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19691 $as_echo "no" >&6; }
19692
19693 fi
19694
19695
19696
19697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19698 $as_echo_n "checking if X/Open network library is required... " >&6; }
19699   tst_lib_xnet_required="no"
19700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19701 /* end confdefs.h.  */
19702
19703
19704 int main (void)
19705 {
19706 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19707   return 0;
19708 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19709   return 0;
19710 #else
19711   force compilation error
19712 #endif
19713 }
19714
19715
19716 _ACEOF
19717 if ac_fn_c_try_compile "$LINENO"; then :
19718
19719     tst_lib_xnet_required="yes"
19720     LIBS="-lxnet $LIBS"
19721
19722 fi
19723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19725 $as_echo "$tst_lib_xnet_required" >&6; }
19726
19727
19728 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19729 if test "x$ac_cv_func_gethostbyname" = xyes; then :
19730   HAVE_GETHOSTBYNAME="1"
19731
19732 else
19733    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19734 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19735 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19736   $as_echo_n "(cached) " >&6
19737 else
19738   ac_check_lib_save_LIBS=$LIBS
19739 LIBS="-lnsl  $LIBS"
19740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19741 /* end confdefs.h.  */
19742
19743
19744 #ifdef __cplusplus
19745 extern "C"
19746 #endif
19747 char gethostbyname ();
19748 int main (void)
19749 {
19750 return gethostbyname ();
19751  ;
19752  return 0;
19753 }
19754 _ACEOF
19755 if ac_fn_c_try_link "$LINENO"; then :
19756   ac_cv_lib_nsl_gethostbyname=yes
19757 else
19758   ac_cv_lib_nsl_gethostbyname=no
19759 fi
19760 rm -f core conftest.err conftest.$ac_objext \
19761     conftest$ac_exeext conftest.$ac_ext
19762 LIBS=$ac_check_lib_save_LIBS
19763 fi
19764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19765 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19766 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19767   HAVE_GETHOSTBYNAME="1"
19768                              LIBS="-lnsl $LIBS"
19769
19770 fi
19771
19772
19773 fi
19774
19775
19776 if test "$HAVE_GETHOSTBYNAME" != "1"
19777 then
19778     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19779 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19780 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19781   $as_echo_n "(cached) " >&6
19782 else
19783   ac_check_lib_save_LIBS=$LIBS
19784 LIBS="-lsocket  $LIBS"
19785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19786 /* end confdefs.h.  */
19787
19788
19789 #ifdef __cplusplus
19790 extern "C"
19791 #endif
19792 char gethostbyname ();
19793 int main (void)
19794 {
19795 return gethostbyname ();
19796  ;
19797  return 0;
19798 }
19799 _ACEOF
19800 if ac_fn_c_try_link "$LINENO"; then :
19801   ac_cv_lib_socket_gethostbyname=yes
19802 else
19803   ac_cv_lib_socket_gethostbyname=no
19804 fi
19805 rm -f core conftest.err conftest.$ac_objext \
19806     conftest$ac_exeext conftest.$ac_ext
19807 LIBS=$ac_check_lib_save_LIBS
19808 fi
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19810 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19811 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19812   HAVE_GETHOSTBYNAME="1"
19813                LIBS="-lsocket $LIBS"
19814
19815 fi
19816
19817 fi
19818
19819 if test "$HAVE_GETHOSTBYNAME" != "1"
19820 then
19821     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19822 $as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19823 if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19824   $as_echo_n "(cached) " >&6
19825 else
19826   ac_check_lib_save_LIBS=$LIBS
19827 LIBS="-lwatt  $LIBS"
19828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19829 /* end confdefs.h.  */
19830
19831
19832 #ifdef __cplusplus
19833 extern "C"
19834 #endif
19835 char gethostbyname ();
19836 int main (void)
19837 {
19838 return gethostbyname ();
19839  ;
19840  return 0;
19841 }
19842 _ACEOF
19843 if ac_fn_c_try_link "$LINENO"; then :
19844   ac_cv_lib_watt_gethostbyname=yes
19845 else
19846   ac_cv_lib_watt_gethostbyname=no
19847 fi
19848 rm -f core conftest.err conftest.$ac_objext \
19849     conftest$ac_exeext conftest.$ac_ext
19850 LIBS=$ac_check_lib_save_LIBS
19851 fi
19852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19853 $as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19854 if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19855   HAVE_GETHOSTBYNAME="1"
19856                CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19857                LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19858                LIBS="-lwatt $LIBS"
19859
19860 fi
19861
19862 fi
19863
19864 if test "$HAVE_GETHOSTBYNAME" != "1"
19865 then
19866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19867 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19868   my_ac_save_LIBS=$LIBS
19869   LIBS="-lnsl -lsocket $LIBS"
19870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19871 /* end confdefs.h.  */
19872
19873
19874
19875 int main (void)
19876 {
19877
19878       gethostbyname();
19879
19880  ;
19881  return 0;
19882 }
19883
19884 _ACEOF
19885 if ac_fn_c_try_link "$LINENO"; then :
19886
19887     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19888 $as_echo "yes" >&6; }
19889     HAVE_GETHOSTBYNAME="1"
19890
19891 else
19892
19893     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19894 $as_echo "no" >&6; }
19895     LIBS=$my_ac_save_LIBS
19896
19897 fi
19898 rm -f core conftest.err conftest.$ac_objext \
19899     conftest$ac_exeext conftest.$ac_ext
19900 fi
19901
19902 if test "$HAVE_GETHOSTBYNAME" != "1"
19903 then
19904     if test "$ac_cv_header_windows_h" = "yes"; then
19905     if test "$ac_cv_header_winsock_h" = "yes"; then
19906       case $host in
19907         *-*-mingw32ce*)
19908           winsock_LIB="-lwinsock"
19909           ;;
19910         *)
19911           winsock_LIB="-lwsock32"
19912           ;;
19913       esac
19914     fi
19915     if test "$ac_cv_header_winsock2_h" = "yes"; then
19916       winsock_LIB="-lws2_32"
19917     fi
19918     if test ! -z "$winsock_LIB"; then
19919       my_ac_save_LIBS=$LIBS
19920       LIBS="$winsock_LIB $LIBS"
19921       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19922 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19923       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19924 /* end confdefs.h.  */
19925
19926
19927 #ifdef HAVE_WINDOWS_H
19928 #ifndef WIN32_LEAN_AND_MEAN
19929 #define WIN32_LEAN_AND_MEAN
19930 #endif
19931 #include <windows.h>
19932 #ifdef HAVE_WINSOCK2_H
19933 #include <winsock2.h>
19934 #else
19935 #ifdef HAVE_WINSOCK_H
19936 #include <winsock.h>
19937 #endif
19938 #endif
19939 #endif
19940
19941 int main (void)
19942 {
19943
19944           gethostbyname("www.dummysite.com");
19945
19946  ;
19947  return 0;
19948 }
19949
19950 _ACEOF
19951 if ac_fn_c_try_link "$LINENO"; then :
19952
19953         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19954 $as_echo "yes" >&6; }
19955         HAVE_GETHOSTBYNAME="1"
19956
19957 else
19958
19959         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19960 $as_echo "no" >&6; }
19961         winsock_LIB=""
19962         LIBS=$my_ac_save_LIBS
19963
19964 fi
19965 rm -f core conftest.err conftest.$ac_objext \
19966     conftest$ac_exeext conftest.$ac_ext
19967     fi
19968   fi
19969 fi
19970
19971 if test "$HAVE_GETHOSTBYNAME" != "1"
19972 then
19973     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
19974 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
19975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19976 /* end confdefs.h.  */
19977
19978
19979 /* Older Minix versions may need <net/gen/netdb.h> here instead */
19980 #include <netdb.h>
19981
19982 int main (void)
19983 {
19984
19985       gethostbyname("www.dummysite.com");
19986
19987  ;
19988  return 0;
19989 }
19990
19991 _ACEOF
19992 if ac_fn_c_try_link "$LINENO"; then :
19993
19994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19995 $as_echo "yes" >&6; }
19996     HAVE_GETHOSTBYNAME="1"
19997
19998 else
19999
20000     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20001 $as_echo "no" >&6; }
20002
20003 fi
20004 rm -f core conftest.err conftest.$ac_objext \
20005     conftest$ac_exeext conftest.$ac_ext
20006 fi
20007
20008 if test "$HAVE_GETHOSTBYNAME" != "1"
20009 then
20010     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
20011 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
20012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20013 /* end confdefs.h.  */
20014
20015
20016 #include <stdio.h>
20017 #include <netdb.h>
20018
20019 int main (void)
20020 {
20021
20022       gethostbyname("www.dummysite.com");
20023
20024  ;
20025  return 0;
20026 }
20027
20028 _ACEOF
20029 if ac_fn_c_try_link "$LINENO"; then :
20030
20031     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20032 $as_echo "yes" >&6; }
20033     HAVE_GETHOSTBYNAME="1"
20034
20035 else
20036
20037     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20038 $as_echo "no" >&6; }
20039
20040 fi
20041 rm -f core conftest.err conftest.$ac_objext \
20042     conftest$ac_exeext conftest.$ac_ext
20043 fi
20044
20045 if test "$HAVE_GETHOSTBYNAME" != "1"
20046 then
20047     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
20048 $as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
20049 if ${ac_cv_lib_network_gethostbyname+:} false; then :
20050   $as_echo_n "(cached) " >&6
20051 else
20052   ac_check_lib_save_LIBS=$LIBS
20053 LIBS="-lnetwork  $LIBS"
20054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20055 /* end confdefs.h.  */
20056
20057
20058 #ifdef __cplusplus
20059 extern "C"
20060 #endif
20061 char gethostbyname ();
20062 int main (void)
20063 {
20064 return gethostbyname ();
20065  ;
20066  return 0;
20067 }
20068 _ACEOF
20069 if ac_fn_c_try_link "$LINENO"; then :
20070   ac_cv_lib_network_gethostbyname=yes
20071 else
20072   ac_cv_lib_network_gethostbyname=no
20073 fi
20074 rm -f core conftest.err conftest.$ac_objext \
20075     conftest$ac_exeext conftest.$ac_ext
20076 LIBS=$ac_check_lib_save_LIBS
20077 fi
20078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
20079 $as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
20080 if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
20081   HAVE_GETHOSTBYNAME="1"
20082                LIBS="-lnetwork $LIBS"
20083
20084 fi
20085
20086 fi
20087
20088 if test "$HAVE_GETHOSTBYNAME" != "1"
20089 then
20090     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
20091 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
20092 if ${ac_cv_lib_net_gethostbyname+:} false; then :
20093   $as_echo_n "(cached) " >&6
20094 else
20095   ac_check_lib_save_LIBS=$LIBS
20096 LIBS="-lnet  $LIBS"
20097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20098 /* end confdefs.h.  */
20099
20100
20101 #ifdef __cplusplus
20102 extern "C"
20103 #endif
20104 char gethostbyname ();
20105 int main (void)
20106 {
20107 return gethostbyname ();
20108  ;
20109  return 0;
20110 }
20111 _ACEOF
20112 if ac_fn_c_try_link "$LINENO"; then :
20113   ac_cv_lib_net_gethostbyname=yes
20114 else
20115   ac_cv_lib_net_gethostbyname=no
20116 fi
20117 rm -f core conftest.err conftest.$ac_objext \
20118     conftest$ac_exeext conftest.$ac_ext
20119 LIBS=$ac_check_lib_save_LIBS
20120 fi
20121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
20122 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
20123 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
20124   HAVE_GETHOSTBYNAME="1"
20125                LIBS="-lnet $LIBS"
20126
20127 fi
20128
20129 fi
20130
20131
20132 if test "$HAVE_GETHOSTBYNAME" != "1"; then
20133   as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
20134 fi
20135
20136 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
20137 if test "x$ac_cv_func_strcasecmp" = xyes; then :
20138
20139 else
20140    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
20141 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
20142 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
20143   $as_echo_n "(cached) " >&6
20144 else
20145   ac_check_lib_save_LIBS=$LIBS
20146 LIBS="-lresolve  $LIBS"
20147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20148 /* end confdefs.h.  */
20149
20150
20151 #ifdef __cplusplus
20152 extern "C"
20153 #endif
20154 char strcasecmp ();
20155 int main (void)
20156 {
20157 return strcasecmp ();
20158  ;
20159  return 0;
20160 }
20161 _ACEOF
20162 if ac_fn_c_try_link "$LINENO"; then :
20163   ac_cv_lib_resolve_strcasecmp=yes
20164 else
20165   ac_cv_lib_resolve_strcasecmp=no
20166 fi
20167 rm -f core conftest.err conftest.$ac_objext \
20168     conftest$ac_exeext conftest.$ac_ext
20169 LIBS=$ac_check_lib_save_LIBS
20170 fi
20171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
20172 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
20173 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
20174   cat >>confdefs.h <<_ACEOF
20175 #define HAVE_LIBRESOLVE 1
20176 _ACEOF
20177
20178   LIBS="-lresolve $LIBS"
20179
20180 fi
20181
20182 fi
20183
20184
20185 if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
20186   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
20187 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
20188 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
20189   $as_echo_n "(cached) " >&6
20190 else
20191   ac_check_lib_save_LIBS=$LIBS
20192 LIBS="-lresolve -lnsl $LIBS"
20193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20194 /* end confdefs.h.  */
20195
20196
20197 #ifdef __cplusplus
20198 extern "C"
20199 #endif
20200 char strcasecmp ();
20201 int main (void)
20202 {
20203 return strcasecmp ();
20204  ;
20205  return 0;
20206 }
20207 _ACEOF
20208 if ac_fn_c_try_link "$LINENO"; then :
20209   ac_cv_lib_resolve_strcasecmp=yes
20210 else
20211   ac_cv_lib_resolve_strcasecmp=no
20212 fi
20213 rm -f core conftest.err conftest.$ac_objext \
20214     conftest$ac_exeext conftest.$ac_ext
20215 LIBS=$ac_check_lib_save_LIBS
20216 fi
20217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
20218 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
20219 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
20220   LIBS="-lresolve $LIBS"
20221 fi
20222
20223 fi
20224 ac_cv_func_strcasecmp="no"
20225
20226
20227 curl_includes_winsock2="\
20228 /* includes start */
20229 #ifdef HAVE_WINDOWS_H
20230 #  ifndef WIN32_LEAN_AND_MEAN
20231 #    define WIN32_LEAN_AND_MEAN
20232 #  endif
20233 #  include <windows.h>
20234 #  ifdef HAVE_WINSOCK2_H
20235 #    include <winsock2.h>
20236 #  else
20237 #    ifdef HAVE_WINSOCK_H
20238 #      include <winsock.h>
20239 #    endif
20240 #  endif
20241 #endif
20242 /* includes end */"
20243
20244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20245 $as_echo_n "checking for windows.h... " >&6; }
20246 if ${ac_cv_header_windows_h+:} false; then :
20247   $as_echo_n "(cached) " >&6
20248 else
20249
20250     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20251 /* end confdefs.h.  */
20252
20253
20254 #undef inline
20255 #ifndef WIN32_LEAN_AND_MEAN
20256 #define WIN32_LEAN_AND_MEAN
20257 #endif
20258 #include <windows.h>
20259
20260 int main (void)
20261 {
20262
20263 #if defined(__CYGWIN__) || defined(__CEGCC__)
20264         HAVE_WINDOWS_H shall not be defined.
20265 #else
20266         int dummy=2*WINVER;
20267 #endif
20268
20269  ;
20270  return 0;
20271 }
20272
20273 _ACEOF
20274 if ac_fn_c_try_compile "$LINENO"; then :
20275
20276       ac_cv_header_windows_h="yes"
20277
20278 else
20279
20280       ac_cv_header_windows_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: $ac_cv_header_windows_h" >&5
20287 $as_echo "$ac_cv_header_windows_h" >&6; }
20288   case "$ac_cv_header_windows_h" in
20289     yes)
20290
20291 cat >>confdefs.h <<_ACEOF
20292 #define HAVE_WINDOWS_H 1
20293 _ACEOF
20294
20295
20296 cat >>confdefs.h <<_ACEOF
20297 #define WIN32_LEAN_AND_MEAN 1
20298 _ACEOF
20299
20300       ;;
20301   esac
20302
20303
20304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
20305 $as_echo_n "checking for winsock.h... " >&6; }
20306 if ${ac_cv_header_winsock_h+:} false; then :
20307   $as_echo_n "(cached) " >&6
20308 else
20309
20310     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20311 /* end confdefs.h.  */
20312
20313
20314 #undef inline
20315 #ifndef WIN32_LEAN_AND_MEAN
20316 #define WIN32_LEAN_AND_MEAN
20317 #endif
20318 #include <windows.h>
20319 #include <winsock.h>
20320
20321 int main (void)
20322 {
20323
20324 #if defined(__CYGWIN__) || defined(__CEGCC__)
20325         HAVE_WINSOCK_H shall not be defined.
20326 #else
20327         int dummy=WSACleanup();
20328 #endif
20329
20330  ;
20331  return 0;
20332 }
20333
20334 _ACEOF
20335 if ac_fn_c_try_compile "$LINENO"; then :
20336
20337       ac_cv_header_winsock_h="yes"
20338
20339 else
20340
20341       ac_cv_header_winsock_h="no"
20342
20343 fi
20344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20345
20346 fi
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
20348 $as_echo "$ac_cv_header_winsock_h" >&6; }
20349   case "$ac_cv_header_winsock_h" in
20350     yes)
20351
20352 cat >>confdefs.h <<_ACEOF
20353 #define HAVE_WINSOCK_H 1
20354 _ACEOF
20355
20356       ;;
20357   esac
20358
20359
20360     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20361 $as_echo_n "checking for winsock2.h... " >&6; }
20362 if ${ac_cv_header_winsock2_h+:} false; then :
20363   $as_echo_n "(cached) " >&6
20364 else
20365
20366     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20367 /* end confdefs.h.  */
20368
20369
20370 #undef inline
20371 #ifndef WIN32_LEAN_AND_MEAN
20372 #define WIN32_LEAN_AND_MEAN
20373 #endif
20374 #include <windows.h>
20375 #include <winsock2.h>
20376
20377 int main (void)
20378 {
20379
20380 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20381         HAVE_WINSOCK2_H shall not be defined.
20382 #else
20383         int dummy=2*IPPROTO_ESP;
20384 #endif
20385
20386  ;
20387  return 0;
20388 }
20389
20390 _ACEOF
20391 if ac_fn_c_try_compile "$LINENO"; then :
20392
20393       ac_cv_header_winsock2_h="yes"
20394
20395 else
20396
20397       ac_cv_header_winsock2_h="no"
20398
20399 fi
20400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20401
20402 fi
20403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
20404 $as_echo "$ac_cv_header_winsock2_h" >&6; }
20405   case "$ac_cv_header_winsock2_h" in
20406     yes)
20407
20408 cat >>confdefs.h <<_ACEOF
20409 #define HAVE_WINSOCK2_H 1
20410 _ACEOF
20411
20412       ;;
20413   esac
20414
20415
20416
20417     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
20418 $as_echo_n "checking for connect in libraries... " >&6; }
20419   tst_connect_save_LIBS="$LIBS"
20420   tst_connect_need_LIBS="unknown"
20421   for tst_lib in '' '-lsocket' ; do
20422     if test "$tst_connect_need_LIBS" = "unknown"; then
20423       LIBS="$tst_lib $tst_connect_save_LIBS"
20424       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20425 /* end confdefs.h.  */
20426
20427
20428           $curl_includes_winsock2
20429           #ifndef HAVE_WINDOWS_H
20430             int connect(int, void*, int);
20431           #endif
20432
20433 int main (void)
20434 {
20435
20436           if(0 != connect(0, 0, 0))
20437             return 1;
20438
20439  ;
20440  return 0;
20441 }
20442
20443 _ACEOF
20444 if ac_fn_c_try_link "$LINENO"; then :
20445
20446         tst_connect_need_LIBS="$tst_lib"
20447
20448 fi
20449 rm -f core conftest.err conftest.$ac_objext \
20450     conftest$ac_exeext conftest.$ac_ext
20451     fi
20452   done
20453   LIBS="$tst_connect_save_LIBS"
20454   #
20455   case X-"$tst_connect_need_LIBS" in
20456     X-unknown)
20457       { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
20458 $as_echo "cannot find connect" >&6; }
20459       as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
20460       ;;
20461     X-)
20462       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20463 $as_echo "yes" >&6; }
20464       ;;
20465     *)
20466       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
20467 $as_echo "$tst_connect_need_LIBS" >&6; }
20468       LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
20469       ;;
20470   esac
20471
20472
20473 CURL_NETWORK_LIBS=$LIBS
20474
20475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20476 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20477 if ${ac_cv_header_time+:} false; then :
20478   $as_echo_n "(cached) " >&6
20479 else
20480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20481 /* end confdefs.h.  */
20482 #include <sys/types.h>
20483 #include <sys/time.h>
20484 #include <time.h>
20485
20486 int main (void)
20487 {
20488 if ((struct tm *) 0)
20489 return 0;
20490  ;
20491  return 0;
20492 }
20493 _ACEOF
20494 if ac_fn_c_try_compile "$LINENO"; then :
20495   ac_cv_header_time=yes
20496 else
20497   ac_cv_header_time=no
20498 fi
20499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20500 fi
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20502 $as_echo "$ac_cv_header_time" >&6; }
20503 if test $ac_cv_header_time = yes; then
20504
20505 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20506
20507 fi
20508
20509
20510     for ac_header in sys/types.h sys/time.h time.h
20511 do :
20512   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20513 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20514 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20515   cat >>confdefs.h <<_ACEOF
20516 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20517 _ACEOF
20518
20519 fi
20520
20521 done
20522
20523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
20524 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
20525   #
20526   if test "x$dontwant_rt" == "xno" ; then
20527     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20528 /* end confdefs.h.  */
20529
20530
20531 #ifdef HAVE_SYS_TYPES_H
20532 #include <sys/types.h>
20533 #endif
20534 #ifdef HAVE_SYS_TIME_H
20535 #include <sys/time.h>
20536 #ifdef TIME_WITH_SYS_TIME
20537 #include <time.h>
20538 #endif
20539 #else
20540 #ifdef HAVE_TIME_H
20541 #include <time.h>
20542 #endif
20543 #endif
20544
20545 int main (void)
20546 {
20547
20548         struct timespec ts;
20549         (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20550
20551  ;
20552  return 0;
20553 }
20554
20555 _ACEOF
20556 if ac_fn_c_try_compile "$LINENO"; then :
20557
20558       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20559 $as_echo "yes" >&6; }
20560       ac_cv_func_clock_gettime="yes"
20561
20562 else
20563
20564       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20565 $as_echo "no" >&6; }
20566       ac_cv_func_clock_gettime="no"
20567
20568 fi
20569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20570   fi
20571
20572
20573     #
20574   if test "$ac_cv_func_clock_gettime" = "yes"; then
20575     #
20576     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
20577 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
20578     #
20579     curl_cv_save_LIBS="$LIBS"
20580     curl_cv_gclk_LIBS="unknown"
20581     #
20582     for x_xlibs in '' '-lrt' '-lposix4' ; do
20583       if test "$curl_cv_gclk_LIBS" = "unknown"; then
20584         if test -z "$x_xlibs"; then
20585           LIBS="$curl_cv_save_LIBS"
20586         else
20587           LIBS="$x_xlibs $curl_cv_save_LIBS"
20588         fi
20589         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20590 /* end confdefs.h.  */
20591
20592
20593 #ifdef HAVE_SYS_TYPES_H
20594 #include <sys/types.h>
20595 #endif
20596 #ifdef HAVE_SYS_TIME_H
20597 #include <sys/time.h>
20598 #ifdef TIME_WITH_SYS_TIME
20599 #include <time.h>
20600 #endif
20601 #else
20602 #ifdef HAVE_TIME_H
20603 #include <time.h>
20604 #endif
20605 #endif
20606
20607 int main (void)
20608 {
20609
20610             struct timespec ts;
20611             (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20612
20613  ;
20614  return 0;
20615 }
20616
20617 _ACEOF
20618 if ac_fn_c_try_link "$LINENO"; then :
20619
20620           curl_cv_gclk_LIBS="$x_xlibs"
20621
20622 fi
20623 rm -f core conftest.err conftest.$ac_objext \
20624     conftest$ac_exeext conftest.$ac_ext
20625       fi
20626     done
20627     #
20628     LIBS="$curl_cv_save_LIBS"
20629     #
20630     case X-"$curl_cv_gclk_LIBS" in
20631       X-unknown)
20632         { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
20633 $as_echo "cannot find clock_gettime" >&6; }
20634         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20635 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20636         ac_cv_func_clock_gettime="no"
20637         ;;
20638       X-)
20639         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20640 $as_echo "no additional lib required" >&6; }
20641         ac_cv_func_clock_gettime="yes"
20642         ;;
20643       *)
20644         if test -z "$curl_cv_save_LIBS"; then
20645           LIBS="$curl_cv_gclk_LIBS"
20646         else
20647           LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
20648         fi
20649         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
20650 $as_echo "$curl_cv_gclk_LIBS" >&6; }
20651         ac_cv_func_clock_gettime="yes"
20652         ;;
20653     esac
20654     #
20655         if test "x$cross_compiling" != "xyes" &&
20656       test "$ac_cv_func_clock_gettime" = "yes"; then
20657       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
20658 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
20659       if test "$cross_compiling" = yes; then :
20660   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20662 as_fn_error $? "cannot run test program while cross compiling
20663 See \`config.log' for more details" "$LINENO" 5; }
20664 else
20665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20666 /* end confdefs.h.  */
20667
20668
20669 #ifdef HAVE_STDLIB_H
20670 #include <stdlib.h>
20671 #endif
20672 #ifdef HAVE_SYS_TYPES_H
20673 #include <sys/types.h>
20674 #endif
20675 #ifdef HAVE_SYS_TIME_H
20676 #include <sys/time.h>
20677 #ifdef TIME_WITH_SYS_TIME
20678 #include <time.h>
20679 #endif
20680 #else
20681 #ifdef HAVE_TIME_H
20682 #include <time.h>
20683 #endif
20684 #endif
20685
20686 int main (void)
20687 {
20688
20689           struct timespec ts;
20690           if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20691             exit(0);
20692           else
20693             exit(1);
20694
20695  ;
20696  return 0;
20697 }
20698
20699 _ACEOF
20700 if ac_fn_c_try_run "$LINENO"; then :
20701
20702         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20703 $as_echo "yes" >&6; }
20704
20705 else
20706
20707         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20708 $as_echo "no" >&6; }
20709         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20710 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20711         ac_cv_func_clock_gettime="no"
20712         LIBS="$curl_cv_save_LIBS"
20713
20714 fi
20715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20716   conftest.$ac_objext conftest.beam conftest.$ac_ext
20717 fi
20718
20719     fi
20720     #
20721     case "$ac_cv_func_clock_gettime" in
20722       yes)
20723
20724 cat >>confdefs.h <<_ACEOF
20725 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
20726 _ACEOF
20727
20728         ;;
20729     esac
20730     #
20731   fi
20732   #
20733
20734
20735 CURL_NETWORK_AND_TIME_LIBS=$LIBS
20736
20737
20738
20739 clean_CPPFLAGS=$CPPFLAGS
20740 clean_LDFLAGS=$LDFLAGS
20741 clean_LIBS=$LIBS
20742 ZLIB_LIBS=""
20743
20744 # Check whether --with-zlib was given.
20745 if test "${with_zlib+set}" = set; then :
20746   withval=$with_zlib; OPT_ZLIB="$withval"
20747 fi
20748
20749
20750 if test "$OPT_ZLIB" = "no" ; then
20751     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20752 $as_echo "$as_me: WARNING: zlib disabled" >&2;}
20753 else
20754   if test "$OPT_ZLIB" = "yes" ; then
20755     OPT_ZLIB=""
20756   fi
20757
20758   if test -z "$OPT_ZLIB" ; then
20759
20760     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20761 $as_echo_n "checking for inflateEnd in -lz... " >&6; }
20762 if ${ac_cv_lib_z_inflateEnd+:} false; then :
20763   $as_echo_n "(cached) " >&6
20764 else
20765   ac_check_lib_save_LIBS=$LIBS
20766 LIBS="-lz  $LIBS"
20767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20768 /* end confdefs.h.  */
20769
20770
20771 #ifdef __cplusplus
20772 extern "C"
20773 #endif
20774 char inflateEnd ();
20775 int main (void)
20776 {
20777 return inflateEnd ();
20778  ;
20779  return 0;
20780 }
20781 _ACEOF
20782 if ac_fn_c_try_link "$LINENO"; then :
20783   ac_cv_lib_z_inflateEnd=yes
20784 else
20785   ac_cv_lib_z_inflateEnd=no
20786 fi
20787 rm -f core conftest.err conftest.$ac_objext \
20788     conftest$ac_exeext conftest.$ac_ext
20789 LIBS=$ac_check_lib_save_LIBS
20790 fi
20791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20792 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20793 if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20794                      HAVE_LIBZ="1"
20795                     LIBS="-lz $LIBS"
20796 else
20797                      OPT_ZLIB="/usr/local"
20798 fi
20799
20800
20801   fi
20802
20803     if test -n "$OPT_ZLIB"; then
20804      CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20805      LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20806   fi
20807
20808   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20809 if test "x$ac_cv_header_zlib_h" = xyes; then :
20810
20811         HAVE_ZLIB_H="1"
20812         if test "$HAVE_LIBZ" != "1"; then
20813       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20814 $as_echo_n "checking for gzread in -lz... " >&6; }
20815 if ${ac_cv_lib_z_gzread+:} false; then :
20816   $as_echo_n "(cached) " >&6
20817 else
20818   ac_check_lib_save_LIBS=$LIBS
20819 LIBS="-lz  $LIBS"
20820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20821 /* end confdefs.h.  */
20822
20823
20824 #ifdef __cplusplus
20825 extern "C"
20826 #endif
20827 char gzread ();
20828 int main (void)
20829 {
20830 return gzread ();
20831  ;
20832  return 0;
20833 }
20834 _ACEOF
20835 if ac_fn_c_try_link "$LINENO"; then :
20836   ac_cv_lib_z_gzread=yes
20837 else
20838   ac_cv_lib_z_gzread=no
20839 fi
20840 rm -f core conftest.err conftest.$ac_objext \
20841     conftest$ac_exeext conftest.$ac_ext
20842 LIBS=$ac_check_lib_save_LIBS
20843 fi
20844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20845 $as_echo "$ac_cv_lib_z_gzread" >&6; }
20846 if test "x$ac_cv_lib_z_gzread" = xyes; then :
20847
20848                                       HAVE_LIBZ="1"
20849                    LIBS="-lz $LIBS"
20850
20851 else
20852    CPPFLAGS=$clean_CPPFLAGS
20853                    LDFLAGS=$clean_LDFLAGS
20854 fi
20855
20856     fi
20857
20858 else
20859
20860             CPPFLAGS=$clean_CPPFLAGS
20861       LDFLAGS=$clean_LDFLAGS
20862
20863 fi
20864
20865
20866
20867   if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20868   then
20869     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20870 $as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20871     HAVE_LIBZ=""
20872     CPPFLAGS=$clean_CPPFLAGS
20873     LDFLAGS=$clean_LDFLAGS
20874     LIBS=$clean_LIBS
20875   elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20876   then
20877     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20878 $as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20879     CPPFLAGS=$clean_CPPFLAGS
20880     LDFLAGS=$clean_LDFLAGS
20881     LIBS=$clean_LIBS
20882   elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20883   then
20884
20885
20886 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20887
20888
20889 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20890
20891
20892     ZLIB_LIBS="-lz"
20893     LIBS="-lz $clean_LIBS"
20894
20895         AMFIXLIB="1"
20896     { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20897 $as_echo "$as_me: found both libz and libz.h header" >&6;}
20898     curl_zlib_msg="enabled"
20899   fi
20900 fi
20901
20902  if test x"$AMFIXLIB" = x1; then
20903   HAVE_LIBZ_TRUE=
20904   HAVE_LIBZ_FALSE='#'
20905 else
20906   HAVE_LIBZ_TRUE='#'
20907   HAVE_LIBZ_FALSE=
20908 fi
20909
20910
20911
20912
20913 LDAPLIBNAME=""
20914
20915 # Check whether --with-ldap-lib was given.
20916 if test "${with_ldap_lib+set}" = set; then :
20917   withval=$with_ldap_lib; LDAPLIBNAME="$withval"
20918 fi
20919
20920
20921 LBERLIBNAME=""
20922
20923 # Check whether --with-lber-lib was given.
20924 if test "${with_lber_lib+set}" = set; then :
20925   withval=$with_lber_lib; LBERLIBNAME="$withval"
20926 fi
20927
20928
20929 if test x$CURL_DISABLE_LDAP != x1 ; then
20930
20931
20932     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
20933 $as_echo_n "checking for lber.h... " >&6; }
20934 if ${ac_cv_header_lber_h+:} false; then :
20935   $as_echo_n "(cached) " >&6
20936 else
20937
20938     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20939 /* end confdefs.h.  */
20940
20941
20942 #undef inline
20943 #ifdef HAVE_WINDOWS_H
20944 #ifndef WIN32_LEAN_AND_MEAN
20945 #define WIN32_LEAN_AND_MEAN
20946 #endif
20947 #include <windows.h>
20948 #else
20949 #ifdef HAVE_SYS_TYPES_H
20950 #include <sys/types.h>
20951 #endif
20952 #endif
20953 #ifndef NULL
20954 #define NULL (void *)0
20955 #endif
20956 #include <lber.h>
20957
20958 int main (void)
20959 {
20960
20961         BerValue *bvp = NULL;
20962         BerElement *bep = ber_init(bvp);
20963         ber_free(bep, 1);
20964
20965  ;
20966  return 0;
20967 }
20968
20969 _ACEOF
20970 if ac_fn_c_try_compile "$LINENO"; then :
20971
20972       ac_cv_header_lber_h="yes"
20973
20974 else
20975
20976       ac_cv_header_lber_h="no"
20977
20978 fi
20979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20980
20981 fi
20982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_lber_h" >&5
20983 $as_echo "$ac_cv_header_lber_h" >&6; }
20984   if test "$ac_cv_header_lber_h" = "yes"; then
20985
20986 cat >>confdefs.h <<_ACEOF
20987 #define HAVE_LBER_H 1
20988 _ACEOF
20989
20990     #
20991     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20992 /* end confdefs.h.  */
20993
20994
20995 #undef inline
20996 #ifdef HAVE_WINDOWS_H
20997 #ifndef WIN32_LEAN_AND_MEAN
20998 #define WIN32_LEAN_AND_MEAN
20999 #endif
21000 #include <windows.h>
21001 #else
21002 #ifdef HAVE_SYS_TYPES_H
21003 #include <sys/types.h>
21004 #endif
21005 #endif
21006 #ifndef NULL
21007 #define NULL (void *)0
21008 #endif
21009 #ifndef LDAP_DEPRECATED
21010 #define LDAP_DEPRECATED 1
21011 #endif
21012 #include <ldap.h>
21013
21014 int main (void)
21015 {
21016
21017         BerValue *bvp = NULL;
21018         BerElement *bep = ber_init(bvp);
21019         ber_free(bep, 1);
21020
21021  ;
21022  return 0;
21023 }
21024
21025 _ACEOF
21026 if ac_fn_c_try_compile "$LINENO"; then :
21027
21028       curl_cv_need_header_lber_h="no"
21029
21030 else
21031
21032       curl_cv_need_header_lber_h="yes"
21033
21034 fi
21035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21036     #
21037     case "$curl_cv_need_header_lber_h" in
21038       yes)
21039
21040 cat >>confdefs.h <<_ACEOF
21041 #define NEED_LBER_H 1
21042 _ACEOF
21043
21044         ;;
21045     esac
21046   fi
21047
21048
21049     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
21050 $as_echo_n "checking for ldap.h... " >&6; }
21051 if ${ac_cv_header_ldap_h+:} false; then :
21052   $as_echo_n "(cached) " >&6
21053 else
21054
21055     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21056 /* end confdefs.h.  */
21057
21058
21059 #undef inline
21060 #ifdef HAVE_WINDOWS_H
21061 #ifndef WIN32_LEAN_AND_MEAN
21062 #define WIN32_LEAN_AND_MEAN
21063 #endif
21064 #include <windows.h>
21065 #else
21066 #ifdef HAVE_SYS_TYPES_H
21067 #include <sys/types.h>
21068 #endif
21069 #endif
21070 #ifndef LDAP_DEPRECATED
21071 #define LDAP_DEPRECATED 1
21072 #endif
21073 #ifdef NEED_LBER_H
21074 #include <lber.h>
21075 #endif
21076 #include <ldap.h>
21077
21078 int main (void)
21079 {
21080
21081         LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21082         int res = ldap_unbind(ldp);
21083
21084  ;
21085  return 0;
21086 }
21087
21088 _ACEOF
21089 if ac_fn_c_try_compile "$LINENO"; then :
21090
21091       ac_cv_header_ldap_h="yes"
21092
21093 else
21094
21095       ac_cv_header_ldap_h="no"
21096
21097 fi
21098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21099
21100 fi
21101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldap_h" >&5
21102 $as_echo "$ac_cv_header_ldap_h" >&6; }
21103   case "$ac_cv_header_ldap_h" in
21104     yes)
21105
21106 cat >>confdefs.h <<_ACEOF
21107 #define HAVE_LDAP_H 1
21108 _ACEOF
21109
21110       ;;
21111   esac
21112
21113
21114     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
21115 $as_echo_n "checking for ldapssl.h... " >&6; }
21116 if ${ac_cv_header_ldapssl_h+:} false; then :
21117   $as_echo_n "(cached) " >&6
21118 else
21119
21120     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21121 /* end confdefs.h.  */
21122
21123
21124 #undef inline
21125 #ifdef HAVE_WINDOWS_H
21126 #ifndef WIN32_LEAN_AND_MEAN
21127 #define WIN32_LEAN_AND_MEAN
21128 #endif
21129 #include <windows.h>
21130 #else
21131 #ifdef HAVE_SYS_TYPES_H
21132 #include <sys/types.h>
21133 #endif
21134 #endif
21135 #ifndef NULL
21136 #define NULL (void *)0
21137 #endif
21138 #ifndef LDAP_DEPRECATED
21139 #define LDAP_DEPRECATED 1
21140 #endif
21141 #ifdef NEED_LBER_H
21142 #include <lber.h>
21143 #endif
21144 #ifdef HAVE_LDAP_H
21145 #include <ldap.h>
21146 #endif
21147 #include <ldapssl.h>
21148
21149 int main (void)
21150 {
21151
21152         char *cert_label = NULL;
21153         LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
21154
21155  ;
21156  return 0;
21157 }
21158
21159 _ACEOF
21160 if ac_fn_c_try_compile "$LINENO"; then :
21161
21162       ac_cv_header_ldapssl_h="yes"
21163
21164 else
21165
21166       ac_cv_header_ldapssl_h="no"
21167
21168 fi
21169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21170
21171 fi
21172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldapssl_h" >&5
21173 $as_echo "$ac_cv_header_ldapssl_h" >&6; }
21174   case "$ac_cv_header_ldapssl_h" in
21175     yes)
21176
21177 cat >>confdefs.h <<_ACEOF
21178 #define HAVE_LDAPSSL_H 1
21179 _ACEOF
21180
21181       ;;
21182   esac
21183
21184
21185     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
21186 $as_echo_n "checking for ldap_ssl.h... " >&6; }
21187 if ${ac_cv_header_ldap_ssl_h+:} false; then :
21188   $as_echo_n "(cached) " >&6
21189 else
21190
21191     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21192 /* end confdefs.h.  */
21193
21194
21195 #undef inline
21196 #ifdef HAVE_WINDOWS_H
21197 #ifndef WIN32_LEAN_AND_MEAN
21198 #define WIN32_LEAN_AND_MEAN
21199 #endif
21200 #include <windows.h>
21201 #else
21202 #ifdef HAVE_SYS_TYPES_H
21203 #include <sys/types.h>
21204 #endif
21205 #endif
21206 #ifndef LDAP_DEPRECATED
21207 #define LDAP_DEPRECATED 1
21208 #endif
21209 #ifdef NEED_LBER_H
21210 #include <lber.h>
21211 #endif
21212 #ifdef HAVE_LDAP_H
21213 #include <ldap.h>
21214 #endif
21215 #include <ldap_ssl.h>
21216
21217 int main (void)
21218 {
21219
21220         LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
21221
21222  ;
21223  return 0;
21224 }
21225
21226 _ACEOF
21227 if ac_fn_c_try_compile "$LINENO"; then :
21228
21229       ac_cv_header_ldap_ssl_h="yes"
21230
21231 else
21232
21233       ac_cv_header_ldap_ssl_h="no"
21234
21235 fi
21236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21237
21238 fi
21239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldap_ssl_h" >&5
21240 $as_echo "$ac_cv_header_ldap_ssl_h" >&6; }
21241   case "$ac_cv_header_ldap_ssl_h" in
21242     yes)
21243
21244 cat >>confdefs.h <<_ACEOF
21245 #define HAVE_LDAP_SSL_H 1
21246 _ACEOF
21247
21248       ;;
21249   esac
21250
21251
21252   if test -z "$LDAPLIBNAME" ; then
21253     if test "$ac_cv_native_windows" = "yes"; then
21254             LDAPLIBNAME="wldap32"
21255       LBERLIBNAME="no"
21256     fi
21257   fi
21258
21259   if test "$LDAPLIBNAME" ; then
21260     as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
21261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
21262 $as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
21263 if eval \${$as_ac_Lib+:} false; then :
21264   $as_echo_n "(cached) " >&6
21265 else
21266   ac_check_lib_save_LIBS=$LIBS
21267 LIBS="-l"$LDAPLIBNAME"  $LIBS"
21268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21269 /* end confdefs.h.  */
21270
21271
21272 #ifdef __cplusplus
21273 extern "C"
21274 #endif
21275 char ldap_init ();
21276 int main (void)
21277 {
21278 return ldap_init ();
21279  ;
21280  return 0;
21281 }
21282 _ACEOF
21283 if ac_fn_c_try_link "$LINENO"; then :
21284   eval "$as_ac_Lib=yes"
21285 else
21286   eval "$as_ac_Lib=no"
21287 fi
21288 rm -f core conftest.err conftest.$ac_objext \
21289     conftest$ac_exeext conftest.$ac_ext
21290 LIBS=$ac_check_lib_save_LIBS
21291 fi
21292 eval ac_res=\$$as_ac_Lib
21293                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21294 $as_echo "$ac_res" >&6; }
21295 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21296   cat >>confdefs.h <<_ACEOF
21297 #define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
21298 _ACEOF
21299
21300   LIBS="-l"$LDAPLIBNAME" $LIBS"
21301
21302 else
21303
21304       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
21305 $as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
21306
21307 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21308
21309       CURL_DISABLE_LDAP=1
21310
21311
21312 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21313
21314       CURL_DISABLE_LDAPS=1
21315
21316 fi
21317
21318   else
21319
21320     #
21321   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
21322 $as_echo_n "checking for LDAP libraries... " >&6; }
21323   #
21324   u_libs=""
21325   #
21326
21327   #
21328   curl_cv_save_LIBS="$LIBS"
21329   curl_cv_ldap_LIBS="unknown"
21330   #
21331   for x_nlibs in '' "$u_libs" \
21332     '-lldap' \
21333     '-llber -lldap' \
21334     '-lldap -llber' \
21335     '-lldapssl -lldapx -lldapsdk' \
21336     '-lldapsdk -lldapx -lldapssl' ; do
21337     if test "$curl_cv_ldap_LIBS" = "unknown"; then
21338       if test -z "$x_nlibs"; then
21339         LIBS="$curl_cv_save_LIBS"
21340       else
21341         LIBS="$x_nlibs $curl_cv_save_LIBS"
21342       fi
21343       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21344 /* end confdefs.h.  */
21345
21346
21347 #undef inline
21348 #ifdef HAVE_WINDOWS_H
21349 #ifndef WIN32_LEAN_AND_MEAN
21350 #define WIN32_LEAN_AND_MEAN
21351 #endif
21352 #include <windows.h>
21353 #else
21354 #ifdef HAVE_SYS_TYPES_H
21355 #include <sys/types.h>
21356 #endif
21357 #endif
21358 #ifndef NULL
21359 #define NULL (void *)0
21360 #endif
21361 #ifndef LDAP_DEPRECATED
21362 #define LDAP_DEPRECATED 1
21363 #endif
21364 #ifdef NEED_LBER_H
21365 #include <lber.h>
21366 #endif
21367 #ifdef HAVE_LDAP_H
21368 #include <ldap.h>
21369 #endif
21370
21371 int main (void)
21372 {
21373
21374           BerValue *bvp = NULL;
21375           BerElement *bep = ber_init(bvp);
21376           LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21377           int res = ldap_unbind(ldp);
21378           ber_free(bep, 1);
21379
21380  ;
21381  return 0;
21382 }
21383
21384 _ACEOF
21385 if ac_fn_c_try_link "$LINENO"; then :
21386
21387         curl_cv_ldap_LIBS="$x_nlibs"
21388
21389 fi
21390 rm -f core conftest.err conftest.$ac_objext \
21391     conftest$ac_exeext conftest.$ac_ext
21392     fi
21393   done
21394   #
21395   LIBS="$curl_cv_save_LIBS"
21396   #
21397   case X-"$curl_cv_ldap_LIBS" in
21398     X-unknown)
21399       { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
21400 $as_echo "cannot find LDAP libraries" >&6; }
21401       ;;
21402     X-)
21403       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
21404 $as_echo "no additional lib required" >&6; }
21405       ;;
21406     *)
21407       if test -z "$curl_cv_save_LIBS"; then
21408         LIBS="$curl_cv_ldap_LIBS"
21409       else
21410         LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
21411       fi
21412       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
21413 $as_echo "$curl_cv_ldap_LIBS" >&6; }
21414       ;;
21415   esac
21416   #
21417
21418     case X-"$curl_cv_ldap_LIBS" in
21419       X-unknown)
21420         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
21421 $as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
21422
21423 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21424
21425         CURL_DISABLE_LDAP=1
21426
21427
21428 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21429
21430         CURL_DISABLE_LDAPS=1
21431
21432         ;;
21433     esac
21434   fi
21435 fi
21436
21437 if test x$CURL_DISABLE_LDAP != x1 ; then
21438
21439   if test "$LBERLIBNAME" ; then
21440             if test "$LBERLIBNAME" != "no" ; then
21441       as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
21442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
21443 $as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
21444 if eval \${$as_ac_Lib+:} false; then :
21445   $as_echo_n "(cached) " >&6
21446 else
21447   ac_check_lib_save_LIBS=$LIBS
21448 LIBS="-l"$LBERLIBNAME"  $LIBS"
21449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21450 /* end confdefs.h.  */
21451
21452
21453 #ifdef __cplusplus
21454 extern "C"
21455 #endif
21456 char ber_free ();
21457 int main (void)
21458 {
21459 return ber_free ();
21460  ;
21461  return 0;
21462 }
21463 _ACEOF
21464 if ac_fn_c_try_link "$LINENO"; then :
21465   eval "$as_ac_Lib=yes"
21466 else
21467   eval "$as_ac_Lib=no"
21468 fi
21469 rm -f core conftest.err conftest.$ac_objext \
21470     conftest$ac_exeext conftest.$ac_ext
21471 LIBS=$ac_check_lib_save_LIBS
21472 fi
21473 eval ac_res=\$$as_ac_Lib
21474                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21475 $as_echo "$ac_res" >&6; }
21476 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21477   cat >>confdefs.h <<_ACEOF
21478 #define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
21479 _ACEOF
21480
21481   LIBS="-l"$LBERLIBNAME" $LIBS"
21482
21483 else
21484
21485         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
21486 $as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
21487
21488 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21489
21490         CURL_DISABLE_LDAP=1
21491
21492
21493 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21494
21495         CURL_DISABLE_LDAPS=1
21496
21497 fi
21498
21499     fi
21500   fi
21501 fi
21502
21503 if test x$CURL_DISABLE_LDAP != x1 ; then
21504   for ac_func in ldap_url_parse ldap_init_fd
21505 do :
21506   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21507 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21508 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21509   cat >>confdefs.h <<_ACEOF
21510 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21511 _ACEOF
21512
21513 fi
21514 done
21515
21516
21517   if test "$LDAPLIBNAME" = "wldap32"; then
21518     curl_ldap_msg="enabled (winldap)"
21519
21520 $as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
21521
21522   else
21523     curl_ldap_msg="enabled (OpenLDAP)"
21524     if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
21525
21526 $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
21527
21528       USE_OPENLDAP=1
21529
21530     fi
21531   fi
21532 fi
21533
21534 if test x$CURL_DISABLE_LDAPS != x1 ; then
21535     curl_ldaps_msg="enabled"
21536 fi
21537
21538
21539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
21540 $as_echo_n "checking whether to enable IPv6... " >&6; }
21541 # Check whether --enable-ipv6 was given.
21542 if test "${enable_ipv6+set}" = set; then :
21543   enableval=$enable_ipv6;  case "$enableval" in
21544   no)
21545        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21546 $as_echo "no" >&6; }
21547        ipv6=no
21548        ;;
21549   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21550 $as_echo "yes" >&6; }
21551        ipv6=yes
21552        ;;
21553   esac
21554 else
21555   if test "$cross_compiling" = yes; then :
21556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21557 $as_echo "yes" >&6; }
21558   ipv6=yes
21559
21560 else
21561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21562 /* end confdefs.h.  */
21563  /* is AF_INET6 available? */
21564 #include <sys/types.h>
21565 #ifdef HAVE_WINSOCK2_H
21566 #include <winsock2.h>
21567 #else
21568 #include <sys/socket.h>
21569 #endif
21570 #include <stdlib.h> /* for exit() */
21571 main()
21572 {
21573  if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
21574    exit(1);
21575  else
21576    exit(0);
21577 }
21578
21579 _ACEOF
21580 if ac_fn_c_try_run "$LINENO"; then :
21581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21582 $as_echo "yes" >&6; }
21583   ipv6=yes
21584 else
21585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21586 $as_echo "no" >&6; }
21587   ipv6=no
21588 fi
21589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21590   conftest.$ac_objext conftest.beam conftest.$ac_ext
21591 fi
21592
21593 fi
21594
21595
21596 if test "$ipv6" = "yes"; then
21597   curl_ipv6_msg="enabled"
21598 fi
21599
21600 # Check if struct sockaddr_in6 have sin6_scope_id member
21601 if test "$ipv6" = yes; then
21602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
21603 $as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
21604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21605 /* end confdefs.h.  */
21606
21607 #include <sys/types.h>
21608 #ifdef HAVE_WINSOCK2_H
21609 #include <winsock2.h>
21610 #include <ws2tcpip.h>
21611 #else
21612 #include <netinet/in.h>
21613 #endif
21614 int main (void)
21615 {
21616 struct sockaddr_in6 s; s.sin6_scope_id = 0;
21617  ;
21618  return 0;
21619 }
21620 _ACEOF
21621 if ac_fn_c_try_compile "$LINENO"; then :
21622   have_sin6_scope_id=yes
21623 fi
21624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21625   if test "$have_sin6_scope_id" = yes; then
21626     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21627 $as_echo "yes" >&6; }
21628
21629 $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
21630
21631   else
21632     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21633 $as_echo "no" >&6; }
21634   fi
21635 fi
21636
21637
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
21639 $as_echo_n "checking if argv can be written to... " >&6; }
21640 if test "$cross_compiling" = yes; then :
21641
21642   curl_cv_writable_argv=cross
21643
21644 else
21645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21646 /* end confdefs.h.  */
21647
21648
21649 int main(int argc, char ** argv) {
21650     argv[0][0] = ' ';
21651     return (argv[0][0] == ' ')?0:1;
21652 }
21653
21654
21655 _ACEOF
21656 if ac_fn_c_try_run "$LINENO"; then :
21657
21658   curl_cv_writable_argv=yes
21659
21660 else
21661
21662   curl_cv_writable_argv=no
21663
21664 fi
21665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21666   conftest.$ac_objext conftest.beam conftest.$ac_ext
21667 fi
21668
21669 case $curl_cv_writable_argv in
21670 yes)
21671
21672 $as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
21673
21674         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21675 $as_echo "yes" >&6; }
21676         ;;
21677 no)
21678         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21679 $as_echo "no" >&6; }
21680         ;;
21681 *)
21682         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21683 $as_echo "no" >&6; }
21684         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
21685 $as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
21686         ;;
21687 esac
21688
21689
21690
21691 GSSAPI_ROOT="/usr"
21692
21693 # Check whether --with-gssapi-includes was given.
21694 if test "${with_gssapi_includes+set}" = set; then :
21695   withval=$with_gssapi_includes;  GSSAPI_INCS="-I$withval"
21696     want_gss="yes"
21697
21698 fi
21699
21700
21701
21702 # Check whether --with-gssapi-libs was given.
21703 if test "${with_gssapi_libs+set}" = set; then :
21704   withval=$with_gssapi_libs;  GSSAPI_LIB_DIR="-L$withval"
21705     want_gss="yes"
21706
21707 fi
21708
21709
21710
21711 # Check whether --with-gssapi was given.
21712 if test "${with_gssapi+set}" = set; then :
21713   withval=$with_gssapi;
21714   GSSAPI_ROOT="$withval"
21715   if test x"$GSSAPI_ROOT" != xno; then
21716     want_gss="yes"
21717     if test x"$GSSAPI_ROOT" = xyes; then
21718             GSSAPI_ROOT="/usr"
21719     fi
21720   fi
21721
21722 fi
21723
21724
21725 : ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
21726
21727 save_CPPFLAGS="$CPPFLAGS"
21728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
21729 $as_echo_n "checking if GSS-API support is requested... " >&6; }
21730 if test x"$want_gss" = xyes; then
21731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21732 $as_echo "yes" >&6; }
21733
21734   if test -z "$GSSAPI_INCS"; then
21735      if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21736         GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
21737      elif test -f "$KRB5CONFIG"; then
21738         GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
21739      elif test "$GSSAPI_ROOT" != "yes"; then
21740         GSSAPI_INCS="-I$GSSAPI_ROOT/include"
21741      fi
21742   fi
21743
21744   CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
21745
21746   ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
21747 if test "x$ac_cv_header_gss_h" = xyes; then :
21748
21749
21750 $as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
21751
21752       gnu_gss=yes
21753
21754 else
21755
21756             for ac_header in gssapi/gssapi.h
21757 do :
21758   ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
21759 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
21760   cat >>confdefs.h <<_ACEOF
21761 #define HAVE_GSSAPI_GSSAPI_H 1
21762 _ACEOF
21763
21764 else
21765   not_mit=1
21766 fi
21767
21768 done
21769
21770       for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
21771 do :
21772   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21773 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
21774 $ac_includes_default
21775 #ifdef HAVE_GSSAPI_GSSAPI_H
21776 #include <gssapi/gssapi.h>
21777 #endif
21778
21779 "
21780 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21781   cat >>confdefs.h <<_ACEOF
21782 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21783 _ACEOF
21784
21785 else
21786   not_mit=1
21787 fi
21788
21789 done
21790
21791       if test "x$not_mit" = "x1"; then
21792                 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
21793 if test "x$ac_cv_header_gssapi_h" = xyes; then :
21794
21795
21796 $as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
21797
21798
21799 else
21800
21801                             want_gss=no
21802               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
21803 $as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
21804
21805
21806 fi
21807
21808
21809       else
21810
21811 $as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
21812
21813                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
21814 $as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
21815         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21816 /* end confdefs.h.  */
21817
21818
21819 #include <gssapi/gssapi.h>
21820 #include <gssapi/gssapi_generic.h>
21821 #include <gssapi/gssapi_krb5.h>
21822
21823 int main (void)
21824 {
21825
21826             gss_import_name(
21827                             (OM_uint32 *)0,
21828                             (gss_buffer_t)0,
21829                             GSS_C_NT_HOSTBASED_SERVICE,
21830                             (gss_name_t *)0);
21831
21832  ;
21833  return 0;
21834 }
21835
21836 _ACEOF
21837 if ac_fn_c_try_compile "$LINENO"; then :
21838
21839           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21840 $as_echo "yes" >&6; }
21841
21842 else
21843
21844           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21845 $as_echo "no" >&6; }
21846
21847 $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
21848
21849
21850 fi
21851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21852       fi
21853
21854
21855 fi
21856
21857
21858 else
21859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21860 $as_echo "no" >&6; }
21861 fi
21862 if test x"$want_gss" = xyes; then
21863
21864 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
21865
21866   HAVE_GSSAPI=1
21867   curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
21868
21869   if test -n "$gnu_gss"; then
21870     curl_gss_msg="enabled (GNU GSS)"
21871     LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
21872     LIBS="-lgss $LIBS"
21873   elif test -z "$GSSAPI_LIB_DIR"; then
21874      case $host in
21875      *-*-darwin*)
21876         LIBS="-lgssapi_krb5 -lresolv $LIBS"
21877         ;;
21878      *)
21879         if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21880                                  gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
21881            LIBS="$gss_libs $LIBS"
21882         elif test -f "$KRB5CONFIG"; then
21883                                  gss_libs=`$KRB5CONFIG --libs gssapi`
21884            LIBS="$gss_libs $LIBS"
21885         else
21886            case $host in
21887            *-hp-hpux*)
21888               gss_libname="gss"
21889               ;;
21890            *)
21891               gss_libname="gssapi"
21892               ;;
21893            esac
21894
21895            if test "$GSSAPI_ROOT" != "yes"; then
21896               LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
21897               LIBS="-l$gss_libname $LIBS"
21898            else
21899               LIBS="-l$gss_libname $LIBS"
21900            fi
21901         fi
21902         ;;
21903      esac
21904   else
21905      LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
21906      case $host in
21907      *-hp-hpux*)
21908         LIBS="-lgss $LIBS"
21909         ;;
21910      *)
21911         LIBS="-lgssapi $LIBS"
21912         ;;
21913      esac
21914   fi
21915 else
21916   CPPFLAGS="$save_CPPFLAGS"
21917 fi
21918
21919
21920 OPT_WINSSL=no
21921
21922 # Check whether --with-winssl was given.
21923 if test "${with_winssl+set}" = set; then :
21924   withval=$with_winssl; OPT_WINSSL=$withval
21925 fi
21926
21927
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
21929 $as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
21930 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
21931   if test "x$OPT_WINSSL" != "xno"  &&
21932      test "x$ac_cv_native_windows" = "xyes"; then
21933     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21934 $as_echo "yes" >&6; }
21935
21936 $as_echo "#define USE_SCHANNEL 1" >>confdefs.h
21937
21938     USE_SCHANNEL=1
21939
21940     curl_ssl_msg="enabled (Windows-native)"
21941     WINSSL_ENABLED=1
21942     # --with-winssl implies --enable-sspi
21943
21944 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
21945
21946     USE_WINDOWS_SSPI=1
21947
21948     curl_sspi_msg="enabled"
21949   else
21950     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21951 $as_echo "no" >&6; }
21952   fi
21953 else
21954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21955 $as_echo "no" >&6; }
21956 fi
21957
21958 OPT_DARWINSSL=no
21959
21960 # Check whether --with-darwinssl was given.
21961 if test "${with_darwinssl+set}" = set; then :
21962   withval=$with_darwinssl; OPT_DARWINSSL=$withval
21963 fi
21964
21965
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable iOS/Mac OS X native SSL/TLS" >&5
21967 $as_echo_n "checking whether to enable iOS/Mac OS X native SSL/TLS... " >&6; }
21968 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
21969   if test "x$OPT_DARWINSSL" != "xno" &&
21970      test -d "/System/Library/Frameworks/Security.framework"; then
21971     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21972 $as_echo "yes" >&6; }
21973
21974 $as_echo "#define USE_DARWINSSL 1" >>confdefs.h
21975
21976     USE_DARWINSSL=1
21977
21978     curl_ssl_msg="enabled (iOS/Mac OS X-native)"
21979     DARWINSSL_ENABLED=1
21980     LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
21981   else
21982     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21983 $as_echo "no" >&6; }
21984   fi
21985 else
21986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21987 $as_echo "no" >&6; }
21988 fi
21989
21990
21991 OPT_SSL=off
21992 ca="no"
21993
21994 # Check whether --with-ssl was given.
21995 if test "${with_ssl+set}" = set; then :
21996   withval=$with_ssl; OPT_SSL=$withval
21997 fi
21998
21999
22000 if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then
22001     CLEANLDFLAGS="$LDFLAGS"
22002   CLEANCPPFLAGS="$CPPFLAGS"
22003   CLEANLIBS="$LIBS"
22004
22005     case $host in
22006     *-*-msys* | *-*-mingw*)
22007       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
22008 $as_echo_n "checking for gdi32... " >&6; }
22009       my_ac_save_LIBS=$LIBS
22010       LIBS="-lgdi32 $LIBS"
22011       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22012 /* end confdefs.h.  */
22013 #include <windef.h>
22014                    #include <wingdi.h>
22015 int main (void)
22016 {
22017 GdiFlush();
22018  ;
22019  return 0;
22020 }
22021 _ACEOF
22022 if ac_fn_c_try_link "$LINENO"; then :
22023                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22024 $as_echo "yes" >&6; }
22025 else
22026                       LIBS=$my_ac_save_LIBS
22027                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22028 $as_echo "no" >&6; }
22029
22030 fi
22031 rm -f core conftest.err conftest.$ac_objext \
22032     conftest$ac_exeext conftest.$ac_ext
22033       ;;
22034   esac
22035
22036   case "$OPT_SSL" in
22037   yes)
22038         if test x$cross_compiling != xyes; then
22039             PKGTEST="yes"
22040     fi
22041     PREFIX_OPENSSL=/usr/local/ssl
22042     LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22043     ;;
22044   off)
22045         if test x$cross_compiling != xyes; then
22046             PKGTEST="yes"
22047     fi
22048     PREFIX_OPENSSL=
22049     ;;
22050   *)
22051         PKGTEST="no"
22052     PREFIX_OPENSSL=$OPT_SSL
22053
22054                 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
22055     { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
22056 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
22057     if test -f "$OPENSSL_PCDIR/openssl.pc"; then
22058       PKGTEST="yes"
22059     fi
22060
22061             LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22062     if test "$PREFIX_OPENSSL" != "/usr" ; then
22063       SSL_LDFLAGS="-L$LIB_OPENSSL"
22064       SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
22065     fi
22066     SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
22067     ;;
22068   esac
22069
22070   if test "$PKGTEST" = "yes"; then
22071
22072
22073     if test -n "$PKG_CONFIG"; then
22074       PKGCONFIG="$PKG_CONFIG"
22075     else
22076       if test -n "$ac_tool_prefix"; then
22077   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22078 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22080 $as_echo_n "checking for $ac_word... " >&6; }
22081 if ${ac_cv_path_PKGCONFIG+:} false; then :
22082   $as_echo_n "(cached) " >&6
22083 else
22084   case $PKGCONFIG in
22085   [\\/]* | ?:[\\/]*)
22086   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22087   ;;
22088   *)
22089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22090 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22091 for as_dir in $as_dummy
22092 do
22093   IFS=$as_save_IFS
22094   test -z "$as_dir" && as_dir=.
22095     for ac_exec_ext in '' $ac_executable_extensions; do
22096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22097     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22099     break 2
22100   fi
22101 done
22102   done
22103 IFS=$as_save_IFS
22104
22105   ;;
22106 esac
22107 fi
22108 PKGCONFIG=$ac_cv_path_PKGCONFIG
22109 if test -n "$PKGCONFIG"; then
22110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22111 $as_echo "$PKGCONFIG" >&6; }
22112 else
22113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22114 $as_echo "no" >&6; }
22115 fi
22116
22117
22118 fi
22119 if test -z "$ac_cv_path_PKGCONFIG"; then
22120   ac_pt_PKGCONFIG=$PKGCONFIG
22121   # Extract the first word of "pkg-config", so it can be a program name with args.
22122 set dummy pkg-config; ac_word=$2
22123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22124 $as_echo_n "checking for $ac_word... " >&6; }
22125 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22126   $as_echo_n "(cached) " >&6
22127 else
22128   case $ac_pt_PKGCONFIG in
22129   [\\/]* | ?:[\\/]*)
22130   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22131   ;;
22132   *)
22133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22134 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22135 for as_dir in $as_dummy
22136 do
22137   IFS=$as_save_IFS
22138   test -z "$as_dir" && as_dir=.
22139     for ac_exec_ext in '' $ac_executable_extensions; do
22140   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22141     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22143     break 2
22144   fi
22145 done
22146   done
22147 IFS=$as_save_IFS
22148
22149   ;;
22150 esac
22151 fi
22152 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22153 if test -n "$ac_pt_PKGCONFIG"; then
22154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22155 $as_echo "$ac_pt_PKGCONFIG" >&6; }
22156 else
22157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22158 $as_echo "no" >&6; }
22159 fi
22160
22161   if test "x$ac_pt_PKGCONFIG" = x; then
22162     PKGCONFIG="no"
22163   else
22164     case $cross_compiling:$ac_tool_warned in
22165 yes:)
22166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22168 ac_tool_warned=yes ;;
22169 esac
22170     PKGCONFIG=$ac_pt_PKGCONFIG
22171   fi
22172 else
22173   PKGCONFIG="$ac_cv_path_PKGCONFIG"
22174 fi
22175
22176     fi
22177
22178     if test "x$PKGCONFIG" != "xno"; then
22179       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
22180 $as_echo_n "checking for openssl options with pkg-config... " >&6; }
22181             itexists=`
22182     if test -n "$OPENSSL_PCDIR"; then
22183       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22184       export PKG_CONFIG_LIBDIR
22185     fi
22186          $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
22187
22188       if test -z "$itexists"; then
22189                         PKGCONFIG="no"
22190         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22191 $as_echo "no" >&6; }
22192       else
22193         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22194 $as_echo "found" >&6; }
22195       fi
22196     fi
22197
22198
22199     if test "$PKGCONFIG" != "no" ; then
22200       SSL_LIBS=`
22201     if test -n "$OPENSSL_PCDIR"; then
22202       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22203       export PKG_CONFIG_LIBDIR
22204     fi
22205          $PKGCONFIG --libs-only-l openssl 2>/dev/null`
22206
22207       SSL_LDFLAGS=`
22208     if test -n "$OPENSSL_PCDIR"; then
22209       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22210       export PKG_CONFIG_LIBDIR
22211     fi
22212          $PKGCONFIG --libs-only-L openssl 2>/dev/null`
22213
22214       SSL_CPPFLAGS=`
22215     if test -n "$OPENSSL_PCDIR"; then
22216       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22217       export PKG_CONFIG_LIBDIR
22218     fi
22219          $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
22220
22221
22222       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
22223 $as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
22224       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
22225 $as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
22226       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
22227 $as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
22228
22229       LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
22230
22231                                           LIBS="$SSL_LIBS $LIBS"
22232     fi
22233   fi
22234
22235     CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
22236   LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
22237
22238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
22239 $as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
22240 if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
22241   $as_echo_n "(cached) " >&6
22242 else
22243   ac_check_lib_save_LIBS=$LIBS
22244 LIBS="-lcrypto  $LIBS"
22245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22246 /* end confdefs.h.  */
22247
22248
22249 #ifdef __cplusplus
22250 extern "C"
22251 #endif
22252 char HMAC_Update ();
22253 int main (void)
22254 {
22255 return HMAC_Update ();
22256  ;
22257  return 0;
22258 }
22259 _ACEOF
22260 if ac_fn_c_try_link "$LINENO"; then :
22261   ac_cv_lib_crypto_HMAC_Update=yes
22262 else
22263   ac_cv_lib_crypto_HMAC_Update=no
22264 fi
22265 rm -f core conftest.err conftest.$ac_objext \
22266     conftest$ac_exeext conftest.$ac_ext
22267 LIBS=$ac_check_lib_save_LIBS
22268 fi
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
22270 $as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
22271 if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
22272
22273      HAVECRYPTO="yes"
22274      LIBS="-lcrypto $LIBS"
22275
22276 else
22277
22278      LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
22279      CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
22280      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
22281 $as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
22282 if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
22283   $as_echo_n "(cached) " >&6
22284 else
22285   ac_check_lib_save_LIBS=$LIBS
22286 LIBS="-lcrypto  $LIBS"
22287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22288 /* end confdefs.h.  */
22289
22290
22291 #ifdef __cplusplus
22292 extern "C"
22293 #endif
22294 char HMAC_Init_ex ();
22295 int main (void)
22296 {
22297 return HMAC_Init_ex ();
22298  ;
22299  return 0;
22300 }
22301 _ACEOF
22302 if ac_fn_c_try_link "$LINENO"; then :
22303   ac_cv_lib_crypto_HMAC_Init_ex=yes
22304 else
22305   ac_cv_lib_crypto_HMAC_Init_ex=no
22306 fi
22307 rm -f core conftest.err conftest.$ac_objext \
22308     conftest$ac_exeext conftest.$ac_ext
22309 LIBS=$ac_check_lib_save_LIBS
22310 fi
22311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
22312 $as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
22313 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
22314
22315        HAVECRYPTO="yes"
22316        LIBS="-lcrypto $LIBS"
22317 else
22318
22319        LDFLAGS="$CLEANLDFLAGS"
22320        CPPFLAGS="$CLEANCPPFLAGS"
22321        LIBS="$CLEANLIBS"
22322
22323 fi
22324
22325
22326 fi
22327
22328
22329
22330   if test X"$HAVECRYPTO" = X"yes"; then
22331      { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking without -ldl" >&5
22332 $as_echo_n "checking OpenSSL linking without -ldl... " >&6; }
22333      saved_libs=$LIBS
22334      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22335 /* end confdefs.h.  */
22336
22337           #include <openssl/evp.h>
22338
22339 int main (void)
22340 {
22341
22342           SSLeay_add_all_algorithms();
22343
22344  ;
22345  return 0;
22346 }
22347 _ACEOF
22348 if ac_fn_c_try_link "$LINENO"; then :
22349
22350           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22351 $as_echo "yes" >&6; }
22352           LIBS="$saved_libs"
22353
22354 else
22355
22356           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22357 $as_echo "no" >&6; }
22358           { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
22359 $as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
22360           LIBS="-ldl $LIBS"
22361           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22362 /* end confdefs.h.  */
22363
22364             #include <openssl/evp.h>
22365
22366 int main (void)
22367 {
22368
22369             SSLeay_add_all_algorithms();
22370
22371  ;
22372  return 0;
22373 }
22374 _ACEOF
22375 if ac_fn_c_try_link "$LINENO"; then :
22376
22377             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22378 $as_echo "yes" >&6; }
22379             LIBS="$saved_libs -ldl"
22380
22381 else
22382
22383             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22384 $as_echo "no" >&6; }
22385             LIBS="$saved_libs"
22386
22387
22388 fi
22389 rm -f core conftest.err conftest.$ac_objext \
22390     conftest$ac_exeext conftest.$ac_ext
22391
22392
22393
22394 fi
22395 rm -f core conftest.err conftest.$ac_objext \
22396     conftest$ac_exeext conftest.$ac_ext
22397
22398   fi
22399
22400   if test X"$HAVECRYPTO" = X"yes"; then
22401
22402     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22403 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22404 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22405   $as_echo_n "(cached) " >&6
22406 else
22407   ac_check_lib_save_LIBS=$LIBS
22408 LIBS="-lssl  $LIBS"
22409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22410 /* end confdefs.h.  */
22411
22412
22413 #ifdef __cplusplus
22414 extern "C"
22415 #endif
22416 char SSL_connect ();
22417 int main (void)
22418 {
22419 return SSL_connect ();
22420  ;
22421  return 0;
22422 }
22423 _ACEOF
22424 if ac_fn_c_try_link "$LINENO"; then :
22425   ac_cv_lib_ssl_SSL_connect=yes
22426 else
22427   ac_cv_lib_ssl_SSL_connect=no
22428 fi
22429 rm -f core conftest.err conftest.$ac_objext \
22430     conftest$ac_exeext conftest.$ac_ext
22431 LIBS=$ac_check_lib_save_LIBS
22432 fi
22433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22434 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22435 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22436   cat >>confdefs.h <<_ACEOF
22437 #define HAVE_LIBSSL 1
22438 _ACEOF
22439
22440   LIBS="-lssl $LIBS"
22441
22442 fi
22443
22444
22445     if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22446                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
22447 $as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
22448         OLIBS=$LIBS
22449         LIBS="-lRSAglue -lrsaref $LIBS"
22450         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22451 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22452 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22453   $as_echo_n "(cached) " >&6
22454 else
22455   ac_check_lib_save_LIBS=$LIBS
22456 LIBS="-lssl  $LIBS"
22457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22458 /* end confdefs.h.  */
22459
22460
22461 #ifdef __cplusplus
22462 extern "C"
22463 #endif
22464 char SSL_connect ();
22465 int main (void)
22466 {
22467 return SSL_connect ();
22468  ;
22469  return 0;
22470 }
22471 _ACEOF
22472 if ac_fn_c_try_link "$LINENO"; then :
22473   ac_cv_lib_ssl_SSL_connect=yes
22474 else
22475   ac_cv_lib_ssl_SSL_connect=no
22476 fi
22477 rm -f core conftest.err conftest.$ac_objext \
22478     conftest$ac_exeext conftest.$ac_ext
22479 LIBS=$ac_check_lib_save_LIBS
22480 fi
22481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22482 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22483 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22484   cat >>confdefs.h <<_ACEOF
22485 #define HAVE_LIBSSL 1
22486 _ACEOF
22487
22488   LIBS="-lssl $LIBS"
22489
22490 fi
22491
22492         if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22493                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22494 $as_echo "no" >&6; }
22495             LIBS=$OLIBS
22496         else
22497             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22498 $as_echo "yes" >&6; }
22499         fi
22500
22501     else
22502
22503             for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
22504                        openssl/pem.h openssl/ssl.h openssl/err.h
22505 do :
22506   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22507 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22508 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22509   cat >>confdefs.h <<_ACEOF
22510 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22511 _ACEOF
22512  curl_ssl_msg="enabled (OpenSSL)"
22513         OPENSSL_ENABLED=1
22514
22515 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
22516
22517 fi
22518
22519 done
22520
22521
22522       if test $ac_cv_header_openssl_x509_h = no; then
22523                                 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
22524 do :
22525   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22526 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22527 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22528   cat >>confdefs.h <<_ACEOF
22529 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22530 _ACEOF
22531
22532 fi
22533
22534 done
22535
22536
22537         if test $ac_cv_header_x509_h = yes &&
22538            test $ac_cv_header_crypto_h = yes &&
22539            test $ac_cv_header_ssl_h = yes; then
22540                     curl_ssl_msg="enabled (OpenSSL)"
22541           OPENSSL_ENABLED=1
22542         fi
22543       fi
22544     fi
22545
22546     if test X"$OPENSSL_ENABLED" = X"1"; then
22547               for ac_header in openssl/pkcs12.h
22548 do :
22549   ac_fn_c_check_header_mongrel "$LINENO" "openssl/pkcs12.h" "ac_cv_header_openssl_pkcs12_h" "$ac_includes_default"
22550 if test "x$ac_cv_header_openssl_pkcs12_h" = xyes; then :
22551   cat >>confdefs.h <<_ACEOF
22552 #define HAVE_OPENSSL_PKCS12_H 1
22553 _ACEOF
22554
22555 fi
22556
22557 done
22558
22559     else
22560        LIBS="$CLEANLIBS"
22561     fi
22562
22563     if test X"$OPT_SSL" != Xoff &&
22564        test "$OPENSSL_ENABLED" != "1"; then
22565       as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
22566     fi
22567   fi
22568
22569   if test X"$OPENSSL_ENABLED" = X"1"; then
22570             ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init"
22571 if test "x$ac_cv_func_ENGINE_init" = xyes; then :
22572
22573                 for ac_header in openssl/engine.h
22574 do :
22575   ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
22576 if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
22577   cat >>confdefs.h <<_ACEOF
22578 #define HAVE_OPENSSL_ENGINE_H 1
22579 _ACEOF
22580
22581 fi
22582
22583 done
22584
22585                 for ac_func in ENGINE_load_builtin_engines
22586 do :
22587   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22588 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22589 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22590   cat >>confdefs.h <<_ACEOF
22591 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22592 _ACEOF
22593
22594 fi
22595 done
22596
22597
22598 fi
22599
22600
22601
22602     for ac_func in RAND_status \
22603                     RAND_screen \
22604                     RAND_egd \
22605                     ENGINE_cleanup \
22606                     CRYPTO_cleanup_all_ex_data \
22607                     SSL_get_shutdown \
22608                     SSLv2_client_method
22609 do :
22610   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22611 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22612 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22613   cat >>confdefs.h <<_ACEOF
22614 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22615 _ACEOF
22616
22617 fi
22618 done
22619
22620
22621     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
22622 $as_echo_n "checking for BoringSSL... " >&6; }
22623     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22624 /* end confdefs.h.  */
22625
22626
22627                 #include <openssl/base.h>
22628
22629 int main (void)
22630 {
22631
22632                 #ifndef OPENSSL_IS_BORINGSSL
22633                 #error not boringssl
22634                 #endif
22635
22636  ;
22637  return 0;
22638 }
22639
22640 _ACEOF
22641 if ac_fn_c_try_compile "$LINENO"; then :
22642
22643         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22644 $as_echo "yes" >&6; }
22645
22646 cat >>confdefs.h <<_ACEOF
22647 #define HAVE_BORINGSSL 1
22648 _ACEOF
22649
22650         curl_ssl_msg="enabled (BoringSSL)"
22651
22652 else
22653
22654         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22655 $as_echo "no" >&6; }
22656
22657 fi
22658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22659
22660     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
22661 $as_echo_n "checking for libressl... " >&6; }
22662     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22663 /* end confdefs.h.  */
22664
22665
22666 #include <openssl/opensslv.h>
22667
22668 int main (void)
22669 {
22670
22671         int dummy = LIBRESSL_VERSION_NUMBER;
22672
22673  ;
22674  return 0;
22675 }
22676
22677 _ACEOF
22678 if ac_fn_c_try_compile "$LINENO"; then :
22679
22680       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22681 $as_echo "yes" >&6; }
22682
22683 cat >>confdefs.h <<_ACEOF
22684 #define HAVE_LIBRESSL 1
22685 _ACEOF
22686
22687       curl_ssl_msg="enabled (libressl)"
22688
22689 else
22690
22691       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22692 $as_echo "no" >&6; }
22693
22694 fi
22695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22696   fi
22697
22698   if test "$OPENSSL_ENABLED" = "1"; then
22699     if test -n "$LIB_OPENSSL"; then
22700                             if test "x$cross_compiling" != "xyes"; then
22701          LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
22702          export LD_LIBRARY_PATH
22703          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5
22704 $as_echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;}
22705        fi
22706     fi
22707
22708   #
22709
22710   #
22711   tst_api="unknown"
22712   #
22713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
22714 $as_echo_n "checking for OpenSSL headers version... " >&6; }
22715
22716     OLDCPPFLAGS=$CPPFLAGS
22717   # CPPPFLAGS comes from CURL_CPP_P
22718   CPPFLAGS="$CPPPFLAGS"
22719       if test -z "$SED"; then
22720     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
22721   fi
22722   if test -z "$GREP"; then
22723     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
22724   fi
22725
22726   tmp_exp=""
22727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22728 /* end confdefs.h.  */
22729
22730
22731 #   ifdef USE_OPENSSL
22732 #     include <openssl/crypto.h>
22733 #   else
22734 #     include <crypto.h>
22735 #   endif
22736
22737 #ifdef OPENSSL_VERSION_NUMBER
22738 CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
22739 #endif
22740
22741
22742 _ACEOF
22743 if ac_fn_c_try_cpp "$LINENO"; then :
22744
22745     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
22746       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
22747       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
22748       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
22749     if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
22750       tmp_exp=""
22751     fi
22752
22753 fi
22754 rm -f conftest.err conftest.i conftest.$ac_ext
22755   if test -z "$tmp_exp"; then
22756     curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
22757
22758   else
22759     curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
22760     curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
22761
22762   fi
22763       CPPFLAGS=$OLDCPPFLAGS
22764
22765   if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
22766     tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
22767     case "x$tst_verlen" in
22768       x6)
22769         tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22770         tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
22771         tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22772         tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22773         ;;
22774       x11|x10)
22775         tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22776         tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22777         tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
22778         tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22779         ;;
22780       *)
22781         tst_api="unknown"
22782         ;;
22783     esac
22784     case $tst_api in
22785       0x110) tst_show="1.1.0" ;;
22786       0x102) tst_show="1.0.2" ;;
22787       0x101) tst_show="1.0.1" ;;
22788       0x100) tst_show="1.0.0" ;;
22789       0x099) tst_show="0.9.9" ;;
22790       0x098) tst_show="0.9.8" ;;
22791       0x097) tst_show="0.9.7" ;;
22792       0x096) tst_show="0.9.6" ;;
22793       0x095) tst_show="0.9.5" ;;
22794       0x094) tst_show="0.9.4" ;;
22795       0x093) tst_show="0.9.3" ;;
22796       0x092) tst_show="0.9.2" ;;
22797       0x091) tst_show="0.9.1" ;;
22798       *)     tst_show="unknown" ;;
22799     esac
22800     tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
22801   else
22802     tst_show="unknown"
22803   fi
22804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
22805 $as_echo "$tst_show" >&6; }
22806   #
22807   curl_openssl_api_headers=$tst_api
22808
22809
22810   #
22811   tst_api="unknown"
22812   #
22813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
22814 $as_echo_n "checking for OpenSSL library version... " >&6; }
22815   if test "$tst_api" = "unknown"; then
22816     case $host in
22817       *-*-vms*)
22818         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22819 /* end confdefs.h.  */
22820
22821
22822 #define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
22823 #ifdef __STDC__
22824 # include <limits.h>
22825 #else
22826 # include <assert.h>
22827 #endif
22828 #undef SSL_CTX_set_not_resumbl_sess_cb
22829 #ifdef __cplusplus
22830 extern "C"
22831 #endif
22832 char SSL_CTX_set_not_resumbl_sess_cb ();
22833 #if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
22834 choke me
22835 #endif
22836
22837 int main (void)
22838 {
22839 return SSL_CTX_set_not_resumbl_sess_cb ();
22840  ;
22841  return 0;
22842 }
22843
22844 _ACEOF
22845 if ac_fn_c_try_link "$LINENO"; then :
22846
22847           tst_api="0x110"
22848
22849 fi
22850 rm -f core conftest.err conftest.$ac_objext \
22851     conftest$ac_exeext conftest.$ac_ext
22852         ;;
22853       *)
22854         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22855 /* end confdefs.h.  */
22856
22857
22858 #define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
22859 #ifdef __STDC__
22860 # include <limits.h>
22861 #else
22862 # include <assert.h>
22863 #endif
22864 #undef SSL_CTX_set_not_resumable_session_callback
22865 #ifdef __cplusplus
22866 extern "C"
22867 #endif
22868 char SSL_CTX_set_not_resumable_session_callback ();
22869 #if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
22870 choke me
22871 #endif
22872
22873 int main (void)
22874 {
22875 return SSL_CTX_set_not_resumable_session_callback ();
22876  ;
22877  return 0;
22878 }
22879
22880 _ACEOF
22881 if ac_fn_c_try_link "$LINENO"; then :
22882
22883           tst_api="0x110"
22884
22885 fi
22886 rm -f core conftest.err conftest.$ac_objext \
22887     conftest$ac_exeext conftest.$ac_ext
22888         ;;
22889     esac
22890   fi
22891   if test "$tst_api" = "unknown"; then
22892     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22893 /* end confdefs.h.  */
22894
22895
22896 #define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
22897 #ifdef __STDC__
22898 # include <limits.h>
22899 #else
22900 # include <assert.h>
22901 #endif
22902 #undef SSL_CONF_CTX_new
22903 #ifdef __cplusplus
22904 extern "C"
22905 #endif
22906 char SSL_CONF_CTX_new ();
22907 #if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
22908 choke me
22909 #endif
22910
22911 int main (void)
22912 {
22913 return SSL_CONF_CTX_new ();
22914  ;
22915  return 0;
22916 }
22917
22918 _ACEOF
22919 if ac_fn_c_try_link "$LINENO"; then :
22920
22921       tst_api="0x102"
22922
22923 fi
22924 rm -f core conftest.err conftest.$ac_objext \
22925     conftest$ac_exeext conftest.$ac_ext
22926   fi
22927   if test "$tst_api" = "unknown"; then
22928     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22929 /* end confdefs.h.  */
22930
22931
22932 #define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
22933 #ifdef __STDC__
22934 # include <limits.h>
22935 #else
22936 # include <assert.h>
22937 #endif
22938 #undef SSL_renegotiate_abbreviated
22939 #ifdef __cplusplus
22940 extern "C"
22941 #endif
22942 char SSL_renegotiate_abbreviated ();
22943 #if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
22944 choke me
22945 #endif
22946
22947 int main (void)
22948 {
22949 return SSL_renegotiate_abbreviated ();
22950  ;
22951  return 0;
22952 }
22953
22954 _ACEOF
22955 if ac_fn_c_try_link "$LINENO"; then :
22956
22957       tst_api="0x101"
22958
22959 fi
22960 rm -f core conftest.err conftest.$ac_objext \
22961     conftest$ac_exeext conftest.$ac_ext
22962   fi
22963   if test "$tst_api" = "unknown"; then
22964     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22965 /* end confdefs.h.  */
22966
22967
22968 #define OBJ_add_sigid innocuous_OBJ_add_sigid
22969 #ifdef __STDC__
22970 # include <limits.h>
22971 #else
22972 # include <assert.h>
22973 #endif
22974 #undef OBJ_add_sigid
22975 #ifdef __cplusplus
22976 extern "C"
22977 #endif
22978 char OBJ_add_sigid ();
22979 #if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
22980 choke me
22981 #endif
22982
22983 int main (void)
22984 {
22985 return OBJ_add_sigid ();
22986  ;
22987  return 0;
22988 }
22989
22990 _ACEOF
22991 if ac_fn_c_try_link "$LINENO"; then :
22992
22993       tst_api="0x100"
22994
22995 fi
22996 rm -f core conftest.err conftest.$ac_objext \
22997     conftest$ac_exeext conftest.$ac_ext
22998   fi
22999   if test "$tst_api" = "unknown"; then
23000     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23001 /* end confdefs.h.  */
23002
23003
23004 #define ERR_set_mark innocuous_ERR_set_mark
23005 #ifdef __STDC__
23006 # include <limits.h>
23007 #else
23008 # include <assert.h>
23009 #endif
23010 #undef ERR_set_mark
23011 #ifdef __cplusplus
23012 extern "C"
23013 #endif
23014 char ERR_set_mark ();
23015 #if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
23016 choke me
23017 #endif
23018
23019 int main (void)
23020 {
23021 return ERR_set_mark ();
23022  ;
23023  return 0;
23024 }
23025
23026 _ACEOF
23027 if ac_fn_c_try_link "$LINENO"; then :
23028
23029       tst_api="0x098"
23030
23031 fi
23032 rm -f core conftest.err conftest.$ac_objext \
23033     conftest$ac_exeext conftest.$ac_ext
23034   fi
23035   if test "$tst_api" = "unknown"; then
23036     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23037 /* end confdefs.h.  */
23038
23039
23040 #define ERR_peek_last_error innocuous_ERR_peek_last_error
23041 #ifdef __STDC__
23042 # include <limits.h>
23043 #else
23044 # include <assert.h>
23045 #endif
23046 #undef ERR_peek_last_error
23047 #ifdef __cplusplus
23048 extern "C"
23049 #endif
23050 char ERR_peek_last_error ();
23051 #if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
23052 choke me
23053 #endif
23054
23055 int main (void)
23056 {
23057 return ERR_peek_last_error ();
23058  ;
23059  return 0;
23060 }
23061
23062 _ACEOF
23063 if ac_fn_c_try_link "$LINENO"; then :
23064
23065       tst_api="0x097"
23066
23067 fi
23068 rm -f core conftest.err conftest.$ac_objext \
23069     conftest$ac_exeext conftest.$ac_ext
23070   fi
23071   if test "$tst_api" = "unknown"; then
23072     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23073 /* end confdefs.h.  */
23074
23075
23076 #define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
23077 #ifdef __STDC__
23078 # include <limits.h>
23079 #else
23080 # include <assert.h>
23081 #endif
23082 #undef c2i_ASN1_OBJECT
23083 #ifdef __cplusplus
23084 extern "C"
23085 #endif
23086 char c2i_ASN1_OBJECT ();
23087 #if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
23088 choke me
23089 #endif
23090
23091 int main (void)
23092 {
23093 return c2i_ASN1_OBJECT ();
23094  ;
23095  return 0;
23096 }
23097
23098 _ACEOF
23099 if ac_fn_c_try_link "$LINENO"; then :
23100
23101       tst_api="0x096"
23102
23103 fi
23104 rm -f core conftest.err conftest.$ac_objext \
23105     conftest$ac_exeext conftest.$ac_ext
23106   fi
23107   if test "$tst_api" = "unknown"; then
23108     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23109 /* end confdefs.h.  */
23110
23111
23112 #define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
23113 #ifdef __STDC__
23114 # include <limits.h>
23115 #else
23116 # include <assert.h>
23117 #endif
23118 #undef SSL_CTX_set_purpose
23119 #ifdef __cplusplus
23120 extern "C"
23121 #endif
23122 char SSL_CTX_set_purpose ();
23123 #if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
23124 choke me
23125 #endif
23126
23127 int main (void)
23128 {
23129 return SSL_CTX_set_purpose ();
23130  ;
23131  return 0;
23132 }
23133
23134 _ACEOF
23135 if ac_fn_c_try_link "$LINENO"; then :
23136
23137       tst_api="0x095"
23138
23139 fi
23140 rm -f core conftest.err conftest.$ac_objext \
23141     conftest$ac_exeext conftest.$ac_ext
23142   fi
23143   if test "$tst_api" = "unknown"; then
23144     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23145 /* end confdefs.h.  */
23146
23147
23148 #define OBJ_obj2txt innocuous_OBJ_obj2txt
23149 #ifdef __STDC__
23150 # include <limits.h>
23151 #else
23152 # include <assert.h>
23153 #endif
23154 #undef OBJ_obj2txt
23155 #ifdef __cplusplus
23156 extern "C"
23157 #endif
23158 char OBJ_obj2txt ();
23159 #if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
23160 choke me
23161 #endif
23162
23163 int main (void)
23164 {
23165 return OBJ_obj2txt ();
23166  ;
23167  return 0;
23168 }
23169
23170 _ACEOF
23171 if ac_fn_c_try_link "$LINENO"; then :
23172
23173       tst_api="0x094"
23174
23175 fi
23176 rm -f core conftest.err conftest.$ac_objext \
23177     conftest$ac_exeext conftest.$ac_ext
23178   fi
23179   if test "$tst_api" = "unknown"; then
23180     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23181 /* end confdefs.h.  */
23182
23183
23184 #define SSL_get_verify_depth innocuous_SSL_get_verify_depth
23185 #ifdef __STDC__
23186 # include <limits.h>
23187 #else
23188 # include <assert.h>
23189 #endif
23190 #undef SSL_get_verify_depth
23191 #ifdef __cplusplus
23192 extern "C"
23193 #endif
23194 char SSL_get_verify_depth ();
23195 #if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
23196 choke me
23197 #endif
23198
23199 int main (void)
23200 {
23201 return SSL_get_verify_depth ();
23202  ;
23203  return 0;
23204 }
23205
23206 _ACEOF
23207 if ac_fn_c_try_link "$LINENO"; then :
23208
23209       tst_api="0x093"
23210
23211 fi
23212 rm -f core conftest.err conftest.$ac_objext \
23213     conftest$ac_exeext conftest.$ac_ext
23214   fi
23215   if test "$tst_api" = "unknown"; then
23216     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23217 /* end confdefs.h.  */
23218
23219
23220 #define SSL_library_init innocuous_SSL_library_init
23221 #ifdef __STDC__
23222 # include <limits.h>
23223 #else
23224 # include <assert.h>
23225 #endif
23226 #undef SSL_library_init
23227 #ifdef __cplusplus
23228 extern "C"
23229 #endif
23230 char SSL_library_init ();
23231 #if defined __stub_SSL_library_init || defined __stub___SSL_library_init
23232 choke me
23233 #endif
23234
23235 int main (void)
23236 {
23237 return SSL_library_init ();
23238  ;
23239  return 0;
23240 }
23241
23242 _ACEOF
23243 if ac_fn_c_try_link "$LINENO"; then :
23244
23245       tst_api="0x092"
23246
23247 fi
23248 rm -f core conftest.err conftest.$ac_objext \
23249     conftest$ac_exeext conftest.$ac_ext
23250   fi
23251   if test "$tst_api" = "unknown"; then
23252     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23253 /* end confdefs.h.  */
23254
23255
23256 #define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
23257 #ifdef __STDC__
23258 # include <limits.h>
23259 #else
23260 # include <assert.h>
23261 #endif
23262 #undef SSL_CTX_set_cipher_list
23263 #ifdef __cplusplus
23264 extern "C"
23265 #endif
23266 char SSL_CTX_set_cipher_list ();
23267 #if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
23268 choke me
23269 #endif
23270
23271 int main (void)
23272 {
23273 return SSL_CTX_set_cipher_list ();
23274  ;
23275  return 0;
23276 }
23277
23278 _ACEOF
23279 if ac_fn_c_try_link "$LINENO"; then :
23280
23281       tst_api="0x091"
23282
23283 fi
23284 rm -f core conftest.err conftest.$ac_objext \
23285     conftest$ac_exeext conftest.$ac_ext
23286   fi
23287   case $tst_api in
23288     0x110) tst_show="1.1.0" ;;
23289     0x102) tst_show="1.0.2" ;;
23290     0x101) tst_show="1.0.1" ;;
23291     0x100) tst_show="1.0.0" ;;
23292     0x099) tst_show="0.9.9" ;;
23293     0x098) tst_show="0.9.8" ;;
23294     0x097) tst_show="0.9.7" ;;
23295     0x096) tst_show="0.9.6" ;;
23296     0x095) tst_show="0.9.5" ;;
23297     0x094) tst_show="0.9.4" ;;
23298     0x093) tst_show="0.9.3" ;;
23299     0x092) tst_show="0.9.2" ;;
23300     0x091) tst_show="0.9.1" ;;
23301     *)     tst_show="unknown" ;;
23302   esac
23303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23304 $as_echo "$tst_show" >&6; }
23305   #
23306   curl_openssl_api_library=$tst_api
23307
23308   #
23309   tst_match="yes"
23310   #
23311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
23312 $as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
23313   if test "$curl_openssl_api_headers" = "unknown" ||
23314     test "$curl_openssl_api_library" = "unknown"; then
23315     tst_match="fail"
23316     tst_warns="Can not compare OpenSSL headers and library versions."
23317   elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
23318     tst_match="no"
23319     tst_warns="OpenSSL headers and library versions do not match."
23320   fi
23321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
23322 $as_echo "$tst_match" >&6; }
23323   if test "$tst_match" != "yes"; then
23324     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
23325 $as_echo "$as_me: WARNING: $tst_warns" >&2;}
23326   fi
23327
23328   fi
23329
23330 fi
23331
23332
23333 if test X"$OPENSSL_ENABLED" = X"1"; then
23334
23335 # Check whether --with-egd-socket was given.
23336 if test "${with_egd_socket+set}" = set; then :
23337   withval=$with_egd_socket;  EGD_SOCKET="$withval"
23338
23339 fi
23340
23341   if test -n "$EGD_SOCKET" ; then
23342
23343 cat >>confdefs.h <<_ACEOF
23344 #define EGD_SOCKET "$EGD_SOCKET"
23345 _ACEOF
23346
23347   fi
23348
23349
23350 # Check whether --with-random was given.
23351 if test "${with_random+set}" = set; then :
23352   withval=$with_random;  RANDOM_FILE="$withval"
23353 else
23354
23355           if test x$cross_compiling != xyes; then
23356                         as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
23357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
23358 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
23359 if eval \${$as_ac_File+:} false; then :
23360   $as_echo_n "(cached) " >&6
23361 else
23362   test "$cross_compiling" = yes &&
23363   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23364 if test -r ""/dev/urandom""; then
23365   eval "$as_ac_File=yes"
23366 else
23367   eval "$as_ac_File=no"
23368 fi
23369 fi
23370 eval ac_res=\$$as_ac_File
23371                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23372 $as_echo "$ac_res" >&6; }
23373 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
23374    RANDOM_FILE="/dev/urandom"
23375 fi
23376
23377           else
23378             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
23379 $as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
23380           fi
23381
23382
23383 fi
23384
23385   if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
23386
23387
23388 cat >>confdefs.h <<_ACEOF
23389 #define RANDOM_FILE "$RANDOM_FILE"
23390 _ACEOF
23391
23392   fi
23393 fi
23394
23395 if test "$OPENSSL_ENABLED" = "1"; then
23396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
23397 $as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
23398 if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
23399   $as_echo_n "(cached) " >&6
23400 else
23401   ac_check_lib_save_LIBS=$LIBS
23402 LIBS="-lcrypto  $LIBS"
23403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23404 /* end confdefs.h.  */
23405
23406
23407 #ifdef __cplusplus
23408 extern "C"
23409 #endif
23410 char SRP_Calc_client_key ();
23411 int main (void)
23412 {
23413 return SRP_Calc_client_key ();
23414  ;
23415  return 0;
23416 }
23417 _ACEOF
23418 if ac_fn_c_try_link "$LINENO"; then :
23419   ac_cv_lib_crypto_SRP_Calc_client_key=yes
23420 else
23421   ac_cv_lib_crypto_SRP_Calc_client_key=no
23422 fi
23423 rm -f core conftest.err conftest.$ac_objext \
23424     conftest$ac_exeext conftest.$ac_ext
23425 LIBS=$ac_check_lib_save_LIBS
23426 fi
23427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
23428 $as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
23429 if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
23430
23431
23432 $as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
23433
23434      HAVE_OPENSSL_SRP=1
23435
23436
23437 fi
23438
23439 fi
23440
23441
23442 OPT_GNUTLS=no
23443
23444
23445 # Check whether --with-gnutls was given.
23446 if test "${with_gnutls+set}" = set; then :
23447   withval=$with_gnutls; OPT_GNUTLS=$withval
23448 fi
23449
23450
23451 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23452
23453   if test X"$OPT_GNUTLS" != Xno; then
23454
23455     addld=""
23456     addlib=""
23457     gtlslib=""
23458     version=""
23459     addcflags=""
23460
23461     if test "x$OPT_GNUTLS" = "xyes"; then
23462
23463     if test -n "$PKG_CONFIG"; then
23464       PKGCONFIG="$PKG_CONFIG"
23465     else
23466       if test -n "$ac_tool_prefix"; then
23467   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23468 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23470 $as_echo_n "checking for $ac_word... " >&6; }
23471 if ${ac_cv_path_PKGCONFIG+:} false; then :
23472   $as_echo_n "(cached) " >&6
23473 else
23474   case $PKGCONFIG in
23475   [\\/]* | ?:[\\/]*)
23476   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23477   ;;
23478   *)
23479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23480 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23481 for as_dir in $as_dummy
23482 do
23483   IFS=$as_save_IFS
23484   test -z "$as_dir" && as_dir=.
23485     for ac_exec_ext in '' $ac_executable_extensions; do
23486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23487     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23489     break 2
23490   fi
23491 done
23492   done
23493 IFS=$as_save_IFS
23494
23495   ;;
23496 esac
23497 fi
23498 PKGCONFIG=$ac_cv_path_PKGCONFIG
23499 if test -n "$PKGCONFIG"; then
23500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23501 $as_echo "$PKGCONFIG" >&6; }
23502 else
23503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23504 $as_echo "no" >&6; }
23505 fi
23506
23507
23508 fi
23509 if test -z "$ac_cv_path_PKGCONFIG"; then
23510   ac_pt_PKGCONFIG=$PKGCONFIG
23511   # Extract the first word of "pkg-config", so it can be a program name with args.
23512 set dummy pkg-config; ac_word=$2
23513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23514 $as_echo_n "checking for $ac_word... " >&6; }
23515 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23516   $as_echo_n "(cached) " >&6
23517 else
23518   case $ac_pt_PKGCONFIG in
23519   [\\/]* | ?:[\\/]*)
23520   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23521   ;;
23522   *)
23523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23524 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23525 for as_dir in $as_dummy
23526 do
23527   IFS=$as_save_IFS
23528   test -z "$as_dir" && as_dir=.
23529     for ac_exec_ext in '' $ac_executable_extensions; do
23530   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23531     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23533     break 2
23534   fi
23535 done
23536   done
23537 IFS=$as_save_IFS
23538
23539   ;;
23540 esac
23541 fi
23542 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23543 if test -n "$ac_pt_PKGCONFIG"; then
23544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23545 $as_echo "$ac_pt_PKGCONFIG" >&6; }
23546 else
23547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23548 $as_echo "no" >&6; }
23549 fi
23550
23551   if test "x$ac_pt_PKGCONFIG" = x; then
23552     PKGCONFIG="no"
23553   else
23554     case $cross_compiling:$ac_tool_warned in
23555 yes:)
23556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23558 ac_tool_warned=yes ;;
23559 esac
23560     PKGCONFIG=$ac_pt_PKGCONFIG
23561   fi
23562 else
23563   PKGCONFIG="$ac_cv_path_PKGCONFIG"
23564 fi
23565
23566     fi
23567
23568     if test "x$PKGCONFIG" != "xno"; then
23569       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
23570 $as_echo_n "checking for gnutls options with pkg-config... " >&6; }
23571             itexists=`
23572     if test -n ""; then
23573       PKG_CONFIG_LIBDIR=""
23574       export PKG_CONFIG_LIBDIR
23575     fi
23576          $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
23577
23578       if test -z "$itexists"; then
23579                         PKGCONFIG="no"
23580         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23581 $as_echo "no" >&6; }
23582       else
23583         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23584 $as_echo "found" >&6; }
23585       fi
23586     fi
23587
23588
23589       if test "$PKGCONFIG" != "no" ; then
23590         addlib=`$PKGCONFIG --libs-only-l gnutls`
23591         addld=`$PKGCONFIG --libs-only-L gnutls`
23592         addcflags=`$PKGCONFIG --cflags-only-I gnutls`
23593         version=`$PKGCONFIG --modversion gnutls`
23594         gtlslib=`echo $addld | $SED -e 's/-L//'`
23595       else
23596                         check=`libgnutls-config --version 2>/dev/null`
23597         if test -n "$check"; then
23598           addlib=`libgnutls-config --libs`
23599           addcflags=`libgnutls-config --cflags`
23600           version=`libgnutls-config --version`
23601           gtlslib=`libgnutls-config --prefix`/lib$libsuff
23602         fi
23603       fi
23604     else
23605                   cfg=$OPT_GNUTLS/bin/libgnutls-config
23606       check=`$cfg --version 2>/dev/null`
23607       if test -n "$check"; then
23608         addlib=`$cfg --libs`
23609         addcflags=`$cfg --cflags`
23610         version=`$cfg --version`
23611         gtlslib=`$cfg --prefix`/lib$libsuff
23612       else
23613                 addlib=-lgnutls
23614         addld=-L$OPT_GNUTLS/lib$libsuff
23615         addcflags=-I$OPT_GNUTLS/include
23616         version="" # we just don't know
23617         gtlslib=$OPT_GNUTLS/lib$libsuff
23618       fi
23619     fi
23620
23621     if test -z "$version"; then
23622             version="unknown"
23623     fi
23624
23625     if test -n "$addlib"; then
23626
23627       CLEANLIBS="$LIBS"
23628       CLEANCPPFLAGS="$CPPFLAGS"
23629       CLEANLDFLAGS="$LDFLAGS"
23630
23631       LIBS="$addlib $LIBS"
23632       LDFLAGS="$LDFLAGS $addld"
23633       if test "$addcflags" != "-I/usr/include"; then
23634          CPPFLAGS="$CPPFLAGS $addcflags"
23635       fi
23636
23637       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
23638 $as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
23639 if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
23640   $as_echo_n "(cached) " >&6
23641 else
23642   ac_check_lib_save_LIBS=$LIBS
23643 LIBS="-lgnutls  $LIBS"
23644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23645 /* end confdefs.h.  */
23646
23647
23648 #ifdef __cplusplus
23649 extern "C"
23650 #endif
23651 char gnutls_check_version ();
23652 int main (void)
23653 {
23654 return gnutls_check_version ();
23655  ;
23656  return 0;
23657 }
23658 _ACEOF
23659 if ac_fn_c_try_link "$LINENO"; then :
23660   ac_cv_lib_gnutls_gnutls_check_version=yes
23661 else
23662   ac_cv_lib_gnutls_gnutls_check_version=no
23663 fi
23664 rm -f core conftest.err conftest.$ac_objext \
23665     conftest$ac_exeext conftest.$ac_ext
23666 LIBS=$ac_check_lib_save_LIBS
23667 fi
23668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
23669 $as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
23670 if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
23671
23672
23673 $as_echo "#define USE_GNUTLS 1" >>confdefs.h
23674
23675        USE_GNUTLS=1
23676
23677        GNUTLS_ENABLED=1
23678        USE_GNUTLS="yes"
23679        curl_ssl_msg="enabled (GnuTLS)"
23680
23681 else
23682
23683          LIBS="$CLEANLIBS"
23684          CPPFLAGS="$CLEANCPPFLAGS"
23685
23686 fi
23687
23688
23689       if test "x$USE_GNUTLS" = "xyes"; then
23690         { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
23691 $as_echo "$as_me: detected GnuTLS version $version" >&6;}
23692
23693         if test -n "$gtlslib"; then
23694                                                   if test "x$cross_compiling" != "xyes"; then
23695             LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib"
23696             export LD_LIBRARY_PATH
23697             { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to LD_LIBRARY_PATH" >&5
23698 $as_echo "$as_me: Added $gtlslib to LD_LIBRARY_PATH" >&6;}
23699           fi
23700         fi
23701         for ac_func in gnutls_certificate_set_x509_key_file2
23702 do :
23703   ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_x509_key_file2" "ac_cv_func_gnutls_certificate_set_x509_key_file2"
23704 if test "x$ac_cv_func_gnutls_certificate_set_x509_key_file2" = xyes; then :
23705   cat >>confdefs.h <<_ACEOF
23706 #define HAVE_GNUTLS_CERTIFICATE_SET_X509_KEY_FILE2 1
23707 _ACEOF
23708
23709 fi
23710 done
23711
23712       fi
23713
23714     fi
23715
23716   fi
23717 fi
23718
23719
23720 if test "$GNUTLS_ENABLED" = "1"; then
23721   USE_GNUTLS_NETTLE=
23722   # First check if we can detect either crypto library via transitive linking
23723   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
23724 $as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
23725 if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
23726   $as_echo_n "(cached) " >&6
23727 else
23728   ac_check_lib_save_LIBS=$LIBS
23729 LIBS="-lgnutls  $LIBS"
23730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23731 /* end confdefs.h.  */
23732
23733
23734 #ifdef __cplusplus
23735 extern "C"
23736 #endif
23737 char nettle_MD5Init ();
23738 int main (void)
23739 {
23740 return nettle_MD5Init ();
23741  ;
23742  return 0;
23743 }
23744 _ACEOF
23745 if ac_fn_c_try_link "$LINENO"; then :
23746   ac_cv_lib_gnutls_nettle_MD5Init=yes
23747 else
23748   ac_cv_lib_gnutls_nettle_MD5Init=no
23749 fi
23750 rm -f core conftest.err conftest.$ac_objext \
23751     conftest$ac_exeext conftest.$ac_ext
23752 LIBS=$ac_check_lib_save_LIBS
23753 fi
23754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
23755 $as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
23756 if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
23757    USE_GNUTLS_NETTLE=1
23758 fi
23759
23760   if test "$USE_GNUTLS_NETTLE" = ""; then
23761     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
23762 $as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
23763 if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
23764   $as_echo_n "(cached) " >&6
23765 else
23766   ac_check_lib_save_LIBS=$LIBS
23767 LIBS="-lgnutls  $LIBS"
23768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23769 /* end confdefs.h.  */
23770
23771
23772 #ifdef __cplusplus
23773 extern "C"
23774 #endif
23775 char gcry_control ();
23776 int main (void)
23777 {
23778 return gcry_control ();
23779  ;
23780  return 0;
23781 }
23782 _ACEOF
23783 if ac_fn_c_try_link "$LINENO"; then :
23784   ac_cv_lib_gnutls_gcry_control=yes
23785 else
23786   ac_cv_lib_gnutls_gcry_control=no
23787 fi
23788 rm -f core conftest.err conftest.$ac_objext \
23789     conftest$ac_exeext conftest.$ac_ext
23790 LIBS=$ac_check_lib_save_LIBS
23791 fi
23792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
23793 $as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
23794 if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
23795    USE_GNUTLS_NETTLE=0
23796 fi
23797
23798   fi
23799   # If not, try linking directly to both of them to see if they are available
23800   if test "$USE_GNUTLS_NETTLE" = ""; then
23801     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
23802 $as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
23803 if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
23804   $as_echo_n "(cached) " >&6
23805 else
23806   ac_check_lib_save_LIBS=$LIBS
23807 LIBS="-lnettle  $LIBS"
23808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23809 /* end confdefs.h.  */
23810
23811
23812 #ifdef __cplusplus
23813 extern "C"
23814 #endif
23815 char nettle_MD5Init ();
23816 int main (void)
23817 {
23818 return nettle_MD5Init ();
23819  ;
23820  return 0;
23821 }
23822 _ACEOF
23823 if ac_fn_c_try_link "$LINENO"; then :
23824   ac_cv_lib_nettle_nettle_MD5Init=yes
23825 else
23826   ac_cv_lib_nettle_nettle_MD5Init=no
23827 fi
23828 rm -f core conftest.err conftest.$ac_objext \
23829     conftest$ac_exeext conftest.$ac_ext
23830 LIBS=$ac_check_lib_save_LIBS
23831 fi
23832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
23833 $as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
23834 if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
23835    USE_GNUTLS_NETTLE=1
23836 fi
23837
23838   fi
23839   if test "$USE_GNUTLS_NETTLE" = ""; then
23840     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
23841 $as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
23842 if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
23843   $as_echo_n "(cached) " >&6
23844 else
23845   ac_check_lib_save_LIBS=$LIBS
23846 LIBS="-lgcrypt  $LIBS"
23847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23848 /* end confdefs.h.  */
23849
23850
23851 #ifdef __cplusplus
23852 extern "C"
23853 #endif
23854 char gcry_control ();
23855 int main (void)
23856 {
23857 return gcry_control ();
23858  ;
23859  return 0;
23860 }
23861 _ACEOF
23862 if ac_fn_c_try_link "$LINENO"; then :
23863   ac_cv_lib_gcrypt_gcry_control=yes
23864 else
23865   ac_cv_lib_gcrypt_gcry_control=no
23866 fi
23867 rm -f core conftest.err conftest.$ac_objext \
23868     conftest$ac_exeext conftest.$ac_ext
23869 LIBS=$ac_check_lib_save_LIBS
23870 fi
23871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
23872 $as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
23873 if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
23874    USE_GNUTLS_NETTLE=0
23875 fi
23876
23877   fi
23878   if test "$USE_GNUTLS_NETTLE" = ""; then
23879     as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
23880   fi
23881   if test "$USE_GNUTLS_NETTLE" = "1"; then
23882
23883 $as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
23884
23885     USE_GNUTLS_NETTLE=1
23886
23887     LIBS="-lnettle $LIBS"
23888   else
23889     LIBS="-lgcrypt $LIBS"
23890   fi
23891 fi
23892
23893 if test "$GNUTLS_ENABLED" = "1"; then
23894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
23895 $as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
23896 if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
23897   $as_echo_n "(cached) " >&6
23898 else
23899   ac_check_lib_save_LIBS=$LIBS
23900 LIBS="-lgnutls  $LIBS"
23901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23902 /* end confdefs.h.  */
23903
23904
23905 #ifdef __cplusplus
23906 extern "C"
23907 #endif
23908 char gnutls_srp_verifier ();
23909 int main (void)
23910 {
23911 return gnutls_srp_verifier ();
23912  ;
23913  return 0;
23914 }
23915 _ACEOF
23916 if ac_fn_c_try_link "$LINENO"; then :
23917   ac_cv_lib_gnutls_gnutls_srp_verifier=yes
23918 else
23919   ac_cv_lib_gnutls_gnutls_srp_verifier=no
23920 fi
23921 rm -f core conftest.err conftest.$ac_objext \
23922     conftest$ac_exeext conftest.$ac_ext
23923 LIBS=$ac_check_lib_save_LIBS
23924 fi
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
23926 $as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
23927 if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
23928
23929
23930 $as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
23931
23932      HAVE_GNUTLS_SRP=1
23933
23934
23935 fi
23936
23937 fi
23938
23939
23940 OPT_POLARSSL=no
23941
23942 _cppflags=$CPPFLAGS
23943 _ldflags=$LDFLAGS
23944
23945 # Check whether --with-polarssl was given.
23946 if test "${with_polarssl+set}" = set; then :
23947   withval=$with_polarssl; OPT_POLARSSL=$withval
23948 fi
23949
23950
23951 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23952
23953   if test X"$OPT_POLARSSL" != Xno; then
23954
23955     if test "$OPT_POLARSSL" = "yes"; then
23956       OPT_POLARSSL=""
23957     fi
23958
23959     if test -z "$OPT_POLARSSL" ; then
23960
23961       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
23962 $as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
23963 if ${ac_cv_lib_polarssl_havege_init+:} false; then :
23964   $as_echo_n "(cached) " >&6
23965 else
23966   ac_check_lib_save_LIBS=$LIBS
23967 LIBS="-lpolarssl  $LIBS"
23968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23969 /* end confdefs.h.  */
23970
23971
23972 #ifdef __cplusplus
23973 extern "C"
23974 #endif
23975 char havege_init ();
23976 int main (void)
23977 {
23978 return havege_init ();
23979  ;
23980  return 0;
23981 }
23982 _ACEOF
23983 if ac_fn_c_try_link "$LINENO"; then :
23984   ac_cv_lib_polarssl_havege_init=yes
23985 else
23986   ac_cv_lib_polarssl_havege_init=no
23987 fi
23988 rm -f core conftest.err conftest.$ac_objext \
23989     conftest$ac_exeext conftest.$ac_ext
23990 LIBS=$ac_check_lib_save_LIBS
23991 fi
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
23993 $as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
23994 if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
23995
23996
23997 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
23998
23999          USE_POLARSSL=1
24000
24001          POLARSSL_ENABLED=1
24002          USE_POLARSSL="yes"
24003          curl_ssl_msg="enabled (PolarSSL)"
24004
24005 fi
24006
24007     fi
24008
24009     addld=""
24010     addlib=""
24011     addcflags=""
24012     polarssllib=""
24013
24014     if test "x$USE_POLARSSL" != "xyes"; then
24015             addld=-L$OPT_POLARSSL/lib$libsuff
24016       addcflags=-I$OPT_POLARSSL/include
24017       polarssllib=$OPT_POLARSSL/lib$libsuff
24018
24019       LDFLAGS="$LDFLAGS $addld"
24020       if test "$addcflags" != "-I/usr/include"; then
24021          CPPFLAGS="$CPPFLAGS $addcflags"
24022       fi
24023
24024       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
24025 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
24026 if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
24027   $as_echo_n "(cached) " >&6
24028 else
24029   ac_check_lib_save_LIBS=$LIBS
24030 LIBS="-lpolarssl  $LIBS"
24031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24032 /* end confdefs.h.  */
24033
24034
24035 #ifdef __cplusplus
24036 extern "C"
24037 #endif
24038 char ssl_init ();
24039 int main (void)
24040 {
24041 return ssl_init ();
24042  ;
24043  return 0;
24044 }
24045 _ACEOF
24046 if ac_fn_c_try_link "$LINENO"; then :
24047   ac_cv_lib_polarssl_ssl_init=yes
24048 else
24049   ac_cv_lib_polarssl_ssl_init=no
24050 fi
24051 rm -f core conftest.err conftest.$ac_objext \
24052     conftest$ac_exeext conftest.$ac_ext
24053 LIBS=$ac_check_lib_save_LIBS
24054 fi
24055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
24056 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
24057 if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
24058
24059
24060 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
24061
24062        USE_POLARSSL=1
24063
24064        POLARSSL_ENABLED=1
24065        USE_POLARSSL="yes"
24066        curl_ssl_msg="enabled (PolarSSL)"
24067
24068 else
24069
24070          CPPFLAGS=$_cppflags
24071          LDFLAGS=$_ldflags
24072
24073 fi
24074
24075     fi
24076
24077     if test "x$USE_POLARSSL" = "xyes"; then
24078       { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
24079 $as_echo "$as_me: detected PolarSSL" >&6;}
24080
24081       LIBS="-lpolarssl $LIBS"
24082
24083       if test -n "$polarssllib"; then
24084                                         if test "x$cross_compiling" != "xyes"; then
24085           LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$polarssllib"
24086           export LD_LIBRARY_PATH
24087           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to LD_LIBRARY_PATH" >&5
24088 $as_echo "$as_me: Added $polarssllib to LD_LIBRARY_PATH" >&6;}
24089         fi
24090       fi
24091     fi
24092
24093   fi
24094 fi
24095
24096
24097 OPT_MBEDTLS=no
24098
24099 _cppflags=$CPPFLAGS
24100 _ldflags=$LDFLAGS
24101
24102 # Check whether --with-mbedtls was given.
24103 if test "${with_mbedtls+set}" = set; then :
24104   withval=$with_mbedtls; OPT_MBEDTLS=$withval
24105 fi
24106
24107
24108 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
24109
24110   if test X"$OPT_MBEDTLS" != Xno; then
24111
24112     if test "$OPT_MBEDTLS" = "yes"; then
24113       OPT_MBEDTLS=""
24114     fi
24115
24116     if test -z "$OPT_MBEDTLS" ; then
24117
24118       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
24119 $as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
24120 if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then :
24121   $as_echo_n "(cached) " >&6
24122 else
24123   ac_check_lib_save_LIBS=$LIBS
24124 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24126 /* end confdefs.h.  */
24127
24128
24129 #ifdef __cplusplus
24130 extern "C"
24131 #endif
24132 char mbedtls_havege_init ();
24133 int main (void)
24134 {
24135 return mbedtls_havege_init ();
24136  ;
24137  return 0;
24138 }
24139 _ACEOF
24140 if ac_fn_c_try_link "$LINENO"; then :
24141   ac_cv_lib_mbedtls_mbedtls_havege_init=yes
24142 else
24143   ac_cv_lib_mbedtls_mbedtls_havege_init=no
24144 fi
24145 rm -f core conftest.err conftest.$ac_objext \
24146     conftest$ac_exeext conftest.$ac_ext
24147 LIBS=$ac_check_lib_save_LIBS
24148 fi
24149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
24150 $as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
24151 if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then :
24152
24153
24154 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24155
24156          USE_MBEDTLS=1
24157
24158          MBEDTLS_ENABLED=1
24159          USE_MBEDTLS="yes"
24160          curl_ssl_msg="enabled (mbedTLS)"
24161
24162 fi
24163
24164     fi
24165
24166     addld=""
24167     addlib=""
24168     addcflags=""
24169     mbedtlslib=""
24170
24171     if test "x$USE_MBEDTLS" != "xyes"; then
24172             addld=-L$OPT_MBEDTLS/lib$libsuff
24173       addcflags=-I$OPT_MBEDTLS/include
24174       mbedtlslib=$OPT_MBEDTLS/lib$libsuff
24175
24176       LDFLAGS="$LDFLAGS $addld"
24177       if test "$addcflags" != "-I/usr/include"; then
24178          CPPFLAGS="$CPPFLAGS $addcflags"
24179       fi
24180
24181       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
24182 $as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
24183 if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
24184   $as_echo_n "(cached) " >&6
24185 else
24186   ac_check_lib_save_LIBS=$LIBS
24187 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24189 /* end confdefs.h.  */
24190
24191
24192 #ifdef __cplusplus
24193 extern "C"
24194 #endif
24195 char mbedtls_ssl_init ();
24196 int main (void)
24197 {
24198 return mbedtls_ssl_init ();
24199  ;
24200  return 0;
24201 }
24202 _ACEOF
24203 if ac_fn_c_try_link "$LINENO"; then :
24204   ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
24205 else
24206   ac_cv_lib_mbedtls_mbedtls_ssl_init=no
24207 fi
24208 rm -f core conftest.err conftest.$ac_objext \
24209     conftest$ac_exeext conftest.$ac_ext
24210 LIBS=$ac_check_lib_save_LIBS
24211 fi
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
24213 $as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
24214 if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
24215
24216
24217 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24218
24219        USE_MBEDTLS=1
24220
24221        MBEDTLS_ENABLED=1
24222        USE_MBEDTLS="yes"
24223        curl_ssl_msg="enabled (mbedTLS)"
24224
24225 else
24226
24227          CPPFLAGS=$_cppflags
24228          LDFLAGS=$_ldflags
24229
24230 fi
24231
24232     fi
24233
24234     if test "x$USE_MBEDTLS" = "xyes"; then
24235       { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
24236 $as_echo "$as_me: detected mbedTLS" >&6;}
24237
24238       LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24239
24240       if test -n "$mbedtlslib"; then
24241                                         if test "x$cross_compiling" != "xyes"; then
24242           LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mbedtlslib"
24243           export LD_LIBRARY_PATH
24244           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to LD_LIBRARY_PATH" >&5
24245 $as_echo "$as_me: Added $mbedtlslib to LD_LIBRARY_PATH" >&6;}
24246         fi
24247       fi
24248     fi
24249
24250   fi
24251 fi
24252
24253
24254 OPT_CYASSL=no
24255
24256 _cppflags=$CPPFLAGS
24257 _ldflags=$LDFLAGS
24258
24259 # Check whether --with-cyassl was given.
24260 if test "${with_cyassl+set}" = set; then :
24261   withval=$with_cyassl; OPT_CYASSL=$withval
24262 fi
24263
24264
24265 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
24266
24267   if test X"$OPT_CYASSL" != Xno; then
24268
24269     if test "$OPT_CYASSL" = "yes"; then
24270       OPT_CYASSL=""
24271     fi
24272
24273
24274     cyassllibname=cyassl
24275
24276     if test -z "$OPT_CYASSL" ; then
24277
24278       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24279 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24280 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24281   $as_echo_n "(cached) " >&6
24282 else
24283   ac_check_lib_save_LIBS=$LIBS
24284 LIBS="-lcyassl  $LIBS"
24285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24286 /* end confdefs.h.  */
24287
24288
24289 #ifdef __cplusplus
24290 extern "C"
24291 #endif
24292 char CyaSSL_Init ();
24293 int main (void)
24294 {
24295 return CyaSSL_Init ();
24296  ;
24297  return 0;
24298 }
24299 _ACEOF
24300 if ac_fn_c_try_link "$LINENO"; then :
24301   ac_cv_lib_cyassl_CyaSSL_Init=yes
24302 else
24303   ac_cv_lib_cyassl_CyaSSL_Init=no
24304 fi
24305 rm -f core conftest.err conftest.$ac_objext \
24306     conftest$ac_exeext conftest.$ac_ext
24307 LIBS=$ac_check_lib_save_LIBS
24308 fi
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24310 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24311 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24312
24313
24314 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24315
24316          USE_CYASSL=1
24317
24318          CYASSL_ENABLED=1
24319          USE_CYASSL="yes"
24320          curl_ssl_msg="enabled (CyaSSL)"
24321
24322 fi
24323
24324     fi
24325
24326     addld=""
24327     addlib=""
24328     addcflags=""
24329     cyassllib=""
24330
24331     if test "x$USE_CYASSL" != "xyes"; then
24332             addld=-L$OPT_CYASSL/lib$libsuff
24333       addcflags=-I$OPT_CYASSL/include
24334       cyassllib=$OPT_CYASSL/lib$libsuff
24335
24336       LDFLAGS="$LDFLAGS $addld"
24337       if test "$addcflags" != "-I/usr/include"; then
24338          CPPFLAGS="$CPPFLAGS $addcflags"
24339       fi
24340
24341       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24342 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24343 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24344   $as_echo_n "(cached) " >&6
24345 else
24346   ac_check_lib_save_LIBS=$LIBS
24347 LIBS="-lcyassl  $LIBS"
24348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24349 /* end confdefs.h.  */
24350
24351
24352 #ifdef __cplusplus
24353 extern "C"
24354 #endif
24355 char CyaSSL_Init ();
24356 int main (void)
24357 {
24358 return CyaSSL_Init ();
24359  ;
24360  return 0;
24361 }
24362 _ACEOF
24363 if ac_fn_c_try_link "$LINENO"; then :
24364   ac_cv_lib_cyassl_CyaSSL_Init=yes
24365 else
24366   ac_cv_lib_cyassl_CyaSSL_Init=no
24367 fi
24368 rm -f core conftest.err conftest.$ac_objext \
24369     conftest$ac_exeext conftest.$ac_ext
24370 LIBS=$ac_check_lib_save_LIBS
24371 fi
24372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24373 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24374 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24375
24376
24377 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24378
24379        USE_CYASSL=1
24380
24381        CYASSL_ENABLED=1
24382        USE_CYASSL="yes"
24383        curl_ssl_msg="enabled (CyaSSL)"
24384
24385 else
24386
24387          CPPFLAGS=$_cppflags
24388          LDFLAGS=$_ldflags
24389          cyassllib=""
24390
24391 fi
24392
24393     fi
24394
24395     addld=""
24396     addlib=""
24397     addcflags=""
24398
24399     if test "x$USE_CYASSL" != "xyes"; then
24400             addld=-L$OPT_CYASSL/lib$libsuff
24401       addcflags=-I$OPT_CYASSL/include
24402       cyassllib=$OPT_CYASSL/lib$libsuff
24403
24404       LDFLAGS="$LDFLAGS $addld"
24405       if test "$addcflags" != "-I/usr/include"; then
24406          CPPFLAGS="$CPPFLAGS $addcflags"
24407       fi
24408
24409       cyassllibname=wolfssl
24410       my_ac_save_LIBS="$LIBS"
24411       LIBS="-l$cyassllibname -lm $LIBS"
24412
24413       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5
24414 $as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; }
24415       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24416 /* end confdefs.h.  */
24417
24418
24419 /* These aren't needed for detection and confuse WolfSSL.
24420    They are set up properly later if it is detected.  */
24421 #undef SIZEOF_LONG
24422 #undef SIZEOF_LONG_LONG
24423 #include <cyassl/ssl.h>
24424
24425 int main (void)
24426 {
24427
24428           return CyaSSL_Init();
24429
24430  ;
24431  return 0;
24432 }
24433
24434 _ACEOF
24435 if ac_fn_c_try_link "$LINENO"; then :
24436
24437          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24438 $as_echo "yes" >&6; }
24439
24440 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24441
24442          USE_CYASSL=1
24443
24444          CYASSL_ENABLED=1
24445          USE_CYASSL="yes"
24446          curl_ssl_msg="enabled (WolfSSL)"
24447
24448 else
24449
24450          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24451 $as_echo "no" >&6; }
24452          CPPFLAGS=$_cppflags
24453          LDFLAGS=$_ldflags
24454          cyassllib=""
24455
24456 fi
24457 rm -f core conftest.err conftest.$ac_objext \
24458     conftest$ac_exeext conftest.$ac_ext
24459       LIBS="$my_ac_save_LIBS"
24460     fi
24461
24462     if test "x$USE_CYASSL" = "xyes"; then
24463       { $as_echo "$as_me:${as_lineno-$LINENO}: detected $cyassllibname" >&5
24464 $as_echo "$as_me: detected $cyassllibname" >&6;}
24465
24466             # The cast to long int works around a bug in the HP C Compiler
24467 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24468 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24469 # This bug is HP SR number 8606223364.
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
24471 $as_echo_n "checking size of long long... " >&6; }
24472 if ${ac_cv_sizeof_long_long+:} false; then :
24473   $as_echo_n "(cached) " >&6
24474 else
24475   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
24476
24477 else
24478   if test "$ac_cv_type_long_long" = yes; then
24479      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24481 as_fn_error 77 "cannot compute sizeof (long long)
24482 See \`config.log' for more details" "$LINENO" 5; }
24483    else
24484      ac_cv_sizeof_long_long=0
24485    fi
24486 fi
24487
24488 fi
24489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24490 $as_echo "$ac_cv_sizeof_long_long" >&6; }
24491
24492
24493
24494 cat >>confdefs.h <<_ACEOF
24495 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24496 _ACEOF
24497
24498
24499
24500             for ac_header in cyassl/options.h
24501 do :
24502   ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default"
24503 if test "x$ac_cv_header_cyassl_options_h" = xyes; then :
24504   cat >>confdefs.h <<_ACEOF
24505 #define HAVE_CYASSL_OPTIONS_H 1
24506 _ACEOF
24507
24508 fi
24509
24510 done
24511
24512
24513             for ac_header in cyassl/error-ssl.h
24514 do :
24515   ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
24516 if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
24517   cat >>confdefs.h <<_ACEOF
24518 #define HAVE_CYASSL_ERROR_SSL_H 1
24519 _ACEOF
24520
24521 fi
24522
24523 done
24524
24525
24526       LIBS="-l$cyassllibname -lm $LIBS"
24527
24528       if test "x$cyassllibname" = "xwolfssl"; then
24529                         for ac_func in wolfSSLv3_client_method \
24530                        wolfSSL_get_peer_certificate
24531 do :
24532   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24533 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24534 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24535   cat >>confdefs.h <<_ACEOF
24536 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24537 _ACEOF
24538
24539 fi
24540 done
24541
24542       else
24543                 for ac_func in CyaSSL_get_peer_certificate
24544 do :
24545   ac_fn_c_check_func "$LINENO" "CyaSSL_get_peer_certificate" "ac_cv_func_CyaSSL_get_peer_certificate"
24546 if test "x$ac_cv_func_CyaSSL_get_peer_certificate" = xyes; then :
24547   cat >>confdefs.h <<_ACEOF
24548 #define HAVE_CYASSL_GET_PEER_CERTIFICATE 1
24549 _ACEOF
24550
24551 fi
24552 done
24553
24554       fi
24555
24556       if test -n "$cyassllib"; then
24557                                         if test "x$cross_compiling" != "xyes"; then
24558           LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$cyassllib"
24559           export LD_LIBRARY_PATH
24560           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to LD_LIBRARY_PATH" >&5
24561 $as_echo "$as_me: Added $cyassllib to LD_LIBRARY_PATH" >&6;}
24562         fi
24563       fi
24564
24565     fi
24566
24567   fi
24568 fi
24569
24570
24571 OPT_NSS=no
24572
24573
24574 # Check whether --with-nss was given.
24575 if test "${with_nss+set}" = set; then :
24576   withval=$with_nss; OPT_NSS=$withval
24577 fi
24578
24579
24580 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
24581
24582   if test X"$OPT_NSS" != Xno; then
24583
24584     addld=""
24585     addlib=""
24586     addcflags=""
24587     nssprefix=""
24588     version=""
24589
24590     if test "x$OPT_NSS" = "xyes"; then
24591
24592
24593     if test -n "$PKG_CONFIG"; then
24594       PKGCONFIG="$PKG_CONFIG"
24595     else
24596       if test -n "$ac_tool_prefix"; then
24597   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24598 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24600 $as_echo_n "checking for $ac_word... " >&6; }
24601 if ${ac_cv_path_PKGCONFIG+:} false; then :
24602   $as_echo_n "(cached) " >&6
24603 else
24604   case $PKGCONFIG in
24605   [\\/]* | ?:[\\/]*)
24606   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24607   ;;
24608   *)
24609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24610 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24611 for as_dir in $as_dummy
24612 do
24613   IFS=$as_save_IFS
24614   test -z "$as_dir" && as_dir=.
24615     for ac_exec_ext in '' $ac_executable_extensions; do
24616   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24617     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24619     break 2
24620   fi
24621 done
24622   done
24623 IFS=$as_save_IFS
24624
24625   ;;
24626 esac
24627 fi
24628 PKGCONFIG=$ac_cv_path_PKGCONFIG
24629 if test -n "$PKGCONFIG"; then
24630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24631 $as_echo "$PKGCONFIG" >&6; }
24632 else
24633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24634 $as_echo "no" >&6; }
24635 fi
24636
24637
24638 fi
24639 if test -z "$ac_cv_path_PKGCONFIG"; then
24640   ac_pt_PKGCONFIG=$PKGCONFIG
24641   # Extract the first word of "pkg-config", so it can be a program name with args.
24642 set dummy pkg-config; ac_word=$2
24643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24644 $as_echo_n "checking for $ac_word... " >&6; }
24645 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24646   $as_echo_n "(cached) " >&6
24647 else
24648   case $ac_pt_PKGCONFIG in
24649   [\\/]* | ?:[\\/]*)
24650   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24651   ;;
24652   *)
24653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24654 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24655 for as_dir in $as_dummy
24656 do
24657   IFS=$as_save_IFS
24658   test -z "$as_dir" && as_dir=.
24659     for ac_exec_ext in '' $ac_executable_extensions; do
24660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24661     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24663     break 2
24664   fi
24665 done
24666   done
24667 IFS=$as_save_IFS
24668
24669   ;;
24670 esac
24671 fi
24672 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24673 if test -n "$ac_pt_PKGCONFIG"; then
24674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24675 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24676 else
24677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24678 $as_echo "no" >&6; }
24679 fi
24680
24681   if test "x$ac_pt_PKGCONFIG" = x; then
24682     PKGCONFIG="no"
24683   else
24684     case $cross_compiling:$ac_tool_warned in
24685 yes:)
24686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24688 ac_tool_warned=yes ;;
24689 esac
24690     PKGCONFIG=$ac_pt_PKGCONFIG
24691   fi
24692 else
24693   PKGCONFIG="$ac_cv_path_PKGCONFIG"
24694 fi
24695
24696     fi
24697
24698     if test "x$PKGCONFIG" != "xno"; then
24699       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
24700 $as_echo_n "checking for nss options with pkg-config... " >&6; }
24701             itexists=`
24702     if test -n ""; then
24703       PKG_CONFIG_LIBDIR=""
24704       export PKG_CONFIG_LIBDIR
24705     fi
24706          $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
24707
24708       if test -z "$itexists"; then
24709                         PKGCONFIG="no"
24710         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24711 $as_echo "no" >&6; }
24712       else
24713         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24714 $as_echo "found" >&6; }
24715       fi
24716     fi
24717
24718
24719       if test "$PKGCONFIG" != "no" ; then
24720         addlib=`$PKGCONFIG --libs nss`
24721         addcflags=`$PKGCONFIG --cflags nss`
24722         version=`$PKGCONFIG --modversion nss`
24723         nssprefix=`$PKGCONFIG --variable=prefix nss`
24724       else
24725
24726         check=`nss-config --version 2>/dev/null`
24727         if test -n "$check"; then
24728           addlib=`nss-config --libs`
24729           addcflags=`nss-config --cflags`
24730           version=`nss-config --version`
24731           nssprefix=`nss-config --prefix`
24732         else
24733           addlib="-lnss3"
24734           addcflags=""
24735           version="unknown"
24736         fi
24737       fi
24738     else
24739       NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
24740       if test -f "$NSS_PCDIR/nss.pc"; then
24741
24742     if test -n "$PKG_CONFIG"; then
24743       PKGCONFIG="$PKG_CONFIG"
24744     else
24745       if test -n "$ac_tool_prefix"; then
24746   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24747 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24749 $as_echo_n "checking for $ac_word... " >&6; }
24750 if ${ac_cv_path_PKGCONFIG+:} false; then :
24751   $as_echo_n "(cached) " >&6
24752 else
24753   case $PKGCONFIG in
24754   [\\/]* | ?:[\\/]*)
24755   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24756   ;;
24757   *)
24758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24759 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24760 for as_dir in $as_dummy
24761 do
24762   IFS=$as_save_IFS
24763   test -z "$as_dir" && as_dir=.
24764     for ac_exec_ext in '' $ac_executable_extensions; do
24765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24766     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24768     break 2
24769   fi
24770 done
24771   done
24772 IFS=$as_save_IFS
24773
24774   ;;
24775 esac
24776 fi
24777 PKGCONFIG=$ac_cv_path_PKGCONFIG
24778 if test -n "$PKGCONFIG"; then
24779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24780 $as_echo "$PKGCONFIG" >&6; }
24781 else
24782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24783 $as_echo "no" >&6; }
24784 fi
24785
24786
24787 fi
24788 if test -z "$ac_cv_path_PKGCONFIG"; then
24789   ac_pt_PKGCONFIG=$PKGCONFIG
24790   # Extract the first word of "pkg-config", so it can be a program name with args.
24791 set dummy pkg-config; ac_word=$2
24792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24793 $as_echo_n "checking for $ac_word... " >&6; }
24794 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24795   $as_echo_n "(cached) " >&6
24796 else
24797   case $ac_pt_PKGCONFIG in
24798   [\\/]* | ?:[\\/]*)
24799   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24800   ;;
24801   *)
24802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24803 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24804 for as_dir in $as_dummy
24805 do
24806   IFS=$as_save_IFS
24807   test -z "$as_dir" && as_dir=.
24808     for ac_exec_ext in '' $ac_executable_extensions; do
24809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24810     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24812     break 2
24813   fi
24814 done
24815   done
24816 IFS=$as_save_IFS
24817
24818   ;;
24819 esac
24820 fi
24821 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24822 if test -n "$ac_pt_PKGCONFIG"; then
24823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24824 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24825 else
24826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24827 $as_echo "no" >&6; }
24828 fi
24829
24830   if test "x$ac_pt_PKGCONFIG" = x; then
24831     PKGCONFIG="no"
24832   else
24833     case $cross_compiling:$ac_tool_warned in
24834 yes:)
24835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24837 ac_tool_warned=yes ;;
24838 esac
24839     PKGCONFIG=$ac_pt_PKGCONFIG
24840   fi
24841 else
24842   PKGCONFIG="$ac_cv_path_PKGCONFIG"
24843 fi
24844
24845     fi
24846
24847     if test "x$PKGCONFIG" != "xno"; then
24848       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
24849 $as_echo_n "checking for nss options with pkg-config... " >&6; }
24850             itexists=`
24851     if test -n "$NSS_PCDIR"; then
24852       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24853       export PKG_CONFIG_LIBDIR
24854     fi
24855          $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
24856
24857       if test -z "$itexists"; then
24858                         PKGCONFIG="no"
24859         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24860 $as_echo "no" >&6; }
24861       else
24862         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24863 $as_echo "found" >&6; }
24864       fi
24865     fi
24866
24867         if test "$PKGCONFIG" != "no" ; then
24868           addld=`
24869     if test -n "$NSS_PCDIR"; then
24870       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24871       export PKG_CONFIG_LIBDIR
24872     fi
24873  $PKGCONFIG --libs-only-L nss`
24874           addlib=`
24875     if test -n "$NSS_PCDIR"; then
24876       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24877       export PKG_CONFIG_LIBDIR
24878     fi
24879  $PKGCONFIG --libs-only-l nss`
24880           addcflags=`
24881     if test -n "$NSS_PCDIR"; then
24882       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24883       export PKG_CONFIG_LIBDIR
24884     fi
24885  $PKGCONFIG --cflags nss`
24886           version=`
24887     if test -n "$NSS_PCDIR"; then
24888       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24889       export PKG_CONFIG_LIBDIR
24890     fi
24891  $PKGCONFIG --modversion nss`
24892           nssprefix=`
24893     if test -n "$NSS_PCDIR"; then
24894       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24895       export PKG_CONFIG_LIBDIR
24896     fi
24897  $PKGCONFIG --variable=prefix nss`
24898         fi
24899       fi
24900     fi
24901
24902     if test -z "$addlib"; then
24903       # Without pkg-config, we'll kludge in some defaults
24904       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
24905 $as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
24906       addld="-L$OPT_NSS/lib"
24907       addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
24908       addcflags="-I$OPT_NSS/include"
24909       version="unknown"
24910       nssprefix=$OPT_NSS
24911     fi
24912
24913     CLEANLDFLAGS="$LDFLAGS"
24914     CLEANLIBS="$LIBS"
24915     CLEANCPPFLAGS="$CPPFLAGS"
24916
24917     LDFLAGS="$addld $LDFLAGS"
24918     LIBS="$addlib $LIBS"
24919     if test "$addcflags" != "-I/usr/include"; then
24920        CPPFLAGS="$CPPFLAGS $addcflags"
24921     fi
24922
24923         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
24924 $as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
24925 if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
24926   $as_echo_n "(cached) " >&6
24927 else
24928   ac_check_lib_save_LIBS=$LIBS
24929 LIBS="-lnss3  $LIBS"
24930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24931 /* end confdefs.h.  */
24932
24933
24934 #ifdef __cplusplus
24935 extern "C"
24936 #endif
24937 char SSL_VersionRangeSet ();
24938 int main (void)
24939 {
24940 return SSL_VersionRangeSet ();
24941  ;
24942  return 0;
24943 }
24944 _ACEOF
24945 if ac_fn_c_try_link "$LINENO"; then :
24946   ac_cv_lib_nss3_SSL_VersionRangeSet=yes
24947 else
24948   ac_cv_lib_nss3_SSL_VersionRangeSet=no
24949 fi
24950 rm -f core conftest.err conftest.$ac_objext \
24951     conftest$ac_exeext conftest.$ac_ext
24952 LIBS=$ac_check_lib_save_LIBS
24953 fi
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
24955 $as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
24956 if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
24957
24958
24959 $as_echo "#define USE_NSS 1" >>confdefs.h
24960
24961      USE_NSS=1
24962
24963      USE_NSS="yes"
24964      NSS_ENABLED=1
24965      curl_ssl_msg="enabled (NSS)"
24966
24967 else
24968
24969        LDFLAGS="$CLEANLDFLAGS"
24970        LIBS="$CLEANLIBS"
24971        CPPFLAGS="$CLEANCPPFLAGS"
24972
24973 fi
24974
24975
24976     if test "x$USE_NSS" = "xyes"; then
24977       { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
24978 $as_echo "$as_me: detected NSS version $version" >&6;}
24979
24980             NSS_LIBS=$addlib
24981
24982
24983                               if test "x$cross_compiling" != "xyes"; then
24984         LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff"
24985         export LD_LIBRARY_PATH
24986         { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
24987 $as_echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
24988       fi
24989
24990     fi
24991   fi
24992 fi
24993 OPT_AXTLS=off
24994
24995
24996 # Check whether --with-axtls was given.
24997 if test "${with_axtls+set}" = set; then :
24998   withval=$with_axtls; OPT_AXTLS=$withval
24999 fi
25000
25001
25002 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
25003   if test X"$OPT_AXTLS" != Xno; then
25004         CLEANLDFLAGS="$LDFLAGS"
25005     CLEANCPPFLAGS="$CPPFLAGS"
25006     CLEANLIBS="$LIBS"
25007
25008     case "$OPT_AXTLS" in
25009     yes)
25010             PREFIX_AXTLS=/usr/local
25011       LIB_AXTLS="$PREFIX_AXTLS/lib"
25012       LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25013       CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25014       ;;
25015     off)
25016             PREFIX_AXTLS=
25017       ;;
25018     *)
25019             PREFIX_AXTLS=$OPT_AXTLS
25020       LIB_AXTLS="$PREFIX_AXTLS/lib"
25021       LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25022       CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25023       ;;
25024     esac
25025
25026     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5
25027 $as_echo_n "checking for ssl_version in -laxtls... " >&6; }
25028 if ${ac_cv_lib_axtls_ssl_version+:} false; then :
25029   $as_echo_n "(cached) " >&6
25030 else
25031   ac_check_lib_save_LIBS=$LIBS
25032 LIBS="-laxtls  $LIBS"
25033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25034 /* end confdefs.h.  */
25035
25036
25037 #ifdef __cplusplus
25038 extern "C"
25039 #endif
25040 char ssl_version ();
25041 int main (void)
25042 {
25043 return ssl_version ();
25044  ;
25045  return 0;
25046 }
25047 _ACEOF
25048 if ac_fn_c_try_link "$LINENO"; then :
25049   ac_cv_lib_axtls_ssl_version=yes
25050 else
25051   ac_cv_lib_axtls_ssl_version=no
25052 fi
25053 rm -f core conftest.err conftest.$ac_objext \
25054     conftest$ac_exeext conftest.$ac_ext
25055 LIBS=$ac_check_lib_save_LIBS
25056 fi
25057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5
25058 $as_echo "$ac_cv_lib_axtls_ssl_version" >&6; }
25059 if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then :
25060
25061       LIBS="-laxtls $LIBS"
25062
25063 $as_echo "#define USE_AXTLS 1" >>confdefs.h
25064
25065       USE_AXTLS=1
25066
25067       AXTLS_ENABLED=1
25068       USE_AXTLS="yes"
25069       curl_ssl_msg="enabled (axTLS)"
25070
25071       if test "x$cross_compiling" != "xyes"; then
25072         LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_AXTLS"
25073         export LD_LIBRARY_PATH
25074         { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&5
25075 $as_echo "$as_me: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&6;}
25076       fi
25077
25078 else
25079
25080       LDFLAGS="$CLEANLDFLAGS"
25081       CPPFLAGS="$CLEANCPPFLAGS"
25082       LIBS="$CLEANLIBS"
25083
25084 fi
25085
25086   fi
25087 fi
25088
25089 if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$MBEDTLS_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" = "x"; then
25090   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
25091 $as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
25092   { $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
25093 $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;}
25094 else
25095   # SSL is enabled, genericly
25096
25097   SSL_ENABLED="1"
25098 fi
25099
25100
25101
25102
25103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
25104 $as_echo_n "checking default CA cert bundle/path... " >&6; }
25105
25106
25107 # Check whether --with-ca-bundle was given.
25108 if test "${with_ca_bundle+set}" = set; then :
25109   withval=$with_ca_bundle;
25110     want_ca="$withval"
25111     if test "x$want_ca" = "xyes"; then
25112       as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
25113     fi
25114
25115 else
25116    want_ca="unset"
25117 fi
25118
25119
25120 # Check whether --with-ca-path was given.
25121 if test "${with_ca_path+set}" = set; then :
25122   withval=$with_ca_path;
25123     want_capath="$withval"
25124     if test "x$want_capath" = "xyes"; then
25125       as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
25126     fi
25127
25128 else
25129    want_capath="unset"
25130 fi
25131
25132
25133   ca_warning="   (warning: certs not found)"
25134   capath_warning="   (warning: certs not found)"
25135   check_capath=""
25136
25137   if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
25138           "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25139         ca="$want_ca"
25140     capath="$want_capath"
25141   elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
25142         ca="$want_ca"
25143     capath="no"
25144   elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25145         if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
25146       as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5
25147     fi
25148     capath="$want_capath"
25149     ca="no"
25150   else
25151             ca="no"
25152     capath="no"
25153     if test "x$cross_compiling" != "xyes"; then
25154                   if test "x$want_ca" = "xunset"; then
25155                                 if test "x$prefix" != xNONE; then
25156           cac="${prefix}/share/curl/curl-ca-bundle.crt"
25157         else
25158           cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25159         fi
25160
25161         for a in /etc/ssl/certs/ca-certificates.crt \
25162                  /etc/pki/tls/certs/ca-bundle.crt \
25163                  /usr/share/ssl/certs/ca-bundle.crt \
25164                  /usr/local/share/certs/ca-root.crt \
25165                  /etc/ssl/cert.pem \
25166                  "$cac"; do
25167           if test -f "$a"; then
25168             ca="$a"
25169             break
25170           fi
25171         done
25172       fi
25173       if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
25174               "x$OPENSSL_ENABLED" = "x1"; then
25175         check_capath="/etc/ssl/certs/"
25176       fi
25177     else
25178             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
25179 $as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
25180     fi
25181   fi
25182
25183   if test "x$ca" = "xno" || test -f "$ca"; then
25184     ca_warning=""
25185   fi
25186
25187   if test "x$capath" != "xno"; then
25188     check_capath="$capath"
25189   fi
25190
25191   if test ! -z "$check_capath"; then
25192     for a in "$check_capath"; do
25193       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
25194         if test "x$capath" = "xno"; then
25195           capath="$a"
25196         fi
25197         capath_warning=""
25198         break
25199       fi
25200     done
25201   fi
25202
25203   if test "x$capath" = "xno"; then
25204     capath_warning=""
25205   fi
25206
25207   if test "x$ca" != "xno"; then
25208     CURL_CA_BUNDLE='"'$ca'"'
25209
25210 cat >>confdefs.h <<_ACEOF
25211 #define CURL_CA_BUNDLE "$ca"
25212 _ACEOF
25213
25214
25215     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
25216 $as_echo "$ca" >&6; }
25217   fi
25218   if test "x$capath" != "xno"; then
25219     CURL_CA_PATH="\"$capath\""
25220
25221 cat >>confdefs.h <<_ACEOF
25222 #define CURL_CA_PATH "$capath"
25223 _ACEOF
25224
25225     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
25226 $as_echo "$capath (capath)" >&6; }
25227   fi
25228   if test "x$ca" = "xno" && test "x$capath" = "xno"; then
25229     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25230 $as_echo "no" >&6; }
25231   fi
25232
25233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
25234 $as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; }
25235
25236 # Check whether --with-ca-fallback was given.
25237 if test "${with_ca_fallback+set}" = set; then :
25238   withval=$with_ca_fallback;
25239     if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
25240       as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
25241     fi
25242
25243 else
25244    with_ca_fallback="no"
25245 fi
25246
25247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
25248 $as_echo "$with_ca_fallback" >&6; }
25249   if test "x$with_ca_fallback" = "xyes"; then
25250     if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
25251       as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
25252     fi
25253
25254 cat >>confdefs.h <<_ACEOF
25255 #define CURL_CA_FALLBACK 1
25256 _ACEOF
25257
25258   fi
25259
25260
25261
25262
25263 # Check whether --with-libpsl was given.
25264 if test "${with_libpsl+set}" = set; then :
25265   withval=$with_libpsl; with_libpsl=$withval
25266 else
25267   with_libpsl=yes
25268 fi
25269
25270 if test $with_libpsl != "no"; then
25271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
25272 $as_echo_n "checking for library containing psl_builtin... " >&6; }
25273 if ${ac_cv_search_psl_builtin+:} false; then :
25274   $as_echo_n "(cached) " >&6
25275 else
25276   ac_func_search_save_LIBS=$LIBS
25277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25278 /* end confdefs.h.  */
25279
25280
25281 #ifdef __cplusplus
25282 extern "C"
25283 #endif
25284 char psl_builtin ();
25285 int main (void)
25286 {
25287 return psl_builtin ();
25288  ;
25289  return 0;
25290 }
25291 _ACEOF
25292 for ac_lib in '' psl; do
25293   if test -z "$ac_lib"; then
25294     ac_res="none required"
25295   else
25296     ac_res=-l$ac_lib
25297     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25298   fi
25299   if ac_fn_c_try_link "$LINENO"; then :
25300   ac_cv_search_psl_builtin=$ac_res
25301 fi
25302 rm -f core conftest.err conftest.$ac_objext \
25303     conftest$ac_exeext
25304   if ${ac_cv_search_psl_builtin+:} false; then :
25305   break
25306 fi
25307 done
25308 if ${ac_cv_search_psl_builtin+:} false; then :
25309
25310 else
25311   ac_cv_search_psl_builtin=no
25312 fi
25313 rm conftest.$ac_ext
25314 LIBS=$ac_func_search_save_LIBS
25315 fi
25316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
25317 $as_echo "$ac_cv_search_psl_builtin" >&6; }
25318 ac_res=$ac_cv_search_psl_builtin
25319 if test "$ac_res" != no; then :
25320   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25321   curl_psl_msg="yes";
25322
25323 $as_echo "#define USE_LIBPSL 1" >>confdefs.h
25324
25325
25326 else
25327   curl_psl_msg="no      (libpsl not found)";
25328      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
25329 $as_echo "$as_me: WARNING: libpsl was not found" >&2;}
25330
25331
25332 fi
25333
25334 fi
25335  if test "$curl_psl_msg" = "yes"; then
25336   USE_LIBPSL_TRUE=
25337   USE_LIBPSL_FALSE='#'
25338 else
25339   USE_LIBPSL_TRUE='#'
25340   USE_LIBPSL_FALSE=
25341 fi
25342
25343
25344
25345 OPT_LIBMETALINK=no
25346
25347
25348 # Check whether --with-libmetalink was given.
25349 if test "${with_libmetalink+set}" = set; then :
25350   withval=$with_libmetalink; OPT_LIBMETALINK=$withval
25351 fi
25352
25353
25354 if test X"$OPT_LIBMETALINK" != Xno; then
25355
25356   addld=""
25357   addlib=""
25358   addcflags=""
25359   version=""
25360   libmetalinklib=""
25361
25362   PKGTEST="no"
25363   if test "x$OPT_LIBMETALINK" = "xyes"; then
25364         PKGTEST="yes"
25365
25366     if test -n "$PKG_CONFIG"; then
25367       PKGCONFIG="$PKG_CONFIG"
25368     else
25369       if test -n "$ac_tool_prefix"; then
25370   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25371 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25373 $as_echo_n "checking for $ac_word... " >&6; }
25374 if ${ac_cv_path_PKGCONFIG+:} false; then :
25375   $as_echo_n "(cached) " >&6
25376 else
25377   case $PKGCONFIG in
25378   [\\/]* | ?:[\\/]*)
25379   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25380   ;;
25381   *)
25382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25383 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25384 for as_dir in $as_dummy
25385 do
25386   IFS=$as_save_IFS
25387   test -z "$as_dir" && as_dir=.
25388     for ac_exec_ext in '' $ac_executable_extensions; do
25389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25390     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25392     break 2
25393   fi
25394 done
25395   done
25396 IFS=$as_save_IFS
25397
25398   ;;
25399 esac
25400 fi
25401 PKGCONFIG=$ac_cv_path_PKGCONFIG
25402 if test -n "$PKGCONFIG"; then
25403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25404 $as_echo "$PKGCONFIG" >&6; }
25405 else
25406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25407 $as_echo "no" >&6; }
25408 fi
25409
25410
25411 fi
25412 if test -z "$ac_cv_path_PKGCONFIG"; then
25413   ac_pt_PKGCONFIG=$PKGCONFIG
25414   # Extract the first word of "pkg-config", so it can be a program name with args.
25415 set dummy pkg-config; ac_word=$2
25416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25417 $as_echo_n "checking for $ac_word... " >&6; }
25418 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25419   $as_echo_n "(cached) " >&6
25420 else
25421   case $ac_pt_PKGCONFIG in
25422   [\\/]* | ?:[\\/]*)
25423   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25424   ;;
25425   *)
25426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25427 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25428 for as_dir in $as_dummy
25429 do
25430   IFS=$as_save_IFS
25431   test -z "$as_dir" && as_dir=.
25432     for ac_exec_ext in '' $ac_executable_extensions; do
25433   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25434     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25436     break 2
25437   fi
25438 done
25439   done
25440 IFS=$as_save_IFS
25441
25442   ;;
25443 esac
25444 fi
25445 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25446 if test -n "$ac_pt_PKGCONFIG"; then
25447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25448 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25449 else
25450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25451 $as_echo "no" >&6; }
25452 fi
25453
25454   if test "x$ac_pt_PKGCONFIG" = x; then
25455     PKGCONFIG="no"
25456   else
25457     case $cross_compiling:$ac_tool_warned in
25458 yes:)
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25461 ac_tool_warned=yes ;;
25462 esac
25463     PKGCONFIG=$ac_pt_PKGCONFIG
25464   fi
25465 else
25466   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25467 fi
25468
25469     fi
25470
25471     if test "x$PKGCONFIG" != "xno"; then
25472       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25473 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25474             itexists=`
25475     if test -n ""; then
25476       PKG_CONFIG_LIBDIR=""
25477       export PKG_CONFIG_LIBDIR
25478     fi
25479          $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25480
25481       if test -z "$itexists"; then
25482                         PKGCONFIG="no"
25483         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25484 $as_echo "no" >&6; }
25485       else
25486         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25487 $as_echo "found" >&6; }
25488       fi
25489     fi
25490
25491   else
25492         LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
25493     { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
25494 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
25495     if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
25496       PKGTEST="yes"
25497     fi
25498     if test "$PKGTEST" = "yes"; then
25499
25500     if test -n "$PKG_CONFIG"; then
25501       PKGCONFIG="$PKG_CONFIG"
25502     else
25503       if test -n "$ac_tool_prefix"; then
25504   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25505 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25507 $as_echo_n "checking for $ac_word... " >&6; }
25508 if ${ac_cv_path_PKGCONFIG+:} false; then :
25509   $as_echo_n "(cached) " >&6
25510 else
25511   case $PKGCONFIG in
25512   [\\/]* | ?:[\\/]*)
25513   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25514   ;;
25515   *)
25516   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25517 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25518 for as_dir in $as_dummy
25519 do
25520   IFS=$as_save_IFS
25521   test -z "$as_dir" && as_dir=.
25522     for ac_exec_ext in '' $ac_executable_extensions; do
25523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25524     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25526     break 2
25527   fi
25528 done
25529   done
25530 IFS=$as_save_IFS
25531
25532   ;;
25533 esac
25534 fi
25535 PKGCONFIG=$ac_cv_path_PKGCONFIG
25536 if test -n "$PKGCONFIG"; then
25537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25538 $as_echo "$PKGCONFIG" >&6; }
25539 else
25540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25541 $as_echo "no" >&6; }
25542 fi
25543
25544
25545 fi
25546 if test -z "$ac_cv_path_PKGCONFIG"; then
25547   ac_pt_PKGCONFIG=$PKGCONFIG
25548   # Extract the first word of "pkg-config", so it can be a program name with args.
25549 set dummy pkg-config; ac_word=$2
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25551 $as_echo_n "checking for $ac_word... " >&6; }
25552 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25553   $as_echo_n "(cached) " >&6
25554 else
25555   case $ac_pt_PKGCONFIG in
25556   [\\/]* | ?:[\\/]*)
25557   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25558   ;;
25559   *)
25560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25561 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25562 for as_dir in $as_dummy
25563 do
25564   IFS=$as_save_IFS
25565   test -z "$as_dir" && as_dir=.
25566     for ac_exec_ext in '' $ac_executable_extensions; do
25567   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25568     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25570     break 2
25571   fi
25572 done
25573   done
25574 IFS=$as_save_IFS
25575
25576   ;;
25577 esac
25578 fi
25579 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25580 if test -n "$ac_pt_PKGCONFIG"; then
25581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25582 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25583 else
25584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25585 $as_echo "no" >&6; }
25586 fi
25587
25588   if test "x$ac_pt_PKGCONFIG" = x; then
25589     PKGCONFIG="no"
25590   else
25591     case $cross_compiling:$ac_tool_warned in
25592 yes:)
25593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25595 ac_tool_warned=yes ;;
25596 esac
25597     PKGCONFIG=$ac_pt_PKGCONFIG
25598   fi
25599 else
25600   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25601 fi
25602
25603     fi
25604
25605     if test "x$PKGCONFIG" != "xno"; then
25606       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25607 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25608             itexists=`
25609     if test -n "$LIBMETALINK_PCDIR"; then
25610       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25611       export PKG_CONFIG_LIBDIR
25612     fi
25613          $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25614
25615       if test -z "$itexists"; then
25616                         PKGCONFIG="no"
25617         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25618 $as_echo "no" >&6; }
25619       else
25620         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25621 $as_echo "found" >&6; }
25622       fi
25623     fi
25624
25625     fi
25626   fi
25627   if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
25628     addlib=`
25629     if test -n "$LIBMETALINK_PCDIR"; then
25630       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25631       export PKG_CONFIG_LIBDIR
25632     fi
25633        $PKGCONFIG --libs-only-l libmetalink`
25634     addld=`
25635     if test -n "$LIBMETALINK_PCDIR"; then
25636       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25637       export PKG_CONFIG_LIBDIR
25638     fi
25639        $PKGCONFIG --libs-only-L libmetalink`
25640     addcflags=`
25641     if test -n "$LIBMETALINK_PCDIR"; then
25642       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25643       export PKG_CONFIG_LIBDIR
25644     fi
25645        $PKGCONFIG --cflags-only-I libmetalink`
25646     version=`
25647     if test -n "$LIBMETALINK_PCDIR"; then
25648       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25649       export PKG_CONFIG_LIBDIR
25650     fi
25651        $PKGCONFIG --modversion libmetalink`
25652     libmetalinklib=`echo $addld | $SED -e 's/-L//'`
25653   fi
25654   if test -n "$addlib"; then
25655
25656     clean_CPPFLAGS="$CPPFLAGS"
25657     clean_LDFLAGS="$LDFLAGS"
25658     clean_LIBS="$LIBS"
25659     CPPFLAGS="$addcflags $clean_CPPFLAGS"
25660     LDFLAGS="$addld $clean_LDFLAGS"
25661     LIBS="$addlib $clean_LIBS"
25662     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
25663 $as_echo_n "checking if libmetalink is recent enough... " >&6; }
25664     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25665 /* end confdefs.h.  */
25666
25667
25668 #       include <metalink/metalink.h>
25669
25670 int main (void)
25671 {
25672
25673         if(0 != metalink_strerror(0)) /* added in 0.1.0 */
25674           return 1;
25675
25676  ;
25677  return 0;
25678 }
25679
25680 _ACEOF
25681 if ac_fn_c_try_link "$LINENO"; then :
25682
25683       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
25684 $as_echo "yes ($version)" >&6; }
25685       want_metalink="yes"
25686
25687 else
25688
25689       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
25690 $as_echo "no ($version)" >&6; }
25691       { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
25692 $as_echo "$as_me: libmetalink library defective or too old" >&6;}
25693       want_metalink="no"
25694
25695 fi
25696 rm -f core conftest.err conftest.$ac_objext \
25697     conftest$ac_exeext conftest.$ac_ext
25698     CPPFLAGS="$clean_CPPFLAGS"
25699     LDFLAGS="$clean_LDFLAGS"
25700     LIBS="$clean_LIBS"
25701     if test "$want_metalink" = "yes"; then
25702
25703 $as_echo "#define USE_METALINK 1" >>confdefs.h
25704
25705       LIBMETALINK_LIBS=$addlib
25706       LIBMETALINK_LDFLAGS=$addld
25707       LIBMETALINK_CPPFLAGS=$addcflags
25708
25709
25710
25711       curl_mtlnk_msg="enabled"
25712     fi
25713
25714   fi
25715 fi
25716
25717
25718 OPT_LIBSSH2=off
25719
25720 # Check whether --with-libssh2 was given.
25721 if test "${with_libssh2+set}" = set; then :
25722   withval=$with_libssh2; OPT_LIBSSH2=$withval
25723 fi
25724
25725
25726 if test X"$OPT_LIBSSH2" != Xno; then
25727     CLEANLDFLAGS="$LDFLAGS"
25728   CLEANCPPFLAGS="$CPPFLAGS"
25729   CLEANLIBS="$LIBS"
25730
25731   case "$OPT_LIBSSH2" in
25732   yes)
25733
25734     if test -n "$PKG_CONFIG"; then
25735       PKGCONFIG="$PKG_CONFIG"
25736     else
25737       if test -n "$ac_tool_prefix"; then
25738   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25739 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25741 $as_echo_n "checking for $ac_word... " >&6; }
25742 if ${ac_cv_path_PKGCONFIG+:} false; then :
25743   $as_echo_n "(cached) " >&6
25744 else
25745   case $PKGCONFIG in
25746   [\\/]* | ?:[\\/]*)
25747   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25748   ;;
25749   *)
25750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25751 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25752 for as_dir in $as_dummy
25753 do
25754   IFS=$as_save_IFS
25755   test -z "$as_dir" && as_dir=.
25756     for ac_exec_ext in '' $ac_executable_extensions; do
25757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25758     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25760     break 2
25761   fi
25762 done
25763   done
25764 IFS=$as_save_IFS
25765
25766   ;;
25767 esac
25768 fi
25769 PKGCONFIG=$ac_cv_path_PKGCONFIG
25770 if test -n "$PKGCONFIG"; then
25771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25772 $as_echo "$PKGCONFIG" >&6; }
25773 else
25774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25775 $as_echo "no" >&6; }
25776 fi
25777
25778
25779 fi
25780 if test -z "$ac_cv_path_PKGCONFIG"; then
25781   ac_pt_PKGCONFIG=$PKGCONFIG
25782   # Extract the first word of "pkg-config", so it can be a program name with args.
25783 set dummy pkg-config; ac_word=$2
25784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25785 $as_echo_n "checking for $ac_word... " >&6; }
25786 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25787   $as_echo_n "(cached) " >&6
25788 else
25789   case $ac_pt_PKGCONFIG in
25790   [\\/]* | ?:[\\/]*)
25791   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25792   ;;
25793   *)
25794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25795 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25796 for as_dir in $as_dummy
25797 do
25798   IFS=$as_save_IFS
25799   test -z "$as_dir" && as_dir=.
25800     for ac_exec_ext in '' $ac_executable_extensions; do
25801   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25802     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25804     break 2
25805   fi
25806 done
25807   done
25808 IFS=$as_save_IFS
25809
25810   ;;
25811 esac
25812 fi
25813 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25814 if test -n "$ac_pt_PKGCONFIG"; then
25815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25816 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25817 else
25818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25819 $as_echo "no" >&6; }
25820 fi
25821
25822   if test "x$ac_pt_PKGCONFIG" = x; then
25823     PKGCONFIG="no"
25824   else
25825     case $cross_compiling:$ac_tool_warned in
25826 yes:)
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25829 ac_tool_warned=yes ;;
25830 esac
25831     PKGCONFIG=$ac_pt_PKGCONFIG
25832   fi
25833 else
25834   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25835 fi
25836
25837     fi
25838
25839     if test "x$PKGCONFIG" != "xno"; then
25840       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
25841 $as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
25842             itexists=`
25843     if test -n ""; then
25844       PKG_CONFIG_LIBDIR=""
25845       export PKG_CONFIG_LIBDIR
25846     fi
25847          $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
25848
25849       if test -z "$itexists"; then
25850                         PKGCONFIG="no"
25851         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25852 $as_echo "no" >&6; }
25853       else
25854         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25855 $as_echo "found" >&6; }
25856       fi
25857     fi
25858
25859
25860     if test "$PKGCONFIG" != "no" ; then
25861       LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
25862       LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
25863       CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
25864       version=`$PKGCONFIG --modversion libssh2`
25865       DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
25866     fi
25867
25868     ;;
25869   off)
25870         ;;
25871   *)
25872         PREFIX_SSH2=$OPT_LIBSSH2
25873     ;;
25874   esac
25875
25876     if test -n "$PREFIX_SSH2"; then
25877     LIB_SSH2="-lssh2"
25878     LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
25879     CPP_SSH2=-I${PREFIX_SSH2}/include
25880     DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
25881   fi
25882
25883   LDFLAGS="$LDFLAGS $LD_SSH2"
25884   CPPFLAGS="$CPPFLAGS $CPP_SSH2"
25885   LIBS="$LIB_SSH2 $LIBS"
25886
25887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
25888 $as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
25889 if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
25890   $as_echo_n "(cached) " >&6
25891 else
25892   ac_check_lib_save_LIBS=$LIBS
25893 LIBS="-lssh2  $LIBS"
25894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25895 /* end confdefs.h.  */
25896
25897
25898 #ifdef __cplusplus
25899 extern "C"
25900 #endif
25901 char libssh2_channel_open_ex ();
25902 int main (void)
25903 {
25904 return libssh2_channel_open_ex ();
25905  ;
25906  return 0;
25907 }
25908 _ACEOF
25909 if ac_fn_c_try_link "$LINENO"; then :
25910   ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
25911 else
25912   ac_cv_lib_ssh2_libssh2_channel_open_ex=no
25913 fi
25914 rm -f core conftest.err conftest.$ac_objext \
25915     conftest$ac_exeext conftest.$ac_ext
25916 LIBS=$ac_check_lib_save_LIBS
25917 fi
25918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
25919 $as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
25920 if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
25921   cat >>confdefs.h <<_ACEOF
25922 #define HAVE_LIBSSH2 1
25923 _ACEOF
25924
25925   LIBS="-lssh2 $LIBS"
25926
25927 fi
25928
25929
25930   for ac_header in libssh2.h
25931 do :
25932   ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
25933 if test "x$ac_cv_header_libssh2_h" = xyes; then :
25934   cat >>confdefs.h <<_ACEOF
25935 #define HAVE_LIBSSH2_H 1
25936 _ACEOF
25937  curl_ssh_msg="enabled (libSSH2)"
25938     LIBSSH2_ENABLED=1
25939
25940 $as_echo "#define USE_LIBSSH2 1" >>confdefs.h
25941
25942     USE_LIBSSH2=1
25943
25944
25945 fi
25946
25947 done
25948
25949
25950   if test X"$OPT_LIBSSH2" != Xoff &&
25951      test "$LIBSSH2_ENABLED" != "1"; then
25952     as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
25953   fi
25954
25955   if test "$LIBSSH2_ENABLED" = "1"; then
25956     if test -n "$DIR_SSH2"; then
25957
25958        if test "x$cross_compiling" != "xyes"; then
25959          LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
25960          export LD_LIBRARY_PATH
25961          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&5
25962 $as_echo "$as_me: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&6;}
25963        fi
25964     fi
25965   else
25966         LDFLAGS=$CLEANLDFLAGS
25967     CPPFLAGS=$CLEANCPPFLAGS
25968     LIBS=$CLEANLIBS
25969   fi
25970 fi
25971
25972
25973 OPT_LIBRTMP=off
25974
25975 # Check whether --with-librtmp was given.
25976 if test "${with_librtmp+set}" = set; then :
25977   withval=$with_librtmp; OPT_LIBRTMP=$withval
25978 fi
25979
25980
25981 if test X"$OPT_LIBRTMP" != Xno; then
25982     CLEANLDFLAGS="$LDFLAGS"
25983   CLEANCPPFLAGS="$CPPFLAGS"
25984   CLEANLIBS="$LIBS"
25985
25986   case "$OPT_LIBRTMP" in
25987   yes)
25988
25989     if test -n "$PKG_CONFIG"; then
25990       PKGCONFIG="$PKG_CONFIG"
25991     else
25992       if test -n "$ac_tool_prefix"; then
25993   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25994 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25996 $as_echo_n "checking for $ac_word... " >&6; }
25997 if ${ac_cv_path_PKGCONFIG+:} false; then :
25998   $as_echo_n "(cached) " >&6
25999 else
26000   case $PKGCONFIG in
26001   [\\/]* | ?:[\\/]*)
26002   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26003   ;;
26004   *)
26005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26006 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26007 for as_dir in $as_dummy
26008 do
26009   IFS=$as_save_IFS
26010   test -z "$as_dir" && as_dir=.
26011     for ac_exec_ext in '' $ac_executable_extensions; do
26012   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26013     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26015     break 2
26016   fi
26017 done
26018   done
26019 IFS=$as_save_IFS
26020
26021   ;;
26022 esac
26023 fi
26024 PKGCONFIG=$ac_cv_path_PKGCONFIG
26025 if test -n "$PKGCONFIG"; then
26026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26027 $as_echo "$PKGCONFIG" >&6; }
26028 else
26029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26030 $as_echo "no" >&6; }
26031 fi
26032
26033
26034 fi
26035 if test -z "$ac_cv_path_PKGCONFIG"; then
26036   ac_pt_PKGCONFIG=$PKGCONFIG
26037   # Extract the first word of "pkg-config", so it can be a program name with args.
26038 set dummy pkg-config; ac_word=$2
26039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26040 $as_echo_n "checking for $ac_word... " >&6; }
26041 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26042   $as_echo_n "(cached) " >&6
26043 else
26044   case $ac_pt_PKGCONFIG in
26045   [\\/]* | ?:[\\/]*)
26046   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26047   ;;
26048   *)
26049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26050 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26051 for as_dir in $as_dummy
26052 do
26053   IFS=$as_save_IFS
26054   test -z "$as_dir" && as_dir=.
26055     for ac_exec_ext in '' $ac_executable_extensions; do
26056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26057     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26059     break 2
26060   fi
26061 done
26062   done
26063 IFS=$as_save_IFS
26064
26065   ;;
26066 esac
26067 fi
26068 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26069 if test -n "$ac_pt_PKGCONFIG"; then
26070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26071 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26072 else
26073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26074 $as_echo "no" >&6; }
26075 fi
26076
26077   if test "x$ac_pt_PKGCONFIG" = x; then
26078     PKGCONFIG="no"
26079   else
26080     case $cross_compiling:$ac_tool_warned in
26081 yes:)
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26084 ac_tool_warned=yes ;;
26085 esac
26086     PKGCONFIG=$ac_pt_PKGCONFIG
26087   fi
26088 else
26089   PKGCONFIG="$ac_cv_path_PKGCONFIG"
26090 fi
26091
26092     fi
26093
26094     if test "x$PKGCONFIG" != "xno"; then
26095       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
26096 $as_echo_n "checking for librtmp options with pkg-config... " >&6; }
26097             itexists=`
26098     if test -n ""; then
26099       PKG_CONFIG_LIBDIR=""
26100       export PKG_CONFIG_LIBDIR
26101     fi
26102          $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
26103
26104       if test -z "$itexists"; then
26105                         PKGCONFIG="no"
26106         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26107 $as_echo "no" >&6; }
26108       else
26109         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26110 $as_echo "found" >&6; }
26111       fi
26112     fi
26113
26114
26115     if test "$PKGCONFIG" != "no" ; then
26116       LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
26117       LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
26118       CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
26119       version=`$PKGCONFIG --modversion librtmp`
26120       DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
26121     else
26122                   as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
26123     fi
26124
26125     ;;
26126   off)
26127         LIB_RTMP="-lrtmp"
26128     ;;
26129   *)
26130         PREFIX_RTMP=$OPT_LIBRTMP
26131     ;;
26132   esac
26133
26134     if test -n "$PREFIX_RTMP"; then
26135     LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
26136     CPP_RTMP=-I${PREFIX_RTMP}/include
26137     DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
26138   fi
26139
26140   LDFLAGS="$LDFLAGS $LD_RTMP"
26141   CPPFLAGS="$CPPFLAGS $CPP_RTMP"
26142   LIBS="$LIB_RTMP $LIBS"
26143
26144   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
26145 $as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
26146 if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
26147   $as_echo_n "(cached) " >&6
26148 else
26149   ac_check_lib_save_LIBS=$LIBS
26150 LIBS="-lrtmp  $LIBS"
26151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26152 /* end confdefs.h.  */
26153
26154
26155 #ifdef __cplusplus
26156 extern "C"
26157 #endif
26158 char RTMP_Init ();
26159 int main (void)
26160 {
26161 return RTMP_Init ();
26162  ;
26163  return 0;
26164 }
26165 _ACEOF
26166 if ac_fn_c_try_link "$LINENO"; then :
26167   ac_cv_lib_rtmp_RTMP_Init=yes
26168 else
26169   ac_cv_lib_rtmp_RTMP_Init=no
26170 fi
26171 rm -f core conftest.err conftest.$ac_objext \
26172     conftest$ac_exeext conftest.$ac_ext
26173 LIBS=$ac_check_lib_save_LIBS
26174 fi
26175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
26176 $as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
26177 if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
26178
26179      for ac_header in librtmp/rtmp.h
26180 do :
26181   ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
26182 if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
26183   cat >>confdefs.h <<_ACEOF
26184 #define HAVE_LIBRTMP_RTMP_H 1
26185 _ACEOF
26186  curl_rtmp_msg="enabled (librtmp)"
26187         LIBRTMP_ENABLED=1
26188
26189 $as_echo "#define USE_LIBRTMP 1" >>confdefs.h
26190
26191         USE_LIBRTMP=1
26192
26193
26194 fi
26195
26196 done
26197
26198
26199 else
26200         LDFLAGS=$CLEANLDFLAGS
26201       CPPFLAGS=$CLEANCPPFLAGS
26202       LIBS=$CLEANLIBS
26203
26204 fi
26205
26206
26207   if test X"$OPT_LIBRTMP" != Xoff &&
26208      test "$LIBRTMP_ENABLED" != "1"; then
26209     as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
26210   fi
26211
26212 fi
26213
26214
26215 versioned_symbols_flavour=
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
26217 $as_echo_n "checking whether versioned symbols are wanted... " >&6; }
26218 # Check whether --enable-versioned-symbols was given.
26219 if test "${enable_versioned_symbols+set}" = set; then :
26220   enableval=$enable_versioned_symbols;  case "$enableval" in
26221   yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26222 $as_echo "yes" >&6; }
26223     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
26224 $as_echo_n "checking if libraries can be versioned... " >&6; }
26225     GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
26226     if test -z "$GLD"; then
26227         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26228 $as_echo "no" >&6; }
26229         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
26230 $as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
26231     else
26232         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26233 $as_echo "yes" >&6; }
26234         if test "x$OPENSSL_ENABLED" = "x1"; then
26235           versioned_symbols_flavour="OPENSSL_"
26236         elif test "x$GNUTLS_ENABLED" = "x1"; then
26237           versioned_symbols_flavour="GNUTLS_"
26238         elif test "x$NSS_ENABLED" = "x1"; then
26239           versioned_symbols_flavour="NSS_"
26240         elif test "x$POLARSSL_ENABLED" = "x1"; then
26241           versioned_symbols_flavour="POLARSSL_"
26242         elif test "x$CYASSL_ENABLED" = "x1"; then
26243           versioned_symbols_flavour="CYASSL_"
26244         elif test "x$AXTLS_ENABLED" = "x1"; then
26245           versioned_symbols_flavour="AXTLS_"
26246         elif test "x$WINSSL_ENABLED" = "x1"; then
26247           versioned_symbols_flavour="WINSSL_"
26248         elif test "x$DARWINSSL_ENABLED" = "x1"; then
26249           versioned_symbols_flavour="DARWINSSL_"
26250         else
26251           versioned_symbols_flavour=""
26252         fi
26253         versioned_symbols="yes"
26254     fi
26255     ;;
26256
26257   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26258 $as_echo "no" >&6; }
26259     ;;
26260   esac
26261
26262 else
26263
26264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26265 $as_echo "no" >&6; }
26266
26267
26268 fi
26269
26270
26271 CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
26272
26273  if test "x$versioned_symbols" = 'xyes'; then
26274   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
26275   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
26276 else
26277   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
26278   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
26279 fi
26280
26281
26282
26283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
26284 $as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
26285 OPT_WINIDN="default"
26286
26287 # Check whether --with-winidn was given.
26288 if test "${with_winidn+set}" = set; then :
26289   withval=$with_winidn; OPT_WINIDN=$withval
26290 fi
26291
26292 case "$OPT_WINIDN" in
26293   no|default)
26294         want_winidn="no"
26295     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26296 $as_echo "no" >&6; }
26297     ;;
26298   yes)
26299         want_winidn="yes"
26300     want_winidn_path="default"
26301     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26302 $as_echo "yes" >&6; }
26303     ;;
26304   *)
26305         want_winidn="yes"
26306     want_winidn_path="$withval"
26307     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
26308 $as_echo "yes ($withval)" >&6; }
26309     ;;
26310 esac
26311
26312 if test "$want_winidn" = "yes"; then
26313     clean_CPPFLAGS="$CPPFLAGS"
26314   clean_LDFLAGS="$LDFLAGS"
26315   clean_LIBS="$LIBS"
26316   WINIDN_LIBS="-lnormaliz"
26317   #
26318   if test "$want_winidn_path" != "default"; then
26319             WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
26320     WINIDN_CPPFLAGS="-I$want_winidn_path/include"
26321     WINIDN_DIR="$want_winidn_path/lib$libsuff"
26322   fi
26323   #
26324   CPPFLAGS="$WINIDN_CPPFLAGS $CPPFLAGS"
26325   LDFLAGS="$WINIDN_LDFLAGS $LDFLAGS"
26326   LIBS="$WINIDN_LIBS $LIBS"
26327   #
26328   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
26329 $as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
26330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26331 /* end confdefs.h.  */
26332
26333
26334 #define IdnToUnicode innocuous_IdnToUnicode
26335 #ifdef __STDC__
26336 # include <limits.h>
26337 #else
26338 # include <assert.h>
26339 #endif
26340 #undef IdnToUnicode
26341 #ifdef __cplusplus
26342 extern "C"
26343 #endif
26344 char IdnToUnicode ();
26345 #if defined __stub_IdnToUnicode || defined __stub___IdnToUnicode
26346 choke me
26347 #endif
26348
26349 int main (void)
26350 {
26351 return IdnToUnicode ();
26352  ;
26353  return 0;
26354 }
26355
26356 _ACEOF
26357 if ac_fn_c_try_link "$LINENO"; then :
26358
26359     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26360 $as_echo "yes" >&6; }
26361     tst_links_winidn="yes"
26362
26363 else
26364
26365     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26366 $as_echo "no" >&6; }
26367     tst_links_winidn="no"
26368
26369 fi
26370 rm -f core conftest.err conftest.$ac_objext \
26371     conftest$ac_exeext conftest.$ac_ext
26372   #
26373   if test "$tst_links_winidn" = "yes"; then
26374
26375 $as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
26376
26377
26378 $as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
26379
26380     IDN_ENABLED=1
26381
26382     curl_idn_msg="enabled (Windows-native)"
26383   else
26384     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
26385 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
26386     CPPFLAGS="$clean_CPPFLAGS"
26387     LDFLAGS="$clean_LDFLAGS"
26388     LIBS="$clean_LIBS"
26389   fi
26390 fi
26391
26392
26393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn" >&5
26394 $as_echo_n "checking whether to build with libidn... " >&6; }
26395 OPT_IDN="default"
26396
26397 # Check whether --with-libidn was given.
26398 if test "${with_libidn+set}" = set; then :
26399   withval=$with_libidn; OPT_IDN=$withval
26400 fi
26401
26402 case "$OPT_IDN" in
26403   no)
26404         want_idn="no"
26405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26406 $as_echo "no" >&6; }
26407     ;;
26408   default)
26409         want_idn="yes"
26410     want_idn_path="default"
26411     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
26412 $as_echo "(assumed) yes" >&6; }
26413     ;;
26414   yes)
26415         want_idn="yes"
26416     want_idn_path="default"
26417     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26418 $as_echo "yes" >&6; }
26419     ;;
26420   *)
26421         want_idn="yes"
26422     want_idn_path="$withval"
26423     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
26424 $as_echo "yes ($withval)" >&6; }
26425     ;;
26426 esac
26427
26428 if test "$want_idn" = "yes"; then
26429     clean_CPPFLAGS="$CPPFLAGS"
26430   clean_LDFLAGS="$LDFLAGS"
26431   clean_LIBS="$LIBS"
26432   PKGCONFIG="no"
26433   #
26434   if test "$want_idn_path" != "default"; then
26435         IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
26436
26437     if test -n "$PKG_CONFIG"; then
26438       PKGCONFIG="$PKG_CONFIG"
26439     else
26440       if test -n "$ac_tool_prefix"; then
26441   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26442 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26444 $as_echo_n "checking for $ac_word... " >&6; }
26445 if ${ac_cv_path_PKGCONFIG+:} false; then :
26446   $as_echo_n "(cached) " >&6
26447 else
26448   case $PKGCONFIG in
26449   [\\/]* | ?:[\\/]*)
26450   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26451   ;;
26452   *)
26453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26454 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26455 for as_dir in $as_dummy
26456 do
26457   IFS=$as_save_IFS
26458   test -z "$as_dir" && as_dir=.
26459     for ac_exec_ext in '' $ac_executable_extensions; do
26460   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26461     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26463     break 2
26464   fi
26465 done
26466   done
26467 IFS=$as_save_IFS
26468
26469   ;;
26470 esac
26471 fi
26472 PKGCONFIG=$ac_cv_path_PKGCONFIG
26473 if test -n "$PKGCONFIG"; then
26474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26475 $as_echo "$PKGCONFIG" >&6; }
26476 else
26477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26478 $as_echo "no" >&6; }
26479 fi
26480
26481
26482 fi
26483 if test -z "$ac_cv_path_PKGCONFIG"; then
26484   ac_pt_PKGCONFIG=$PKGCONFIG
26485   # Extract the first word of "pkg-config", so it can be a program name with args.
26486 set dummy pkg-config; ac_word=$2
26487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26488 $as_echo_n "checking for $ac_word... " >&6; }
26489 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26490   $as_echo_n "(cached) " >&6
26491 else
26492   case $ac_pt_PKGCONFIG in
26493   [\\/]* | ?:[\\/]*)
26494   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26495   ;;
26496   *)
26497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26498 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26499 for as_dir in $as_dummy
26500 do
26501   IFS=$as_save_IFS
26502   test -z "$as_dir" && as_dir=.
26503     for ac_exec_ext in '' $ac_executable_extensions; do
26504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26505     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26507     break 2
26508   fi
26509 done
26510   done
26511 IFS=$as_save_IFS
26512
26513   ;;
26514 esac
26515 fi
26516 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26517 if test -n "$ac_pt_PKGCONFIG"; then
26518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26519 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26520 else
26521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26522 $as_echo "no" >&6; }
26523 fi
26524
26525   if test "x$ac_pt_PKGCONFIG" = x; then
26526     PKGCONFIG="no"
26527   else
26528     case $cross_compiling:$ac_tool_warned in
26529 yes:)
26530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26532 ac_tool_warned=yes ;;
26533 esac
26534     PKGCONFIG=$ac_pt_PKGCONFIG
26535   fi
26536 else
26537   PKGCONFIG="$ac_cv_path_PKGCONFIG"
26538 fi
26539
26540     fi
26541
26542     if test "x$PKGCONFIG" != "xno"; then
26543       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn options with pkg-config" >&5
26544 $as_echo_n "checking for libidn options with pkg-config... " >&6; }
26545             itexists=`
26546     if test -n "$IDN_PCDIR"; then
26547       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26548       export PKG_CONFIG_LIBDIR
26549     fi
26550          $PKGCONFIG --exists libidn >/dev/null 2>&1 && echo 1`
26551
26552       if test -z "$itexists"; then
26553                         PKGCONFIG="no"
26554         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26555 $as_echo "no" >&6; }
26556       else
26557         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26558 $as_echo "found" >&6; }
26559       fi
26560     fi
26561
26562     if test "$PKGCONFIG" != "no"; then
26563       IDN_LIBS=`
26564     if test -n "$IDN_PCDIR"; then
26565       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26566       export PKG_CONFIG_LIBDIR
26567     fi
26568          $PKGCONFIG --libs-only-l libidn 2>/dev/null`
26569       IDN_LDFLAGS=`
26570     if test -n "$IDN_PCDIR"; then
26571       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26572       export PKG_CONFIG_LIBDIR
26573     fi
26574          $PKGCONFIG --libs-only-L libidn 2>/dev/null`
26575       IDN_CPPFLAGS=`
26576     if test -n "$IDN_PCDIR"; then
26577       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26578       export PKG_CONFIG_LIBDIR
26579     fi
26580          $PKGCONFIG --cflags-only-I libidn 2>/dev/null`
26581       IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
26582     else
26583             IDN_LIBS="-lidn"
26584       IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
26585       IDN_CPPFLAGS="-I$want_idn_path/include"
26586       IDN_DIR="$want_idn_path/lib$libsuff"
26587     fi
26588   else
26589
26590     if test -n "$PKG_CONFIG"; then
26591       PKGCONFIG="$PKG_CONFIG"
26592     else
26593       if test -n "$ac_tool_prefix"; then
26594   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26595 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26597 $as_echo_n "checking for $ac_word... " >&6; }
26598 if ${ac_cv_path_PKGCONFIG+:} false; then :
26599   $as_echo_n "(cached) " >&6
26600 else
26601   case $PKGCONFIG in
26602   [\\/]* | ?:[\\/]*)
26603   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26604   ;;
26605   *)
26606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26607 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26608 for as_dir in $as_dummy
26609 do
26610   IFS=$as_save_IFS
26611   test -z "$as_dir" && as_dir=.
26612     for ac_exec_ext in '' $ac_executable_extensions; do
26613   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26614     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26616     break 2
26617   fi
26618 done
26619   done
26620 IFS=$as_save_IFS
26621
26622   ;;
26623 esac
26624 fi
26625 PKGCONFIG=$ac_cv_path_PKGCONFIG
26626 if test -n "$PKGCONFIG"; then
26627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26628 $as_echo "$PKGCONFIG" >&6; }
26629 else
26630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26631 $as_echo "no" >&6; }
26632 fi
26633
26634
26635 fi
26636 if test -z "$ac_cv_path_PKGCONFIG"; then
26637   ac_pt_PKGCONFIG=$PKGCONFIG
26638   # Extract the first word of "pkg-config", so it can be a program name with args.
26639 set dummy pkg-config; ac_word=$2
26640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26641 $as_echo_n "checking for $ac_word... " >&6; }
26642 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26643   $as_echo_n "(cached) " >&6
26644 else
26645   case $ac_pt_PKGCONFIG in
26646   [\\/]* | ?:[\\/]*)
26647   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26648   ;;
26649   *)
26650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26651 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26652 for as_dir in $as_dummy
26653 do
26654   IFS=$as_save_IFS
26655   test -z "$as_dir" && as_dir=.
26656     for ac_exec_ext in '' $ac_executable_extensions; do
26657   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26658     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26660     break 2
26661   fi
26662 done
26663   done
26664 IFS=$as_save_IFS
26665
26666   ;;
26667 esac
26668 fi
26669 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26670 if test -n "$ac_pt_PKGCONFIG"; then
26671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26672 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26673 else
26674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26675 $as_echo "no" >&6; }
26676 fi
26677
26678   if test "x$ac_pt_PKGCONFIG" = x; then
26679     PKGCONFIG="no"
26680   else
26681     case $cross_compiling:$ac_tool_warned in
26682 yes:)
26683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26685 ac_tool_warned=yes ;;
26686 esac
26687     PKGCONFIG=$ac_pt_PKGCONFIG
26688   fi
26689 else
26690   PKGCONFIG="$ac_cv_path_PKGCONFIG"
26691 fi
26692
26693     fi
26694
26695     if test "x$PKGCONFIG" != "xno"; then
26696       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn options with pkg-config" >&5
26697 $as_echo_n "checking for libidn options with pkg-config... " >&6; }
26698             itexists=`
26699     if test -n ""; then
26700       PKG_CONFIG_LIBDIR=""
26701       export PKG_CONFIG_LIBDIR
26702     fi
26703          $PKGCONFIG --exists libidn >/dev/null 2>&1 && echo 1`
26704
26705       if test -z "$itexists"; then
26706                         PKGCONFIG="no"
26707         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26708 $as_echo "no" >&6; }
26709       else
26710         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26711 $as_echo "found" >&6; }
26712       fi
26713     fi
26714
26715     if test "$PKGCONFIG" != "no"; then
26716       IDN_LIBS=`$PKGCONFIG --libs-only-l libidn 2>/dev/null`
26717       IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn 2>/dev/null`
26718       IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn 2>/dev/null`
26719       IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
26720     else
26721             IDN_LIBS="-lidn"
26722     fi
26723   fi
26724   #
26725   if test "$PKGCONFIG" != "no"; then
26726     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
26727 $as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
26728     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
26729 $as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
26730     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
26731 $as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
26732     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
26733 $as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
26734   else
26735     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
26736 $as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
26737     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
26738 $as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
26739     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
26740 $as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
26741     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
26742 $as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
26743   fi
26744   #
26745   CPPFLAGS="$IDN_CPPFLAGS $CPPFLAGS"
26746   LDFLAGS="$IDN_LDFLAGS $LDFLAGS"
26747   LIBS="$IDN_LIBS $LIBS"
26748   #
26749   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idna_to_ascii_4i can be linked" >&5
26750 $as_echo_n "checking if idna_to_ascii_4i can be linked... " >&6; }
26751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26752 /* end confdefs.h.  */
26753
26754
26755 #define idna_to_ascii_4i innocuous_idna_to_ascii_4i
26756 #ifdef __STDC__
26757 # include <limits.h>
26758 #else
26759 # include <assert.h>
26760 #endif
26761 #undef idna_to_ascii_4i
26762 #ifdef __cplusplus
26763 extern "C"
26764 #endif
26765 char idna_to_ascii_4i ();
26766 #if defined __stub_idna_to_ascii_4i || defined __stub___idna_to_ascii_4i
26767 choke me
26768 #endif
26769
26770 int main (void)
26771 {
26772 return idna_to_ascii_4i ();
26773  ;
26774  return 0;
26775 }
26776
26777 _ACEOF
26778 if ac_fn_c_try_link "$LINENO"; then :
26779
26780     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26781 $as_echo "yes" >&6; }
26782     tst_links_libidn="yes"
26783
26784 else
26785
26786     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26787 $as_echo "no" >&6; }
26788     tst_links_libidn="no"
26789
26790 fi
26791 rm -f core conftest.err conftest.$ac_objext \
26792     conftest$ac_exeext conftest.$ac_ext
26793   if test "$tst_links_libidn" = "no"; then
26794     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idna_to_ascii_lz can be linked" >&5
26795 $as_echo_n "checking if idna_to_ascii_lz can be linked... " >&6; }
26796     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26797 /* end confdefs.h.  */
26798
26799
26800 #define idna_to_ascii_lz innocuous_idna_to_ascii_lz
26801 #ifdef __STDC__
26802 # include <limits.h>
26803 #else
26804 # include <assert.h>
26805 #endif
26806 #undef idna_to_ascii_lz
26807 #ifdef __cplusplus
26808 extern "C"
26809 #endif
26810 char idna_to_ascii_lz ();
26811 #if defined __stub_idna_to_ascii_lz || defined __stub___idna_to_ascii_lz
26812 choke me
26813 #endif
26814
26815 int main (void)
26816 {
26817 return idna_to_ascii_lz ();
26818  ;
26819  return 0;
26820 }
26821
26822 _ACEOF
26823 if ac_fn_c_try_link "$LINENO"; then :
26824
26825       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26826 $as_echo "yes" >&6; }
26827       tst_links_libidn="yes"
26828
26829 else
26830
26831       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26832 $as_echo "no" >&6; }
26833       tst_links_libidn="no"
26834
26835 fi
26836 rm -f core conftest.err conftest.$ac_objext \
26837     conftest$ac_exeext conftest.$ac_ext
26838   fi
26839   #
26840   if test "$tst_links_libidn" = "yes"; then
26841
26842 $as_echo "#define HAVE_LIBIDN 1" >>confdefs.h
26843
26844         for ac_func in idn_free idna_strerror tld_strerror
26845 do :
26846   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26847 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26848 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26849   cat >>confdefs.h <<_ACEOF
26850 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26851 _ACEOF
26852
26853 fi
26854 done
26855
26856     for ac_header in idn-free.h tld.h
26857 do :
26858   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26859 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26860 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26861   cat >>confdefs.h <<_ACEOF
26862 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26863 _ACEOF
26864
26865 fi
26866
26867 done
26868
26869     if test "x$ac_cv_header_tld_h" = "xyes"; then
26870       IDN_ENABLED=1
26871
26872       curl_idn_msg="enabled"
26873       if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
26874         LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$IDN_DIR"
26875         export LD_LIBRARY_PATH
26876         { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to LD_LIBRARY_PATH" >&5
26877 $as_echo "$as_me: Added $IDN_DIR to LD_LIBRARY_PATH" >&6;}
26878       fi
26879     else
26880       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libraries for IDN support too old: IDN disabled" >&5
26881 $as_echo "$as_me: WARNING: Libraries for IDN support too old: IDN disabled" >&2;}
26882       CPPFLAGS="$clean_CPPFLAGS"
26883       LDFLAGS="$clean_LDFLAGS"
26884       LIBS="$clean_LIBS"
26885     fi
26886   else
26887     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
26888 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
26889     CPPFLAGS="$clean_CPPFLAGS"
26890     LDFLAGS="$clean_LDFLAGS"
26891     LIBS="$clean_LIBS"
26892   fi
26893 fi
26894
26895
26896
26897
26898
26899 OPT_H2="yes"
26900
26901 # Check whether --with-nghttp2 was given.
26902 if test "${with_nghttp2+set}" = set; then :
26903   withval=$with_nghttp2; OPT_H2=$withval
26904 fi
26905
26906 case "$OPT_H2" in
26907   no)
26908         want_h2="no"
26909     ;;
26910   yes)
26911         want_h2="default"
26912     want_h2_path=""
26913     ;;
26914   *)
26915         want_h2="yes"
26916     want_h2_path="$withval/lib/pkgconfig"
26917     ;;
26918 esac
26919
26920 curl_h2_msg="disabled (--with-nghttp2)"
26921 if test X"$want_h2" != Xno; then
26922     CLEANLDFLAGS="$LDFLAGS"
26923   CLEANCPPFLAGS="$CPPFLAGS"
26924   CLEANLIBS="$LIBS"
26925
26926
26927     if test -n "$PKG_CONFIG"; then
26928       PKGCONFIG="$PKG_CONFIG"
26929     else
26930       if test -n "$ac_tool_prefix"; then
26931   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26932 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26934 $as_echo_n "checking for $ac_word... " >&6; }
26935 if ${ac_cv_path_PKGCONFIG+:} false; then :
26936   $as_echo_n "(cached) " >&6
26937 else
26938   case $PKGCONFIG in
26939   [\\/]* | ?:[\\/]*)
26940   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26941   ;;
26942   *)
26943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26944 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26945 for as_dir in $as_dummy
26946 do
26947   IFS=$as_save_IFS
26948   test -z "$as_dir" && as_dir=.
26949     for ac_exec_ext in '' $ac_executable_extensions; do
26950   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26951     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26953     break 2
26954   fi
26955 done
26956   done
26957 IFS=$as_save_IFS
26958
26959   ;;
26960 esac
26961 fi
26962 PKGCONFIG=$ac_cv_path_PKGCONFIG
26963 if test -n "$PKGCONFIG"; then
26964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26965 $as_echo "$PKGCONFIG" >&6; }
26966 else
26967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26968 $as_echo "no" >&6; }
26969 fi
26970
26971
26972 fi
26973 if test -z "$ac_cv_path_PKGCONFIG"; then
26974   ac_pt_PKGCONFIG=$PKGCONFIG
26975   # Extract the first word of "pkg-config", so it can be a program name with args.
26976 set dummy pkg-config; ac_word=$2
26977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26978 $as_echo_n "checking for $ac_word... " >&6; }
26979 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26980   $as_echo_n "(cached) " >&6
26981 else
26982   case $ac_pt_PKGCONFIG in
26983   [\\/]* | ?:[\\/]*)
26984   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26985   ;;
26986   *)
26987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26988 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26989 for as_dir in $as_dummy
26990 do
26991   IFS=$as_save_IFS
26992   test -z "$as_dir" && as_dir=.
26993     for ac_exec_ext in '' $ac_executable_extensions; do
26994   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26995     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26997     break 2
26998   fi
26999 done
27000   done
27001 IFS=$as_save_IFS
27002
27003   ;;
27004 esac
27005 fi
27006 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27007 if test -n "$ac_pt_PKGCONFIG"; then
27008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27009 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27010 else
27011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27012 $as_echo "no" >&6; }
27013 fi
27014
27015   if test "x$ac_pt_PKGCONFIG" = x; then
27016     PKGCONFIG="no"
27017   else
27018     case $cross_compiling:$ac_tool_warned in
27019 yes:)
27020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27022 ac_tool_warned=yes ;;
27023 esac
27024     PKGCONFIG=$ac_pt_PKGCONFIG
27025   fi
27026 else
27027   PKGCONFIG="$ac_cv_path_PKGCONFIG"
27028 fi
27029
27030     fi
27031
27032     if test "x$PKGCONFIG" != "xno"; then
27033       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
27034 $as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
27035             itexists=`
27036     if test -n "$want_h2_path"; then
27037       PKG_CONFIG_LIBDIR="$want_h2_path"
27038       export PKG_CONFIG_LIBDIR
27039     fi
27040          $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
27041
27042       if test -z "$itexists"; then
27043                         PKGCONFIG="no"
27044         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27045 $as_echo "no" >&6; }
27046       else
27047         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27048 $as_echo "found" >&6; }
27049       fi
27050     fi
27051
27052
27053   if test "$PKGCONFIG" != "no" ; then
27054     LIB_H2=`
27055     if test -n "$want_h2_path"; then
27056       PKG_CONFIG_LIBDIR="$want_h2_path"
27057       export PKG_CONFIG_LIBDIR
27058     fi
27059
27060       $PKGCONFIG --libs-only-l libnghttp2`
27061     { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
27062 $as_echo "$as_me: -l is $LIB_H2" >&6;}
27063
27064     CPP_H2=`
27065     if test -n "$want_h2_path"; then
27066       PKG_CONFIG_LIBDIR="$want_h2_path"
27067       export PKG_CONFIG_LIBDIR
27068     fi
27069        $PKGCONFIG --cflags-only-I libnghttp2`
27070     { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
27071 $as_echo "$as_me: -I is $CPP_H2" >&6;}
27072
27073     LD_H2=`
27074     if test -n "$want_h2_path"; then
27075       PKG_CONFIG_LIBDIR="$want_h2_path"
27076       export PKG_CONFIG_LIBDIR
27077     fi
27078
27079       $PKGCONFIG --libs-only-L libnghttp2`
27080     { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
27081 $as_echo "$as_me: -L is $LD_H2" >&6;}
27082
27083     LDFLAGS="$LDFLAGS $LD_H2"
27084     CPPFLAGS="$CPPFLAGS $CPP_H2"
27085     LIBS="$LIB_H2 $LIBS"
27086
27087     # use nghttp2_option_set_no_recv_client_magic to require nghttp2
27088     # >= 1.0.0
27089     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5
27090 $as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; }
27091 if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then :
27092   $as_echo_n "(cached) " >&6
27093 else
27094   ac_check_lib_save_LIBS=$LIBS
27095 LIBS="-lnghttp2  $LIBS"
27096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27097 /* end confdefs.h.  */
27098
27099
27100 #ifdef __cplusplus
27101 extern "C"
27102 #endif
27103 char nghttp2_option_set_no_recv_client_magic ();
27104 int main (void)
27105 {
27106 return nghttp2_option_set_no_recv_client_magic ();
27107  ;
27108  return 0;
27109 }
27110 _ACEOF
27111 if ac_fn_c_try_link "$LINENO"; then :
27112   ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes
27113 else
27114   ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no
27115 fi
27116 rm -f core conftest.err conftest.$ac_objext \
27117     conftest$ac_exeext conftest.$ac_ext
27118 LIBS=$ac_check_lib_save_LIBS
27119 fi
27120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5
27121 $as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; }
27122 if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then :
27123
27124        for ac_header in nghttp2/nghttp2.h
27125 do :
27126   ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
27127 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
27128   cat >>confdefs.h <<_ACEOF
27129 #define HAVE_NGHTTP2_NGHTTP2_H 1
27130 _ACEOF
27131  curl_h2_msg="enabled (nghttp2)"
27132           NGHTTP2_ENABLED=1
27133
27134 $as_echo "#define USE_NGHTTP2 1" >>confdefs.h
27135
27136           USE_NGHTTP2=1
27137
27138
27139 fi
27140
27141 done
27142
27143
27144 else
27145           LDFLAGS=$CLEANLDFLAGS
27146         CPPFLAGS=$CLEANCPPFLAGS
27147         LIBS=$CLEANLIBS
27148
27149 fi
27150
27151
27152   else
27153         if test X"$want_h2" != Xdefault; then
27154                   as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
27155     fi
27156   fi
27157
27158 fi
27159
27160
27161 OPT_ZSH_FPATH=default
27162
27163 # Check whether --with-zsh-functions-dir was given.
27164 if test "${with_zsh_functions_dir+set}" = set; then :
27165   withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
27166 fi
27167
27168 case "$OPT_ZSH_FPATH" in
27169   no)
27170         ;;
27171   default|yes)
27172         ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
27173
27174     ;;
27175   *)
27176         ZSH_FUNCTIONS_DIR="$withval"
27177
27178     ;;
27179 esac
27180
27181
27182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
27183 $as_echo_n "checking for ANSI C header files... " >&6; }
27184 if ${ac_cv_header_stdc+:} false; then :
27185   $as_echo_n "(cached) " >&6
27186 else
27187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27188 /* end confdefs.h.  */
27189 #include <stdlib.h>
27190 #include <stdarg.h>
27191 #include <string.h>
27192 #include <float.h>
27193
27194 int main (void)
27195 {
27196
27197  ;
27198  return 0;
27199 }
27200 _ACEOF
27201 if ac_fn_c_try_compile "$LINENO"; then :
27202   ac_cv_header_stdc=yes
27203 else
27204   ac_cv_header_stdc=no
27205 fi
27206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27207
27208 if test $ac_cv_header_stdc = yes; then
27209   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27211 /* end confdefs.h.  */
27212 #include <string.h>
27213
27214 _ACEOF
27215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27216   $EGREP "memchr" >/dev/null 2>&1; then :
27217
27218 else
27219   ac_cv_header_stdc=no
27220 fi
27221 rm -f conftest*
27222
27223 fi
27224
27225 if test $ac_cv_header_stdc = yes; then
27226   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27228 /* end confdefs.h.  */
27229 #include <stdlib.h>
27230
27231 _ACEOF
27232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27233   $EGREP "free" >/dev/null 2>&1; then :
27234
27235 else
27236   ac_cv_header_stdc=no
27237 fi
27238 rm -f conftest*
27239
27240 fi
27241
27242 if test $ac_cv_header_stdc = yes; then
27243   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27244   if test "$cross_compiling" = yes; then :
27245   :
27246 else
27247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27248 /* end confdefs.h.  */
27249 #include <ctype.h>
27250 #include <stdlib.h>
27251 #if ((' ' & 0x0FF) == 0x020)
27252 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27253 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27254 #else
27255 # define ISLOWER(c) \
27256                    (('a' <= (c) && (c) <= 'i') \
27257                      || ('j' <= (c) && (c) <= 'r') \
27258                      || ('s' <= (c) && (c) <= 'z'))
27259 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27260 #endif
27261
27262 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27263 int
27264 main ()
27265 {
27266   int i;
27267   for (i = 0; i < 256; i++)
27268     if (XOR (islower (i), ISLOWER (i))
27269         || toupper (i) != TOUPPER (i))
27270       return 2;
27271   return 0;
27272 }
27273 _ACEOF
27274 if ac_fn_c_try_run "$LINENO"; then :
27275
27276 else
27277   ac_cv_header_stdc=no
27278 fi
27279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27280   conftest.$ac_objext conftest.beam conftest.$ac_ext
27281 fi
27282
27283 fi
27284 fi
27285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
27286 $as_echo "$ac_cv_header_stdc" >&6; }
27287 if test $ac_cv_header_stdc = yes; then
27288
27289 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
27290
27291 fi
27292
27293
27294
27295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
27296 $as_echo_n "checking for malloc.h... " >&6; }
27297 if ${ac_cv_header_malloc_h+:} false; then :
27298   $as_echo_n "(cached) " >&6
27299 else
27300
27301     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27302 /* end confdefs.h.  */
27303
27304
27305 #include <malloc.h>
27306
27307 int main (void)
27308 {
27309
27310         void *p = malloc(10);
27311         void *q = calloc(10,10);
27312         free(p);
27313         free(q);
27314
27315  ;
27316  return 0;
27317 }
27318
27319 _ACEOF
27320 if ac_fn_c_try_compile "$LINENO"; then :
27321
27322       ac_cv_header_malloc_h="yes"
27323
27324 else
27325
27326       ac_cv_header_malloc_h="no"
27327
27328 fi
27329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27330
27331 fi
27332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_malloc_h" >&5
27333 $as_echo "$ac_cv_header_malloc_h" >&6; }
27334   if test "$ac_cv_header_malloc_h" = "yes"; then
27335
27336 cat >>confdefs.h <<_ACEOF
27337 #define HAVE_MALLOC_H 1
27338 _ACEOF
27339
27340     #
27341     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27342 /* end confdefs.h.  */
27343
27344
27345 #include <stdlib.h>
27346
27347 int main (void)
27348 {
27349
27350         void *p = malloc(10);
27351         void *q = calloc(10,10);
27352         free(p);
27353         free(q);
27354
27355  ;
27356  return 0;
27357 }
27358
27359 _ACEOF
27360 if ac_fn_c_try_compile "$LINENO"; then :
27361
27362       curl_cv_need_header_malloc_h="no"
27363
27364 else
27365
27366       curl_cv_need_header_malloc_h="yes"
27367
27368 fi
27369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27370     #
27371     case "$curl_cv_need_header_malloc_h" in
27372       yes)
27373
27374 cat >>confdefs.h <<_ACEOF
27375 #define NEED_MALLOC_H 1
27376 _ACEOF
27377
27378         ;;
27379     esac
27380   fi
27381
27382
27383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
27384 $as_echo_n "checking for memory.h... " >&6; }
27385 if ${ac_cv_header_memory_h+:} false; then :
27386   $as_echo_n "(cached) " >&6
27387 else
27388
27389     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27390 /* end confdefs.h.  */
27391
27392
27393 #include <memory.h>
27394
27395 int main (void)
27396 {
27397
27398         void *p = malloc(10);
27399         void *q = calloc(10,10);
27400         free(p);
27401         free(q);
27402
27403  ;
27404  return 0;
27405 }
27406
27407 _ACEOF
27408 if ac_fn_c_try_compile "$LINENO"; then :
27409
27410       ac_cv_header_memory_h="yes"
27411
27412 else
27413
27414       ac_cv_header_memory_h="no"
27415
27416 fi
27417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27418
27419 fi
27420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_memory_h" >&5
27421 $as_echo "$ac_cv_header_memory_h" >&6; }
27422   if test "$ac_cv_header_memory_h" = "yes"; then
27423
27424 cat >>confdefs.h <<_ACEOF
27425 #define HAVE_MEMORY_H 1
27426 _ACEOF
27427
27428     #
27429     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27430 /* end confdefs.h.  */
27431
27432
27433 #include <stdlib.h>
27434
27435 int main (void)
27436 {
27437
27438         void *p = malloc(10);
27439         void *q = calloc(10,10);
27440         free(p);
27441         free(q);
27442
27443  ;
27444  return 0;
27445 }
27446
27447 _ACEOF
27448 if ac_fn_c_try_compile "$LINENO"; then :
27449
27450       curl_cv_need_header_memory_h="no"
27451
27452 else
27453
27454       curl_cv_need_header_memory_h="yes"
27455
27456 fi
27457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27458     #
27459     case "$curl_cv_need_header_memory_h" in
27460       yes)
27461
27462 cat >>confdefs.h <<_ACEOF
27463 #define NEED_MEMORY_H 1
27464 _ACEOF
27465
27466         ;;
27467     esac
27468   fi
27469
27470
27471 for ac_header in sys/types.h \
27472         sys/time.h \
27473         sys/select.h \
27474         sys/socket.h \
27475         sys/ioctl.h \
27476         sys/uio.h \
27477         assert.h \
27478         unistd.h \
27479         stdlib.h \
27480         limits.h \
27481         arpa/inet.h \
27482         net/if.h \
27483         netinet/in.h \
27484         sys/un.h \
27485         netinet/tcp.h \
27486         netdb.h \
27487         sys/sockio.h \
27488         sys/stat.h \
27489         sys/param.h \
27490         termios.h \
27491         termio.h \
27492         sgtty.h \
27493         fcntl.h \
27494         alloca.h \
27495         time.h \
27496         io.h \
27497         pwd.h \
27498         utime.h \
27499         sys/utime.h \
27500         sys/poll.h \
27501         poll.h \
27502         socket.h \
27503         sys/resource.h \
27504         libgen.h \
27505         locale.h \
27506         errno.h \
27507         stdbool.h \
27508         arpa/tftp.h \
27509         sys/filio.h \
27510         sys/wait.h \
27511         setjmp.h
27512 do :
27513   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27514 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
27515 #ifdef HAVE_SYS_TYPES_H
27516 #include <sys/types.h>
27517 #endif
27518 #ifdef HAVE_SYS_TIME_H
27519 #include <sys/time.h>
27520 #endif
27521 #ifdef HAVE_SYS_SELECT_H
27522 #include <sys/select.h>
27523 #endif
27524 #ifdef HAVE_SYS_SOCKET_H
27525 #include <sys/socket.h>
27526 #endif
27527 #ifdef HAVE_NETINET_IN_H
27528 #include <netinet/in.h>
27529 #endif
27530 #ifdef HAVE_SYS_UN_H
27531 #include <sys/un.h>
27532 #endif
27533
27534
27535 "
27536 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27537   cat >>confdefs.h <<_ACEOF
27538 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27539 _ACEOF
27540
27541 fi
27542
27543 done
27544
27545
27546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27547 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27548 if ${ac_cv_c_const+:} false; then :
27549   $as_echo_n "(cached) " >&6
27550 else
27551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27552 /* end confdefs.h.  */
27553
27554 int main (void)
27555 {
27556
27557 #ifndef __cplusplus
27558   /* Ultrix mips cc rejects this sort of thing.  */
27559   typedef int charset[2];
27560   const charset cs = { 0, 0 };
27561   /* SunOS 4.1.1 cc rejects this.  */
27562   char const *const *pcpcc;
27563   char **ppc;
27564   /* NEC SVR4.0.2 mips cc rejects this.  */
27565   struct point {int x, y;};
27566   static struct point const zero = {0,0};
27567   /* AIX XL C 1.02.0.0 rejects this.
27568      It does not let you subtract one const X* pointer from another in
27569      an arm of an if-expression whose if-part is not a constant
27570      expression */
27571   const char *g = "string";
27572   pcpcc = &g + (g ? g-g : 0);
27573   /* HPUX 7.0 cc rejects these. */
27574   ++pcpcc;
27575   ppc = (char**) pcpcc;
27576   pcpcc = (char const *const *) ppc;
27577   { /* SCO 3.2v4 cc rejects this sort of thing.  */
27578     char tx;
27579     char *t = &tx;
27580     char const *s = 0 ? (char *) 0 : (char const *) 0;
27581
27582     *t++ = 0;
27583     if (s) return 0;
27584   }
27585   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27586     int x[] = {25, 17};
27587     const int *foo = &x[0];
27588     ++foo;
27589   }
27590   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27591     typedef const int *iptr;
27592     iptr p = 0;
27593     ++p;
27594   }
27595   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27596        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27597     struct s { int j; const int *ap[3]; } bx;
27598     struct s *b = &bx; b->j = 5;
27599   }
27600   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27601     const int foo = 10;
27602     if (!foo) return 0;
27603   }
27604   return !cs[0] && !zero.x;
27605 #endif
27606
27607  ;
27608  return 0;
27609 }
27610 _ACEOF
27611 if ac_fn_c_try_compile "$LINENO"; then :
27612   ac_cv_c_const=yes
27613 else
27614   ac_cv_c_const=no
27615 fi
27616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27617 fi
27618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27619 $as_echo "$ac_cv_c_const" >&6; }
27620 if test $ac_cv_c_const = no; then
27621
27622 $as_echo "#define const /**/" >>confdefs.h
27623
27624 fi
27625
27626
27627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
27628 $as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
27629 if ${curl_cv_variadic_macros_c99+:} false; then :
27630   $as_echo_n "(cached) " >&6
27631 else
27632
27633     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27634 /* end confdefs.h.  */
27635
27636
27637 #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
27638 #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
27639         int fun3(int arg1, int arg2, int arg3);
27640         int fun2(int arg1, int arg2);
27641         int fun3(int arg1, int arg2, int arg3)
27642         { return arg1 + arg2 + arg3; }
27643         int fun2(int arg1, int arg2)
27644         { return arg1 + arg2; }
27645
27646 int main (void)
27647 {
27648
27649         int res3 = c99_vmacro3(1, 2, 3);
27650         int res2 = c99_vmacro2(1, 2);
27651
27652  ;
27653  return 0;
27654 }
27655
27656 _ACEOF
27657 if ac_fn_c_try_compile "$LINENO"; then :
27658
27659       curl_cv_variadic_macros_c99="yes"
27660
27661 else
27662
27663       curl_cv_variadic_macros_c99="no"
27664
27665 fi
27666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27667
27668 fi
27669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
27670 $as_echo "$curl_cv_variadic_macros_c99" >&6; }
27671   case "$curl_cv_variadic_macros_c99" in
27672     yes)
27673
27674 cat >>confdefs.h <<_ACEOF
27675 #define HAVE_VARIADIC_MACROS_C99 1
27676 _ACEOF
27677
27678       ;;
27679   esac
27680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
27681 $as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
27682 if ${curl_cv_variadic_macros_gcc+:} false; then :
27683   $as_echo_n "(cached) " >&6
27684 else
27685
27686     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27687 /* end confdefs.h.  */
27688
27689
27690 #define gcc_vmacro3(first, args...) fun3(first, args)
27691 #define gcc_vmacro2(first, args...) fun2(first, args)
27692         int fun3(int arg1, int arg2, int arg3);
27693         int fun2(int arg1, int arg2);
27694         int fun3(int arg1, int arg2, int arg3)
27695         { return arg1 + arg2 + arg3; }
27696         int fun2(int arg1, int arg2)
27697         { return arg1 + arg2; }
27698
27699 int main (void)
27700 {
27701
27702         int res3 = gcc_vmacro3(1, 2, 3);
27703         int res2 = gcc_vmacro2(1, 2);
27704
27705  ;
27706  return 0;
27707 }
27708
27709 _ACEOF
27710 if ac_fn_c_try_compile "$LINENO"; then :
27711
27712       curl_cv_variadic_macros_gcc="yes"
27713
27714 else
27715
27716       curl_cv_variadic_macros_gcc="no"
27717
27718 fi
27719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27720
27721 fi
27722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
27723 $as_echo "$curl_cv_variadic_macros_gcc" >&6; }
27724   case "$curl_cv_variadic_macros_gcc" in
27725     yes)
27726
27727 cat >>confdefs.h <<_ACEOF
27728 #define HAVE_VARIADIC_MACROS_GCC 1
27729 _ACEOF
27730
27731       ;;
27732   esac
27733
27734 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27735 if test "x$ac_cv_type_size_t" = xyes; then :
27736
27737 else
27738
27739 cat >>confdefs.h <<_ACEOF
27740 #define size_t unsigned int
27741 _ACEOF
27742
27743 fi
27744
27745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
27746 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
27747 if ${ac_cv_header_time+:} false; then :
27748   $as_echo_n "(cached) " >&6
27749 else
27750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27751 /* end confdefs.h.  */
27752 #include <sys/types.h>
27753 #include <sys/time.h>
27754 #include <time.h>
27755
27756 int main (void)
27757 {
27758 if ((struct tm *) 0)
27759 return 0;
27760  ;
27761  return 0;
27762 }
27763 _ACEOF
27764 if ac_fn_c_try_compile "$LINENO"; then :
27765   ac_cv_header_time=yes
27766 else
27767   ac_cv_header_time=no
27768 fi
27769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27770 fi
27771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
27772 $as_echo "$ac_cv_header_time" >&6; }
27773 if test $ac_cv_header_time = yes; then
27774
27775 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
27776
27777 fi
27778
27779
27780         for ac_header in sys/types.h sys/time.h time.h sys/socket.h
27781 do :
27782   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27783 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27784 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27785   cat >>confdefs.h <<_ACEOF
27786 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27787 _ACEOF
27788
27789 fi
27790
27791 done
27792
27793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
27794 $as_echo_n "checking for struct timeval... " >&6; }
27795 if ${ac_cv_struct_timeval+:} false; then :
27796   $as_echo_n "(cached) " >&6
27797 else
27798
27799     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27800 /* end confdefs.h.  */
27801
27802
27803 #undef inline
27804 #ifdef HAVE_WINDOWS_H
27805 #ifndef WIN32_LEAN_AND_MEAN
27806 #define WIN32_LEAN_AND_MEAN
27807 #endif
27808 #include <windows.h>
27809 #ifdef HAVE_WINSOCK2_H
27810 #include <winsock2.h>
27811 #else
27812 #ifdef HAVE_WINSOCK_H
27813 #include <winsock.h>
27814 #endif
27815 #endif
27816 #endif
27817 #ifdef HAVE_SYS_TYPES_H
27818 #include <sys/types.h>
27819 #endif
27820 #ifdef HAVE_SYS_TIME_H
27821 #include <sys/time.h>
27822 #ifdef TIME_WITH_SYS_TIME
27823 #include <time.h>
27824 #endif
27825 #else
27826 #ifdef HAVE_TIME_H
27827 #include <time.h>
27828 #endif
27829 #endif
27830 #ifdef HAVE_SYS_SOCKET_H
27831 #include <sys/socket.h>
27832 #endif
27833
27834 int main (void)
27835 {
27836
27837         struct timeval ts;
27838         ts.tv_sec  = 0;
27839         ts.tv_usec = 0;
27840
27841  ;
27842  return 0;
27843 }
27844
27845 _ACEOF
27846 if ac_fn_c_try_compile "$LINENO"; then :
27847
27848       ac_cv_struct_timeval="yes"
27849
27850 else
27851
27852       ac_cv_struct_timeval="no"
27853
27854 fi
27855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27856
27857 fi
27858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timeval" >&5
27859 $as_echo "$ac_cv_struct_timeval" >&6; }
27860   case "$ac_cv_struct_timeval" in
27861     yes)
27862
27863 cat >>confdefs.h <<_ACEOF
27864 #define HAVE_STRUCT_TIMEVAL 1
27865 _ACEOF
27866
27867       ;;
27868   esac
27869
27870
27871
27872     if test "x$cross_compiling" != xyes; then
27873
27874             { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
27875 $as_echo_n "checking run-time libs availability... " >&6; }
27876     if test "$cross_compiling" = yes; then :
27877   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27879 as_fn_error $? "cannot run test program while cross compiling
27880 See \`config.log' for more details" "$LINENO" 5; }
27881 else
27882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27883 /* end confdefs.h.  */
27884
27885 main()
27886 {
27887   return 0;
27888 }
27889
27890 _ACEOF
27891 if ac_fn_c_try_run "$LINENO"; then :
27892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
27893 $as_echo "fine" >&6; }
27894 else
27895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
27896 $as_echo "failed" >&6; }
27897     as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
27898
27899 fi
27900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27901   conftest.$ac_objext conftest.beam conftest.$ac_ext
27902 fi
27903
27904
27905       fi
27906
27907
27908 # The cast to long int works around a bug in the HP C Compiler
27909 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27910 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27911 # This bug is HP SR number 8606223364.
27912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
27913 $as_echo_n "checking size of size_t... " >&6; }
27914 if ${ac_cv_sizeof_size_t+:} false; then :
27915   $as_echo_n "(cached) " >&6
27916 else
27917   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
27918
27919 else
27920   if test "$ac_cv_type_size_t" = yes; then
27921      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27923 as_fn_error 77 "cannot compute sizeof (size_t)
27924 See \`config.log' for more details" "$LINENO" 5; }
27925    else
27926      ac_cv_sizeof_size_t=0
27927    fi
27928 fi
27929
27930 fi
27931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
27932 $as_echo "$ac_cv_sizeof_size_t" >&6; }
27933
27934
27935
27936 cat >>confdefs.h <<_ACEOF
27937 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
27938 _ACEOF
27939
27940
27941 # The cast to long int works around a bug in the HP C Compiler
27942 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27943 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27944 # This bug is HP SR number 8606223364.
27945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
27946 $as_echo_n "checking size of long... " >&6; }
27947 if ${ac_cv_sizeof_long+:} false; then :
27948   $as_echo_n "(cached) " >&6
27949 else
27950   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
27951
27952 else
27953   if test "$ac_cv_type_long" = yes; then
27954      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27955 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27956 as_fn_error 77 "cannot compute sizeof (long)
27957 See \`config.log' for more details" "$LINENO" 5; }
27958    else
27959      ac_cv_sizeof_long=0
27960    fi
27961 fi
27962
27963 fi
27964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
27965 $as_echo "$ac_cv_sizeof_long" >&6; }
27966
27967
27968
27969 cat >>confdefs.h <<_ACEOF
27970 #define SIZEOF_LONG $ac_cv_sizeof_long
27971 _ACEOF
27972
27973
27974 # The cast to long int works around a bug in the HP C Compiler
27975 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27976 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27977 # This bug is HP SR number 8606223364.
27978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27979 $as_echo_n "checking size of int... " >&6; }
27980 if ${ac_cv_sizeof_int+:} false; then :
27981   $as_echo_n "(cached) " >&6
27982 else
27983   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
27984
27985 else
27986   if test "$ac_cv_type_int" = yes; then
27987      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27989 as_fn_error 77 "cannot compute sizeof (int)
27990 See \`config.log' for more details" "$LINENO" 5; }
27991    else
27992      ac_cv_sizeof_int=0
27993    fi
27994 fi
27995
27996 fi
27997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27998 $as_echo "$ac_cv_sizeof_int" >&6; }
27999
28000
28001
28002 cat >>confdefs.h <<_ACEOF
28003 #define SIZEOF_INT $ac_cv_sizeof_int
28004 _ACEOF
28005
28006
28007 # The cast to long int works around a bug in the HP C Compiler
28008 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28009 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28010 # This bug is HP SR number 8606223364.
28011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
28012 $as_echo_n "checking size of short... " >&6; }
28013 if ${ac_cv_sizeof_short+:} false; then :
28014   $as_echo_n "(cached) " >&6
28015 else
28016   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
28017
28018 else
28019   if test "$ac_cv_type_short" = yes; then
28020      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28022 as_fn_error 77 "cannot compute sizeof (short)
28023 See \`config.log' for more details" "$LINENO" 5; }
28024    else
28025      ac_cv_sizeof_short=0
28026    fi
28027 fi
28028
28029 fi
28030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
28031 $as_echo "$ac_cv_sizeof_short" >&6; }
28032
28033
28034
28035 cat >>confdefs.h <<_ACEOF
28036 #define SIZEOF_SHORT $ac_cv_sizeof_short
28037 _ACEOF
28038
28039
28040
28041   if test -z "$ac_cv_sizeof_long" ||
28042     test "$ac_cv_sizeof_long" -eq "0"; then
28043     as_fn_error $? "cannot find out size of long." "$LINENO" 5
28044   fi
28045
28046 cat >>confdefs.h <<_EOF
28047 #define CURL_SIZEOF_LONG $ac_cv_sizeof_long
28048 _EOF
28049
28050
28051 # The cast to long int works around a bug in the HP C Compiler
28052 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28053 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28054 # This bug is HP SR number 8606223364.
28055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
28056 $as_echo_n "checking size of time_t... " >&6; }
28057 if ${ac_cv_sizeof_time_t+:} false; then :
28058   $as_echo_n "(cached) " >&6
28059 else
28060   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
28061
28062 else
28063   if test "$ac_cv_type_time_t" = yes; then
28064      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28066 as_fn_error 77 "cannot compute sizeof (time_t)
28067 See \`config.log' for more details" "$LINENO" 5; }
28068    else
28069      ac_cv_sizeof_time_t=0
28070    fi
28071 fi
28072
28073 fi
28074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
28075 $as_echo "$ac_cv_sizeof_time_t" >&6; }
28076
28077
28078
28079 cat >>confdefs.h <<_ACEOF
28080 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
28081 _ACEOF
28082
28083
28084 # The cast to long int works around a bug in the HP C Compiler
28085 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28086 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28087 # This bug is HP SR number 8606223364.
28088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
28089 $as_echo_n "checking size of off_t... " >&6; }
28090 if ${ac_cv_sizeof_off_t+:} false; then :
28091   $as_echo_n "(cached) " >&6
28092 else
28093   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
28094
28095 else
28096   if test "$ac_cv_type_off_t" = yes; then
28097      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28099 as_fn_error 77 "cannot compute sizeof (off_t)
28100 See \`config.log' for more details" "$LINENO" 5; }
28101    else
28102      ac_cv_sizeof_off_t=0
28103    fi
28104 fi
28105
28106 fi
28107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
28108 $as_echo "$ac_cv_sizeof_off_t" >&6; }
28109
28110
28111
28112 cat >>confdefs.h <<_ACEOF
28113 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
28114 _ACEOF
28115
28116
28117
28118 soname_bump=no
28119 if test x"$ac_cv_native_windows" != "xyes" &&
28120    test $ac_cv_sizeof_off_t -ne $curl_sizeof_curl_off_t; then
28121   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This libcurl built is probably not ABI compatible with previous" >&5
28122 $as_echo "$as_me: WARNING: This libcurl built is probably not ABI compatible with previous" >&2;}
28123   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&5
28124 $as_echo "$as_me: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&2;}
28125   soname_bump=yes
28126 fi
28127
28128
28129 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
28130 if test "x$ac_cv_type_long_long" = xyes; then :
28131
28132 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
28133
28134    longlong="yes"
28135
28136 fi
28137
28138
28139 if test "xyes" = "x$longlong"; then
28140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
28141 $as_echo_n "checking if numberLL works... " >&6; }
28142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28143 /* end confdefs.h.  */
28144
28145
28146
28147 int main (void)
28148 {
28149
28150       long long val = 1000LL;
28151
28152  ;
28153  return 0;
28154 }
28155
28156 _ACEOF
28157 if ac_fn_c_try_compile "$LINENO"; then :
28158
28159     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28160 $as_echo "yes" >&6; }
28161
28162 $as_echo "#define HAVE_LL 1" >>confdefs.h
28163
28164
28165 else
28166
28167     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28168 $as_echo "no" >&6; }
28169
28170 fi
28171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28172 fi
28173
28174
28175 # check for ssize_t
28176 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
28177 if test "x$ac_cv_type_ssize_t" = xyes; then :
28178
28179 else
28180
28181 $as_echo "#define ssize_t int" >>confdefs.h
28182
28183 fi
28184
28185
28186 # check for bool type
28187 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
28188 #ifdef HAVE_SYS_TYPES_H
28189 #include <sys/types.h>
28190 #endif
28191 #ifdef HAVE_STDBOOL_H
28192 #include <stdbool.h>
28193 #endif
28194
28195 "
28196 if test "x$ac_cv_type_bool" = xyes; then :
28197
28198
28199 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
28200
28201
28202 fi
28203
28204
28205
28206 curl_includes_ws2tcpip="\
28207 /* includes start */
28208 #ifdef HAVE_WINDOWS_H
28209 #  ifndef WIN32_LEAN_AND_MEAN
28210 #    define WIN32_LEAN_AND_MEAN
28211 #  endif
28212 #  include <windows.h>
28213 #  ifdef HAVE_WINSOCK2_H
28214 #    include <winsock2.h>
28215 #    ifdef HAVE_WS2TCPIP_H
28216 #       include <ws2tcpip.h>
28217 #    endif
28218 #  endif
28219 #endif
28220 /* includes end */"
28221
28222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
28223 $as_echo_n "checking for windows.h... " >&6; }
28224 if ${ac_cv_header_windows_h+:} false; then :
28225   $as_echo_n "(cached) " >&6
28226 else
28227
28228     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28229 /* end confdefs.h.  */
28230
28231
28232 #undef inline
28233 #ifndef WIN32_LEAN_AND_MEAN
28234 #define WIN32_LEAN_AND_MEAN
28235 #endif
28236 #include <windows.h>
28237
28238 int main (void)
28239 {
28240
28241 #if defined(__CYGWIN__) || defined(__CEGCC__)
28242         HAVE_WINDOWS_H shall not be defined.
28243 #else
28244         int dummy=2*WINVER;
28245 #endif
28246
28247  ;
28248  return 0;
28249 }
28250
28251 _ACEOF
28252 if ac_fn_c_try_compile "$LINENO"; then :
28253
28254       ac_cv_header_windows_h="yes"
28255
28256 else
28257
28258       ac_cv_header_windows_h="no"
28259
28260 fi
28261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28262
28263 fi
28264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
28265 $as_echo "$ac_cv_header_windows_h" >&6; }
28266   case "$ac_cv_header_windows_h" in
28267     yes)
28268
28269 cat >>confdefs.h <<_ACEOF
28270 #define HAVE_WINDOWS_H 1
28271 _ACEOF
28272
28273
28274 cat >>confdefs.h <<_ACEOF
28275 #define WIN32_LEAN_AND_MEAN 1
28276 _ACEOF
28277
28278       ;;
28279   esac
28280
28281
28282     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
28283 $as_echo_n "checking for winsock2.h... " >&6; }
28284 if ${ac_cv_header_winsock2_h+:} false; then :
28285   $as_echo_n "(cached) " >&6
28286 else
28287
28288     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28289 /* end confdefs.h.  */
28290
28291
28292 #undef inline
28293 #ifndef WIN32_LEAN_AND_MEAN
28294 #define WIN32_LEAN_AND_MEAN
28295 #endif
28296 #include <windows.h>
28297 #include <winsock2.h>
28298
28299 int main (void)
28300 {
28301
28302 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
28303         HAVE_WINSOCK2_H shall not be defined.
28304 #else
28305         int dummy=2*IPPROTO_ESP;
28306 #endif
28307
28308  ;
28309  return 0;
28310 }
28311
28312 _ACEOF
28313 if ac_fn_c_try_compile "$LINENO"; then :
28314
28315       ac_cv_header_winsock2_h="yes"
28316
28317 else
28318
28319       ac_cv_header_winsock2_h="no"
28320
28321 fi
28322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28323
28324 fi
28325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
28326 $as_echo "$ac_cv_header_winsock2_h" >&6; }
28327   case "$ac_cv_header_winsock2_h" in
28328     yes)
28329
28330 cat >>confdefs.h <<_ACEOF
28331 #define HAVE_WINSOCK2_H 1
28332 _ACEOF
28333
28334       ;;
28335   esac
28336
28337
28338     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
28339 $as_echo_n "checking for ws2tcpip.h... " >&6; }
28340 if ${ac_cv_header_ws2tcpip_h+:} false; then :
28341   $as_echo_n "(cached) " >&6
28342 else
28343
28344     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28345 /* end confdefs.h.  */
28346
28347
28348 #undef inline
28349 #ifndef WIN32_LEAN_AND_MEAN
28350 #define WIN32_LEAN_AND_MEAN
28351 #endif
28352 #include <windows.h>
28353 #include <winsock2.h>
28354 #include <ws2tcpip.h>
28355
28356 int main (void)
28357 {
28358
28359 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
28360         HAVE_WS2TCPIP_H shall not be defined.
28361 #else
28362         int dummy=2*IP_PKTINFO;
28363 #endif
28364
28365  ;
28366  return 0;
28367 }
28368
28369 _ACEOF
28370 if ac_fn_c_try_compile "$LINENO"; then :
28371
28372       ac_cv_header_ws2tcpip_h="yes"
28373
28374 else
28375
28376       ac_cv_header_ws2tcpip_h="no"
28377
28378 fi
28379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28380
28381 fi
28382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
28383 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
28384   case "$ac_cv_header_ws2tcpip_h" in
28385     yes)
28386
28387 cat >>confdefs.h <<_ACEOF
28388 #define HAVE_WS2TCPIP_H 1
28389 _ACEOF
28390
28391       ;;
28392   esac
28393
28394
28395
28396 curl_includes_sys_socket="\
28397 /* includes start */
28398 #ifdef HAVE_SYS_TYPES_H
28399 #  include <sys/types.h>
28400 #endif
28401 #ifdef HAVE_SYS_SOCKET_H
28402 #  include <sys/socket.h>
28403 #endif
28404 /* includes end */"
28405   for ac_header in sys/types.h sys/socket.h
28406 do :
28407   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28408 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
28409 "
28410 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28411   cat >>confdefs.h <<_ACEOF
28412 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28413 _ACEOF
28414
28415 fi
28416
28417 done
28418
28419
28420
28421 curl_preprocess_callconv="\
28422 /* preprocess start */
28423 #ifdef HAVE_WINDOWS_H
28424 #  define FUNCALLCONV __stdcall
28425 #else
28426 #  define FUNCALLCONV
28427 #endif
28428 /* preprocess end */"
28429
28430
28431         #
28432     #
28433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5
28434 $as_echo_n "checking for curl_socklen_t data type... " >&6; }
28435   curl_typeof_curl_socklen_t="unknown"
28436   for arg1 in int SOCKET; do
28437     for arg2 in 'struct sockaddr' void; do
28438       for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
28439         if test "$curl_typeof_curl_socklen_t" = "unknown"; then
28440           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28441 /* end confdefs.h.  */
28442
28443
28444               $curl_includes_ws2tcpip
28445               $curl_includes_sys_socket
28446               $curl_preprocess_callconv
28447               extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
28448
28449 int main (void)
28450 {
28451
28452               $t *lenptr = 0;
28453               if(0 != getpeername(0, 0, lenptr))
28454                 return 1;
28455
28456  ;
28457  return 0;
28458 }
28459
28460 _ACEOF
28461 if ac_fn_c_try_compile "$LINENO"; then :
28462
28463             curl_typeof_curl_socklen_t="$t"
28464
28465 fi
28466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28467         fi
28468       done
28469     done
28470   done
28471   for t in socklen_t int; do
28472     if test "$curl_typeof_curl_socklen_t" = "void"; then
28473       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28474 /* end confdefs.h.  */
28475
28476
28477           $curl_includes_sys_socket
28478           typedef $t curl_socklen_t;
28479
28480 int main (void)
28481 {
28482
28483           curl_socklen_t dummy;
28484
28485  ;
28486  return 0;
28487 }
28488
28489 _ACEOF
28490 if ac_fn_c_try_compile "$LINENO"; then :
28491
28492         curl_typeof_curl_socklen_t="$t"
28493
28494 fi
28495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28496     fi
28497   done
28498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5
28499 $as_echo "$curl_typeof_curl_socklen_t" >&6; }
28500   if test "$curl_typeof_curl_socklen_t" = "void" ||
28501     test "$curl_typeof_curl_socklen_t" = "unknown"; then
28502     as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5
28503   fi
28504   #
28505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5
28506 $as_echo_n "checking size of curl_socklen_t... " >&6; }
28507   curl_sizeof_curl_socklen_t="unknown"
28508   curl_pull_headers_socklen_t="unknown"
28509   if test "$ac_cv_header_ws2tcpip_h" = "yes"; then
28510     tst_pull_header_checks='none ws2tcpip'
28511     tst_size_checks='4'
28512   else
28513     tst_pull_header_checks='none systypes syssocket'
28514     tst_size_checks='4 8 2'
28515   fi
28516   for tst_size in $tst_size_checks; do
28517     for tst_pull_headers in $tst_pull_header_checks; do
28518       if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
28519         case $tst_pull_headers in
28520           ws2tcpip)
28521             tmp_includes="$curl_includes_ws2tcpip"
28522             ;;
28523           systypes)
28524             tmp_includes="$curl_includes_sys_types"
28525             ;;
28526           syssocket)
28527             tmp_includes="$curl_includes_sys_socket"
28528             ;;
28529           *)
28530             tmp_includes=""
28531             ;;
28532         esac
28533         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28534 /* end confdefs.h.  */
28535
28536
28537             $tmp_includes
28538             typedef $curl_typeof_curl_socklen_t curl_socklen_t;
28539             typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1];
28540
28541 int main (void)
28542 {
28543
28544             curl_socklen_t dummy;
28545
28546  ;
28547  return 0;
28548 }
28549
28550 _ACEOF
28551 if ac_fn_c_try_compile "$LINENO"; then :
28552
28553           curl_sizeof_curl_socklen_t="$tst_size"
28554           curl_pull_headers_socklen_t="$tst_pull_headers"
28555
28556 fi
28557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28558       fi
28559     done
28560   done
28561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5
28562 $as_echo "$curl_sizeof_curl_socklen_t" >&6; }
28563   if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
28564     as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5
28565   fi
28566   #
28567   case $curl_pull_headers_socklen_t in
28568     ws2tcpip)
28569
28570 cat >>confdefs.h <<_EOF
28571 #define CURL_PULL_WS2TCPIP_H 1
28572 _EOF
28573
28574       ;;
28575     systypes)
28576
28577 cat >>confdefs.h <<_EOF
28578 #define CURL_PULL_SYS_TYPES_H 1
28579 _EOF
28580
28581       ;;
28582     syssocket)
28583
28584 cat >>confdefs.h <<_EOF
28585 #define CURL_PULL_SYS_TYPES_H 1
28586 _EOF
28587
28588
28589 cat >>confdefs.h <<_EOF
28590 #define CURL_PULL_SYS_SOCKET_H 1
28591 _EOF
28592
28593       ;;
28594   esac
28595
28596 cat >>confdefs.h <<_EOF
28597 #define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t
28598 _EOF
28599
28600
28601 cat >>confdefs.h <<_EOF
28602 #define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t
28603 _EOF
28604
28605
28606
28607
28608 curl_includes_poll="\
28609 /* includes start */
28610 #ifdef HAVE_SYS_TYPES_H
28611 #  include <sys/types.h>
28612 #endif
28613 #ifdef HAVE_POLL_H
28614 #  include <poll.h>
28615 #endif
28616 #ifdef HAVE_SYS_POLL_H
28617 #  include <sys/poll.h>
28618 #endif
28619 /* includes end */"
28620   for ac_header in sys/types.h poll.h sys/poll.h
28621 do :
28622   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28623 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
28624 "
28625 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28626   cat >>confdefs.h <<_ACEOF
28627 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28628 _ACEOF
28629
28630 fi
28631
28632 done
28633
28634
28635
28636     #
28637   tst_poll_events_macro_defined="unknown"
28638   #
28639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28640 /* end confdefs.h.  */
28641
28642
28643       $curl_includes_poll
28644
28645 int main (void)
28646 {
28647
28648 #if defined(events) || defined(revents)
28649       return 0;
28650 #else
28651       force compilation error
28652 #endif
28653
28654  ;
28655  return 0;
28656 }
28657
28658 _ACEOF
28659 if ac_fn_c_try_compile "$LINENO"; then :
28660
28661     tst_poll_events_macro_defined="yes"
28662
28663 else
28664
28665     tst_poll_events_macro_defined="no"
28666
28667 fi
28668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28669   #
28670   if test "$tst_poll_events_macro_defined" = "yes"; then
28671     if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
28672
28673 cat >>confdefs.h <<_EOF
28674 #define CURL_PULL_SYS_POLL_H 1
28675 _EOF
28676
28677     fi
28678   fi
28679   #
28680
28681
28682
28683   ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
28684 #undef inline
28685 #ifdef HAVE_WINDOWS_H
28686 #ifndef WIN32_LEAN_AND_MEAN
28687 #define WIN32_LEAN_AND_MEAN
28688 #endif
28689 #include <windows.h>
28690 #ifdef HAVE_WINSOCK2_H
28691 #include <winsock2.h>
28692 #else
28693 #ifdef HAVE_WINSOCK_H
28694 #include <winsock.h>
28695 #endif
28696 #endif
28697 #else
28698 #ifdef HAVE_SYS_TYPES_H
28699 #include <sys/types.h>
28700 #endif
28701 #ifdef HAVE_SYS_SOCKET_H
28702 #include <sys/socket.h>
28703 #endif
28704 #ifdef HAVE_NETINET_IN_H
28705 #include <netinet/in.h>
28706 #endif
28707 #ifdef HAVE_ARPA_INET_H
28708 #include <arpa/inet.h>
28709 #endif
28710 #endif
28711
28712 "
28713 if test "x$ac_cv_type_in_addr_t" = xyes; then :
28714
28715 else
28716
28717         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
28718 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
28719 if ${curl_cv_in_addr_t_equiv+:} false; then :
28720   $as_echo_n "(cached) " >&6
28721 else
28722
28723       curl_cv_in_addr_t_equiv="unknown"
28724       for t in "unsigned long" int size_t unsigned long; do
28725         if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
28726           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28727 /* end confdefs.h.  */
28728
28729
28730 #undef inline
28731 #ifdef HAVE_WINDOWS_H
28732 #ifndef WIN32_LEAN_AND_MEAN
28733 #define WIN32_LEAN_AND_MEAN
28734 #endif
28735 #include <windows.h>
28736 #ifdef HAVE_WINSOCK2_H
28737 #include <winsock2.h>
28738 #else
28739 #ifdef HAVE_WINSOCK_H
28740 #include <winsock.h>
28741 #endif
28742 #endif
28743 #else
28744 #ifdef HAVE_SYS_TYPES_H
28745 #include <sys/types.h>
28746 #endif
28747 #ifdef HAVE_SYS_SOCKET_H
28748 #include <sys/socket.h>
28749 #endif
28750 #ifdef HAVE_NETINET_IN_H
28751 #include <netinet/in.h>
28752 #endif
28753 #ifdef HAVE_ARPA_INET_H
28754 #include <arpa/inet.h>
28755 #endif
28756 #endif
28757
28758 int main (void)
28759 {
28760
28761               $t data = inet_addr ("1.2.3.4");
28762
28763  ;
28764  return 0;
28765 }
28766
28767 _ACEOF
28768 if ac_fn_c_try_link "$LINENO"; then :
28769
28770             curl_cv_in_addr_t_equiv="$t"
28771
28772 fi
28773 rm -f core conftest.err conftest.$ac_objext \
28774     conftest$ac_exeext conftest.$ac_ext
28775         fi
28776       done
28777
28778 fi
28779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
28780 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
28781     case "$curl_cv_in_addr_t_equiv" in
28782       unknown)
28783         as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
28784         ;;
28785       *)
28786
28787 cat >>confdefs.h <<_ACEOF
28788 #define in_addr_t $curl_cv_in_addr_t_equiv
28789 _ACEOF
28790
28791         ;;
28792     esac
28793
28794 fi
28795
28796
28797
28798
28799    ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
28800 #undef inline
28801 #ifdef HAVE_WINDOWS_H
28802 #ifndef WIN32_LEAN_AND_MEAN
28803 #define WIN32_LEAN_AND_MEAN
28804 #endif
28805 #include <windows.h>
28806 #ifdef HAVE_WINSOCK2_H
28807 #include <winsock2.h>
28808 #endif
28809 #else
28810 #ifdef HAVE_SYS_TYPES_H
28811 #include <sys/types.h>
28812 #endif
28813 #ifdef HAVE_SYS_SOCKET_H
28814 #include <sys/socket.h>
28815 #endif
28816 #ifdef HAVE_NETINET_IN_H
28817 #include <netinet/in.h>
28818 #endif
28819 #ifdef HAVE_ARPA_INET_H
28820 #include <arpa/inet.h>
28821 #endif
28822 #endif
28823
28824 "
28825 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
28826
28827 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
28828
28829 fi
28830
28831
28832
28833
28834   for ac_header in signal.h
28835 do :
28836   ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
28837 if test "x$ac_cv_header_signal_h" = xyes; then :
28838   cat >>confdefs.h <<_ACEOF
28839 #define HAVE_SIGNAL_H 1
28840 _ACEOF
28841
28842 fi
28843
28844 done
28845
28846   ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
28847 #ifdef HAVE_SIGNAL_H
28848 #include <signal.h>
28849 #endif
28850
28851 "
28852 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
28853
28854
28855 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
28856
28857
28858 fi
28859
28860   case "$ac_cv_type_sig_atomic_t" in
28861     yes)
28862       #
28863       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
28864 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
28865       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28866 /* end confdefs.h.  */
28867
28868
28869 #ifdef HAVE_SIGNAL_H
28870 #include <signal.h>
28871 #endif
28872
28873 int main (void)
28874 {
28875
28876           static volatile sig_atomic_t dummy = 0;
28877
28878  ;
28879  return 0;
28880 }
28881
28882 _ACEOF
28883 if ac_fn_c_try_link "$LINENO"; then :
28884
28885         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28886 $as_echo "no" >&6; }
28887         ac_cv_sig_atomic_t_volatile="no"
28888
28889 else
28890
28891         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28892 $as_echo "yes" >&6; }
28893         ac_cv_sig_atomic_t_volatile="yes"
28894
28895 fi
28896 rm -f core conftest.err conftest.$ac_objext \
28897     conftest$ac_exeext conftest.$ac_ext
28898       #
28899       if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then
28900
28901 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
28902
28903       fi
28904       ;;
28905   esac
28906
28907
28908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
28909 $as_echo_n "checking return type of signal handlers... " >&6; }
28910 if ${ac_cv_type_signal+:} false; then :
28911   $as_echo_n "(cached) " >&6
28912 else
28913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28914 /* end confdefs.h.  */
28915 #include <sys/types.h>
28916 #include <signal.h>
28917
28918 int main (void)
28919 {
28920 return *(signal (0, 0)) (0) == 1;
28921  ;
28922  return 0;
28923 }
28924 _ACEOF
28925 if ac_fn_c_try_compile "$LINENO"; then :
28926   ac_cv_type_signal=int
28927 else
28928   ac_cv_type_signal=void
28929 fi
28930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28931 fi
28932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
28933 $as_echo "$ac_cv_type_signal" >&6; }
28934
28935 cat >>confdefs.h <<_ACEOF
28936 #define RETSIGTYPE $ac_cv_type_signal
28937 _ACEOF
28938
28939
28940
28941
28942     for ac_header in sys/select.h sys/socket.h
28943 do :
28944   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28945 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28946 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28947   cat >>confdefs.h <<_ACEOF
28948 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28949 _ACEOF
28950
28951 fi
28952
28953 done
28954
28955   #
28956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
28957 $as_echo_n "checking for select... " >&6; }
28958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28959 /* end confdefs.h.  */
28960
28961
28962 #undef inline
28963 #ifdef HAVE_WINDOWS_H
28964 #ifndef WIN32_LEAN_AND_MEAN
28965 #define WIN32_LEAN_AND_MEAN
28966 #endif
28967 #include <windows.h>
28968 #ifdef HAVE_WINSOCK2_H
28969 #include <winsock2.h>
28970 #else
28971 #ifdef HAVE_WINSOCK_H
28972 #include <winsock.h>
28973 #endif
28974 #endif
28975 #endif
28976 #ifdef HAVE_SYS_TYPES_H
28977 #include <sys/types.h>
28978 #endif
28979 #ifdef HAVE_SYS_TIME_H
28980 #include <sys/time.h>
28981 #ifdef TIME_WITH_SYS_TIME
28982 #include <time.h>
28983 #endif
28984 #else
28985 #ifdef HAVE_TIME_H
28986 #include <time.h>
28987 #endif
28988 #endif
28989 #ifndef HAVE_WINDOWS_H
28990 #ifdef HAVE_SYS_SELECT_H
28991 #include <sys/select.h>
28992 #endif
28993 #ifdef HAVE_SYS_SOCKET_H
28994 #include <sys/socket.h>
28995 #endif
28996 #endif
28997
28998 int main (void)
28999 {
29000
29001       select(0, 0, 0, 0, 0);
29002
29003  ;
29004  return 0;
29005 }
29006
29007 _ACEOF
29008 if ac_fn_c_try_link "$LINENO"; then :
29009
29010     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29011 $as_echo "yes" >&6; }
29012     curl_cv_select="yes"
29013
29014 else
29015
29016     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29017 $as_echo "no" >&6; }
29018     curl_cv_select="no"
29019
29020 fi
29021 rm -f core conftest.err conftest.$ac_objext \
29022     conftest$ac_exeext conftest.$ac_ext
29023   #
29024   if test "$curl_cv_select" = "yes"; then
29025     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
29026 $as_echo_n "checking types of args and return type for select... " >&6; }
29027 if ${curl_cv_func_select_args+:} false; then :
29028   $as_echo_n "(cached) " >&6
29029 else
29030
29031       curl_cv_func_select_args="unknown"
29032       for sel_retv in 'int' 'ssize_t'; do
29033         for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
29034           for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
29035             for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
29036               if test "$curl_cv_func_select_args" = "unknown"; then
29037                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29038 /* end confdefs.h.  */
29039
29040
29041 #undef inline
29042 #ifdef HAVE_WINDOWS_H
29043 #ifndef WIN32_LEAN_AND_MEAN
29044 #define WIN32_LEAN_AND_MEAN
29045 #endif
29046 #include <windows.h>
29047 #ifdef HAVE_WINSOCK2_H
29048 #include <winsock2.h>
29049 #else
29050 #ifdef HAVE_WINSOCK_H
29051 #include <winsock.h>
29052 #endif
29053 #endif
29054 #define SELECTCALLCONV PASCAL
29055 #endif
29056 #ifdef HAVE_SYS_TYPES_H
29057 #include <sys/types.h>
29058 #endif
29059 #ifdef HAVE_SYS_TIME_H
29060 #include <sys/time.h>
29061 #ifdef TIME_WITH_SYS_TIME
29062 #include <time.h>
29063 #endif
29064 #else
29065 #ifdef HAVE_TIME_H
29066 #include <time.h>
29067 #endif
29068 #endif
29069 #ifndef HAVE_WINDOWS_H
29070 #ifdef HAVE_SYS_SELECT_H
29071 #include <sys/select.h>
29072 #endif
29073 #ifdef HAVE_SYS_SOCKET_H
29074 #include <sys/socket.h>
29075 #endif
29076 #define SELECTCALLCONV
29077 #endif
29078 #ifndef HAVE_STRUCT_TIMEVAL
29079                     struct timeval {
29080                       long tv_sec;
29081                       long tv_usec;
29082                     };
29083 #endif
29084                     extern $sel_retv SELECTCALLCONV select($sel_arg1,
29085                                                            $sel_arg234,
29086                                                            $sel_arg234,
29087                                                            $sel_arg234,
29088                                                            $sel_arg5);
29089
29090 int main (void)
29091 {
29092
29093                     $sel_arg1   nfds=0;
29094                     $sel_arg234 rfds=0;
29095                     $sel_arg234 wfds=0;
29096                     $sel_arg234 efds=0;
29097                     $sel_retv res = select(nfds, rfds, wfds, efds, 0);
29098
29099  ;
29100  return 0;
29101 }
29102
29103 _ACEOF
29104 if ac_fn_c_try_compile "$LINENO"; then :
29105
29106                   curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
29107
29108 fi
29109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29110               fi
29111             done
29112           done
29113         done
29114       done
29115
29116 fi
29117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
29118 $as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
29119     if test "$curl_cv_func_select_args" = "unknown"; then
29120       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
29121 $as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
29122       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
29123 $as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
29124     else
29125       select_prev_IFS=$IFS; IFS=','
29126       set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
29127       IFS=$select_prev_IFS
29128       shift
29129       #
29130       sel_qual_type_arg5=$3
29131       #
29132
29133 cat >>confdefs.h <<_ACEOF
29134 #define SELECT_TYPE_ARG1 $1
29135 _ACEOF
29136
29137
29138 cat >>confdefs.h <<_ACEOF
29139 #define SELECT_TYPE_ARG234 $2
29140 _ACEOF
29141
29142
29143 cat >>confdefs.h <<_ACEOF
29144 #define SELECT_TYPE_RETV $4
29145 _ACEOF
29146
29147       #
29148       prev_sh_opts=$-
29149       #
29150       case $prev_sh_opts in
29151         *f*)
29152           ;;
29153         *)
29154           set -f
29155           ;;
29156       esac
29157       #
29158       case "$sel_qual_type_arg5" in
29159         const*)
29160           sel_qual_arg5=const
29161           sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
29162         ;;
29163         *)
29164           sel_qual_arg5=
29165           sel_type_arg5=$sel_qual_type_arg5
29166         ;;
29167       esac
29168       #
29169
29170 cat >>confdefs.h <<_ACEOF
29171 #define SELECT_QUAL_ARG5 $sel_qual_arg5
29172 _ACEOF
29173
29174
29175 cat >>confdefs.h <<_ACEOF
29176 #define SELECT_TYPE_ARG5 $sel_type_arg5
29177 _ACEOF
29178
29179       #
29180       case $prev_sh_opts in
29181         *f*)
29182           ;;
29183         *)
29184           set +f
29185           ;;
29186       esac
29187       #
29188
29189 cat >>confdefs.h <<_ACEOF
29190 #define HAVE_SELECT 1
29191 _ACEOF
29192
29193       ac_cv_func_select="yes"
29194     fi
29195   fi
29196
29197
29198
29199       for ac_header in sys/types.h sys/socket.h
29200 do :
29201   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29202 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29203 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29204   cat >>confdefs.h <<_ACEOF
29205 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29206 _ACEOF
29207
29208 fi
29209
29210 done
29211
29212   #
29213   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
29214 $as_echo_n "checking for recv... " >&6; }
29215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29216 /* end confdefs.h.  */
29217
29218
29219 #undef inline
29220 #ifdef HAVE_WINDOWS_H
29221 #ifndef WIN32_LEAN_AND_MEAN
29222 #define WIN32_LEAN_AND_MEAN
29223 #endif
29224 #include <windows.h>
29225 #ifdef HAVE_WINSOCK2_H
29226 #include <winsock2.h>
29227 #else
29228 #ifdef HAVE_WINSOCK_H
29229 #include <winsock.h>
29230 #endif
29231 #endif
29232 #else
29233 #ifdef HAVE_SYS_TYPES_H
29234 #include <sys/types.h>
29235 #endif
29236 #ifdef HAVE_SYS_SOCKET_H
29237 #include <sys/socket.h>
29238 #endif
29239 #endif
29240
29241 int main (void)
29242 {
29243
29244       recv(0, 0, 0, 0);
29245
29246  ;
29247  return 0;
29248 }
29249
29250 _ACEOF
29251 if ac_fn_c_try_link "$LINENO"; then :
29252
29253     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29254 $as_echo "yes" >&6; }
29255     curl_cv_recv="yes"
29256
29257 else
29258
29259     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29260 $as_echo "no" >&6; }
29261     curl_cv_recv="no"
29262
29263 fi
29264 rm -f core conftest.err conftest.$ac_objext \
29265     conftest$ac_exeext conftest.$ac_ext
29266   #
29267   if test "$curl_cv_recv" = "yes"; then
29268     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
29269 $as_echo_n "checking types of args and return type for recv... " >&6; }
29270 if ${curl_cv_func_recv_args+:} false; then :
29271   $as_echo_n "(cached) " >&6
29272 else
29273
29274       curl_cv_func_recv_args="unknown"
29275       for recv_retv in 'int' 'ssize_t'; do
29276         for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29277           for recv_arg2 in 'char *' 'void *'; do
29278             for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29279               for recv_arg4 in 'int' 'unsigned int'; do
29280                 if test "$curl_cv_func_recv_args" = "unknown"; then
29281                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29282 /* end confdefs.h.  */
29283
29284
29285 #undef inline
29286 #ifdef HAVE_WINDOWS_H
29287 #ifndef WIN32_LEAN_AND_MEAN
29288 #define WIN32_LEAN_AND_MEAN
29289 #endif
29290 #include <windows.h>
29291 #ifdef HAVE_WINSOCK2_H
29292 #include <winsock2.h>
29293 #else
29294 #ifdef HAVE_WINSOCK_H
29295 #include <winsock.h>
29296 #endif
29297 #endif
29298 #define RECVCALLCONV PASCAL
29299 #else
29300 #ifdef HAVE_SYS_TYPES_H
29301 #include <sys/types.h>
29302 #endif
29303 #ifdef HAVE_SYS_SOCKET_H
29304 #include <sys/socket.h>
29305 #endif
29306 #define RECVCALLCONV
29307 #endif
29308                       extern $recv_retv RECVCALLCONV
29309                       recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
29310
29311 int main (void)
29312 {
29313
29314                       $recv_arg1 s=0;
29315                       $recv_arg2 buf=0;
29316                       $recv_arg3 len=0;
29317                       $recv_arg4 flags=0;
29318                       $recv_retv res = recv(s, buf, len, flags);
29319
29320  ;
29321  return 0;
29322 }
29323
29324 _ACEOF
29325 if ac_fn_c_try_compile "$LINENO"; then :
29326
29327                     curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
29328
29329 fi
29330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29331                 fi
29332               done
29333             done
29334           done
29335         done
29336       done
29337
29338 fi
29339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
29340 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
29341     if test "$curl_cv_func_recv_args" = "unknown"; then
29342       as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
29343     else
29344       recv_prev_IFS=$IFS; IFS=','
29345       set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
29346       IFS=$recv_prev_IFS
29347       shift
29348       #
29349
29350 cat >>confdefs.h <<_ACEOF
29351 #define RECV_TYPE_ARG1 $1
29352 _ACEOF
29353
29354
29355 cat >>confdefs.h <<_ACEOF
29356 #define RECV_TYPE_ARG2 $2
29357 _ACEOF
29358
29359
29360 cat >>confdefs.h <<_ACEOF
29361 #define RECV_TYPE_ARG3 $3
29362 _ACEOF
29363
29364
29365 cat >>confdefs.h <<_ACEOF
29366 #define RECV_TYPE_ARG4 $4
29367 _ACEOF
29368
29369
29370 cat >>confdefs.h <<_ACEOF
29371 #define RECV_TYPE_RETV $5
29372 _ACEOF
29373
29374       #
29375
29376 cat >>confdefs.h <<_ACEOF
29377 #define HAVE_RECV 1
29378 _ACEOF
29379
29380       ac_cv_func_recv="yes"
29381     fi
29382   else
29383     as_fn_error $? "Unable to link function recv" "$LINENO" 5
29384   fi
29385
29386
29387       for ac_header in sys/types.h sys/socket.h
29388 do :
29389   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29390 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29391 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29392   cat >>confdefs.h <<_ACEOF
29393 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29394 _ACEOF
29395
29396 fi
29397
29398 done
29399
29400   #
29401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
29402 $as_echo_n "checking for send... " >&6; }
29403   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29404 /* end confdefs.h.  */
29405
29406
29407 #undef inline
29408 #ifdef HAVE_WINDOWS_H
29409 #ifndef WIN32_LEAN_AND_MEAN
29410 #define WIN32_LEAN_AND_MEAN
29411 #endif
29412 #include <windows.h>
29413 #ifdef HAVE_WINSOCK2_H
29414 #include <winsock2.h>
29415 #else
29416 #ifdef HAVE_WINSOCK_H
29417 #include <winsock.h>
29418 #endif
29419 #endif
29420 #else
29421 #ifdef HAVE_SYS_TYPES_H
29422 #include <sys/types.h>
29423 #endif
29424 #ifdef HAVE_SYS_SOCKET_H
29425 #include <sys/socket.h>
29426 #endif
29427 #endif
29428
29429 int main (void)
29430 {
29431
29432       send(0, 0, 0, 0);
29433
29434  ;
29435  return 0;
29436 }
29437
29438 _ACEOF
29439 if ac_fn_c_try_link "$LINENO"; then :
29440
29441     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29442 $as_echo "yes" >&6; }
29443     curl_cv_send="yes"
29444
29445 else
29446
29447     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29448 $as_echo "no" >&6; }
29449     curl_cv_send="no"
29450
29451 fi
29452 rm -f core conftest.err conftest.$ac_objext \
29453     conftest$ac_exeext conftest.$ac_ext
29454   #
29455   if test "$curl_cv_send" = "yes"; then
29456     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
29457 $as_echo_n "checking types of args and return type for send... " >&6; }
29458 if ${curl_cv_func_send_args+:} false; then :
29459   $as_echo_n "(cached) " >&6
29460 else
29461
29462       curl_cv_func_send_args="unknown"
29463       for send_retv in 'int' 'ssize_t'; do
29464         for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29465           for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
29466             for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29467               for send_arg4 in 'int' 'unsigned int'; do
29468                 if test "$curl_cv_func_send_args" = "unknown"; then
29469                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29470 /* end confdefs.h.  */
29471
29472
29473 #undef inline
29474 #ifdef HAVE_WINDOWS_H
29475 #ifndef WIN32_LEAN_AND_MEAN
29476 #define WIN32_LEAN_AND_MEAN
29477 #endif
29478 #include <windows.h>
29479 #ifdef HAVE_WINSOCK2_H
29480 #include <winsock2.h>
29481 #else
29482 #ifdef HAVE_WINSOCK_H
29483 #include <winsock.h>
29484 #endif
29485 #endif
29486 #define SENDCALLCONV PASCAL
29487 #else
29488 #ifdef HAVE_SYS_TYPES_H
29489 #include <sys/types.h>
29490 #endif
29491 #ifdef HAVE_SYS_SOCKET_H
29492 #include <sys/socket.h>
29493 #endif
29494 #define SENDCALLCONV
29495 #endif
29496                       extern $send_retv SENDCALLCONV
29497                       send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
29498
29499 int main (void)
29500 {
29501
29502                       $send_arg1 s=0;
29503                       $send_arg3 len=0;
29504                       $send_arg4 flags=0;
29505                       $send_retv res = send(s, 0, len, flags);
29506
29507  ;
29508  return 0;
29509 }
29510
29511 _ACEOF
29512 if ac_fn_c_try_compile "$LINENO"; then :
29513
29514                     curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
29515
29516 fi
29517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29518                 fi
29519               done
29520             done
29521           done
29522         done
29523       done
29524
29525 fi
29526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
29527 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
29528     if test "$curl_cv_func_send_args" = "unknown"; then
29529       as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
29530     else
29531       send_prev_IFS=$IFS; IFS=','
29532       set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
29533       IFS=$send_prev_IFS
29534       shift
29535       #
29536       send_qual_type_arg2=$2
29537       #
29538
29539 cat >>confdefs.h <<_ACEOF
29540 #define SEND_TYPE_ARG1 $1
29541 _ACEOF
29542
29543
29544 cat >>confdefs.h <<_ACEOF
29545 #define SEND_TYPE_ARG3 $3
29546 _ACEOF
29547
29548
29549 cat >>confdefs.h <<_ACEOF
29550 #define SEND_TYPE_ARG4 $4
29551 _ACEOF
29552
29553
29554 cat >>confdefs.h <<_ACEOF
29555 #define SEND_TYPE_RETV $5
29556 _ACEOF
29557
29558       #
29559       prev_sh_opts=$-
29560       #
29561       case $prev_sh_opts in
29562         *f*)
29563           ;;
29564         *)
29565           set -f
29566           ;;
29567       esac
29568       #
29569       case "$send_qual_type_arg2" in
29570         const*)
29571           send_qual_arg2=const
29572           send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
29573         ;;
29574         *)
29575           send_qual_arg2=
29576           send_type_arg2=$send_qual_type_arg2
29577         ;;
29578       esac
29579       #
29580
29581 cat >>confdefs.h <<_ACEOF
29582 #define SEND_QUAL_ARG2 $send_qual_arg2
29583 _ACEOF
29584
29585
29586 cat >>confdefs.h <<_ACEOF
29587 #define SEND_TYPE_ARG2 $send_type_arg2
29588 _ACEOF
29589
29590       #
29591       case $prev_sh_opts in
29592         *f*)
29593           ;;
29594         *)
29595           set +f
29596           ;;
29597       esac
29598       #
29599
29600 cat >>confdefs.h <<_ACEOF
29601 #define HAVE_SEND 1
29602 _ACEOF
29603
29604       ac_cv_func_send="yes"
29605     fi
29606   else
29607     as_fn_error $? "Unable to link function send" "$LINENO" 5
29608   fi
29609
29610
29611   for ac_header in sys/types.h sys/socket.h
29612 do :
29613   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29614 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29615 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29616   cat >>confdefs.h <<_ACEOF
29617 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29618 _ACEOF
29619
29620 fi
29621
29622 done
29623
29624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
29625 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
29626 if ${ac_cv_msg_nosignal+:} false; then :
29627   $as_echo_n "(cached) " >&6
29628 else
29629
29630     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29631 /* end confdefs.h.  */
29632
29633
29634 #undef inline
29635 #ifdef HAVE_WINDOWS_H
29636 #ifndef WIN32_LEAN_AND_MEAN
29637 #define WIN32_LEAN_AND_MEAN
29638 #endif
29639 #include <windows.h>
29640 #ifdef HAVE_WINSOCK2_H
29641 #include <winsock2.h>
29642 #else
29643 #ifdef HAVE_WINSOCK_H
29644 #include <winsock.h>
29645 #endif
29646 #endif
29647 #else
29648 #ifdef HAVE_SYS_TYPES_H
29649 #include <sys/types.h>
29650 #endif
29651 #ifdef HAVE_SYS_SOCKET_H
29652 #include <sys/socket.h>
29653 #endif
29654 #endif
29655
29656 int main (void)
29657 {
29658
29659         int flag=MSG_NOSIGNAL;
29660
29661  ;
29662  return 0;
29663 }
29664
29665 _ACEOF
29666 if ac_fn_c_try_compile "$LINENO"; then :
29667
29668       ac_cv_msg_nosignal="yes"
29669
29670 else
29671
29672       ac_cv_msg_nosignal="no"
29673
29674 fi
29675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29676
29677 fi
29678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5
29679 $as_echo "$ac_cv_msg_nosignal" >&6; }
29680   case "$ac_cv_msg_nosignal" in
29681     yes)
29682
29683 cat >>confdefs.h <<_ACEOF
29684 #define HAVE_MSG_NOSIGNAL 1
29685 _ACEOF
29686
29687       ;;
29688   esac
29689
29690
29691
29692 curl_includes_unistd="\
29693 /* includes start */
29694 #ifdef HAVE_SYS_TYPES_H
29695 #  include <sys/types.h>
29696 #endif
29697 #ifdef HAVE_UNISTD_H
29698 #  include <unistd.h>
29699 #endif
29700 /* includes end */"
29701   for ac_header in sys/types.h unistd.h
29702 do :
29703   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29704 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
29705 "
29706 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29707   cat >>confdefs.h <<_ACEOF
29708 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29709 _ACEOF
29710
29711 fi
29712
29713 done
29714
29715
29716
29717     #
29718   tst_links_alarm="unknown"
29719   tst_proto_alarm="unknown"
29720   tst_compi_alarm="unknown"
29721   tst_allow_alarm="unknown"
29722   #
29723   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
29724 $as_echo_n "checking if alarm can be linked... " >&6; }
29725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29726 /* end confdefs.h.  */
29727
29728
29729 #define alarm innocuous_alarm
29730 #ifdef __STDC__
29731 # include <limits.h>
29732 #else
29733 # include <assert.h>
29734 #endif
29735 #undef alarm
29736 #ifdef __cplusplus
29737 extern "C"
29738 #endif
29739 char alarm ();
29740 #if defined __stub_alarm || defined __stub___alarm
29741 choke me
29742 #endif
29743
29744 int main (void)
29745 {
29746 return alarm ();
29747  ;
29748  return 0;
29749 }
29750
29751 _ACEOF
29752 if ac_fn_c_try_link "$LINENO"; then :
29753
29754     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29755 $as_echo "yes" >&6; }
29756     tst_links_alarm="yes"
29757
29758 else
29759
29760     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29761 $as_echo "no" >&6; }
29762     tst_links_alarm="no"
29763
29764 fi
29765 rm -f core conftest.err conftest.$ac_objext \
29766     conftest$ac_exeext conftest.$ac_ext
29767   #
29768   if test "$tst_links_alarm" = "yes"; then
29769     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
29770 $as_echo_n "checking if alarm is prototyped... " >&6; }
29771     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29772 /* end confdefs.h.  */
29773
29774       $curl_includes_unistd
29775
29776 _ACEOF
29777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29778   $EGREP "alarm" >/dev/null 2>&1; then :
29779
29780       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29781 $as_echo "yes" >&6; }
29782       tst_proto_alarm="yes"
29783
29784 else
29785
29786       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29787 $as_echo "no" >&6; }
29788       tst_proto_alarm="no"
29789
29790 fi
29791 rm -f conftest*
29792
29793   fi
29794   #
29795   if test "$tst_proto_alarm" = "yes"; then
29796     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
29797 $as_echo_n "checking if alarm is compilable... " >&6; }
29798     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29799 /* end confdefs.h.  */
29800
29801
29802         $curl_includes_unistd
29803
29804 int main (void)
29805 {
29806
29807         if(0 != alarm(0))
29808           return 1;
29809
29810  ;
29811  return 0;
29812 }
29813
29814 _ACEOF
29815 if ac_fn_c_try_compile "$LINENO"; then :
29816
29817       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29818 $as_echo "yes" >&6; }
29819       tst_compi_alarm="yes"
29820
29821 else
29822
29823       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29824 $as_echo "no" >&6; }
29825       tst_compi_alarm="no"
29826
29827 fi
29828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29829   fi
29830   #
29831   if test "$tst_compi_alarm" = "yes"; then
29832     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
29833 $as_echo_n "checking if alarm usage allowed... " >&6; }
29834     if test "x$curl_disallow_alarm" != "xyes"; then
29835       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29836 $as_echo "yes" >&6; }
29837       tst_allow_alarm="yes"
29838     else
29839       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29840 $as_echo "no" >&6; }
29841       tst_allow_alarm="no"
29842     fi
29843   fi
29844   #
29845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
29846 $as_echo_n "checking if alarm might be used... " >&6; }
29847   if test "$tst_links_alarm" = "yes" &&
29848      test "$tst_proto_alarm" = "yes" &&
29849      test "$tst_compi_alarm" = "yes" &&
29850      test "$tst_allow_alarm" = "yes"; then
29851     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29852 $as_echo "yes" >&6; }
29853
29854 cat >>confdefs.h <<_ACEOF
29855 #define HAVE_ALARM 1
29856 _ACEOF
29857
29858     ac_cv_func_alarm="yes"
29859   else
29860     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29861 $as_echo "no" >&6; }
29862     ac_cv_func_alarm="no"
29863   fi
29864
29865
29866 curl_includes_string="\
29867 /* includes start */
29868 #ifdef HAVE_SYS_TYPES_H
29869 #  include <sys/types.h>
29870 #endif
29871 #ifdef HAVE_STRING_H
29872 #  include <string.h>
29873 #endif
29874 #ifdef HAVE_STRINGS_H
29875 #  include <strings.h>
29876 #endif
29877 /* includes end */"
29878   for ac_header in sys/types.h string.h strings.h
29879 do :
29880   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29881 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
29882 "
29883 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29884   cat >>confdefs.h <<_ACEOF
29885 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29886 _ACEOF
29887
29888 fi
29889
29890 done
29891
29892
29893
29894 curl_includes_libgen="\
29895 /* includes start */
29896 #ifdef HAVE_SYS_TYPES_H
29897 #  include <sys/types.h>
29898 #endif
29899 #ifdef HAVE_LIBGEN_H
29900 #  include <libgen.h>
29901 #endif
29902 /* includes end */"
29903   for ac_header in sys/types.h libgen.h
29904 do :
29905   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29906 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
29907 "
29908 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29909   cat >>confdefs.h <<_ACEOF
29910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29911 _ACEOF
29912
29913 fi
29914
29915 done
29916
29917
29918
29919         #
29920   tst_links_basename="unknown"
29921   tst_proto_basename="unknown"
29922   tst_compi_basename="unknown"
29923   tst_allow_basename="unknown"
29924   #
29925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
29926 $as_echo_n "checking if basename can be linked... " >&6; }
29927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29928 /* end confdefs.h.  */
29929
29930
29931 #define basename innocuous_basename
29932 #ifdef __STDC__
29933 # include <limits.h>
29934 #else
29935 # include <assert.h>
29936 #endif
29937 #undef basename
29938 #ifdef __cplusplus
29939 extern "C"
29940 #endif
29941 char basename ();
29942 #if defined __stub_basename || defined __stub___basename
29943 choke me
29944 #endif
29945
29946 int main (void)
29947 {
29948 return basename ();
29949  ;
29950  return 0;
29951 }
29952
29953 _ACEOF
29954 if ac_fn_c_try_link "$LINENO"; then :
29955
29956     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29957 $as_echo "yes" >&6; }
29958     tst_links_basename="yes"
29959
29960 else
29961
29962     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29963 $as_echo "no" >&6; }
29964     tst_links_basename="no"
29965
29966 fi
29967 rm -f core conftest.err conftest.$ac_objext \
29968     conftest$ac_exeext conftest.$ac_ext
29969   #
29970   if test "$tst_links_basename" = "yes"; then
29971     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
29972 $as_echo_n "checking if basename is prototyped... " >&6; }
29973     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29974 /* end confdefs.h.  */
29975
29976       $curl_includes_string
29977       $curl_includes_libgen
29978       $curl_includes_unistd
29979
29980 _ACEOF
29981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29982   $EGREP "basename" >/dev/null 2>&1; then :
29983
29984       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29985 $as_echo "yes" >&6; }
29986       tst_proto_basename="yes"
29987
29988 else
29989
29990       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29991 $as_echo "no" >&6; }
29992       tst_proto_basename="no"
29993
29994 fi
29995 rm -f conftest*
29996
29997   fi
29998   #
29999   if test "$tst_proto_basename" = "yes"; then
30000     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
30001 $as_echo_n "checking if basename is compilable... " >&6; }
30002     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30003 /* end confdefs.h.  */
30004
30005
30006         $curl_includes_string
30007         $curl_includes_libgen
30008         $curl_includes_unistd
30009
30010 int main (void)
30011 {
30012
30013         if(0 != basename(0))
30014           return 1;
30015
30016  ;
30017  return 0;
30018 }
30019
30020 _ACEOF
30021 if ac_fn_c_try_compile "$LINENO"; then :
30022
30023       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30024 $as_echo "yes" >&6; }
30025       tst_compi_basename="yes"
30026
30027 else
30028
30029       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30030 $as_echo "no" >&6; }
30031       tst_compi_basename="no"
30032
30033 fi
30034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30035   fi
30036   #
30037   if test "$tst_compi_basename" = "yes"; then
30038     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
30039 $as_echo_n "checking if basename usage allowed... " >&6; }
30040     if test "x$curl_disallow_basename" != "xyes"; then
30041       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30042 $as_echo "yes" >&6; }
30043       tst_allow_basename="yes"
30044     else
30045       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30046 $as_echo "no" >&6; }
30047       tst_allow_basename="no"
30048     fi
30049   fi
30050   #
30051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
30052 $as_echo_n "checking if basename might be used... " >&6; }
30053   if test "$tst_links_basename" = "yes" &&
30054      test "$tst_proto_basename" = "yes" &&
30055      test "$tst_compi_basename" = "yes" &&
30056      test "$tst_allow_basename" = "yes"; then
30057     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30058 $as_echo "yes" >&6; }
30059
30060 cat >>confdefs.h <<_ACEOF
30061 #define HAVE_BASENAME 1
30062 _ACEOF
30063
30064     ac_cv_func_basename="yes"
30065   else
30066     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30067 $as_echo "no" >&6; }
30068     ac_cv_func_basename="no"
30069   fi
30070
30071
30072 curl_includes_socket="\
30073 /* includes start */
30074 #ifdef HAVE_SYS_TYPES_H
30075 #  include <sys/types.h>
30076 #endif
30077 #ifdef HAVE_SOCKET_H
30078 #  include <socket.h>
30079 #endif
30080 /* includes end */"
30081   for ac_header in sys/types.h socket.h
30082 do :
30083   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30084 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
30085 "
30086 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30087   cat >>confdefs.h <<_ACEOF
30088 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30089 _ACEOF
30090
30091 fi
30092
30093 done
30094
30095
30096
30097       #
30098   tst_links_closesocket="unknown"
30099   tst_proto_closesocket="unknown"
30100   tst_compi_closesocket="unknown"
30101   tst_allow_closesocket="unknown"
30102   #
30103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
30104 $as_echo_n "checking if closesocket can be linked... " >&6; }
30105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30106 /* end confdefs.h.  */
30107
30108
30109       $curl_includes_winsock2
30110       $curl_includes_socket
30111
30112 int main (void)
30113 {
30114
30115       if(0 != closesocket(0))
30116         return 1;
30117
30118  ;
30119  return 0;
30120 }
30121
30122 _ACEOF
30123 if ac_fn_c_try_link "$LINENO"; then :
30124
30125     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30126 $as_echo "yes" >&6; }
30127     tst_links_closesocket="yes"
30128
30129 else
30130
30131     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30132 $as_echo "no" >&6; }
30133     tst_links_closesocket="no"
30134
30135 fi
30136 rm -f core conftest.err conftest.$ac_objext \
30137     conftest$ac_exeext conftest.$ac_ext
30138   #
30139   if test "$tst_links_closesocket" = "yes"; then
30140     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
30141 $as_echo_n "checking if closesocket is prototyped... " >&6; }
30142     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30143 /* end confdefs.h.  */
30144
30145       $curl_includes_winsock2
30146       $curl_includes_socket
30147
30148 _ACEOF
30149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30150   $EGREP "closesocket" >/dev/null 2>&1; then :
30151
30152       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30153 $as_echo "yes" >&6; }
30154       tst_proto_closesocket="yes"
30155
30156 else
30157
30158       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30159 $as_echo "no" >&6; }
30160       tst_proto_closesocket="no"
30161
30162 fi
30163 rm -f conftest*
30164
30165   fi
30166   #
30167   if test "$tst_proto_closesocket" = "yes"; then
30168     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
30169 $as_echo_n "checking if closesocket is compilable... " >&6; }
30170     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30171 /* end confdefs.h.  */
30172
30173
30174         $curl_includes_winsock2
30175         $curl_includes_socket
30176
30177 int main (void)
30178 {
30179
30180         if(0 != closesocket(0))
30181           return 1;
30182
30183  ;
30184  return 0;
30185 }
30186
30187 _ACEOF
30188 if ac_fn_c_try_compile "$LINENO"; then :
30189
30190       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30191 $as_echo "yes" >&6; }
30192       tst_compi_closesocket="yes"
30193
30194 else
30195
30196       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30197 $as_echo "no" >&6; }
30198       tst_compi_closesocket="no"
30199
30200 fi
30201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30202   fi
30203   #
30204   if test "$tst_compi_closesocket" = "yes"; then
30205     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
30206 $as_echo_n "checking if closesocket usage allowed... " >&6; }
30207     if test "x$curl_disallow_closesocket" != "xyes"; then
30208       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30209 $as_echo "yes" >&6; }
30210       tst_allow_closesocket="yes"
30211     else
30212       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30213 $as_echo "no" >&6; }
30214       tst_allow_closesocket="no"
30215     fi
30216   fi
30217   #
30218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
30219 $as_echo_n "checking if closesocket might be used... " >&6; }
30220   if test "$tst_links_closesocket" = "yes" &&
30221      test "$tst_proto_closesocket" = "yes" &&
30222      test "$tst_compi_closesocket" = "yes" &&
30223      test "$tst_allow_closesocket" = "yes"; then
30224     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30225 $as_echo "yes" >&6; }
30226
30227 cat >>confdefs.h <<_ACEOF
30228 #define HAVE_CLOSESOCKET 1
30229 _ACEOF
30230
30231     ac_cv_func_closesocket="yes"
30232   else
30233     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30234 $as_echo "no" >&6; }
30235     ac_cv_func_closesocket="no"
30236   fi
30237
30238
30239     #
30240   tst_links_closesocket_camel="unknown"
30241   tst_proto_closesocket_camel="unknown"
30242   tst_compi_closesocket_camel="unknown"
30243   tst_allow_closesocket_camel="unknown"
30244   #
30245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
30246 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
30247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30248 /* end confdefs.h.  */
30249
30250
30251       $curl_includes_sys_socket
30252
30253 int main (void)
30254 {
30255
30256       if(0 != CloseSocket(0))
30257         return 1;
30258
30259  ;
30260  return 0;
30261 }
30262
30263 _ACEOF
30264 if ac_fn_c_try_link "$LINENO"; then :
30265
30266     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30267 $as_echo "yes" >&6; }
30268     tst_links_closesocket_camel="yes"
30269
30270 else
30271
30272     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30273 $as_echo "no" >&6; }
30274     tst_links_closesocket_camel="no"
30275
30276 fi
30277 rm -f core conftest.err conftest.$ac_objext \
30278     conftest$ac_exeext conftest.$ac_ext
30279   #
30280   if test "$tst_links_closesocket_camel" = "yes"; then
30281     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
30282 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
30283     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30284 /* end confdefs.h.  */
30285
30286       $curl_includes_sys_socket
30287
30288 _ACEOF
30289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30290   $EGREP "CloseSocket" >/dev/null 2>&1; then :
30291
30292       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30293 $as_echo "yes" >&6; }
30294       tst_proto_closesocket_camel="yes"
30295
30296 else
30297
30298       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30299 $as_echo "no" >&6; }
30300       tst_proto_closesocket_camel="no"
30301
30302 fi
30303 rm -f conftest*
30304
30305   fi
30306   #
30307   if test "$tst_proto_closesocket_camel" = "yes"; then
30308     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
30309 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
30310     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30311 /* end confdefs.h.  */
30312
30313
30314         $curl_includes_sys_socket
30315
30316 int main (void)
30317 {
30318
30319         if(0 != CloseSocket(0))
30320           return 1;
30321
30322  ;
30323  return 0;
30324 }
30325
30326 _ACEOF
30327 if ac_fn_c_try_compile "$LINENO"; then :
30328
30329       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30330 $as_echo "yes" >&6; }
30331       tst_compi_closesocket_camel="yes"
30332
30333 else
30334
30335       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30336 $as_echo "no" >&6; }
30337       tst_compi_closesocket_camel="no"
30338
30339 fi
30340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30341   fi
30342   #
30343   if test "$tst_compi_closesocket_camel" = "yes"; then
30344     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
30345 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
30346     if test "x$curl_disallow_closesocket_camel" != "xyes"; then
30347       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30348 $as_echo "yes" >&6; }
30349       tst_allow_closesocket_camel="yes"
30350     else
30351       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30352 $as_echo "no" >&6; }
30353       tst_allow_closesocket_camel="no"
30354     fi
30355   fi
30356   #
30357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
30358 $as_echo_n "checking if CloseSocket might be used... " >&6; }
30359   if test "$tst_links_closesocket_camel" = "yes" &&
30360      test "$tst_proto_closesocket_camel" = "yes" &&
30361      test "$tst_compi_closesocket_camel" = "yes" &&
30362      test "$tst_allow_closesocket_camel" = "yes"; then
30363     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30364 $as_echo "yes" >&6; }
30365
30366 cat >>confdefs.h <<_ACEOF
30367 #define HAVE_CLOSESOCKET_CAMEL 1
30368 _ACEOF
30369
30370     ac_cv_func_closesocket_camel="yes"
30371   else
30372     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30373 $as_echo "no" >&6; }
30374     ac_cv_func_closesocket_camel="no"
30375   fi
30376
30377
30378         #
30379   tst_links_connect="unknown"
30380   tst_proto_connect="unknown"
30381   tst_compi_connect="unknown"
30382   tst_allow_connect="unknown"
30383   #
30384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
30385 $as_echo_n "checking if connect can be linked... " >&6; }
30386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30387 /* end confdefs.h.  */
30388
30389
30390       $curl_includes_winsock2
30391       $curl_includes_sys_socket
30392       $curl_includes_socket
30393
30394 int main (void)
30395 {
30396
30397       if(0 != connect(0, 0, 0))
30398         return 1;
30399
30400  ;
30401  return 0;
30402 }
30403
30404 _ACEOF
30405 if ac_fn_c_try_link "$LINENO"; then :
30406
30407     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30408 $as_echo "yes" >&6; }
30409     tst_links_connect="yes"
30410
30411 else
30412
30413     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30414 $as_echo "no" >&6; }
30415     tst_links_connect="no"
30416
30417 fi
30418 rm -f core conftest.err conftest.$ac_objext \
30419     conftest$ac_exeext conftest.$ac_ext
30420   #
30421   if test "$tst_links_connect" = "yes"; then
30422     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
30423 $as_echo_n "checking if connect is prototyped... " >&6; }
30424     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30425 /* end confdefs.h.  */
30426
30427       $curl_includes_winsock2
30428       $curl_includes_sys_socket
30429       $curl_includes_socket
30430
30431 _ACEOF
30432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30433   $EGREP "connect" >/dev/null 2>&1; then :
30434
30435       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30436 $as_echo "yes" >&6; }
30437       tst_proto_connect="yes"
30438
30439 else
30440
30441       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30442 $as_echo "no" >&6; }
30443       tst_proto_connect="no"
30444
30445 fi
30446 rm -f conftest*
30447
30448   fi
30449   #
30450   if test "$tst_proto_connect" = "yes"; then
30451     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
30452 $as_echo_n "checking if connect is compilable... " >&6; }
30453     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30454 /* end confdefs.h.  */
30455
30456
30457         $curl_includes_winsock2
30458         $curl_includes_sys_socket
30459         $curl_includes_socket
30460
30461 int main (void)
30462 {
30463
30464         if(0 != connect(0, 0, 0))
30465           return 1;
30466
30467  ;
30468  return 0;
30469 }
30470
30471 _ACEOF
30472 if ac_fn_c_try_compile "$LINENO"; then :
30473
30474       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30475 $as_echo "yes" >&6; }
30476       tst_compi_connect="yes"
30477
30478 else
30479
30480       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30481 $as_echo "no" >&6; }
30482       tst_compi_connect="no"
30483
30484 fi
30485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30486   fi
30487   #
30488   if test "$tst_compi_connect" = "yes"; then
30489     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
30490 $as_echo_n "checking if connect usage allowed... " >&6; }
30491     if test "x$curl_disallow_connect" != "xyes"; then
30492       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30493 $as_echo "yes" >&6; }
30494       tst_allow_connect="yes"
30495     else
30496       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30497 $as_echo "no" >&6; }
30498       tst_allow_connect="no"
30499     fi
30500   fi
30501   #
30502   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
30503 $as_echo_n "checking if connect might be used... " >&6; }
30504   if test "$tst_links_connect" = "yes" &&
30505      test "$tst_proto_connect" = "yes" &&
30506      test "$tst_compi_connect" = "yes" &&
30507      test "$tst_allow_connect" = "yes"; then
30508     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30509 $as_echo "yes" >&6; }
30510
30511 cat >>confdefs.h <<_ACEOF
30512 #define HAVE_CONNECT 1
30513 _ACEOF
30514
30515     ac_cv_func_connect="yes"
30516   else
30517     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30518 $as_echo "no" >&6; }
30519     ac_cv_func_connect="no"
30520   fi
30521
30522
30523 curl_includes_fcntl="\
30524 /* includes start */
30525 #ifdef HAVE_SYS_TYPES_H
30526 #  include <sys/types.h>
30527 #endif
30528 #ifdef HAVE_UNISTD_H
30529 #  include <unistd.h>
30530 #endif
30531 #ifdef HAVE_FCNTL_H
30532 #  include <fcntl.h>
30533 #endif
30534 /* includes end */"
30535   for ac_header in sys/types.h unistd.h fcntl.h
30536 do :
30537   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30538 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
30539 "
30540 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30541   cat >>confdefs.h <<_ACEOF
30542 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30543 _ACEOF
30544
30545 fi
30546
30547 done
30548
30549
30550
30551     #
30552   tst_links_fcntl="unknown"
30553   tst_proto_fcntl="unknown"
30554   tst_compi_fcntl="unknown"
30555   tst_allow_fcntl="unknown"
30556   #
30557   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
30558 $as_echo_n "checking if fcntl can be linked... " >&6; }
30559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30560 /* end confdefs.h.  */
30561
30562
30563 #define fcntl innocuous_fcntl
30564 #ifdef __STDC__
30565 # include <limits.h>
30566 #else
30567 # include <assert.h>
30568 #endif
30569 #undef fcntl
30570 #ifdef __cplusplus
30571 extern "C"
30572 #endif
30573 char fcntl ();
30574 #if defined __stub_fcntl || defined __stub___fcntl
30575 choke me
30576 #endif
30577
30578 int main (void)
30579 {
30580 return fcntl ();
30581  ;
30582  return 0;
30583 }
30584
30585 _ACEOF
30586 if ac_fn_c_try_link "$LINENO"; then :
30587
30588     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30589 $as_echo "yes" >&6; }
30590     tst_links_fcntl="yes"
30591
30592 else
30593
30594     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30595 $as_echo "no" >&6; }
30596     tst_links_fcntl="no"
30597
30598 fi
30599 rm -f core conftest.err conftest.$ac_objext \
30600     conftest$ac_exeext conftest.$ac_ext
30601   #
30602   if test "$tst_links_fcntl" = "yes"; then
30603     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
30604 $as_echo_n "checking if fcntl is prototyped... " >&6; }
30605     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30606 /* end confdefs.h.  */
30607
30608       $curl_includes_fcntl
30609
30610 _ACEOF
30611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30612   $EGREP "fcntl" >/dev/null 2>&1; then :
30613
30614       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30615 $as_echo "yes" >&6; }
30616       tst_proto_fcntl="yes"
30617
30618 else
30619
30620       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30621 $as_echo "no" >&6; }
30622       tst_proto_fcntl="no"
30623
30624 fi
30625 rm -f conftest*
30626
30627   fi
30628   #
30629   if test "$tst_proto_fcntl" = "yes"; then
30630     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
30631 $as_echo_n "checking if fcntl is compilable... " >&6; }
30632     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30633 /* end confdefs.h.  */
30634
30635
30636         $curl_includes_fcntl
30637
30638 int main (void)
30639 {
30640
30641         if(0 != fcntl(0, 0, 0))
30642           return 1;
30643
30644  ;
30645  return 0;
30646 }
30647
30648 _ACEOF
30649 if ac_fn_c_try_compile "$LINENO"; then :
30650
30651       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30652 $as_echo "yes" >&6; }
30653       tst_compi_fcntl="yes"
30654
30655 else
30656
30657       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30658 $as_echo "no" >&6; }
30659       tst_compi_fcntl="no"
30660
30661 fi
30662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30663   fi
30664   #
30665   if test "$tst_compi_fcntl" = "yes"; then
30666     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
30667 $as_echo_n "checking if fcntl usage allowed... " >&6; }
30668     if test "x$curl_disallow_fcntl" != "xyes"; then
30669       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30670 $as_echo "yes" >&6; }
30671       tst_allow_fcntl="yes"
30672     else
30673       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30674 $as_echo "no" >&6; }
30675       tst_allow_fcntl="no"
30676     fi
30677   fi
30678   #
30679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
30680 $as_echo_n "checking if fcntl might be used... " >&6; }
30681   if test "$tst_links_fcntl" = "yes" &&
30682      test "$tst_proto_fcntl" = "yes" &&
30683      test "$tst_compi_fcntl" = "yes" &&
30684      test "$tst_allow_fcntl" = "yes"; then
30685     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30686 $as_echo "yes" >&6; }
30687
30688 cat >>confdefs.h <<_ACEOF
30689 #define HAVE_FCNTL 1
30690 _ACEOF
30691
30692     ac_cv_func_fcntl="yes"
30693
30694   #
30695   tst_compi_fcntl_o_nonblock="unknown"
30696   tst_allow_fcntl_o_nonblock="unknown"
30697   #
30698   case $host_os in
30699     sunos4* | aix3* | beos*)
30700             curl_disallow_fcntl_o_nonblock="yes"
30701       ;;
30702   esac
30703   #
30704   if test "$ac_cv_func_fcntl" = "yes"; then
30705     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
30706 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
30707     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30708 /* end confdefs.h.  */
30709
30710
30711         $curl_includes_fcntl
30712
30713 int main (void)
30714 {
30715
30716         int flags = 0;
30717         if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
30718           return 1;
30719
30720  ;
30721  return 0;
30722 }
30723
30724 _ACEOF
30725 if ac_fn_c_try_compile "$LINENO"; then :
30726
30727       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30728 $as_echo "yes" >&6; }
30729       tst_compi_fcntl_o_nonblock="yes"
30730
30731 else
30732
30733       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30734 $as_echo "no" >&6; }
30735       tst_compi_fcntl_o_nonblock="no"
30736
30737 fi
30738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30739   fi
30740   #
30741   if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
30742     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
30743 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
30744     if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
30745       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30746 $as_echo "yes" >&6; }
30747       tst_allow_fcntl_o_nonblock="yes"
30748     else
30749       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30750 $as_echo "no" >&6; }
30751       tst_allow_fcntl_o_nonblock="no"
30752     fi
30753   fi
30754   #
30755   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
30756 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
30757   if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
30758      test "$tst_allow_fcntl_o_nonblock" = "yes"; then
30759     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30760 $as_echo "yes" >&6; }
30761
30762 cat >>confdefs.h <<_ACEOF
30763 #define HAVE_FCNTL_O_NONBLOCK 1
30764 _ACEOF
30765
30766     ac_cv_func_fcntl_o_nonblock="yes"
30767   else
30768     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30769 $as_echo "no" >&6; }
30770     ac_cv_func_fcntl_o_nonblock="no"
30771   fi
30772
30773   else
30774     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30775 $as_echo "no" >&6; }
30776     ac_cv_func_fcntl="no"
30777   fi
30778
30779
30780 curl_includes_stdio="\
30781 /* includes start */
30782 #ifdef HAVE_SYS_TYPES_H
30783 #  include <sys/types.h>
30784 #endif
30785 #ifdef HAVE_STDIO_H
30786 #  include <stdio.h>
30787 #endif
30788 /* includes end */"
30789   for ac_header in sys/types.h stdio.h
30790 do :
30791   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30792 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
30793 "
30794 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30795   cat >>confdefs.h <<_ACEOF
30796 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30797 _ACEOF
30798
30799 fi
30800
30801 done
30802
30803
30804
30805     #
30806   tst_links_fdopen="unknown"
30807   tst_proto_fdopen="unknown"
30808   tst_compi_fdopen="unknown"
30809   tst_allow_fdopen="unknown"
30810   #
30811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
30812 $as_echo_n "checking if fdopen can be linked... " >&6; }
30813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30814 /* end confdefs.h.  */
30815
30816
30817 #define fdopen innocuous_fdopen
30818 #ifdef __STDC__
30819 # include <limits.h>
30820 #else
30821 # include <assert.h>
30822 #endif
30823 #undef fdopen
30824 #ifdef __cplusplus
30825 extern "C"
30826 #endif
30827 char fdopen ();
30828 #if defined __stub_fdopen || defined __stub___fdopen
30829 choke me
30830 #endif
30831
30832 int main (void)
30833 {
30834 return fdopen ();
30835  ;
30836  return 0;
30837 }
30838
30839 _ACEOF
30840 if ac_fn_c_try_link "$LINENO"; then :
30841
30842     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30843 $as_echo "yes" >&6; }
30844     tst_links_fdopen="yes"
30845
30846 else
30847
30848     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30849 $as_echo "no" >&6; }
30850     tst_links_fdopen="no"
30851
30852 fi
30853 rm -f core conftest.err conftest.$ac_objext \
30854     conftest$ac_exeext conftest.$ac_ext
30855   #
30856   if test "$tst_links_fdopen" = "yes"; then
30857     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
30858 $as_echo_n "checking if fdopen is prototyped... " >&6; }
30859     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30860 /* end confdefs.h.  */
30861
30862       $curl_includes_stdio
30863
30864 _ACEOF
30865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30866   $EGREP "fdopen" >/dev/null 2>&1; then :
30867
30868       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30869 $as_echo "yes" >&6; }
30870       tst_proto_fdopen="yes"
30871
30872 else
30873
30874       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30875 $as_echo "no" >&6; }
30876       tst_proto_fdopen="no"
30877
30878 fi
30879 rm -f conftest*
30880
30881   fi
30882   #
30883   if test "$tst_proto_fdopen" = "yes"; then
30884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
30885 $as_echo_n "checking if fdopen is compilable... " >&6; }
30886     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30887 /* end confdefs.h.  */
30888
30889
30890         $curl_includes_stdio
30891
30892 int main (void)
30893 {
30894
30895         if(0 != fdopen(0, 0))
30896           return 1;
30897
30898  ;
30899  return 0;
30900 }
30901
30902 _ACEOF
30903 if ac_fn_c_try_compile "$LINENO"; then :
30904
30905       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30906 $as_echo "yes" >&6; }
30907       tst_compi_fdopen="yes"
30908
30909 else
30910
30911       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30912 $as_echo "no" >&6; }
30913       tst_compi_fdopen="no"
30914
30915 fi
30916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30917   fi
30918   #
30919   if test "$tst_compi_fdopen" = "yes"; then
30920     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
30921 $as_echo_n "checking if fdopen usage allowed... " >&6; }
30922     if test "x$curl_disallow_fdopen" != "xyes"; then
30923       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30924 $as_echo "yes" >&6; }
30925       tst_allow_fdopen="yes"
30926     else
30927       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30928 $as_echo "no" >&6; }
30929       tst_allow_fdopen="no"
30930     fi
30931   fi
30932   #
30933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
30934 $as_echo_n "checking if fdopen might be used... " >&6; }
30935   if test "$tst_links_fdopen" = "yes" &&
30936      test "$tst_proto_fdopen" = "yes" &&
30937      test "$tst_compi_fdopen" = "yes" &&
30938      test "$tst_allow_fdopen" = "yes"; then
30939     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30940 $as_echo "yes" >&6; }
30941
30942 cat >>confdefs.h <<_ACEOF
30943 #define HAVE_FDOPEN 1
30944 _ACEOF
30945
30946     ac_cv_func_fdopen="yes"
30947   else
30948     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30949 $as_echo "no" >&6; }
30950     ac_cv_func_fdopen="no"
30951   fi
30952
30953
30954 curl_includes_netdb="\
30955 /* includes start */
30956 #ifdef HAVE_SYS_TYPES_H
30957 #  include <sys/types.h>
30958 #endif
30959 #ifdef HAVE_NETDB_H
30960 #  include <netdb.h>
30961 #endif
30962 /* includes end */"
30963   for ac_header in sys/types.h netdb.h
30964 do :
30965   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30966 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
30967 "
30968 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30969   cat >>confdefs.h <<_ACEOF
30970 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30971 _ACEOF
30972
30973 fi
30974
30975 done
30976
30977
30978
30979         #
30980   tst_links_freeaddrinfo="unknown"
30981   tst_proto_freeaddrinfo="unknown"
30982   tst_compi_freeaddrinfo="unknown"
30983   tst_allow_freeaddrinfo="unknown"
30984   #
30985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
30986 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
30987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30988 /* end confdefs.h.  */
30989
30990
30991       $curl_includes_ws2tcpip
30992       $curl_includes_sys_socket
30993       $curl_includes_netdb
30994
30995 int main (void)
30996 {
30997
30998       freeaddrinfo(0);
30999
31000  ;
31001  return 0;
31002 }
31003
31004 _ACEOF
31005 if ac_fn_c_try_link "$LINENO"; then :
31006
31007     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31008 $as_echo "yes" >&6; }
31009     tst_links_freeaddrinfo="yes"
31010
31011 else
31012
31013     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31014 $as_echo "no" >&6; }
31015     tst_links_freeaddrinfo="no"
31016
31017 fi
31018 rm -f core conftest.err conftest.$ac_objext \
31019     conftest$ac_exeext conftest.$ac_ext
31020   #
31021   if test "$tst_links_freeaddrinfo" = "yes"; then
31022     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
31023 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
31024     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31025 /* end confdefs.h.  */
31026
31027       $curl_includes_ws2tcpip
31028       $curl_includes_sys_socket
31029       $curl_includes_netdb
31030
31031 _ACEOF
31032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31033   $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
31034
31035       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31036 $as_echo "yes" >&6; }
31037       tst_proto_freeaddrinfo="yes"
31038
31039 else
31040
31041       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31042 $as_echo "no" >&6; }
31043       tst_proto_freeaddrinfo="no"
31044
31045 fi
31046 rm -f conftest*
31047
31048   fi
31049   #
31050   if test "$tst_proto_freeaddrinfo" = "yes"; then
31051     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
31052 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
31053     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31054 /* end confdefs.h.  */
31055
31056
31057         $curl_includes_ws2tcpip
31058         $curl_includes_sys_socket
31059         $curl_includes_netdb
31060
31061 int main (void)
31062 {
31063
31064         freeaddrinfo(0);
31065
31066  ;
31067  return 0;
31068 }
31069
31070 _ACEOF
31071 if ac_fn_c_try_compile "$LINENO"; then :
31072
31073       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31074 $as_echo "yes" >&6; }
31075       tst_compi_freeaddrinfo="yes"
31076
31077 else
31078
31079       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31080 $as_echo "no" >&6; }
31081       tst_compi_freeaddrinfo="no"
31082
31083 fi
31084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31085   fi
31086   #
31087   if test "$tst_compi_freeaddrinfo" = "yes"; then
31088     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
31089 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
31090     if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
31091       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31092 $as_echo "yes" >&6; }
31093       tst_allow_freeaddrinfo="yes"
31094     else
31095       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31096 $as_echo "no" >&6; }
31097       tst_allow_freeaddrinfo="no"
31098     fi
31099   fi
31100   #
31101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
31102 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
31103   if test "$tst_links_freeaddrinfo" = "yes" &&
31104      test "$tst_proto_freeaddrinfo" = "yes" &&
31105      test "$tst_compi_freeaddrinfo" = "yes" &&
31106      test "$tst_allow_freeaddrinfo" = "yes"; then
31107     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31108 $as_echo "yes" >&6; }
31109
31110 cat >>confdefs.h <<_ACEOF
31111 #define HAVE_FREEADDRINFO 1
31112 _ACEOF
31113
31114     ac_cv_func_freeaddrinfo="yes"
31115   else
31116     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31117 $as_echo "no" >&6; }
31118     ac_cv_func_freeaddrinfo="no"
31119   fi
31120
31121
31122 curl_includes_ifaddrs="\
31123 /* includes start */
31124 #ifdef HAVE_SYS_TYPES_H
31125 #  include <sys/types.h>
31126 #endif
31127 #ifdef HAVE_SYS_SOCKET_H
31128 #  include <sys/socket.h>
31129 #endif
31130 #ifdef HAVE_NETINET_IN_H
31131 #  include <netinet/in.h>
31132 #endif
31133 #ifdef HAVE_IFADDRS_H
31134 #  include <ifaddrs.h>
31135 #endif
31136 /* includes end */"
31137   for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
31138 do :
31139   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31140 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
31141 "
31142 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31143   cat >>confdefs.h <<_ACEOF
31144 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31145 _ACEOF
31146
31147 fi
31148
31149 done
31150
31151
31152
31153     #
31154   tst_links_freeifaddrs="unknown"
31155   tst_proto_freeifaddrs="unknown"
31156   tst_compi_freeifaddrs="unknown"
31157   tst_allow_freeifaddrs="unknown"
31158   #
31159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
31160 $as_echo_n "checking if freeifaddrs can be linked... " >&6; }
31161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31162 /* end confdefs.h.  */
31163
31164
31165 #define freeifaddrs innocuous_freeifaddrs
31166 #ifdef __STDC__
31167 # include <limits.h>
31168 #else
31169 # include <assert.h>
31170 #endif
31171 #undef freeifaddrs
31172 #ifdef __cplusplus
31173 extern "C"
31174 #endif
31175 char freeifaddrs ();
31176 #if defined __stub_freeifaddrs || defined __stub___freeifaddrs
31177 choke me
31178 #endif
31179
31180 int main (void)
31181 {
31182 return freeifaddrs ();
31183  ;
31184  return 0;
31185 }
31186
31187 _ACEOF
31188 if ac_fn_c_try_link "$LINENO"; then :
31189
31190     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31191 $as_echo "yes" >&6; }
31192     tst_links_freeifaddrs="yes"
31193
31194 else
31195
31196     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31197 $as_echo "no" >&6; }
31198     tst_links_freeifaddrs="no"
31199
31200 fi
31201 rm -f core conftest.err conftest.$ac_objext \
31202     conftest$ac_exeext conftest.$ac_ext
31203   #
31204   if test "$tst_links_freeifaddrs" = "yes"; then
31205     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
31206 $as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
31207     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31208 /* end confdefs.h.  */
31209
31210       $curl_includes_ifaddrs
31211
31212 _ACEOF
31213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31214   $EGREP "freeifaddrs" >/dev/null 2>&1; then :
31215
31216       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31217 $as_echo "yes" >&6; }
31218       tst_proto_freeifaddrs="yes"
31219
31220 else
31221
31222       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31223 $as_echo "no" >&6; }
31224       tst_proto_freeifaddrs="no"
31225
31226 fi
31227 rm -f conftest*
31228
31229   fi
31230   #
31231   if test "$tst_proto_freeifaddrs" = "yes"; then
31232     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
31233 $as_echo_n "checking if freeifaddrs is compilable... " >&6; }
31234     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31235 /* end confdefs.h.  */
31236
31237
31238         $curl_includes_ifaddrs
31239
31240 int main (void)
31241 {
31242
31243         freeifaddrs(0);
31244
31245  ;
31246  return 0;
31247 }
31248
31249 _ACEOF
31250 if ac_fn_c_try_compile "$LINENO"; then :
31251
31252       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31253 $as_echo "yes" >&6; }
31254       tst_compi_freeifaddrs="yes"
31255
31256 else
31257
31258       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31259 $as_echo "no" >&6; }
31260       tst_compi_freeifaddrs="no"
31261
31262 fi
31263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31264   fi
31265   #
31266   if test "$tst_compi_freeifaddrs" = "yes"; then
31267     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
31268 $as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
31269     if test "x$curl_disallow_freeifaddrs" != "xyes"; then
31270       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31271 $as_echo "yes" >&6; }
31272       tst_allow_freeifaddrs="yes"
31273     else
31274       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31275 $as_echo "no" >&6; }
31276       tst_allow_freeifaddrs="no"
31277     fi
31278   fi
31279   #
31280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
31281 $as_echo_n "checking if freeifaddrs might be used... " >&6; }
31282   if test "$tst_links_freeifaddrs" = "yes" &&
31283      test "$tst_proto_freeifaddrs" = "yes" &&
31284      test "$tst_compi_freeifaddrs" = "yes" &&
31285      test "$tst_allow_freeifaddrs" = "yes"; then
31286     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31287 $as_echo "yes" >&6; }
31288
31289 cat >>confdefs.h <<_ACEOF
31290 #define HAVE_FREEIFADDRS 1
31291 _ACEOF
31292
31293     ac_cv_func_freeifaddrs="yes"
31294   else
31295     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31296 $as_echo "no" >&6; }
31297     ac_cv_func_freeifaddrs="no"
31298   fi
31299
31300
31301 curl_includes_sys_xattr="\
31302 /* includes start */
31303 #ifdef HAVE_SYS_TYPES_H
31304 #  include <sys/types.h>
31305 #endif
31306 #ifdef HAVE_SYS_XATTR_H
31307 #  include <sys/xattr.h>
31308 #endif
31309 /* includes end */"
31310   for ac_header in sys/types.h sys/xattr.h
31311 do :
31312   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31313 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
31314 "
31315 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31316   cat >>confdefs.h <<_ACEOF
31317 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31318 _ACEOF
31319
31320 fi
31321
31322 done
31323
31324
31325
31326     #
31327   tst_links_fsetxattr="unknown"
31328   tst_proto_fsetxattr="unknown"
31329   tst_compi_fsetxattr="unknown"
31330   tst_allow_fsetxattr="unknown"
31331   tst_nargs_fsetxattr="unknown"
31332   #
31333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
31334 $as_echo_n "checking if fsetxattr can be linked... " >&6; }
31335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31336 /* end confdefs.h.  */
31337
31338
31339 #define fsetxattr innocuous_fsetxattr
31340 #ifdef __STDC__
31341 # include <limits.h>
31342 #else
31343 # include <assert.h>
31344 #endif
31345 #undef fsetxattr
31346 #ifdef __cplusplus
31347 extern "C"
31348 #endif
31349 char fsetxattr ();
31350 #if defined __stub_fsetxattr || defined __stub___fsetxattr
31351 choke me
31352 #endif
31353
31354 int main (void)
31355 {
31356 return fsetxattr ();
31357  ;
31358  return 0;
31359 }
31360
31361 _ACEOF
31362 if ac_fn_c_try_link "$LINENO"; then :
31363
31364     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31365 $as_echo "yes" >&6; }
31366     tst_links_fsetxattr="yes"
31367
31368 else
31369
31370     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31371 $as_echo "no" >&6; }
31372     tst_links_fsetxattr="no"
31373
31374 fi
31375 rm -f core conftest.err conftest.$ac_objext \
31376     conftest$ac_exeext conftest.$ac_ext
31377   #
31378   if test "$tst_links_fsetxattr" = "yes"; then
31379     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
31380 $as_echo_n "checking if fsetxattr is prototyped... " >&6; }
31381     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31382 /* end confdefs.h.  */
31383
31384       $curl_includes_sys_xattr
31385
31386 _ACEOF
31387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31388   $EGREP "fsetxattr" >/dev/null 2>&1; then :
31389
31390       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31391 $as_echo "yes" >&6; }
31392       tst_proto_fsetxattr="yes"
31393
31394 else
31395
31396       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31397 $as_echo "no" >&6; }
31398       tst_proto_fsetxattr="no"
31399
31400 fi
31401 rm -f conftest*
31402
31403   fi
31404   #
31405   if test "$tst_proto_fsetxattr" = "yes"; then
31406     if test "$tst_nargs_fsetxattr" = "unknown"; then
31407       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
31408 $as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
31409       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31410 /* end confdefs.h.  */
31411
31412
31413           $curl_includes_sys_xattr
31414
31415 int main (void)
31416 {
31417
31418           if(0 != fsetxattr(0, 0, 0, 0, 0))
31419             return 1;
31420
31421  ;
31422  return 0;
31423 }
31424
31425 _ACEOF
31426 if ac_fn_c_try_compile "$LINENO"; then :
31427
31428         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31429 $as_echo "yes" >&6; }
31430         tst_compi_fsetxattr="yes"
31431         tst_nargs_fsetxattr="5"
31432
31433 else
31434
31435         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31436 $as_echo "no" >&6; }
31437         tst_compi_fsetxattr="no"
31438
31439 fi
31440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31441     fi
31442     if test "$tst_nargs_fsetxattr" = "unknown"; then
31443       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
31444 $as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
31445       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31446 /* end confdefs.h.  */
31447
31448
31449           $curl_includes_sys_xattr
31450
31451 int main (void)
31452 {
31453
31454           if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
31455             return 1;
31456
31457  ;
31458  return 0;
31459 }
31460
31461 _ACEOF
31462 if ac_fn_c_try_compile "$LINENO"; then :
31463
31464         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31465 $as_echo "yes" >&6; }
31466         tst_compi_fsetxattr="yes"
31467         tst_nargs_fsetxattr="6"
31468
31469 else
31470
31471         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31472 $as_echo "no" >&6; }
31473         tst_compi_fsetxattr="no"
31474
31475 fi
31476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31477     fi
31478     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
31479 $as_echo_n "checking if fsetxattr is compilable... " >&6; }
31480     if test "$tst_compi_fsetxattr" = "yes"; then
31481       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31482 $as_echo "yes" >&6; }
31483     else
31484       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31485 $as_echo "no" >&6; }
31486     fi
31487   fi
31488   #
31489   if test "$tst_compi_fsetxattr" = "yes"; then
31490     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
31491 $as_echo_n "checking if fsetxattr usage allowed... " >&6; }
31492     if test "x$curl_disallow_fsetxattr" != "xyes"; then
31493       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31494 $as_echo "yes" >&6; }
31495       tst_allow_fsetxattr="yes"
31496     else
31497       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31498 $as_echo "no" >&6; }
31499       tst_allow_fsetxattr="no"
31500     fi
31501   fi
31502   #
31503   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
31504 $as_echo_n "checking if fsetxattr might be used... " >&6; }
31505   if test "$tst_links_fsetxattr" = "yes" &&
31506      test "$tst_proto_fsetxattr" = "yes" &&
31507      test "$tst_compi_fsetxattr" = "yes" &&
31508      test "$tst_allow_fsetxattr" = "yes"; then
31509     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31510 $as_echo "yes" >&6; }
31511
31512 cat >>confdefs.h <<_ACEOF
31513 #define HAVE_FSETXATTR 1
31514 _ACEOF
31515
31516             #
31517     if test "$tst_nargs_fsetxattr" -eq "5"; then
31518
31519 $as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
31520
31521     elif test "$tst_nargs_fsetxattr" -eq "6"; then
31522
31523 $as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
31524
31525     fi
31526     #
31527     ac_cv_func_fsetxattr="yes"
31528   else
31529     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31530 $as_echo "no" >&6; }
31531     ac_cv_func_fsetxattr="no"
31532   fi
31533
31534
31535     #
31536   tst_links_ftruncate="unknown"
31537   tst_proto_ftruncate="unknown"
31538   tst_compi_ftruncate="unknown"
31539   tst_allow_ftruncate="unknown"
31540   #
31541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
31542 $as_echo_n "checking if ftruncate can be linked... " >&6; }
31543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31544 /* end confdefs.h.  */
31545
31546
31547 #define ftruncate innocuous_ftruncate
31548 #ifdef __STDC__
31549 # include <limits.h>
31550 #else
31551 # include <assert.h>
31552 #endif
31553 #undef ftruncate
31554 #ifdef __cplusplus
31555 extern "C"
31556 #endif
31557 char ftruncate ();
31558 #if defined __stub_ftruncate || defined __stub___ftruncate
31559 choke me
31560 #endif
31561
31562 int main (void)
31563 {
31564 return ftruncate ();
31565  ;
31566  return 0;
31567 }
31568
31569 _ACEOF
31570 if ac_fn_c_try_link "$LINENO"; then :
31571
31572     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31573 $as_echo "yes" >&6; }
31574     tst_links_ftruncate="yes"
31575
31576 else
31577
31578     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31579 $as_echo "no" >&6; }
31580     tst_links_ftruncate="no"
31581
31582 fi
31583 rm -f core conftest.err conftest.$ac_objext \
31584     conftest$ac_exeext conftest.$ac_ext
31585   #
31586   if test "$tst_links_ftruncate" = "yes"; then
31587     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
31588 $as_echo_n "checking if ftruncate is prototyped... " >&6; }
31589     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31590 /* end confdefs.h.  */
31591
31592       $curl_includes_unistd
31593
31594 _ACEOF
31595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31596   $EGREP "ftruncate" >/dev/null 2>&1; then :
31597
31598       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31599 $as_echo "yes" >&6; }
31600       tst_proto_ftruncate="yes"
31601
31602 else
31603
31604       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31605 $as_echo "no" >&6; }
31606       tst_proto_ftruncate="no"
31607
31608 fi
31609 rm -f conftest*
31610
31611   fi
31612   #
31613   if test "$tst_proto_ftruncate" = "yes"; then
31614     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
31615 $as_echo_n "checking if ftruncate is compilable... " >&6; }
31616     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31617 /* end confdefs.h.  */
31618
31619
31620         $curl_includes_unistd
31621
31622 int main (void)
31623 {
31624
31625         if(0 != ftruncate(0, 0))
31626           return 1;
31627
31628  ;
31629  return 0;
31630 }
31631
31632 _ACEOF
31633 if ac_fn_c_try_compile "$LINENO"; then :
31634
31635       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31636 $as_echo "yes" >&6; }
31637       tst_compi_ftruncate="yes"
31638
31639 else
31640
31641       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31642 $as_echo "no" >&6; }
31643       tst_compi_ftruncate="no"
31644
31645 fi
31646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31647   fi
31648   #
31649   if test "$tst_compi_ftruncate" = "yes"; then
31650     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
31651 $as_echo_n "checking if ftruncate usage allowed... " >&6; }
31652     if test "x$curl_disallow_ftruncate" != "xyes"; then
31653       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31654 $as_echo "yes" >&6; }
31655       tst_allow_ftruncate="yes"
31656     else
31657       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31658 $as_echo "no" >&6; }
31659       tst_allow_ftruncate="no"
31660     fi
31661   fi
31662   #
31663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
31664 $as_echo_n "checking if ftruncate might be used... " >&6; }
31665   if test "$tst_links_ftruncate" = "yes" &&
31666      test "$tst_proto_ftruncate" = "yes" &&
31667      test "$tst_compi_ftruncate" = "yes" &&
31668      test "$tst_allow_ftruncate" = "yes"; then
31669     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31670 $as_echo "yes" >&6; }
31671
31672 cat >>confdefs.h <<_ACEOF
31673 #define HAVE_FTRUNCATE 1
31674 _ACEOF
31675
31676     ac_cv_func_ftruncate="yes"
31677   else
31678     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31679 $as_echo "no" >&6; }
31680     ac_cv_func_ftruncate="no"
31681   fi
31682
31683
31684 curl_includes_stdlib="\
31685 /* includes start */
31686 #ifdef HAVE_SYS_TYPES_H
31687 #  include <sys/types.h>
31688 #endif
31689 #ifdef HAVE_STDLIB_H
31690 #  include <stdlib.h>
31691 #endif
31692 /* includes end */"
31693   for ac_header in sys/types.h stdlib.h
31694 do :
31695   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31696 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
31697 "
31698 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31699   cat >>confdefs.h <<_ACEOF
31700 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31701 _ACEOF
31702
31703 fi
31704
31705 done
31706
31707
31708
31709               #
31710   tst_links_getaddrinfo="unknown"
31711   tst_proto_getaddrinfo="unknown"
31712   tst_compi_getaddrinfo="unknown"
31713   tst_works_getaddrinfo="unknown"
31714   tst_allow_getaddrinfo="unknown"
31715   tst_tsafe_getaddrinfo="unknown"
31716   #
31717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
31718 $as_echo_n "checking if getaddrinfo 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       if(0 != getaddrinfo(0, 0, 0, 0))
31731         return 1;
31732
31733  ;
31734  return 0;
31735 }
31736
31737 _ACEOF
31738 if ac_fn_c_try_link "$LINENO"; then :
31739
31740     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31741 $as_echo "yes" >&6; }
31742     tst_links_getaddrinfo="yes"
31743
31744 else
31745
31746     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31747 $as_echo "no" >&6; }
31748     tst_links_getaddrinfo="no"
31749
31750 fi
31751 rm -f core conftest.err conftest.$ac_objext \
31752     conftest$ac_exeext conftest.$ac_ext
31753   #
31754   if test "$tst_links_getaddrinfo" = "yes"; then
31755     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
31756 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
31757     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31758 /* end confdefs.h.  */
31759
31760       $curl_includes_ws2tcpip
31761       $curl_includes_sys_socket
31762       $curl_includes_netdb
31763
31764 _ACEOF
31765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31766   $EGREP "getaddrinfo" >/dev/null 2>&1; then :
31767
31768       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31769 $as_echo "yes" >&6; }
31770       tst_proto_getaddrinfo="yes"
31771
31772 else
31773
31774       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31775 $as_echo "no" >&6; }
31776       tst_proto_getaddrinfo="no"
31777
31778 fi
31779 rm -f conftest*
31780
31781   fi
31782   #
31783   if test "$tst_proto_getaddrinfo" = "yes"; then
31784     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
31785 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
31786     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31787 /* end confdefs.h.  */
31788
31789
31790         $curl_includes_ws2tcpip
31791         $curl_includes_sys_socket
31792         $curl_includes_netdb
31793
31794 int main (void)
31795 {
31796
31797         if(0 != getaddrinfo(0, 0, 0, 0))
31798           return 1;
31799
31800  ;
31801  return 0;
31802 }
31803
31804 _ACEOF
31805 if ac_fn_c_try_compile "$LINENO"; then :
31806
31807       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31808 $as_echo "yes" >&6; }
31809       tst_compi_getaddrinfo="yes"
31810
31811 else
31812
31813       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31814 $as_echo "no" >&6; }
31815       tst_compi_getaddrinfo="no"
31816
31817 fi
31818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31819   fi
31820   #
31821     if test "x$cross_compiling" != "xyes" &&
31822     test "$tst_compi_getaddrinfo" = "yes"; then
31823     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
31824 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
31825     if test "$cross_compiling" = yes; then :
31826   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31828 as_fn_error $? "cannot run test program while cross compiling
31829 See \`config.log' for more details" "$LINENO" 5; }
31830 else
31831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31832 /* end confdefs.h.  */
31833
31834
31835         $curl_includes_ws2tcpip
31836         $curl_includes_stdlib
31837         $curl_includes_string
31838         $curl_includes_sys_socket
31839         $curl_includes_netdb
31840
31841 int main (void)
31842 {
31843
31844         struct addrinfo hints;
31845         struct addrinfo *ai = 0;
31846         int error;
31847
31848         #ifdef HAVE_WINSOCK2_H
31849         WSADATA wsa;
31850         if (WSAStartup(MAKEWORD(2,2), &wsa))
31851                 exit(2);
31852         #endif
31853
31854         memset(&hints, 0, sizeof(hints));
31855         hints.ai_flags = AI_NUMERICHOST;
31856         hints.ai_family = AF_UNSPEC;
31857         hints.ai_socktype = SOCK_STREAM;
31858         error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
31859         if(error || !ai)
31860           exit(1); /* fail */
31861         else
31862           exit(0);
31863
31864  ;
31865  return 0;
31866 }
31867
31868 _ACEOF
31869 if ac_fn_c_try_run "$LINENO"; then :
31870
31871       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31872 $as_echo "yes" >&6; }
31873       tst_works_getaddrinfo="yes"
31874
31875 else
31876
31877       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31878 $as_echo "no" >&6; }
31879       tst_works_getaddrinfo="no"
31880
31881 fi
31882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31883   conftest.$ac_objext conftest.beam conftest.$ac_ext
31884 fi
31885
31886   fi
31887   #
31888   if test "$tst_compi_getaddrinfo" = "yes" &&
31889     test "$tst_works_getaddrinfo" != "no"; then
31890     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
31891 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
31892     if test "x$curl_disallow_getaddrinfo" != "xyes"; then
31893       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31894 $as_echo "yes" >&6; }
31895       tst_allow_getaddrinfo="yes"
31896     else
31897       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31898 $as_echo "no" >&6; }
31899       tst_allow_getaddrinfo="no"
31900     fi
31901   fi
31902   #
31903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
31904 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
31905   if test "$tst_links_getaddrinfo" = "yes" &&
31906      test "$tst_proto_getaddrinfo" = "yes" &&
31907      test "$tst_compi_getaddrinfo" = "yes" &&
31908      test "$tst_allow_getaddrinfo" = "yes" &&
31909      test "$tst_works_getaddrinfo" != "no"; then
31910     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31911 $as_echo "yes" >&6; }
31912
31913 cat >>confdefs.h <<_ACEOF
31914 #define HAVE_GETADDRINFO 1
31915 _ACEOF
31916
31917     ac_cv_func_getaddrinfo="yes"
31918   else
31919     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31920 $as_echo "no" >&6; }
31921     ac_cv_func_getaddrinfo="no"
31922     ac_cv_func_getaddrinfo_threadsafe="no"
31923   fi
31924   #
31925   if test "$ac_cv_func_getaddrinfo" = "yes"; then
31926     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
31927 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
31928     case $host_os in
31929       aix[1234].* | aix5.[01].*)
31930                 tst_tsafe_getaddrinfo="no"
31931         ;;
31932       aix*)
31933                 tst_tsafe_getaddrinfo="yes"
31934         ;;
31935       darwin[12345].*)
31936                 tst_tsafe_getaddrinfo="no"
31937         ;;
31938       darwin*)
31939                 tst_tsafe_getaddrinfo="yes"
31940         ;;
31941       freebsd[1234].* | freebsd5.[1234]*)
31942                 tst_tsafe_getaddrinfo="no"
31943         ;;
31944       freebsd*)
31945                 tst_tsafe_getaddrinfo="yes"
31946         ;;
31947       hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
31948                 tst_tsafe_getaddrinfo="no"
31949         ;;
31950       hpux*)
31951                 tst_tsafe_getaddrinfo="yes"
31952         ;;
31953       netbsd[123].*)
31954                 tst_tsafe_getaddrinfo="no"
31955         ;;
31956       netbsd*)
31957                 tst_tsafe_getaddrinfo="yes"
31958         ;;
31959       *bsd*)
31960                 tst_tsafe_getaddrinfo="no"
31961         ;;
31962       solaris2*)
31963                 tst_tsafe_getaddrinfo="yes"
31964         ;;
31965     esac
31966     if test "$tst_tsafe_getaddrinfo" = "unknown" &&
31967        test "$ac_cv_native_windows" = "yes"; then
31968       tst_tsafe_getaddrinfo="yes"
31969     fi
31970     if test "$tst_tsafe_getaddrinfo" = "unknown"; then
31971
31972
31973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31974 /* end confdefs.h.  */
31975
31976
31977         $curl_includes_sys_socket
31978         $curl_includes_netdb
31979
31980 int main (void)
31981 {
31982 #ifdef h_errno
31983   return 0;
31984 #else
31985   force compilation error
31986 #endif
31987 }
31988
31989
31990 _ACEOF
31991 if ac_fn_c_try_compile "$LINENO"; then :
31992
31993     tst_symbol_defined="yes"
31994
31995 else
31996
31997     tst_symbol_defined="no"
31998
31999 fi
32000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32001   if test "$tst_symbol_defined" = "yes"; then
32002     curl_cv_have_def_h_errno=yes
32003
32004   else
32005     curl_cv_have_def_h_errno=no
32006
32007   fi
32008
32009       if test "$curl_cv_have_def_h_errno" = "yes"; then
32010         tst_h_errno_macro="yes"
32011       else
32012         tst_h_errno_macro="no"
32013       fi
32014       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32015 /* end confdefs.h.  */
32016
32017
32018           $curl_includes_sys_socket
32019           $curl_includes_netdb
32020
32021 int main (void)
32022 {
32023
32024           h_errno = 2;
32025           if(0 != h_errno)
32026             return 1;
32027
32028  ;
32029  return 0;
32030 }
32031
32032 _ACEOF
32033 if ac_fn_c_try_compile "$LINENO"; then :
32034
32035         tst_h_errno_modifiable_lvalue="yes"
32036
32037 else
32038
32039         tst_h_errno_modifiable_lvalue="no"
32040
32041 fi
32042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32043       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32044 /* end confdefs.h.  */
32045
32046
32047
32048 int main (void)
32049 {
32050
32051 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
32052           return 0;
32053 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
32054           return 0;
32055 #else
32056           force compilation error
32057 #endif
32058
32059  ;
32060  return 0;
32061 }
32062
32063 _ACEOF
32064 if ac_fn_c_try_compile "$LINENO"; then :
32065
32066         tst_h_errno_sbs_issue_7="yes"
32067
32068 else
32069
32070         tst_h_errno_sbs_issue_7="no"
32071
32072 fi
32073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32074       if test "$tst_h_errno_macro" = "no" &&
32075          test "$tst_h_errno_modifiable_lvalue" = "no" &&
32076          test "$tst_h_errno_sbs_issue_7" = "no"; then
32077         tst_tsafe_getaddrinfo="no"
32078       else
32079         tst_tsafe_getaddrinfo="yes"
32080       fi
32081     fi
32082     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
32083 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
32084     if test "$tst_tsafe_getaddrinfo" = "yes"; then
32085
32086 cat >>confdefs.h <<_ACEOF
32087 #define HAVE_GETADDRINFO_THREADSAFE 1
32088 _ACEOF
32089
32090       ac_cv_func_getaddrinfo_threadsafe="yes"
32091     else
32092       ac_cv_func_getaddrinfo_threadsafe="no"
32093     fi
32094   fi
32095
32096
32097       #
32098   tst_links_gai_strerror="unknown"
32099   tst_proto_gai_strerror="unknown"
32100   tst_compi_gai_strerror="unknown"
32101   tst_allow_gai_strerror="unknown"
32102   #
32103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
32104 $as_echo_n "checking if gai_strerror can be linked... " >&6; }
32105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32106 /* end confdefs.h.  */
32107
32108
32109       $curl_includes_winsock2
32110       $curl_includes_netdb
32111
32112 int main (void)
32113 {
32114
32115       if(0 != gai_strerror(0))
32116         return 1;
32117
32118  ;
32119  return 0;
32120 }
32121
32122 _ACEOF
32123 if ac_fn_c_try_link "$LINENO"; then :
32124
32125     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32126 $as_echo "yes" >&6; }
32127     tst_links_gai_strerror="yes"
32128
32129 else
32130
32131     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32132 $as_echo "no" >&6; }
32133     tst_links_gai_strerror="no"
32134
32135 fi
32136 rm -f core conftest.err conftest.$ac_objext \
32137     conftest$ac_exeext conftest.$ac_ext
32138   #
32139   if test "$tst_links_gai_strerror" = "yes"; then
32140     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
32141 $as_echo_n "checking if gai_strerror is prototyped... " >&6; }
32142     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32143 /* end confdefs.h.  */
32144
32145       $curl_includes_winsock2
32146       $curl_includes_netdb
32147
32148 _ACEOF
32149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32150   $EGREP "gai_strerror" >/dev/null 2>&1; then :
32151
32152       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32153 $as_echo "yes" >&6; }
32154       tst_proto_gai_strerror="yes"
32155
32156 else
32157
32158       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32159 $as_echo "no" >&6; }
32160       tst_proto_gai_strerror="no"
32161
32162 fi
32163 rm -f conftest*
32164
32165   fi
32166   #
32167   if test "$tst_proto_gai_strerror" = "yes"; then
32168     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
32169 $as_echo_n "checking if gai_strerror is compilable... " >&6; }
32170     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32171 /* end confdefs.h.  */
32172
32173
32174         $curl_includes_winsock2
32175         $curl_includes_netdb
32176
32177 int main (void)
32178 {
32179
32180         if(0 != gai_strerror(0))
32181           return 1;
32182
32183  ;
32184  return 0;
32185 }
32186
32187 _ACEOF
32188 if ac_fn_c_try_compile "$LINENO"; then :
32189
32190       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32191 $as_echo "yes" >&6; }
32192       tst_compi_gai_strerror="yes"
32193
32194 else
32195
32196       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32197 $as_echo "no" >&6; }
32198       tst_compi_gai_strerror="no"
32199
32200 fi
32201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32202   fi
32203   #
32204   if test "$tst_compi_gai_strerror" = "yes"; then
32205     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
32206 $as_echo_n "checking if gai_strerror usage allowed... " >&6; }
32207     if test "x$curl_disallow_gai_strerror" != "xyes"; then
32208       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32209 $as_echo "yes" >&6; }
32210       tst_allow_gai_strerror="yes"
32211     else
32212       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32213 $as_echo "no" >&6; }
32214       tst_allow_gai_strerror="no"
32215     fi
32216   fi
32217   #
32218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
32219 $as_echo_n "checking if gai_strerror might be used... " >&6; }
32220   if test "$tst_links_gai_strerror" = "yes" &&
32221      test "$tst_proto_gai_strerror" = "yes" &&
32222      test "$tst_compi_gai_strerror" = "yes" &&
32223      test "$tst_allow_gai_strerror" = "yes"; then
32224     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32225 $as_echo "yes" >&6; }
32226
32227 cat >>confdefs.h <<_ACEOF
32228 #define HAVE_GAI_STRERROR 1
32229 _ACEOF
32230
32231     ac_cv_func_gai_strerror="yes"
32232   else
32233     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32234 $as_echo "no" >&6; }
32235     ac_cv_func_gai_strerror="no"
32236   fi
32237
32238
32239       #
32240   tst_links_gethostbyaddr="unknown"
32241   tst_proto_gethostbyaddr="unknown"
32242   tst_compi_gethostbyaddr="unknown"
32243   tst_allow_gethostbyaddr="unknown"
32244   #
32245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
32246 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
32247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32248 /* end confdefs.h.  */
32249
32250
32251       $curl_includes_winsock2
32252       $curl_includes_netdb
32253
32254 int main (void)
32255 {
32256
32257       if(0 != gethostbyaddr(0, 0, 0))
32258         return 1;
32259
32260  ;
32261  return 0;
32262 }
32263
32264 _ACEOF
32265 if ac_fn_c_try_link "$LINENO"; then :
32266
32267     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32268 $as_echo "yes" >&6; }
32269     tst_links_gethostbyaddr="yes"
32270
32271 else
32272
32273     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32274 $as_echo "no" >&6; }
32275     tst_links_gethostbyaddr="no"
32276
32277 fi
32278 rm -f core conftest.err conftest.$ac_objext \
32279     conftest$ac_exeext conftest.$ac_ext
32280   #
32281   if test "$tst_links_gethostbyaddr" = "yes"; then
32282     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
32283 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
32284     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32285 /* end confdefs.h.  */
32286
32287       $curl_includes_winsock2
32288       $curl_includes_netdb
32289
32290 _ACEOF
32291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32292   $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
32293
32294       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32295 $as_echo "yes" >&6; }
32296       tst_proto_gethostbyaddr="yes"
32297
32298 else
32299
32300       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32301 $as_echo "no" >&6; }
32302       tst_proto_gethostbyaddr="no"
32303
32304 fi
32305 rm -f conftest*
32306
32307   fi
32308   #
32309   if test "$tst_proto_gethostbyaddr" = "yes"; then
32310     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
32311 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
32312     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32313 /* end confdefs.h.  */
32314
32315
32316         $curl_includes_winsock2
32317         $curl_includes_netdb
32318
32319 int main (void)
32320 {
32321
32322         if(0 != gethostbyaddr(0, 0, 0))
32323           return 1;
32324
32325  ;
32326  return 0;
32327 }
32328
32329 _ACEOF
32330 if ac_fn_c_try_compile "$LINENO"; then :
32331
32332       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32333 $as_echo "yes" >&6; }
32334       tst_compi_gethostbyaddr="yes"
32335
32336 else
32337
32338       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32339 $as_echo "no" >&6; }
32340       tst_compi_gethostbyaddr="no"
32341
32342 fi
32343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32344   fi
32345   #
32346   if test "$tst_compi_gethostbyaddr" = "yes"; then
32347     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
32348 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
32349     if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
32350       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32351 $as_echo "yes" >&6; }
32352       tst_allow_gethostbyaddr="yes"
32353     else
32354       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32355 $as_echo "no" >&6; }
32356       tst_allow_gethostbyaddr="no"
32357     fi
32358   fi
32359   #
32360   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
32361 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
32362   if test "$tst_links_gethostbyaddr" = "yes" &&
32363      test "$tst_proto_gethostbyaddr" = "yes" &&
32364      test "$tst_compi_gethostbyaddr" = "yes" &&
32365      test "$tst_allow_gethostbyaddr" = "yes"; then
32366     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32367 $as_echo "yes" >&6; }
32368
32369 cat >>confdefs.h <<_ACEOF
32370 #define HAVE_GETHOSTBYADDR 1
32371 _ACEOF
32372
32373     ac_cv_func_gethostbyaddr="yes"
32374   else
32375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32376 $as_echo "no" >&6; }
32377     ac_cv_func_gethostbyaddr="no"
32378   fi
32379
32380
32381     #
32382   tst_links_gethostbyaddr_r="unknown"
32383   tst_proto_gethostbyaddr_r="unknown"
32384   tst_compi_gethostbyaddr_r="unknown"
32385   tst_allow_gethostbyaddr_r="unknown"
32386   tst_nargs_gethostbyaddr_r="unknown"
32387   #
32388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
32389 $as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
32390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32391 /* end confdefs.h.  */
32392
32393
32394 #define gethostbyaddr_r innocuous_gethostbyaddr_r
32395 #ifdef __STDC__
32396 # include <limits.h>
32397 #else
32398 # include <assert.h>
32399 #endif
32400 #undef gethostbyaddr_r
32401 #ifdef __cplusplus
32402 extern "C"
32403 #endif
32404 char gethostbyaddr_r ();
32405 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
32406 choke me
32407 #endif
32408
32409 int main (void)
32410 {
32411 return gethostbyaddr_r ();
32412  ;
32413  return 0;
32414 }
32415
32416 _ACEOF
32417 if ac_fn_c_try_link "$LINENO"; then :
32418
32419     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32420 $as_echo "yes" >&6; }
32421     tst_links_gethostbyaddr_r="yes"
32422
32423 else
32424
32425     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32426 $as_echo "no" >&6; }
32427     tst_links_gethostbyaddr_r="no"
32428
32429 fi
32430 rm -f core conftest.err conftest.$ac_objext \
32431     conftest$ac_exeext conftest.$ac_ext
32432   #
32433   if test "$tst_links_gethostbyaddr_r" = "yes"; then
32434     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
32435 $as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
32436     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32437 /* end confdefs.h.  */
32438
32439       $curl_includes_netdb
32440
32441 _ACEOF
32442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32443   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
32444
32445       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32446 $as_echo "yes" >&6; }
32447       tst_proto_gethostbyaddr_r="yes"
32448
32449 else
32450
32451       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32452 $as_echo "no" >&6; }
32453       tst_proto_gethostbyaddr_r="no"
32454
32455 fi
32456 rm -f conftest*
32457
32458   fi
32459   #
32460   if test "$tst_proto_gethostbyaddr_r" = "yes"; then
32461     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32462       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
32463 $as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
32464       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32465 /* end confdefs.h.  */
32466
32467
32468           $curl_includes_netdb
32469
32470 int main (void)
32471 {
32472
32473           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
32474             return 1;
32475
32476  ;
32477  return 0;
32478 }
32479
32480 _ACEOF
32481 if ac_fn_c_try_compile "$LINENO"; then :
32482
32483         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32484 $as_echo "yes" >&6; }
32485         tst_compi_gethostbyaddr_r="yes"
32486         tst_nargs_gethostbyaddr_r="5"
32487
32488 else
32489
32490         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32491 $as_echo "no" >&6; }
32492         tst_compi_gethostbyaddr_r="no"
32493
32494 fi
32495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32496     fi
32497     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32498       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
32499 $as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
32500       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32501 /* end confdefs.h.  */
32502
32503
32504           $curl_includes_netdb
32505
32506 int main (void)
32507 {
32508
32509           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
32510             return 1;
32511
32512  ;
32513  return 0;
32514 }
32515
32516 _ACEOF
32517 if ac_fn_c_try_compile "$LINENO"; then :
32518
32519         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32520 $as_echo "yes" >&6; }
32521         tst_compi_gethostbyaddr_r="yes"
32522         tst_nargs_gethostbyaddr_r="7"
32523
32524 else
32525
32526         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32527 $as_echo "no" >&6; }
32528         tst_compi_gethostbyaddr_r="no"
32529
32530 fi
32531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32532     fi
32533     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32534       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
32535 $as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
32536       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32537 /* end confdefs.h.  */
32538
32539
32540           $curl_includes_netdb
32541
32542 int main (void)
32543 {
32544
32545           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
32546             return 1;
32547
32548  ;
32549  return 0;
32550 }
32551
32552 _ACEOF
32553 if ac_fn_c_try_compile "$LINENO"; then :
32554
32555         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32556 $as_echo "yes" >&6; }
32557         tst_compi_gethostbyaddr_r="yes"
32558         tst_nargs_gethostbyaddr_r="8"
32559
32560 else
32561
32562         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32563 $as_echo "no" >&6; }
32564         tst_compi_gethostbyaddr_r="no"
32565
32566 fi
32567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32568     fi
32569     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
32570 $as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
32571     if test "$tst_compi_gethostbyaddr_r" = "yes"; then
32572       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32573 $as_echo "yes" >&6; }
32574     else
32575       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32576 $as_echo "no" >&6; }
32577     fi
32578   fi
32579   #
32580   if test "$tst_compi_gethostbyaddr_r" = "yes"; then
32581     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
32582 $as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
32583     if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
32584       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32585 $as_echo "yes" >&6; }
32586       tst_allow_gethostbyaddr_r="yes"
32587     else
32588       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32589 $as_echo "no" >&6; }
32590       tst_allow_gethostbyaddr_r="no"
32591     fi
32592   fi
32593   #
32594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
32595 $as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
32596   if test "$tst_links_gethostbyaddr_r" = "yes" &&
32597      test "$tst_proto_gethostbyaddr_r" = "yes" &&
32598      test "$tst_compi_gethostbyaddr_r" = "yes" &&
32599      test "$tst_allow_gethostbyaddr_r" = "yes"; then
32600     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32601 $as_echo "yes" >&6; }
32602
32603 cat >>confdefs.h <<_ACEOF
32604 #define HAVE_GETHOSTBYADDR_R 1
32605 _ACEOF
32606
32607             #
32608     if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
32609
32610 $as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
32611
32612     elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
32613
32614 $as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
32615
32616     elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
32617
32618 $as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
32619
32620     fi
32621     #
32622     ac_cv_func_gethostbyaddr_r="yes"
32623   else
32624     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32625 $as_echo "no" >&6; }
32626     ac_cv_func_gethostbyaddr_r="no"
32627   fi
32628
32629
32630       #
32631   tst_links_gethostbyname="unknown"
32632   tst_proto_gethostbyname="unknown"
32633   tst_compi_gethostbyname="unknown"
32634   tst_allow_gethostbyname="unknown"
32635   #
32636   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
32637 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
32638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32639 /* end confdefs.h.  */
32640
32641
32642       $curl_includes_winsock2
32643       $curl_includes_netdb
32644
32645 int main (void)
32646 {
32647
32648       if(0 != gethostbyname(0))
32649         return 1;
32650
32651  ;
32652  return 0;
32653 }
32654
32655 _ACEOF
32656 if ac_fn_c_try_link "$LINENO"; then :
32657
32658     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32659 $as_echo "yes" >&6; }
32660     tst_links_gethostbyname="yes"
32661
32662 else
32663
32664     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32665 $as_echo "no" >&6; }
32666     tst_links_gethostbyname="no"
32667
32668 fi
32669 rm -f core conftest.err conftest.$ac_objext \
32670     conftest$ac_exeext conftest.$ac_ext
32671   #
32672   if test "$tst_links_gethostbyname" = "yes"; then
32673     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
32674 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
32675     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32676 /* end confdefs.h.  */
32677
32678       $curl_includes_winsock2
32679       $curl_includes_netdb
32680
32681 _ACEOF
32682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32683   $EGREP "gethostbyname" >/dev/null 2>&1; then :
32684
32685       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32686 $as_echo "yes" >&6; }
32687       tst_proto_gethostbyname="yes"
32688
32689 else
32690
32691       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32692 $as_echo "no" >&6; }
32693       tst_proto_gethostbyname="no"
32694
32695 fi
32696 rm -f conftest*
32697
32698   fi
32699   #
32700   if test "$tst_proto_gethostbyname" = "yes"; then
32701     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
32702 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
32703     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32704 /* end confdefs.h.  */
32705
32706
32707         $curl_includes_winsock2
32708         $curl_includes_netdb
32709
32710 int main (void)
32711 {
32712
32713         if(0 != gethostbyname(0))
32714           return 1;
32715
32716  ;
32717  return 0;
32718 }
32719
32720 _ACEOF
32721 if ac_fn_c_try_compile "$LINENO"; then :
32722
32723       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32724 $as_echo "yes" >&6; }
32725       tst_compi_gethostbyname="yes"
32726
32727 else
32728
32729       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32730 $as_echo "no" >&6; }
32731       tst_compi_gethostbyname="no"
32732
32733 fi
32734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32735   fi
32736   #
32737   if test "$tst_compi_gethostbyname" = "yes"; then
32738     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
32739 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
32740     if test "x$curl_disallow_gethostbyname" != "xyes"; then
32741       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32742 $as_echo "yes" >&6; }
32743       tst_allow_gethostbyname="yes"
32744     else
32745       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32746 $as_echo "no" >&6; }
32747       tst_allow_gethostbyname="no"
32748     fi
32749   fi
32750   #
32751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
32752 $as_echo_n "checking if gethostbyname might be used... " >&6; }
32753   if test "$tst_links_gethostbyname" = "yes" &&
32754      test "$tst_proto_gethostbyname" = "yes" &&
32755      test "$tst_compi_gethostbyname" = "yes" &&
32756      test "$tst_allow_gethostbyname" = "yes"; then
32757     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32758 $as_echo "yes" >&6; }
32759
32760 cat >>confdefs.h <<_ACEOF
32761 #define HAVE_GETHOSTBYNAME 1
32762 _ACEOF
32763
32764     ac_cv_func_gethostbyname="yes"
32765   else
32766     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32767 $as_echo "no" >&6; }
32768     ac_cv_func_gethostbyname="no"
32769   fi
32770
32771
32772     #
32773   tst_links_gethostbyname_r="unknown"
32774   tst_proto_gethostbyname_r="unknown"
32775   tst_compi_gethostbyname_r="unknown"
32776   tst_allow_gethostbyname_r="unknown"
32777   tst_nargs_gethostbyname_r="unknown"
32778   #
32779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
32780 $as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
32781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32782 /* end confdefs.h.  */
32783
32784
32785 #define gethostbyname_r innocuous_gethostbyname_r
32786 #ifdef __STDC__
32787 # include <limits.h>
32788 #else
32789 # include <assert.h>
32790 #endif
32791 #undef gethostbyname_r
32792 #ifdef __cplusplus
32793 extern "C"
32794 #endif
32795 char gethostbyname_r ();
32796 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
32797 choke me
32798 #endif
32799
32800 int main (void)
32801 {
32802 return gethostbyname_r ();
32803  ;
32804  return 0;
32805 }
32806
32807 _ACEOF
32808 if ac_fn_c_try_link "$LINENO"; then :
32809
32810     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32811 $as_echo "yes" >&6; }
32812     tst_links_gethostbyname_r="yes"
32813
32814 else
32815
32816     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32817 $as_echo "no" >&6; }
32818     tst_links_gethostbyname_r="no"
32819
32820 fi
32821 rm -f core conftest.err conftest.$ac_objext \
32822     conftest$ac_exeext conftest.$ac_ext
32823   #
32824   if test "$tst_links_gethostbyname_r" = "yes"; then
32825     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
32826 $as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
32827     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32828 /* end confdefs.h.  */
32829
32830       $curl_includes_netdb
32831
32832 _ACEOF
32833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32834   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
32835
32836       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32837 $as_echo "yes" >&6; }
32838       tst_proto_gethostbyname_r="yes"
32839
32840 else
32841
32842       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32843 $as_echo "no" >&6; }
32844       tst_proto_gethostbyname_r="no"
32845
32846 fi
32847 rm -f conftest*
32848
32849   fi
32850   #
32851   if test "$tst_proto_gethostbyname_r" = "yes"; then
32852     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
32853       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
32854 $as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
32855       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32856 /* end confdefs.h.  */
32857
32858
32859           $curl_includes_netdb
32860
32861 int main (void)
32862 {
32863
32864           if(0 != gethostbyname_r(0, 0, 0))
32865             return 1;
32866
32867  ;
32868  return 0;
32869 }
32870
32871 _ACEOF
32872 if ac_fn_c_try_compile "$LINENO"; then :
32873
32874         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32875 $as_echo "yes" >&6; }
32876         tst_compi_gethostbyname_r="yes"
32877         tst_nargs_gethostbyname_r="3"
32878
32879 else
32880
32881         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32882 $as_echo "no" >&6; }
32883         tst_compi_gethostbyname_r="no"
32884
32885 fi
32886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32887     fi
32888     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
32889       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
32890 $as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
32891       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32892 /* end confdefs.h.  */
32893
32894
32895           $curl_includes_netdb
32896
32897 int main (void)
32898 {
32899
32900           if(0 != gethostbyname_r(0, 0, 0, 0, 0))
32901             return 1;
32902
32903  ;
32904  return 0;
32905 }
32906
32907 _ACEOF
32908 if ac_fn_c_try_compile "$LINENO"; then :
32909
32910         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32911 $as_echo "yes" >&6; }
32912         tst_compi_gethostbyname_r="yes"
32913         tst_nargs_gethostbyname_r="5"
32914
32915 else
32916
32917         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32918 $as_echo "no" >&6; }
32919         tst_compi_gethostbyname_r="no"
32920
32921 fi
32922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32923     fi
32924     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
32925       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
32926 $as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
32927       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32928 /* end confdefs.h.  */
32929
32930
32931           $curl_includes_netdb
32932
32933 int main (void)
32934 {
32935
32936           if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
32937             return 1;
32938
32939  ;
32940  return 0;
32941 }
32942
32943 _ACEOF
32944 if ac_fn_c_try_compile "$LINENO"; then :
32945
32946         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32947 $as_echo "yes" >&6; }
32948         tst_compi_gethostbyname_r="yes"
32949         tst_nargs_gethostbyname_r="6"
32950
32951 else
32952
32953         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32954 $as_echo "no" >&6; }
32955         tst_compi_gethostbyname_r="no"
32956
32957 fi
32958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32959     fi
32960     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
32961 $as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
32962     if test "$tst_compi_gethostbyname_r" = "yes"; then
32963       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32964 $as_echo "yes" >&6; }
32965     else
32966       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32967 $as_echo "no" >&6; }
32968     fi
32969   fi
32970   #
32971   if test "$tst_compi_gethostbyname_r" = "yes"; then
32972     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
32973 $as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
32974     if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
32975       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32976 $as_echo "yes" >&6; }
32977       tst_allow_gethostbyname_r="yes"
32978     else
32979       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32980 $as_echo "no" >&6; }
32981       tst_allow_gethostbyname_r="no"
32982     fi
32983   fi
32984   #
32985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
32986 $as_echo_n "checking if gethostbyname_r might be used... " >&6; }
32987   if test "$tst_links_gethostbyname_r" = "yes" &&
32988      test "$tst_proto_gethostbyname_r" = "yes" &&
32989      test "$tst_compi_gethostbyname_r" = "yes" &&
32990      test "$tst_allow_gethostbyname_r" = "yes"; then
32991     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32992 $as_echo "yes" >&6; }
32993
32994 cat >>confdefs.h <<_ACEOF
32995 #define HAVE_GETHOSTBYNAME_R 1
32996 _ACEOF
32997
32998             #
32999     if test "$tst_nargs_gethostbyname_r" -eq "3"; then
33000
33001 $as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
33002
33003     elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
33004
33005 $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
33006
33007     elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
33008
33009 $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
33010
33011     fi
33012     #
33013     ac_cv_func_gethostbyname_r="yes"
33014   else
33015     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33016 $as_echo "no" >&6; }
33017     ac_cv_func_gethostbyname_r="no"
33018   fi
33019
33020
33021         #
33022   tst_links_gethostname="unknown"
33023   tst_proto_gethostname="unknown"
33024   tst_compi_gethostname="unknown"
33025   tst_allow_gethostname="unknown"
33026   #
33027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
33028 $as_echo_n "checking if gethostname can be linked... " >&6; }
33029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33030 /* end confdefs.h.  */
33031
33032
33033       $curl_includes_winsock2
33034       $curl_includes_unistd
33035
33036 int main (void)
33037 {
33038
33039       if(0 != gethostname(0, 0))
33040         return 1;
33041
33042  ;
33043  return 0;
33044 }
33045
33046 _ACEOF
33047 if ac_fn_c_try_link "$LINENO"; then :
33048
33049     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33050 $as_echo "yes" >&6; }
33051     tst_links_gethostname="yes"
33052
33053 else
33054
33055     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33056 $as_echo "no" >&6; }
33057     tst_links_gethostname="no"
33058
33059 fi
33060 rm -f core conftest.err conftest.$ac_objext \
33061     conftest$ac_exeext conftest.$ac_ext
33062   #
33063   if test "$tst_links_gethostname" = "yes"; then
33064     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
33065 $as_echo_n "checking if gethostname is prototyped... " >&6; }
33066     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33067 /* end confdefs.h.  */
33068
33069       $curl_includes_winsock2
33070       $curl_includes_unistd
33071
33072 _ACEOF
33073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33074   $EGREP "gethostname" >/dev/null 2>&1; then :
33075
33076       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33077 $as_echo "yes" >&6; }
33078       tst_proto_gethostname="yes"
33079
33080 else
33081
33082       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33083 $as_echo "no" >&6; }
33084       tst_proto_gethostname="no"
33085
33086 fi
33087 rm -f conftest*
33088
33089   fi
33090   #
33091   if test "$tst_proto_gethostname" = "yes"; then
33092     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
33093 $as_echo_n "checking if gethostname is compilable... " >&6; }
33094     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33095 /* end confdefs.h.  */
33096
33097
33098         $curl_includes_winsock2
33099         $curl_includes_unistd
33100
33101 int main (void)
33102 {
33103
33104         if(0 != gethostname(0, 0))
33105           return 1;
33106
33107  ;
33108  return 0;
33109 }
33110
33111 _ACEOF
33112 if ac_fn_c_try_compile "$LINENO"; then :
33113
33114       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33115 $as_echo "yes" >&6; }
33116       tst_compi_gethostname="yes"
33117
33118 else
33119
33120       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33121 $as_echo "no" >&6; }
33122       tst_compi_gethostname="no"
33123
33124 fi
33125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33126   fi
33127   #
33128   if test "$tst_compi_gethostname" = "yes"; then
33129     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
33130 $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
33131     tst_gethostname_type_arg2="unknown"
33132     for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
33133       for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
33134         if test "$tst_gethostname_type_arg2" = "unknown"; then
33135           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33136 /* end confdefs.h.  */
33137
33138
33139               $curl_includes_winsock2
33140               $curl_includes_unistd
33141               $curl_preprocess_callconv
33142               extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
33143
33144 int main (void)
33145 {
33146
33147               if(0 != gethostname(0, 0))
33148                 return 1;
33149
33150  ;
33151  return 0;
33152 }
33153
33154 _ACEOF
33155 if ac_fn_c_try_compile "$LINENO"; then :
33156
33157             tst_gethostname_type_arg2="$tst_arg2"
33158
33159 fi
33160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33161         fi
33162       done
33163     done
33164     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
33165 $as_echo "$tst_gethostname_type_arg2" >&6; }
33166     if test "$tst_gethostname_type_arg2" != "unknown"; then
33167
33168 cat >>confdefs.h <<_ACEOF
33169 #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
33170 _ACEOF
33171
33172     fi
33173   fi
33174   #
33175   if test "$tst_compi_gethostname" = "yes"; then
33176     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
33177 $as_echo_n "checking if gethostname usage allowed... " >&6; }
33178     if test "x$curl_disallow_gethostname" != "xyes"; then
33179       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33180 $as_echo "yes" >&6; }
33181       tst_allow_gethostname="yes"
33182     else
33183       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33184 $as_echo "no" >&6; }
33185       tst_allow_gethostname="no"
33186     fi
33187   fi
33188   #
33189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
33190 $as_echo_n "checking if gethostname might be used... " >&6; }
33191   if test "$tst_links_gethostname" = "yes" &&
33192      test "$tst_proto_gethostname" = "yes" &&
33193      test "$tst_compi_gethostname" = "yes" &&
33194      test "$tst_allow_gethostname" = "yes"; then
33195     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33196 $as_echo "yes" >&6; }
33197
33198 cat >>confdefs.h <<_ACEOF
33199 #define HAVE_GETHOSTNAME 1
33200 _ACEOF
33201
33202     ac_cv_func_gethostname="yes"
33203   else
33204     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33205 $as_echo "no" >&6; }
33206     ac_cv_func_gethostname="no"
33207   fi
33208
33209
33210       #
33211   tst_links_getifaddrs="unknown"
33212   tst_proto_getifaddrs="unknown"
33213   tst_compi_getifaddrs="unknown"
33214   tst_works_getifaddrs="unknown"
33215   tst_allow_getifaddrs="unknown"
33216   #
33217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
33218 $as_echo_n "checking if getifaddrs can be linked... " >&6; }
33219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33220 /* end confdefs.h.  */
33221
33222
33223 #define getifaddrs innocuous_getifaddrs
33224 #ifdef __STDC__
33225 # include <limits.h>
33226 #else
33227 # include <assert.h>
33228 #endif
33229 #undef getifaddrs
33230 #ifdef __cplusplus
33231 extern "C"
33232 #endif
33233 char getifaddrs ();
33234 #if defined __stub_getifaddrs || defined __stub___getifaddrs
33235 choke me
33236 #endif
33237
33238 int main (void)
33239 {
33240 return getifaddrs ();
33241  ;
33242  return 0;
33243 }
33244
33245 _ACEOF
33246 if ac_fn_c_try_link "$LINENO"; then :
33247
33248     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33249 $as_echo "yes" >&6; }
33250     tst_links_getifaddrs="yes"
33251
33252 else
33253
33254     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33255 $as_echo "no" >&6; }
33256     tst_links_getifaddrs="no"
33257
33258 fi
33259 rm -f core conftest.err conftest.$ac_objext \
33260     conftest$ac_exeext conftest.$ac_ext
33261   #
33262   if test "$tst_links_getifaddrs" = "yes"; then
33263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
33264 $as_echo_n "checking if getifaddrs is prototyped... " >&6; }
33265     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33266 /* end confdefs.h.  */
33267
33268       $curl_includes_ifaddrs
33269
33270 _ACEOF
33271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33272   $EGREP "getifaddrs" >/dev/null 2>&1; then :
33273
33274       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33275 $as_echo "yes" >&6; }
33276       tst_proto_getifaddrs="yes"
33277
33278 else
33279
33280       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33281 $as_echo "no" >&6; }
33282       tst_proto_getifaddrs="no"
33283
33284 fi
33285 rm -f conftest*
33286
33287   fi
33288   #
33289   if test "$tst_proto_getifaddrs" = "yes"; then
33290     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
33291 $as_echo_n "checking if getifaddrs is compilable... " >&6; }
33292     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33293 /* end confdefs.h.  */
33294
33295
33296         $curl_includes_ifaddrs
33297
33298 int main (void)
33299 {
33300
33301         if(0 != getifaddrs(0))
33302           return 1;
33303
33304  ;
33305  return 0;
33306 }
33307
33308 _ACEOF
33309 if ac_fn_c_try_compile "$LINENO"; then :
33310
33311       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33312 $as_echo "yes" >&6; }
33313       tst_compi_getifaddrs="yes"
33314
33315 else
33316
33317       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33318 $as_echo "no" >&6; }
33319       tst_compi_getifaddrs="no"
33320
33321 fi
33322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33323   fi
33324   #
33325     if test "x$cross_compiling" != "xyes" &&
33326     test "$tst_compi_getifaddrs" = "yes"; then
33327     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
33328 $as_echo_n "checking if getifaddrs seems to work... " >&6; }
33329     if test "$cross_compiling" = yes; then :
33330   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33332 as_fn_error $? "cannot run test program while cross compiling
33333 See \`config.log' for more details" "$LINENO" 5; }
33334 else
33335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33336 /* end confdefs.h.  */
33337
33338
33339         $curl_includes_stdlib
33340         $curl_includes_ifaddrs
33341
33342 int main (void)
33343 {
33344
33345         struct ifaddrs *ifa = 0;
33346         int error;
33347
33348         error = getifaddrs(&ifa);
33349         if(error || !ifa)
33350           exit(1); /* fail */
33351         else
33352           exit(0);
33353
33354  ;
33355  return 0;
33356 }
33357
33358 _ACEOF
33359 if ac_fn_c_try_run "$LINENO"; then :
33360
33361       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33362 $as_echo "yes" >&6; }
33363       tst_works_getifaddrs="yes"
33364
33365 else
33366
33367       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33368 $as_echo "no" >&6; }
33369       tst_works_getifaddrs="no"
33370
33371 fi
33372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33373   conftest.$ac_objext conftest.beam conftest.$ac_ext
33374 fi
33375
33376   fi
33377   #
33378   if test "$tst_compi_getifaddrs" = "yes" &&
33379     test "$tst_works_getifaddrs" != "no"; then
33380     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
33381 $as_echo_n "checking if getifaddrs usage allowed... " >&6; }
33382     if test "x$curl_disallow_getifaddrs" != "xyes"; then
33383       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33384 $as_echo "yes" >&6; }
33385       tst_allow_getifaddrs="yes"
33386     else
33387       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33388 $as_echo "no" >&6; }
33389       tst_allow_getifaddrs="no"
33390     fi
33391   fi
33392   #
33393   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
33394 $as_echo_n "checking if getifaddrs might be used... " >&6; }
33395   if test "$tst_links_getifaddrs" = "yes" &&
33396      test "$tst_proto_getifaddrs" = "yes" &&
33397      test "$tst_compi_getifaddrs" = "yes" &&
33398      test "$tst_allow_getifaddrs" = "yes" &&
33399      test "$tst_works_getifaddrs" != "no"; then
33400     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33401 $as_echo "yes" >&6; }
33402
33403 cat >>confdefs.h <<_ACEOF
33404 #define HAVE_GETIFADDRS 1
33405 _ACEOF
33406
33407     ac_cv_func_getifaddrs="yes"
33408   else
33409     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33410 $as_echo "no" >&6; }
33411     ac_cv_func_getifaddrs="no"
33412   fi
33413
33414
33415     #
33416   tst_links_getservbyport_r="unknown"
33417   tst_proto_getservbyport_r="unknown"
33418   tst_compi_getservbyport_r="unknown"
33419   tst_allow_getservbyport_r="unknown"
33420   tst_nargs_getservbyport_r="unknown"
33421   #
33422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
33423 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
33424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33425 /* end confdefs.h.  */
33426
33427
33428 #define getservbyport_r innocuous_getservbyport_r
33429 #ifdef __STDC__
33430 # include <limits.h>
33431 #else
33432 # include <assert.h>
33433 #endif
33434 #undef getservbyport_r
33435 #ifdef __cplusplus
33436 extern "C"
33437 #endif
33438 char getservbyport_r ();
33439 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
33440 choke me
33441 #endif
33442
33443 int main (void)
33444 {
33445 return getservbyport_r ();
33446  ;
33447  return 0;
33448 }
33449
33450 _ACEOF
33451 if ac_fn_c_try_link "$LINENO"; then :
33452
33453     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33454 $as_echo "yes" >&6; }
33455     tst_links_getservbyport_r="yes"
33456
33457 else
33458
33459     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33460 $as_echo "no" >&6; }
33461     tst_links_getservbyport_r="no"
33462
33463 fi
33464 rm -f core conftest.err conftest.$ac_objext \
33465     conftest$ac_exeext conftest.$ac_ext
33466   #
33467   if test "$tst_links_getservbyport_r" = "yes"; then
33468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
33469 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
33470     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33471 /* end confdefs.h.  */
33472
33473       $curl_includes_netdb
33474
33475 _ACEOF
33476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33477   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
33478
33479       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33480 $as_echo "yes" >&6; }
33481       tst_proto_getservbyport_r="yes"
33482
33483 else
33484
33485       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33486 $as_echo "no" >&6; }
33487       tst_proto_getservbyport_r="no"
33488
33489 fi
33490 rm -f conftest*
33491
33492   fi
33493   #
33494   if test "$tst_proto_getservbyport_r" = "yes"; then
33495     if test "$tst_nargs_getservbyport_r" = "unknown"; then
33496       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
33497 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
33498       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33499 /* end confdefs.h.  */
33500
33501
33502           $curl_includes_netdb
33503
33504 int main (void)
33505 {
33506
33507           if(0 != getservbyport_r(0, 0, 0, 0))
33508             return 1;
33509
33510  ;
33511  return 0;
33512 }
33513
33514 _ACEOF
33515 if ac_fn_c_try_compile "$LINENO"; then :
33516
33517         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33518 $as_echo "yes" >&6; }
33519         tst_compi_getservbyport_r="yes"
33520         tst_nargs_getservbyport_r="4"
33521
33522 else
33523
33524         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33525 $as_echo "no" >&6; }
33526         tst_compi_getservbyport_r="no"
33527
33528 fi
33529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33530     fi
33531     if test "$tst_nargs_getservbyport_r" = "unknown"; then
33532       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
33533 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
33534       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33535 /* end confdefs.h.  */
33536
33537
33538           $curl_includes_netdb
33539
33540 int main (void)
33541 {
33542
33543           if(0 != getservbyport_r(0, 0, 0, 0, 0))
33544             return 1;
33545
33546  ;
33547  return 0;
33548 }
33549
33550 _ACEOF
33551 if ac_fn_c_try_compile "$LINENO"; then :
33552
33553         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33554 $as_echo "yes" >&6; }
33555         tst_compi_getservbyport_r="yes"
33556         tst_nargs_getservbyport_r="5"
33557
33558 else
33559
33560         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33561 $as_echo "no" >&6; }
33562         tst_compi_getservbyport_r="no"
33563
33564 fi
33565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33566     fi
33567     if test "$tst_nargs_getservbyport_r" = "unknown"; then
33568       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
33569 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
33570       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33571 /* end confdefs.h.  */
33572
33573
33574           $curl_includes_netdb
33575
33576 int main (void)
33577 {
33578
33579           if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
33580             return 1;
33581
33582  ;
33583  return 0;
33584 }
33585
33586 _ACEOF
33587 if ac_fn_c_try_compile "$LINENO"; then :
33588
33589         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33590 $as_echo "yes" >&6; }
33591         tst_compi_getservbyport_r="yes"
33592         tst_nargs_getservbyport_r="6"
33593
33594 else
33595
33596         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33597 $as_echo "no" >&6; }
33598         tst_compi_getservbyport_r="no"
33599
33600 fi
33601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33602     fi
33603     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
33604 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
33605     if test "$tst_compi_getservbyport_r" = "yes"; then
33606       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33607 $as_echo "yes" >&6; }
33608     else
33609       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33610 $as_echo "no" >&6; }
33611     fi
33612   fi
33613   #
33614   if test "$tst_compi_getservbyport_r" = "yes"; then
33615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
33616 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
33617     if test "x$curl_disallow_getservbyport_r" != "xyes"; then
33618       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33619 $as_echo "yes" >&6; }
33620       tst_allow_getservbyport_r="yes"
33621     else
33622       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33623 $as_echo "no" >&6; }
33624       tst_allow_getservbyport_r="no"
33625     fi
33626   fi
33627   #
33628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
33629 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
33630   if test "$tst_links_getservbyport_r" = "yes" &&
33631      test "$tst_proto_getservbyport_r" = "yes" &&
33632      test "$tst_compi_getservbyport_r" = "yes" &&
33633      test "$tst_allow_getservbyport_r" = "yes"; then
33634     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33635 $as_echo "yes" >&6; }
33636
33637 cat >>confdefs.h <<_ACEOF
33638 #define HAVE_GETSERVBYPORT_R 1
33639 _ACEOF
33640
33641
33642 cat >>confdefs.h <<_ACEOF
33643 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
33644 _ACEOF
33645
33646     if test "$tst_nargs_getservbyport_r" -eq "4"; then
33647
33648 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
33649
33650     else
33651
33652 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
33653
33654     fi
33655     ac_cv_func_getservbyport_r="yes"
33656   else
33657     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33658 $as_echo "no" >&6; }
33659     ac_cv_func_getservbyport_r="no"
33660   fi
33661
33662
33663 curl_includes_time="\
33664 /* includes start */
33665 #ifdef HAVE_SYS_TYPES_H
33666 #  include <sys/types.h>
33667 #endif
33668 #ifdef HAVE_SYS_TIME_H
33669 #  include <sys/time.h>
33670 #  ifdef TIME_WITH_SYS_TIME
33671 #    include <time.h>
33672 #  endif
33673 #else
33674 #  ifdef HAVE_TIME_H
33675 #    include <time.h>
33676 #  endif
33677 #endif
33678 /* includes end */"
33679   for ac_header in sys/types.h sys/time.h time.h
33680 do :
33681   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33682 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
33683 "
33684 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33685   cat >>confdefs.h <<_ACEOF
33686 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33687 _ACEOF
33688
33689 fi
33690
33691 done
33692
33693
33694
33695       #
33696   tst_links_gmtime_r="unknown"
33697   tst_proto_gmtime_r="unknown"
33698   tst_compi_gmtime_r="unknown"
33699   tst_works_gmtime_r="unknown"
33700   tst_allow_gmtime_r="unknown"
33701   #
33702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
33703 $as_echo_n "checking if gmtime_r can be linked... " >&6; }
33704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33705 /* end confdefs.h.  */
33706
33707
33708 #define gmtime_r innocuous_gmtime_r
33709 #ifdef __STDC__
33710 # include <limits.h>
33711 #else
33712 # include <assert.h>
33713 #endif
33714 #undef gmtime_r
33715 #ifdef __cplusplus
33716 extern "C"
33717 #endif
33718 char gmtime_r ();
33719 #if defined __stub_gmtime_r || defined __stub___gmtime_r
33720 choke me
33721 #endif
33722
33723 int main (void)
33724 {
33725 return gmtime_r ();
33726  ;
33727  return 0;
33728 }
33729
33730 _ACEOF
33731 if ac_fn_c_try_link "$LINENO"; then :
33732
33733     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33734 $as_echo "yes" >&6; }
33735     tst_links_gmtime_r="yes"
33736
33737 else
33738
33739     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33740 $as_echo "no" >&6; }
33741     tst_links_gmtime_r="no"
33742
33743 fi
33744 rm -f core conftest.err conftest.$ac_objext \
33745     conftest$ac_exeext conftest.$ac_ext
33746   #
33747   if test "$tst_links_gmtime_r" = "yes"; then
33748     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
33749 $as_echo_n "checking if gmtime_r is prototyped... " >&6; }
33750     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33751 /* end confdefs.h.  */
33752
33753       $curl_includes_time
33754
33755 _ACEOF
33756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33757   $EGREP "gmtime_r" >/dev/null 2>&1; then :
33758
33759       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33760 $as_echo "yes" >&6; }
33761       tst_proto_gmtime_r="yes"
33762
33763 else
33764
33765       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33766 $as_echo "no" >&6; }
33767       tst_proto_gmtime_r="no"
33768
33769 fi
33770 rm -f conftest*
33771
33772   fi
33773   #
33774   if test "$tst_proto_gmtime_r" = "yes"; then
33775     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
33776 $as_echo_n "checking if gmtime_r is compilable... " >&6; }
33777     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33778 /* end confdefs.h.  */
33779
33780
33781         $curl_includes_time
33782
33783 int main (void)
33784 {
33785
33786         if(0 != gmtime_r(0, 0))
33787           return 1;
33788
33789  ;
33790  return 0;
33791 }
33792
33793 _ACEOF
33794 if ac_fn_c_try_compile "$LINENO"; then :
33795
33796       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33797 $as_echo "yes" >&6; }
33798       tst_compi_gmtime_r="yes"
33799
33800 else
33801
33802       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33803 $as_echo "no" >&6; }
33804       tst_compi_gmtime_r="no"
33805
33806 fi
33807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33808   fi
33809   #
33810     if test "x$cross_compiling" != "xyes" &&
33811     test "$tst_compi_gmtime_r" = "yes"; then
33812     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
33813 $as_echo_n "checking if gmtime_r seems to work... " >&6; }
33814     if test "$cross_compiling" = yes; then :
33815   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33817 as_fn_error $? "cannot run test program while cross compiling
33818 See \`config.log' for more details" "$LINENO" 5; }
33819 else
33820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33821 /* end confdefs.h.  */
33822
33823
33824         $curl_includes_stdlib
33825         $curl_includes_time
33826
33827 int main (void)
33828 {
33829
33830         time_t local = 1170352587;
33831         struct tm *gmt = 0;
33832         struct tm result;
33833         gmt = gmtime_r(&local, &result);
33834         if(gmt)
33835           exit(0);
33836         else
33837           exit(1);
33838
33839  ;
33840  return 0;
33841 }
33842
33843 _ACEOF
33844 if ac_fn_c_try_run "$LINENO"; then :
33845
33846       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33847 $as_echo "yes" >&6; }
33848       tst_works_gmtime_r="yes"
33849
33850 else
33851
33852       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33853 $as_echo "no" >&6; }
33854       tst_works_gmtime_r="no"
33855
33856 fi
33857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33858   conftest.$ac_objext conftest.beam conftest.$ac_ext
33859 fi
33860
33861   fi
33862   #
33863   if test "$tst_compi_gmtime_r" = "yes" &&
33864     test "$tst_works_gmtime_r" != "no"; then
33865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
33866 $as_echo_n "checking if gmtime_r usage allowed... " >&6; }
33867     if test "x$curl_disallow_gmtime_r" != "xyes"; then
33868       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33869 $as_echo "yes" >&6; }
33870       tst_allow_gmtime_r="yes"
33871     else
33872       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33873 $as_echo "no" >&6; }
33874       tst_allow_gmtime_r="no"
33875     fi
33876   fi
33877   #
33878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
33879 $as_echo_n "checking if gmtime_r might be used... " >&6; }
33880   if test "$tst_links_gmtime_r" = "yes" &&
33881      test "$tst_proto_gmtime_r" = "yes" &&
33882      test "$tst_compi_gmtime_r" = "yes" &&
33883      test "$tst_allow_gmtime_r" = "yes" &&
33884      test "$tst_works_gmtime_r" != "no"; then
33885     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33886 $as_echo "yes" >&6; }
33887
33888 cat >>confdefs.h <<_ACEOF
33889 #define HAVE_GMTIME_R 1
33890 _ACEOF
33891
33892     ac_cv_func_gmtime_r="yes"
33893   else
33894     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33895 $as_echo "no" >&6; }
33896     ac_cv_func_gmtime_r="no"
33897   fi
33898
33899
33900 curl_includes_arpa_inet="\
33901 /* includes start */
33902 #ifdef HAVE_SYS_TYPES_H
33903 #  include <sys/types.h>
33904 #endif
33905 #ifdef HAVE_SYS_SOCKET_H
33906 #  include <sys/socket.h>
33907 #endif
33908 #ifdef HAVE_NETINET_IN_H
33909 #  include <netinet/in.h>
33910 #endif
33911 #ifdef HAVE_ARPA_INET_H
33912 #  include <arpa/inet.h>
33913 #endif
33914 #ifdef HAVE_WINSOCK2_H
33915 #include <winsock2.h>
33916 #include <ws2tcpip.h>
33917 #endif
33918 /* includes end */"
33919   for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
33920 do :
33921   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33922 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
33923 "
33924 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33925   cat >>confdefs.h <<_ACEOF
33926 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33927 _ACEOF
33928
33929 fi
33930
33931 done
33932
33933
33934
33935     #
33936   tst_links_inet_ntoa_r="unknown"
33937   tst_proto_inet_ntoa_r="unknown"
33938   tst_compi_inet_ntoa_r="unknown"
33939   tst_allow_inet_ntoa_r="unknown"
33940   tst_nargs_inet_ntoa_r="unknown"
33941   #
33942   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
33943 $as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
33944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33945 /* end confdefs.h.  */
33946
33947
33948 #define inet_ntoa_r innocuous_inet_ntoa_r
33949 #ifdef __STDC__
33950 # include <limits.h>
33951 #else
33952 # include <assert.h>
33953 #endif
33954 #undef inet_ntoa_r
33955 #ifdef __cplusplus
33956 extern "C"
33957 #endif
33958 char inet_ntoa_r ();
33959 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
33960 choke me
33961 #endif
33962
33963 int main (void)
33964 {
33965 return inet_ntoa_r ();
33966  ;
33967  return 0;
33968 }
33969
33970 _ACEOF
33971 if ac_fn_c_try_link "$LINENO"; then :
33972
33973     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33974 $as_echo "yes" >&6; }
33975     tst_links_inet_ntoa_r="yes"
33976
33977 else
33978
33979     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33980 $as_echo "no" >&6; }
33981     tst_links_inet_ntoa_r="no"
33982
33983 fi
33984 rm -f core conftest.err conftest.$ac_objext \
33985     conftest$ac_exeext conftest.$ac_ext
33986   #
33987   if test "$tst_links_inet_ntoa_r" = "yes"; then
33988     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
33989 $as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
33990     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33991 /* end confdefs.h.  */
33992
33993       $curl_includes_arpa_inet
33994
33995 _ACEOF
33996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33997   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
33998
33999       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34000 $as_echo "yes" >&6; }
34001       tst_proto_inet_ntoa_r="yes"
34002
34003 else
34004
34005       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34006 $as_echo "no" >&6; }
34007       tst_proto_inet_ntoa_r="no"
34008
34009 fi
34010 rm -f conftest*
34011
34012   fi
34013   #
34014   if test "$tst_proto_inet_ntoa_r" = "yes"; then
34015     if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34016       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
34017 $as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
34018       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34019 /* end confdefs.h.  */
34020
34021
34022           $curl_includes_arpa_inet
34023
34024 int main (void)
34025 {
34026
34027           struct in_addr addr;
34028           if(0 != inet_ntoa_r(addr, 0))
34029             return 1;
34030
34031  ;
34032  return 0;
34033 }
34034
34035 _ACEOF
34036 if ac_fn_c_try_compile "$LINENO"; then :
34037
34038         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34039 $as_echo "yes" >&6; }
34040         tst_compi_inet_ntoa_r="yes"
34041         tst_nargs_inet_ntoa_r="2"
34042
34043 else
34044
34045         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34046 $as_echo "no" >&6; }
34047         tst_compi_inet_ntoa_r="no"
34048
34049 fi
34050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34051     fi
34052     if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34053       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
34054 $as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
34055       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34056 /* end confdefs.h.  */
34057
34058
34059           $curl_includes_arpa_inet
34060
34061 int main (void)
34062 {
34063
34064           struct in_addr addr;
34065           if(0 != inet_ntoa_r(addr, 0, 0))
34066             return 1;
34067
34068  ;
34069  return 0;
34070 }
34071
34072 _ACEOF
34073 if ac_fn_c_try_compile "$LINENO"; then :
34074
34075         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34076 $as_echo "yes" >&6; }
34077         tst_compi_inet_ntoa_r="yes"
34078         tst_nargs_inet_ntoa_r="3"
34079
34080 else
34081
34082         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34083 $as_echo "no" >&6; }
34084         tst_compi_inet_ntoa_r="no"
34085
34086 fi
34087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34088     fi
34089     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
34090 $as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
34091     if test "$tst_compi_inet_ntoa_r" = "yes"; then
34092       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34093 $as_echo "yes" >&6; }
34094     else
34095       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34096 $as_echo "no" >&6; }
34097     fi
34098   fi
34099   #
34100   if test "$tst_compi_inet_ntoa_r" = "yes"; then
34101     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
34102 $as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
34103     if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
34104       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34105 $as_echo "yes" >&6; }
34106       tst_allow_inet_ntoa_r="yes"
34107     else
34108       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34109 $as_echo "no" >&6; }
34110       tst_allow_inet_ntoa_r="no"
34111     fi
34112   fi
34113   #
34114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
34115 $as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
34116   if test "$tst_links_inet_ntoa_r" = "yes" &&
34117      test "$tst_proto_inet_ntoa_r" = "yes" &&
34118      test "$tst_compi_inet_ntoa_r" = "yes" &&
34119      test "$tst_allow_inet_ntoa_r" = "yes"; then
34120     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34121 $as_echo "yes" >&6; }
34122
34123 cat >>confdefs.h <<_ACEOF
34124 #define HAVE_INET_NTOA_R 1
34125 _ACEOF
34126
34127             #
34128     if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
34129
34130 $as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
34131
34132     elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
34133
34134 $as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
34135
34136     fi
34137     #
34138     ac_cv_func_inet_ntoa_r="yes"
34139   else
34140     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34141 $as_echo "no" >&6; }
34142     ac_cv_func_inet_ntoa_r="no"
34143   fi
34144
34145
34146         #
34147   tst_links_inet_ntop="unknown"
34148   tst_proto_inet_ntop="unknown"
34149   tst_compi_inet_ntop="unknown"
34150   tst_works_inet_ntop="unknown"
34151   tst_allow_inet_ntop="unknown"
34152   #
34153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
34154 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
34155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34156 /* end confdefs.h.  */
34157
34158
34159 #define inet_ntop innocuous_inet_ntop
34160 #ifdef __STDC__
34161 # include <limits.h>
34162 #else
34163 # include <assert.h>
34164 #endif
34165 #undef inet_ntop
34166 #ifdef __cplusplus
34167 extern "C"
34168 #endif
34169 char inet_ntop ();
34170 #if defined __stub_inet_ntop || defined __stub___inet_ntop
34171 choke me
34172 #endif
34173
34174 int main (void)
34175 {
34176 return inet_ntop ();
34177  ;
34178  return 0;
34179 }
34180
34181 _ACEOF
34182 if ac_fn_c_try_link "$LINENO"; then :
34183
34184     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34185 $as_echo "yes" >&6; }
34186     tst_links_inet_ntop="yes"
34187
34188 else
34189
34190     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34191 $as_echo "no" >&6; }
34192     tst_links_inet_ntop="no"
34193
34194 fi
34195 rm -f core conftest.err conftest.$ac_objext \
34196     conftest$ac_exeext conftest.$ac_ext
34197   #
34198   if test "$tst_links_inet_ntop" = "yes"; then
34199     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
34200 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
34201     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34202 /* end confdefs.h.  */
34203
34204       $curl_includes_arpa_inet
34205
34206 _ACEOF
34207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34208   $EGREP "inet_ntop" >/dev/null 2>&1; then :
34209
34210       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34211 $as_echo "yes" >&6; }
34212       tst_proto_inet_ntop="yes"
34213
34214 else
34215
34216       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34217 $as_echo "no" >&6; }
34218       tst_proto_inet_ntop="no"
34219
34220 fi
34221 rm -f conftest*
34222
34223   fi
34224   #
34225   if test "$tst_proto_inet_ntop" = "yes"; then
34226     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
34227 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
34228     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34229 /* end confdefs.h.  */
34230
34231
34232         $curl_includes_arpa_inet
34233
34234 int main (void)
34235 {
34236
34237         if(0 != inet_ntop(0, 0, 0, 0))
34238           return 1;
34239
34240  ;
34241  return 0;
34242 }
34243
34244 _ACEOF
34245 if ac_fn_c_try_compile "$LINENO"; then :
34246
34247       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34248 $as_echo "yes" >&6; }
34249       tst_compi_inet_ntop="yes"
34250
34251 else
34252
34253       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34254 $as_echo "no" >&6; }
34255       tst_compi_inet_ntop="no"
34256
34257 fi
34258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34259   fi
34260   #
34261     if test "x$cross_compiling" != "xyes" &&
34262     test "$tst_compi_inet_ntop" = "yes"; then
34263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
34264 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
34265     if test "$cross_compiling" = yes; then :
34266   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34268 as_fn_error $? "cannot run test program while cross compiling
34269 See \`config.log' for more details" "$LINENO" 5; }
34270 else
34271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34272 /* end confdefs.h.  */
34273
34274
34275         $curl_includes_stdlib
34276         $curl_includes_arpa_inet
34277         $curl_includes_string
34278
34279 int main (void)
34280 {
34281
34282         char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
34283         char ipv4res[sizeof "255.255.255.255"];
34284         unsigned char ipv6a[26];
34285         unsigned char ipv4a[5];
34286         char *ipv6ptr = 0;
34287         char *ipv4ptr = 0;
34288         /* - */
34289         ipv4res[0] = '\0';
34290         ipv4a[0] = 0xc0;
34291         ipv4a[1] = 0xa8;
34292         ipv4a[2] = 0x64;
34293         ipv4a[3] = 0x01;
34294         ipv4a[4] = 0x01;
34295         /* - */
34296         ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
34297         if(!ipv4ptr)
34298           exit(1); /* fail */
34299         if(ipv4ptr != ipv4res)
34300           exit(1); /* fail */
34301         if(!ipv4ptr[0])
34302           exit(1); /* fail */
34303         if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
34304           exit(1); /* fail */
34305         /* - */
34306         ipv6res[0] = '\0';
34307         memset(ipv6a, 0, sizeof(ipv6a));
34308         ipv6a[0] = 0xfe;
34309         ipv6a[1] = 0x80;
34310         ipv6a[8] = 0x02;
34311         ipv6a[9] = 0x14;
34312         ipv6a[10] = 0x4f;
34313         ipv6a[11] = 0xff;
34314         ipv6a[12] = 0xfe;
34315         ipv6a[13] = 0x0b;
34316         ipv6a[14] = 0x76;
34317         ipv6a[15] = 0xc8;
34318         ipv6a[25] = 0x01;
34319         /* - */
34320         ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
34321         if(!ipv6ptr)
34322           exit(1); /* fail */
34323         if(ipv6ptr != ipv6res)
34324           exit(1); /* fail */
34325         if(!ipv6ptr[0])
34326           exit(1); /* fail */
34327         if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
34328           exit(1); /* fail */
34329         /* - */
34330         exit(0);
34331
34332  ;
34333  return 0;
34334 }
34335
34336 _ACEOF
34337 if ac_fn_c_try_run "$LINENO"; then :
34338
34339       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34340 $as_echo "yes" >&6; }
34341       tst_works_inet_ntop="yes"
34342
34343 else
34344
34345       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34346 $as_echo "no" >&6; }
34347       tst_works_inet_ntop="no"
34348
34349 fi
34350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34351   conftest.$ac_objext conftest.beam conftest.$ac_ext
34352 fi
34353
34354   fi
34355   #
34356   if test "$tst_compi_inet_ntop" = "yes" &&
34357     test "$tst_works_inet_ntop" != "no"; then
34358     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
34359 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
34360     if test "x$curl_disallow_inet_ntop" != "xyes"; then
34361       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34362 $as_echo "yes" >&6; }
34363       tst_allow_inet_ntop="yes"
34364     else
34365       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34366 $as_echo "no" >&6; }
34367       tst_allow_inet_ntop="no"
34368     fi
34369   fi
34370   #
34371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
34372 $as_echo_n "checking if inet_ntop might be used... " >&6; }
34373   if test "$tst_links_inet_ntop" = "yes" &&
34374      test "$tst_proto_inet_ntop" = "yes" &&
34375      test "$tst_compi_inet_ntop" = "yes" &&
34376      test "$tst_allow_inet_ntop" = "yes" &&
34377      test "$tst_works_inet_ntop" != "no"; then
34378     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34379 $as_echo "yes" >&6; }
34380
34381 cat >>confdefs.h <<_ACEOF
34382 #define HAVE_INET_NTOP 1
34383 _ACEOF
34384
34385     ac_cv_func_inet_ntop="yes"
34386   else
34387     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34388 $as_echo "no" >&6; }
34389     ac_cv_func_inet_ntop="no"
34390   fi
34391
34392
34393         #
34394   tst_links_inet_pton="unknown"
34395   tst_proto_inet_pton="unknown"
34396   tst_compi_inet_pton="unknown"
34397   tst_works_inet_pton="unknown"
34398   tst_allow_inet_pton="unknown"
34399   #
34400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
34401 $as_echo_n "checking if inet_pton can be linked... " >&6; }
34402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34403 /* end confdefs.h.  */
34404
34405
34406 #define inet_pton innocuous_inet_pton
34407 #ifdef __STDC__
34408 # include <limits.h>
34409 #else
34410 # include <assert.h>
34411 #endif
34412 #undef inet_pton
34413 #ifdef __cplusplus
34414 extern "C"
34415 #endif
34416 char inet_pton ();
34417 #if defined __stub_inet_pton || defined __stub___inet_pton
34418 choke me
34419 #endif
34420
34421 int main (void)
34422 {
34423 return inet_pton ();
34424  ;
34425  return 0;
34426 }
34427
34428 _ACEOF
34429 if ac_fn_c_try_link "$LINENO"; then :
34430
34431     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34432 $as_echo "yes" >&6; }
34433     tst_links_inet_pton="yes"
34434
34435 else
34436
34437     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34438 $as_echo "no" >&6; }
34439     tst_links_inet_pton="no"
34440
34441 fi
34442 rm -f core conftest.err conftest.$ac_objext \
34443     conftest$ac_exeext conftest.$ac_ext
34444   #
34445   if test "$tst_links_inet_pton" = "yes"; then
34446     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
34447 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
34448     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34449 /* end confdefs.h.  */
34450
34451       $curl_includes_arpa_inet
34452
34453 _ACEOF
34454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34455   $EGREP "inet_pton" >/dev/null 2>&1; then :
34456
34457       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34458 $as_echo "yes" >&6; }
34459       tst_proto_inet_pton="yes"
34460
34461 else
34462
34463       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34464 $as_echo "no" >&6; }
34465       tst_proto_inet_pton="no"
34466
34467 fi
34468 rm -f conftest*
34469
34470   fi
34471   #
34472   if test "$tst_proto_inet_pton" = "yes"; then
34473     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
34474 $as_echo_n "checking if inet_pton is compilable... " >&6; }
34475     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34476 /* end confdefs.h.  */
34477
34478
34479         $curl_includes_arpa_inet
34480
34481 int main (void)
34482 {
34483
34484         if(0 != inet_pton(0, 0, 0))
34485           return 1;
34486
34487  ;
34488  return 0;
34489 }
34490
34491 _ACEOF
34492 if ac_fn_c_try_compile "$LINENO"; then :
34493
34494       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34495 $as_echo "yes" >&6; }
34496       tst_compi_inet_pton="yes"
34497
34498 else
34499
34500       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34501 $as_echo "no" >&6; }
34502       tst_compi_inet_pton="no"
34503
34504 fi
34505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34506   fi
34507   #
34508     if test "x$cross_compiling" != "xyes" &&
34509     test "$tst_compi_inet_pton" = "yes"; then
34510     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
34511 $as_echo_n "checking if inet_pton seems to work... " >&6; }
34512     if test "$cross_compiling" = yes; then :
34513   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34515 as_fn_error $? "cannot run test program while cross compiling
34516 See \`config.log' for more details" "$LINENO" 5; }
34517 else
34518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34519 /* end confdefs.h.  */
34520
34521
34522         $curl_includes_stdlib
34523         $curl_includes_arpa_inet
34524         $curl_includes_string
34525
34526 int main (void)
34527 {
34528
34529         unsigned char ipv6a[16+1];
34530         unsigned char ipv4a[4+1];
34531         const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
34532         const char *ipv4src = "192.168.100.1";
34533         /* - */
34534         memset(ipv4a, 1, sizeof(ipv4a));
34535         if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
34536           exit(1); /* fail */
34537         /* - */
34538         if( (ipv4a[0] != 0xc0) ||
34539             (ipv4a[1] != 0xa8) ||
34540             (ipv4a[2] != 0x64) ||
34541             (ipv4a[3] != 0x01) ||
34542             (ipv4a[4] != 0x01) )
34543           exit(1); /* fail */
34544         /* - */
34545         memset(ipv6a, 1, sizeof(ipv6a));
34546         if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
34547           exit(1); /* fail */
34548         /* - */
34549         if( (ipv6a[0]  != 0xfe) ||
34550             (ipv6a[1]  != 0x80) ||
34551             (ipv6a[8]  != 0x02) ||
34552             (ipv6a[9]  != 0x14) ||
34553             (ipv6a[10] != 0x4f) ||
34554             (ipv6a[11] != 0xff) ||
34555             (ipv6a[12] != 0xfe) ||
34556             (ipv6a[13] != 0x0b) ||
34557             (ipv6a[14] != 0x76) ||
34558             (ipv6a[15] != 0xc8) ||
34559             (ipv6a[16] != 0x01) )
34560           exit(1); /* fail */
34561         /* - */
34562         if( (ipv6a[2]  != 0x0) ||
34563             (ipv6a[3]  != 0x0) ||
34564             (ipv6a[4]  != 0x0) ||
34565             (ipv6a[5]  != 0x0) ||
34566             (ipv6a[6]  != 0x0) ||
34567             (ipv6a[7]  != 0x0) )
34568           exit(1); /* fail */
34569         /* - */
34570         exit(0);
34571
34572  ;
34573  return 0;
34574 }
34575
34576 _ACEOF
34577 if ac_fn_c_try_run "$LINENO"; then :
34578
34579       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34580 $as_echo "yes" >&6; }
34581       tst_works_inet_pton="yes"
34582
34583 else
34584
34585       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34586 $as_echo "no" >&6; }
34587       tst_works_inet_pton="no"
34588
34589 fi
34590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34591   conftest.$ac_objext conftest.beam conftest.$ac_ext
34592 fi
34593
34594   fi
34595   #
34596   if test "$tst_compi_inet_pton" = "yes" &&
34597     test "$tst_works_inet_pton" != "no"; then
34598     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
34599 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
34600     if test "x$curl_disallow_inet_pton" != "xyes"; then
34601       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34602 $as_echo "yes" >&6; }
34603       tst_allow_inet_pton="yes"
34604     else
34605       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34606 $as_echo "no" >&6; }
34607       tst_allow_inet_pton="no"
34608     fi
34609   fi
34610   #
34611   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
34612 $as_echo_n "checking if inet_pton might be used... " >&6; }
34613   if test "$tst_links_inet_pton" = "yes" &&
34614      test "$tst_proto_inet_pton" = "yes" &&
34615      test "$tst_compi_inet_pton" = "yes" &&
34616      test "$tst_allow_inet_pton" = "yes" &&
34617      test "$tst_works_inet_pton" != "no"; then
34618     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34619 $as_echo "yes" >&6; }
34620
34621 cat >>confdefs.h <<_ACEOF
34622 #define HAVE_INET_PTON 1
34623 _ACEOF
34624
34625     ac_cv_func_inet_pton="yes"
34626   else
34627     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34628 $as_echo "no" >&6; }
34629     ac_cv_func_inet_pton="no"
34630   fi
34631
34632
34633 curl_includes_stropts="\
34634 /* includes start */
34635 #ifdef HAVE_SYS_TYPES_H
34636 #  include <sys/types.h>
34637 #endif
34638 #ifdef HAVE_UNISTD_H
34639 #  include <unistd.h>
34640 #endif
34641 #ifdef HAVE_SYS_SOCKET_H
34642 #  include <sys/socket.h>
34643 #endif
34644 #ifdef HAVE_SYS_IOCTL_H
34645 #  include <sys/ioctl.h>
34646 #endif
34647 #ifdef HAVE_STROPTS_H
34648 #  include <stropts.h>
34649 #endif
34650 /* includes end */"
34651   for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.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_stropts
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_ioctl="unknown"
34669   tst_proto_ioctl="unknown"
34670   tst_compi_ioctl="unknown"
34671   tst_allow_ioctl="unknown"
34672   #
34673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
34674 $as_echo_n "checking if ioctl can be linked... " >&6; }
34675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34676 /* end confdefs.h.  */
34677
34678
34679 #define ioctl innocuous_ioctl
34680 #ifdef __STDC__
34681 # include <limits.h>
34682 #else
34683 # include <assert.h>
34684 #endif
34685 #undef ioctl
34686 #ifdef __cplusplus
34687 extern "C"
34688 #endif
34689 char ioctl ();
34690 #if defined __stub_ioctl || defined __stub___ioctl
34691 choke me
34692 #endif
34693
34694 int main (void)
34695 {
34696 return ioctl ();
34697  ;
34698  return 0;
34699 }
34700
34701 _ACEOF
34702 if ac_fn_c_try_link "$LINENO"; then :
34703
34704     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34705 $as_echo "yes" >&6; }
34706     tst_links_ioctl="yes"
34707
34708 else
34709
34710     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34711 $as_echo "no" >&6; }
34712     tst_links_ioctl="no"
34713
34714 fi
34715 rm -f core conftest.err conftest.$ac_objext \
34716     conftest$ac_exeext conftest.$ac_ext
34717   #
34718   if test "$tst_links_ioctl" = "yes"; then
34719     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
34720 $as_echo_n "checking if ioctl is prototyped... " >&6; }
34721     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34722 /* end confdefs.h.  */
34723
34724       $curl_includes_stropts
34725
34726 _ACEOF
34727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34728   $EGREP "ioctl" >/dev/null 2>&1; then :
34729
34730       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34731 $as_echo "yes" >&6; }
34732       tst_proto_ioctl="yes"
34733
34734 else
34735
34736       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34737 $as_echo "no" >&6; }
34738       tst_proto_ioctl="no"
34739
34740 fi
34741 rm -f conftest*
34742
34743   fi
34744   #
34745   if test "$tst_proto_ioctl" = "yes"; then
34746     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
34747 $as_echo_n "checking if ioctl is compilable... " >&6; }
34748     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34749 /* end confdefs.h.  */
34750
34751
34752         $curl_includes_stropts
34753
34754 int main (void)
34755 {
34756
34757         if(0 != ioctl(0, 0, 0))
34758           return 1;
34759
34760  ;
34761  return 0;
34762 }
34763
34764 _ACEOF
34765 if ac_fn_c_try_compile "$LINENO"; then :
34766
34767       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34768 $as_echo "yes" >&6; }
34769       tst_compi_ioctl="yes"
34770
34771 else
34772
34773       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34774 $as_echo "no" >&6; }
34775       tst_compi_ioctl="no"
34776
34777 fi
34778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34779   fi
34780   #
34781   if test "$tst_compi_ioctl" = "yes"; then
34782     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
34783 $as_echo_n "checking if ioctl usage allowed... " >&6; }
34784     if test "x$curl_disallow_ioctl" != "xyes"; then
34785       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34786 $as_echo "yes" >&6; }
34787       tst_allow_ioctl="yes"
34788     else
34789       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34790 $as_echo "no" >&6; }
34791       tst_allow_ioctl="no"
34792     fi
34793   fi
34794   #
34795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
34796 $as_echo_n "checking if ioctl might be used... " >&6; }
34797   if test "$tst_links_ioctl" = "yes" &&
34798      test "$tst_proto_ioctl" = "yes" &&
34799      test "$tst_compi_ioctl" = "yes" &&
34800      test "$tst_allow_ioctl" = "yes"; then
34801     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34802 $as_echo "yes" >&6; }
34803
34804 cat >>confdefs.h <<_ACEOF
34805 #define HAVE_IOCTL 1
34806 _ACEOF
34807
34808     ac_cv_func_ioctl="yes"
34809
34810   #
34811   tst_compi_ioctl_fionbio="unknown"
34812   tst_allow_ioctl_fionbio="unknown"
34813   #
34814   if test "$ac_cv_func_ioctl" = "yes"; then
34815     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
34816 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
34817     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34818 /* end confdefs.h.  */
34819
34820
34821         $curl_includes_stropts
34822
34823 int main (void)
34824 {
34825
34826         int flags = 0;
34827         if(0 != ioctl(0, FIONBIO, &flags))
34828           return 1;
34829
34830  ;
34831  return 0;
34832 }
34833
34834 _ACEOF
34835 if ac_fn_c_try_compile "$LINENO"; then :
34836
34837       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34838 $as_echo "yes" >&6; }
34839       tst_compi_ioctl_fionbio="yes"
34840
34841 else
34842
34843       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34844 $as_echo "no" >&6; }
34845       tst_compi_ioctl_fionbio="no"
34846
34847 fi
34848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34849   fi
34850   #
34851   if test "$tst_compi_ioctl_fionbio" = "yes"; then
34852     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
34853 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
34854     if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
34855       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34856 $as_echo "yes" >&6; }
34857       tst_allow_ioctl_fionbio="yes"
34858     else
34859       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34860 $as_echo "no" >&6; }
34861       tst_allow_ioctl_fionbio="no"
34862     fi
34863   fi
34864   #
34865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
34866 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
34867   if test "$tst_compi_ioctl_fionbio" = "yes" &&
34868      test "$tst_allow_ioctl_fionbio" = "yes"; then
34869     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34870 $as_echo "yes" >&6; }
34871
34872 cat >>confdefs.h <<_ACEOF
34873 #define HAVE_IOCTL_FIONBIO 1
34874 _ACEOF
34875
34876     ac_cv_func_ioctl_fionbio="yes"
34877   else
34878     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34879 $as_echo "no" >&6; }
34880     ac_cv_func_ioctl_fionbio="no"
34881   fi
34882
34883
34884   #
34885   tst_compi_ioctl_siocgifaddr="unknown"
34886   tst_allow_ioctl_siocgifaddr="unknown"
34887   #
34888   if test "$ac_cv_func_ioctl" = "yes"; then
34889     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
34890 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
34891     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34892 /* end confdefs.h.  */
34893
34894
34895         $curl_includes_stropts
34896         #include <net/if.h>
34897
34898 int main (void)
34899 {
34900
34901         struct ifreq ifr;
34902         if(0 != ioctl(0, SIOCGIFADDR, &ifr))
34903           return 1;
34904
34905  ;
34906  return 0;
34907 }
34908
34909 _ACEOF
34910 if ac_fn_c_try_compile "$LINENO"; then :
34911
34912       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34913 $as_echo "yes" >&6; }
34914       tst_compi_ioctl_siocgifaddr="yes"
34915
34916 else
34917
34918       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34919 $as_echo "no" >&6; }
34920       tst_compi_ioctl_siocgifaddr="no"
34921
34922 fi
34923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34924   fi
34925   #
34926   if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
34927     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
34928 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
34929     if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
34930       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34931 $as_echo "yes" >&6; }
34932       tst_allow_ioctl_siocgifaddr="yes"
34933     else
34934       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34935 $as_echo "no" >&6; }
34936       tst_allow_ioctl_siocgifaddr="no"
34937     fi
34938   fi
34939   #
34940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
34941 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
34942   if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
34943      test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
34944     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34945 $as_echo "yes" >&6; }
34946
34947 cat >>confdefs.h <<_ACEOF
34948 #define HAVE_IOCTL_SIOCGIFADDR 1
34949 _ACEOF
34950
34951     ac_cv_func_ioctl_siocgifaddr="yes"
34952   else
34953     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34954 $as_echo "no" >&6; }
34955     ac_cv_func_ioctl_siocgifaddr="no"
34956   fi
34957
34958   else
34959     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34960 $as_echo "no" >&6; }
34961     ac_cv_func_ioctl="no"
34962   fi
34963
34964
34965     #
34966   tst_links_ioctlsocket="unknown"
34967   tst_proto_ioctlsocket="unknown"
34968   tst_compi_ioctlsocket="unknown"
34969   tst_allow_ioctlsocket="unknown"
34970   #
34971   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
34972 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
34973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34974 /* end confdefs.h.  */
34975
34976
34977       $curl_includes_winsock2
34978
34979 int main (void)
34980 {
34981
34982       if(0 != ioctlsocket(0, 0, 0))
34983         return 1;
34984
34985  ;
34986  return 0;
34987 }
34988
34989 _ACEOF
34990 if ac_fn_c_try_link "$LINENO"; then :
34991
34992     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34993 $as_echo "yes" >&6; }
34994     tst_links_ioctlsocket="yes"
34995
34996 else
34997
34998     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34999 $as_echo "no" >&6; }
35000     tst_links_ioctlsocket="no"
35001
35002 fi
35003 rm -f core conftest.err conftest.$ac_objext \
35004     conftest$ac_exeext conftest.$ac_ext
35005   #
35006   if test "$tst_links_ioctlsocket" = "yes"; then
35007     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
35008 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
35009     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35010 /* end confdefs.h.  */
35011
35012       $curl_includes_winsock2
35013
35014 _ACEOF
35015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35016   $EGREP "ioctlsocket" >/dev/null 2>&1; then :
35017
35018       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35019 $as_echo "yes" >&6; }
35020       tst_proto_ioctlsocket="yes"
35021
35022 else
35023
35024       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35025 $as_echo "no" >&6; }
35026       tst_proto_ioctlsocket="no"
35027
35028 fi
35029 rm -f conftest*
35030
35031   fi
35032   #
35033   if test "$tst_proto_ioctlsocket" = "yes"; then
35034     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
35035 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
35036     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35037 /* end confdefs.h.  */
35038
35039
35040         $curl_includes_winsock2
35041
35042 int main (void)
35043 {
35044
35045         if(0 != ioctlsocket(0, 0, 0))
35046           return 1;
35047
35048  ;
35049  return 0;
35050 }
35051
35052 _ACEOF
35053 if ac_fn_c_try_compile "$LINENO"; then :
35054
35055       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35056 $as_echo "yes" >&6; }
35057       tst_compi_ioctlsocket="yes"
35058
35059 else
35060
35061       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35062 $as_echo "no" >&6; }
35063       tst_compi_ioctlsocket="no"
35064
35065 fi
35066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35067   fi
35068   #
35069   if test "$tst_compi_ioctlsocket" = "yes"; then
35070     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
35071 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
35072     if test "x$curl_disallow_ioctlsocket" != "xyes"; then
35073       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35074 $as_echo "yes" >&6; }
35075       tst_allow_ioctlsocket="yes"
35076     else
35077       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35078 $as_echo "no" >&6; }
35079       tst_allow_ioctlsocket="no"
35080     fi
35081   fi
35082   #
35083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
35084 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
35085   if test "$tst_links_ioctlsocket" = "yes" &&
35086      test "$tst_proto_ioctlsocket" = "yes" &&
35087      test "$tst_compi_ioctlsocket" = "yes" &&
35088      test "$tst_allow_ioctlsocket" = "yes"; then
35089     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35090 $as_echo "yes" >&6; }
35091
35092 cat >>confdefs.h <<_ACEOF
35093 #define HAVE_IOCTLSOCKET 1
35094 _ACEOF
35095
35096     ac_cv_func_ioctlsocket="yes"
35097
35098   #
35099   tst_compi_ioctlsocket_fionbio="unknown"
35100   tst_allow_ioctlsocket_fionbio="unknown"
35101   #
35102   if test "$ac_cv_func_ioctlsocket" = "yes"; then
35103     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
35104 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
35105     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35106 /* end confdefs.h.  */
35107
35108
35109         $curl_includes_winsock2
35110
35111 int main (void)
35112 {
35113
35114         int flags = 0;
35115         if(0 != ioctlsocket(0, FIONBIO, &flags))
35116           return 1;
35117
35118  ;
35119  return 0;
35120 }
35121
35122 _ACEOF
35123 if ac_fn_c_try_compile "$LINENO"; then :
35124
35125       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35126 $as_echo "yes" >&6; }
35127       tst_compi_ioctlsocket_fionbio="yes"
35128
35129 else
35130
35131       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35132 $as_echo "no" >&6; }
35133       tst_compi_ioctlsocket_fionbio="no"
35134
35135 fi
35136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35137   fi
35138   #
35139   if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
35140     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
35141 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
35142     if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
35143       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35144 $as_echo "yes" >&6; }
35145       tst_allow_ioctlsocket_fionbio="yes"
35146     else
35147       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35148 $as_echo "no" >&6; }
35149       tst_allow_ioctlsocket_fionbio="no"
35150     fi
35151   fi
35152   #
35153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
35154 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
35155   if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
35156      test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
35157     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35158 $as_echo "yes" >&6; }
35159
35160 cat >>confdefs.h <<_ACEOF
35161 #define HAVE_IOCTLSOCKET_FIONBIO 1
35162 _ACEOF
35163
35164     ac_cv_func_ioctlsocket_fionbio="yes"
35165   else
35166     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35167 $as_echo "no" >&6; }
35168     ac_cv_func_ioctlsocket_fionbio="no"
35169   fi
35170
35171   else
35172     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35173 $as_echo "no" >&6; }
35174     ac_cv_func_ioctlsocket="no"
35175   fi
35176
35177
35178     #
35179   tst_links_ioctlsocket_camel="unknown"
35180   tst_proto_ioctlsocket_camel="unknown"
35181   tst_compi_ioctlsocket_camel="unknown"
35182   tst_allow_ioctlsocket_camel="unknown"
35183   #
35184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
35185 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
35186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35187 /* end confdefs.h.  */
35188
35189
35190 #define IoctlSocket innocuous_IoctlSocket
35191 #ifdef __STDC__
35192 # include <limits.h>
35193 #else
35194 # include <assert.h>
35195 #endif
35196 #undef IoctlSocket
35197 #ifdef __cplusplus
35198 extern "C"
35199 #endif
35200 char IoctlSocket ();
35201 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
35202 choke me
35203 #endif
35204
35205 int main (void)
35206 {
35207 return IoctlSocket ();
35208  ;
35209  return 0;
35210 }
35211
35212 _ACEOF
35213 if ac_fn_c_try_link "$LINENO"; then :
35214
35215     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35216 $as_echo "yes" >&6; }
35217     tst_links_ioctlsocket_camel="yes"
35218
35219 else
35220
35221     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35222 $as_echo "no" >&6; }
35223     tst_links_ioctlsocket_camel="no"
35224
35225 fi
35226 rm -f core conftest.err conftest.$ac_objext \
35227     conftest$ac_exeext conftest.$ac_ext
35228   #
35229   if test "$tst_links_ioctlsocket_camel" = "yes"; then
35230     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
35231 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
35232     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35233 /* end confdefs.h.  */
35234
35235       $curl_includes_stropts
35236
35237 _ACEOF
35238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35239   $EGREP "IoctlSocket" >/dev/null 2>&1; then :
35240
35241       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35242 $as_echo "yes" >&6; }
35243       tst_proto_ioctlsocket_camel="yes"
35244
35245 else
35246
35247       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35248 $as_echo "no" >&6; }
35249       tst_proto_ioctlsocket_camel="no"
35250
35251 fi
35252 rm -f conftest*
35253
35254   fi
35255   #
35256   if test "$tst_proto_ioctlsocket_camel" = "yes"; then
35257     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
35258 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
35259     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35260 /* end confdefs.h.  */
35261
35262
35263         $curl_includes_stropts
35264
35265 int main (void)
35266 {
35267
35268         if(0 != IoctlSocket(0, 0, 0))
35269           return 1;
35270
35271  ;
35272  return 0;
35273 }
35274
35275 _ACEOF
35276 if ac_fn_c_try_compile "$LINENO"; then :
35277
35278       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35279 $as_echo "yes" >&6; }
35280       tst_compi_ioctlsocket_camel="yes"
35281
35282 else
35283
35284       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35285 $as_echo "no" >&6; }
35286       tst_compi_ioctlsocket_camel="no"
35287
35288 fi
35289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35290   fi
35291   #
35292   if test "$tst_compi_ioctlsocket_camel" = "yes"; then
35293     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
35294 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
35295     if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
35296       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35297 $as_echo "yes" >&6; }
35298       tst_allow_ioctlsocket_camel="yes"
35299     else
35300       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35301 $as_echo "no" >&6; }
35302       tst_allow_ioctlsocket_camel="no"
35303     fi
35304   fi
35305   #
35306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
35307 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
35308   if test "$tst_links_ioctlsocket_camel" = "yes" &&
35309      test "$tst_proto_ioctlsocket_camel" = "yes" &&
35310      test "$tst_compi_ioctlsocket_camel" = "yes" &&
35311      test "$tst_allow_ioctlsocket_camel" = "yes"; then
35312     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35313 $as_echo "yes" >&6; }
35314
35315 cat >>confdefs.h <<_ACEOF
35316 #define HAVE_IOCTLSOCKET_CAMEL 1
35317 _ACEOF
35318
35319     ac_cv_func_ioctlsocket_camel="yes"
35320
35321   #
35322   tst_compi_ioctlsocket_camel_fionbio="unknown"
35323   tst_allow_ioctlsocket_camel_fionbio="unknown"
35324   #
35325   if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then
35326     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
35327 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
35328     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35329 /* end confdefs.h.  */
35330
35331
35332         $curl_includes_stropts
35333
35334 int main (void)
35335 {
35336
35337         long flags = 0;
35338         if(0 != ioctlsocket(0, FIONBIO, &flags))
35339           return 1;
35340
35341  ;
35342  return 0;
35343 }
35344
35345 _ACEOF
35346 if ac_fn_c_try_compile "$LINENO"; then :
35347
35348       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35349 $as_echo "yes" >&6; }
35350       tst_compi_ioctlsocket_camel_fionbio="yes"
35351
35352 else
35353
35354       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35355 $as_echo "no" >&6; }
35356       tst_compi_ioctlsocket_camel_fionbio="no"
35357
35358 fi
35359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35360   fi
35361   #
35362   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
35363     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
35364 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
35365     if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
35366       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35367 $as_echo "yes" >&6; }
35368       tst_allow_ioctlsocket_camel_fionbio="yes"
35369     else
35370       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35371 $as_echo "no" >&6; }
35372       tst_allow_ioctlsocket_camel_fionbio="no"
35373     fi
35374   fi
35375   #
35376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
35377 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
35378   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
35379      test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
35380     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35381 $as_echo "yes" >&6; }
35382
35383 cat >>confdefs.h <<_ACEOF
35384 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
35385 _ACEOF
35386
35387     ac_cv_func_ioctlsocket_camel_fionbio="yes"
35388   else
35389     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35390 $as_echo "no" >&6; }
35391     ac_cv_func_ioctlsocket_camel_fionbio="no"
35392   fi
35393
35394   else
35395     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35396 $as_echo "no" >&6; }
35397     ac_cv_func_ioctlsocket_camel="no"
35398   fi
35399
35400
35401       #
35402   tst_links_localtime_r="unknown"
35403   tst_proto_localtime_r="unknown"
35404   tst_compi_localtime_r="unknown"
35405   tst_works_localtime_r="unknown"
35406   tst_allow_localtime_r="unknown"
35407   #
35408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
35409 $as_echo_n "checking if localtime_r can be linked... " >&6; }
35410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35411 /* end confdefs.h.  */
35412
35413
35414 #define localtime_r innocuous_localtime_r
35415 #ifdef __STDC__
35416 # include <limits.h>
35417 #else
35418 # include <assert.h>
35419 #endif
35420 #undef localtime_r
35421 #ifdef __cplusplus
35422 extern "C"
35423 #endif
35424 char localtime_r ();
35425 #if defined __stub_localtime_r || defined __stub___localtime_r
35426 choke me
35427 #endif
35428
35429 int main (void)
35430 {
35431 return localtime_r ();
35432  ;
35433  return 0;
35434 }
35435
35436 _ACEOF
35437 if ac_fn_c_try_link "$LINENO"; then :
35438
35439     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35440 $as_echo "yes" >&6; }
35441     tst_links_localtime_r="yes"
35442
35443 else
35444
35445     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35446 $as_echo "no" >&6; }
35447     tst_links_localtime_r="no"
35448
35449 fi
35450 rm -f core conftest.err conftest.$ac_objext \
35451     conftest$ac_exeext conftest.$ac_ext
35452   #
35453   if test "$tst_links_localtime_r" = "yes"; then
35454     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
35455 $as_echo_n "checking if localtime_r is prototyped... " >&6; }
35456     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35457 /* end confdefs.h.  */
35458
35459       $curl_includes_time
35460
35461 _ACEOF
35462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35463   $EGREP "localtime_r" >/dev/null 2>&1; then :
35464
35465       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35466 $as_echo "yes" >&6; }
35467       tst_proto_localtime_r="yes"
35468
35469 else
35470
35471       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35472 $as_echo "no" >&6; }
35473       tst_proto_localtime_r="no"
35474
35475 fi
35476 rm -f conftest*
35477
35478   fi
35479   #
35480   if test "$tst_proto_localtime_r" = "yes"; then
35481     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
35482 $as_echo_n "checking if localtime_r is compilable... " >&6; }
35483     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35484 /* end confdefs.h.  */
35485
35486
35487         $curl_includes_time
35488
35489 int main (void)
35490 {
35491
35492         if(0 != localtime_r(0, 0))
35493           return 1;
35494
35495  ;
35496  return 0;
35497 }
35498
35499 _ACEOF
35500 if ac_fn_c_try_compile "$LINENO"; then :
35501
35502       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35503 $as_echo "yes" >&6; }
35504       tst_compi_localtime_r="yes"
35505
35506 else
35507
35508       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35509 $as_echo "no" >&6; }
35510       tst_compi_localtime_r="no"
35511
35512 fi
35513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35514   fi
35515   #
35516     if test "x$cross_compiling" != "xyes" &&
35517     test "$tst_compi_localtime_r" = "yes"; then
35518     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
35519 $as_echo_n "checking if localtime_r seems to work... " >&6; }
35520     if test "$cross_compiling" = yes; then :
35521   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35523 as_fn_error $? "cannot run test program while cross compiling
35524 See \`config.log' for more details" "$LINENO" 5; }
35525 else
35526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35527 /* end confdefs.h.  */
35528
35529
35530         $curl_includes_stdlib
35531         $curl_includes_time
35532
35533 int main (void)
35534 {
35535
35536         time_t clock = 1170352587;
35537         struct tm *tmp = 0;
35538         struct tm result;
35539         tmp = localtime_r(&clock, &result);
35540         if(tmp)
35541           exit(0);
35542         else
35543           exit(1);
35544
35545  ;
35546  return 0;
35547 }
35548
35549 _ACEOF
35550 if ac_fn_c_try_run "$LINENO"; then :
35551
35552       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35553 $as_echo "yes" >&6; }
35554       tst_works_localtime_r="yes"
35555
35556 else
35557
35558       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35559 $as_echo "no" >&6; }
35560       tst_works_localtime_r="no"
35561
35562 fi
35563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35564   conftest.$ac_objext conftest.beam conftest.$ac_ext
35565 fi
35566
35567   fi
35568   #
35569   if test "$tst_compi_localtime_r" = "yes" &&
35570     test "$tst_works_localtime_r" != "no"; then
35571     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
35572 $as_echo_n "checking if localtime_r usage allowed... " >&6; }
35573     if test "x$curl_disallow_localtime_r" != "xyes"; then
35574       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35575 $as_echo "yes" >&6; }
35576       tst_allow_localtime_r="yes"
35577     else
35578       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35579 $as_echo "no" >&6; }
35580       tst_allow_localtime_r="no"
35581     fi
35582   fi
35583   #
35584   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
35585 $as_echo_n "checking if localtime_r might be used... " >&6; }
35586   if test "$tst_links_localtime_r" = "yes" &&
35587      test "$tst_proto_localtime_r" = "yes" &&
35588      test "$tst_compi_localtime_r" = "yes" &&
35589      test "$tst_allow_localtime_r" = "yes" &&
35590      test "$tst_works_localtime_r" != "no"; then
35591     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35592 $as_echo "yes" >&6; }
35593
35594 cat >>confdefs.h <<_ACEOF
35595 #define HAVE_LOCALTIME_R 1
35596 _ACEOF
35597
35598     ac_cv_func_localtime_r="yes"
35599   else
35600     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35601 $as_echo "no" >&6; }
35602     ac_cv_func_localtime_r="no"
35603   fi
35604
35605
35606     #
35607   tst_links_memrchr="unknown"
35608   tst_macro_memrchr="unknown"
35609   tst_proto_memrchr="unknown"
35610   tst_compi_memrchr="unknown"
35611   tst_allow_memrchr="unknown"
35612   #
35613   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
35614 $as_echo_n "checking if memrchr can be linked... " >&6; }
35615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35616 /* end confdefs.h.  */
35617
35618
35619 #define memrchr innocuous_memrchr
35620 #ifdef __STDC__
35621 # include <limits.h>
35622 #else
35623 # include <assert.h>
35624 #endif
35625 #undef memrchr
35626 #ifdef __cplusplus
35627 extern "C"
35628 #endif
35629 char memrchr ();
35630 #if defined __stub_memrchr || defined __stub___memrchr
35631 choke me
35632 #endif
35633
35634 int main (void)
35635 {
35636 return memrchr ();
35637  ;
35638  return 0;
35639 }
35640
35641 _ACEOF
35642 if ac_fn_c_try_link "$LINENO"; then :
35643
35644     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35645 $as_echo "yes" >&6; }
35646     tst_links_memrchr="yes"
35647
35648 else
35649
35650     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35651 $as_echo "no" >&6; }
35652     tst_links_memrchr="no"
35653
35654 fi
35655 rm -f core conftest.err conftest.$ac_objext \
35656     conftest$ac_exeext conftest.$ac_ext
35657   #
35658   if test "$tst_links_memrchr" = "no"; then
35659     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
35660 $as_echo_n "checking if memrchr seems a macro... " >&6; }
35661     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35662 /* end confdefs.h.  */
35663
35664
35665         $curl_includes_string
35666
35667 int main (void)
35668 {
35669
35670         if(0 != memrchr(0, 0, 0))
35671           return 1;
35672
35673  ;
35674  return 0;
35675 }
35676
35677 _ACEOF
35678 if ac_fn_c_try_link "$LINENO"; then :
35679
35680       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35681 $as_echo "yes" >&6; }
35682       tst_macro_memrchr="yes"
35683
35684 else
35685
35686       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35687 $as_echo "no" >&6; }
35688       tst_macro_memrchr="no"
35689
35690 fi
35691 rm -f core conftest.err conftest.$ac_objext \
35692     conftest$ac_exeext conftest.$ac_ext
35693   fi
35694   #
35695   if test "$tst_links_memrchr" = "yes"; then
35696     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
35697 $as_echo_n "checking if memrchr is prototyped... " >&6; }
35698     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35699 /* end confdefs.h.  */
35700
35701       $curl_includes_string
35702
35703 _ACEOF
35704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35705   $EGREP "memrchr" >/dev/null 2>&1; then :
35706
35707       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35708 $as_echo "yes" >&6; }
35709       tst_proto_memrchr="yes"
35710
35711 else
35712
35713       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35714 $as_echo "no" >&6; }
35715       tst_proto_memrchr="no"
35716
35717 fi
35718 rm -f conftest*
35719
35720   fi
35721   #
35722   if test "$tst_proto_memrchr" = "yes" ||
35723      test "$tst_macro_memrchr" = "yes"; then
35724     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
35725 $as_echo_n "checking if memrchr is compilable... " >&6; }
35726     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35727 /* end confdefs.h.  */
35728
35729
35730         $curl_includes_string
35731
35732 int main (void)
35733 {
35734
35735         if(0 != memrchr(0, 0, 0))
35736           return 1;
35737
35738  ;
35739  return 0;
35740 }
35741
35742 _ACEOF
35743 if ac_fn_c_try_compile "$LINENO"; then :
35744
35745       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35746 $as_echo "yes" >&6; }
35747       tst_compi_memrchr="yes"
35748
35749 else
35750
35751       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35752 $as_echo "no" >&6; }
35753       tst_compi_memrchr="no"
35754
35755 fi
35756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35757   fi
35758   #
35759   if test "$tst_compi_memrchr" = "yes"; then
35760     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
35761 $as_echo_n "checking if memrchr usage allowed... " >&6; }
35762     if test "x$curl_disallow_memrchr" != "xyes"; then
35763       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35764 $as_echo "yes" >&6; }
35765       tst_allow_memrchr="yes"
35766     else
35767       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35768 $as_echo "no" >&6; }
35769       tst_allow_memrchr="no"
35770     fi
35771   fi
35772   #
35773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
35774 $as_echo_n "checking if memrchr might be used... " >&6; }
35775   if (test "$tst_proto_memrchr" = "yes" ||
35776       test "$tst_macro_memrchr" = "yes") &&
35777      test "$tst_compi_memrchr" = "yes" &&
35778      test "$tst_allow_memrchr" = "yes"; then
35779     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35780 $as_echo "yes" >&6; }
35781
35782 cat >>confdefs.h <<_ACEOF
35783 #define HAVE_MEMRCHR 1
35784 _ACEOF
35785
35786     ac_cv_func_memrchr="yes"
35787   else
35788     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35789 $as_echo "no" >&6; }
35790     ac_cv_func_memrchr="no"
35791   fi
35792
35793
35794       #
35795   tst_links_poll="unknown"
35796   tst_proto_poll="unknown"
35797   tst_compi_poll="unknown"
35798   tst_works_poll="unknown"
35799   tst_allow_poll="unknown"
35800   #
35801   case $host_os in
35802     darwin[123456789].*|darwin10.*|darwin11.*|darwin12.*|interix*)
35803                               curl_disallow_poll="yes"
35804       ;;
35805   esac
35806   #
35807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
35808 $as_echo_n "checking if poll can be linked... " >&6; }
35809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35810 /* end confdefs.h.  */
35811
35812
35813       $curl_includes_poll
35814
35815 int main (void)
35816 {
35817
35818       if(0 != poll(0, 0, 0))
35819         return 1;
35820
35821  ;
35822  return 0;
35823 }
35824
35825 _ACEOF
35826 if ac_fn_c_try_link "$LINENO"; then :
35827
35828     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35829 $as_echo "yes" >&6; }
35830     tst_links_poll="yes"
35831
35832 else
35833
35834     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35835 $as_echo "no" >&6; }
35836     tst_links_poll="no"
35837
35838 fi
35839 rm -f core conftest.err conftest.$ac_objext \
35840     conftest$ac_exeext conftest.$ac_ext
35841   #
35842   if test "$tst_links_poll" = "yes"; then
35843     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
35844 $as_echo_n "checking if poll is prototyped... " >&6; }
35845     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35846 /* end confdefs.h.  */
35847
35848       $curl_includes_poll
35849
35850 _ACEOF
35851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35852   $EGREP "poll" >/dev/null 2>&1; then :
35853
35854       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35855 $as_echo "yes" >&6; }
35856       tst_proto_poll="yes"
35857
35858 else
35859
35860       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35861 $as_echo "no" >&6; }
35862       tst_proto_poll="no"
35863
35864 fi
35865 rm -f conftest*
35866
35867   fi
35868   #
35869   if test "$tst_proto_poll" = "yes"; then
35870     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
35871 $as_echo_n "checking if poll is compilable... " >&6; }
35872     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35873 /* end confdefs.h.  */
35874
35875
35876         $curl_includes_poll
35877
35878 int main (void)
35879 {
35880
35881         if(0 != poll(0, 0, 0))
35882           return 1;
35883
35884  ;
35885  return 0;
35886 }
35887
35888 _ACEOF
35889 if ac_fn_c_try_compile "$LINENO"; then :
35890
35891       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35892 $as_echo "yes" >&6; }
35893       tst_compi_poll="yes"
35894
35895 else
35896
35897       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35898 $as_echo "no" >&6; }
35899       tst_compi_poll="no"
35900
35901 fi
35902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35903   fi
35904   #
35905     if test "x$cross_compiling" != "xyes" &&
35906     test "$tst_compi_poll" = "yes"; then
35907     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
35908 $as_echo_n "checking if poll seems to work... " >&6; }
35909     if test "$cross_compiling" = yes; then :
35910   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35912 as_fn_error $? "cannot run test program while cross compiling
35913 See \`config.log' for more details" "$LINENO" 5; }
35914 else
35915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35916 /* end confdefs.h.  */
35917
35918
35919         $curl_includes_stdlib
35920         $curl_includes_poll
35921
35922 int main (void)
35923 {
35924
35925         if(0 != poll(0, 0, 10))
35926           exit(1); /* fail */
35927         else
35928           exit(0);
35929
35930  ;
35931  return 0;
35932 }
35933
35934 _ACEOF
35935 if ac_fn_c_try_run "$LINENO"; then :
35936
35937       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35938 $as_echo "yes" >&6; }
35939       tst_works_poll="yes"
35940
35941 else
35942
35943       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35944 $as_echo "no" >&6; }
35945       tst_works_poll="no"
35946
35947 fi
35948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35949   conftest.$ac_objext conftest.beam conftest.$ac_ext
35950 fi
35951
35952   fi
35953   #
35954   if test "$tst_compi_poll" = "yes" &&
35955     test "$tst_works_poll" != "no"; then
35956     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
35957 $as_echo_n "checking if poll usage allowed... " >&6; }
35958     if test "x$curl_disallow_poll" != "xyes"; then
35959       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35960 $as_echo "yes" >&6; }
35961       tst_allow_poll="yes"
35962     else
35963       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35964 $as_echo "no" >&6; }
35965       tst_allow_poll="no"
35966     fi
35967   fi
35968   #
35969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
35970 $as_echo_n "checking if poll might be used... " >&6; }
35971   if test "$tst_links_poll" = "yes" &&
35972      test "$tst_proto_poll" = "yes" &&
35973      test "$tst_compi_poll" = "yes" &&
35974      test "$tst_allow_poll" = "yes" &&
35975      test "$tst_works_poll" != "no"; then
35976     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35977 $as_echo "yes" >&6; }
35978
35979 cat >>confdefs.h <<_ACEOF
35980 #define HAVE_POLL 1
35981 _ACEOF
35982
35983
35984 cat >>confdefs.h <<_ACEOF
35985 #define HAVE_POLL_FINE 1
35986 _ACEOF
35987
35988     ac_cv_func_poll="yes"
35989   else
35990     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35991 $as_echo "no" >&6; }
35992     ac_cv_func_poll="no"
35993   fi
35994
35995
35996       #
35997   tst_links_setsockopt="unknown"
35998   tst_proto_setsockopt="unknown"
35999   tst_compi_setsockopt="unknown"
36000   tst_allow_setsockopt="unknown"
36001   #
36002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
36003 $as_echo_n "checking if setsockopt can be linked... " >&6; }
36004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36005 /* end confdefs.h.  */
36006
36007
36008       $curl_includes_winsock2
36009       $curl_includes_sys_socket
36010
36011 int main (void)
36012 {
36013
36014       if(0 != setsockopt(0, 0, 0, 0, 0))
36015         return 1;
36016
36017  ;
36018  return 0;
36019 }
36020
36021 _ACEOF
36022 if ac_fn_c_try_link "$LINENO"; then :
36023
36024     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36025 $as_echo "yes" >&6; }
36026     tst_links_setsockopt="yes"
36027
36028 else
36029
36030     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36031 $as_echo "no" >&6; }
36032     tst_links_setsockopt="no"
36033
36034 fi
36035 rm -f core conftest.err conftest.$ac_objext \
36036     conftest$ac_exeext conftest.$ac_ext
36037   #
36038   if test "$tst_links_setsockopt" = "yes"; then
36039     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
36040 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
36041     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36042 /* end confdefs.h.  */
36043
36044       $curl_includes_winsock2
36045       $curl_includes_sys_socket
36046
36047 _ACEOF
36048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36049   $EGREP "setsockopt" >/dev/null 2>&1; then :
36050
36051       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36052 $as_echo "yes" >&6; }
36053       tst_proto_setsockopt="yes"
36054
36055 else
36056
36057       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36058 $as_echo "no" >&6; }
36059       tst_proto_setsockopt="no"
36060
36061 fi
36062 rm -f conftest*
36063
36064   fi
36065   #
36066   if test "$tst_proto_setsockopt" = "yes"; then
36067     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
36068 $as_echo_n "checking if setsockopt is compilable... " >&6; }
36069     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36070 /* end confdefs.h.  */
36071
36072
36073         $curl_includes_winsock2
36074         $curl_includes_sys_socket
36075
36076 int main (void)
36077 {
36078
36079         if(0 != setsockopt(0, 0, 0, 0, 0))
36080           return 1;
36081
36082  ;
36083  return 0;
36084 }
36085
36086 _ACEOF
36087 if ac_fn_c_try_compile "$LINENO"; then :
36088
36089       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36090 $as_echo "yes" >&6; }
36091       tst_compi_setsockopt="yes"
36092
36093 else
36094
36095       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36096 $as_echo "no" >&6; }
36097       tst_compi_setsockopt="no"
36098
36099 fi
36100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36101   fi
36102   #
36103   if test "$tst_compi_setsockopt" = "yes"; then
36104     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
36105 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
36106     if test "x$curl_disallow_setsockopt" != "xyes"; then
36107       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36108 $as_echo "yes" >&6; }
36109       tst_allow_setsockopt="yes"
36110     else
36111       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36112 $as_echo "no" >&6; }
36113       tst_allow_setsockopt="no"
36114     fi
36115   fi
36116   #
36117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
36118 $as_echo_n "checking if setsockopt might be used... " >&6; }
36119   if test "$tst_links_setsockopt" = "yes" &&
36120      test "$tst_proto_setsockopt" = "yes" &&
36121      test "$tst_compi_setsockopt" = "yes" &&
36122      test "$tst_allow_setsockopt" = "yes"; then
36123     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36124 $as_echo "yes" >&6; }
36125
36126 cat >>confdefs.h <<_ACEOF
36127 #define HAVE_SETSOCKOPT 1
36128 _ACEOF
36129
36130     ac_cv_func_setsockopt="yes"
36131
36132   #
36133   tst_compi_setsockopt_so_nonblock="unknown"
36134   tst_allow_setsockopt_so_nonblock="unknown"
36135   #
36136   if test "$ac_cv_func_setsockopt" = "yes"; then
36137     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
36138 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
36139     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36140 /* end confdefs.h.  */
36141
36142
36143         $curl_includes_winsock2
36144         $curl_includes_sys_socket
36145
36146 int main (void)
36147 {
36148
36149         if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
36150           return 1;
36151
36152  ;
36153  return 0;
36154 }
36155
36156 _ACEOF
36157 if ac_fn_c_try_compile "$LINENO"; then :
36158
36159       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36160 $as_echo "yes" >&6; }
36161       tst_compi_setsockopt_so_nonblock="yes"
36162
36163 else
36164
36165       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36166 $as_echo "no" >&6; }
36167       tst_compi_setsockopt_so_nonblock="no"
36168
36169 fi
36170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36171   fi
36172   #
36173   if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
36174     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
36175 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
36176     if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
36177       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36178 $as_echo "yes" >&6; }
36179       tst_allow_setsockopt_so_nonblock="yes"
36180     else
36181       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36182 $as_echo "no" >&6; }
36183       tst_allow_setsockopt_so_nonblock="no"
36184     fi
36185   fi
36186   #
36187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
36188 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
36189   if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
36190      test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
36191     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36192 $as_echo "yes" >&6; }
36193
36194 cat >>confdefs.h <<_ACEOF
36195 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
36196 _ACEOF
36197
36198     ac_cv_func_setsockopt_so_nonblock="yes"
36199   else
36200     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36201 $as_echo "no" >&6; }
36202     ac_cv_func_setsockopt_so_nonblock="no"
36203   fi
36204
36205   else
36206     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36207 $as_echo "no" >&6; }
36208     ac_cv_func_setsockopt="no"
36209   fi
36210
36211
36212 curl_includes_signal="\
36213 /* includes start */
36214 #ifdef HAVE_SYS_TYPES_H
36215 #  include <sys/types.h>
36216 #endif
36217 #ifdef HAVE_SIGNAL_H
36218 #  include <signal.h>
36219 #endif
36220 /* includes end */"
36221   for ac_header in sys/types.h signal.h
36222 do :
36223   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36224 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
36225 "
36226 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36227   cat >>confdefs.h <<_ACEOF
36228 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36229 _ACEOF
36230
36231 fi
36232
36233 done
36234
36235
36236
36237     #
36238   tst_links_sigaction="unknown"
36239   tst_proto_sigaction="unknown"
36240   tst_compi_sigaction="unknown"
36241   tst_allow_sigaction="unknown"
36242   #
36243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
36244 $as_echo_n "checking if sigaction can be linked... " >&6; }
36245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36246 /* end confdefs.h.  */
36247
36248
36249 #define sigaction innocuous_sigaction
36250 #ifdef __STDC__
36251 # include <limits.h>
36252 #else
36253 # include <assert.h>
36254 #endif
36255 #undef sigaction
36256 #ifdef __cplusplus
36257 extern "C"
36258 #endif
36259 char sigaction ();
36260 #if defined __stub_sigaction || defined __stub___sigaction
36261 choke me
36262 #endif
36263
36264 int main (void)
36265 {
36266 return sigaction ();
36267  ;
36268  return 0;
36269 }
36270
36271 _ACEOF
36272 if ac_fn_c_try_link "$LINENO"; then :
36273
36274     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36275 $as_echo "yes" >&6; }
36276     tst_links_sigaction="yes"
36277
36278 else
36279
36280     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36281 $as_echo "no" >&6; }
36282     tst_links_sigaction="no"
36283
36284 fi
36285 rm -f core conftest.err conftest.$ac_objext \
36286     conftest$ac_exeext conftest.$ac_ext
36287   #
36288   if test "$tst_links_sigaction" = "yes"; then
36289     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
36290 $as_echo_n "checking if sigaction is prototyped... " >&6; }
36291     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36292 /* end confdefs.h.  */
36293
36294       $curl_includes_signal
36295
36296 _ACEOF
36297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36298   $EGREP "sigaction" >/dev/null 2>&1; then :
36299
36300       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36301 $as_echo "yes" >&6; }
36302       tst_proto_sigaction="yes"
36303
36304 else
36305
36306       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36307 $as_echo "no" >&6; }
36308       tst_proto_sigaction="no"
36309
36310 fi
36311 rm -f conftest*
36312
36313   fi
36314   #
36315   if test "$tst_proto_sigaction" = "yes"; then
36316     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
36317 $as_echo_n "checking if sigaction is compilable... " >&6; }
36318     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36319 /* end confdefs.h.  */
36320
36321
36322         $curl_includes_signal
36323
36324 int main (void)
36325 {
36326
36327         if(0 != sigaction(0, 0, 0))
36328           return 1;
36329
36330  ;
36331  return 0;
36332 }
36333
36334 _ACEOF
36335 if ac_fn_c_try_compile "$LINENO"; then :
36336
36337       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36338 $as_echo "yes" >&6; }
36339       tst_compi_sigaction="yes"
36340
36341 else
36342
36343       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36344 $as_echo "no" >&6; }
36345       tst_compi_sigaction="no"
36346
36347 fi
36348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36349   fi
36350   #
36351   if test "$tst_compi_sigaction" = "yes"; then
36352     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
36353 $as_echo_n "checking if sigaction usage allowed... " >&6; }
36354     if test "x$curl_disallow_sigaction" != "xyes"; then
36355       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36356 $as_echo "yes" >&6; }
36357       tst_allow_sigaction="yes"
36358     else
36359       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36360 $as_echo "no" >&6; }
36361       tst_allow_sigaction="no"
36362     fi
36363   fi
36364   #
36365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
36366 $as_echo_n "checking if sigaction might be used... " >&6; }
36367   if test "$tst_links_sigaction" = "yes" &&
36368      test "$tst_proto_sigaction" = "yes" &&
36369      test "$tst_compi_sigaction" = "yes" &&
36370      test "$tst_allow_sigaction" = "yes"; then
36371     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36372 $as_echo "yes" >&6; }
36373
36374 cat >>confdefs.h <<_ACEOF
36375 #define HAVE_SIGACTION 1
36376 _ACEOF
36377
36378     ac_cv_func_sigaction="yes"
36379   else
36380     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36381 $as_echo "no" >&6; }
36382     ac_cv_func_sigaction="no"
36383   fi
36384
36385
36386     #
36387   tst_links_siginterrupt="unknown"
36388   tst_proto_siginterrupt="unknown"
36389   tst_compi_siginterrupt="unknown"
36390   tst_allow_siginterrupt="unknown"
36391   #
36392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
36393 $as_echo_n "checking if siginterrupt can be linked... " >&6; }
36394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36395 /* end confdefs.h.  */
36396
36397
36398 #define siginterrupt innocuous_siginterrupt
36399 #ifdef __STDC__
36400 # include <limits.h>
36401 #else
36402 # include <assert.h>
36403 #endif
36404 #undef siginterrupt
36405 #ifdef __cplusplus
36406 extern "C"
36407 #endif
36408 char siginterrupt ();
36409 #if defined __stub_siginterrupt || defined __stub___siginterrupt
36410 choke me
36411 #endif
36412
36413 int main (void)
36414 {
36415 return siginterrupt ();
36416  ;
36417  return 0;
36418 }
36419
36420 _ACEOF
36421 if ac_fn_c_try_link "$LINENO"; then :
36422
36423     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36424 $as_echo "yes" >&6; }
36425     tst_links_siginterrupt="yes"
36426
36427 else
36428
36429     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36430 $as_echo "no" >&6; }
36431     tst_links_siginterrupt="no"
36432
36433 fi
36434 rm -f core conftest.err conftest.$ac_objext \
36435     conftest$ac_exeext conftest.$ac_ext
36436   #
36437   if test "$tst_links_siginterrupt" = "yes"; then
36438     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
36439 $as_echo_n "checking if siginterrupt is prototyped... " >&6; }
36440     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36441 /* end confdefs.h.  */
36442
36443       $curl_includes_signal
36444
36445 _ACEOF
36446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36447   $EGREP "siginterrupt" >/dev/null 2>&1; then :
36448
36449       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36450 $as_echo "yes" >&6; }
36451       tst_proto_siginterrupt="yes"
36452
36453 else
36454
36455       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36456 $as_echo "no" >&6; }
36457       tst_proto_siginterrupt="no"
36458
36459 fi
36460 rm -f conftest*
36461
36462   fi
36463   #
36464   if test "$tst_proto_siginterrupt" = "yes"; then
36465     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
36466 $as_echo_n "checking if siginterrupt is compilable... " >&6; }
36467     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36468 /* end confdefs.h.  */
36469
36470
36471         $curl_includes_signal
36472
36473 int main (void)
36474 {
36475
36476         if(0 != siginterrupt(0, 0))
36477           return 1;
36478
36479  ;
36480  return 0;
36481 }
36482
36483 _ACEOF
36484 if ac_fn_c_try_compile "$LINENO"; then :
36485
36486       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36487 $as_echo "yes" >&6; }
36488       tst_compi_siginterrupt="yes"
36489
36490 else
36491
36492       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36493 $as_echo "no" >&6; }
36494       tst_compi_siginterrupt="no"
36495
36496 fi
36497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36498   fi
36499   #
36500   if test "$tst_compi_siginterrupt" = "yes"; then
36501     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
36502 $as_echo_n "checking if siginterrupt usage allowed... " >&6; }
36503     if test "x$curl_disallow_siginterrupt" != "xyes"; then
36504       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36505 $as_echo "yes" >&6; }
36506       tst_allow_siginterrupt="yes"
36507     else
36508       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36509 $as_echo "no" >&6; }
36510       tst_allow_siginterrupt="no"
36511     fi
36512   fi
36513   #
36514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
36515 $as_echo_n "checking if siginterrupt might be used... " >&6; }
36516   if test "$tst_links_siginterrupt" = "yes" &&
36517      test "$tst_proto_siginterrupt" = "yes" &&
36518      test "$tst_compi_siginterrupt" = "yes" &&
36519      test "$tst_allow_siginterrupt" = "yes"; then
36520     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36521 $as_echo "yes" >&6; }
36522
36523 cat >>confdefs.h <<_ACEOF
36524 #define HAVE_SIGINTERRUPT 1
36525 _ACEOF
36526
36527     ac_cv_func_siginterrupt="yes"
36528   else
36529     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36530 $as_echo "no" >&6; }
36531     ac_cv_func_siginterrupt="no"
36532   fi
36533
36534
36535     #
36536   tst_links_signal="unknown"
36537   tst_proto_signal="unknown"
36538   tst_compi_signal="unknown"
36539   tst_allow_signal="unknown"
36540   #
36541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
36542 $as_echo_n "checking if signal can be linked... " >&6; }
36543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36544 /* end confdefs.h.  */
36545
36546
36547 #define signal innocuous_signal
36548 #ifdef __STDC__
36549 # include <limits.h>
36550 #else
36551 # include <assert.h>
36552 #endif
36553 #undef signal
36554 #ifdef __cplusplus
36555 extern "C"
36556 #endif
36557 char signal ();
36558 #if defined __stub_signal || defined __stub___signal
36559 choke me
36560 #endif
36561
36562 int main (void)
36563 {
36564 return signal ();
36565  ;
36566  return 0;
36567 }
36568
36569 _ACEOF
36570 if ac_fn_c_try_link "$LINENO"; then :
36571
36572     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36573 $as_echo "yes" >&6; }
36574     tst_links_signal="yes"
36575
36576 else
36577
36578     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36579 $as_echo "no" >&6; }
36580     tst_links_signal="no"
36581
36582 fi
36583 rm -f core conftest.err conftest.$ac_objext \
36584     conftest$ac_exeext conftest.$ac_ext
36585   #
36586   if test "$tst_links_signal" = "yes"; then
36587     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
36588 $as_echo_n "checking if signal is prototyped... " >&6; }
36589     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36590 /* end confdefs.h.  */
36591
36592       $curl_includes_signal
36593
36594 _ACEOF
36595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36596   $EGREP "signal" >/dev/null 2>&1; then :
36597
36598       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36599 $as_echo "yes" >&6; }
36600       tst_proto_signal="yes"
36601
36602 else
36603
36604       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36605 $as_echo "no" >&6; }
36606       tst_proto_signal="no"
36607
36608 fi
36609 rm -f conftest*
36610
36611   fi
36612   #
36613   if test "$tst_proto_signal" = "yes"; then
36614     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
36615 $as_echo_n "checking if signal is compilable... " >&6; }
36616     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36617 /* end confdefs.h.  */
36618
36619
36620         $curl_includes_signal
36621
36622 int main (void)
36623 {
36624
36625         if(0 != signal(0, 0))
36626           return 1;
36627
36628  ;
36629  return 0;
36630 }
36631
36632 _ACEOF
36633 if ac_fn_c_try_compile "$LINENO"; then :
36634
36635       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36636 $as_echo "yes" >&6; }
36637       tst_compi_signal="yes"
36638
36639 else
36640
36641       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36642 $as_echo "no" >&6; }
36643       tst_compi_signal="no"
36644
36645 fi
36646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36647   fi
36648   #
36649   if test "$tst_compi_signal" = "yes"; then
36650     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
36651 $as_echo_n "checking if signal usage allowed... " >&6; }
36652     if test "x$curl_disallow_signal" != "xyes"; then
36653       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36654 $as_echo "yes" >&6; }
36655       tst_allow_signal="yes"
36656     else
36657       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36658 $as_echo "no" >&6; }
36659       tst_allow_signal="no"
36660     fi
36661   fi
36662   #
36663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
36664 $as_echo_n "checking if signal might be used... " >&6; }
36665   if test "$tst_links_signal" = "yes" &&
36666      test "$tst_proto_signal" = "yes" &&
36667      test "$tst_compi_signal" = "yes" &&
36668      test "$tst_allow_signal" = "yes"; then
36669     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36670 $as_echo "yes" >&6; }
36671
36672 cat >>confdefs.h <<_ACEOF
36673 #define HAVE_SIGNAL 1
36674 _ACEOF
36675
36676     ac_cv_func_signal="yes"
36677   else
36678     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36679 $as_echo "no" >&6; }
36680     ac_cv_func_signal="no"
36681   fi
36682
36683
36684 curl_includes_setjmp="\
36685 /* includes start */
36686 #ifdef HAVE_SYS_TYPES_H
36687 #  include <sys/types.h>
36688 #endif
36689 #ifdef HAVE_SETJMP_H
36690 #  include <setjmp.h>
36691 #endif
36692 /* includes end */"
36693   for ac_header in sys/types.h setjmp.h
36694 do :
36695   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36696 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
36697 "
36698 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36699   cat >>confdefs.h <<_ACEOF
36700 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36701 _ACEOF
36702
36703 fi
36704
36705 done
36706
36707
36708
36709     #
36710   tst_links_sigsetjmp="unknown"
36711   tst_macro_sigsetjmp="unknown"
36712   tst_proto_sigsetjmp="unknown"
36713   tst_compi_sigsetjmp="unknown"
36714   tst_allow_sigsetjmp="unknown"
36715   #
36716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
36717 $as_echo_n "checking if sigsetjmp can be linked... " >&6; }
36718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36719 /* end confdefs.h.  */
36720
36721
36722 #define sigsetjmp innocuous_sigsetjmp
36723 #ifdef __STDC__
36724 # include <limits.h>
36725 #else
36726 # include <assert.h>
36727 #endif
36728 #undef sigsetjmp
36729 #ifdef __cplusplus
36730 extern "C"
36731 #endif
36732 char sigsetjmp ();
36733 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
36734 choke me
36735 #endif
36736
36737 int main (void)
36738 {
36739 return sigsetjmp ();
36740  ;
36741  return 0;
36742 }
36743
36744 _ACEOF
36745 if ac_fn_c_try_link "$LINENO"; then :
36746
36747     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36748 $as_echo "yes" >&6; }
36749     tst_links_sigsetjmp="yes"
36750
36751 else
36752
36753     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36754 $as_echo "no" >&6; }
36755     tst_links_sigsetjmp="no"
36756
36757 fi
36758 rm -f core conftest.err conftest.$ac_objext \
36759     conftest$ac_exeext conftest.$ac_ext
36760   #
36761   if test "$tst_links_sigsetjmp" = "no"; then
36762     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
36763 $as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
36764     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36765 /* end confdefs.h.  */
36766
36767
36768         $curl_includes_setjmp
36769
36770 int main (void)
36771 {
36772
36773         sigjmp_buf env;
36774         if(0 != sigsetjmp(env, 0))
36775           return 1;
36776
36777  ;
36778  return 0;
36779 }
36780
36781 _ACEOF
36782 if ac_fn_c_try_link "$LINENO"; then :
36783
36784       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36785 $as_echo "yes" >&6; }
36786       tst_macro_sigsetjmp="yes"
36787
36788 else
36789
36790       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36791 $as_echo "no" >&6; }
36792       tst_macro_sigsetjmp="no"
36793
36794 fi
36795 rm -f core conftest.err conftest.$ac_objext \
36796     conftest$ac_exeext conftest.$ac_ext
36797   fi
36798   #
36799   if test "$tst_links_sigsetjmp" = "yes"; then
36800     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
36801 $as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
36802     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36803 /* end confdefs.h.  */
36804
36805       $curl_includes_setjmp
36806
36807 _ACEOF
36808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36809   $EGREP "sigsetjmp" >/dev/null 2>&1; then :
36810
36811       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36812 $as_echo "yes" >&6; }
36813       tst_proto_sigsetjmp="yes"
36814
36815 else
36816
36817       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36818 $as_echo "no" >&6; }
36819       tst_proto_sigsetjmp="no"
36820
36821 fi
36822 rm -f conftest*
36823
36824   fi
36825   #
36826   if test "$tst_proto_sigsetjmp" = "yes" ||
36827      test "$tst_macro_sigsetjmp" = "yes"; then
36828     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
36829 $as_echo_n "checking if sigsetjmp is compilable... " >&6; }
36830     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36831 /* end confdefs.h.  */
36832
36833
36834         $curl_includes_setjmp
36835
36836 int main (void)
36837 {
36838
36839         sigjmp_buf env;
36840         if(0 != sigsetjmp(env, 0))
36841           return 1;
36842
36843  ;
36844  return 0;
36845 }
36846
36847 _ACEOF
36848 if ac_fn_c_try_compile "$LINENO"; then :
36849
36850       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36851 $as_echo "yes" >&6; }
36852       tst_compi_sigsetjmp="yes"
36853
36854 else
36855
36856       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36857 $as_echo "no" >&6; }
36858       tst_compi_sigsetjmp="no"
36859
36860 fi
36861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36862   fi
36863   #
36864   if test "$tst_compi_sigsetjmp" = "yes"; then
36865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
36866 $as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
36867     if test "x$curl_disallow_sigsetjmp" != "xyes"; then
36868       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36869 $as_echo "yes" >&6; }
36870       tst_allow_sigsetjmp="yes"
36871     else
36872       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36873 $as_echo "no" >&6; }
36874       tst_allow_sigsetjmp="no"
36875     fi
36876   fi
36877   #
36878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
36879 $as_echo_n "checking if sigsetjmp might be used... " >&6; }
36880   if (test "$tst_proto_sigsetjmp" = "yes" ||
36881       test "$tst_macro_sigsetjmp" = "yes") &&
36882      test "$tst_compi_sigsetjmp" = "yes" &&
36883      test "$tst_allow_sigsetjmp" = "yes"; then
36884     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36885 $as_echo "yes" >&6; }
36886
36887 cat >>confdefs.h <<_ACEOF
36888 #define HAVE_SIGSETJMP 1
36889 _ACEOF
36890
36891     ac_cv_func_sigsetjmp="yes"
36892   else
36893     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36894 $as_echo "no" >&6; }
36895     ac_cv_func_sigsetjmp="no"
36896   fi
36897
36898
36899         #
36900   tst_links_socket="unknown"
36901   tst_proto_socket="unknown"
36902   tst_compi_socket="unknown"
36903   tst_allow_socket="unknown"
36904   #
36905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
36906 $as_echo_n "checking if socket can be linked... " >&6; }
36907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36908 /* end confdefs.h.  */
36909
36910
36911       $curl_includes_winsock2
36912       $curl_includes_sys_socket
36913       $curl_includes_socket
36914
36915 int main (void)
36916 {
36917
36918       if(0 != socket(0, 0, 0))
36919         return 1;
36920
36921  ;
36922  return 0;
36923 }
36924
36925 _ACEOF
36926 if ac_fn_c_try_link "$LINENO"; then :
36927
36928     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36929 $as_echo "yes" >&6; }
36930     tst_links_socket="yes"
36931
36932 else
36933
36934     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36935 $as_echo "no" >&6; }
36936     tst_links_socket="no"
36937
36938 fi
36939 rm -f core conftest.err conftest.$ac_objext \
36940     conftest$ac_exeext conftest.$ac_ext
36941   #
36942   if test "$tst_links_socket" = "yes"; then
36943     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
36944 $as_echo_n "checking if socket is prototyped... " >&6; }
36945     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36946 /* end confdefs.h.  */
36947
36948       $curl_includes_winsock2
36949       $curl_includes_sys_socket
36950       $curl_includes_socket
36951
36952 _ACEOF
36953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36954   $EGREP "socket" >/dev/null 2>&1; then :
36955
36956       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36957 $as_echo "yes" >&6; }
36958       tst_proto_socket="yes"
36959
36960 else
36961
36962       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36963 $as_echo "no" >&6; }
36964       tst_proto_socket="no"
36965
36966 fi
36967 rm -f conftest*
36968
36969   fi
36970   #
36971   if test "$tst_proto_socket" = "yes"; then
36972     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
36973 $as_echo_n "checking if socket is compilable... " >&6; }
36974     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36975 /* end confdefs.h.  */
36976
36977
36978         $curl_includes_winsock2
36979         $curl_includes_sys_socket
36980         $curl_includes_socket
36981
36982 int main (void)
36983 {
36984
36985         if(0 != socket(0, 0, 0))
36986           return 1;
36987
36988  ;
36989  return 0;
36990 }
36991
36992 _ACEOF
36993 if ac_fn_c_try_compile "$LINENO"; then :
36994
36995       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36996 $as_echo "yes" >&6; }
36997       tst_compi_socket="yes"
36998
36999 else
37000
37001       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37002 $as_echo "no" >&6; }
37003       tst_compi_socket="no"
37004
37005 fi
37006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37007   fi
37008   #
37009   if test "$tst_compi_socket" = "yes"; then
37010     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
37011 $as_echo_n "checking if socket usage allowed... " >&6; }
37012     if test "x$curl_disallow_socket" != "xyes"; then
37013       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37014 $as_echo "yes" >&6; }
37015       tst_allow_socket="yes"
37016     else
37017       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37018 $as_echo "no" >&6; }
37019       tst_allow_socket="no"
37020     fi
37021   fi
37022   #
37023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
37024 $as_echo_n "checking if socket might be used... " >&6; }
37025   if test "$tst_links_socket" = "yes" &&
37026      test "$tst_proto_socket" = "yes" &&
37027      test "$tst_compi_socket" = "yes" &&
37028      test "$tst_allow_socket" = "yes"; then
37029     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37030 $as_echo "yes" >&6; }
37031
37032 cat >>confdefs.h <<_ACEOF
37033 #define HAVE_SOCKET 1
37034 _ACEOF
37035
37036     ac_cv_func_socket="yes"
37037   else
37038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37039 $as_echo "no" >&6; }
37040     ac_cv_func_socket="no"
37041   fi
37042
37043
37044       #
37045   tst_links_socketpair="unknown"
37046   tst_proto_socketpair="unknown"
37047   tst_compi_socketpair="unknown"
37048   tst_allow_socketpair="unknown"
37049   #
37050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
37051 $as_echo_n "checking if socketpair can be linked... " >&6; }
37052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37053 /* end confdefs.h.  */
37054
37055
37056 #define socketpair innocuous_socketpair
37057 #ifdef __STDC__
37058 # include <limits.h>
37059 #else
37060 # include <assert.h>
37061 #endif
37062 #undef socketpair
37063 #ifdef __cplusplus
37064 extern "C"
37065 #endif
37066 char socketpair ();
37067 #if defined __stub_socketpair || defined __stub___socketpair
37068 choke me
37069 #endif
37070
37071 int main (void)
37072 {
37073 return socketpair ();
37074  ;
37075  return 0;
37076 }
37077
37078 _ACEOF
37079 if ac_fn_c_try_link "$LINENO"; then :
37080
37081     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37082 $as_echo "yes" >&6; }
37083     tst_links_socketpair="yes"
37084
37085 else
37086
37087     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37088 $as_echo "no" >&6; }
37089     tst_links_socketpair="no"
37090
37091 fi
37092 rm -f core conftest.err conftest.$ac_objext \
37093     conftest$ac_exeext conftest.$ac_ext
37094   #
37095   if test "$tst_links_socketpair" = "yes"; then
37096     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
37097 $as_echo_n "checking if socketpair is prototyped... " >&6; }
37098     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37099 /* end confdefs.h.  */
37100
37101       $curl_includes_sys_socket
37102       $curl_includes_socket
37103
37104 _ACEOF
37105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37106   $EGREP "socketpair" >/dev/null 2>&1; then :
37107
37108       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37109 $as_echo "yes" >&6; }
37110       tst_proto_socketpair="yes"
37111
37112 else
37113
37114       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37115 $as_echo "no" >&6; }
37116       tst_proto_socketpair="no"
37117
37118 fi
37119 rm -f conftest*
37120
37121   fi
37122   #
37123   if test "$tst_proto_socketpair" = "yes"; then
37124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
37125 $as_echo_n "checking if socketpair is compilable... " >&6; }
37126     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37127 /* end confdefs.h.  */
37128
37129
37130         $curl_includes_sys_socket
37131         $curl_includes_socket
37132
37133 int main (void)
37134 {
37135
37136         int sv[2];
37137         if(0 != socketpair(0, 0, 0, sv))
37138           return 1;
37139
37140  ;
37141  return 0;
37142 }
37143
37144 _ACEOF
37145 if ac_fn_c_try_compile "$LINENO"; then :
37146
37147       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37148 $as_echo "yes" >&6; }
37149       tst_compi_socketpair="yes"
37150
37151 else
37152
37153       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37154 $as_echo "no" >&6; }
37155       tst_compi_socketpair="no"
37156
37157 fi
37158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37159   fi
37160   #
37161   if test "$tst_compi_socketpair" = "yes"; then
37162     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
37163 $as_echo_n "checking if socketpair usage allowed... " >&6; }
37164     if test "x$curl_disallow_socketpair" != "xyes"; then
37165       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37166 $as_echo "yes" >&6; }
37167       tst_allow_socketpair="yes"
37168     else
37169       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37170 $as_echo "no" >&6; }
37171       tst_allow_socketpair="no"
37172     fi
37173   fi
37174   #
37175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
37176 $as_echo_n "checking if socketpair might be used... " >&6; }
37177   if test "$tst_links_socketpair" = "yes" &&
37178      test "$tst_proto_socketpair" = "yes" &&
37179      test "$tst_compi_socketpair" = "yes" &&
37180      test "$tst_allow_socketpair" = "yes"; then
37181     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37182 $as_echo "yes" >&6; }
37183
37184 cat >>confdefs.h <<_ACEOF
37185 #define HAVE_SOCKETPAIR 1
37186 _ACEOF
37187
37188     ac_cv_func_socketpair="yes"
37189   else
37190     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37191 $as_echo "no" >&6; }
37192     ac_cv_func_socketpair="no"
37193   fi
37194
37195
37196     #
37197   tst_links_strcasecmp="unknown"
37198   tst_proto_strcasecmp="unknown"
37199   tst_compi_strcasecmp="unknown"
37200   tst_allow_strcasecmp="unknown"
37201   #
37202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
37203 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
37204   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37205 /* end confdefs.h.  */
37206
37207
37208 #define strcasecmp innocuous_strcasecmp
37209 #ifdef __STDC__
37210 # include <limits.h>
37211 #else
37212 # include <assert.h>
37213 #endif
37214 #undef strcasecmp
37215 #ifdef __cplusplus
37216 extern "C"
37217 #endif
37218 char strcasecmp ();
37219 #if defined __stub_strcasecmp || defined __stub___strcasecmp
37220 choke me
37221 #endif
37222
37223 int main (void)
37224 {
37225 return strcasecmp ();
37226  ;
37227  return 0;
37228 }
37229
37230 _ACEOF
37231 if ac_fn_c_try_link "$LINENO"; then :
37232
37233     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37234 $as_echo "yes" >&6; }
37235     tst_links_strcasecmp="yes"
37236
37237 else
37238
37239     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37240 $as_echo "no" >&6; }
37241     tst_links_strcasecmp="no"
37242
37243 fi
37244 rm -f core conftest.err conftest.$ac_objext \
37245     conftest$ac_exeext conftest.$ac_ext
37246   #
37247   if test "$tst_links_strcasecmp" = "yes"; then
37248     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
37249 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
37250     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37251 /* end confdefs.h.  */
37252
37253       $curl_includes_string
37254
37255 _ACEOF
37256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37257   $EGREP "strcasecmp" >/dev/null 2>&1; then :
37258
37259       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37260 $as_echo "yes" >&6; }
37261       tst_proto_strcasecmp="yes"
37262
37263 else
37264
37265       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37266 $as_echo "no" >&6; }
37267       tst_proto_strcasecmp="no"
37268
37269 fi
37270 rm -f conftest*
37271
37272   fi
37273   #
37274   if test "$tst_proto_strcasecmp" = "yes"; then
37275     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
37276 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
37277     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37278 /* end confdefs.h.  */
37279
37280
37281         $curl_includes_string
37282
37283 int main (void)
37284 {
37285
37286         if(0 != strcasecmp(0, 0))
37287           return 1;
37288
37289  ;
37290  return 0;
37291 }
37292
37293 _ACEOF
37294 if ac_fn_c_try_compile "$LINENO"; then :
37295
37296       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37297 $as_echo "yes" >&6; }
37298       tst_compi_strcasecmp="yes"
37299
37300 else
37301
37302       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37303 $as_echo "no" >&6; }
37304       tst_compi_strcasecmp="no"
37305
37306 fi
37307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37308   fi
37309   #
37310   if test "$tst_compi_strcasecmp" = "yes"; then
37311     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
37312 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
37313     if test "x$curl_disallow_strcasecmp" != "xyes"; then
37314       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37315 $as_echo "yes" >&6; }
37316       tst_allow_strcasecmp="yes"
37317     else
37318       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37319 $as_echo "no" >&6; }
37320       tst_allow_strcasecmp="no"
37321     fi
37322   fi
37323   #
37324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
37325 $as_echo_n "checking if strcasecmp might be used... " >&6; }
37326   if test "$tst_links_strcasecmp" = "yes" &&
37327      test "$tst_proto_strcasecmp" = "yes" &&
37328      test "$tst_compi_strcasecmp" = "yes" &&
37329      test "$tst_allow_strcasecmp" = "yes"; then
37330     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37331 $as_echo "yes" >&6; }
37332
37333 cat >>confdefs.h <<_ACEOF
37334 #define HAVE_STRCASECMP 1
37335 _ACEOF
37336
37337     ac_cv_func_strcasecmp="yes"
37338   else
37339     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37340 $as_echo "no" >&6; }
37341     ac_cv_func_strcasecmp="no"
37342   fi
37343
37344
37345     #
37346   tst_links_strcmpi="unknown"
37347   tst_proto_strcmpi="unknown"
37348   tst_compi_strcmpi="unknown"
37349   tst_allow_strcmpi="unknown"
37350   #
37351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
37352 $as_echo_n "checking if strcmpi can be linked... " >&6; }
37353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37354 /* end confdefs.h.  */
37355
37356
37357 #define strcmpi innocuous_strcmpi
37358 #ifdef __STDC__
37359 # include <limits.h>
37360 #else
37361 # include <assert.h>
37362 #endif
37363 #undef strcmpi
37364 #ifdef __cplusplus
37365 extern "C"
37366 #endif
37367 char strcmpi ();
37368 #if defined __stub_strcmpi || defined __stub___strcmpi
37369 choke me
37370 #endif
37371
37372 int main (void)
37373 {
37374 return strcmpi ();
37375  ;
37376  return 0;
37377 }
37378
37379 _ACEOF
37380 if ac_fn_c_try_link "$LINENO"; then :
37381
37382     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37383 $as_echo "yes" >&6; }
37384     tst_links_strcmpi="yes"
37385
37386 else
37387
37388     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37389 $as_echo "no" >&6; }
37390     tst_links_strcmpi="no"
37391
37392 fi
37393 rm -f core conftest.err conftest.$ac_objext \
37394     conftest$ac_exeext conftest.$ac_ext
37395   #
37396   if test "$tst_links_strcmpi" = "yes"; then
37397     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
37398 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
37399     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37400 /* end confdefs.h.  */
37401
37402       $curl_includes_string
37403
37404 _ACEOF
37405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37406   $EGREP "strcmpi" >/dev/null 2>&1; then :
37407
37408       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37409 $as_echo "yes" >&6; }
37410       tst_proto_strcmpi="yes"
37411
37412 else
37413
37414       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37415 $as_echo "no" >&6; }
37416       tst_proto_strcmpi="no"
37417
37418 fi
37419 rm -f conftest*
37420
37421   fi
37422   #
37423   if test "$tst_proto_strcmpi" = "yes"; then
37424     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
37425 $as_echo_n "checking if strcmpi is compilable... " >&6; }
37426     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37427 /* end confdefs.h.  */
37428
37429
37430         $curl_includes_string
37431
37432 int main (void)
37433 {
37434
37435         if(0 != strcmpi(0, 0))
37436           return 1;
37437
37438  ;
37439  return 0;
37440 }
37441
37442 _ACEOF
37443 if ac_fn_c_try_compile "$LINENO"; then :
37444
37445       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37446 $as_echo "yes" >&6; }
37447       tst_compi_strcmpi="yes"
37448
37449 else
37450
37451       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37452 $as_echo "no" >&6; }
37453       tst_compi_strcmpi="no"
37454
37455 fi
37456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37457   fi
37458   #
37459   if test "$tst_compi_strcmpi" = "yes"; then
37460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
37461 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
37462     if test "x$curl_disallow_strcmpi" != "xyes"; then
37463       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37464 $as_echo "yes" >&6; }
37465       tst_allow_strcmpi="yes"
37466     else
37467       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37468 $as_echo "no" >&6; }
37469       tst_allow_strcmpi="no"
37470     fi
37471   fi
37472   #
37473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
37474 $as_echo_n "checking if strcmpi might be used... " >&6; }
37475   if test "$tst_links_strcmpi" = "yes" &&
37476      test "$tst_proto_strcmpi" = "yes" &&
37477      test "$tst_compi_strcmpi" = "yes" &&
37478      test "$tst_allow_strcmpi" = "yes"; then
37479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37480 $as_echo "yes" >&6; }
37481
37482 cat >>confdefs.h <<_ACEOF
37483 #define HAVE_STRCMPI 1
37484 _ACEOF
37485
37486     ac_cv_func_strcmpi="yes"
37487   else
37488     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37489 $as_echo "no" >&6; }
37490     ac_cv_func_strcmpi="no"
37491   fi
37492
37493
37494     #
37495   tst_links_strdup="unknown"
37496   tst_proto_strdup="unknown"
37497   tst_compi_strdup="unknown"
37498   tst_allow_strdup="unknown"
37499   #
37500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
37501 $as_echo_n "checking if strdup can be linked... " >&6; }
37502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37503 /* end confdefs.h.  */
37504
37505
37506 #define strdup innocuous_strdup
37507 #ifdef __STDC__
37508 # include <limits.h>
37509 #else
37510 # include <assert.h>
37511 #endif
37512 #undef strdup
37513 #ifdef __cplusplus
37514 extern "C"
37515 #endif
37516 char strdup ();
37517 #if defined __stub_strdup || defined __stub___strdup
37518 choke me
37519 #endif
37520
37521 int main (void)
37522 {
37523 return strdup ();
37524  ;
37525  return 0;
37526 }
37527
37528 _ACEOF
37529 if ac_fn_c_try_link "$LINENO"; then :
37530
37531     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37532 $as_echo "yes" >&6; }
37533     tst_links_strdup="yes"
37534
37535 else
37536
37537     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37538 $as_echo "no" >&6; }
37539     tst_links_strdup="no"
37540
37541 fi
37542 rm -f core conftest.err conftest.$ac_objext \
37543     conftest$ac_exeext conftest.$ac_ext
37544   #
37545   if test "$tst_links_strdup" = "yes"; then
37546     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
37547 $as_echo_n "checking if strdup is prototyped... " >&6; }
37548     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37549 /* end confdefs.h.  */
37550
37551       $curl_includes_string
37552
37553 _ACEOF
37554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37555   $EGREP "strdup" >/dev/null 2>&1; then :
37556
37557       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37558 $as_echo "yes" >&6; }
37559       tst_proto_strdup="yes"
37560
37561 else
37562
37563       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37564 $as_echo "no" >&6; }
37565       tst_proto_strdup="no"
37566
37567 fi
37568 rm -f conftest*
37569
37570   fi
37571   #
37572   if test "$tst_proto_strdup" = "yes"; then
37573     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
37574 $as_echo_n "checking if strdup is compilable... " >&6; }
37575     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37576 /* end confdefs.h.  */
37577
37578
37579         $curl_includes_string
37580
37581 int main (void)
37582 {
37583
37584         if(0 != strdup(0))
37585           return 1;
37586
37587  ;
37588  return 0;
37589 }
37590
37591 _ACEOF
37592 if ac_fn_c_try_compile "$LINENO"; then :
37593
37594       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37595 $as_echo "yes" >&6; }
37596       tst_compi_strdup="yes"
37597
37598 else
37599
37600       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37601 $as_echo "no" >&6; }
37602       tst_compi_strdup="no"
37603
37604 fi
37605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37606   fi
37607   #
37608   if test "$tst_compi_strdup" = "yes"; then
37609     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
37610 $as_echo_n "checking if strdup usage allowed... " >&6; }
37611     if test "x$curl_disallow_strdup" != "xyes"; then
37612       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37613 $as_echo "yes" >&6; }
37614       tst_allow_strdup="yes"
37615     else
37616       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37617 $as_echo "no" >&6; }
37618       tst_allow_strdup="no"
37619     fi
37620   fi
37621   #
37622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
37623 $as_echo_n "checking if strdup might be used... " >&6; }
37624   if test "$tst_links_strdup" = "yes" &&
37625      test "$tst_proto_strdup" = "yes" &&
37626      test "$tst_compi_strdup" = "yes" &&
37627      test "$tst_allow_strdup" = "yes"; then
37628     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37629 $as_echo "yes" >&6; }
37630
37631 cat >>confdefs.h <<_ACEOF
37632 #define HAVE_STRDUP 1
37633 _ACEOF
37634
37635     ac_cv_func_strdup="yes"
37636   else
37637     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37638 $as_echo "no" >&6; }
37639     ac_cv_func_strdup="no"
37640   fi
37641
37642
37643       #
37644   tst_links_strerror_r="unknown"
37645   tst_proto_strerror_r="unknown"
37646   tst_compi_strerror_r="unknown"
37647   tst_glibc_strerror_r="unknown"
37648   tst_posix_strerror_r="unknown"
37649   tst_allow_strerror_r="unknown"
37650   tst_works_glibc_strerror_r="unknown"
37651   tst_works_posix_strerror_r="unknown"
37652   tst_glibc_strerror_r_type_arg3="unknown"
37653   tst_posix_strerror_r_type_arg3="unknown"
37654   #
37655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
37656 $as_echo_n "checking if strerror_r can be linked... " >&6; }
37657   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37658 /* end confdefs.h.  */
37659
37660
37661 #define strerror_r innocuous_strerror_r
37662 #ifdef __STDC__
37663 # include <limits.h>
37664 #else
37665 # include <assert.h>
37666 #endif
37667 #undef strerror_r
37668 #ifdef __cplusplus
37669 extern "C"
37670 #endif
37671 char strerror_r ();
37672 #if defined __stub_strerror_r || defined __stub___strerror_r
37673 choke me
37674 #endif
37675
37676 int main (void)
37677 {
37678 return strerror_r ();
37679  ;
37680  return 0;
37681 }
37682
37683 _ACEOF
37684 if ac_fn_c_try_link "$LINENO"; then :
37685
37686     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37687 $as_echo "yes" >&6; }
37688     tst_links_strerror_r="yes"
37689
37690 else
37691
37692     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37693 $as_echo "no" >&6; }
37694     tst_links_strerror_r="no"
37695
37696 fi
37697 rm -f core conftest.err conftest.$ac_objext \
37698     conftest$ac_exeext conftest.$ac_ext
37699   #
37700   if test "$tst_links_strerror_r" = "yes"; then
37701     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
37702 $as_echo_n "checking if strerror_r is prototyped... " >&6; }
37703     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37704 /* end confdefs.h.  */
37705
37706       $curl_includes_string
37707
37708 _ACEOF
37709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37710   $EGREP "strerror_r" >/dev/null 2>&1; then :
37711
37712       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37713 $as_echo "yes" >&6; }
37714       tst_proto_strerror_r="yes"
37715
37716 else
37717
37718       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37719 $as_echo "no" >&6; }
37720       tst_proto_strerror_r="no"
37721
37722 fi
37723 rm -f conftest*
37724
37725   fi
37726   #
37727   if test "$tst_proto_strerror_r" = "yes"; then
37728     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
37729 $as_echo_n "checking if strerror_r is compilable... " >&6; }
37730     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37731 /* end confdefs.h.  */
37732
37733
37734         $curl_includes_string
37735
37736 int main (void)
37737 {
37738
37739         if(0 != strerror_r(0, 0, 0))
37740           return 1;
37741
37742  ;
37743  return 0;
37744 }
37745
37746 _ACEOF
37747 if ac_fn_c_try_compile "$LINENO"; then :
37748
37749       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37750 $as_echo "yes" >&6; }
37751       tst_compi_strerror_r="yes"
37752
37753 else
37754
37755       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37756 $as_echo "no" >&6; }
37757       tst_compi_strerror_r="no"
37758
37759 fi
37760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37761   fi
37762   #
37763   if test "$tst_compi_strerror_r" = "yes"; then
37764     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
37765 $as_echo_n "checking if strerror_r is glibc like... " >&6; }
37766     tst_glibc_strerror_r_type_arg3="unknown"
37767     for arg3 in 'size_t' 'int' 'unsigned int'; do
37768       if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
37769         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37770 /* end confdefs.h.  */
37771
37772
37773             $curl_includes_string
37774             char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
37775
37776 int main (void)
37777 {
37778
37779             if(0 != strerror_r(0, 0, 0))
37780               return 1;
37781
37782  ;
37783  return 0;
37784 }
37785
37786 _ACEOF
37787 if ac_fn_c_try_compile "$LINENO"; then :
37788
37789           tst_glibc_strerror_r_type_arg3="$arg3"
37790
37791 fi
37792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37793       fi
37794     done
37795     case "$tst_glibc_strerror_r_type_arg3" in
37796       unknown)
37797         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37798 $as_echo "no" >&6; }
37799         tst_glibc_strerror_r="no"
37800         ;;
37801       *)
37802         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37803 $as_echo "yes" >&6; }
37804         tst_glibc_strerror_r="yes"
37805         ;;
37806     esac
37807   fi
37808   #
37809     if test "x$cross_compiling" != "xyes" &&
37810     test "$tst_glibc_strerror_r" = "yes"; then
37811     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
37812 $as_echo_n "checking if strerror_r seems to work... " >&6; }
37813     if test "$cross_compiling" = yes; then :
37814   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37816 as_fn_error $? "cannot run test program while cross compiling
37817 See \`config.log' for more details" "$LINENO" 5; }
37818 else
37819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37820 /* end confdefs.h.  */
37821
37822
37823         $curl_includes_stdlib
37824         $curl_includes_string
37825 #       include <errno.h>
37826
37827 int main (void)
37828 {
37829
37830         char buffer[1024];
37831         char *string = 0;
37832         buffer[0] = '\0';
37833         string = strerror_r(EACCES, buffer, sizeof(buffer));
37834         if(!string)
37835           exit(1); /* fail */
37836         if(!string[0])
37837           exit(1); /* fail */
37838         else
37839           exit(0);
37840
37841  ;
37842  return 0;
37843 }
37844
37845 _ACEOF
37846 if ac_fn_c_try_run "$LINENO"; then :
37847
37848       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37849 $as_echo "yes" >&6; }
37850       tst_works_glibc_strerror_r="yes"
37851
37852 else
37853
37854       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37855 $as_echo "no" >&6; }
37856       tst_works_glibc_strerror_r="no"
37857
37858 fi
37859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37860   conftest.$ac_objext conftest.beam conftest.$ac_ext
37861 fi
37862
37863   fi
37864   #
37865   if test "$tst_compi_strerror_r" = "yes" &&
37866     test "$tst_works_glibc_strerror_r" != "yes"; then
37867     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
37868 $as_echo_n "checking if strerror_r is POSIX like... " >&6; }
37869     tst_posix_strerror_r_type_arg3="unknown"
37870     for arg3 in 'size_t' 'int' 'unsigned int'; do
37871       if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
37872         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37873 /* end confdefs.h.  */
37874
37875
37876             $curl_includes_string
37877             int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
37878
37879 int main (void)
37880 {
37881
37882             if(0 != strerror_r(0, 0, 0))
37883               return 1;
37884
37885  ;
37886  return 0;
37887 }
37888
37889 _ACEOF
37890 if ac_fn_c_try_compile "$LINENO"; then :
37891
37892           tst_posix_strerror_r_type_arg3="$arg3"
37893
37894 fi
37895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37896       fi
37897     done
37898     case "$tst_posix_strerror_r_type_arg3" in
37899       unknown)
37900         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37901 $as_echo "no" >&6; }
37902         tst_posix_strerror_r="no"
37903         ;;
37904       *)
37905         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37906 $as_echo "yes" >&6; }
37907         tst_posix_strerror_r="yes"
37908         ;;
37909     esac
37910   fi
37911   #
37912     if test "x$cross_compiling" != "xyes" &&
37913     test "$tst_posix_strerror_r" = "yes"; then
37914     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
37915 $as_echo_n "checking if strerror_r seems to work... " >&6; }
37916     if test "$cross_compiling" = yes; then :
37917   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37919 as_fn_error $? "cannot run test program while cross compiling
37920 See \`config.log' for more details" "$LINENO" 5; }
37921 else
37922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37923 /* end confdefs.h.  */
37924
37925
37926         $curl_includes_stdlib
37927         $curl_includes_string
37928 #       include <errno.h>
37929
37930 int main (void)
37931 {
37932
37933         char buffer[1024];
37934         int error = 1;
37935         buffer[0] = '\0';
37936         error = strerror_r(EACCES, buffer, sizeof(buffer));
37937         if(error)
37938           exit(1); /* fail */
37939         if(buffer[0] == '\0')
37940           exit(1); /* fail */
37941         else
37942           exit(0);
37943
37944  ;
37945  return 0;
37946 }
37947
37948 _ACEOF
37949 if ac_fn_c_try_run "$LINENO"; then :
37950
37951       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37952 $as_echo "yes" >&6; }
37953       tst_works_posix_strerror_r="yes"
37954
37955 else
37956
37957       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37958 $as_echo "no" >&6; }
37959       tst_works_posix_strerror_r="no"
37960
37961 fi
37962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37963   conftest.$ac_objext conftest.beam conftest.$ac_ext
37964 fi
37965
37966   fi
37967   #
37968   if test "$tst_works_glibc_strerror_r" = "yes"; then
37969     tst_posix_strerror_r="no"
37970   fi
37971   if test "$tst_works_posix_strerror_r" = "yes"; then
37972     tst_glibc_strerror_r="no"
37973   fi
37974   if test "$tst_glibc_strerror_r" = "yes" &&
37975     test "$tst_works_glibc_strerror_r" != "no" &&
37976     test "$tst_posix_strerror_r" != "yes"; then
37977     tst_allow_strerror_r="check"
37978   fi
37979   if test "$tst_posix_strerror_r" = "yes" &&
37980     test "$tst_works_posix_strerror_r" != "no" &&
37981     test "$tst_glibc_strerror_r" != "yes"; then
37982     tst_allow_strerror_r="check"
37983   fi
37984   if test "$tst_allow_strerror_r" = "check"; then
37985     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
37986 $as_echo_n "checking if strerror_r usage allowed... " >&6; }
37987     if test "x$curl_disallow_strerror_r" != "xyes"; then
37988       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37989 $as_echo "yes" >&6; }
37990       tst_allow_strerror_r="yes"
37991     else
37992       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37993 $as_echo "no" >&6; }
37994       tst_allow_strerror_r="no"
37995     fi
37996   fi
37997   #
37998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
37999 $as_echo_n "checking if strerror_r might be used... " >&6; }
38000   if test "$tst_links_strerror_r" = "yes" &&
38001      test "$tst_proto_strerror_r" = "yes" &&
38002      test "$tst_compi_strerror_r" = "yes" &&
38003      test "$tst_allow_strerror_r" = "yes"; then
38004     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38005 $as_echo "yes" >&6; }
38006     if test "$tst_glibc_strerror_r" = "yes"; then
38007
38008 cat >>confdefs.h <<_ACEOF
38009 #define HAVE_STRERROR_R 1
38010 _ACEOF
38011
38012
38013 cat >>confdefs.h <<_ACEOF
38014 #define HAVE_GLIBC_STRERROR_R 1
38015 _ACEOF
38016
38017
38018 cat >>confdefs.h <<_ACEOF
38019 #define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
38020 _ACEOF
38021
38022     fi
38023     if test "$tst_posix_strerror_r" = "yes"; then
38024
38025 cat >>confdefs.h <<_ACEOF
38026 #define HAVE_STRERROR_R 1
38027 _ACEOF
38028
38029
38030 cat >>confdefs.h <<_ACEOF
38031 #define HAVE_POSIX_STRERROR_R 1
38032 _ACEOF
38033
38034
38035 cat >>confdefs.h <<_ACEOF
38036 #define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
38037 _ACEOF
38038
38039     fi
38040     ac_cv_func_strerror_r="yes"
38041   else
38042     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38043 $as_echo "no" >&6; }
38044     ac_cv_func_strerror_r="no"
38045   fi
38046   #
38047   if test "$tst_compi_strerror_r" = "yes" &&
38048      test "$tst_allow_strerror_r" = "unknown"; then
38049     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
38050 $as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
38051   fi
38052   #
38053
38054
38055     #
38056   tst_links_stricmp="unknown"
38057   tst_proto_stricmp="unknown"
38058   tst_compi_stricmp="unknown"
38059   tst_allow_stricmp="unknown"
38060   #
38061   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
38062 $as_echo_n "checking if stricmp can be linked... " >&6; }
38063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38064 /* end confdefs.h.  */
38065
38066
38067 #define stricmp innocuous_stricmp
38068 #ifdef __STDC__
38069 # include <limits.h>
38070 #else
38071 # include <assert.h>
38072 #endif
38073 #undef stricmp
38074 #ifdef __cplusplus
38075 extern "C"
38076 #endif
38077 char stricmp ();
38078 #if defined __stub_stricmp || defined __stub___stricmp
38079 choke me
38080 #endif
38081
38082 int main (void)
38083 {
38084 return stricmp ();
38085  ;
38086  return 0;
38087 }
38088
38089 _ACEOF
38090 if ac_fn_c_try_link "$LINENO"; then :
38091
38092     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38093 $as_echo "yes" >&6; }
38094     tst_links_stricmp="yes"
38095
38096 else
38097
38098     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38099 $as_echo "no" >&6; }
38100     tst_links_stricmp="no"
38101
38102 fi
38103 rm -f core conftest.err conftest.$ac_objext \
38104     conftest$ac_exeext conftest.$ac_ext
38105   #
38106   if test "$tst_links_stricmp" = "yes"; then
38107     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
38108 $as_echo_n "checking if stricmp is prototyped... " >&6; }
38109     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38110 /* end confdefs.h.  */
38111
38112       $curl_includes_string
38113
38114 _ACEOF
38115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38116   $EGREP "stricmp" >/dev/null 2>&1; then :
38117
38118       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38119 $as_echo "yes" >&6; }
38120       tst_proto_stricmp="yes"
38121
38122 else
38123
38124       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38125 $as_echo "no" >&6; }
38126       tst_proto_stricmp="no"
38127
38128 fi
38129 rm -f conftest*
38130
38131   fi
38132   #
38133   if test "$tst_proto_stricmp" = "yes"; then
38134     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
38135 $as_echo_n "checking if stricmp is compilable... " >&6; }
38136     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38137 /* end confdefs.h.  */
38138
38139
38140         $curl_includes_string
38141
38142 int main (void)
38143 {
38144
38145         if(0 != stricmp(0, 0))
38146           return 1;
38147
38148  ;
38149  return 0;
38150 }
38151
38152 _ACEOF
38153 if ac_fn_c_try_compile "$LINENO"; then :
38154
38155       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38156 $as_echo "yes" >&6; }
38157       tst_compi_stricmp="yes"
38158
38159 else
38160
38161       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38162 $as_echo "no" >&6; }
38163       tst_compi_stricmp="no"
38164
38165 fi
38166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38167   fi
38168   #
38169   if test "$tst_compi_stricmp" = "yes"; then
38170     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
38171 $as_echo_n "checking if stricmp usage allowed... " >&6; }
38172     if test "x$curl_disallow_stricmp" != "xyes"; then
38173       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38174 $as_echo "yes" >&6; }
38175       tst_allow_stricmp="yes"
38176     else
38177       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38178 $as_echo "no" >&6; }
38179       tst_allow_stricmp="no"
38180     fi
38181   fi
38182   #
38183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
38184 $as_echo_n "checking if stricmp might be used... " >&6; }
38185   if test "$tst_links_stricmp" = "yes" &&
38186      test "$tst_proto_stricmp" = "yes" &&
38187      test "$tst_compi_stricmp" = "yes" &&
38188      test "$tst_allow_stricmp" = "yes"; then
38189     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38190 $as_echo "yes" >&6; }
38191
38192 cat >>confdefs.h <<_ACEOF
38193 #define HAVE_STRICMP 1
38194 _ACEOF
38195
38196     ac_cv_func_stricmp="yes"
38197   else
38198     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38199 $as_echo "no" >&6; }
38200     ac_cv_func_stricmp="no"
38201   fi
38202
38203
38204     #
38205   tst_links_strncasecmp="unknown"
38206   tst_proto_strncasecmp="unknown"
38207   tst_compi_strncasecmp="unknown"
38208   tst_allow_strncasecmp="unknown"
38209   #
38210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
38211 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
38212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38213 /* end confdefs.h.  */
38214
38215
38216 #define strncasecmp innocuous_strncasecmp
38217 #ifdef __STDC__
38218 # include <limits.h>
38219 #else
38220 # include <assert.h>
38221 #endif
38222 #undef strncasecmp
38223 #ifdef __cplusplus
38224 extern "C"
38225 #endif
38226 char strncasecmp ();
38227 #if defined __stub_strncasecmp || defined __stub___strncasecmp
38228 choke me
38229 #endif
38230
38231 int main (void)
38232 {
38233 return strncasecmp ();
38234  ;
38235  return 0;
38236 }
38237
38238 _ACEOF
38239 if ac_fn_c_try_link "$LINENO"; then :
38240
38241     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38242 $as_echo "yes" >&6; }
38243     tst_links_strncasecmp="yes"
38244
38245 else
38246
38247     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38248 $as_echo "no" >&6; }
38249     tst_links_strncasecmp="no"
38250
38251 fi
38252 rm -f core conftest.err conftest.$ac_objext \
38253     conftest$ac_exeext conftest.$ac_ext
38254   #
38255   if test "$tst_links_strncasecmp" = "yes"; then
38256     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
38257 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
38258     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38259 /* end confdefs.h.  */
38260
38261       $curl_includes_string
38262
38263 _ACEOF
38264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38265   $EGREP "strncasecmp" >/dev/null 2>&1; then :
38266
38267       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38268 $as_echo "yes" >&6; }
38269       tst_proto_strncasecmp="yes"
38270
38271 else
38272
38273       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38274 $as_echo "no" >&6; }
38275       tst_proto_strncasecmp="no"
38276
38277 fi
38278 rm -f conftest*
38279
38280   fi
38281   #
38282   if test "$tst_proto_strncasecmp" = "yes"; then
38283     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
38284 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
38285     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38286 /* end confdefs.h.  */
38287
38288
38289         $curl_includes_string
38290
38291 int main (void)
38292 {
38293
38294         if(0 != strncasecmp(0, 0, 0))
38295           return 1;
38296
38297  ;
38298  return 0;
38299 }
38300
38301 _ACEOF
38302 if ac_fn_c_try_compile "$LINENO"; then :
38303
38304       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38305 $as_echo "yes" >&6; }
38306       tst_compi_strncasecmp="yes"
38307
38308 else
38309
38310       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38311 $as_echo "no" >&6; }
38312       tst_compi_strncasecmp="no"
38313
38314 fi
38315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38316   fi
38317   #
38318   if test "$tst_compi_strncasecmp" = "yes"; then
38319     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
38320 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
38321     if test "x$curl_disallow_strncasecmp" != "xyes"; then
38322       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38323 $as_echo "yes" >&6; }
38324       tst_allow_strncasecmp="yes"
38325     else
38326       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38327 $as_echo "no" >&6; }
38328       tst_allow_strncasecmp="no"
38329     fi
38330   fi
38331   #
38332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
38333 $as_echo_n "checking if strncasecmp might be used... " >&6; }
38334   if test "$tst_links_strncasecmp" = "yes" &&
38335      test "$tst_proto_strncasecmp" = "yes" &&
38336      test "$tst_compi_strncasecmp" = "yes" &&
38337      test "$tst_allow_strncasecmp" = "yes"; then
38338     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38339 $as_echo "yes" >&6; }
38340
38341 cat >>confdefs.h <<_ACEOF
38342 #define HAVE_STRNCASECMP 1
38343 _ACEOF
38344
38345     ac_cv_func_strncasecmp="yes"
38346   else
38347     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38348 $as_echo "no" >&6; }
38349     ac_cv_func_strncasecmp="no"
38350   fi
38351
38352
38353     #
38354   tst_links_strncmpi="unknown"
38355   tst_proto_strncmpi="unknown"
38356   tst_compi_strncmpi="unknown"
38357   tst_allow_strncmpi="unknown"
38358   #
38359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
38360 $as_echo_n "checking if strncmpi can be linked... " >&6; }
38361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38362 /* end confdefs.h.  */
38363
38364
38365 #define strncmpi innocuous_strncmpi
38366 #ifdef __STDC__
38367 # include <limits.h>
38368 #else
38369 # include <assert.h>
38370 #endif
38371 #undef strncmpi
38372 #ifdef __cplusplus
38373 extern "C"
38374 #endif
38375 char strncmpi ();
38376 #if defined __stub_strncmpi || defined __stub___strncmpi
38377 choke me
38378 #endif
38379
38380 int main (void)
38381 {
38382 return strncmpi ();
38383  ;
38384  return 0;
38385 }
38386
38387 _ACEOF
38388 if ac_fn_c_try_link "$LINENO"; then :
38389
38390     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38391 $as_echo "yes" >&6; }
38392     tst_links_strncmpi="yes"
38393
38394 else
38395
38396     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38397 $as_echo "no" >&6; }
38398     tst_links_strncmpi="no"
38399
38400 fi
38401 rm -f core conftest.err conftest.$ac_objext \
38402     conftest$ac_exeext conftest.$ac_ext
38403   #
38404   if test "$tst_links_strncmpi" = "yes"; then
38405     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
38406 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
38407     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38408 /* end confdefs.h.  */
38409
38410       $curl_includes_string
38411
38412 _ACEOF
38413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38414   $EGREP "strncmpi" >/dev/null 2>&1; then :
38415
38416       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38417 $as_echo "yes" >&6; }
38418       tst_proto_strncmpi="yes"
38419
38420 else
38421
38422       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38423 $as_echo "no" >&6; }
38424       tst_proto_strncmpi="no"
38425
38426 fi
38427 rm -f conftest*
38428
38429   fi
38430   #
38431   if test "$tst_proto_strncmpi" = "yes"; then
38432     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
38433 $as_echo_n "checking if strncmpi is compilable... " >&6; }
38434     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38435 /* end confdefs.h.  */
38436
38437
38438         $curl_includes_string
38439
38440 int main (void)
38441 {
38442
38443         if(0 != strncmpi(0, 0))
38444           return 1;
38445
38446  ;
38447  return 0;
38448 }
38449
38450 _ACEOF
38451 if ac_fn_c_try_compile "$LINENO"; then :
38452
38453       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38454 $as_echo "yes" >&6; }
38455       tst_compi_strncmpi="yes"
38456
38457 else
38458
38459       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38460 $as_echo "no" >&6; }
38461       tst_compi_strncmpi="no"
38462
38463 fi
38464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38465   fi
38466   #
38467   if test "$tst_compi_strncmpi" = "yes"; then
38468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
38469 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
38470     if test "x$curl_disallow_strncmpi" != "xyes"; then
38471       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38472 $as_echo "yes" >&6; }
38473       tst_allow_strncmpi="yes"
38474     else
38475       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38476 $as_echo "no" >&6; }
38477       tst_allow_strncmpi="no"
38478     fi
38479   fi
38480   #
38481   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
38482 $as_echo_n "checking if strncmpi might be used... " >&6; }
38483   if test "$tst_links_strncmpi" = "yes" &&
38484      test "$tst_proto_strncmpi" = "yes" &&
38485      test "$tst_compi_strncmpi" = "yes" &&
38486      test "$tst_allow_strncmpi" = "yes"; then
38487     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38488 $as_echo "yes" >&6; }
38489
38490 cat >>confdefs.h <<_ACEOF
38491 #define HAVE_STRNCMPI 1
38492 _ACEOF
38493
38494     ac_cv_func_strncmpi="yes"
38495   else
38496     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38497 $as_echo "no" >&6; }
38498     ac_cv_func_strncmpi="no"
38499   fi
38500
38501
38502     #
38503   tst_links_strnicmp="unknown"
38504   tst_proto_strnicmp="unknown"
38505   tst_compi_strnicmp="unknown"
38506   tst_allow_strnicmp="unknown"
38507   #
38508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
38509 $as_echo_n "checking if strnicmp can be linked... " >&6; }
38510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38511 /* end confdefs.h.  */
38512
38513
38514 #define strnicmp innocuous_strnicmp
38515 #ifdef __STDC__
38516 # include <limits.h>
38517 #else
38518 # include <assert.h>
38519 #endif
38520 #undef strnicmp
38521 #ifdef __cplusplus
38522 extern "C"
38523 #endif
38524 char strnicmp ();
38525 #if defined __stub_strnicmp || defined __stub___strnicmp
38526 choke me
38527 #endif
38528
38529 int main (void)
38530 {
38531 return strnicmp ();
38532  ;
38533  return 0;
38534 }
38535
38536 _ACEOF
38537 if ac_fn_c_try_link "$LINENO"; then :
38538
38539     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38540 $as_echo "yes" >&6; }
38541     tst_links_strnicmp="yes"
38542
38543 else
38544
38545     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38546 $as_echo "no" >&6; }
38547     tst_links_strnicmp="no"
38548
38549 fi
38550 rm -f core conftest.err conftest.$ac_objext \
38551     conftest$ac_exeext conftest.$ac_ext
38552   #
38553   if test "$tst_links_strnicmp" = "yes"; then
38554     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
38555 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
38556     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38557 /* end confdefs.h.  */
38558
38559       $curl_includes_string
38560
38561 _ACEOF
38562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38563   $EGREP "strnicmp" >/dev/null 2>&1; then :
38564
38565       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38566 $as_echo "yes" >&6; }
38567       tst_proto_strnicmp="yes"
38568
38569 else
38570
38571       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38572 $as_echo "no" >&6; }
38573       tst_proto_strnicmp="no"
38574
38575 fi
38576 rm -f conftest*
38577
38578   fi
38579   #
38580   if test "$tst_proto_strnicmp" = "yes"; then
38581     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
38582 $as_echo_n "checking if strnicmp is compilable... " >&6; }
38583     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38584 /* end confdefs.h.  */
38585
38586
38587         $curl_includes_string
38588
38589 int main (void)
38590 {
38591
38592         if(0 != strnicmp(0, 0))
38593           return 1;
38594
38595  ;
38596  return 0;
38597 }
38598
38599 _ACEOF
38600 if ac_fn_c_try_compile "$LINENO"; then :
38601
38602       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38603 $as_echo "yes" >&6; }
38604       tst_compi_strnicmp="yes"
38605
38606 else
38607
38608       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38609 $as_echo "no" >&6; }
38610       tst_compi_strnicmp="no"
38611
38612 fi
38613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38614   fi
38615   #
38616   if test "$tst_compi_strnicmp" = "yes"; then
38617     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
38618 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
38619     if test "x$curl_disallow_strnicmp" != "xyes"; then
38620       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38621 $as_echo "yes" >&6; }
38622       tst_allow_strnicmp="yes"
38623     else
38624       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38625 $as_echo "no" >&6; }
38626       tst_allow_strnicmp="no"
38627     fi
38628   fi
38629   #
38630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
38631 $as_echo_n "checking if strnicmp might be used... " >&6; }
38632   if test "$tst_links_strnicmp" = "yes" &&
38633      test "$tst_proto_strnicmp" = "yes" &&
38634      test "$tst_compi_strnicmp" = "yes" &&
38635      test "$tst_allow_strnicmp" = "yes"; then
38636     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38637 $as_echo "yes" >&6; }
38638
38639 cat >>confdefs.h <<_ACEOF
38640 #define HAVE_STRNICMP 1
38641 _ACEOF
38642
38643     ac_cv_func_strnicmp="yes"
38644   else
38645     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38646 $as_echo "no" >&6; }
38647     ac_cv_func_strnicmp="no"
38648   fi
38649
38650
38651     #
38652   tst_links_strstr="unknown"
38653   tst_proto_strstr="unknown"
38654   tst_compi_strstr="unknown"
38655   tst_allow_strstr="unknown"
38656   #
38657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
38658 $as_echo_n "checking if strstr can be linked... " >&6; }
38659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38660 /* end confdefs.h.  */
38661
38662
38663 #define strstr innocuous_strstr
38664 #ifdef __STDC__
38665 # include <limits.h>
38666 #else
38667 # include <assert.h>
38668 #endif
38669 #undef strstr
38670 #ifdef __cplusplus
38671 extern "C"
38672 #endif
38673 char strstr ();
38674 #if defined __stub_strstr || defined __stub___strstr
38675 choke me
38676 #endif
38677
38678 int main (void)
38679 {
38680 return strstr ();
38681  ;
38682  return 0;
38683 }
38684
38685 _ACEOF
38686 if ac_fn_c_try_link "$LINENO"; then :
38687
38688     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38689 $as_echo "yes" >&6; }
38690     tst_links_strstr="yes"
38691
38692 else
38693
38694     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38695 $as_echo "no" >&6; }
38696     tst_links_strstr="no"
38697
38698 fi
38699 rm -f core conftest.err conftest.$ac_objext \
38700     conftest$ac_exeext conftest.$ac_ext
38701   #
38702   if test "$tst_links_strstr" = "yes"; then
38703     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
38704 $as_echo_n "checking if strstr is prototyped... " >&6; }
38705     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38706 /* end confdefs.h.  */
38707
38708       $curl_includes_string
38709
38710 _ACEOF
38711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38712   $EGREP "strstr" >/dev/null 2>&1; then :
38713
38714       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38715 $as_echo "yes" >&6; }
38716       tst_proto_strstr="yes"
38717
38718 else
38719
38720       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38721 $as_echo "no" >&6; }
38722       tst_proto_strstr="no"
38723
38724 fi
38725 rm -f conftest*
38726
38727   fi
38728   #
38729   if test "$tst_proto_strstr" = "yes"; then
38730     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
38731 $as_echo_n "checking if strstr is compilable... " >&6; }
38732     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38733 /* end confdefs.h.  */
38734
38735
38736         $curl_includes_string
38737
38738 int main (void)
38739 {
38740
38741         if(0 != strstr(0, 0))
38742           return 1;
38743
38744  ;
38745  return 0;
38746 }
38747
38748 _ACEOF
38749 if ac_fn_c_try_compile "$LINENO"; then :
38750
38751       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38752 $as_echo "yes" >&6; }
38753       tst_compi_strstr="yes"
38754
38755 else
38756
38757       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38758 $as_echo "no" >&6; }
38759       tst_compi_strstr="no"
38760
38761 fi
38762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38763   fi
38764   #
38765   if test "$tst_compi_strstr" = "yes"; then
38766     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
38767 $as_echo_n "checking if strstr usage allowed... " >&6; }
38768     if test "x$curl_disallow_strstr" != "xyes"; then
38769       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38770 $as_echo "yes" >&6; }
38771       tst_allow_strstr="yes"
38772     else
38773       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38774 $as_echo "no" >&6; }
38775       tst_allow_strstr="no"
38776     fi
38777   fi
38778   #
38779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
38780 $as_echo_n "checking if strstr might be used... " >&6; }
38781   if test "$tst_links_strstr" = "yes" &&
38782      test "$tst_proto_strstr" = "yes" &&
38783      test "$tst_compi_strstr" = "yes" &&
38784      test "$tst_allow_strstr" = "yes"; then
38785     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38786 $as_echo "yes" >&6; }
38787
38788 cat >>confdefs.h <<_ACEOF
38789 #define HAVE_STRSTR 1
38790 _ACEOF
38791
38792     ac_cv_func_strstr="yes"
38793   else
38794     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38795 $as_echo "no" >&6; }
38796     ac_cv_func_strstr="no"
38797   fi
38798
38799
38800     #
38801   tst_links_strtok_r="unknown"
38802   tst_proto_strtok_r="unknown"
38803   tst_compi_strtok_r="unknown"
38804   tst_allow_strtok_r="unknown"
38805   #
38806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
38807 $as_echo_n "checking if strtok_r can be linked... " >&6; }
38808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38809 /* end confdefs.h.  */
38810
38811
38812 #define strtok_r innocuous_strtok_r
38813 #ifdef __STDC__
38814 # include <limits.h>
38815 #else
38816 # include <assert.h>
38817 #endif
38818 #undef strtok_r
38819 #ifdef __cplusplus
38820 extern "C"
38821 #endif
38822 char strtok_r ();
38823 #if defined __stub_strtok_r || defined __stub___strtok_r
38824 choke me
38825 #endif
38826
38827 int main (void)
38828 {
38829 return strtok_r ();
38830  ;
38831  return 0;
38832 }
38833
38834 _ACEOF
38835 if ac_fn_c_try_link "$LINENO"; then :
38836
38837     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38838 $as_echo "yes" >&6; }
38839     tst_links_strtok_r="yes"
38840
38841 else
38842
38843     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38844 $as_echo "no" >&6; }
38845     tst_links_strtok_r="no"
38846
38847 fi
38848 rm -f core conftest.err conftest.$ac_objext \
38849     conftest$ac_exeext conftest.$ac_ext
38850   #
38851   if test "$tst_links_strtok_r" = "yes"; then
38852     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
38853 $as_echo_n "checking if strtok_r is prototyped... " >&6; }
38854     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38855 /* end confdefs.h.  */
38856
38857       $curl_includes_string
38858
38859 _ACEOF
38860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38861   $EGREP "strtok_r" >/dev/null 2>&1; then :
38862
38863       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38864 $as_echo "yes" >&6; }
38865       tst_proto_strtok_r="yes"
38866
38867 else
38868
38869       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38870 $as_echo "no" >&6; }
38871       tst_proto_strtok_r="no"
38872
38873 fi
38874 rm -f conftest*
38875
38876   fi
38877   #
38878   if test "$tst_proto_strtok_r" = "yes"; then
38879     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
38880 $as_echo_n "checking if strtok_r is compilable... " >&6; }
38881     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38882 /* end confdefs.h.  */
38883
38884
38885         $curl_includes_string
38886
38887 int main (void)
38888 {
38889
38890         if(0 != strtok_r(0, 0, 0))
38891           return 1;
38892
38893  ;
38894  return 0;
38895 }
38896
38897 _ACEOF
38898 if ac_fn_c_try_compile "$LINENO"; then :
38899
38900       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38901 $as_echo "yes" >&6; }
38902       tst_compi_strtok_r="yes"
38903
38904 else
38905
38906       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38907 $as_echo "no" >&6; }
38908       tst_compi_strtok_r="no"
38909
38910 fi
38911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38912   fi
38913   #
38914   if test "$tst_compi_strtok_r" = "yes"; then
38915     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
38916 $as_echo_n "checking if strtok_r usage allowed... " >&6; }
38917     if test "x$curl_disallow_strtok_r" != "xyes"; then
38918       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38919 $as_echo "yes" >&6; }
38920       tst_allow_strtok_r="yes"
38921     else
38922       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38923 $as_echo "no" >&6; }
38924       tst_allow_strtok_r="no"
38925     fi
38926   fi
38927   #
38928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
38929 $as_echo_n "checking if strtok_r might be used... " >&6; }
38930   if test "$tst_links_strtok_r" = "yes" &&
38931      test "$tst_proto_strtok_r" = "yes" &&
38932      test "$tst_compi_strtok_r" = "yes" &&
38933      test "$tst_allow_strtok_r" = "yes"; then
38934     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38935 $as_echo "yes" >&6; }
38936
38937 cat >>confdefs.h <<_ACEOF
38938 #define HAVE_STRTOK_R 1
38939 _ACEOF
38940
38941     ac_cv_func_strtok_r="yes"
38942   else
38943     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38944 $as_echo "no" >&6; }
38945     ac_cv_func_strtok_r="no"
38946   fi
38947
38948
38949     #
38950   tst_links_strtoll="unknown"
38951   tst_proto_strtoll="unknown"
38952   tst_compi_strtoll="unknown"
38953   tst_allow_strtoll="unknown"
38954   #
38955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
38956 $as_echo_n "checking if strtoll can be linked... " >&6; }
38957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38958 /* end confdefs.h.  */
38959
38960
38961 #define strtoll innocuous_strtoll
38962 #ifdef __STDC__
38963 # include <limits.h>
38964 #else
38965 # include <assert.h>
38966 #endif
38967 #undef strtoll
38968 #ifdef __cplusplus
38969 extern "C"
38970 #endif
38971 char strtoll ();
38972 #if defined __stub_strtoll || defined __stub___strtoll
38973 choke me
38974 #endif
38975
38976 int main (void)
38977 {
38978 return strtoll ();
38979  ;
38980  return 0;
38981 }
38982
38983 _ACEOF
38984 if ac_fn_c_try_link "$LINENO"; then :
38985
38986     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38987 $as_echo "yes" >&6; }
38988     tst_links_strtoll="yes"
38989
38990 else
38991
38992     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38993 $as_echo "no" >&6; }
38994     tst_links_strtoll="no"
38995
38996 fi
38997 rm -f core conftest.err conftest.$ac_objext \
38998     conftest$ac_exeext conftest.$ac_ext
38999   #
39000   if test "$tst_links_strtoll" = "yes"; then
39001     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
39002 $as_echo_n "checking if strtoll is prototyped... " >&6; }
39003     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39004 /* end confdefs.h.  */
39005
39006       $curl_includes_stdlib
39007
39008 _ACEOF
39009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39010   $EGREP "strtoll" >/dev/null 2>&1; then :
39011
39012       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39013 $as_echo "yes" >&6; }
39014       tst_proto_strtoll="yes"
39015
39016 else
39017
39018       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39019 $as_echo "no" >&6; }
39020       tst_proto_strtoll="no"
39021
39022 fi
39023 rm -f conftest*
39024
39025   fi
39026   #
39027   if test "$tst_proto_strtoll" = "yes"; then
39028     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
39029 $as_echo_n "checking if strtoll is compilable... " >&6; }
39030     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39031 /* end confdefs.h.  */
39032
39033
39034         $curl_includes_stdlib
39035
39036 int main (void)
39037 {
39038
39039         if(0 != strtoll(0, 0, 0))
39040           return 1;
39041
39042  ;
39043  return 0;
39044 }
39045
39046 _ACEOF
39047 if ac_fn_c_try_compile "$LINENO"; then :
39048
39049       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39050 $as_echo "yes" >&6; }
39051       tst_compi_strtoll="yes"
39052
39053 else
39054
39055       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39056 $as_echo "no" >&6; }
39057       tst_compi_strtoll="no"
39058
39059 fi
39060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39061   fi
39062   #
39063   if test "$tst_compi_strtoll" = "yes"; then
39064     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
39065 $as_echo_n "checking if strtoll usage allowed... " >&6; }
39066     if test "x$curl_disallow_strtoll" != "xyes"; then
39067       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39068 $as_echo "yes" >&6; }
39069       tst_allow_strtoll="yes"
39070     else
39071       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39072 $as_echo "no" >&6; }
39073       tst_allow_strtoll="no"
39074     fi
39075   fi
39076   #
39077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
39078 $as_echo_n "checking if strtoll might be used... " >&6; }
39079   if test "$tst_links_strtoll" = "yes" &&
39080      test "$tst_proto_strtoll" = "yes" &&
39081      test "$tst_compi_strtoll" = "yes" &&
39082      test "$tst_allow_strtoll" = "yes"; then
39083     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39084 $as_echo "yes" >&6; }
39085
39086 cat >>confdefs.h <<_ACEOF
39087 #define HAVE_STRTOLL 1
39088 _ACEOF
39089
39090     ac_cv_func_strtoll="yes"
39091   else
39092     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39093 $as_echo "no" >&6; }
39094     ac_cv_func_strtoll="no"
39095   fi
39096
39097
39098 curl_includes_sys_uio="\
39099 /* includes start */
39100 #ifdef HAVE_SYS_TYPES_H
39101 #  include <sys/types.h>
39102 #endif
39103 #ifdef HAVE_SYS_UIO_H
39104 #  include <sys/uio.h>
39105 #endif
39106 /* includes end */"
39107   for ac_header in sys/types.h sys/uio.h
39108 do :
39109   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39110 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
39111 "
39112 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39113   cat >>confdefs.h <<_ACEOF
39114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39115 _ACEOF
39116
39117 fi
39118
39119 done
39120
39121
39122
39123     #
39124   tst_links_writev="unknown"
39125   tst_proto_writev="unknown"
39126   tst_compi_writev="unknown"
39127   tst_allow_writev="unknown"
39128   #
39129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
39130 $as_echo_n "checking if writev can be linked... " >&6; }
39131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39132 /* end confdefs.h.  */
39133
39134
39135 #define writev innocuous_writev
39136 #ifdef __STDC__
39137 # include <limits.h>
39138 #else
39139 # include <assert.h>
39140 #endif
39141 #undef writev
39142 #ifdef __cplusplus
39143 extern "C"
39144 #endif
39145 char writev ();
39146 #if defined __stub_writev || defined __stub___writev
39147 choke me
39148 #endif
39149
39150 int main (void)
39151 {
39152 return writev ();
39153  ;
39154  return 0;
39155 }
39156
39157 _ACEOF
39158 if ac_fn_c_try_link "$LINENO"; then :
39159
39160     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39161 $as_echo "yes" >&6; }
39162     tst_links_writev="yes"
39163
39164 else
39165
39166     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39167 $as_echo "no" >&6; }
39168     tst_links_writev="no"
39169
39170 fi
39171 rm -f core conftest.err conftest.$ac_objext \
39172     conftest$ac_exeext conftest.$ac_ext
39173   #
39174   if test "$tst_links_writev" = "yes"; then
39175     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
39176 $as_echo_n "checking if writev is prototyped... " >&6; }
39177     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39178 /* end confdefs.h.  */
39179
39180       $curl_includes_sys_uio
39181
39182 _ACEOF
39183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39184   $EGREP "writev" >/dev/null 2>&1; then :
39185
39186       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39187 $as_echo "yes" >&6; }
39188       tst_proto_writev="yes"
39189
39190 else
39191
39192       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39193 $as_echo "no" >&6; }
39194       tst_proto_writev="no"
39195
39196 fi
39197 rm -f conftest*
39198
39199   fi
39200   #
39201   if test "$tst_proto_writev" = "yes"; then
39202     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
39203 $as_echo_n "checking if writev is compilable... " >&6; }
39204     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39205 /* end confdefs.h.  */
39206
39207
39208         $curl_includes_sys_uio
39209
39210 int main (void)
39211 {
39212
39213         if(0 != writev(0, 0, 0))
39214           return 1;
39215
39216  ;
39217  return 0;
39218 }
39219
39220 _ACEOF
39221 if ac_fn_c_try_compile "$LINENO"; then :
39222
39223       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39224 $as_echo "yes" >&6; }
39225       tst_compi_writev="yes"
39226
39227 else
39228
39229       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39230 $as_echo "no" >&6; }
39231       tst_compi_writev="no"
39232
39233 fi
39234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39235   fi
39236   #
39237   if test "$tst_compi_writev" = "yes"; then
39238     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
39239 $as_echo_n "checking if writev usage allowed... " >&6; }
39240     if test "x$curl_disallow_writev" != "xyes"; then
39241       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39242 $as_echo "yes" >&6; }
39243       tst_allow_writev="yes"
39244     else
39245       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39246 $as_echo "no" >&6; }
39247       tst_allow_writev="no"
39248     fi
39249   fi
39250   #
39251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
39252 $as_echo_n "checking if writev might be used... " >&6; }
39253   if test "$tst_links_writev" = "yes" &&
39254      test "$tst_proto_writev" = "yes" &&
39255      test "$tst_compi_writev" = "yes" &&
39256      test "$tst_allow_writev" = "yes"; then
39257     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39258 $as_echo "yes" >&6; }
39259
39260 cat >>confdefs.h <<_ACEOF
39261 #define HAVE_WRITEV 1
39262 _ACEOF
39263
39264     ac_cv_func_writev="yes"
39265   else
39266     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39267 $as_echo "no" >&6; }
39268     ac_cv_func_writev="no"
39269   fi
39270
39271
39272 case $host in
39273   *msdosdjgpp)
39274      ac_cv_func_pipe=no
39275      skipcheck_pipe=yes
39276      { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
39277 $as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
39278     ;;
39279 esac
39280
39281 for ac_func in fork \
39282   geteuid \
39283   getpass_r \
39284   getppid \
39285   getprotobyname \
39286   getpwuid \
39287   getpwuid_r \
39288   getrlimit \
39289   gettimeofday \
39290   if_nametoindex \
39291   inet_addr \
39292   perror \
39293   pipe \
39294   setlocale \
39295   setmode \
39296   setrlimit \
39297   uname \
39298   utime
39299
39300 do :
39301   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39302 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
39303 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
39304   cat >>confdefs.h <<_ACEOF
39305 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39306 _ACEOF
39307
39308
39309 else
39310
39311   func="$ac_func"
39312   eval skipcheck=\$skipcheck_$func
39313   if test "x$skipcheck" != "xyes"; then
39314     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
39315 $as_echo_n "checking deeper for $func... " >&6; }
39316     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39317 /* end confdefs.h.  */
39318
39319
39320
39321 int main (void)
39322 {
39323
39324         $func ();
39325
39326  ;
39327  return 0;
39328 }
39329
39330 _ACEOF
39331 if ac_fn_c_try_link "$LINENO"; then :
39332
39333       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39334 $as_echo "yes" >&6; }
39335       eval "ac_cv_func_$func=yes"
39336
39337 cat >>confdefs.h <<_ACEOF
39338 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
39339 _ACEOF
39340
39341
39342 else
39343
39344       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39345 $as_echo "but still no" >&6; }
39346
39347 fi
39348 rm -f core conftest.err conftest.$ac_objext \
39349     conftest$ac_exeext conftest.$ac_ext
39350   fi
39351
39352 fi
39353 done
39354
39355
39356
39357     for ac_header in sys/types.h sys/socket.h netdb.h
39358 do :
39359   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39360 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
39361 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39362   cat >>confdefs.h <<_ACEOF
39363 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39364 _ACEOF
39365
39366 fi
39367
39368 done
39369
39370   #
39371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
39372 $as_echo_n "checking for getnameinfo... " >&6; }
39373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39374 /* end confdefs.h.  */
39375
39376
39377 #define getnameinfo innocuous_getnameinfo
39378 #ifdef __STDC__
39379 # include <limits.h>
39380 #else
39381 # include <assert.h>
39382 #endif
39383 #undef getnameinfo
39384 #ifdef __cplusplus
39385 extern "C"
39386 #endif
39387 char getnameinfo ();
39388 #if defined __stub_getnameinfo || defined __stub___getnameinfo
39389 choke me
39390 #endif
39391
39392 int main (void)
39393 {
39394 return getnameinfo ();
39395  ;
39396  return 0;
39397 }
39398
39399 _ACEOF
39400 if ac_fn_c_try_link "$LINENO"; then :
39401
39402     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39403 $as_echo "yes" >&6; }
39404     curl_cv_getnameinfo="yes"
39405
39406 else
39407
39408     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39409 $as_echo "no" >&6; }
39410     curl_cv_getnameinfo="no"
39411
39412 fi
39413 rm -f core conftest.err conftest.$ac_objext \
39414     conftest$ac_exeext conftest.$ac_ext
39415   #
39416   if test "$curl_cv_getnameinfo" != "yes"; then
39417     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
39418 $as_echo_n "checking deeper for getnameinfo... " >&6; }
39419     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39420 /* end confdefs.h.  */
39421
39422
39423
39424 int main (void)
39425 {
39426
39427         getnameinfo();
39428
39429  ;
39430  return 0;
39431 }
39432
39433 _ACEOF
39434 if ac_fn_c_try_link "$LINENO"; then :
39435
39436       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39437 $as_echo "yes" >&6; }
39438       curl_cv_getnameinfo="yes"
39439
39440 else
39441
39442       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39443 $as_echo "but still no" >&6; }
39444       curl_cv_getnameinfo="no"
39445
39446 fi
39447 rm -f core conftest.err conftest.$ac_objext \
39448     conftest$ac_exeext conftest.$ac_ext
39449   fi
39450   #
39451   if test "$curl_cv_getnameinfo" != "yes"; then
39452     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
39453 $as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
39454     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39455 /* end confdefs.h.  */
39456
39457
39458 #undef inline
39459 #ifdef HAVE_WINDOWS_H
39460 #ifndef WIN32_LEAN_AND_MEAN
39461 #define WIN32_LEAN_AND_MEAN
39462 #endif
39463 #include <windows.h>
39464 #ifdef HAVE_WINSOCK2_H
39465 #include <winsock2.h>
39466 #ifdef HAVE_WS2TCPIP_H
39467 #include <ws2tcpip.h>
39468 #endif
39469 #endif
39470 #else
39471 #ifdef HAVE_SYS_TYPES_H
39472 #include <sys/types.h>
39473 #endif
39474 #ifdef HAVE_SYS_SOCKET_H
39475 #include <sys/socket.h>
39476 #endif
39477 #ifdef HAVE_NETDB_H
39478 #include <netdb.h>
39479 #endif
39480 #endif
39481
39482 int main (void)
39483 {
39484
39485         getnameinfo(0, 0, 0, 0, 0, 0, 0);
39486
39487  ;
39488  return 0;
39489 }
39490
39491 _ACEOF
39492 if ac_fn_c_try_link "$LINENO"; then :
39493
39494       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39495 $as_echo "yes" >&6; }
39496       curl_cv_getnameinfo="yes"
39497
39498 else
39499
39500       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39501 $as_echo "but still no" >&6; }
39502       curl_cv_getnameinfo="no"
39503
39504 fi
39505 rm -f core conftest.err conftest.$ac_objext \
39506     conftest$ac_exeext conftest.$ac_ext
39507   fi
39508   #
39509   if test "$curl_cv_getnameinfo" = "yes"; then
39510     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
39511 $as_echo_n "checking types of arguments for getnameinfo... " >&6; }
39512 if ${curl_cv_func_getnameinfo_args+:} false; then :
39513   $as_echo_n "(cached) " >&6
39514 else
39515
39516       curl_cv_func_getnameinfo_args="unknown"
39517       for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
39518         for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
39519           for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
39520             for gni_arg7 in 'int' 'unsigned int'; do
39521               if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
39522                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39523 /* end confdefs.h.  */
39524
39525
39526 #undef inline
39527 #ifdef HAVE_WINDOWS_H
39528 #ifndef WIN32_LEAN_AND_MEAN
39529 #define WIN32_LEAN_AND_MEAN
39530 #endif
39531 #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
39532 #undef _WIN32_WINNT
39533 #define _WIN32_WINNT 0x0501
39534 #endif
39535 #include <windows.h>
39536 #ifdef HAVE_WINSOCK2_H
39537 #include <winsock2.h>
39538 #ifdef HAVE_WS2TCPIP_H
39539 #include <ws2tcpip.h>
39540 #endif
39541 #endif
39542 #define GNICALLCONV WSAAPI
39543 #else
39544 #ifdef HAVE_SYS_TYPES_H
39545 #include <sys/types.h>
39546 #endif
39547 #ifdef HAVE_SYS_SOCKET_H
39548 #include <sys/socket.h>
39549 #endif
39550 #ifdef HAVE_NETDB_H
39551 #include <netdb.h>
39552 #endif
39553 #define GNICALLCONV
39554 #endif
39555                     extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
39556                                            char *, $gni_arg46,
39557                                            char *, $gni_arg46,
39558                                            $gni_arg7);
39559
39560 int main (void)
39561 {
39562
39563                     $gni_arg2 salen=0;
39564                     $gni_arg46 hostlen=0;
39565                     $gni_arg46 servlen=0;
39566                     $gni_arg7 flags=0;
39567                     int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
39568
39569  ;
39570  return 0;
39571 }
39572
39573 _ACEOF
39574 if ac_fn_c_try_compile "$LINENO"; then :
39575
39576                   curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
39577
39578 fi
39579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39580               fi
39581             done
39582           done
39583         done
39584       done
39585
39586 fi
39587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
39588 $as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
39589     if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
39590       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
39591 $as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
39592       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
39593 $as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
39594     else
39595       gni_prev_IFS=$IFS; IFS=','
39596       set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
39597       IFS=$gni_prev_IFS
39598       shift
39599       #
39600       gni_qual_type_arg1=$1
39601       #
39602
39603 cat >>confdefs.h <<_ACEOF
39604 #define GETNAMEINFO_TYPE_ARG2 $2
39605 _ACEOF
39606
39607
39608 cat >>confdefs.h <<_ACEOF
39609 #define GETNAMEINFO_TYPE_ARG46 $3
39610 _ACEOF
39611
39612
39613 cat >>confdefs.h <<_ACEOF
39614 #define GETNAMEINFO_TYPE_ARG7 $4
39615 _ACEOF
39616
39617       #
39618       prev_sh_opts=$-
39619       #
39620       case $prev_sh_opts in
39621         *f*)
39622           ;;
39623         *)
39624           set -f
39625           ;;
39626       esac
39627       #
39628       case "$gni_qual_type_arg1" in
39629         const*)
39630           gni_qual_arg1=const
39631           gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
39632         ;;
39633         *)
39634           gni_qual_arg1=
39635           gni_type_arg1=$gni_qual_type_arg1
39636         ;;
39637       esac
39638       #
39639
39640 cat >>confdefs.h <<_ACEOF
39641 #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
39642 _ACEOF
39643
39644
39645 cat >>confdefs.h <<_ACEOF
39646 #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
39647 _ACEOF
39648
39649       #
39650       case $prev_sh_opts in
39651         *f*)
39652           ;;
39653         *)
39654           set +f
39655           ;;
39656       esac
39657       #
39658
39659 cat >>confdefs.h <<_ACEOF
39660 #define HAVE_GETNAMEINFO 1
39661 _ACEOF
39662
39663       ac_cv_func_getnameinfo="yes"
39664     fi
39665   fi
39666
39667
39668 if test "$ipv6" = "yes"; then
39669   if test "$ac_cv_func_getaddrinfo" = "yes"; then
39670
39671 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
39672
39673     IPV6_ENABLED=1
39674
39675   fi
39676
39677       for ac_header in stdio.h sys/types.h sys/socket.h \
39678                    netdb.h netinet/in.h arpa/inet.h
39679 do :
39680   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39681 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
39682 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39683   cat >>confdefs.h <<_ACEOF
39684 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39685 _ACEOF
39686
39687 fi
39688
39689 done
39690
39691   #
39692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working NI_WITHSCOPEID" >&5
39693 $as_echo_n "checking for working NI_WITHSCOPEID... " >&6; }
39694 if ${ac_cv_working_ni_withscopeid+:} false; then :
39695   $as_echo_n "(cached) " >&6
39696 else
39697
39698     if test "$cross_compiling" = yes; then :
39699
39700       # Program is not run when cross-compiling. So we assume
39701       # NI_WITHSCOPEID will work if we are able to compile it.
39702       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39703 /* end confdefs.h.  */
39704
39705
39706 #include <sys/types.h>
39707 #include <sys/socket.h>
39708 #include <netdb.h>
39709
39710 int main (void)
39711 {
39712
39713           unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
39714
39715  ;
39716  return 0;
39717 }
39718
39719 _ACEOF
39720 if ac_fn_c_try_compile "$LINENO"; then :
39721
39722         ac_cv_working_ni_withscopeid="yes"
39723
39724 else
39725
39726         ac_cv_working_ni_withscopeid="no"
39727
39728 fi
39729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE
39730
39731 else
39732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39733 /* end confdefs.h.  */
39734
39735
39736 #ifdef HAVE_STDLIB_H
39737 #include <stdlib.h>
39738 #endif
39739 #ifdef HAVE_STDIO_H
39740 #include <stdio.h>
39741 #endif
39742 #ifdef HAVE_SYS_TYPES_H
39743 #include <sys/types.h>
39744 #endif
39745 #ifdef HAVE_SYS_SOCKET_H
39746 #include <sys/socket.h>
39747 #endif
39748 #ifdef HAVE_NETDB_H
39749 #include <netdb.h>
39750 #endif
39751 #ifdef HAVE_NETINET_IN_H
39752 #include <netinet/in.h>
39753 #endif
39754 #ifdef HAVE_ARPA_INET_H
39755 #include <arpa/inet.h>
39756 #endif
39757
39758 int main (void)
39759 {
39760
39761 #if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
39762 #ifdef HAVE_STRUCT_SOCKADDR_STORAGE
39763         struct sockaddr_storage sa;
39764 #else
39765         unsigned char sa[256];
39766 #endif
39767         char hostbuf[NI_MAXHOST];
39768         int rc;
39769         GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa);
39770         GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf);
39771         GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
39772         int fd = socket(AF_INET6, SOCK_STREAM, 0);
39773         if(fd < 0) {
39774           perror("socket()");
39775           return 1; /* Error creating socket */
39776         }
39777         rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
39778         if(rc) {
39779           perror("getsockname()");
39780           return 2; /* Error retrieving socket name */
39781         }
39782         rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
39783         if(rc) {
39784           printf("rc = %s\n", gai_strerror(rc));
39785           return 3; /* Error translating socket address */
39786         }
39787         return 0; /* Ok, NI_WITHSCOPEID works */
39788 #else
39789         return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
39790 #endif
39791
39792  ;
39793  return 0;
39794 } # AC-LANG-PROGRAM
39795
39796 _ACEOF
39797 if ac_fn_c_try_run "$LINENO"; then :
39798
39799       # Exit code == 0. Program worked.
39800       ac_cv_working_ni_withscopeid="yes"
39801
39802 else
39803
39804       # Exit code != 0. Program failed.
39805       ac_cv_working_ni_withscopeid="no"
39806
39807 fi
39808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39809   conftest.$ac_objext conftest.beam conftest.$ac_ext
39810 fi
39811  # AC-RUN-IFELSE
39812
39813 fi
39814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_ni_withscopeid" >&5
39815 $as_echo "$ac_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK
39816   case "$ac_cv_working_ni_withscopeid" in
39817     yes)
39818
39819 $as_echo "#define HAVE_NI_WITHSCOPEID 1" >>confdefs.h
39820
39821       ;;
39822   esac
39823
39824 fi
39825
39826
39827             #
39828   tst_method="unknown"
39829
39830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
39831 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
39832   if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then
39833     tst_method="fcntl O_NONBLOCK"
39834   elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then
39835     tst_method="ioctl FIONBIO"
39836   elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then
39837     tst_method="ioctlsocket FIONBIO"
39838   elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
39839     tst_method="IoctlSocket FIONBIO"
39840   elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then
39841     tst_method="setsockopt SO_NONBLOCK"
39842   fi
39843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
39844 $as_echo "$tst_method" >&6; }
39845   if test "$tst_method" = "unknown"; then
39846     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
39847 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
39848   fi
39849
39850
39851
39852 # Extract the first word of "perl", so it can be a program name with args.
39853 set dummy perl; ac_word=$2
39854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39855 $as_echo_n "checking for $ac_word... " >&6; }
39856 if ${ac_cv_path_PERL+:} false; then :
39857   $as_echo_n "(cached) " >&6
39858 else
39859   case $PERL in
39860   [\\/]* | ?:[\\/]*)
39861   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
39862   ;;
39863   *)
39864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39865 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
39866 for as_dir in $as_dummy
39867 do
39868   IFS=$as_save_IFS
39869   test -z "$as_dir" && as_dir=.
39870     for ac_exec_ext in '' $ac_executable_extensions; do
39871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39872     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
39873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39874     break 2
39875   fi
39876 done
39877   done
39878 IFS=$as_save_IFS
39879
39880   ;;
39881 esac
39882 fi
39883 PERL=$ac_cv_path_PERL
39884 if test -n "$PERL"; then
39885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
39886 $as_echo "$PERL" >&6; }
39887 else
39888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39889 $as_echo "no" >&6; }
39890 fi
39891
39892
39893
39894
39895 for ac_prog in gnroff nroff
39896 do
39897   # Extract the first word of "$ac_prog", so it can be a program name with args.
39898 set dummy $ac_prog; ac_word=$2
39899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39900 $as_echo_n "checking for $ac_word... " >&6; }
39901 if ${ac_cv_path_NROFF+:} false; then :
39902   $as_echo_n "(cached) " >&6
39903 else
39904   case $NROFF in
39905   [\\/]* | ?:[\\/]*)
39906   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
39907   ;;
39908   *)
39909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39910 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
39911 for as_dir in $as_dummy
39912 do
39913   IFS=$as_save_IFS
39914   test -z "$as_dir" && as_dir=.
39915     for ac_exec_ext in '' $ac_executable_extensions; do
39916   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39917     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
39918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39919     break 2
39920   fi
39921 done
39922   done
39923 IFS=$as_save_IFS
39924
39925   ;;
39926 esac
39927 fi
39928 NROFF=$ac_cv_path_NROFF
39929 if test -n "$NROFF"; then
39930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
39931 $as_echo "$NROFF" >&6; }
39932 else
39933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39934 $as_echo "no" >&6; }
39935 fi
39936
39937
39938   test -n "$NROFF" && break
39939 done
39940
39941
39942
39943 if test -n "$NROFF"; then
39944
39945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
39946 $as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
39947   MANOPT="-man"
39948   mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
39949   if test -z "$mancheck"; then
39950     MANOPT="-mandoc"
39951    mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
39952     if test -z "$mancheck"; then
39953       MANOPT=""
39954       { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
39955 $as_echo "failed" >&6; }
39956       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
39957 $as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
39958     else
39959       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
39960 $as_echo "$MANOPT" >&6; }
39961     fi
39962   else
39963     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
39964 $as_echo "$MANOPT" >&6; }
39965   fi
39966
39967 fi
39968
39969 if test -z "$MANOPT"
39970 then
39971       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
39972 $as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
39973   USE_MANUAL="no";
39974 fi
39975
39976
39977 if test "$USE_MANUAL" = "1"; then
39978
39979 $as_echo "#define USE_MANUAL 1" >>confdefs.h
39980
39981   curl_manual_msg="enabled"
39982 fi
39983
39984  if test x"$USE_MANUAL" = x1; then
39985   USE_MANUAL_TRUE=
39986   USE_MANUAL_FALSE='#'
39987 else
39988   USE_MANUAL_TRUE='#'
39989   USE_MANUAL_FALSE=
39990 fi
39991
39992
39993
39994
39995
39996   #
39997   if test "$want_ares" = "yes"; then
39998         clean_CPPFLAGS="$CPPFLAGS"
39999     clean_LDFLAGS="$LDFLAGS"
40000     clean_LIBS="$LIBS"
40001     embedded_ares="unknown"
40002     configure_runpath=`pwd`
40003     embedded_ares_builddir="$configure_runpath/ares"
40004     if test -n "$want_ares_path"; then
40005             ares_CPPFLAGS="-I$want_ares_path/include"
40006       ares_LDFLAGS="-L$want_ares_path/lib"
40007       ares_LIBS="-lcares"
40008     else
40009             if test -d "$srcdir/ares"; then
40010                 embedded_ares="yes"
40011         subdirs="$subdirs ares"
40012
40013                         ares_CPPFLAGS=""
40014         ares_LDFLAGS="-L$embedded_ares_builddir"
40015         ares_LIBS="-lcares"
40016       else
40017                 ares_CPPFLAGS=""
40018         ares_LDFLAGS=""
40019         ares_LIBS="-lcares"
40020       fi
40021     fi
40022     #
40023     CPPFLAGS="$ares_CPPFLAGS $clean_CPPFLAGS"
40024     LDFLAGS="$ares_LDFLAGS $clean_LDFLAGS"
40025     LIBS="$ares_LIBS $clean_LIBS"
40026     #
40027     if test "$embedded_ares" != "yes"; then
40028                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
40029 $as_echo_n "checking that c-ares is good and recent enough... " >&6; }
40030       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40031 /* end confdefs.h.  */
40032
40033
40034 #include <ares.h>
40035           /* set of dummy functions in case c-ares was built with debug */
40036           void curl_dofree() { }
40037           void curl_sclose() { }
40038           void curl_domalloc() { }
40039           void curl_docalloc() { }
40040           void curl_socket() { }
40041
40042 int main (void)
40043 {
40044
40045           ares_channel channel;
40046           ares_cancel(channel); /* added in 1.2.0 */
40047           ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
40048           ares_dup(&channel, channel); /* added in 1.6.0 */
40049
40050  ;
40051  return 0;
40052 }
40053
40054 _ACEOF
40055 if ac_fn_c_try_link "$LINENO"; then :
40056
40057         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40058 $as_echo "yes" >&6; }
40059
40060 else
40061
40062         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40063 $as_echo "no" >&6; }
40064         as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
40065                 CPPFLAGS="$clean_CPPFLAGS"
40066         LDFLAGS="$clean_LDFLAGS"
40067         LIBS="$clean_LIBS"
40068         # prevent usage
40069         want_ares="no"
40070
40071 fi
40072 rm -f core conftest.err conftest.$ac_objext \
40073     conftest$ac_exeext conftest.$ac_ext
40074     fi
40075     if test "$want_ares" = "yes"; then
40076
40077 $as_echo "#define USE_ARES 1" >>confdefs.h
40078
40079       USE_ARES=1
40080
40081       curl_res_msg="c-ares"
40082     fi
40083   fi
40084
40085  if test x$embedded_ares = xyes; then
40086   USE_EMBEDDED_ARES_TRUE=
40087   USE_EMBEDDED_ARES_FALSE='#'
40088 else
40089   USE_EMBEDDED_ARES_TRUE='#'
40090   USE_EMBEDDED_ARES_FALSE=
40091 fi
40092
40093
40094 if test "x$ac_cv_native_windows" != "xyes" &&
40095    test "x$enable_shared" = "xyes"; then
40096   build_libhostname=yes
40097 else
40098   build_libhostname=no
40099 fi
40100  if test x$build_libhostname = xyes; then
40101   BUILD_LIBHOSTNAME_TRUE=
40102   BUILD_LIBHOSTNAME_FALSE='#'
40103 else
40104   BUILD_LIBHOSTNAME_TRUE='#'
40105   BUILD_LIBHOSTNAME_FALSE=
40106 fi
40107
40108
40109
40110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
40111 $as_echo_n "checking whether to enable the threaded resolver... " >&6; }
40112   OPT_THRES="default"
40113   # Check whether --enable-threaded_resolver was given.
40114 if test "${enable_threaded_resolver+set}" = set; then :
40115   enableval=$enable_threaded_resolver; OPT_THRES=$enableval
40116 fi
40117
40118   case "$OPT_THRES" in
40119     yes)
40120             want_thres="yes"
40121       ;;
40122     *)
40123             want_thres="no"
40124       ;;
40125   esac
40126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
40127 $as_echo "$want_thres" >&6; }
40128
40129
40130 if test "x$want_thres" = xyes && test "x$want_ares" = xyes; then
40131   as_fn_error $? "Options --enable-threaded-resolver and --enable-ares are mutually exclusive" "$LINENO" 5
40132 fi
40133
40134 if test "$want_thres" = "yes" && test "$dontwant_rt" = "no"; then
40135   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
40136 if test "x$ac_cv_header_pthread_h" = xyes; then :
40137
40138 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
40139
40140       save_CFLAGS="$CFLAGS"
40141
40142             ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
40143 if test "x$ac_cv_func_pthread_create" = xyes; then :
40144   USE_THREADS_POSIX=1
40145 fi
40146
40147
40148             if test "$USE_THREADS_POSIX" != "1"
40149       then
40150         CFLAGS="$CFLAGS -pthread"
40151         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
40152 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
40153 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
40154   $as_echo_n "(cached) " >&6
40155 else
40156   ac_check_lib_save_LIBS=$LIBS
40157 LIBS="-lpthread  $LIBS"
40158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40159 /* end confdefs.h.  */
40160
40161
40162 #ifdef __cplusplus
40163 extern "C"
40164 #endif
40165 char pthread_create ();
40166 int main (void)
40167 {
40168 return pthread_create ();
40169  ;
40170  return 0;
40171 }
40172 _ACEOF
40173 if ac_fn_c_try_link "$LINENO"; then :
40174   ac_cv_lib_pthread_pthread_create=yes
40175 else
40176   ac_cv_lib_pthread_pthread_create=no
40177 fi
40178 rm -f core conftest.err conftest.$ac_objext \
40179     conftest$ac_exeext conftest.$ac_ext
40180 LIBS=$ac_check_lib_save_LIBS
40181 fi
40182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
40183 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
40184 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
40185   USE_THREADS_POSIX=1
40186 else
40187    CFLAGS="$save_CFLAGS"
40188 fi
40189
40190       fi
40191
40192       if test "x$USE_THREADS_POSIX" = "x1"
40193       then
40194
40195 $as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
40196
40197         curl_res_msg="POSIX threaded"
40198       fi
40199
40200
40201
40202 fi
40203
40204
40205 fi
40206
40207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
40208 $as_echo_n "checking whether to enable verbose strings... " >&6; }
40209 # Check whether --enable-verbose was given.
40210 if test "${enable_verbose+set}" = set; then :
40211   enableval=$enable_verbose;  case "$enableval" in
40212   no)
40213        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40214 $as_echo "no" >&6; }
40215
40216 $as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
40217
40218        curl_verbose_msg="no"
40219        ;;
40220   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40221 $as_echo "yes" >&6; }
40222        ;;
40223   esac
40224 else
40225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40226 $as_echo "yes" >&6; }
40227
40228 fi
40229
40230
40231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
40232 $as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
40233 # Check whether --enable-sspi was given.
40234 if test "${enable_sspi+set}" = set; then :
40235   enableval=$enable_sspi;  case "$enableval" in
40236   yes)
40237        if test "$ac_cv_native_windows" = "yes"; then
40238          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40239 $as_echo "yes" >&6; }
40240
40241 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
40242
40243          USE_WINDOWS_SSPI=1
40244
40245          curl_sspi_msg="enabled"
40246        else
40247          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40248 $as_echo "no" >&6; }
40249          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
40250 $as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
40251        fi
40252        ;;
40253   *)
40254        if test "x$WINSSL_ENABLED" = "x1"; then
40255          # --with-winssl implies --enable-sspi
40256          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40257 $as_echo "yes" >&6; }
40258        else
40259          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40260 $as_echo "no" >&6; }
40261        fi
40262        ;;
40263   esac
40264 else
40265   if test "x$WINSSL_ENABLED" = "x1"; then
40266          # --with-winssl implies --enable-sspi
40267          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40268 $as_echo "yes" >&6; }
40269        else
40270          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40271 $as_echo "no" >&6; }
40272        fi
40273
40274 fi
40275
40276
40277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
40278 $as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
40279 # Check whether --enable-crypto-auth was given.
40280 if test "${enable_crypto_auth+set}" = set; then :
40281   enableval=$enable_crypto_auth;  case "$enableval" in
40282   no)
40283        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40284 $as_echo "no" >&6; }
40285
40286 $as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
40287
40288        CURL_DISABLE_CRYPTO_AUTH=1
40289        ;;
40290   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40291 $as_echo "yes" >&6; }
40292        ;;
40293   esac
40294 else
40295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40296 $as_echo "yes" >&6; }
40297
40298 fi
40299
40300
40301
40302     OPT_NTLM_WB="default"
40303   # Check whether --enable-ntlm-wb was given.
40304 if test "${enable_ntlm_wb+set}" = set; then :
40305   enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
40306 fi
40307
40308   want_ntlm_wb_file="/usr/bin/ntlm_auth"
40309   case "$OPT_NTLM_WB" in
40310     no)
40311             want_ntlm_wb="no"
40312       ;;
40313     default)
40314             want_ntlm_wb="yes"
40315       ;;
40316     *)
40317             want_ntlm_wb="yes"
40318       if test -n "$enableval" && test "$enableval" != "yes"; then
40319         want_ntlm_wb_file="$enableval"
40320       fi
40321       ;;
40322   esac
40323
40324
40325
40326       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
40327 $as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
40328   if test "$ac_cv_native_windows" = "yes" ||
40329     test "x$SSL_ENABLED" = "x"; then
40330     want_ntlm_wb_file=""
40331     want_ntlm_wb="no"
40332   fi
40333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
40334 $as_echo "$want_ntlm_wb" >&6; }
40335   if test "$want_ntlm_wb" = "yes"; then
40336
40337 $as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
40338
40339
40340 cat >>confdefs.h <<_ACEOF
40341 #define NTLM_WB_FILE "$want_ntlm_wb_file"
40342 _ACEOF
40343
40344     NTLM_WB_ENABLED=1
40345   fi
40346
40347
40348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
40349 $as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
40350 # Check whether --enable-tls-srp was given.
40351 if test "${enable_tls_srp+set}" = set; then :
40352   enableval=$enable_tls_srp;  case "$enableval" in
40353   no)
40354        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40355 $as_echo "no" >&6; }
40356
40357 $as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
40358
40359        want_tls_srp=no
40360        ;;
40361   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40362 $as_echo "yes" >&6; }
40363        want_tls_srp=yes
40364        ;;
40365   esac
40366 else
40367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40368 $as_echo "yes" >&6; }
40369        want_tls_srp=yes
40370
40371 fi
40372
40373
40374 if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
40375
40376 $as_echo "#define USE_TLS_SRP 1" >>confdefs.h
40377
40378    USE_TLS_SRP=1
40379    curl_tls_srp_msg="enabled"
40380 fi
40381
40382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
40383 $as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
40384 # Check whether --enable-unix-sockets was given.
40385 if test "${enable_unix_sockets+set}" = set; then :
40386   enableval=$enable_unix_sockets;  case "$enableval" in
40387   no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40388 $as_echo "no" >&6; }
40389        want_unix_sockets=no
40390        ;;
40391   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40392 $as_echo "yes" >&6; }
40393        want_unix_sockets=yes
40394        ;;
40395   esac
40396 else
40397
40398        { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40399 $as_echo "auto" >&6; }
40400        want_unix_sockets=auto
40401
40402
40403 fi
40404
40405 if test "x$want_unix_sockets" != "xno"; then
40406   ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
40407     #include <sys/un.h>
40408
40409 "
40410 if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
40411
40412
40413 $as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
40414
40415     USE_UNIX_SOCKETS=1
40416
40417     curl_unix_sockets_msg="enabled"
40418
40419 else
40420
40421     if test "x$want_unix_sockets" = "xyes"; then
40422       as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
40423     fi
40424
40425 fi
40426
40427 fi
40428
40429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
40430 $as_echo_n "checking whether to enable support for cookies... " >&6; }
40431 # Check whether --enable-cookies was given.
40432 if test "${enable_cookies+set}" = set; then :
40433   enableval=$enable_cookies;  case "$enableval" in
40434   no)
40435        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40436 $as_echo "no" >&6; }
40437
40438 $as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
40439
40440        ;;
40441   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40442 $as_echo "yes" >&6; }
40443        ;;
40444   esac
40445 else
40446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40447 $as_echo "yes" >&6; }
40448
40449 fi
40450
40451
40452
40453   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
40454 $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
40455   CFLAG_CURL_SYMBOL_HIDING=""
40456   doing_symbol_hiding="no"
40457   if test x"$ac_cv_native_windows" != "xyes" &&
40458     test "$want_symbol_hiding" = "yes" &&
40459     test "$supports_symbol_hiding" = "yes"; then
40460     doing_symbol_hiding="yes"
40461     CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
40462
40463 cat >>confdefs.h <<_ACEOF
40464 #define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
40465 _ACEOF
40466
40467     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40468 $as_echo "yes" >&6; }
40469   else
40470     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40471 $as_echo "no" >&6; }
40472   fi
40473    if test x$doing_symbol_hiding = xyes; then
40474   DOING_CURL_SYMBOL_HIDING_TRUE=
40475   DOING_CURL_SYMBOL_HIDING_FALSE='#'
40476 else
40477   DOING_CURL_SYMBOL_HIDING_TRUE='#'
40478   DOING_CURL_SYMBOL_HIDING_FALSE=
40479 fi
40480
40481
40482
40483
40484
40485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enforce SONAME bump" >&5
40486 $as_echo_n "checking whether to enforce SONAME bump... " >&6; }
40487 # Check whether --enable-soname-bump was given.
40488 if test "${enable_soname_bump+set}" = set; then :
40489   enableval=$enable_soname_bump;  case "$enableval" in
40490   yes)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40491 $as_echo "yes" >&6; }
40492          soname_bump=yes
40493          ;;
40494   *)
40495          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40496 $as_echo "no" >&6; }
40497          ;;
40498   esac
40499 else
40500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $soname_bump" >&5
40501 $as_echo "$soname_bump" >&6; }
40502
40503 fi
40504
40505  if test x$soname_bump = xyes; then
40506   SONAME_BUMP_TRUE=
40507   SONAME_BUMP_FALSE='#'
40508 else
40509   SONAME_BUMP_TRUE='#'
40510   SONAME_BUMP_FALSE=
40511 fi
40512
40513
40514 LIBCURL_LIBS=$LIBS
40515
40516
40517
40518
40519
40520 BLANK_AT_MAKETIME=
40521
40522
40523  if test x$cross_compiling = xyes; then
40524   CROSSCOMPILING_TRUE=
40525   CROSSCOMPILING_FALSE='#'
40526 else
40527   CROSSCOMPILING_TRUE='#'
40528   CROSSCOMPILING_FALSE=
40529 fi
40530
40531
40532 ENABLE_SHARED="$enable_shared"
40533
40534
40535 ENABLE_STATIC="$enable_static"
40536
40537
40538
40539
40540 if test "x$OPENSSL_ENABLED" = "x1"; then
40541   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
40542 elif test -n "$SSL_ENABLED"; then
40543   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
40544 fi
40545 if test "x$IPV6_ENABLED" = "x1"; then
40546   SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
40547 fi
40548 if test "x$USE_UNIX_SOCKETS" = "x1"; then
40549   SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
40550 fi
40551 if test "x$HAVE_LIBZ" = "x1"; then
40552   SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
40553 fi
40554 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1"; then
40555   SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
40556 fi
40557 if test "x$IDN_ENABLED" = "x1"; then
40558   SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
40559 fi
40560 if test "x$USE_WINDOWS_SSPI" = "x1"; then
40561   SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
40562 fi
40563
40564 if test "x$HAVE_GSSAPI" = "x1"; then
40565   SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
40566 fi
40567
40568 if test "x$curl_psl_msg" = "xyes"; then
40569   SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
40570 fi
40571
40572 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
40573     \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
40574   SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
40575 fi
40576
40577 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
40578     \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
40579   SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
40580 fi
40581
40582 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
40583   if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
40584       -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \
40585       -o "x$DARWINSSL_ENABLED" = "x1"; then
40586     SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
40587
40588     if test "x$CURL_DISABLE_HTTP" != "x1" -a \
40589         "x$NTLM_WB_ENABLED" = "x1"; then
40590       SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
40591     fi
40592   fi
40593 fi
40594
40595 if test "x$USE_TLS_SRP" = "x1"; then
40596   SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
40597 fi
40598
40599 if test "x$USE_NGHTTP2" = "x1"; then
40600   SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
40601 fi
40602
40603
40604
40605 if test "x$CURL_DISABLE_HTTP" != "x1"; then
40606   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
40607   if test "x$SSL_ENABLED" = "x1"; then
40608     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
40609   fi
40610 fi
40611 if test "x$CURL_DISABLE_FTP" != "x1"; then
40612   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
40613   if test "x$SSL_ENABLED" = "x1"; then
40614     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
40615   fi
40616 fi
40617 if test "x$CURL_DISABLE_FILE" != "x1"; then
40618   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
40619 fi
40620 if test "x$CURL_DISABLE_TELNET" != "x1"; then
40621   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
40622 fi
40623 if test "x$CURL_DISABLE_LDAP" != "x1"; then
40624   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
40625   if test "x$CURL_DISABLE_LDAPS" != "x1"; then
40626     if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
40627       (test "x$USE_OPENLDAP" != "x1"  && test "x$HAVE_LDAP_SSL" = "x1"); then
40628       SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
40629     fi
40630   fi
40631 fi
40632 if test "x$CURL_DISABLE_DICT" != "x1"; then
40633   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
40634 fi
40635 if test "x$CURL_DISABLE_TFTP" != "x1"; then
40636   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
40637 fi
40638 if test "x$CURL_DISABLE_GOPHER" != "x1"; then
40639   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
40640 fi
40641 if test "x$CURL_DISABLE_POP3" != "x1"; then
40642   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
40643   if test "x$SSL_ENABLED" = "x1"; then
40644     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
40645   fi
40646 fi
40647 if test "x$CURL_DISABLE_IMAP" != "x1"; then
40648   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
40649   if test "x$SSL_ENABLED" = "x1"; then
40650     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
40651   fi
40652 fi
40653 if test "x$CURL_DISABLE_SMB" != "x1" \
40654     -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
40655     -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
40656       -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \
40657       -o "x$DARWINSSL_ENABLED" = "x1" \); then
40658   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
40659   if test "x$SSL_ENABLED" = "x1"; then
40660     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
40661   fi
40662 fi
40663 if test "x$CURL_DISABLE_SMTP" != "x1"; then
40664   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
40665   if test "x$SSL_ENABLED" = "x1"; then
40666     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
40667   fi
40668 fi
40669 if test "x$USE_LIBSSH2" = "x1"; then
40670   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
40671   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
40672 fi
40673 if test "x$CURL_DISABLE_RTSP" != "x1"; then
40674   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
40675 fi
40676 if test "x$USE_LIBRTMP" = "x1"; then
40677   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
40678 fi
40679
40680 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
40681
40682
40683
40684
40685 squeeze CFLAGS
40686 squeeze CPPFLAGS
40687 squeeze DEFS
40688 squeeze LDFLAGS
40689 squeeze LIBS
40690
40691 squeeze LIBCURL_LIBS
40692 squeeze CURL_NETWORK_LIBS
40693 squeeze CURL_NETWORK_AND_TIME_LIBS
40694
40695 squeeze SUPPORT_FEATURES
40696 squeeze SUPPORT_PROTOCOLS
40697
40698
40699
40700   xc_bad_var_libs=no
40701   for xc_word in $LIBS; do
40702     case "$xc_word" in
40703       -l* | --library=*)
40704         :
40705         ;;
40706       *)
40707         xc_bad_var_libs=yes
40708         ;;
40709     esac
40710   done
40711   if test $xc_bad_var_libs = yes; then
40712     { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
40713 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
40714     { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
40715 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
40716   fi
40717
40718
40719   xc_bad_var_ldflags=no
40720   for xc_word in $LDFLAGS; do
40721     case "$xc_word" in
40722       -D*)
40723         xc_bad_var_ldflags=yes
40724         ;;
40725       -U*)
40726         xc_bad_var_ldflags=yes
40727         ;;
40728       -I*)
40729         xc_bad_var_ldflags=yes
40730         ;;
40731       -l* | --library=*)
40732         xc_bad_var_ldflags=yes
40733         ;;
40734     esac
40735   done
40736   if test $xc_bad_var_ldflags = yes; then
40737     { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
40738 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
40739     xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
40740     for xc_word in $LDFLAGS; do
40741       case "$xc_word" in
40742         -D*)
40743           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
40744 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
40745           ;;
40746         -U*)
40747           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
40748 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
40749           ;;
40750         -I*)
40751           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
40752 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
40753           ;;
40754         -l* | --library=*)
40755           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
40756 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
40757           ;;
40758       esac
40759     done
40760   fi
40761
40762
40763   xc_bad_var_cppflags=no
40764   for xc_word in $CPPFLAGS; do
40765     case "$xc_word" in
40766       -rpath*)
40767         xc_bad_var_cppflags=yes
40768         ;;
40769       -L* | --library-path=*)
40770         xc_bad_var_cppflags=yes
40771         ;;
40772       -l* | --library=*)
40773         xc_bad_var_cppflags=yes
40774         ;;
40775     esac
40776   done
40777   if test $xc_bad_var_cppflags = yes; then
40778     { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
40779 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
40780     xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
40781     for xc_word in $CPPFLAGS; do
40782       case "$xc_word" in
40783         -rpath*)
40784           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
40785 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
40786           ;;
40787         -L* | --library-path=*)
40788           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
40789 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
40790           ;;
40791         -l* | --library=*)
40792           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
40793 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
40794           ;;
40795       esac
40796     done
40797   fi
40798
40799
40800   xc_bad_var_cflags=no
40801   for xc_word in $CFLAGS; do
40802     case "$xc_word" in
40803       -D*)
40804         xc_bad_var_cflags=yes
40805         ;;
40806       -U*)
40807         xc_bad_var_cflags=yes
40808         ;;
40809       -I*)
40810         xc_bad_var_cflags=yes
40811         ;;
40812       -rpath*)
40813         xc_bad_var_cflags=yes
40814         ;;
40815       -L* | --library-path=*)
40816         xc_bad_var_cflags=yes
40817         ;;
40818       -l* | --library=*)
40819         xc_bad_var_cflags=yes
40820         ;;
40821     esac
40822   done
40823   if test $xc_bad_var_cflags = yes; then
40824     { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
40825 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
40826     xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
40827     for xc_word in $CFLAGS; do
40828       case "$xc_word" in
40829         -D*)
40830           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
40831 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
40832           ;;
40833         -U*)
40834           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
40835 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
40836           ;;
40837         -I*)
40838           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
40839 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
40840           ;;
40841         -rpath*)
40842           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
40843 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
40844           ;;
40845         -L* | --library-path=*)
40846           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
40847 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
40848           ;;
40849         -l* | --library=*)
40850           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
40851 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
40852           ;;
40853       esac
40854     done
40855   fi
40856
40857   if test $xc_bad_var_libs = yes ||
40858      test $xc_bad_var_cflags = yes ||
40859      test $xc_bad_var_ldflags = yes ||
40860      test $xc_bad_var_cppflags = yes; then
40861      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
40862 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
40863   fi
40864
40865
40866 if test "x$want_curldebug_assumed" = "xyes" &&
40867   test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
40868   ac_configure_args="$ac_configure_args --enable-curldebug"
40869 fi
40870
40871 ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile docs/libcurl/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"
40872
40873 cat >confcache <<\_ACEOF
40874 # This file is a shell script that caches the results of configure
40875 # tests run on this system so they can be shared between configure
40876 # scripts and configure runs, see configure's option --config-cache.
40877 # It is not useful on other systems.  If it contains results you don't
40878 # want to keep, you may remove or edit it.
40879 #
40880 # config.status only pays attention to the cache file if you give it
40881 # the --recheck option to rerun configure.
40882 #
40883 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40884 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40885 # following values.
40886
40887 _ACEOF
40888
40889 # The following way of writing the cache mishandles newlines in values,
40890 # but we know of no workaround that is simple, portable, and efficient.
40891 # So, we kill variables containing newlines.
40892 # Ultrix sh set writes to stderr and can't be redirected directly,
40893 # and sets the high bit in the cache file unless we assign to the vars.
40894 (
40895   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
40896     eval ac_val=\$$ac_var
40897     case $ac_val in #(
40898     *${as_nl}*)
40899       case $ac_var in #(
40900       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
40901 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
40902       esac
40903       case $ac_var in #(
40904       _ | IFS | as_nl) ;; #(
40905       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
40906       *) { eval $ac_var=; unset $ac_var;} ;;
40907       esac ;;
40908     esac
40909   done
40910
40911   (set) 2>&1 |
40912     case $as_nl`(ac_space=' '; set) 2>&1` in #(
40913     *${as_nl}ac_space=\ *)
40914       # `set' does not quote correctly, so add quotes: double-quote
40915       # substitution turns \\\\ into \\, and sed turns \\ into \.
40916       sed -n \
40917         "s/'/'\\\\''/g;
40918           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40919       ;; #(
40920     *)
40921       # `set' quotes correctly as required by POSIX, so do not add quotes.
40922       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
40923       ;;
40924     esac |
40925     sort
40926 ) |
40927   sed '
40928      /^ac_cv_env_/b end
40929      t clear
40930      :clear
40931      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
40932      t end
40933      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40934      :end' >>confcache
40935 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
40936   if test -w "$cache_file"; then
40937     if test "x$cache_file" != "x/dev/null"; then
40938       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
40939 $as_echo "$as_me: updating cache $cache_file" >&6;}
40940       if test ! -f "$cache_file" || test -h "$cache_file"; then
40941         cat confcache >"$cache_file"
40942       else
40943         case $cache_file in #(
40944         */* | ?:*)
40945           mv -f confcache "$cache_file"$$ &&
40946           mv -f "$cache_file"$$ "$cache_file" ;; #(
40947         *)
40948           mv -f confcache "$cache_file" ;;
40949         esac
40950       fi
40951     fi
40952   else
40953     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
40954 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
40955   fi
40956 fi
40957 rm -f confcache
40958
40959 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40960 # Let make expand exec_prefix.
40961 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40962
40963 DEFS=-DHAVE_CONFIG_H
40964
40965 ac_libobjs=
40966 ac_ltlibobjs=
40967 U=
40968 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40969   # 1. Remove the extension, and $U if already installed.
40970   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
40971   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
40972   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
40973   #    will be set to the directory where LIBOBJS objects are built.
40974   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
40975   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
40976 done
40977 LIBOBJS=$ac_libobjs
40978
40979 LTLIBOBJS=$ac_ltlibobjs
40980
40981
40982 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
40983   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
40984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40985 fi
40986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
40987 $as_echo_n "checking that generated files are newer than configure... " >&6; }
40988    if test -n "$am_sleep_pid"; then
40989      # Hide warnings about reused PIDs.
40990      wait $am_sleep_pid 2>/dev/null
40991    fi
40992    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
40993 $as_echo "done" >&6; }
40994 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40995   as_fn_error $? "conditional \"AMDEP\" was never defined.
40996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40997 fi
40998 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40999   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41001 fi
41002  if test -n "$EXEEXT"; then
41003   am__EXEEXT_TRUE=
41004   am__EXEEXT_FALSE='#'
41005 else
41006   am__EXEEXT_TRUE='#'
41007   am__EXEEXT_FALSE=
41008 fi
41009
41010 if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
41011   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
41012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41013 fi
41014 if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
41015   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
41016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41017 fi
41018 if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
41019   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
41020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41021 fi
41022 if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
41023   as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
41024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41025 fi
41026 if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
41027   as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
41028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41029 fi
41030 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
41031   as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
41032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41033 fi
41034 if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
41035   as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
41036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41037 fi
41038 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
41039   as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
41040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41041 fi
41042 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
41043   as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
41044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41045 fi
41046 if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
41047   as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
41048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41049 fi
41050 if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
41051   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
41052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41053 fi
41054 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
41055   as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
41056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41057 fi
41058 if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
41059   as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
41060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41061 fi
41062 if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
41063   as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
41064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41065 fi
41066 if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
41067   as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
41068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41069 fi
41070 if test -z "${SONAME_BUMP_TRUE}" && test -z "${SONAME_BUMP_FALSE}"; then
41071   as_fn_error $? "conditional \"SONAME_BUMP\" was never defined.
41072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41073 fi
41074 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
41075   as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
41076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41077 fi
41078
41079 : "${CONFIG_STATUS=./config.status}"
41080 ac_write_fail=0
41081 ac_clean_files_save=$ac_clean_files
41082 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41083 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
41084 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
41085 as_write_fail=0
41086 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
41087 #! $SHELL
41088 # Generated by $as_me.
41089 # Run this file to recreate the current configuration.
41090 # Compiler output produced by configure, useful for debugging
41091 # configure, is in config.log if it exists.
41092
41093 debug=false
41094 ac_cs_recheck=false
41095 ac_cs_silent=false
41096
41097 SHELL=\${CONFIG_SHELL-$SHELL}
41098 export SHELL
41099 _ASEOF
41100 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
41101 ## -------------------- ##
41102 ## M4sh Initialization. ##
41103 ## -------------------- ##
41104
41105 # Be more Bourne compatible
41106 DUALCASE=1; export DUALCASE # for MKS sh
41107 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
41108   emulate sh
41109   NULLCMD=:
41110   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41111   # is contrary to our usage.  Disable this feature.
41112   alias -g '${1+"$@"}'='"$@"'
41113   setopt NO_GLOB_SUBST
41114 else
41115   case `(set -o) 2>/dev/null` in #(
41116   *posix*) :
41117     set -o posix ;; #(
41118   *) :
41119      ;;
41120 esac
41121 fi
41122
41123
41124 as_nl='
41125 '
41126 export as_nl
41127 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41128 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41129 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41130 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41131 # Prefer a ksh shell builtin over an external printf program on Solaris,
41132 # but without wasting forks for bash or zsh.
41133 if test -z "$BASH_VERSION$ZSH_VERSION" \
41134     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
41135   as_echo='print -r --'
41136   as_echo_n='print -rn --'
41137 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
41138   as_echo='printf %s\n'
41139   as_echo_n='printf %s'
41140 else
41141   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
41142     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
41143     as_echo_n='/usr/ucb/echo -n'
41144   else
41145     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
41146     as_echo_n_body='eval
41147       arg=$1;
41148       case $arg in #(
41149       *"$as_nl"*)
41150         expr "X$arg" : "X\\(.*\\)$as_nl";
41151         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
41152       esac;
41153       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
41154     '
41155     export as_echo_n_body
41156     as_echo_n='sh -c $as_echo_n_body as_echo'
41157   fi
41158   export as_echo_body
41159   as_echo='sh -c $as_echo_body as_echo'
41160 fi
41161
41162
41163
41164 # IFS
41165 # We need space, tab and new line, in precisely that order.  Quoting is
41166 # there to prevent editors from complaining about space-tab.
41167 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41168 # splitting by setting IFS to empty value.)
41169 IFS=" ""        $as_nl"
41170
41171 # Find who we are.  Look in the path if we contain no directory separator.
41172 as_myself=
41173 case $0 in #((
41174   *[\\/]* ) as_myself=$0 ;;
41175   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41176 for as_dir in $PATH
41177 do
41178   IFS=$as_save_IFS
41179   test -z "$as_dir" && as_dir=.
41180     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41181   done
41182 IFS=$as_save_IFS
41183
41184      ;;
41185 esac
41186 # We did not find ourselves, most probably we were run as `sh COMMAND'
41187 # in which case we are not to be found in the path.
41188 if test "x$as_myself" = x; then
41189   as_myself=$0
41190 fi
41191 if test ! -f "$as_myself"; then
41192   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41193   exit 1
41194 fi
41195
41196 # Unset variables that we do not need and which cause bugs (e.g. in
41197 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
41198 # suppresses any "Segmentation fault" message there.  '((' could
41199 # trigger a bug in pdksh 5.2.14.
41200 for as_var in BASH_ENV ENV MAIL MAILPATH
41201 do eval test x\${$as_var+set} = xset \
41202   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
41203 done
41204 PS1='$ '
41205 PS2='> '
41206 PS4='+ '
41207
41208 # NLS nuisances.
41209 LC_ALL=C
41210 export LC_ALL
41211 LANGUAGE=C
41212 export LANGUAGE
41213
41214 # CDPATH.
41215 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41216
41217
41218 # as_fn_error STATUS ERROR [LINENO LOG_FD]
41219 # ----------------------------------------
41220 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
41221 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
41222 # script with STATUS, using 1 if that was 0.
41223 as_fn_error ()
41224 {
41225   as_status=$1; test $as_status -eq 0 && as_status=1
41226   if test "$4"; then
41227     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
41228     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
41229   fi
41230   $as_echo "$as_me: error: $2" >&2
41231   as_fn_exit $as_status
41232 } # as_fn_error
41233
41234
41235 # as_fn_set_status STATUS
41236 # -----------------------
41237 # Set $? to STATUS, without forking.
41238 as_fn_set_status ()
41239 {
41240   return $1
41241 } # as_fn_set_status
41242
41243 # as_fn_exit STATUS
41244 # -----------------
41245 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
41246 as_fn_exit ()
41247 {
41248   set +e
41249   as_fn_set_status $1
41250   exit $1
41251 } # as_fn_exit
41252
41253 # as_fn_unset VAR
41254 # ---------------
41255 # Portably unset VAR.
41256 as_fn_unset ()
41257 {
41258   { eval $1=; unset $1;}
41259 }
41260 as_unset=as_fn_unset
41261 # as_fn_append VAR VALUE
41262 # ----------------------
41263 # Append the text in VALUE to the end of the definition contained in VAR. Take
41264 # advantage of any shell optimizations that allow amortized linear growth over
41265 # repeated appends, instead of the typical quadratic growth present in naive
41266 # implementations.
41267 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
41268   eval 'as_fn_append ()
41269   {
41270     eval $1+=\$2
41271   }'
41272 else
41273   as_fn_append ()
41274   {
41275     eval $1=\$$1\$2
41276   }
41277 fi # as_fn_append
41278
41279 # as_fn_arith ARG...
41280 # ------------------
41281 # Perform arithmetic evaluation on the ARGs, and store the result in the
41282 # global $as_val. Take advantage of shells that can avoid forks. The arguments
41283 # must be portable across $(()) and expr.
41284 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
41285   eval 'as_fn_arith ()
41286   {
41287     as_val=$(( $* ))
41288   }'
41289 else
41290   as_fn_arith ()
41291   {
41292     as_val=`expr "$@" || test $? -eq 1`
41293   }
41294 fi # as_fn_arith
41295
41296
41297 if expr a : '\(a\)' >/dev/null 2>&1 &&
41298    test "X`expr 00001 : '.*\(...\)'`" = X001; then
41299   as_expr=expr
41300 else
41301   as_expr=false
41302 fi
41303
41304 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41305   as_basename=basename
41306 else
41307   as_basename=false
41308 fi
41309
41310 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41311   as_dirname=dirname
41312 else
41313   as_dirname=false
41314 fi
41315
41316 as_me=`$as_basename -- "$0" ||
41317 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41318          X"$0" : 'X\(//\)$' \| \
41319          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41320 $as_echo X/"$0" |
41321     sed '/^.*\/\([^/][^/]*\)\/*$/{
41322             s//\1/
41323             q
41324           }
41325           /^X\/\(\/\/\)$/{
41326             s//\1/
41327             q
41328           }
41329           /^X\/\(\/\).*/{
41330             s//\1/
41331             q
41332           }
41333           s/.*/./; q'`
41334
41335 # Avoid depending upon Character Ranges.
41336 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41337 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41338 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41339 as_cr_digits='0123456789'
41340 as_cr_alnum=$as_cr_Letters$as_cr_digits
41341
41342 ECHO_C= ECHO_N= ECHO_T=
41343 case `echo -n x` in #(((((
41344 -n*)
41345   case `echo 'xy\c'` in
41346   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
41347   xy)  ECHO_C='\c';;
41348   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
41349        ECHO_T=' ';;
41350   esac;;
41351 *)
41352   ECHO_N='-n';;
41353 esac
41354
41355 rm -f conf$$ conf$$.exe conf$$.file
41356 if test -d conf$$.dir; then
41357   rm -f conf$$.dir/conf$$.file
41358 else
41359   rm -f conf$$.dir
41360   mkdir conf$$.dir 2>/dev/null
41361 fi
41362 if (echo >conf$$.file) 2>/dev/null; then
41363   if ln -s conf$$.file conf$$ 2>/dev/null; then
41364     as_ln_s='ln -s'
41365     # ... but there are two gotchas:
41366     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41367     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41368     # In both cases, we have to default to `cp -pR'.
41369     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41370       as_ln_s='cp -pR'
41371   elif ln conf$$.file conf$$ 2>/dev/null; then
41372     as_ln_s=ln
41373   else
41374     as_ln_s='cp -pR'
41375   fi
41376 else
41377   as_ln_s='cp -pR'
41378 fi
41379 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41380 rmdir conf$$.dir 2>/dev/null
41381
41382
41383 # as_fn_mkdir_p
41384 # -------------
41385 # Create "$as_dir" as a directory, including parents if necessary.
41386 as_fn_mkdir_p ()
41387 {
41388
41389   case $as_dir in #(
41390   -*) as_dir=./$as_dir;;
41391   esac
41392   test -d "$as_dir" || eval $as_mkdir_p || {
41393     as_dirs=
41394     while :; do
41395       case $as_dir in #(
41396       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
41397       *) as_qdir=$as_dir;;
41398       esac
41399       as_dirs="'$as_qdir' $as_dirs"
41400       as_dir=`$as_dirname -- "$as_dir" ||
41401 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41402          X"$as_dir" : 'X\(//\)[^/]' \| \
41403          X"$as_dir" : 'X\(//\)$' \| \
41404          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
41405 $as_echo X"$as_dir" |
41406     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41407             s//\1/
41408             q
41409           }
41410           /^X\(\/\/\)[^/].*/{
41411             s//\1/
41412             q
41413           }
41414           /^X\(\/\/\)$/{
41415             s//\1/
41416             q
41417           }
41418           /^X\(\/\).*/{
41419             s//\1/
41420             q
41421           }
41422           s/.*/./; q'`
41423       test -d "$as_dir" && break
41424     done
41425     test -z "$as_dirs" || eval "mkdir $as_dirs"
41426   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
41427
41428
41429 } # as_fn_mkdir_p
41430 if mkdir -p . 2>/dev/null; then
41431   as_mkdir_p='mkdir -p "$as_dir"'
41432 else
41433   test -d ./-p && rmdir ./-p
41434   as_mkdir_p=false
41435 fi
41436
41437
41438 # as_fn_executable_p FILE
41439 # -----------------------
41440 # Test if FILE is an executable regular file.
41441 as_fn_executable_p ()
41442 {
41443   test -f "$1" && test -x "$1"
41444 } # as_fn_executable_p
41445 as_test_x='test -x'
41446 as_executable_p=as_fn_executable_p
41447
41448 # Sed expression to map a string onto a valid CPP name.
41449 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41450
41451 # Sed expression to map a string onto a valid variable name.
41452 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41453
41454
41455 exec 6>&1
41456 ## ----------------------------------- ##
41457 ## Main body of $CONFIG_STATUS script. ##
41458 ## ----------------------------------- ##
41459 _ASEOF
41460 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
41461
41462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41463 # Save the log message, to keep $0 and so on meaningful, and to
41464 # report actual input values of CONFIG_FILES etc. instead of their
41465 # values after options handling.
41466 ac_log="
41467 This file was extended by curl $as_me -, which was
41468 generated by GNU Autoconf 2.69.  Invocation command line was
41469
41470   CONFIG_FILES    = $CONFIG_FILES
41471   CONFIG_HEADERS  = $CONFIG_HEADERS
41472   CONFIG_LINKS    = $CONFIG_LINKS
41473   CONFIG_COMMANDS = $CONFIG_COMMANDS
41474   $ $0 $@
41475
41476 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41477 "
41478
41479 _ACEOF
41480
41481 case $ac_config_files in *"
41482 "*) set x $ac_config_files; shift; ac_config_files=$*;;
41483 esac
41484
41485 case $ac_config_headers in *"
41486 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
41487 esac
41488
41489
41490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41491 # Files that config.status was made for.
41492 config_files="$ac_config_files"
41493 config_headers="$ac_config_headers"
41494 config_commands="$ac_config_commands"
41495
41496 _ACEOF
41497
41498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41499 ac_cs_usage="\
41500 \`$as_me' instantiates files and other configuration actions
41501 from templates according to the current configuration.  Unless the files
41502 and actions are specified as TAGs, all are instantiated by default.
41503
41504 Usage: $0 [OPTION]... [TAG]...
41505
41506   -h, --help       print this help, then exit
41507   -V, --version    print version number and configuration settings, then exit
41508       --config     print configuration, then exit
41509   -q, --quiet, --silent
41510                    do not print progress messages
41511   -d, --debug      don't remove temporary files
41512       --recheck    update $as_me by reconfiguring in the same conditions
41513       --file=FILE[:TEMPLATE]
41514                    instantiate the configuration file FILE
41515       --header=FILE[:TEMPLATE]
41516                    instantiate the configuration header FILE
41517
41518 Configuration files:
41519 $config_files
41520
41521 Configuration headers:
41522 $config_headers
41523
41524 Configuration commands:
41525 $config_commands
41526
41527 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>."
41528
41529 _ACEOF
41530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41531 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
41532 ac_cs_version="\\
41533 curl config.status -
41534 configured by $0, generated by GNU Autoconf 2.69,
41535   with options \\"\$ac_cs_config\\"
41536
41537 Copyright (C) 2012 Free Software Foundation, Inc.
41538 This config.status script is free software; the Free Software Foundation
41539 gives unlimited permission to copy, distribute and modify it."
41540
41541 ac_pwd='$ac_pwd'
41542 srcdir='$srcdir'
41543 INSTALL='$INSTALL'
41544 MKDIR_P='$MKDIR_P'
41545 AWK='$AWK'
41546 test -n "\$AWK" || AWK=awk
41547 _ACEOF
41548
41549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41550 # The default lists apply if the user does not specify any file.
41551 ac_need_defaults=:
41552 while test $# != 0
41553 do
41554   case $1 in
41555   --*=?*)
41556     ac_option=`expr "X$1" : 'X\([^=]*\)='`
41557     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
41558     ac_shift=:
41559     ;;
41560   --*=)
41561     ac_option=`expr "X$1" : 'X\([^=]*\)='`
41562     ac_optarg=
41563     ac_shift=:
41564     ;;
41565   *)
41566     ac_option=$1
41567     ac_optarg=$2
41568     ac_shift=shift
41569     ;;
41570   esac
41571
41572   case $ac_option in
41573   # Handling of the options.
41574   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41575     ac_cs_recheck=: ;;
41576   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41577     $as_echo "$ac_cs_version"; exit ;;
41578   --config | --confi | --conf | --con | --co | --c )
41579     $as_echo "$ac_cs_config"; exit ;;
41580   --debug | --debu | --deb | --de | --d | -d )
41581     debug=: ;;
41582   --file | --fil | --fi | --f )
41583     $ac_shift
41584     case $ac_optarg in
41585     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41586     '') as_fn_error $? "missing file argument" ;;
41587     esac
41588     as_fn_append CONFIG_FILES " '$ac_optarg'"
41589     ac_need_defaults=false;;
41590   --header | --heade | --head | --hea )
41591     $ac_shift
41592     case $ac_optarg in
41593     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41594     esac
41595     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
41596     ac_need_defaults=false;;
41597   --he | --h)
41598     # Conflict between --help and --header
41599     as_fn_error $? "ambiguous option: \`$1'
41600 Try \`$0 --help' for more information.";;
41601   --help | --hel | -h )
41602     $as_echo "$ac_cs_usage"; exit ;;
41603   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41604   | -silent | --silent | --silen | --sile | --sil | --si | --s)
41605     ac_cs_silent=: ;;
41606
41607   # This is an error.
41608   -*) as_fn_error $? "unrecognized option: \`$1'
41609 Try \`$0 --help' for more information." ;;
41610
41611   *) as_fn_append ac_config_targets " $1"
41612      ac_need_defaults=false ;;
41613
41614   esac
41615   shift
41616 done
41617
41618 ac_configure_extra_args=
41619
41620 if $ac_cs_silent; then
41621   exec 6>/dev/null
41622   ac_configure_extra_args="$ac_configure_extra_args --silent"
41623 fi
41624
41625 _ACEOF
41626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41627 if \$ac_cs_recheck; then
41628   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41629   shift
41630   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
41631   CONFIG_SHELL='$SHELL'
41632   export CONFIG_SHELL
41633   exec "\$@"
41634 fi
41635
41636 _ACEOF
41637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41638 exec 5>>config.log
41639 {
41640   echo
41641   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41642 ## Running $as_me. ##
41643 _ASBOX
41644   $as_echo "$ac_log"
41645 } >&5
41646
41647 _ACEOF
41648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41649 #
41650 # INIT-COMMANDS
41651 #
41652 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41653
41654
41655 # The HP-UX ksh and POSIX shell print the target directory to stdout
41656 # if CDPATH is set.
41657 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41658
41659 sed_quote_subst='$sed_quote_subst'
41660 double_quote_subst='$double_quote_subst'
41661 delay_variable_subst='$delay_variable_subst'
41662 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
41663 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
41664 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
41665 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
41666 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
41667 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
41668 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
41669 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
41670 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
41671 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
41672 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
41673 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
41674 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
41675 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
41676 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
41677 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
41678 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
41679 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
41680 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
41681 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
41682 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
41683 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
41684 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
41685 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
41686 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
41687 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
41688 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
41689 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
41690 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
41691 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
41692 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
41693 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
41694 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
41695 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
41696 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
41697 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
41698 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
41699 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
41700 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
41701 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
41702 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
41703 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
41704 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
41705 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
41706 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
41707 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
41708 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
41709 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41710 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41711 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
41712 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
41713 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
41714 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
41715 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
41716 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
41717 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
41718 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
41719 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
41720 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
41721 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"`'
41722 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
41723 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
41724 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
41725 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
41726 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
41727 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
41728 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
41729 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
41730 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
41731 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
41732 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
41733 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
41734 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
41735 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
41736 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
41737 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
41738 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
41739 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
41740 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
41741 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
41742 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41743 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
41744 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
41745 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
41746 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
41747 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
41748 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
41749 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41750 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
41751 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41752 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
41753 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41754 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
41755 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
41756 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
41757 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
41758 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
41759 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
41760 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
41761 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
41762 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
41763 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
41764 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
41765 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
41766 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
41767 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
41768 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
41769 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
41770 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
41771 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
41772 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
41773 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
41774 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
41775 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
41776 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
41777 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
41778 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
41779 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
41780 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
41781 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
41782 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
41783 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
41784 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41785 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41786 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
41787 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
41788 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
41789 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
41790 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
41791 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
41792 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
41793 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
41794 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
41795 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
41796 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
41797 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
41798
41799 LTCC='$LTCC'
41800 LTCFLAGS='$LTCFLAGS'
41801 compiler='$compiler_DEFAULT'
41802
41803 # A function that is used when there is no print builtin or printf.
41804 func_fallback_echo ()
41805 {
41806   eval 'cat <<_LTECHO_EOF
41807 \$1
41808 _LTECHO_EOF'
41809 }
41810
41811 # Quote evaled strings.
41812 for var in AS \
41813 DLLTOOL \
41814 OBJDUMP \
41815 SHELL \
41816 ECHO \
41817 PATH_SEPARATOR \
41818 SED \
41819 GREP \
41820 EGREP \
41821 FGREP \
41822 LD \
41823 NM \
41824 LN_S \
41825 lt_SP2NL \
41826 lt_NL2SP \
41827 reload_flag \
41828 deplibs_check_method \
41829 file_magic_cmd \
41830 file_magic_glob \
41831 want_nocaseglob \
41832 sharedlib_from_linklib_cmd \
41833 AR \
41834 AR_FLAGS \
41835 archiver_list_spec \
41836 STRIP \
41837 RANLIB \
41838 CC \
41839 CFLAGS \
41840 compiler \
41841 lt_cv_sys_global_symbol_pipe \
41842 lt_cv_sys_global_symbol_to_cdecl \
41843 lt_cv_sys_global_symbol_to_import \
41844 lt_cv_sys_global_symbol_to_c_name_address \
41845 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
41846 lt_cv_nm_interface \
41847 nm_file_list_spec \
41848 lt_cv_truncate_bin \
41849 lt_prog_compiler_no_builtin_flag \
41850 lt_prog_compiler_pic \
41851 lt_prog_compiler_wl \
41852 lt_prog_compiler_static \
41853 lt_cv_prog_compiler_c_o \
41854 need_locks \
41855 MANIFEST_TOOL \
41856 DSYMUTIL \
41857 NMEDIT \
41858 LIPO \
41859 OTOOL \
41860 OTOOL64 \
41861 shrext_cmds \
41862 export_dynamic_flag_spec \
41863 whole_archive_flag_spec \
41864 compiler_needs_object \
41865 with_gnu_ld \
41866 allow_undefined_flag \
41867 no_undefined_flag \
41868 hardcode_libdir_flag_spec \
41869 hardcode_libdir_separator \
41870 exclude_expsyms \
41871 include_expsyms \
41872 file_list_spec \
41873 variables_saved_for_relink \
41874 libname_spec \
41875 library_names_spec \
41876 soname_spec \
41877 install_override_mode \
41878 finish_eval \
41879 old_striplib \
41880 striplib; do
41881     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
41882     *[\\\\\\\`\\"\\\$]*)
41883       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
41884       ;;
41885     *)
41886       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
41887       ;;
41888     esac
41889 done
41890
41891 # Double-quote double-evaled strings.
41892 for var in reload_cmds \
41893 old_postinstall_cmds \
41894 old_postuninstall_cmds \
41895 old_archive_cmds \
41896 extract_expsyms_cmds \
41897 old_archive_from_new_cmds \
41898 old_archive_from_expsyms_cmds \
41899 archive_cmds \
41900 archive_expsym_cmds \
41901 module_cmds \
41902 module_expsym_cmds \
41903 export_symbols_cmds \
41904 prelink_cmds \
41905 postlink_cmds \
41906 postinstall_cmds \
41907 postuninstall_cmds \
41908 finish_cmds \
41909 sys_lib_search_path_spec \
41910 configure_time_dlsearch_path \
41911 configure_time_lt_sys_library_path; do
41912     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
41913     *[\\\\\\\`\\"\\\$]*)
41914       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
41915       ;;
41916     *)
41917       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
41918       ;;
41919     esac
41920 done
41921
41922 ac_aux_dir='$ac_aux_dir'
41923
41924 # See if we are running on zsh, and set the options that allow our
41925 # commands through without removal of \ escapes INIT.
41926 if test -n "\${ZSH_VERSION+set}"; then
41927    setopt NO_GLOB_SUBST
41928 fi
41929
41930
41931     PACKAGE='$PACKAGE'
41932     VERSION='$VERSION'
41933     RM='$RM'
41934     ofile='$ofile'
41935
41936
41937
41938
41939 _ACEOF
41940
41941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41942
41943 # Handling of arguments.
41944 for ac_config_target in $ac_config_targets
41945 do
41946   case $ac_config_target in
41947     "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
41948     "include/curl/curlbuild.h") CONFIG_HEADERS="$CONFIG_HEADERS include/curl/curlbuild.h" ;;
41949     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
41950     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
41951     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
41952     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
41953     "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
41954     "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
41955     "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
41956     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
41957     "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
41958     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
41959     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
41960     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
41961     "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
41962     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
41963     "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
41964     "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
41965     "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
41966     "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
41967     "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
41968     "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
41969     "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
41970     "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
41971     "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
41972     "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
41973     "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
41974     "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
41975     "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
41976     "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
41977     "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
41978     "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
41979     "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
41980     "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
41981     "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
41982     "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
41983     "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
41984     "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
41985
41986   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
41987   esac
41988 done
41989
41990
41991 # If the user did not use the arguments to specify the items to instantiate,
41992 # then the envvar interface is used.  Set only those that are not.
41993 # We use the long form for the default assignment because of an extremely
41994 # bizarre bug on SunOS 4.1.3.
41995 if $ac_need_defaults; then
41996   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41997   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41998   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41999 fi
42000
42001 # Have a temporary directory for convenience.  Make it in the build tree
42002 # simply because there is no reason against having it here, and in addition,
42003 # creating and moving files from /tmp can sometimes cause problems.
42004 # Hook for its removal unless debugging.
42005 # Note that there is a small window in which the directory will not be cleaned:
42006 # after its creation but before its name has been assigned to `$tmp'.
42007 $debug ||
42008 {
42009   tmp= ac_tmp=
42010   trap 'exit_status=$?
42011   : "${ac_tmp:=$tmp}"
42012   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42013 ' 0
42014   trap 'as_fn_exit 1' 1 2 13 15
42015 }
42016 # Create a (secure) tmp directory for tmp files.
42017
42018 {
42019   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42020   test -d "$tmp"
42021 }  ||
42022 {
42023   tmp=./conf$$-$RANDOM
42024   (umask 077 && mkdir "$tmp")
42025 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
42026 ac_tmp=$tmp
42027
42028 # Set up the scripts for CONFIG_FILES section.
42029 # No need to generate them if there are no CONFIG_FILES.
42030 # This happens for instance with `./config.status config.h'.
42031 if test -n "$CONFIG_FILES"; then
42032
42033
42034 ac_cr=`echo X | tr X '\015'`
42035 # On cygwin, bash can eat \r inside `` if the user requested igncr.
42036 # But we know of no other shell where ac_cr would be empty at this
42037 # point, so we can use a bashism as a fallback.
42038 if test "x$ac_cr" = x; then
42039   eval ac_cr=\$\'\\r\'
42040 fi
42041 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42042 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42043   ac_cs_awk_cr='\\r'
42044 else
42045   ac_cs_awk_cr=$ac_cr
42046 fi
42047
42048 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42049 _ACEOF
42050
42051
42052 {
42053   echo "cat >conf$$subs.awk <<_ACEOF" &&
42054   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42055   echo "_ACEOF"
42056 } >conf$$subs.sh ||
42057   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42058 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
42059 ac_delim='%!_!# '
42060 for ac_last_try in false false false false false :; do
42061   . ./conf$$subs.sh ||
42062     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42063
42064   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
42065   if test $ac_delim_n = $ac_delim_num; then
42066     break
42067   elif $ac_last_try; then
42068     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42069   else
42070     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42071   fi
42072 done
42073 rm -f conf$$subs.sh
42074
42075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42076 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
42077 _ACEOF
42078 sed -n '
42079 h
42080 s/^/S["/; s/!.*/"]=/
42081 p
42082 g
42083 s/^[^!]*!//
42084 :repl
42085 t repl
42086 s/'"$ac_delim"'$//
42087 t delim
42088 :nl
42089 h
42090 s/\(.\{148\}\)..*/\1/
42091 t more1
42092 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
42093 p
42094 n
42095 b repl
42096 :more1
42097 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42098 p
42099 g
42100 s/.\{148\}//
42101 t nl
42102 :delim
42103 h
42104 s/\(.\{148\}\)..*/\1/
42105 t more2
42106 s/["\\]/\\&/g; s/^/"/; s/$/"/
42107 p
42108 b
42109 :more2
42110 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42111 p
42112 g
42113 s/.\{148\}//
42114 t delim
42115 ' <conf$$subs.awk | sed '
42116 /^[^""]/{
42117   N
42118   s/\n//
42119 }
42120 ' >>$CONFIG_STATUS || ac_write_fail=1
42121 rm -f conf$$subs.awk
42122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42123 _ACAWK
42124 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
42125   for (key in S) S_is_set[key] = 1
42126   FS = "\a"
42127
42128 }
42129 {
42130   line = $ 0
42131   nfields = split(line, field, "@")
42132   substed = 0
42133   len = length(field[1])
42134   for (i = 2; i < nfields; i++) {
42135     key = field[i]
42136     keylen = length(key)
42137     if (S_is_set[key]) {
42138       value = S[key]
42139       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
42140       len += length(value) + length(field[++i])
42141       substed = 1
42142     } else
42143       len += 1 + keylen
42144   }
42145
42146   print line
42147 }
42148
42149 _ACAWK
42150 _ACEOF
42151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42152 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
42153   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
42154 else
42155   cat
42156 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
42157   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42158 _ACEOF
42159
42160 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
42161 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
42162 # trailing colons and then remove the whole line if VPATH becomes empty
42163 # (actually we leave an empty line to preserve line numbers).
42164 if test "x$srcdir" = x.; then
42165   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
42166 h
42167 s///
42168 s/^/:/
42169 s/[      ]*$/:/
42170 s/:\$(srcdir):/:/g
42171 s/:\${srcdir}:/:/g
42172 s/:@srcdir@:/:/g
42173 s/^:*//
42174 s/:*$//
42175 x
42176 s/\(=[   ]*\).*/\1/
42177 G
42178 s/\n//
42179 s/^[^=]*=[       ]*$//
42180 }'
42181 fi
42182
42183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42184 fi # test -n "$CONFIG_FILES"
42185
42186 # Set up the scripts for CONFIG_HEADERS section.
42187 # No need to generate them if there are no CONFIG_HEADERS.
42188 # This happens for instance with `./config.status Makefile'.
42189 if test -n "$CONFIG_HEADERS"; then
42190 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
42191 BEGIN {
42192 _ACEOF
42193
42194 # Transform confdefs.h into an awk script `defines.awk', embedded as
42195 # here-document in config.status, that substitutes the proper values into
42196 # config.h.in to produce config.h.
42197
42198 # Create a delimiter string that does not exist in confdefs.h, to ease
42199 # handling of long lines.
42200 ac_delim='%!_!# '
42201 for ac_last_try in false false :; do
42202   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
42203   if test -z "$ac_tt"; then
42204     break
42205   elif $ac_last_try; then
42206     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
42207   else
42208     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42209   fi
42210 done
42211
42212 # For the awk script, D is an array of macro values keyed by name,
42213 # likewise P contains macro parameters if any.  Preserve backslash
42214 # newline sequences.
42215
42216 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42217 sed -n '
42218 s/.\{148\}/&'"$ac_delim"'/g
42219 t rset
42220 :rset
42221 s/^[     ]*#[    ]*define[       ][      ]*/ /
42222 t def
42223 d
42224 :def
42225 s/\\$//
42226 t bsnl
42227 s/["\\]/\\&/g
42228 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
42229 D["\1"]=" \3"/p
42230 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
42231 d
42232 :bsnl
42233 s/["\\]/\\&/g
42234 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
42235 D["\1"]=" \3\\\\\\n"\\/p
42236 t cont
42237 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
42238 t cont
42239 d
42240 :cont
42241 n
42242 s/.\{148\}/&'"$ac_delim"'/g
42243 t clear
42244 :clear
42245 s/\\$//
42246 t bsnlc
42247 s/["\\]/\\&/g; s/^/"/; s/$/"/p
42248 d
42249 :bsnlc
42250 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
42251 b cont
42252 ' <confdefs.h | sed '
42253 s/'"$ac_delim"'/"\\\
42254 "/g' >>$CONFIG_STATUS || ac_write_fail=1
42255
42256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42257   for (key in D) D_is_set[key] = 1
42258   FS = "\a"
42259 }
42260 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
42261   line = \$ 0
42262   split(line, arg, " ")
42263   if (arg[1] == "#") {
42264     defundef = arg[2]
42265     mac1 = arg[3]
42266   } else {
42267     defundef = substr(arg[1], 2)
42268     mac1 = arg[2]
42269   }
42270   split(mac1, mac2, "(") #)
42271   macro = mac2[1]
42272   prefix = substr(line, 1, index(line, defundef) - 1)
42273   if (D_is_set[macro]) {
42274     # Preserve the white space surrounding the "#".
42275     print prefix "define", macro P[macro] D[macro]
42276     next
42277   } else {
42278     # Replace #undef with comments.  This is necessary, for example,
42279     # in the case of _POSIX_SOURCE, which is predefined and required
42280     # on some systems where configure will not decide to define it.
42281     if (defundef == "undef") {
42282       print "/*", prefix defundef, macro, "*/"
42283       next
42284     }
42285   }
42286 }
42287 { print }
42288 _ACAWK
42289 _ACEOF
42290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42291   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
42292 fi # test -n "$CONFIG_HEADERS"
42293
42294
42295 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
42296 shift
42297 for ac_tag
42298 do
42299   case $ac_tag in
42300   :[FHLC]) ac_mode=$ac_tag; continue;;
42301   esac
42302   case $ac_mode$ac_tag in
42303   :[FHL]*:*);;
42304   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
42305   :[FH]-) ac_tag=-:-;;
42306   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42307   esac
42308   ac_save_IFS=$IFS
42309   IFS=:
42310   set x $ac_tag
42311   IFS=$ac_save_IFS
42312   shift
42313   ac_file=$1
42314   shift
42315
42316   case $ac_mode in
42317   :L) ac_source=$1;;
42318   :[FH])
42319     ac_file_inputs=
42320     for ac_f
42321     do
42322       case $ac_f in
42323       -) ac_f="$ac_tmp/stdin";;
42324       *) # Look for the file first in the build tree, then in the source tree
42325          # (if the path is not absolute).  The absolute path cannot be DOS-style,
42326          # because $ac_f cannot contain `:'.
42327          test -f "$ac_f" ||
42328            case $ac_f in
42329            [\\/$]*) false;;
42330            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42331            esac ||
42332            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
42333       esac
42334       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
42335       as_fn_append ac_file_inputs " '$ac_f'"
42336     done
42337
42338     # Let's still pretend it is `configure' which instantiates (i.e., don't
42339     # use $as_me), people would be surprised to read:
42340     #    /* config.h.  Generated by config.status.  */
42341     configure_input='Generated from '`
42342           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
42343         `' by configure.'
42344     if test x"$ac_file" != x-; then
42345       configure_input="$ac_file.  $configure_input"
42346       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
42347 $as_echo "$as_me: creating $ac_file" >&6;}
42348     fi
42349     # Neutralize special characters interpreted by sed in replacement strings.
42350     case $configure_input in #(
42351     *\&* | *\|* | *\\* )
42352        ac_sed_conf_input=`$as_echo "$configure_input" |
42353        sed 's/[\\\\&|]/\\\\&/g'`;; #(
42354     *) ac_sed_conf_input=$configure_input;;
42355     esac
42356
42357     case $ac_tag in
42358     *:-:* | *:-) cat >"$ac_tmp/stdin" \
42359       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
42360     esac
42361     ;;
42362   esac
42363
42364   ac_dir=`$as_dirname -- "$ac_file" ||
42365 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42366          X"$ac_file" : 'X\(//\)[^/]' \| \
42367          X"$ac_file" : 'X\(//\)$' \| \
42368          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42369 $as_echo X"$ac_file" |
42370     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42371             s//\1/
42372             q
42373           }
42374           /^X\(\/\/\)[^/].*/{
42375             s//\1/
42376             q
42377           }
42378           /^X\(\/\/\)$/{
42379             s//\1/
42380             q
42381           }
42382           /^X\(\/\).*/{
42383             s//\1/
42384             q
42385           }
42386           s/.*/./; q'`
42387   as_dir="$ac_dir"; as_fn_mkdir_p
42388   ac_builddir=.
42389
42390 case "$ac_dir" in
42391 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42392 *)
42393   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
42394   # A ".." for each directory in $ac_dir_suffix.
42395   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
42396   case $ac_top_builddir_sub in
42397   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42398   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42399   esac ;;
42400 esac
42401 ac_abs_top_builddir=$ac_pwd
42402 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42403 # for backward compatibility:
42404 ac_top_builddir=$ac_top_build_prefix
42405
42406 case $srcdir in
42407   .)  # We are building in place.
42408     ac_srcdir=.
42409     ac_top_srcdir=$ac_top_builddir_sub
42410     ac_abs_top_srcdir=$ac_pwd ;;
42411   [\\/]* | ?:[\\/]* )  # Absolute name.
42412     ac_srcdir=$srcdir$ac_dir_suffix;
42413     ac_top_srcdir=$srcdir
42414     ac_abs_top_srcdir=$srcdir ;;
42415   *) # Relative name.
42416     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42417     ac_top_srcdir=$ac_top_build_prefix$srcdir
42418     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42419 esac
42420 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42421
42422
42423   case $ac_mode in
42424   :F)
42425   #
42426   # CONFIG_FILE
42427   #
42428
42429   case $INSTALL in
42430   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42431   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42432   esac
42433   ac_MKDIR_P=$MKDIR_P
42434   case $MKDIR_P in
42435   [\\/$]* | ?:[\\/]* ) ;;
42436   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
42437   esac
42438 _ACEOF
42439
42440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42441 # If the template does not know about datarootdir, expand it.
42442 # FIXME: This hack should be removed a few years after 2.60.
42443 ac_datarootdir_hack=; ac_datarootdir_seen=
42444 ac_sed_dataroot='
42445 /datarootdir/ {
42446   p
42447   q
42448 }
42449 /@datadir@/p
42450 /@docdir@/p
42451 /@infodir@/p
42452 /@localedir@/p
42453 /@mandir@/p'
42454 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
42455 *datarootdir*) ac_datarootdir_seen=yes;;
42456 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42457   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42458 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42459 _ACEOF
42460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42461   ac_datarootdir_hack='
42462   s&@datadir@&$datadir&g
42463   s&@docdir@&$docdir&g
42464   s&@infodir@&$infodir&g
42465   s&@localedir@&$localedir&g
42466   s&@mandir@&$mandir&g
42467   s&\\\${datarootdir}&$datarootdir&g' ;;
42468 esac
42469 _ACEOF
42470
42471 # Neutralize VPATH when `$srcdir' = `.'.
42472 # Shell code in configure.ac might set extrasub.
42473 # FIXME: do we really want to maintain this feature?
42474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42475 ac_sed_extra="$ac_vpsub
42476 $extrasub
42477 _ACEOF
42478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42479 :t
42480 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42481 s|@configure_input@|$ac_sed_conf_input|;t t
42482 s&@top_builddir@&$ac_top_builddir_sub&;t t
42483 s&@top_build_prefix@&$ac_top_build_prefix&;t t
42484 s&@srcdir@&$ac_srcdir&;t t
42485 s&@abs_srcdir@&$ac_abs_srcdir&;t t
42486 s&@top_srcdir@&$ac_top_srcdir&;t t
42487 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42488 s&@builddir@&$ac_builddir&;t t
42489 s&@abs_builddir@&$ac_abs_builddir&;t t
42490 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42491 s&@INSTALL@&$ac_INSTALL&;t t
42492 s&@MKDIR_P@&$ac_MKDIR_P&;t t
42493 $ac_datarootdir_hack
42494 "
42495 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
42496   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42497
42498 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42499   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
42500   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
42501       "$ac_tmp/out"`; test -z "$ac_out"; } &&
42502   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42503 which seems to be undefined.  Please make sure it is defined" >&5
42504 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42505 which seems to be undefined.  Please make sure it is defined" >&2;}
42506
42507   rm -f "$ac_tmp/stdin"
42508   case $ac_file in
42509   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
42510   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
42511   esac \
42512   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42513  ;;
42514   :H)
42515   #
42516   # CONFIG_HEADER
42517   #
42518   if test x"$ac_file" != x-; then
42519     {
42520       $as_echo "/* $configure_input  */" \
42521       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
42522     } >"$ac_tmp/config.h" \
42523       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42524     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
42525       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
42526 $as_echo "$as_me: $ac_file is unchanged" >&6;}
42527     else
42528       rm -f "$ac_file"
42529       mv "$ac_tmp/config.h" "$ac_file" \
42530         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42531     fi
42532   else
42533     $as_echo "/* $configure_input  */" \
42534       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
42535       || as_fn_error $? "could not create -" "$LINENO" 5
42536   fi
42537 # Compute "$ac_file"'s index in $config_headers.
42538 _am_arg="$ac_file"
42539 _am_stamp_count=1
42540 for _am_header in $config_headers :; do
42541   case $_am_header in
42542     $_am_arg | $_am_arg:* )
42543       break ;;
42544     * )
42545       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42546   esac
42547 done
42548 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
42549 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42550          X"$_am_arg" : 'X\(//\)[^/]' \| \
42551          X"$_am_arg" : 'X\(//\)$' \| \
42552          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
42553 $as_echo X"$_am_arg" |
42554     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42555             s//\1/
42556             q
42557           }
42558           /^X\(\/\/\)[^/].*/{
42559             s//\1/
42560             q
42561           }
42562           /^X\(\/\/\)$/{
42563             s//\1/
42564             q
42565           }
42566           /^X\(\/\).*/{
42567             s//\1/
42568             q
42569           }
42570           s/.*/./; q'`/stamp-h$_am_stamp_count
42571  ;;
42572
42573   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
42574 $as_echo "$as_me: executing $ac_file commands" >&6;}
42575  ;;
42576   esac
42577
42578
42579   case $ac_file$ac_mode in
42580     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
42581   # Older Autoconf quotes --file arguments for eval, but not when files
42582   # are listed without --file.  Let's play safe and only enable the eval
42583   # if we detect the quoting.
42584   case $CONFIG_FILES in
42585   *\'*) eval set x "$CONFIG_FILES" ;;
42586   *)   set x $CONFIG_FILES ;;
42587   esac
42588   shift
42589   for mf
42590   do
42591     # Strip MF so we end up with the name of the file.
42592     mf=`echo "$mf" | sed -e 's/:.*$//'`
42593     # Check whether this is an Automake generated Makefile or not.
42594     # We used to match only the files named 'Makefile.in', but
42595     # some people rename them; so instead we look at the file content.
42596     # Grep'ing the first line is not enough: some people post-process
42597     # each Makefile.in and add a new line on top of each file to say so.
42598     # Grep'ing the whole file is not good either: AIX grep has a line
42599     # limit of 2048, but all sed's we know have understand at least 4000.
42600     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
42601       dirpart=`$as_dirname -- "$mf" ||
42602 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42603          X"$mf" : 'X\(//\)[^/]' \| \
42604          X"$mf" : 'X\(//\)$' \| \
42605          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
42606 $as_echo X"$mf" |
42607     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42608             s//\1/
42609             q
42610           }
42611           /^X\(\/\/\)[^/].*/{
42612             s//\1/
42613             q
42614           }
42615           /^X\(\/\/\)$/{
42616             s//\1/
42617             q
42618           }
42619           /^X\(\/\).*/{
42620             s//\1/
42621             q
42622           }
42623           s/.*/./; q'`
42624     else
42625       continue
42626     fi
42627     # Extract the definition of DEPDIR, am__include, and am__quote
42628     # from the Makefile without running 'make'.
42629     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42630     test -z "$DEPDIR" && continue
42631     am__include=`sed -n 's/^am__include = //p' < "$mf"`
42632     test -z "$am__include" && continue
42633     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42634     # Find all dependency output files, they are included files with
42635     # $(DEPDIR) in their names.  We invoke sed twice because it is the
42636     # simplest approach to changing $(DEPDIR) to its actual value in the
42637     # expansion.
42638     for file in `sed -n "
42639       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42640          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
42641       # Make sure the directory exists.
42642       test -f "$dirpart/$file" && continue
42643       fdir=`$as_dirname -- "$file" ||
42644 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42645          X"$file" : 'X\(//\)[^/]' \| \
42646          X"$file" : 'X\(//\)$' \| \
42647          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
42648 $as_echo X"$file" |
42649     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42650             s//\1/
42651             q
42652           }
42653           /^X\(\/\/\)[^/].*/{
42654             s//\1/
42655             q
42656           }
42657           /^X\(\/\/\)$/{
42658             s//\1/
42659             q
42660           }
42661           /^X\(\/\).*/{
42662             s//\1/
42663             q
42664           }
42665           s/.*/./; q'`
42666       as_dir=$dirpart/$fdir; as_fn_mkdir_p
42667       # echo "creating $dirpart/$file"
42668       echo '# dummy' > "$dirpart/$file"
42669     done
42670   done
42671 }
42672  ;;
42673     "libtool":C)
42674
42675     # See if we are running on zsh, and set the options that allow our
42676     # commands through without removal of \ escapes.
42677     if test -n "${ZSH_VERSION+set}"; then
42678       setopt NO_GLOB_SUBST
42679     fi
42680
42681     cfgfile=${ofile}T
42682     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
42683     $RM "$cfgfile"
42684
42685     cat <<_LT_EOF >> "$cfgfile"
42686 #! $SHELL
42687 # Generated automatically by $as_me ($PACKAGE) $VERSION
42688 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
42689 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
42690
42691 # Provide generalized library-building support services.
42692 # Written by Gordon Matzigkeit, 1996
42693
42694 # Copyright (C) 2014 Free Software Foundation, Inc.
42695 # This is free software; see the source for copying conditions.  There is NO
42696 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
42697
42698 # GNU Libtool is free software; you can redistribute it and/or modify
42699 # it under the terms of the GNU General Public License as published by
42700 # the Free Software Foundation; either version 2 of of the License, or
42701 # (at your option) any later version.
42702 #
42703 # As a special exception to the GNU General Public License, if you
42704 # distribute this file as part of a program or library that is built
42705 # using GNU Libtool, you may include this file under the  same
42706 # distribution terms that you use for the rest of that program.
42707 #
42708 # GNU Libtool is distributed in the hope that it will be useful, but
42709 # WITHOUT ANY WARRANTY; without even the implied warranty of
42710 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
42711 # GNU General Public License for more details.
42712 #
42713 # You should have received a copy of the GNU General Public License
42714 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
42715
42716
42717 # The names of the tagged configurations supported by this script.
42718 available_tags=''
42719
42720 # Configured defaults for sys_lib_dlsearch_path munging.
42721 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
42722
42723 # ### BEGIN LIBTOOL CONFIG
42724
42725 # Which release of libtool.m4 was used?
42726 macro_version=$macro_version
42727 macro_revision=$macro_revision
42728
42729 # Assembler program.
42730 AS=$lt_AS
42731
42732 # DLL creation program.
42733 DLLTOOL=$lt_DLLTOOL
42734
42735 # Object dumper program.
42736 OBJDUMP=$lt_OBJDUMP
42737
42738 # Whether or not to build shared libraries.
42739 build_libtool_libs=$enable_shared
42740
42741 # Whether or not to build static libraries.
42742 build_old_libs=$enable_static
42743
42744 # What type of objects to build.
42745 pic_mode=$pic_mode
42746
42747 # Whether or not to optimize for fast installation.
42748 fast_install=$enable_fast_install
42749
42750 # Shared archive member basename,for filename based shared library versioning on AIX.
42751 shared_archive_member_spec=$shared_archive_member_spec
42752
42753 # Shell to use when invoking shell scripts.
42754 SHELL=$lt_SHELL
42755
42756 # An echo program that protects backslashes.
42757 ECHO=$lt_ECHO
42758
42759 # The PATH separator for the build system.
42760 PATH_SEPARATOR=$lt_PATH_SEPARATOR
42761
42762 # The host system.
42763 host_alias=$host_alias
42764 host=$host
42765 host_os=$host_os
42766
42767 # The build system.
42768 build_alias=$build_alias
42769 build=$build
42770 build_os=$build_os
42771
42772 # A sed program that does not truncate output.
42773 SED=$lt_SED
42774
42775 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
42776 Xsed="\$SED -e 1s/^X//"
42777
42778 # A grep program that handles long lines.
42779 GREP=$lt_GREP
42780
42781 # An ERE matcher.
42782 EGREP=$lt_EGREP
42783
42784 # A literal string matcher.
42785 FGREP=$lt_FGREP
42786
42787 # A BSD- or MS-compatible name lister.
42788 NM=$lt_NM
42789
42790 # Whether we need soft or hard links.
42791 LN_S=$lt_LN_S
42792
42793 # What is the maximum length of a command?
42794 max_cmd_len=$max_cmd_len
42795
42796 # Object file suffix (normally "o").
42797 objext=$ac_objext
42798
42799 # Executable file suffix (normally "").
42800 exeext=$exeext
42801
42802 # whether the shell understands "unset".
42803 lt_unset=$lt_unset
42804
42805 # turn spaces into newlines.
42806 SP2NL=$lt_lt_SP2NL
42807
42808 # turn newlines into spaces.
42809 NL2SP=$lt_lt_NL2SP
42810
42811 # convert \$build file names to \$host format.
42812 to_host_file_cmd=$lt_cv_to_host_file_cmd
42813
42814 # convert \$build files to toolchain format.
42815 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
42816
42817 # Method to check whether dependent libraries are shared objects.
42818 deplibs_check_method=$lt_deplibs_check_method
42819
42820 # Command to use when deplibs_check_method = "file_magic".
42821 file_magic_cmd=$lt_file_magic_cmd
42822
42823 # How to find potential files when deplibs_check_method = "file_magic".
42824 file_magic_glob=$lt_file_magic_glob
42825
42826 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
42827 want_nocaseglob=$lt_want_nocaseglob
42828
42829 # Command to associate shared and link libraries.
42830 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
42831
42832 # The archiver.
42833 AR=$lt_AR
42834
42835 # Flags to create an archive.
42836 AR_FLAGS=$lt_AR_FLAGS
42837
42838 # How to feed a file listing to the archiver.
42839 archiver_list_spec=$lt_archiver_list_spec
42840
42841 # A symbol stripping program.
42842 STRIP=$lt_STRIP
42843
42844 # Commands used to install an old-style archive.
42845 RANLIB=$lt_RANLIB
42846 old_postinstall_cmds=$lt_old_postinstall_cmds
42847 old_postuninstall_cmds=$lt_old_postuninstall_cmds
42848
42849 # Whether to use a lock for old archive extraction.
42850 lock_old_archive_extraction=$lock_old_archive_extraction
42851
42852 # A C compiler.
42853 LTCC=$lt_CC
42854
42855 # LTCC compiler flags.
42856 LTCFLAGS=$lt_CFLAGS
42857
42858 # Take the output of nm and produce a listing of raw symbols and C names.
42859 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
42860
42861 # Transform the output of nm in a proper C declaration.
42862 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
42863
42864 # Transform the output of nm into a list of symbols to manually relocate.
42865 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
42866
42867 # Transform the output of nm in a C name address pair.
42868 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
42869
42870 # Transform the output of nm in a C name address pair when lib prefix is needed.
42871 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
42872
42873 # The name lister interface.
42874 nm_interface=$lt_lt_cv_nm_interface
42875
42876 # Specify filename containing input files for \$NM.
42877 nm_file_list_spec=$lt_nm_file_list_spec
42878
42879 # The root where to search for dependent libraries,and where our libraries should be installed.
42880 lt_sysroot=$lt_sysroot
42881
42882 # Command to truncate a binary pipe.
42883 lt_truncate_bin=$lt_lt_cv_truncate_bin
42884
42885 # The name of the directory that contains temporary libtool files.
42886 objdir=$objdir
42887
42888 # Used to examine libraries when file_magic_cmd begins with "file".
42889 MAGIC_CMD=$MAGIC_CMD
42890
42891 # Must we lock files when doing compilation?
42892 need_locks=$lt_need_locks
42893
42894 # Manifest tool.
42895 MANIFEST_TOOL=$lt_MANIFEST_TOOL
42896
42897 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
42898 DSYMUTIL=$lt_DSYMUTIL
42899
42900 # Tool to change global to local symbols on Mac OS X.
42901 NMEDIT=$lt_NMEDIT
42902
42903 # Tool to manipulate fat objects and archives on Mac OS X.
42904 LIPO=$lt_LIPO
42905
42906 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
42907 OTOOL=$lt_OTOOL
42908
42909 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
42910 OTOOL64=$lt_OTOOL64
42911
42912 # Old archive suffix (normally "a").
42913 libext=$libext
42914
42915 # Shared library suffix (normally ".so").
42916 shrext_cmds=$lt_shrext_cmds
42917
42918 # The commands to extract the exported symbol list from a shared archive.
42919 extract_expsyms_cmds=$lt_extract_expsyms_cmds
42920
42921 # Variables whose values should be saved in libtool wrapper scripts and
42922 # restored at link time.
42923 variables_saved_for_relink=$lt_variables_saved_for_relink
42924
42925 # Do we need the "lib" prefix for modules?
42926 need_lib_prefix=$need_lib_prefix
42927
42928 # Do we need a version for libraries?
42929 need_version=$need_version
42930
42931 # Library versioning type.
42932 version_type=$version_type
42933
42934 # Shared library runtime path variable.
42935 runpath_var=$runpath_var
42936
42937 # Shared library path variable.
42938 shlibpath_var=$shlibpath_var
42939
42940 # Is shlibpath searched before the hard-coded library search path?
42941 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
42942
42943 # Format of library name prefix.
42944 libname_spec=$lt_libname_spec
42945
42946 # List of archive names.  First name is the real one, the rest are links.
42947 # The last name is the one that the linker finds with -lNAME
42948 library_names_spec=$lt_library_names_spec
42949
42950 # The coded name of the library, if different from the real name.
42951 soname_spec=$lt_soname_spec
42952
42953 # Permission mode override for installation of shared libraries.
42954 install_override_mode=$lt_install_override_mode
42955
42956 # Command to use after installation of a shared archive.
42957 postinstall_cmds=$lt_postinstall_cmds
42958
42959 # Command to use after uninstallation of a shared archive.
42960 postuninstall_cmds=$lt_postuninstall_cmds
42961
42962 # Commands used to finish a libtool library installation in a directory.
42963 finish_cmds=$lt_finish_cmds
42964
42965 # As "finish_cmds", except a single script fragment to be evaled but
42966 # not shown.
42967 finish_eval=$lt_finish_eval
42968
42969 # Whether we should hardcode library paths into libraries.
42970 hardcode_into_libs=$hardcode_into_libs
42971
42972 # Compile-time system search path for libraries.
42973 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
42974
42975 # Detected run-time system search path for libraries.
42976 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
42977
42978 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
42979 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
42980
42981 # Whether dlopen is supported.
42982 dlopen_support=$enable_dlopen
42983
42984 # Whether dlopen of programs is supported.
42985 dlopen_self=$enable_dlopen_self
42986
42987 # Whether dlopen of statically linked programs is supported.
42988 dlopen_self_static=$enable_dlopen_self_static
42989
42990 # Commands to strip libraries.
42991 old_striplib=$lt_old_striplib
42992 striplib=$lt_striplib
42993
42994
42995 # The linker used to build libraries.
42996 LD=$lt_LD
42997
42998 # How to create reloadable object files.
42999 reload_flag=$lt_reload_flag
43000 reload_cmds=$lt_reload_cmds
43001
43002 # Commands used to build an old-style archive.
43003 old_archive_cmds=$lt_old_archive_cmds
43004
43005 # A language specific compiler.
43006 CC=$lt_compiler
43007
43008 # Is the compiler the GNU compiler?
43009 with_gcc=$GCC
43010
43011 # Compiler flag to turn off builtin functions.
43012 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43013
43014 # Additional compiler flags for building library objects.
43015 pic_flag=$lt_lt_prog_compiler_pic
43016
43017 # How to pass a linker flag through the compiler.
43018 wl=$lt_lt_prog_compiler_wl
43019
43020 # Compiler flag to prevent dynamic linking.
43021 link_static_flag=$lt_lt_prog_compiler_static
43022
43023 # Does compiler simultaneously support -c and -o options?
43024 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43025
43026 # Whether or not to add -lc for building shared libraries.
43027 build_libtool_need_lc=$archive_cmds_need_lc
43028
43029 # Whether or not to disallow shared libs when runtime libs are static.
43030 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43031
43032 # Compiler flag to allow reflexive dlopens.
43033 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43034
43035 # Compiler flag to generate shared objects directly from archives.
43036 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43037
43038 # Whether the compiler copes with passing no objects directly.
43039 compiler_needs_object=$lt_compiler_needs_object
43040
43041 # Create an old-style archive from a shared archive.
43042 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43043
43044 # Create a temporary old-style archive to link instead of a shared archive.
43045 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43046
43047 # Commands used to build a shared archive.
43048 archive_cmds=$lt_archive_cmds
43049 archive_expsym_cmds=$lt_archive_expsym_cmds
43050
43051 # Commands used to build a loadable module if different from building
43052 # a shared archive.
43053 module_cmds=$lt_module_cmds
43054 module_expsym_cmds=$lt_module_expsym_cmds
43055
43056 # Whether we are building with GNU ld or not.
43057 with_gnu_ld=$lt_with_gnu_ld
43058
43059 # Flag that allows shared libraries with undefined symbols to be built.
43060 allow_undefined_flag=$lt_allow_undefined_flag
43061
43062 # Flag that enforces no undefined symbols.
43063 no_undefined_flag=$lt_no_undefined_flag
43064
43065 # Flag to hardcode \$libdir into a binary during linking.
43066 # This must work even if \$libdir does not exist
43067 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43068
43069 # Whether we need a single "-rpath" flag with a separated argument.
43070 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43071
43072 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43073 # DIR into the resulting binary.
43074 hardcode_direct=$hardcode_direct
43075
43076 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43077 # DIR into the resulting binary and the resulting library dependency is
43078 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
43079 # library is relocated.
43080 hardcode_direct_absolute=$hardcode_direct_absolute
43081
43082 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43083 # into the resulting binary.
43084 hardcode_minus_L=$hardcode_minus_L
43085
43086 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43087 # into the resulting binary.
43088 hardcode_shlibpath_var=$hardcode_shlibpath_var
43089
43090 # Set to "yes" if building a shared library automatically hardcodes DIR
43091 # into the library and all subsequent libraries and executables linked
43092 # against it.
43093 hardcode_automatic=$hardcode_automatic
43094
43095 # Set to yes if linker adds runtime paths of dependent libraries
43096 # to runtime path list.
43097 inherit_rpath=$inherit_rpath
43098
43099 # Whether libtool must link a program against all its dependency libraries.
43100 link_all_deplibs=$link_all_deplibs
43101
43102 # Set to "yes" if exported symbols are required.
43103 always_export_symbols=$always_export_symbols
43104
43105 # The commands to list exported symbols.
43106 export_symbols_cmds=$lt_export_symbols_cmds
43107
43108 # Symbols that should not be listed in the preloaded symbols.
43109 exclude_expsyms=$lt_exclude_expsyms
43110
43111 # Symbols that must always be exported.
43112 include_expsyms=$lt_include_expsyms
43113
43114 # Commands necessary for linking programs (against libraries) with templates.
43115 prelink_cmds=$lt_prelink_cmds
43116
43117 # Commands necessary for finishing linking programs.
43118 postlink_cmds=$lt_postlink_cmds
43119
43120 # Specify filename containing input files.
43121 file_list_spec=$lt_file_list_spec
43122
43123 # How to hardcode a shared library path into an executable.
43124 hardcode_action=$hardcode_action
43125
43126 # ### END LIBTOOL CONFIG
43127
43128 _LT_EOF
43129
43130     cat <<'_LT_EOF' >> "$cfgfile"
43131
43132 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
43133
43134 # func_munge_path_list VARIABLE PATH
43135 # -----------------------------------
43136 # VARIABLE is name of variable containing _space_ separated list of
43137 # directories to be munged by the contents of PATH, which is string
43138 # having a format:
43139 # "DIR[:DIR]:"
43140 #       string "DIR[ DIR]" will be prepended to VARIABLE
43141 # ":DIR[:DIR]"
43142 #       string "DIR[ DIR]" will be appended to VARIABLE
43143 # "DIRP[:DIRP]::[DIRA:]DIRA"
43144 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
43145 #       "DIRA[ DIRA]" will be appended to VARIABLE
43146 # "DIR[:DIR]"
43147 #       VARIABLE will be replaced by "DIR[ DIR]"
43148 func_munge_path_list ()
43149 {
43150     case x$2 in
43151     x)
43152         ;;
43153     *:)
43154         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
43155         ;;
43156     x:*)
43157         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
43158         ;;
43159     *::*)
43160         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
43161         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
43162         ;;
43163     *)
43164         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
43165         ;;
43166     esac
43167 }
43168
43169
43170 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
43171 func_cc_basename ()
43172 {
43173     for cc_temp in $*""; do
43174       case $cc_temp in
43175         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43176         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43177         \-*) ;;
43178         *) break;;
43179       esac
43180     done
43181     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43182 }
43183
43184
43185 # ### END FUNCTIONS SHARED WITH CONFIGURE
43186
43187 _LT_EOF
43188
43189   case $host_os in
43190   aix3*)
43191     cat <<\_LT_EOF >> "$cfgfile"
43192 # AIX sometimes has problems with the GCC collect2 program.  For some
43193 # reason, if we set the COLLECT_NAMES environment variable, the problems
43194 # vanish in a puff of smoke.
43195 if test set != "${COLLECT_NAMES+set}"; then
43196   COLLECT_NAMES=
43197   export COLLECT_NAMES
43198 fi
43199 _LT_EOF
43200     ;;
43201   esac
43202
43203
43204 ltmain=$ac_aux_dir/ltmain.sh
43205
43206
43207   # We use sed instead of cat because bash on DJGPP gets confused if
43208   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
43209   # text mode, it properly converts lines to CR/LF.  This bash problem
43210   # is reportedly fixed, but why not run on old versions too?
43211   sed '$q' "$ltmain" >> "$cfgfile" \
43212      || (rm -f "$cfgfile"; exit 1)
43213
43214    mv -f "$cfgfile" "$ofile" ||
43215     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43216   chmod +x "$ofile"
43217
43218  ;;
43219
43220   esac
43221 done # for ac_tag
43222
43223
43224 as_fn_exit 0
43225 _ACEOF
43226 ac_clean_files=$ac_clean_files_save
43227
43228 test $ac_write_fail = 0 ||
43229   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
43230
43231
43232 # configure is writing to config.log, and then calls config.status.
43233 # config.status does its own redirection, appending to config.log.
43234 # Unfortunately, on DOS this fails, as config.log is still kept open
43235 # by configure, so config.status won't be able to write to it; its
43236 # output is simply discarded.  So we exec the FD to /dev/null,
43237 # effectively closing config.log, so it can be properly (re)opened and
43238 # appended to by config.status.  When coming back to configure, we
43239 # need to make the FD available again.
43240 if test "$no_create" != yes; then
43241   ac_cs_success=:
43242   ac_config_status_args=
43243   test "$silent" = yes &&
43244     ac_config_status_args="$ac_config_status_args --quiet"
43245   exec 5>/dev/null
43246   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43247   exec 5>>config.log
43248   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43249   # would make configure fail if this is the last instruction.
43250   $ac_cs_success || as_fn_exit 1
43251 fi
43252
43253 #
43254 # CONFIG_SUBDIRS section.
43255 #
43256 if test "$no_recursion" != yes; then
43257
43258   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
43259   # so they do not pile up.
43260   ac_sub_configure_args=
43261   ac_prev=
43262   eval "set x $ac_configure_args"
43263   shift
43264   for ac_arg
43265   do
43266     if test -n "$ac_prev"; then
43267       ac_prev=
43268       continue
43269     fi
43270     case $ac_arg in
43271     -cache-file | --cache-file | --cache-fil | --cache-fi \
43272     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43273       ac_prev=cache_file ;;
43274     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43275     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43276     | --c=*)
43277       ;;
43278     --config-cache | -C)
43279       ;;
43280     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43281       ac_prev=srcdir ;;
43282     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43283       ;;
43284     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43285       ac_prev=prefix ;;
43286     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43287       ;;
43288     --disable-option-checking)
43289       ;;
43290     *)
43291       case $ac_arg in
43292       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43293       esac
43294       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
43295     esac
43296   done
43297
43298   # Always prepend --prefix to ensure using the same prefix
43299   # in subdir configurations.
43300   ac_arg="--prefix=$prefix"
43301   case $ac_arg in
43302   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43303   esac
43304   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
43305
43306   # Pass --silent
43307   if test "$silent" = yes; then
43308     ac_sub_configure_args="--silent $ac_sub_configure_args"
43309   fi
43310
43311   # Always prepend --disable-option-checking to silence warnings, since
43312   # different subdirs can have different --enable and --with options.
43313   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
43314
43315   ac_popdir=`pwd`
43316   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43317
43318     # Do not complain, so a configure script can configure whichever
43319     # parts of a large source tree are present.
43320     test -d "$srcdir/$ac_dir" || continue
43321
43322     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
43323     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
43324     $as_echo "$ac_msg" >&6
43325     as_dir="$ac_dir"; as_fn_mkdir_p
43326     ac_builddir=.
43327
43328 case "$ac_dir" in
43329 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43330 *)
43331   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43332   # A ".." for each directory in $ac_dir_suffix.
43333   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43334   case $ac_top_builddir_sub in
43335   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43336   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43337   esac ;;
43338 esac
43339 ac_abs_top_builddir=$ac_pwd
43340 ac_abs_builddir=$ac_pwd$ac_dir_suffix
43341 # for backward compatibility:
43342 ac_top_builddir=$ac_top_build_prefix
43343
43344 case $srcdir in
43345   .)  # We are building in place.
43346     ac_srcdir=.
43347     ac_top_srcdir=$ac_top_builddir_sub
43348     ac_abs_top_srcdir=$ac_pwd ;;
43349   [\\/]* | ?:[\\/]* )  # Absolute name.
43350     ac_srcdir=$srcdir$ac_dir_suffix;
43351     ac_top_srcdir=$srcdir
43352     ac_abs_top_srcdir=$srcdir ;;
43353   *) # Relative name.
43354     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43355     ac_top_srcdir=$ac_top_build_prefix$srcdir
43356     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43357 esac
43358 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43359
43360
43361     cd "$ac_dir"
43362
43363     # Check for guested configure; otherwise get Cygnus style configure.
43364     if test -f "$ac_srcdir/configure.gnu"; then
43365       ac_sub_configure=$ac_srcdir/configure.gnu
43366     elif test -f "$ac_srcdir/configure"; then
43367       ac_sub_configure=$ac_srcdir/configure
43368     elif test -f "$ac_srcdir/configure.in"; then
43369       # This should be Cygnus configure.
43370       ac_sub_configure=$ac_aux_dir/configure
43371     else
43372       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
43373 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43374       ac_sub_configure=
43375     fi
43376
43377     # The recursion is here.
43378     if test -n "$ac_sub_configure"; then
43379       # Make the cache file name correct relative to the subdirectory.
43380       case $cache_file in
43381       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43382       *) # Relative name.
43383         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
43384       esac
43385
43386       { $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
43387 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43388       # The eval makes quoting arguments work.
43389       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
43390            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
43391         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
43392     fi
43393
43394     cd "$ac_popdir"
43395   done
43396 fi
43397 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
43398   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
43399 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
43400 fi
43401
43402
43403
43404     tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
43405   if test -z "$tmp_cpp"; then
43406     tmp_cpp='cpp'
43407   fi
43408   cat >./tests/configurehelp.pm <<_EOF
43409 # This is a generated file.  Do not edit.
43410
43411 package configurehelp;
43412
43413 use strict;
43414 use warnings;
43415 use Exporter;
43416
43417 use vars qw(
43418     @ISA
43419     @EXPORT_OK
43420     \$Cpreprocessor
43421     );
43422
43423 @ISA = qw(Exporter);
43424
43425 @EXPORT_OK = qw(
43426     \$Cpreprocessor
43427     );
43428
43429 \$Cpreprocessor = '$tmp_cpp';
43430
43431 1;
43432 _EOF
43433
43434
43435
43436 ## ---------------------------------- ##
43437 ##  Start of distclean amending code  ##
43438 ## ---------------------------------- ##
43439
43440 for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
43441 do
43442
43443 if test ! -f "$xc_subdir/Makefile"; then
43444   echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
43445   exit 1
43446 fi
43447
43448 # Fetch dependency tracking file list from Makefile include lines.
43449
43450 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
43451 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
43452
43453 # --disable-dependency-tracking might have been used, consequently
43454 # there is nothing to amend without a dependency tracking file list.
43455
43456 if test $xc_cnt_words -gt 0; then
43457
43458 { $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
43459 $as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
43460
43461 # Build Makefile specific patch hunk.
43462
43463 xc_p="$xc_subdir/xc_patch.tmp"
43464
43465 xc_rm_depfiles=`echo "$xc_inc_lines" \
43466   | $SED 's%include%    -rm -f%' 2>/dev/null`
43467
43468 xc_dep_subdirs=`echo "$xc_inc_lines" \
43469   | $SED 's%include[ ][ ]*%%' 2>/dev/null \
43470   | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
43471   | sort | uniq`
43472
43473 echo "$xc_rm_depfiles" >$xc_p
43474
43475 for xc_dep_dir in $xc_dep_subdirs; do
43476   echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\"            >>$xc_p
43477   echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\"      >>$xc_p
43478   echo "${xc_tab}  rm -rf $xc_dep_dir; \\"                                          >>$xc_p
43479   echo "${xc_tab}fi"                                                                >>$xc_p
43480 done
43481
43482 # Build Makefile patching sed scripts.
43483
43484 xc_s1="$xc_subdir/xc_script_1.tmp"
43485 xc_s2="$xc_subdir/xc_script_2.tmp"
43486 xc_s3="$xc_subdir/xc_script_3.tmp"
43487
43488 cat >$xc_s1 <<\_EOT
43489 /^distclean[ ]*:/,/^[^  ][^     ]*:/{
43490   s/^.*(DEPDIR)/___xc_depdir_line___/
43491 }
43492 /^maintainer-clean[ ]*:/,/^[^   ][^     ]*:/{
43493   s/^.*(DEPDIR)/___xc_depdir_line___/
43494 }
43495 _EOT
43496
43497 cat >$xc_s2 <<\_EOT
43498 /___xc_depdir_line___$/{
43499   N
43500   /___xc_depdir_line___$/D
43501 }
43502 _EOT
43503
43504 cat >$xc_s3 <<_EOT
43505 /^___xc_depdir_line___/{
43506   r $xc_p
43507   d
43508 }
43509 _EOT
43510
43511 # Apply patch to Makefile and cleanup.
43512
43513 $SED -f "$xc_s1" "$xc_subdir/Makefile"      >"$xc_subdir/Makefile.tmp1"
43514 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
43515 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
43516
43517 if test -f "$xc_subdir/Makefile.tmp3"; then
43518   mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
43519 fi
43520
43521 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
43522 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
43523 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
43524
43525 test -f "$xc_p"  && rm -f "$xc_p"
43526 test -f "$xc_s1" && rm -f "$xc_s1"
43527 test -f "$xc_s2" && rm -f "$xc_s2"
43528 test -f "$xc_s3" && rm -f "$xc_s3"
43529
43530 fi
43531
43532 done
43533
43534 ## -------------------------------- ##
43535 ##  End of distclean amending code  ##
43536 ## -------------------------------- ##
43537
43538
43539
43540 { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
43541
43542   curl version:     ${CURLVERSION}
43543   Host setup:       ${host}
43544   Install prefix:   ${prefix}
43545   Compiler:         ${CC}
43546   SSL support:      ${curl_ssl_msg}
43547   SSH support:      ${curl_ssh_msg}
43548   zlib support:     ${curl_zlib_msg}
43549   GSS-API support:  ${curl_gss_msg}
43550   TLS-SRP support:  ${curl_tls_srp_msg}
43551   resolver:         ${curl_res_msg}
43552   IPv6 support:     ${curl_ipv6_msg}
43553   Unix sockets support: ${curl_unix_sockets_msg}
43554   IDN support:      ${curl_idn_msg}
43555   Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
43556   Built-in manual:  ${curl_manual_msg}
43557   --libcurl option: ${curl_libcurl_msg}
43558   Verbose errors:   ${curl_verbose_msg}
43559   SSPI support:     ${curl_sspi_msg}
43560   ca cert bundle:   ${ca}${ca_warning}
43561   ca cert path:     ${capath}${capath_warning}
43562   ca fallback:      ${with_ca_fallback}
43563   LDAP support:     ${curl_ldap_msg}
43564   LDAPS support:    ${curl_ldaps_msg}
43565   RTSP support:     ${curl_rtsp_msg}
43566   RTMP support:     ${curl_rtmp_msg}
43567   metalink support: ${curl_mtlnk_msg}
43568   PSL support:      ${curl_psl_msg}
43569   HTTP2 support:    ${curl_h2_msg}
43570   Protocols:        ${SUPPORT_PROTOCOLS}
43571 " >&5
43572 $as_echo "$as_me: Configured to build curl/libcurl:
43573
43574   curl version:     ${CURLVERSION}
43575   Host setup:       ${host}
43576   Install prefix:   ${prefix}
43577   Compiler:         ${CC}
43578   SSL support:      ${curl_ssl_msg}
43579   SSH support:      ${curl_ssh_msg}
43580   zlib support:     ${curl_zlib_msg}
43581   GSS-API support:  ${curl_gss_msg}
43582   TLS-SRP support:  ${curl_tls_srp_msg}
43583   resolver:         ${curl_res_msg}
43584   IPv6 support:     ${curl_ipv6_msg}
43585   Unix sockets support: ${curl_unix_sockets_msg}
43586   IDN support:      ${curl_idn_msg}
43587   Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
43588   Built-in manual:  ${curl_manual_msg}
43589   --libcurl option: ${curl_libcurl_msg}
43590   Verbose errors:   ${curl_verbose_msg}
43591   SSPI support:     ${curl_sspi_msg}
43592   ca cert bundle:   ${ca}${ca_warning}
43593   ca cert path:     ${capath}${capath_warning}
43594   ca fallback:      ${with_ca_fallback}
43595   LDAP support:     ${curl_ldap_msg}
43596   LDAPS support:    ${curl_ldaps_msg}
43597   RTSP support:     ${curl_rtsp_msg}
43598   RTMP support:     ${curl_rtmp_msg}
43599   metalink support: ${curl_mtlnk_msg}
43600   PSL support:      ${curl_psl_msg}
43601   HTTP2 support:    ${curl_h2_msg}
43602   Protocols:        ${SUPPORT_PROTOCOLS}
43603 " >&6;}
43604
43605 if test "x$soname_bump" = "xyes"; then
43606
43607 cat <<EOM
43608   SONAME bump:     yes - WARNING: this library will be built with the SONAME
43609                    number bumped due to (a detected) ABI breakage.
43610                    See lib/README.curl_off_t for details on this.
43611 EOM
43612
43613 fi
43614