618bea8a46d765947240b959f80c09889c5c4ee0
[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: http://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 - 2013 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: http://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: http://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 BUILD_LIBHOSTNAME_FALSE
894 BUILD_LIBHOSTNAME_TRUE
895 USE_EMBEDDED_ARES_FALSE
896 USE_EMBEDDED_ARES_TRUE
897 USE_ARES
898 subdirs
899 USE_MANUAL_FALSE
900 USE_MANUAL_TRUE
901 MANOPT
902 NROFF
903 PERL
904 IPV6_ENABLED
905 IDN_ENABLED
906 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
907 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
908 CURL_LT_SHLIB_VERSIONED_FLAVOUR
909 USE_LIBRTMP
910 USE_LIBSSH2
911 LIBMETALINK_CPPFLAGS
912 LIBMETALINK_LDFLAGS
913 LIBMETALINK_LIBS
914 CURL_CA_BUNDLE
915 SSL_ENABLED
916 USE_AXTLS
917 HAVE_NSS_INITCONTEXT
918 USE_NSS
919 USE_CYASSL
920 USE_POLARSSL
921 HAVE_GNUTLS_SRP
922 USE_GNUTLS_NETTLE
923 USE_GNUTLS
924 HAVE_SSLEAY_SRP
925 RANDOM_FILE
926 USE_SSLEAY
927 PKGCONFIG
928 USE_DARWINSSL
929 USE_WINDOWS_SSPI
930 USE_SCHANNEL
931 KRB4_ENABLED
932 USE_OPENLDAP
933 ZLIB_LIBS
934 HAVE_LIBZ_FALSE
935 HAVE_LIBZ_TRUE
936 HAVE_LIBZ
937 CURL_DISABLE_GOPHER
938 CURL_DISABLE_SMTP
939 CURL_DISABLE_IMAP
940 CURL_DISABLE_POP3
941 CURL_DISABLE_TFTP
942 CURL_DISABLE_TELNET
943 CURL_DISABLE_DICT
944 CURL_DISABLE_PROXY
945 HAVE_LDAP_SSL
946 CURL_DISABLE_LDAPS
947 CURL_DISABLE_LDAP
948 CURL_DISABLE_FILE
949 CURL_DISABLE_FTP
950 CURL_DISABLE_RTSP
951 CURL_DISABLE_HTTP
952 DOING_NATIVE_WINDOWS_FALSE
953 DOING_NATIVE_WINDOWS_TRUE
954 BUILD_UNITTESTS_FALSE
955 BUILD_UNITTESTS_TRUE
956 CURLDEBUG_FALSE
957 CURLDEBUG_TRUE
958 USE_EXPLICIT_LIB_DEPS_FALSE
959 USE_EXPLICIT_LIB_DEPS_TRUE
960 REQUIRE_LIB_DEPS
961 CPPFLAG_CURL_STATICLIB
962 USE_CPPFLAG_CURL_STATICLIB_FALSE
963 USE_CPPFLAG_CURL_STATICLIB_TRUE
964 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
965 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
966 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
967 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
968 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
969 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
970 OTOOL64
971 OTOOL
972 LIPO
973 NMEDIT
974 DSYMUTIL
975 MANIFEST_TOOL
976 RANLIB
977 ac_ct_AR
978 LN_S
979 NM
980 ac_ct_DUMPBIN
981 DUMPBIN
982 LD
983 FGREP
984 LIBTOOL
985 OBJDUMP
986 DLLTOOL
987 AS
988 host_os
989 host_vendor
990 host_cpu
991 host
992 build_os
993 build_vendor
994 build_cpu
995 build
996 PKGADD_VENDOR
997 PKGADD_NAME
998 PKGADD_PKG
999 VERSIONNUM
1000 CURLVERSION
1001 AM_BACKSLASH
1002 AM_DEFAULT_VERBOSITY
1003 AM_DEFAULT_V
1004 AM_V
1005 am__fastdepCC_FALSE
1006 am__fastdepCC_TRUE
1007 CCDEPMODE
1008 am__nodep
1009 AMDEPBACKSLASH
1010 AMDEP_FALSE
1011 AMDEP_TRUE
1012 am__quote
1013 am__include
1014 DEPDIR
1015 am__untar
1016 am__tar
1017 AMTAR
1018 am__leading_dot
1019 SET_MAKE
1020 AWK
1021 mkdir_p
1022 MKDIR_P
1023 INSTALL_STRIP_PROGRAM
1024 STRIP
1025 install_sh
1026 MAKEINFO
1027 AUTOHEADER
1028 AUTOMAKE
1029 AUTOCONF
1030 ACLOCAL
1031 VERSION
1032 PACKAGE
1033 CYGPATH_W
1034 am__isrc
1035 CPP
1036 OBJEXT
1037 EXEEXT
1038 ac_ct_CC
1039 CPPFLAGS
1040 LDFLAGS
1041 CFLAGS
1042 CC
1043 INSTALL_DATA
1044 INSTALL_SCRIPT
1045 INSTALL_PROGRAM
1046 libext
1047 AR
1048 EGREP
1049 GREP
1050 SED
1051 CURL_CFLAG_EXTRAS
1052 CONFIGURE_OPTIONS
1053 MAINT
1054 MAINTAINER_MODE_FALSE
1055 MAINTAINER_MODE_TRUE
1056 target_alias
1057 host_alias
1058 build_alias
1059 LIBS
1060 ECHO_T
1061 ECHO_N
1062 ECHO_C
1063 DEFS
1064 mandir
1065 localedir
1066 libdir
1067 psdir
1068 pdfdir
1069 dvidir
1070 htmldir
1071 infodir
1072 docdir
1073 oldincludedir
1074 includedir
1075 localstatedir
1076 sharedstatedir
1077 sysconfdir
1078 datadir
1079 datarootdir
1080 libexecdir
1081 sbindir
1082 bindir
1083 program_transform_name
1084 prefix
1085 exec_prefix
1086 PACKAGE_URL
1087 PACKAGE_BUGREPORT
1088 PACKAGE_STRING
1089 PACKAGE_VERSION
1090 PACKAGE_TARNAME
1091 PACKAGE_NAME
1092 SHELL
1093 PATH_SEPARATOR'
1094 ac_subst_files=''
1095 ac_user_opts='
1096 enable_option_checking
1097 enable_maintainer_mode
1098 enable_debug
1099 enable_optimize
1100 enable_warnings
1101 enable_werror
1102 enable_curldebug
1103 enable_symbol_hiding
1104 enable_hidden_symbols
1105 enable_ares
1106 enable_dependency_tracking
1107 enable_silent_rules
1108 enable_largefile
1109 enable_shared
1110 enable_static
1111 with_pic
1112 enable_fast_install
1113 with_gnu_ld
1114 with_sysroot
1115 enable_libtool_lock
1116 enable_http
1117 enable_ftp
1118 enable_file
1119 enable_ldap
1120 enable_ldaps
1121 enable_rtsp
1122 enable_proxy
1123 enable_dict
1124 enable_telnet
1125 enable_tftp
1126 enable_pop3
1127 enable_imap
1128 enable_smtp
1129 enable_gopher
1130 enable_manual
1131 enable_libcurl_option
1132 enable_libgcc
1133 with_zlib
1134 with_ldap_lib
1135 with_lber_lib
1136 enable_ipv6
1137 with_krb4_includes
1138 with_krb4_libs
1139 with_krb4
1140 with_spnego
1141 with_gssapi_includes
1142 with_gssapi_libs
1143 with_gssapi
1144 with_winssl
1145 with_darwinssl
1146 with_ssl
1147 with_egd_socket
1148 with_random
1149 with_gnutls
1150 with_polarssl
1151 with_cyassl
1152 with_nss
1153 with_axtls
1154 with_ca_bundle
1155 with_ca_path
1156 with_libmetalink
1157 with_libssh2
1158 with_librtmp
1159 enable_versioned_symbols
1160 with_winidn
1161 with_libidn
1162 enable_threaded_resolver
1163 enable_verbose
1164 enable_sspi
1165 enable_crypto_auth
1166 enable_ntlm_wb
1167 enable_tls_srp
1168 enable_cookies
1169 enable_soname_bump
1170 '
1171       ac_precious_vars='build_alias
1172 host_alias
1173 target_alias
1174 CC
1175 CFLAGS
1176 LDFLAGS
1177 LIBS
1178 CPPFLAGS
1179 CPP'
1180 ac_subdirs_all='ares'
1181
1182 # Initialize some variables set by options.
1183 ac_init_help=
1184 ac_init_version=false
1185 ac_unrecognized_opts=
1186 ac_unrecognized_sep=
1187 # The variables have the same names as the options, with
1188 # dashes changed to underlines.
1189 cache_file=/dev/null
1190 exec_prefix=NONE
1191 no_create=
1192 no_recursion=
1193 prefix=NONE
1194 program_prefix=NONE
1195 program_suffix=NONE
1196 program_transform_name=s,x,x,
1197 silent=
1198 site=
1199 srcdir=
1200 verbose=
1201 x_includes=NONE
1202 x_libraries=NONE
1203
1204 # Installation directory options.
1205 # These are left unexpanded so users can "make install exec_prefix=/foo"
1206 # and all the variables that are supposed to be based on exec_prefix
1207 # by default will actually change.
1208 # Use braces instead of parens because sh, perl, etc. also accept them.
1209 # (The list follows the same order as the GNU Coding Standards.)
1210 bindir='${exec_prefix}/bin'
1211 sbindir='${exec_prefix}/sbin'
1212 libexecdir='${exec_prefix}/libexec'
1213 datarootdir='${prefix}/share'
1214 datadir='${datarootdir}'
1215 sysconfdir='${prefix}/etc'
1216 sharedstatedir='${prefix}/com'
1217 localstatedir='${prefix}/var'
1218 includedir='${prefix}/include'
1219 oldincludedir='/usr/include'
1220 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1221 infodir='${datarootdir}/info'
1222 htmldir='${docdir}'
1223 dvidir='${docdir}'
1224 pdfdir='${docdir}'
1225 psdir='${docdir}'
1226 libdir='${exec_prefix}/lib'
1227 localedir='${datarootdir}/locale'
1228 mandir='${datarootdir}/man'
1229
1230 ac_prev=
1231 ac_dashdash=
1232 for ac_option
1233 do
1234   # If the previous option needs an argument, assign it.
1235   if test -n "$ac_prev"; then
1236     eval $ac_prev=\$ac_option
1237     ac_prev=
1238     continue
1239   fi
1240
1241   case $ac_option in
1242   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1243   *=)   ac_optarg= ;;
1244   *)    ac_optarg=yes ;;
1245   esac
1246
1247   # Accept the important Cygnus configure options, so we can diagnose typos.
1248
1249   case $ac_dashdash$ac_option in
1250   --)
1251     ac_dashdash=yes ;;
1252
1253   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1254     ac_prev=bindir ;;
1255   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1256     bindir=$ac_optarg ;;
1257
1258   -build | --build | --buil | --bui | --bu)
1259     ac_prev=build_alias ;;
1260   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1261     build_alias=$ac_optarg ;;
1262
1263   -cache-file | --cache-file | --cache-fil | --cache-fi \
1264   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1265     ac_prev=cache_file ;;
1266   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1267   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1268     cache_file=$ac_optarg ;;
1269
1270   --config-cache | -C)
1271     cache_file=config.cache ;;
1272
1273   -datadir | --datadir | --datadi | --datad)
1274     ac_prev=datadir ;;
1275   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1276     datadir=$ac_optarg ;;
1277
1278   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1279   | --dataroo | --dataro | --datar)
1280     ac_prev=datarootdir ;;
1281   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1282   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1283     datarootdir=$ac_optarg ;;
1284
1285   -disable-* | --disable-*)
1286     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1287     # Reject names that are not valid shell variable names.
1288     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289       as_fn_error $? "invalid feature name: $ac_useropt"
1290     ac_useropt_orig=$ac_useropt
1291     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292     case $ac_user_opts in
1293       *"
1294 "enable_$ac_useropt"
1295 "*) ;;
1296       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1297          ac_unrecognized_sep=', ';;
1298     esac
1299     eval enable_$ac_useropt=no ;;
1300
1301   -docdir | --docdir | --docdi | --doc | --do)
1302     ac_prev=docdir ;;
1303   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1304     docdir=$ac_optarg ;;
1305
1306   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1307     ac_prev=dvidir ;;
1308   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1309     dvidir=$ac_optarg ;;
1310
1311   -enable-* | --enable-*)
1312     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1313     # Reject names that are not valid shell variable names.
1314     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1315       as_fn_error $? "invalid feature name: $ac_useropt"
1316     ac_useropt_orig=$ac_useropt
1317     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1318     case $ac_user_opts in
1319       *"
1320 "enable_$ac_useropt"
1321 "*) ;;
1322       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1323          ac_unrecognized_sep=', ';;
1324     esac
1325     eval enable_$ac_useropt=\$ac_optarg ;;
1326
1327   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1328   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1329   | --exec | --exe | --ex)
1330     ac_prev=exec_prefix ;;
1331   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1332   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1333   | --exec=* | --exe=* | --ex=*)
1334     exec_prefix=$ac_optarg ;;
1335
1336   -gas | --gas | --ga | --g)
1337     # Obsolete; use --with-gas.
1338     with_gas=yes ;;
1339
1340   -help | --help | --hel | --he | -h)
1341     ac_init_help=long ;;
1342   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1343     ac_init_help=recursive ;;
1344   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1345     ac_init_help=short ;;
1346
1347   -host | --host | --hos | --ho)
1348     ac_prev=host_alias ;;
1349   -host=* | --host=* | --hos=* | --ho=*)
1350     host_alias=$ac_optarg ;;
1351
1352   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1353     ac_prev=htmldir ;;
1354   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1355   | --ht=*)
1356     htmldir=$ac_optarg ;;
1357
1358   -includedir | --includedir | --includedi | --included | --include \
1359   | --includ | --inclu | --incl | --inc)
1360     ac_prev=includedir ;;
1361   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1362   | --includ=* | --inclu=* | --incl=* | --inc=*)
1363     includedir=$ac_optarg ;;
1364
1365   -infodir | --infodir | --infodi | --infod | --info | --inf)
1366     ac_prev=infodir ;;
1367   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1368     infodir=$ac_optarg ;;
1369
1370   -libdir | --libdir | --libdi | --libd)
1371     ac_prev=libdir ;;
1372   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1373     libdir=$ac_optarg ;;
1374
1375   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1376   | --libexe | --libex | --libe)
1377     ac_prev=libexecdir ;;
1378   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1379   | --libexe=* | --libex=* | --libe=*)
1380     libexecdir=$ac_optarg ;;
1381
1382   -localedir | --localedir | --localedi | --localed | --locale)
1383     ac_prev=localedir ;;
1384   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1385     localedir=$ac_optarg ;;
1386
1387   -localstatedir | --localstatedir | --localstatedi | --localstated \
1388   | --localstate | --localstat | --localsta | --localst | --locals)
1389     ac_prev=localstatedir ;;
1390   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1391   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1392     localstatedir=$ac_optarg ;;
1393
1394   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1395     ac_prev=mandir ;;
1396   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1397     mandir=$ac_optarg ;;
1398
1399   -nfp | --nfp | --nf)
1400     # Obsolete; use --without-fp.
1401     with_fp=no ;;
1402
1403   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1404   | --no-cr | --no-c | -n)
1405     no_create=yes ;;
1406
1407   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1408   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1409     no_recursion=yes ;;
1410
1411   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1412   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1413   | --oldin | --oldi | --old | --ol | --o)
1414     ac_prev=oldincludedir ;;
1415   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1416   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1417   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1418     oldincludedir=$ac_optarg ;;
1419
1420   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1421     ac_prev=prefix ;;
1422   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1423     prefix=$ac_optarg ;;
1424
1425   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1426   | --program-pre | --program-pr | --program-p)
1427     ac_prev=program_prefix ;;
1428   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1429   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1430     program_prefix=$ac_optarg ;;
1431
1432   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1433   | --program-suf | --program-su | --program-s)
1434     ac_prev=program_suffix ;;
1435   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1436   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1437     program_suffix=$ac_optarg ;;
1438
1439   -program-transform-name | --program-transform-name \
1440   | --program-transform-nam | --program-transform-na \
1441   | --program-transform-n | --program-transform- \
1442   | --program-transform | --program-transfor \
1443   | --program-transfo | --program-transf \
1444   | --program-trans | --program-tran \
1445   | --progr-tra | --program-tr | --program-t)
1446     ac_prev=program_transform_name ;;
1447   -program-transform-name=* | --program-transform-name=* \
1448   | --program-transform-nam=* | --program-transform-na=* \
1449   | --program-transform-n=* | --program-transform-=* \
1450   | --program-transform=* | --program-transfor=* \
1451   | --program-transfo=* | --program-transf=* \
1452   | --program-trans=* | --program-tran=* \
1453   | --progr-tra=* | --program-tr=* | --program-t=*)
1454     program_transform_name=$ac_optarg ;;
1455
1456   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1457     ac_prev=pdfdir ;;
1458   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1459     pdfdir=$ac_optarg ;;
1460
1461   -psdir | --psdir | --psdi | --psd | --ps)
1462     ac_prev=psdir ;;
1463   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1464     psdir=$ac_optarg ;;
1465
1466   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1467   | -silent | --silent | --silen | --sile | --sil)
1468     silent=yes ;;
1469
1470   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1471     ac_prev=sbindir ;;
1472   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1473   | --sbi=* | --sb=*)
1474     sbindir=$ac_optarg ;;
1475
1476   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1477   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1478   | --sharedst | --shareds | --shared | --share | --shar \
1479   | --sha | --sh)
1480     ac_prev=sharedstatedir ;;
1481   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1482   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1483   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1484   | --sha=* | --sh=*)
1485     sharedstatedir=$ac_optarg ;;
1486
1487   -site | --site | --sit)
1488     ac_prev=site ;;
1489   -site=* | --site=* | --sit=*)
1490     site=$ac_optarg ;;
1491
1492   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1493     ac_prev=srcdir ;;
1494   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1495     srcdir=$ac_optarg ;;
1496
1497   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1498   | --syscon | --sysco | --sysc | --sys | --sy)
1499     ac_prev=sysconfdir ;;
1500   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1501   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1502     sysconfdir=$ac_optarg ;;
1503
1504   -target | --target | --targe | --targ | --tar | --ta | --t)
1505     ac_prev=target_alias ;;
1506   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1507     target_alias=$ac_optarg ;;
1508
1509   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1510     verbose=yes ;;
1511
1512   -version | --version | --versio | --versi | --vers | -V)
1513     ac_init_version=: ;;
1514
1515   -with-* | --with-*)
1516     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1517     # Reject names that are not valid shell variable names.
1518     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1519       as_fn_error $? "invalid package name: $ac_useropt"
1520     ac_useropt_orig=$ac_useropt
1521     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1522     case $ac_user_opts in
1523       *"
1524 "with_$ac_useropt"
1525 "*) ;;
1526       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1527          ac_unrecognized_sep=', ';;
1528     esac
1529     eval with_$ac_useropt=\$ac_optarg ;;
1530
1531   -without-* | --without-*)
1532     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1533     # Reject names that are not valid shell variable names.
1534     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1535       as_fn_error $? "invalid package name: $ac_useropt"
1536     ac_useropt_orig=$ac_useropt
1537     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1538     case $ac_user_opts in
1539       *"
1540 "with_$ac_useropt"
1541 "*) ;;
1542       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1543          ac_unrecognized_sep=', ';;
1544     esac
1545     eval with_$ac_useropt=no ;;
1546
1547   --x)
1548     # Obsolete; use --with-x.
1549     with_x=yes ;;
1550
1551   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1552   | --x-incl | --x-inc | --x-in | --x-i)
1553     ac_prev=x_includes ;;
1554   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1555   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1556     x_includes=$ac_optarg ;;
1557
1558   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1559   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1560     ac_prev=x_libraries ;;
1561   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1562   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1563     x_libraries=$ac_optarg ;;
1564
1565   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1566 Try \`$0 --help' for more information"
1567     ;;
1568
1569   *=*)
1570     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1571     # Reject names that are not valid shell variable names.
1572     case $ac_envvar in #(
1573       '' | [0-9]* | *[!_$as_cr_alnum]* )
1574       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1575     esac
1576     eval $ac_envvar=\$ac_optarg
1577     export $ac_envvar ;;
1578
1579   *)
1580     # FIXME: should be removed in autoconf 3.0.
1581     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1582     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1583       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1584     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1585     ;;
1586
1587   esac
1588 done
1589
1590 if test -n "$ac_prev"; then
1591   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1592   as_fn_error $? "missing argument to $ac_option"
1593 fi
1594
1595 if test -n "$ac_unrecognized_opts"; then
1596   case $enable_option_checking in
1597     no) ;;
1598     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1599     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1600   esac
1601 fi
1602
1603 # Check all directory arguments for consistency.
1604 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1605                 datadir sysconfdir sharedstatedir localstatedir includedir \
1606                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1607                 libdir localedir mandir
1608 do
1609   eval ac_val=\$$ac_var
1610   # Remove trailing slashes.
1611   case $ac_val in
1612     */ )
1613       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1614       eval $ac_var=\$ac_val;;
1615   esac
1616   # Be sure to have absolute directory names.
1617   case $ac_val in
1618     [\\/$]* | ?:[\\/]* )  continue;;
1619     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1620   esac
1621   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1622 done
1623
1624 # There might be people who depend on the old broken behavior: `$host'
1625 # used to hold the argument of --host etc.
1626 # FIXME: To remove some day.
1627 build=$build_alias
1628 host=$host_alias
1629 target=$target_alias
1630
1631 # FIXME: To remove some day.
1632 if test "x$host_alias" != x; then
1633   if test "x$build_alias" = x; then
1634     cross_compiling=maybe
1635   elif test "x$build_alias" != "x$host_alias"; then
1636     cross_compiling=yes
1637   fi
1638 fi
1639
1640 ac_tool_prefix=
1641 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1642
1643 test "$silent" = yes && exec 6>/dev/null
1644
1645
1646 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1647 ac_ls_di=`ls -di .` &&
1648 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1649   as_fn_error $? "working directory cannot be determined"
1650 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1651   as_fn_error $? "pwd does not report name of working directory"
1652
1653
1654 # Find the source files, if location was not specified.
1655 if test -z "$srcdir"; then
1656   ac_srcdir_defaulted=yes
1657   # Try the directory containing this script, then the parent directory.
1658   ac_confdir=`$as_dirname -- "$as_myself" ||
1659 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1660          X"$as_myself" : 'X\(//\)[^/]' \| \
1661          X"$as_myself" : 'X\(//\)$' \| \
1662          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1663 $as_echo X"$as_myself" |
1664     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1665             s//\1/
1666             q
1667           }
1668           /^X\(\/\/\)[^/].*/{
1669             s//\1/
1670             q
1671           }
1672           /^X\(\/\/\)$/{
1673             s//\1/
1674             q
1675           }
1676           /^X\(\/\).*/{
1677             s//\1/
1678             q
1679           }
1680           s/.*/./; q'`
1681   srcdir=$ac_confdir
1682   if test ! -r "$srcdir/$ac_unique_file"; then
1683     srcdir=..
1684   fi
1685 else
1686   ac_srcdir_defaulted=no
1687 fi
1688 if test ! -r "$srcdir/$ac_unique_file"; then
1689   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1690   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1691 fi
1692 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1693 ac_abs_confdir=`(
1694         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1695         pwd)`
1696 # When building in place, set srcdir=.
1697 if test "$ac_abs_confdir" = "$ac_pwd"; then
1698   srcdir=.
1699 fi
1700 # Remove unnecessary trailing slashes from srcdir.
1701 # Double slashes in file names in object file debugging info
1702 # mess up M-x gdb in Emacs.
1703 case $srcdir in
1704 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1705 esac
1706 for ac_var in $ac_precious_vars; do
1707   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1708   eval ac_env_${ac_var}_value=\$${ac_var}
1709   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1710   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1711 done
1712
1713 #
1714 # Report the --help message.
1715 #
1716 if test "$ac_init_help" = "long"; then
1717   # Omit some internal or obsolete options to make the list less imposing.
1718   # This message is too long to be a string in the A/UX 3.1 sh.
1719   cat <<_ACEOF
1720 \`configure' configures curl - to adapt to many kinds of systems.
1721
1722 Usage: $0 [OPTION]... [VAR=VALUE]...
1723
1724 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1725 VAR=VALUE.  See below for descriptions of some of the useful variables.
1726
1727 Defaults for the options are specified in brackets.
1728
1729 Configuration:
1730   -h, --help              display this help and exit
1731       --help=short        display options specific to this package
1732       --help=recursive    display the short help of all the included packages
1733   -V, --version           display version information and exit
1734   -q, --quiet, --silent   do not print \`checking ...' messages
1735       --cache-file=FILE   cache test results in FILE [disabled]
1736   -C, --config-cache      alias for \`--cache-file=config.cache'
1737   -n, --no-create         do not create output files
1738       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1739
1740 Installation directories:
1741   --prefix=PREFIX         install architecture-independent files in PREFIX
1742                           [$ac_default_prefix]
1743   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1744                           [PREFIX]
1745
1746 By default, \`make install' will install all the files in
1747 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1748 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1749 for instance \`--prefix=\$HOME'.
1750
1751 For better control, use the options below.
1752
1753 Fine tuning of the installation directories:
1754   --bindir=DIR            user executables [EPREFIX/bin]
1755   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1756   --libexecdir=DIR        program executables [EPREFIX/libexec]
1757   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1758   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1759   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1760   --libdir=DIR            object code libraries [EPREFIX/lib]
1761   --includedir=DIR        C header files [PREFIX/include]
1762   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1763   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1764   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1765   --infodir=DIR           info documentation [DATAROOTDIR/info]
1766   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1767   --mandir=DIR            man documentation [DATAROOTDIR/man]
1768   --docdir=DIR            documentation root [DATAROOTDIR/doc/curl]
1769   --htmldir=DIR           html documentation [DOCDIR]
1770   --dvidir=DIR            dvi documentation [DOCDIR]
1771   --pdfdir=DIR            pdf documentation [DOCDIR]
1772   --psdir=DIR             ps documentation [DOCDIR]
1773 _ACEOF
1774
1775   cat <<\_ACEOF
1776
1777 Program names:
1778   --program-prefix=PREFIX            prepend PREFIX to installed program names
1779   --program-suffix=SUFFIX            append SUFFIX to installed program names
1780   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1781
1782 System types:
1783   --build=BUILD     configure for building on BUILD [guessed]
1784   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1785 _ACEOF
1786 fi
1787
1788 if test -n "$ac_init_help"; then
1789   case $ac_init_help in
1790      short | recursive ) echo "Configuration of curl -:";;
1791    esac
1792   cat <<\_ACEOF
1793
1794 Optional Features:
1795   --disable-option-checking  ignore unrecognized --enable/--with options
1796   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1797   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1798   --enable-maintainer-mode
1799                           enable make rules and dependencies not useful (and
1800                           sometimes confusing) to the casual installer
1801   --enable-debug          Enable debug build options
1802   --disable-debug         Disable debug build options
1803   --enable-optimize       Enable compiler optimizations
1804   --disable-optimize      Disable compiler optimizations
1805   --enable-warnings       Enable strict compiler warnings
1806   --disable-warnings      Disable strict compiler warnings
1807   --enable-werror         Enable compiler warnings as errors
1808   --disable-werror        Disable compiler warnings as errors
1809   --enable-curldebug      Enable curl debug memory tracking
1810   --disable-curldebug     Disable curl debug memory tracking
1811   --enable-symbol-hiding  Enable hiding of library internal symbols
1812   --disable-symbol-hiding Disable hiding of library internal symbols
1813   --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1814   --disable-hidden-symbols
1815                           To be deprecated, use --disable-symbol-hiding
1816   --enable-ares[=PATH]    Enable c-ares for DNS lookups
1817   --disable-ares          Disable c-ares for DNS lookups
1818   --enable-dependency-tracking
1819                           do not reject slow dependency extractors
1820   --disable-dependency-tracking
1821                           speeds up one-time build
1822   --enable-silent-rules   less verbose build output (undo: "make V=1")
1823   --disable-silent-rules  verbose build output (undo: "make V=0")
1824   --disable-largefile     omit support for large files
1825   --enable-shared[=PKGS]  build shared libraries [default=yes]
1826   --enable-static[=PKGS]  build static libraries [default=yes]
1827   --enable-fast-install[=PKGS]
1828                           optimize for fast installation [default=yes]
1829   --disable-libtool-lock  avoid locking (might break parallel builds)
1830   --enable-http           Enable HTTP support
1831   --disable-http          Disable HTTP support
1832   --enable-ftp            Enable FTP support
1833   --disable-ftp           Disable FTP support
1834   --enable-file           Enable FILE support
1835   --disable-file          Disable FILE support
1836   --enable-ldap           Enable LDAP support
1837   --disable-ldap          Disable LDAP support
1838   --enable-ldaps          Enable LDAPS support
1839   --disable-ldaps         Disable LDAPS support
1840   --enable-rtsp           Enable RTSP support
1841   --disable-rtsp          Disable RTSP support
1842   --enable-proxy          Enable proxy support
1843   --disable-proxy         Disable proxy support
1844   --enable-dict           Enable DICT support
1845   --disable-dict          Disable DICT support
1846   --enable-telnet         Enable TELNET support
1847   --disable-telnet        Disable TELNET support
1848   --enable-tftp           Enable TFTP support
1849   --disable-tftp          Disable TFTP support
1850   --enable-pop3           Enable POP3 support
1851   --disable-pop3          Disable POP3 support
1852   --enable-imap           Enable IMAP support
1853   --disable-imap          Disable IMAP support
1854   --enable-smtp           Enable SMTP support
1855   --disable-smtp          Disable SMTP support
1856   --enable-gopher         Enable Gopher support
1857   --disable-gopher        Disable Gopher support
1858   --enable-manual         Enable built-in manual
1859   --disable-manual        Disable built-in manual
1860   --enable-libcurl-option Enable --libcurl C code generation support
1861   --disable-libcurl-option
1862                           Disable --libcurl C code generation support
1863   --enable-libgcc         use libgcc when linking
1864   --enable-ipv6           Enable ipv6 (with ipv4) support
1865   --disable-ipv6          Disable ipv6 support
1866   --enable-versioned-symbols
1867                           Enable versioned symbols in shared library
1868   --disable-versioned-symbols
1869                           Disable versioned symbols in shared library
1870   --enable-threaded-resolver
1871                           Enable threaded resolver
1872   --disable-threaded-resolver
1873                           Disable threaded resolver
1874   --enable-verbose        Enable verbose strings
1875   --disable-verbose       Disable verbose strings
1876   --enable-sspi           Enable SSPI
1877   --disable-sspi          Disable SSPI
1878   --enable-crypto-auth    Enable cryptographic authentication
1879   --disable-crypto-auth   Disable cryptographic authentication
1880   --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1881                           helper, where FILE is ntlm_auth's absolute filename
1882                           (default: /usr/bin/ntlm_auth)
1883   --disable-ntlm-wb       Disable NTLM delegation to winbind's ntlm_auth
1884                           helper
1885   --enable-tls-srp        Enable TLS-SRP authentication
1886   --disable-tls-srp       Disable TLS-SRP authentication
1887   --enable-cookies        Enable cookies support
1888   --disable-cookies       Disable cookies support
1889   --enable-soname-bump    Enable enforced SONAME bump
1890   --disable-soname-bump   Disable enforced SONAME bump
1891
1892 Optional Packages:
1893   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1894   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1895   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1896                           both]
1897   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1898   --with-sysroot=DIR Search for dependent libraries within DIR
1899                         (or the compiler's sysroot if not specified).
1900   --with-zlib=PATH        search for zlib in PATH
1901   --without-zlib          disable use of zlib
1902   --with-ldap-lib=libname Specify name of ldap lib file
1903   --with-lber-lib=libname Specify name of lber lib file
1904   --with-krb4-includes=DIR
1905                           Specify location of kerberos4 headers
1906   --with-krb4-libs=DIR    Specify location of kerberos4 libs
1907   --with-krb4=DIR         where to look for Kerberos4
1908   --with-spnego=DIR       Specify location of SPNEGO library fbopenssl
1909   --with-gssapi-includes=DIR
1910                           Specify location of GSSAPI header
1911   --with-gssapi-libs=DIR  Specify location of GSSAPI libs
1912   --with-gssapi=DIR       Where to look for GSSAPI
1913   --with-winssl           enable Windows native SSL/TLS
1914   --without-winssl        disable Windows native SSL/TLS
1915   --with-darwinssl        enable iOS/Mac OS X native SSL/TLS
1916   --without-darwinssl     disable iOS/Mac OS X native SSL/TLS
1917   --with-ssl=PATH         Where to look for OpenSSL, PATH points to the SSL
1918                           installation (default: /usr/local/ssl); when
1919                           possible, set the PKG_CONFIG_PATH environment
1920                           variable instead of using this option
1921   --without-ssl           disable OpenSSL
1922   --with-egd-socket=FILE  Entropy Gathering Daemon socket pathname
1923   --with-random=FILE      read randomness from FILE (default=/dev/urandom)
1924   --with-gnutls=PATH      where to look for GnuTLS, PATH points to the
1925                           installation root
1926   --without-gnutls        disable GnuTLS detection
1927   --with-polarssl=PATH    where to look for PolarSSL, PATH points to the
1928                           installation root
1929   --without-polarssl      disable PolarSSL detection
1930   --with-cyassl=PATH      where to look for CyaSSL, PATH points to the
1931                           installation root (default: system lib default)
1932   --without-cyassl        disable CyaSSL detection
1933   --with-nss=PATH         where to look for NSS, PATH points to the
1934                           installation root
1935   --without-nss           disable NSS detection
1936   --with-axtls=PATH       Where to look for axTLS, PATH points to the axTLS
1937                           installation prefix (default: /usr/local). Ignored
1938                           if another SSL engine is selected.
1939   --without-axtls         disable axTLS
1940   --with-ca-bundle=FILE   File name to use as CA bundle
1941   --without-ca-bundle     Don't use a default CA bundle
1942   --with-ca-path=DIRECTORY
1943                           Directory to use as CA path
1944   --without-ca-path       Don't use a default CA path
1945   --with-libmetalink=PATH where to look for libmetalink, PATH points to the
1946                           installation root
1947   --without-libmetalink   disable libmetalink detection
1948   --with-libssh2=PATH     Where to look for libssh2, PATH points to the
1949                           LIBSSH2 installation; when possible, set the
1950                           PKG_CONFIG_PATH environment variable instead of
1951                           using this option
1952   --without-libssh2       disable LIBSSH2
1953   --with-librtmp=PATH     Where to look for librtmp, PATH points to the
1954                           LIBRTMP installation; when possible, set the
1955                           PKG_CONFIG_PATH environment variable instead of
1956                           using this option
1957   --without-librtmp       disable LIBRTMP
1958   --with-winidn=PATH      enable Windows native IDN
1959   --without-winidn        disable Windows native IDN
1960   --with-libidn=PATH      Enable libidn usage
1961   --without-libidn        Disable libidn usage
1962
1963 Some influential environment variables:
1964   CC          C compiler command
1965   CFLAGS      C compiler flags
1966   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1967               nonstandard directory <lib dir>
1968   LIBS        libraries to pass to the linker, e.g. -l<library>
1969   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1970               you have headers in a nonstandard directory <include dir>
1971   CPP         C preprocessor
1972
1973 Use these variables to override the choices made by `configure' or to help
1974 it to find libraries and programs with nonstandard names/locations.
1975
1976 Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>.
1977 _ACEOF
1978 ac_status=$?
1979 fi
1980
1981 if test "$ac_init_help" = "recursive"; then
1982   # If there are subdirs, report their specific --help.
1983   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1984     test -d "$ac_dir" ||
1985       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1986       continue
1987     ac_builddir=.
1988
1989 case "$ac_dir" in
1990 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1991 *)
1992   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1993   # A ".." for each directory in $ac_dir_suffix.
1994   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1995   case $ac_top_builddir_sub in
1996   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1997   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1998   esac ;;
1999 esac
2000 ac_abs_top_builddir=$ac_pwd
2001 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2002 # for backward compatibility:
2003 ac_top_builddir=$ac_top_build_prefix
2004
2005 case $srcdir in
2006   .)  # We are building in place.
2007     ac_srcdir=.
2008     ac_top_srcdir=$ac_top_builddir_sub
2009     ac_abs_top_srcdir=$ac_pwd ;;
2010   [\\/]* | ?:[\\/]* )  # Absolute name.
2011     ac_srcdir=$srcdir$ac_dir_suffix;
2012     ac_top_srcdir=$srcdir
2013     ac_abs_top_srcdir=$srcdir ;;
2014   *) # Relative name.
2015     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2016     ac_top_srcdir=$ac_top_build_prefix$srcdir
2017     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2018 esac
2019 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2020
2021     cd "$ac_dir" || { ac_status=$?; continue; }
2022     # Check for guested configure.
2023     if test -f "$ac_srcdir/configure.gnu"; then
2024       echo &&
2025       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2026     elif test -f "$ac_srcdir/configure"; then
2027       echo &&
2028       $SHELL "$ac_srcdir/configure" --help=recursive
2029     else
2030       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2031     fi || ac_status=$?
2032     cd "$ac_pwd" || { ac_status=$?; break; }
2033   done
2034 fi
2035
2036 test -n "$ac_init_help" && exit $ac_status
2037 if $ac_init_version; then
2038   cat <<\_ACEOF
2039 curl configure -
2040 generated by GNU Autoconf 2.69
2041
2042 Copyright (C) 2012 Free Software Foundation, Inc.
2043 This configure script is free software; the Free Software Foundation
2044 gives unlimited permission to copy, distribute and modify it.
2045
2046 Copyright (c) 1998 - 2013 Daniel Stenberg, <daniel@haxx.se>
2047 This configure script may be copied, distributed and modified under the
2048 terms of the curl license; see COPYING for more details
2049 _ACEOF
2050   exit
2051 fi
2052
2053 ## ------------------------ ##
2054 ## Autoconf initialization. ##
2055 ## ------------------------ ##
2056
2057 # ac_fn_c_try_compile LINENO
2058 # --------------------------
2059 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2060 ac_fn_c_try_compile ()
2061 {
2062   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063   rm -f conftest.$ac_objext
2064   if { { ac_try="$ac_compile"
2065 case "(($ac_try" in
2066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2067   *) ac_try_echo=$ac_try;;
2068 esac
2069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2070 $as_echo "$ac_try_echo"; } >&5
2071   (eval "$ac_compile") 2>conftest.err
2072   ac_status=$?
2073   if test -s conftest.err; then
2074     grep -v '^ *+' conftest.err >conftest.er1
2075     cat conftest.er1 >&5
2076     mv -f conftest.er1 conftest.err
2077   fi
2078   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2079   test $ac_status = 0; } && {
2080          test -z "$ac_c_werror_flag" ||
2081          test ! -s conftest.err
2082        } && test -s conftest.$ac_objext; then :
2083   ac_retval=0
2084 else
2085   $as_echo "$as_me: failed program was:" >&5
2086 sed 's/^/| /' conftest.$ac_ext >&5
2087
2088         ac_retval=1
2089 fi
2090   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091   as_fn_set_status $ac_retval
2092
2093 } # ac_fn_c_try_compile
2094
2095 # ac_fn_c_try_cpp LINENO
2096 # ----------------------
2097 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2098 ac_fn_c_try_cpp ()
2099 {
2100   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101   if { { ac_try="$ac_cpp conftest.$ac_ext"
2102 case "(($ac_try" in
2103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104   *) ac_try_echo=$ac_try;;
2105 esac
2106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2107 $as_echo "$ac_try_echo"; } >&5
2108   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2109   ac_status=$?
2110   if test -s conftest.err; then
2111     grep -v '^ *+' conftest.err >conftest.er1
2112     cat conftest.er1 >&5
2113     mv -f conftest.er1 conftest.err
2114   fi
2115   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2116   test $ac_status = 0; } > conftest.i && {
2117          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2118          test ! -s conftest.err
2119        }; then :
2120   ac_retval=0
2121 else
2122   $as_echo "$as_me: failed program was:" >&5
2123 sed 's/^/| /' conftest.$ac_ext >&5
2124
2125     ac_retval=1
2126 fi
2127   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128   as_fn_set_status $ac_retval
2129
2130 } # ac_fn_c_try_cpp
2131
2132 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2133 # -------------------------------------------------------
2134 # Tests whether HEADER exists and can be compiled using the include files in
2135 # INCLUDES, setting the cache variable VAR accordingly.
2136 ac_fn_c_check_header_compile ()
2137 {
2138   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2140 $as_echo_n "checking for $2... " >&6; }
2141 if eval \${$3+:} false; then :
2142   $as_echo_n "(cached) " >&6
2143 else
2144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h.  */
2146 $4
2147 #include <$2>
2148 _ACEOF
2149 if ac_fn_c_try_compile "$LINENO"; then :
2150   eval "$3=yes"
2151 else
2152   eval "$3=no"
2153 fi
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155 fi
2156 eval ac_res=\$$3
2157                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2158 $as_echo "$ac_res" >&6; }
2159   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2160
2161 } # ac_fn_c_check_header_compile
2162
2163 # ac_fn_c_try_run LINENO
2164 # ----------------------
2165 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2166 # that executables *can* be run.
2167 ac_fn_c_try_run ()
2168 {
2169   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2170   if { { ac_try="$ac_link"
2171 case "(($ac_try" in
2172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2173   *) ac_try_echo=$ac_try;;
2174 esac
2175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2176 $as_echo "$ac_try_echo"; } >&5
2177   (eval "$ac_link") 2>&5
2178   ac_status=$?
2179   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2180   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2181   { { case "(($ac_try" in
2182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2183   *) ac_try_echo=$ac_try;;
2184 esac
2185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2186 $as_echo "$ac_try_echo"; } >&5
2187   (eval "$ac_try") 2>&5
2188   ac_status=$?
2189   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2190   test $ac_status = 0; }; }; then :
2191   ac_retval=0
2192 else
2193   $as_echo "$as_me: program exited with status $ac_status" >&5
2194        $as_echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2196
2197        ac_retval=$ac_status
2198 fi
2199   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2200   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2201   as_fn_set_status $ac_retval
2202
2203 } # ac_fn_c_try_run
2204
2205 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2206 # --------------------------------------------
2207 # Tries to find the compile-time value of EXPR in a program that includes
2208 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2209 # computed
2210 ac_fn_c_compute_int ()
2211 {
2212   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213   if test "$cross_compiling" = yes; then
2214     # Depending upon the size, compute the lo and hi bounds.
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h.  */
2217 $4
2218 int main (void)
2219 {
2220 static int test_array [1 - 2 * !(($2) >= 0)];
2221 test_array [0] = 0;
2222 return test_array [0];
2223
2224  ;
2225  return 0;
2226 }
2227 _ACEOF
2228 if ac_fn_c_try_compile "$LINENO"; then :
2229   ac_lo=0 ac_mid=0
2230   while :; do
2231     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h.  */
2233 $4
2234 int main (void)
2235 {
2236 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2237 test_array [0] = 0;
2238 return test_array [0];
2239
2240  ;
2241  return 0;
2242 }
2243 _ACEOF
2244 if ac_fn_c_try_compile "$LINENO"; then :
2245   ac_hi=$ac_mid; break
2246 else
2247   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2248                         if test $ac_lo -le $ac_mid; then
2249                           ac_lo= ac_hi=
2250                           break
2251                         fi
2252                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2253 fi
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255   done
2256 else
2257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h.  */
2259 $4
2260 int main (void)
2261 {
2262 static int test_array [1 - 2 * !(($2) < 0)];
2263 test_array [0] = 0;
2264 return test_array [0];
2265
2266  ;
2267  return 0;
2268 }
2269 _ACEOF
2270 if ac_fn_c_try_compile "$LINENO"; then :
2271   ac_hi=-1 ac_mid=-1
2272   while :; do
2273     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h.  */
2275 $4
2276 int main (void)
2277 {
2278 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2279 test_array [0] = 0;
2280 return test_array [0];
2281
2282  ;
2283  return 0;
2284 }
2285 _ACEOF
2286 if ac_fn_c_try_compile "$LINENO"; then :
2287   ac_lo=$ac_mid; break
2288 else
2289   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2290                         if test $ac_mid -le $ac_hi; then
2291                           ac_lo= ac_hi=
2292                           break
2293                         fi
2294                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2295 fi
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297   done
2298 else
2299   ac_lo= ac_hi=
2300 fi
2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302 fi
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 # Binary search between lo and hi bounds.
2305 while test "x$ac_lo" != "x$ac_hi"; do
2306   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h.  */
2309 $4
2310 int main (void)
2311 {
2312 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2313 test_array [0] = 0;
2314 return test_array [0];
2315
2316  ;
2317  return 0;
2318 }
2319 _ACEOF
2320 if ac_fn_c_try_compile "$LINENO"; then :
2321   ac_hi=$ac_mid
2322 else
2323   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2324 fi
2325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2326 done
2327 case $ac_lo in #((
2328 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2329 '') ac_retval=1 ;;
2330 esac
2331   else
2332     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h.  */
2334 $4
2335 static long int longval () { return $2; }
2336 static unsigned long int ulongval () { return $2; }
2337 #include <stdio.h>
2338 #include <stdlib.h>
2339 int main (void)
2340 {
2341
2342   FILE *f = fopen ("conftest.val", "w");
2343   if (! f)
2344     return 1;
2345   if (($2) < 0)
2346     {
2347       long int i = longval ();
2348       if (i != ($2))
2349         return 1;
2350       fprintf (f, "%ld", i);
2351     }
2352   else
2353     {
2354       unsigned long int i = ulongval ();
2355       if (i != ($2))
2356         return 1;
2357       fprintf (f, "%lu", i);
2358     }
2359   /* Do not output a trailing newline, as this causes \r\n confusion
2360      on some platforms.  */
2361   return ferror (f) || fclose (f) != 0;
2362
2363  ;
2364  return 0;
2365 }
2366 _ACEOF
2367 if ac_fn_c_try_run "$LINENO"; then :
2368   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2369 else
2370   ac_retval=1
2371 fi
2372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2373   conftest.$ac_objext conftest.beam conftest.$ac_ext
2374 rm -f conftest.val
2375
2376   fi
2377   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2378   as_fn_set_status $ac_retval
2379
2380 } # ac_fn_c_compute_int
2381
2382 # ac_fn_c_try_link LINENO
2383 # -----------------------
2384 # Try to link conftest.$ac_ext, and return whether this succeeded.
2385 ac_fn_c_try_link ()
2386 {
2387   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2388   rm -f conftest.$ac_objext conftest$ac_exeext
2389   if { { ac_try="$ac_link"
2390 case "(($ac_try" in
2391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392   *) ac_try_echo=$ac_try;;
2393 esac
2394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2395 $as_echo "$ac_try_echo"; } >&5
2396   (eval "$ac_link") 2>conftest.err
2397   ac_status=$?
2398   if test -s conftest.err; then
2399     grep -v '^ *+' conftest.err >conftest.er1
2400     cat conftest.er1 >&5
2401     mv -f conftest.er1 conftest.err
2402   fi
2403   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2404   test $ac_status = 0; } && {
2405          test -z "$ac_c_werror_flag" ||
2406          test ! -s conftest.err
2407        } && test -s conftest$ac_exeext && {
2408          test "$cross_compiling" = yes ||
2409          test -x conftest$ac_exeext
2410        }; then :
2411   ac_retval=0
2412 else
2413   $as_echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.$ac_ext >&5
2415
2416         ac_retval=1
2417 fi
2418   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2419   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2420   # interfere with the next link command; also delete a directory that is
2421   # left behind by Apple's compiler.  We do this before executing the actions.
2422   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2423   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2424   as_fn_set_status $ac_retval
2425
2426 } # ac_fn_c_try_link
2427
2428 # ac_fn_c_check_func LINENO FUNC VAR
2429 # ----------------------------------
2430 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2431 ac_fn_c_check_func ()
2432 {
2433   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2435 $as_echo_n "checking for $2... " >&6; }
2436 if eval \${$3+:} false; then :
2437   $as_echo_n "(cached) " >&6
2438 else
2439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2440 /* end confdefs.h.  */
2441
2442 #define $2 innocuous_$2
2443 #ifdef __STDC__
2444 # include <limits.h>
2445 #else
2446 # include <assert.h>
2447 #endif
2448 #undef $2
2449 #ifdef __cplusplus
2450 extern "C"
2451 #endif
2452 char $2 ();
2453 #if defined __stub_$2 || defined __stub___$2
2454 choke me
2455 #endif
2456
2457 int main (void)
2458 {
2459 return $2 ();
2460  ;
2461  return 0;
2462 }
2463 _ACEOF
2464 if ac_fn_c_try_link "$LINENO"; then :
2465   eval "$3=yes"
2466 else
2467   eval "$3=no"
2468 fi
2469 rm -f core conftest.err conftest.$ac_objext \
2470     conftest$ac_exeext conftest.$ac_ext
2471 fi
2472 eval ac_res=\$$3
2473                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2474 $as_echo "$ac_res" >&6; }
2475   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2476
2477 } # ac_fn_c_check_func
2478
2479 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2480 # -------------------------------------------------------
2481 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2482 # the include files in INCLUDES and setting the cache variable VAR
2483 # accordingly.
2484 ac_fn_c_check_header_mongrel ()
2485 {
2486   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2487   if eval \${$3+:} false; then :
2488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2489 $as_echo_n "checking for $2... " >&6; }
2490 if eval \${$3+:} false; then :
2491   $as_echo_n "(cached) " >&6
2492 fi
2493 eval ac_res=\$$3
2494                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2495 $as_echo "$ac_res" >&6; }
2496 else
2497   # Is the header compilable?
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2499 $as_echo_n "checking $2 usability... " >&6; }
2500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2501 /* end confdefs.h.  */
2502 $4
2503 #include <$2>
2504 _ACEOF
2505 if ac_fn_c_try_compile "$LINENO"; then :
2506   ac_header_compiler=yes
2507 else
2508   ac_header_compiler=no
2509 fi
2510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2512 $as_echo "$ac_header_compiler" >&6; }
2513
2514 # Is the header present?
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2516 $as_echo_n "checking $2 presence... " >&6; }
2517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518 /* end confdefs.h.  */
2519 #include <$2>
2520 _ACEOF
2521 if ac_fn_c_try_cpp "$LINENO"; then :
2522   ac_header_preproc=yes
2523 else
2524   ac_header_preproc=no
2525 fi
2526 rm -f conftest.err conftest.i conftest.$ac_ext
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2528 $as_echo "$ac_header_preproc" >&6; }
2529
2530 # So?  What about this header?
2531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2532   yes:no: )
2533     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2534 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2535     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2536 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2537     ;;
2538   no:yes:* )
2539     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2540 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2541     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2542 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2543     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2544 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2545     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2546 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2547     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2548 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2549 ( $as_echo "## ---------------------------------------------------------------------- ##
2550 ## Report this to a suitable curl mailing list: http://curl.haxx.se/mail/ ##
2551 ## ---------------------------------------------------------------------- ##"
2552      ) | sed "s/^/$as_me: WARNING:     /" >&2
2553     ;;
2554 esac
2555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2556 $as_echo_n "checking for $2... " >&6; }
2557 if eval \${$3+:} false; then :
2558   $as_echo_n "(cached) " >&6
2559 else
2560   eval "$3=\$ac_header_compiler"
2561 fi
2562 eval ac_res=\$$3
2563                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2564 $as_echo "$ac_res" >&6; }
2565 fi
2566   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2567
2568 } # ac_fn_c_check_header_mongrel
2569
2570 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2571 # -------------------------------------------
2572 # Tests whether TYPE exists after having included INCLUDES, setting cache
2573 # variable VAR accordingly.
2574 ac_fn_c_check_type ()
2575 {
2576   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2578 $as_echo_n "checking for $2... " >&6; }
2579 if eval \${$3+:} false; then :
2580   $as_echo_n "(cached) " >&6
2581 else
2582   eval "$3=no"
2583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2584 /* end confdefs.h.  */
2585 $4
2586 int main (void)
2587 {
2588 if (sizeof ($2))
2589          return 0;
2590  ;
2591  return 0;
2592 }
2593 _ACEOF
2594 if ac_fn_c_try_compile "$LINENO"; then :
2595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2596 /* end confdefs.h.  */
2597 $4
2598 int main (void)
2599 {
2600 if (sizeof (($2)))
2601             return 0;
2602  ;
2603  return 0;
2604 }
2605 _ACEOF
2606 if ac_fn_c_try_compile "$LINENO"; then :
2607
2608 else
2609   eval "$3=yes"
2610 fi
2611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612 fi
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 fi
2615 eval ac_res=\$$3
2616                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2617 $as_echo "$ac_res" >&6; }
2618   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2619
2620 } # ac_fn_c_check_type
2621 cat >config.log <<_ACEOF
2622 This file contains any messages produced by compilers while
2623 running configure, to aid debugging if configure makes a mistake.
2624
2625 It was created by curl $as_me -, which was
2626 generated by GNU Autoconf 2.69.  Invocation command line was
2627
2628   $ $0 $@
2629
2630 _ACEOF
2631 exec 5>>config.log
2632 {
2633 cat <<_ASUNAME
2634 ## --------- ##
2635 ## Platform. ##
2636 ## --------- ##
2637
2638 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2639 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2640 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2641 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2642 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2643
2644 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2645 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2646
2647 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2648 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2649 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2650 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2651 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2652 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2653 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2654
2655 _ASUNAME
2656
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH
2659 do
2660   IFS=$as_save_IFS
2661   test -z "$as_dir" && as_dir=.
2662     $as_echo "PATH: $as_dir"
2663   done
2664 IFS=$as_save_IFS
2665
2666 } >&5
2667
2668 cat >&5 <<_ACEOF
2669
2670
2671 ## ----------- ##
2672 ## Core tests. ##
2673 ## ----------- ##
2674
2675 _ACEOF
2676
2677
2678 # Keep a trace of the command line.
2679 # Strip out --no-create and --no-recursion so they do not pile up.
2680 # Strip out --silent because we don't want to record it for future runs.
2681 # Also quote any args containing shell meta-characters.
2682 # Make two passes to allow for proper duplicate-argument suppression.
2683 ac_configure_args=
2684 ac_configure_args0=
2685 ac_configure_args1=
2686 ac_must_keep_next=false
2687 for ac_pass in 1 2
2688 do
2689   for ac_arg
2690   do
2691     case $ac_arg in
2692     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2693     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2694     | -silent | --silent | --silen | --sile | --sil)
2695       continue ;;
2696     *\'*)
2697       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2698     esac
2699     case $ac_pass in
2700     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2701     2)
2702       as_fn_append ac_configure_args1 " '$ac_arg'"
2703       if test $ac_must_keep_next = true; then
2704         ac_must_keep_next=false # Got value, back to normal.
2705       else
2706         case $ac_arg in
2707           *=* | --config-cache | -C | -disable-* | --disable-* \
2708           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2709           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2710           | -with-* | --with-* | -without-* | --without-* | --x)
2711             case "$ac_configure_args0 " in
2712               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2713             esac
2714             ;;
2715           -* ) ac_must_keep_next=true ;;
2716         esac
2717       fi
2718       as_fn_append ac_configure_args " '$ac_arg'"
2719       ;;
2720     esac
2721   done
2722 done
2723 { ac_configure_args0=; unset ac_configure_args0;}
2724 { ac_configure_args1=; unset ac_configure_args1;}
2725
2726 # When interrupted or exit'd, cleanup temporary files, and complete
2727 # config.log.  We remove comments because anyway the quotes in there
2728 # would cause problems or look ugly.
2729 # WARNING: Use '\'' to represent an apostrophe within the trap.
2730 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2731 trap 'exit_status=$?
2732   # Save into config.log some information that might help in debugging.
2733   {
2734     echo
2735
2736     $as_echo "## ---------------- ##
2737 ## Cache variables. ##
2738 ## ---------------- ##"
2739     echo
2740     # The following way of writing the cache mishandles newlines in values,
2741 (
2742   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2743     eval ac_val=\$$ac_var
2744     case $ac_val in #(
2745     *${as_nl}*)
2746       case $ac_var in #(
2747       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2748 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2749       esac
2750       case $ac_var in #(
2751       _ | IFS | as_nl) ;; #(
2752       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2753       *) { eval $ac_var=; unset $ac_var;} ;;
2754       esac ;;
2755     esac
2756   done
2757   (set) 2>&1 |
2758     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2759     *${as_nl}ac_space=\ *)
2760       sed -n \
2761         "s/'\''/'\''\\\\'\'''\''/g;
2762           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2763       ;; #(
2764     *)
2765       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2766       ;;
2767     esac |
2768     sort
2769 )
2770     echo
2771
2772     $as_echo "## ----------------- ##
2773 ## Output variables. ##
2774 ## ----------------- ##"
2775     echo
2776     for ac_var in $ac_subst_vars
2777     do
2778       eval ac_val=\$$ac_var
2779       case $ac_val in
2780       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2781       esac
2782       $as_echo "$ac_var='\''$ac_val'\''"
2783     done | sort
2784     echo
2785
2786     if test -n "$ac_subst_files"; then
2787       $as_echo "## ------------------- ##
2788 ## File substitutions. ##
2789 ## ------------------- ##"
2790       echo
2791       for ac_var in $ac_subst_files
2792       do
2793         eval ac_val=\$$ac_var
2794         case $ac_val in
2795         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2796         esac
2797         $as_echo "$ac_var='\''$ac_val'\''"
2798       done | sort
2799       echo
2800     fi
2801
2802     if test -s confdefs.h; then
2803       $as_echo "## ----------- ##
2804 ## confdefs.h. ##
2805 ## ----------- ##"
2806       echo
2807       cat confdefs.h
2808       echo
2809     fi
2810     test "$ac_signal" != 0 &&
2811       $as_echo "$as_me: caught signal $ac_signal"
2812     $as_echo "$as_me: exit $exit_status"
2813   } >&5
2814   rm -f core *.core core.conftest.* &&
2815     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2816     exit $exit_status
2817 ' 0
2818 for ac_signal in 1 2 13 15; do
2819   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2820 done
2821 ac_signal=0
2822
2823 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2824 rm -f -r conftest* confdefs.h
2825
2826 $as_echo "/* confdefs.h */" > confdefs.h
2827
2828 # Predefined preprocessor variables.
2829
2830 cat >>confdefs.h <<_ACEOF
2831 #define PACKAGE_NAME "$PACKAGE_NAME"
2832 _ACEOF
2833
2834 cat >>confdefs.h <<_ACEOF
2835 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2836 _ACEOF
2837
2838 cat >>confdefs.h <<_ACEOF
2839 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2840 _ACEOF
2841
2842 cat >>confdefs.h <<_ACEOF
2843 #define PACKAGE_STRING "$PACKAGE_STRING"
2844 _ACEOF
2845
2846 cat >>confdefs.h <<_ACEOF
2847 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2848 _ACEOF
2849
2850 cat >>confdefs.h <<_ACEOF
2851 #define PACKAGE_URL "$PACKAGE_URL"
2852 _ACEOF
2853
2854
2855 # Let the site file select an alternate cache file if it wants to.
2856 # Prefer an explicitly selected file to automatically selected ones.
2857 ac_site_file1=NONE
2858 ac_site_file2=NONE
2859 if test -n "$CONFIG_SITE"; then
2860   # We do not want a PATH search for config.site.
2861   case $CONFIG_SITE in #((
2862     -*)  ac_site_file1=./$CONFIG_SITE;;
2863     */*) ac_site_file1=$CONFIG_SITE;;
2864     *)   ac_site_file1=./$CONFIG_SITE;;
2865   esac
2866 elif test "x$prefix" != xNONE; then
2867   ac_site_file1=$prefix/share/config.site
2868   ac_site_file2=$prefix/etc/config.site
2869 else
2870   ac_site_file1=$ac_default_prefix/share/config.site
2871   ac_site_file2=$ac_default_prefix/etc/config.site
2872 fi
2873 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2874 do
2875   test "x$ac_site_file" = xNONE && continue
2876   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2877     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2878 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2879     sed 's/^/| /' "$ac_site_file" >&5
2880     . "$ac_site_file" \
2881       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2883 as_fn_error $? "failed to load site script $ac_site_file
2884 See \`config.log' for more details" "$LINENO" 5; }
2885   fi
2886 done
2887
2888 if test -r "$cache_file"; then
2889   # Some versions of bash will fail to source /dev/null (special files
2890   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2891   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2892     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2893 $as_echo "$as_me: loading cache $cache_file" >&6;}
2894     case $cache_file in
2895       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2896       *)                      . "./$cache_file";;
2897     esac
2898   fi
2899 else
2900   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2901 $as_echo "$as_me: creating cache $cache_file" >&6;}
2902   >$cache_file
2903 fi
2904
2905 # Check that the precious variables saved in the cache have kept the same
2906 # value.
2907 ac_cache_corrupted=false
2908 for ac_var in $ac_precious_vars; do
2909   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2910   eval ac_new_set=\$ac_env_${ac_var}_set
2911   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2912   eval ac_new_val=\$ac_env_${ac_var}_value
2913   case $ac_old_set,$ac_new_set in
2914     set,)
2915       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2916 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2917       ac_cache_corrupted=: ;;
2918     ,set)
2919       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2920 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2921       ac_cache_corrupted=: ;;
2922     ,);;
2923     *)
2924       if test "x$ac_old_val" != "x$ac_new_val"; then
2925         # differences in whitespace do not lead to failure.
2926         ac_old_val_w=`echo x $ac_old_val`
2927         ac_new_val_w=`echo x $ac_new_val`
2928         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2929           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2930 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2931           ac_cache_corrupted=:
2932         else
2933           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2934 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2935           eval $ac_var=\$ac_old_val
2936         fi
2937         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2938 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2939         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2940 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2941       fi;;
2942   esac
2943   # Pass precious variables to config.status.
2944   if test "$ac_new_set" = set; then
2945     case $ac_new_val in
2946     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2947     *) ac_arg=$ac_var=$ac_new_val ;;
2948     esac
2949     case " $ac_configure_args " in
2950       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2951       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2952     esac
2953   fi
2954 done
2955 if $ac_cache_corrupted; then
2956   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2958   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2959 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2960   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2961 fi
2962 ## -------------------- ##
2963 ## Main body of script. ##
2964 ## -------------------- ##
2965
2966 ac_ext=c
2967 ac_cpp='$CPP $CPPFLAGS'
2968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2971
2972
2973
2974
2975
2976
2977
2978 # using curl-override.m4
2979
2980
2981
2982
2983
2984 ac_config_headers="$ac_config_headers lib/curl_config.h include/curl/curlbuild.h"
2985
2986
2987
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2989 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2990     # Check whether --enable-maintainer-mode was given.
2991 if test "${enable_maintainer_mode+set}" = set; then :
2992   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2993 else
2994   USE_MAINTAINER_MODE=no
2995 fi
2996
2997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2998 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2999    if test $USE_MAINTAINER_MODE = yes; then
3000   MAINTAINER_MODE_TRUE=
3001   MAINTAINER_MODE_FALSE='#'
3002 else
3003   MAINTAINER_MODE_TRUE='#'
3004   MAINTAINER_MODE_FALSE=
3005 fi
3006
3007   MAINT=$MAINTAINER_MODE_TRUE
3008
3009
3010
3011
3012         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3013 $as_echo_n "checking whether to enable debug build options... " >&6; }
3014   OPT_DEBUG_BUILD="default"
3015   # Check whether --enable-debug was given.
3016 if test "${enable_debug+set}" = set; then :
3017   enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3018 fi
3019
3020   case "$OPT_DEBUG_BUILD" in
3021     no)
3022             want_debug="no"
3023       ;;
3024     default)
3025             want_debug="no"
3026       ;;
3027     *)
3028             want_debug="yes"
3029       ;;
3030   esac
3031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3032 $as_echo "$want_debug" >&6; }
3033
3034
3035       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3036 $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3037   OPT_COMPILER_OPTIMIZE="default"
3038   # Check whether --enable-optimize was given.
3039 if test "${enable_optimize+set}" = set; then :
3040   enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3041 fi
3042
3043   case "$OPT_COMPILER_OPTIMIZE" in
3044     no)
3045                               want_optimize="no"
3046       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3048       ;;
3049     default)
3050                                                                         if test "$want_debug" = "yes"; then
3051         want_optimize="assume_no"
3052         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3053 $as_echo "(assumed) no" >&6; }
3054       else
3055         want_optimize="assume_yes"
3056         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3057 $as_echo "(assumed) yes" >&6; }
3058       fi
3059       ;;
3060     *)
3061                               want_optimize="yes"
3062       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3063 $as_echo "yes" >&6; }
3064       ;;
3065   esac
3066
3067
3068         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3069 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3070   OPT_COMPILER_WARNINGS="default"
3071   # Check whether --enable-warnings was given.
3072 if test "${enable_warnings+set}" = set; then :
3073   enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3074 fi
3075
3076   case "$OPT_COMPILER_WARNINGS" in
3077     no)
3078             want_warnings="no"
3079       ;;
3080     default)
3081                   want_warnings="$want_debug"
3082       ;;
3083     *)
3084             want_warnings="yes"
3085       ;;
3086   esac
3087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3088 $as_echo "$want_warnings" >&6; }
3089
3090
3091     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3092 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3093   OPT_COMPILER_WERROR="default"
3094   # Check whether --enable-werror was given.
3095 if test "${enable_werror+set}" = set; then :
3096   enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3097 fi
3098
3099   case "$OPT_COMPILER_WERROR" in
3100     no)
3101             want_werror="no"
3102       ;;
3103     default)
3104             want_werror="no"
3105       ;;
3106     *)
3107             want_werror="yes"
3108       ;;
3109   esac
3110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3111 $as_echo "$want_werror" >&6; }
3112
3113
3114     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3115 $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3116   OPT_CURLDEBUG_BUILD="default"
3117   # Check whether --enable-curldebug was given.
3118 if test "${enable_curldebug+set}" = set; then :
3119   enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3120 fi
3121
3122   case "$OPT_CURLDEBUG_BUILD" in
3123     no)
3124             want_curldebug="no"
3125       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3127       ;;
3128     default)
3129                                           if test "$want_debug" = "yes"; then
3130         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3131 $as_echo "(assumed) yes" >&6; }
3132       else
3133         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134 $as_echo "no" >&6; }
3135       fi
3136       want_curldebug_assumed="yes"
3137       want_curldebug="$want_debug"
3138       ;;
3139     *)
3140                                                       want_curldebug="yes"
3141       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3142 $as_echo "yes" >&6; }
3143       ;;
3144   esac
3145
3146
3147     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3148 $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3149   OPT_SYMBOL_HIDING="default"
3150   # Check whether --enable-symbol-hiding was given.
3151 if test "${enable_symbol_hiding+set}" = set; then :
3152   enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3153 fi
3154
3155   # Check whether --enable-hidden-symbols was given.
3156 if test "${enable_hidden_symbols+set}" = set; then :
3157   enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3158 fi
3159
3160   case "$OPT_SYMBOL_HIDING" in
3161     no)
3162                               want_symbol_hiding="no"
3163       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3165       ;;
3166     default)
3167                   want_symbol_hiding="yes"
3168       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3169 $as_echo "yes" >&6; }
3170       ;;
3171     *)
3172                         want_symbol_hiding="yes"
3173       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3174 $as_echo "yes" >&6; }
3175       ;;
3176   esac
3177
3178
3179     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3180 $as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3181   OPT_ARES="default"
3182   # Check whether --enable-ares was given.
3183 if test "${enable_ares+set}" = set; then :
3184   enableval=$enable_ares; OPT_ARES=$enableval
3185 fi
3186
3187   case "$OPT_ARES" in
3188     no)
3189             want_ares="no"
3190       ;;
3191     default)
3192             want_ares="no"
3193       ;;
3194     *)
3195             want_ares="yes"
3196       if test -n "$enableval" && test "$enableval" != "yes"; then
3197         want_ares_path="$enableval"
3198       fi
3199       ;;
3200   esac
3201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3202 $as_echo "$want_ares" >&6; }
3203
3204
3205 #
3206 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3207 #
3208
3209 if test -z "$xc_configure_preamble_result"; then
3210   as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3211 fi
3212
3213 #
3214 # Check that 'PATH_SEPARATOR' has already been set.
3215 #
3216
3217 if test -z "$xc_PATH_SEPARATOR"; then
3218   as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3219 fi
3220 if test -z "$PATH_SEPARATOR"; then
3221   as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3222 fi
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3224 $as_echo_n "checking for path separator... " >&6; }
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3226 $as_echo "$PATH_SEPARATOR" >&6; }
3227 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3228   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3229 $as_echo_n "checking for initial path separator... " >&6; }
3230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3231 $as_echo "$xc_PATH_SEPARATOR" >&6; }
3232   as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3233 fi
3234
3235
3236 #
3237 # save the configure arguments
3238 #
3239 CONFIGURE_OPTIONS="\"$ac_configure_args\""
3240
3241
3242 CURL_CFLAG_EXTRAS=""
3243 if test X"$want_werror" = Xyes; then
3244   CURL_CFLAG_EXTRAS="-Werror"
3245 fi
3246
3247
3248 if test -z "$SED"; then
3249     # Extract the first word of "sed", so it can be a program name with args.
3250 set dummy sed; ac_word=$2
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252 $as_echo_n "checking for $ac_word... " >&6; }
3253 if ${ac_cv_path_SED+:} false; then :
3254   $as_echo_n "(cached) " >&6
3255 else
3256   case $SED in
3257   [\\/]* | ?:[\\/]*)
3258   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3259   ;;
3260   *)
3261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3263 for as_dir in $as_dummy
3264 do
3265   IFS=$as_save_IFS
3266   test -z "$as_dir" && as_dir=.
3267     for ac_exec_ext in '' $ac_executable_extensions; do
3268   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3269     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3271     break 2
3272   fi
3273 done
3274   done
3275 IFS=$as_save_IFS
3276
3277   test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3278   ;;
3279 esac
3280 fi
3281 SED=$ac_cv_path_SED
3282 if test -n "$SED"; then
3283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3284 $as_echo "$SED" >&6; }
3285 else
3286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3288 fi
3289
3290
3291   if test -z "$SED" || test "$SED" = "not_found"; then
3292     as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3293   fi
3294 fi
3295
3296
3297 if test -z "$GREP"; then
3298     # Extract the first word of "grep", so it can be a program name with args.
3299 set dummy grep; ac_word=$2
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301 $as_echo_n "checking for $ac_word... " >&6; }
3302 if ${ac_cv_path_GREP+:} false; then :
3303   $as_echo_n "(cached) " >&6
3304 else
3305   case $GREP in
3306   [\\/]* | ?:[\\/]*)
3307   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3308   ;;
3309   *)
3310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3312 for as_dir in $as_dummy
3313 do
3314   IFS=$as_save_IFS
3315   test -z "$as_dir" && as_dir=.
3316     for ac_exec_ext in '' $ac_executable_extensions; do
3317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3318     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320     break 2
3321   fi
3322 done
3323   done
3324 IFS=$as_save_IFS
3325
3326   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3327   ;;
3328 esac
3329 fi
3330 GREP=$ac_cv_path_GREP
3331 if test -n "$GREP"; then
3332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3333 $as_echo "$GREP" >&6; }
3334 else
3335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3337 fi
3338
3339
3340   if test -z "$GREP" || test "$GREP" = "not_found"; then
3341     as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3342   fi
3343 fi
3344
3345
3346 if test -z "$EGREP"; then
3347     if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3348     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3349 $as_echo_n "checking for egrep... " >&6; }
3350     EGREP="$GREP -E"
3351     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3352 $as_echo "$EGREP" >&6; }
3353   else
3354     # Extract the first word of "egrep", so it can be a program name with args.
3355 set dummy egrep; ac_word=$2
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3357 $as_echo_n "checking for $ac_word... " >&6; }
3358 if ${ac_cv_path_EGREP+:} false; then :
3359   $as_echo_n "(cached) " >&6
3360 else
3361   case $EGREP in
3362   [\\/]* | ?:[\\/]*)
3363   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3364   ;;
3365   *)
3366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3368 for as_dir in $as_dummy
3369 do
3370   IFS=$as_save_IFS
3371   test -z "$as_dir" && as_dir=.
3372     for ac_exec_ext in '' $ac_executable_extensions; do
3373   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3374     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376     break 2
3377   fi
3378 done
3379   done
3380 IFS=$as_save_IFS
3381
3382   test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3383   ;;
3384 esac
3385 fi
3386 EGREP=$ac_cv_path_EGREP
3387 if test -n "$EGREP"; then
3388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3389 $as_echo "$EGREP" >&6; }
3390 else
3391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392 $as_echo "no" >&6; }
3393 fi
3394
3395
3396   fi
3397 fi
3398 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3399   as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3400 fi
3401
3402
3403 if test -z "$AR"; then
3404     if test -n "$ac_tool_prefix"; then
3405   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3406 set dummy ${ac_tool_prefix}ar; ac_word=$2
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3408 $as_echo_n "checking for $ac_word... " >&6; }
3409 if ${ac_cv_path_AR+:} false; then :
3410   $as_echo_n "(cached) " >&6
3411 else
3412   case $AR in
3413   [\\/]* | ?:[\\/]*)
3414   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3415   ;;
3416   *)
3417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3419 for as_dir in $as_dummy
3420 do
3421   IFS=$as_save_IFS
3422   test -z "$as_dir" && as_dir=.
3423     for ac_exec_ext in '' $ac_executable_extensions; do
3424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3425     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427     break 2
3428   fi
3429 done
3430   done
3431 IFS=$as_save_IFS
3432
3433   ;;
3434 esac
3435 fi
3436 AR=$ac_cv_path_AR
3437 if test -n "$AR"; then
3438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3439 $as_echo "$AR" >&6; }
3440 else
3441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442 $as_echo "no" >&6; }
3443 fi
3444
3445
3446 fi
3447 if test -z "$ac_cv_path_AR"; then
3448   ac_pt_AR=$AR
3449   # Extract the first word of "ar", so it can be a program name with args.
3450 set dummy ar; ac_word=$2
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3452 $as_echo_n "checking for $ac_word... " >&6; }
3453 if ${ac_cv_path_ac_pt_AR+:} false; then :
3454   $as_echo_n "(cached) " >&6
3455 else
3456   case $ac_pt_AR in
3457   [\\/]* | ?:[\\/]*)
3458   ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3459   ;;
3460   *)
3461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3463 for as_dir in $as_dummy
3464 do
3465   IFS=$as_save_IFS
3466   test -z "$as_dir" && as_dir=.
3467     for ac_exec_ext in '' $ac_executable_extensions; do
3468   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3469     ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3471     break 2
3472   fi
3473 done
3474   done
3475 IFS=$as_save_IFS
3476
3477   ;;
3478 esac
3479 fi
3480 ac_pt_AR=$ac_cv_path_ac_pt_AR
3481 if test -n "$ac_pt_AR"; then
3482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3483 $as_echo "$ac_pt_AR" >&6; }
3484 else
3485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 $as_echo "no" >&6; }
3487 fi
3488
3489   if test "x$ac_pt_AR" = x; then
3490     AR="not_found"
3491   else
3492     case $cross_compiling:$ac_tool_warned in
3493 yes:)
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3496 ac_tool_warned=yes ;;
3497 esac
3498     AR=$ac_pt_AR
3499   fi
3500 else
3501   AR="$ac_cv_path_AR"
3502 fi
3503
3504   if test -z "$AR" || test "$AR" = "not_found"; then
3505     as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3506   fi
3507 fi
3508
3509
3510
3511
3512 if test -f ${srcdir}/include/curl/curlbuild.h; then
3513   rm -f ${srcdir}/include/curl/curlbuild.h
3514 fi
3515
3516 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h`
3517
3518   xc_prog_cc_prev_IFS=$IFS
3519   xc_prog_cc_prev_LIBS=$LIBS
3520   xc_prog_cc_prev_CFLAGS=$CFLAGS
3521   xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3522   xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3523
3524
3525
3526   xc_bad_var_libs=no
3527   for xc_word in $LIBS; do
3528     case "$xc_word" in
3529       -l* | --library=*)
3530         :
3531         ;;
3532       *)
3533         xc_bad_var_libs=yes
3534         ;;
3535     esac
3536   done
3537   if test $xc_bad_var_libs = yes; then
3538     { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3539 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
3540     { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3541 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3542   fi
3543
3544
3545   xc_bad_var_ldflags=no
3546   for xc_word in $LDFLAGS; do
3547     case "$xc_word" in
3548       -D*)
3549         xc_bad_var_ldflags=yes
3550         ;;
3551       -U*)
3552         xc_bad_var_ldflags=yes
3553         ;;
3554       -I*)
3555         xc_bad_var_ldflags=yes
3556         ;;
3557       -l* | --library=*)
3558         xc_bad_var_ldflags=yes
3559         ;;
3560     esac
3561   done
3562   if test $xc_bad_var_ldflags = yes; then
3563     { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3564 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3565     xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3566     for xc_word in $LDFLAGS; do
3567       case "$xc_word" in
3568         -D*)
3569           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3570 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3571           ;;
3572         -U*)
3573           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3574 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3575           ;;
3576         -I*)
3577           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3578 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3579           ;;
3580         -l* | --library=*)
3581           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3582 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3583           ;;
3584       esac
3585     done
3586   fi
3587
3588
3589   xc_bad_var_cppflags=no
3590   for xc_word in $CPPFLAGS; do
3591     case "$xc_word" in
3592       -rpath*)
3593         xc_bad_var_cppflags=yes
3594         ;;
3595       -L* | --library-path=*)
3596         xc_bad_var_cppflags=yes
3597         ;;
3598       -l* | --library=*)
3599         xc_bad_var_cppflags=yes
3600         ;;
3601     esac
3602   done
3603   if test $xc_bad_var_cppflags = yes; then
3604     { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3605 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3606     xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3607     for xc_word in $CPPFLAGS; do
3608       case "$xc_word" in
3609         -rpath*)
3610           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3611 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3612           ;;
3613         -L* | --library-path=*)
3614           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3615 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3616           ;;
3617         -l* | --library=*)
3618           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3619 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3620           ;;
3621       esac
3622     done
3623   fi
3624
3625
3626   xc_bad_var_cflags=no
3627   for xc_word in $CFLAGS; do
3628     case "$xc_word" in
3629       -D*)
3630         xc_bad_var_cflags=yes
3631         ;;
3632       -U*)
3633         xc_bad_var_cflags=yes
3634         ;;
3635       -I*)
3636         xc_bad_var_cflags=yes
3637         ;;
3638       -rpath*)
3639         xc_bad_var_cflags=yes
3640         ;;
3641       -L* | --library-path=*)
3642         xc_bad_var_cflags=yes
3643         ;;
3644       -l* | --library=*)
3645         xc_bad_var_cflags=yes
3646         ;;
3647     esac
3648   done
3649   if test $xc_bad_var_cflags = yes; then
3650     { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3651 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3652     xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3653     for xc_word in $CFLAGS; do
3654       case "$xc_word" in
3655         -D*)
3656           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3657 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3658           ;;
3659         -U*)
3660           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3661 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3662           ;;
3663         -I*)
3664           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3665 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3666           ;;
3667         -rpath*)
3668           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3669 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3670           ;;
3671         -L* | --library-path=*)
3672           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3673 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3674           ;;
3675         -l* | --library=*)
3676           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3677 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3678           ;;
3679       esac
3680     done
3681   fi
3682
3683   if test $xc_bad_var_libs = yes ||
3684      test $xc_bad_var_cflags = yes ||
3685      test $xc_bad_var_ldflags = yes ||
3686      test $xc_bad_var_cppflags = yes; then
3687      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3688 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3689   fi
3690
3691 ac_aux_dir=
3692 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3693   if test -f "$ac_dir/install-sh"; then
3694     ac_aux_dir=$ac_dir
3695     ac_install_sh="$ac_aux_dir/install-sh -c"
3696     break
3697   elif test -f "$ac_dir/install.sh"; then
3698     ac_aux_dir=$ac_dir
3699     ac_install_sh="$ac_aux_dir/install.sh -c"
3700     break
3701   elif test -f "$ac_dir/shtool"; then
3702     ac_aux_dir=$ac_dir
3703     ac_install_sh="$ac_aux_dir/shtool install -c"
3704     break
3705   fi
3706 done
3707 if test -z "$ac_aux_dir"; then
3708   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3709 fi
3710
3711 # These three variables are undocumented and unsupported,
3712 # and are intended to be withdrawn in a future Autoconf release.
3713 # They can cause serious problems if a builder's source tree is in a directory
3714 # whose full name contains unusual characters.
3715 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3716 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3717 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3718
3719
3720 # Find a good install program.  We prefer a C program (faster),
3721 # so one script is as good as another.  But avoid the broken or
3722 # incompatible versions:
3723 # SysV /etc/install, /usr/sbin/install
3724 # SunOS /usr/etc/install
3725 # IRIX /sbin/install
3726 # AIX /bin/install
3727 # AmigaOS /C/install, which installs bootblocks on floppy discs
3728 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3729 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3730 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3731 # OS/2's system install, which has a completely different semantic
3732 # ./install, which can be erroneously created by make from ./install.sh.
3733 # Reject install programs that cannot install multiple files.
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3735 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3736 if test -z "$INSTALL"; then
3737 if ${ac_cv_path_install+:} false; then :
3738   $as_echo_n "(cached) " >&6
3739 else
3740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3742 do
3743   IFS=$as_save_IFS
3744   test -z "$as_dir" && as_dir=.
3745     # Account for people who put trailing slashes in PATH elements.
3746 case $as_dir/ in #((
3747   ./ | .// | /[cC]/* | \
3748   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3749   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3750   /usr/ucb/* ) ;;
3751   *)
3752     # OSF1 and SCO ODT 3.0 have their own names for install.
3753     # Don't use installbsd from OSF since it installs stuff as root
3754     # by default.
3755     for ac_prog in ginstall scoinst install; do
3756       for ac_exec_ext in '' $ac_executable_extensions; do
3757         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3758           if test $ac_prog = install &&
3759             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3760             # AIX install.  It has an incompatible calling convention.
3761             :
3762           elif test $ac_prog = install &&
3763             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3764             # program-specific install script used by HP pwplus--don't use.
3765             :
3766           else
3767             rm -rf conftest.one conftest.two conftest.dir
3768             echo one > conftest.one
3769             echo two > conftest.two
3770             mkdir conftest.dir
3771             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3772               test -s conftest.one && test -s conftest.two &&
3773               test -s conftest.dir/conftest.one &&
3774               test -s conftest.dir/conftest.two
3775             then
3776               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3777               break 3
3778             fi
3779           fi
3780         fi
3781       done
3782     done
3783     ;;
3784 esac
3785
3786   done
3787 IFS=$as_save_IFS
3788
3789 rm -rf conftest.one conftest.two conftest.dir
3790
3791 fi
3792   if test "${ac_cv_path_install+set}" = set; then
3793     INSTALL=$ac_cv_path_install
3794   else
3795     # As a last resort, use the slow shell script.  Don't cache a
3796     # value for INSTALL within a source directory, because that will
3797     # break other packages using the cache if that directory is
3798     # removed, or if the value is a relative name.
3799     INSTALL=$ac_install_sh
3800   fi
3801 fi
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3803 $as_echo "$INSTALL" >&6; }
3804
3805 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3806 # It thinks the first close brace ends the variable substitution.
3807 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3808
3809 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3810
3811 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3812
3813 ac_ext=c
3814 ac_cpp='$CPP $CPPFLAGS'
3815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3818 if test -n "$ac_tool_prefix"; then
3819   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3820 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3822 $as_echo_n "checking for $ac_word... " >&6; }
3823 if ${ac_cv_prog_CC+:} false; then :
3824   $as_echo_n "(cached) " >&6
3825 else
3826   if test -n "$CC"; then
3827   ac_cv_prog_CC="$CC" # Let the user override the test.
3828 else
3829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 for as_dir in $PATH
3831 do
3832   IFS=$as_save_IFS
3833   test -z "$as_dir" && as_dir=.
3834     for ac_exec_ext in '' $ac_executable_extensions; do
3835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3836     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3838     break 2
3839   fi
3840 done
3841   done
3842 IFS=$as_save_IFS
3843
3844 fi
3845 fi
3846 CC=$ac_cv_prog_CC
3847 if test -n "$CC"; then
3848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3849 $as_echo "$CC" >&6; }
3850 else
3851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3852 $as_echo "no" >&6; }
3853 fi
3854
3855
3856 fi
3857 if test -z "$ac_cv_prog_CC"; then
3858   ac_ct_CC=$CC
3859   # Extract the first word of "gcc", so it can be a program name with args.
3860 set dummy gcc; ac_word=$2
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3862 $as_echo_n "checking for $ac_word... " >&6; }
3863 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3864   $as_echo_n "(cached) " >&6
3865 else
3866   if test -n "$ac_ct_CC"; then
3867   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3868 else
3869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870 for as_dir in $PATH
3871 do
3872   IFS=$as_save_IFS
3873   test -z "$as_dir" && as_dir=.
3874     for ac_exec_ext in '' $ac_executable_extensions; do
3875   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3876     ac_cv_prog_ac_ct_CC="gcc"
3877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3878     break 2
3879   fi
3880 done
3881   done
3882 IFS=$as_save_IFS
3883
3884 fi
3885 fi
3886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3887 if test -n "$ac_ct_CC"; then
3888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3889 $as_echo "$ac_ct_CC" >&6; }
3890 else
3891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3892 $as_echo "no" >&6; }
3893 fi
3894
3895   if test "x$ac_ct_CC" = x; then
3896     CC=""
3897   else
3898     case $cross_compiling:$ac_tool_warned in
3899 yes:)
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3902 ac_tool_warned=yes ;;
3903 esac
3904     CC=$ac_ct_CC
3905   fi
3906 else
3907   CC="$ac_cv_prog_CC"
3908 fi
3909
3910 if test -z "$CC"; then
3911           if test -n "$ac_tool_prefix"; then
3912     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3913 set dummy ${ac_tool_prefix}cc; ac_word=$2
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915 $as_echo_n "checking for $ac_word... " >&6; }
3916 if ${ac_cv_prog_CC+:} false; then :
3917   $as_echo_n "(cached) " >&6
3918 else
3919   if test -n "$CC"; then
3920   ac_cv_prog_CC="$CC" # Let the user override the test.
3921 else
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH
3924 do
3925   IFS=$as_save_IFS
3926   test -z "$as_dir" && as_dir=.
3927     for ac_exec_ext in '' $ac_executable_extensions; do
3928   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3929     ac_cv_prog_CC="${ac_tool_prefix}cc"
3930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3931     break 2
3932   fi
3933 done
3934   done
3935 IFS=$as_save_IFS
3936
3937 fi
3938 fi
3939 CC=$ac_cv_prog_CC
3940 if test -n "$CC"; then
3941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3942 $as_echo "$CC" >&6; }
3943 else
3944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 $as_echo "no" >&6; }
3946 fi
3947
3948
3949   fi
3950 fi
3951 if test -z "$CC"; then
3952   # Extract the first word of "cc", so it can be a program name with args.
3953 set dummy cc; ac_word=$2
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3955 $as_echo_n "checking for $ac_word... " >&6; }
3956 if ${ac_cv_prog_CC+:} false; then :
3957   $as_echo_n "(cached) " >&6
3958 else
3959   if test -n "$CC"; then
3960   ac_cv_prog_CC="$CC" # Let the user override the test.
3961 else
3962   ac_prog_rejected=no
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 for as_dir in $PATH
3965 do
3966   IFS=$as_save_IFS
3967   test -z "$as_dir" && as_dir=.
3968     for ac_exec_ext in '' $ac_executable_extensions; do
3969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3970     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3971        ac_prog_rejected=yes
3972        continue
3973      fi
3974     ac_cv_prog_CC="cc"
3975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3976     break 2
3977   fi
3978 done
3979   done
3980 IFS=$as_save_IFS
3981
3982 if test $ac_prog_rejected = yes; then
3983   # We found a bogon in the path, so make sure we never use it.
3984   set dummy $ac_cv_prog_CC
3985   shift
3986   if test $# != 0; then
3987     # We chose a different compiler from the bogus one.
3988     # However, it has the same basename, so the bogon will be chosen
3989     # first if we set CC to just the basename; use the full file name.
3990     shift
3991     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3992   fi
3993 fi
3994 fi
3995 fi
3996 CC=$ac_cv_prog_CC
3997 if test -n "$CC"; then
3998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3999 $as_echo "$CC" >&6; }
4000 else
4001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4002 $as_echo "no" >&6; }
4003 fi
4004
4005
4006 fi
4007 if test -z "$CC"; then
4008   if test -n "$ac_tool_prefix"; then
4009   for ac_prog in cl.exe
4010   do
4011     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4012 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4014 $as_echo_n "checking for $ac_word... " >&6; }
4015 if ${ac_cv_prog_CC+:} false; then :
4016   $as_echo_n "(cached) " >&6
4017 else
4018   if test -n "$CC"; then
4019   ac_cv_prog_CC="$CC" # Let the user override the test.
4020 else
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 for as_dir in $PATH
4023 do
4024   IFS=$as_save_IFS
4025   test -z "$as_dir" && as_dir=.
4026     for ac_exec_ext in '' $ac_executable_extensions; do
4027   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4028     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4030     break 2
4031   fi
4032 done
4033   done
4034 IFS=$as_save_IFS
4035
4036 fi
4037 fi
4038 CC=$ac_cv_prog_CC
4039 if test -n "$CC"; then
4040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4041 $as_echo "$CC" >&6; }
4042 else
4043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4044 $as_echo "no" >&6; }
4045 fi
4046
4047
4048     test -n "$CC" && break
4049   done
4050 fi
4051 if test -z "$CC"; then
4052   ac_ct_CC=$CC
4053   for ac_prog in cl.exe
4054 do
4055   # Extract the first word of "$ac_prog", so it can be a program name with args.
4056 set dummy $ac_prog; ac_word=$2
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4058 $as_echo_n "checking for $ac_word... " >&6; }
4059 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4060   $as_echo_n "(cached) " >&6
4061 else
4062   if test -n "$ac_ct_CC"; then
4063   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4064 else
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 for as_dir in $PATH
4067 do
4068   IFS=$as_save_IFS
4069   test -z "$as_dir" && as_dir=.
4070     for ac_exec_ext in '' $ac_executable_extensions; do
4071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4072     ac_cv_prog_ac_ct_CC="$ac_prog"
4073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4074     break 2
4075   fi
4076 done
4077   done
4078 IFS=$as_save_IFS
4079
4080 fi
4081 fi
4082 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4083 if test -n "$ac_ct_CC"; then
4084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4085 $as_echo "$ac_ct_CC" >&6; }
4086 else
4087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088 $as_echo "no" >&6; }
4089 fi
4090
4091
4092   test -n "$ac_ct_CC" && break
4093 done
4094
4095   if test "x$ac_ct_CC" = x; then
4096     CC=""
4097   else
4098     case $cross_compiling:$ac_tool_warned in
4099 yes:)
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4102 ac_tool_warned=yes ;;
4103 esac
4104     CC=$ac_ct_CC
4105   fi
4106 fi
4107
4108 fi
4109
4110
4111 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4113 as_fn_error $? "no acceptable C compiler found in \$PATH
4114 See \`config.log' for more details" "$LINENO" 5; }
4115
4116 # Provide some information about the compiler.
4117 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4118 set X $ac_compile
4119 ac_compiler=$2
4120 for ac_option in --version -v -V -qversion; do
4121   { { ac_try="$ac_compiler $ac_option >&5"
4122 case "(($ac_try" in
4123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4124   *) ac_try_echo=$ac_try;;
4125 esac
4126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4127 $as_echo "$ac_try_echo"; } >&5
4128   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4129   ac_status=$?
4130   if test -s conftest.err; then
4131     sed '10a\
4132 ... rest of stderr output deleted ...
4133          10q' conftest.err >conftest.er1
4134     cat conftest.er1 >&5
4135   fi
4136   rm -f conftest.er1 conftest.err
4137   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4138   test $ac_status = 0; }
4139 done
4140
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h.  */
4143
4144 int main (void)
4145 {
4146
4147  ;
4148  return 0;
4149 }
4150 _ACEOF
4151 ac_clean_files_save=$ac_clean_files
4152 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4153 # Try to create an executable without -o first, disregard a.out.
4154 # It will help us diagnose broken compilers, and finding out an intuition
4155 # of exeext.
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4157 $as_echo_n "checking whether the C compiler works... " >&6; }
4158 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4159
4160 # The possible output files:
4161 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4162
4163 ac_rmfiles=
4164 for ac_file in $ac_files
4165 do
4166   case $ac_file in
4167     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4168     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4169   esac
4170 done
4171 rm -f $ac_rmfiles
4172
4173 if { { ac_try="$ac_link_default"
4174 case "(($ac_try" in
4175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176   *) ac_try_echo=$ac_try;;
4177 esac
4178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4179 $as_echo "$ac_try_echo"; } >&5
4180   (eval "$ac_link_default") 2>&5
4181   ac_status=$?
4182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4183   test $ac_status = 0; }; then :
4184   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4185 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4186 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4187 # so that the user can short-circuit this test for compilers unknown to
4188 # Autoconf.
4189 for ac_file in $ac_files ''
4190 do
4191   test -f "$ac_file" || continue
4192   case $ac_file in
4193     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4194         ;;
4195     [ab].out )
4196         # We found the default executable, but exeext='' is most
4197         # certainly right.
4198         break;;
4199     *.* )
4200         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4201         then :; else
4202            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4203         fi
4204         # We set ac_cv_exeext here because the later test for it is not
4205         # safe: cross compilers may not add the suffix if given an `-o'
4206         # argument, so we may need to know it at that point already.
4207         # Even if this section looks crufty: it has the advantage of
4208         # actually working.
4209         break;;
4210     * )
4211         break;;
4212   esac
4213 done
4214 test "$ac_cv_exeext" = no && ac_cv_exeext=
4215
4216 else
4217   ac_file=''
4218 fi
4219 if test -z "$ac_file"; then :
4220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221 $as_echo "no" >&6; }
4222 $as_echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.$ac_ext >&5
4224
4225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4227 as_fn_error 77 "C compiler cannot create executables
4228 See \`config.log' for more details" "$LINENO" 5; }
4229 else
4230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4231 $as_echo "yes" >&6; }
4232 fi
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4234 $as_echo_n "checking for C compiler default output file name... " >&6; }
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4236 $as_echo "$ac_file" >&6; }
4237 ac_exeext=$ac_cv_exeext
4238
4239 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4240 ac_clean_files=$ac_clean_files_save
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4242 $as_echo_n "checking for suffix of executables... " >&6; }
4243 if { { ac_try="$ac_link"
4244 case "(($ac_try" in
4245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246   *) ac_try_echo=$ac_try;;
4247 esac
4248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4249 $as_echo "$ac_try_echo"; } >&5
4250   (eval "$ac_link") 2>&5
4251   ac_status=$?
4252   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4253   test $ac_status = 0; }; then :
4254   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4255 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4256 # work properly (i.e., refer to `conftest.exe'), while it won't with
4257 # `rm'.
4258 for ac_file in conftest.exe conftest conftest.*; do
4259   test -f "$ac_file" || continue
4260   case $ac_file in
4261     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4262     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4263           break;;
4264     * ) break;;
4265   esac
4266 done
4267 else
4268   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4270 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4271 See \`config.log' for more details" "$LINENO" 5; }
4272 fi
4273 rm -f conftest conftest$ac_cv_exeext
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4275 $as_echo "$ac_cv_exeext" >&6; }
4276
4277 rm -f conftest.$ac_ext
4278 EXEEXT=$ac_cv_exeext
4279 ac_exeext=$EXEEXT
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h.  */
4282 #include <stdio.h>
4283 int main (void)
4284 {
4285 FILE *f = fopen ("conftest.out", "w");
4286  return ferror (f) || fclose (f) != 0;
4287
4288  ;
4289  return 0;
4290 }
4291 _ACEOF
4292 ac_clean_files="$ac_clean_files conftest.out"
4293 # Check that the compiler produces executables we can run.  If not, either
4294 # the compiler is broken, or we cross compile.
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4296 $as_echo_n "checking whether we are cross compiling... " >&6; }
4297 if test "$cross_compiling" != yes; then
4298   { { ac_try="$ac_link"
4299 case "(($ac_try" in
4300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301   *) ac_try_echo=$ac_try;;
4302 esac
4303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4304 $as_echo "$ac_try_echo"; } >&5
4305   (eval "$ac_link") 2>&5
4306   ac_status=$?
4307   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4308   test $ac_status = 0; }
4309   if { ac_try='./conftest$ac_cv_exeext'
4310   { { case "(($ac_try" in
4311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312   *) ac_try_echo=$ac_try;;
4313 esac
4314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4315 $as_echo "$ac_try_echo"; } >&5
4316   (eval "$ac_try") 2>&5
4317   ac_status=$?
4318   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4319   test $ac_status = 0; }; }; then
4320     cross_compiling=no
4321   else
4322     if test "$cross_compiling" = maybe; then
4323         cross_compiling=yes
4324     else
4325         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4327 as_fn_error $? "cannot run C compiled programs.
4328 If you meant to cross compile, use \`--host'.
4329 See \`config.log' for more details" "$LINENO" 5; }
4330     fi
4331   fi
4332 fi
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4334 $as_echo "$cross_compiling" >&6; }
4335
4336 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4337 ac_clean_files=$ac_clean_files_save
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4339 $as_echo_n "checking for suffix of object files... " >&6; }
4340 if ${ac_cv_objext+:} false; then :
4341   $as_echo_n "(cached) " >&6
4342 else
4343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h.  */
4345
4346 int main (void)
4347 {
4348
4349  ;
4350  return 0;
4351 }
4352 _ACEOF
4353 rm -f conftest.o conftest.obj
4354 if { { ac_try="$ac_compile"
4355 case "(($ac_try" in
4356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357   *) ac_try_echo=$ac_try;;
4358 esac
4359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4360 $as_echo "$ac_try_echo"; } >&5
4361   (eval "$ac_compile") 2>&5
4362   ac_status=$?
4363   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4364   test $ac_status = 0; }; then :
4365   for ac_file in conftest.o conftest.obj conftest.*; do
4366   test -f "$ac_file" || continue;
4367   case $ac_file in
4368     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4369     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4370        break;;
4371   esac
4372 done
4373 else
4374   $as_echo "$as_me: failed program was:" >&5
4375 sed 's/^/| /' conftest.$ac_ext >&5
4376
4377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4379 as_fn_error $? "cannot compute suffix of object files: cannot compile
4380 See \`config.log' for more details" "$LINENO" 5; }
4381 fi
4382 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4383 fi
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4385 $as_echo "$ac_cv_objext" >&6; }
4386 OBJEXT=$ac_cv_objext
4387 ac_objext=$OBJEXT
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4389 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4390 if ${ac_cv_c_compiler_gnu+:} false; then :
4391   $as_echo_n "(cached) " >&6
4392 else
4393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h.  */
4395
4396 int main (void)
4397 {
4398 #ifndef __GNUC__
4399        choke me
4400 #endif
4401
4402  ;
4403  return 0;
4404 }
4405 _ACEOF
4406 if ac_fn_c_try_compile "$LINENO"; then :
4407   ac_compiler_gnu=yes
4408 else
4409   ac_compiler_gnu=no
4410 fi
4411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4412 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4413
4414 fi
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4416 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4417 if test $ac_compiler_gnu = yes; then
4418   GCC=yes
4419 else
4420   GCC=
4421 fi
4422 ac_test_CFLAGS=${CFLAGS+set}
4423 ac_save_CFLAGS=$CFLAGS
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4425 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4426 if ${ac_cv_prog_cc_g+:} false; then :
4427   $as_echo_n "(cached) " >&6
4428 else
4429   ac_save_c_werror_flag=$ac_c_werror_flag
4430    ac_c_werror_flag=yes
4431    ac_cv_prog_cc_g=no
4432    CFLAGS="-g"
4433    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434 /* end confdefs.h.  */
4435
4436 int main (void)
4437 {
4438
4439  ;
4440  return 0;
4441 }
4442 _ACEOF
4443 if ac_fn_c_try_compile "$LINENO"; then :
4444   ac_cv_prog_cc_g=yes
4445 else
4446   CFLAGS=""
4447       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h.  */
4449
4450 int main (void)
4451 {
4452
4453  ;
4454  return 0;
4455 }
4456 _ACEOF
4457 if ac_fn_c_try_compile "$LINENO"; then :
4458
4459 else
4460   ac_c_werror_flag=$ac_save_c_werror_flag
4461          CFLAGS="-g"
4462          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h.  */
4464
4465 int main (void)
4466 {
4467
4468  ;
4469  return 0;
4470 }
4471 _ACEOF
4472 if ac_fn_c_try_compile "$LINENO"; then :
4473   ac_cv_prog_cc_g=yes
4474 fi
4475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4476 fi
4477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4478 fi
4479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4480    ac_c_werror_flag=$ac_save_c_werror_flag
4481 fi
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4483 $as_echo "$ac_cv_prog_cc_g" >&6; }
4484 if test "$ac_test_CFLAGS" = set; then
4485   CFLAGS=$ac_save_CFLAGS
4486 elif test $ac_cv_prog_cc_g = yes; then
4487   if test "$GCC" = yes; then
4488     CFLAGS="-g -O2"
4489   else
4490     CFLAGS="-g"
4491   fi
4492 else
4493   if test "$GCC" = yes; then
4494     CFLAGS="-O2"
4495   else
4496     CFLAGS=
4497   fi
4498 fi
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4500 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4501 if ${ac_cv_prog_cc_c89+:} false; then :
4502   $as_echo_n "(cached) " >&6
4503 else
4504   ac_cv_prog_cc_c89=no
4505 ac_save_CC=$CC
4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h.  */
4508 #include <stdarg.h>
4509 #include <stdio.h>
4510 struct stat;
4511 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4512 struct buf { int x; };
4513 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4514 static char *e (p, i)
4515      char **p;
4516      int i;
4517 {
4518   return p[i];
4519 }
4520 static char *f (char * (*g) (char **, int), char **p, ...)
4521 {
4522   char *s;
4523   va_list v;
4524   va_start (v,p);
4525   s = g (p, va_arg (v,int));
4526   va_end (v);
4527   return s;
4528 }
4529
4530 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4531    function prototypes and stuff, but not '\xHH' hex character constants.
4532    These don't provoke an error unfortunately, instead are silently treated
4533    as 'x'.  The following induces an error, until -std is added to get
4534    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4535    array size at least.  It's necessary to write '\x00'==0 to get something
4536    that's true only with -std.  */
4537 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4538
4539 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4540    inside strings and character constants.  */
4541 #define FOO(x) 'x'
4542 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4543
4544 int test (int i, double x);
4545 struct s1 {int (*f) (int a);};
4546 struct s2 {int (*f) (double a);};
4547 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4548 int argc;
4549 char **argv;
4550 int main (void)
4551 {
4552 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4553  ;
4554  return 0;
4555 }
4556 _ACEOF
4557 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4558         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4559 do
4560   CC="$ac_save_CC $ac_arg"
4561   if ac_fn_c_try_compile "$LINENO"; then :
4562   ac_cv_prog_cc_c89=$ac_arg
4563 fi
4564 rm -f core conftest.err conftest.$ac_objext
4565   test "x$ac_cv_prog_cc_c89" != "xno" && break
4566 done
4567 rm -f conftest.$ac_ext
4568 CC=$ac_save_CC
4569
4570 fi
4571 # AC_CACHE_VAL
4572 case "x$ac_cv_prog_cc_c89" in
4573   x)
4574     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4575 $as_echo "none needed" >&6; } ;;
4576   xno)
4577     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4578 $as_echo "unsupported" >&6; } ;;
4579   *)
4580     CC="$CC $ac_cv_prog_cc_c89"
4581     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4582 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4583 esac
4584 if test "x$ac_cv_prog_cc_c89" != xno; then :
4585
4586 fi
4587
4588 ac_ext=c
4589 ac_cpp='$CPP $CPPFLAGS'
4590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4593
4594 if test "x$CC" != xcc; then
4595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4596 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4597 else
4598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4599 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4600 fi
4601 set dummy $CC; ac_cc=`$as_echo "$2" |
4602                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4603 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4604   $as_echo_n "(cached) " >&6
4605 else
4606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h.  */
4608
4609 int main (void)
4610 {
4611
4612  ;
4613  return 0;
4614 }
4615 _ACEOF
4616 # Make sure it works both with $CC and with simple cc.
4617 # We do the test twice because some compilers refuse to overwrite an
4618 # existing .o file with -o, though they will create one.
4619 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4620 rm -f conftest2.*
4621 if { { case "(($ac_try" in
4622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623   *) ac_try_echo=$ac_try;;
4624 esac
4625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4626 $as_echo "$ac_try_echo"; } >&5
4627   (eval "$ac_try") 2>&5
4628   ac_status=$?
4629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4630   test $ac_status = 0; } &&
4631    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633   *) ac_try_echo=$ac_try;;
4634 esac
4635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4636 $as_echo "$ac_try_echo"; } >&5
4637   (eval "$ac_try") 2>&5
4638   ac_status=$?
4639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4640   test $ac_status = 0; };
4641 then
4642   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4643   if test "x$CC" != xcc; then
4644     # Test first that cc exists at all.
4645     if { ac_try='cc -c conftest.$ac_ext >&5'
4646   { { case "(($ac_try" in
4647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4648   *) ac_try_echo=$ac_try;;
4649 esac
4650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4651 $as_echo "$ac_try_echo"; } >&5
4652   (eval "$ac_try") 2>&5
4653   ac_status=$?
4654   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4655   test $ac_status = 0; }; }; then
4656       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4657       rm -f conftest2.*
4658       if { { case "(($ac_try" in
4659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660   *) ac_try_echo=$ac_try;;
4661 esac
4662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4663 $as_echo "$ac_try_echo"; } >&5
4664   (eval "$ac_try") 2>&5
4665   ac_status=$?
4666   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4667   test $ac_status = 0; } &&
4668          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4670   *) ac_try_echo=$ac_try;;
4671 esac
4672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4673 $as_echo "$ac_try_echo"; } >&5
4674   (eval "$ac_try") 2>&5
4675   ac_status=$?
4676   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4677   test $ac_status = 0; };
4678       then
4679         # cc works too.
4680         :
4681       else
4682         # cc exists but doesn't like -o.
4683         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4684       fi
4685     fi
4686   fi
4687 else
4688   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4689 fi
4690 rm -f core conftest*
4691
4692 fi
4693 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4695 $as_echo "yes" >&6; }
4696 else
4697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 $as_echo "no" >&6; }
4699
4700 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4701
4702 fi
4703
4704 # expand $ac_aux_dir to an absolute path
4705 am_aux_dir=`cd $ac_aux_dir && pwd`
4706
4707 # FIXME: we rely on the cache variable name because
4708 # there is no other way.
4709 set dummy $CC
4710 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4711 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4712 if test "$am_t" != yes; then
4713    # Losing compiler, so override with the script.
4714    # FIXME: It is wrong to rewrite CC.
4715    # But if we don't then we get into trouble of one sort or another.
4716    # A longer-term fix would be to have automake use am__CC in this case,
4717    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4718    CC="$am_aux_dir/compile $CC"
4719 fi
4720
4721
4722 ac_ext=c
4723 ac_cpp='$CPP $CPPFLAGS'
4724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4728 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4729 # On Suns, sometimes $CPP names a directory.
4730 if test -n "$CPP" && test -d "$CPP"; then
4731   CPP=
4732 fi
4733 if test -z "$CPP"; then
4734   if ${ac_cv_prog_CPP+:} false; then :
4735   $as_echo_n "(cached) " >&6
4736 else
4737       # Double quotes because CPP needs to be expanded
4738     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4739     do
4740       ac_preproc_ok=false
4741 for ac_c_preproc_warn_flag in '' yes
4742 do
4743   # Use a header file that comes with gcc, so configuring glibc
4744   # with a fresh cross-compiler works.
4745   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4746   # <limits.h> exists even on freestanding compilers.
4747   # On the NeXT, cc -E runs the code through the compiler's parser,
4748   # not just through cpp. "Syntax error" is here to catch this case.
4749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h.  */
4751 #ifdef __STDC__
4752 # include <limits.h>
4753 #else
4754 # include <assert.h>
4755 #endif
4756                      Syntax error
4757 _ACEOF
4758 if ac_fn_c_try_cpp "$LINENO"; then :
4759
4760 else
4761   # Broken: fails on valid input.
4762 continue
4763 fi
4764 rm -f conftest.err conftest.i conftest.$ac_ext
4765
4766   # OK, works on sane cases.  Now check whether nonexistent headers
4767   # can be detected and how.
4768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h.  */
4770 #include <ac_nonexistent.h>
4771 _ACEOF
4772 if ac_fn_c_try_cpp "$LINENO"; then :
4773   # Broken: success on invalid input.
4774 continue
4775 else
4776   # Passes both tests.
4777 ac_preproc_ok=:
4778 break
4779 fi
4780 rm -f conftest.err conftest.i conftest.$ac_ext
4781
4782 done
4783 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4784 rm -f conftest.i conftest.err conftest.$ac_ext
4785 if $ac_preproc_ok; then :
4786   break
4787 fi
4788
4789     done
4790     ac_cv_prog_CPP=$CPP
4791
4792 fi
4793   CPP=$ac_cv_prog_CPP
4794 else
4795   ac_cv_prog_CPP=$CPP
4796 fi
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4798 $as_echo "$CPP" >&6; }
4799 ac_preproc_ok=false
4800 for ac_c_preproc_warn_flag in '' yes
4801 do
4802   # Use a header file that comes with gcc, so configuring glibc
4803   # with a fresh cross-compiler works.
4804   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4805   # <limits.h> exists even on freestanding compilers.
4806   # On the NeXT, cc -E runs the code through the compiler's parser,
4807   # not just through cpp. "Syntax error" is here to catch this case.
4808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809 /* end confdefs.h.  */
4810 #ifdef __STDC__
4811 # include <limits.h>
4812 #else
4813 # include <assert.h>
4814 #endif
4815                      Syntax error
4816 _ACEOF
4817 if ac_fn_c_try_cpp "$LINENO"; then :
4818
4819 else
4820   # Broken: fails on valid input.
4821 continue
4822 fi
4823 rm -f conftest.err conftest.i conftest.$ac_ext
4824
4825   # OK, works on sane cases.  Now check whether nonexistent headers
4826   # can be detected and how.
4827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828 /* end confdefs.h.  */
4829 #include <ac_nonexistent.h>
4830 _ACEOF
4831 if ac_fn_c_try_cpp "$LINENO"; then :
4832   # Broken: success on invalid input.
4833 continue
4834 else
4835   # Passes both tests.
4836 ac_preproc_ok=:
4837 break
4838 fi
4839 rm -f conftest.err conftest.i conftest.$ac_ext
4840
4841 done
4842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4843 rm -f conftest.i conftest.err conftest.$ac_ext
4844 if $ac_preproc_ok; then :
4845
4846 else
4847   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4849 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4850 See \`config.log' for more details" "$LINENO" 5; }
4851 fi
4852
4853 ac_ext=c
4854 ac_cpp='$CPP $CPPFLAGS'
4855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4858
4859
4860   IFS=$xc_prog_cc_prev_IFS
4861   LIBS=$xc_prog_cc_prev_LIBS
4862   CFLAGS=$xc_prog_cc_prev_CFLAGS
4863   LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4864   CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
4865
4866
4867
4868
4869
4870 am__api_version='1.13'
4871
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4873 $as_echo_n "checking whether build environment is sane... " >&6; }
4874 # Reject unsafe characters in $srcdir or the absolute working directory
4875 # name.  Accept space and tab only in the latter.
4876 am_lf='
4877 '
4878 case `pwd` in
4879   *[\\\"\#\$\&\'\`$am_lf]*)
4880     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4881 esac
4882 case $srcdir in
4883   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4884     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4885 esac
4886
4887 # Do 'set' in a subshell so we don't clobber the current shell's
4888 # arguments.  Must try -L first in case configure is actually a
4889 # symlink; some systems play weird games with the mod time of symlinks
4890 # (eg FreeBSD returns the mod time of the symlink's containing
4891 # directory).
4892 if (
4893    am_has_slept=no
4894    for am_try in 1 2; do
4895      echo "timestamp, slept: $am_has_slept" > conftest.file
4896      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4897      if test "$*" = "X"; then
4898         # -L didn't work.
4899         set X `ls -t "$srcdir/configure" conftest.file`
4900      fi
4901      if test "$*" != "X $srcdir/configure conftest.file" \
4902         && test "$*" != "X conftest.file $srcdir/configure"; then
4903
4904         # If neither matched, then we have a broken ls.  This can happen
4905         # if, for instance, CONFIG_SHELL is bash and it inherits a
4906         # broken ls alias from the environment.  This has actually
4907         # happened.  Such a system could not be considered "sane".
4908         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4909   alias in your environment" "$LINENO" 5
4910      fi
4911      if test "$2" = conftest.file || test $am_try -eq 2; then
4912        break
4913      fi
4914      # Just in case.
4915      sleep 1
4916      am_has_slept=yes
4917    done
4918    test "$2" = conftest.file
4919    )
4920 then
4921    # Ok.
4922    :
4923 else
4924    as_fn_error $? "newly created file is older than distributed files!
4925 Check your system clock" "$LINENO" 5
4926 fi
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4928 $as_echo "yes" >&6; }
4929 # If we didn't sleep, we still need to ensure time stamps of config.status and
4930 # generated files are strictly newer.
4931 am_sleep_pid=
4932 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4933   ( sleep 1 ) &
4934   am_sleep_pid=$!
4935 fi
4936
4937 rm -f conftest.file
4938
4939 test "$program_prefix" != NONE &&
4940   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4941 # Use a double $ so make ignores it.
4942 test "$program_suffix" != NONE &&
4943   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4944 # Double any \ or $.
4945 # By default was `s,x,x', remove it if useless.
4946 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4947 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4948
4949 test x"${MISSING+set}" = xset || MISSING="\${SHELL} \"$am_aux_dir/missing\""
4950 # Use eval to expand $SHELL
4951 if eval "$MISSING --run true"; then
4952   am_missing_run="$MISSING --run "
4953 else
4954   am_missing_run=
4955   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4956 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4957 fi
4958
4959 if test x"${install_sh}" != xset; then
4960   case $am_aux_dir in
4961   *\ * | *\     *)
4962     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4963   *)
4964     install_sh="\${SHELL} $am_aux_dir/install-sh"
4965   esac
4966 fi
4967
4968 # Installed binaries are usually stripped using 'strip' when the user
4969 # run "make install-strip".  However 'strip' might not be the right
4970 # tool to use in cross-compilation environments, therefore Automake
4971 # will honor the 'STRIP' environment variable to overrule this program.
4972 if test "$cross_compiling" != no; then
4973   if test -n "$ac_tool_prefix"; then
4974   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4975 set dummy ${ac_tool_prefix}strip; ac_word=$2
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4977 $as_echo_n "checking for $ac_word... " >&6; }
4978 if ${ac_cv_prog_STRIP+:} false; then :
4979   $as_echo_n "(cached) " >&6
4980 else
4981   if test -n "$STRIP"; then
4982   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4983 else
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 for as_dir in $PATH
4986 do
4987   IFS=$as_save_IFS
4988   test -z "$as_dir" && as_dir=.
4989     for ac_exec_ext in '' $ac_executable_extensions; do
4990   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4991     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4993     break 2
4994   fi
4995 done
4996   done
4997 IFS=$as_save_IFS
4998
4999 fi
5000 fi
5001 STRIP=$ac_cv_prog_STRIP
5002 if test -n "$STRIP"; then
5003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5004 $as_echo "$STRIP" >&6; }
5005 else
5006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5007 $as_echo "no" >&6; }
5008 fi
5009
5010
5011 fi
5012 if test -z "$ac_cv_prog_STRIP"; then
5013   ac_ct_STRIP=$STRIP
5014   # Extract the first word of "strip", so it can be a program name with args.
5015 set dummy strip; ac_word=$2
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5017 $as_echo_n "checking for $ac_word... " >&6; }
5018 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5019   $as_echo_n "(cached) " >&6
5020 else
5021   if test -n "$ac_ct_STRIP"; then
5022   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5023 else
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 for as_dir in $PATH
5026 do
5027   IFS=$as_save_IFS
5028   test -z "$as_dir" && as_dir=.
5029     for ac_exec_ext in '' $ac_executable_extensions; do
5030   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5031     ac_cv_prog_ac_ct_STRIP="strip"
5032     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5033     break 2
5034   fi
5035 done
5036   done
5037 IFS=$as_save_IFS
5038
5039 fi
5040 fi
5041 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5042 if test -n "$ac_ct_STRIP"; then
5043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5044 $as_echo "$ac_ct_STRIP" >&6; }
5045 else
5046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5047 $as_echo "no" >&6; }
5048 fi
5049
5050   if test "x$ac_ct_STRIP" = x; then
5051     STRIP=":"
5052   else
5053     case $cross_compiling:$ac_tool_warned in
5054 yes:)
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5057 ac_tool_warned=yes ;;
5058 esac
5059     STRIP=$ac_ct_STRIP
5060   fi
5061 else
5062   STRIP="$ac_cv_prog_STRIP"
5063 fi
5064
5065 fi
5066 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5067
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5069 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5070 if test -z "$MKDIR_P"; then
5071   if ${ac_cv_path_mkdir+:} false; then :
5072   $as_echo_n "(cached) " >&6
5073 else
5074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5076 do
5077   IFS=$as_save_IFS
5078   test -z "$as_dir" && as_dir=.
5079     for ac_prog in mkdir gmkdir; do
5080          for ac_exec_ext in '' $ac_executable_extensions; do
5081            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5082            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5083              'mkdir (GNU coreutils) '* | \
5084              'mkdir (coreutils) '* | \
5085              'mkdir (fileutils) '4.1*)
5086                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5087                break 3;;
5088            esac
5089          done
5090        done
5091   done
5092 IFS=$as_save_IFS
5093
5094 fi
5095
5096   test -d ./--version && rmdir ./--version
5097   if test "${ac_cv_path_mkdir+set}" = set; then
5098     MKDIR_P="$ac_cv_path_mkdir -p"
5099   else
5100     # As a last resort, use the slow shell script.  Don't cache a
5101     # value for MKDIR_P within a source directory, because that will
5102     # break other packages using the cache if that directory is
5103     # removed, or if the value is a relative name.
5104     MKDIR_P="$ac_install_sh -d"
5105   fi
5106 fi
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5108 $as_echo "$MKDIR_P" >&6; }
5109
5110 for ac_prog in gawk mawk nawk awk
5111 do
5112   # Extract the first word of "$ac_prog", so it can be a program name with args.
5113 set dummy $ac_prog; ac_word=$2
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if ${ac_cv_prog_AWK+:} false; then :
5117   $as_echo_n "(cached) " >&6
5118 else
5119   if test -n "$AWK"; then
5120   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5121 else
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH
5124 do
5125   IFS=$as_save_IFS
5126   test -z "$as_dir" && as_dir=.
5127     for ac_exec_ext in '' $ac_executable_extensions; do
5128   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5129     ac_cv_prog_AWK="$ac_prog"
5130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131     break 2
5132   fi
5133 done
5134   done
5135 IFS=$as_save_IFS
5136
5137 fi
5138 fi
5139 AWK=$ac_cv_prog_AWK
5140 if test -n "$AWK"; then
5141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5142 $as_echo "$AWK" >&6; }
5143 else
5144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145 $as_echo "no" >&6; }
5146 fi
5147
5148
5149   test -n "$AWK" && break
5150 done
5151
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5153 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5154 set x ${MAKE-make}
5155 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5156 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5157   $as_echo_n "(cached) " >&6
5158 else
5159   cat >conftest.make <<\_ACEOF
5160 SHELL = /bin/sh
5161 all:
5162         @echo '@@@%%%=$(MAKE)=@@@%%%'
5163 _ACEOF
5164 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5165 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5166   *@@@%%%=?*=@@@%%%*)
5167     eval ac_cv_prog_make_${ac_make}_set=yes;;
5168   *)
5169     eval ac_cv_prog_make_${ac_make}_set=no;;
5170 esac
5171 rm -f conftest.make
5172 fi
5173 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5175 $as_echo "yes" >&6; }
5176   SET_MAKE=
5177 else
5178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5180   SET_MAKE="MAKE=${MAKE-make}"
5181 fi
5182
5183 rm -rf .tst 2>/dev/null
5184 mkdir .tst 2>/dev/null
5185 if test -d .tst; then
5186   am__leading_dot=.
5187 else
5188   am__leading_dot=_
5189 fi
5190 rmdir .tst 2>/dev/null
5191
5192 DEPDIR="${am__leading_dot}deps"
5193
5194 ac_config_commands="$ac_config_commands depfiles"
5195
5196
5197 am_make=${MAKE-make}
5198 cat > confinc << 'END'
5199 am__doit:
5200         @echo this is the am__doit target
5201 .PHONY: am__doit
5202 END
5203 # If we don't find an include directive, just comment out the code.
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5205 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5206 am__include="#"
5207 am__quote=
5208 _am_result=none
5209 # First try GNU make style include.
5210 echo "include confinc" > confmf
5211 # Ignore all kinds of additional output from 'make'.
5212 case `$am_make -s -f confmf 2> /dev/null` in #(
5213 *the\ am__doit\ target*)
5214   am__include=include
5215   am__quote=
5216   _am_result=GNU
5217   ;;
5218 esac
5219 # Now try BSD make style include.
5220 if test "$am__include" = "#"; then
5221    echo '.include "confinc"' > confmf
5222    case `$am_make -s -f confmf 2> /dev/null` in #(
5223    *the\ am__doit\ target*)
5224      am__include=.include
5225      am__quote="\""
5226      _am_result=BSD
5227      ;;
5228    esac
5229 fi
5230
5231
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5233 $as_echo "$_am_result" >&6; }
5234 rm -f confinc confmf
5235
5236 # Check whether --enable-dependency-tracking was given.
5237 if test "${enable_dependency_tracking+set}" = set; then :
5238   enableval=$enable_dependency_tracking;
5239 fi
5240
5241 if test "x$enable_dependency_tracking" != xno; then
5242   am_depcomp="$ac_aux_dir/depcomp"
5243   AMDEPBACKSLASH='\'
5244   am__nodep='_no'
5245 fi
5246  if test "x$enable_dependency_tracking" != xno; then
5247   AMDEP_TRUE=
5248   AMDEP_FALSE='#'
5249 else
5250   AMDEP_TRUE='#'
5251   AMDEP_FALSE=
5252 fi
5253
5254
5255 # Check whether --enable-silent-rules was given.
5256 if test "${enable_silent_rules+set}" = set; then :
5257   enableval=$enable_silent_rules;
5258 fi
5259
5260 case $enable_silent_rules in # (((
5261   yes) AM_DEFAULT_VERBOSITY=0;;
5262    no) AM_DEFAULT_VERBOSITY=1;;
5263     *) AM_DEFAULT_VERBOSITY=1;;
5264 esac
5265 am_make=${MAKE-make}
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5267 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5268 if ${am_cv_make_support_nested_variables+:} false; then :
5269   $as_echo_n "(cached) " >&6
5270 else
5271   if $as_echo 'TRUE=$(BAR$(V))
5272 BAR0=false
5273 BAR1=true
5274 V=1
5275 am__doit:
5276         @$(TRUE)
5277 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5278   am_cv_make_support_nested_variables=yes
5279 else
5280   am_cv_make_support_nested_variables=no
5281 fi
5282 fi
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5284 $as_echo "$am_cv_make_support_nested_variables" >&6; }
5285 if test $am_cv_make_support_nested_variables = yes; then
5286     AM_V='$(V)'
5287   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5288 else
5289   AM_V=$AM_DEFAULT_VERBOSITY
5290   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5291 fi
5292 AM_BACKSLASH='\'
5293
5294 ## --------------------------------------- ##
5295 ##  Start of automake initialization code  ##
5296 ## --------------------------------------- ##
5297
5298 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5299   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5300   # is not polluted with repeated "-I."
5301   am__isrc=' -I$(srcdir)'
5302   # test to see if srcdir already configured
5303   if test -f $srcdir/config.status; then
5304     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5305   fi
5306 fi
5307
5308 # test whether we have cygpath
5309 if test -z "$CYGPATH_W"; then
5310   if (cygpath --version) >/dev/null 2>/dev/null; then
5311     CYGPATH_W='cygpath -w'
5312   else
5313     CYGPATH_W=echo
5314   fi
5315 fi
5316
5317
5318 # Define the identity of the package.
5319  PACKAGE='curl'
5320  VERSION='-'
5321
5322
5323 cat >>confdefs.h <<_ACEOF
5324 #define PACKAGE "$PACKAGE"
5325 _ACEOF
5326
5327
5328 cat >>confdefs.h <<_ACEOF
5329 #define VERSION "$VERSION"
5330 _ACEOF
5331
5332 # Some tools Automake needs.
5333
5334 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5335
5336
5337 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5338
5339
5340 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5341
5342
5343 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5344
5345
5346 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5347
5348 # For better backward compatibility.  To be removed once Automake 1.9.x
5349 # dies out for good.  For more background, see:
5350 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5351 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5352 mkdir_p='$(MKDIR_P)'
5353
5354 # We need awk for the "check" target.  The system "awk" is bad on
5355 # some platforms.
5356 # Always define AMTAR for backward compatibility.  Yes, it's still used
5357 # in the wild :-(  We should find a proper way to deprecate it ...
5358 AMTAR='$${TAR-tar}'
5359
5360
5361 # We'll loop over all known methods to create a tar archive until one works.
5362 _am_tools='gnutar  pax cpio none'
5363
5364 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5365
5366
5367
5368
5369
5370 depcc="$CC"   am_compiler_list=
5371
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5373 $as_echo_n "checking dependency style of $depcc... " >&6; }
5374 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5375   $as_echo_n "(cached) " >&6
5376 else
5377   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5378   # We make a subdir and do the tests there.  Otherwise we can end up
5379   # making bogus files that we don't know about and never remove.  For
5380   # instance it was reported that on HP-UX the gcc test will end up
5381   # making a dummy file named 'D' -- because '-MD' means "put the output
5382   # in D".
5383   rm -rf conftest.dir
5384   mkdir conftest.dir
5385   # Copy depcomp to subdir because otherwise we won't find it if we're
5386   # using a relative directory.
5387   cp "$am_depcomp" conftest.dir
5388   cd conftest.dir
5389   # We will build objects and dependencies in a subdirectory because
5390   # it helps to detect inapplicable dependency modes.  For instance
5391   # both Tru64's cc and ICC support -MD to output dependencies as a
5392   # side effect of compilation, but ICC will put the dependencies in
5393   # the current directory while Tru64 will put them in the object
5394   # directory.
5395   mkdir sub
5396
5397   am_cv_CC_dependencies_compiler_type=none
5398   if test "$am_compiler_list" = ""; then
5399      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5400   fi
5401   am__universal=false
5402   case " $depcc " in #(
5403      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5404      esac
5405
5406   for depmode in $am_compiler_list; do
5407     # Setup a source with many dependencies, because some compilers
5408     # like to wrap large dependency lists on column 80 (with \), and
5409     # we should not choose a depcomp mode which is confused by this.
5410     #
5411     # We need to recreate these files for each test, as the compiler may
5412     # overwrite some of them when testing with obscure command lines.
5413     # This happens at least with the AIX C compiler.
5414     : > sub/conftest.c
5415     for i in 1 2 3 4 5 6; do
5416       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5417       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5418       # Solaris 10 /bin/sh.
5419       echo '/* dummy */' > sub/conftst$i.h
5420     done
5421     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5422
5423     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5424     # mode.  It turns out that the SunPro C++ compiler does not properly
5425     # handle '-M -o', and we need to detect this.  Also, some Intel
5426     # versions had trouble with output in subdirs.
5427     am__obj=sub/conftest.${OBJEXT-o}
5428     am__minus_obj="-o $am__obj"
5429     case $depmode in
5430     gcc)
5431       # This depmode causes a compiler race in universal mode.
5432       test "$am__universal" = false || continue
5433       ;;
5434     nosideeffect)
5435       # After this tag, mechanisms are not by side-effect, so they'll
5436       # only be used when explicitly requested.
5437       if test "x$enable_dependency_tracking" = xyes; then
5438         continue
5439       else
5440         break
5441       fi
5442       ;;
5443     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5444       # This compiler won't grok '-c -o', but also, the minuso test has
5445       # not run yet.  These depmodes are late enough in the game, and
5446       # so weak that their functioning should not be impacted.
5447       am__obj=conftest.${OBJEXT-o}
5448       am__minus_obj=
5449       ;;
5450     none) break ;;
5451     esac
5452     if depmode=$depmode \
5453        source=sub/conftest.c object=$am__obj \
5454        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5455        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5456          >/dev/null 2>conftest.err &&
5457        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5458        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5459        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5460        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5461       # icc doesn't choke on unknown options, it will just issue warnings
5462       # or remarks (even with -Werror).  So we grep stderr for any message
5463       # that says an option was ignored or not supported.
5464       # When given -MP, icc 7.0 and 7.1 complain thusly:
5465       #   icc: Command line warning: ignoring option '-M'; no argument required
5466       # The diagnosis changed in icc 8.0:
5467       #   icc: Command line remark: option '-MP' not supported
5468       if (grep 'ignoring option' conftest.err ||
5469           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5470         am_cv_CC_dependencies_compiler_type=$depmode
5471         break
5472       fi
5473     fi
5474   done
5475
5476   cd ..
5477   rm -rf conftest.dir
5478 else
5479   am_cv_CC_dependencies_compiler_type=none
5480 fi
5481
5482 fi
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5484 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5485 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5486
5487  if
5488   test "x$enable_dependency_tracking" != xno \
5489   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5490   am__fastdepCC_TRUE=
5491   am__fastdepCC_FALSE='#'
5492 else
5493   am__fastdepCC_TRUE='#'
5494   am__fastdepCC_FALSE=
5495 fi
5496
5497
5498
5499 ## ------------------------------------- ##
5500 ##  End of automake initialization code  ##
5501 ## ------------------------------------- ##
5502
5503
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
5505 $as_echo_n "checking curl version... " >&6; }
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
5507 $as_echo "$CURLVERSION" >&6; }
5508
5509
5510
5511 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curlver.h`
5512
5513
5514 PKGADD_PKG="HAXXcurl"
5515 PKGADD_NAME="cURL - a client that groks URLs"
5516 PKGADD_VENDOR="curl.haxx.se"
5517
5518
5519
5520
5521     curl_ssl_msg="no      (--with-{ssl,gnutls,nss,polarssl,cyassl,axtls,winssl,darwinssl} )"
5522     curl_ssh_msg="no      (--with-libssh2)"
5523    curl_zlib_msg="no      (--with-zlib)"
5524    curl_krb4_msg="no      (--with-krb4*)"
5525     curl_gss_msg="no      (--with-gssapi)"
5526  curl_spnego_msg="no      (--with-spnego)"
5527 curl_tls_srp_msg="no      (--enable-tls-srp)"
5528     curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
5529    curl_ipv6_msg="no      (--enable-ipv6)"
5530     curl_idn_msg="no      (--with-{libidn,winidn})"
5531  curl_manual_msg="no      (--enable-manual)"
5532 curl_libcurl_msg="enabled (--disable-libcurl-option)"
5533 curl_verbose_msg="enabled (--disable-verbose)"
5534    curl_sspi_msg="no      (--enable-sspi)"
5535    curl_ldap_msg="no      (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
5536   curl_ldaps_msg="no      (--enable-ldaps)"
5537    curl_rtsp_msg="no      (--enable-rtsp)"
5538    curl_rtmp_msg="no      (--with-librtmp)"
5539   curl_mtlnk_msg="no      (--with-libmetalink)"
5540
5541     init_ssl_msg=${curl_ssl_msg}
5542
5543 INITIAL_LDFLAGS=$LDFLAGS
5544 INITIAL_LIBS=$LIBS
5545
5546
5547 # Make sure we can run config.sub.
5548 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5549   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5550
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5552 $as_echo_n "checking build system type... " >&6; }
5553 if ${ac_cv_build+:} false; then :
5554   $as_echo_n "(cached) " >&6
5555 else
5556   ac_build_alias=$build_alias
5557 test "x$ac_build_alias" = x &&
5558   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5559 test "x$ac_build_alias" = x &&
5560   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5561 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5562   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5563
5564 fi
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5566 $as_echo "$ac_cv_build" >&6; }
5567 case $ac_cv_build in
5568 *-*-*) ;;
5569 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5570 esac
5571 build=$ac_cv_build
5572 ac_save_IFS=$IFS; IFS='-'
5573 set x $ac_cv_build
5574 shift
5575 build_cpu=$1
5576 build_vendor=$2
5577 shift; shift
5578 # Remember, the first character of IFS is used to create $*,
5579 # except with old shells:
5580 build_os=$*
5581 IFS=$ac_save_IFS
5582 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5583
5584
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5586 $as_echo_n "checking host system type... " >&6; }
5587 if ${ac_cv_host+:} false; then :
5588   $as_echo_n "(cached) " >&6
5589 else
5590   if test "x$host_alias" = x; then
5591   ac_cv_host=$ac_cv_build
5592 else
5593   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5594     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5595 fi
5596
5597 fi
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5599 $as_echo "$ac_cv_host" >&6; }
5600 case $ac_cv_host in
5601 *-*-*) ;;
5602 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5603 esac
5604 host=$ac_cv_host
5605 ac_save_IFS=$IFS; IFS='-'
5606 set x $ac_cv_host
5607 shift
5608 host_cpu=$1
5609 host_vendor=$2
5610 shift; shift
5611 # Remember, the first character of IFS is used to create $*,
5612 # except with old shells:
5613 host_os=$*
5614 IFS=$ac_save_IFS
5615 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5616
5617
5618
5619 cat >>confdefs.h <<_ACEOF
5620 #define OS "${host}"
5621 _ACEOF
5622
5623
5624
5625
5626
5627 curl_includes_inttypes="\
5628 /* includes start */
5629 #ifdef HAVE_SYS_TYPES_H
5630 # include <sys/types.h>
5631 #endif
5632 #ifdef HAVE_STDINT_H
5633 # include <stdint.h>
5634 #endif
5635 #ifdef HAVE_INTTYPES_H
5636 # include <inttypes.h>
5637 #endif
5638 /* includes end */"
5639   case $host_os in
5640     irix*)
5641       ac_cv_header_stdint_h="no"
5642       ;;
5643   esac
5644   for ac_header in sys/types.h stdint.h inttypes.h
5645 do :
5646   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5647 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_inttypes
5648 "
5649 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5650   cat >>confdefs.h <<_ACEOF
5651 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5652 _ACEOF
5653
5654 fi
5655
5656 done
5657
5658
5659
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5661 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5662 if ${ac_cv_path_GREP+:} false; then :
5663   $as_echo_n "(cached) " >&6
5664 else
5665   if test -z "$GREP"; then
5666   ac_path_GREP_found=false
5667   # Loop through the user's path and test for each of PROGNAME-LIST
5668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5670 do
5671   IFS=$as_save_IFS
5672   test -z "$as_dir" && as_dir=.
5673     for ac_prog in grep ggrep; do
5674     for ac_exec_ext in '' $ac_executable_extensions; do
5675       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5676       as_fn_executable_p "$ac_path_GREP" || continue
5677 # Check for GNU ac_path_GREP and select it if it is found.
5678   # Check for GNU $ac_path_GREP
5679 case `"$ac_path_GREP" --version 2>&1` in
5680 *GNU*)
5681   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5682 *)
5683   ac_count=0
5684   $as_echo_n 0123456789 >"conftest.in"
5685   while :
5686   do
5687     cat "conftest.in" "conftest.in" >"conftest.tmp"
5688     mv "conftest.tmp" "conftest.in"
5689     cp "conftest.in" "conftest.nl"
5690     $as_echo 'GREP' >> "conftest.nl"
5691     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5692     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5693     as_fn_arith $ac_count + 1 && ac_count=$as_val
5694     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5695       # Best one so far, save it but keep looking for a better one
5696       ac_cv_path_GREP="$ac_path_GREP"
5697       ac_path_GREP_max=$ac_count
5698     fi
5699     # 10*(2^10) chars as input seems more than enough
5700     test $ac_count -gt 10 && break
5701   done
5702   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5703 esac
5704
5705       $ac_path_GREP_found && break 3
5706     done
5707   done
5708   done
5709 IFS=$as_save_IFS
5710   if test -z "$ac_cv_path_GREP"; then
5711     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5712   fi
5713 else
5714   ac_cv_path_GREP=$GREP
5715 fi
5716
5717 fi
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5719 $as_echo "$ac_cv_path_GREP" >&6; }
5720  GREP="$ac_cv_path_GREP"
5721
5722
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5724 $as_echo_n "checking for egrep... " >&6; }
5725 if ${ac_cv_path_EGREP+:} false; then :
5726   $as_echo_n "(cached) " >&6
5727 else
5728   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5729    then ac_cv_path_EGREP="$GREP -E"
5730    else
5731      if test -z "$EGREP"; then
5732   ac_path_EGREP_found=false
5733   # Loop through the user's path and test for each of PROGNAME-LIST
5734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5736 do
5737   IFS=$as_save_IFS
5738   test -z "$as_dir" && as_dir=.
5739     for ac_prog in egrep; do
5740     for ac_exec_ext in '' $ac_executable_extensions; do
5741       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5742       as_fn_executable_p "$ac_path_EGREP" || continue
5743 # Check for GNU ac_path_EGREP and select it if it is found.
5744   # Check for GNU $ac_path_EGREP
5745 case `"$ac_path_EGREP" --version 2>&1` in
5746 *GNU*)
5747   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5748 *)
5749   ac_count=0
5750   $as_echo_n 0123456789 >"conftest.in"
5751   while :
5752   do
5753     cat "conftest.in" "conftest.in" >"conftest.tmp"
5754     mv "conftest.tmp" "conftest.in"
5755     cp "conftest.in" "conftest.nl"
5756     $as_echo 'EGREP' >> "conftest.nl"
5757     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5758     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5759     as_fn_arith $ac_count + 1 && ac_count=$as_val
5760     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5761       # Best one so far, save it but keep looking for a better one
5762       ac_cv_path_EGREP="$ac_path_EGREP"
5763       ac_path_EGREP_max=$ac_count
5764     fi
5765     # 10*(2^10) chars as input seems more than enough
5766     test $ac_count -gt 10 && break
5767   done
5768   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5769 esac
5770
5771       $ac_path_EGREP_found && break 3
5772     done
5773   done
5774   done
5775 IFS=$as_save_IFS
5776   if test -z "$ac_cv_path_EGREP"; then
5777     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5778   fi
5779 else
5780   ac_cv_path_EGREP=$EGREP
5781 fi
5782
5783    fi
5784 fi
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5786 $as_echo "$ac_cv_path_EGREP" >&6; }
5787  EGREP="$ac_cv_path_EGREP"
5788
5789
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5791 $as_echo_n "checking for ANSI C header files... " >&6; }
5792 if ${ac_cv_header_stdc+:} false; then :
5793   $as_echo_n "(cached) " >&6
5794 else
5795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h.  */
5797 #include <stdlib.h>
5798 #include <stdarg.h>
5799 #include <string.h>
5800 #include <float.h>
5801
5802 int main (void)
5803 {
5804
5805  ;
5806  return 0;
5807 }
5808 _ACEOF
5809 if ac_fn_c_try_compile "$LINENO"; then :
5810   ac_cv_header_stdc=yes
5811 else
5812   ac_cv_header_stdc=no
5813 fi
5814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5815
5816 if test $ac_cv_header_stdc = yes; then
5817   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h.  */
5820 #include <string.h>
5821
5822 _ACEOF
5823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5824   $EGREP "memchr" >/dev/null 2>&1; then :
5825
5826 else
5827   ac_cv_header_stdc=no
5828 fi
5829 rm -f conftest*
5830
5831 fi
5832
5833 if test $ac_cv_header_stdc = yes; then
5834   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h.  */
5837 #include <stdlib.h>
5838
5839 _ACEOF
5840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5841   $EGREP "free" >/dev/null 2>&1; then :
5842
5843 else
5844   ac_cv_header_stdc=no
5845 fi
5846 rm -f conftest*
5847
5848 fi
5849
5850 if test $ac_cv_header_stdc = yes; then
5851   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5852   if test "$cross_compiling" = yes; then :
5853   :
5854 else
5855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5856 /* end confdefs.h.  */
5857 #include <ctype.h>
5858 #include <stdlib.h>
5859 #if ((' ' & 0x0FF) == 0x020)
5860 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5861 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5862 #else
5863 # define ISLOWER(c) \
5864                    (('a' <= (c) && (c) <= 'i') \
5865                      || ('j' <= (c) && (c) <= 'r') \
5866                      || ('s' <= (c) && (c) <= 'z'))
5867 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5868 #endif
5869
5870 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5871 int
5872 main ()
5873 {
5874   int i;
5875   for (i = 0; i < 256; i++)
5876     if (XOR (islower (i), ISLOWER (i))
5877         || toupper (i) != TOUPPER (i))
5878       return 2;
5879   return 0;
5880 }
5881 _ACEOF
5882 if ac_fn_c_try_run "$LINENO"; then :
5883
5884 else
5885   ac_cv_header_stdc=no
5886 fi
5887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5888   conftest.$ac_objext conftest.beam conftest.$ac_ext
5889 fi
5890
5891 fi
5892 fi
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5894 $as_echo "$ac_cv_header_stdc" >&6; }
5895 if test $ac_cv_header_stdc = yes; then
5896
5897 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5898
5899 fi
5900
5901 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5902 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5903                   inttypes.h stdint.h unistd.h
5904 do :
5905   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5906 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5907 "
5908 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5909   cat >>confdefs.h <<_ACEOF
5910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5911 _ACEOF
5912
5913 fi
5914
5915 done
5916
5917
5918
5919     #
5920         #
5921   if test -z "$SED"; then
5922     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
5923   fi
5924   #
5925   # The cast to long int works around a bug in the HP C Compiler
5926 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5927 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5928 # This bug is HP SR number 8606223364.
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5930 $as_echo_n "checking size of long... " >&6; }
5931 if ${ac_cv_sizeof_long+:} false; then :
5932   $as_echo_n "(cached) " >&6
5933 else
5934   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5935
5936 else
5937   if test "$ac_cv_type_long" = yes; then
5938      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5940 as_fn_error 77 "cannot compute sizeof (long)
5941 See \`config.log' for more details" "$LINENO" 5; }
5942    else
5943      ac_cv_sizeof_long=0
5944    fi
5945 fi
5946
5947 fi
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5949 $as_echo "$ac_cv_sizeof_long" >&6; }
5950
5951
5952
5953 cat >>confdefs.h <<_ACEOF
5954 #define SIZEOF_LONG $ac_cv_sizeof_long
5955 _ACEOF
5956
5957
5958   # The cast to long int works around a bug in the HP C Compiler
5959 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5960 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5961 # This bug is HP SR number 8606223364.
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
5963 $as_echo_n "checking size of void*... " >&6; }
5964 if ${ac_cv_sizeof_voidp+:} false; then :
5965   $as_echo_n "(cached) " >&6
5966 else
5967   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
5968
5969 else
5970   if test "$ac_cv_type_voidp" = yes; then
5971      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5973 as_fn_error 77 "cannot compute sizeof (void*)
5974 See \`config.log' for more details" "$LINENO" 5; }
5975    else
5976      ac_cv_sizeof_voidp=0
5977    fi
5978 fi
5979
5980 fi
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
5982 $as_echo "$ac_cv_sizeof_voidp" >&6; }
5983
5984
5985
5986 cat >>confdefs.h <<_ACEOF
5987 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
5988 _ACEOF
5989
5990
5991   #
5992   if test -z "$ac_cv_sizeof_long" ||
5993     test "$ac_cv_sizeof_long" -eq "0"; then
5994     as_fn_error $? "cannot find out size of long." "$LINENO" 5
5995   fi
5996   if test -z "$ac_cv_sizeof_voidp" ||
5997      test "$ac_cv_sizeof_voidp" -eq "0"; then
5998     as_fn_error $? "cannot find out size of void*." "$LINENO" 5
5999   fi
6000   #
6001   x_LP64_long=""
6002   x_LP32_long=""
6003   x_LP16_long=""
6004   #
6005   if test "$ac_cv_sizeof_long" -eq "8" &&
6006      test "$ac_cv_sizeof_voidp" -ge "8"; then
6007     x_LP64_long="long"
6008   elif test "$ac_cv_sizeof_long" -eq "4" &&
6009        test "$ac_cv_sizeof_voidp" -ge "4"; then
6010     x_LP32_long="long"
6011   elif test "$ac_cv_sizeof_long" -eq "2" &&
6012        test "$ac_cv_sizeof_voidp" -ge "2"; then
6013     x_LP16_long="long"
6014   fi
6015   #
6016     #
6017   curl_typeof_curl_off_t="unknown"
6018   curl_sizeof_curl_off_t="unknown"
6019   curl_format_curl_off_t="unknown"
6020   curl_format_curl_off_tu="unknown"
6021   #
6022   if test "$curl_typeof_curl_off_t" = "unknown"; then
6023     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit curl_off_t data type" >&5
6024 $as_echo_n "checking for 64-bit curl_off_t data type... " >&6; }
6025     for t8 in          \
6026       "$x_LP64_long"   \
6027       'int64_t'        \
6028       '__int64'        \
6029       'long long'      \
6030       '__longlong'     \
6031       '__longlong_t'   ; do
6032
6033     if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t8"; then
6034     tmp_includes=""
6035     tmp_source=""
6036     tmp_fmt=""
6037     case `echo "$t8" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6038       int64_t)
6039         tmp_includes="$curl_includes_inttypes"
6040         tmp_source="char f[] = PRId64;"
6041         tmp_fmt="PRId64"
6042         ;;
6043       int32_t)
6044         tmp_includes="$curl_includes_inttypes"
6045         tmp_source="char f[] = PRId32;"
6046         tmp_fmt="PRId32"
6047         ;;
6048       int16_t)
6049         tmp_includes="$curl_includes_inttypes"
6050         tmp_source="char f[] = PRId16;"
6051         tmp_fmt="PRId16"
6052         ;;
6053     esac
6054     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h.  */
6056
6057
6058         $tmp_includes
6059         typedef $t8 curl_off_t;
6060         typedef char dummy_arr[sizeof(curl_off_t) == 8 ? 1 : -1];
6061
6062 int main (void)
6063 {
6064
6065         $tmp_source
6066         curl_off_t dummy;
6067
6068  ;
6069  return 0;
6070 }
6071
6072 _ACEOF
6073 if ac_fn_c_try_compile "$LINENO"; then :
6074
6075       if test -z "$tmp_fmt"; then
6076         curl_typeof_curl_off_t="$t8"
6077         curl_sizeof_curl_off_t="8"
6078       else
6079
6080   as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6081   as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6082   if test -z "$SED"; then
6083     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6084   fi
6085   if test -z "$GREP"; then
6086     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6087   fi
6088
6089   tmp_exp=""
6090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091 /* end confdefs.h.  */
6092
6093     $curl_includes_inttypes
6094 #ifdef $tmp_fmt
6095 CURL_DEF_TOKEN $tmp_fmt
6096 #endif
6097
6098
6099 _ACEOF
6100 if ac_fn_c_try_cpp "$LINENO"; then :
6101
6102     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6103       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6104       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6105       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6106     if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6107       tmp_exp=""
6108     fi
6109
6110 fi
6111 rm -f conftest.err conftest.i conftest.$ac_ext
6112   if test -z "$tmp_exp"; then
6113     eval "$as_ac_HaveDef=no"
6114
6115   else
6116     eval "$as_ac_HaveDef=yes"
6117     eval "$as_ac_Def=\$tmp_exp"
6118
6119   fi
6120
6121         as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6122         as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6123         if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6124           curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6125           curl_typeof_curl_off_t="$t8"
6126           curl_sizeof_curl_off_t="8"
6127         fi
6128                       fi
6129
6130 fi
6131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6132   fi
6133
6134     done
6135     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6136 $as_echo "$curl_typeof_curl_off_t" >&6; }
6137   fi
6138   if test "$curl_typeof_curl_off_t" = "unknown"; then
6139     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit curl_off_t data type" >&5
6140 $as_echo_n "checking for 32-bit curl_off_t data type... " >&6; }
6141     for t4 in          \
6142       "$x_LP32_long"   \
6143       'int32_t'        \
6144       '__int32'        \
6145       'int'            ; do
6146
6147     if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t4"; then
6148     tmp_includes=""
6149     tmp_source=""
6150     tmp_fmt=""
6151     case `echo "$t4" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6152       int64_t)
6153         tmp_includes="$curl_includes_inttypes"
6154         tmp_source="char f[] = PRId64;"
6155         tmp_fmt="PRId64"
6156         ;;
6157       int32_t)
6158         tmp_includes="$curl_includes_inttypes"
6159         tmp_source="char f[] = PRId32;"
6160         tmp_fmt="PRId32"
6161         ;;
6162       int16_t)
6163         tmp_includes="$curl_includes_inttypes"
6164         tmp_source="char f[] = PRId16;"
6165         tmp_fmt="PRId16"
6166         ;;
6167     esac
6168     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6169 /* end confdefs.h.  */
6170
6171
6172         $tmp_includes
6173         typedef $t4 curl_off_t;
6174         typedef char dummy_arr[sizeof(curl_off_t) == 4 ? 1 : -1];
6175
6176 int main (void)
6177 {
6178
6179         $tmp_source
6180         curl_off_t dummy;
6181
6182  ;
6183  return 0;
6184 }
6185
6186 _ACEOF
6187 if ac_fn_c_try_compile "$LINENO"; then :
6188
6189       if test -z "$tmp_fmt"; then
6190         curl_typeof_curl_off_t="$t4"
6191         curl_sizeof_curl_off_t="4"
6192       else
6193
6194   as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6195   as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6196   if test -z "$SED"; then
6197     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6198   fi
6199   if test -z "$GREP"; then
6200     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6201   fi
6202
6203   tmp_exp=""
6204   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205 /* end confdefs.h.  */
6206
6207     $curl_includes_inttypes
6208 #ifdef $tmp_fmt
6209 CURL_DEF_TOKEN $tmp_fmt
6210 #endif
6211
6212
6213 _ACEOF
6214 if ac_fn_c_try_cpp "$LINENO"; then :
6215
6216     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6217       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6218       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6219       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6220     if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6221       tmp_exp=""
6222     fi
6223
6224 fi
6225 rm -f conftest.err conftest.i conftest.$ac_ext
6226   if test -z "$tmp_exp"; then
6227     eval "$as_ac_HaveDef=no"
6228
6229   else
6230     eval "$as_ac_HaveDef=yes"
6231     eval "$as_ac_Def=\$tmp_exp"
6232
6233   fi
6234
6235         as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6236         as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6237         if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6238           curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6239           curl_typeof_curl_off_t="$t4"
6240           curl_sizeof_curl_off_t="4"
6241         fi
6242                       fi
6243
6244 fi
6245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6246   fi
6247
6248     done
6249     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6250 $as_echo "$curl_typeof_curl_off_t" >&6; }
6251   fi
6252   if test "$curl_typeof_curl_off_t" = "unknown"; then
6253     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16-bit curl_off_t data type" >&5
6254 $as_echo_n "checking for 16-bit curl_off_t data type... " >&6; }
6255     for t2 in          \
6256       "$x_LP16_long"   \
6257       'int16_t'        \
6258       '__int16'        \
6259       'int'            ; do
6260
6261     if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t2"; then
6262     tmp_includes=""
6263     tmp_source=""
6264     tmp_fmt=""
6265     case `echo "$t2" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6266       int64_t)
6267         tmp_includes="$curl_includes_inttypes"
6268         tmp_source="char f[] = PRId64;"
6269         tmp_fmt="PRId64"
6270         ;;
6271       int32_t)
6272         tmp_includes="$curl_includes_inttypes"
6273         tmp_source="char f[] = PRId32;"
6274         tmp_fmt="PRId32"
6275         ;;
6276       int16_t)
6277         tmp_includes="$curl_includes_inttypes"
6278         tmp_source="char f[] = PRId16;"
6279         tmp_fmt="PRId16"
6280         ;;
6281     esac
6282     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6283 /* end confdefs.h.  */
6284
6285
6286         $tmp_includes
6287         typedef $t2 curl_off_t;
6288         typedef char dummy_arr[sizeof(curl_off_t) == 2 ? 1 : -1];
6289
6290 int main (void)
6291 {
6292
6293         $tmp_source
6294         curl_off_t dummy;
6295
6296  ;
6297  return 0;
6298 }
6299
6300 _ACEOF
6301 if ac_fn_c_try_compile "$LINENO"; then :
6302
6303       if test -z "$tmp_fmt"; then
6304         curl_typeof_curl_off_t="$t2"
6305         curl_sizeof_curl_off_t="2"
6306       else
6307
6308   as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6309   as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6310   if test -z "$SED"; then
6311     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6312   fi
6313   if test -z "$GREP"; then
6314     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6315   fi
6316
6317   tmp_exp=""
6318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319 /* end confdefs.h.  */
6320
6321     $curl_includes_inttypes
6322 #ifdef $tmp_fmt
6323 CURL_DEF_TOKEN $tmp_fmt
6324 #endif
6325
6326
6327 _ACEOF
6328 if ac_fn_c_try_cpp "$LINENO"; then :
6329
6330     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6331       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6332       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6333       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6334     if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6335       tmp_exp=""
6336     fi
6337
6338 fi
6339 rm -f conftest.err conftest.i conftest.$ac_ext
6340   if test -z "$tmp_exp"; then
6341     eval "$as_ac_HaveDef=no"
6342
6343   else
6344     eval "$as_ac_HaveDef=yes"
6345     eval "$as_ac_Def=\$tmp_exp"
6346
6347   fi
6348
6349         as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6350         as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6351         if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6352           curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6353           curl_typeof_curl_off_t="$t2"
6354           curl_sizeof_curl_off_t="2"
6355         fi
6356                       fi
6357
6358 fi
6359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6360   fi
6361
6362     done
6363     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6364 $as_echo "$curl_typeof_curl_off_t" >&6; }
6365   fi
6366   if test "$curl_typeof_curl_off_t" = "unknown"; then
6367     as_fn_error $? "cannot find data type for curl_off_t." "$LINENO" 5
6368   fi
6369   #
6370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
6371 $as_echo_n "checking size of curl_off_t... " >&6; }
6372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_off_t" >&5
6373 $as_echo "$curl_sizeof_curl_off_t" >&6; }
6374   #
6375   { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for curl_off_t" >&5
6376 $as_echo_n "checking formatting string directive for curl_off_t... " >&6; }
6377   if test "$curl_format_curl_off_t" != "unknown"; then
6378     x_pull_headers="yes"
6379     curl_format_curl_off_t=`echo "$curl_format_curl_off_t" | "$SED" 's/["]//g'`
6380     curl_format_curl_off_tu=`echo "$curl_format_curl_off_t" | "$SED" 's/i$/u/'`
6381     curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/d$/u/'`
6382     curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/D$/U/'`
6383   else
6384     x_pull_headers="no"
6385     case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6386       long_long | __longlong | __longlong_t)
6387         curl_format_curl_off_t="lld"
6388         curl_format_curl_off_tu="llu"
6389         ;;
6390       long)
6391         curl_format_curl_off_t="ld"
6392         curl_format_curl_off_tu="lu"
6393         ;;
6394       int)
6395         curl_format_curl_off_t="d"
6396         curl_format_curl_off_tu="u"
6397         ;;
6398       __int64)
6399         curl_format_curl_off_t="I64d"
6400         curl_format_curl_off_tu="I64u"
6401         ;;
6402       __int32)
6403         curl_format_curl_off_t="I32d"
6404         curl_format_curl_off_tu="I32u"
6405         ;;
6406       __int16)
6407         curl_format_curl_off_t="I16d"
6408         curl_format_curl_off_tu="I16u"
6409         ;;
6410       *)
6411         as_fn_error $? "cannot find print format string for curl_off_t." "$LINENO" 5
6412         ;;
6413     esac
6414   fi
6415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_t\"" >&5
6416 $as_echo "\"$curl_format_curl_off_t\"" >&6; }
6417   #
6418   { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for unsigned curl_off_t" >&5
6419 $as_echo_n "checking formatting string directive for unsigned curl_off_t... " >&6; }
6420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_tu\"" >&5
6421 $as_echo "\"$curl_format_curl_off_tu\"" >&6; }
6422   #
6423
6424     { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for curl_off_t" >&5
6425 $as_echo_n "checking constant suffix string for curl_off_t... " >&6; }
6426   #
6427   curl_suffix_curl_off_t="unknown"
6428   curl_suffix_curl_off_tu="unknown"
6429   #
6430   case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6431     long_long | __longlong | __longlong_t)
6432       tst_suffixes="LL::"
6433       ;;
6434     long)
6435       tst_suffixes="L::"
6436       ;;
6437     int)
6438       tst_suffixes="::"
6439       ;;
6440     __int64 | int64_t)
6441       tst_suffixes="LL:i64::"
6442       ;;
6443     __int32 | int32_t)
6444       tst_suffixes="L:i32::"
6445       ;;
6446     __int16 | int16_t)
6447       tst_suffixes="L:i16::"
6448       ;;
6449     *)
6450       as_fn_error $? "unexpected data type $curl_typeof_curl_off_t" "$LINENO" 5
6451       ;;
6452   esac
6453   #
6454   old_IFS=$IFS; IFS=':'
6455   for tmp_ssuf in $tst_suffixes ; do
6456     IFS=$old_IFS
6457     if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6458       case $tmp_ssuf in
6459         i64 | i32 | i16)
6460           tmp_usuf="u$tmp_ssuf"
6461           ;;
6462         LL | L)
6463           tmp_usuf="U$tmp_ssuf"
6464           ;;
6465         *)
6466           tmp_usuf=""
6467           ;;
6468       esac
6469       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h.  */
6471
6472
6473           $curl_includes_inttypes
6474           typedef $curl_typeof_curl_off_t new_t;
6475
6476 int main (void)
6477 {
6478
6479           new_t s1;
6480           new_t s2;
6481           s1 = -10$tmp_ssuf ;
6482           s2 =  20$tmp_ssuf ;
6483           if(s1 > s2)
6484             return 1;
6485
6486  ;
6487  return 0;
6488 }
6489
6490 _ACEOF
6491 if ac_fn_c_try_compile "$LINENO"; then :
6492
6493         curl_suffix_curl_off_t="$tmp_ssuf"
6494         curl_suffix_curl_off_tu="$tmp_usuf"
6495
6496 fi
6497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6498     fi
6499   done
6500   IFS=$old_IFS
6501   #
6502   if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6503     as_fn_error $? "cannot find constant suffix string for curl_off_t." "$LINENO" 5
6504   else
6505     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_t" >&5
6506 $as_echo "$curl_suffix_curl_off_t" >&6; }
6507     { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for unsigned curl_off_t" >&5
6508 $as_echo_n "checking constant suffix string for unsigned curl_off_t... " >&6; }
6509     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_tu" >&5
6510 $as_echo "$curl_suffix_curl_off_tu" >&6; }
6511   fi
6512   #
6513
6514   #
6515   if test "$x_pull_headers" = "yes"; then
6516     if test "x$ac_cv_header_sys_types_h" = "xyes"; then
6517
6518 cat >>confdefs.h <<_EOF
6519 #define CURL_PULL_SYS_TYPES_H 1
6520 _EOF
6521
6522     fi
6523     if test "x$ac_cv_header_stdint_h" = "xyes"; then
6524
6525 cat >>confdefs.h <<_EOF
6526 #define CURL_PULL_STDINT_H 1
6527 _EOF
6528
6529     fi
6530     if test "x$ac_cv_header_inttypes_h" = "xyes"; then
6531
6532 cat >>confdefs.h <<_EOF
6533 #define CURL_PULL_INTTYPES_H 1
6534 _EOF
6535
6536     fi
6537   fi
6538   #
6539
6540 cat >>confdefs.h <<_EOF
6541 #define CURL_TYPEOF_CURL_OFF_T $curl_typeof_curl_off_t
6542 _EOF
6543
6544
6545 cat >>confdefs.h <<_EOF
6546 #define CURL_FORMAT_CURL_OFF_T "$curl_format_curl_off_t"
6547 _EOF
6548
6549
6550 cat >>confdefs.h <<_EOF
6551 #define CURL_FORMAT_CURL_OFF_TU "$curl_format_curl_off_tu"
6552 _EOF
6553
6554
6555 cat >>confdefs.h <<_EOF
6556 #define CURL_FORMAT_OFF_T "%$curl_format_curl_off_t"
6557 _EOF
6558
6559
6560 cat >>confdefs.h <<_EOF
6561 #define CURL_SIZEOF_CURL_OFF_T $curl_sizeof_curl_off_t
6562 _EOF
6563
6564
6565 cat >>confdefs.h <<_EOF
6566 #define CURL_SUFFIX_CURL_OFF_T $curl_suffix_curl_off_t
6567 _EOF
6568
6569
6570 cat >>confdefs.h <<_EOF
6571 #define CURL_SUFFIX_CURL_OFF_TU $curl_suffix_curl_off_tu
6572 _EOF
6573
6574   #
6575
6576
6577
6578
6579         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6580 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582 /* end confdefs.h.  */
6583
6584 #ifdef _AIX
6585    yes_this_is_aix
6586 #endif
6587
6588 _ACEOF
6589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6590   $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6591
6592     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6593 $as_echo "yes" >&6; }
6594     $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6595
6596
6597 else
6598
6599     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6600 $as_echo "no" >&6; }
6601
6602 fi
6603 rm -f conftest*
6604
6605
6606
6607
6608     #
6609   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6610 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h.  */
6613
6614
6615
6616 int main (void)
6617 {
6618
6619 #ifdef _THREAD_SAFE
6620       int dummy=1;
6621 #else
6622       force compilation error
6623 #endif
6624
6625  ;
6626  return 0;
6627 }
6628
6629 _ACEOF
6630 if ac_fn_c_try_compile "$LINENO"; then :
6631
6632     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6633 $as_echo "yes" >&6; }
6634     tmp_thread_safe_initially_defined="yes"
6635
6636 else
6637
6638     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6639 $as_echo "no" >&6; }
6640     tmp_thread_safe_initially_defined="no"
6641
6642 fi
6643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6644   #
6645   if test "$tmp_thread_safe_initially_defined" = "no"; then
6646     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6647 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6648
6649   case $host_os in
6650     aix[123].* | aix4.[012].*)
6651             tmp_need_thread_safe="no"
6652       ;;
6653     aix*)
6654             tmp_need_thread_safe="yes"
6655       ;;
6656     *)
6657       tmp_need_thread_safe="no"
6658       ;;
6659   esac
6660
6661     if test "$tmp_need_thread_safe" = "yes"; then
6662       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6663 $as_echo "yes" >&6; }
6664     else
6665       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6667     fi
6668   fi
6669   #
6670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6671 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6672   if test "$tmp_thread_safe_initially_defined" = "yes" ||
6673     test "$tmp_need_thread_safe" = "yes"; then
6674
6675
6676 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6677
6678 cat >>confdefs.h <<_EOF
6679 #ifndef _THREAD_SAFE
6680 #  define _THREAD_SAFE
6681 #endif
6682 _EOF
6683
6684     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6685 $as_echo "yes" >&6; }
6686   else
6687     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6688 $as_echo "no" >&6; }
6689   fi
6690   #
6691
6692
6693     #
6694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6695 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h.  */
6698
6699
6700
6701 int main (void)
6702 {
6703
6704 #ifdef _REENTRANT
6705       int dummy=1;
6706 #else
6707       force compilation error
6708 #endif
6709
6710  ;
6711  return 0;
6712 }
6713
6714 _ACEOF
6715 if ac_fn_c_try_compile "$LINENO"; then :
6716
6717     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6718 $as_echo "yes" >&6; }
6719     tmp_reentrant_initially_defined="yes"
6720
6721 else
6722
6723     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724 $as_echo "no" >&6; }
6725     tmp_reentrant_initially_defined="no"
6726
6727 fi
6728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6729   #
6730   if test "$tmp_reentrant_initially_defined" = "no"; then
6731     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6732 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6733
6734   case $host_os in
6735     solaris*)
6736       tmp_need_reentrant="yes"
6737       ;;
6738     *)
6739       tmp_need_reentrant="no"
6740       ;;
6741   esac
6742
6743     if test "$tmp_need_reentrant" = "no"; then
6744
6745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h.  */
6747
6748
6749 #include <errno.h>
6750
6751 int main (void)
6752 {
6753
6754       if(0 != errno)
6755         return 1;
6756
6757  ;
6758  return 0;
6759 }
6760
6761 _ACEOF
6762 if ac_fn_c_try_compile "$LINENO"; then :
6763
6764     tmp_errno="yes"
6765
6766 else
6767
6768     tmp_errno="no"
6769
6770 fi
6771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6772   if test "$tmp_errno" = "yes"; then
6773     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6774 /* end confdefs.h.  */
6775
6776
6777 #include <errno.h>
6778
6779 int main (void)
6780 {
6781
6782 #ifdef errno
6783         int dummy=1;
6784 #else
6785         force compilation error
6786 #endif
6787
6788  ;
6789  return 0;
6790 }
6791
6792 _ACEOF
6793 if ac_fn_c_try_compile "$LINENO"; then :
6794
6795       tmp_errno="errno_macro_defined"
6796
6797 else
6798
6799       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h.  */
6801
6802
6803 #define _REENTRANT
6804 #include <errno.h>
6805
6806 int main (void)
6807 {
6808
6809 #ifdef errno
6810           int dummy=1;
6811 #else
6812           force compilation error
6813 #endif
6814
6815  ;
6816  return 0;
6817 }
6818
6819 _ACEOF
6820 if ac_fn_c_try_compile "$LINENO"; then :
6821
6822         tmp_errno="errno_macro_needs_reentrant"
6823         tmp_need_reentrant="yes"
6824
6825 fi
6826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6827
6828 fi
6829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6830   fi
6831
6832     fi
6833     if test "$tmp_need_reentrant" = "no"; then
6834
6835   if test "$tmp_need_reentrant" = "no"; then
6836
6837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h.  */
6839
6840
6841 #define gmtime_r innocuous_gmtime_r
6842 #ifdef __STDC__
6843 # include <limits.h>
6844 #else
6845 # include <assert.h>
6846 #endif
6847 #undef gmtime_r
6848 #ifdef __cplusplus
6849 extern "C"
6850 #endif
6851 char gmtime_r ();
6852 #if defined __stub_gmtime_r || defined __stub___gmtime_r
6853 choke me
6854 #endif
6855
6856 int main (void)
6857 {
6858 return gmtime_r ();
6859  ;
6860  return 0;
6861 }
6862
6863 _ACEOF
6864 if ac_fn_c_try_link "$LINENO"; then :
6865
6866     tmp_gmtime_r="yes"
6867
6868 else
6869
6870     tmp_gmtime_r="no"
6871
6872 fi
6873 rm -f core conftest.err conftest.$ac_objext \
6874     conftest$ac_exeext conftest.$ac_ext
6875   if test "$tmp_gmtime_r" = "yes"; then
6876     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877 /* end confdefs.h.  */
6878
6879 #include <sys/types.h>
6880 #include <time.h>
6881
6882 _ACEOF
6883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6884   $EGREP "gmtime_r" >/dev/null 2>&1; then :
6885
6886       tmp_gmtime_r="proto_declared"
6887
6888 else
6889
6890       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891 /* end confdefs.h.  */
6892
6893 #define _REENTRANT
6894 #include <sys/types.h>
6895 #include <time.h>
6896
6897 _ACEOF
6898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6899   $EGREP "gmtime_r" >/dev/null 2>&1; then :
6900
6901         tmp_gmtime_r="proto_needs_reentrant"
6902         tmp_need_reentrant="yes"
6903
6904 fi
6905 rm -f conftest*
6906
6907
6908 fi
6909 rm -f conftest*
6910
6911   fi
6912
6913   fi
6914   if test "$tmp_need_reentrant" = "no"; then
6915
6916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6917 /* end confdefs.h.  */
6918
6919
6920 #define localtime_r innocuous_localtime_r
6921 #ifdef __STDC__
6922 # include <limits.h>
6923 #else
6924 # include <assert.h>
6925 #endif
6926 #undef localtime_r
6927 #ifdef __cplusplus
6928 extern "C"
6929 #endif
6930 char localtime_r ();
6931 #if defined __stub_localtime_r || defined __stub___localtime_r
6932 choke me
6933 #endif
6934
6935 int main (void)
6936 {
6937 return localtime_r ();
6938  ;
6939  return 0;
6940 }
6941
6942 _ACEOF
6943 if ac_fn_c_try_link "$LINENO"; then :
6944
6945     tmp_localtime_r="yes"
6946
6947 else
6948
6949     tmp_localtime_r="no"
6950
6951 fi
6952 rm -f core conftest.err conftest.$ac_objext \
6953     conftest$ac_exeext conftest.$ac_ext
6954   if test "$tmp_localtime_r" = "yes"; then
6955     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h.  */
6957
6958 #include <sys/types.h>
6959 #include <time.h>
6960
6961 _ACEOF
6962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6963   $EGREP "localtime_r" >/dev/null 2>&1; then :
6964
6965       tmp_localtime_r="proto_declared"
6966
6967 else
6968
6969       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h.  */
6971
6972 #define _REENTRANT
6973 #include <sys/types.h>
6974 #include <time.h>
6975
6976 _ACEOF
6977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6978   $EGREP "localtime_r" >/dev/null 2>&1; then :
6979
6980         tmp_localtime_r="proto_needs_reentrant"
6981         tmp_need_reentrant="yes"
6982
6983 fi
6984 rm -f conftest*
6985
6986
6987 fi
6988 rm -f conftest*
6989
6990   fi
6991
6992   fi
6993   if test "$tmp_need_reentrant" = "no"; then
6994
6995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h.  */
6997
6998
6999 #define strerror_r innocuous_strerror_r
7000 #ifdef __STDC__
7001 # include <limits.h>
7002 #else
7003 # include <assert.h>
7004 #endif
7005 #undef strerror_r
7006 #ifdef __cplusplus
7007 extern "C"
7008 #endif
7009 char strerror_r ();
7010 #if defined __stub_strerror_r || defined __stub___strerror_r
7011 choke me
7012 #endif
7013
7014 int main (void)
7015 {
7016 return strerror_r ();
7017  ;
7018  return 0;
7019 }
7020
7021 _ACEOF
7022 if ac_fn_c_try_link "$LINENO"; then :
7023
7024     tmp_strerror_r="yes"
7025
7026 else
7027
7028     tmp_strerror_r="no"
7029
7030 fi
7031 rm -f core conftest.err conftest.$ac_objext \
7032     conftest$ac_exeext conftest.$ac_ext
7033   if test "$tmp_strerror_r" = "yes"; then
7034     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h.  */
7036
7037 #include <sys/types.h>
7038 #include <string.h>
7039
7040 _ACEOF
7041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7042   $EGREP "strerror_r" >/dev/null 2>&1; then :
7043
7044       tmp_strerror_r="proto_declared"
7045
7046 else
7047
7048       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h.  */
7050
7051 #define _REENTRANT
7052 #include <sys/types.h>
7053 #include <string.h>
7054
7055 _ACEOF
7056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7057   $EGREP "strerror_r" >/dev/null 2>&1; then :
7058
7059         tmp_strerror_r="proto_needs_reentrant"
7060         tmp_need_reentrant="yes"
7061
7062 fi
7063 rm -f conftest*
7064
7065
7066 fi
7067 rm -f conftest*
7068
7069   fi
7070
7071   fi
7072   if test "$tmp_need_reentrant" = "no"; then
7073
7074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h.  */
7076
7077
7078 #define strtok_r innocuous_strtok_r
7079 #ifdef __STDC__
7080 # include <limits.h>
7081 #else
7082 # include <assert.h>
7083 #endif
7084 #undef strtok_r
7085 #ifdef __cplusplus
7086 extern "C"
7087 #endif
7088 char strtok_r ();
7089 #if defined __stub_strtok_r || defined __stub___strtok_r
7090 choke me
7091 #endif
7092
7093 int main (void)
7094 {
7095 return strtok_r ();
7096  ;
7097  return 0;
7098 }
7099
7100 _ACEOF
7101 if ac_fn_c_try_link "$LINENO"; then :
7102
7103     tmp_strtok_r="yes"
7104
7105 else
7106
7107     tmp_strtok_r="no"
7108
7109 fi
7110 rm -f core conftest.err conftest.$ac_objext \
7111     conftest$ac_exeext conftest.$ac_ext
7112   if test "$tmp_strtok_r" = "yes"; then
7113     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114 /* end confdefs.h.  */
7115
7116 #include <sys/types.h>
7117 #include <string.h>
7118
7119 _ACEOF
7120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7121   $EGREP "strtok_r" >/dev/null 2>&1; then :
7122
7123       tmp_strtok_r="proto_declared"
7124
7125 else
7126
7127       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128 /* end confdefs.h.  */
7129
7130 #define _REENTRANT
7131 #include <sys/types.h>
7132 #include <string.h>
7133
7134 _ACEOF
7135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7136   $EGREP "strtok_r" >/dev/null 2>&1; then :
7137
7138         tmp_strtok_r="proto_needs_reentrant"
7139         tmp_need_reentrant="yes"
7140
7141 fi
7142 rm -f conftest*
7143
7144
7145 fi
7146 rm -f conftest*
7147
7148   fi
7149
7150   fi
7151   if test "$tmp_need_reentrant" = "no"; then
7152
7153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154 /* end confdefs.h.  */
7155
7156
7157 #define inet_ntoa_r innocuous_inet_ntoa_r
7158 #ifdef __STDC__
7159 # include <limits.h>
7160 #else
7161 # include <assert.h>
7162 #endif
7163 #undef inet_ntoa_r
7164 #ifdef __cplusplus
7165 extern "C"
7166 #endif
7167 char inet_ntoa_r ();
7168 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
7169 choke me
7170 #endif
7171
7172 int main (void)
7173 {
7174 return inet_ntoa_r ();
7175  ;
7176  return 0;
7177 }
7178
7179 _ACEOF
7180 if ac_fn_c_try_link "$LINENO"; then :
7181
7182     tmp_inet_ntoa_r="yes"
7183
7184 else
7185
7186     tmp_inet_ntoa_r="no"
7187
7188 fi
7189 rm -f core conftest.err conftest.$ac_objext \
7190     conftest$ac_exeext conftest.$ac_ext
7191   if test "$tmp_inet_ntoa_r" = "yes"; then
7192     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7193 /* end confdefs.h.  */
7194
7195 #include <sys/types.h>
7196 #include <sys/socket.h>
7197 #include <netinet/in.h>
7198 #include <arpa/inet.h>
7199
7200 _ACEOF
7201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7202   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7203
7204       tmp_inet_ntoa_r="proto_declared"
7205
7206 else
7207
7208       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209 /* end confdefs.h.  */
7210
7211 #define _REENTRANT
7212 #include <sys/types.h>
7213 #include <sys/socket.h>
7214 #include <netinet/in.h>
7215 #include <arpa/inet.h>
7216
7217 _ACEOF
7218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7219   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7220
7221         tmp_inet_ntoa_r="proto_needs_reentrant"
7222         tmp_need_reentrant="yes"
7223
7224 fi
7225 rm -f conftest*
7226
7227
7228 fi
7229 rm -f conftest*
7230
7231   fi
7232
7233   fi
7234   if test "$tmp_need_reentrant" = "no"; then
7235
7236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237 /* end confdefs.h.  */
7238
7239
7240 #define gethostbyaddr_r innocuous_gethostbyaddr_r
7241 #ifdef __STDC__
7242 # include <limits.h>
7243 #else
7244 # include <assert.h>
7245 #endif
7246 #undef gethostbyaddr_r
7247 #ifdef __cplusplus
7248 extern "C"
7249 #endif
7250 char gethostbyaddr_r ();
7251 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
7252 choke me
7253 #endif
7254
7255 int main (void)
7256 {
7257 return gethostbyaddr_r ();
7258  ;
7259  return 0;
7260 }
7261
7262 _ACEOF
7263 if ac_fn_c_try_link "$LINENO"; then :
7264
7265     tmp_gethostbyaddr_r="yes"
7266
7267 else
7268
7269     tmp_gethostbyaddr_r="no"
7270
7271 fi
7272 rm -f core conftest.err conftest.$ac_objext \
7273     conftest$ac_exeext conftest.$ac_ext
7274   if test "$tmp_gethostbyaddr_r" = "yes"; then
7275     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h.  */
7277
7278 #include <sys/types.h>
7279 #include <netdb.h>
7280
7281 _ACEOF
7282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7283   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7284
7285       tmp_gethostbyaddr_r="proto_declared"
7286
7287 else
7288
7289       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290 /* end confdefs.h.  */
7291
7292 #define _REENTRANT
7293 #include <sys/types.h>
7294 #include <netdb.h>
7295
7296 _ACEOF
7297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7298   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7299
7300         tmp_gethostbyaddr_r="proto_needs_reentrant"
7301         tmp_need_reentrant="yes"
7302
7303 fi
7304 rm -f conftest*
7305
7306
7307 fi
7308 rm -f conftest*
7309
7310   fi
7311
7312   fi
7313   if test "$tmp_need_reentrant" = "no"; then
7314
7315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316 /* end confdefs.h.  */
7317
7318
7319 #define gethostbyname_r innocuous_gethostbyname_r
7320 #ifdef __STDC__
7321 # include <limits.h>
7322 #else
7323 # include <assert.h>
7324 #endif
7325 #undef gethostbyname_r
7326 #ifdef __cplusplus
7327 extern "C"
7328 #endif
7329 char gethostbyname_r ();
7330 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7331 choke me
7332 #endif
7333
7334 int main (void)
7335 {
7336 return gethostbyname_r ();
7337  ;
7338  return 0;
7339 }
7340
7341 _ACEOF
7342 if ac_fn_c_try_link "$LINENO"; then :
7343
7344     tmp_gethostbyname_r="yes"
7345
7346 else
7347
7348     tmp_gethostbyname_r="no"
7349
7350 fi
7351 rm -f core conftest.err conftest.$ac_objext \
7352     conftest$ac_exeext conftest.$ac_ext
7353   if test "$tmp_gethostbyname_r" = "yes"; then
7354     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355 /* end confdefs.h.  */
7356
7357 #include <sys/types.h>
7358 #include <netdb.h>
7359
7360 _ACEOF
7361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7362   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7363
7364       tmp_gethostbyname_r="proto_declared"
7365
7366 else
7367
7368       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7369 /* end confdefs.h.  */
7370
7371 #define _REENTRANT
7372 #include <sys/types.h>
7373 #include <netdb.h>
7374
7375 _ACEOF
7376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7377   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7378
7379         tmp_gethostbyname_r="proto_needs_reentrant"
7380         tmp_need_reentrant="yes"
7381
7382 fi
7383 rm -f conftest*
7384
7385
7386 fi
7387 rm -f conftest*
7388
7389   fi
7390
7391   fi
7392   if test "$tmp_need_reentrant" = "no"; then
7393
7394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7395 /* end confdefs.h.  */
7396
7397
7398 #define getprotobyname_r innocuous_getprotobyname_r
7399 #ifdef __STDC__
7400 # include <limits.h>
7401 #else
7402 # include <assert.h>
7403 #endif
7404 #undef getprotobyname_r
7405 #ifdef __cplusplus
7406 extern "C"
7407 #endif
7408 char getprotobyname_r ();
7409 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7410 choke me
7411 #endif
7412
7413 int main (void)
7414 {
7415 return getprotobyname_r ();
7416  ;
7417  return 0;
7418 }
7419
7420 _ACEOF
7421 if ac_fn_c_try_link "$LINENO"; then :
7422
7423     tmp_getprotobyname_r="yes"
7424
7425 else
7426
7427     tmp_getprotobyname_r="no"
7428
7429 fi
7430 rm -f core conftest.err conftest.$ac_objext \
7431     conftest$ac_exeext conftest.$ac_ext
7432   if test "$tmp_getprotobyname_r" = "yes"; then
7433     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h.  */
7435
7436 #include <sys/types.h>
7437 #include <netdb.h>
7438
7439 _ACEOF
7440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7441   $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7442
7443       tmp_getprotobyname_r="proto_declared"
7444
7445 else
7446
7447       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448 /* end confdefs.h.  */
7449
7450 #define _REENTRANT
7451 #include <sys/types.h>
7452 #include <netdb.h>
7453
7454 _ACEOF
7455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7456   $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7457
7458         tmp_getprotobyname_r="proto_needs_reentrant"
7459         tmp_need_reentrant="yes"
7460
7461 fi
7462 rm -f conftest*
7463
7464
7465 fi
7466 rm -f conftest*
7467
7468   fi
7469
7470   fi
7471   if test "$tmp_need_reentrant" = "no"; then
7472
7473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h.  */
7475
7476
7477 #define getservbyport_r innocuous_getservbyport_r
7478 #ifdef __STDC__
7479 # include <limits.h>
7480 #else
7481 # include <assert.h>
7482 #endif
7483 #undef getservbyport_r
7484 #ifdef __cplusplus
7485 extern "C"
7486 #endif
7487 char getservbyport_r ();
7488 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7489 choke me
7490 #endif
7491
7492 int main (void)
7493 {
7494 return getservbyport_r ();
7495  ;
7496  return 0;
7497 }
7498
7499 _ACEOF
7500 if ac_fn_c_try_link "$LINENO"; then :
7501
7502     tmp_getservbyport_r="yes"
7503
7504 else
7505
7506     tmp_getservbyport_r="no"
7507
7508 fi
7509 rm -f core conftest.err conftest.$ac_objext \
7510     conftest$ac_exeext conftest.$ac_ext
7511   if test "$tmp_getservbyport_r" = "yes"; then
7512     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7513 /* end confdefs.h.  */
7514
7515 #include <sys/types.h>
7516 #include <netdb.h>
7517
7518 _ACEOF
7519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7520   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7521
7522       tmp_getservbyport_r="proto_declared"
7523
7524 else
7525
7526       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h.  */
7528
7529 #define _REENTRANT
7530 #include <sys/types.h>
7531 #include <netdb.h>
7532
7533 _ACEOF
7534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7535   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7536
7537         tmp_getservbyport_r="proto_needs_reentrant"
7538         tmp_need_reentrant="yes"
7539
7540 fi
7541 rm -f conftest*
7542
7543
7544 fi
7545 rm -f conftest*
7546
7547   fi
7548
7549   fi
7550
7551     fi
7552     if test "$tmp_need_reentrant" = "yes"; then
7553       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7554 $as_echo "yes" >&6; }
7555     else
7556       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557 $as_echo "no" >&6; }
7558     fi
7559   fi
7560   #
7561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7562 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7563   if test "$tmp_reentrant_initially_defined" = "yes" ||
7564     test "$tmp_need_reentrant" = "yes"; then
7565
7566
7567 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7568
7569 cat >>confdefs.h <<_EOF
7570 #ifndef _REENTRANT
7571 #  define _REENTRANT
7572 #endif
7573 _EOF
7574
7575     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7576 $as_echo "yes" >&6; }
7577   else
7578     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579 $as_echo "no" >&6; }
7580   fi
7581   #
7582
7583
7584 # Check whether --enable-largefile was given.
7585 if test "${enable_largefile+set}" = set; then :
7586   enableval=$enable_largefile;
7587 fi
7588
7589 if test "$enable_largefile" != no; then
7590
7591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7592 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7593 if ${ac_cv_sys_largefile_CC+:} false; then :
7594   $as_echo_n "(cached) " >&6
7595 else
7596   ac_cv_sys_largefile_CC=no
7597      if test "$GCC" != yes; then
7598        ac_save_CC=$CC
7599        while :; do
7600          # IRIX 6.2 and later do not support large files by default,
7601          # so use the C compiler's -n32 option if that helps.
7602          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h.  */
7604 #include <sys/types.h>
7605  /* Check that off_t can represent 2**63 - 1 correctly.
7606     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7607     since some C++ compilers masquerading as C compilers
7608     incorrectly reject 9223372036854775807.  */
7609 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7610   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7611                        && LARGE_OFF_T % 2147483647 == 1)
7612                       ? 1 : -1];
7613 int main (void)
7614 {
7615
7616  ;
7617  return 0;
7618 }
7619 _ACEOF
7620          if ac_fn_c_try_compile "$LINENO"; then :
7621   break
7622 fi
7623 rm -f core conftest.err conftest.$ac_objext
7624          CC="$CC -n32"
7625          if ac_fn_c_try_compile "$LINENO"; then :
7626   ac_cv_sys_largefile_CC=' -n32'; break
7627 fi
7628 rm -f core conftest.err conftest.$ac_objext
7629          break
7630        done
7631        CC=$ac_save_CC
7632        rm -f conftest.$ac_ext
7633     fi
7634 fi
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7636 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7637   if test "$ac_cv_sys_largefile_CC" != no; then
7638     CC=$CC$ac_cv_sys_largefile_CC
7639   fi
7640
7641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7642 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7643 if ${ac_cv_sys_file_offset_bits+:} false; then :
7644   $as_echo_n "(cached) " >&6
7645 else
7646   while :; do
7647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7648 /* end confdefs.h.  */
7649 #include <sys/types.h>
7650  /* Check that off_t can represent 2**63 - 1 correctly.
7651     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7652     since some C++ compilers masquerading as C compilers
7653     incorrectly reject 9223372036854775807.  */
7654 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7655   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7656                        && LARGE_OFF_T % 2147483647 == 1)
7657                       ? 1 : -1];
7658 int main (void)
7659 {
7660
7661  ;
7662  return 0;
7663 }
7664 _ACEOF
7665 if ac_fn_c_try_compile "$LINENO"; then :
7666   ac_cv_sys_file_offset_bits=no; break
7667 fi
7668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670 /* end confdefs.h.  */
7671 #define _FILE_OFFSET_BITS 64
7672 #include <sys/types.h>
7673  /* Check that off_t can represent 2**63 - 1 correctly.
7674     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7675     since some C++ compilers masquerading as C compilers
7676     incorrectly reject 9223372036854775807.  */
7677 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7678   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7679                        && LARGE_OFF_T % 2147483647 == 1)
7680                       ? 1 : -1];
7681 int main (void)
7682 {
7683
7684  ;
7685  return 0;
7686 }
7687 _ACEOF
7688 if ac_fn_c_try_compile "$LINENO"; then :
7689   ac_cv_sys_file_offset_bits=64; break
7690 fi
7691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692   ac_cv_sys_file_offset_bits=unknown
7693   break
7694 done
7695 fi
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7697 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7698 case $ac_cv_sys_file_offset_bits in #(
7699   no | unknown) ;;
7700   *)
7701 cat >>confdefs.h <<_ACEOF
7702 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7703 _ACEOF
7704 ;;
7705 esac
7706 rm -rf conftest*
7707   if test $ac_cv_sys_file_offset_bits = unknown; then
7708     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7709 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7710 if ${ac_cv_sys_large_files+:} false; then :
7711   $as_echo_n "(cached) " >&6
7712 else
7713   while :; do
7714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715 /* end confdefs.h.  */
7716 #include <sys/types.h>
7717  /* Check that off_t can represent 2**63 - 1 correctly.
7718     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7719     since some C++ compilers masquerading as C compilers
7720     incorrectly reject 9223372036854775807.  */
7721 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7722   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7723                        && LARGE_OFF_T % 2147483647 == 1)
7724                       ? 1 : -1];
7725 int main (void)
7726 {
7727
7728  ;
7729  return 0;
7730 }
7731 _ACEOF
7732 if ac_fn_c_try_compile "$LINENO"; then :
7733   ac_cv_sys_large_files=no; break
7734 fi
7735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737 /* end confdefs.h.  */
7738 #define _LARGE_FILES 1
7739 #include <sys/types.h>
7740  /* Check that off_t can represent 2**63 - 1 correctly.
7741     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7742     since some C++ compilers masquerading as C compilers
7743     incorrectly reject 9223372036854775807.  */
7744 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7745   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7746                        && LARGE_OFF_T % 2147483647 == 1)
7747                       ? 1 : -1];
7748 int main (void)
7749 {
7750
7751  ;
7752  return 0;
7753 }
7754 _ACEOF
7755 if ac_fn_c_try_compile "$LINENO"; then :
7756   ac_cv_sys_large_files=1; break
7757 fi
7758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7759   ac_cv_sys_large_files=unknown
7760   break
7761 done
7762 fi
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7764 $as_echo "$ac_cv_sys_large_files" >&6; }
7765 case $ac_cv_sys_large_files in #(
7766   no | unknown) ;;
7767   *)
7768 cat >>confdefs.h <<_ACEOF
7769 #define _LARGE_FILES $ac_cv_sys_large_files
7770 _ACEOF
7771 ;;
7772 esac
7773 rm -rf conftest*
7774   fi
7775
7776
7777 fi
7778
7779
7780 case `pwd` in
7781   *\ * | *\     *)
7782     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7783 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7784 esac
7785
7786
7787
7788 macro_version='2.4.2'
7789 macro_revision='1.3337'
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803 ltmain="$ac_aux_dir/ltmain.sh"
7804
7805 # Backslashify metacharacters that are still active within
7806 # double-quoted strings.
7807 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7808
7809 # Same as above, but do not quote variable references.
7810 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7811
7812 # Sed substitution to delay expansion of an escaped shell variable in a
7813 # double_quote_subst'ed string.
7814 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7815
7816 # Sed substitution to delay expansion of an escaped single quote.
7817 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7818
7819 # Sed substitution to avoid accidental globbing in evaled expressions
7820 no_glob_subst='s/\*/\\\*/g'
7821
7822 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7823 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7824 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7825
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7827 $as_echo_n "checking how to print strings... " >&6; }
7828 # Test print first, because it will be a builtin if present.
7829 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7830    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7831   ECHO='print -r --'
7832 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7833   ECHO='printf %s\n'
7834 else
7835   # Use this function as a fallback that always works.
7836   func_fallback_echo ()
7837   {
7838     eval 'cat <<_LTECHO_EOF
7839 $1
7840 _LTECHO_EOF'
7841   }
7842   ECHO='func_fallback_echo'
7843 fi
7844
7845 # func_echo_all arg...
7846 # Invoke $ECHO with all args, space-separated.
7847 func_echo_all ()
7848 {
7849     $ECHO ""
7850 }
7851
7852 case "$ECHO" in
7853   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7854 $as_echo "printf" >&6; } ;;
7855   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7856 $as_echo "print -r" >&6; } ;;
7857   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7858 $as_echo "cat" >&6; } ;;
7859 esac
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7875 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7876 if ${ac_cv_path_SED+:} false; then :
7877   $as_echo_n "(cached) " >&6
7878 else
7879             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7880      for ac_i in 1 2 3 4 5 6 7; do
7881        ac_script="$ac_script$as_nl$ac_script"
7882      done
7883      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7884      { ac_script=; unset ac_script;}
7885      if test -z "$SED"; then
7886   ac_path_SED_found=false
7887   # Loop through the user's path and test for each of PROGNAME-LIST
7888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 for as_dir in $PATH
7890 do
7891   IFS=$as_save_IFS
7892   test -z "$as_dir" && as_dir=.
7893     for ac_prog in sed gsed; do
7894     for ac_exec_ext in '' $ac_executable_extensions; do
7895       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7896       as_fn_executable_p "$ac_path_SED" || continue
7897 # Check for GNU ac_path_SED and select it if it is found.
7898   # Check for GNU $ac_path_SED
7899 case `"$ac_path_SED" --version 2>&1` in
7900 *GNU*)
7901   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7902 *)
7903   ac_count=0
7904   $as_echo_n 0123456789 >"conftest.in"
7905   while :
7906   do
7907     cat "conftest.in" "conftest.in" >"conftest.tmp"
7908     mv "conftest.tmp" "conftest.in"
7909     cp "conftest.in" "conftest.nl"
7910     $as_echo '' >> "conftest.nl"
7911     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7912     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7913     as_fn_arith $ac_count + 1 && ac_count=$as_val
7914     if test $ac_count -gt ${ac_path_SED_max-0}; then
7915       # Best one so far, save it but keep looking for a better one
7916       ac_cv_path_SED="$ac_path_SED"
7917       ac_path_SED_max=$ac_count
7918     fi
7919     # 10*(2^10) chars as input seems more than enough
7920     test $ac_count -gt 10 && break
7921   done
7922   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7923 esac
7924
7925       $ac_path_SED_found && break 3
7926     done
7927   done
7928   done
7929 IFS=$as_save_IFS
7930   if test -z "$ac_cv_path_SED"; then
7931     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7932   fi
7933 else
7934   ac_cv_path_SED=$SED
7935 fi
7936
7937 fi
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7939 $as_echo "$ac_cv_path_SED" >&6; }
7940  SED="$ac_cv_path_SED"
7941   rm -f conftest.sed
7942
7943 test -z "$SED" && SED=sed
7944 Xsed="$SED -e 1s/^X//"
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7957 $as_echo_n "checking for fgrep... " >&6; }
7958 if ${ac_cv_path_FGREP+:} false; then :
7959   $as_echo_n "(cached) " >&6
7960 else
7961   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7962    then ac_cv_path_FGREP="$GREP -F"
7963    else
7964      if test -z "$FGREP"; then
7965   ac_path_FGREP_found=false
7966   # Loop through the user's path and test for each of PROGNAME-LIST
7967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7969 do
7970   IFS=$as_save_IFS
7971   test -z "$as_dir" && as_dir=.
7972     for ac_prog in fgrep; do
7973     for ac_exec_ext in '' $ac_executable_extensions; do
7974       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7975       as_fn_executable_p "$ac_path_FGREP" || continue
7976 # Check for GNU ac_path_FGREP and select it if it is found.
7977   # Check for GNU $ac_path_FGREP
7978 case `"$ac_path_FGREP" --version 2>&1` in
7979 *GNU*)
7980   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7981 *)
7982   ac_count=0
7983   $as_echo_n 0123456789 >"conftest.in"
7984   while :
7985   do
7986     cat "conftest.in" "conftest.in" >"conftest.tmp"
7987     mv "conftest.tmp" "conftest.in"
7988     cp "conftest.in" "conftest.nl"
7989     $as_echo 'FGREP' >> "conftest.nl"
7990     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7991     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7992     as_fn_arith $ac_count + 1 && ac_count=$as_val
7993     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7994       # Best one so far, save it but keep looking for a better one
7995       ac_cv_path_FGREP="$ac_path_FGREP"
7996       ac_path_FGREP_max=$ac_count
7997     fi
7998     # 10*(2^10) chars as input seems more than enough
7999     test $ac_count -gt 10 && break
8000   done
8001   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8002 esac
8003
8004       $ac_path_FGREP_found && break 3
8005     done
8006   done
8007   done
8008 IFS=$as_save_IFS
8009   if test -z "$ac_cv_path_FGREP"; then
8010     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8011   fi
8012 else
8013   ac_cv_path_FGREP=$FGREP
8014 fi
8015
8016    fi
8017 fi
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8019 $as_echo "$ac_cv_path_FGREP" >&6; }
8020  FGREP="$ac_cv_path_FGREP"
8021
8022
8023 test -z "$GREP" && GREP=grep
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043 # Check whether --with-gnu-ld was given.
8044 if test "${with_gnu_ld+set}" = set; then :
8045   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8046 else
8047   with_gnu_ld=no
8048 fi
8049
8050 ac_prog=ld
8051 if test "$GCC" = yes; then
8052   # Check if gcc -print-prog-name=ld gives a path.
8053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8054 $as_echo_n "checking for ld used by $CC... " >&6; }
8055   case $host in
8056   *-*-mingw*)
8057     # gcc leaves a trailing carriage return which upsets mingw
8058     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8059   *)
8060     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8061   esac
8062   case $ac_prog in
8063     # Accept absolute paths.
8064     [\\/]* | ?:[\\/]*)
8065       re_direlt='/[^/][^/]*/\.\./'
8066       # Canonicalize the pathname of ld
8067       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8068       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8069         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8070       done
8071       test -z "$LD" && LD="$ac_prog"
8072       ;;
8073   "")
8074     # If it fails, then pretend we aren't using GCC.
8075     ac_prog=ld
8076     ;;
8077   *)
8078     # If it is relative, then search for the first ld in PATH.
8079     with_gnu_ld=unknown
8080     ;;
8081   esac
8082 elif test "$with_gnu_ld" = yes; then
8083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8084 $as_echo_n "checking for GNU ld... " >&6; }
8085 else
8086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8087 $as_echo_n "checking for non-GNU ld... " >&6; }
8088 fi
8089 if ${lt_cv_path_LD+:} false; then :
8090   $as_echo_n "(cached) " >&6
8091 else
8092   if test -z "$LD"; then
8093   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8094   for ac_dir in $PATH; do
8095     IFS="$lt_save_ifs"
8096     test -z "$ac_dir" && ac_dir=.
8097     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8098       lt_cv_path_LD="$ac_dir/$ac_prog"
8099       # Check to see if the program is GNU ld.  I'd rather use --version,
8100       # but apparently some variants of GNU ld only accept -v.
8101       # Break only if it was the GNU/non-GNU ld that we prefer.
8102       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8103       *GNU* | *'with BFD'*)
8104         test "$with_gnu_ld" != no && break
8105         ;;
8106       *)
8107         test "$with_gnu_ld" != yes && break
8108         ;;
8109       esac
8110     fi
8111   done
8112   IFS="$lt_save_ifs"
8113 else
8114   lt_cv_path_LD="$LD" # Let the user override the test with a path.
8115 fi
8116 fi
8117
8118 LD="$lt_cv_path_LD"
8119 if test -n "$LD"; then
8120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8121 $as_echo "$LD" >&6; }
8122 else
8123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8124 $as_echo "no" >&6; }
8125 fi
8126 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8128 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8129 if ${lt_cv_prog_gnu_ld+:} false; then :
8130   $as_echo_n "(cached) " >&6
8131 else
8132   # I'd rather use --version here, but apparently some GNU lds only accept -v.
8133 case `$LD -v 2>&1 </dev/null` in
8134 *GNU* | *'with BFD'*)
8135   lt_cv_prog_gnu_ld=yes
8136   ;;
8137 *)
8138   lt_cv_prog_gnu_ld=no
8139   ;;
8140 esac
8141 fi
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8143 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8144 with_gnu_ld=$lt_cv_prog_gnu_ld
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8155 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8156 if ${lt_cv_path_NM+:} false; then :
8157   $as_echo_n "(cached) " >&6
8158 else
8159   if test -n "$NM"; then
8160   # Let the user override the test.
8161   lt_cv_path_NM="$NM"
8162 else
8163   lt_nm_to_check="${ac_tool_prefix}nm"
8164   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8165     lt_nm_to_check="$lt_nm_to_check nm"
8166   fi
8167   for lt_tmp_nm in $lt_nm_to_check; do
8168     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8169     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8170       IFS="$lt_save_ifs"
8171       test -z "$ac_dir" && ac_dir=.
8172       tmp_nm="$ac_dir/$lt_tmp_nm"
8173       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8174         # Check to see if the nm accepts a BSD-compat flag.
8175         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8176         #   nm: unknown option "B" ignored
8177         # Tru64's nm complains that /dev/null is an invalid object file
8178         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8179         */dev/null* | *'Invalid file or object type'*)
8180           lt_cv_path_NM="$tmp_nm -B"
8181           break
8182           ;;
8183         *)
8184           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8185           */dev/null*)
8186             lt_cv_path_NM="$tmp_nm -p"
8187             break
8188             ;;
8189           *)
8190             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8191             continue # so that we can try to find one that supports BSD flags
8192             ;;
8193           esac
8194           ;;
8195         esac
8196       fi
8197     done
8198     IFS="$lt_save_ifs"
8199   done
8200   : ${lt_cv_path_NM=no}
8201 fi
8202 fi
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8204 $as_echo "$lt_cv_path_NM" >&6; }
8205 if test "$lt_cv_path_NM" != "no"; then
8206   NM="$lt_cv_path_NM"
8207 else
8208   # Didn't find any BSD compatible name lister, look for dumpbin.
8209   if test -n "$DUMPBIN"; then :
8210     # Let the user override the test.
8211   else
8212     if test -n "$ac_tool_prefix"; then
8213   for ac_prog in dumpbin "link -dump"
8214   do
8215     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8216 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218 $as_echo_n "checking for $ac_word... " >&6; }
8219 if ${ac_cv_prog_DUMPBIN+:} false; then :
8220   $as_echo_n "(cached) " >&6
8221 else
8222   if test -n "$DUMPBIN"; then
8223   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8224 else
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226 for as_dir in $PATH
8227 do
8228   IFS=$as_save_IFS
8229   test -z "$as_dir" && as_dir=.
8230     for ac_exec_ext in '' $ac_executable_extensions; do
8231   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8232     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8234     break 2
8235   fi
8236 done
8237   done
8238 IFS=$as_save_IFS
8239
8240 fi
8241 fi
8242 DUMPBIN=$ac_cv_prog_DUMPBIN
8243 if test -n "$DUMPBIN"; then
8244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8245 $as_echo "$DUMPBIN" >&6; }
8246 else
8247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 $as_echo "no" >&6; }
8249 fi
8250
8251
8252     test -n "$DUMPBIN" && break
8253   done
8254 fi
8255 if test -z "$DUMPBIN"; then
8256   ac_ct_DUMPBIN=$DUMPBIN
8257   for ac_prog in dumpbin "link -dump"
8258 do
8259   # Extract the first word of "$ac_prog", so it can be a program name with args.
8260 set dummy $ac_prog; ac_word=$2
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8262 $as_echo_n "checking for $ac_word... " >&6; }
8263 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8264   $as_echo_n "(cached) " >&6
8265 else
8266   if test -n "$ac_ct_DUMPBIN"; then
8267   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8268 else
8269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270 for as_dir in $PATH
8271 do
8272   IFS=$as_save_IFS
8273   test -z "$as_dir" && as_dir=.
8274     for ac_exec_ext in '' $ac_executable_extensions; do
8275   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8276     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8278     break 2
8279   fi
8280 done
8281   done
8282 IFS=$as_save_IFS
8283
8284 fi
8285 fi
8286 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8287 if test -n "$ac_ct_DUMPBIN"; then
8288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8289 $as_echo "$ac_ct_DUMPBIN" >&6; }
8290 else
8291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292 $as_echo "no" >&6; }
8293 fi
8294
8295
8296   test -n "$ac_ct_DUMPBIN" && break
8297 done
8298
8299   if test "x$ac_ct_DUMPBIN" = x; then
8300     DUMPBIN=":"
8301   else
8302     case $cross_compiling:$ac_tool_warned in
8303 yes:)
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8306 ac_tool_warned=yes ;;
8307 esac
8308     DUMPBIN=$ac_ct_DUMPBIN
8309   fi
8310 fi
8311
8312     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8313     *COFF*)
8314       DUMPBIN="$DUMPBIN -symbols"
8315       ;;
8316     *)
8317       DUMPBIN=:
8318       ;;
8319     esac
8320   fi
8321
8322   if test "$DUMPBIN" != ":"; then
8323     NM="$DUMPBIN"
8324   fi
8325 fi
8326 test -z "$NM" && NM=nm
8327
8328
8329
8330
8331
8332
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8334 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8335 if ${lt_cv_nm_interface+:} false; then :
8336   $as_echo_n "(cached) " >&6
8337 else
8338   lt_cv_nm_interface="BSD nm"
8339   echo "int some_variable = 0;" > conftest.$ac_ext
8340   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8341   (eval "$ac_compile" 2>conftest.err)
8342   cat conftest.err >&5
8343   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8344   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8345   cat conftest.err >&5
8346   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8347   cat conftest.out >&5
8348   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8349     lt_cv_nm_interface="MS dumpbin"
8350   fi
8351   rm -f conftest*
8352 fi
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8354 $as_echo "$lt_cv_nm_interface" >&6; }
8355
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8357 $as_echo_n "checking whether ln -s works... " >&6; }
8358 LN_S=$as_ln_s
8359 if test "$LN_S" = "ln -s"; then
8360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8361 $as_echo "yes" >&6; }
8362 else
8363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8364 $as_echo "no, using $LN_S" >&6; }
8365 fi
8366
8367 # find the maximum length of command line arguments
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8369 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8370 if ${lt_cv_sys_max_cmd_len+:} false; then :
8371   $as_echo_n "(cached) " >&6
8372 else
8373     i=0
8374   teststring="ABCD"
8375
8376   case $build_os in
8377   msdosdjgpp*)
8378     # On DJGPP, this test can blow up pretty badly due to problems in libc
8379     # (any single argument exceeding 2000 bytes causes a buffer overrun
8380     # during glob expansion).  Even if it were fixed, the result of this
8381     # check would be larger than it should be.
8382     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8383     ;;
8384
8385   gnu*)
8386     # Under GNU Hurd, this test is not required because there is
8387     # no limit to the length of command line arguments.
8388     # Libtool will interpret -1 as no limit whatsoever
8389     lt_cv_sys_max_cmd_len=-1;
8390     ;;
8391
8392   cygwin* | mingw* | cegcc*)
8393     # On Win9x/ME, this test blows up -- it succeeds, but takes
8394     # about 5 minutes as the teststring grows exponentially.
8395     # Worse, since 9x/ME are not pre-emptively multitasking,
8396     # you end up with a "frozen" computer, even though with patience
8397     # the test eventually succeeds (with a max line length of 256k).
8398     # Instead, let's just punt: use the minimum linelength reported by
8399     # all of the supported platforms: 8192 (on NT/2K/XP).
8400     lt_cv_sys_max_cmd_len=8192;
8401     ;;
8402
8403   mint*)
8404     # On MiNT this can take a long time and run out of memory.
8405     lt_cv_sys_max_cmd_len=8192;
8406     ;;
8407
8408   amigaos*)
8409     # On AmigaOS with pdksh, this test takes hours, literally.
8410     # So we just punt and use a minimum line length of 8192.
8411     lt_cv_sys_max_cmd_len=8192;
8412     ;;
8413
8414   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8415     # This has been around since 386BSD, at least.  Likely further.
8416     if test -x /sbin/sysctl; then
8417       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8418     elif test -x /usr/sbin/sysctl; then
8419       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8420     else
8421       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8422     fi
8423     # And add a safety zone
8424     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8425     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8426     ;;
8427
8428   interix*)
8429     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8430     lt_cv_sys_max_cmd_len=196608
8431     ;;
8432
8433   os2*)
8434     # The test takes a long time on OS/2.
8435     lt_cv_sys_max_cmd_len=8192
8436     ;;
8437
8438   osf*)
8439     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8440     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8441     # nice to cause kernel panics so lets avoid the loop below.
8442     # First set a reasonable default.
8443     lt_cv_sys_max_cmd_len=16384
8444     #
8445     if test -x /sbin/sysconfig; then
8446       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8447         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8448       esac
8449     fi
8450     ;;
8451   sco3.2v5*)
8452     lt_cv_sys_max_cmd_len=102400
8453     ;;
8454   sysv5* | sco5v6* | sysv4.2uw2*)
8455     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8456     if test -n "$kargmax"; then
8457       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
8458     else
8459       lt_cv_sys_max_cmd_len=32768
8460     fi
8461     ;;
8462   *)
8463     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8464     if test -n "$lt_cv_sys_max_cmd_len" && \
8465         test undefined != "$lt_cv_sys_max_cmd_len"; then
8466       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8467       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8468     else
8469       # Make teststring a little bigger before we do anything with it.
8470       # a 1K string should be a reasonable start.
8471       for i in 1 2 3 4 5 6 7 8 ; do
8472         teststring=$teststring$teststring
8473       done
8474       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8475       # If test is not a shell built-in, we'll probably end up computing a
8476       # maximum length that is only half of the actual maximum length, but
8477       # we can't tell.
8478       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
8479                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8480               test $i != 17 # 1/2 MB should be enough
8481       do
8482         i=`expr $i + 1`
8483         teststring=$teststring$teststring
8484       done
8485       # Only check the string length outside the loop.
8486       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8487       teststring=
8488       # Add a significant safety factor because C++ compilers can tack on
8489       # massive amounts of additional arguments before passing them to the
8490       # linker.  It appears as though 1/2 is a usable value.
8491       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8492     fi
8493     ;;
8494   esac
8495
8496 fi
8497
8498 if test -n $lt_cv_sys_max_cmd_len ; then
8499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8500 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8501 else
8502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8503 $as_echo "none" >&6; }
8504 fi
8505 max_cmd_len=$lt_cv_sys_max_cmd_len
8506
8507
8508
8509
8510
8511
8512 : ${CP="cp -f"}
8513 : ${MV="mv -f"}
8514 : ${RM="rm -f"}
8515
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8517 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8518 # Try some XSI features
8519 xsi_shell=no
8520 ( _lt_dummy="a/b/c"
8521   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8522       = c,a/b,b/c, \
8523     && eval 'test $(( 1 + 1 )) -eq 2 \
8524     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8525   && xsi_shell=yes
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8527 $as_echo "$xsi_shell" >&6; }
8528
8529
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8531 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8532 lt_shell_append=no
8533 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8534     >/dev/null 2>&1 \
8535   && lt_shell_append=yes
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8537 $as_echo "$lt_shell_append" >&6; }
8538
8539
8540 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8541   lt_unset=unset
8542 else
8543   lt_unset=false
8544 fi
8545
8546
8547
8548
8549
8550 # test EBCDIC or ASCII
8551 case `echo X|tr X '\101'` in
8552  A) # ASCII based system
8553     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8554   lt_SP2NL='tr \040 \012'
8555   lt_NL2SP='tr \015\012 \040\040'
8556   ;;
8557  *) # EBCDIC based system
8558   lt_SP2NL='tr \100 \n'
8559   lt_NL2SP='tr \r\n \100\100'
8560   ;;
8561 esac
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8572 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8573 if ${lt_cv_to_host_file_cmd+:} false; then :
8574   $as_echo_n "(cached) " >&6
8575 else
8576   case $host in
8577   *-*-mingw* )
8578     case $build in
8579       *-*-mingw* ) # actually msys
8580         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8581         ;;
8582       *-*-cygwin* )
8583         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8584         ;;
8585       * ) # otherwise, assume *nix
8586         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8587         ;;
8588     esac
8589     ;;
8590   *-*-cygwin* )
8591     case $build in
8592       *-*-mingw* ) # actually msys
8593         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8594         ;;
8595       *-*-cygwin* )
8596         lt_cv_to_host_file_cmd=func_convert_file_noop
8597         ;;
8598       * ) # otherwise, assume *nix
8599         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8600         ;;
8601     esac
8602     ;;
8603   * ) # unhandled hosts (and "normal" native builds)
8604     lt_cv_to_host_file_cmd=func_convert_file_noop
8605     ;;
8606 esac
8607
8608 fi
8609
8610 to_host_file_cmd=$lt_cv_to_host_file_cmd
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8612 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8613
8614
8615
8616
8617
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8619 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8620 if ${lt_cv_to_tool_file_cmd+:} false; then :
8621   $as_echo_n "(cached) " >&6
8622 else
8623   #assume ordinary cross tools, or native build.
8624 lt_cv_to_tool_file_cmd=func_convert_file_noop
8625 case $host in
8626   *-*-mingw* )
8627     case $build in
8628       *-*-mingw* ) # actually msys
8629         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8630         ;;
8631     esac
8632     ;;
8633 esac
8634
8635 fi
8636
8637 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8639 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8640
8641
8642
8643
8644
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8646 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8647 if ${lt_cv_ld_reload_flag+:} false; then :
8648   $as_echo_n "(cached) " >&6
8649 else
8650   lt_cv_ld_reload_flag='-r'
8651 fi
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8653 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8654 reload_flag=$lt_cv_ld_reload_flag
8655 case $reload_flag in
8656 "" | " "*) ;;
8657 *) reload_flag=" $reload_flag" ;;
8658 esac
8659 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8660 case $host_os in
8661   cygwin* | mingw* | pw32* | cegcc*)
8662     if test "$GCC" != yes; then
8663       reload_cmds=false
8664     fi
8665     ;;
8666   darwin*)
8667     if test "$GCC" = yes; then
8668       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8669     else
8670       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8671     fi
8672     ;;
8673 esac
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683 if test -n "$ac_tool_prefix"; then
8684   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8685 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8687 $as_echo_n "checking for $ac_word... " >&6; }
8688 if ${ac_cv_prog_OBJDUMP+:} false; then :
8689   $as_echo_n "(cached) " >&6
8690 else
8691   if test -n "$OBJDUMP"; then
8692   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8693 else
8694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8695 for as_dir in $PATH
8696 do
8697   IFS=$as_save_IFS
8698   test -z "$as_dir" && as_dir=.
8699     for ac_exec_ext in '' $ac_executable_extensions; do
8700   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8701     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8703     break 2
8704   fi
8705 done
8706   done
8707 IFS=$as_save_IFS
8708
8709 fi
8710 fi
8711 OBJDUMP=$ac_cv_prog_OBJDUMP
8712 if test -n "$OBJDUMP"; then
8713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8714 $as_echo "$OBJDUMP" >&6; }
8715 else
8716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8717 $as_echo "no" >&6; }
8718 fi
8719
8720
8721 fi
8722 if test -z "$ac_cv_prog_OBJDUMP"; then
8723   ac_ct_OBJDUMP=$OBJDUMP
8724   # Extract the first word of "objdump", so it can be a program name with args.
8725 set dummy objdump; ac_word=$2
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8727 $as_echo_n "checking for $ac_word... " >&6; }
8728 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8729   $as_echo_n "(cached) " >&6
8730 else
8731   if test -n "$ac_ct_OBJDUMP"; then
8732   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8733 else
8734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8735 for as_dir in $PATH
8736 do
8737   IFS=$as_save_IFS
8738   test -z "$as_dir" && as_dir=.
8739     for ac_exec_ext in '' $ac_executable_extensions; do
8740   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8741     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8743     break 2
8744   fi
8745 done
8746   done
8747 IFS=$as_save_IFS
8748
8749 fi
8750 fi
8751 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8752 if test -n "$ac_ct_OBJDUMP"; then
8753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8754 $as_echo "$ac_ct_OBJDUMP" >&6; }
8755 else
8756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8757 $as_echo "no" >&6; }
8758 fi
8759
8760   if test "x$ac_ct_OBJDUMP" = x; then
8761     OBJDUMP="false"
8762   else
8763     case $cross_compiling:$ac_tool_warned in
8764 yes:)
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8767 ac_tool_warned=yes ;;
8768 esac
8769     OBJDUMP=$ac_ct_OBJDUMP
8770   fi
8771 else
8772   OBJDUMP="$ac_cv_prog_OBJDUMP"
8773 fi
8774
8775 test -z "$OBJDUMP" && OBJDUMP=objdump
8776
8777
8778
8779
8780
8781
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8783 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8784 if ${lt_cv_deplibs_check_method+:} false; then :
8785   $as_echo_n "(cached) " >&6
8786 else
8787   lt_cv_file_magic_cmd='$MAGIC_CMD'
8788 lt_cv_file_magic_test_file=
8789 lt_cv_deplibs_check_method='unknown'
8790 # Need to set the preceding variable on all platforms that support
8791 # interlibrary dependencies.
8792 # 'none' -- dependencies not supported.
8793 # `unknown' -- same as none, but documents that we really don't know.
8794 # 'pass_all' -- all dependencies passed with no checks.
8795 # 'test_compile' -- check by making test program.
8796 # 'file_magic [[regex]]' -- check by looking for files in library path
8797 # which responds to the $file_magic_cmd with a given extended regex.
8798 # If you have `file' or equivalent on your system and you're not sure
8799 # whether `pass_all' will *always* work, you probably want this one.
8800
8801 case $host_os in
8802 aix[4-9]*)
8803   lt_cv_deplibs_check_method=pass_all
8804   ;;
8805
8806 beos*)
8807   lt_cv_deplibs_check_method=pass_all
8808   ;;
8809
8810 bsdi[45]*)
8811   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8812   lt_cv_file_magic_cmd='/usr/bin/file -L'
8813   lt_cv_file_magic_test_file=/shlib/libc.so
8814   ;;
8815
8816 cygwin*)
8817   # func_win32_libid is a shell function defined in ltmain.sh
8818   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8819   lt_cv_file_magic_cmd='func_win32_libid'
8820   ;;
8821
8822 mingw* | pw32*)
8823   # Base MSYS/MinGW do not provide the 'file' command needed by
8824   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8825   # unless we find 'file', for example because we are cross-compiling.
8826   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8827   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8828     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8829     lt_cv_file_magic_cmd='func_win32_libid'
8830   else
8831     # Keep this pattern in sync with the one in func_win32_libid.
8832     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8833     lt_cv_file_magic_cmd='$OBJDUMP -f'
8834   fi
8835   ;;
8836
8837 cegcc*)
8838   # use the weaker test based on 'objdump'. See mingw*.
8839   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8840   lt_cv_file_magic_cmd='$OBJDUMP -f'
8841   ;;
8842
8843 darwin* | rhapsody*)
8844   lt_cv_deplibs_check_method=pass_all
8845   ;;
8846
8847 freebsd* | dragonfly*)
8848   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8849     case $host_cpu in
8850     i*86 )
8851       # Not sure whether the presence of OpenBSD here was a mistake.
8852       # Let's accept both of them until this is cleared up.
8853       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8854       lt_cv_file_magic_cmd=/usr/bin/file
8855       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8856       ;;
8857     esac
8858   else
8859     lt_cv_deplibs_check_method=pass_all
8860   fi
8861   ;;
8862
8863 haiku*)
8864   lt_cv_deplibs_check_method=pass_all
8865   ;;
8866
8867 hpux10.20* | hpux11*)
8868   lt_cv_file_magic_cmd=/usr/bin/file
8869   case $host_cpu in
8870   ia64*)
8871     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8872     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8873     ;;
8874   hppa*64*)
8875     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]'
8876     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8877     ;;
8878   *)
8879     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8880     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8881     ;;
8882   esac
8883   ;;
8884
8885 interix[3-9]*)
8886   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8887   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8888   ;;
8889
8890 irix5* | irix6* | nonstopux*)
8891   case $LD in
8892   *-32|*"-32 ") libmagic=32-bit;;
8893   *-n32|*"-n32 ") libmagic=N32;;
8894   *-64|*"-64 ") libmagic=64-bit;;
8895   *) libmagic=never-match;;
8896   esac
8897   lt_cv_deplibs_check_method=pass_all
8898   ;;
8899
8900 # This must be glibc/ELF.
8901 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8902   lt_cv_deplibs_check_method=pass_all
8903   ;;
8904
8905 netbsd* | netbsdelf*-gnu)
8906   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8907     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8908   else
8909     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8910   fi
8911   ;;
8912
8913 newos6*)
8914   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8915   lt_cv_file_magic_cmd=/usr/bin/file
8916   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8917   ;;
8918
8919 *nto* | *qnx*)
8920   lt_cv_deplibs_check_method=pass_all
8921   ;;
8922
8923 openbsd*)
8924   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8925     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8926   else
8927     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8928   fi
8929   ;;
8930
8931 osf3* | osf4* | osf5*)
8932   lt_cv_deplibs_check_method=pass_all
8933   ;;
8934
8935 rdos*)
8936   lt_cv_deplibs_check_method=pass_all
8937   ;;
8938
8939 solaris*)
8940   lt_cv_deplibs_check_method=pass_all
8941   ;;
8942
8943 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8944   lt_cv_deplibs_check_method=pass_all
8945   ;;
8946
8947 sysv4 | sysv4.3*)
8948   case $host_vendor in
8949   motorola)
8950     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]'
8951     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8952     ;;
8953   ncr)
8954     lt_cv_deplibs_check_method=pass_all
8955     ;;
8956   sequent)
8957     lt_cv_file_magic_cmd='/bin/file'
8958     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8959     ;;
8960   sni)
8961     lt_cv_file_magic_cmd='/bin/file'
8962     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8963     lt_cv_file_magic_test_file=/lib/libc.so
8964     ;;
8965   siemens)
8966     lt_cv_deplibs_check_method=pass_all
8967     ;;
8968   pc)
8969     lt_cv_deplibs_check_method=pass_all
8970     ;;
8971   esac
8972   ;;
8973
8974 tpf*)
8975   lt_cv_deplibs_check_method=pass_all
8976   ;;
8977 esac
8978
8979 fi
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8981 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8982
8983 file_magic_glob=
8984 want_nocaseglob=no
8985 if test "$build" = "$host"; then
8986   case $host_os in
8987   mingw* | pw32*)
8988     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8989       want_nocaseglob=yes
8990     else
8991       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8992     fi
8993     ;;
8994   esac
8995 fi
8996
8997 file_magic_cmd=$lt_cv_file_magic_cmd
8998 deplibs_check_method=$lt_cv_deplibs_check_method
8999 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022 if test -n "$ac_tool_prefix"; then
9023   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9024 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9026 $as_echo_n "checking for $ac_word... " >&6; }
9027 if ${ac_cv_prog_DLLTOOL+:} false; then :
9028   $as_echo_n "(cached) " >&6
9029 else
9030   if test -n "$DLLTOOL"; then
9031   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9032 else
9033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9034 for as_dir in $PATH
9035 do
9036   IFS=$as_save_IFS
9037   test -z "$as_dir" && as_dir=.
9038     for ac_exec_ext in '' $ac_executable_extensions; do
9039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9040     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9042     break 2
9043   fi
9044 done
9045   done
9046 IFS=$as_save_IFS
9047
9048 fi
9049 fi
9050 DLLTOOL=$ac_cv_prog_DLLTOOL
9051 if test -n "$DLLTOOL"; then
9052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9053 $as_echo "$DLLTOOL" >&6; }
9054 else
9055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9056 $as_echo "no" >&6; }
9057 fi
9058
9059
9060 fi
9061 if test -z "$ac_cv_prog_DLLTOOL"; then
9062   ac_ct_DLLTOOL=$DLLTOOL
9063   # Extract the first word of "dlltool", so it can be a program name with args.
9064 set dummy dlltool; ac_word=$2
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9066 $as_echo_n "checking for $ac_word... " >&6; }
9067 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9068   $as_echo_n "(cached) " >&6
9069 else
9070   if test -n "$ac_ct_DLLTOOL"; then
9071   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9072 else
9073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9074 for as_dir in $PATH
9075 do
9076   IFS=$as_save_IFS
9077   test -z "$as_dir" && as_dir=.
9078     for ac_exec_ext in '' $ac_executable_extensions; do
9079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9080     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9082     break 2
9083   fi
9084 done
9085   done
9086 IFS=$as_save_IFS
9087
9088 fi
9089 fi
9090 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9091 if test -n "$ac_ct_DLLTOOL"; then
9092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9093 $as_echo "$ac_ct_DLLTOOL" >&6; }
9094 else
9095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9096 $as_echo "no" >&6; }
9097 fi
9098
9099   if test "x$ac_ct_DLLTOOL" = x; then
9100     DLLTOOL="false"
9101   else
9102     case $cross_compiling:$ac_tool_warned in
9103 yes:)
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9106 ac_tool_warned=yes ;;
9107 esac
9108     DLLTOOL=$ac_ct_DLLTOOL
9109   fi
9110 else
9111   DLLTOOL="$ac_cv_prog_DLLTOOL"
9112 fi
9113
9114 test -z "$DLLTOOL" && DLLTOOL=dlltool
9115
9116
9117
9118
9119
9120
9121
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9123 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9124 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9125   $as_echo_n "(cached) " >&6
9126 else
9127   lt_cv_sharedlib_from_linklib_cmd='unknown'
9128
9129 case $host_os in
9130 cygwin* | mingw* | pw32* | cegcc*)
9131   # two different shell functions defined in ltmain.sh
9132   # decide which to use based on capabilities of $DLLTOOL
9133   case `$DLLTOOL --help 2>&1` in
9134   *--identify-strict*)
9135     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9136     ;;
9137   *)
9138     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9139     ;;
9140   esac
9141   ;;
9142 *)
9143   # fallback: assume linklib IS sharedlib
9144   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
9145   ;;
9146 esac
9147
9148 fi
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9150 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9151 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9152 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9153
9154
9155
9156
9157
9158
9159
9160 if test -n "$ac_tool_prefix"; then
9161   for ac_prog in ar
9162   do
9163     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9164 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9166 $as_echo_n "checking for $ac_word... " >&6; }
9167 if ${ac_cv_prog_AR+:} false; then :
9168   $as_echo_n "(cached) " >&6
9169 else
9170   if test -n "$AR"; then
9171   ac_cv_prog_AR="$AR" # Let the user override the test.
9172 else
9173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9174 for as_dir in $PATH
9175 do
9176   IFS=$as_save_IFS
9177   test -z "$as_dir" && as_dir=.
9178     for ac_exec_ext in '' $ac_executable_extensions; do
9179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9180     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9182     break 2
9183   fi
9184 done
9185   done
9186 IFS=$as_save_IFS
9187
9188 fi
9189 fi
9190 AR=$ac_cv_prog_AR
9191 if test -n "$AR"; then
9192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9193 $as_echo "$AR" >&6; }
9194 else
9195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9196 $as_echo "no" >&6; }
9197 fi
9198
9199
9200     test -n "$AR" && break
9201   done
9202 fi
9203 if test -z "$AR"; then
9204   ac_ct_AR=$AR
9205   for ac_prog in ar
9206 do
9207   # Extract the first word of "$ac_prog", so it can be a program name with args.
9208 set dummy $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_ac_ct_AR+:} false; then :
9212   $as_echo_n "(cached) " >&6
9213 else
9214   if test -n "$ac_ct_AR"; then
9215   ac_cv_prog_ac_ct_AR="$ac_ct_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_ac_ct_AR="$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 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9235 if test -n "$ac_ct_AR"; then
9236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9237 $as_echo "$ac_ct_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 "$ac_ct_AR" && break
9245 done
9246
9247   if test "x$ac_ct_AR" = x; then
9248     AR="false"
9249   else
9250     case $cross_compiling:$ac_tool_warned in
9251 yes:)
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9254 ac_tool_warned=yes ;;
9255 esac
9256     AR=$ac_ct_AR
9257   fi
9258 fi
9259
9260 : ${AR=ar}
9261 : ${AR_FLAGS=cru}
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9274 $as_echo_n "checking for archiver @FILE support... " >&6; }
9275 if ${lt_cv_ar_at_file+:} false; then :
9276   $as_echo_n "(cached) " >&6
9277 else
9278   lt_cv_ar_at_file=no
9279    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280 /* end confdefs.h.  */
9281
9282 int main (void)
9283 {
9284
9285  ;
9286  return 0;
9287 }
9288 _ACEOF
9289 if ac_fn_c_try_compile "$LINENO"; then :
9290   echo conftest.$ac_objext > conftest.lst
9291       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9292       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9293   (eval $lt_ar_try) 2>&5
9294   ac_status=$?
9295   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9296   test $ac_status = 0; }
9297       if test "$ac_status" -eq 0; then
9298         # Ensure the archiver fails upon bogus file names.
9299         rm -f conftest.$ac_objext libconftest.a
9300         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9301   (eval $lt_ar_try) 2>&5
9302   ac_status=$?
9303   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9304   test $ac_status = 0; }
9305         if test "$ac_status" -ne 0; then
9306           lt_cv_ar_at_file=@
9307         fi
9308       fi
9309       rm -f conftest.* libconftest.a
9310
9311 fi
9312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9313
9314 fi
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9316 $as_echo "$lt_cv_ar_at_file" >&6; }
9317
9318 if test "x$lt_cv_ar_at_file" = xno; then
9319   archiver_list_spec=
9320 else
9321   archiver_list_spec=$lt_cv_ar_at_file
9322 fi
9323
9324
9325
9326
9327
9328
9329
9330 if test -n "$ac_tool_prefix"; then
9331   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9332 set dummy ${ac_tool_prefix}strip; ac_word=$2
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9334 $as_echo_n "checking for $ac_word... " >&6; }
9335 if ${ac_cv_prog_STRIP+:} false; then :
9336   $as_echo_n "(cached) " >&6
9337 else
9338   if test -n "$STRIP"; then
9339   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9340 else
9341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9342 for as_dir in $PATH
9343 do
9344   IFS=$as_save_IFS
9345   test -z "$as_dir" && as_dir=.
9346     for ac_exec_ext in '' $ac_executable_extensions; do
9347   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9348     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9350     break 2
9351   fi
9352 done
9353   done
9354 IFS=$as_save_IFS
9355
9356 fi
9357 fi
9358 STRIP=$ac_cv_prog_STRIP
9359 if test -n "$STRIP"; then
9360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9361 $as_echo "$STRIP" >&6; }
9362 else
9363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9364 $as_echo "no" >&6; }
9365 fi
9366
9367
9368 fi
9369 if test -z "$ac_cv_prog_STRIP"; then
9370   ac_ct_STRIP=$STRIP
9371   # Extract the first word of "strip", so it can be a program name with args.
9372 set dummy strip; ac_word=$2
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9374 $as_echo_n "checking for $ac_word... " >&6; }
9375 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9376   $as_echo_n "(cached) " >&6
9377 else
9378   if test -n "$ac_ct_STRIP"; then
9379   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9380 else
9381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9382 for as_dir in $PATH
9383 do
9384   IFS=$as_save_IFS
9385   test -z "$as_dir" && as_dir=.
9386     for ac_exec_ext in '' $ac_executable_extensions; do
9387   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9388     ac_cv_prog_ac_ct_STRIP="strip"
9389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9390     break 2
9391   fi
9392 done
9393   done
9394 IFS=$as_save_IFS
9395
9396 fi
9397 fi
9398 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9399 if test -n "$ac_ct_STRIP"; then
9400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9401 $as_echo "$ac_ct_STRIP" >&6; }
9402 else
9403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9404 $as_echo "no" >&6; }
9405 fi
9406
9407   if test "x$ac_ct_STRIP" = x; then
9408     STRIP=":"
9409   else
9410     case $cross_compiling:$ac_tool_warned in
9411 yes:)
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9414 ac_tool_warned=yes ;;
9415 esac
9416     STRIP=$ac_ct_STRIP
9417   fi
9418 else
9419   STRIP="$ac_cv_prog_STRIP"
9420 fi
9421
9422 test -z "$STRIP" && STRIP=:
9423
9424
9425
9426
9427
9428
9429 if test -n "$ac_tool_prefix"; then
9430   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9431 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9433 $as_echo_n "checking for $ac_word... " >&6; }
9434 if ${ac_cv_prog_RANLIB+:} false; then :
9435   $as_echo_n "(cached) " >&6
9436 else
9437   if test -n "$RANLIB"; then
9438   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9439 else
9440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9441 for as_dir in $PATH
9442 do
9443   IFS=$as_save_IFS
9444   test -z "$as_dir" && as_dir=.
9445     for ac_exec_ext in '' $ac_executable_extensions; do
9446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9447     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9449     break 2
9450   fi
9451 done
9452   done
9453 IFS=$as_save_IFS
9454
9455 fi
9456 fi
9457 RANLIB=$ac_cv_prog_RANLIB
9458 if test -n "$RANLIB"; then
9459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9460 $as_echo "$RANLIB" >&6; }
9461 else
9462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9463 $as_echo "no" >&6; }
9464 fi
9465
9466
9467 fi
9468 if test -z "$ac_cv_prog_RANLIB"; then
9469   ac_ct_RANLIB=$RANLIB
9470   # Extract the first word of "ranlib", so it can be a program name with args.
9471 set dummy ranlib; ac_word=$2
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9473 $as_echo_n "checking for $ac_word... " >&6; }
9474 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9475   $as_echo_n "(cached) " >&6
9476 else
9477   if test -n "$ac_ct_RANLIB"; then
9478   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9479 else
9480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9481 for as_dir in $PATH
9482 do
9483   IFS=$as_save_IFS
9484   test -z "$as_dir" && as_dir=.
9485     for ac_exec_ext in '' $ac_executable_extensions; do
9486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9487     ac_cv_prog_ac_ct_RANLIB="ranlib"
9488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9489     break 2
9490   fi
9491 done
9492   done
9493 IFS=$as_save_IFS
9494
9495 fi
9496 fi
9497 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9498 if test -n "$ac_ct_RANLIB"; then
9499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9500 $as_echo "$ac_ct_RANLIB" >&6; }
9501 else
9502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503 $as_echo "no" >&6; }
9504 fi
9505
9506   if test "x$ac_ct_RANLIB" = x; then
9507     RANLIB=":"
9508   else
9509     case $cross_compiling:$ac_tool_warned in
9510 yes:)
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9513 ac_tool_warned=yes ;;
9514 esac
9515     RANLIB=$ac_ct_RANLIB
9516   fi
9517 else
9518   RANLIB="$ac_cv_prog_RANLIB"
9519 fi
9520
9521 test -z "$RANLIB" && RANLIB=:
9522
9523
9524
9525
9526
9527
9528 # Determine commands to create old-style static archives.
9529 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9530 old_postinstall_cmds='chmod 644 $oldlib'
9531 old_postuninstall_cmds=
9532
9533 if test -n "$RANLIB"; then
9534   case $host_os in
9535   openbsd*)
9536     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9537     ;;
9538   *)
9539     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9540     ;;
9541   esac
9542   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9543 fi
9544
9545 case $host_os in
9546   darwin*)
9547     lock_old_archive_extraction=yes ;;
9548   *)
9549     lock_old_archive_extraction=no ;;
9550 esac
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590 # If no C compiler was specified, use CC.
9591 LTCC=${LTCC-"$CC"}
9592
9593 # If no C compiler flags were specified, use CFLAGS.
9594 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9595
9596 # Allow CC to be a program name with arguments.
9597 compiler=$CC
9598
9599
9600 # Check for command to grab the raw symbol name followed by C symbol from nm.
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9602 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9603 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9604   $as_echo_n "(cached) " >&6
9605 else
9606
9607 # These are sane defaults that work on at least a few old systems.
9608 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9609
9610 # Character class describing NM global symbol codes.
9611 symcode='[BCDEGRST]'
9612
9613 # Regexp to match symbols that can be accessed directly from C.
9614 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9615
9616 # Define system-specific variables.
9617 case $host_os in
9618 aix*)
9619   symcode='[BCDT]'
9620   ;;
9621 cygwin* | mingw* | pw32* | cegcc*)
9622   symcode='[ABCDGISTW]'
9623   ;;
9624 hpux*)
9625   if test "$host_cpu" = ia64; then
9626     symcode='[ABCDEGRST]'
9627   fi
9628   ;;
9629 irix* | nonstopux*)
9630   symcode='[BCDEGRST]'
9631   ;;
9632 osf*)
9633   symcode='[BCDEGQRST]'
9634   ;;
9635 solaris*)
9636   symcode='[BDRT]'
9637   ;;
9638 sco3.2v5*)
9639   symcode='[DT]'
9640   ;;
9641 sysv4.2uw2*)
9642   symcode='[DT]'
9643   ;;
9644 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9645   symcode='[ABDT]'
9646   ;;
9647 sysv4)
9648   symcode='[DFNSTU]'
9649   ;;
9650 esac
9651
9652 # If we're using GNU nm, then use its standard symbol codes.
9653 case `$NM -V 2>&1` in
9654 *GNU* | *'with BFD'*)
9655   symcode='[ABCDGIRSTW]' ;;
9656 esac
9657
9658 # Transform an extracted symbol line into a proper C declaration.
9659 # Some systems (esp. on ia64) link data and code symbols differently,
9660 # so use this general approach.
9661 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9662
9663 # Transform an extracted symbol line into symbol name and symbol address
9664 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
9665 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
9666
9667 # Handle CRLF in mingw tool chain
9668 opt_cr=
9669 case $build_os in
9670 mingw*)
9671   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9672   ;;
9673 esac
9674
9675 # Try without a prefix underscore, then with it.
9676 for ac_symprfx in "" "_"; do
9677
9678   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9679   symxfrm="\\1 $ac_symprfx\\2 \\2"
9680
9681   # Write the raw and C identifiers.
9682   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9683     # Fake it for dumpbin and say T for any non-static function
9684     # and D for any global variable.
9685     # Also find C++ and __fastcall symbols from MSVC++,
9686     # which start with @ or ?.
9687     lt_cv_sys_global_symbol_pipe="$AWK '"\
9688 "     {last_section=section; section=\$ 3};"\
9689 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9690 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9691 "     \$ 0!~/External *\|/{next};"\
9692 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9693 "     {if(hide[section]) next};"\
9694 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9695 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9696 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
9697 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9698 "     ' prfx=^$ac_symprfx"
9699   else
9700     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9701   fi
9702   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9703
9704   # Check to see that the pipe works correctly.
9705   pipe_works=no
9706
9707   rm -f conftest*
9708   cat > conftest.$ac_ext <<_LT_EOF
9709 #ifdef __cplusplus
9710 extern "C" {
9711 #endif
9712 char nm_test_var;
9713 void nm_test_func(void);
9714 void nm_test_func(void){}
9715 #ifdef __cplusplus
9716 }
9717 #endif
9718 int main(){nm_test_var='a';nm_test_func();return(0);}
9719 _LT_EOF
9720
9721   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9722   (eval $ac_compile) 2>&5
9723   ac_status=$?
9724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9725   test $ac_status = 0; }; then
9726     # Now try to grab the symbols.
9727     nlist=conftest.nm
9728     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9729   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9730   ac_status=$?
9731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9732   test $ac_status = 0; } && test -s "$nlist"; then
9733       # Try sorting and uniquifying the output.
9734       if sort "$nlist" | uniq > "$nlist"T; then
9735         mv -f "$nlist"T "$nlist"
9736       else
9737         rm -f "$nlist"T
9738       fi
9739
9740       # Make sure that we snagged all the symbols we need.
9741       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9742         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9743           cat <<_LT_EOF > conftest.$ac_ext
9744 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9745 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9746 /* DATA imports from DLLs on WIN32 con't be const, because runtime
9747    relocations are performed -- see ld's documentation on pseudo-relocs.  */
9748 # define LT_DLSYM_CONST
9749 #elif defined(__osf__)
9750 /* This system does not cope well with relocations in const data.  */
9751 # define LT_DLSYM_CONST
9752 #else
9753 # define LT_DLSYM_CONST const
9754 #endif
9755
9756 #ifdef __cplusplus
9757 extern "C" {
9758 #endif
9759
9760 _LT_EOF
9761           # Now generate the symbol file.
9762           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9763
9764           cat <<_LT_EOF >> conftest.$ac_ext
9765
9766 /* The mapping between symbol names and symbols.  */
9767 LT_DLSYM_CONST struct {
9768   const char *name;
9769   void       *address;
9770 }
9771 lt__PROGRAM__LTX_preloaded_symbols[] =
9772 {
9773   { "@PROGRAM@", (void *) 0 },
9774 _LT_EOF
9775           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9776           cat <<\_LT_EOF >> conftest.$ac_ext
9777   {0, (void *) 0}
9778 };
9779
9780 /* This works around a problem in FreeBSD linker */
9781 #ifdef FREEBSD_WORKAROUND
9782 static const void *lt_preloaded_setup() {
9783   return lt__PROGRAM__LTX_preloaded_symbols;
9784 }
9785 #endif
9786
9787 #ifdef __cplusplus
9788 }
9789 #endif
9790 _LT_EOF
9791           # Now try linking the two files.
9792           mv -f conftest.$ac_objext conftstm.$ac_objext
9793           lt_globsym_save_LIBS=$LIBS
9794           lt_globsym_save_CFLAGS=$CFLAGS
9795           LIBS="conftstm.$ac_objext"
9796           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9797           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9798   (eval $ac_link) 2>&5
9799   ac_status=$?
9800   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9801   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9802             pipe_works=yes
9803           fi
9804           LIBS=$lt_globsym_save_LIBS
9805           CFLAGS=$lt_globsym_save_CFLAGS
9806         else
9807           echo "cannot find nm_test_func in $nlist" >&5
9808         fi
9809       else
9810         echo "cannot find nm_test_var in $nlist" >&5
9811       fi
9812     else
9813       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9814     fi
9815   else
9816     echo "$progname: failed program was:" >&5
9817     cat conftest.$ac_ext >&5
9818   fi
9819   rm -rf conftest* conftst*
9820
9821   # Do not use the global_symbol_pipe unless it works.
9822   if test "$pipe_works" = yes; then
9823     break
9824   else
9825     lt_cv_sys_global_symbol_pipe=
9826   fi
9827 done
9828
9829 fi
9830
9831 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9832   lt_cv_sys_global_symbol_to_cdecl=
9833 fi
9834 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9836 $as_echo "failed" >&6; }
9837 else
9838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9839 $as_echo "ok" >&6; }
9840 fi
9841
9842 # Response file support.
9843 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9844   nm_file_list_spec='@'
9845 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9846   nm_file_list_spec='@'
9847 fi
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9876 $as_echo_n "checking for sysroot... " >&6; }
9877
9878 # Check whether --with-sysroot was given.
9879 if test "${with_sysroot+set}" = set; then :
9880   withval=$with_sysroot;
9881 else
9882   with_sysroot=no
9883 fi
9884
9885
9886 lt_sysroot=
9887 case ${with_sysroot} in #(
9888  yes)
9889    if test "$GCC" = yes; then
9890      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9891    fi
9892    ;; #(
9893  /*)
9894    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9895    ;; #(
9896  no|'')
9897    ;; #(
9898  *)
9899    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9900 $as_echo "${with_sysroot}" >&6; }
9901    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9902    ;;
9903 esac
9904
9905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9906 $as_echo "${lt_sysroot:-no}" >&6; }
9907
9908
9909
9910
9911
9912 # Check whether --enable-libtool-lock was given.
9913 if test "${enable_libtool_lock+set}" = set; then :
9914   enableval=$enable_libtool_lock;
9915 fi
9916
9917 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9918
9919 # Some flags need to be propagated to the compiler or linker for good
9920 # libtool support.
9921 case $host in
9922 ia64-*-hpux*)
9923   # Find out which ABI we are using.
9924   echo 'int i;' > conftest.$ac_ext
9925   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9926   (eval $ac_compile) 2>&5
9927   ac_status=$?
9928   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9929   test $ac_status = 0; }; then
9930     case `/usr/bin/file conftest.$ac_objext` in
9931       *ELF-32*)
9932         HPUX_IA64_MODE="32"
9933         ;;
9934       *ELF-64*)
9935         HPUX_IA64_MODE="64"
9936         ;;
9937     esac
9938   fi
9939   rm -rf conftest*
9940   ;;
9941 *-*-irix6*)
9942   # Find out which ABI we are using.
9943   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9944   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9945   (eval $ac_compile) 2>&5
9946   ac_status=$?
9947   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9948   test $ac_status = 0; }; then
9949     if test "$lt_cv_prog_gnu_ld" = yes; then
9950       case `/usr/bin/file conftest.$ac_objext` in
9951         *32-bit*)
9952           LD="${LD-ld} -melf32bsmip"
9953           ;;
9954         *N32*)
9955           LD="${LD-ld} -melf32bmipn32"
9956           ;;
9957         *64-bit*)
9958           LD="${LD-ld} -melf64bmip"
9959         ;;
9960       esac
9961     else
9962       case `/usr/bin/file conftest.$ac_objext` in
9963         *32-bit*)
9964           LD="${LD-ld} -32"
9965           ;;
9966         *N32*)
9967           LD="${LD-ld} -n32"
9968           ;;
9969         *64-bit*)
9970           LD="${LD-ld} -64"
9971           ;;
9972       esac
9973     fi
9974   fi
9975   rm -rf conftest*
9976   ;;
9977
9978 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9979 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9980   # Find out which ABI we are using.
9981   echo 'int i;' > conftest.$ac_ext
9982   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9983   (eval $ac_compile) 2>&5
9984   ac_status=$?
9985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9986   test $ac_status = 0; }; then
9987     case `/usr/bin/file conftest.o` in
9988       *32-bit*)
9989         case $host in
9990           x86_64-*kfreebsd*-gnu)
9991             LD="${LD-ld} -m elf_i386_fbsd"
9992             ;;
9993           x86_64-*linux*)
9994             case `/usr/bin/file conftest.o` in
9995               *x86-64*)
9996                 LD="${LD-ld} -m elf32_x86_64"
9997                 ;;
9998               *)
9999                 LD="${LD-ld} -m elf_i386"
10000                 ;;
10001             esac
10002             ;;
10003           ppc64-*linux*|powerpc64-*linux*)
10004             LD="${LD-ld} -m elf32ppclinux"
10005             ;;
10006           s390x-*linux*)
10007             LD="${LD-ld} -m elf_s390"
10008             ;;
10009           sparc64-*linux*)
10010             LD="${LD-ld} -m elf32_sparc"
10011             ;;
10012         esac
10013         ;;
10014       *64-bit*)
10015         case $host in
10016           x86_64-*kfreebsd*-gnu)
10017             LD="${LD-ld} -m elf_x86_64_fbsd"
10018             ;;
10019           x86_64-*linux*)
10020             LD="${LD-ld} -m elf_x86_64"
10021             ;;
10022           ppc*-*linux*|powerpc*-*linux*)
10023             LD="${LD-ld} -m elf64ppc"
10024             ;;
10025           s390*-*linux*|s390*-*tpf*)
10026             LD="${LD-ld} -m elf64_s390"
10027             ;;
10028           sparc*-*linux*)
10029             LD="${LD-ld} -m elf64_sparc"
10030             ;;
10031         esac
10032         ;;
10033     esac
10034   fi
10035   rm -rf conftest*
10036   ;;
10037
10038 *-*-sco3.2v5*)
10039   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10040   SAVE_CFLAGS="$CFLAGS"
10041   CFLAGS="$CFLAGS -belf"
10042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10043 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10044 if ${lt_cv_cc_needs_belf+:} false; then :
10045   $as_echo_n "(cached) " >&6
10046 else
10047   ac_ext=c
10048 ac_cpp='$CPP $CPPFLAGS'
10049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10052
10053      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10054 /* end confdefs.h.  */
10055
10056 int main (void)
10057 {
10058
10059  ;
10060  return 0;
10061 }
10062 _ACEOF
10063 if ac_fn_c_try_link "$LINENO"; then :
10064   lt_cv_cc_needs_belf=yes
10065 else
10066   lt_cv_cc_needs_belf=no
10067 fi
10068 rm -f core conftest.err conftest.$ac_objext \
10069     conftest$ac_exeext conftest.$ac_ext
10070      ac_ext=c
10071 ac_cpp='$CPP $CPPFLAGS'
10072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10075
10076 fi
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10078 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10079   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10080     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10081     CFLAGS="$SAVE_CFLAGS"
10082   fi
10083   ;;
10084 *-*solaris*)
10085   # Find out which ABI we are using.
10086   echo 'int i;' > conftest.$ac_ext
10087   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10088   (eval $ac_compile) 2>&5
10089   ac_status=$?
10090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10091   test $ac_status = 0; }; then
10092     case `/usr/bin/file conftest.o` in
10093     *64-bit*)
10094       case $lt_cv_prog_gnu_ld in
10095       yes*)
10096         case $host in
10097         i?86-*-solaris*)
10098           LD="${LD-ld} -m elf_x86_64"
10099           ;;
10100         sparc*-*-solaris*)
10101           LD="${LD-ld} -m elf64_sparc"
10102           ;;
10103         esac
10104         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
10105         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10106           LD="${LD-ld}_sol2"
10107         fi
10108         ;;
10109       *)
10110         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10111           LD="${LD-ld} -64"
10112         fi
10113         ;;
10114       esac
10115       ;;
10116     esac
10117   fi
10118   rm -rf conftest*
10119   ;;
10120 esac
10121
10122 need_locks="$enable_libtool_lock"
10123
10124 if test -n "$ac_tool_prefix"; then
10125   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10126 set dummy ${ac_tool_prefix}mt; ac_word=$2
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10128 $as_echo_n "checking for $ac_word... " >&6; }
10129 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10130   $as_echo_n "(cached) " >&6
10131 else
10132   if test -n "$MANIFEST_TOOL"; then
10133   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10134 else
10135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10136 for as_dir in $PATH
10137 do
10138   IFS=$as_save_IFS
10139   test -z "$as_dir" && as_dir=.
10140     for ac_exec_ext in '' $ac_executable_extensions; do
10141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10142     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10144     break 2
10145   fi
10146 done
10147   done
10148 IFS=$as_save_IFS
10149
10150 fi
10151 fi
10152 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10153 if test -n "$MANIFEST_TOOL"; then
10154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10155 $as_echo "$MANIFEST_TOOL" >&6; }
10156 else
10157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10158 $as_echo "no" >&6; }
10159 fi
10160
10161
10162 fi
10163 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10164   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10165   # Extract the first word of "mt", so it can be a program name with args.
10166 set dummy mt; ac_word=$2
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10168 $as_echo_n "checking for $ac_word... " >&6; }
10169 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10170   $as_echo_n "(cached) " >&6
10171 else
10172   if test -n "$ac_ct_MANIFEST_TOOL"; then
10173   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10174 else
10175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10176 for as_dir in $PATH
10177 do
10178   IFS=$as_save_IFS
10179   test -z "$as_dir" && as_dir=.
10180     for ac_exec_ext in '' $ac_executable_extensions; do
10181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10182     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10184     break 2
10185   fi
10186 done
10187   done
10188 IFS=$as_save_IFS
10189
10190 fi
10191 fi
10192 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10193 if test -n "$ac_ct_MANIFEST_TOOL"; then
10194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10195 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10196 else
10197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10198 $as_echo "no" >&6; }
10199 fi
10200
10201   if test "x$ac_ct_MANIFEST_TOOL" = x; then
10202     MANIFEST_TOOL=":"
10203   else
10204     case $cross_compiling:$ac_tool_warned in
10205 yes:)
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10208 ac_tool_warned=yes ;;
10209 esac
10210     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10211   fi
10212 else
10213   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10214 fi
10215
10216 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10218 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10219 if ${lt_cv_path_mainfest_tool+:} false; then :
10220   $as_echo_n "(cached) " >&6
10221 else
10222   lt_cv_path_mainfest_tool=no
10223   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10224   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10225   cat conftest.err >&5
10226   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10227     lt_cv_path_mainfest_tool=yes
10228   fi
10229   rm -f conftest*
10230 fi
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10232 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10233 if test "x$lt_cv_path_mainfest_tool" != xyes; then
10234   MANIFEST_TOOL=:
10235 fi
10236
10237
10238
10239
10240
10241
10242   case $host_os in
10243     rhapsody* | darwin*)
10244     if test -n "$ac_tool_prefix"; then
10245   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10246 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10248 $as_echo_n "checking for $ac_word... " >&6; }
10249 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10250   $as_echo_n "(cached) " >&6
10251 else
10252   if test -n "$DSYMUTIL"; then
10253   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10254 else
10255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10256 for as_dir in $PATH
10257 do
10258   IFS=$as_save_IFS
10259   test -z "$as_dir" && as_dir=.
10260     for ac_exec_ext in '' $ac_executable_extensions; do
10261   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10262     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10264     break 2
10265   fi
10266 done
10267   done
10268 IFS=$as_save_IFS
10269
10270 fi
10271 fi
10272 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10273 if test -n "$DSYMUTIL"; then
10274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10275 $as_echo "$DSYMUTIL" >&6; }
10276 else
10277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10278 $as_echo "no" >&6; }
10279 fi
10280
10281
10282 fi
10283 if test -z "$ac_cv_prog_DSYMUTIL"; then
10284   ac_ct_DSYMUTIL=$DSYMUTIL
10285   # Extract the first word of "dsymutil", so it can be a program name with args.
10286 set dummy dsymutil; ac_word=$2
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10288 $as_echo_n "checking for $ac_word... " >&6; }
10289 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10290   $as_echo_n "(cached) " >&6
10291 else
10292   if test -n "$ac_ct_DSYMUTIL"; then
10293   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10294 else
10295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296 for as_dir in $PATH
10297 do
10298   IFS=$as_save_IFS
10299   test -z "$as_dir" && as_dir=.
10300     for ac_exec_ext in '' $ac_executable_extensions; do
10301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10302     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10304     break 2
10305   fi
10306 done
10307   done
10308 IFS=$as_save_IFS
10309
10310 fi
10311 fi
10312 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10313 if test -n "$ac_ct_DSYMUTIL"; then
10314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10315 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10316 else
10317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318 $as_echo "no" >&6; }
10319 fi
10320
10321   if test "x$ac_ct_DSYMUTIL" = x; then
10322     DSYMUTIL=":"
10323   else
10324     case $cross_compiling:$ac_tool_warned in
10325 yes:)
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10328 ac_tool_warned=yes ;;
10329 esac
10330     DSYMUTIL=$ac_ct_DSYMUTIL
10331   fi
10332 else
10333   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10334 fi
10335
10336     if test -n "$ac_tool_prefix"; then
10337   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10338 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10340 $as_echo_n "checking for $ac_word... " >&6; }
10341 if ${ac_cv_prog_NMEDIT+:} false; then :
10342   $as_echo_n "(cached) " >&6
10343 else
10344   if test -n "$NMEDIT"; then
10345   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10346 else
10347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10348 for as_dir in $PATH
10349 do
10350   IFS=$as_save_IFS
10351   test -z "$as_dir" && as_dir=.
10352     for ac_exec_ext in '' $ac_executable_extensions; do
10353   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10354     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10356     break 2
10357   fi
10358 done
10359   done
10360 IFS=$as_save_IFS
10361
10362 fi
10363 fi
10364 NMEDIT=$ac_cv_prog_NMEDIT
10365 if test -n "$NMEDIT"; then
10366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10367 $as_echo "$NMEDIT" >&6; }
10368 else
10369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10370 $as_echo "no" >&6; }
10371 fi
10372
10373
10374 fi
10375 if test -z "$ac_cv_prog_NMEDIT"; then
10376   ac_ct_NMEDIT=$NMEDIT
10377   # Extract the first word of "nmedit", so it can be a program name with args.
10378 set dummy nmedit; ac_word=$2
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10380 $as_echo_n "checking for $ac_word... " >&6; }
10381 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10382   $as_echo_n "(cached) " >&6
10383 else
10384   if test -n "$ac_ct_NMEDIT"; then
10385   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10386 else
10387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10388 for as_dir in $PATH
10389 do
10390   IFS=$as_save_IFS
10391   test -z "$as_dir" && as_dir=.
10392     for ac_exec_ext in '' $ac_executable_extensions; do
10393   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10394     ac_cv_prog_ac_ct_NMEDIT="nmedit"
10395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10396     break 2
10397   fi
10398 done
10399   done
10400 IFS=$as_save_IFS
10401
10402 fi
10403 fi
10404 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10405 if test -n "$ac_ct_NMEDIT"; then
10406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10407 $as_echo "$ac_ct_NMEDIT" >&6; }
10408 else
10409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10410 $as_echo "no" >&6; }
10411 fi
10412
10413   if test "x$ac_ct_NMEDIT" = x; then
10414     NMEDIT=":"
10415   else
10416     case $cross_compiling:$ac_tool_warned in
10417 yes:)
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10420 ac_tool_warned=yes ;;
10421 esac
10422     NMEDIT=$ac_ct_NMEDIT
10423   fi
10424 else
10425   NMEDIT="$ac_cv_prog_NMEDIT"
10426 fi
10427
10428     if test -n "$ac_tool_prefix"; then
10429   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10430 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10432 $as_echo_n "checking for $ac_word... " >&6; }
10433 if ${ac_cv_prog_LIPO+:} false; then :
10434   $as_echo_n "(cached) " >&6
10435 else
10436   if test -n "$LIPO"; then
10437   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10438 else
10439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10440 for as_dir in $PATH
10441 do
10442   IFS=$as_save_IFS
10443   test -z "$as_dir" && as_dir=.
10444     for ac_exec_ext in '' $ac_executable_extensions; do
10445   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10446     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10448     break 2
10449   fi
10450 done
10451   done
10452 IFS=$as_save_IFS
10453
10454 fi
10455 fi
10456 LIPO=$ac_cv_prog_LIPO
10457 if test -n "$LIPO"; then
10458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10459 $as_echo "$LIPO" >&6; }
10460 else
10461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10462 $as_echo "no" >&6; }
10463 fi
10464
10465
10466 fi
10467 if test -z "$ac_cv_prog_LIPO"; then
10468   ac_ct_LIPO=$LIPO
10469   # Extract the first word of "lipo", so it can be a program name with args.
10470 set dummy lipo; ac_word=$2
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10472 $as_echo_n "checking for $ac_word... " >&6; }
10473 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10474   $as_echo_n "(cached) " >&6
10475 else
10476   if test -n "$ac_ct_LIPO"; then
10477   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10478 else
10479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10480 for as_dir in $PATH
10481 do
10482   IFS=$as_save_IFS
10483   test -z "$as_dir" && as_dir=.
10484     for ac_exec_ext in '' $ac_executable_extensions; do
10485   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10486     ac_cv_prog_ac_ct_LIPO="lipo"
10487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10488     break 2
10489   fi
10490 done
10491   done
10492 IFS=$as_save_IFS
10493
10494 fi
10495 fi
10496 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10497 if test -n "$ac_ct_LIPO"; then
10498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10499 $as_echo "$ac_ct_LIPO" >&6; }
10500 else
10501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10502 $as_echo "no" >&6; }
10503 fi
10504
10505   if test "x$ac_ct_LIPO" = x; then
10506     LIPO=":"
10507   else
10508     case $cross_compiling:$ac_tool_warned in
10509 yes:)
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10512 ac_tool_warned=yes ;;
10513 esac
10514     LIPO=$ac_ct_LIPO
10515   fi
10516 else
10517   LIPO="$ac_cv_prog_LIPO"
10518 fi
10519
10520     if test -n "$ac_tool_prefix"; then
10521   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10522 set dummy ${ac_tool_prefix}otool; ac_word=$2
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10524 $as_echo_n "checking for $ac_word... " >&6; }
10525 if ${ac_cv_prog_OTOOL+:} false; then :
10526   $as_echo_n "(cached) " >&6
10527 else
10528   if test -n "$OTOOL"; then
10529   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10530 else
10531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10532 for as_dir in $PATH
10533 do
10534   IFS=$as_save_IFS
10535   test -z "$as_dir" && as_dir=.
10536     for ac_exec_ext in '' $ac_executable_extensions; do
10537   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10538     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10540     break 2
10541   fi
10542 done
10543   done
10544 IFS=$as_save_IFS
10545
10546 fi
10547 fi
10548 OTOOL=$ac_cv_prog_OTOOL
10549 if test -n "$OTOOL"; then
10550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10551 $as_echo "$OTOOL" >&6; }
10552 else
10553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10554 $as_echo "no" >&6; }
10555 fi
10556
10557
10558 fi
10559 if test -z "$ac_cv_prog_OTOOL"; then
10560   ac_ct_OTOOL=$OTOOL
10561   # Extract the first word of "otool", so it can be a program name with args.
10562 set dummy otool; ac_word=$2
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10564 $as_echo_n "checking for $ac_word... " >&6; }
10565 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10566   $as_echo_n "(cached) " >&6
10567 else
10568   if test -n "$ac_ct_OTOOL"; then
10569   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10570 else
10571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10572 for as_dir in $PATH
10573 do
10574   IFS=$as_save_IFS
10575   test -z "$as_dir" && as_dir=.
10576     for ac_exec_ext in '' $ac_executable_extensions; do
10577   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10578     ac_cv_prog_ac_ct_OTOOL="otool"
10579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10580     break 2
10581   fi
10582 done
10583   done
10584 IFS=$as_save_IFS
10585
10586 fi
10587 fi
10588 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10589 if test -n "$ac_ct_OTOOL"; then
10590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10591 $as_echo "$ac_ct_OTOOL" >&6; }
10592 else
10593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10594 $as_echo "no" >&6; }
10595 fi
10596
10597   if test "x$ac_ct_OTOOL" = x; then
10598     OTOOL=":"
10599   else
10600     case $cross_compiling:$ac_tool_warned in
10601 yes:)
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10604 ac_tool_warned=yes ;;
10605 esac
10606     OTOOL=$ac_ct_OTOOL
10607   fi
10608 else
10609   OTOOL="$ac_cv_prog_OTOOL"
10610 fi
10611
10612     if test -n "$ac_tool_prefix"; then
10613   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10614 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10616 $as_echo_n "checking for $ac_word... " >&6; }
10617 if ${ac_cv_prog_OTOOL64+:} false; then :
10618   $as_echo_n "(cached) " >&6
10619 else
10620   if test -n "$OTOOL64"; then
10621   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10622 else
10623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10624 for as_dir in $PATH
10625 do
10626   IFS=$as_save_IFS
10627   test -z "$as_dir" && as_dir=.
10628     for ac_exec_ext in '' $ac_executable_extensions; do
10629   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10630     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10632     break 2
10633   fi
10634 done
10635   done
10636 IFS=$as_save_IFS
10637
10638 fi
10639 fi
10640 OTOOL64=$ac_cv_prog_OTOOL64
10641 if test -n "$OTOOL64"; then
10642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10643 $as_echo "$OTOOL64" >&6; }
10644 else
10645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10646 $as_echo "no" >&6; }
10647 fi
10648
10649
10650 fi
10651 if test -z "$ac_cv_prog_OTOOL64"; then
10652   ac_ct_OTOOL64=$OTOOL64
10653   # Extract the first word of "otool64", so it can be a program name with args.
10654 set dummy otool64; ac_word=$2
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10656 $as_echo_n "checking for $ac_word... " >&6; }
10657 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10658   $as_echo_n "(cached) " >&6
10659 else
10660   if test -n "$ac_ct_OTOOL64"; then
10661   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10662 else
10663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10664 for as_dir in $PATH
10665 do
10666   IFS=$as_save_IFS
10667   test -z "$as_dir" && as_dir=.
10668     for ac_exec_ext in '' $ac_executable_extensions; do
10669   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10670     ac_cv_prog_ac_ct_OTOOL64="otool64"
10671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10672     break 2
10673   fi
10674 done
10675   done
10676 IFS=$as_save_IFS
10677
10678 fi
10679 fi
10680 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10681 if test -n "$ac_ct_OTOOL64"; then
10682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10683 $as_echo "$ac_ct_OTOOL64" >&6; }
10684 else
10685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10686 $as_echo "no" >&6; }
10687 fi
10688
10689   if test "x$ac_ct_OTOOL64" = x; then
10690     OTOOL64=":"
10691   else
10692     case $cross_compiling:$ac_tool_warned in
10693 yes:)
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10696 ac_tool_warned=yes ;;
10697 esac
10698     OTOOL64=$ac_ct_OTOOL64
10699   fi
10700 else
10701   OTOOL64="$ac_cv_prog_OTOOL64"
10702 fi
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10731 $as_echo_n "checking for -single_module linker flag... " >&6; }
10732 if ${lt_cv_apple_cc_single_mod+:} false; then :
10733   $as_echo_n "(cached) " >&6
10734 else
10735   lt_cv_apple_cc_single_mod=no
10736       if test -z "${LT_MULTI_MODULE}"; then
10737         # By default we will add the -single_module flag. You can override
10738         # by either setting the environment variable LT_MULTI_MODULE
10739         # non-empty at configure time, or by adding -multi_module to the
10740         # link flags.
10741         rm -rf libconftest.dylib*
10742         echo "int foo(void){return 1;}" > conftest.c
10743         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10744 -dynamiclib -Wl,-single_module conftest.c" >&5
10745         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10746           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10747         _lt_result=$?
10748         # If there is a non-empty error log, and "single_module"
10749         # appears in it, assume the flag caused a linker warning
10750         if test -s conftest.err && $GREP single_module conftest.err; then
10751           cat conftest.err >&5
10752         # Otherwise, if the output was created with a 0 exit code from
10753         # the compiler, it worked.
10754         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
10755           lt_cv_apple_cc_single_mod=yes
10756         else
10757           cat conftest.err >&5
10758         fi
10759         rm -rf libconftest.dylib*
10760         rm -f conftest.*
10761       fi
10762 fi
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10764 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10765
10766     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10767 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10768 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10769   $as_echo_n "(cached) " >&6
10770 else
10771   lt_cv_ld_exported_symbols_list=no
10772       save_LDFLAGS=$LDFLAGS
10773       echo "_main" > conftest.sym
10774       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10775       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10776 /* end confdefs.h.  */
10777
10778 int main (void)
10779 {
10780
10781  ;
10782  return 0;
10783 }
10784 _ACEOF
10785 if ac_fn_c_try_link "$LINENO"; then :
10786   lt_cv_ld_exported_symbols_list=yes
10787 else
10788   lt_cv_ld_exported_symbols_list=no
10789 fi
10790 rm -f core conftest.err conftest.$ac_objext \
10791     conftest$ac_exeext conftest.$ac_ext
10792         LDFLAGS="$save_LDFLAGS"
10793
10794 fi
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10796 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10797
10798     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10799 $as_echo_n "checking for -force_load linker flag... " >&6; }
10800 if ${lt_cv_ld_force_load+:} false; then :
10801   $as_echo_n "(cached) " >&6
10802 else
10803   lt_cv_ld_force_load=no
10804       cat > conftest.c << _LT_EOF
10805 int forced_loaded() { return 2;}
10806 _LT_EOF
10807       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10808       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10809       echo "$AR cru libconftest.a conftest.o" >&5
10810       $AR cru libconftest.a conftest.o 2>&5
10811       echo "$RANLIB libconftest.a" >&5
10812       $RANLIB libconftest.a 2>&5
10813       cat > conftest.c << _LT_EOF
10814 int main() { return 0;}
10815 _LT_EOF
10816       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10817       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10818       _lt_result=$?
10819       if test -s conftest.err && $GREP force_load conftest.err; then
10820         cat conftest.err >&5
10821       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
10822         lt_cv_ld_force_load=yes
10823       else
10824         cat conftest.err >&5
10825       fi
10826         rm -f conftest.err libconftest.a conftest conftest.c
10827         rm -rf conftest.dSYM
10828
10829 fi
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10831 $as_echo "$lt_cv_ld_force_load" >&6; }
10832     case $host_os in
10833     rhapsody* | darwin1.[012])
10834       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10835     darwin1.*)
10836       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10837     darwin*) # darwin 5.x on
10838       # if running on 10.5 or later, the deployment target defaults
10839       # to the OS version, if on x86, and 10.4, the deployment
10840       # target defaults to 10.4. Don't you love it?
10841       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10842         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10843           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10844         10.[012]*)
10845           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10846         10.*)
10847           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10848       esac
10849     ;;
10850   esac
10851     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10852       _lt_dar_single_mod='$single_module'
10853     fi
10854     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10855       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10856     else
10857       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10858     fi
10859     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10860       _lt_dsymutil='~$DSYMUTIL $lib || :'
10861     else
10862       _lt_dsymutil=
10863     fi
10864     ;;
10865   esac
10866
10867 for ac_header in dlfcn.h
10868 do :
10869   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10870 "
10871 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10872   cat >>confdefs.h <<_ACEOF
10873 #define HAVE_DLFCN_H 1
10874 _ACEOF
10875
10876 fi
10877
10878 done
10879
10880 # ------------------------------------ #
10881 #  Determine libtool default behavior  #
10882 # ------------------------------------ #
10883
10884 #
10885 # Default behavior is to enable shared and static libraries on systems
10886 # where libtool knows how to build both library versions, and does not
10887 # require separate configuration and build runs for each flavor.
10888 #
10889
10890 xc_lt_want_enable_shared='yes'
10891 xc_lt_want_enable_static='yes'
10892
10893 #
10894 # User may have disabled shared or static libraries.
10895 #
10896 case "x$enable_shared" in # (
10897   xno)
10898     xc_lt_want_enable_shared='no'
10899     ;;
10900 esac
10901 case "x$enable_static" in # (
10902   xno)
10903     xc_lt_want_enable_static='no'
10904     ;;
10905 esac
10906 if test "x$xc_lt_want_enable_shared" = 'xno' &&
10907   test "x$xc_lt_want_enable_static" = 'xno'; then
10908   as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
10909 fi
10910
10911 #
10912 # Default behavior on systems that require independent configuration
10913 # and build runs for shared and static is to enable shared libraries
10914 # and disable static ones. On these systems option '--disable-shared'
10915 # must be used in order to build a proper static library.
10916 #
10917
10918 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
10919   test "x$xc_lt_want_enable_static" = 'xyes'; then
10920   case $host_os in # (
10921     mingw* | pw32* | cegcc* | os2* | aix*)
10922       xc_lt_want_enable_static='no'
10923       ;;
10924   esac
10925 fi
10926
10927 #
10928 # Make libtool aware of current shared and static library preferences
10929 # taking in account that, depending on host characteristics, libtool
10930 # may modify these option preferences later in this configure script.
10931 #
10932
10933 enable_shared=$xc_lt_want_enable_shared
10934 enable_static=$xc_lt_want_enable_static
10935
10936 #
10937 # Default behavior is to build PIC objects for shared libraries and
10938 # non-PIC objects for static libraries.
10939 #
10940
10941 xc_lt_want_with_pic='default'
10942
10943 #
10944 # User may have specified PIC preference.
10945 #
10946
10947 case "x$with_pic" in # ((
10948   xno)
10949     xc_lt_want_with_pic='no'
10950     ;;
10951   xyes)
10952     xc_lt_want_with_pic='yes'
10953     ;;
10954 esac
10955
10956 #
10957 # Default behavior on some systems where building a shared library out
10958 # of non-PIC compiled objects will fail with following linker error
10959 # "relocation R_X86_64_32 can not be used when making a shared object"
10960 # is to build PIC objects even for static libraries. This behavior may
10961 # be overriden using 'configure --disable-shared --without-pic'.
10962 #
10963
10964 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
10965   case $host_cpu in # (
10966     x86_64 | amd64 | ia64)
10967       case $host_os in # (
10968         linux* | freebsd*)
10969           xc_lt_want_with_pic='yes'
10970           ;;
10971       esac
10972       ;;
10973   esac
10974 fi
10975
10976 #
10977 # Make libtool aware of current PIC preference taking in account that,
10978 # depending on host characteristics, libtool may modify PIC default
10979 # behavior to fit host system idiosyncrasies later in this script.
10980 #
10981
10982 with_pic=$xc_lt_want_with_pic
10983
10984 ## ----------------------- ##
10985 ##  Start of libtool code  ##
10986 ## ----------------------- ##
10987
10988
10989
10990
10991 # Set options
10992 enable_win32_dll=yes
10993
10994 case $host in
10995 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10996   if test -n "$ac_tool_prefix"; then
10997   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10998 set dummy ${ac_tool_prefix}as; ac_word=$2
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11000 $as_echo_n "checking for $ac_word... " >&6; }
11001 if ${ac_cv_prog_AS+:} false; then :
11002   $as_echo_n "(cached) " >&6
11003 else
11004   if test -n "$AS"; then
11005   ac_cv_prog_AS="$AS" # Let the user override the test.
11006 else
11007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11008 for as_dir in $PATH
11009 do
11010   IFS=$as_save_IFS
11011   test -z "$as_dir" && as_dir=.
11012     for ac_exec_ext in '' $ac_executable_extensions; do
11013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11014     ac_cv_prog_AS="${ac_tool_prefix}as"
11015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11016     break 2
11017   fi
11018 done
11019   done
11020 IFS=$as_save_IFS
11021
11022 fi
11023 fi
11024 AS=$ac_cv_prog_AS
11025 if test -n "$AS"; then
11026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11027 $as_echo "$AS" >&6; }
11028 else
11029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11030 $as_echo "no" >&6; }
11031 fi
11032
11033
11034 fi
11035 if test -z "$ac_cv_prog_AS"; then
11036   ac_ct_AS=$AS
11037   # Extract the first word of "as", so it can be a program name with args.
11038 set dummy as; ac_word=$2
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11040 $as_echo_n "checking for $ac_word... " >&6; }
11041 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11042   $as_echo_n "(cached) " >&6
11043 else
11044   if test -n "$ac_ct_AS"; then
11045   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11046 else
11047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11048 for as_dir in $PATH
11049 do
11050   IFS=$as_save_IFS
11051   test -z "$as_dir" && as_dir=.
11052     for ac_exec_ext in '' $ac_executable_extensions; do
11053   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11054     ac_cv_prog_ac_ct_AS="as"
11055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11056     break 2
11057   fi
11058 done
11059   done
11060 IFS=$as_save_IFS
11061
11062 fi
11063 fi
11064 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11065 if test -n "$ac_ct_AS"; then
11066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11067 $as_echo "$ac_ct_AS" >&6; }
11068 else
11069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11070 $as_echo "no" >&6; }
11071 fi
11072
11073   if test "x$ac_ct_AS" = x; then
11074     AS="false"
11075   else
11076     case $cross_compiling:$ac_tool_warned in
11077 yes:)
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11080 ac_tool_warned=yes ;;
11081 esac
11082     AS=$ac_ct_AS
11083   fi
11084 else
11085   AS="$ac_cv_prog_AS"
11086 fi
11087
11088   if test -n "$ac_tool_prefix"; then
11089   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11090 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11092 $as_echo_n "checking for $ac_word... " >&6; }
11093 if ${ac_cv_prog_DLLTOOL+:} false; then :
11094   $as_echo_n "(cached) " >&6
11095 else
11096   if test -n "$DLLTOOL"; then
11097   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11098 else
11099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11100 for as_dir in $PATH
11101 do
11102   IFS=$as_save_IFS
11103   test -z "$as_dir" && as_dir=.
11104     for ac_exec_ext in '' $ac_executable_extensions; do
11105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11106     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11108     break 2
11109   fi
11110 done
11111   done
11112 IFS=$as_save_IFS
11113
11114 fi
11115 fi
11116 DLLTOOL=$ac_cv_prog_DLLTOOL
11117 if test -n "$DLLTOOL"; then
11118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11119 $as_echo "$DLLTOOL" >&6; }
11120 else
11121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11122 $as_echo "no" >&6; }
11123 fi
11124
11125
11126 fi
11127 if test -z "$ac_cv_prog_DLLTOOL"; then
11128   ac_ct_DLLTOOL=$DLLTOOL
11129   # Extract the first word of "dlltool", so it can be a program name with args.
11130 set dummy dlltool; ac_word=$2
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11132 $as_echo_n "checking for $ac_word... " >&6; }
11133 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11134   $as_echo_n "(cached) " >&6
11135 else
11136   if test -n "$ac_ct_DLLTOOL"; then
11137   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11138 else
11139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11140 for as_dir in $PATH
11141 do
11142   IFS=$as_save_IFS
11143   test -z "$as_dir" && as_dir=.
11144     for ac_exec_ext in '' $ac_executable_extensions; do
11145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11146     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11148     break 2
11149   fi
11150 done
11151   done
11152 IFS=$as_save_IFS
11153
11154 fi
11155 fi
11156 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11157 if test -n "$ac_ct_DLLTOOL"; then
11158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11159 $as_echo "$ac_ct_DLLTOOL" >&6; }
11160 else
11161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11162 $as_echo "no" >&6; }
11163 fi
11164
11165   if test "x$ac_ct_DLLTOOL" = x; then
11166     DLLTOOL="false"
11167   else
11168     case $cross_compiling:$ac_tool_warned in
11169 yes:)
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11172 ac_tool_warned=yes ;;
11173 esac
11174     DLLTOOL=$ac_ct_DLLTOOL
11175   fi
11176 else
11177   DLLTOOL="$ac_cv_prog_DLLTOOL"
11178 fi
11179
11180   if test -n "$ac_tool_prefix"; then
11181   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11182 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11184 $as_echo_n "checking for $ac_word... " >&6; }
11185 if ${ac_cv_prog_OBJDUMP+:} false; then :
11186   $as_echo_n "(cached) " >&6
11187 else
11188   if test -n "$OBJDUMP"; then
11189   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11190 else
11191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11192 for as_dir in $PATH
11193 do
11194   IFS=$as_save_IFS
11195   test -z "$as_dir" && as_dir=.
11196     for ac_exec_ext in '' $ac_executable_extensions; do
11197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11198     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11200     break 2
11201   fi
11202 done
11203   done
11204 IFS=$as_save_IFS
11205
11206 fi
11207 fi
11208 OBJDUMP=$ac_cv_prog_OBJDUMP
11209 if test -n "$OBJDUMP"; then
11210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11211 $as_echo "$OBJDUMP" >&6; }
11212 else
11213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11214 $as_echo "no" >&6; }
11215 fi
11216
11217
11218 fi
11219 if test -z "$ac_cv_prog_OBJDUMP"; then
11220   ac_ct_OBJDUMP=$OBJDUMP
11221   # Extract the first word of "objdump", so it can be a program name with args.
11222 set dummy objdump; ac_word=$2
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11224 $as_echo_n "checking for $ac_word... " >&6; }
11225 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11226   $as_echo_n "(cached) " >&6
11227 else
11228   if test -n "$ac_ct_OBJDUMP"; then
11229   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11230 else
11231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232 for as_dir in $PATH
11233 do
11234   IFS=$as_save_IFS
11235   test -z "$as_dir" && as_dir=.
11236     for ac_exec_ext in '' $ac_executable_extensions; do
11237   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11238     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11240     break 2
11241   fi
11242 done
11243   done
11244 IFS=$as_save_IFS
11245
11246 fi
11247 fi
11248 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11249 if test -n "$ac_ct_OBJDUMP"; then
11250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11251 $as_echo "$ac_ct_OBJDUMP" >&6; }
11252 else
11253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254 $as_echo "no" >&6; }
11255 fi
11256
11257   if test "x$ac_ct_OBJDUMP" = x; then
11258     OBJDUMP="false"
11259   else
11260     case $cross_compiling:$ac_tool_warned in
11261 yes:)
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11264 ac_tool_warned=yes ;;
11265 esac
11266     OBJDUMP=$ac_ct_OBJDUMP
11267   fi
11268 else
11269   OBJDUMP="$ac_cv_prog_OBJDUMP"
11270 fi
11271
11272   ;;
11273 esac
11274
11275 test -z "$AS" && AS=as
11276
11277
11278
11279
11280
11281 test -z "$DLLTOOL" && DLLTOOL=dlltool
11282
11283
11284
11285
11286
11287 test -z "$OBJDUMP" && OBJDUMP=objdump
11288
11289
11290
11291
11292
11293
11294
11295         enable_dlopen=no
11296
11297
11298
11299             # Check whether --enable-shared was given.
11300 if test "${enable_shared+set}" = set; then :
11301   enableval=$enable_shared; p=${PACKAGE-default}
11302     case $enableval in
11303     yes) enable_shared=yes ;;
11304     no) enable_shared=no ;;
11305     *)
11306       enable_shared=no
11307       # Look at the argument we got.  We use all the common list separators.
11308       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11309       for pkg in $enableval; do
11310         IFS="$lt_save_ifs"
11311         if test "X$pkg" = "X$p"; then
11312           enable_shared=yes
11313         fi
11314       done
11315       IFS="$lt_save_ifs"
11316       ;;
11317     esac
11318 else
11319   enable_shared=yes
11320 fi
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330   # Check whether --enable-static was given.
11331 if test "${enable_static+set}" = set; then :
11332   enableval=$enable_static; p=${PACKAGE-default}
11333     case $enableval in
11334     yes) enable_static=yes ;;
11335     no) enable_static=no ;;
11336     *)
11337      enable_static=no
11338       # Look at the argument we got.  We use all the common list separators.
11339       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11340       for pkg in $enableval; do
11341         IFS="$lt_save_ifs"
11342         if test "X$pkg" = "X$p"; then
11343           enable_static=yes
11344         fi
11345       done
11346       IFS="$lt_save_ifs"
11347       ;;
11348     esac
11349 else
11350   enable_static=yes
11351 fi
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362 # Check whether --with-pic was given.
11363 if test "${with_pic+set}" = set; then :
11364   withval=$with_pic; lt_p=${PACKAGE-default}
11365     case $withval in
11366     yes|no) pic_mode=$withval ;;
11367     *)
11368       pic_mode=default
11369       # Look at the argument we got.  We use all the common list separators.
11370       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11371       for lt_pkg in $withval; do
11372         IFS="$lt_save_ifs"
11373         if test "X$lt_pkg" = "X$lt_p"; then
11374           pic_mode=yes
11375         fi
11376       done
11377       IFS="$lt_save_ifs"
11378       ;;
11379     esac
11380 else
11381   pic_mode=default
11382 fi
11383
11384
11385 test -z "$pic_mode" && pic_mode=default
11386
11387
11388
11389
11390
11391
11392
11393   # Check whether --enable-fast-install was given.
11394 if test "${enable_fast_install+set}" = set; then :
11395   enableval=$enable_fast_install; p=${PACKAGE-default}
11396     case $enableval in
11397     yes) enable_fast_install=yes ;;
11398     no) enable_fast_install=no ;;
11399     *)
11400       enable_fast_install=no
11401       # Look at the argument we got.  We use all the common list separators.
11402       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11403       for pkg in $enableval; do
11404         IFS="$lt_save_ifs"
11405         if test "X$pkg" = "X$p"; then
11406           enable_fast_install=yes
11407         fi
11408       done
11409       IFS="$lt_save_ifs"
11410       ;;
11411     esac
11412 else
11413   enable_fast_install=yes
11414 fi
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426 # This can be used to rebuild libtool when needed
11427 LIBTOOL_DEPS="$ltmain"
11428
11429 # Always use our own libtool.
11430 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461 test -z "$LN_S" && LN_S="ln -s"
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476 if test -n "${ZSH_VERSION+set}" ; then
11477    setopt NO_GLOB_SUBST
11478 fi
11479
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11481 $as_echo_n "checking for objdir... " >&6; }
11482 if ${lt_cv_objdir+:} false; then :
11483   $as_echo_n "(cached) " >&6
11484 else
11485   rm -f .libs 2>/dev/null
11486 mkdir .libs 2>/dev/null
11487 if test -d .libs; then
11488   lt_cv_objdir=.libs
11489 else
11490   # MS-DOS does not allow filenames that begin with a dot.
11491   lt_cv_objdir=_libs
11492 fi
11493 rmdir .libs 2>/dev/null
11494 fi
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11496 $as_echo "$lt_cv_objdir" >&6; }
11497 objdir=$lt_cv_objdir
11498
11499
11500
11501
11502
11503 cat >>confdefs.h <<_ACEOF
11504 #define LT_OBJDIR "$lt_cv_objdir/"
11505 _ACEOF
11506
11507
11508
11509
11510 case $host_os in
11511 aix3*)
11512   # AIX sometimes has problems with the GCC collect2 program.  For some
11513   # reason, if we set the COLLECT_NAMES environment variable, the problems
11514   # vanish in a puff of smoke.
11515   if test "X${COLLECT_NAMES+set}" != Xset; then
11516     COLLECT_NAMES=
11517     export COLLECT_NAMES
11518   fi
11519   ;;
11520 esac
11521
11522 # Global variables:
11523 ofile=libtool
11524 can_build_shared=yes
11525
11526 # All known linkers require a `.a' archive for static linking (except MSVC,
11527 # which needs '.lib').
11528 libext=a
11529
11530 with_gnu_ld="$lt_cv_prog_gnu_ld"
11531
11532 old_CC="$CC"
11533 old_CFLAGS="$CFLAGS"
11534
11535 # Set sane defaults for various variables
11536 test -z "$CC" && CC=cc
11537 test -z "$LTCC" && LTCC=$CC
11538 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11539 test -z "$LD" && LD=ld
11540 test -z "$ac_objext" && ac_objext=o
11541
11542 for cc_temp in $compiler""; do
11543   case $cc_temp in
11544     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11545     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11546     \-*) ;;
11547     *) break;;
11548   esac
11549 done
11550 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11551
11552
11553 # Only perform the check for file, if the check method requires it
11554 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11555 case $deplibs_check_method in
11556 file_magic*)
11557   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11558     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11559 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11560 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11561   $as_echo_n "(cached) " >&6
11562 else
11563   case $MAGIC_CMD in
11564 [\\/*] |  ?:[\\/]*)
11565   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11566   ;;
11567 *)
11568   lt_save_MAGIC_CMD="$MAGIC_CMD"
11569   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11570   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11571   for ac_dir in $ac_dummy; do
11572     IFS="$lt_save_ifs"
11573     test -z "$ac_dir" && ac_dir=.
11574     if test -f $ac_dir/${ac_tool_prefix}file; then
11575       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11576       if test -n "$file_magic_test_file"; then
11577         case $deplibs_check_method in
11578         "file_magic "*)
11579           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11580           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11581           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11582             $EGREP "$file_magic_regex" > /dev/null; then
11583             :
11584           else
11585             cat <<_LT_EOF 1>&2
11586
11587 *** Warning: the command libtool uses to detect shared libraries,
11588 *** $file_magic_cmd, produces output that libtool cannot recognize.
11589 *** The result is that libtool may fail to recognize shared libraries
11590 *** as such.  This will affect the creation of libtool libraries that
11591 *** depend on shared libraries, but programs linked with such libtool
11592 *** libraries will work regardless of this problem.  Nevertheless, you
11593 *** may want to report the problem to your system manager and/or to
11594 *** bug-libtool@gnu.org
11595
11596 _LT_EOF
11597           fi ;;
11598         esac
11599       fi
11600       break
11601     fi
11602   done
11603   IFS="$lt_save_ifs"
11604   MAGIC_CMD="$lt_save_MAGIC_CMD"
11605   ;;
11606 esac
11607 fi
11608
11609 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11610 if test -n "$MAGIC_CMD"; then
11611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11612 $as_echo "$MAGIC_CMD" >&6; }
11613 else
11614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11615 $as_echo "no" >&6; }
11616 fi
11617
11618
11619
11620
11621
11622 if test -z "$lt_cv_path_MAGIC_CMD"; then
11623   if test -n "$ac_tool_prefix"; then
11624     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11625 $as_echo_n "checking for file... " >&6; }
11626 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11627   $as_echo_n "(cached) " >&6
11628 else
11629   case $MAGIC_CMD in
11630 [\\/*] |  ?:[\\/]*)
11631   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11632   ;;
11633 *)
11634   lt_save_MAGIC_CMD="$MAGIC_CMD"
11635   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11636   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11637   for ac_dir in $ac_dummy; do
11638     IFS="$lt_save_ifs"
11639     test -z "$ac_dir" && ac_dir=.
11640     if test -f $ac_dir/file; then
11641       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11642       if test -n "$file_magic_test_file"; then
11643         case $deplibs_check_method in
11644         "file_magic "*)
11645           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11646           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11647           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11648             $EGREP "$file_magic_regex" > /dev/null; then
11649             :
11650           else
11651             cat <<_LT_EOF 1>&2
11652
11653 *** Warning: the command libtool uses to detect shared libraries,
11654 *** $file_magic_cmd, produces output that libtool cannot recognize.
11655 *** The result is that libtool may fail to recognize shared libraries
11656 *** as such.  This will affect the creation of libtool libraries that
11657 *** depend on shared libraries, but programs linked with such libtool
11658 *** libraries will work regardless of this problem.  Nevertheless, you
11659 *** may want to report the problem to your system manager and/or to
11660 *** bug-libtool@gnu.org
11661
11662 _LT_EOF
11663           fi ;;
11664         esac
11665       fi
11666       break
11667     fi
11668   done
11669   IFS="$lt_save_ifs"
11670   MAGIC_CMD="$lt_save_MAGIC_CMD"
11671   ;;
11672 esac
11673 fi
11674
11675 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11676 if test -n "$MAGIC_CMD"; then
11677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11678 $as_echo "$MAGIC_CMD" >&6; }
11679 else
11680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11681 $as_echo "no" >&6; }
11682 fi
11683
11684
11685   else
11686     MAGIC_CMD=:
11687   fi
11688 fi
11689
11690   fi
11691   ;;
11692 esac
11693
11694 # Use C for the default configuration in the libtool script
11695
11696 lt_save_CC="$CC"
11697 ac_ext=c
11698 ac_cpp='$CPP $CPPFLAGS'
11699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11702
11703
11704 # Source file extension for C test sources.
11705 ac_ext=c
11706
11707 # Object file extension for compiled C test sources.
11708 objext=o
11709 objext=$objext
11710
11711 # Code to be used in simple compile tests
11712 lt_simple_compile_test_code="int some_variable = 0;"
11713
11714 # Code to be used in simple link tests
11715 lt_simple_link_test_code='int main(){return(0);}'
11716
11717
11718
11719
11720
11721
11722
11723 # If no C compiler was specified, use CC.
11724 LTCC=${LTCC-"$CC"}
11725
11726 # If no C compiler flags were specified, use CFLAGS.
11727 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11728
11729 # Allow CC to be a program name with arguments.
11730 compiler=$CC
11731
11732 # Save the default compiler, since it gets overwritten when the other
11733 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11734 compiler_DEFAULT=$CC
11735
11736 # save warnings/boilerplate of simple test code
11737 ac_outfile=conftest.$ac_objext
11738 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11739 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11740 _lt_compiler_boilerplate=`cat conftest.err`
11741 $RM conftest*
11742
11743 ac_outfile=conftest.$ac_objext
11744 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11745 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11746 _lt_linker_boilerplate=`cat conftest.err`
11747 $RM -r conftest*
11748
11749
11750 ## CAVEAT EMPTOR:
11751 ## There is no encapsulation within the following macros, do not change
11752 ## the running order or otherwise move them around unless you know exactly
11753 ## what you are doing...
11754 if test -n "$compiler"; then
11755
11756 lt_prog_compiler_no_builtin_flag=
11757
11758 if test "$GCC" = yes; then
11759   case $cc_basename in
11760   nvcc*)
11761     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11762   *)
11763     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11764   esac
11765
11766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11767 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11768 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11769   $as_echo_n "(cached) " >&6
11770 else
11771   lt_cv_prog_compiler_rtti_exceptions=no
11772    ac_outfile=conftest.$ac_objext
11773    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11774    lt_compiler_flag="-fno-rtti -fno-exceptions"
11775    # Insert the option either (1) after the last *FLAGS variable, or
11776    # (2) before a word containing "conftest.", or (3) at the end.
11777    # Note that $ac_compile itself does not contain backslashes and begins
11778    # with a dollar sign (not a hyphen), so the echo should work correctly.
11779    # The option is referenced via a variable to avoid confusing sed.
11780    lt_compile=`echo "$ac_compile" | $SED \
11781    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11782    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11783    -e 's:$: $lt_compiler_flag:'`
11784    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11785    (eval "$lt_compile" 2>conftest.err)
11786    ac_status=$?
11787    cat conftest.err >&5
11788    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789    if (exit $ac_status) && test -s "$ac_outfile"; then
11790      # The compiler can only warn and ignore the option if not recognized
11791      # So say no if there are warnings other than the usual output.
11792      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11793      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11794      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11795        lt_cv_prog_compiler_rtti_exceptions=yes
11796      fi
11797    fi
11798    $RM conftest*
11799
11800 fi
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11802 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11803
11804 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11805     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11806 else
11807     :
11808 fi
11809
11810 fi
11811
11812
11813
11814
11815
11816
11817   lt_prog_compiler_wl=
11818 lt_prog_compiler_pic=
11819 lt_prog_compiler_static=
11820
11821
11822   if test "$GCC" = yes; then
11823     lt_prog_compiler_wl='-Wl,'
11824     lt_prog_compiler_static='-static'
11825
11826     case $host_os in
11827       aix*)
11828       # All AIX code is PIC.
11829       if test "$host_cpu" = ia64; then
11830         # AIX 5 now supports IA64 processor
11831         lt_prog_compiler_static='-Bstatic'
11832       fi
11833       ;;
11834
11835     amigaos*)
11836       case $host_cpu in
11837       powerpc)
11838             # see comment about AmigaOS4 .so support
11839             lt_prog_compiler_pic='-fPIC'
11840         ;;
11841       m68k)
11842             # FIXME: we need at least 68020 code to build shared libraries, but
11843             # adding the `-m68020' flag to GCC prevents building anything better,
11844             # like `-m68040'.
11845             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11846         ;;
11847       esac
11848       ;;
11849
11850     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11851       # PIC is the default for these OSes.
11852       ;;
11853
11854     mingw* | cygwin* | pw32* | os2* | cegcc*)
11855       # This hack is so that the source file can tell whether it is being
11856       # built for inclusion in a dll (and should export symbols for example).
11857       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11858       # (--disable-auto-import) libraries
11859       lt_prog_compiler_pic='-DDLL_EXPORT'
11860       ;;
11861
11862     darwin* | rhapsody*)
11863       # PIC is the default on this platform
11864       # Common symbols not allowed in MH_DYLIB files
11865       lt_prog_compiler_pic='-fno-common'
11866       ;;
11867
11868     haiku*)
11869       # PIC is the default for Haiku.
11870       # The "-static" flag exists, but is broken.
11871       lt_prog_compiler_static=
11872       ;;
11873
11874     hpux*)
11875       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11876       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11877       # sets the default TLS model and affects inlining.
11878       case $host_cpu in
11879       hppa*64*)
11880         # +Z the default
11881         ;;
11882       *)
11883         lt_prog_compiler_pic='-fPIC'
11884         ;;
11885       esac
11886       ;;
11887
11888     interix[3-9]*)
11889       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11890       # Instead, we relocate shared libraries at runtime.
11891       ;;
11892
11893     msdosdjgpp*)
11894       # Just because we use GCC doesn't mean we suddenly get shared libraries
11895       # on systems that don't support them.
11896       lt_prog_compiler_can_build_shared=no
11897       enable_shared=no
11898       ;;
11899
11900     *nto* | *qnx*)
11901       # QNX uses GNU C++, but need to define -shared option too, otherwise
11902       # it will coredump.
11903       lt_prog_compiler_pic='-fPIC -shared'
11904       ;;
11905
11906     sysv4*MP*)
11907       if test -d /usr/nec; then
11908         lt_prog_compiler_pic=-Kconform_pic
11909       fi
11910       ;;
11911
11912     *)
11913       lt_prog_compiler_pic='-fPIC'
11914       ;;
11915     esac
11916
11917     case $cc_basename in
11918     nvcc*) # Cuda Compiler Driver 2.2
11919       lt_prog_compiler_wl='-Xlinker '
11920       if test -n "$lt_prog_compiler_pic"; then
11921         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11922       fi
11923       ;;
11924     esac
11925   else
11926     # PORTME Check for flag to pass linker flags through the system compiler.
11927     case $host_os in
11928     aix*)
11929       lt_prog_compiler_wl='-Wl,'
11930       if test "$host_cpu" = ia64; then
11931         # AIX 5 now supports IA64 processor
11932         lt_prog_compiler_static='-Bstatic'
11933       else
11934         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11935       fi
11936       ;;
11937
11938     mingw* | cygwin* | pw32* | os2* | cegcc*)
11939       # This hack is so that the source file can tell whether it is being
11940       # built for inclusion in a dll (and should export symbols for example).
11941       lt_prog_compiler_pic='-DDLL_EXPORT'
11942       ;;
11943
11944     hpux9* | hpux10* | hpux11*)
11945       lt_prog_compiler_wl='-Wl,'
11946       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11947       # not for PA HP-UX.
11948       case $host_cpu in
11949       hppa*64*|ia64*)
11950         # +Z the default
11951         ;;
11952       *)
11953         lt_prog_compiler_pic='+Z'
11954         ;;
11955       esac
11956       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11957       lt_prog_compiler_static='${wl}-a ${wl}archive'
11958       ;;
11959
11960     irix5* | irix6* | nonstopux*)
11961       lt_prog_compiler_wl='-Wl,'
11962       # PIC (with -KPIC) is the default.
11963       lt_prog_compiler_static='-non_shared'
11964       ;;
11965
11966     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11967       case $cc_basename in
11968       # old Intel for x86_64 which still supported -KPIC.
11969       ecc*)
11970         lt_prog_compiler_wl='-Wl,'
11971         lt_prog_compiler_pic='-KPIC'
11972         lt_prog_compiler_static='-static'
11973         ;;
11974       # icc used to be incompatible with GCC.
11975       # ICC 10 doesn't accept -KPIC any more.
11976       icc* | ifort*)
11977         lt_prog_compiler_wl='-Wl,'
11978         lt_prog_compiler_pic='-fPIC'
11979         lt_prog_compiler_static='-static'
11980         ;;
11981       # Lahey Fortran 8.1.
11982       lf95*)
11983         lt_prog_compiler_wl='-Wl,'
11984         lt_prog_compiler_pic='--shared'
11985         lt_prog_compiler_static='--static'
11986         ;;
11987       nagfor*)
11988         # NAG Fortran compiler
11989         lt_prog_compiler_wl='-Wl,-Wl,,'
11990         lt_prog_compiler_pic='-PIC'
11991         lt_prog_compiler_static='-Bstatic'
11992         ;;
11993       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11994         # Portland Group compilers (*not* the Pentium gcc compiler,
11995         # which looks to be a dead project)
11996         lt_prog_compiler_wl='-Wl,'
11997         lt_prog_compiler_pic='-fpic'
11998         lt_prog_compiler_static='-Bstatic'
11999         ;;
12000       ccc*)
12001         lt_prog_compiler_wl='-Wl,'
12002         # All Alpha code is PIC.
12003         lt_prog_compiler_static='-non_shared'
12004         ;;
12005       xl* | bgxl* | bgf* | mpixl*)
12006         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12007         lt_prog_compiler_wl='-Wl,'
12008         lt_prog_compiler_pic='-qpic'
12009         lt_prog_compiler_static='-qstaticlink'
12010         ;;
12011       *)
12012         case `$CC -V 2>&1 | sed 5q` in
12013         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12014           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12015           lt_prog_compiler_pic='-KPIC'
12016           lt_prog_compiler_static='-Bstatic'
12017           lt_prog_compiler_wl=''
12018           ;;
12019         *Sun\ F* | *Sun*Fortran*)
12020           lt_prog_compiler_pic='-KPIC'
12021           lt_prog_compiler_static='-Bstatic'
12022           lt_prog_compiler_wl='-Qoption ld '
12023           ;;
12024         *Sun\ C*)
12025           # Sun C 5.9
12026           lt_prog_compiler_pic='-KPIC'
12027           lt_prog_compiler_static='-Bstatic'
12028           lt_prog_compiler_wl='-Wl,'
12029           ;;
12030         *Intel*\ [CF]*Compiler*)
12031           lt_prog_compiler_wl='-Wl,'
12032           lt_prog_compiler_pic='-fPIC'
12033           lt_prog_compiler_static='-static'
12034           ;;
12035         *Portland\ Group*)
12036           lt_prog_compiler_wl='-Wl,'
12037           lt_prog_compiler_pic='-fpic'
12038           lt_prog_compiler_static='-Bstatic'
12039           ;;
12040         esac
12041         ;;
12042       esac
12043       ;;
12044
12045     newsos6)
12046       lt_prog_compiler_pic='-KPIC'
12047       lt_prog_compiler_static='-Bstatic'
12048       ;;
12049
12050     *nto* | *qnx*)
12051       # QNX uses GNU C++, but need to define -shared option too, otherwise
12052       # it will coredump.
12053       lt_prog_compiler_pic='-fPIC -shared'
12054       ;;
12055
12056     osf3* | osf4* | osf5*)
12057       lt_prog_compiler_wl='-Wl,'
12058       # All OSF/1 code is PIC.
12059       lt_prog_compiler_static='-non_shared'
12060       ;;
12061
12062     rdos*)
12063       lt_prog_compiler_static='-non_shared'
12064       ;;
12065
12066     solaris*)
12067       lt_prog_compiler_pic='-KPIC'
12068       lt_prog_compiler_static='-Bstatic'
12069       case $cc_basename in
12070       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12071         lt_prog_compiler_wl='-Qoption ld ';;
12072       *)
12073         lt_prog_compiler_wl='-Wl,';;
12074       esac
12075       ;;
12076
12077     sunos4*)
12078       lt_prog_compiler_wl='-Qoption ld '
12079       lt_prog_compiler_pic='-PIC'
12080       lt_prog_compiler_static='-Bstatic'
12081       ;;
12082
12083     sysv4 | sysv4.2uw2* | sysv4.3*)
12084       lt_prog_compiler_wl='-Wl,'
12085       lt_prog_compiler_pic='-KPIC'
12086       lt_prog_compiler_static='-Bstatic'
12087       ;;
12088
12089     sysv4*MP*)
12090       if test -d /usr/nec ;then
12091         lt_prog_compiler_pic='-Kconform_pic'
12092         lt_prog_compiler_static='-Bstatic'
12093       fi
12094       ;;
12095
12096     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12097       lt_prog_compiler_wl='-Wl,'
12098       lt_prog_compiler_pic='-KPIC'
12099       lt_prog_compiler_static='-Bstatic'
12100       ;;
12101
12102     unicos*)
12103       lt_prog_compiler_wl='-Wl,'
12104       lt_prog_compiler_can_build_shared=no
12105       ;;
12106
12107     uts4*)
12108       lt_prog_compiler_pic='-pic'
12109       lt_prog_compiler_static='-Bstatic'
12110       ;;
12111
12112     *)
12113       lt_prog_compiler_can_build_shared=no
12114       ;;
12115     esac
12116   fi
12117
12118 case $host_os in
12119   # For platforms which do not support PIC, -DPIC is meaningless:
12120   *djgpp*)
12121     lt_prog_compiler_pic=
12122     ;;
12123   *)
12124     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12125     ;;
12126 esac
12127
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12129 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12130 if ${lt_cv_prog_compiler_pic+:} false; then :
12131   $as_echo_n "(cached) " >&6
12132 else
12133   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12134 fi
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12136 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12137 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12138
12139 #
12140 # Check to make sure the PIC flag actually works.
12141 #
12142 if test -n "$lt_prog_compiler_pic"; then
12143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12144 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12145 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12146   $as_echo_n "(cached) " >&6
12147 else
12148   lt_cv_prog_compiler_pic_works=no
12149    ac_outfile=conftest.$ac_objext
12150    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12151    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12152    # Insert the option either (1) after the last *FLAGS variable, or
12153    # (2) before a word containing "conftest.", or (3) at the end.
12154    # Note that $ac_compile itself does not contain backslashes and begins
12155    # with a dollar sign (not a hyphen), so the echo should work correctly.
12156    # The option is referenced via a variable to avoid confusing sed.
12157    lt_compile=`echo "$ac_compile" | $SED \
12158    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12159    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12160    -e 's:$: $lt_compiler_flag:'`
12161    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12162    (eval "$lt_compile" 2>conftest.err)
12163    ac_status=$?
12164    cat conftest.err >&5
12165    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166    if (exit $ac_status) && test -s "$ac_outfile"; then
12167      # The compiler can only warn and ignore the option if not recognized
12168      # So say no if there are warnings other than the usual output.
12169      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12170      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12171      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12172        lt_cv_prog_compiler_pic_works=yes
12173      fi
12174    fi
12175    $RM conftest*
12176
12177 fi
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12179 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12180
12181 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12182     case $lt_prog_compiler_pic in
12183      "" | " "*) ;;
12184      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12185      esac
12186 else
12187     lt_prog_compiler_pic=
12188      lt_prog_compiler_can_build_shared=no
12189 fi
12190
12191 fi
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203 #
12204 # Check to make sure the static flag actually works.
12205 #
12206 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12208 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12209 if ${lt_cv_prog_compiler_static_works+:} false; then :
12210   $as_echo_n "(cached) " >&6
12211 else
12212   lt_cv_prog_compiler_static_works=no
12213    save_LDFLAGS="$LDFLAGS"
12214    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12215    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12216    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12217      # The linker can only warn and ignore the option if not recognized
12218      # So say no if there are warnings
12219      if test -s conftest.err; then
12220        # Append any errors to the config.log.
12221        cat conftest.err 1>&5
12222        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12223        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12224        if diff conftest.exp conftest.er2 >/dev/null; then
12225          lt_cv_prog_compiler_static_works=yes
12226        fi
12227      else
12228        lt_cv_prog_compiler_static_works=yes
12229      fi
12230    fi
12231    $RM -r conftest*
12232    LDFLAGS="$save_LDFLAGS"
12233
12234 fi
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12236 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12237
12238 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12239     :
12240 else
12241     lt_prog_compiler_static=
12242 fi
12243
12244
12245
12246
12247
12248
12249
12250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12251 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12252 if ${lt_cv_prog_compiler_c_o+:} false; then :
12253   $as_echo_n "(cached) " >&6
12254 else
12255   lt_cv_prog_compiler_c_o=no
12256    $RM -r conftest 2>/dev/null
12257    mkdir conftest
12258    cd conftest
12259    mkdir out
12260    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12261
12262    lt_compiler_flag="-o out/conftest2.$ac_objext"
12263    # Insert the option either (1) after the last *FLAGS variable, or
12264    # (2) before a word containing "conftest.", or (3) at the end.
12265    # Note that $ac_compile itself does not contain backslashes and begins
12266    # with a dollar sign (not a hyphen), so the echo should work correctly.
12267    lt_compile=`echo "$ac_compile" | $SED \
12268    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12269    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12270    -e 's:$: $lt_compiler_flag:'`
12271    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12272    (eval "$lt_compile" 2>out/conftest.err)
12273    ac_status=$?
12274    cat out/conftest.err >&5
12275    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12277    then
12278      # The compiler can only warn and ignore the option if not recognized
12279      # So say no if there are warnings
12280      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12281      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12282      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12283        lt_cv_prog_compiler_c_o=yes
12284      fi
12285    fi
12286    chmod u+w . 2>&5
12287    $RM conftest*
12288    # SGI C++ compiler will create directory out/ii_files/ for
12289    # template instantiation
12290    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12291    $RM out/* && rmdir out
12292    cd ..
12293    $RM -r conftest
12294    $RM conftest*
12295
12296 fi
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12298 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12299
12300
12301
12302
12303
12304
12305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12306 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12307 if ${lt_cv_prog_compiler_c_o+:} false; then :
12308   $as_echo_n "(cached) " >&6
12309 else
12310   lt_cv_prog_compiler_c_o=no
12311    $RM -r conftest 2>/dev/null
12312    mkdir conftest
12313    cd conftest
12314    mkdir out
12315    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12316
12317    lt_compiler_flag="-o out/conftest2.$ac_objext"
12318    # Insert the option either (1) after the last *FLAGS variable, or
12319    # (2) before a word containing "conftest.", or (3) at the end.
12320    # Note that $ac_compile itself does not contain backslashes and begins
12321    # with a dollar sign (not a hyphen), so the echo should work correctly.
12322    lt_compile=`echo "$ac_compile" | $SED \
12323    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12324    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12325    -e 's:$: $lt_compiler_flag:'`
12326    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12327    (eval "$lt_compile" 2>out/conftest.err)
12328    ac_status=$?
12329    cat out/conftest.err >&5
12330    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12332    then
12333      # The compiler can only warn and ignore the option if not recognized
12334      # So say no if there are warnings
12335      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12336      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12337      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12338        lt_cv_prog_compiler_c_o=yes
12339      fi
12340    fi
12341    chmod u+w . 2>&5
12342    $RM conftest*
12343    # SGI C++ compiler will create directory out/ii_files/ for
12344    # template instantiation
12345    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12346    $RM out/* && rmdir out
12347    cd ..
12348    $RM -r conftest
12349    $RM conftest*
12350
12351 fi
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12353 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12354
12355
12356
12357
12358 hard_links="nottested"
12359 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12360   # do not overwrite the value of need_locks provided by the user
12361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12362 $as_echo_n "checking if we can lock with hard links... " >&6; }
12363   hard_links=yes
12364   $RM conftest*
12365   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12366   touch conftest.a
12367   ln conftest.a conftest.b 2>&5 || hard_links=no
12368   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12370 $as_echo "$hard_links" >&6; }
12371   if test "$hard_links" = no; then
12372     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12373 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12374     need_locks=warn
12375   fi
12376 else
12377   need_locks=no
12378 fi
12379
12380
12381
12382
12383
12384
12385   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12386 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12387
12388   runpath_var=
12389   allow_undefined_flag=
12390   always_export_symbols=no
12391   archive_cmds=
12392   archive_expsym_cmds=
12393   compiler_needs_object=no
12394   enable_shared_with_static_runtimes=no
12395   export_dynamic_flag_spec=
12396   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12397   hardcode_automatic=no
12398   hardcode_direct=no
12399   hardcode_direct_absolute=no
12400   hardcode_libdir_flag_spec=
12401   hardcode_libdir_separator=
12402   hardcode_minus_L=no
12403   hardcode_shlibpath_var=unsupported
12404   inherit_rpath=no
12405   link_all_deplibs=unknown
12406   module_cmds=
12407   module_expsym_cmds=
12408   old_archive_from_new_cmds=
12409   old_archive_from_expsyms_cmds=
12410   thread_safe_flag_spec=
12411   whole_archive_flag_spec=
12412   # include_expsyms should be a list of space-separated symbols to be *always*
12413   # included in the symbol list
12414   include_expsyms=
12415   # exclude_expsyms can be an extended regexp of symbols to exclude
12416   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12417   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12418   # as well as any symbol that contains `d'.
12419   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12420   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12421   # platforms (ab)use it in PIC code, but their linkers get confused if
12422   # the symbol is explicitly referenced.  Since portable code cannot
12423   # rely on this symbol name, it's probably fine to never include it in
12424   # preloaded symbol tables.
12425   # Exclude shared library initialization/finalization symbols.
12426   extract_expsyms_cmds=
12427
12428   case $host_os in
12429   cygwin* | mingw* | pw32* | cegcc*)
12430     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12431     # When not using gcc, we currently assume that we are using
12432     # Microsoft Visual C++.
12433     if test "$GCC" != yes; then
12434       with_gnu_ld=no
12435     fi
12436     ;;
12437   interix*)
12438     # we just hope/assume this is gcc and not c89 (= MSVC++)
12439     with_gnu_ld=yes
12440     ;;
12441   openbsd*)
12442     with_gnu_ld=no
12443     ;;
12444   linux* | k*bsd*-gnu | gnu*)
12445     link_all_deplibs=no
12446     ;;
12447   esac
12448
12449   ld_shlibs=yes
12450
12451   # On some targets, GNU ld is compatible enough with the native linker
12452   # that we're better off using the native interface for both.
12453   lt_use_gnu_ld_interface=no
12454   if test "$with_gnu_ld" = yes; then
12455     case $host_os in
12456       aix*)
12457         # The AIX port of GNU ld has always aspired to compatibility
12458         # with the native linker.  However, as the warning in the GNU ld
12459         # block says, versions before 2.19.5* couldn't really create working
12460         # shared libraries, regardless of the interface used.
12461         case `$LD -v 2>&1` in
12462           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12463           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12464           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12465           *)
12466             lt_use_gnu_ld_interface=yes
12467             ;;
12468         esac
12469         ;;
12470       *)
12471         lt_use_gnu_ld_interface=yes
12472         ;;
12473     esac
12474   fi
12475
12476   if test "$lt_use_gnu_ld_interface" = yes; then
12477     # If archive_cmds runs LD, not CC, wlarc should be empty
12478     wlarc='${wl}'
12479
12480     # Set some defaults for GNU ld with shared library support. These
12481     # are reset later if shared libraries are not supported. Putting them
12482     # here allows them to be overridden if necessary.
12483     runpath_var=LD_RUN_PATH
12484     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12485     export_dynamic_flag_spec='${wl}--export-dynamic'
12486     # ancient GNU ld didn't support --whole-archive et. al.
12487     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12488       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12489     else
12490       whole_archive_flag_spec=
12491     fi
12492     supports_anon_versioning=no
12493     case `$LD -v 2>&1` in
12494       *GNU\ gold*) supports_anon_versioning=yes ;;
12495       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12496       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12497       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12498       *\ 2.11.*) ;; # other 2.11 versions
12499       *) supports_anon_versioning=yes ;;
12500     esac
12501
12502     # See if GNU ld supports shared libraries.
12503     case $host_os in
12504     aix[3-9]*)
12505       # On AIX/PPC, the GNU linker is very broken
12506       if test "$host_cpu" != ia64; then
12507         ld_shlibs=no
12508         cat <<_LT_EOF 1>&2
12509
12510 *** Warning: the GNU linker, at least up to release 2.19, is reported
12511 *** to be unable to reliably create shared libraries on AIX.
12512 *** Therefore, libtool is disabling shared libraries support.  If you
12513 *** really care for shared libraries, you may want to install binutils
12514 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12515 *** You will then need to restart the configuration process.
12516
12517 _LT_EOF
12518       fi
12519       ;;
12520
12521     amigaos*)
12522       case $host_cpu in
12523       powerpc)
12524             # see comment about AmigaOS4 .so support
12525             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12526             archive_expsym_cmds=''
12527         ;;
12528       m68k)
12529             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)'
12530             hardcode_libdir_flag_spec='-L$libdir'
12531             hardcode_minus_L=yes
12532         ;;
12533       esac
12534       ;;
12535
12536     beos*)
12537       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12538         allow_undefined_flag=unsupported
12539         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12540         # support --undefined.  This deserves some investigation.  FIXME
12541         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12542       else
12543         ld_shlibs=no
12544       fi
12545       ;;
12546
12547     cygwin* | mingw* | pw32* | cegcc*)
12548       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12549       # as there is no search path for DLLs.
12550       hardcode_libdir_flag_spec='-L$libdir'
12551       export_dynamic_flag_spec='${wl}--export-all-symbols'
12552       allow_undefined_flag=unsupported
12553       always_export_symbols=no
12554       enable_shared_with_static_runtimes=yes
12555       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'
12556       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12557
12558       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12559         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12560         # If the export-symbols file already is a .def file (1st line
12561         # is EXPORTS), use it as is; otherwise, prepend...
12562         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12563           cp $export_symbols $output_objdir/$soname.def;
12564         else
12565           echo EXPORTS > $output_objdir/$soname.def;
12566           cat $export_symbols >> $output_objdir/$soname.def;
12567         fi~
12568         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12569       else
12570         ld_shlibs=no
12571       fi
12572       ;;
12573
12574     haiku*)
12575       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12576       link_all_deplibs=yes
12577       ;;
12578
12579     interix[3-9]*)
12580       hardcode_direct=no
12581       hardcode_shlibpath_var=no
12582       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12583       export_dynamic_flag_spec='${wl}-E'
12584       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12585       # Instead, shared libraries are loaded at an image base (0x10000000 by
12586       # default) and relocated if they conflict, which is a slow very memory
12587       # consuming and fragmenting process.  To avoid this, we pick a random,
12588       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12589       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12590       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12591       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'
12592       ;;
12593
12594     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12595       tmp_diet=no
12596       if test "$host_os" = linux-dietlibc; then
12597         case $cc_basename in
12598           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12599         esac
12600       fi
12601       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12602          && test "$tmp_diet" = no
12603       then
12604         tmp_addflag=' $pic_flag'
12605         tmp_sharedflag='-shared'
12606         case $cc_basename,$host_cpu in
12607         pgcc*)                          # Portland Group C compiler
12608           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'
12609           tmp_addflag=' $pic_flag'
12610           ;;
12611         pgf77* | pgf90* | pgf95* | pgfortran*)
12612                                         # Portland Group f77 and f90 compilers
12613           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'
12614           tmp_addflag=' $pic_flag -Mnomain' ;;
12615         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12616           tmp_addflag=' -i_dynamic' ;;
12617         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12618           tmp_addflag=' -i_dynamic -nofor_main' ;;
12619         ifc* | ifort*)                  # Intel Fortran compiler
12620           tmp_addflag=' -nofor_main' ;;
12621         lf95*)                          # Lahey Fortran 8.1
12622           whole_archive_flag_spec=
12623           tmp_sharedflag='--shared' ;;
12624         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12625           tmp_sharedflag='-qmkshrobj'
12626           tmp_addflag= ;;
12627         nvcc*)  # Cuda Compiler Driver 2.2
12628           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'
12629           compiler_needs_object=yes
12630           ;;
12631         esac
12632         case `$CC -V 2>&1 | sed 5q` in
12633         *Sun\ C*)                       # Sun C 5.9
12634           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'
12635           compiler_needs_object=yes
12636           tmp_sharedflag='-G' ;;
12637         *Sun\ F*)                       # Sun Fortran 8.3
12638           tmp_sharedflag='-G' ;;
12639         esac
12640         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12641
12642         if test "x$supports_anon_versioning" = xyes; then
12643           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12644             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12645             echo "local: *; };" >> $output_objdir/$libname.ver~
12646             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12647         fi
12648
12649         case $cc_basename in
12650         xlf* | bgf* | bgxlf* | mpixlf*)
12651           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12652           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12653           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12654           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12655           if test "x$supports_anon_versioning" = xyes; then
12656             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12657               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12658               echo "local: *; };" >> $output_objdir/$libname.ver~
12659               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12660           fi
12661           ;;
12662         esac
12663       else
12664         ld_shlibs=no
12665       fi
12666       ;;
12667
12668     netbsd* | netbsdelf*-gnu)
12669       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12670         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12671         wlarc=
12672       else
12673         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12674         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12675       fi
12676       ;;
12677
12678     solaris*)
12679       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12680         ld_shlibs=no
12681         cat <<_LT_EOF 1>&2
12682
12683 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12684 *** create shared libraries on Solaris systems.  Therefore, libtool
12685 *** is disabling shared libraries support.  We urge you to upgrade GNU
12686 *** binutils to release 2.9.1 or newer.  Another option is to modify
12687 *** your PATH or compiler configuration so that the native linker is
12688 *** used, and then restart.
12689
12690 _LT_EOF
12691       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12692         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12693         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12694       else
12695         ld_shlibs=no
12696       fi
12697       ;;
12698
12699     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12700       case `$LD -v 2>&1` in
12701         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12702         ld_shlibs=no
12703         cat <<_LT_EOF 1>&2
12704
12705 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12706 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12707 *** is disabling shared libraries support.  We urge you to upgrade GNU
12708 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12709 *** your PATH or compiler configuration so that the native linker is
12710 *** used, and then restart.
12711
12712 _LT_EOF
12713         ;;
12714         *)
12715           # For security reasons, it is highly recommended that you always
12716           # use absolute paths for naming shared libraries, and exclude the
12717           # DT_RUNPATH tag from executables and libraries.  But doing so
12718           # requires that you compile everything twice, which is a pain.
12719           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12720             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12721             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12722             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12723           else
12724             ld_shlibs=no
12725           fi
12726         ;;
12727       esac
12728       ;;
12729
12730     sunos4*)
12731       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12732       wlarc=
12733       hardcode_direct=yes
12734       hardcode_shlibpath_var=no
12735       ;;
12736
12737     *)
12738       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12739         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12740         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12741       else
12742         ld_shlibs=no
12743       fi
12744       ;;
12745     esac
12746
12747     if test "$ld_shlibs" = no; then
12748       runpath_var=
12749       hardcode_libdir_flag_spec=
12750       export_dynamic_flag_spec=
12751       whole_archive_flag_spec=
12752     fi
12753   else
12754     # PORTME fill in a description of your system's linker (not GNU ld)
12755     case $host_os in
12756     aix3*)
12757       allow_undefined_flag=unsupported
12758       always_export_symbols=yes
12759       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'
12760       # Note: this linker hardcodes the directories in LIBPATH if there
12761       # are no directories specified by -L.
12762       hardcode_minus_L=yes
12763       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12764         # Neither direct hardcoding nor static linking is supported with a
12765         # broken collect2.
12766         hardcode_direct=unsupported
12767       fi
12768       ;;
12769
12770     aix[4-9]*)
12771       if test "$host_cpu" = ia64; then
12772         # On IA64, the linker does run time linking by default, so we don't
12773         # have to do anything special.
12774         aix_use_runtimelinking=no
12775         exp_sym_flag='-Bexport'
12776         no_entry_flag=""
12777       else
12778         # If we're using GNU nm, then we don't want the "-C" option.
12779         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12780         # Also, AIX nm treats weak defined symbols like other global
12781         # defined symbols, whereas GNU nm marks them as "W".
12782         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12783           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12784         else
12785           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12786         fi
12787         aix_use_runtimelinking=no
12788
12789         # Test if we are trying to use run time linking or normal
12790         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12791         # need to do runtime linking.
12792         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12793           for ld_flag in $LDFLAGS; do
12794           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12795             aix_use_runtimelinking=yes
12796             break
12797           fi
12798           done
12799           ;;
12800         esac
12801
12802         exp_sym_flag='-bexport'
12803         no_entry_flag='-bnoentry'
12804       fi
12805
12806       # When large executables or shared objects are built, AIX ld can
12807       # have problems creating the table of contents.  If linking a library
12808       # or program results in "error TOC overflow" add -mminimal-toc to
12809       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12810       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12811
12812       archive_cmds=''
12813       hardcode_direct=yes
12814       hardcode_direct_absolute=yes
12815       hardcode_libdir_separator=':'
12816       link_all_deplibs=yes
12817       file_list_spec='${wl}-f,'
12818
12819       if test "$GCC" = yes; then
12820         case $host_os in aix4.[012]|aix4.[012].*)
12821         # We only want to do this on AIX 4.2 and lower, the check
12822         # below for broken collect2 doesn't work under 4.3+
12823           collect2name=`${CC} -print-prog-name=collect2`
12824           if test -f "$collect2name" &&
12825            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12826           then
12827           # We have reworked collect2
12828           :
12829           else
12830           # We have old collect2
12831           hardcode_direct=unsupported
12832           # It fails to find uninstalled libraries when the uninstalled
12833           # path is not listed in the libpath.  Setting hardcode_minus_L
12834           # to unsupported forces relinking
12835           hardcode_minus_L=yes
12836           hardcode_libdir_flag_spec='-L$libdir'
12837           hardcode_libdir_separator=
12838           fi
12839           ;;
12840         esac
12841         shared_flag='-shared'
12842         if test "$aix_use_runtimelinking" = yes; then
12843           shared_flag="$shared_flag "'${wl}-G'
12844         fi
12845         link_all_deplibs=no
12846       else
12847         # not using gcc
12848         if test "$host_cpu" = ia64; then
12849         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12850         # chokes on -Wl,-G. The following line is correct:
12851           shared_flag='-G'
12852         else
12853           if test "$aix_use_runtimelinking" = yes; then
12854             shared_flag='${wl}-G'
12855           else
12856             shared_flag='${wl}-bM:SRE'
12857           fi
12858         fi
12859       fi
12860
12861       export_dynamic_flag_spec='${wl}-bexpall'
12862       # It seems that -bexpall does not export symbols beginning with
12863       # underscore (_), so it is better to generate a list of symbols to export.
12864       always_export_symbols=yes
12865       if test "$aix_use_runtimelinking" = yes; then
12866         # Warning - without using the other runtime loading flags (-brtl),
12867         # -berok will link without error, but may produce a broken library.
12868         allow_undefined_flag='-berok'
12869         # Determine the default libpath from the value encoded in an
12870         # empty executable.
12871         if test "${lt_cv_aix_libpath+set}" = set; then
12872   aix_libpath=$lt_cv_aix_libpath
12873 else
12874   if ${lt_cv_aix_libpath_+:} false; then :
12875   $as_echo_n "(cached) " >&6
12876 else
12877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12878 /* end confdefs.h.  */
12879
12880 int main (void)
12881 {
12882
12883  ;
12884  return 0;
12885 }
12886 _ACEOF
12887 if ac_fn_c_try_link "$LINENO"; then :
12888
12889   lt_aix_libpath_sed='
12890       /Import File Strings/,/^$/ {
12891           /^0/ {
12892               s/^0  *\([^ ]*\) *$/\1/
12893               p
12894           }
12895       }'
12896   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12897   # Check for a 64-bit object if we didn't find anything.
12898   if test -z "$lt_cv_aix_libpath_"; then
12899     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12900   fi
12901 fi
12902 rm -f core conftest.err conftest.$ac_objext \
12903     conftest$ac_exeext conftest.$ac_ext
12904   if test -z "$lt_cv_aix_libpath_"; then
12905     lt_cv_aix_libpath_="/usr/lib:/lib"
12906   fi
12907
12908 fi
12909
12910   aix_libpath=$lt_cv_aix_libpath_
12911 fi
12912
12913         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12914         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12915       else
12916         if test "$host_cpu" = ia64; then
12917           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12918           allow_undefined_flag="-z nodefs"
12919           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"
12920         else
12921          # Determine the default libpath from the value encoded in an
12922          # empty executable.
12923          if test "${lt_cv_aix_libpath+set}" = set; then
12924   aix_libpath=$lt_cv_aix_libpath
12925 else
12926   if ${lt_cv_aix_libpath_+:} false; then :
12927   $as_echo_n "(cached) " >&6
12928 else
12929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930 /* end confdefs.h.  */
12931
12932 int main (void)
12933 {
12934
12935  ;
12936  return 0;
12937 }
12938 _ACEOF
12939 if ac_fn_c_try_link "$LINENO"; then :
12940
12941   lt_aix_libpath_sed='
12942       /Import File Strings/,/^$/ {
12943           /^0/ {
12944               s/^0  *\([^ ]*\) *$/\1/
12945               p
12946           }
12947       }'
12948   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12949   # Check for a 64-bit object if we didn't find anything.
12950   if test -z "$lt_cv_aix_libpath_"; then
12951     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12952   fi
12953 fi
12954 rm -f core conftest.err conftest.$ac_objext \
12955     conftest$ac_exeext conftest.$ac_ext
12956   if test -z "$lt_cv_aix_libpath_"; then
12957     lt_cv_aix_libpath_="/usr/lib:/lib"
12958   fi
12959
12960 fi
12961
12962   aix_libpath=$lt_cv_aix_libpath_
12963 fi
12964
12965          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12966           # Warning - without using the other run time loading flags,
12967           # -berok will link without error, but may produce a broken library.
12968           no_undefined_flag=' ${wl}-bernotok'
12969           allow_undefined_flag=' ${wl}-berok'
12970           if test "$with_gnu_ld" = yes; then
12971             # We only use this code for GNU lds that support --whole-archive.
12972             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12973           else
12974             # Exported symbols can be pulled into shared objects from archives
12975             whole_archive_flag_spec='$convenience'
12976           fi
12977           archive_cmds_need_lc=yes
12978           # This is similar to how AIX traditionally builds its shared libraries.
12979           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12980         fi
12981       fi
12982       ;;
12983
12984     amigaos*)
12985       case $host_cpu in
12986       powerpc)
12987             # see comment about AmigaOS4 .so support
12988             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12989             archive_expsym_cmds=''
12990         ;;
12991       m68k)
12992             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)'
12993             hardcode_libdir_flag_spec='-L$libdir'
12994             hardcode_minus_L=yes
12995         ;;
12996       esac
12997       ;;
12998
12999     bsdi[45]*)
13000       export_dynamic_flag_spec=-rdynamic
13001       ;;
13002
13003     cygwin* | mingw* | pw32* | cegcc*)
13004       # When not using gcc, we currently assume that we are using
13005       # Microsoft Visual C++.
13006       # hardcode_libdir_flag_spec is actually meaningless, as there is
13007       # no search path for DLLs.
13008       case $cc_basename in
13009       cl*)
13010         # Native MSVC
13011         hardcode_libdir_flag_spec=' '
13012         allow_undefined_flag=unsupported
13013         always_export_symbols=yes
13014         file_list_spec='@'
13015         # Tell ltmain to make .lib files, not .a files.
13016         libext=lib
13017         # Tell ltmain to make .dll files, not .so files.
13018         shrext_cmds=".dll"
13019         # FIXME: Setting linknames here is a bad hack.
13020         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13021         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13022             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13023           else
13024             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13025           fi~
13026           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13027           linknames='
13028         # The linker will not automatically build a static lib if we build a DLL.
13029         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13030         enable_shared_with_static_runtimes=yes
13031         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13032         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13033         # Don't use ranlib
13034         old_postinstall_cmds='chmod 644 $oldlib'
13035         postlink_cmds='lt_outputfile="@OUTPUT@"~
13036           lt_tool_outputfile="@TOOL_OUTPUT@"~
13037           case $lt_outputfile in
13038             *.exe|*.EXE) ;;
13039             *)
13040               lt_outputfile="$lt_outputfile.exe"
13041               lt_tool_outputfile="$lt_tool_outputfile.exe"
13042               ;;
13043           esac~
13044           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13045             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13046             $RM "$lt_outputfile.manifest";
13047           fi'
13048         ;;
13049       *)
13050         # Assume MSVC wrapper
13051         hardcode_libdir_flag_spec=' '
13052         allow_undefined_flag=unsupported
13053         # Tell ltmain to make .lib files, not .a files.
13054         libext=lib
13055         # Tell ltmain to make .dll files, not .so files.
13056         shrext_cmds=".dll"
13057         # FIXME: Setting linknames here is a bad hack.
13058         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13059         # The linker will automatically build a .lib file if we build a DLL.
13060         old_archive_from_new_cmds='true'
13061         # FIXME: Should let the user specify the lib program.
13062         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13063         enable_shared_with_static_runtimes=yes
13064         ;;
13065       esac
13066       ;;
13067
13068     darwin* | rhapsody*)
13069
13070
13071   archive_cmds_need_lc=no
13072   hardcode_direct=no
13073   hardcode_automatic=yes
13074   hardcode_shlibpath_var=unsupported
13075   if test "$lt_cv_ld_force_load" = "yes"; then
13076     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\"`'
13077
13078   else
13079     whole_archive_flag_spec=''
13080   fi
13081   link_all_deplibs=yes
13082   allow_undefined_flag="$_lt_dar_allow_undefined"
13083   case $cc_basename in
13084      ifort*) _lt_dar_can_shared=yes ;;
13085      *) _lt_dar_can_shared=$GCC ;;
13086   esac
13087   if test "$_lt_dar_can_shared" = "yes"; then
13088     output_verbose_link_cmd=func_echo_all
13089     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13090     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13091     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}"
13092     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}"
13093
13094   else
13095   ld_shlibs=no
13096   fi
13097
13098       ;;
13099
13100     dgux*)
13101       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13102       hardcode_libdir_flag_spec='-L$libdir'
13103       hardcode_shlibpath_var=no
13104       ;;
13105
13106     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13107     # support.  Future versions do this automatically, but an explicit c++rt0.o
13108     # does not break anything, and helps significantly (at the cost of a little
13109     # extra space).
13110     freebsd2.2*)
13111       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13112       hardcode_libdir_flag_spec='-R$libdir'
13113       hardcode_direct=yes
13114       hardcode_shlibpath_var=no
13115       ;;
13116
13117     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13118     freebsd2.*)
13119       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13120       hardcode_direct=yes
13121       hardcode_minus_L=yes
13122       hardcode_shlibpath_var=no
13123       ;;
13124
13125     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13126     freebsd* | dragonfly*)
13127       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13128       hardcode_libdir_flag_spec='-R$libdir'
13129       hardcode_direct=yes
13130       hardcode_shlibpath_var=no
13131       ;;
13132
13133     hpux9*)
13134       if test "$GCC" = yes; then
13135         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv -f $output_objdir/$soname $lib'
13136       else
13137         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv -f $output_objdir/$soname $lib'
13138       fi
13139       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13140       hardcode_libdir_separator=:
13141       hardcode_direct=yes
13142
13143       # hardcode_minus_L: Not really in the search PATH,
13144       # but as the default location of the library.
13145       hardcode_minus_L=yes
13146       export_dynamic_flag_spec='${wl}-E'
13147       ;;
13148
13149     hpux10*)
13150       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13151         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13152       else
13153         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13154       fi
13155       if test "$with_gnu_ld" = no; then
13156         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13157         hardcode_libdir_separator=:
13158         hardcode_direct=yes
13159         hardcode_direct_absolute=yes
13160         export_dynamic_flag_spec='${wl}-E'
13161         # hardcode_minus_L: Not really in the search PATH,
13162         # but as the default location of the library.
13163         hardcode_minus_L=yes
13164       fi
13165       ;;
13166
13167     hpux11*)
13168       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13169         case $host_cpu in
13170         hppa*64*)
13171           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13172           ;;
13173         ia64*)
13174           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13175           ;;
13176         *)
13177           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13178           ;;
13179         esac
13180       else
13181         case $host_cpu in
13182         hppa*64*)
13183           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13184           ;;
13185         ia64*)
13186           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13187           ;;
13188         *)
13189
13190           # Older versions of the 11.00 compiler do not understand -b yet
13191           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13192           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13193 $as_echo_n "checking if $CC understands -b... " >&6; }
13194 if ${lt_cv_prog_compiler__b+:} false; then :
13195   $as_echo_n "(cached) " >&6
13196 else
13197   lt_cv_prog_compiler__b=no
13198    save_LDFLAGS="$LDFLAGS"
13199    LDFLAGS="$LDFLAGS -b"
13200    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13201    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13202      # The linker can only warn and ignore the option if not recognized
13203      # So say no if there are warnings
13204      if test -s conftest.err; then
13205        # Append any errors to the config.log.
13206        cat conftest.err 1>&5
13207        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13208        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13209        if diff conftest.exp conftest.er2 >/dev/null; then
13210          lt_cv_prog_compiler__b=yes
13211        fi
13212      else
13213        lt_cv_prog_compiler__b=yes
13214      fi
13215    fi
13216    $RM -r conftest*
13217    LDFLAGS="$save_LDFLAGS"
13218
13219 fi
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13221 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13222
13223 if test x"$lt_cv_prog_compiler__b" = xyes; then
13224     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13225 else
13226     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13227 fi
13228
13229           ;;
13230         esac
13231       fi
13232       if test "$with_gnu_ld" = no; then
13233         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13234         hardcode_libdir_separator=:
13235
13236         case $host_cpu in
13237         hppa*64*|ia64*)
13238           hardcode_direct=no
13239           hardcode_shlibpath_var=no
13240           ;;
13241         *)
13242           hardcode_direct=yes
13243           hardcode_direct_absolute=yes
13244           export_dynamic_flag_spec='${wl}-E'
13245
13246           # hardcode_minus_L: Not really in the search PATH,
13247           # but as the default location of the library.
13248           hardcode_minus_L=yes
13249           ;;
13250         esac
13251       fi
13252       ;;
13253
13254     irix5* | irix6* | nonstopux*)
13255       if test "$GCC" = yes; then
13256         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'
13257         # Try to use the -exported_symbol ld option, if it does not
13258         # work, assume that -exports_file does not work either and
13259         # implicitly export all symbols.
13260         # This should be the same for all languages, so no per-tag cache variable.
13261         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13262 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13263 if ${lt_cv_irix_exported_symbol+:} false; then :
13264   $as_echo_n "(cached) " >&6
13265 else
13266   save_LDFLAGS="$LDFLAGS"
13267            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13268            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13269 /* end confdefs.h.  */
13270 int foo (void) { return 0; }
13271 _ACEOF
13272 if ac_fn_c_try_link "$LINENO"; then :
13273   lt_cv_irix_exported_symbol=yes
13274 else
13275   lt_cv_irix_exported_symbol=no
13276 fi
13277 rm -f core conftest.err conftest.$ac_objext \
13278     conftest$ac_exeext conftest.$ac_ext
13279            LDFLAGS="$save_LDFLAGS"
13280 fi
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13282 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13283         if test "$lt_cv_irix_exported_symbol" = yes; then
13284           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'
13285         fi
13286       else
13287         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'
13288         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'
13289       fi
13290       archive_cmds_need_lc='no'
13291       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13292       hardcode_libdir_separator=:
13293       inherit_rpath=yes
13294       link_all_deplibs=yes
13295       ;;
13296
13297     netbsd* | netbsdelf*-gnu)
13298       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13299         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13300       else
13301         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13302       fi
13303       hardcode_libdir_flag_spec='-R$libdir'
13304       hardcode_direct=yes
13305       hardcode_shlibpath_var=no
13306       ;;
13307
13308     newsos6)
13309       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13310       hardcode_direct=yes
13311       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13312       hardcode_libdir_separator=:
13313       hardcode_shlibpath_var=no
13314       ;;
13315
13316     *nto* | *qnx*)
13317       ;;
13318
13319     openbsd*)
13320       if test -f /usr/libexec/ld.so; then
13321         hardcode_direct=yes
13322         hardcode_shlibpath_var=no
13323         hardcode_direct_absolute=yes
13324         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13325           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13326           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13327           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13328           export_dynamic_flag_spec='${wl}-E'
13329         else
13330           case $host_os in
13331            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13332              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13333              hardcode_libdir_flag_spec='-R$libdir'
13334              ;;
13335            *)
13336              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13337              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13338              ;;
13339           esac
13340         fi
13341       else
13342         ld_shlibs=no
13343       fi
13344       ;;
13345
13346     os2*)
13347       hardcode_libdir_flag_spec='-L$libdir'
13348       hardcode_minus_L=yes
13349       allow_undefined_flag=unsupported
13350       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
13351       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13352       ;;
13353
13354     osf3*)
13355       if test "$GCC" = yes; then
13356         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13357         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'
13358       else
13359         allow_undefined_flag=' -expect_unresolved \*'
13360         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'
13361       fi
13362       archive_cmds_need_lc='no'
13363       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13364       hardcode_libdir_separator=:
13365       ;;
13366
13367     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13368       if test "$GCC" = yes; then
13369         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13370         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'
13371         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13372       else
13373         allow_undefined_flag=' -expect_unresolved \*'
13374         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'
13375         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~
13376         $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'
13377
13378         # Both c and cxx compiler support -rpath directly
13379         hardcode_libdir_flag_spec='-rpath $libdir'
13380       fi
13381       archive_cmds_need_lc='no'
13382       hardcode_libdir_separator=:
13383       ;;
13384
13385     solaris*)
13386       no_undefined_flag=' -z defs'
13387       if test "$GCC" = yes; then
13388         wlarc='${wl}'
13389         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13390         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13391           $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'
13392       else
13393         case `$CC -V 2>&1` in
13394         *"Compilers 5.0"*)
13395           wlarc=''
13396           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13397           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13398           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13399           ;;
13400         *)
13401           wlarc='${wl}'
13402           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13403           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13404           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13405           ;;
13406         esac
13407       fi
13408       hardcode_libdir_flag_spec='-R$libdir'
13409       hardcode_shlibpath_var=no
13410       case $host_os in
13411       solaris2.[0-5] | solaris2.[0-5].*) ;;
13412       *)
13413         # The compiler driver will combine and reorder linker options,
13414         # but understands `-z linker_flag'.  GCC discards it without `$wl',
13415         # but is careful enough not to reorder.
13416         # Supported since Solaris 2.6 (maybe 2.5.1?)
13417         if test "$GCC" = yes; then
13418           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13419         else
13420           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13421         fi
13422         ;;
13423       esac
13424       link_all_deplibs=yes
13425       ;;
13426
13427     sunos4*)
13428       if test "x$host_vendor" = xsequent; then
13429         # Use $CC to link under sequent, because it throws in some extra .o
13430         # files that make .init and .fini sections work.
13431         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13432       else
13433         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13434       fi
13435       hardcode_libdir_flag_spec='-L$libdir'
13436       hardcode_direct=yes
13437       hardcode_minus_L=yes
13438       hardcode_shlibpath_var=no
13439       ;;
13440
13441     sysv4)
13442       case $host_vendor in
13443         sni)
13444           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13445           hardcode_direct=yes # is this really true???
13446         ;;
13447         siemens)
13448           ## LD is ld it makes a PLAMLIB
13449           ## CC just makes a GrossModule.
13450           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13451           reload_cmds='$CC -r -o $output$reload_objs'
13452           hardcode_direct=no
13453         ;;
13454         motorola)
13455           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13456           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13457         ;;
13458       esac
13459       runpath_var='LD_RUN_PATH'
13460       hardcode_shlibpath_var=no
13461       ;;
13462
13463     sysv4.3*)
13464       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13465       hardcode_shlibpath_var=no
13466       export_dynamic_flag_spec='-Bexport'
13467       ;;
13468
13469     sysv4*MP*)
13470       if test -d /usr/nec; then
13471         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13472         hardcode_shlibpath_var=no
13473         runpath_var=LD_RUN_PATH
13474         hardcode_runpath_var=yes
13475         ld_shlibs=yes
13476       fi
13477       ;;
13478
13479     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13480       no_undefined_flag='${wl}-z,text'
13481       archive_cmds_need_lc=no
13482       hardcode_shlibpath_var=no
13483       runpath_var='LD_RUN_PATH'
13484
13485       if test "$GCC" = yes; then
13486         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13487         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13488       else
13489         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13490         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13491       fi
13492       ;;
13493
13494     sysv5* | sco3.2v5* | sco5v6*)
13495       # Note: We can NOT use -z defs as we might desire, because we do not
13496       # link with -lc, and that would cause any symbols used from libc to
13497       # always be unresolved, which means just about no library would
13498       # ever link correctly.  If we're not using GNU ld we use -z text
13499       # though, which does catch some bad symbols but isn't as heavy-handed
13500       # as -z defs.
13501       no_undefined_flag='${wl}-z,text'
13502       allow_undefined_flag='${wl}-z,nodefs'
13503       archive_cmds_need_lc=no
13504       hardcode_shlibpath_var=no
13505       hardcode_libdir_flag_spec='${wl}-R,$libdir'
13506       hardcode_libdir_separator=':'
13507       link_all_deplibs=yes
13508       export_dynamic_flag_spec='${wl}-Bexport'
13509       runpath_var='LD_RUN_PATH'
13510
13511       if test "$GCC" = yes; then
13512         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13513         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13514       else
13515         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13516         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13517       fi
13518       ;;
13519
13520     uts4*)
13521       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13522       hardcode_libdir_flag_spec='-L$libdir'
13523       hardcode_shlibpath_var=no
13524       ;;
13525
13526     *)
13527       ld_shlibs=no
13528       ;;
13529     esac
13530
13531     if test x$host_vendor = xsni; then
13532       case $host in
13533       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13534         export_dynamic_flag_spec='${wl}-Blargedynsym'
13535         ;;
13536       esac
13537     fi
13538   fi
13539
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13541 $as_echo "$ld_shlibs" >&6; }
13542 test "$ld_shlibs" = no && can_build_shared=no
13543
13544 with_gnu_ld=$with_gnu_ld
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560 #
13561 # Do we need to explicitly link libc?
13562 #
13563 case "x$archive_cmds_need_lc" in
13564 x|xyes)
13565   # Assume -lc should be added
13566   archive_cmds_need_lc=yes
13567
13568   if test "$enable_shared" = yes && test "$GCC" = yes; then
13569     case $archive_cmds in
13570     *'~'*)
13571       # FIXME: we may have to deal with multi-command sequences.
13572       ;;
13573     '$CC '*)
13574       # Test whether the compiler implicitly links with -lc since on some
13575       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13576       # to ld, don't add -lc before -lgcc.
13577       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13578 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13579 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13580   $as_echo_n "(cached) " >&6
13581 else
13582   $RM conftest*
13583         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13584
13585         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13586   (eval $ac_compile) 2>&5
13587   ac_status=$?
13588   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13589   test $ac_status = 0; } 2>conftest.err; then
13590           soname=conftest
13591           lib=conftest
13592           libobjs=conftest.$ac_objext
13593           deplibs=
13594           wl=$lt_prog_compiler_wl
13595           pic_flag=$lt_prog_compiler_pic
13596           compiler_flags=-v
13597           linker_flags=-v
13598           verstring=
13599           output_objdir=.
13600           libname=conftest
13601           lt_save_allow_undefined_flag=$allow_undefined_flag
13602           allow_undefined_flag=
13603           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13604   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13605   ac_status=$?
13606   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13607   test $ac_status = 0; }
13608           then
13609             lt_cv_archive_cmds_need_lc=no
13610           else
13611             lt_cv_archive_cmds_need_lc=yes
13612           fi
13613           allow_undefined_flag=$lt_save_allow_undefined_flag
13614         else
13615           cat conftest.err 1>&5
13616         fi
13617         $RM conftest*
13618
13619 fi
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13621 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13622       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13623       ;;
13624     esac
13625   fi
13626   ;;
13627 esac
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13781 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13782
13783 if test "$GCC" = yes; then
13784   case $host_os in
13785     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13786     *) lt_awk_arg="/^libraries:/" ;;
13787   esac
13788   case $host_os in
13789     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
13790     *) lt_sed_strip_eq="s,=/,/,g" ;;
13791   esac
13792   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13793   case $lt_search_path_spec in
13794   *\;*)
13795     # if the path contains ";" then we assume it to be the separator
13796     # otherwise default to the standard path separator (i.e. ":") - it is
13797     # assumed that no part of a normal pathname contains ";" but that should
13798     # okay in the real world where ";" in dirpaths is itself problematic.
13799     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13800     ;;
13801   *)
13802     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13803     ;;
13804   esac
13805   # Ok, now we have the path, separated by spaces, we can step through it
13806   # and add multilib dir if necessary.
13807   lt_tmp_lt_search_path_spec=
13808   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13809   for lt_sys_path in $lt_search_path_spec; do
13810     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13811       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13812     else
13813       test -d "$lt_sys_path" && \
13814         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13815     fi
13816   done
13817   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13818 BEGIN {RS=" "; FS="/|\n";} {
13819   lt_foo="";
13820   lt_count=0;
13821   for (lt_i = NF; lt_i > 0; lt_i--) {
13822     if ($lt_i != "" && $lt_i != ".") {
13823       if ($lt_i == "..") {
13824         lt_count++;
13825       } else {
13826         if (lt_count == 0) {
13827           lt_foo="/" $lt_i lt_foo;
13828         } else {
13829           lt_count--;
13830         }
13831       }
13832     }
13833   }
13834   if (lt_foo != "") { lt_freq[lt_foo]++; }
13835   if (lt_freq[lt_foo] == 1) { print lt_foo; }
13836 }'`
13837   # AWK program above erroneously prepends '/' to C:/dos/paths
13838   # for these hosts.
13839   case $host_os in
13840     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13841       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13842   esac
13843   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13844 else
13845   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13846 fi
13847 library_names_spec=
13848 libname_spec='lib$name'
13849 soname_spec=
13850 shrext_cmds=".so"
13851 postinstall_cmds=
13852 postuninstall_cmds=
13853 finish_cmds=
13854 finish_eval=
13855 shlibpath_var=
13856 shlibpath_overrides_runpath=unknown
13857 version_type=none
13858 dynamic_linker="$host_os ld.so"
13859 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13860 need_lib_prefix=unknown
13861 hardcode_into_libs=no
13862
13863 # when you set need_version to no, make sure it does not cause -set_version
13864 # flags to be left without arguments
13865 need_version=unknown
13866
13867 case $host_os in
13868 aix3*)
13869   version_type=linux # correct to gnu/linux during the next big refactor
13870   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13871   shlibpath_var=LIBPATH
13872
13873   # AIX 3 has no versioning support, so we append a major version to the name.
13874   soname_spec='${libname}${release}${shared_ext}$major'
13875   ;;
13876
13877 aix[4-9]*)
13878   version_type=linux # correct to gnu/linux during the next big refactor
13879   need_lib_prefix=no
13880   need_version=no
13881   hardcode_into_libs=yes
13882   if test "$host_cpu" = ia64; then
13883     # AIX 5 supports IA64
13884     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13885     shlibpath_var=LD_LIBRARY_PATH
13886   else
13887     # With GCC up to 2.95.x, collect2 would create an import file
13888     # for dependence libraries.  The import file would start with
13889     # the line `#! .'.  This would cause the generated library to
13890     # depend on `.', always an invalid library.  This was fixed in
13891     # development snapshots of GCC prior to 3.0.
13892     case $host_os in
13893       aix4 | aix4.[01] | aix4.[01].*)
13894       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13895            echo ' yes '
13896            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13897         :
13898       else
13899         can_build_shared=no
13900       fi
13901       ;;
13902     esac
13903     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13904     # soname into executable. Probably we can add versioning support to
13905     # collect2, so additional links can be useful in future.
13906     if test "$aix_use_runtimelinking" = yes; then
13907       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13908       # instead of lib<name>.a to let people know that these are not
13909       # typical AIX shared libraries.
13910       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13911     else
13912       # We preserve .a as extension for shared libraries through AIX4.2
13913       # and later when we are not doing run time linking.
13914       library_names_spec='${libname}${release}.a $libname.a'
13915       soname_spec='${libname}${release}${shared_ext}$major'
13916     fi
13917     shlibpath_var=LIBPATH
13918   fi
13919   ;;
13920
13921 amigaos*)
13922   case $host_cpu in
13923   powerpc)
13924     # Since July 2007 AmigaOS4 officially supports .so libraries.
13925     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13926     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13927     ;;
13928   m68k)
13929     library_names_spec='$libname.ixlibrary $libname.a'
13930     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13931     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13932     ;;
13933   esac
13934   ;;
13935
13936 beos*)
13937   library_names_spec='${libname}${shared_ext}'
13938   dynamic_linker="$host_os ld.so"
13939   shlibpath_var=LIBRARY_PATH
13940   ;;
13941
13942 bsdi[45]*)
13943   version_type=linux # correct to gnu/linux during the next big refactor
13944   need_version=no
13945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13946   soname_spec='${libname}${release}${shared_ext}$major'
13947   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13948   shlibpath_var=LD_LIBRARY_PATH
13949   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13950   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13951   # the default ld.so.conf also contains /usr/contrib/lib and
13952   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13953   # libtool to hard-code these into programs
13954   ;;
13955
13956 cygwin* | mingw* | pw32* | cegcc*)
13957   version_type=windows
13958   shrext_cmds=".dll"
13959   need_version=no
13960   need_lib_prefix=no
13961
13962   case $GCC,$cc_basename in
13963   yes,*)
13964     # gcc
13965     library_names_spec='$libname.dll.a'
13966     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13967     postinstall_cmds='base_file=`basename \${file}`~
13968       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13969       dldir=$destdir/`dirname \$dlpath`~
13970       test -d \$dldir || mkdir -p \$dldir~
13971       $install_prog $dir/$dlname \$dldir/$dlname~
13972       chmod a+x \$dldir/$dlname~
13973       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13974         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13975       fi'
13976     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13977       dlpath=$dir/\$dldll~
13978        $RM \$dlpath'
13979     shlibpath_overrides_runpath=yes
13980
13981     case $host_os in
13982     cygwin*)
13983       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13984       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13985
13986       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13987       ;;
13988     mingw* | cegcc*)
13989       # MinGW DLLs use traditional 'lib' prefix
13990       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13991       ;;
13992     pw32*)
13993       # pw32 DLLs use 'pw' prefix rather than 'lib'
13994       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13995       ;;
13996     esac
13997     dynamic_linker='Win32 ld.exe'
13998     ;;
13999
14000   *,cl*)
14001     # Native MSVC
14002     libname_spec='$name'
14003     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14004     library_names_spec='${libname}.dll.lib'
14005
14006     case $build_os in
14007     mingw*)
14008       sys_lib_search_path_spec=
14009       lt_save_ifs=$IFS
14010       IFS=';'
14011       for lt_path in $LIB
14012       do
14013         IFS=$lt_save_ifs
14014         # Let DOS variable expansion print the short 8.3 style file name.
14015         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14016         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14017       done
14018       IFS=$lt_save_ifs
14019       # Convert to MSYS style.
14020       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14021       ;;
14022     cygwin*)
14023       # Convert to unix form, then to dos form, then back to unix form
14024       # but this time dos style (no spaces!) so that the unix form looks
14025       # like /cygdrive/c/PROGRA~1:/cygdr...
14026       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14027       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14028       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14029       ;;
14030     *)
14031       sys_lib_search_path_spec="$LIB"
14032       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14033         # It is most probably a Windows format PATH.
14034         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14035       else
14036         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14037       fi
14038       # FIXME: find the short name or the path components, as spaces are
14039       # common. (e.g. "Program Files" -> "PROGRA~1")
14040       ;;
14041     esac
14042
14043     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14044     postinstall_cmds='base_file=`basename \${file}`~
14045       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14046       dldir=$destdir/`dirname \$dlpath`~
14047       test -d \$dldir || mkdir -p \$dldir~
14048       $install_prog $dir/$dlname \$dldir/$dlname'
14049     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14050       dlpath=$dir/\$dldll~
14051        $RM \$dlpath'
14052     shlibpath_overrides_runpath=yes
14053     dynamic_linker='Win32 link.exe'
14054     ;;
14055
14056   *)
14057     # Assume MSVC wrapper
14058     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14059     dynamic_linker='Win32 ld.exe'
14060     ;;
14061   esac
14062   # FIXME: first we should search . and the directory the executable is in
14063   shlibpath_var=PATH
14064   ;;
14065
14066 darwin* | rhapsody*)
14067   dynamic_linker="$host_os dyld"
14068   version_type=darwin
14069   need_lib_prefix=no
14070   need_version=no
14071   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14072   soname_spec='${libname}${release}${major}$shared_ext'
14073   shlibpath_overrides_runpath=yes
14074   shlibpath_var=DYLD_LIBRARY_PATH
14075   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14076
14077   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14078   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14079   ;;
14080
14081 dgux*)
14082   version_type=linux # correct to gnu/linux during the next big refactor
14083   need_lib_prefix=no
14084   need_version=no
14085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14086   soname_spec='${libname}${release}${shared_ext}$major'
14087   shlibpath_var=LD_LIBRARY_PATH
14088   ;;
14089
14090 freebsd* | dragonfly*)
14091   # DragonFly does not have aout.  When/if they implement a new
14092   # versioning mechanism, adjust this.
14093   if test -x /usr/bin/objformat; then
14094     objformat=`/usr/bin/objformat`
14095   else
14096     case $host_os in
14097     freebsd[23].*) objformat=aout ;;
14098     *) objformat=elf ;;
14099     esac
14100   fi
14101   version_type=freebsd-$objformat
14102   case $version_type in
14103     freebsd-elf*)
14104       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14105       need_version=no
14106       need_lib_prefix=no
14107       ;;
14108     freebsd-*)
14109       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14110       need_version=yes
14111       ;;
14112   esac
14113   shlibpath_var=LD_LIBRARY_PATH
14114   case $host_os in
14115   freebsd2.*)
14116     shlibpath_overrides_runpath=yes
14117     ;;
14118   freebsd3.[01]* | freebsdelf3.[01]*)
14119     shlibpath_overrides_runpath=yes
14120     hardcode_into_libs=yes
14121     ;;
14122   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14123   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14124     shlibpath_overrides_runpath=no
14125     hardcode_into_libs=yes
14126     ;;
14127   *) # from 4.6 on, and DragonFly
14128     shlibpath_overrides_runpath=yes
14129     hardcode_into_libs=yes
14130     ;;
14131   esac
14132   ;;
14133
14134 haiku*)
14135   version_type=linux # correct to gnu/linux during the next big refactor
14136   need_lib_prefix=no
14137   need_version=no
14138   dynamic_linker="$host_os runtime_loader"
14139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14140   soname_spec='${libname}${release}${shared_ext}$major'
14141   shlibpath_var=LIBRARY_PATH
14142   shlibpath_overrides_runpath=yes
14143   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14144   hardcode_into_libs=yes
14145   ;;
14146
14147 hpux9* | hpux10* | hpux11*)
14148   # Give a soname corresponding to the major version so that dld.sl refuses to
14149   # link against other versions.
14150   version_type=sunos
14151   need_lib_prefix=no
14152   need_version=no
14153   case $host_cpu in
14154   ia64*)
14155     shrext_cmds='.so'
14156     hardcode_into_libs=yes
14157     dynamic_linker="$host_os dld.so"
14158     shlibpath_var=LD_LIBRARY_PATH
14159     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14160     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14161     soname_spec='${libname}${release}${shared_ext}$major'
14162     if test "X$HPUX_IA64_MODE" = X32; then
14163       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14164     else
14165       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14166     fi
14167     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14168     ;;
14169   hppa*64*)
14170     shrext_cmds='.sl'
14171     hardcode_into_libs=yes
14172     dynamic_linker="$host_os dld.sl"
14173     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14174     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14175     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14176     soname_spec='${libname}${release}${shared_ext}$major'
14177     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14178     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14179     ;;
14180   *)
14181     shrext_cmds='.sl'
14182     dynamic_linker="$host_os dld.sl"
14183     shlibpath_var=SHLIB_PATH
14184     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14185     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14186     soname_spec='${libname}${release}${shared_ext}$major'
14187     ;;
14188   esac
14189   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14190   postinstall_cmds='chmod 555 $lib'
14191   # or fails outright, so override atomically:
14192   install_override_mode=555
14193   ;;
14194
14195 interix[3-9]*)
14196   version_type=linux # correct to gnu/linux during the next big refactor
14197   need_lib_prefix=no
14198   need_version=no
14199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14200   soname_spec='${libname}${release}${shared_ext}$major'
14201   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14202   shlibpath_var=LD_LIBRARY_PATH
14203   shlibpath_overrides_runpath=no
14204   hardcode_into_libs=yes
14205   ;;
14206
14207 irix5* | irix6* | nonstopux*)
14208   case $host_os in
14209     nonstopux*) version_type=nonstopux ;;
14210     *)
14211         if test "$lt_cv_prog_gnu_ld" = yes; then
14212                 version_type=linux # correct to gnu/linux during the next big refactor
14213         else
14214                 version_type=irix
14215         fi ;;
14216   esac
14217   need_lib_prefix=no
14218   need_version=no
14219   soname_spec='${libname}${release}${shared_ext}$major'
14220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14221   case $host_os in
14222   irix5* | nonstopux*)
14223     libsuff= shlibsuff=
14224     ;;
14225   *)
14226     case $LD in # libtool.m4 will add one of these switches to LD
14227     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14228       libsuff= shlibsuff= libmagic=32-bit;;
14229     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14230       libsuff=32 shlibsuff=N32 libmagic=N32;;
14231     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14232       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14233     *) libsuff= shlibsuff= libmagic=never-match;;
14234     esac
14235     ;;
14236   esac
14237   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14238   shlibpath_overrides_runpath=no
14239   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14240   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14241   hardcode_into_libs=yes
14242   ;;
14243
14244 # No shared lib support for Linux oldld, aout, or coff.
14245 linux*oldld* | linux*aout* | linux*coff*)
14246   dynamic_linker=no
14247   ;;
14248
14249 # This must be glibc/ELF.
14250 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14251   version_type=linux # correct to gnu/linux during the next big refactor
14252   need_lib_prefix=no
14253   need_version=no
14254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14255   soname_spec='${libname}${release}${shared_ext}$major'
14256   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14257   shlibpath_var=LD_LIBRARY_PATH
14258   shlibpath_overrides_runpath=no
14259
14260   # Some binutils ld are patched to set DT_RUNPATH
14261   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14262   $as_echo_n "(cached) " >&6
14263 else
14264   lt_cv_shlibpath_overrides_runpath=no
14265     save_LDFLAGS=$LDFLAGS
14266     save_libdir=$libdir
14267     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14268          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14269     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270 /* end confdefs.h.  */
14271
14272 int main (void)
14273 {
14274
14275  ;
14276  return 0;
14277 }
14278 _ACEOF
14279 if ac_fn_c_try_link "$LINENO"; then :
14280   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14281   lt_cv_shlibpath_overrides_runpath=yes
14282 fi
14283 fi
14284 rm -f core conftest.err conftest.$ac_objext \
14285     conftest$ac_exeext conftest.$ac_ext
14286     LDFLAGS=$save_LDFLAGS
14287     libdir=$save_libdir
14288
14289 fi
14290
14291   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14292
14293   # This implies no fast_install, which is unacceptable.
14294   # Some rework will be needed to allow for fast_install
14295   # before this can be enabled.
14296   hardcode_into_libs=yes
14297
14298   # Append ld.so.conf contents to the search path
14299   if test -f /etc/ld.so.conf; then
14300     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' ' '`
14301     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14302   fi
14303
14304   # We used to test for /lib/ld.so.1 and disable shared libraries on
14305   # powerpc, because MkLinux only supported shared libraries with the
14306   # GNU dynamic linker.  Since this was broken with cross compilers,
14307   # most powerpc-linux boxes support dynamic linking these days and
14308   # people can always --disable-shared, the test was removed, and we
14309   # assume the GNU/Linux dynamic linker is in use.
14310   dynamic_linker='GNU/Linux ld.so'
14311   ;;
14312
14313 netbsdelf*-gnu)
14314   version_type=linux
14315   need_lib_prefix=no
14316   need_version=no
14317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14318   soname_spec='${libname}${release}${shared_ext}$major'
14319   shlibpath_var=LD_LIBRARY_PATH
14320   shlibpath_overrides_runpath=no
14321   hardcode_into_libs=yes
14322   dynamic_linker='NetBSD ld.elf_so'
14323   ;;
14324
14325 netbsd*)
14326   version_type=sunos
14327   need_lib_prefix=no
14328   need_version=no
14329   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14330     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14331     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14332     dynamic_linker='NetBSD (a.out) ld.so'
14333   else
14334     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14335     soname_spec='${libname}${release}${shared_ext}$major'
14336     dynamic_linker='NetBSD ld.elf_so'
14337   fi
14338   shlibpath_var=LD_LIBRARY_PATH
14339   shlibpath_overrides_runpath=yes
14340   hardcode_into_libs=yes
14341   ;;
14342
14343 newsos6)
14344   version_type=linux # correct to gnu/linux during the next big refactor
14345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14346   shlibpath_var=LD_LIBRARY_PATH
14347   shlibpath_overrides_runpath=yes
14348   ;;
14349
14350 *nto* | *qnx*)
14351   version_type=qnx
14352   need_lib_prefix=no
14353   need_version=no
14354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14355   soname_spec='${libname}${release}${shared_ext}$major'
14356   shlibpath_var=LD_LIBRARY_PATH
14357   shlibpath_overrides_runpath=no
14358   hardcode_into_libs=yes
14359   dynamic_linker='ldqnx.so'
14360   ;;
14361
14362 openbsd*)
14363   version_type=sunos
14364   sys_lib_dlsearch_path_spec="/usr/lib"
14365   need_lib_prefix=no
14366   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14367   case $host_os in
14368     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14369     *)                          need_version=no  ;;
14370   esac
14371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14372   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14373   shlibpath_var=LD_LIBRARY_PATH
14374   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14375     case $host_os in
14376       openbsd2.[89] | openbsd2.[89].*)
14377         shlibpath_overrides_runpath=no
14378         ;;
14379       *)
14380         shlibpath_overrides_runpath=yes
14381         ;;
14382       esac
14383   else
14384     shlibpath_overrides_runpath=yes
14385   fi
14386   ;;
14387
14388 os2*)
14389   libname_spec='$name'
14390   shrext_cmds=".dll"
14391   need_lib_prefix=no
14392   library_names_spec='$libname${shared_ext} $libname.a'
14393   dynamic_linker='OS/2 ld.exe'
14394   shlibpath_var=LIBPATH
14395   ;;
14396
14397 osf3* | osf4* | osf5*)
14398   version_type=osf
14399   need_lib_prefix=no
14400   need_version=no
14401   soname_spec='${libname}${release}${shared_ext}$major'
14402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14403   shlibpath_var=LD_LIBRARY_PATH
14404   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14405   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14406   ;;
14407
14408 rdos*)
14409   dynamic_linker=no
14410   ;;
14411
14412 solaris*)
14413   version_type=linux # correct to gnu/linux during the next big refactor
14414   need_lib_prefix=no
14415   need_version=no
14416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14417   soname_spec='${libname}${release}${shared_ext}$major'
14418   shlibpath_var=LD_LIBRARY_PATH
14419   shlibpath_overrides_runpath=yes
14420   hardcode_into_libs=yes
14421   # ldd complains unless libraries are executable
14422   postinstall_cmds='chmod +x $lib'
14423   ;;
14424
14425 sunos4*)
14426   version_type=sunos
14427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14428   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14429   shlibpath_var=LD_LIBRARY_PATH
14430   shlibpath_overrides_runpath=yes
14431   if test "$with_gnu_ld" = yes; then
14432     need_lib_prefix=no
14433   fi
14434   need_version=yes
14435   ;;
14436
14437 sysv4 | sysv4.3*)
14438   version_type=linux # correct to gnu/linux during the next big refactor
14439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14440   soname_spec='${libname}${release}${shared_ext}$major'
14441   shlibpath_var=LD_LIBRARY_PATH
14442   case $host_vendor in
14443     sni)
14444       shlibpath_overrides_runpath=no
14445       need_lib_prefix=no
14446       runpath_var=LD_RUN_PATH
14447       ;;
14448     siemens)
14449       need_lib_prefix=no
14450       ;;
14451     motorola)
14452       need_lib_prefix=no
14453       need_version=no
14454       shlibpath_overrides_runpath=no
14455       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14456       ;;
14457   esac
14458   ;;
14459
14460 sysv4*MP*)
14461   if test -d /usr/nec ;then
14462     version_type=linux # correct to gnu/linux during the next big refactor
14463     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14464     soname_spec='$libname${shared_ext}.$major'
14465     shlibpath_var=LD_LIBRARY_PATH
14466   fi
14467   ;;
14468
14469 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14470   version_type=freebsd-elf
14471   need_lib_prefix=no
14472   need_version=no
14473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14474   soname_spec='${libname}${release}${shared_ext}$major'
14475   shlibpath_var=LD_LIBRARY_PATH
14476   shlibpath_overrides_runpath=yes
14477   hardcode_into_libs=yes
14478   if test "$with_gnu_ld" = yes; then
14479     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14480   else
14481     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14482     case $host_os in
14483       sco3.2v5*)
14484         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14485         ;;
14486     esac
14487   fi
14488   sys_lib_dlsearch_path_spec='/usr/lib'
14489   ;;
14490
14491 tpf*)
14492   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14493   version_type=linux # correct to gnu/linux during the next big refactor
14494   need_lib_prefix=no
14495   need_version=no
14496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14497   shlibpath_var=LD_LIBRARY_PATH
14498   shlibpath_overrides_runpath=no
14499   hardcode_into_libs=yes
14500   ;;
14501
14502 uts4*)
14503   version_type=linux # correct to gnu/linux during the next big refactor
14504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14505   soname_spec='${libname}${release}${shared_ext}$major'
14506   shlibpath_var=LD_LIBRARY_PATH
14507   ;;
14508
14509 *)
14510   dynamic_linker=no
14511   ;;
14512 esac
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14514 $as_echo "$dynamic_linker" >&6; }
14515 test "$dynamic_linker" = no && can_build_shared=no
14516
14517 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14518 if test "$GCC" = yes; then
14519   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14520 fi
14521
14522 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14523   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14524 fi
14525 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14526   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14527 fi
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14621 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14622 hardcode_action=
14623 if test -n "$hardcode_libdir_flag_spec" ||
14624    test -n "$runpath_var" ||
14625    test "X$hardcode_automatic" = "Xyes" ; then
14626
14627   # We can hardcode non-existent directories.
14628   if test "$hardcode_direct" != no &&
14629      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14630      # have to relink, otherwise we might link with an installed library
14631      # when we should be linking with a yet-to-be-installed one
14632      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14633      test "$hardcode_minus_L" != no; then
14634     # Linking always hardcodes the temporary library directory.
14635     hardcode_action=relink
14636   else
14637     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14638     hardcode_action=immediate
14639   fi
14640 else
14641   # We cannot hardcode anything, or else we can only hardcode existing
14642   # directories.
14643   hardcode_action=unsupported
14644 fi
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14646 $as_echo "$hardcode_action" >&6; }
14647
14648 if test "$hardcode_action" = relink ||
14649    test "$inherit_rpath" = yes; then
14650   # Fast installation is not supported
14651   enable_fast_install=no
14652 elif test "$shlibpath_overrides_runpath" = yes ||
14653      test "$enable_shared" = no; then
14654   # Fast installation is not necessary
14655   enable_fast_install=needless
14656 fi
14657
14658
14659
14660
14661
14662
14663   if test "x$enable_dlopen" != xyes; then
14664   enable_dlopen=unknown
14665   enable_dlopen_self=unknown
14666   enable_dlopen_self_static=unknown
14667 else
14668   lt_cv_dlopen=no
14669   lt_cv_dlopen_libs=
14670
14671   case $host_os in
14672   beos*)
14673     lt_cv_dlopen="load_add_on"
14674     lt_cv_dlopen_libs=
14675     lt_cv_dlopen_self=yes
14676     ;;
14677
14678   mingw* | pw32* | cegcc*)
14679     lt_cv_dlopen="LoadLibrary"
14680     lt_cv_dlopen_libs=
14681     ;;
14682
14683   cygwin*)
14684     lt_cv_dlopen="dlopen"
14685     lt_cv_dlopen_libs=
14686     ;;
14687
14688   darwin*)
14689   # if libdl is installed we need to link against it
14690     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14691 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14692 if ${ac_cv_lib_dl_dlopen+:} false; then :
14693   $as_echo_n "(cached) " >&6
14694 else
14695   ac_check_lib_save_LIBS=$LIBS
14696 LIBS="-ldl  $LIBS"
14697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14698 /* end confdefs.h.  */
14699
14700
14701 #ifdef __cplusplus
14702 extern "C"
14703 #endif
14704 char dlopen ();
14705 int main (void)
14706 {
14707 return dlopen ();
14708  ;
14709  return 0;
14710 }
14711 _ACEOF
14712 if ac_fn_c_try_link "$LINENO"; then :
14713   ac_cv_lib_dl_dlopen=yes
14714 else
14715   ac_cv_lib_dl_dlopen=no
14716 fi
14717 rm -f core conftest.err conftest.$ac_objext \
14718     conftest$ac_exeext conftest.$ac_ext
14719 LIBS=$ac_check_lib_save_LIBS
14720 fi
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14722 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14723 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14724   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14725 else
14726
14727     lt_cv_dlopen="dyld"
14728     lt_cv_dlopen_libs=
14729     lt_cv_dlopen_self=yes
14730
14731 fi
14732
14733     ;;
14734
14735   *)
14736     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14737 if test "x$ac_cv_func_shl_load" = xyes; then :
14738   lt_cv_dlopen="shl_load"
14739 else
14740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14741 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14742 if ${ac_cv_lib_dld_shl_load+:} false; then :
14743   $as_echo_n "(cached) " >&6
14744 else
14745   ac_check_lib_save_LIBS=$LIBS
14746 LIBS="-ldld  $LIBS"
14747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14748 /* end confdefs.h.  */
14749
14750
14751 #ifdef __cplusplus
14752 extern "C"
14753 #endif
14754 char shl_load ();
14755 int main (void)
14756 {
14757 return shl_load ();
14758  ;
14759  return 0;
14760 }
14761 _ACEOF
14762 if ac_fn_c_try_link "$LINENO"; then :
14763   ac_cv_lib_dld_shl_load=yes
14764 else
14765   ac_cv_lib_dld_shl_load=no
14766 fi
14767 rm -f core conftest.err conftest.$ac_objext \
14768     conftest$ac_exeext conftest.$ac_ext
14769 LIBS=$ac_check_lib_save_LIBS
14770 fi
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14772 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14773 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14774   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14775 else
14776   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14777 if test "x$ac_cv_func_dlopen" = xyes; then :
14778   lt_cv_dlopen="dlopen"
14779 else
14780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14781 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14782 if ${ac_cv_lib_dl_dlopen+:} false; then :
14783   $as_echo_n "(cached) " >&6
14784 else
14785   ac_check_lib_save_LIBS=$LIBS
14786 LIBS="-ldl  $LIBS"
14787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14788 /* end confdefs.h.  */
14789
14790
14791 #ifdef __cplusplus
14792 extern "C"
14793 #endif
14794 char dlopen ();
14795 int main (void)
14796 {
14797 return dlopen ();
14798  ;
14799  return 0;
14800 }
14801 _ACEOF
14802 if ac_fn_c_try_link "$LINENO"; then :
14803   ac_cv_lib_dl_dlopen=yes
14804 else
14805   ac_cv_lib_dl_dlopen=no
14806 fi
14807 rm -f core conftest.err conftest.$ac_objext \
14808     conftest$ac_exeext conftest.$ac_ext
14809 LIBS=$ac_check_lib_save_LIBS
14810 fi
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14812 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14813 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14814   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14815 else
14816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14817 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14818 if ${ac_cv_lib_svld_dlopen+:} false; then :
14819   $as_echo_n "(cached) " >&6
14820 else
14821   ac_check_lib_save_LIBS=$LIBS
14822 LIBS="-lsvld  $LIBS"
14823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824 /* end confdefs.h.  */
14825
14826
14827 #ifdef __cplusplus
14828 extern "C"
14829 #endif
14830 char dlopen ();
14831 int main (void)
14832 {
14833 return dlopen ();
14834  ;
14835  return 0;
14836 }
14837 _ACEOF
14838 if ac_fn_c_try_link "$LINENO"; then :
14839   ac_cv_lib_svld_dlopen=yes
14840 else
14841   ac_cv_lib_svld_dlopen=no
14842 fi
14843 rm -f core conftest.err conftest.$ac_objext \
14844     conftest$ac_exeext conftest.$ac_ext
14845 LIBS=$ac_check_lib_save_LIBS
14846 fi
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14848 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14849 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14850   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14851 else
14852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14853 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14854 if ${ac_cv_lib_dld_dld_link+:} false; then :
14855   $as_echo_n "(cached) " >&6
14856 else
14857   ac_check_lib_save_LIBS=$LIBS
14858 LIBS="-ldld  $LIBS"
14859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14860 /* end confdefs.h.  */
14861
14862
14863 #ifdef __cplusplus
14864 extern "C"
14865 #endif
14866 char dld_link ();
14867 int main (void)
14868 {
14869 return dld_link ();
14870  ;
14871  return 0;
14872 }
14873 _ACEOF
14874 if ac_fn_c_try_link "$LINENO"; then :
14875   ac_cv_lib_dld_dld_link=yes
14876 else
14877   ac_cv_lib_dld_dld_link=no
14878 fi
14879 rm -f core conftest.err conftest.$ac_objext \
14880     conftest$ac_exeext conftest.$ac_ext
14881 LIBS=$ac_check_lib_save_LIBS
14882 fi
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14884 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14885 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14886   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14887 fi
14888
14889
14890 fi
14891
14892
14893 fi
14894
14895
14896 fi
14897
14898
14899 fi
14900
14901
14902 fi
14903
14904     ;;
14905   esac
14906
14907   if test "x$lt_cv_dlopen" != xno; then
14908     enable_dlopen=yes
14909   else
14910     enable_dlopen=no
14911   fi
14912
14913   case $lt_cv_dlopen in
14914   dlopen)
14915     save_CPPFLAGS="$CPPFLAGS"
14916     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14917
14918     save_LDFLAGS="$LDFLAGS"
14919     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14920
14921     save_LIBS="$LIBS"
14922     LIBS="$lt_cv_dlopen_libs $LIBS"
14923
14924     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14925 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14926 if ${lt_cv_dlopen_self+:} false; then :
14927   $as_echo_n "(cached) " >&6
14928 else
14929           if test "$cross_compiling" = yes; then :
14930   lt_cv_dlopen_self=cross
14931 else
14932   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14933   lt_status=$lt_dlunknown
14934   cat > conftest.$ac_ext <<_LT_EOF
14935 #line $LINENO "configure"
14936 #include "confdefs.h"
14937
14938 #if HAVE_DLFCN_H
14939 #include <dlfcn.h>
14940 #endif
14941
14942 #include <stdio.h>
14943
14944 #ifdef RTLD_GLOBAL
14945 #  define LT_DLGLOBAL           RTLD_GLOBAL
14946 #else
14947 #  ifdef DL_GLOBAL
14948 #    define LT_DLGLOBAL         DL_GLOBAL
14949 #  else
14950 #    define LT_DLGLOBAL         0
14951 #  endif
14952 #endif
14953
14954 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14955    find out it does not work in some platform. */
14956 #ifndef LT_DLLAZY_OR_NOW
14957 #  ifdef RTLD_LAZY
14958 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14959 #  else
14960 #    ifdef DL_LAZY
14961 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14962 #    else
14963 #      ifdef RTLD_NOW
14964 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14965 #      else
14966 #        ifdef DL_NOW
14967 #          define LT_DLLAZY_OR_NOW      DL_NOW
14968 #        else
14969 #          define LT_DLLAZY_OR_NOW      0
14970 #        endif
14971 #      endif
14972 #    endif
14973 #  endif
14974 #endif
14975
14976 /* When -fvisbility=hidden is used, assume the code has been annotated
14977    correspondingly for the symbols needed.  */
14978 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14979 int fnord () __attribute__((visibility("default")));
14980 #endif
14981
14982 int fnord () { return 42; }
14983 int main ()
14984 {
14985   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14986   int status = $lt_dlunknown;
14987
14988   if (self)
14989     {
14990       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14991       else
14992         {
14993           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14994           else puts (dlerror ());
14995         }
14996       /* dlclose (self); */
14997     }
14998   else
14999     puts (dlerror ());
15000
15001   return status;
15002 }
15003 _LT_EOF
15004   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15005   (eval $ac_link) 2>&5
15006   ac_status=$?
15007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15008   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15009     (./conftest; exit; ) >&5 2>/dev/null
15010     lt_status=$?
15011     case x$lt_status in
15012       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15013       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15014       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15015     esac
15016   else :
15017     # compilation failed
15018     lt_cv_dlopen_self=no
15019   fi
15020 fi
15021 rm -fr conftest*
15022
15023
15024 fi
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15026 $as_echo "$lt_cv_dlopen_self" >&6; }
15027
15028     if test "x$lt_cv_dlopen_self" = xyes; then
15029       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15030       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15031 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15032 if ${lt_cv_dlopen_self_static+:} false; then :
15033   $as_echo_n "(cached) " >&6
15034 else
15035           if test "$cross_compiling" = yes; then :
15036   lt_cv_dlopen_self_static=cross
15037 else
15038   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15039   lt_status=$lt_dlunknown
15040   cat > conftest.$ac_ext <<_LT_EOF
15041 #line $LINENO "configure"
15042 #include "confdefs.h"
15043
15044 #if HAVE_DLFCN_H
15045 #include <dlfcn.h>
15046 #endif
15047
15048 #include <stdio.h>
15049
15050 #ifdef RTLD_GLOBAL
15051 #  define LT_DLGLOBAL           RTLD_GLOBAL
15052 #else
15053 #  ifdef DL_GLOBAL
15054 #    define LT_DLGLOBAL         DL_GLOBAL
15055 #  else
15056 #    define LT_DLGLOBAL         0
15057 #  endif
15058 #endif
15059
15060 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15061    find out it does not work in some platform. */
15062 #ifndef LT_DLLAZY_OR_NOW
15063 #  ifdef RTLD_LAZY
15064 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15065 #  else
15066 #    ifdef DL_LAZY
15067 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15068 #    else
15069 #      ifdef RTLD_NOW
15070 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15071 #      else
15072 #        ifdef DL_NOW
15073 #          define LT_DLLAZY_OR_NOW      DL_NOW
15074 #        else
15075 #          define LT_DLLAZY_OR_NOW      0
15076 #        endif
15077 #      endif
15078 #    endif
15079 #  endif
15080 #endif
15081
15082 /* When -fvisbility=hidden is used, assume the code has been annotated
15083    correspondingly for the symbols needed.  */
15084 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15085 int fnord () __attribute__((visibility("default")));
15086 #endif
15087
15088 int fnord () { return 42; }
15089 int main ()
15090 {
15091   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15092   int status = $lt_dlunknown;
15093
15094   if (self)
15095     {
15096       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15097       else
15098         {
15099           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15100           else puts (dlerror ());
15101         }
15102       /* dlclose (self); */
15103     }
15104   else
15105     puts (dlerror ());
15106
15107   return status;
15108 }
15109 _LT_EOF
15110   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15111   (eval $ac_link) 2>&5
15112   ac_status=$?
15113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15114   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15115     (./conftest; exit; ) >&5 2>/dev/null
15116     lt_status=$?
15117     case x$lt_status in
15118       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15119       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15120       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15121     esac
15122   else :
15123     # compilation failed
15124     lt_cv_dlopen_self_static=no
15125   fi
15126 fi
15127 rm -fr conftest*
15128
15129
15130 fi
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15132 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15133     fi
15134
15135     CPPFLAGS="$save_CPPFLAGS"
15136     LDFLAGS="$save_LDFLAGS"
15137     LIBS="$save_LIBS"
15138     ;;
15139   esac
15140
15141   case $lt_cv_dlopen_self in
15142   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15143   *) enable_dlopen_self=unknown ;;
15144   esac
15145
15146   case $lt_cv_dlopen_self_static in
15147   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15148   *) enable_dlopen_self_static=unknown ;;
15149   esac
15150 fi
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168 striplib=
15169 old_striplib=
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15171 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15172 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15173   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15174   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15176 $as_echo "yes" >&6; }
15177 else
15178 # FIXME - insert some real tests, host_os isn't really good enough
15179   case $host_os in
15180   darwin*)
15181     if test -n "$STRIP" ; then
15182       striplib="$STRIP -x"
15183       old_striplib="$STRIP -S"
15184       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15185 $as_echo "yes" >&6; }
15186     else
15187       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15188 $as_echo "no" >&6; }
15189     fi
15190     ;;
15191   *)
15192     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15193 $as_echo "no" >&6; }
15194     ;;
15195   esac
15196 fi
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209   # Report which library types will actually be built
15210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15211 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15213 $as_echo "$can_build_shared" >&6; }
15214
15215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15216 $as_echo_n "checking whether to build shared libraries... " >&6; }
15217   test "$can_build_shared" = "no" && enable_shared=no
15218
15219   # On AIX, shared libraries and static libraries use the same namespace, and
15220   # are all built from PIC.
15221   case $host_os in
15222   aix3*)
15223     test "$enable_shared" = yes && enable_static=no
15224     if test -n "$RANLIB"; then
15225       archive_cmds="$archive_cmds~\$RANLIB \$lib"
15226       postinstall_cmds='$RANLIB $lib'
15227     fi
15228     ;;
15229
15230   aix[4-9]*)
15231     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15232       test "$enable_shared" = yes && enable_static=no
15233     fi
15234     ;;
15235   esac
15236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15237 $as_echo "$enable_shared" >&6; }
15238
15239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15240 $as_echo_n "checking whether to build static libraries... " >&6; }
15241   # Make sure either enable_shared or enable_static is yes.
15242   test "$enable_shared" = yes || enable_static=yes
15243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15244 $as_echo "$enable_static" >&6; }
15245
15246
15247
15248
15249 fi
15250 ac_ext=c
15251 ac_cpp='$CPP $CPPFLAGS'
15252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15255
15256 CC="$lt_save_CC"
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272         ac_config_commands="$ac_config_commands libtool"
15273
15274
15275
15276
15277 # Only expand once:
15278
15279
15280 ## --------------------- ##
15281 ##  End of libtool code  ##
15282 ## --------------------- ##
15283
15284 #
15285 # Verify if finally libtool shared libraries will be built
15286 #
15287
15288 case "x$enable_shared" in # ((
15289   xyes | xno)
15290     xc_lt_build_shared=$enable_shared
15291     ;;
15292   *)
15293     as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15294     ;;
15295 esac
15296
15297 #
15298 # Verify if finally libtool static libraries will be built
15299 #
15300
15301 case "x$enable_static" in # ((
15302   xyes | xno)
15303     xc_lt_build_static=$enable_static
15304     ;;
15305   *)
15306     as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15307     ;;
15308 esac
15309
15310 #
15311 # Verify if libtool shared libraries should be linked using flag -version-info
15312 #
15313
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15315 $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15316 xc_lt_shlib_use_version_info='yes'
15317 if test "x$version_type" = 'xnone'; then
15318   xc_lt_shlib_use_version_info='no'
15319 fi
15320 case $host_os in # (
15321   amigaos*)
15322     xc_lt_shlib_use_version_info='yes'
15323     ;;
15324 esac
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15326 $as_echo "$xc_lt_shlib_use_version_info" >&6; }
15327
15328 #
15329 # Verify if libtool shared libraries should be linked using flag -no-undefined
15330 #
15331
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15333 $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15334 xc_lt_shlib_use_no_undefined='no'
15335 if test "x$allow_undefined" = 'xno'; then
15336   xc_lt_shlib_use_no_undefined='yes'
15337 elif test "x$allow_undefined_flag" = 'xunsupported'; then
15338   xc_lt_shlib_use_no_undefined='yes'
15339 fi
15340 case $host_os in # (
15341   cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15342     xc_lt_shlib_use_no_undefined='yes'
15343     ;;
15344 esac
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15346 $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15347
15348 #
15349 # Verify if libtool shared libraries should be linked using flag -mimpure-text
15350 #
15351
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15353 $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15354 xc_lt_shlib_use_mimpure_text='no'
15355 case $host_os in # (
15356   solaris2*)
15357     if test "x$GCC" = 'xyes'; then
15358       xc_lt_shlib_use_mimpure_text='yes'
15359     fi
15360     ;;
15361 esac
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15363 $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15364
15365 #
15366 # Find out wether libtool libraries would be built wit PIC
15367 #
15368
15369 case "x$pic_mode" in # ((((
15370   xdefault)
15371     xc_lt_build_shared_with_pic='yes'
15372     xc_lt_build_static_with_pic='no'
15373     ;;
15374   xyes)
15375     xc_lt_build_shared_with_pic='yes'
15376     xc_lt_build_static_with_pic='yes'
15377     ;;
15378   xno)
15379     xc_lt_build_shared_with_pic='no'
15380     xc_lt_build_static_with_pic='no'
15381     ;;
15382   *)
15383     xc_lt_build_shared_with_pic='unknown'
15384     xc_lt_build_static_with_pic='unknown'
15385     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15386 $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15387     ;;
15388 esac
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15390 $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15392 $as_echo "$xc_lt_build_shared_with_pic" >&6; }
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15394 $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15396 $as_echo "$xc_lt_build_static_with_pic" >&6; }
15397
15398 #
15399 # Verify if libtool shared libraries will be built while static not built
15400 #
15401
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15403 $as_echo_n "checking whether to build shared libraries only... " >&6; }
15404 if test "$xc_lt_build_shared" = 'yes' &&
15405   test "$xc_lt_build_static" = 'no'; then
15406   xc_lt_build_shared_only='yes'
15407 else
15408   xc_lt_build_shared_only='no'
15409 fi
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15411 $as_echo "$xc_lt_build_shared_only" >&6; }
15412
15413 #
15414 # Verify if libtool static libraries will be built while shared not built
15415 #
15416
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15418 $as_echo_n "checking whether to build static libraries only... " >&6; }
15419 if test "$xc_lt_build_static" = 'yes' &&
15420   test "$xc_lt_build_shared" = 'no'; then
15421   xc_lt_build_static_only='yes'
15422 else
15423   xc_lt_build_static_only='no'
15424 fi
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15426 $as_echo "$xc_lt_build_static_only" >&6; }
15427
15428
15429
15430
15431 #
15432 # Automake conditionals based on libtool related checks
15433 #
15434
15435  if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15436   CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15437   CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15438 else
15439   CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15440   CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15441 fi
15442
15443  if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15444   CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15445   CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15446 else
15447   CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15448   CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15449 fi
15450
15451  if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15452   CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15453   CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15454 else
15455   CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15456   CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15457 fi
15458
15459
15460 #
15461 # Due to libtool and automake machinery limitations of not allowing
15462 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
15463 # inclusion of these in shared or static libraries, we are forced to
15464 # build using separate configure runs for shared and static libraries
15465 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
15466 # to compile objects for each kind of library. Notice that relying on
15467 # the '-DPIC' CFLAG that libtool provides is not valid given that the
15468 # user might for example choose to build static libraries with PIC.
15469 #
15470
15471 #
15472 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15473 # targeting a static library and not building its shared counterpart.
15474 #
15475
15476  if test "x$xc_lt_build_static_only" = 'xyes'; then
15477   USE_CPPFLAG_CURL_STATICLIB_TRUE=
15478   USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
15479 else
15480   USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
15481   USE_CPPFLAG_CURL_STATICLIB_FALSE=
15482 fi
15483
15484
15485 #
15486 # Make staticlib CPPFLAG variable and its definition visible in output
15487 # files unconditionally, providing an empty definition unless strictly
15488 # targeting a static library and not building its shared counterpart.
15489 #
15490
15491 CPPFLAG_CURL_STATICLIB=
15492 if test "x$xc_lt_build_static_only" = 'xyes'; then
15493   CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
15494 fi
15495
15496
15497
15498 # Determine whether all dependent libraries must be specified when linking
15499 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
15500 then
15501     REQUIRE_LIB_DEPS=no
15502 else
15503     REQUIRE_LIB_DEPS=yes
15504 fi
15505
15506  if test x$REQUIRE_LIB_DEPS = xyes; then
15507   USE_EXPLICIT_LIB_DEPS_TRUE=
15508   USE_EXPLICIT_LIB_DEPS_FALSE='#'
15509 else
15510   USE_EXPLICIT_LIB_DEPS_TRUE='#'
15511   USE_EXPLICIT_LIB_DEPS_FALSE=
15512 fi
15513
15514
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15516 $as_echo_n "checking for inline... " >&6; }
15517 if ${ac_cv_c_inline+:} false; then :
15518   $as_echo_n "(cached) " >&6
15519 else
15520   ac_cv_c_inline=no
15521 for ac_kw in inline __inline__ __inline; do
15522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15523 /* end confdefs.h.  */
15524 #ifndef __cplusplus
15525 typedef int foo_t;
15526 static $ac_kw foo_t static_foo () {return 0; }
15527 $ac_kw foo_t foo () {return 0; }
15528 #endif
15529
15530 _ACEOF
15531 if ac_fn_c_try_compile "$LINENO"; then :
15532   ac_cv_c_inline=$ac_kw
15533 fi
15534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15535   test "$ac_cv_c_inline" != no && break
15536 done
15537
15538 fi
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15540 $as_echo "$ac_cv_c_inline" >&6; }
15541
15542 case $ac_cv_c_inline in
15543   inline | yes) ;;
15544   *)
15545     case $ac_cv_c_inline in
15546       no) ac_val=;;
15547       *) ac_val=$ac_cv_c_inline;;
15548     esac
15549     cat >>confdefs.h <<_ACEOF
15550 #ifndef __cplusplus
15551 #define inline $ac_val
15552 #endif
15553 _ACEOF
15554     ;;
15555 esac
15556
15557
15558
15559
15560   #
15561   compiler_id="unknown"
15562   compiler_num="0"
15563   #
15564   flags_dbg_all="unknown"
15565   flags_dbg_yes="unknown"
15566   flags_dbg_off="unknown"
15567   flags_opt_all="unknown"
15568   flags_opt_yes="unknown"
15569   flags_opt_off="unknown"
15570   #
15571   flags_prefer_cppflags="no"
15572   #
15573
15574   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
15575 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
15576
15577       if test -z "$SED"; then
15578     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15579   fi
15580   if test -z "$GREP"; then
15581     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15582   fi
15583
15584   tmp_exp=""
15585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15586 /* end confdefs.h.  */
15587
15588
15589 #ifdef __DECC
15590 CURL_DEF_TOKEN __DECC
15591 #endif
15592
15593
15594 _ACEOF
15595 if ac_fn_c_try_cpp "$LINENO"; then :
15596
15597     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15598       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15599       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15600       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15601     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
15602       tmp_exp=""
15603     fi
15604
15605 fi
15606 rm -f conftest.err conftest.i conftest.$ac_ext
15607   if test -z "$tmp_exp"; then
15608     curl_cv_have_def___DECC=no
15609
15610   else
15611     curl_cv_have_def___DECC=yes
15612     curl_cv_def___DECC=$tmp_exp
15613
15614   fi
15615
15616
15617       if test -z "$SED"; then
15618     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15619   fi
15620   if test -z "$GREP"; then
15621     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15622   fi
15623
15624   tmp_exp=""
15625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15626 /* end confdefs.h.  */
15627
15628
15629 #ifdef __DECC_VER
15630 CURL_DEF_TOKEN __DECC_VER
15631 #endif
15632
15633
15634 _ACEOF
15635 if ac_fn_c_try_cpp "$LINENO"; then :
15636
15637     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15638       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15639       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15640       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15641     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
15642       tmp_exp=""
15643     fi
15644
15645 fi
15646 rm -f conftest.err conftest.i conftest.$ac_ext
15647   if test -z "$tmp_exp"; then
15648     curl_cv_have_def___DECC_VER=no
15649
15650   else
15651     curl_cv_have_def___DECC_VER=yes
15652     curl_cv_def___DECC_VER=$tmp_exp
15653
15654   fi
15655
15656   if test "$curl_cv_have_def___DECC" = "yes" &&
15657     test "$curl_cv_have_def___DECC_VER" = "yes"; then
15658     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15659 $as_echo "yes" >&6; }
15660     compiler_id="DEC_C"
15661     flags_dbg_all="-g -g0 -g1 -g2 -g3"
15662     flags_dbg_yes="-g2"
15663     flags_dbg_off=""
15664     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
15665     flags_opt_yes="-O1"
15666     flags_opt_off="-O0"
15667   else
15668     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15669 $as_echo "no" >&6; }
15670   fi
15671
15672
15673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
15674 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
15675
15676       if test -z "$SED"; then
15677     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15678   fi
15679   if test -z "$GREP"; then
15680     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15681   fi
15682
15683   tmp_exp=""
15684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15685 /* end confdefs.h.  */
15686
15687
15688 #ifdef __HP_cc
15689 CURL_DEF_TOKEN __HP_cc
15690 #endif
15691
15692
15693 _ACEOF
15694 if ac_fn_c_try_cpp "$LINENO"; then :
15695
15696     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15697       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15698       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15699       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15700     if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
15701       tmp_exp=""
15702     fi
15703
15704 fi
15705 rm -f conftest.err conftest.i conftest.$ac_ext
15706   if test -z "$tmp_exp"; then
15707     curl_cv_have_def___HP_cc=no
15708
15709   else
15710     curl_cv_have_def___HP_cc=yes
15711     curl_cv_def___HP_cc=$tmp_exp
15712
15713   fi
15714
15715   if test "$curl_cv_have_def___HP_cc" = "yes"; then
15716     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15717 $as_echo "yes" >&6; }
15718     compiler_id="HP_UX_C"
15719     flags_dbg_all="-g -s"
15720     flags_dbg_yes="-g"
15721     flags_dbg_off="-s"
15722     flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
15723     flags_opt_yes="+O2"
15724     flags_opt_off="+O0"
15725   else
15726     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15727 $as_echo "no" >&6; }
15728   fi
15729
15730
15731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
15732 $as_echo_n "checking if compiler is IBM C... " >&6; }
15733
15734       if test -z "$SED"; then
15735     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15736   fi
15737   if test -z "$GREP"; then
15738     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15739   fi
15740
15741   tmp_exp=""
15742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15743 /* end confdefs.h.  */
15744
15745
15746 #ifdef __IBMC__
15747 CURL_DEF_TOKEN __IBMC__
15748 #endif
15749
15750
15751 _ACEOF
15752 if ac_fn_c_try_cpp "$LINENO"; then :
15753
15754     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15755       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15756       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15757       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15758     if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
15759       tmp_exp=""
15760     fi
15761
15762 fi
15763 rm -f conftest.err conftest.i conftest.$ac_ext
15764   if test -z "$tmp_exp"; then
15765     curl_cv_have_def___IBMC__=no
15766
15767   else
15768     curl_cv_have_def___IBMC__=yes
15769     curl_cv_def___IBMC__=$tmp_exp
15770
15771   fi
15772
15773   if test "$curl_cv_have_def___IBMC__" = "yes"; then
15774     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15775 $as_echo "yes" >&6; }
15776     compiler_id="IBM_C"
15777     flags_dbg_all="-g -g0 -g1 -g2 -g3"
15778     flags_dbg_yes="-g"
15779     flags_dbg_off=""
15780     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
15781     flags_opt_all="$flags_opt_all -qnooptimize"
15782     flags_opt_all="$flags_opt_all -qoptimize=0"
15783     flags_opt_all="$flags_opt_all -qoptimize=1"
15784     flags_opt_all="$flags_opt_all -qoptimize=2"
15785     flags_opt_all="$flags_opt_all -qoptimize=3"
15786     flags_opt_all="$flags_opt_all -qoptimize=4"
15787     flags_opt_all="$flags_opt_all -qoptimize=5"
15788     flags_opt_yes="-O2"
15789     flags_opt_off="-qnooptimize"
15790     flags_prefer_cppflags="yes"
15791   else
15792     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15793 $as_echo "no" >&6; }
15794   fi
15795
15796
15797     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
15798 $as_echo_n "checking if compiler is Intel C... " >&6; }
15799
15800       if test -z "$SED"; then
15801     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15802   fi
15803   if test -z "$GREP"; then
15804     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15805   fi
15806
15807   tmp_exp=""
15808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15809 /* end confdefs.h.  */
15810
15811
15812 #ifdef __INTEL_COMPILER
15813 CURL_DEF_TOKEN __INTEL_COMPILER
15814 #endif
15815
15816
15817 _ACEOF
15818 if ac_fn_c_try_cpp "$LINENO"; then :
15819
15820     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15821       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15822       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15823       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15824     if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
15825       tmp_exp=""
15826     fi
15827
15828 fi
15829 rm -f conftest.err conftest.i conftest.$ac_ext
15830   if test -z "$tmp_exp"; then
15831     curl_cv_have_def___INTEL_COMPILER=no
15832
15833   else
15834     curl_cv_have_def___INTEL_COMPILER=yes
15835     curl_cv_def___INTEL_COMPILER=$tmp_exp
15836
15837   fi
15838
15839   if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
15840     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15841 $as_echo "yes" >&6; }
15842     compiler_num="$curl_cv_def___INTEL_COMPILER"
15843
15844       if test -z "$SED"; then
15845     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15846   fi
15847   if test -z "$GREP"; then
15848     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15849   fi
15850
15851   tmp_exp=""
15852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15853 /* end confdefs.h.  */
15854
15855
15856 #ifdef __unix__
15857 CURL_DEF_TOKEN __unix__
15858 #endif
15859
15860
15861 _ACEOF
15862 if ac_fn_c_try_cpp "$LINENO"; then :
15863
15864     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15865       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15866       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15867       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15868     if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
15869       tmp_exp=""
15870     fi
15871
15872 fi
15873 rm -f conftest.err conftest.i conftest.$ac_ext
15874   if test -z "$tmp_exp"; then
15875     curl_cv_have_def___unix__=no
15876
15877   else
15878     curl_cv_have_def___unix__=yes
15879     curl_cv_def___unix__=$tmp_exp
15880
15881   fi
15882
15883     if test "$curl_cv_have_def___unix__" = "yes"; then
15884       compiler_id="INTEL_UNIX_C"
15885       flags_dbg_all="-g -g0"
15886       flags_dbg_yes="-g"
15887       flags_dbg_off=""
15888       flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
15889       flags_opt_yes="-O2"
15890       flags_opt_off="-O0"
15891     else
15892       compiler_id="INTEL_WINDOWS_C"
15893       flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
15894       flags_dbg_all="$flags_dbg_all /debug"
15895       flags_dbg_all="$flags_dbg_all /debug:none"
15896       flags_dbg_all="$flags_dbg_all /debug:minimal"
15897       flags_dbg_all="$flags_dbg_all /debug:partial"
15898       flags_dbg_all="$flags_dbg_all /debug:full"
15899       flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
15900       flags_dbg_all="$flags_dbg_all /debug:extended"
15901       flags_dbg_yes="/Zi /Oy-"
15902       flags_dbg_off="/debug:none /Oy-"
15903       flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
15904       flags_opt_yes="/O2"
15905       flags_opt_off="/Od"
15906     fi
15907   else
15908     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15909 $as_echo "no" >&6; }
15910   fi
15911
15912
15913     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
15914 $as_echo_n "checking if compiler is clang... " >&6; }
15915
15916       if test -z "$SED"; then
15917     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15918   fi
15919   if test -z "$GREP"; then
15920     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15921   fi
15922
15923   tmp_exp=""
15924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15925 /* end confdefs.h.  */
15926
15927
15928 #ifdef __clang__
15929 CURL_DEF_TOKEN __clang__
15930 #endif
15931
15932
15933 _ACEOF
15934 if ac_fn_c_try_cpp "$LINENO"; then :
15935
15936     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15937       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15938       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15939       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15940     if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
15941       tmp_exp=""
15942     fi
15943
15944 fi
15945 rm -f conftest.err conftest.i conftest.$ac_ext
15946   if test -z "$tmp_exp"; then
15947     curl_cv_have_def___clang__=no
15948
15949   else
15950     curl_cv_have_def___clang__=yes
15951     curl_cv_def___clang__=$tmp_exp
15952
15953   fi
15954
15955   if test "$curl_cv_have_def___clang__" = "yes"; then
15956     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15957 $as_echo "yes" >&6; }
15958     compiler_id="CLANG"
15959     clangver=`$CC -dumpversion`
15960     clangvhi=`echo $clangver | cut -d . -f1`
15961     clangvlo=`echo $clangver | cut -d . -f2`
15962     compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
15963     flags_dbg_all="-g -g0 -g1 -g2 -g3"
15964     flags_dbg_all="$flags_dbg_all -ggdb"
15965     flags_dbg_all="$flags_dbg_all -gstabs"
15966     flags_dbg_all="$flags_dbg_all -gstabs+"
15967     flags_dbg_all="$flags_dbg_all -gcoff"
15968     flags_dbg_all="$flags_dbg_all -gxcoff"
15969     flags_dbg_all="$flags_dbg_all -gdwarf-2"
15970     flags_dbg_all="$flags_dbg_all -gvms"
15971     flags_dbg_yes="-g"
15972     flags_dbg_off=""
15973     flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
15974     flags_opt_yes="-Os"
15975     flags_opt_off="-O0"
15976   else
15977     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15978 $as_echo "no" >&6; }
15979   fi
15980
15981
15982       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
15983 $as_echo_n "checking if compiler is GNU C... " >&6; }
15984
15985       if test -z "$SED"; then
15986     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15987   fi
15988   if test -z "$GREP"; then
15989     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15990   fi
15991
15992   tmp_exp=""
15993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15994 /* end confdefs.h.  */
15995
15996
15997 #ifdef __GNUC__
15998 CURL_DEF_TOKEN __GNUC__
15999 #endif
16000
16001
16002 _ACEOF
16003 if ac_fn_c_try_cpp "$LINENO"; then :
16004
16005     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16006       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16007       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16008       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16009     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16010       tmp_exp=""
16011     fi
16012
16013 fi
16014 rm -f conftest.err conftest.i conftest.$ac_ext
16015   if test -z "$tmp_exp"; then
16016     curl_cv_have_def___GNUC__=no
16017
16018   else
16019     curl_cv_have_def___GNUC__=yes
16020     curl_cv_def___GNUC__=$tmp_exp
16021
16022   fi
16023
16024   if test "$curl_cv_have_def___GNUC__" = "yes" &&
16025     test "$compiler_id" = "unknown"; then
16026     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16027 $as_echo "yes" >&6; }
16028     compiler_id="GNU_C"
16029     gccver=`$CC -dumpversion`
16030     gccvhi=`echo $gccver | cut -d . -f1`
16031     gccvlo=`echo $gccver | cut -d . -f2`
16032     compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16033     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16034     flags_dbg_all="$flags_dbg_all -ggdb"
16035     flags_dbg_all="$flags_dbg_all -gstabs"
16036     flags_dbg_all="$flags_dbg_all -gstabs+"
16037     flags_dbg_all="$flags_dbg_all -gcoff"
16038     flags_dbg_all="$flags_dbg_all -gxcoff"
16039     flags_dbg_all="$flags_dbg_all -gdwarf-2"
16040     flags_dbg_all="$flags_dbg_all -gvms"
16041     flags_dbg_yes="-g"
16042     flags_dbg_off=""
16043     flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16044     flags_opt_yes="-O2"
16045     flags_opt_off="-O0"
16046
16047       if test -z "$SED"; then
16048     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16049   fi
16050   if test -z "$GREP"; then
16051     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16052   fi
16053
16054   tmp_exp=""
16055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16056 /* end confdefs.h.  */
16057
16058
16059 #ifdef _WIN32
16060 CURL_DEF_TOKEN _WIN32
16061 #endif
16062
16063
16064 _ACEOF
16065 if ac_fn_c_try_cpp "$LINENO"; then :
16066
16067     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16068       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16069       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16070       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16071     if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16072       tmp_exp=""
16073     fi
16074
16075 fi
16076 rm -f conftest.err conftest.i conftest.$ac_ext
16077   if test -z "$tmp_exp"; then
16078     curl_cv_have_def__WIN32=no
16079
16080   else
16081     curl_cv_have_def__WIN32=yes
16082     curl_cv_def__WIN32=$tmp_exp
16083
16084   fi
16085
16086   else
16087     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16088 $as_echo "no" >&6; }
16089   fi
16090
16091
16092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16093 $as_echo_n "checking if compiler is LCC... " >&6; }
16094
16095       if test -z "$SED"; then
16096     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16097   fi
16098   if test -z "$GREP"; then
16099     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16100   fi
16101
16102   tmp_exp=""
16103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16104 /* end confdefs.h.  */
16105
16106
16107 #ifdef __LCC__
16108 CURL_DEF_TOKEN __LCC__
16109 #endif
16110
16111
16112 _ACEOF
16113 if ac_fn_c_try_cpp "$LINENO"; then :
16114
16115     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16116       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16117       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16118       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16119     if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16120       tmp_exp=""
16121     fi
16122
16123 fi
16124 rm -f conftest.err conftest.i conftest.$ac_ext
16125   if test -z "$tmp_exp"; then
16126     curl_cv_have_def___LCC__=no
16127
16128   else
16129     curl_cv_have_def___LCC__=yes
16130     curl_cv_def___LCC__=$tmp_exp
16131
16132   fi
16133
16134   if test "$curl_cv_have_def___LCC__" = "yes"; then
16135     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16136 $as_echo "yes" >&6; }
16137     compiler_id="LCC"
16138     flags_dbg_all="-g"
16139     flags_dbg_yes="-g"
16140     flags_dbg_off=""
16141     flags_opt_all=""
16142     flags_opt_yes=""
16143     flags_opt_off=""
16144   else
16145     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16146 $as_echo "no" >&6; }
16147   fi
16148
16149
16150     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16151 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16152
16153       if test -z "$SED"; then
16154     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16155   fi
16156   if test -z "$GREP"; then
16157     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16158   fi
16159
16160   tmp_exp=""
16161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16162 /* end confdefs.h.  */
16163
16164
16165 #ifdef __GNUC__
16166 CURL_DEF_TOKEN __GNUC__
16167 #endif
16168
16169
16170 _ACEOF
16171 if ac_fn_c_try_cpp "$LINENO"; then :
16172
16173     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16174       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16175       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16176       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16177     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16178       tmp_exp=""
16179     fi
16180
16181 fi
16182 rm -f conftest.err conftest.i conftest.$ac_ext
16183   if test -z "$tmp_exp"; then
16184     curl_cv_have_def___GNUC__=no
16185
16186   else
16187     curl_cv_have_def___GNUC__=yes
16188     curl_cv_def___GNUC__=$tmp_exp
16189
16190   fi
16191
16192
16193       if test -z "$SED"; then
16194     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16195   fi
16196   if test -z "$GREP"; then
16197     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16198   fi
16199
16200   tmp_exp=""
16201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16202 /* end confdefs.h.  */
16203
16204
16205 #ifdef _COMPILER_VERSION
16206 CURL_DEF_TOKEN _COMPILER_VERSION
16207 #endif
16208
16209
16210 _ACEOF
16211 if ac_fn_c_try_cpp "$LINENO"; then :
16212
16213     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16214       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16215       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16216       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16217     if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16218       tmp_exp=""
16219     fi
16220
16221 fi
16222 rm -f conftest.err conftest.i conftest.$ac_ext
16223   if test -z "$tmp_exp"; then
16224     curl_cv_have_def__COMPILER_VERSION=no
16225
16226   else
16227     curl_cv_have_def__COMPILER_VERSION=yes
16228     curl_cv_def__COMPILER_VERSION=$tmp_exp
16229
16230   fi
16231
16232
16233       if test -z "$SED"; then
16234     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16235   fi
16236   if test -z "$GREP"; then
16237     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16238   fi
16239
16240   tmp_exp=""
16241   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16242 /* end confdefs.h.  */
16243
16244
16245 #ifdef _SGI_COMPILER_VERSION
16246 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16247 #endif
16248
16249
16250 _ACEOF
16251 if ac_fn_c_try_cpp "$LINENO"; then :
16252
16253     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16254       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16255       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16256       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16257     if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16258       tmp_exp=""
16259     fi
16260
16261 fi
16262 rm -f conftest.err conftest.i conftest.$ac_ext
16263   if test -z "$tmp_exp"; then
16264     curl_cv_have_def__SGI_COMPILER_VERSION=no
16265
16266   else
16267     curl_cv_have_def__SGI_COMPILER_VERSION=yes
16268     curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16269
16270   fi
16271
16272   if test "$curl_cv_have_def___GNUC__" = "no" &&
16273     (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16274      test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16275     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16276 $as_echo "yes" >&6; }
16277     compiler_id="SGI_MIPSPRO_C"
16278     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16279     flags_dbg_yes="-g"
16280     flags_dbg_off=""
16281     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16282     flags_opt_yes="-O2"
16283     flags_opt_off="-O0"
16284   else
16285     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16286 $as_echo "no" >&6; }
16287   fi
16288
16289
16290     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16291 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16292
16293       if test -z "$SED"; then
16294     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16295   fi
16296   if test -z "$GREP"; then
16297     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16298   fi
16299
16300   tmp_exp=""
16301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16302 /* end confdefs.h.  */
16303
16304
16305 #ifdef __GNUC__
16306 CURL_DEF_TOKEN __GNUC__
16307 #endif
16308
16309
16310 _ACEOF
16311 if ac_fn_c_try_cpp "$LINENO"; then :
16312
16313     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16314       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16315       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16316       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16317     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16318       tmp_exp=""
16319     fi
16320
16321 fi
16322 rm -f conftest.err conftest.i conftest.$ac_ext
16323   if test -z "$tmp_exp"; then
16324     curl_cv_have_def___GNUC__=no
16325
16326   else
16327     curl_cv_have_def___GNUC__=yes
16328     curl_cv_def___GNUC__=$tmp_exp
16329
16330   fi
16331
16332
16333       if test -z "$SED"; then
16334     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16335   fi
16336   if test -z "$GREP"; then
16337     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16338   fi
16339
16340   tmp_exp=""
16341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16342 /* end confdefs.h.  */
16343
16344
16345 #ifdef __sgi
16346 CURL_DEF_TOKEN __sgi
16347 #endif
16348
16349
16350 _ACEOF
16351 if ac_fn_c_try_cpp "$LINENO"; then :
16352
16353     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16354       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16355       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16356       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16357     if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16358       tmp_exp=""
16359     fi
16360
16361 fi
16362 rm -f conftest.err conftest.i conftest.$ac_ext
16363   if test -z "$tmp_exp"; then
16364     curl_cv_have_def___sgi=no
16365
16366   else
16367     curl_cv_have_def___sgi=yes
16368     curl_cv_def___sgi=$tmp_exp
16369
16370   fi
16371
16372   if test "$curl_cv_have_def___GNUC__" = "no" &&
16373     test "$curl_cv_have_def___sgi" = "yes" &&
16374     test "$compiler_id" = "unknown"; then
16375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16376 $as_echo "yes" >&6; }
16377     compiler_id="SGI_MIPS_C"
16378     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16379     flags_dbg_yes="-g"
16380     flags_dbg_off=""
16381     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16382     flags_opt_yes="-O2"
16383     flags_opt_off="-O0"
16384   else
16385     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16386 $as_echo "no" >&6; }
16387   fi
16388
16389
16390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16391 $as_echo_n "checking if compiler is SunPro C... " >&6; }
16392
16393       if test -z "$SED"; then
16394     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16395   fi
16396   if test -z "$GREP"; then
16397     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16398   fi
16399
16400   tmp_exp=""
16401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16402 /* end confdefs.h.  */
16403
16404
16405 #ifdef __SUNPRO_C
16406 CURL_DEF_TOKEN __SUNPRO_C
16407 #endif
16408
16409
16410 _ACEOF
16411 if ac_fn_c_try_cpp "$LINENO"; then :
16412
16413     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16414       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16415       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16416       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16417     if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16418       tmp_exp=""
16419     fi
16420
16421 fi
16422 rm -f conftest.err conftest.i conftest.$ac_ext
16423   if test -z "$tmp_exp"; then
16424     curl_cv_have_def___SUNPRO_C=no
16425
16426   else
16427     curl_cv_have_def___SUNPRO_C=yes
16428     curl_cv_def___SUNPRO_C=$tmp_exp
16429
16430   fi
16431
16432   if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16433     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16434 $as_echo "yes" >&6; }
16435     compiler_id="SUNPRO_C"
16436     flags_dbg_all="-g -s"
16437     flags_dbg_yes="-g"
16438     flags_dbg_off="-s"
16439     flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16440     flags_opt_yes="-xO2"
16441     flags_opt_off=""
16442   else
16443     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16444 $as_echo "no" >&6; }
16445   fi
16446
16447
16448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16449 $as_echo_n "checking if compiler is Tiny C... " >&6; }
16450
16451       if test -z "$SED"; then
16452     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16453   fi
16454   if test -z "$GREP"; then
16455     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16456   fi
16457
16458   tmp_exp=""
16459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16460 /* end confdefs.h.  */
16461
16462
16463 #ifdef __TINYC__
16464 CURL_DEF_TOKEN __TINYC__
16465 #endif
16466
16467
16468 _ACEOF
16469 if ac_fn_c_try_cpp "$LINENO"; then :
16470
16471     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16472       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16473       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16474       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16475     if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
16476       tmp_exp=""
16477     fi
16478
16479 fi
16480 rm -f conftest.err conftest.i conftest.$ac_ext
16481   if test -z "$tmp_exp"; then
16482     curl_cv_have_def___TINYC__=no
16483
16484   else
16485     curl_cv_have_def___TINYC__=yes
16486     curl_cv_def___TINYC__=$tmp_exp
16487
16488   fi
16489
16490   if test "$curl_cv_have_def___TINYC__" = "yes"; then
16491     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16492 $as_echo "yes" >&6; }
16493     compiler_id="TINY_C"
16494     flags_dbg_all="-g -b"
16495     flags_dbg_yes="-g"
16496     flags_dbg_off=""
16497     flags_opt_all=""
16498     flags_opt_yes=""
16499     flags_opt_off=""
16500   else
16501     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16502 $as_echo "no" >&6; }
16503   fi
16504
16505
16506   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
16507 $as_echo_n "checking if compiler is Watcom C... " >&6; }
16508
16509       if test -z "$SED"; then
16510     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16511   fi
16512   if test -z "$GREP"; then
16513     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16514   fi
16515
16516   tmp_exp=""
16517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16518 /* end confdefs.h.  */
16519
16520
16521 #ifdef __WATCOMC__
16522 CURL_DEF_TOKEN __WATCOMC__
16523 #endif
16524
16525
16526 _ACEOF
16527 if ac_fn_c_try_cpp "$LINENO"; then :
16528
16529     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16530       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16531       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16532       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16533     if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
16534       tmp_exp=""
16535     fi
16536
16537 fi
16538 rm -f conftest.err conftest.i conftest.$ac_ext
16539   if test -z "$tmp_exp"; then
16540     curl_cv_have_def___WATCOMC__=no
16541
16542   else
16543     curl_cv_have_def___WATCOMC__=yes
16544     curl_cv_def___WATCOMC__=$tmp_exp
16545
16546   fi
16547
16548   if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
16549     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16550 $as_echo "yes" >&6; }
16551
16552       if test -z "$SED"; then
16553     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16554   fi
16555   if test -z "$GREP"; then
16556     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16557   fi
16558
16559   tmp_exp=""
16560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16561 /* end confdefs.h.  */
16562
16563
16564 #ifdef __UNIX__
16565 CURL_DEF_TOKEN __UNIX__
16566 #endif
16567
16568
16569 _ACEOF
16570 if ac_fn_c_try_cpp "$LINENO"; then :
16571
16572     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16573       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16574       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16575       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16576     if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
16577       tmp_exp=""
16578     fi
16579
16580 fi
16581 rm -f conftest.err conftest.i conftest.$ac_ext
16582   if test -z "$tmp_exp"; then
16583     curl_cv_have_def___UNIX__=no
16584
16585   else
16586     curl_cv_have_def___UNIX__=yes
16587     curl_cv_def___UNIX__=$tmp_exp
16588
16589   fi
16590
16591     if test "$curl_cv_have_def___UNIX__" = "yes"; then
16592       compiler_id="WATCOM_UNIX_C"
16593       flags_dbg_all="-g1 -g1+ -g2 -g3"
16594       flags_dbg_yes="-g2"
16595       flags_dbg_off=""
16596       flags_opt_all="-O0 -O1 -O2 -O3"
16597       flags_opt_yes="-O2"
16598       flags_opt_off="-O0"
16599     else
16600       compiler_id="WATCOM_WINDOWS_C"
16601       flags_dbg_all=""
16602       flags_dbg_yes=""
16603       flags_dbg_off=""
16604       flags_opt_all=""
16605       flags_opt_yes=""
16606       flags_opt_off=""
16607     fi
16608   else
16609     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16610 $as_echo "no" >&6; }
16611   fi
16612
16613   #
16614   if test "$compiler_id" = "unknown"; then
16615   cat <<_EOF 1>&2
16616 ***
16617 *** Warning: This configure script does not have information about the
16618 *** compiler you are using, relative to the flags required to enable or
16619 *** disable generation of debug info, optimization options or warnings.
16620 ***
16621 *** Whatever settings are present in CFLAGS will be used for this run.
16622 ***
16623 *** If you wish to help the cURL project to better support your compiler
16624 *** you can report this and the required info on the libcurl development
16625 *** mailing list: http://cool.haxx.se/mailman/listinfo/curl-library/
16626 ***
16627 _EOF
16628   fi
16629
16630
16631 squeeze() {
16632   _sqz_result=""
16633   eval _sqz_input=\$$1
16634   for _sqz_token in $_sqz_input; do
16635     if test -z "$_sqz_result"; then
16636       _sqz_result="$_sqz_token"
16637     else
16638       _sqz_result="$_sqz_result $_sqz_token"
16639     fi
16640   done
16641   eval $1=\$_sqz_result
16642   return 0
16643 }
16644
16645
16646       #
16647   if test "$compiler_id" != "unknown"; then
16648     #
16649     if test "$compiler_id" = "GNU_C" ||
16650       test "$compiler_id" = "CLANG"; then
16651
16652       if test "$compiler_id" = "GNU_C" ||
16653     test "$compiler_id" = "CLANG"; then
16654     tmp_has_include="no"
16655     tmp_chg_FLAGS="$CFLAGS"
16656     for word1 in $tmp_chg_FLAGS; do
16657       case "$word1" in
16658         -I*)
16659           tmp_has_include="yes"
16660           ;;
16661       esac
16662     done
16663     if test "$tmp_has_include" = "yes"; then
16664       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
16665       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
16666       CFLAGS="$tmp_chg_FLAGS"
16667       squeeze CFLAGS
16668     fi
16669     tmp_has_include="no"
16670     tmp_chg_FLAGS="$CPPFLAGS"
16671     for word1 in $tmp_chg_FLAGS; do
16672       case "$word1" in
16673         -I*)
16674           tmp_has_include="yes"
16675           ;;
16676       esac
16677     done
16678     if test "$tmp_has_include" = "yes"; then
16679       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
16680       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
16681       CPPFLAGS="$tmp_chg_FLAGS"
16682       squeeze CPPFLAGS
16683     fi
16684   fi
16685
16686     fi
16687     #
16688     tmp_save_CPPFLAGS="$CPPFLAGS"
16689     tmp_save_CFLAGS="$CFLAGS"
16690     tmp_CPPFLAGS=""
16691     tmp_CFLAGS=""
16692     #
16693     case "$compiler_id" in
16694         #
16695       CLANG)
16696         #
16697                                 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
16698         ;;
16699         #
16700       DEC_C)
16701         #
16702                 tmp_CFLAGS="$tmp_CFLAGS -std1"
16703                 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
16704                 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
16705                 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
16706         ;;
16707         #
16708       GNU_C)
16709         #
16710                 tmp_CFLAGS="$tmp_CFLAGS"
16711         ;;
16712         #
16713       HP_UX_C)
16714         #
16715                 tmp_CFLAGS="$tmp_CFLAGS -z"
16716                                 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
16717         ;;
16718         #
16719       IBM_C)
16720         #
16721                 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
16722                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
16723                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
16724         ;;
16725         #
16726       INTEL_UNIX_C)
16727         #
16728                         tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
16729                                                 tmp_CPPFLAGS="$tmp_CPPFLAGS -we 140,147,165,266"
16730                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -wd 279,981,1469"
16731         ;;
16732         #
16733       INTEL_WINDOWS_C)
16734         #
16735                 tmp_CFLAGS="$tmp_CFLAGS"
16736         ;;
16737         #
16738       LCC)
16739         #
16740                 tmp_CFLAGS="$tmp_CFLAGS -n"
16741         ;;
16742         #
16743       SGI_MIPS_C)
16744         #
16745                 tmp_CFLAGS="$tmp_CFLAGS"
16746         ;;
16747         #
16748       SGI_MIPSPRO_C)
16749         #
16750                 tmp_CFLAGS="$tmp_CFLAGS"
16751         ;;
16752         #
16753       SUNPRO_C)
16754         #
16755                 tmp_CFLAGS="$tmp_CFLAGS"
16756         ;;
16757         #
16758       TINY_C)
16759         #
16760                 tmp_CFLAGS="$tmp_CFLAGS"
16761         ;;
16762         #
16763       WATCOM_UNIX_C)
16764         #
16765                 tmp_CFLAGS="$tmp_CFLAGS"
16766         ;;
16767         #
16768       WATCOM_WINDOWS_C)
16769         #
16770                 tmp_CFLAGS="$tmp_CFLAGS"
16771         ;;
16772         #
16773     esac
16774     #
16775     squeeze tmp_CPPFLAGS
16776     squeeze tmp_CFLAGS
16777     #
16778     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
16779       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
16780 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
16781       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
16782       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
16783       squeeze CPPFLAGS
16784       squeeze CFLAGS
16785
16786     tmp_compiler_works="unknown"
16787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16788 /* end confdefs.h.  */
16789
16790
16791
16792 int main (void)
16793 {
16794
16795       int i = 1;
16796       return i;
16797
16798  ;
16799  return 0;
16800 }
16801
16802 _ACEOF
16803 if ac_fn_c_try_compile "$LINENO"; then :
16804
16805     tmp_compiler_works="yes"
16806
16807 else
16808
16809     tmp_compiler_works="no"
16810     echo " " >&6
16811     sed 's/^/cc-fail: /' conftest.err >&6
16812     echo " " >&6
16813
16814 fi
16815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16816     if test "$tmp_compiler_works" = "yes"; then
16817     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16818 /* end confdefs.h.  */
16819
16820
16821
16822 int main (void)
16823 {
16824
16825         int i = 1;
16826         return i;
16827
16828  ;
16829  return 0;
16830 }
16831
16832 _ACEOF
16833 if ac_fn_c_try_link "$LINENO"; then :
16834
16835       tmp_compiler_works="yes"
16836
16837 else
16838
16839       tmp_compiler_works="no"
16840       echo " " >&6
16841       sed 's/^/link-fail: /' conftest.err >&6
16842       echo " " >&6
16843
16844 fi
16845 rm -f core conftest.err conftest.$ac_objext \
16846     conftest$ac_exeext conftest.$ac_ext
16847   fi
16848     if test "x$cross_compiling" != "xyes" &&
16849     test "$tmp_compiler_works" = "yes"; then
16850     if test "$cross_compiling" = yes; then :
16851   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16853 as_fn_error $? "cannot run test program while cross compiling
16854 See \`config.log' for more details" "$LINENO" 5; }
16855 else
16856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16857 /* end confdefs.h.  */
16858
16859
16860 #       ifdef __STDC__
16861 #         include <stdlib.h>
16862 #       endif
16863
16864 int main (void)
16865 {
16866
16867         int i = 0;
16868         exit(i);
16869
16870  ;
16871  return 0;
16872 }
16873
16874 _ACEOF
16875 if ac_fn_c_try_run "$LINENO"; then :
16876
16877       tmp_compiler_works="yes"
16878
16879 else
16880
16881       tmp_compiler_works="no"
16882       echo " " >&6
16883       echo "run-fail: test program exited with status $ac_status" >&6
16884       echo " " >&6
16885
16886 fi
16887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16888   conftest.$ac_objext conftest.beam conftest.$ac_ext
16889 fi
16890
16891   fi
16892     if test "$tmp_compiler_works" = "yes"; then
16893
16894         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16895 $as_echo "yes" >&6; }
16896         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
16897 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
16898
16899   else
16900
16901         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16902 $as_echo "no" >&6; }
16903         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
16904 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
16905                 CPPFLAGS="$tmp_save_CPPFLAGS"
16906         CFLAGS="$tmp_save_CFLAGS"
16907
16908   fi
16909
16910     fi
16911     #
16912   fi
16913
16914
16915         #
16916   if test "$compiler_id" != "unknown"; then
16917     #
16918     tmp_save_CFLAGS="$CFLAGS"
16919     tmp_save_CPPFLAGS="$CPPFLAGS"
16920     #
16921     tmp_options=""
16922     tmp_CFLAGS="$CFLAGS"
16923     tmp_CPPFLAGS="$CPPFLAGS"
16924
16925     ac_var_stripped=""
16926   for word1 in $tmp_CFLAGS; do
16927     ac_var_strip_word="no"
16928     for word2 in $flags_dbg_all; do
16929       if test "$word1" = "$word2"; then
16930         ac_var_strip_word="yes"
16931       fi
16932     done
16933     if test "$ac_var_strip_word" = "no"; then
16934       ac_var_stripped="$ac_var_stripped $word1"
16935     fi
16936   done
16937     tmp_CFLAGS="$ac_var_stripped"
16938   squeeze tmp_CFLAGS
16939
16940
16941     ac_var_stripped=""
16942   for word1 in $tmp_CPPFLAGS; do
16943     ac_var_strip_word="no"
16944     for word2 in $flags_dbg_all; do
16945       if test "$word1" = "$word2"; then
16946         ac_var_strip_word="yes"
16947       fi
16948     done
16949     if test "$ac_var_strip_word" = "no"; then
16950       ac_var_stripped="$ac_var_stripped $word1"
16951     fi
16952   done
16953     tmp_CPPFLAGS="$ac_var_stripped"
16954   squeeze tmp_CPPFLAGS
16955
16956     #
16957     if test "$want_debug" = "yes"; then
16958       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
16959 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
16960       tmp_options="$flags_dbg_yes"
16961     fi
16962     if test "$want_debug" = "no"; then
16963       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
16964 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
16965       tmp_options="$flags_dbg_off"
16966     fi
16967     #
16968     if test "$flags_prefer_cppflags" = "yes"; then
16969       CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
16970       CFLAGS="$tmp_CFLAGS"
16971     else
16972       CPPFLAGS="$tmp_CPPFLAGS"
16973       CFLAGS="$tmp_CFLAGS $tmp_options"
16974     fi
16975     squeeze CPPFLAGS
16976     squeeze CFLAGS
16977
16978     tmp_compiler_works="unknown"
16979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16980 /* end confdefs.h.  */
16981
16982
16983
16984 int main (void)
16985 {
16986
16987       int i = 1;
16988       return i;
16989
16990  ;
16991  return 0;
16992 }
16993
16994 _ACEOF
16995 if ac_fn_c_try_compile "$LINENO"; then :
16996
16997     tmp_compiler_works="yes"
16998
16999 else
17000
17001     tmp_compiler_works="no"
17002     echo " " >&6
17003     sed 's/^/cc-fail: /' conftest.err >&6
17004     echo " " >&6
17005
17006 fi
17007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17008     if test "$tmp_compiler_works" = "yes"; then
17009     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17010 /* end confdefs.h.  */
17011
17012
17013
17014 int main (void)
17015 {
17016
17017         int i = 1;
17018         return i;
17019
17020  ;
17021  return 0;
17022 }
17023
17024 _ACEOF
17025 if ac_fn_c_try_link "$LINENO"; then :
17026
17027       tmp_compiler_works="yes"
17028
17029 else
17030
17031       tmp_compiler_works="no"
17032       echo " " >&6
17033       sed 's/^/link-fail: /' conftest.err >&6
17034       echo " " >&6
17035
17036 fi
17037 rm -f core conftest.err conftest.$ac_objext \
17038     conftest$ac_exeext conftest.$ac_ext
17039   fi
17040     if test "x$cross_compiling" != "xyes" &&
17041     test "$tmp_compiler_works" = "yes"; then
17042     if test "$cross_compiling" = yes; then :
17043   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17045 as_fn_error $? "cannot run test program while cross compiling
17046 See \`config.log' for more details" "$LINENO" 5; }
17047 else
17048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17049 /* end confdefs.h.  */
17050
17051
17052 #       ifdef __STDC__
17053 #         include <stdlib.h>
17054 #       endif
17055
17056 int main (void)
17057 {
17058
17059         int i = 0;
17060         exit(i);
17061
17062  ;
17063  return 0;
17064 }
17065
17066 _ACEOF
17067 if ac_fn_c_try_run "$LINENO"; then :
17068
17069       tmp_compiler_works="yes"
17070
17071 else
17072
17073       tmp_compiler_works="no"
17074       echo " " >&6
17075       echo "run-fail: test program exited with status $ac_status" >&6
17076       echo " " >&6
17077
17078 fi
17079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17080   conftest.$ac_objext conftest.beam conftest.$ac_ext
17081 fi
17082
17083   fi
17084     if test "$tmp_compiler_works" = "yes"; then
17085
17086       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17087 $as_echo "yes" >&6; }
17088       { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17089 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17090
17091   else
17092
17093       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17094 $as_echo "no" >&6; }
17095       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17096 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17097             CPPFLAGS="$tmp_save_CPPFLAGS"
17098       CFLAGS="$tmp_save_CFLAGS"
17099
17100   fi
17101
17102     #
17103   fi
17104
17105
17106         #
17107   if test "$compiler_id" != "unknown"; then
17108     #
17109     tmp_save_CFLAGS="$CFLAGS"
17110     tmp_save_CPPFLAGS="$CPPFLAGS"
17111     #
17112     tmp_options=""
17113     tmp_CFLAGS="$CFLAGS"
17114     tmp_CPPFLAGS="$CPPFLAGS"
17115     honor_optimize_option="yes"
17116     #
17117                         #
17118     if test "$want_optimize" = "assume_no" ||
17119        test "$want_optimize" = "assume_yes"; then
17120       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17121 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17122
17123
17124   ac_var_match_word="no"
17125   for word1 in $tmp_CFLAGS; do
17126     for word2 in $flags_opt_all; do
17127       if test "$word1" = "$word2"; then
17128         ac_var_match_word="yes"
17129       fi
17130     done
17131   done
17132
17133   if test "$ac_var_match_word" = "yes"; then
17134
17135         honor_optimize_option="no"
17136
17137
17138   fi
17139
17140
17141
17142   ac_var_match_word="no"
17143   for word1 in $tmp_CPPFLAGS; do
17144     for word2 in $flags_opt_all; do
17145       if test "$word1" = "$word2"; then
17146         ac_var_match_word="yes"
17147       fi
17148     done
17149   done
17150
17151   if test "$ac_var_match_word" = "yes"; then
17152
17153         honor_optimize_option="no"
17154
17155
17156   fi
17157
17158       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17159 $as_echo "$honor_optimize_option" >&6; }
17160       if test "$honor_optimize_option" = "yes"; then
17161         if test "$want_optimize" = "assume_yes"; then
17162           want_optimize="yes"
17163         fi
17164         if test "$want_optimize" = "assume_no"; then
17165           want_optimize="no"
17166         fi
17167       fi
17168     fi
17169     #
17170     if test "$honor_optimize_option" = "yes"; then
17171
17172     ac_var_stripped=""
17173   for word1 in $tmp_CFLAGS; do
17174     ac_var_strip_word="no"
17175     for word2 in $flags_opt_all; do
17176       if test "$word1" = "$word2"; then
17177         ac_var_strip_word="yes"
17178       fi
17179     done
17180     if test "$ac_var_strip_word" = "no"; then
17181       ac_var_stripped="$ac_var_stripped $word1"
17182     fi
17183   done
17184     tmp_CFLAGS="$ac_var_stripped"
17185   squeeze tmp_CFLAGS
17186
17187
17188     ac_var_stripped=""
17189   for word1 in $tmp_CPPFLAGS; do
17190     ac_var_strip_word="no"
17191     for word2 in $flags_opt_all; do
17192       if test "$word1" = "$word2"; then
17193         ac_var_strip_word="yes"
17194       fi
17195     done
17196     if test "$ac_var_strip_word" = "no"; then
17197       ac_var_stripped="$ac_var_stripped $word1"
17198     fi
17199   done
17200     tmp_CPPFLAGS="$ac_var_stripped"
17201   squeeze tmp_CPPFLAGS
17202
17203       if test "$want_optimize" = "yes"; then
17204         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17205 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17206         tmp_options="$flags_opt_yes"
17207       fi
17208       if test "$want_optimize" = "no"; then
17209         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17210 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17211         tmp_options="$flags_opt_off"
17212       fi
17213       if test "$flags_prefer_cppflags" = "yes"; then
17214         CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17215         CFLAGS="$tmp_CFLAGS"
17216       else
17217         CPPFLAGS="$tmp_CPPFLAGS"
17218         CFLAGS="$tmp_CFLAGS $tmp_options"
17219       fi
17220       squeeze CPPFLAGS
17221       squeeze CFLAGS
17222
17223     tmp_compiler_works="unknown"
17224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17225 /* end confdefs.h.  */
17226
17227
17228
17229 int main (void)
17230 {
17231
17232       int i = 1;
17233       return i;
17234
17235  ;
17236  return 0;
17237 }
17238
17239 _ACEOF
17240 if ac_fn_c_try_compile "$LINENO"; then :
17241
17242     tmp_compiler_works="yes"
17243
17244 else
17245
17246     tmp_compiler_works="no"
17247     echo " " >&6
17248     sed 's/^/cc-fail: /' conftest.err >&6
17249     echo " " >&6
17250
17251 fi
17252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17253     if test "$tmp_compiler_works" = "yes"; then
17254     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17255 /* end confdefs.h.  */
17256
17257
17258
17259 int main (void)
17260 {
17261
17262         int i = 1;
17263         return i;
17264
17265  ;
17266  return 0;
17267 }
17268
17269 _ACEOF
17270 if ac_fn_c_try_link "$LINENO"; then :
17271
17272       tmp_compiler_works="yes"
17273
17274 else
17275
17276       tmp_compiler_works="no"
17277       echo " " >&6
17278       sed 's/^/link-fail: /' conftest.err >&6
17279       echo " " >&6
17280
17281 fi
17282 rm -f core conftest.err conftest.$ac_objext \
17283     conftest$ac_exeext conftest.$ac_ext
17284   fi
17285     if test "x$cross_compiling" != "xyes" &&
17286     test "$tmp_compiler_works" = "yes"; then
17287     if test "$cross_compiling" = yes; then :
17288   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17290 as_fn_error $? "cannot run test program while cross compiling
17291 See \`config.log' for more details" "$LINENO" 5; }
17292 else
17293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17294 /* end confdefs.h.  */
17295
17296
17297 #       ifdef __STDC__
17298 #         include <stdlib.h>
17299 #       endif
17300
17301 int main (void)
17302 {
17303
17304         int i = 0;
17305         exit(i);
17306
17307  ;
17308  return 0;
17309 }
17310
17311 _ACEOF
17312 if ac_fn_c_try_run "$LINENO"; then :
17313
17314       tmp_compiler_works="yes"
17315
17316 else
17317
17318       tmp_compiler_works="no"
17319       echo " " >&6
17320       echo "run-fail: test program exited with status $ac_status" >&6
17321       echo " " >&6
17322
17323 fi
17324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17325   conftest.$ac_objext conftest.beam conftest.$ac_ext
17326 fi
17327
17328   fi
17329     if test "$tmp_compiler_works" = "yes"; then
17330
17331         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17332 $as_echo "yes" >&6; }
17333         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17334 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17335
17336   else
17337
17338         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17339 $as_echo "no" >&6; }
17340         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17341 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17342                 CPPFLAGS="$tmp_save_CPPFLAGS"
17343         CFLAGS="$tmp_save_CFLAGS"
17344
17345   fi
17346
17347     fi
17348     #
17349   fi
17350
17351
17352         #
17353   if test "$compiler_id" != "unknown"; then
17354     #
17355     tmp_save_CPPFLAGS="$CPPFLAGS"
17356     tmp_save_CFLAGS="$CFLAGS"
17357     tmp_CPPFLAGS=""
17358     tmp_CFLAGS=""
17359     #
17360     case "$compiler_id" in
17361         #
17362       CLANG)
17363         #
17364         if test "$want_warnings" = "yes"; then
17365           tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17366           tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17367           tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17368           tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
17369           tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17370           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17371           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17372           tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17373           tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17374           tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17375           tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17376           tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17377           tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17378           tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17379           tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17380           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17381           tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
17382           #
17383                     if test "$compiler_num" -ge "101"; then
17384             tmp_CFLAGS="$tmp_CFLAGS -Wunused"
17385           fi
17386         fi
17387         ;;
17388         #
17389       DEC_C)
17390         #
17391         if test "$want_warnings" = "yes"; then
17392                     tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
17393         fi
17394         ;;
17395         #
17396       GNU_C)
17397         #
17398         if test "$want_warnings" = "yes"; then
17399           #
17400                               if test "x$cross_compiling" != "xyes" ||
17401             test "$compiler_num" -ge "300"; then
17402             tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17403           fi
17404           #
17405                     tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
17406           #
17407                     if test "$compiler_num" -ge "104"; then
17408             tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17409                         if test "x$cross_compiling" != "xyes" ||
17410               test "$compiler_num" -ge "300"; then
17411               tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
17412             fi
17413           fi
17414           #
17415                     if test "$compiler_num" -ge "207"; then
17416             tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17417                         if test "x$cross_compiling" != "xyes" ||
17418               test "$compiler_num" -ge "300"; then
17419               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17420               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17421             fi
17422           fi
17423           #
17424                     if test "$compiler_num" -ge "295"; then
17425             tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17426           fi
17427           #
17428                     if test "$compiler_num" -ge "296"; then
17429             tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17430             tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17431                                                 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17432           fi
17433           #
17434                     if test "$compiler_num" -ge "297"; then
17435             tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17436           fi
17437           #
17438                     if test "$compiler_num" -ge "300"; then
17439                                                             tmp_CFLAGS="$tmp_CFLAGS"
17440           fi
17441           #
17442                     if test "$compiler_num" -ge "303"; then
17443             tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17444           fi
17445           #
17446                     if test "$compiler_num" -ge "304"; then
17447             tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17448           fi
17449           #
17450                     if test "$compiler_num" -ge "400"; then
17451             tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
17452           fi
17453           #
17454                     if test "$compiler_num" -ge "402"; then
17455             tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17456           fi
17457           #
17458                     if test "$compiler_num" -ge "403"; then
17459             tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
17460             tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
17461             tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
17462             tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
17463           fi
17464           #
17465                     if test "$compiler_num" -ge "405"; then
17466                         if test "$curl_cv_have_def__WIN32" = "yes"; then
17467               tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
17468             fi
17469           fi
17470           #
17471         fi
17472         #
17473                 if test "$compiler_num" -ge "300"; then
17474           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17475         else
17476                               if test "x$cross_compiling" = "xyes"; then
17477             if test "$compiler_num" -ge "104"; then
17478                             tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
17479             fi
17480             if test "$compiler_num" -ge "207"; then
17481                             tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
17482               tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
17483             fi
17484           fi
17485         fi
17486         ;;
17487         #
17488       HP_UX_C)
17489         #
17490         if test "$want_warnings" = "yes"; then
17491                     tmp_CFLAGS="$tmp_CFLAGS +w1"
17492         fi
17493         ;;
17494         #
17495       IBM_C)
17496         #
17497                 tmp_CFLAGS="$tmp_CFLAGS"
17498         ;;
17499         #
17500       INTEL_UNIX_C)
17501         #
17502         if test "$want_warnings" = "yes"; then
17503           if test "$compiler_num" -gt "600"; then
17504                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
17505                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
17506                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
17507                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
17508                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
17509                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
17510                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
17511                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
17512                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
17513                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
17514                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
17515           fi
17516         fi
17517                 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
17518                 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
17519                 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
17520                 if test "$compiler_num" -ge "1000"; then
17521                     tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
17522         fi
17523         ;;
17524         #
17525       INTEL_WINDOWS_C)
17526         #
17527                 tmp_CFLAGS="$tmp_CFLAGS"
17528         ;;
17529         #
17530       LCC)
17531         #
17532         if test "$want_warnings" = "yes"; then
17533                                                   tmp_CFLAGS="$tmp_CFLAGS"
17534         fi
17535         ;;
17536         #
17537       SGI_MIPS_C)
17538         #
17539         if test "$want_warnings" = "yes"; then
17540                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17541         fi
17542         ;;
17543         #
17544       SGI_MIPSPRO_C)
17545         #
17546         if test "$want_warnings" = "yes"; then
17547                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17548                               tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
17549         fi
17550         ;;
17551         #
17552       SUNPRO_C)
17553         #
17554         if test "$want_warnings" = "yes"; then
17555                     tmp_CFLAGS="$tmp_CFLAGS -v"
17556         fi
17557         ;;
17558         #
17559       TINY_C)
17560         #
17561         if test "$want_warnings" = "yes"; then
17562                     tmp_CFLAGS="$tmp_CFLAGS -Wall"
17563                     tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
17564                     tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
17565         fi
17566         ;;
17567         #
17568       WATCOM_UNIX_C)
17569         #
17570         if test "$want_warnings" = "yes"; then
17571                     tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17572         fi
17573         ;;
17574         #
17575       WATCOM_WINDOWS_C)
17576         #
17577                 tmp_CFLAGS="$tmp_CFLAGS"
17578         ;;
17579         #
17580     esac
17581     #
17582     squeeze tmp_CPPFLAGS
17583     squeeze tmp_CFLAGS
17584     #
17585     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17586       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
17587 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
17588       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17589       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17590       squeeze CPPFLAGS
17591       squeeze CFLAGS
17592
17593     tmp_compiler_works="unknown"
17594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17595 /* end confdefs.h.  */
17596
17597
17598
17599 int main (void)
17600 {
17601
17602       int i = 1;
17603       return i;
17604
17605  ;
17606  return 0;
17607 }
17608
17609 _ACEOF
17610 if ac_fn_c_try_compile "$LINENO"; then :
17611
17612     tmp_compiler_works="yes"
17613
17614 else
17615
17616     tmp_compiler_works="no"
17617     echo " " >&6
17618     sed 's/^/cc-fail: /' conftest.err >&6
17619     echo " " >&6
17620
17621 fi
17622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17623     if test "$tmp_compiler_works" = "yes"; then
17624     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17625 /* end confdefs.h.  */
17626
17627
17628
17629 int main (void)
17630 {
17631
17632         int i = 1;
17633         return i;
17634
17635  ;
17636  return 0;
17637 }
17638
17639 _ACEOF
17640 if ac_fn_c_try_link "$LINENO"; then :
17641
17642       tmp_compiler_works="yes"
17643
17644 else
17645
17646       tmp_compiler_works="no"
17647       echo " " >&6
17648       sed 's/^/link-fail: /' conftest.err >&6
17649       echo " " >&6
17650
17651 fi
17652 rm -f core conftest.err conftest.$ac_objext \
17653     conftest$ac_exeext conftest.$ac_ext
17654   fi
17655     if test "x$cross_compiling" != "xyes" &&
17656     test "$tmp_compiler_works" = "yes"; then
17657     if test "$cross_compiling" = yes; then :
17658   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17660 as_fn_error $? "cannot run test program while cross compiling
17661 See \`config.log' for more details" "$LINENO" 5; }
17662 else
17663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17664 /* end confdefs.h.  */
17665
17666
17667 #       ifdef __STDC__
17668 #         include <stdlib.h>
17669 #       endif
17670
17671 int main (void)
17672 {
17673
17674         int i = 0;
17675         exit(i);
17676
17677  ;
17678  return 0;
17679 }
17680
17681 _ACEOF
17682 if ac_fn_c_try_run "$LINENO"; then :
17683
17684       tmp_compiler_works="yes"
17685
17686 else
17687
17688       tmp_compiler_works="no"
17689       echo " " >&6
17690       echo "run-fail: test program exited with status $ac_status" >&6
17691       echo " " >&6
17692
17693 fi
17694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17695   conftest.$ac_objext conftest.beam conftest.$ac_ext
17696 fi
17697
17698   fi
17699     if test "$tmp_compiler_works" = "yes"; then
17700
17701         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17702 $as_echo "yes" >&6; }
17703         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17704 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17705
17706   else
17707
17708         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17709 $as_echo "no" >&6; }
17710         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17711 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17712                 CPPFLAGS="$tmp_save_CPPFLAGS"
17713         CFLAGS="$tmp_save_CFLAGS"
17714
17715   fi
17716
17717     fi
17718     #
17719   fi
17720
17721
17722 if test "$compiler_id" = "INTEL_UNIX_C"; then
17723   #
17724   if test "$compiler_num" -ge "1000"; then
17725         CFLAGS="$CFLAGS -shared-intel"
17726   elif test "$compiler_num" -ge "900"; then
17727         CFLAGS="$CFLAGS -i-dynamic"
17728   fi
17729   #
17730 fi
17731
17732
17733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
17734 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
17735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17736 /* end confdefs.h.  */
17737
17738
17739
17740 int main (void)
17741 {
17742
17743       force compilation error
17744
17745  ;
17746  return 0;
17747 }
17748
17749 _ACEOF
17750 if ac_fn_c_try_compile "$LINENO"; then :
17751
17752     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17753 $as_echo "no" >&6; }
17754     as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
17755
17756 else
17757
17758     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17759 $as_echo "yes" >&6; }
17760
17761 fi
17762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17763
17764
17765     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
17766 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
17767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17768 /* end confdefs.h.  */
17769
17770
17771       typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
17772
17773 int main (void)
17774 {
17775
17776       bad_t dummy;
17777
17778  ;
17779  return 0;
17780 }
17781
17782 _ACEOF
17783 if ac_fn_c_try_compile "$LINENO"; then :
17784
17785     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17786 $as_echo "no" >&6; }
17787     as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
17788
17789 else
17790
17791     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17792 $as_echo "yes" >&6; }
17793
17794 fi
17795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17796
17797
17798     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
17799 $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
17800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17801 /* end confdefs.h.  */
17802
17803
17804 #     include <stdlib.h>
17805       int rand(int n);
17806       int rand(int n)
17807       {
17808         if(n)
17809           return ++n;
17810         else
17811           return n;
17812       }
17813
17814 int main (void)
17815 {
17816
17817       int i[2];
17818       int j = rand(i[0]);
17819       if(j)
17820         return j;
17821
17822  ;
17823  return 0;
17824 }
17825
17826 _ACEOF
17827 if ac_fn_c_try_compile "$LINENO"; then :
17828
17829     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17830 $as_echo "no" >&6; }
17831     as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
17832
17833 else
17834
17835     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17836 $as_echo "yes" >&6; }
17837
17838 fi
17839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17840
17841
17842       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
17843 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
17844   supports_symbol_hiding="no"
17845   symbol_hiding_CFLAGS=""
17846   symbol_hiding_EXTERN=""
17847   tmp_CFLAGS=""
17848   tmp_EXTERN=""
17849   case "$compiler_id" in
17850     CLANG)
17851             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
17852       tmp_CFLAGS="-fvisibility=hidden"
17853       supports_symbol_hiding="yes"
17854       ;;
17855     GNU_C)
17856             if test "$compiler_num" -ge "304"; then
17857         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
17858           tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
17859           tmp_CFLAGS="-fvisibility=hidden"
17860           supports_symbol_hiding="yes"
17861         fi
17862       fi
17863       ;;
17864     INTEL_UNIX_C)
17865             if test "$compiler_num" -ge "900"; then
17866         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
17867           tmp_save_CFLAGS="$CFLAGS"
17868           CFLAGS="$CFLAGS -fvisibility=hidden"
17869           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17870 /* end confdefs.h.  */
17871
17872
17873 #             include <stdio.h>
17874
17875 int main (void)
17876 {
17877
17878               printf("icc fvisibility bug test");
17879
17880  ;
17881  return 0;
17882 }
17883
17884 _ACEOF
17885 if ac_fn_c_try_link "$LINENO"; then :
17886
17887             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
17888             tmp_CFLAGS="-fvisibility=hidden"
17889             supports_symbol_hiding="yes"
17890
17891 fi
17892 rm -f core conftest.err conftest.$ac_objext \
17893     conftest$ac_exeext conftest.$ac_ext
17894           CFLAGS="$tmp_save_CFLAGS"
17895         fi
17896       fi
17897       ;;
17898     SUNPRO_C)
17899       if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
17900         tmp_EXTERN="__global"
17901         tmp_CFLAGS="-xldscope=hidden"
17902         supports_symbol_hiding="yes"
17903       fi
17904       ;;
17905   esac
17906   if test "$supports_symbol_hiding" = "yes"; then
17907     tmp_save_CFLAGS="$CFLAGS"
17908     CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17909     squeeze CFLAGS
17910     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17911 /* end confdefs.h.  */
17912
17913
17914         $tmp_EXTERN char *dummy(char *buff);
17915         char *dummy(char *buff)
17916         {
17917          if(buff)
17918            return ++buff;
17919          else
17920            return buff;
17921         }
17922
17923 int main (void)
17924 {
17925
17926         char b[16];
17927         char *r = dummy(&b[0]);
17928         if(r)
17929           return (int)*r;
17930
17931  ;
17932  return 0;
17933 }
17934
17935 _ACEOF
17936 if ac_fn_c_try_compile "$LINENO"; then :
17937
17938       supports_symbol_hiding="yes"
17939       if test -f conftest.err; then
17940         grep 'visibility' conftest.err >/dev/null
17941         if test "$?" -eq "0"; then
17942           supports_symbol_hiding="no"
17943         fi
17944       fi
17945
17946 else
17947
17948       supports_symbol_hiding="no"
17949       echo " " >&6
17950       sed 's/^/cc-src: /' conftest.$ac_ext >&6
17951       sed 's/^/cc-err: /' conftest.err >&6
17952       echo " " >&6
17953
17954 fi
17955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17956     CFLAGS="$tmp_save_CFLAGS"
17957   fi
17958   if test "$supports_symbol_hiding" = "yes"; then
17959     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17960 $as_echo "yes" >&6; }
17961     symbol_hiding_CFLAGS="$tmp_CFLAGS"
17962     symbol_hiding_EXTERN="$tmp_EXTERN"
17963   else
17964     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17965 $as_echo "no" >&6; }
17966   fi
17967
17968
17969
17970       supports_curldebug="unknown"
17971   if test "$want_curldebug" = "yes"; then
17972     if test "x$enable_shared" != "xno" &&
17973       test "x$enable_shared" != "xyes"; then
17974       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
17975 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
17976       supports_curldebug="no"
17977     fi
17978     if test "x$enable_static" != "xno" &&
17979       test "x$enable_static" != "xyes"; then
17980       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
17981 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
17982       supports_curldebug="no"
17983     fi
17984     if test "$supports_curldebug" != "no"; then
17985       if test "$enable_shared" = "yes" &&
17986         test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
17987         supports_curldebug="no"
17988         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
17989 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
17990       fi
17991     fi
17992   fi
17993   #
17994   if test "$want_curldebug" = "yes"; then
17995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
17996 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
17997     test "$supports_curldebug" = "no" || supports_curldebug="yes"
17998     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
17999 $as_echo "$supports_curldebug" >&6; }
18000     if test "$supports_curldebug" = "no"; then
18001       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18002 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18003       want_curldebug="no"
18004     fi
18005   fi
18006   #
18007   if test "$want_curldebug" = "yes"; then
18008     CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
18009     squeeze CPPFLAGS
18010   fi
18011   if test "$want_debug" = "yes"; then
18012     CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
18013     squeeze CPPFLAGS
18014   fi
18015
18016  if test x$want_curldebug = xyes; then
18017   CURLDEBUG_TRUE=
18018   CURLDEBUG_FALSE='#'
18019 else
18020   CURLDEBUG_TRUE='#'
18021   CURLDEBUG_FALSE=
18022 fi
18023
18024
18025 supports_unittests=yes
18026 # cross-compilation of unit tests static library/programs fails when
18027 # libcurl shared library is built. This might be due to a libtool or
18028 # automake issue. In this case we disable unit tests.
18029 if test "x$cross_compiling" != "xno" &&
18030    test "x$enable_shared" != "xno"; then
18031   supports_unittests=no
18032 fi
18033
18034 # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18035 # a problem related with OpenSSL headers and library versions not matching.
18036 # Disable unit tests while time to further investigate this is found.
18037 case $host in
18038   mips-sgi-irix6.5)
18039     if test "$compiler_id" = "GNU_C"; then
18040       supports_unittests=no
18041     fi
18042     ;;
18043 esac
18044
18045 # All AIX autobuilds fails unit tests linking against unittests library
18046 # due to unittests library being built with no symbols or members. Libtool ?
18047 # Disable unit tests while time to further investigate this is found.
18048 case $host_os in
18049   aix*)
18050     supports_unittests=no
18051     ;;
18052 esac
18053
18054 if test "x$want_debug" = "xyes" &&
18055    test "x$supports_unittests" = "xyes"; then
18056   want_unittests=yes
18057 else
18058   want_unittests=no
18059 fi
18060  if test x$want_unittests = xyes; then
18061   BUILD_UNITTESTS_TRUE=
18062   BUILD_UNITTESTS_FALSE='#'
18063 else
18064   BUILD_UNITTESTS_TRUE='#'
18065   BUILD_UNITTESTS_FALSE=
18066 fi
18067
18068
18069
18070
18071
18072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18073 $as_echo_n "checking for windows.h... " >&6; }
18074 if ${ac_cv_header_windows_h+:} false; then :
18075   $as_echo_n "(cached) " >&6
18076 else
18077
18078     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18079 /* end confdefs.h.  */
18080
18081
18082 #undef inline
18083 #ifndef WIN32_LEAN_AND_MEAN
18084 #define WIN32_LEAN_AND_MEAN
18085 #endif
18086 #include <windows.h>
18087
18088 int main (void)
18089 {
18090
18091 #if defined(__CYGWIN__) || defined(__CEGCC__)
18092         HAVE_WINDOWS_H shall not be defined.
18093 #else
18094         int dummy=2*WINVER;
18095 #endif
18096
18097  ;
18098  return 0;
18099 }
18100
18101 _ACEOF
18102 if ac_fn_c_try_compile "$LINENO"; then :
18103
18104       ac_cv_header_windows_h="yes"
18105
18106 else
18107
18108       ac_cv_header_windows_h="no"
18109
18110 fi
18111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18112
18113 fi
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
18115 $as_echo "$ac_cv_header_windows_h" >&6; }
18116   case "$ac_cv_header_windows_h" in
18117     yes)
18118
18119 cat >>confdefs.h <<_ACEOF
18120 #define HAVE_WINDOWS_H 1
18121 _ACEOF
18122
18123
18124 cat >>confdefs.h <<_ACEOF
18125 #define WIN32_LEAN_AND_MEAN 1
18126 _ACEOF
18127
18128       ;;
18129   esac
18130
18131
18132     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18133 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
18134 if ${ac_cv_native_windows+:} false; then :
18135   $as_echo_n "(cached) " >&6
18136 else
18137
18138     if test "$ac_cv_header_windows_h" = "no"; then
18139       ac_cv_native_windows="no"
18140     else
18141       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18142 /* end confdefs.h.  */
18143
18144
18145
18146 int main (void)
18147 {
18148
18149 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18150    (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18151           int dummy=1;
18152 #else
18153           Not a native Windows build target.
18154 #endif
18155
18156  ;
18157  return 0;
18158 }
18159
18160 _ACEOF
18161 if ac_fn_c_try_compile "$LINENO"; then :
18162
18163         ac_cv_native_windows="yes"
18164
18165 else
18166
18167         ac_cv_native_windows="no"
18168
18169 fi
18170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18171     fi
18172
18173 fi
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5
18175 $as_echo "$ac_cv_native_windows" >&6; }
18176    if test "x$ac_cv_native_windows" = xyes; then
18177   DOING_NATIVE_WINDOWS_TRUE=
18178   DOING_NATIVE_WINDOWS_FALSE='#'
18179 else
18180   DOING_NATIVE_WINDOWS_TRUE='#'
18181   DOING_NATIVE_WINDOWS_FALSE=
18182 fi
18183
18184
18185 case X-"$ac_cv_native_windows" in
18186   X-yes)
18187
18188     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18189 $as_echo_n "checking for winsock.h... " >&6; }
18190 if ${ac_cv_header_winsock_h+:} false; then :
18191   $as_echo_n "(cached) " >&6
18192 else
18193
18194     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18195 /* end confdefs.h.  */
18196
18197
18198 #undef inline
18199 #ifndef WIN32_LEAN_AND_MEAN
18200 #define WIN32_LEAN_AND_MEAN
18201 #endif
18202 #include <windows.h>
18203 #include <winsock.h>
18204
18205 int main (void)
18206 {
18207
18208 #if defined(__CYGWIN__) || defined(__CEGCC__)
18209         HAVE_WINSOCK_H shall not be defined.
18210 #else
18211         int dummy=WSACleanup();
18212 #endif
18213
18214  ;
18215  return 0;
18216 }
18217
18218 _ACEOF
18219 if ac_fn_c_try_compile "$LINENO"; then :
18220
18221       ac_cv_header_winsock_h="yes"
18222
18223 else
18224
18225       ac_cv_header_winsock_h="no"
18226
18227 fi
18228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18229
18230 fi
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
18232 $as_echo "$ac_cv_header_winsock_h" >&6; }
18233   case "$ac_cv_header_winsock_h" in
18234     yes)
18235
18236 cat >>confdefs.h <<_ACEOF
18237 #define HAVE_WINSOCK_H 1
18238 _ACEOF
18239
18240       ;;
18241   esac
18242
18243
18244     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18245 $as_echo_n "checking for winsock2.h... " >&6; }
18246 if ${ac_cv_header_winsock2_h+:} false; then :
18247   $as_echo_n "(cached) " >&6
18248 else
18249
18250     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18251 /* end confdefs.h.  */
18252
18253
18254 #undef inline
18255 #ifndef WIN32_LEAN_AND_MEAN
18256 #define WIN32_LEAN_AND_MEAN
18257 #endif
18258 #include <windows.h>
18259 #include <winsock2.h>
18260
18261 int main (void)
18262 {
18263
18264 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18265         HAVE_WINSOCK2_H shall not be defined.
18266 #else
18267         int dummy=2*IPPROTO_ESP;
18268 #endif
18269
18270  ;
18271  return 0;
18272 }
18273
18274 _ACEOF
18275 if ac_fn_c_try_compile "$LINENO"; then :
18276
18277       ac_cv_header_winsock2_h="yes"
18278
18279 else
18280
18281       ac_cv_header_winsock2_h="no"
18282
18283 fi
18284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18285
18286 fi
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
18288 $as_echo "$ac_cv_header_winsock2_h" >&6; }
18289   case "$ac_cv_header_winsock2_h" in
18290     yes)
18291
18292 cat >>confdefs.h <<_ACEOF
18293 #define HAVE_WINSOCK2_H 1
18294 _ACEOF
18295
18296       ;;
18297   esac
18298
18299
18300     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18301 $as_echo_n "checking for ws2tcpip.h... " >&6; }
18302 if ${ac_cv_header_ws2tcpip_h+:} false; then :
18303   $as_echo_n "(cached) " >&6
18304 else
18305
18306     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18307 /* end confdefs.h.  */
18308
18309
18310 #undef inline
18311 #ifndef WIN32_LEAN_AND_MEAN
18312 #define WIN32_LEAN_AND_MEAN
18313 #endif
18314 #include <windows.h>
18315 #include <winsock2.h>
18316 #include <ws2tcpip.h>
18317
18318 int main (void)
18319 {
18320
18321 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18322         HAVE_WS2TCPIP_H shall not be defined.
18323 #else
18324         int dummy=2*IP_PKTINFO;
18325 #endif
18326
18327  ;
18328  return 0;
18329 }
18330
18331 _ACEOF
18332 if ac_fn_c_try_compile "$LINENO"; then :
18333
18334       ac_cv_header_ws2tcpip_h="yes"
18335
18336 else
18337
18338       ac_cv_header_ws2tcpip_h="no"
18339
18340 fi
18341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18342
18343 fi
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
18345 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
18346   case "$ac_cv_header_ws2tcpip_h" in
18347     yes)
18348
18349 cat >>confdefs.h <<_ACEOF
18350 #define HAVE_WS2TCPIP_H 1
18351 _ACEOF
18352
18353       ;;
18354   esac
18355
18356
18357     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18358 $as_echo_n "checking for winldap.h... " >&6; }
18359 if ${ac_cv_header_winldap_h+:} false; then :
18360   $as_echo_n "(cached) " >&6
18361 else
18362
18363     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18364 /* end confdefs.h.  */
18365
18366
18367 #undef inline
18368 #ifdef HAVE_WINDOWS_H
18369 #ifndef WIN32_LEAN_AND_MEAN
18370 #define WIN32_LEAN_AND_MEAN
18371 #endif
18372 #include <windows.h>
18373 #endif
18374 #include <winldap.h>
18375
18376 int main (void)
18377 {
18378
18379 #if defined(__CYGWIN__) || defined(__CEGCC__)
18380         HAVE_WINLDAP_H shall not be defined.
18381 #else
18382         LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18383         ULONG res = ldap_unbind(ldp);
18384 #endif
18385
18386  ;
18387  return 0;
18388 }
18389
18390 _ACEOF
18391 if ac_fn_c_try_compile "$LINENO"; then :
18392
18393       ac_cv_header_winldap_h="yes"
18394
18395 else
18396
18397       ac_cv_header_winldap_h="no"
18398
18399 fi
18400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18401
18402 fi
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winldap_h" >&5
18404 $as_echo "$ac_cv_header_winldap_h" >&6; }
18405   case "$ac_cv_header_winldap_h" in
18406     yes)
18407
18408 cat >>confdefs.h <<_ACEOF
18409 #define HAVE_WINLDAP_H 1
18410 _ACEOF
18411
18412       ;;
18413   esac
18414
18415
18416     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
18417 $as_echo_n "checking for winber.h... " >&6; }
18418 if ${ac_cv_header_winber_h+:} false; then :
18419   $as_echo_n "(cached) " >&6
18420 else
18421
18422     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18423 /* end confdefs.h.  */
18424
18425
18426 #undef inline
18427 #ifdef HAVE_WINDOWS_H
18428 #ifndef WIN32_LEAN_AND_MEAN
18429 #define WIN32_LEAN_AND_MEAN
18430 #endif
18431 #include <windows.h>
18432 #endif
18433 #include <winldap.h>
18434 #include <winber.h>
18435
18436 int main (void)
18437 {
18438
18439 #if defined(__CYGWIN__) || defined(__CEGCC__)
18440         HAVE_WINBER_H shall not be defined.
18441 #else
18442         BERVAL *bvp = NULL;
18443         BerElement *bep = ber_init(bvp);
18444         ber_free(bep, 1);
18445 #endif
18446
18447  ;
18448  return 0;
18449 }
18450
18451 _ACEOF
18452 if ac_fn_c_try_compile "$LINENO"; then :
18453
18454       ac_cv_header_winber_h="yes"
18455
18456 else
18457
18458       ac_cv_header_winber_h="no"
18459
18460 fi
18461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18462
18463 fi
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winber_h" >&5
18465 $as_echo "$ac_cv_header_winber_h" >&6; }
18466   case "$ac_cv_header_winber_h" in
18467     yes)
18468
18469 cat >>confdefs.h <<_ACEOF
18470 #define HAVE_WINBER_H 1
18471 _ACEOF
18472
18473       ;;
18474   esac
18475
18476     ;;
18477   *)
18478     ac_cv_header_winsock_h="no"
18479     ac_cv_header_winsock2_h="no"
18480     ac_cv_header_ws2tcpip_h="no"
18481     ac_cv_header_winldap_h="no"
18482     ac_cv_header_winber_h="no"
18483     ;;
18484 esac
18485
18486     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
18487 $as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
18488   curl_win32_file_api="no"
18489   if test "$ac_cv_header_windows_h" = "yes"; then
18490     if test x"$enable_largefile" != "xno"; then
18491       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18492 /* end confdefs.h.  */
18493
18494
18495
18496 int main (void)
18497 {
18498
18499 #if !defined(_WIN32_WCE) && \
18500     (defined(__MINGW32__) || \
18501     (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
18502           int dummy=1;
18503 #else
18504           WIN32 large file API not supported.
18505 #endif
18506
18507  ;
18508  return 0;
18509 }
18510
18511 _ACEOF
18512 if ac_fn_c_try_compile "$LINENO"; then :
18513
18514         curl_win32_file_api="win32_large_files"
18515
18516 fi
18517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18518     fi
18519     if test "$curl_win32_file_api" = "no"; then
18520       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18521 /* end confdefs.h.  */
18522
18523
18524
18525 int main (void)
18526 {
18527
18528 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
18529           int dummy=1;
18530 #else
18531           WIN32 small file API not supported.
18532 #endif
18533
18534  ;
18535  return 0;
18536 }
18537
18538 _ACEOF
18539 if ac_fn_c_try_compile "$LINENO"; then :
18540
18541         curl_win32_file_api="win32_small_files"
18542
18543 fi
18544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18545     fi
18546   fi
18547   case "$curl_win32_file_api" in
18548     win32_large_files)
18549       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
18550 $as_echo "yes (large file enabled)" >&6; }
18551
18552 cat >>confdefs.h <<_ACEOF
18553 #define USE_WIN32_LARGE_FILES 1
18554 _ACEOF
18555
18556       ;;
18557     win32_small_files)
18558       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
18559 $as_echo "yes (large file disabled)" >&6; }
18560
18561 cat >>confdefs.h <<_ACEOF
18562 #define USE_WIN32_SMALL_FILES 1
18563 _ACEOF
18564
18565       ;;
18566     *)
18567       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18568 $as_echo "no" >&6; }
18569       ;;
18570   esac
18571
18572
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
18574 $as_echo_n "checking whether to support http... " >&6; }
18575 # Check whether --enable-http was given.
18576 if test "${enable_http+set}" = set; then :
18577   enableval=$enable_http;  case "$enableval" in
18578   no)
18579        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18580 $as_echo "no" >&6; }
18581
18582 $as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
18583
18584        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
18585 $as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
18586        CURL_DISABLE_HTTP=1
18587
18588
18589 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
18590
18591        CURL_DISABLE_RTSP=1
18592
18593        ;;
18594   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18595 $as_echo "yes" >&6; }
18596        ;;
18597   esac
18598 else
18599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18600 $as_echo "yes" >&6; }
18601
18602 fi
18603
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
18605 $as_echo_n "checking whether to support ftp... " >&6; }
18606 # Check whether --enable-ftp was given.
18607 if test "${enable_ftp+set}" = set; then :
18608   enableval=$enable_ftp;  case "$enableval" in
18609   no)
18610        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18611 $as_echo "no" >&6; }
18612
18613 $as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
18614
18615        CURL_DISABLE_FTP=1
18616
18617        ;;
18618   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18619 $as_echo "yes" >&6; }
18620        ;;
18621   esac
18622 else
18623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18624 $as_echo "yes" >&6; }
18625
18626 fi
18627
18628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
18629 $as_echo_n "checking whether to support file... " >&6; }
18630 # Check whether --enable-file was given.
18631 if test "${enable_file+set}" = set; then :
18632   enableval=$enable_file;  case "$enableval" in
18633   no)
18634        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18635 $as_echo "no" >&6; }
18636
18637 $as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
18638
18639        CURL_DISABLE_FILE=1
18640
18641        ;;
18642   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18643 $as_echo "yes" >&6; }
18644        ;;
18645   esac
18646 else
18647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18648 $as_echo "yes" >&6; }
18649
18650 fi
18651
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
18653 $as_echo_n "checking whether to support ldap... " >&6; }
18654 # Check whether --enable-ldap was given.
18655 if test "${enable_ldap+set}" = set; then :
18656   enableval=$enable_ldap;  case "$enableval" in
18657   no)
18658        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18659 $as_echo "no" >&6; }
18660
18661 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
18662
18663        CURL_DISABLE_LDAP=1
18664
18665        ;;
18666   *)
18667        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18668 $as_echo "yes" >&6; }
18669        ;;
18670   esac
18671 else
18672
18673        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18674 $as_echo "yes" >&6; }
18675
18676 fi
18677
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
18679 $as_echo_n "checking whether to support ldaps... " >&6; }
18680 # Check whether --enable-ldaps was given.
18681 if test "${enable_ldaps+set}" = set; then :
18682   enableval=$enable_ldaps;  case "$enableval" in
18683   no)
18684        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18685 $as_echo "no" >&6; }
18686
18687 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
18688
18689        CURL_DISABLE_LDAPS=1
18690
18691        ;;
18692   *)   if test "x$CURL_DISABLE_LDAP" = "x1" ; then
18693          { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
18694 $as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
18695
18696 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
18697
18698          CURL_DISABLE_LDAPS=1
18699
18700        else
18701          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18702 $as_echo "yes" >&6; }
18703
18704 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
18705
18706          HAVE_LDAP_SSL=1
18707
18708        fi
18709        ;;
18710   esac
18711 else
18712
18713        if test "x$CURL_DISABLE_LDAP" = "x1" ; then
18714          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18715 $as_echo "no" >&6; }
18716
18717 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
18718
18719          CURL_DISABLE_LDAPS=1
18720
18721        else
18722          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18723 $as_echo "yes" >&6; }
18724
18725 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
18726
18727          HAVE_LDAP_SSL=1
18728
18729        fi
18730
18731 fi
18732
18733
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
18735 $as_echo_n "checking whether to support rtsp... " >&6; }
18736 # Check whether --enable-rtsp was given.
18737 if test "${enable_rtsp+set}" = set; then :
18738   enableval=$enable_rtsp;  case "$enableval" in
18739   no)
18740        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18741 $as_echo "no" >&6; }
18742
18743 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
18744
18745        CURL_DISABLE_RTSP=1
18746
18747        ;;
18748   *)   if test x$CURL_DISABLE_HTTP = x1 ; then
18749           as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
18750        else
18751           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18752 $as_echo "yes" >&6; }
18753           curl_rtsp_msg="enabled"
18754        fi
18755        ;;
18756   esac
18757 else
18758   if test "x$CURL_DISABLE_HTTP" != "x1"; then
18759           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18760 $as_echo "yes" >&6; }
18761           curl_rtsp_msg="enabled"
18762        else
18763           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18764 $as_echo "no" >&6; }
18765        fi
18766
18767 fi
18768
18769
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
18771 $as_echo_n "checking whether to support proxies... " >&6; }
18772 # Check whether --enable-proxy was given.
18773 if test "${enable_proxy+set}" = set; then :
18774   enableval=$enable_proxy;  case "$enableval" in
18775   no)
18776        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18777 $as_echo "no" >&6; }
18778
18779 $as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
18780
18781        CURL_DISABLE_PROXY=1
18782
18783        ;;
18784   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18785 $as_echo "yes" >&6; }
18786        ;;
18787   esac
18788 else
18789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18790 $as_echo "yes" >&6; }
18791
18792 fi
18793
18794
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
18796 $as_echo_n "checking whether to support dict... " >&6; }
18797 # Check whether --enable-dict was given.
18798 if test "${enable_dict+set}" = set; then :
18799   enableval=$enable_dict;  case "$enableval" in
18800   no)
18801        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18802 $as_echo "no" >&6; }
18803
18804 $as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
18805
18806        CURL_DISABLE_DICT=1
18807
18808        ;;
18809   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18810 $as_echo "yes" >&6; }
18811        ;;
18812   esac
18813 else
18814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18815 $as_echo "yes" >&6; }
18816
18817 fi
18818
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
18820 $as_echo_n "checking whether to support telnet... " >&6; }
18821 # Check whether --enable-telnet was given.
18822 if test "${enable_telnet+set}" = set; then :
18823   enableval=$enable_telnet;  case "$enableval" in
18824   no)
18825        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18826 $as_echo "no" >&6; }
18827
18828 $as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
18829
18830        CURL_DISABLE_TELNET=1
18831
18832        ;;
18833   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18834 $as_echo "yes" >&6; }
18835        ;;
18836   esac
18837 else
18838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18839 $as_echo "yes" >&6; }
18840
18841 fi
18842
18843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
18844 $as_echo_n "checking whether to support tftp... " >&6; }
18845 # Check whether --enable-tftp was given.
18846 if test "${enable_tftp+set}" = set; then :
18847   enableval=$enable_tftp;  case "$enableval" in
18848   no)
18849        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18850 $as_echo "no" >&6; }
18851
18852 $as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
18853
18854        CURL_DISABLE_TFTP=1
18855
18856        ;;
18857   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18858 $as_echo "yes" >&6; }
18859        ;;
18860   esac
18861 else
18862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18863 $as_echo "yes" >&6; }
18864
18865 fi
18866
18867
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
18869 $as_echo_n "checking whether to support pop3... " >&6; }
18870 # Check whether --enable-pop3 was given.
18871 if test "${enable_pop3+set}" = set; then :
18872   enableval=$enable_pop3;  case "$enableval" in
18873   no)
18874        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18875 $as_echo "no" >&6; }
18876
18877 $as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
18878
18879        CURL_DISABLE_POP3=1
18880
18881        ;;
18882   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18883 $as_echo "yes" >&6; }
18884        ;;
18885   esac
18886 else
18887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18888 $as_echo "yes" >&6; }
18889
18890 fi
18891
18892
18893
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
18895 $as_echo_n "checking whether to support imap... " >&6; }
18896 # Check whether --enable-imap was given.
18897 if test "${enable_imap+set}" = set; then :
18898   enableval=$enable_imap;  case "$enableval" in
18899   no)
18900        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18901 $as_echo "no" >&6; }
18902
18903 $as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
18904
18905        CURL_DISABLE_IMAP=1
18906
18907        ;;
18908   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18909 $as_echo "yes" >&6; }
18910        ;;
18911   esac
18912 else
18913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18914 $as_echo "yes" >&6; }
18915
18916 fi
18917
18918
18919
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
18921 $as_echo_n "checking whether to support smtp... " >&6; }
18922 # Check whether --enable-smtp was given.
18923 if test "${enable_smtp+set}" = set; then :
18924   enableval=$enable_smtp;  case "$enableval" in
18925   no)
18926        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18927 $as_echo "no" >&6; }
18928
18929 $as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
18930
18931        CURL_DISABLE_SMTP=1
18932
18933        ;;
18934   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18935 $as_echo "yes" >&6; }
18936        ;;
18937   esac
18938 else
18939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18940 $as_echo "yes" >&6; }
18941
18942 fi
18943
18944
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
18946 $as_echo_n "checking whether to support gopher... " >&6; }
18947 # Check whether --enable-gopher was given.
18948 if test "${enable_gopher+set}" = set; then :
18949   enableval=$enable_gopher;  case "$enableval" in
18950   no)
18951        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18952 $as_echo "no" >&6; }
18953
18954 $as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
18955
18956        CURL_DISABLE_GOPHER=1
18957
18958        ;;
18959   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18960 $as_echo "yes" >&6; }
18961        ;;
18962   esac
18963 else
18964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18965 $as_echo "yes" >&6; }
18966
18967 fi
18968
18969
18970
18971
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
18973 $as_echo_n "checking whether to provide built-in manual... " >&6; }
18974 # Check whether --enable-manual was given.
18975 if test "${enable_manual+set}" = set; then :
18976   enableval=$enable_manual;  case "$enableval" in
18977   no)
18978        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18979 $as_echo "no" >&6; }
18980        ;;
18981   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18982 $as_echo "yes" >&6; }
18983        USE_MANUAL="1"
18984        ;;
18985   esac
18986 else
18987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18988 $as_echo "yes" >&6; }
18989        USE_MANUAL="1"
18990
18991 fi
18992
18993
18994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
18995 $as_echo_n "checking whether to enable generation of C code... " >&6; }
18996 # Check whether --enable-libcurl_option was given.
18997 if test "${enable_libcurl_option+set}" = set; then :
18998   enableval=$enable_libcurl_option;  case "$enableval" in
18999   no)
19000        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19001 $as_echo "no" >&6; }
19002
19003 $as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19004
19005        curl_libcurl_msg="no"
19006        ;;
19007   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19008 $as_echo "yes" >&6; }
19009        ;;
19010   esac
19011 else
19012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19013 $as_echo "yes" >&6; }
19014
19015 fi
19016
19017
19018
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19020 $as_echo_n "checking whether to use libgcc... " >&6; }
19021 # Check whether --enable-libgcc was given.
19022 if test "${enable_libgcc+set}" = set; then :
19023   enableval=$enable_libgcc;  case "$enableval" in
19024   yes)
19025        LIBS="-lgcc $LIBS"
19026        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19027 $as_echo "yes" >&6; }
19028        ;;
19029   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19030 $as_echo "no" >&6; }
19031        ;;
19032   esac
19033 else
19034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19035 $as_echo "no" >&6; }
19036
19037 fi
19038
19039
19040
19041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19042 $as_echo_n "checking if X/Open network library is required... " >&6; }
19043   tst_lib_xnet_required="no"
19044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19045 /* end confdefs.h.  */
19046
19047
19048 int main (void)
19049 {
19050 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19051   return 0;
19052 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19053   return 0;
19054 #else
19055   force compilation error
19056 #endif
19057 }
19058
19059
19060 _ACEOF
19061 if ac_fn_c_try_compile "$LINENO"; then :
19062
19063     tst_lib_xnet_required="yes"
19064     LIBS="-lxnet $LIBS"
19065
19066 fi
19067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19069 $as_echo "$tst_lib_xnet_required" >&6; }
19070
19071
19072 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19073 if test "x$ac_cv_func_gethostbyname" = xyes; then :
19074   HAVE_GETHOSTBYNAME="1"
19075
19076 else
19077    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19078 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19079 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19080   $as_echo_n "(cached) " >&6
19081 else
19082   ac_check_lib_save_LIBS=$LIBS
19083 LIBS="-lnsl  $LIBS"
19084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19085 /* end confdefs.h.  */
19086
19087
19088 #ifdef __cplusplus
19089 extern "C"
19090 #endif
19091 char gethostbyname ();
19092 int main (void)
19093 {
19094 return gethostbyname ();
19095  ;
19096  return 0;
19097 }
19098 _ACEOF
19099 if ac_fn_c_try_link "$LINENO"; then :
19100   ac_cv_lib_nsl_gethostbyname=yes
19101 else
19102   ac_cv_lib_nsl_gethostbyname=no
19103 fi
19104 rm -f core conftest.err conftest.$ac_objext \
19105     conftest$ac_exeext conftest.$ac_ext
19106 LIBS=$ac_check_lib_save_LIBS
19107 fi
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19109 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19110 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19111   HAVE_GETHOSTBYNAME="1"
19112                              LIBS="-lnsl $LIBS"
19113
19114 fi
19115
19116
19117 fi
19118
19119
19120 if test "$HAVE_GETHOSTBYNAME" != "1"
19121 then
19122     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19123 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19124 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19125   $as_echo_n "(cached) " >&6
19126 else
19127   ac_check_lib_save_LIBS=$LIBS
19128 LIBS="-lsocket  $LIBS"
19129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19130 /* end confdefs.h.  */
19131
19132
19133 #ifdef __cplusplus
19134 extern "C"
19135 #endif
19136 char gethostbyname ();
19137 int main (void)
19138 {
19139 return gethostbyname ();
19140  ;
19141  return 0;
19142 }
19143 _ACEOF
19144 if ac_fn_c_try_link "$LINENO"; then :
19145   ac_cv_lib_socket_gethostbyname=yes
19146 else
19147   ac_cv_lib_socket_gethostbyname=no
19148 fi
19149 rm -f core conftest.err conftest.$ac_objext \
19150     conftest$ac_exeext conftest.$ac_ext
19151 LIBS=$ac_check_lib_save_LIBS
19152 fi
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19154 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19155 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19156   HAVE_GETHOSTBYNAME="1"
19157                LIBS="-lsocket $LIBS"
19158
19159 fi
19160
19161 fi
19162
19163 if test "$HAVE_GETHOSTBYNAME" != "1"
19164 then
19165     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19166 $as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19167 if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19168   $as_echo_n "(cached) " >&6
19169 else
19170   ac_check_lib_save_LIBS=$LIBS
19171 LIBS="-lwatt  $LIBS"
19172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19173 /* end confdefs.h.  */
19174
19175
19176 #ifdef __cplusplus
19177 extern "C"
19178 #endif
19179 char gethostbyname ();
19180 int main (void)
19181 {
19182 return gethostbyname ();
19183  ;
19184  return 0;
19185 }
19186 _ACEOF
19187 if ac_fn_c_try_link "$LINENO"; then :
19188   ac_cv_lib_watt_gethostbyname=yes
19189 else
19190   ac_cv_lib_watt_gethostbyname=no
19191 fi
19192 rm -f core conftest.err conftest.$ac_objext \
19193     conftest$ac_exeext conftest.$ac_ext
19194 LIBS=$ac_check_lib_save_LIBS
19195 fi
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19197 $as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19198 if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19199   HAVE_GETHOSTBYNAME="1"
19200                CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19201                LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19202                LIBS="-lwatt $LIBS"
19203
19204 fi
19205
19206 fi
19207
19208 if test "$HAVE_GETHOSTBYNAME" != "1"
19209 then
19210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19211 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19212   my_ac_save_LIBS=$LIBS
19213   LIBS="-lnsl -lsocket $LIBS"
19214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19215 /* end confdefs.h.  */
19216
19217
19218
19219 int main (void)
19220 {
19221
19222       gethostbyname();
19223
19224  ;
19225  return 0;
19226 }
19227
19228 _ACEOF
19229 if ac_fn_c_try_link "$LINENO"; then :
19230
19231     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19232 $as_echo "yes" >&6; }
19233     HAVE_GETHOSTBYNAME="1"
19234
19235 else
19236
19237     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19238 $as_echo "no" >&6; }
19239     LIBS=$my_ac_save_LIBS
19240
19241 fi
19242 rm -f core conftest.err conftest.$ac_objext \
19243     conftest$ac_exeext conftest.$ac_ext
19244 fi
19245
19246 if test "$HAVE_GETHOSTBYNAME" != "1"
19247 then
19248     if test "$ac_cv_header_windows_h" = "yes"; then
19249     if test "$ac_cv_header_winsock_h" = "yes"; then
19250       case $host in
19251         *-*-mingw32ce*)
19252           winsock_LIB="-lwinsock"
19253           ;;
19254         *)
19255           winsock_LIB="-lwsock32"
19256           ;;
19257       esac
19258     fi
19259     if test "$ac_cv_header_winsock2_h" = "yes"; then
19260       winsock_LIB="-lws2_32"
19261     fi
19262     if test ! -z "$winsock_LIB"; then
19263       my_ac_save_LIBS=$LIBS
19264       LIBS="$winsock_LIB $LIBS"
19265       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19266 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19267       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19268 /* end confdefs.h.  */
19269
19270
19271 #ifdef HAVE_WINDOWS_H
19272 #ifndef WIN32_LEAN_AND_MEAN
19273 #define WIN32_LEAN_AND_MEAN
19274 #endif
19275 #include <windows.h>
19276 #ifdef HAVE_WINSOCK2_H
19277 #include <winsock2.h>
19278 #else
19279 #ifdef HAVE_WINSOCK_H
19280 #include <winsock.h>
19281 #endif
19282 #endif
19283 #endif
19284
19285 int main (void)
19286 {
19287
19288           gethostbyname("www.dummysite.com");
19289
19290  ;
19291  return 0;
19292 }
19293
19294 _ACEOF
19295 if ac_fn_c_try_link "$LINENO"; then :
19296
19297         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19298 $as_echo "yes" >&6; }
19299         HAVE_GETHOSTBYNAME="1"
19300
19301 else
19302
19303         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19304 $as_echo "no" >&6; }
19305         winsock_LIB=""
19306         LIBS=$my_ac_save_LIBS
19307
19308 fi
19309 rm -f core conftest.err conftest.$ac_objext \
19310     conftest$ac_exeext conftest.$ac_ext
19311     fi
19312   fi
19313 fi
19314
19315 if test "$HAVE_GETHOSTBYNAME" != "1"
19316 then
19317     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
19318 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
19319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19320 /* end confdefs.h.  */
19321
19322
19323 /* Older Minix versions may need <net/gen/netdb.h> here instead */
19324 #include <netdb.h>
19325
19326 int main (void)
19327 {
19328
19329       gethostbyname("www.dummysite.com");
19330
19331  ;
19332  return 0;
19333 }
19334
19335 _ACEOF
19336 if ac_fn_c_try_link "$LINENO"; then :
19337
19338     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19339 $as_echo "yes" >&6; }
19340     HAVE_GETHOSTBYNAME="1"
19341
19342 else
19343
19344     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19345 $as_echo "no" >&6; }
19346
19347 fi
19348 rm -f core conftest.err conftest.$ac_objext \
19349     conftest$ac_exeext conftest.$ac_ext
19350 fi
19351
19352 if test "$HAVE_GETHOSTBYNAME" != "1"
19353 then
19354     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
19355 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
19356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19357 /* end confdefs.h.  */
19358
19359
19360 #include <stdio.h>
19361 #include <netdb.h>
19362
19363 int main (void)
19364 {
19365
19366       gethostbyname("www.dummysite.com");
19367
19368  ;
19369  return 0;
19370 }
19371
19372 _ACEOF
19373 if ac_fn_c_try_link "$LINENO"; then :
19374
19375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19376 $as_echo "yes" >&6; }
19377     HAVE_GETHOSTBYNAME="1"
19378
19379 else
19380
19381     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19382 $as_echo "no" >&6; }
19383
19384 fi
19385 rm -f core conftest.err conftest.$ac_objext \
19386     conftest$ac_exeext conftest.$ac_ext
19387 fi
19388
19389 if test "$HAVE_GETHOSTBYNAME" != "1"
19390 then
19391     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
19392 $as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
19393 if ${ac_cv_lib_network_gethostbyname+:} false; then :
19394   $as_echo_n "(cached) " >&6
19395 else
19396   ac_check_lib_save_LIBS=$LIBS
19397 LIBS="-lnetwork  $LIBS"
19398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19399 /* end confdefs.h.  */
19400
19401
19402 #ifdef __cplusplus
19403 extern "C"
19404 #endif
19405 char gethostbyname ();
19406 int main (void)
19407 {
19408 return gethostbyname ();
19409  ;
19410  return 0;
19411 }
19412 _ACEOF
19413 if ac_fn_c_try_link "$LINENO"; then :
19414   ac_cv_lib_network_gethostbyname=yes
19415 else
19416   ac_cv_lib_network_gethostbyname=no
19417 fi
19418 rm -f core conftest.err conftest.$ac_objext \
19419     conftest$ac_exeext conftest.$ac_ext
19420 LIBS=$ac_check_lib_save_LIBS
19421 fi
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
19423 $as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
19424 if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
19425   HAVE_GETHOSTBYNAME="1"
19426                LIBS="-lnetwork $LIBS"
19427
19428 fi
19429
19430 fi
19431
19432 if test "$HAVE_GETHOSTBYNAME" != "1"
19433 then
19434     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
19435 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
19436 if ${ac_cv_lib_net_gethostbyname+:} false; then :
19437   $as_echo_n "(cached) " >&6
19438 else
19439   ac_check_lib_save_LIBS=$LIBS
19440 LIBS="-lnet  $LIBS"
19441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19442 /* end confdefs.h.  */
19443
19444
19445 #ifdef __cplusplus
19446 extern "C"
19447 #endif
19448 char gethostbyname ();
19449 int main (void)
19450 {
19451 return gethostbyname ();
19452  ;
19453  return 0;
19454 }
19455 _ACEOF
19456 if ac_fn_c_try_link "$LINENO"; then :
19457   ac_cv_lib_net_gethostbyname=yes
19458 else
19459   ac_cv_lib_net_gethostbyname=no
19460 fi
19461 rm -f core conftest.err conftest.$ac_objext \
19462     conftest$ac_exeext conftest.$ac_ext
19463 LIBS=$ac_check_lib_save_LIBS
19464 fi
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
19466 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
19467 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
19468   HAVE_GETHOSTBYNAME="1"
19469                LIBS="-lnet $LIBS"
19470
19471 fi
19472
19473 fi
19474
19475
19476 if test "$HAVE_GETHOSTBYNAME" != "1"; then
19477   as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
19478 fi
19479
19480 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
19481 if test "x$ac_cv_func_strcasecmp" = xyes; then :
19482
19483 else
19484    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
19485 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
19486 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
19487   $as_echo_n "(cached) " >&6
19488 else
19489   ac_check_lib_save_LIBS=$LIBS
19490 LIBS="-lresolve  $LIBS"
19491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19492 /* end confdefs.h.  */
19493
19494
19495 #ifdef __cplusplus
19496 extern "C"
19497 #endif
19498 char strcasecmp ();
19499 int main (void)
19500 {
19501 return strcasecmp ();
19502  ;
19503  return 0;
19504 }
19505 _ACEOF
19506 if ac_fn_c_try_link "$LINENO"; then :
19507   ac_cv_lib_resolve_strcasecmp=yes
19508 else
19509   ac_cv_lib_resolve_strcasecmp=no
19510 fi
19511 rm -f core conftest.err conftest.$ac_objext \
19512     conftest$ac_exeext conftest.$ac_ext
19513 LIBS=$ac_check_lib_save_LIBS
19514 fi
19515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
19516 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
19517 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
19518   cat >>confdefs.h <<_ACEOF
19519 #define HAVE_LIBRESOLVE 1
19520 _ACEOF
19521
19522   LIBS="-lresolve $LIBS"
19523
19524 fi
19525
19526 fi
19527
19528
19529 if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
19530   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
19531 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
19532 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
19533   $as_echo_n "(cached) " >&6
19534 else
19535   ac_check_lib_save_LIBS=$LIBS
19536 LIBS="-lresolve -lnsl $LIBS"
19537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19538 /* end confdefs.h.  */
19539
19540
19541 #ifdef __cplusplus
19542 extern "C"
19543 #endif
19544 char strcasecmp ();
19545 int main (void)
19546 {
19547 return strcasecmp ();
19548  ;
19549  return 0;
19550 }
19551 _ACEOF
19552 if ac_fn_c_try_link "$LINENO"; then :
19553   ac_cv_lib_resolve_strcasecmp=yes
19554 else
19555   ac_cv_lib_resolve_strcasecmp=no
19556 fi
19557 rm -f core conftest.err conftest.$ac_objext \
19558     conftest$ac_exeext conftest.$ac_ext
19559 LIBS=$ac_check_lib_save_LIBS
19560 fi
19561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
19562 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
19563 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
19564   LIBS="-lresolve $LIBS"
19565 fi
19566
19567 fi
19568 ac_cv_func_strcasecmp="no"
19569
19570
19571 curl_includes_winsock2="\
19572 /* includes start */
19573 #ifdef HAVE_WINDOWS_H
19574 #  ifndef WIN32_LEAN_AND_MEAN
19575 #    define WIN32_LEAN_AND_MEAN
19576 #  endif
19577 #  include <windows.h>
19578 #  ifdef HAVE_WINSOCK2_H
19579 #    include <winsock2.h>
19580 #  else
19581 #    ifdef HAVE_WINSOCK_H
19582 #      include <winsock.h>
19583 #    endif
19584 #  endif
19585 #endif
19586 /* includes end */"
19587
19588   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
19589 $as_echo_n "checking for windows.h... " >&6; }
19590 if ${ac_cv_header_windows_h+:} false; then :
19591   $as_echo_n "(cached) " >&6
19592 else
19593
19594     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19595 /* end confdefs.h.  */
19596
19597
19598 #undef inline
19599 #ifndef WIN32_LEAN_AND_MEAN
19600 #define WIN32_LEAN_AND_MEAN
19601 #endif
19602 #include <windows.h>
19603
19604 int main (void)
19605 {
19606
19607 #if defined(__CYGWIN__) || defined(__CEGCC__)
19608         HAVE_WINDOWS_H shall not be defined.
19609 #else
19610         int dummy=2*WINVER;
19611 #endif
19612
19613  ;
19614  return 0;
19615 }
19616
19617 _ACEOF
19618 if ac_fn_c_try_compile "$LINENO"; then :
19619
19620       ac_cv_header_windows_h="yes"
19621
19622 else
19623
19624       ac_cv_header_windows_h="no"
19625
19626 fi
19627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19628
19629 fi
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
19631 $as_echo "$ac_cv_header_windows_h" >&6; }
19632   case "$ac_cv_header_windows_h" in
19633     yes)
19634
19635 cat >>confdefs.h <<_ACEOF
19636 #define HAVE_WINDOWS_H 1
19637 _ACEOF
19638
19639
19640 cat >>confdefs.h <<_ACEOF
19641 #define WIN32_LEAN_AND_MEAN 1
19642 _ACEOF
19643
19644       ;;
19645   esac
19646
19647
19648     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
19649 $as_echo_n "checking for winsock.h... " >&6; }
19650 if ${ac_cv_header_winsock_h+:} false; then :
19651   $as_echo_n "(cached) " >&6
19652 else
19653
19654     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19655 /* end confdefs.h.  */
19656
19657
19658 #undef inline
19659 #ifndef WIN32_LEAN_AND_MEAN
19660 #define WIN32_LEAN_AND_MEAN
19661 #endif
19662 #include <windows.h>
19663 #include <winsock.h>
19664
19665 int main (void)
19666 {
19667
19668 #if defined(__CYGWIN__) || defined(__CEGCC__)
19669         HAVE_WINSOCK_H shall not be defined.
19670 #else
19671         int dummy=WSACleanup();
19672 #endif
19673
19674  ;
19675  return 0;
19676 }
19677
19678 _ACEOF
19679 if ac_fn_c_try_compile "$LINENO"; then :
19680
19681       ac_cv_header_winsock_h="yes"
19682
19683 else
19684
19685       ac_cv_header_winsock_h="no"
19686
19687 fi
19688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19689
19690 fi
19691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
19692 $as_echo "$ac_cv_header_winsock_h" >&6; }
19693   case "$ac_cv_header_winsock_h" in
19694     yes)
19695
19696 cat >>confdefs.h <<_ACEOF
19697 #define HAVE_WINSOCK_H 1
19698 _ACEOF
19699
19700       ;;
19701   esac
19702
19703
19704     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
19705 $as_echo_n "checking for winsock2.h... " >&6; }
19706 if ${ac_cv_header_winsock2_h+:} false; then :
19707   $as_echo_n "(cached) " >&6
19708 else
19709
19710     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19711 /* end confdefs.h.  */
19712
19713
19714 #undef inline
19715 #ifndef WIN32_LEAN_AND_MEAN
19716 #define WIN32_LEAN_AND_MEAN
19717 #endif
19718 #include <windows.h>
19719 #include <winsock2.h>
19720
19721 int main (void)
19722 {
19723
19724 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
19725         HAVE_WINSOCK2_H shall not be defined.
19726 #else
19727         int dummy=2*IPPROTO_ESP;
19728 #endif
19729
19730  ;
19731  return 0;
19732 }
19733
19734 _ACEOF
19735 if ac_fn_c_try_compile "$LINENO"; then :
19736
19737       ac_cv_header_winsock2_h="yes"
19738
19739 else
19740
19741       ac_cv_header_winsock2_h="no"
19742
19743 fi
19744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19745
19746 fi
19747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
19748 $as_echo "$ac_cv_header_winsock2_h" >&6; }
19749   case "$ac_cv_header_winsock2_h" in
19750     yes)
19751
19752 cat >>confdefs.h <<_ACEOF
19753 #define HAVE_WINSOCK2_H 1
19754 _ACEOF
19755
19756       ;;
19757   esac
19758
19759
19760
19761     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
19762 $as_echo_n "checking for connect in libraries... " >&6; }
19763   tst_connect_save_LIBS="$LIBS"
19764   tst_connect_need_LIBS="unknown"
19765   for tst_lib in '' '-lsocket' ; do
19766     if test "$tst_connect_need_LIBS" = "unknown"; then
19767       LIBS="$tst_lib $tst_connect_save_LIBS"
19768       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19769 /* end confdefs.h.  */
19770
19771
19772           $curl_includes_winsock2
19773           #ifndef HAVE_WINDOWS_H
19774             int connect(int, void*, int);
19775           #endif
19776
19777 int main (void)
19778 {
19779
19780           if(0 != connect(0, 0, 0))
19781             return 1;
19782
19783  ;
19784  return 0;
19785 }
19786
19787 _ACEOF
19788 if ac_fn_c_try_link "$LINENO"; then :
19789
19790         tst_connect_need_LIBS="$tst_lib"
19791
19792 fi
19793 rm -f core conftest.err conftest.$ac_objext \
19794     conftest$ac_exeext conftest.$ac_ext
19795     fi
19796   done
19797   LIBS="$tst_connect_save_LIBS"
19798   #
19799   case X-"$tst_connect_need_LIBS" in
19800     X-unknown)
19801       { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
19802 $as_echo "cannot find connect" >&6; }
19803       as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
19804       ;;
19805     X-)
19806       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19807 $as_echo "yes" >&6; }
19808       ;;
19809     *)
19810       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
19811 $as_echo "$tst_connect_need_LIBS" >&6; }
19812       LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
19813       ;;
19814   esac
19815
19816
19817 CURL_NETWORK_LIBS=$LIBS
19818
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19820 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19821 if ${ac_cv_header_time+:} false; then :
19822   $as_echo_n "(cached) " >&6
19823 else
19824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19825 /* end confdefs.h.  */
19826 #include <sys/types.h>
19827 #include <sys/time.h>
19828 #include <time.h>
19829
19830 int main (void)
19831 {
19832 if ((struct tm *) 0)
19833 return 0;
19834  ;
19835  return 0;
19836 }
19837 _ACEOF
19838 if ac_fn_c_try_compile "$LINENO"; then :
19839   ac_cv_header_time=yes
19840 else
19841   ac_cv_header_time=no
19842 fi
19843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19844 fi
19845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19846 $as_echo "$ac_cv_header_time" >&6; }
19847 if test $ac_cv_header_time = yes; then
19848
19849 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19850
19851 fi
19852
19853
19854     for ac_header in sys/types.h sys/time.h time.h
19855 do :
19856   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19857 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19858 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19859   cat >>confdefs.h <<_ACEOF
19860 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19861 _ACEOF
19862
19863 fi
19864
19865 done
19866
19867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
19868 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
19869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19870 /* end confdefs.h.  */
19871
19872
19873 #ifdef HAVE_SYS_TYPES_H
19874 #include <sys/types.h>
19875 #endif
19876 #ifdef HAVE_SYS_TIME_H
19877 #include <sys/time.h>
19878 #ifdef TIME_WITH_SYS_TIME
19879 #include <time.h>
19880 #endif
19881 #else
19882 #ifdef HAVE_TIME_H
19883 #include <time.h>
19884 #endif
19885 #endif
19886
19887 int main (void)
19888 {
19889
19890       struct timespec ts;
19891       (void)clock_gettime(CLOCK_MONOTONIC, &ts);
19892
19893  ;
19894  return 0;
19895 }
19896
19897 _ACEOF
19898 if ac_fn_c_try_compile "$LINENO"; then :
19899
19900     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19901 $as_echo "yes" >&6; }
19902     ac_cv_func_clock_gettime="yes"
19903
19904 else
19905
19906     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19907 $as_echo "no" >&6; }
19908     ac_cv_func_clock_gettime="no"
19909
19910 fi
19911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19912
19913
19914     #
19915   if test "$ac_cv_func_clock_gettime" = "yes"; then
19916     #
19917     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
19918 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
19919     #
19920     curl_cv_save_LIBS="$LIBS"
19921     curl_cv_gclk_LIBS="unknown"
19922     #
19923     for x_xlibs in '' '-lrt' '-lposix4' ; do
19924       if test "$curl_cv_gclk_LIBS" = "unknown"; then
19925         if test -z "$x_xlibs"; then
19926           LIBS="$curl_cv_save_LIBS"
19927         else
19928           LIBS="$x_xlibs $curl_cv_save_LIBS"
19929         fi
19930         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19931 /* end confdefs.h.  */
19932
19933
19934 #ifdef HAVE_SYS_TYPES_H
19935 #include <sys/types.h>
19936 #endif
19937 #ifdef HAVE_SYS_TIME_H
19938 #include <sys/time.h>
19939 #ifdef TIME_WITH_SYS_TIME
19940 #include <time.h>
19941 #endif
19942 #else
19943 #ifdef HAVE_TIME_H
19944 #include <time.h>
19945 #endif
19946 #endif
19947
19948 int main (void)
19949 {
19950
19951             struct timespec ts;
19952             (void)clock_gettime(CLOCK_MONOTONIC, &ts);
19953
19954  ;
19955  return 0;
19956 }
19957
19958 _ACEOF
19959 if ac_fn_c_try_link "$LINENO"; then :
19960
19961           curl_cv_gclk_LIBS="$x_xlibs"
19962
19963 fi
19964 rm -f core conftest.err conftest.$ac_objext \
19965     conftest$ac_exeext conftest.$ac_ext
19966       fi
19967     done
19968     #
19969     LIBS="$curl_cv_save_LIBS"
19970     #
19971     case X-"$curl_cv_gclk_LIBS" in
19972       X-unknown)
19973         { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
19974 $as_echo "cannot find clock_gettime" >&6; }
19975         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
19976 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
19977         ac_cv_func_clock_gettime="no"
19978         ;;
19979       X-)
19980         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
19981 $as_echo "no additional lib required" >&6; }
19982         ac_cv_func_clock_gettime="yes"
19983         ;;
19984       *)
19985         if test -z "$curl_cv_save_LIBS"; then
19986           LIBS="$curl_cv_gclk_LIBS"
19987         else
19988           LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
19989         fi
19990         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
19991 $as_echo "$curl_cv_gclk_LIBS" >&6; }
19992         ac_cv_func_clock_gettime="yes"
19993         ;;
19994     esac
19995     #
19996         if test "x$cross_compiling" != "xyes" &&
19997       test "$ac_cv_func_clock_gettime" = "yes"; then
19998       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
19999 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
20000       if test "$cross_compiling" = yes; then :
20001   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20003 as_fn_error $? "cannot run test program while cross compiling
20004 See \`config.log' for more details" "$LINENO" 5; }
20005 else
20006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20007 /* end confdefs.h.  */
20008
20009
20010 #ifdef HAVE_STDLIB_H
20011 #include <stdlib.h>
20012 #endif
20013 #ifdef HAVE_SYS_TYPES_H
20014 #include <sys/types.h>
20015 #endif
20016 #ifdef HAVE_SYS_TIME_H
20017 #include <sys/time.h>
20018 #ifdef TIME_WITH_SYS_TIME
20019 #include <time.h>
20020 #endif
20021 #else
20022 #ifdef HAVE_TIME_H
20023 #include <time.h>
20024 #endif
20025 #endif
20026
20027 int main (void)
20028 {
20029
20030           struct timespec ts;
20031           if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20032             exit(0);
20033           else
20034             exit(1);
20035
20036  ;
20037  return 0;
20038 }
20039
20040 _ACEOF
20041 if ac_fn_c_try_run "$LINENO"; then :
20042
20043         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20044 $as_echo "yes" >&6; }
20045
20046 else
20047
20048         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20049 $as_echo "no" >&6; }
20050         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20051 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20052         ac_cv_func_clock_gettime="no"
20053         LIBS="$curl_cv_save_LIBS"
20054
20055 fi
20056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20057   conftest.$ac_objext conftest.beam conftest.$ac_ext
20058 fi
20059
20060     fi
20061     #
20062     case "$ac_cv_func_clock_gettime" in
20063       yes)
20064
20065 cat >>confdefs.h <<_ACEOF
20066 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
20067 _ACEOF
20068
20069         ;;
20070     esac
20071     #
20072   fi
20073   #
20074
20075
20076 CURL_NETWORK_AND_TIME_LIBS=$LIBS
20077
20078
20079
20080 clean_CPPFLAGS=$CPPFLAGS
20081 clean_LDFLAGS=$LDFLAGS
20082 clean_LIBS=$LIBS
20083 ZLIB_LIBS=""
20084
20085 # Check whether --with-zlib was given.
20086 if test "${with_zlib+set}" = set; then :
20087   withval=$with_zlib; OPT_ZLIB="$withval"
20088 fi
20089
20090
20091 if test "$OPT_ZLIB" = "no" ; then
20092     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20093 $as_echo "$as_me: WARNING: zlib disabled" >&2;}
20094 else
20095   if test "$OPT_ZLIB" = "yes" ; then
20096     OPT_ZLIB=""
20097   fi
20098
20099   if test -z "$OPT_ZLIB" ; then
20100
20101     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20102 $as_echo_n "checking for inflateEnd in -lz... " >&6; }
20103 if ${ac_cv_lib_z_inflateEnd+:} false; then :
20104   $as_echo_n "(cached) " >&6
20105 else
20106   ac_check_lib_save_LIBS=$LIBS
20107 LIBS="-lz  $LIBS"
20108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20109 /* end confdefs.h.  */
20110
20111
20112 #ifdef __cplusplus
20113 extern "C"
20114 #endif
20115 char inflateEnd ();
20116 int main (void)
20117 {
20118 return inflateEnd ();
20119  ;
20120  return 0;
20121 }
20122 _ACEOF
20123 if ac_fn_c_try_link "$LINENO"; then :
20124   ac_cv_lib_z_inflateEnd=yes
20125 else
20126   ac_cv_lib_z_inflateEnd=no
20127 fi
20128 rm -f core conftest.err conftest.$ac_objext \
20129     conftest$ac_exeext conftest.$ac_ext
20130 LIBS=$ac_check_lib_save_LIBS
20131 fi
20132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20133 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20134 if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20135                      HAVE_LIBZ="1"
20136                     LIBS="-lz $LIBS"
20137 else
20138                      OPT_ZLIB="/usr/local"
20139 fi
20140
20141
20142   fi
20143
20144     if test -n "$OPT_ZLIB"; then
20145      CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20146      LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20147   fi
20148
20149   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20150 if test "x$ac_cv_header_zlib_h" = xyes; then :
20151
20152         HAVE_ZLIB_H="1"
20153         if test "$HAVE_LIBZ" != "1"; then
20154       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20155 $as_echo_n "checking for gzread in -lz... " >&6; }
20156 if ${ac_cv_lib_z_gzread+:} false; then :
20157   $as_echo_n "(cached) " >&6
20158 else
20159   ac_check_lib_save_LIBS=$LIBS
20160 LIBS="-lz  $LIBS"
20161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20162 /* end confdefs.h.  */
20163
20164
20165 #ifdef __cplusplus
20166 extern "C"
20167 #endif
20168 char gzread ();
20169 int main (void)
20170 {
20171 return gzread ();
20172  ;
20173  return 0;
20174 }
20175 _ACEOF
20176 if ac_fn_c_try_link "$LINENO"; then :
20177   ac_cv_lib_z_gzread=yes
20178 else
20179   ac_cv_lib_z_gzread=no
20180 fi
20181 rm -f core conftest.err conftest.$ac_objext \
20182     conftest$ac_exeext conftest.$ac_ext
20183 LIBS=$ac_check_lib_save_LIBS
20184 fi
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20186 $as_echo "$ac_cv_lib_z_gzread" >&6; }
20187 if test "x$ac_cv_lib_z_gzread" = xyes; then :
20188
20189                                       HAVE_LIBZ="1"
20190                    LIBS="-lz $LIBS"
20191
20192 else
20193    CPPFLAGS=$clean_CPPFLAGS
20194                    LDFLAGS=$clean_LDFLAGS
20195 fi
20196
20197     fi
20198
20199 else
20200
20201             CPPFLAGS=$clean_CPPFLAGS
20202       LDFLAGS=$clean_LDFLAGS
20203
20204 fi
20205
20206
20207
20208   if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20209   then
20210     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20211 $as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20212     HAVE_LIBZ=""
20213     CPPFLAGS=$clean_CPPFLAGS
20214     LDFLAGS=$clean_LDFLAGS
20215     LIBS=$clean_LIBS
20216   elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20217   then
20218     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20219 $as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20220     CPPFLAGS=$clean_CPPFLAGS
20221     LDFLAGS=$clean_LDFLAGS
20222     LIBS=$clean_LIBS
20223   elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20224   then
20225
20226
20227 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20228
20229
20230 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20231
20232
20233     ZLIB_LIBS="-lz"
20234     LIBS="-lz $clean_LIBS"
20235
20236         AMFIXLIB="1"
20237     { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20238 $as_echo "$as_me: found both libz and libz.h header" >&6;}
20239     curl_zlib_msg="enabled"
20240   fi
20241 fi
20242
20243  if test x"$AMFIXLIB" = x1; then
20244   HAVE_LIBZ_TRUE=
20245   HAVE_LIBZ_FALSE='#'
20246 else
20247   HAVE_LIBZ_TRUE='#'
20248   HAVE_LIBZ_FALSE=
20249 fi
20250
20251
20252
20253
20254 LDAPLIBNAME=""
20255
20256 # Check whether --with-ldap-lib was given.
20257 if test "${with_ldap_lib+set}" = set; then :
20258   withval=$with_ldap_lib; LDAPLIBNAME="$withval"
20259 fi
20260
20261
20262 LBERLIBNAME=""
20263
20264 # Check whether --with-lber-lib was given.
20265 if test "${with_lber_lib+set}" = set; then :
20266   withval=$with_lber_lib; LBERLIBNAME="$withval"
20267 fi
20268
20269
20270 if test x$CURL_DISABLE_LDAP != x1 ; then
20271
20272
20273     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
20274 $as_echo_n "checking for lber.h... " >&6; }
20275 if ${ac_cv_header_lber_h+:} false; then :
20276   $as_echo_n "(cached) " >&6
20277 else
20278
20279     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20280 /* end confdefs.h.  */
20281
20282
20283 #undef inline
20284 #ifdef HAVE_WINDOWS_H
20285 #ifndef WIN32_LEAN_AND_MEAN
20286 #define WIN32_LEAN_AND_MEAN
20287 #endif
20288 #include <windows.h>
20289 #else
20290 #ifdef HAVE_SYS_TYPES_H
20291 #include <sys/types.h>
20292 #endif
20293 #endif
20294 #ifndef NULL
20295 #define NULL (void *)0
20296 #endif
20297 #include <lber.h>
20298
20299 int main (void)
20300 {
20301
20302         BerValue *bvp = NULL;
20303         BerElement *bep = ber_init(bvp);
20304         ber_free(bep, 1);
20305
20306  ;
20307  return 0;
20308 }
20309
20310 _ACEOF
20311 if ac_fn_c_try_compile "$LINENO"; then :
20312
20313       ac_cv_header_lber_h="yes"
20314
20315 else
20316
20317       ac_cv_header_lber_h="no"
20318
20319 fi
20320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20321
20322 fi
20323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_lber_h" >&5
20324 $as_echo "$ac_cv_header_lber_h" >&6; }
20325   if test "$ac_cv_header_lber_h" = "yes"; then
20326
20327 cat >>confdefs.h <<_ACEOF
20328 #define HAVE_LBER_H 1
20329 _ACEOF
20330
20331     #
20332     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20333 /* end confdefs.h.  */
20334
20335
20336 #undef inline
20337 #ifdef HAVE_WINDOWS_H
20338 #ifndef WIN32_LEAN_AND_MEAN
20339 #define WIN32_LEAN_AND_MEAN
20340 #endif
20341 #include <windows.h>
20342 #else
20343 #ifdef HAVE_SYS_TYPES_H
20344 #include <sys/types.h>
20345 #endif
20346 #endif
20347 #ifndef NULL
20348 #define NULL (void *)0
20349 #endif
20350 #ifndef LDAP_DEPRECATED
20351 #define LDAP_DEPRECATED 1
20352 #endif
20353 #include <ldap.h>
20354
20355 int main (void)
20356 {
20357
20358         BerValue *bvp = NULL;
20359         BerElement *bep = ber_init(bvp);
20360         ber_free(bep, 1);
20361
20362  ;
20363  return 0;
20364 }
20365
20366 _ACEOF
20367 if ac_fn_c_try_compile "$LINENO"; then :
20368
20369       curl_cv_need_header_lber_h="no"
20370
20371 else
20372
20373       curl_cv_need_header_lber_h="yes"
20374
20375 fi
20376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20377     #
20378     case "$curl_cv_need_header_lber_h" in
20379       yes)
20380
20381 cat >>confdefs.h <<_ACEOF
20382 #define NEED_LBER_H 1
20383 _ACEOF
20384
20385         ;;
20386     esac
20387   fi
20388
20389
20390     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
20391 $as_echo_n "checking for ldap.h... " >&6; }
20392 if ${ac_cv_header_ldap_h+:} false; then :
20393   $as_echo_n "(cached) " >&6
20394 else
20395
20396     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20397 /* end confdefs.h.  */
20398
20399
20400 #undef inline
20401 #ifdef HAVE_WINDOWS_H
20402 #ifndef WIN32_LEAN_AND_MEAN
20403 #define WIN32_LEAN_AND_MEAN
20404 #endif
20405 #include <windows.h>
20406 #else
20407 #ifdef HAVE_SYS_TYPES_H
20408 #include <sys/types.h>
20409 #endif
20410 #endif
20411 #ifndef LDAP_DEPRECATED
20412 #define LDAP_DEPRECATED 1
20413 #endif
20414 #ifdef NEED_LBER_H
20415 #include <lber.h>
20416 #endif
20417 #include <ldap.h>
20418
20419 int main (void)
20420 {
20421
20422         LDAP *ldp = ldap_init("dummy", LDAP_PORT);
20423         int res = ldap_unbind(ldp);
20424
20425  ;
20426  return 0;
20427 }
20428
20429 _ACEOF
20430 if ac_fn_c_try_compile "$LINENO"; then :
20431
20432       ac_cv_header_ldap_h="yes"
20433
20434 else
20435
20436       ac_cv_header_ldap_h="no"
20437
20438 fi
20439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20440
20441 fi
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldap_h" >&5
20443 $as_echo "$ac_cv_header_ldap_h" >&6; }
20444   case "$ac_cv_header_ldap_h" in
20445     yes)
20446
20447 cat >>confdefs.h <<_ACEOF
20448 #define HAVE_LDAP_H 1
20449 _ACEOF
20450
20451       ;;
20452   esac
20453
20454
20455     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
20456 $as_echo_n "checking for ldapssl.h... " >&6; }
20457 if ${ac_cv_header_ldapssl_h+:} false; then :
20458   $as_echo_n "(cached) " >&6
20459 else
20460
20461     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20462 /* end confdefs.h.  */
20463
20464
20465 #undef inline
20466 #ifdef HAVE_WINDOWS_H
20467 #ifndef WIN32_LEAN_AND_MEAN
20468 #define WIN32_LEAN_AND_MEAN
20469 #endif
20470 #include <windows.h>
20471 #else
20472 #ifdef HAVE_SYS_TYPES_H
20473 #include <sys/types.h>
20474 #endif
20475 #endif
20476 #ifndef NULL
20477 #define NULL (void *)0
20478 #endif
20479 #ifndef LDAP_DEPRECATED
20480 #define LDAP_DEPRECATED 1
20481 #endif
20482 #ifdef NEED_LBER_H
20483 #include <lber.h>
20484 #endif
20485 #ifdef HAVE_LDAP_H
20486 #include <ldap.h>
20487 #endif
20488 #include <ldapssl.h>
20489
20490 int main (void)
20491 {
20492
20493         char *cert_label = NULL;
20494         LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
20495
20496  ;
20497  return 0;
20498 }
20499
20500 _ACEOF
20501 if ac_fn_c_try_compile "$LINENO"; then :
20502
20503       ac_cv_header_ldapssl_h="yes"
20504
20505 else
20506
20507       ac_cv_header_ldapssl_h="no"
20508
20509 fi
20510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20511
20512 fi
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldapssl_h" >&5
20514 $as_echo "$ac_cv_header_ldapssl_h" >&6; }
20515   case "$ac_cv_header_ldapssl_h" in
20516     yes)
20517
20518 cat >>confdefs.h <<_ACEOF
20519 #define HAVE_LDAPSSL_H 1
20520 _ACEOF
20521
20522       ;;
20523   esac
20524
20525
20526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
20527 $as_echo_n "checking for ldap_ssl.h... " >&6; }
20528 if ${ac_cv_header_ldap_ssl_h+:} false; then :
20529   $as_echo_n "(cached) " >&6
20530 else
20531
20532     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20533 /* end confdefs.h.  */
20534
20535
20536 #undef inline
20537 #ifdef HAVE_WINDOWS_H
20538 #ifndef WIN32_LEAN_AND_MEAN
20539 #define WIN32_LEAN_AND_MEAN
20540 #endif
20541 #include <windows.h>
20542 #else
20543 #ifdef HAVE_SYS_TYPES_H
20544 #include <sys/types.h>
20545 #endif
20546 #endif
20547 #ifndef LDAP_DEPRECATED
20548 #define LDAP_DEPRECATED 1
20549 #endif
20550 #ifdef NEED_LBER_H
20551 #include <lber.h>
20552 #endif
20553 #ifdef HAVE_LDAP_H
20554 #include <ldap.h>
20555 #endif
20556 #include <ldap_ssl.h>
20557
20558 int main (void)
20559 {
20560
20561         LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
20562
20563  ;
20564  return 0;
20565 }
20566
20567 _ACEOF
20568 if ac_fn_c_try_compile "$LINENO"; then :
20569
20570       ac_cv_header_ldap_ssl_h="yes"
20571
20572 else
20573
20574       ac_cv_header_ldap_ssl_h="no"
20575
20576 fi
20577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20578
20579 fi
20580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldap_ssl_h" >&5
20581 $as_echo "$ac_cv_header_ldap_ssl_h" >&6; }
20582   case "$ac_cv_header_ldap_ssl_h" in
20583     yes)
20584
20585 cat >>confdefs.h <<_ACEOF
20586 #define HAVE_LDAP_SSL_H 1
20587 _ACEOF
20588
20589       ;;
20590   esac
20591
20592
20593   if test -z "$LDAPLIBNAME" ; then
20594     if test "$ac_cv_native_windows" = "yes"; then
20595             LDAPLIBNAME="wldap32"
20596       LBERLIBNAME="no"
20597     fi
20598   fi
20599
20600   if test "$LDAPLIBNAME" ; then
20601     as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
20602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
20603 $as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
20604 if eval \${$as_ac_Lib+:} false; then :
20605   $as_echo_n "(cached) " >&6
20606 else
20607   ac_check_lib_save_LIBS=$LIBS
20608 LIBS="-l"$LDAPLIBNAME"  $LIBS"
20609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20610 /* end confdefs.h.  */
20611
20612
20613 #ifdef __cplusplus
20614 extern "C"
20615 #endif
20616 char ldap_init ();
20617 int main (void)
20618 {
20619 return ldap_init ();
20620  ;
20621  return 0;
20622 }
20623 _ACEOF
20624 if ac_fn_c_try_link "$LINENO"; then :
20625   eval "$as_ac_Lib=yes"
20626 else
20627   eval "$as_ac_Lib=no"
20628 fi
20629 rm -f core conftest.err conftest.$ac_objext \
20630     conftest$ac_exeext conftest.$ac_ext
20631 LIBS=$ac_check_lib_save_LIBS
20632 fi
20633 eval ac_res=\$$as_ac_Lib
20634                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20635 $as_echo "$ac_res" >&6; }
20636 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20637   cat >>confdefs.h <<_ACEOF
20638 #define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
20639 _ACEOF
20640
20641   LIBS="-l"$LDAPLIBNAME" $LIBS"
20642
20643 else
20644
20645       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
20646 $as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
20647
20648 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
20649
20650       CURL_DISABLE_LDAP=1
20651
20652
20653 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20654
20655       CURL_DISABLE_LDAPS=1
20656
20657 fi
20658
20659   else
20660
20661     #
20662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
20663 $as_echo_n "checking for LDAP libraries... " >&6; }
20664   #
20665   u_libs=""
20666   #
20667
20668   #
20669   curl_cv_save_LIBS="$LIBS"
20670   curl_cv_ldap_LIBS="unknown"
20671   #
20672   for x_nlibs in '' "$u_libs" \
20673     '-lldap' \
20674     '-llber -lldap' \
20675     '-lldap -llber' \
20676     '-lldapssl -lldapx -lldapsdk' \
20677     '-lldapsdk -lldapx -lldapssl' ; do
20678     if test "$curl_cv_ldap_LIBS" = "unknown"; then
20679       if test -z "$x_nlibs"; then
20680         LIBS="$curl_cv_save_LIBS"
20681       else
20682         LIBS="$x_nlibs $curl_cv_save_LIBS"
20683       fi
20684       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20685 /* end confdefs.h.  */
20686
20687
20688 #undef inline
20689 #ifdef HAVE_WINDOWS_H
20690 #ifndef WIN32_LEAN_AND_MEAN
20691 #define WIN32_LEAN_AND_MEAN
20692 #endif
20693 #include <windows.h>
20694 #else
20695 #ifdef HAVE_SYS_TYPES_H
20696 #include <sys/types.h>
20697 #endif
20698 #endif
20699 #ifndef NULL
20700 #define NULL (void *)0
20701 #endif
20702 #ifndef LDAP_DEPRECATED
20703 #define LDAP_DEPRECATED 1
20704 #endif
20705 #ifdef NEED_LBER_H
20706 #include <lber.h>
20707 #endif
20708 #ifdef HAVE_LDAP_H
20709 #include <ldap.h>
20710 #endif
20711
20712 int main (void)
20713 {
20714
20715           BerValue *bvp = NULL;
20716           BerElement *bep = ber_init(bvp);
20717           LDAP *ldp = ldap_init("dummy", LDAP_PORT);
20718           int res = ldap_unbind(ldp);
20719           ber_free(bep, 1);
20720
20721  ;
20722  return 0;
20723 }
20724
20725 _ACEOF
20726 if ac_fn_c_try_link "$LINENO"; then :
20727
20728         curl_cv_ldap_LIBS="$x_nlibs"
20729
20730 fi
20731 rm -f core conftest.err conftest.$ac_objext \
20732     conftest$ac_exeext conftest.$ac_ext
20733     fi
20734   done
20735   #
20736   LIBS="$curl_cv_save_LIBS"
20737   #
20738   case X-"$curl_cv_ldap_LIBS" in
20739     X-unknown)
20740       { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
20741 $as_echo "cannot find LDAP libraries" >&6; }
20742       ;;
20743     X-)
20744       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20745 $as_echo "no additional lib required" >&6; }
20746       ;;
20747     *)
20748       if test -z "$curl_cv_save_LIBS"; then
20749         LIBS="$curl_cv_ldap_LIBS"
20750       else
20751         LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
20752       fi
20753       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
20754 $as_echo "$curl_cv_ldap_LIBS" >&6; }
20755       ;;
20756   esac
20757   #
20758
20759     case X-"$curl_cv_ldap_LIBS" in
20760       X-unknown)
20761         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
20762 $as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
20763
20764 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
20765
20766         CURL_DISABLE_LDAP=1
20767
20768
20769 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20770
20771         CURL_DISABLE_LDAPS=1
20772
20773         ;;
20774     esac
20775   fi
20776 fi
20777
20778 if test x$CURL_DISABLE_LDAP != x1 ; then
20779
20780   if test "$LBERLIBNAME" ; then
20781             if test "$LBERLIBNAME" != "no" ; then
20782       as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
20783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
20784 $as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
20785 if eval \${$as_ac_Lib+:} false; then :
20786   $as_echo_n "(cached) " >&6
20787 else
20788   ac_check_lib_save_LIBS=$LIBS
20789 LIBS="-l"$LBERLIBNAME"  $LIBS"
20790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20791 /* end confdefs.h.  */
20792
20793
20794 #ifdef __cplusplus
20795 extern "C"
20796 #endif
20797 char ber_free ();
20798 int main (void)
20799 {
20800 return ber_free ();
20801  ;
20802  return 0;
20803 }
20804 _ACEOF
20805 if ac_fn_c_try_link "$LINENO"; then :
20806   eval "$as_ac_Lib=yes"
20807 else
20808   eval "$as_ac_Lib=no"
20809 fi
20810 rm -f core conftest.err conftest.$ac_objext \
20811     conftest$ac_exeext conftest.$ac_ext
20812 LIBS=$ac_check_lib_save_LIBS
20813 fi
20814 eval ac_res=\$$as_ac_Lib
20815                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20816 $as_echo "$ac_res" >&6; }
20817 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20818   cat >>confdefs.h <<_ACEOF
20819 #define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
20820 _ACEOF
20821
20822   LIBS="-l"$LBERLIBNAME" $LIBS"
20823
20824 else
20825
20826         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
20827 $as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
20828
20829 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
20830
20831         CURL_DISABLE_LDAP=1
20832
20833
20834 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20835
20836         CURL_DISABLE_LDAPS=1
20837
20838 fi
20839
20840     fi
20841   fi
20842 fi
20843
20844 if test x$CURL_DISABLE_LDAP != x1 ; then
20845   for ac_func in ldap_url_parse ldap_init_fd
20846 do :
20847   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20848 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20849 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20850   cat >>confdefs.h <<_ACEOF
20851 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20852 _ACEOF
20853
20854 fi
20855 done
20856
20857
20858   if test "$LDAPLIBNAME" = "wldap32"; then
20859     curl_ldap_msg="enabled (winldap)"
20860
20861 $as_echo "#define CURL_LDAP_WIN 1" >>confdefs.h
20862
20863   else
20864     curl_ldap_msg="enabled (OpenLDAP)"
20865     if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
20866
20867 $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
20868
20869       USE_OPENLDAP=1
20870
20871     fi
20872   fi
20873 fi
20874
20875 if test x$CURL_DISABLE_LDAPS != x1 ; then
20876     curl_ldaps_msg="enabled"
20877 fi
20878
20879
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ipv6" >&5
20881 $as_echo_n "checking whether to enable ipv6... " >&6; }
20882 # Check whether --enable-ipv6 was given.
20883 if test "${enable_ipv6+set}" = set; then :
20884   enableval=$enable_ipv6;  case "$enableval" in
20885   no)
20886        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20887 $as_echo "no" >&6; }
20888        ipv6=no
20889        ;;
20890   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20891 $as_echo "yes" >&6; }
20892        ipv6=yes
20893        ;;
20894   esac
20895 else
20896   if test "$cross_compiling" = yes; then :
20897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20898 $as_echo "no" >&6; }
20899   ipv6=no
20900
20901 else
20902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20903 /* end confdefs.h.  */
20904  /* is AF_INET6 available? */
20905 #include <sys/types.h>
20906 #include <sys/socket.h>
20907 main()
20908 {
20909  if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
20910    exit(1);
20911  else
20912    exit(0);
20913 }
20914
20915 _ACEOF
20916 if ac_fn_c_try_run "$LINENO"; then :
20917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20918 $as_echo "yes" >&6; }
20919   ipv6=yes
20920 else
20921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20922 $as_echo "no" >&6; }
20923   ipv6=no
20924 fi
20925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20926   conftest.$ac_objext conftest.beam conftest.$ac_ext
20927 fi
20928
20929 fi
20930
20931
20932 if test "$ipv6" = "yes"; then
20933   curl_ipv6_msg="enabled"
20934 fi
20935
20936 # Check if struct sockaddr_in6 have sin6_scope_id member
20937 if test "$ipv6" = yes; then
20938   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
20939 $as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
20940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20941 /* end confdefs.h.  */
20942
20943 #include <sys/types.h>
20944 #include <netinet/in.h>
20945 int main (void)
20946 {
20947 struct sockaddr_in6 s; s.sin6_scope_id = 0;
20948  ;
20949  return 0;
20950 }
20951 _ACEOF
20952 if ac_fn_c_try_compile "$LINENO"; then :
20953   have_sin6_scope_id=yes
20954 fi
20955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20956   if test "$have_sin6_scope_id" = yes; then
20957     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20958 $as_echo "yes" >&6; }
20959
20960 $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
20961
20962   else
20963     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20964 $as_echo "no" >&6; }
20965   fi
20966 fi
20967
20968
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
20970 $as_echo_n "checking if argv can be written to... " >&6; }
20971 if test "$cross_compiling" = yes; then :
20972
20973   curl_cv_writable_argv=cross
20974
20975 else
20976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20977 /* end confdefs.h.  */
20978
20979
20980 int main(int argc, char ** argv) {
20981     argv[0][0] = ' ';
20982     return (argv[0][0] == ' ')?0:1;
20983 }
20984
20985
20986 _ACEOF
20987 if ac_fn_c_try_run "$LINENO"; then :
20988
20989   curl_cv_writable_argv=yes
20990
20991 else
20992
20993   curl_cv_writable_argv=no
20994
20995 fi
20996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20997   conftest.$ac_objext conftest.beam conftest.$ac_ext
20998 fi
20999
21000 case $curl_cv_writable_argv in
21001 yes)
21002
21003 $as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
21004
21005         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21006 $as_echo "yes" >&6; }
21007         ;;
21008 no)
21009         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21010 $as_echo "no" >&6; }
21011         ;;
21012 *)
21013         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21014 $as_echo "no" >&6; }
21015         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
21016 $as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
21017         ;;
21018 esac
21019
21020
21021
21022 # Check whether --with-krb4-includes was given.
21023 if test "${with_krb4_includes+set}" = set; then :
21024   withval=$with_krb4_includes;
21025  CPPFLAGS="$CPPFLAGS -I$withval"
21026  KRB4INC="$withval"
21027  want_krb4=yes
21028
21029 fi
21030
21031
21032
21033 # Check whether --with-krb4-libs was given.
21034 if test "${with_krb4_libs+set}" = set; then :
21035   withval=$with_krb4_libs;
21036  LDFLAGS="$LDFLAGS -L$withval"
21037  KRB4LIB="$withval"
21038  want_krb4=yes
21039
21040 fi
21041
21042
21043
21044 OPT_KRB4=off
21045
21046 # Check whether --with-krb4 was given.
21047 if test "${with_krb4+set}" = set; then :
21048   withval=$with_krb4;
21049   OPT_KRB4="$withval"
21050   if test X"$OPT_KRB4" != Xno; then
21051     want_krb4="yes"
21052     if test X"$OPT_KRB4" != Xyes; then
21053       LDFLAGS="$LDFLAGS -L$OPT_KRB4/lib$libsuff"
21054       KRB4LIB="$OPT_KRB4/lib$libsuff"
21055       CPPFLAGS="$CPPFLAGS -I$OPT_KRB4/include"
21056       KRB4INC="$OPT_KRB4/include"
21057     fi
21058   fi
21059
21060 fi
21061
21062
21063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Kerberos4 support is requested" >&5
21064 $as_echo_n "checking if Kerberos4 support is requested... " >&6; }
21065
21066 if test "$want_krb4" = yes
21067 then
21068   if test "$ipv6" = "yes"; then
21069     echo krb4 is not compatible with IPv6
21070     exit 1
21071   fi
21072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21073 $as_echo "yes" >&6; }
21074
21075
21076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to look for Kerberos4" >&5
21077 $as_echo_n "checking where to look for Kerberos4... " >&6; }
21078   if test X"$OPT_KRB4" = Xyes
21079   then
21080     { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaults" >&5
21081 $as_echo "defaults" >&6; }
21082   else
21083     { $as_echo "$as_me:${as_lineno-$LINENO}: result: libs in $KRB4LIB, headers in $KRB4INC" >&5
21084 $as_echo "libs in $KRB4LIB, headers in $KRB4INC" >&6; }
21085   fi
21086
21087     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_pcbc_encrypt in -ldes" >&5
21088 $as_echo_n "checking for des_pcbc_encrypt in -ldes... " >&6; }
21089 if ${ac_cv_lib_des_des_pcbc_encrypt+:} false; then :
21090   $as_echo_n "(cached) " >&6
21091 else
21092   ac_check_lib_save_LIBS=$LIBS
21093 LIBS="-ldes  $LIBS"
21094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21095 /* end confdefs.h.  */
21096
21097
21098 #ifdef __cplusplus
21099 extern "C"
21100 #endif
21101 char des_pcbc_encrypt ();
21102 int main (void)
21103 {
21104 return des_pcbc_encrypt ();
21105  ;
21106  return 0;
21107 }
21108 _ACEOF
21109 if ac_fn_c_try_link "$LINENO"; then :
21110   ac_cv_lib_des_des_pcbc_encrypt=yes
21111 else
21112   ac_cv_lib_des_des_pcbc_encrypt=no
21113 fi
21114 rm -f core conftest.err conftest.$ac_objext \
21115     conftest$ac_exeext conftest.$ac_ext
21116 LIBS=$ac_check_lib_save_LIBS
21117 fi
21118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_pcbc_encrypt" >&5
21119 $as_echo "$ac_cv_lib_des_des_pcbc_encrypt" >&6; }
21120 if test "x$ac_cv_lib_des_des_pcbc_encrypt" = xyes; then :
21121
21122     for ac_header in des.h
21123 do :
21124   ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
21125 if test "x$ac_cv_header_des_h" = xyes; then :
21126   cat >>confdefs.h <<_ACEOF
21127 #define HAVE_DES_H 1
21128 _ACEOF
21129
21130 fi
21131
21132 done
21133
21134
21135         ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search"
21136 if test "x$ac_cv_func_res_search" = xyes; then :
21137
21138 else
21139   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
21140 $as_echo_n "checking for res_search in -lresolv... " >&6; }
21141 if ${ac_cv_lib_resolv_res_search+:} false; then :
21142   $as_echo_n "(cached) " >&6
21143 else
21144   ac_check_lib_save_LIBS=$LIBS
21145 LIBS="-lresolv  $LIBS"
21146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21147 /* end confdefs.h.  */
21148
21149
21150 #ifdef __cplusplus
21151 extern "C"
21152 #endif
21153 char res_search ();
21154 int main (void)
21155 {
21156 return res_search ();
21157  ;
21158  return 0;
21159 }
21160 _ACEOF
21161 if ac_fn_c_try_link "$LINENO"; then :
21162   ac_cv_lib_resolv_res_search=yes
21163 else
21164   ac_cv_lib_resolv_res_search=no
21165 fi
21166 rm -f core conftest.err conftest.$ac_objext \
21167     conftest$ac_exeext conftest.$ac_ext
21168 LIBS=$ac_check_lib_save_LIBS
21169 fi
21170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
21171 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
21172 if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
21173   cat >>confdefs.h <<_ACEOF
21174 #define HAVE_LIBRESOLV 1
21175 _ACEOF
21176
21177   LIBS="-lresolv $LIBS"
21178
21179 fi
21180
21181 fi
21182
21183
21184         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_net_read in -lkrb" >&5
21185 $as_echo_n "checking for krb_net_read in -lkrb... " >&6; }
21186 if ${ac_cv_lib_krb_krb_net_read+:} false; then :
21187   $as_echo_n "(cached) " >&6
21188 else
21189   ac_check_lib_save_LIBS=$LIBS
21190 LIBS="-lkrb  $LIBS"
21191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21192 /* end confdefs.h.  */
21193
21194
21195 #ifdef __cplusplus
21196 extern "C"
21197 #endif
21198 char krb_net_read ();
21199 int main (void)
21200 {
21201 return krb_net_read ();
21202  ;
21203  return 0;
21204 }
21205 _ACEOF
21206 if ac_fn_c_try_link "$LINENO"; then :
21207   ac_cv_lib_krb_krb_net_read=yes
21208 else
21209   ac_cv_lib_krb_krb_net_read=no
21210 fi
21211 rm -f core conftest.err conftest.$ac_objext \
21212     conftest$ac_exeext conftest.$ac_ext
21213 LIBS=$ac_check_lib_save_LIBS
21214 fi
21215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_net_read" >&5
21216 $as_echo "$ac_cv_lib_krb_krb_net_read" >&6; }
21217 if test "x$ac_cv_lib_krb_krb_net_read" = xyes; then :
21218
21219             for ac_header in krb.h
21220 do :
21221   ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
21222 if test "x$ac_cv_header_krb_h" = xyes; then :
21223   cat >>confdefs.h <<_ACEOF
21224 #define HAVE_KRB_H 1
21225 _ACEOF
21226
21227 fi
21228
21229 done
21230
21231
21232             LIBS="-lkrb -lcom_err -ldes $LIBS"
21233
21234                   for ac_func in krb_get_our_ip_for_realm
21235 do :
21236   ac_fn_c_check_func "$LINENO" "krb_get_our_ip_for_realm" "ac_cv_func_krb_get_our_ip_for_realm"
21237 if test "x$ac_cv_func_krb_get_our_ip_for_realm" = xyes; then :
21238   cat >>confdefs.h <<_ACEOF
21239 #define HAVE_KRB_GET_OUR_IP_FOR_REALM 1
21240 _ACEOF
21241
21242 fi
21243 done
21244
21245
21246
21247 $as_echo "#define HAVE_KRB4 1" >>confdefs.h
21248
21249
21250             KRB4_ENABLED=1
21251
21252
21253       curl_krb4_msg="enabled"
21254
21255             for ac_func in strlcpy
21256 do :
21257   ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
21258 if test "x$ac_cv_func_strlcpy" = xyes; then :
21259   cat >>confdefs.h <<_ACEOF
21260 #define HAVE_STRLCPY 1
21261 _ACEOF
21262
21263 fi
21264 done
21265
21266
21267
21268 fi
21269
21270
21271 fi
21272
21273 else
21274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21275 $as_echo "no" >&6; }
21276 fi
21277
21278
21279
21280 # Check whether --with-spnego was given.
21281 if test "${with_spnego+set}" = set; then :
21282   withval=$with_spnego;
21283   SPNEGO_ROOT="$withval"
21284   if test x"$SPNEGO_ROOT" != xno; then
21285     want_spnego="yes"
21286   fi
21287
21288 fi
21289
21290
21291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SPNEGO support is requested" >&5
21292 $as_echo_n "checking if SPNEGO support is requested... " >&6; }
21293 if test x"$want_spnego" = xyes; then
21294
21295   if test X"$SPNEGO_ROOT" = Xyes; then
21296      as_fn_error $? "FBOpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
21297      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21298 $as_echo "no" >&6; }
21299   else
21300      if test -z "$SPNEGO_LIB_DIR"; then
21301         LDFLAGS="$LDFLAGS -L$SPNEGO_ROOT -lfbopenssl"
21302      else
21303         LDFLAGS="$LDFLAGS $SPNEGO_LIB_DIR"
21304      fi
21305
21306      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21307 $as_echo "yes" >&6; }
21308
21309 $as_echo "#define HAVE_SPNEGO 1" >>confdefs.h
21310
21311      curl_spnego_msg="enabled"
21312   fi
21313 else
21314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21315 $as_echo "no" >&6; }
21316 fi
21317
21318
21319
21320 GSSAPI_ROOT="/usr"
21321
21322 # Check whether --with-gssapi-includes was given.
21323 if test "${with_gssapi_includes+set}" = set; then :
21324   withval=$with_gssapi_includes;  GSSAPI_INCS="-I$withval"
21325     want_gss="yes"
21326
21327 fi
21328
21329
21330
21331 # Check whether --with-gssapi-libs was given.
21332 if test "${with_gssapi_libs+set}" = set; then :
21333   withval=$with_gssapi_libs;  GSSAPI_LIB_DIR="-L$withval"
21334     want_gss="yes"
21335
21336 fi
21337
21338
21339
21340 # Check whether --with-gssapi was given.
21341 if test "${with_gssapi+set}" = set; then :
21342   withval=$with_gssapi;
21343   GSSAPI_ROOT="$withval"
21344   if test x"$GSSAPI_ROOT" != xno; then
21345     want_gss="yes"
21346     if test x"$GSSAPI_ROOT" = xyes; then
21347             GSSAPI_ROOT="/usr"
21348     fi
21349   fi
21350
21351 fi
21352
21353
21354 save_CPPFLAGS="$CPPFLAGS"
21355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSSAPI support is requested" >&5
21356 $as_echo_n "checking if GSSAPI support is requested... " >&6; }
21357 if test x"$want_gss" = xyes; then
21358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21359 $as_echo "yes" >&6; }
21360
21361   if test -z "$GSSAPI_INCS"; then
21362      if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
21363         GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi`
21364      elif test "$GSSAPI_ROOT" != "yes"; then
21365         GSSAPI_INCS="-I$GSSAPI_ROOT/include"
21366      fi
21367   fi
21368
21369   CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
21370
21371   ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
21372 if test "x$ac_cv_header_gss_h" = xyes; then :
21373
21374
21375 $as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
21376
21377       gnu_gss=yes
21378
21379 else
21380
21381             for ac_header in gssapi/gssapi.h
21382 do :
21383   ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
21384 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
21385   cat >>confdefs.h <<_ACEOF
21386 #define HAVE_GSSAPI_GSSAPI_H 1
21387 _ACEOF
21388
21389 else
21390   not_mit=1
21391 fi
21392
21393 done
21394
21395       for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
21396 do :
21397   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21398 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
21399 $ac_includes_default
21400 #ifdef HAVE_GSSAPI_GSSAPI_H
21401 #include <gssapi/gssapi.h>
21402 #endif
21403
21404 "
21405 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21406   cat >>confdefs.h <<_ACEOF
21407 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21408 _ACEOF
21409
21410 else
21411   not_mit=1
21412 fi
21413
21414 done
21415
21416       if test "x$not_mit" = "x1"; then
21417                 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
21418 if test "x$ac_cv_header_gssapi_h" = xyes; then :
21419
21420
21421 $as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
21422
21423
21424 else
21425
21426                             want_gss=no
21427               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSSAPI since no header files was found" >&5
21428 $as_echo "$as_me: WARNING: disabling GSSAPI since no header files was found" >&2;}
21429
21430
21431 fi
21432
21433
21434       else
21435
21436 $as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
21437
21438                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
21439 $as_echo_n "checking if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
21440         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21441 /* end confdefs.h.  */
21442
21443
21444 #include <gssapi/gssapi.h>
21445 #include <gssapi/gssapi_generic.h>
21446 #include <gssapi/gssapi_krb5.h>
21447
21448 int main (void)
21449 {
21450
21451             gss_import_name(
21452                             (OM_uint32 *)0,
21453                             (gss_buffer_t)0,
21454                             GSS_C_NT_HOSTBASED_SERVICE,
21455                             (gss_name_t *)0);
21456
21457  ;
21458  return 0;
21459 }
21460
21461 _ACEOF
21462 if ac_fn_c_try_compile "$LINENO"; then :
21463
21464           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21465 $as_echo "yes" >&6; }
21466
21467 else
21468
21469           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21470 $as_echo "no" >&6; }
21471
21472 $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
21473
21474
21475 fi
21476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21477       fi
21478
21479
21480 fi
21481
21482
21483 else
21484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21485 $as_echo "no" >&6; }
21486 fi
21487 if test x"$want_gss" = xyes; then
21488
21489 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
21490
21491
21492   curl_gss_msg="enabled (MIT/Heimdal)"
21493
21494   if test -n "$gnu_gss"; then
21495     curl_gss_msg="enabled (GNU GSS)"
21496     LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
21497     LIBS="-lgss $LIBS"
21498   elif test -z "$GSSAPI_LIB_DIR"; then
21499      case $host in
21500      *-*-darwin*)
21501         LIBS="-lgssapi_krb5 -lresolv $LIBS"
21502         ;;
21503      *)
21504         if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
21505                                  gss_libs=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
21506            LIBS="$gss_libs $LIBS"
21507         elif test "$GSSAPI_ROOT" != "yes"; then
21508            LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
21509            LIBS="-lgssapi $LIBS"
21510         else
21511            LIBS="-lgssapi $LIBS"
21512         fi
21513         ;;
21514      esac
21515   else
21516      LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
21517      LIBS="-lgssapi $LIBS"
21518   fi
21519 else
21520   CPPFLAGS="$save_CPPFLAGS"
21521 fi
21522
21523
21524 OPT_WINSSL=no
21525
21526 # Check whether --with-winssl was given.
21527 if test "${with_winssl+set}" = set; then :
21528   withval=$with_winssl; OPT_WINSSL=$withval
21529 fi
21530
21531
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
21533 $as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
21534 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
21535   if test "x$OPT_WINSSL" != "xno"  &&
21536      test "x$ac_cv_native_windows" = "xyes"; then
21537     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21538 $as_echo "yes" >&6; }
21539
21540 $as_echo "#define USE_SCHANNEL 1" >>confdefs.h
21541
21542     USE_SCHANNEL=1
21543
21544     curl_ssl_msg="enabled (Windows-native)"
21545     WINSSL_ENABLED=1
21546     # --with-winssl implies --enable-sspi
21547
21548 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
21549
21550     USE_WINDOWS_SSPI=1
21551
21552     curl_sspi_msg="enabled"
21553   else
21554     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21555 $as_echo "no" >&6; }
21556   fi
21557 else
21558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21559 $as_echo "no" >&6; }
21560 fi
21561
21562 OPT_DARWINSSL=no
21563
21564 # Check whether --with-darwinssl was given.
21565 if test "${with_darwinssl+set}" = set; then :
21566   withval=$with_darwinssl; OPT_DARWINSSL=$withval
21567 fi
21568
21569
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable iOS/Mac OS X native SSL/TLS" >&5
21571 $as_echo_n "checking whether to enable iOS/Mac OS X native SSL/TLS... " >&6; }
21572 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
21573   if test "x$OPT_DARWINSSL" != "xno" &&
21574      test -d "/System/Library/Frameworks/Security.framework"; then
21575     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21576 $as_echo "yes" >&6; }
21577
21578 $as_echo "#define USE_DARWINSSL 1" >>confdefs.h
21579
21580     USE_DARWINSSL=1
21581
21582     curl_ssl_msg="enabled (iOS/Mac OS X-native)"
21583     DARWINSSL_ENABLED=1
21584     LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
21585   else
21586     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21587 $as_echo "no" >&6; }
21588   fi
21589 else
21590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21591 $as_echo "no" >&6; }
21592 fi
21593
21594
21595 OPT_SSL=off
21596 ca="no"
21597
21598 # Check whether --with-ssl was given.
21599 if test "${with_ssl+set}" = set; then :
21600   withval=$with_ssl; OPT_SSL=$withval
21601 fi
21602
21603
21604 if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then
21605     CLEANLDFLAGS="$LDFLAGS"
21606   CLEANCPPFLAGS="$CPPFLAGS"
21607   CLEANLIBS="$LIBS"
21608
21609   case "$OPT_SSL" in
21610   yes)
21611         if test x$cross_compiling != xyes; then
21612             PKGTEST="yes"
21613     fi
21614     PREFIX_OPENSSL=/usr/local/ssl
21615     LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
21616     ;;
21617   off)
21618         if test x$cross_compiling != xyes; then
21619             PKGTEST="yes"
21620     fi
21621     PREFIX_OPENSSL=
21622     ;;
21623   *)
21624         PKGTEST="no"
21625     PREFIX_OPENSSL=$OPT_SSL
21626
21627                 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
21628     { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
21629 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
21630     if test -f "$OPENSSL_PCDIR/openssl.pc"; then
21631       PKGTEST="yes"
21632     fi
21633
21634             LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
21635     if test "$PREFIX_OPENSSL" != "/usr" ; then
21636       SSL_LDFLAGS="-L$LIB_OPENSSL"
21637       SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
21638     fi
21639     SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
21640     ;;
21641   esac
21642
21643   if test "$PKGTEST" = "yes"; then
21644
21645
21646
21647     PKGCONFIG="no"
21648
21649     if test -n "$ac_tool_prefix"; then
21650   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21651 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21653 $as_echo_n "checking for $ac_word... " >&6; }
21654 if ${ac_cv_path_PKGCONFIG+:} false; then :
21655   $as_echo_n "(cached) " >&6
21656 else
21657   case $PKGCONFIG in
21658   [\\/]* | ?:[\\/]*)
21659   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21660   ;;
21661   *)
21662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21663 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21664 for as_dir in $as_dummy
21665 do
21666   IFS=$as_save_IFS
21667   test -z "$as_dir" && as_dir=.
21668     for ac_exec_ext in '' $ac_executable_extensions; do
21669   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21670     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21672     break 2
21673   fi
21674 done
21675   done
21676 IFS=$as_save_IFS
21677
21678   ;;
21679 esac
21680 fi
21681 PKGCONFIG=$ac_cv_path_PKGCONFIG
21682 if test -n "$PKGCONFIG"; then
21683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21684 $as_echo "$PKGCONFIG" >&6; }
21685 else
21686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21687 $as_echo "no" >&6; }
21688 fi
21689
21690
21691 fi
21692 if test -z "$ac_cv_path_PKGCONFIG"; then
21693   ac_pt_PKGCONFIG=$PKGCONFIG
21694   # Extract the first word of "pkg-config", so it can be a program name with args.
21695 set dummy pkg-config; ac_word=$2
21696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21697 $as_echo_n "checking for $ac_word... " >&6; }
21698 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
21699   $as_echo_n "(cached) " >&6
21700 else
21701   case $ac_pt_PKGCONFIG in
21702   [\\/]* | ?:[\\/]*)
21703   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
21704   ;;
21705   *)
21706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21707 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21708 for as_dir in $as_dummy
21709 do
21710   IFS=$as_save_IFS
21711   test -z "$as_dir" && as_dir=.
21712     for ac_exec_ext in '' $ac_executable_extensions; do
21713   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21714     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21716     break 2
21717   fi
21718 done
21719   done
21720 IFS=$as_save_IFS
21721
21722   ;;
21723 esac
21724 fi
21725 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21726 if test -n "$ac_pt_PKGCONFIG"; then
21727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21728 $as_echo "$ac_pt_PKGCONFIG" >&6; }
21729 else
21730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21731 $as_echo "no" >&6; }
21732 fi
21733
21734   if test "x$ac_pt_PKGCONFIG" = x; then
21735     PKGCONFIG="no"
21736   else
21737     case $cross_compiling:$ac_tool_warned in
21738 yes:)
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21741 ac_tool_warned=yes ;;
21742 esac
21743     PKGCONFIG=$ac_pt_PKGCONFIG
21744   fi
21745 else
21746   PKGCONFIG="$ac_cv_path_PKGCONFIG"
21747 fi
21748
21749
21750     if test x$PKGCONFIG != xno; then
21751       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
21752 $as_echo_n "checking for openssl options with pkg-config... " >&6; }
21753             itexists=`
21754     if test -n "$OPENSSL_PCDIR"; then
21755       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
21756       export PKG_CONFIG_LIBDIR
21757     fi
21758          $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
21759
21760       if test -z "$itexists"; then
21761                         PKGCONFIG="no"
21762         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21763 $as_echo "no" >&6; }
21764       else
21765         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
21766 $as_echo "found" >&6; }
21767       fi
21768     fi
21769
21770
21771     if test "$PKGCONFIG" != "no" ; then
21772       SSL_LIBS=`
21773     if test -n "$OPENSSL_PCDIR"; then
21774       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
21775       export PKG_CONFIG_LIBDIR
21776     fi
21777          $PKGCONFIG --libs-only-l openssl 2>/dev/null`
21778
21779       SSL_LDFLAGS=`
21780     if test -n "$OPENSSL_PCDIR"; then
21781       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
21782       export PKG_CONFIG_LIBDIR
21783     fi
21784          $PKGCONFIG --libs-only-L openssl 2>/dev/null`
21785
21786       SSL_CPPFLAGS=`
21787     if test -n "$OPENSSL_PCDIR"; then
21788       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
21789       export PKG_CONFIG_LIBDIR
21790     fi
21791          $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
21792
21793       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
21794 $as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
21795       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
21796 $as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
21797       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
21798 $as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
21799
21800       LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
21801
21802                                           LIBS="$SSL_LIBS $LIBS"
21803     fi
21804   fi
21805
21806     CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
21807   LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
21808
21809     case $host in
21810     *-*-msys* | *-*-mingw*)
21811       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
21812 $as_echo_n "checking for gdi32... " >&6; }
21813       my_ac_save_LIBS=$LIBS
21814       LIBS="-lgdi32 $LIBS"
21815       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21816 /* end confdefs.h.  */
21817 #include <windef.h>
21818                    #include <wingdi.h>
21819 int main (void)
21820 {
21821 GdiFlush();
21822  ;
21823  return 0;
21824 }
21825 _ACEOF
21826 if ac_fn_c_try_link "$LINENO"; then :
21827                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21828 $as_echo "yes" >&6; }
21829 else
21830                       LIBS=$my_ac_save_LIBS
21831                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21832 $as_echo "no" >&6; }
21833
21834 fi
21835 rm -f core conftest.err conftest.$ac_objext \
21836     conftest$ac_exeext conftest.$ac_ext
21837       ;;
21838   esac
21839
21840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_lock in -lcrypto" >&5
21841 $as_echo_n "checking for CRYPTO_lock in -lcrypto... " >&6; }
21842 if ${ac_cv_lib_crypto_CRYPTO_lock+:} false; then :
21843   $as_echo_n "(cached) " >&6
21844 else
21845   ac_check_lib_save_LIBS=$LIBS
21846 LIBS="-lcrypto  $LIBS"
21847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21848 /* end confdefs.h.  */
21849
21850
21851 #ifdef __cplusplus
21852 extern "C"
21853 #endif
21854 char CRYPTO_lock ();
21855 int main (void)
21856 {
21857 return CRYPTO_lock ();
21858  ;
21859  return 0;
21860 }
21861 _ACEOF
21862 if ac_fn_c_try_link "$LINENO"; then :
21863   ac_cv_lib_crypto_CRYPTO_lock=yes
21864 else
21865   ac_cv_lib_crypto_CRYPTO_lock=no
21866 fi
21867 rm -f core conftest.err conftest.$ac_objext \
21868     conftest$ac_exeext conftest.$ac_ext
21869 LIBS=$ac_check_lib_save_LIBS
21870 fi
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5
21872 $as_echo "$ac_cv_lib_crypto_CRYPTO_lock" >&6; }
21873 if test "x$ac_cv_lib_crypto_CRYPTO_lock" = xyes; then :
21874
21875      HAVECRYPTO="yes"
21876      LIBS="-lcrypto $LIBS"
21877
21878 else
21879
21880      LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
21881      CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
21882      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_add_lock in -lcrypto" >&5
21883 $as_echo_n "checking for CRYPTO_add_lock in -lcrypto... " >&6; }
21884 if ${ac_cv_lib_crypto_CRYPTO_add_lock+:} false; then :
21885   $as_echo_n "(cached) " >&6
21886 else
21887   ac_check_lib_save_LIBS=$LIBS
21888 LIBS="-lcrypto  $LIBS"
21889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21890 /* end confdefs.h.  */
21891
21892
21893 #ifdef __cplusplus
21894 extern "C"
21895 #endif
21896 char CRYPTO_add_lock ();
21897 int main (void)
21898 {
21899 return CRYPTO_add_lock ();
21900  ;
21901  return 0;
21902 }
21903 _ACEOF
21904 if ac_fn_c_try_link "$LINENO"; then :
21905   ac_cv_lib_crypto_CRYPTO_add_lock=yes
21906 else
21907   ac_cv_lib_crypto_CRYPTO_add_lock=no
21908 fi
21909 rm -f core conftest.err conftest.$ac_objext \
21910     conftest$ac_exeext conftest.$ac_ext
21911 LIBS=$ac_check_lib_save_LIBS
21912 fi
21913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_add_lock" >&5
21914 $as_echo "$ac_cv_lib_crypto_CRYPTO_add_lock" >&6; }
21915 if test "x$ac_cv_lib_crypto_CRYPTO_add_lock" = xyes; then :
21916
21917        HAVECRYPTO="yes"
21918        LIBS="-lcrypto $LIBS"
21919 else
21920
21921        LDFLAGS="$CLEANLDFLAGS"
21922        CPPFLAGS="$CLEANCPPFLAGS"
21923        LIBS="$CLEANLIBS"
21924
21925 fi
21926
21927
21928 fi
21929
21930
21931
21932   if test X"$HAVECRYPTO" = X"yes"; then
21933
21934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
21935 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
21936 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
21937   $as_echo_n "(cached) " >&6
21938 else
21939   ac_check_lib_save_LIBS=$LIBS
21940 LIBS="-lssl  $LIBS"
21941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21942 /* end confdefs.h.  */
21943
21944
21945 #ifdef __cplusplus
21946 extern "C"
21947 #endif
21948 char SSL_connect ();
21949 int main (void)
21950 {
21951 return SSL_connect ();
21952  ;
21953  return 0;
21954 }
21955 _ACEOF
21956 if ac_fn_c_try_link "$LINENO"; then :
21957   ac_cv_lib_ssl_SSL_connect=yes
21958 else
21959   ac_cv_lib_ssl_SSL_connect=no
21960 fi
21961 rm -f core conftest.err conftest.$ac_objext \
21962     conftest$ac_exeext conftest.$ac_ext
21963 LIBS=$ac_check_lib_save_LIBS
21964 fi
21965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
21966 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
21967 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
21968   cat >>confdefs.h <<_ACEOF
21969 #define HAVE_LIBSSL 1
21970 _ACEOF
21971
21972   LIBS="-lssl $LIBS"
21973
21974 fi
21975
21976
21977     if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
21978                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
21979 $as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
21980         OLIBS=$LIBS
21981         LIBS="-lRSAglue -lrsaref $LIBS"
21982         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
21983 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
21984 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
21985   $as_echo_n "(cached) " >&6
21986 else
21987   ac_check_lib_save_LIBS=$LIBS
21988 LIBS="-lssl  $LIBS"
21989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21990 /* end confdefs.h.  */
21991
21992
21993 #ifdef __cplusplus
21994 extern "C"
21995 #endif
21996 char SSL_connect ();
21997 int main (void)
21998 {
21999 return SSL_connect ();
22000  ;
22001  return 0;
22002 }
22003 _ACEOF
22004 if ac_fn_c_try_link "$LINENO"; then :
22005   ac_cv_lib_ssl_SSL_connect=yes
22006 else
22007   ac_cv_lib_ssl_SSL_connect=no
22008 fi
22009 rm -f core conftest.err conftest.$ac_objext \
22010     conftest$ac_exeext conftest.$ac_ext
22011 LIBS=$ac_check_lib_save_LIBS
22012 fi
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22014 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22015 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22016   cat >>confdefs.h <<_ACEOF
22017 #define HAVE_LIBSSL 1
22018 _ACEOF
22019
22020   LIBS="-lssl $LIBS"
22021
22022 fi
22023
22024         if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22025                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22026 $as_echo "no" >&6; }
22027             LIBS=$OLIBS
22028         else
22029             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22030 $as_echo "yes" >&6; }
22031         fi
22032
22033     else
22034
22035             for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
22036                        openssl/pem.h openssl/ssl.h openssl/err.h
22037 do :
22038   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22039 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22040 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22041   cat >>confdefs.h <<_ACEOF
22042 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22043 _ACEOF
22044  curl_ssl_msg="enabled (OpenSSL)"
22045         OPENSSL_ENABLED=1
22046
22047 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
22048
22049 fi
22050
22051 done
22052
22053
22054       if test $ac_cv_header_openssl_x509_h = no; then
22055                                 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
22056 do :
22057   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22058 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22059 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22060   cat >>confdefs.h <<_ACEOF
22061 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22062 _ACEOF
22063
22064 fi
22065
22066 done
22067
22068
22069         if test $ac_cv_header_x509_h = yes &&
22070            test $ac_cv_header_crypto_h = yes &&
22071            test $ac_cv_header_ssl_h = yes; then
22072                     curl_ssl_msg="enabled (OpenSSL)"
22073           OPENSSL_ENABLED=1
22074         fi
22075       fi
22076     fi
22077
22078     if test X"$OPENSSL_ENABLED" = X"1"; then
22079
22080 $as_echo "#define USE_SSLEAY 1" >>confdefs.h
22081
22082
22083               for ac_header in openssl/pkcs12.h
22084 do :
22085   ac_fn_c_check_header_mongrel "$LINENO" "openssl/pkcs12.h" "ac_cv_header_openssl_pkcs12_h" "$ac_includes_default"
22086 if test "x$ac_cv_header_openssl_pkcs12_h" = xyes; then :
22087   cat >>confdefs.h <<_ACEOF
22088 #define HAVE_OPENSSL_PKCS12_H 1
22089 _ACEOF
22090
22091 fi
22092
22093 done
22094
22095     else
22096        LIBS="$CLEANLIBS"
22097     fi
22098             USE_SSLEAY="$OPENSSL_ENABLED"
22099
22100
22101     if test X"$OPT_SSL" != Xoff &&
22102        test "$OPENSSL_ENABLED" != "1"; then
22103       as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
22104     fi
22105   fi
22106
22107   if test X"$OPENSSL_ENABLED" = X"1"; then
22108             ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init"
22109 if test "x$ac_cv_func_ENGINE_init" = xyes; then :
22110
22111                 for ac_header in openssl/engine.h
22112 do :
22113   ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
22114 if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
22115   cat >>confdefs.h <<_ACEOF
22116 #define HAVE_OPENSSL_ENGINE_H 1
22117 _ACEOF
22118
22119 fi
22120
22121 done
22122
22123                 for ac_func in ENGINE_load_builtin_engines
22124 do :
22125   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22126 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22127 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22128   cat >>confdefs.h <<_ACEOF
22129 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22130 _ACEOF
22131
22132 fi
22133 done
22134
22135
22136 fi
22137
22138
22139
22140     for ac_func in RAND_status \
22141                     RAND_screen \
22142                     RAND_egd \
22143                     ENGINE_cleanup \
22144                     CRYPTO_cleanup_all_ex_data \
22145                     SSL_get_shutdown \
22146                     SSLv2_client_method
22147 do :
22148   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22149 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22150 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22151   cat >>confdefs.h <<_ACEOF
22152 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22153 _ACEOF
22154
22155 fi
22156 done
22157
22158
22159
22160     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yaSSL using OpenSSL compatibility mode" >&5
22161 $as_echo_n "checking for yaSSL using OpenSSL compatibility mode... " >&6; }
22162     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22163 /* end confdefs.h.  */
22164
22165
22166 #include <openssl/ssl.h>
22167
22168 int main (void)
22169 {
22170
22171 #if defined(YASSL_VERSION) && defined(OPENSSL_VERSION_NUMBER)
22172         int dummy = SSL_ERROR_NONE;
22173 #else
22174         Not the yaSSL OpenSSL compatibility header.
22175 #endif
22176
22177  ;
22178  return 0;
22179 }
22180
22181 _ACEOF
22182 if ac_fn_c_try_compile "$LINENO"; then :
22183
22184       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22185 $as_echo "yes" >&6; }
22186
22187 cat >>confdefs.h <<_ACEOF
22188 #define USE_YASSLEMUL 1
22189 _ACEOF
22190
22191       curl_ssl_msg="enabled (OpenSSL emulation by yaSSL)"
22192
22193 else
22194
22195       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22196 $as_echo "no" >&6; }
22197
22198 fi
22199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22200   fi
22201
22202   if test "$OPENSSL_ENABLED" = "1"; then
22203     if test -n "$LIB_OPENSSL"; then
22204                             if test "x$cross_compiling" != "xyes"; then
22205          LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
22206          export LD_LIBRARY_PATH
22207          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5
22208 $as_echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;}
22209        fi
22210     fi
22211
22212   #
22213
22214   #
22215   tst_api="unknown"
22216   #
22217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
22218 $as_echo_n "checking for OpenSSL headers version... " >&6; }
22219
22220       if test -z "$SED"; then
22221     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
22222   fi
22223   if test -z "$GREP"; then
22224     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
22225   fi
22226
22227   tmp_exp=""
22228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22229 /* end confdefs.h.  */
22230
22231
22232 #   ifdef USE_OPENSSL
22233 #     include <openssl/crypto.h>
22234 #   else
22235 #     include <crypto.h>
22236 #   endif
22237
22238 #ifdef OPENSSL_VERSION_NUMBER
22239 CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
22240 #endif
22241
22242
22243 _ACEOF
22244 if ac_fn_c_try_cpp "$LINENO"; then :
22245
22246     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
22247       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
22248       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
22249       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
22250     if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
22251       tmp_exp=""
22252     fi
22253
22254 fi
22255 rm -f conftest.err conftest.i conftest.$ac_ext
22256   if test -z "$tmp_exp"; then
22257     curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
22258
22259   else
22260     curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
22261     curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
22262
22263   fi
22264
22265   if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
22266     tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
22267     case "x$tst_verlen" in
22268       x6)
22269         tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22270         tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
22271         tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22272         tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22273         ;;
22274       x11|x10)
22275         tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22276         tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22277         tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
22278         tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22279         ;;
22280       *)
22281         tst_api="unknown"
22282         ;;
22283     esac
22284     case $tst_api in
22285       0x110) tst_show="1.1.0" ;;
22286       0x101) tst_show="1.0.1" ;;
22287       0x100) tst_show="1.0.0" ;;
22288       0x099) tst_show="0.9.9" ;;
22289       0x098) tst_show="0.9.8" ;;
22290       0x097) tst_show="0.9.7" ;;
22291       0x096) tst_show="0.9.6" ;;
22292       0x095) tst_show="0.9.5" ;;
22293       0x094) tst_show="0.9.4" ;;
22294       0x093) tst_show="0.9.3" ;;
22295       0x092) tst_show="0.9.2" ;;
22296       0x091) tst_show="0.9.1" ;;
22297       *)     tst_show="unknown" ;;
22298     esac
22299     tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
22300   else
22301     tst_show="unknown"
22302   fi
22303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
22304 $as_echo "$tst_show" >&6; }
22305   #
22306   curl_openssl_api_headers=$tst_api
22307
22308
22309   #
22310   tst_api="unknown"
22311   #
22312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
22313 $as_echo_n "checking for OpenSSL library version... " >&6; }
22314   if test "$tst_api" = "unknown"; then
22315     case $host in
22316       *-*-vms*)
22317         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22318 /* end confdefs.h.  */
22319
22320
22321 #define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
22322 #ifdef __STDC__
22323 # include <limits.h>
22324 #else
22325 # include <assert.h>
22326 #endif
22327 #undef SSL_CTX_set_not_resumbl_sess_cb
22328 #ifdef __cplusplus
22329 extern "C"
22330 #endif
22331 char SSL_CTX_set_not_resumbl_sess_cb ();
22332 #if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
22333 choke me
22334 #endif
22335
22336 int main (void)
22337 {
22338 return SSL_CTX_set_not_resumbl_sess_cb ();
22339  ;
22340  return 0;
22341 }
22342
22343 _ACEOF
22344 if ac_fn_c_try_link "$LINENO"; then :
22345
22346           tst_api="0x110"
22347
22348 fi
22349 rm -f core conftest.err conftest.$ac_objext \
22350     conftest$ac_exeext conftest.$ac_ext
22351         ;;
22352       *)
22353         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22354 /* end confdefs.h.  */
22355
22356
22357 #define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
22358 #ifdef __STDC__
22359 # include <limits.h>
22360 #else
22361 # include <assert.h>
22362 #endif
22363 #undef SSL_CTX_set_not_resumable_session_callback
22364 #ifdef __cplusplus
22365 extern "C"
22366 #endif
22367 char SSL_CTX_set_not_resumable_session_callback ();
22368 #if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
22369 choke me
22370 #endif
22371
22372 int main (void)
22373 {
22374 return SSL_CTX_set_not_resumable_session_callback ();
22375  ;
22376  return 0;
22377 }
22378
22379 _ACEOF
22380 if ac_fn_c_try_link "$LINENO"; then :
22381
22382           tst_api="0x110"
22383
22384 fi
22385 rm -f core conftest.err conftest.$ac_objext \
22386     conftest$ac_exeext conftest.$ac_ext
22387         ;;
22388     esac
22389   fi
22390   if test "$tst_api" = "unknown"; then
22391     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22392 /* end confdefs.h.  */
22393
22394
22395 #define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
22396 #ifdef __STDC__
22397 # include <limits.h>
22398 #else
22399 # include <assert.h>
22400 #endif
22401 #undef SSL_renegotiate_abbreviated
22402 #ifdef __cplusplus
22403 extern "C"
22404 #endif
22405 char SSL_renegotiate_abbreviated ();
22406 #if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
22407 choke me
22408 #endif
22409
22410 int main (void)
22411 {
22412 return SSL_renegotiate_abbreviated ();
22413  ;
22414  return 0;
22415 }
22416
22417 _ACEOF
22418 if ac_fn_c_try_link "$LINENO"; then :
22419
22420       tst_api="0x101"
22421
22422 fi
22423 rm -f core conftest.err conftest.$ac_objext \
22424     conftest$ac_exeext conftest.$ac_ext
22425   fi
22426   if test "$tst_api" = "unknown"; then
22427     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22428 /* end confdefs.h.  */
22429
22430
22431 #define OBJ_add_sigid innocuous_OBJ_add_sigid
22432 #ifdef __STDC__
22433 # include <limits.h>
22434 #else
22435 # include <assert.h>
22436 #endif
22437 #undef OBJ_add_sigid
22438 #ifdef __cplusplus
22439 extern "C"
22440 #endif
22441 char OBJ_add_sigid ();
22442 #if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
22443 choke me
22444 #endif
22445
22446 int main (void)
22447 {
22448 return OBJ_add_sigid ();
22449  ;
22450  return 0;
22451 }
22452
22453 _ACEOF
22454 if ac_fn_c_try_link "$LINENO"; then :
22455
22456       tst_api="0x100"
22457
22458 fi
22459 rm -f core conftest.err conftest.$ac_objext \
22460     conftest$ac_exeext conftest.$ac_ext
22461   fi
22462   if test "$tst_api" = "unknown"; then
22463     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22464 /* end confdefs.h.  */
22465
22466
22467 #define ERR_set_mark innocuous_ERR_set_mark
22468 #ifdef __STDC__
22469 # include <limits.h>
22470 #else
22471 # include <assert.h>
22472 #endif
22473 #undef ERR_set_mark
22474 #ifdef __cplusplus
22475 extern "C"
22476 #endif
22477 char ERR_set_mark ();
22478 #if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
22479 choke me
22480 #endif
22481
22482 int main (void)
22483 {
22484 return ERR_set_mark ();
22485  ;
22486  return 0;
22487 }
22488
22489 _ACEOF
22490 if ac_fn_c_try_link "$LINENO"; then :
22491
22492       tst_api="0x098"
22493
22494 fi
22495 rm -f core conftest.err conftest.$ac_objext \
22496     conftest$ac_exeext conftest.$ac_ext
22497   fi
22498   if test "$tst_api" = "unknown"; then
22499     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22500 /* end confdefs.h.  */
22501
22502
22503 #define ERR_peek_last_error innocuous_ERR_peek_last_error
22504 #ifdef __STDC__
22505 # include <limits.h>
22506 #else
22507 # include <assert.h>
22508 #endif
22509 #undef ERR_peek_last_error
22510 #ifdef __cplusplus
22511 extern "C"
22512 #endif
22513 char ERR_peek_last_error ();
22514 #if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
22515 choke me
22516 #endif
22517
22518 int main (void)
22519 {
22520 return ERR_peek_last_error ();
22521  ;
22522  return 0;
22523 }
22524
22525 _ACEOF
22526 if ac_fn_c_try_link "$LINENO"; then :
22527
22528       tst_api="0x097"
22529
22530 fi
22531 rm -f core conftest.err conftest.$ac_objext \
22532     conftest$ac_exeext conftest.$ac_ext
22533   fi
22534   if test "$tst_api" = "unknown"; then
22535     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22536 /* end confdefs.h.  */
22537
22538
22539 #define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
22540 #ifdef __STDC__
22541 # include <limits.h>
22542 #else
22543 # include <assert.h>
22544 #endif
22545 #undef c2i_ASN1_OBJECT
22546 #ifdef __cplusplus
22547 extern "C"
22548 #endif
22549 char c2i_ASN1_OBJECT ();
22550 #if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
22551 choke me
22552 #endif
22553
22554 int main (void)
22555 {
22556 return c2i_ASN1_OBJECT ();
22557  ;
22558  return 0;
22559 }
22560
22561 _ACEOF
22562 if ac_fn_c_try_link "$LINENO"; then :
22563
22564       tst_api="0x096"
22565
22566 fi
22567 rm -f core conftest.err conftest.$ac_objext \
22568     conftest$ac_exeext conftest.$ac_ext
22569   fi
22570   if test "$tst_api" = "unknown"; then
22571     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22572 /* end confdefs.h.  */
22573
22574
22575 #define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
22576 #ifdef __STDC__
22577 # include <limits.h>
22578 #else
22579 # include <assert.h>
22580 #endif
22581 #undef SSL_CTX_set_purpose
22582 #ifdef __cplusplus
22583 extern "C"
22584 #endif
22585 char SSL_CTX_set_purpose ();
22586 #if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
22587 choke me
22588 #endif
22589
22590 int main (void)
22591 {
22592 return SSL_CTX_set_purpose ();
22593  ;
22594  return 0;
22595 }
22596
22597 _ACEOF
22598 if ac_fn_c_try_link "$LINENO"; then :
22599
22600       tst_api="0x095"
22601
22602 fi
22603 rm -f core conftest.err conftest.$ac_objext \
22604     conftest$ac_exeext conftest.$ac_ext
22605   fi
22606   if test "$tst_api" = "unknown"; then
22607     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22608 /* end confdefs.h.  */
22609
22610
22611 #define OBJ_obj2txt innocuous_OBJ_obj2txt
22612 #ifdef __STDC__
22613 # include <limits.h>
22614 #else
22615 # include <assert.h>
22616 #endif
22617 #undef OBJ_obj2txt
22618 #ifdef __cplusplus
22619 extern "C"
22620 #endif
22621 char OBJ_obj2txt ();
22622 #if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
22623 choke me
22624 #endif
22625
22626 int main (void)
22627 {
22628 return OBJ_obj2txt ();
22629  ;
22630  return 0;
22631 }
22632
22633 _ACEOF
22634 if ac_fn_c_try_link "$LINENO"; then :
22635
22636       tst_api="0x094"
22637
22638 fi
22639 rm -f core conftest.err conftest.$ac_objext \
22640     conftest$ac_exeext conftest.$ac_ext
22641   fi
22642   if test "$tst_api" = "unknown"; then
22643     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22644 /* end confdefs.h.  */
22645
22646
22647 #define SSL_get_verify_depth innocuous_SSL_get_verify_depth
22648 #ifdef __STDC__
22649 # include <limits.h>
22650 #else
22651 # include <assert.h>
22652 #endif
22653 #undef SSL_get_verify_depth
22654 #ifdef __cplusplus
22655 extern "C"
22656 #endif
22657 char SSL_get_verify_depth ();
22658 #if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
22659 choke me
22660 #endif
22661
22662 int main (void)
22663 {
22664 return SSL_get_verify_depth ();
22665  ;
22666  return 0;
22667 }
22668
22669 _ACEOF
22670 if ac_fn_c_try_link "$LINENO"; then :
22671
22672       tst_api="0x093"
22673
22674 fi
22675 rm -f core conftest.err conftest.$ac_objext \
22676     conftest$ac_exeext conftest.$ac_ext
22677   fi
22678   if test "$tst_api" = "unknown"; then
22679     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22680 /* end confdefs.h.  */
22681
22682
22683 #define SSL_library_init innocuous_SSL_library_init
22684 #ifdef __STDC__
22685 # include <limits.h>
22686 #else
22687 # include <assert.h>
22688 #endif
22689 #undef SSL_library_init
22690 #ifdef __cplusplus
22691 extern "C"
22692 #endif
22693 char SSL_library_init ();
22694 #if defined __stub_SSL_library_init || defined __stub___SSL_library_init
22695 choke me
22696 #endif
22697
22698 int main (void)
22699 {
22700 return SSL_library_init ();
22701  ;
22702  return 0;
22703 }
22704
22705 _ACEOF
22706 if ac_fn_c_try_link "$LINENO"; then :
22707
22708       tst_api="0x092"
22709
22710 fi
22711 rm -f core conftest.err conftest.$ac_objext \
22712     conftest$ac_exeext conftest.$ac_ext
22713   fi
22714   if test "$tst_api" = "unknown"; then
22715     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22716 /* end confdefs.h.  */
22717
22718
22719 #define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
22720 #ifdef __STDC__
22721 # include <limits.h>
22722 #else
22723 # include <assert.h>
22724 #endif
22725 #undef SSL_CTX_set_cipher_list
22726 #ifdef __cplusplus
22727 extern "C"
22728 #endif
22729 char SSL_CTX_set_cipher_list ();
22730 #if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
22731 choke me
22732 #endif
22733
22734 int main (void)
22735 {
22736 return SSL_CTX_set_cipher_list ();
22737  ;
22738  return 0;
22739 }
22740
22741 _ACEOF
22742 if ac_fn_c_try_link "$LINENO"; then :
22743
22744       tst_api="0x091"
22745
22746 fi
22747 rm -f core conftest.err conftest.$ac_objext \
22748     conftest$ac_exeext conftest.$ac_ext
22749   fi
22750   case $tst_api in
22751     0x110) tst_show="1.1.0" ;;
22752     0x101) tst_show="1.0.1" ;;
22753     0x100) tst_show="1.0.0" ;;
22754     0x099) tst_show="0.9.9" ;;
22755     0x098) tst_show="0.9.8" ;;
22756     0x097) tst_show="0.9.7" ;;
22757     0x096) tst_show="0.9.6" ;;
22758     0x095) tst_show="0.9.5" ;;
22759     0x094) tst_show="0.9.4" ;;
22760     0x093) tst_show="0.9.3" ;;
22761     0x092) tst_show="0.9.2" ;;
22762     0x091) tst_show="0.9.1" ;;
22763     *)     tst_show="unknown" ;;
22764   esac
22765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
22766 $as_echo "$tst_show" >&6; }
22767   #
22768   curl_openssl_api_library=$tst_api
22769
22770   #
22771   tst_match="yes"
22772   #
22773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
22774 $as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
22775   if test "$curl_openssl_api_headers" = "unknown" ||
22776     test "$curl_openssl_api_library" = "unknown"; then
22777     tst_match="fail"
22778     tst_warns="Can not compare OpenSSL headers and library versions."
22779   elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
22780     tst_match="no"
22781     tst_warns="OpenSSL headers and library versions do not match."
22782   fi
22783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
22784 $as_echo "$tst_match" >&6; }
22785   if test "$tst_match" != "yes"; then
22786     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
22787 $as_echo "$as_me: WARNING: $tst_warns" >&2;}
22788   fi
22789
22790   fi
22791
22792 fi
22793
22794
22795 if test X"$OPENSSL_ENABLED" = X"1"; then
22796
22797 # Check whether --with-egd-socket was given.
22798 if test "${with_egd_socket+set}" = set; then :
22799   withval=$with_egd_socket;  EGD_SOCKET="$withval"
22800
22801 fi
22802
22803   if test -n "$EGD_SOCKET" ; then
22804
22805 cat >>confdefs.h <<_ACEOF
22806 #define EGD_SOCKET "$EGD_SOCKET"
22807 _ACEOF
22808
22809   fi
22810
22811
22812 # Check whether --with-random was given.
22813 if test "${with_random+set}" = set; then :
22814   withval=$with_random;  RANDOM_FILE="$withval"
22815 else
22816
22817           if test x$cross_compiling != xyes; then
22818                         as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
22820 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
22821 if eval \${$as_ac_File+:} false; then :
22822   $as_echo_n "(cached) " >&6
22823 else
22824   test "$cross_compiling" = yes &&
22825   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
22826 if test -r ""/dev/urandom""; then
22827   eval "$as_ac_File=yes"
22828 else
22829   eval "$as_ac_File=no"
22830 fi
22831 fi
22832 eval ac_res=\$$as_ac_File
22833                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22834 $as_echo "$ac_res" >&6; }
22835 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
22836    RANDOM_FILE="/dev/urandom"
22837 fi
22838
22839           else
22840             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
22841 $as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
22842           fi
22843
22844
22845 fi
22846
22847   if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
22848
22849
22850 cat >>confdefs.h <<_ACEOF
22851 #define RANDOM_FILE "$RANDOM_FILE"
22852 _ACEOF
22853
22854   fi
22855 fi
22856
22857 if test "$OPENSSL_ENABLED" = "1"; then
22858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
22859 $as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
22860 if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
22861   $as_echo_n "(cached) " >&6
22862 else
22863   ac_check_lib_save_LIBS=$LIBS
22864 LIBS="-lcrypto  $LIBS"
22865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22866 /* end confdefs.h.  */
22867
22868
22869 #ifdef __cplusplus
22870 extern "C"
22871 #endif
22872 char SRP_Calc_client_key ();
22873 int main (void)
22874 {
22875 return SRP_Calc_client_key ();
22876  ;
22877  return 0;
22878 }
22879 _ACEOF
22880 if ac_fn_c_try_link "$LINENO"; then :
22881   ac_cv_lib_crypto_SRP_Calc_client_key=yes
22882 else
22883   ac_cv_lib_crypto_SRP_Calc_client_key=no
22884 fi
22885 rm -f core conftest.err conftest.$ac_objext \
22886     conftest$ac_exeext conftest.$ac_ext
22887 LIBS=$ac_check_lib_save_LIBS
22888 fi
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
22890 $as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
22891 if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
22892
22893
22894 $as_echo "#define HAVE_SSLEAY_SRP 1" >>confdefs.h
22895
22896      HAVE_SSLEAY_SRP=1
22897
22898
22899 fi
22900
22901 fi
22902
22903
22904 OPT_GNUTLS=no
22905
22906
22907 # Check whether --with-gnutls was given.
22908 if test "${with_gnutls+set}" = set; then :
22909   withval=$with_gnutls; OPT_GNUTLS=$withval
22910 fi
22911
22912
22913 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
22914
22915   if test X"$OPT_GNUTLS" != Xno; then
22916
22917     addld=""
22918     addlib=""
22919     gtlslib=""
22920     version=""
22921     addcflags=""
22922
22923     if test "x$OPT_GNUTLS" = "xyes"; then
22924
22925
22926     PKGCONFIG="no"
22927
22928     if test -n "$ac_tool_prefix"; then
22929   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22930 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22932 $as_echo_n "checking for $ac_word... " >&6; }
22933 if ${ac_cv_path_PKGCONFIG+:} false; then :
22934   $as_echo_n "(cached) " >&6
22935 else
22936   case $PKGCONFIG in
22937   [\\/]* | ?:[\\/]*)
22938   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22939   ;;
22940   *)
22941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22942 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22943 for as_dir in $as_dummy
22944 do
22945   IFS=$as_save_IFS
22946   test -z "$as_dir" && as_dir=.
22947     for ac_exec_ext in '' $ac_executable_extensions; do
22948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22949     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22951     break 2
22952   fi
22953 done
22954   done
22955 IFS=$as_save_IFS
22956
22957   ;;
22958 esac
22959 fi
22960 PKGCONFIG=$ac_cv_path_PKGCONFIG
22961 if test -n "$PKGCONFIG"; then
22962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22963 $as_echo "$PKGCONFIG" >&6; }
22964 else
22965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22966 $as_echo "no" >&6; }
22967 fi
22968
22969
22970 fi
22971 if test -z "$ac_cv_path_PKGCONFIG"; then
22972   ac_pt_PKGCONFIG=$PKGCONFIG
22973   # Extract the first word of "pkg-config", so it can be a program name with args.
22974 set dummy pkg-config; ac_word=$2
22975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22976 $as_echo_n "checking for $ac_word... " >&6; }
22977 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22978   $as_echo_n "(cached) " >&6
22979 else
22980   case $ac_pt_PKGCONFIG in
22981   [\\/]* | ?:[\\/]*)
22982   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22983   ;;
22984   *)
22985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22986 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22987 for as_dir in $as_dummy
22988 do
22989   IFS=$as_save_IFS
22990   test -z "$as_dir" && as_dir=.
22991     for ac_exec_ext in '' $ac_executable_extensions; do
22992   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22993     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22995     break 2
22996   fi
22997 done
22998   done
22999 IFS=$as_save_IFS
23000
23001   ;;
23002 esac
23003 fi
23004 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23005 if test -n "$ac_pt_PKGCONFIG"; then
23006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23007 $as_echo "$ac_pt_PKGCONFIG" >&6; }
23008 else
23009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23010 $as_echo "no" >&6; }
23011 fi
23012
23013   if test "x$ac_pt_PKGCONFIG" = x; then
23014     PKGCONFIG="no"
23015   else
23016     case $cross_compiling:$ac_tool_warned in
23017 yes:)
23018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23020 ac_tool_warned=yes ;;
23021 esac
23022     PKGCONFIG=$ac_pt_PKGCONFIG
23023   fi
23024 else
23025   PKGCONFIG="$ac_cv_path_PKGCONFIG"
23026 fi
23027
23028
23029     if test x$PKGCONFIG != xno; then
23030       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
23031 $as_echo_n "checking for gnutls options with pkg-config... " >&6; }
23032             itexists=`
23033     if test -n ""; then
23034       PKG_CONFIG_LIBDIR=""
23035       export PKG_CONFIG_LIBDIR
23036     fi
23037          $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
23038
23039       if test -z "$itexists"; then
23040                         PKGCONFIG="no"
23041         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23042 $as_echo "no" >&6; }
23043       else
23044         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23045 $as_echo "found" >&6; }
23046       fi
23047     fi
23048
23049
23050       if test "$PKGCONFIG" != "no" ; then
23051         addlib=`$PKGCONFIG --libs-only-l gnutls`
23052         addld=`$PKGCONFIG --libs-only-L gnutls`
23053         addcflags=`$PKGCONFIG --cflags-only-I gnutls`
23054         version=`$PKGCONFIG --modversion gnutls`
23055         gtlslib=`echo $addld | $SED -e 's/-L//'`
23056       else
23057                         check=`libgnutls-config --version 2>/dev/null`
23058         if test -n "$check"; then
23059           addlib=`libgnutls-config --libs`
23060           addcflags=`libgnutls-config --cflags`
23061           version=`libgnutls-config --version`
23062           gtlslib=`libgnutls-config --prefix`/lib$libsuff
23063         fi
23064       fi
23065     else
23066                   cfg=$OPT_GNUTLS/bin/libgnutls-config
23067       check=`$cfg --version 2>/dev/null`
23068       if test -n "$check"; then
23069         addlib=`$cfg --libs`
23070         addcflags=`$cfg --cflags`
23071         version=`$cfg --version`
23072         gtlslib=`$cfg --prefix`/lib$libsuff
23073       else
23074                 addlib=-lgnutls
23075         addld=-L$OPT_GNUTLS/lib$libsuff
23076         addcflags=-I$OPT_GNUTLS/include
23077         version="" # we just don't know
23078         gtlslib=$OPT_GNUTLS/lib$libsuff
23079       fi
23080     fi
23081
23082     if test -z "$version"; then
23083             version="unknown"
23084     fi
23085
23086     if test -n "$addlib"; then
23087
23088       CLEANLIBS="$LIBS"
23089       CLEANCPPFLAGS="$CPPFLAGS"
23090       CLEANLDFLAGS="$LDFLAGS"
23091
23092       LIBS="$addlib $LIBS"
23093       LDFLAGS="$LDFLAGS $addld"
23094       if test "$addcflags" != "-I/usr/include"; then
23095          CPPFLAGS="$CPPFLAGS $addcflags"
23096       fi
23097
23098       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
23099 $as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
23100 if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
23101   $as_echo_n "(cached) " >&6
23102 else
23103   ac_check_lib_save_LIBS=$LIBS
23104 LIBS="-lgnutls  $LIBS"
23105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23106 /* end confdefs.h.  */
23107
23108
23109 #ifdef __cplusplus
23110 extern "C"
23111 #endif
23112 char gnutls_check_version ();
23113 int main (void)
23114 {
23115 return gnutls_check_version ();
23116  ;
23117  return 0;
23118 }
23119 _ACEOF
23120 if ac_fn_c_try_link "$LINENO"; then :
23121   ac_cv_lib_gnutls_gnutls_check_version=yes
23122 else
23123   ac_cv_lib_gnutls_gnutls_check_version=no
23124 fi
23125 rm -f core conftest.err conftest.$ac_objext \
23126     conftest$ac_exeext conftest.$ac_ext
23127 LIBS=$ac_check_lib_save_LIBS
23128 fi
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
23130 $as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
23131 if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
23132
23133
23134 $as_echo "#define USE_GNUTLS 1" >>confdefs.h
23135
23136        USE_GNUTLS=1
23137
23138        GNUTLS_ENABLED=1
23139        USE_GNUTLS="yes"
23140        curl_ssl_msg="enabled (GnuTLS)"
23141
23142 else
23143
23144          LIBS="$CLEANLIBS"
23145          CPPFLAGS="$CLEANCPPFLAGS"
23146
23147 fi
23148
23149
23150       if test "x$USE_GNUTLS" = "xyes"; then
23151         { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
23152 $as_echo "$as_me: detected GnuTLS version $version" >&6;}
23153
23154         if test -n "$gtlslib"; then
23155                                                   if test "x$cross_compiling" != "xyes"; then
23156             LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib"
23157             export LD_LIBRARY_PATH
23158             { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to LD_LIBRARY_PATH" >&5
23159 $as_echo "$as_me: Added $gtlslib to LD_LIBRARY_PATH" >&6;}
23160           fi
23161         fi
23162       fi
23163
23164     fi
23165
23166   fi
23167 fi
23168
23169
23170 if test "$GNUTLS_ENABLED" = "1"; then
23171   USE_GNUTLS_NETTLE=
23172   # First check if we can detect either crypto library via transitive linking
23173   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
23174 $as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
23175 if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
23176   $as_echo_n "(cached) " >&6
23177 else
23178   ac_check_lib_save_LIBS=$LIBS
23179 LIBS="-lgnutls  $LIBS"
23180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23181 /* end confdefs.h.  */
23182
23183
23184 #ifdef __cplusplus
23185 extern "C"
23186 #endif
23187 char nettle_MD5Init ();
23188 int main (void)
23189 {
23190 return nettle_MD5Init ();
23191  ;
23192  return 0;
23193 }
23194 _ACEOF
23195 if ac_fn_c_try_link "$LINENO"; then :
23196   ac_cv_lib_gnutls_nettle_MD5Init=yes
23197 else
23198   ac_cv_lib_gnutls_nettle_MD5Init=no
23199 fi
23200 rm -f core conftest.err conftest.$ac_objext \
23201     conftest$ac_exeext conftest.$ac_ext
23202 LIBS=$ac_check_lib_save_LIBS
23203 fi
23204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
23205 $as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
23206 if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
23207    USE_GNUTLS_NETTLE=1
23208 fi
23209
23210   if test "$USE_GNUTLS_NETTLE" = ""; then
23211     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
23212 $as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
23213 if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
23214   $as_echo_n "(cached) " >&6
23215 else
23216   ac_check_lib_save_LIBS=$LIBS
23217 LIBS="-lgnutls  $LIBS"
23218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23219 /* end confdefs.h.  */
23220
23221
23222 #ifdef __cplusplus
23223 extern "C"
23224 #endif
23225 char gcry_control ();
23226 int main (void)
23227 {
23228 return gcry_control ();
23229  ;
23230  return 0;
23231 }
23232 _ACEOF
23233 if ac_fn_c_try_link "$LINENO"; then :
23234   ac_cv_lib_gnutls_gcry_control=yes
23235 else
23236   ac_cv_lib_gnutls_gcry_control=no
23237 fi
23238 rm -f core conftest.err conftest.$ac_objext \
23239     conftest$ac_exeext conftest.$ac_ext
23240 LIBS=$ac_check_lib_save_LIBS
23241 fi
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
23243 $as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
23244 if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
23245    USE_GNUTLS_NETTLE=0
23246 fi
23247
23248   fi
23249   # If not, try linking directly to both of them to see if they are available
23250   if test "$USE_GNUTLS_NETTLE" = ""; then
23251     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
23252 $as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
23253 if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
23254   $as_echo_n "(cached) " >&6
23255 else
23256   ac_check_lib_save_LIBS=$LIBS
23257 LIBS="-lnettle  $LIBS"
23258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23259 /* end confdefs.h.  */
23260
23261
23262 #ifdef __cplusplus
23263 extern "C"
23264 #endif
23265 char nettle_MD5Init ();
23266 int main (void)
23267 {
23268 return nettle_MD5Init ();
23269  ;
23270  return 0;
23271 }
23272 _ACEOF
23273 if ac_fn_c_try_link "$LINENO"; then :
23274   ac_cv_lib_nettle_nettle_MD5Init=yes
23275 else
23276   ac_cv_lib_nettle_nettle_MD5Init=no
23277 fi
23278 rm -f core conftest.err conftest.$ac_objext \
23279     conftest$ac_exeext conftest.$ac_ext
23280 LIBS=$ac_check_lib_save_LIBS
23281 fi
23282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
23283 $as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
23284 if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
23285    USE_GNUTLS_NETTLE=1
23286 fi
23287
23288   fi
23289   if test "$USE_GNUTLS_NETTLE" = ""; then
23290     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
23291 $as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
23292 if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
23293   $as_echo_n "(cached) " >&6
23294 else
23295   ac_check_lib_save_LIBS=$LIBS
23296 LIBS="-lgcrypt  $LIBS"
23297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23298 /* end confdefs.h.  */
23299
23300
23301 #ifdef __cplusplus
23302 extern "C"
23303 #endif
23304 char gcry_control ();
23305 int main (void)
23306 {
23307 return gcry_control ();
23308  ;
23309  return 0;
23310 }
23311 _ACEOF
23312 if ac_fn_c_try_link "$LINENO"; then :
23313   ac_cv_lib_gcrypt_gcry_control=yes
23314 else
23315   ac_cv_lib_gcrypt_gcry_control=no
23316 fi
23317 rm -f core conftest.err conftest.$ac_objext \
23318     conftest$ac_exeext conftest.$ac_ext
23319 LIBS=$ac_check_lib_save_LIBS
23320 fi
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
23322 $as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
23323 if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
23324    USE_GNUTLS_NETTLE=0
23325 fi
23326
23327   fi
23328   if test "$USE_GNUTLS_NETTLE" = ""; then
23329     as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
23330   fi
23331   if test "$USE_GNUTLS_NETTLE" = "1"; then
23332
23333 $as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
23334
23335     USE_GNUTLS_NETTLE=1
23336
23337     LIBS="-lnettle $LIBS"
23338   else
23339     LIBS="-lgcrypt $LIBS"
23340   fi
23341 fi
23342
23343 if test "$GNUTLS_ENABLED" = "1"; then
23344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
23345 $as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
23346 if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
23347   $as_echo_n "(cached) " >&6
23348 else
23349   ac_check_lib_save_LIBS=$LIBS
23350 LIBS="-lgnutls  $LIBS"
23351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23352 /* end confdefs.h.  */
23353
23354
23355 #ifdef __cplusplus
23356 extern "C"
23357 #endif
23358 char gnutls_srp_verifier ();
23359 int main (void)
23360 {
23361 return gnutls_srp_verifier ();
23362  ;
23363  return 0;
23364 }
23365 _ACEOF
23366 if ac_fn_c_try_link "$LINENO"; then :
23367   ac_cv_lib_gnutls_gnutls_srp_verifier=yes
23368 else
23369   ac_cv_lib_gnutls_gnutls_srp_verifier=no
23370 fi
23371 rm -f core conftest.err conftest.$ac_objext \
23372     conftest$ac_exeext conftest.$ac_ext
23373 LIBS=$ac_check_lib_save_LIBS
23374 fi
23375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
23376 $as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
23377 if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
23378
23379
23380 $as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
23381
23382      HAVE_GNUTLS_SRP=1
23383
23384
23385 fi
23386
23387 fi
23388
23389
23390 OPT_POLARSSL=no
23391
23392 _cppflags=$CPPFLAGS
23393 _ldflags=$LDFLAGS
23394
23395 # Check whether --with-polarssl was given.
23396 if test "${with_polarssl+set}" = set; then :
23397   withval=$with_polarssl; OPT_POLARSSL=$withval
23398 fi
23399
23400
23401 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23402
23403   if test X"$OPT_POLARSSL" != Xno; then
23404
23405     if test "$OPT_POLARSSL" = "yes"; then
23406       OPT_POLARSSL=""
23407     fi
23408
23409     if test -z "$OPT_POLARSSL" ; then
23410
23411       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
23412 $as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
23413 if ${ac_cv_lib_polarssl_havege_init+:} false; then :
23414   $as_echo_n "(cached) " >&6
23415 else
23416   ac_check_lib_save_LIBS=$LIBS
23417 LIBS="-lpolarssl  $LIBS"
23418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23419 /* end confdefs.h.  */
23420
23421
23422 #ifdef __cplusplus
23423 extern "C"
23424 #endif
23425 char havege_init ();
23426 int main (void)
23427 {
23428 return havege_init ();
23429  ;
23430  return 0;
23431 }
23432 _ACEOF
23433 if ac_fn_c_try_link "$LINENO"; then :
23434   ac_cv_lib_polarssl_havege_init=yes
23435 else
23436   ac_cv_lib_polarssl_havege_init=no
23437 fi
23438 rm -f core conftest.err conftest.$ac_objext \
23439     conftest$ac_exeext conftest.$ac_ext
23440 LIBS=$ac_check_lib_save_LIBS
23441 fi
23442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
23443 $as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
23444 if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
23445
23446
23447 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
23448
23449          USE_POLARSSL=1
23450
23451          POLARSSL_ENABLED=1
23452          USE_POLARSSL="yes"
23453          curl_ssl_msg="enabled (PolarSSL)"
23454
23455 fi
23456
23457     fi
23458
23459     addld=""
23460     addlib=""
23461     addcflags=""
23462     polarssllib=""
23463
23464     if test "x$USE_POLARSSL" != "xyes"; then
23465             addld=-L$OPT_POLARSSL/lib$libsuff
23466       addcflags=-I$OPT_POLARSSL/include
23467       polarssllib=$OPT_POLARSSL/lib$libsuff
23468
23469       LDFLAGS="$LDFLAGS $addld"
23470       if test "$addcflags" != "-I/usr/include"; then
23471          CPPFLAGS="$CPPFLAGS $addcflags"
23472       fi
23473
23474       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
23475 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
23476 if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
23477   $as_echo_n "(cached) " >&6
23478 else
23479   ac_check_lib_save_LIBS=$LIBS
23480 LIBS="-lpolarssl  $LIBS"
23481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23482 /* end confdefs.h.  */
23483
23484
23485 #ifdef __cplusplus
23486 extern "C"
23487 #endif
23488 char ssl_init ();
23489 int main (void)
23490 {
23491 return ssl_init ();
23492  ;
23493  return 0;
23494 }
23495 _ACEOF
23496 if ac_fn_c_try_link "$LINENO"; then :
23497   ac_cv_lib_polarssl_ssl_init=yes
23498 else
23499   ac_cv_lib_polarssl_ssl_init=no
23500 fi
23501 rm -f core conftest.err conftest.$ac_objext \
23502     conftest$ac_exeext conftest.$ac_ext
23503 LIBS=$ac_check_lib_save_LIBS
23504 fi
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
23506 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
23507 if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
23508
23509
23510 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
23511
23512        USE_POLARSSL=1
23513
23514        POLARSSL_ENABLED=1
23515        USE_POLARSSL="yes"
23516        curl_ssl_msg="enabled (PolarSSL)"
23517
23518 else
23519
23520          CPPFLAGS=$_cppflags
23521          LDFLAGS=$_ldflags
23522
23523 fi
23524
23525     fi
23526
23527     if test "x$USE_POLARSSL" = "xyes"; then
23528       { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
23529 $as_echo "$as_me: detected PolarSSL" >&6;}
23530
23531       LIBS="-lpolarssl $LIBS"
23532
23533       if test -n "$polarssllib"; then
23534                                         if test "x$cross_compiling" != "xyes"; then
23535           LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$polarssllib"
23536           export LD_LIBRARY_PATH
23537           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to LD_LIBRARY_PATH" >&5
23538 $as_echo "$as_me: Added $polarssllib to LD_LIBRARY_PATH" >&6;}
23539         fi
23540       fi
23541     fi
23542
23543   fi
23544 fi
23545
23546
23547 OPT_CYASSL=no
23548
23549 _cppflags=$CPPFLAGS
23550 _ldflags=$LDFLAGS
23551
23552 # Check whether --with-cyassl was given.
23553 if test "${with_cyassl+set}" = set; then :
23554   withval=$with_cyassl; OPT_CYASSL=$withval
23555 fi
23556
23557
23558 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23559
23560   if test X"$OPT_CYASSL" != Xno; then
23561
23562     if test "$OPT_CYASSL" = "yes"; then
23563       OPT_CYASSL=""
23564     fi
23565
23566     if test -z "$OPT_CYASSL" ; then
23567
23568       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
23569 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
23570 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
23571   $as_echo_n "(cached) " >&6
23572 else
23573   ac_check_lib_save_LIBS=$LIBS
23574 LIBS="-lcyassl  $LIBS"
23575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23576 /* end confdefs.h.  */
23577
23578
23579 #ifdef __cplusplus
23580 extern "C"
23581 #endif
23582 char CyaSSL_Init ();
23583 int main (void)
23584 {
23585 return CyaSSL_Init ();
23586  ;
23587  return 0;
23588 }
23589 _ACEOF
23590 if ac_fn_c_try_link "$LINENO"; then :
23591   ac_cv_lib_cyassl_CyaSSL_Init=yes
23592 else
23593   ac_cv_lib_cyassl_CyaSSL_Init=no
23594 fi
23595 rm -f core conftest.err conftest.$ac_objext \
23596     conftest$ac_exeext conftest.$ac_ext
23597 LIBS=$ac_check_lib_save_LIBS
23598 fi
23599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
23600 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
23601 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
23602
23603
23604 $as_echo "#define USE_CYASSL 1" >>confdefs.h
23605
23606          USE_CYASSL=1
23607
23608          CYASSL_ENABLED=1
23609          USE_CYASSL="yes"
23610          curl_ssl_msg="enabled (CyaSSL)"
23611
23612 fi
23613
23614     fi
23615
23616     addld=""
23617     addlib=""
23618     addcflags=""
23619     cyassllib=""
23620
23621     if test "x$USE_CYASSL" != "xyes"; then
23622             addld=-L$OPT_CYASSL/lib$libsuff
23623       addcflags=-I$OPT_CYASSL/include
23624       cyassllib=$OPT_CYASSL/lib$libsuff
23625
23626       LDFLAGS="$LDFLAGS $addld"
23627       if test "$addcflags" != "-I/usr/include"; then
23628          CPPFLAGS="$CPPFLAGS $addcflags"
23629       fi
23630
23631       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
23632 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
23633 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
23634   $as_echo_n "(cached) " >&6
23635 else
23636   ac_check_lib_save_LIBS=$LIBS
23637 LIBS="-lcyassl  $LIBS"
23638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23639 /* end confdefs.h.  */
23640
23641
23642 #ifdef __cplusplus
23643 extern "C"
23644 #endif
23645 char CyaSSL_Init ();
23646 int main (void)
23647 {
23648 return CyaSSL_Init ();
23649  ;
23650  return 0;
23651 }
23652 _ACEOF
23653 if ac_fn_c_try_link "$LINENO"; then :
23654   ac_cv_lib_cyassl_CyaSSL_Init=yes
23655 else
23656   ac_cv_lib_cyassl_CyaSSL_Init=no
23657 fi
23658 rm -f core conftest.err conftest.$ac_objext \
23659     conftest$ac_exeext conftest.$ac_ext
23660 LIBS=$ac_check_lib_save_LIBS
23661 fi
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
23663 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
23664 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
23665
23666
23667 $as_echo "#define USE_CYASSL 1" >>confdefs.h
23668
23669        USE_CYASSL=1
23670
23671        CYASSL_ENABLED=1
23672        USE_CYASSL="yes"
23673        curl_ssl_msg="enabled (CyaSSL)"
23674
23675 else
23676
23677          CPPFLAGS=$_cppflags
23678          LDFLAGS=$_ldflags
23679
23680 fi
23681
23682     fi
23683
23684     if test "x$USE_CYASSL" = "xyes"; then
23685       { $as_echo "$as_me:${as_lineno-$LINENO}: detected CyaSSL" >&5
23686 $as_echo "$as_me: detected CyaSSL" >&6;}
23687
23688       LIBS="-lcyassl -lm $LIBS"
23689
23690       if test -n "$cyassllib"; then
23691                                         if test "x$cross_compiling" != "xyes"; then
23692           LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$cyassllib"
23693           export LD_LIBRARY_PATH
23694           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to LD_LIBRARY_PATH" >&5
23695 $as_echo "$as_me: Added $cyassllib to LD_LIBRARY_PATH" >&6;}
23696         fi
23697       fi
23698
23699     fi
23700
23701   fi
23702 fi
23703
23704
23705 OPT_NSS=no
23706
23707
23708 # Check whether --with-nss was given.
23709 if test "${with_nss+set}" = set; then :
23710   withval=$with_nss; OPT_NSS=$withval
23711 fi
23712
23713
23714 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23715
23716   if test X"$OPT_NSS" != Xno; then
23717
23718     addld=""
23719     addlib=""
23720     addcflags=""
23721     nssprefix=""
23722     version=""
23723
23724     if test "x$OPT_NSS" = "xyes"; then
23725
23726
23727
23728     PKGCONFIG="no"
23729
23730     if test -n "$ac_tool_prefix"; then
23731   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23732 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23734 $as_echo_n "checking for $ac_word... " >&6; }
23735 if ${ac_cv_path_PKGCONFIG+:} false; then :
23736   $as_echo_n "(cached) " >&6
23737 else
23738   case $PKGCONFIG in
23739   [\\/]* | ?:[\\/]*)
23740   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23741   ;;
23742   *)
23743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23744 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23745 for as_dir in $as_dummy
23746 do
23747   IFS=$as_save_IFS
23748   test -z "$as_dir" && as_dir=.
23749     for ac_exec_ext in '' $ac_executable_extensions; do
23750   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23751     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23753     break 2
23754   fi
23755 done
23756   done
23757 IFS=$as_save_IFS
23758
23759   ;;
23760 esac
23761 fi
23762 PKGCONFIG=$ac_cv_path_PKGCONFIG
23763 if test -n "$PKGCONFIG"; then
23764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23765 $as_echo "$PKGCONFIG" >&6; }
23766 else
23767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23768 $as_echo "no" >&6; }
23769 fi
23770
23771
23772 fi
23773 if test -z "$ac_cv_path_PKGCONFIG"; then
23774   ac_pt_PKGCONFIG=$PKGCONFIG
23775   # Extract the first word of "pkg-config", so it can be a program name with args.
23776 set dummy pkg-config; ac_word=$2
23777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23778 $as_echo_n "checking for $ac_word... " >&6; }
23779 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23780   $as_echo_n "(cached) " >&6
23781 else
23782   case $ac_pt_PKGCONFIG in
23783   [\\/]* | ?:[\\/]*)
23784   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23785   ;;
23786   *)
23787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23788 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23789 for as_dir in $as_dummy
23790 do
23791   IFS=$as_save_IFS
23792   test -z "$as_dir" && as_dir=.
23793     for ac_exec_ext in '' $ac_executable_extensions; do
23794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23795     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23797     break 2
23798   fi
23799 done
23800   done
23801 IFS=$as_save_IFS
23802
23803   ;;
23804 esac
23805 fi
23806 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23807 if test -n "$ac_pt_PKGCONFIG"; then
23808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23809 $as_echo "$ac_pt_PKGCONFIG" >&6; }
23810 else
23811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23812 $as_echo "no" >&6; }
23813 fi
23814
23815   if test "x$ac_pt_PKGCONFIG" = x; then
23816     PKGCONFIG="no"
23817   else
23818     case $cross_compiling:$ac_tool_warned in
23819 yes:)
23820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23822 ac_tool_warned=yes ;;
23823 esac
23824     PKGCONFIG=$ac_pt_PKGCONFIG
23825   fi
23826 else
23827   PKGCONFIG="$ac_cv_path_PKGCONFIG"
23828 fi
23829
23830
23831     if test x$PKGCONFIG != xno; then
23832       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
23833 $as_echo_n "checking for nss options with pkg-config... " >&6; }
23834             itexists=`
23835     if test -n ""; then
23836       PKG_CONFIG_LIBDIR=""
23837       export PKG_CONFIG_LIBDIR
23838     fi
23839          $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
23840
23841       if test -z "$itexists"; then
23842                         PKGCONFIG="no"
23843         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23844 $as_echo "no" >&6; }
23845       else
23846         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23847 $as_echo "found" >&6; }
23848       fi
23849     fi
23850
23851
23852       if test "$PKGCONFIG" != "no" ; then
23853         addlib=`$PKGCONFIG --libs nss`
23854         addcflags=`$PKGCONFIG --cflags nss`
23855         version=`$PKGCONFIG --modversion nss`
23856         nssprefix=`$PKGCONFIG --variable=prefix nss`
23857       else
23858
23859         check=`nss-config --version 2>/dev/null`
23860         if test -n "$check"; then
23861           addlib=`nss-config --libs`
23862           addcflags=`nss-config --cflags`
23863           version=`nss-config --version`
23864           nssprefix=`nss-config --prefix`
23865         else
23866           addlib="-lnss3"
23867           addcflags=""
23868           version="unknown"
23869         fi
23870       fi
23871     else
23872         # Without pkg-config, we'll kludge in some defaults
23873         addlib="-L$OPT_NSS/lib -lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl"
23874         addcflags="-I$OPT_NSS/include"
23875         version="unknown"
23876         nssprefix=$OPT_NSS
23877     fi
23878
23879     if test -n "$addlib"; then
23880
23881       CLEANLIBS="$LIBS"
23882       CLEANCPPFLAGS="$CPPFLAGS"
23883
23884       LIBS="$addlib $LIBS"
23885       if test "$addcflags" != "-I/usr/include"; then
23886          CPPFLAGS="$CPPFLAGS $addcflags"
23887       fi
23888
23889             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PK11_CreateGenericObject in -lnss3" >&5
23890 $as_echo_n "checking for PK11_CreateGenericObject in -lnss3... " >&6; }
23891 if ${ac_cv_lib_nss3_PK11_CreateGenericObject+:} false; then :
23892   $as_echo_n "(cached) " >&6
23893 else
23894   ac_check_lib_save_LIBS=$LIBS
23895 LIBS="-lnss3  $LIBS"
23896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23897 /* end confdefs.h.  */
23898
23899
23900 #ifdef __cplusplus
23901 extern "C"
23902 #endif
23903 char PK11_CreateGenericObject ();
23904 int main (void)
23905 {
23906 return PK11_CreateGenericObject ();
23907  ;
23908  return 0;
23909 }
23910 _ACEOF
23911 if ac_fn_c_try_link "$LINENO"; then :
23912   ac_cv_lib_nss3_PK11_CreateGenericObject=yes
23913 else
23914   ac_cv_lib_nss3_PK11_CreateGenericObject=no
23915 fi
23916 rm -f core conftest.err conftest.$ac_objext \
23917     conftest$ac_exeext conftest.$ac_ext
23918 LIBS=$ac_check_lib_save_LIBS
23919 fi
23920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_PK11_CreateGenericObject" >&5
23921 $as_echo "$ac_cv_lib_nss3_PK11_CreateGenericObject" >&6; }
23922 if test "x$ac_cv_lib_nss3_PK11_CreateGenericObject" = xyes; then :
23923
23924
23925 $as_echo "#define USE_NSS 1" >>confdefs.h
23926
23927        USE_NSS=1
23928
23929        USE_NSS="yes"
23930        NSS_ENABLED=1
23931        curl_ssl_msg="enabled (NSS)"
23932
23933 else
23934
23935          LIBS="$CLEANLIBS"
23936          CPPFLAGS="$CLEANCPPFLAGS"
23937
23938 fi
23939
23940
23941       if test "x$USE_NSS" = "xyes"; then
23942         { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
23943 $as_echo "$as_me: detected NSS version $version" >&6;}
23944
23945                         ac_fn_c_check_func "$LINENO" "NSS_InitContext" "ac_cv_func_NSS_InitContext"
23946 if test "x$ac_cv_func_NSS_InitContext" = xyes; then :
23947
23948
23949 $as_echo "#define HAVE_NSS_INITCONTEXT 1" >>confdefs.h
23950
23951           HAVE_NSS_INITCONTEXT=1
23952
23953
23954 fi
23955
23956
23957                                         if test "x$cross_compiling" != "xyes"; then
23958           LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff"
23959           export LD_LIBRARY_PATH
23960           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
23961 $as_echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
23962         fi
23963       fi
23964
23965     fi
23966
23967   fi
23968 fi
23969 OPT_AXTLS=off
23970
23971
23972 # Check whether --with-axtls was given.
23973 if test "${with_axtls+set}" = set; then :
23974   withval=$with_axtls; OPT_AXTLS=$withval
23975 fi
23976
23977
23978 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23979   if test X"$OPT_AXTLS" != Xno; then
23980         CLEANLDFLAGS="$LDFLAGS"
23981     CLEANCPPFLAGS="$CPPFLAGS"
23982     CLEANLIBS="$LIBS"
23983
23984     case "$OPT_AXTLS" in
23985     yes)
23986             PREFIX_AXTLS=/usr/local
23987       LIB_AXTLS="$PREFIX_AXTLS/lib"
23988       LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
23989       CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
23990       ;;
23991     off)
23992             PREFIX_AXTLS=
23993       ;;
23994     *)
23995             PREFIX_AXTLS=$OPT_AXTLS
23996       LIB_AXTLS="$PREFIX_AXTLS/lib"
23997       LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
23998       CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
23999       ;;
24000     esac
24001
24002     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5
24003 $as_echo_n "checking for ssl_version in -laxtls... " >&6; }
24004 if ${ac_cv_lib_axtls_ssl_version+:} false; then :
24005   $as_echo_n "(cached) " >&6
24006 else
24007   ac_check_lib_save_LIBS=$LIBS
24008 LIBS="-laxtls  $LIBS"
24009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24010 /* end confdefs.h.  */
24011
24012
24013 #ifdef __cplusplus
24014 extern "C"
24015 #endif
24016 char ssl_version ();
24017 int main (void)
24018 {
24019 return ssl_version ();
24020  ;
24021  return 0;
24022 }
24023 _ACEOF
24024 if ac_fn_c_try_link "$LINENO"; then :
24025   ac_cv_lib_axtls_ssl_version=yes
24026 else
24027   ac_cv_lib_axtls_ssl_version=no
24028 fi
24029 rm -f core conftest.err conftest.$ac_objext \
24030     conftest$ac_exeext conftest.$ac_ext
24031 LIBS=$ac_check_lib_save_LIBS
24032 fi
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5
24034 $as_echo "$ac_cv_lib_axtls_ssl_version" >&6; }
24035 if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then :
24036
24037       LIBS="-laxtls $LIBS"
24038
24039 $as_echo "#define USE_AXTLS 1" >>confdefs.h
24040
24041       USE_AXTLS=1
24042
24043       AXTLS_ENABLED=1
24044       USE_AXTLS="yes"
24045       curl_ssl_msg="enabled (axTLS)"
24046
24047
24048       LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_AXTLS"
24049       export LD_LIBRARY_PATH
24050       { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&5
24051 $as_echo "$as_me: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&6;}
24052
24053 else
24054
24055       LDFLAGS="$CLEANLDFLAGS"
24056       CPPFLAGS="$CLEANCPPFLAGS"
24057       LIBS="$CLEANLIBS"
24058
24059 fi
24060
24061   fi
24062 fi
24063
24064 if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" = "x"; then
24065   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
24066 $as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
24067   { $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
24068 $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;}
24069 else
24070   # SSL is enabled, genericly
24071
24072   SSL_ENABLED="1"
24073 fi
24074
24075
24076
24077
24078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
24079 $as_echo_n "checking default CA cert bundle/path... " >&6; }
24080
24081
24082 # Check whether --with-ca-bundle was given.
24083 if test "${with_ca_bundle+set}" = set; then :
24084   withval=$with_ca_bundle;
24085     want_ca="$withval"
24086     if test "x$want_ca" = "xyes"; then
24087       as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
24088     fi
24089
24090 else
24091    want_ca="unset"
24092 fi
24093
24094
24095 # Check whether --with-ca-path was given.
24096 if test "${with_ca_path+set}" = set; then :
24097   withval=$with_ca_path;
24098     want_capath="$withval"
24099     if test "x$want_capath" = "xyes"; then
24100       as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
24101     fi
24102
24103 else
24104    want_capath="unset"
24105 fi
24106
24107
24108   if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
24109           "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
24110         as_fn_error $? "Can't specify both --with-ca-bundle and --with-ca-path." "$LINENO" 5
24111   elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
24112         ca="$want_ca"
24113     capath="no"
24114   elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
24115         if test "x$OPENSSL_ENABLED" != "x1"; then
24116       as_fn_error $? "--with-ca-path only works with openSSL" "$LINENO" 5
24117     fi
24118     capath="$want_capath"
24119     ca="no"
24120   elif test "x$cross_compiling" != "xyes"; then
24121
24122             ca="no"
24123     capath="no"
24124     if test "x$want_ca" = "xunset"; then
24125                         if test "x$prefix" != xNONE; then
24126         cac="${prefix}/share/curl/curl-ca-bundle.crt"
24127       else
24128         cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
24129       fi
24130
24131       for a in /etc/ssl/certs/ca-certificates.crt \
24132                /etc/pki/tls/certs/ca-bundle.crt \
24133                /usr/share/ssl/certs/ca-bundle.crt \
24134                /usr/local/share/certs/ca-root.crt \
24135                /etc/ssl/cert.pem \
24136                "$cac"; do
24137         if test -f "$a"; then
24138           ca="$a"
24139           break
24140         fi
24141       done
24142     fi
24143     if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
24144             "x$OPENSSL_ENABLED" = "x1"; then
24145       for a in /etc/ssl/certs/; do
24146         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
24147           capath="$a"
24148           break
24149         fi
24150       done
24151     fi
24152   else
24153         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
24154 $as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
24155   fi
24156
24157   if test "x$ca" != "xno"; then
24158     CURL_CA_BUNDLE='"'$ca'"'
24159
24160 cat >>confdefs.h <<_ACEOF
24161 #define CURL_CA_BUNDLE "$ca"
24162 _ACEOF
24163
24164
24165     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
24166 $as_echo "$ca" >&6; }
24167   elif test "x$capath" != "xno"; then
24168     CURL_CA_PATH="\"$capath\""
24169
24170 cat >>confdefs.h <<_ACEOF
24171 #define CURL_CA_PATH "$capath"
24172 _ACEOF
24173
24174     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
24175 $as_echo "$capath (capath)" >&6; }
24176   else
24177     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24178 $as_echo "no" >&6; }
24179   fi
24180
24181
24182
24183 OPT_LIBMETALINK=no
24184
24185
24186 # Check whether --with-libmetalink was given.
24187 if test "${with_libmetalink+set}" = set; then :
24188   withval=$with_libmetalink; OPT_LIBMETALINK=$withval
24189 fi
24190
24191
24192 if test X"$OPT_LIBMETALINK" != Xno; then
24193
24194   addld=""
24195   addlib=""
24196   addcflags=""
24197   version=""
24198   libmetalinklib=""
24199
24200   PKGTEST="no"
24201   if test "x$OPT_LIBMETALINK" = "xyes"; then
24202         PKGTEST="yes"
24203
24204
24205     PKGCONFIG="no"
24206
24207     if test -n "$ac_tool_prefix"; then
24208   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24209 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24211 $as_echo_n "checking for $ac_word... " >&6; }
24212 if ${ac_cv_path_PKGCONFIG+:} false; then :
24213   $as_echo_n "(cached) " >&6
24214 else
24215   case $PKGCONFIG in
24216   [\\/]* | ?:[\\/]*)
24217   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24218   ;;
24219   *)
24220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24221 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24222 for as_dir in $as_dummy
24223 do
24224   IFS=$as_save_IFS
24225   test -z "$as_dir" && as_dir=.
24226     for ac_exec_ext in '' $ac_executable_extensions; do
24227   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24228     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24230     break 2
24231   fi
24232 done
24233   done
24234 IFS=$as_save_IFS
24235
24236   ;;
24237 esac
24238 fi
24239 PKGCONFIG=$ac_cv_path_PKGCONFIG
24240 if test -n "$PKGCONFIG"; then
24241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24242 $as_echo "$PKGCONFIG" >&6; }
24243 else
24244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24245 $as_echo "no" >&6; }
24246 fi
24247
24248
24249 fi
24250 if test -z "$ac_cv_path_PKGCONFIG"; then
24251   ac_pt_PKGCONFIG=$PKGCONFIG
24252   # Extract the first word of "pkg-config", so it can be a program name with args.
24253 set dummy pkg-config; ac_word=$2
24254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24255 $as_echo_n "checking for $ac_word... " >&6; }
24256 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24257   $as_echo_n "(cached) " >&6
24258 else
24259   case $ac_pt_PKGCONFIG in
24260   [\\/]* | ?:[\\/]*)
24261   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24262   ;;
24263   *)
24264   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24265 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24266 for as_dir in $as_dummy
24267 do
24268   IFS=$as_save_IFS
24269   test -z "$as_dir" && as_dir=.
24270     for ac_exec_ext in '' $ac_executable_extensions; do
24271   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24272     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24274     break 2
24275   fi
24276 done
24277   done
24278 IFS=$as_save_IFS
24279
24280   ;;
24281 esac
24282 fi
24283 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24284 if test -n "$ac_pt_PKGCONFIG"; then
24285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24286 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24287 else
24288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24289 $as_echo "no" >&6; }
24290 fi
24291
24292   if test "x$ac_pt_PKGCONFIG" = x; then
24293     PKGCONFIG="no"
24294   else
24295     case $cross_compiling:$ac_tool_warned in
24296 yes:)
24297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24299 ac_tool_warned=yes ;;
24300 esac
24301     PKGCONFIG=$ac_pt_PKGCONFIG
24302   fi
24303 else
24304   PKGCONFIG="$ac_cv_path_PKGCONFIG"
24305 fi
24306
24307
24308     if test x$PKGCONFIG != xno; then
24309       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
24310 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
24311             itexists=`
24312     if test -n ""; then
24313       PKG_CONFIG_LIBDIR=""
24314       export PKG_CONFIG_LIBDIR
24315     fi
24316          $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
24317
24318       if test -z "$itexists"; then
24319                         PKGCONFIG="no"
24320         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24321 $as_echo "no" >&6; }
24322       else
24323         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24324 $as_echo "found" >&6; }
24325       fi
24326     fi
24327
24328   else
24329         LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
24330     { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
24331 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
24332     if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
24333       PKGTEST="yes"
24334     fi
24335     if test "$PKGTEST" = "yes"; then
24336
24337
24338     PKGCONFIG="no"
24339
24340     if test -n "$ac_tool_prefix"; then
24341   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24342 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24344 $as_echo_n "checking for $ac_word... " >&6; }
24345 if ${ac_cv_path_PKGCONFIG+:} false; then :
24346   $as_echo_n "(cached) " >&6
24347 else
24348   case $PKGCONFIG in
24349   [\\/]* | ?:[\\/]*)
24350   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24351   ;;
24352   *)
24353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24354 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24355 for as_dir in $as_dummy
24356 do
24357   IFS=$as_save_IFS
24358   test -z "$as_dir" && as_dir=.
24359     for ac_exec_ext in '' $ac_executable_extensions; do
24360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24361     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24363     break 2
24364   fi
24365 done
24366   done
24367 IFS=$as_save_IFS
24368
24369   ;;
24370 esac
24371 fi
24372 PKGCONFIG=$ac_cv_path_PKGCONFIG
24373 if test -n "$PKGCONFIG"; then
24374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24375 $as_echo "$PKGCONFIG" >&6; }
24376 else
24377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24378 $as_echo "no" >&6; }
24379 fi
24380
24381
24382 fi
24383 if test -z "$ac_cv_path_PKGCONFIG"; then
24384   ac_pt_PKGCONFIG=$PKGCONFIG
24385   # Extract the first word of "pkg-config", so it can be a program name with args.
24386 set dummy pkg-config; ac_word=$2
24387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24388 $as_echo_n "checking for $ac_word... " >&6; }
24389 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24390   $as_echo_n "(cached) " >&6
24391 else
24392   case $ac_pt_PKGCONFIG in
24393   [\\/]* | ?:[\\/]*)
24394   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24395   ;;
24396   *)
24397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24398 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24399 for as_dir in $as_dummy
24400 do
24401   IFS=$as_save_IFS
24402   test -z "$as_dir" && as_dir=.
24403     for ac_exec_ext in '' $ac_executable_extensions; do
24404   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24405     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24407     break 2
24408   fi
24409 done
24410   done
24411 IFS=$as_save_IFS
24412
24413   ;;
24414 esac
24415 fi
24416 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24417 if test -n "$ac_pt_PKGCONFIG"; then
24418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24419 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24420 else
24421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24422 $as_echo "no" >&6; }
24423 fi
24424
24425   if test "x$ac_pt_PKGCONFIG" = x; then
24426     PKGCONFIG="no"
24427   else
24428     case $cross_compiling:$ac_tool_warned in
24429 yes:)
24430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24432 ac_tool_warned=yes ;;
24433 esac
24434     PKGCONFIG=$ac_pt_PKGCONFIG
24435   fi
24436 else
24437   PKGCONFIG="$ac_cv_path_PKGCONFIG"
24438 fi
24439
24440
24441     if test x$PKGCONFIG != xno; then
24442       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
24443 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
24444             itexists=`
24445     if test -n "$LIBMETALINK_PCDIR"; then
24446       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24447       export PKG_CONFIG_LIBDIR
24448     fi
24449          $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
24450
24451       if test -z "$itexists"; then
24452                         PKGCONFIG="no"
24453         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24454 $as_echo "no" >&6; }
24455       else
24456         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24457 $as_echo "found" >&6; }
24458       fi
24459     fi
24460
24461     fi
24462   fi
24463   if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
24464     addlib=`
24465     if test -n "$LIBMETALINK_PCDIR"; then
24466       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24467       export PKG_CONFIG_LIBDIR
24468     fi
24469        $PKGCONFIG --libs-only-l libmetalink`
24470     addld=`
24471     if test -n "$LIBMETALINK_PCDIR"; then
24472       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24473       export PKG_CONFIG_LIBDIR
24474     fi
24475        $PKGCONFIG --libs-only-L libmetalink`
24476     addcflags=`
24477     if test -n "$LIBMETALINK_PCDIR"; then
24478       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24479       export PKG_CONFIG_LIBDIR
24480     fi
24481        $PKGCONFIG --cflags-only-I libmetalink`
24482     version=`
24483     if test -n "$LIBMETALINK_PCDIR"; then
24484       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24485       export PKG_CONFIG_LIBDIR
24486     fi
24487        $PKGCONFIG --modversion libmetalink`
24488     libmetalinklib=`echo $addld | $SED -e 's/-L//'`
24489   fi
24490   if test -n "$addlib"; then
24491
24492     clean_CPPFLAGS="$CPPFLAGS"
24493     clean_LDFLAGS="$LDFLAGS"
24494     clean_LIBS="$LIBS"
24495     CPPFLAGS="$addcflags $clean_CPPFLAGS"
24496     LDFLAGS="$addld $clean_LDFLAGS"
24497     LIBS="$addlib $clean_LIBS"
24498     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
24499 $as_echo_n "checking if libmetalink is recent enough... " >&6; }
24500     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24501 /* end confdefs.h.  */
24502
24503
24504 #       include <metalink/metalink.h>
24505
24506 int main (void)
24507 {
24508
24509         if(0 != metalink_strerror(0)) /* added in 0.1.0 */
24510           return 1;
24511
24512  ;
24513  return 0;
24514 }
24515
24516 _ACEOF
24517 if ac_fn_c_try_link "$LINENO"; then :
24518
24519       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
24520 $as_echo "yes ($version)" >&6; }
24521       want_metalink="yes"
24522
24523 else
24524
24525       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
24526 $as_echo "no ($version)" >&6; }
24527       { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
24528 $as_echo "$as_me: libmetalink library defective or too old" >&6;}
24529       want_metalink="no"
24530
24531 fi
24532 rm -f core conftest.err conftest.$ac_objext \
24533     conftest$ac_exeext conftest.$ac_ext
24534     CPPFLAGS="$clean_CPPFLAGS"
24535     LDFLAGS="$clean_LDFLAGS"
24536     LIBS="$clean_LIBS"
24537     if test "$want_metalink" = "yes"; then
24538
24539 $as_echo "#define USE_METALINK 1" >>confdefs.h
24540
24541       LIBMETALINK_LIBS=$addlib
24542       LIBMETALINK_LDFLAGS=$addld
24543       LIBMETALINK_CPPFLAGS=$addcflags
24544
24545
24546
24547       curl_mtlnk_msg="enabled"
24548     fi
24549
24550   fi
24551 fi
24552
24553
24554 OPT_LIBSSH2=off
24555
24556 # Check whether --with-libssh2 was given.
24557 if test "${with_libssh2+set}" = set; then :
24558   withval=$with_libssh2; OPT_LIBSSH2=$withval
24559 fi
24560
24561
24562 if test X"$OPT_LIBSSH2" != Xno; then
24563     CLEANLDFLAGS="$LDFLAGS"
24564   CLEANCPPFLAGS="$CPPFLAGS"
24565   CLEANLIBS="$LIBS"
24566
24567   case "$OPT_LIBSSH2" in
24568   yes)
24569
24570
24571     PKGCONFIG="no"
24572
24573     if test -n "$ac_tool_prefix"; then
24574   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24575 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24577 $as_echo_n "checking for $ac_word... " >&6; }
24578 if ${ac_cv_path_PKGCONFIG+:} false; then :
24579   $as_echo_n "(cached) " >&6
24580 else
24581   case $PKGCONFIG in
24582   [\\/]* | ?:[\\/]*)
24583   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24584   ;;
24585   *)
24586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24587 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24588 for as_dir in $as_dummy
24589 do
24590   IFS=$as_save_IFS
24591   test -z "$as_dir" && as_dir=.
24592     for ac_exec_ext in '' $ac_executable_extensions; do
24593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24594     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24596     break 2
24597   fi
24598 done
24599   done
24600 IFS=$as_save_IFS
24601
24602   ;;
24603 esac
24604 fi
24605 PKGCONFIG=$ac_cv_path_PKGCONFIG
24606 if test -n "$PKGCONFIG"; then
24607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24608 $as_echo "$PKGCONFIG" >&6; }
24609 else
24610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24611 $as_echo "no" >&6; }
24612 fi
24613
24614
24615 fi
24616 if test -z "$ac_cv_path_PKGCONFIG"; then
24617   ac_pt_PKGCONFIG=$PKGCONFIG
24618   # Extract the first word of "pkg-config", so it can be a program name with args.
24619 set dummy pkg-config; ac_word=$2
24620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24621 $as_echo_n "checking for $ac_word... " >&6; }
24622 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24623   $as_echo_n "(cached) " >&6
24624 else
24625   case $ac_pt_PKGCONFIG in
24626   [\\/]* | ?:[\\/]*)
24627   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24628   ;;
24629   *)
24630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24631 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24632 for as_dir in $as_dummy
24633 do
24634   IFS=$as_save_IFS
24635   test -z "$as_dir" && as_dir=.
24636     for ac_exec_ext in '' $ac_executable_extensions; do
24637   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24638     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24640     break 2
24641   fi
24642 done
24643   done
24644 IFS=$as_save_IFS
24645
24646   ;;
24647 esac
24648 fi
24649 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24650 if test -n "$ac_pt_PKGCONFIG"; then
24651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24652 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24653 else
24654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24655 $as_echo "no" >&6; }
24656 fi
24657
24658   if test "x$ac_pt_PKGCONFIG" = x; then
24659     PKGCONFIG="no"
24660   else
24661     case $cross_compiling:$ac_tool_warned in
24662 yes:)
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24665 ac_tool_warned=yes ;;
24666 esac
24667     PKGCONFIG=$ac_pt_PKGCONFIG
24668   fi
24669 else
24670   PKGCONFIG="$ac_cv_path_PKGCONFIG"
24671 fi
24672
24673
24674     if test x$PKGCONFIG != xno; then
24675       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
24676 $as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
24677             itexists=`
24678     if test -n ""; then
24679       PKG_CONFIG_LIBDIR=""
24680       export PKG_CONFIG_LIBDIR
24681     fi
24682          $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
24683
24684       if test -z "$itexists"; then
24685                         PKGCONFIG="no"
24686         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24687 $as_echo "no" >&6; }
24688       else
24689         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24690 $as_echo "found" >&6; }
24691       fi
24692     fi
24693
24694
24695     if test "$PKGCONFIG" != "no" ; then
24696       LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
24697       LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
24698       CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
24699       version=`$PKGCONFIG --modversion libssh2`
24700       DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
24701     fi
24702
24703     ;;
24704   off)
24705         ;;
24706   *)
24707         PREFIX_SSH2=$OPT_LIBSSH2
24708     ;;
24709   esac
24710
24711     if test -n "$PREFIX_SSH2"; then
24712     LIB_SSH2="-lssh2"
24713     LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
24714     CPP_SSH2=-I${PREFIX_SSH2}/include
24715     DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
24716   fi
24717
24718   LDFLAGS="$LDFLAGS $LD_SSH2"
24719   CPPFLAGS="$CPPFLAGS $CPP_SSH2"
24720   LIBS="$LIB_SSH2 $LIBS"
24721
24722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
24723 $as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
24724 if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
24725   $as_echo_n "(cached) " >&6
24726 else
24727   ac_check_lib_save_LIBS=$LIBS
24728 LIBS="-lssh2  $LIBS"
24729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24730 /* end confdefs.h.  */
24731
24732
24733 #ifdef __cplusplus
24734 extern "C"
24735 #endif
24736 char libssh2_channel_open_ex ();
24737 int main (void)
24738 {
24739 return libssh2_channel_open_ex ();
24740  ;
24741  return 0;
24742 }
24743 _ACEOF
24744 if ac_fn_c_try_link "$LINENO"; then :
24745   ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
24746 else
24747   ac_cv_lib_ssh2_libssh2_channel_open_ex=no
24748 fi
24749 rm -f core conftest.err conftest.$ac_objext \
24750     conftest$ac_exeext conftest.$ac_ext
24751 LIBS=$ac_check_lib_save_LIBS
24752 fi
24753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
24754 $as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
24755 if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
24756   cat >>confdefs.h <<_ACEOF
24757 #define HAVE_LIBSSH2 1
24758 _ACEOF
24759
24760   LIBS="-lssh2 $LIBS"
24761
24762 fi
24763
24764
24765   for ac_header in libssh2.h
24766 do :
24767   ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
24768 if test "x$ac_cv_header_libssh2_h" = xyes; then :
24769   cat >>confdefs.h <<_ACEOF
24770 #define HAVE_LIBSSH2_H 1
24771 _ACEOF
24772  curl_ssh_msg="enabled (libSSH2)"
24773     LIBSSH2_ENABLED=1
24774
24775 $as_echo "#define USE_LIBSSH2 1" >>confdefs.h
24776
24777     USE_LIBSSH2=1
24778
24779
24780 fi
24781
24782 done
24783
24784
24785   if test X"$OPT_LIBSSH2" != Xoff &&
24786      test "$LIBSSH2_ENABLED" != "1"; then
24787     as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
24788   fi
24789
24790   if test "$LIBSSH2_ENABLED" = "1"; then
24791     if test -n "$DIR_SSH2"; then
24792
24793                                    for ac_func in libssh2_version libssh2_init libssh2_exit \
24794                        libssh2_scp_send64 libssh2_session_handshake
24795 do :
24796   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24797 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24798 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24799   cat >>confdefs.h <<_ACEOF
24800 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24801 _ACEOF
24802
24803 fi
24804 done
24805
24806        if test "x$cross_compiling" != "xyes"; then
24807          LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
24808          export LD_LIBRARY_PATH
24809          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&5
24810 $as_echo "$as_me: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&6;}
24811        fi
24812     fi
24813   else
24814         LDFLAGS=$CLEANLDFLAGS
24815     CPPFLAGS=$CLEANCPPFLAGS
24816     LIBS=$CLEANLIBS
24817   fi
24818 fi
24819
24820
24821 OPT_LIBRTMP=off
24822
24823 # Check whether --with-librtmp was given.
24824 if test "${with_librtmp+set}" = set; then :
24825   withval=$with_librtmp; OPT_LIBRTMP=$withval
24826 fi
24827
24828
24829 if test X"$OPT_LIBRTMP" != Xno; then
24830     CLEANLDFLAGS="$LDFLAGS"
24831   CLEANCPPFLAGS="$CPPFLAGS"
24832   CLEANLIBS="$LIBS"
24833
24834   case "$OPT_LIBRTMP" in
24835   yes)
24836
24837
24838     PKGCONFIG="no"
24839
24840     if test -n "$ac_tool_prefix"; then
24841   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24842 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24844 $as_echo_n "checking for $ac_word... " >&6; }
24845 if ${ac_cv_path_PKGCONFIG+:} false; then :
24846   $as_echo_n "(cached) " >&6
24847 else
24848   case $PKGCONFIG in
24849   [\\/]* | ?:[\\/]*)
24850   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24851   ;;
24852   *)
24853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24854 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24855 for as_dir in $as_dummy
24856 do
24857   IFS=$as_save_IFS
24858   test -z "$as_dir" && as_dir=.
24859     for ac_exec_ext in '' $ac_executable_extensions; do
24860   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24861     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24863     break 2
24864   fi
24865 done
24866   done
24867 IFS=$as_save_IFS
24868
24869   ;;
24870 esac
24871 fi
24872 PKGCONFIG=$ac_cv_path_PKGCONFIG
24873 if test -n "$PKGCONFIG"; then
24874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24875 $as_echo "$PKGCONFIG" >&6; }
24876 else
24877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24878 $as_echo "no" >&6; }
24879 fi
24880
24881
24882 fi
24883 if test -z "$ac_cv_path_PKGCONFIG"; then
24884   ac_pt_PKGCONFIG=$PKGCONFIG
24885   # Extract the first word of "pkg-config", so it can be a program name with args.
24886 set dummy pkg-config; ac_word=$2
24887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24888 $as_echo_n "checking for $ac_word... " >&6; }
24889 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24890   $as_echo_n "(cached) " >&6
24891 else
24892   case $ac_pt_PKGCONFIG in
24893   [\\/]* | ?:[\\/]*)
24894   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24895   ;;
24896   *)
24897   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24898 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24899 for as_dir in $as_dummy
24900 do
24901   IFS=$as_save_IFS
24902   test -z "$as_dir" && as_dir=.
24903     for ac_exec_ext in '' $ac_executable_extensions; do
24904   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24905     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24907     break 2
24908   fi
24909 done
24910   done
24911 IFS=$as_save_IFS
24912
24913   ;;
24914 esac
24915 fi
24916 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24917 if test -n "$ac_pt_PKGCONFIG"; then
24918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24919 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24920 else
24921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24922 $as_echo "no" >&6; }
24923 fi
24924
24925   if test "x$ac_pt_PKGCONFIG" = x; then
24926     PKGCONFIG="no"
24927   else
24928     case $cross_compiling:$ac_tool_warned in
24929 yes:)
24930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24932 ac_tool_warned=yes ;;
24933 esac
24934     PKGCONFIG=$ac_pt_PKGCONFIG
24935   fi
24936 else
24937   PKGCONFIG="$ac_cv_path_PKGCONFIG"
24938 fi
24939
24940
24941     if test x$PKGCONFIG != xno; then
24942       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
24943 $as_echo_n "checking for librtmp options with pkg-config... " >&6; }
24944             itexists=`
24945     if test -n ""; then
24946       PKG_CONFIG_LIBDIR=""
24947       export PKG_CONFIG_LIBDIR
24948     fi
24949          $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
24950
24951       if test -z "$itexists"; then
24952                         PKGCONFIG="no"
24953         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24954 $as_echo "no" >&6; }
24955       else
24956         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24957 $as_echo "found" >&6; }
24958       fi
24959     fi
24960
24961
24962     if test "$PKGCONFIG" != "no" ; then
24963       LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
24964       LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
24965       CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
24966       version=`$PKGCONFIG --modversion librtmp`
24967       DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
24968     else
24969                   as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
24970     fi
24971
24972     ;;
24973   off)
24974         LIB_RTMP="-lrtmp"
24975     ;;
24976   *)
24977         PREFIX_RTMP=$OPT_LIBRTMP
24978     ;;
24979   esac
24980
24981     if test -n "$PREFIX_RTMP"; then
24982     LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
24983     CPP_RTMP=-I${PREFIX_RTMP}/include
24984     DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
24985   fi
24986
24987   LDFLAGS="$LDFLAGS $LD_RTMP"
24988   CPPFLAGS="$CPPFLAGS $CPP_RTMP"
24989   LIBS="$LIB_RTMP $LIBS"
24990
24991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
24992 $as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
24993 if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
24994   $as_echo_n "(cached) " >&6
24995 else
24996   ac_check_lib_save_LIBS=$LIBS
24997 LIBS="-lrtmp  $LIBS"
24998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24999 /* end confdefs.h.  */
25000
25001
25002 #ifdef __cplusplus
25003 extern "C"
25004 #endif
25005 char RTMP_Init ();
25006 int main (void)
25007 {
25008 return RTMP_Init ();
25009  ;
25010  return 0;
25011 }
25012 _ACEOF
25013 if ac_fn_c_try_link "$LINENO"; then :
25014   ac_cv_lib_rtmp_RTMP_Init=yes
25015 else
25016   ac_cv_lib_rtmp_RTMP_Init=no
25017 fi
25018 rm -f core conftest.err conftest.$ac_objext \
25019     conftest$ac_exeext conftest.$ac_ext
25020 LIBS=$ac_check_lib_save_LIBS
25021 fi
25022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
25023 $as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
25024 if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
25025
25026      for ac_header in librtmp/rtmp.h
25027 do :
25028   ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
25029 if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
25030   cat >>confdefs.h <<_ACEOF
25031 #define HAVE_LIBRTMP_RTMP_H 1
25032 _ACEOF
25033  curl_rtmp_msg="enabled (librtmp)"
25034         LIBRTMP_ENABLED=1
25035
25036 $as_echo "#define USE_LIBRTMP 1" >>confdefs.h
25037
25038         USE_LIBRTMP=1
25039
25040
25041 fi
25042
25043 done
25044
25045
25046 else
25047         LDFLAGS=$CLEANLDFLAGS
25048       CPPFLAGS=$CLEANCPPFLAGS
25049       LIBS=$CLEANLIBS
25050
25051 fi
25052
25053
25054   if test X"$OPT_LIBRTMP" != Xoff &&
25055      test "$LIBRTMP_ENABLED" != "1"; then
25056     as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
25057   fi
25058
25059 fi
25060
25061
25062 versioned_symbols_flavour=
25063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
25064 $as_echo_n "checking whether versioned symbols are wanted... " >&6; }
25065 # Check whether --enable-versioned-symbols was given.
25066 if test "${enable_versioned_symbols+set}" = set; then :
25067   enableval=$enable_versioned_symbols;  case "$enableval" in
25068   yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25069 $as_echo "yes" >&6; }
25070     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
25071 $as_echo_n "checking if libraries can be versioned... " >&6; }
25072     GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
25073     if test -z "$GLD"; then
25074         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25075 $as_echo "no" >&6; }
25076         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
25077 $as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
25078     else
25079         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25080 $as_echo "yes" >&6; }
25081         if test "x$OPENSSL_ENABLED" = "x1"; then
25082           versioned_symbols_flavour="OPENSSL_"
25083         elif test "x$GNUTLS_ENABLED" == "x1"; then
25084           versioned_symbols_flavour="GNUTLS_"
25085         elif test "x$NSS_ENABLED" == "x1"; then
25086           versioned_symbols_flavour="NSS_"
25087         elif test "x$POLARSSL_ENABLED" == "x1"; then
25088           versioned_symbols_flavour="POLARSSL_"
25089         elif test "x$CYASSL_ENABLED" == "x1"; then
25090           versioned_symbols_flavour="CYASSL_"
25091         elif test "x$AXTLS_ENABLED" == "x1"; then
25092           versioned_symbols_flavour="AXTLS_"
25093         elif test "x$WINSSL_ENABLED" == "x1"; then
25094           versioned_symbols_flavour="WINSSL_"
25095         elif test "x$DARWINSSL_ENABLED" == "x1"; then
25096           versioned_symbols_flavour="DARWINSSL_"
25097         else
25098           versioned_symbols_flavour=""
25099         fi
25100         versioned_symbols="yes"
25101     fi
25102     ;;
25103
25104   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25105 $as_echo "no" >&6; }
25106     ;;
25107   esac
25108
25109 else
25110
25111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25112 $as_echo "no" >&6; }
25113
25114
25115 fi
25116
25117
25118 CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
25119
25120  if test "x$versioned_symbols" = 'xyes'; then
25121   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
25122   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
25123 else
25124   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
25125   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
25126 fi
25127
25128
25129
25130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
25131 $as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
25132 OPT_WINIDN="default"
25133
25134 # Check whether --with-winidn was given.
25135 if test "${with_winidn+set}" = set; then :
25136   withval=$with_winidn; OPT_WINIDN=$withval
25137 fi
25138
25139 case "$OPT_WINIDN" in
25140   no|default)
25141         want_winidn="no"
25142     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25143 $as_echo "no" >&6; }
25144     ;;
25145   yes)
25146         want_winidn="yes"
25147     want_winidn_path="default"
25148     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25149 $as_echo "yes" >&6; }
25150     ;;
25151   *)
25152         want_winidn="yes"
25153     want_winidn_path="$withval"
25154     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
25155 $as_echo "yes ($withval)" >&6; }
25156     ;;
25157 esac
25158
25159 if test "$want_winidn" = "yes"; then
25160     clean_CPPFLAGS="$CPPFLAGS"
25161   clean_LDFLAGS="$LDFLAGS"
25162   clean_LIBS="$LIBS"
25163   WINIDN_LIBS="-lnormaliz"
25164   #
25165   if test "$want_winidn_path" != "default"; then
25166             WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
25167     WINIDN_CPPFLAGS="-I$want_winidn_path/include"
25168     WINIDN_DIR="$want_winidn_path/lib$libsuff"
25169   fi
25170   #
25171   CPPFLAGS="$WINIDN_CPPFLAGS $CPPFLAGS"
25172   LDFLAGS="$WINIDN_LDFLAGS $LDFLAGS"
25173   LIBS="$WINIDN_LIBS $LIBS"
25174   #
25175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
25176 $as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
25177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25178 /* end confdefs.h.  */
25179
25180
25181 #define IdnToUnicode innocuous_IdnToUnicode
25182 #ifdef __STDC__
25183 # include <limits.h>
25184 #else
25185 # include <assert.h>
25186 #endif
25187 #undef IdnToUnicode
25188 #ifdef __cplusplus
25189 extern "C"
25190 #endif
25191 char IdnToUnicode ();
25192 #if defined __stub_IdnToUnicode || defined __stub___IdnToUnicode
25193 choke me
25194 #endif
25195
25196 int main (void)
25197 {
25198 return IdnToUnicode ();
25199  ;
25200  return 0;
25201 }
25202
25203 _ACEOF
25204 if ac_fn_c_try_link "$LINENO"; then :
25205
25206     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25207 $as_echo "yes" >&6; }
25208     tst_links_winidn="yes"
25209
25210 else
25211
25212     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25213 $as_echo "no" >&6; }
25214     tst_links_winidn="no"
25215
25216 fi
25217 rm -f core conftest.err conftest.$ac_objext \
25218     conftest$ac_exeext conftest.$ac_ext
25219   #
25220   if test "$tst_links_winidn" = "yes"; then
25221
25222 $as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
25223
25224
25225 $as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
25226
25227     IDN_ENABLED=1
25228
25229     curl_idn_msg="enabled (Windows-native)"
25230   else
25231     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
25232 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
25233     CPPFLAGS="$clean_CPPFLAGS"
25234     LDFLAGS="$clean_LDFLAGS"
25235     LIBS="$clean_LIBS"
25236   fi
25237 fi
25238
25239
25240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn" >&5
25241 $as_echo_n "checking whether to build with libidn... " >&6; }
25242 OPT_IDN="default"
25243
25244 # Check whether --with-libidn was given.
25245 if test "${with_libidn+set}" = set; then :
25246   withval=$with_libidn; OPT_IDN=$withval
25247 fi
25248
25249 case "$OPT_IDN" in
25250   no)
25251         want_idn="no"
25252     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25253 $as_echo "no" >&6; }
25254     ;;
25255   default)
25256         want_idn="yes"
25257     want_idn_path="default"
25258     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
25259 $as_echo "(assumed) yes" >&6; }
25260     ;;
25261   yes)
25262         want_idn="yes"
25263     want_idn_path="default"
25264     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25265 $as_echo "yes" >&6; }
25266     ;;
25267   *)
25268         want_idn="yes"
25269     want_idn_path="$withval"
25270     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
25271 $as_echo "yes ($withval)" >&6; }
25272     ;;
25273 esac
25274
25275 if test "$want_idn" = "yes"; then
25276     clean_CPPFLAGS="$CPPFLAGS"
25277   clean_LDFLAGS="$LDFLAGS"
25278   clean_LIBS="$LIBS"
25279   PKGCONFIG="no"
25280   #
25281   if test "$want_idn_path" != "default"; then
25282         IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
25283
25284
25285     PKGCONFIG="no"
25286
25287     if test -n "$ac_tool_prefix"; then
25288   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25289 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25291 $as_echo_n "checking for $ac_word... " >&6; }
25292 if ${ac_cv_path_PKGCONFIG+:} false; then :
25293   $as_echo_n "(cached) " >&6
25294 else
25295   case $PKGCONFIG in
25296   [\\/]* | ?:[\\/]*)
25297   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25298   ;;
25299   *)
25300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25301 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25302 for as_dir in $as_dummy
25303 do
25304   IFS=$as_save_IFS
25305   test -z "$as_dir" && as_dir=.
25306     for ac_exec_ext in '' $ac_executable_extensions; do
25307   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25308     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25310     break 2
25311   fi
25312 done
25313   done
25314 IFS=$as_save_IFS
25315
25316   ;;
25317 esac
25318 fi
25319 PKGCONFIG=$ac_cv_path_PKGCONFIG
25320 if test -n "$PKGCONFIG"; then
25321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25322 $as_echo "$PKGCONFIG" >&6; }
25323 else
25324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25325 $as_echo "no" >&6; }
25326 fi
25327
25328
25329 fi
25330 if test -z "$ac_cv_path_PKGCONFIG"; then
25331   ac_pt_PKGCONFIG=$PKGCONFIG
25332   # Extract the first word of "pkg-config", so it can be a program name with args.
25333 set dummy pkg-config; ac_word=$2
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25335 $as_echo_n "checking for $ac_word... " >&6; }
25336 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25337   $as_echo_n "(cached) " >&6
25338 else
25339   case $ac_pt_PKGCONFIG in
25340   [\\/]* | ?:[\\/]*)
25341   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25342   ;;
25343   *)
25344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25345 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25346 for as_dir in $as_dummy
25347 do
25348   IFS=$as_save_IFS
25349   test -z "$as_dir" && as_dir=.
25350     for ac_exec_ext in '' $ac_executable_extensions; do
25351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25352     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25354     break 2
25355   fi
25356 done
25357   done
25358 IFS=$as_save_IFS
25359
25360   ;;
25361 esac
25362 fi
25363 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25364 if test -n "$ac_pt_PKGCONFIG"; then
25365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25366 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25367 else
25368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25369 $as_echo "no" >&6; }
25370 fi
25371
25372   if test "x$ac_pt_PKGCONFIG" = x; then
25373     PKGCONFIG="no"
25374   else
25375     case $cross_compiling:$ac_tool_warned in
25376 yes:)
25377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25379 ac_tool_warned=yes ;;
25380 esac
25381     PKGCONFIG=$ac_pt_PKGCONFIG
25382   fi
25383 else
25384   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25385 fi
25386
25387
25388     if test x$PKGCONFIG != xno; then
25389       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn options with pkg-config" >&5
25390 $as_echo_n "checking for libidn options with pkg-config... " >&6; }
25391             itexists=`
25392     if test -n "$IDN_PCDIR"; then
25393       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
25394       export PKG_CONFIG_LIBDIR
25395     fi
25396          $PKGCONFIG --exists libidn >/dev/null 2>&1 && echo 1`
25397
25398       if test -z "$itexists"; then
25399                         PKGCONFIG="no"
25400         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25401 $as_echo "no" >&6; }
25402       else
25403         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25404 $as_echo "found" >&6; }
25405       fi
25406     fi
25407
25408     if test "$PKGCONFIG" != "no"; then
25409       IDN_LIBS=`
25410     if test -n "$IDN_PCDIR"; then
25411       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
25412       export PKG_CONFIG_LIBDIR
25413     fi
25414          $PKGCONFIG --libs-only-l libidn 2>/dev/null`
25415       IDN_LDFLAGS=`
25416     if test -n "$IDN_PCDIR"; then
25417       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
25418       export PKG_CONFIG_LIBDIR
25419     fi
25420          $PKGCONFIG --libs-only-L libidn 2>/dev/null`
25421       IDN_CPPFLAGS=`
25422     if test -n "$IDN_PCDIR"; then
25423       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
25424       export PKG_CONFIG_LIBDIR
25425     fi
25426          $PKGCONFIG --cflags-only-I libidn 2>/dev/null`
25427       IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
25428     else
25429             IDN_LIBS="-lidn"
25430       IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
25431       IDN_CPPFLAGS="-I$want_idn_path/include"
25432       IDN_DIR="$want_idn_path/lib$libsuff"
25433     fi
25434   else
25435
25436
25437     PKGCONFIG="no"
25438
25439     if test -n "$ac_tool_prefix"; then
25440   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25441 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25443 $as_echo_n "checking for $ac_word... " >&6; }
25444 if ${ac_cv_path_PKGCONFIG+:} false; then :
25445   $as_echo_n "(cached) " >&6
25446 else
25447   case $PKGCONFIG in
25448   [\\/]* | ?:[\\/]*)
25449   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25450   ;;
25451   *)
25452   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25453 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25454 for as_dir in $as_dummy
25455 do
25456   IFS=$as_save_IFS
25457   test -z "$as_dir" && as_dir=.
25458     for ac_exec_ext in '' $ac_executable_extensions; do
25459   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25460     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25462     break 2
25463   fi
25464 done
25465   done
25466 IFS=$as_save_IFS
25467
25468   ;;
25469 esac
25470 fi
25471 PKGCONFIG=$ac_cv_path_PKGCONFIG
25472 if test -n "$PKGCONFIG"; then
25473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25474 $as_echo "$PKGCONFIG" >&6; }
25475 else
25476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25477 $as_echo "no" >&6; }
25478 fi
25479
25480
25481 fi
25482 if test -z "$ac_cv_path_PKGCONFIG"; then
25483   ac_pt_PKGCONFIG=$PKGCONFIG
25484   # Extract the first word of "pkg-config", so it can be a program name with args.
25485 set dummy pkg-config; ac_word=$2
25486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25487 $as_echo_n "checking for $ac_word... " >&6; }
25488 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25489   $as_echo_n "(cached) " >&6
25490 else
25491   case $ac_pt_PKGCONFIG in
25492   [\\/]* | ?:[\\/]*)
25493   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25494   ;;
25495   *)
25496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25497 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25498 for as_dir in $as_dummy
25499 do
25500   IFS=$as_save_IFS
25501   test -z "$as_dir" && as_dir=.
25502     for ac_exec_ext in '' $ac_executable_extensions; do
25503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25504     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25506     break 2
25507   fi
25508 done
25509   done
25510 IFS=$as_save_IFS
25511
25512   ;;
25513 esac
25514 fi
25515 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25516 if test -n "$ac_pt_PKGCONFIG"; then
25517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25518 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25519 else
25520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25521 $as_echo "no" >&6; }
25522 fi
25523
25524   if test "x$ac_pt_PKGCONFIG" = x; then
25525     PKGCONFIG="no"
25526   else
25527     case $cross_compiling:$ac_tool_warned in
25528 yes:)
25529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25531 ac_tool_warned=yes ;;
25532 esac
25533     PKGCONFIG=$ac_pt_PKGCONFIG
25534   fi
25535 else
25536   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25537 fi
25538
25539
25540     if test x$PKGCONFIG != xno; then
25541       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn options with pkg-config" >&5
25542 $as_echo_n "checking for libidn options with pkg-config... " >&6; }
25543             itexists=`
25544     if test -n ""; then
25545       PKG_CONFIG_LIBDIR=""
25546       export PKG_CONFIG_LIBDIR
25547     fi
25548          $PKGCONFIG --exists libidn >/dev/null 2>&1 && echo 1`
25549
25550       if test -z "$itexists"; then
25551                         PKGCONFIG="no"
25552         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25553 $as_echo "no" >&6; }
25554       else
25555         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25556 $as_echo "found" >&6; }
25557       fi
25558     fi
25559
25560     if test "$PKGCONFIG" != "no"; then
25561       IDN_LIBS=`$PKGCONFIG --libs-only-l libidn 2>/dev/null`
25562       IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn 2>/dev/null`
25563       IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn 2>/dev/null`
25564       IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
25565     else
25566             IDN_LIBS="-lidn"
25567     fi
25568   fi
25569   #
25570   if test "$PKGCONFIG" != "no"; then
25571     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
25572 $as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
25573     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
25574 $as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
25575     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
25576 $as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
25577     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
25578 $as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
25579   else
25580     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
25581 $as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
25582     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
25583 $as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
25584     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
25585 $as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
25586     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
25587 $as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
25588   fi
25589   #
25590   CPPFLAGS="$IDN_CPPFLAGS $CPPFLAGS"
25591   LDFLAGS="$IDN_LDFLAGS $LDFLAGS"
25592   LIBS="$IDN_LIBS $LIBS"
25593   #
25594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idna_to_ascii_4i can be linked" >&5
25595 $as_echo_n "checking if idna_to_ascii_4i can be linked... " >&6; }
25596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25597 /* end confdefs.h.  */
25598
25599
25600 #define idna_to_ascii_4i innocuous_idna_to_ascii_4i
25601 #ifdef __STDC__
25602 # include <limits.h>
25603 #else
25604 # include <assert.h>
25605 #endif
25606 #undef idna_to_ascii_4i
25607 #ifdef __cplusplus
25608 extern "C"
25609 #endif
25610 char idna_to_ascii_4i ();
25611 #if defined __stub_idna_to_ascii_4i || defined __stub___idna_to_ascii_4i
25612 choke me
25613 #endif
25614
25615 int main (void)
25616 {
25617 return idna_to_ascii_4i ();
25618  ;
25619  return 0;
25620 }
25621
25622 _ACEOF
25623 if ac_fn_c_try_link "$LINENO"; then :
25624
25625     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25626 $as_echo "yes" >&6; }
25627     tst_links_libidn="yes"
25628
25629 else
25630
25631     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25632 $as_echo "no" >&6; }
25633     tst_links_libidn="no"
25634
25635 fi
25636 rm -f core conftest.err conftest.$ac_objext \
25637     conftest$ac_exeext conftest.$ac_ext
25638   if test "$tst_links_libidn" = "no"; then
25639     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idna_to_ascii_lz can be linked" >&5
25640 $as_echo_n "checking if idna_to_ascii_lz can be linked... " >&6; }
25641     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25642 /* end confdefs.h.  */
25643
25644
25645 #define idna_to_ascii_lz innocuous_idna_to_ascii_lz
25646 #ifdef __STDC__
25647 # include <limits.h>
25648 #else
25649 # include <assert.h>
25650 #endif
25651 #undef idna_to_ascii_lz
25652 #ifdef __cplusplus
25653 extern "C"
25654 #endif
25655 char idna_to_ascii_lz ();
25656 #if defined __stub_idna_to_ascii_lz || defined __stub___idna_to_ascii_lz
25657 choke me
25658 #endif
25659
25660 int main (void)
25661 {
25662 return idna_to_ascii_lz ();
25663  ;
25664  return 0;
25665 }
25666
25667 _ACEOF
25668 if ac_fn_c_try_link "$LINENO"; then :
25669
25670       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25671 $as_echo "yes" >&6; }
25672       tst_links_libidn="yes"
25673
25674 else
25675
25676       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25677 $as_echo "no" >&6; }
25678       tst_links_libidn="no"
25679
25680 fi
25681 rm -f core conftest.err conftest.$ac_objext \
25682     conftest$ac_exeext conftest.$ac_ext
25683   fi
25684   #
25685   if test "$tst_links_libidn" = "yes"; then
25686
25687 $as_echo "#define HAVE_LIBIDN 1" >>confdefs.h
25688
25689         for ac_func in idn_free idna_strerror tld_strerror
25690 do :
25691   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25692 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25693 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25694   cat >>confdefs.h <<_ACEOF
25695 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25696 _ACEOF
25697
25698 fi
25699 done
25700
25701     for ac_header in idn-free.h tld.h
25702 do :
25703   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25704 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25705 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25706   cat >>confdefs.h <<_ACEOF
25707 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25708 _ACEOF
25709
25710 fi
25711
25712 done
25713
25714     if test "x$ac_cv_header_tld_h" = "xyes"; then
25715       IDN_ENABLED=1
25716
25717       curl_idn_msg="enabled"
25718       if test -n "$IDN_DIR"; then
25719         LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$IDN_DIR"
25720         export LD_LIBRARY_PATH
25721         { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to LD_LIBRARY_PATH" >&5
25722 $as_echo "$as_me: Added $IDN_DIR to LD_LIBRARY_PATH" >&6;}
25723       fi
25724     else
25725       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libraries for IDN support too old: IDN disabled" >&5
25726 $as_echo "$as_me: WARNING: Libraries for IDN support too old: IDN disabled" >&2;}
25727       CPPFLAGS="$clean_CPPFLAGS"
25728       LDFLAGS="$clean_LDFLAGS"
25729       LIBS="$clean_LIBS"
25730     fi
25731   else
25732     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
25733 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
25734     CPPFLAGS="$clean_CPPFLAGS"
25735     LDFLAGS="$clean_LDFLAGS"
25736     LIBS="$clean_LIBS"
25737   fi
25738 fi
25739
25740
25741
25742
25743
25744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25745 $as_echo_n "checking for ANSI C header files... " >&6; }
25746 if ${ac_cv_header_stdc+:} false; then :
25747   $as_echo_n "(cached) " >&6
25748 else
25749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25750 /* end confdefs.h.  */
25751 #include <stdlib.h>
25752 #include <stdarg.h>
25753 #include <string.h>
25754 #include <float.h>
25755
25756 int main (void)
25757 {
25758
25759  ;
25760  return 0;
25761 }
25762 _ACEOF
25763 if ac_fn_c_try_compile "$LINENO"; then :
25764   ac_cv_header_stdc=yes
25765 else
25766   ac_cv_header_stdc=no
25767 fi
25768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25769
25770 if test $ac_cv_header_stdc = yes; then
25771   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25772   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25773 /* end confdefs.h.  */
25774 #include <string.h>
25775
25776 _ACEOF
25777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25778   $EGREP "memchr" >/dev/null 2>&1; then :
25779
25780 else
25781   ac_cv_header_stdc=no
25782 fi
25783 rm -f conftest*
25784
25785 fi
25786
25787 if test $ac_cv_header_stdc = yes; then
25788   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25790 /* end confdefs.h.  */
25791 #include <stdlib.h>
25792
25793 _ACEOF
25794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25795   $EGREP "free" >/dev/null 2>&1; then :
25796
25797 else
25798   ac_cv_header_stdc=no
25799 fi
25800 rm -f conftest*
25801
25802 fi
25803
25804 if test $ac_cv_header_stdc = yes; then
25805   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25806   if test "$cross_compiling" = yes; then :
25807   :
25808 else
25809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25810 /* end confdefs.h.  */
25811 #include <ctype.h>
25812 #include <stdlib.h>
25813 #if ((' ' & 0x0FF) == 0x020)
25814 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25815 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25816 #else
25817 # define ISLOWER(c) \
25818                    (('a' <= (c) && (c) <= 'i') \
25819                      || ('j' <= (c) && (c) <= 'r') \
25820                      || ('s' <= (c) && (c) <= 'z'))
25821 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25822 #endif
25823
25824 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25825 int
25826 main ()
25827 {
25828   int i;
25829   for (i = 0; i < 256; i++)
25830     if (XOR (islower (i), ISLOWER (i))
25831         || toupper (i) != TOUPPER (i))
25832       return 2;
25833   return 0;
25834 }
25835 _ACEOF
25836 if ac_fn_c_try_run "$LINENO"; then :
25837
25838 else
25839   ac_cv_header_stdc=no
25840 fi
25841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25842   conftest.$ac_objext conftest.beam conftest.$ac_ext
25843 fi
25844
25845 fi
25846 fi
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25848 $as_echo "$ac_cv_header_stdc" >&6; }
25849 if test $ac_cv_header_stdc = yes; then
25850
25851 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25852
25853 fi
25854
25855
25856
25857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
25858 $as_echo_n "checking for malloc.h... " >&6; }
25859 if ${ac_cv_header_malloc_h+:} false; then :
25860   $as_echo_n "(cached) " >&6
25861 else
25862
25863     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25864 /* end confdefs.h.  */
25865
25866
25867 #include <malloc.h>
25868
25869 int main (void)
25870 {
25871
25872         void *p = malloc(10);
25873         void *q = calloc(10,10);
25874         free(p);
25875         free(q);
25876
25877  ;
25878  return 0;
25879 }
25880
25881 _ACEOF
25882 if ac_fn_c_try_compile "$LINENO"; then :
25883
25884       ac_cv_header_malloc_h="yes"
25885
25886 else
25887
25888       ac_cv_header_malloc_h="no"
25889
25890 fi
25891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25892
25893 fi
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_malloc_h" >&5
25895 $as_echo "$ac_cv_header_malloc_h" >&6; }
25896   if test "$ac_cv_header_malloc_h" = "yes"; then
25897
25898 cat >>confdefs.h <<_ACEOF
25899 #define HAVE_MALLOC_H 1
25900 _ACEOF
25901
25902     #
25903     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25904 /* end confdefs.h.  */
25905
25906
25907 #include <stdlib.h>
25908
25909 int main (void)
25910 {
25911
25912         void *p = malloc(10);
25913         void *q = calloc(10,10);
25914         free(p);
25915         free(q);
25916
25917  ;
25918  return 0;
25919 }
25920
25921 _ACEOF
25922 if ac_fn_c_try_compile "$LINENO"; then :
25923
25924       curl_cv_need_header_malloc_h="no"
25925
25926 else
25927
25928       curl_cv_need_header_malloc_h="yes"
25929
25930 fi
25931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25932     #
25933     case "$curl_cv_need_header_malloc_h" in
25934       yes)
25935
25936 cat >>confdefs.h <<_ACEOF
25937 #define NEED_MALLOC_H 1
25938 _ACEOF
25939
25940         ;;
25941     esac
25942   fi
25943
25944
25945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
25946 $as_echo_n "checking for memory.h... " >&6; }
25947 if ${ac_cv_header_memory_h+:} false; then :
25948   $as_echo_n "(cached) " >&6
25949 else
25950
25951     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25952 /* end confdefs.h.  */
25953
25954
25955 #include <memory.h>
25956
25957 int main (void)
25958 {
25959
25960         void *p = malloc(10);
25961         void *q = calloc(10,10);
25962         free(p);
25963         free(q);
25964
25965  ;
25966  return 0;
25967 }
25968
25969 _ACEOF
25970 if ac_fn_c_try_compile "$LINENO"; then :
25971
25972       ac_cv_header_memory_h="yes"
25973
25974 else
25975
25976       ac_cv_header_memory_h="no"
25977
25978 fi
25979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25980
25981 fi
25982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_memory_h" >&5
25983 $as_echo "$ac_cv_header_memory_h" >&6; }
25984   if test "$ac_cv_header_memory_h" = "yes"; then
25985
25986 cat >>confdefs.h <<_ACEOF
25987 #define HAVE_MEMORY_H 1
25988 _ACEOF
25989
25990     #
25991     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25992 /* end confdefs.h.  */
25993
25994
25995 #include <stdlib.h>
25996
25997 int main (void)
25998 {
25999
26000         void *p = malloc(10);
26001         void *q = calloc(10,10);
26002         free(p);
26003         free(q);
26004
26005  ;
26006  return 0;
26007 }
26008
26009 _ACEOF
26010 if ac_fn_c_try_compile "$LINENO"; then :
26011
26012       curl_cv_need_header_memory_h="no"
26013
26014 else
26015
26016       curl_cv_need_header_memory_h="yes"
26017
26018 fi
26019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26020     #
26021     case "$curl_cv_need_header_memory_h" in
26022       yes)
26023
26024 cat >>confdefs.h <<_ACEOF
26025 #define NEED_MEMORY_H 1
26026 _ACEOF
26027
26028         ;;
26029     esac
26030   fi
26031
26032
26033 for ac_header in sys/types.h \
26034         sys/time.h \
26035         sys/select.h \
26036         sys/socket.h \
26037         sys/ioctl.h \
26038         sys/uio.h \
26039         assert.h \
26040         unistd.h \
26041         stdlib.h \
26042         limits.h \
26043         arpa/inet.h \
26044         net/if.h \
26045         netinet/in.h \
26046         sys/un.h \
26047         netinet/tcp.h \
26048         netdb.h \
26049         sys/sockio.h \
26050         sys/stat.h \
26051         sys/param.h \
26052         termios.h \
26053         termio.h \
26054         sgtty.h \
26055         fcntl.h \
26056         alloca.h \
26057         time.h \
26058         io.h \
26059         pwd.h \
26060         utime.h \
26061         sys/utime.h \
26062         sys/poll.h \
26063         poll.h \
26064         socket.h \
26065         sys/resource.h \
26066         libgen.h \
26067         locale.h \
26068         errno.h \
26069         stdbool.h \
26070         arpa/tftp.h \
26071         sys/filio.h \
26072         sys/wait.h \
26073         setjmp.h
26074 do :
26075   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26076 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
26077 #ifdef HAVE_SYS_TYPES_H
26078 #include <sys/types.h>
26079 #endif
26080 #ifdef HAVE_SYS_TIME_H
26081 #include <sys/time.h>
26082 #endif
26083 #ifdef HAVE_SYS_SELECT_H
26084 #include <sys/select.h>
26085 #endif
26086 #ifdef HAVE_SYS_SOCKET_H
26087 #include <sys/socket.h>
26088 #endif
26089 #ifdef HAVE_NETINET_IN_H
26090 #include <netinet/in.h>
26091 #endif
26092 #ifdef HAVE_SYS_UN_H
26093 #include <sys/un.h>
26094 #endif
26095
26096
26097 "
26098 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26099   cat >>confdefs.h <<_ACEOF
26100 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26101 _ACEOF
26102
26103 fi
26104
26105 done
26106
26107
26108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26109 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26110 if ${ac_cv_c_const+:} false; then :
26111   $as_echo_n "(cached) " >&6
26112 else
26113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26114 /* end confdefs.h.  */
26115
26116 int main (void)
26117 {
26118
26119 #ifndef __cplusplus
26120   /* Ultrix mips cc rejects this sort of thing.  */
26121   typedef int charset[2];
26122   const charset cs = { 0, 0 };
26123   /* SunOS 4.1.1 cc rejects this.  */
26124   char const *const *pcpcc;
26125   char **ppc;
26126   /* NEC SVR4.0.2 mips cc rejects this.  */
26127   struct point {int x, y;};
26128   static struct point const zero = {0,0};
26129   /* AIX XL C 1.02.0.0 rejects this.
26130      It does not let you subtract one const X* pointer from another in
26131      an arm of an if-expression whose if-part is not a constant
26132      expression */
26133   const char *g = "string";
26134   pcpcc = &g + (g ? g-g : 0);
26135   /* HPUX 7.0 cc rejects these. */
26136   ++pcpcc;
26137   ppc = (char**) pcpcc;
26138   pcpcc = (char const *const *) ppc;
26139   { /* SCO 3.2v4 cc rejects this sort of thing.  */
26140     char tx;
26141     char *t = &tx;
26142     char const *s = 0 ? (char *) 0 : (char const *) 0;
26143
26144     *t++ = 0;
26145     if (s) return 0;
26146   }
26147   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26148     int x[] = {25, 17};
26149     const int *foo = &x[0];
26150     ++foo;
26151   }
26152   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26153     typedef const int *iptr;
26154     iptr p = 0;
26155     ++p;
26156   }
26157   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26158        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26159     struct s { int j; const int *ap[3]; } bx;
26160     struct s *b = &bx; b->j = 5;
26161   }
26162   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26163     const int foo = 10;
26164     if (!foo) return 0;
26165   }
26166   return !cs[0] && !zero.x;
26167 #endif
26168
26169  ;
26170  return 0;
26171 }
26172 _ACEOF
26173 if ac_fn_c_try_compile "$LINENO"; then :
26174   ac_cv_c_const=yes
26175 else
26176   ac_cv_c_const=no
26177 fi
26178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26179 fi
26180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26181 $as_echo "$ac_cv_c_const" >&6; }
26182 if test $ac_cv_c_const = no; then
26183
26184 $as_echo "#define const /**/" >>confdefs.h
26185
26186 fi
26187
26188
26189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
26190 $as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
26191 if ${curl_cv_variadic_macros_c99+:} false; then :
26192   $as_echo_n "(cached) " >&6
26193 else
26194
26195     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26196 /* end confdefs.h.  */
26197
26198
26199 #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
26200 #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
26201         int fun3(int arg1, int arg2, int arg3);
26202         int fun2(int arg1, int arg2);
26203         int fun3(int arg1, int arg2, int arg3)
26204         { return arg1 + arg2 + arg3; }
26205         int fun2(int arg1, int arg2)
26206         { return arg1 + arg2; }
26207
26208 int main (void)
26209 {
26210
26211         int res3 = c99_vmacro3(1, 2, 3);
26212         int res2 = c99_vmacro2(1, 2);
26213
26214  ;
26215  return 0;
26216 }
26217
26218 _ACEOF
26219 if ac_fn_c_try_compile "$LINENO"; then :
26220
26221       curl_cv_variadic_macros_c99="yes"
26222
26223 else
26224
26225       curl_cv_variadic_macros_c99="no"
26226
26227 fi
26228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26229
26230 fi
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
26232 $as_echo "$curl_cv_variadic_macros_c99" >&6; }
26233   case "$curl_cv_variadic_macros_c99" in
26234     yes)
26235
26236 cat >>confdefs.h <<_ACEOF
26237 #define HAVE_VARIADIC_MACROS_C99 1
26238 _ACEOF
26239
26240       ;;
26241   esac
26242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
26243 $as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
26244 if ${curl_cv_variadic_macros_gcc+:} false; then :
26245   $as_echo_n "(cached) " >&6
26246 else
26247
26248     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26249 /* end confdefs.h.  */
26250
26251
26252 #define gcc_vmacro3(first, args...) fun3(first, args)
26253 #define gcc_vmacro2(first, args...) fun2(first, args)
26254         int fun3(int arg1, int arg2, int arg3);
26255         int fun2(int arg1, int arg2);
26256         int fun3(int arg1, int arg2, int arg3)
26257         { return arg1 + arg2 + arg3; }
26258         int fun2(int arg1, int arg2)
26259         { return arg1 + arg2; }
26260
26261 int main (void)
26262 {
26263
26264         int res3 = gcc_vmacro3(1, 2, 3);
26265         int res2 = gcc_vmacro2(1, 2);
26266
26267  ;
26268  return 0;
26269 }
26270
26271 _ACEOF
26272 if ac_fn_c_try_compile "$LINENO"; then :
26273
26274       curl_cv_variadic_macros_gcc="yes"
26275
26276 else
26277
26278       curl_cv_variadic_macros_gcc="no"
26279
26280 fi
26281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26282
26283 fi
26284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
26285 $as_echo "$curl_cv_variadic_macros_gcc" >&6; }
26286   case "$curl_cv_variadic_macros_gcc" in
26287     yes)
26288
26289 cat >>confdefs.h <<_ACEOF
26290 #define HAVE_VARIADIC_MACROS_GCC 1
26291 _ACEOF
26292
26293       ;;
26294   esac
26295
26296 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26297 if test "x$ac_cv_type_size_t" = xyes; then :
26298
26299 else
26300
26301 cat >>confdefs.h <<_ACEOF
26302 #define size_t unsigned int
26303 _ACEOF
26304
26305 fi
26306
26307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26308 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26309 if ${ac_cv_header_time+:} false; then :
26310   $as_echo_n "(cached) " >&6
26311 else
26312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26313 /* end confdefs.h.  */
26314 #include <sys/types.h>
26315 #include <sys/time.h>
26316 #include <time.h>
26317
26318 int main (void)
26319 {
26320 if ((struct tm *) 0)
26321 return 0;
26322  ;
26323  return 0;
26324 }
26325 _ACEOF
26326 if ac_fn_c_try_compile "$LINENO"; then :
26327   ac_cv_header_time=yes
26328 else
26329   ac_cv_header_time=no
26330 fi
26331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26332 fi
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26334 $as_echo "$ac_cv_header_time" >&6; }
26335 if test $ac_cv_header_time = yes; then
26336
26337 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26338
26339 fi
26340
26341
26342         for ac_header in sys/types.h sys/time.h time.h sys/socket.h
26343 do :
26344   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26345 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26346 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26347   cat >>confdefs.h <<_ACEOF
26348 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26349 _ACEOF
26350
26351 fi
26352
26353 done
26354
26355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
26356 $as_echo_n "checking for struct timeval... " >&6; }
26357 if ${ac_cv_struct_timeval+:} false; then :
26358   $as_echo_n "(cached) " >&6
26359 else
26360
26361     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26362 /* end confdefs.h.  */
26363
26364
26365 #undef inline
26366 #ifdef HAVE_WINDOWS_H
26367 #ifndef WIN32_LEAN_AND_MEAN
26368 #define WIN32_LEAN_AND_MEAN
26369 #endif
26370 #include <windows.h>
26371 #ifdef HAVE_WINSOCK2_H
26372 #include <winsock2.h>
26373 #else
26374 #ifdef HAVE_WINSOCK_H
26375 #include <winsock.h>
26376 #endif
26377 #endif
26378 #endif
26379 #ifdef HAVE_SYS_TYPES_H
26380 #include <sys/types.h>
26381 #endif
26382 #ifdef HAVE_SYS_TIME_H
26383 #include <sys/time.h>
26384 #ifdef TIME_WITH_SYS_TIME
26385 #include <time.h>
26386 #endif
26387 #else
26388 #ifdef HAVE_TIME_H
26389 #include <time.h>
26390 #endif
26391 #endif
26392 #ifdef HAVE_SYS_SOCKET_H
26393 #include <sys/socket.h>
26394 #endif
26395
26396 int main (void)
26397 {
26398
26399         struct timeval ts;
26400         ts.tv_sec  = 0;
26401         ts.tv_usec = 0;
26402
26403  ;
26404  return 0;
26405 }
26406
26407 _ACEOF
26408 if ac_fn_c_try_compile "$LINENO"; then :
26409
26410       ac_cv_struct_timeval="yes"
26411
26412 else
26413
26414       ac_cv_struct_timeval="no"
26415
26416 fi
26417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26418
26419 fi
26420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timeval" >&5
26421 $as_echo "$ac_cv_struct_timeval" >&6; }
26422   case "$ac_cv_struct_timeval" in
26423     yes)
26424
26425 cat >>confdefs.h <<_ACEOF
26426 #define HAVE_STRUCT_TIMEVAL 1
26427 _ACEOF
26428
26429       ;;
26430   esac
26431
26432
26433
26434     if test "x$cross_compiling" != xyes; then
26435
26436             { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
26437 $as_echo_n "checking run-time libs availability... " >&6; }
26438     if test "$cross_compiling" = yes; then :
26439   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26441 as_fn_error $? "cannot run test program while cross compiling
26442 See \`config.log' for more details" "$LINENO" 5; }
26443 else
26444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26445 /* end confdefs.h.  */
26446
26447 main()
26448 {
26449   return 0;
26450 }
26451
26452 _ACEOF
26453 if ac_fn_c_try_run "$LINENO"; then :
26454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
26455 $as_echo "fine" >&6; }
26456 else
26457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
26458 $as_echo "failed" >&6; }
26459     as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
26460
26461 fi
26462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26463   conftest.$ac_objext conftest.beam conftest.$ac_ext
26464 fi
26465
26466
26467       fi
26468
26469
26470 # The cast to long int works around a bug in the HP C Compiler
26471 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26472 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26473 # This bug is HP SR number 8606223364.
26474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
26475 $as_echo_n "checking size of size_t... " >&6; }
26476 if ${ac_cv_sizeof_size_t+:} false; then :
26477   $as_echo_n "(cached) " >&6
26478 else
26479   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
26480
26481 else
26482   if test "$ac_cv_type_size_t" = yes; then
26483      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26485 as_fn_error 77 "cannot compute sizeof (size_t)
26486 See \`config.log' for more details" "$LINENO" 5; }
26487    else
26488      ac_cv_sizeof_size_t=0
26489    fi
26490 fi
26491
26492 fi
26493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
26494 $as_echo "$ac_cv_sizeof_size_t" >&6; }
26495
26496
26497
26498 cat >>confdefs.h <<_ACEOF
26499 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
26500 _ACEOF
26501
26502
26503 # The cast to long int works around a bug in the HP C Compiler
26504 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26505 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26506 # This bug is HP SR number 8606223364.
26507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
26508 $as_echo_n "checking size of long... " >&6; }
26509 if ${ac_cv_sizeof_long+:} false; then :
26510   $as_echo_n "(cached) " >&6
26511 else
26512   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
26513
26514 else
26515   if test "$ac_cv_type_long" = yes; then
26516      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26518 as_fn_error 77 "cannot compute sizeof (long)
26519 See \`config.log' for more details" "$LINENO" 5; }
26520    else
26521      ac_cv_sizeof_long=0
26522    fi
26523 fi
26524
26525 fi
26526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
26527 $as_echo "$ac_cv_sizeof_long" >&6; }
26528
26529
26530
26531 cat >>confdefs.h <<_ACEOF
26532 #define SIZEOF_LONG $ac_cv_sizeof_long
26533 _ACEOF
26534
26535
26536 # The cast to long int works around a bug in the HP C Compiler
26537 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26538 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26539 # This bug is HP SR number 8606223364.
26540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26541 $as_echo_n "checking size of int... " >&6; }
26542 if ${ac_cv_sizeof_int+:} false; then :
26543   $as_echo_n "(cached) " >&6
26544 else
26545   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
26546
26547 else
26548   if test "$ac_cv_type_int" = yes; then
26549      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26551 as_fn_error 77 "cannot compute sizeof (int)
26552 See \`config.log' for more details" "$LINENO" 5; }
26553    else
26554      ac_cv_sizeof_int=0
26555    fi
26556 fi
26557
26558 fi
26559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26560 $as_echo "$ac_cv_sizeof_int" >&6; }
26561
26562
26563
26564 cat >>confdefs.h <<_ACEOF
26565 #define SIZEOF_INT $ac_cv_sizeof_int
26566 _ACEOF
26567
26568
26569 # The cast to long int works around a bug in the HP C Compiler
26570 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26571 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26572 # This bug is HP SR number 8606223364.
26573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
26574 $as_echo_n "checking size of short... " >&6; }
26575 if ${ac_cv_sizeof_short+:} false; then :
26576   $as_echo_n "(cached) " >&6
26577 else
26578   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
26579
26580 else
26581   if test "$ac_cv_type_short" = yes; then
26582      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26584 as_fn_error 77 "cannot compute sizeof (short)
26585 See \`config.log' for more details" "$LINENO" 5; }
26586    else
26587      ac_cv_sizeof_short=0
26588    fi
26589 fi
26590
26591 fi
26592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
26593 $as_echo "$ac_cv_sizeof_short" >&6; }
26594
26595
26596
26597 cat >>confdefs.h <<_ACEOF
26598 #define SIZEOF_SHORT $ac_cv_sizeof_short
26599 _ACEOF
26600
26601
26602
26603   if test -z "$ac_cv_sizeof_long" ||
26604     test "$ac_cv_sizeof_long" -eq "0"; then
26605     as_fn_error $? "cannot find out size of long." "$LINENO" 5
26606   fi
26607
26608 cat >>confdefs.h <<_EOF
26609 #define CURL_SIZEOF_LONG $ac_cv_sizeof_long
26610 _EOF
26611
26612
26613 # The cast to long int works around a bug in the HP C Compiler
26614 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26615 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26616 # This bug is HP SR number 8606223364.
26617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
26618 $as_echo_n "checking size of time_t... " >&6; }
26619 if ${ac_cv_sizeof_time_t+:} false; then :
26620   $as_echo_n "(cached) " >&6
26621 else
26622   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
26623
26624 else
26625   if test "$ac_cv_type_time_t" = yes; then
26626      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26628 as_fn_error 77 "cannot compute sizeof (time_t)
26629 See \`config.log' for more details" "$LINENO" 5; }
26630    else
26631      ac_cv_sizeof_time_t=0
26632    fi
26633 fi
26634
26635 fi
26636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
26637 $as_echo "$ac_cv_sizeof_time_t" >&6; }
26638
26639
26640
26641 cat >>confdefs.h <<_ACEOF
26642 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
26643 _ACEOF
26644
26645
26646 # The cast to long int works around a bug in the HP C Compiler
26647 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26648 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26649 # This bug is HP SR number 8606223364.
26650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
26651 $as_echo_n "checking size of off_t... " >&6; }
26652 if ${ac_cv_sizeof_off_t+:} false; then :
26653   $as_echo_n "(cached) " >&6
26654 else
26655   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
26656
26657 else
26658   if test "$ac_cv_type_off_t" = yes; then
26659      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26661 as_fn_error 77 "cannot compute sizeof (off_t)
26662 See \`config.log' for more details" "$LINENO" 5; }
26663    else
26664      ac_cv_sizeof_off_t=0
26665    fi
26666 fi
26667
26668 fi
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
26670 $as_echo "$ac_cv_sizeof_off_t" >&6; }
26671
26672
26673
26674 cat >>confdefs.h <<_ACEOF
26675 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
26676 _ACEOF
26677
26678
26679
26680 soname_bump=no
26681 if test x"$ac_cv_native_windows" != "xyes" &&
26682    test $ac_cv_sizeof_off_t -ne $curl_sizeof_curl_off_t; then
26683   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This libcurl built is probably not ABI compatible with previous" >&5
26684 $as_echo "$as_me: WARNING: This libcurl built is probably not ABI compatible with previous" >&2;}
26685   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&5
26686 $as_echo "$as_me: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&2;}
26687   soname_bump=yes
26688 fi
26689
26690
26691 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
26692 if test "x$ac_cv_type_long_long" = xyes; then :
26693
26694 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
26695
26696    longlong="yes"
26697
26698 fi
26699
26700
26701 if test "xyes" = "x$longlong"; then
26702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
26703 $as_echo_n "checking if numberLL works... " >&6; }
26704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26705 /* end confdefs.h.  */
26706
26707
26708
26709 int main (void)
26710 {
26711
26712       long long val = 1000LL;
26713
26714  ;
26715  return 0;
26716 }
26717
26718 _ACEOF
26719 if ac_fn_c_try_compile "$LINENO"; then :
26720
26721     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26722 $as_echo "yes" >&6; }
26723
26724 $as_echo "#define HAVE_LL 1" >>confdefs.h
26725
26726
26727 else
26728
26729     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26730 $as_echo "no" >&6; }
26731
26732 fi
26733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26734 fi
26735
26736
26737 # check for ssize_t
26738 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26739 if test "x$ac_cv_type_ssize_t" = xyes; then :
26740
26741 else
26742
26743 $as_echo "#define ssize_t int" >>confdefs.h
26744
26745 fi
26746
26747
26748 # check for bool type
26749 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
26750 #ifdef HAVE_SYS_TYPES_H
26751 #include <sys/types.h>
26752 #endif
26753 #ifdef HAVE_STDBOOL_H
26754 #include <stdbool.h>
26755 #endif
26756
26757 "
26758 if test "x$ac_cv_type_bool" = xyes; then :
26759
26760
26761 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
26762
26763
26764 fi
26765
26766
26767
26768 curl_includes_ws2tcpip="\
26769 /* includes start */
26770 #ifdef HAVE_WINDOWS_H
26771 #  ifndef WIN32_LEAN_AND_MEAN
26772 #    define WIN32_LEAN_AND_MEAN
26773 #  endif
26774 #  include <windows.h>
26775 #  ifdef HAVE_WINSOCK2_H
26776 #    include <winsock2.h>
26777 #    ifdef HAVE_WS2TCPIP_H
26778 #       include <ws2tcpip.h>
26779 #    endif
26780 #  endif
26781 #endif
26782 /* includes end */"
26783
26784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
26785 $as_echo_n "checking for windows.h... " >&6; }
26786 if ${ac_cv_header_windows_h+:} false; then :
26787   $as_echo_n "(cached) " >&6
26788 else
26789
26790     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26791 /* end confdefs.h.  */
26792
26793
26794 #undef inline
26795 #ifndef WIN32_LEAN_AND_MEAN
26796 #define WIN32_LEAN_AND_MEAN
26797 #endif
26798 #include <windows.h>
26799
26800 int main (void)
26801 {
26802
26803 #if defined(__CYGWIN__) || defined(__CEGCC__)
26804         HAVE_WINDOWS_H shall not be defined.
26805 #else
26806         int dummy=2*WINVER;
26807 #endif
26808
26809  ;
26810  return 0;
26811 }
26812
26813 _ACEOF
26814 if ac_fn_c_try_compile "$LINENO"; then :
26815
26816       ac_cv_header_windows_h="yes"
26817
26818 else
26819
26820       ac_cv_header_windows_h="no"
26821
26822 fi
26823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26824
26825 fi
26826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
26827 $as_echo "$ac_cv_header_windows_h" >&6; }
26828   case "$ac_cv_header_windows_h" in
26829     yes)
26830
26831 cat >>confdefs.h <<_ACEOF
26832 #define HAVE_WINDOWS_H 1
26833 _ACEOF
26834
26835
26836 cat >>confdefs.h <<_ACEOF
26837 #define WIN32_LEAN_AND_MEAN 1
26838 _ACEOF
26839
26840       ;;
26841   esac
26842
26843
26844     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
26845 $as_echo_n "checking for winsock2.h... " >&6; }
26846 if ${ac_cv_header_winsock2_h+:} false; then :
26847   $as_echo_n "(cached) " >&6
26848 else
26849
26850     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26851 /* end confdefs.h.  */
26852
26853
26854 #undef inline
26855 #ifndef WIN32_LEAN_AND_MEAN
26856 #define WIN32_LEAN_AND_MEAN
26857 #endif
26858 #include <windows.h>
26859 #include <winsock2.h>
26860
26861 int main (void)
26862 {
26863
26864 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
26865         HAVE_WINSOCK2_H shall not be defined.
26866 #else
26867         int dummy=2*IPPROTO_ESP;
26868 #endif
26869
26870  ;
26871  return 0;
26872 }
26873
26874 _ACEOF
26875 if ac_fn_c_try_compile "$LINENO"; then :
26876
26877       ac_cv_header_winsock2_h="yes"
26878
26879 else
26880
26881       ac_cv_header_winsock2_h="no"
26882
26883 fi
26884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26885
26886 fi
26887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
26888 $as_echo "$ac_cv_header_winsock2_h" >&6; }
26889   case "$ac_cv_header_winsock2_h" in
26890     yes)
26891
26892 cat >>confdefs.h <<_ACEOF
26893 #define HAVE_WINSOCK2_H 1
26894 _ACEOF
26895
26896       ;;
26897   esac
26898
26899
26900     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
26901 $as_echo_n "checking for ws2tcpip.h... " >&6; }
26902 if ${ac_cv_header_ws2tcpip_h+:} false; then :
26903   $as_echo_n "(cached) " >&6
26904 else
26905
26906     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26907 /* end confdefs.h.  */
26908
26909
26910 #undef inline
26911 #ifndef WIN32_LEAN_AND_MEAN
26912 #define WIN32_LEAN_AND_MEAN
26913 #endif
26914 #include <windows.h>
26915 #include <winsock2.h>
26916 #include <ws2tcpip.h>
26917
26918 int main (void)
26919 {
26920
26921 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
26922         HAVE_WS2TCPIP_H shall not be defined.
26923 #else
26924         int dummy=2*IP_PKTINFO;
26925 #endif
26926
26927  ;
26928  return 0;
26929 }
26930
26931 _ACEOF
26932 if ac_fn_c_try_compile "$LINENO"; then :
26933
26934       ac_cv_header_ws2tcpip_h="yes"
26935
26936 else
26937
26938       ac_cv_header_ws2tcpip_h="no"
26939
26940 fi
26941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26942
26943 fi
26944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
26945 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
26946   case "$ac_cv_header_ws2tcpip_h" in
26947     yes)
26948
26949 cat >>confdefs.h <<_ACEOF
26950 #define HAVE_WS2TCPIP_H 1
26951 _ACEOF
26952
26953       ;;
26954   esac
26955
26956
26957
26958 curl_includes_sys_socket="\
26959 /* includes start */
26960 #ifdef HAVE_SYS_TYPES_H
26961 #  include <sys/types.h>
26962 #endif
26963 #ifdef HAVE_SYS_SOCKET_H
26964 #  include <sys/socket.h>
26965 #endif
26966 /* includes end */"
26967   for ac_header in sys/types.h sys/socket.h
26968 do :
26969   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26970 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
26971 "
26972 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26973   cat >>confdefs.h <<_ACEOF
26974 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26975 _ACEOF
26976
26977 fi
26978
26979 done
26980
26981
26982
26983 curl_preprocess_callconv="\
26984 /* preprocess start */
26985 #ifdef HAVE_WINDOWS_H
26986 #  define FUNCALLCONV __stdcall
26987 #else
26988 #  define FUNCALLCONV
26989 #endif
26990 /* preprocess end */"
26991
26992
26993         #
26994     #
26995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5
26996 $as_echo_n "checking for curl_socklen_t data type... " >&6; }
26997   curl_typeof_curl_socklen_t="unknown"
26998   for arg1 in int SOCKET; do
26999     for arg2 in 'struct sockaddr' void; do
27000       for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
27001         if test "$curl_typeof_curl_socklen_t" = "unknown"; then
27002           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27003 /* end confdefs.h.  */
27004
27005
27006               $curl_includes_ws2tcpip
27007               $curl_includes_sys_socket
27008               $curl_preprocess_callconv
27009               extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
27010
27011 int main (void)
27012 {
27013
27014               $t *lenptr = 0;
27015               if(0 != getpeername(0, 0, lenptr))
27016                 return 1;
27017
27018  ;
27019  return 0;
27020 }
27021
27022 _ACEOF
27023 if ac_fn_c_try_compile "$LINENO"; then :
27024
27025             curl_typeof_curl_socklen_t="$t"
27026
27027 fi
27028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27029         fi
27030       done
27031     done
27032   done
27033   for t in socklen_t int; do
27034     if test "$curl_typeof_curl_socklen_t" = "void"; then
27035       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27036 /* end confdefs.h.  */
27037
27038
27039           $curl_includes_sys_socket
27040           typedef $t curl_socklen_t;
27041
27042 int main (void)
27043 {
27044
27045           curl_socklen_t dummy;
27046
27047  ;
27048  return 0;
27049 }
27050
27051 _ACEOF
27052 if ac_fn_c_try_compile "$LINENO"; then :
27053
27054         curl_typeof_curl_socklen_t="$t"
27055
27056 fi
27057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27058     fi
27059   done
27060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5
27061 $as_echo "$curl_typeof_curl_socklen_t" >&6; }
27062   if test "$curl_typeof_curl_socklen_t" = "void" ||
27063     test "$curl_typeof_curl_socklen_t" = "unknown"; then
27064     as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5
27065   fi
27066   #
27067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5
27068 $as_echo_n "checking size of curl_socklen_t... " >&6; }
27069   curl_sizeof_curl_socklen_t="unknown"
27070   curl_pull_headers_socklen_t="unknown"
27071   if test "$ac_cv_header_ws2tcpip_h" = "yes"; then
27072     tst_pull_header_checks='none ws2tcpip'
27073     tst_size_checks='4'
27074   else
27075     tst_pull_header_checks='none systypes syssocket'
27076     tst_size_checks='4 8 2'
27077   fi
27078   for tst_size in $tst_size_checks; do
27079     for tst_pull_headers in $tst_pull_header_checks; do
27080       if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
27081         case $tst_pull_headers in
27082           ws2tcpip)
27083             tmp_includes="$curl_includes_ws2tcpip"
27084             ;;
27085           systypes)
27086             tmp_includes="$curl_includes_sys_types"
27087             ;;
27088           syssocket)
27089             tmp_includes="$curl_includes_sys_socket"
27090             ;;
27091           *)
27092             tmp_includes=""
27093             ;;
27094         esac
27095         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27096 /* end confdefs.h.  */
27097
27098
27099             $tmp_includes
27100             typedef $curl_typeof_curl_socklen_t curl_socklen_t;
27101             typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1];
27102
27103 int main (void)
27104 {
27105
27106             curl_socklen_t dummy;
27107
27108  ;
27109  return 0;
27110 }
27111
27112 _ACEOF
27113 if ac_fn_c_try_compile "$LINENO"; then :
27114
27115           curl_sizeof_curl_socklen_t="$tst_size"
27116           curl_pull_headers_socklen_t="$tst_pull_headers"
27117
27118 fi
27119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27120       fi
27121     done
27122   done
27123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5
27124 $as_echo "$curl_sizeof_curl_socklen_t" >&6; }
27125   if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
27126     as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5
27127   fi
27128   #
27129   case $curl_pull_headers_socklen_t in
27130     ws2tcpip)
27131
27132 cat >>confdefs.h <<_EOF
27133 #define CURL_PULL_WS2TCPIP_H 1
27134 _EOF
27135
27136       ;;
27137     systypes)
27138
27139 cat >>confdefs.h <<_EOF
27140 #define CURL_PULL_SYS_TYPES_H 1
27141 _EOF
27142
27143       ;;
27144     syssocket)
27145
27146 cat >>confdefs.h <<_EOF
27147 #define CURL_PULL_SYS_TYPES_H 1
27148 _EOF
27149
27150
27151 cat >>confdefs.h <<_EOF
27152 #define CURL_PULL_SYS_SOCKET_H 1
27153 _EOF
27154
27155       ;;
27156   esac
27157
27158 cat >>confdefs.h <<_EOF
27159 #define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t
27160 _EOF
27161
27162
27163 cat >>confdefs.h <<_EOF
27164 #define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t
27165 _EOF
27166
27167
27168
27169
27170 curl_includes_poll="\
27171 /* includes start */
27172 #ifdef HAVE_SYS_TYPES_H
27173 #  include <sys/types.h>
27174 #endif
27175 #ifdef HAVE_POLL_H
27176 #  include <poll.h>
27177 #endif
27178 #ifdef HAVE_SYS_POLL_H
27179 #  include <sys/poll.h>
27180 #endif
27181 /* includes end */"
27182   for ac_header in sys/types.h poll.h sys/poll.h
27183 do :
27184   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27185 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
27186 "
27187 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27188   cat >>confdefs.h <<_ACEOF
27189 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27190 _ACEOF
27191
27192 fi
27193
27194 done
27195
27196
27197
27198     #
27199   tst_poll_events_macro_defined="unknown"
27200   #
27201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27202 /* end confdefs.h.  */
27203
27204
27205       $curl_includes_poll
27206
27207 int main (void)
27208 {
27209
27210 #if defined(events) || defined(revents)
27211       return 0;
27212 #else
27213       force compilation error
27214 #endif
27215
27216  ;
27217  return 0;
27218 }
27219
27220 _ACEOF
27221 if ac_fn_c_try_compile "$LINENO"; then :
27222
27223     tst_poll_events_macro_defined="yes"
27224
27225 else
27226
27227     tst_poll_events_macro_defined="no"
27228
27229 fi
27230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27231   #
27232   if test "$tst_poll_events_macro_defined" = "yes"; then
27233     if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
27234
27235 cat >>confdefs.h <<_EOF
27236 #define CURL_PULL_SYS_POLL_H 1
27237 _EOF
27238
27239     fi
27240   fi
27241   #
27242
27243
27244
27245   ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
27246 #undef inline
27247 #ifdef HAVE_WINDOWS_H
27248 #ifndef WIN32_LEAN_AND_MEAN
27249 #define WIN32_LEAN_AND_MEAN
27250 #endif
27251 #include <windows.h>
27252 #ifdef HAVE_WINSOCK2_H
27253 #include <winsock2.h>
27254 #else
27255 #ifdef HAVE_WINSOCK_H
27256 #include <winsock.h>
27257 #endif
27258 #endif
27259 #else
27260 #ifdef HAVE_SYS_TYPES_H
27261 #include <sys/types.h>
27262 #endif
27263 #ifdef HAVE_SYS_SOCKET_H
27264 #include <sys/socket.h>
27265 #endif
27266 #ifdef HAVE_NETINET_IN_H
27267 #include <netinet/in.h>
27268 #endif
27269 #ifdef HAVE_ARPA_INET_H
27270 #include <arpa/inet.h>
27271 #endif
27272 #endif
27273
27274 "
27275 if test "x$ac_cv_type_in_addr_t" = xyes; then :
27276
27277 else
27278
27279         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
27280 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
27281 if ${curl_cv_in_addr_t_equiv+:} false; then :
27282   $as_echo_n "(cached) " >&6
27283 else
27284
27285       curl_cv_in_addr_t_equiv="unknown"
27286       for t in "unsigned long" int size_t unsigned long; do
27287         if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
27288           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27289 /* end confdefs.h.  */
27290
27291
27292 #undef inline
27293 #ifdef HAVE_WINDOWS_H
27294 #ifndef WIN32_LEAN_AND_MEAN
27295 #define WIN32_LEAN_AND_MEAN
27296 #endif
27297 #include <windows.h>
27298 #ifdef HAVE_WINSOCK2_H
27299 #include <winsock2.h>
27300 #else
27301 #ifdef HAVE_WINSOCK_H
27302 #include <winsock.h>
27303 #endif
27304 #endif
27305 #else
27306 #ifdef HAVE_SYS_TYPES_H
27307 #include <sys/types.h>
27308 #endif
27309 #ifdef HAVE_SYS_SOCKET_H
27310 #include <sys/socket.h>
27311 #endif
27312 #ifdef HAVE_NETINET_IN_H
27313 #include <netinet/in.h>
27314 #endif
27315 #ifdef HAVE_ARPA_INET_H
27316 #include <arpa/inet.h>
27317 #endif
27318 #endif
27319
27320 int main (void)
27321 {
27322
27323               $t data = inet_addr ("1.2.3.4");
27324
27325  ;
27326  return 0;
27327 }
27328
27329 _ACEOF
27330 if ac_fn_c_try_link "$LINENO"; then :
27331
27332             curl_cv_in_addr_t_equiv="$t"
27333
27334 fi
27335 rm -f core conftest.err conftest.$ac_objext \
27336     conftest$ac_exeext conftest.$ac_ext
27337         fi
27338       done
27339
27340 fi
27341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
27342 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
27343     case "$curl_cv_in_addr_t_equiv" in
27344       unknown)
27345         as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
27346         ;;
27347       *)
27348
27349 cat >>confdefs.h <<_ACEOF
27350 #define in_addr_t $curl_cv_in_addr_t_equiv
27351 _ACEOF
27352
27353         ;;
27354     esac
27355
27356 fi
27357
27358
27359
27360
27361    ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
27362 #undef inline
27363 #ifdef HAVE_WINDOWS_H
27364 #ifndef WIN32_LEAN_AND_MEAN
27365 #define WIN32_LEAN_AND_MEAN
27366 #endif
27367 #include <windows.h>
27368 #ifdef HAVE_WINSOCK2_H
27369 #include <winsock2.h>
27370 #endif
27371 #else
27372 #ifdef HAVE_SYS_TYPES_H
27373 #include <sys/types.h>
27374 #endif
27375 #ifdef HAVE_SYS_SOCKET_H
27376 #include <sys/socket.h>
27377 #endif
27378 #ifdef HAVE_NETINET_IN_H
27379 #include <netinet/in.h>
27380 #endif
27381 #ifdef HAVE_ARPA_INET_H
27382 #include <arpa/inet.h>
27383 #endif
27384 #endif
27385
27386 "
27387 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
27388
27389 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
27390
27391 fi
27392
27393
27394
27395
27396   for ac_header in signal.h
27397 do :
27398   ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
27399 if test "x$ac_cv_header_signal_h" = xyes; then :
27400   cat >>confdefs.h <<_ACEOF
27401 #define HAVE_SIGNAL_H 1
27402 _ACEOF
27403
27404 fi
27405
27406 done
27407
27408   ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
27409 #ifdef HAVE_SIGNAL_H
27410 #include <signal.h>
27411 #endif
27412
27413 "
27414 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
27415
27416
27417 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
27418
27419
27420 fi
27421
27422   case "$ac_cv_type_sig_atomic_t" in
27423     yes)
27424       #
27425       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
27426 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
27427       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27428 /* end confdefs.h.  */
27429
27430
27431 #ifdef HAVE_SIGNAL_H
27432 #include <signal.h>
27433 #endif
27434
27435 int main (void)
27436 {
27437
27438           static volatile sig_atomic_t dummy = 0;
27439
27440  ;
27441  return 0;
27442 }
27443
27444 _ACEOF
27445 if ac_fn_c_try_link "$LINENO"; then :
27446
27447         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27448 $as_echo "no" >&6; }
27449         ac_cv_sig_atomic_t_volatile="no"
27450
27451 else
27452
27453         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27454 $as_echo "yes" >&6; }
27455         ac_cv_sig_atomic_t_volatile="yes"
27456
27457 fi
27458 rm -f core conftest.err conftest.$ac_objext \
27459     conftest$ac_exeext conftest.$ac_ext
27460       #
27461       if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then
27462
27463 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
27464
27465       fi
27466       ;;
27467   esac
27468
27469
27470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
27471 $as_echo_n "checking return type of signal handlers... " >&6; }
27472 if ${ac_cv_type_signal+:} false; then :
27473   $as_echo_n "(cached) " >&6
27474 else
27475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27476 /* end confdefs.h.  */
27477 #include <sys/types.h>
27478 #include <signal.h>
27479
27480 int main (void)
27481 {
27482 return *(signal (0, 0)) (0) == 1;
27483  ;
27484  return 0;
27485 }
27486 _ACEOF
27487 if ac_fn_c_try_compile "$LINENO"; then :
27488   ac_cv_type_signal=int
27489 else
27490   ac_cv_type_signal=void
27491 fi
27492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27493 fi
27494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27495 $as_echo "$ac_cv_type_signal" >&6; }
27496
27497 cat >>confdefs.h <<_ACEOF
27498 #define RETSIGTYPE $ac_cv_type_signal
27499 _ACEOF
27500
27501
27502
27503
27504     for ac_header in sys/select.h sys/socket.h
27505 do :
27506   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27507 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27508 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27509   cat >>confdefs.h <<_ACEOF
27510 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27511 _ACEOF
27512
27513 fi
27514
27515 done
27516
27517   #
27518   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
27519 $as_echo_n "checking for select... " >&6; }
27520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27521 /* end confdefs.h.  */
27522
27523
27524 #undef inline
27525 #ifdef HAVE_WINDOWS_H
27526 #ifndef WIN32_LEAN_AND_MEAN
27527 #define WIN32_LEAN_AND_MEAN
27528 #endif
27529 #include <windows.h>
27530 #ifdef HAVE_WINSOCK2_H
27531 #include <winsock2.h>
27532 #else
27533 #ifdef HAVE_WINSOCK_H
27534 #include <winsock.h>
27535 #endif
27536 #endif
27537 #endif
27538 #ifdef HAVE_SYS_TYPES_H
27539 #include <sys/types.h>
27540 #endif
27541 #ifdef HAVE_SYS_TIME_H
27542 #include <sys/time.h>
27543 #ifdef TIME_WITH_SYS_TIME
27544 #include <time.h>
27545 #endif
27546 #else
27547 #ifdef HAVE_TIME_H
27548 #include <time.h>
27549 #endif
27550 #endif
27551 #ifndef HAVE_WINDOWS_H
27552 #ifdef HAVE_SYS_SELECT_H
27553 #include <sys/select.h>
27554 #endif
27555 #ifdef HAVE_SYS_SOCKET_H
27556 #include <sys/socket.h>
27557 #endif
27558 #endif
27559
27560 int main (void)
27561 {
27562
27563       select(0, 0, 0, 0, 0);
27564
27565  ;
27566  return 0;
27567 }
27568
27569 _ACEOF
27570 if ac_fn_c_try_link "$LINENO"; then :
27571
27572     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27573 $as_echo "yes" >&6; }
27574     curl_cv_select="yes"
27575
27576 else
27577
27578     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27579 $as_echo "no" >&6; }
27580     curl_cv_select="no"
27581
27582 fi
27583 rm -f core conftest.err conftest.$ac_objext \
27584     conftest$ac_exeext conftest.$ac_ext
27585   #
27586   if test "$curl_cv_select" = "yes"; then
27587     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
27588 $as_echo_n "checking types of args and return type for select... " >&6; }
27589 if ${curl_cv_func_select_args+:} false; then :
27590   $as_echo_n "(cached) " >&6
27591 else
27592
27593       curl_cv_func_select_args="unknown"
27594       for sel_retv in 'int' 'ssize_t'; do
27595         for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
27596           for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
27597             for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
27598               if test "$curl_cv_func_select_args" = "unknown"; then
27599                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27600 /* end confdefs.h.  */
27601
27602
27603 #undef inline
27604 #ifdef HAVE_WINDOWS_H
27605 #ifndef WIN32_LEAN_AND_MEAN
27606 #define WIN32_LEAN_AND_MEAN
27607 #endif
27608 #include <windows.h>
27609 #ifdef HAVE_WINSOCK2_H
27610 #include <winsock2.h>
27611 #else
27612 #ifdef HAVE_WINSOCK_H
27613 #include <winsock.h>
27614 #endif
27615 #endif
27616 #define SELECTCALLCONV PASCAL
27617 #endif
27618 #ifdef HAVE_SYS_TYPES_H
27619 #include <sys/types.h>
27620 #endif
27621 #ifdef HAVE_SYS_TIME_H
27622 #include <sys/time.h>
27623 #ifdef TIME_WITH_SYS_TIME
27624 #include <time.h>
27625 #endif
27626 #else
27627 #ifdef HAVE_TIME_H
27628 #include <time.h>
27629 #endif
27630 #endif
27631 #ifndef HAVE_WINDOWS_H
27632 #ifdef HAVE_SYS_SELECT_H
27633 #include <sys/select.h>
27634 #endif
27635 #ifdef HAVE_SYS_SOCKET_H
27636 #include <sys/socket.h>
27637 #endif
27638 #define SELECTCALLCONV
27639 #endif
27640 #ifndef HAVE_STRUCT_TIMEVAL
27641                     struct timeval {
27642                       long tv_sec;
27643                       long tv_usec;
27644                     };
27645 #endif
27646                     extern $sel_retv SELECTCALLCONV select($sel_arg1,
27647                                                            $sel_arg234,
27648                                                            $sel_arg234,
27649                                                            $sel_arg234,
27650                                                            $sel_arg5);
27651
27652 int main (void)
27653 {
27654
27655                     $sel_arg1   nfds=0;
27656                     $sel_arg234 rfds=0;
27657                     $sel_arg234 wfds=0;
27658                     $sel_arg234 efds=0;
27659                     $sel_retv res = select(nfds, rfds, wfds, efds, 0);
27660
27661  ;
27662  return 0;
27663 }
27664
27665 _ACEOF
27666 if ac_fn_c_try_compile "$LINENO"; then :
27667
27668                   curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
27669
27670 fi
27671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27672               fi
27673             done
27674           done
27675         done
27676       done
27677
27678 fi
27679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
27680 $as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
27681     if test "$curl_cv_func_select_args" = "unknown"; then
27682       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
27683 $as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
27684       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
27685 $as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
27686     else
27687       select_prev_IFS=$IFS; IFS=','
27688       set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
27689       IFS=$select_prev_IFS
27690       shift
27691       #
27692       sel_qual_type_arg5=$3
27693       #
27694
27695 cat >>confdefs.h <<_ACEOF
27696 #define SELECT_TYPE_ARG1 $1
27697 _ACEOF
27698
27699
27700 cat >>confdefs.h <<_ACEOF
27701 #define SELECT_TYPE_ARG234 $2
27702 _ACEOF
27703
27704
27705 cat >>confdefs.h <<_ACEOF
27706 #define SELECT_TYPE_RETV $4
27707 _ACEOF
27708
27709       #
27710       prev_sh_opts=$-
27711       #
27712       case $prev_sh_opts in
27713         *f*)
27714           ;;
27715         *)
27716           set -f
27717           ;;
27718       esac
27719       #
27720       case "$sel_qual_type_arg5" in
27721         const*)
27722           sel_qual_arg5=const
27723           sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
27724         ;;
27725         *)
27726           sel_qual_arg5=
27727           sel_type_arg5=$sel_qual_type_arg5
27728         ;;
27729       esac
27730       #
27731
27732 cat >>confdefs.h <<_ACEOF
27733 #define SELECT_QUAL_ARG5 $sel_qual_arg5
27734 _ACEOF
27735
27736
27737 cat >>confdefs.h <<_ACEOF
27738 #define SELECT_TYPE_ARG5 $sel_type_arg5
27739 _ACEOF
27740
27741       #
27742       case $prev_sh_opts in
27743         *f*)
27744           ;;
27745         *)
27746           set +f
27747           ;;
27748       esac
27749       #
27750
27751 cat >>confdefs.h <<_ACEOF
27752 #define HAVE_SELECT 1
27753 _ACEOF
27754
27755       ac_cv_func_select="yes"
27756     fi
27757   fi
27758
27759
27760
27761       for ac_header in sys/types.h sys/socket.h
27762 do :
27763   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27764 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27765 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27766   cat >>confdefs.h <<_ACEOF
27767 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27768 _ACEOF
27769
27770 fi
27771
27772 done
27773
27774   #
27775   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
27776 $as_echo_n "checking for recv... " >&6; }
27777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27778 /* end confdefs.h.  */
27779
27780
27781 #undef inline
27782 #ifdef HAVE_WINDOWS_H
27783 #ifndef WIN32_LEAN_AND_MEAN
27784 #define WIN32_LEAN_AND_MEAN
27785 #endif
27786 #include <windows.h>
27787 #ifdef HAVE_WINSOCK2_H
27788 #include <winsock2.h>
27789 #else
27790 #ifdef HAVE_WINSOCK_H
27791 #include <winsock.h>
27792 #endif
27793 #endif
27794 #else
27795 #ifdef HAVE_SYS_TYPES_H
27796 #include <sys/types.h>
27797 #endif
27798 #ifdef HAVE_SYS_SOCKET_H
27799 #include <sys/socket.h>
27800 #endif
27801 #endif
27802
27803 int main (void)
27804 {
27805
27806       recv(0, 0, 0, 0);
27807
27808  ;
27809  return 0;
27810 }
27811
27812 _ACEOF
27813 if ac_fn_c_try_link "$LINENO"; then :
27814
27815     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27816 $as_echo "yes" >&6; }
27817     curl_cv_recv="yes"
27818
27819 else
27820
27821     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27822 $as_echo "no" >&6; }
27823     curl_cv_recv="no"
27824
27825 fi
27826 rm -f core conftest.err conftest.$ac_objext \
27827     conftest$ac_exeext conftest.$ac_ext
27828   #
27829   if test "$curl_cv_recv" = "yes"; then
27830     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
27831 $as_echo_n "checking types of args and return type for recv... " >&6; }
27832 if ${curl_cv_func_recv_args+:} false; then :
27833   $as_echo_n "(cached) " >&6
27834 else
27835
27836       curl_cv_func_recv_args="unknown"
27837       for recv_retv in 'int' 'ssize_t'; do
27838         for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
27839           for recv_arg2 in 'char *' 'void *'; do
27840             for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
27841               for recv_arg4 in 'int' 'unsigned int'; do
27842                 if test "$curl_cv_func_recv_args" = "unknown"; then
27843                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27844 /* end confdefs.h.  */
27845
27846
27847 #undef inline
27848 #ifdef HAVE_WINDOWS_H
27849 #ifndef WIN32_LEAN_AND_MEAN
27850 #define WIN32_LEAN_AND_MEAN
27851 #endif
27852 #include <windows.h>
27853 #ifdef HAVE_WINSOCK2_H
27854 #include <winsock2.h>
27855 #else
27856 #ifdef HAVE_WINSOCK_H
27857 #include <winsock.h>
27858 #endif
27859 #endif
27860 #define RECVCALLCONV PASCAL
27861 #else
27862 #ifdef HAVE_SYS_TYPES_H
27863 #include <sys/types.h>
27864 #endif
27865 #ifdef HAVE_SYS_SOCKET_H
27866 #include <sys/socket.h>
27867 #endif
27868 #define RECVCALLCONV
27869 #endif
27870                       extern $recv_retv RECVCALLCONV
27871                       recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
27872
27873 int main (void)
27874 {
27875
27876                       $recv_arg1 s=0;
27877                       $recv_arg2 buf=0;
27878                       $recv_arg3 len=0;
27879                       $recv_arg4 flags=0;
27880                       $recv_retv res = recv(s, buf, len, flags);
27881
27882  ;
27883  return 0;
27884 }
27885
27886 _ACEOF
27887 if ac_fn_c_try_compile "$LINENO"; then :
27888
27889                     curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
27890
27891 fi
27892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27893                 fi
27894               done
27895             done
27896           done
27897         done
27898       done
27899
27900 fi
27901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
27902 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
27903     if test "$curl_cv_func_recv_args" = "unknown"; then
27904       as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
27905     else
27906       recv_prev_IFS=$IFS; IFS=','
27907       set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
27908       IFS=$recv_prev_IFS
27909       shift
27910       #
27911
27912 cat >>confdefs.h <<_ACEOF
27913 #define RECV_TYPE_ARG1 $1
27914 _ACEOF
27915
27916
27917 cat >>confdefs.h <<_ACEOF
27918 #define RECV_TYPE_ARG2 $2
27919 _ACEOF
27920
27921
27922 cat >>confdefs.h <<_ACEOF
27923 #define RECV_TYPE_ARG3 $3
27924 _ACEOF
27925
27926
27927 cat >>confdefs.h <<_ACEOF
27928 #define RECV_TYPE_ARG4 $4
27929 _ACEOF
27930
27931
27932 cat >>confdefs.h <<_ACEOF
27933 #define RECV_TYPE_RETV $5
27934 _ACEOF
27935
27936       #
27937
27938 cat >>confdefs.h <<_ACEOF
27939 #define HAVE_RECV 1
27940 _ACEOF
27941
27942       ac_cv_func_recv="yes"
27943     fi
27944   else
27945     as_fn_error $? "Unable to link function recv" "$LINENO" 5
27946   fi
27947
27948
27949       for ac_header in sys/types.h sys/socket.h
27950 do :
27951   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27952 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27953 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27954   cat >>confdefs.h <<_ACEOF
27955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27956 _ACEOF
27957
27958 fi
27959
27960 done
27961
27962   #
27963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
27964 $as_echo_n "checking for send... " >&6; }
27965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27966 /* end confdefs.h.  */
27967
27968
27969 #undef inline
27970 #ifdef HAVE_WINDOWS_H
27971 #ifndef WIN32_LEAN_AND_MEAN
27972 #define WIN32_LEAN_AND_MEAN
27973 #endif
27974 #include <windows.h>
27975 #ifdef HAVE_WINSOCK2_H
27976 #include <winsock2.h>
27977 #else
27978 #ifdef HAVE_WINSOCK_H
27979 #include <winsock.h>
27980 #endif
27981 #endif
27982 #else
27983 #ifdef HAVE_SYS_TYPES_H
27984 #include <sys/types.h>
27985 #endif
27986 #ifdef HAVE_SYS_SOCKET_H
27987 #include <sys/socket.h>
27988 #endif
27989 #endif
27990
27991 int main (void)
27992 {
27993
27994       send(0, 0, 0, 0);
27995
27996  ;
27997  return 0;
27998 }
27999
28000 _ACEOF
28001 if ac_fn_c_try_link "$LINENO"; then :
28002
28003     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28004 $as_echo "yes" >&6; }
28005     curl_cv_send="yes"
28006
28007 else
28008
28009     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28010 $as_echo "no" >&6; }
28011     curl_cv_send="no"
28012
28013 fi
28014 rm -f core conftest.err conftest.$ac_objext \
28015     conftest$ac_exeext conftest.$ac_ext
28016   #
28017   if test "$curl_cv_send" = "yes"; then
28018     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
28019 $as_echo_n "checking types of args and return type for send... " >&6; }
28020 if ${curl_cv_func_send_args+:} false; then :
28021   $as_echo_n "(cached) " >&6
28022 else
28023
28024       curl_cv_func_send_args="unknown"
28025       for send_retv in 'int' 'ssize_t'; do
28026         for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
28027           for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
28028             for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
28029               for send_arg4 in 'int' 'unsigned int'; do
28030                 if test "$curl_cv_func_send_args" = "unknown"; then
28031                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28032 /* end confdefs.h.  */
28033
28034
28035 #undef inline
28036 #ifdef HAVE_WINDOWS_H
28037 #ifndef WIN32_LEAN_AND_MEAN
28038 #define WIN32_LEAN_AND_MEAN
28039 #endif
28040 #include <windows.h>
28041 #ifdef HAVE_WINSOCK2_H
28042 #include <winsock2.h>
28043 #else
28044 #ifdef HAVE_WINSOCK_H
28045 #include <winsock.h>
28046 #endif
28047 #endif
28048 #define SENDCALLCONV PASCAL
28049 #else
28050 #ifdef HAVE_SYS_TYPES_H
28051 #include <sys/types.h>
28052 #endif
28053 #ifdef HAVE_SYS_SOCKET_H
28054 #include <sys/socket.h>
28055 #endif
28056 #define SENDCALLCONV
28057 #endif
28058                       extern $send_retv SENDCALLCONV
28059                       send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
28060
28061 int main (void)
28062 {
28063
28064                       $send_arg1 s=0;
28065                       $send_arg3 len=0;
28066                       $send_arg4 flags=0;
28067                       $send_retv res = send(s, 0, len, flags);
28068
28069  ;
28070  return 0;
28071 }
28072
28073 _ACEOF
28074 if ac_fn_c_try_compile "$LINENO"; then :
28075
28076                     curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
28077
28078 fi
28079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28080                 fi
28081               done
28082             done
28083           done
28084         done
28085       done
28086
28087 fi
28088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
28089 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
28090     if test "$curl_cv_func_send_args" = "unknown"; then
28091       as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
28092     else
28093       send_prev_IFS=$IFS; IFS=','
28094       set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
28095       IFS=$send_prev_IFS
28096       shift
28097       #
28098       send_qual_type_arg2=$2
28099       #
28100
28101 cat >>confdefs.h <<_ACEOF
28102 #define SEND_TYPE_ARG1 $1
28103 _ACEOF
28104
28105
28106 cat >>confdefs.h <<_ACEOF
28107 #define SEND_TYPE_ARG3 $3
28108 _ACEOF
28109
28110
28111 cat >>confdefs.h <<_ACEOF
28112 #define SEND_TYPE_ARG4 $4
28113 _ACEOF
28114
28115
28116 cat >>confdefs.h <<_ACEOF
28117 #define SEND_TYPE_RETV $5
28118 _ACEOF
28119
28120       #
28121       prev_sh_opts=$-
28122       #
28123       case $prev_sh_opts in
28124         *f*)
28125           ;;
28126         *)
28127           set -f
28128           ;;
28129       esac
28130       #
28131       case "$send_qual_type_arg2" in
28132         const*)
28133           send_qual_arg2=const
28134           send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
28135         ;;
28136         *)
28137           send_qual_arg2=
28138           send_type_arg2=$send_qual_type_arg2
28139         ;;
28140       esac
28141       #
28142
28143 cat >>confdefs.h <<_ACEOF
28144 #define SEND_QUAL_ARG2 $send_qual_arg2
28145 _ACEOF
28146
28147
28148 cat >>confdefs.h <<_ACEOF
28149 #define SEND_TYPE_ARG2 $send_type_arg2
28150 _ACEOF
28151
28152       #
28153       case $prev_sh_opts in
28154         *f*)
28155           ;;
28156         *)
28157           set +f
28158           ;;
28159       esac
28160       #
28161
28162 cat >>confdefs.h <<_ACEOF
28163 #define HAVE_SEND 1
28164 _ACEOF
28165
28166       ac_cv_func_send="yes"
28167     fi
28168   else
28169     as_fn_error $? "Unable to link function send" "$LINENO" 5
28170   fi
28171
28172
28173   for ac_header in sys/types.h sys/socket.h
28174 do :
28175   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28176 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28177 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28178   cat >>confdefs.h <<_ACEOF
28179 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28180 _ACEOF
28181
28182 fi
28183
28184 done
28185
28186   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
28187 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
28188 if ${ac_cv_msg_nosignal+:} false; then :
28189   $as_echo_n "(cached) " >&6
28190 else
28191
28192     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28193 /* end confdefs.h.  */
28194
28195
28196 #undef inline
28197 #ifdef HAVE_WINDOWS_H
28198 #ifndef WIN32_LEAN_AND_MEAN
28199 #define WIN32_LEAN_AND_MEAN
28200 #endif
28201 #include <windows.h>
28202 #ifdef HAVE_WINSOCK2_H
28203 #include <winsock2.h>
28204 #else
28205 #ifdef HAVE_WINSOCK_H
28206 #include <winsock.h>
28207 #endif
28208 #endif
28209 #else
28210 #ifdef HAVE_SYS_TYPES_H
28211 #include <sys/types.h>
28212 #endif
28213 #ifdef HAVE_SYS_SOCKET_H
28214 #include <sys/socket.h>
28215 #endif
28216 #endif
28217
28218 int main (void)
28219 {
28220
28221         int flag=MSG_NOSIGNAL;
28222
28223  ;
28224  return 0;
28225 }
28226
28227 _ACEOF
28228 if ac_fn_c_try_compile "$LINENO"; then :
28229
28230       ac_cv_msg_nosignal="yes"
28231
28232 else
28233
28234       ac_cv_msg_nosignal="no"
28235
28236 fi
28237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28238
28239 fi
28240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5
28241 $as_echo "$ac_cv_msg_nosignal" >&6; }
28242   case "$ac_cv_msg_nosignal" in
28243     yes)
28244
28245 cat >>confdefs.h <<_ACEOF
28246 #define HAVE_MSG_NOSIGNAL 1
28247 _ACEOF
28248
28249       ;;
28250   esac
28251
28252
28253
28254 curl_includes_unistd="\
28255 /* includes start */
28256 #ifdef HAVE_SYS_TYPES_H
28257 #  include <sys/types.h>
28258 #endif
28259 #ifdef HAVE_UNISTD_H
28260 #  include <unistd.h>
28261 #endif
28262 /* includes end */"
28263   for ac_header in sys/types.h unistd.h
28264 do :
28265   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28266 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
28267 "
28268 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28269   cat >>confdefs.h <<_ACEOF
28270 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28271 _ACEOF
28272
28273 fi
28274
28275 done
28276
28277
28278
28279     #
28280   tst_links_alarm="unknown"
28281   tst_proto_alarm="unknown"
28282   tst_compi_alarm="unknown"
28283   tst_allow_alarm="unknown"
28284   #
28285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
28286 $as_echo_n "checking if alarm can be linked... " >&6; }
28287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28288 /* end confdefs.h.  */
28289
28290
28291 #define alarm innocuous_alarm
28292 #ifdef __STDC__
28293 # include <limits.h>
28294 #else
28295 # include <assert.h>
28296 #endif
28297 #undef alarm
28298 #ifdef __cplusplus
28299 extern "C"
28300 #endif
28301 char alarm ();
28302 #if defined __stub_alarm || defined __stub___alarm
28303 choke me
28304 #endif
28305
28306 int main (void)
28307 {
28308 return alarm ();
28309  ;
28310  return 0;
28311 }
28312
28313 _ACEOF
28314 if ac_fn_c_try_link "$LINENO"; then :
28315
28316     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28317 $as_echo "yes" >&6; }
28318     tst_links_alarm="yes"
28319
28320 else
28321
28322     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28323 $as_echo "no" >&6; }
28324     tst_links_alarm="no"
28325
28326 fi
28327 rm -f core conftest.err conftest.$ac_objext \
28328     conftest$ac_exeext conftest.$ac_ext
28329   #
28330   if test "$tst_links_alarm" = "yes"; then
28331     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
28332 $as_echo_n "checking if alarm is prototyped... " >&6; }
28333     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28334 /* end confdefs.h.  */
28335
28336       $curl_includes_unistd
28337
28338 _ACEOF
28339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28340   $EGREP "alarm" >/dev/null 2>&1; then :
28341
28342       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28343 $as_echo "yes" >&6; }
28344       tst_proto_alarm="yes"
28345
28346 else
28347
28348       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28349 $as_echo "no" >&6; }
28350       tst_proto_alarm="no"
28351
28352 fi
28353 rm -f conftest*
28354
28355   fi
28356   #
28357   if test "$tst_proto_alarm" = "yes"; then
28358     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
28359 $as_echo_n "checking if alarm is compilable... " >&6; }
28360     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28361 /* end confdefs.h.  */
28362
28363
28364         $curl_includes_unistd
28365
28366 int main (void)
28367 {
28368
28369         if(0 != alarm(0))
28370           return 1;
28371
28372  ;
28373  return 0;
28374 }
28375
28376 _ACEOF
28377 if ac_fn_c_try_compile "$LINENO"; then :
28378
28379       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28380 $as_echo "yes" >&6; }
28381       tst_compi_alarm="yes"
28382
28383 else
28384
28385       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28386 $as_echo "no" >&6; }
28387       tst_compi_alarm="no"
28388
28389 fi
28390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28391   fi
28392   #
28393   if test "$tst_compi_alarm" = "yes"; then
28394     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
28395 $as_echo_n "checking if alarm usage allowed... " >&6; }
28396     if test "x$curl_disallow_alarm" != "xyes"; then
28397       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28398 $as_echo "yes" >&6; }
28399       tst_allow_alarm="yes"
28400     else
28401       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28402 $as_echo "no" >&6; }
28403       tst_allow_alarm="no"
28404     fi
28405   fi
28406   #
28407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
28408 $as_echo_n "checking if alarm might be used... " >&6; }
28409   if test "$tst_links_alarm" = "yes" &&
28410      test "$tst_proto_alarm" = "yes" &&
28411      test "$tst_compi_alarm" = "yes" &&
28412      test "$tst_allow_alarm" = "yes"; then
28413     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28414 $as_echo "yes" >&6; }
28415
28416 cat >>confdefs.h <<_ACEOF
28417 #define HAVE_ALARM 1
28418 _ACEOF
28419
28420     ac_cv_func_alarm="yes"
28421   else
28422     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28423 $as_echo "no" >&6; }
28424     ac_cv_func_alarm="no"
28425   fi
28426
28427
28428 curl_includes_string="\
28429 /* includes start */
28430 #ifdef HAVE_SYS_TYPES_H
28431 #  include <sys/types.h>
28432 #endif
28433 #ifdef HAVE_STRING_H
28434 #  include <string.h>
28435 #endif
28436 #ifdef HAVE_STRINGS_H
28437 #  include <strings.h>
28438 #endif
28439 /* includes end */"
28440   for ac_header in sys/types.h string.h strings.h
28441 do :
28442   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28443 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
28444 "
28445 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28446   cat >>confdefs.h <<_ACEOF
28447 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28448 _ACEOF
28449
28450 fi
28451
28452 done
28453
28454
28455
28456 curl_includes_libgen="\
28457 /* includes start */
28458 #ifdef HAVE_SYS_TYPES_H
28459 #  include <sys/types.h>
28460 #endif
28461 #ifdef HAVE_LIBGEN_H
28462 #  include <libgen.h>
28463 #endif
28464 /* includes end */"
28465   for ac_header in sys/types.h libgen.h
28466 do :
28467   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28468 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
28469 "
28470 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28471   cat >>confdefs.h <<_ACEOF
28472 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28473 _ACEOF
28474
28475 fi
28476
28477 done
28478
28479
28480
28481         #
28482   tst_links_basename="unknown"
28483   tst_proto_basename="unknown"
28484   tst_compi_basename="unknown"
28485   tst_allow_basename="unknown"
28486   #
28487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
28488 $as_echo_n "checking if basename can be linked... " >&6; }
28489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28490 /* end confdefs.h.  */
28491
28492
28493 #define basename innocuous_basename
28494 #ifdef __STDC__
28495 # include <limits.h>
28496 #else
28497 # include <assert.h>
28498 #endif
28499 #undef basename
28500 #ifdef __cplusplus
28501 extern "C"
28502 #endif
28503 char basename ();
28504 #if defined __stub_basename || defined __stub___basename
28505 choke me
28506 #endif
28507
28508 int main (void)
28509 {
28510 return basename ();
28511  ;
28512  return 0;
28513 }
28514
28515 _ACEOF
28516 if ac_fn_c_try_link "$LINENO"; then :
28517
28518     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28519 $as_echo "yes" >&6; }
28520     tst_links_basename="yes"
28521
28522 else
28523
28524     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28525 $as_echo "no" >&6; }
28526     tst_links_basename="no"
28527
28528 fi
28529 rm -f core conftest.err conftest.$ac_objext \
28530     conftest$ac_exeext conftest.$ac_ext
28531   #
28532   if test "$tst_links_basename" = "yes"; then
28533     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
28534 $as_echo_n "checking if basename is prototyped... " >&6; }
28535     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28536 /* end confdefs.h.  */
28537
28538       $curl_includes_string
28539       $curl_includes_libgen
28540       $curl_includes_unistd
28541
28542 _ACEOF
28543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28544   $EGREP "basename" >/dev/null 2>&1; then :
28545
28546       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28547 $as_echo "yes" >&6; }
28548       tst_proto_basename="yes"
28549
28550 else
28551
28552       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28553 $as_echo "no" >&6; }
28554       tst_proto_basename="no"
28555
28556 fi
28557 rm -f conftest*
28558
28559   fi
28560   #
28561   if test "$tst_proto_basename" = "yes"; then
28562     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
28563 $as_echo_n "checking if basename is compilable... " >&6; }
28564     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28565 /* end confdefs.h.  */
28566
28567
28568         $curl_includes_string
28569         $curl_includes_libgen
28570         $curl_includes_unistd
28571
28572 int main (void)
28573 {
28574
28575         if(0 != basename(0))
28576           return 1;
28577
28578  ;
28579  return 0;
28580 }
28581
28582 _ACEOF
28583 if ac_fn_c_try_compile "$LINENO"; then :
28584
28585       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28586 $as_echo "yes" >&6; }
28587       tst_compi_basename="yes"
28588
28589 else
28590
28591       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28592 $as_echo "no" >&6; }
28593       tst_compi_basename="no"
28594
28595 fi
28596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28597   fi
28598   #
28599   if test "$tst_compi_basename" = "yes"; then
28600     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
28601 $as_echo_n "checking if basename usage allowed... " >&6; }
28602     if test "x$curl_disallow_basename" != "xyes"; then
28603       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28604 $as_echo "yes" >&6; }
28605       tst_allow_basename="yes"
28606     else
28607       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28608 $as_echo "no" >&6; }
28609       tst_allow_basename="no"
28610     fi
28611   fi
28612   #
28613   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
28614 $as_echo_n "checking if basename might be used... " >&6; }
28615   if test "$tst_links_basename" = "yes" &&
28616      test "$tst_proto_basename" = "yes" &&
28617      test "$tst_compi_basename" = "yes" &&
28618      test "$tst_allow_basename" = "yes"; then
28619     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28620 $as_echo "yes" >&6; }
28621
28622 cat >>confdefs.h <<_ACEOF
28623 #define HAVE_BASENAME 1
28624 _ACEOF
28625
28626     ac_cv_func_basename="yes"
28627   else
28628     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28629 $as_echo "no" >&6; }
28630     ac_cv_func_basename="no"
28631   fi
28632
28633
28634 curl_includes_socket="\
28635 /* includes start */
28636 #ifdef HAVE_SYS_TYPES_H
28637 #  include <sys/types.h>
28638 #endif
28639 #ifdef HAVE_SOCKET_H
28640 #  include <socket.h>
28641 #endif
28642 /* includes end */"
28643   for ac_header in sys/types.h socket.h
28644 do :
28645   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28646 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
28647 "
28648 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28649   cat >>confdefs.h <<_ACEOF
28650 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28651 _ACEOF
28652
28653 fi
28654
28655 done
28656
28657
28658
28659       #
28660   tst_links_closesocket="unknown"
28661   tst_proto_closesocket="unknown"
28662   tst_compi_closesocket="unknown"
28663   tst_allow_closesocket="unknown"
28664   #
28665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
28666 $as_echo_n "checking if closesocket can be linked... " >&6; }
28667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28668 /* end confdefs.h.  */
28669
28670
28671       $curl_includes_winsock2
28672       $curl_includes_socket
28673
28674 int main (void)
28675 {
28676
28677       if(0 != closesocket(0))
28678         return 1;
28679
28680  ;
28681  return 0;
28682 }
28683
28684 _ACEOF
28685 if ac_fn_c_try_link "$LINENO"; then :
28686
28687     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28688 $as_echo "yes" >&6; }
28689     tst_links_closesocket="yes"
28690
28691 else
28692
28693     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28694 $as_echo "no" >&6; }
28695     tst_links_closesocket="no"
28696
28697 fi
28698 rm -f core conftest.err conftest.$ac_objext \
28699     conftest$ac_exeext conftest.$ac_ext
28700   #
28701   if test "$tst_links_closesocket" = "yes"; then
28702     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
28703 $as_echo_n "checking if closesocket is prototyped... " >&6; }
28704     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28705 /* end confdefs.h.  */
28706
28707       $curl_includes_winsock2
28708       $curl_includes_socket
28709
28710 _ACEOF
28711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28712   $EGREP "closesocket" >/dev/null 2>&1; then :
28713
28714       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28715 $as_echo "yes" >&6; }
28716       tst_proto_closesocket="yes"
28717
28718 else
28719
28720       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28721 $as_echo "no" >&6; }
28722       tst_proto_closesocket="no"
28723
28724 fi
28725 rm -f conftest*
28726
28727   fi
28728   #
28729   if test "$tst_proto_closesocket" = "yes"; then
28730     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
28731 $as_echo_n "checking if closesocket is compilable... " >&6; }
28732     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28733 /* end confdefs.h.  */
28734
28735
28736         $curl_includes_winsock2
28737         $curl_includes_socket
28738
28739 int main (void)
28740 {
28741
28742         if(0 != closesocket(0))
28743           return 1;
28744
28745  ;
28746  return 0;
28747 }
28748
28749 _ACEOF
28750 if ac_fn_c_try_compile "$LINENO"; then :
28751
28752       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28753 $as_echo "yes" >&6; }
28754       tst_compi_closesocket="yes"
28755
28756 else
28757
28758       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28759 $as_echo "no" >&6; }
28760       tst_compi_closesocket="no"
28761
28762 fi
28763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28764   fi
28765   #
28766   if test "$tst_compi_closesocket" = "yes"; then
28767     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
28768 $as_echo_n "checking if closesocket usage allowed... " >&6; }
28769     if test "x$curl_disallow_closesocket" != "xyes"; then
28770       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28771 $as_echo "yes" >&6; }
28772       tst_allow_closesocket="yes"
28773     else
28774       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28775 $as_echo "no" >&6; }
28776       tst_allow_closesocket="no"
28777     fi
28778   fi
28779   #
28780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
28781 $as_echo_n "checking if closesocket might be used... " >&6; }
28782   if test "$tst_links_closesocket" = "yes" &&
28783      test "$tst_proto_closesocket" = "yes" &&
28784      test "$tst_compi_closesocket" = "yes" &&
28785      test "$tst_allow_closesocket" = "yes"; then
28786     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28787 $as_echo "yes" >&6; }
28788
28789 cat >>confdefs.h <<_ACEOF
28790 #define HAVE_CLOSESOCKET 1
28791 _ACEOF
28792
28793     ac_cv_func_closesocket="yes"
28794   else
28795     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28796 $as_echo "no" >&6; }
28797     ac_cv_func_closesocket="no"
28798   fi
28799
28800
28801     #
28802   tst_links_closesocket_camel="unknown"
28803   tst_proto_closesocket_camel="unknown"
28804   tst_compi_closesocket_camel="unknown"
28805   tst_allow_closesocket_camel="unknown"
28806   #
28807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
28808 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
28809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28810 /* end confdefs.h.  */
28811
28812
28813       $curl_includes_sys_socket
28814
28815 int main (void)
28816 {
28817
28818       if(0 != CloseSocket(0))
28819         return 1;
28820
28821  ;
28822  return 0;
28823 }
28824
28825 _ACEOF
28826 if ac_fn_c_try_link "$LINENO"; then :
28827
28828     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28829 $as_echo "yes" >&6; }
28830     tst_links_closesocket_camel="yes"
28831
28832 else
28833
28834     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28835 $as_echo "no" >&6; }
28836     tst_links_closesocket_camel="no"
28837
28838 fi
28839 rm -f core conftest.err conftest.$ac_objext \
28840     conftest$ac_exeext conftest.$ac_ext
28841   #
28842   if test "$tst_links_closesocket_camel" = "yes"; then
28843     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
28844 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
28845     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28846 /* end confdefs.h.  */
28847
28848       $curl_includes_sys_socket
28849
28850 _ACEOF
28851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28852   $EGREP "CloseSocket" >/dev/null 2>&1; then :
28853
28854       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28855 $as_echo "yes" >&6; }
28856       tst_proto_closesocket_camel="yes"
28857
28858 else
28859
28860       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28861 $as_echo "no" >&6; }
28862       tst_proto_closesocket_camel="no"
28863
28864 fi
28865 rm -f conftest*
28866
28867   fi
28868   #
28869   if test "$tst_proto_closesocket_camel" = "yes"; then
28870     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
28871 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
28872     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28873 /* end confdefs.h.  */
28874
28875
28876         $curl_includes_sys_socket
28877
28878 int main (void)
28879 {
28880
28881         if(0 != CloseSocket(0))
28882           return 1;
28883
28884  ;
28885  return 0;
28886 }
28887
28888 _ACEOF
28889 if ac_fn_c_try_compile "$LINENO"; then :
28890
28891       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28892 $as_echo "yes" >&6; }
28893       tst_compi_closesocket_camel="yes"
28894
28895 else
28896
28897       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28898 $as_echo "no" >&6; }
28899       tst_compi_closesocket_camel="no"
28900
28901 fi
28902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28903   fi
28904   #
28905   if test "$tst_compi_closesocket_camel" = "yes"; then
28906     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
28907 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
28908     if test "x$curl_disallow_closesocket_camel" != "xyes"; then
28909       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28910 $as_echo "yes" >&6; }
28911       tst_allow_closesocket_camel="yes"
28912     else
28913       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28914 $as_echo "no" >&6; }
28915       tst_allow_closesocket_camel="no"
28916     fi
28917   fi
28918   #
28919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
28920 $as_echo_n "checking if CloseSocket might be used... " >&6; }
28921   if test "$tst_links_closesocket_camel" = "yes" &&
28922      test "$tst_proto_closesocket_camel" = "yes" &&
28923      test "$tst_compi_closesocket_camel" = "yes" &&
28924      test "$tst_allow_closesocket_camel" = "yes"; then
28925     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28926 $as_echo "yes" >&6; }
28927
28928 cat >>confdefs.h <<_ACEOF
28929 #define HAVE_CLOSESOCKET_CAMEL 1
28930 _ACEOF
28931
28932     ac_cv_func_closesocket_camel="yes"
28933   else
28934     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28935 $as_echo "no" >&6; }
28936     ac_cv_func_closesocket_camel="no"
28937   fi
28938
28939
28940         #
28941   tst_links_connect="unknown"
28942   tst_proto_connect="unknown"
28943   tst_compi_connect="unknown"
28944   tst_allow_connect="unknown"
28945   #
28946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
28947 $as_echo_n "checking if connect can be linked... " >&6; }
28948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28949 /* end confdefs.h.  */
28950
28951
28952       $curl_includes_winsock2
28953       $curl_includes_sys_socket
28954       $curl_includes_socket
28955
28956 int main (void)
28957 {
28958
28959       if(0 != connect(0, 0, 0))
28960         return 1;
28961
28962  ;
28963  return 0;
28964 }
28965
28966 _ACEOF
28967 if ac_fn_c_try_link "$LINENO"; then :
28968
28969     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28970 $as_echo "yes" >&6; }
28971     tst_links_connect="yes"
28972
28973 else
28974
28975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28976 $as_echo "no" >&6; }
28977     tst_links_connect="no"
28978
28979 fi
28980 rm -f core conftest.err conftest.$ac_objext \
28981     conftest$ac_exeext conftest.$ac_ext
28982   #
28983   if test "$tst_links_connect" = "yes"; then
28984     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
28985 $as_echo_n "checking if connect is prototyped... " >&6; }
28986     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28987 /* end confdefs.h.  */
28988
28989       $curl_includes_winsock2
28990       $curl_includes_sys_socket
28991       $curl_includes_socket
28992
28993 _ACEOF
28994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28995   $EGREP "connect" >/dev/null 2>&1; then :
28996
28997       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28998 $as_echo "yes" >&6; }
28999       tst_proto_connect="yes"
29000
29001 else
29002
29003       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29004 $as_echo "no" >&6; }
29005       tst_proto_connect="no"
29006
29007 fi
29008 rm -f conftest*
29009
29010   fi
29011   #
29012   if test "$tst_proto_connect" = "yes"; then
29013     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
29014 $as_echo_n "checking if connect is compilable... " >&6; }
29015     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29016 /* end confdefs.h.  */
29017
29018
29019         $curl_includes_winsock2
29020         $curl_includes_sys_socket
29021         $curl_includes_socket
29022
29023 int main (void)
29024 {
29025
29026         if(0 != connect(0, 0, 0))
29027           return 1;
29028
29029  ;
29030  return 0;
29031 }
29032
29033 _ACEOF
29034 if ac_fn_c_try_compile "$LINENO"; then :
29035
29036       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29037 $as_echo "yes" >&6; }
29038       tst_compi_connect="yes"
29039
29040 else
29041
29042       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29043 $as_echo "no" >&6; }
29044       tst_compi_connect="no"
29045
29046 fi
29047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29048   fi
29049   #
29050   if test "$tst_compi_connect" = "yes"; then
29051     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
29052 $as_echo_n "checking if connect usage allowed... " >&6; }
29053     if test "x$curl_disallow_connect" != "xyes"; then
29054       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29055 $as_echo "yes" >&6; }
29056       tst_allow_connect="yes"
29057     else
29058       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29059 $as_echo "no" >&6; }
29060       tst_allow_connect="no"
29061     fi
29062   fi
29063   #
29064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
29065 $as_echo_n "checking if connect might be used... " >&6; }
29066   if test "$tst_links_connect" = "yes" &&
29067      test "$tst_proto_connect" = "yes" &&
29068      test "$tst_compi_connect" = "yes" &&
29069      test "$tst_allow_connect" = "yes"; then
29070     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29071 $as_echo "yes" >&6; }
29072
29073 cat >>confdefs.h <<_ACEOF
29074 #define HAVE_CONNECT 1
29075 _ACEOF
29076
29077     ac_cv_func_connect="yes"
29078   else
29079     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29080 $as_echo "no" >&6; }
29081     ac_cv_func_connect="no"
29082   fi
29083
29084
29085 curl_includes_fcntl="\
29086 /* includes start */
29087 #ifdef HAVE_SYS_TYPES_H
29088 #  include <sys/types.h>
29089 #endif
29090 #ifdef HAVE_UNISTD_H
29091 #  include <unistd.h>
29092 #endif
29093 #ifdef HAVE_FCNTL_H
29094 #  include <fcntl.h>
29095 #endif
29096 /* includes end */"
29097   for ac_header in sys/types.h unistd.h fcntl.h
29098 do :
29099   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29100 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
29101 "
29102 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29103   cat >>confdefs.h <<_ACEOF
29104 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29105 _ACEOF
29106
29107 fi
29108
29109 done
29110
29111
29112
29113     #
29114   tst_links_fcntl="unknown"
29115   tst_proto_fcntl="unknown"
29116   tst_compi_fcntl="unknown"
29117   tst_allow_fcntl="unknown"
29118   #
29119   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
29120 $as_echo_n "checking if fcntl can be linked... " >&6; }
29121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29122 /* end confdefs.h.  */
29123
29124
29125 #define fcntl innocuous_fcntl
29126 #ifdef __STDC__
29127 # include <limits.h>
29128 #else
29129 # include <assert.h>
29130 #endif
29131 #undef fcntl
29132 #ifdef __cplusplus
29133 extern "C"
29134 #endif
29135 char fcntl ();
29136 #if defined __stub_fcntl || defined __stub___fcntl
29137 choke me
29138 #endif
29139
29140 int main (void)
29141 {
29142 return fcntl ();
29143  ;
29144  return 0;
29145 }
29146
29147 _ACEOF
29148 if ac_fn_c_try_link "$LINENO"; then :
29149
29150     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29151 $as_echo "yes" >&6; }
29152     tst_links_fcntl="yes"
29153
29154 else
29155
29156     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29157 $as_echo "no" >&6; }
29158     tst_links_fcntl="no"
29159
29160 fi
29161 rm -f core conftest.err conftest.$ac_objext \
29162     conftest$ac_exeext conftest.$ac_ext
29163   #
29164   if test "$tst_links_fcntl" = "yes"; then
29165     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
29166 $as_echo_n "checking if fcntl is prototyped... " >&6; }
29167     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29168 /* end confdefs.h.  */
29169
29170       $curl_includes_fcntl
29171
29172 _ACEOF
29173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29174   $EGREP "fcntl" >/dev/null 2>&1; then :
29175
29176       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29177 $as_echo "yes" >&6; }
29178       tst_proto_fcntl="yes"
29179
29180 else
29181
29182       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29183 $as_echo "no" >&6; }
29184       tst_proto_fcntl="no"
29185
29186 fi
29187 rm -f conftest*
29188
29189   fi
29190   #
29191   if test "$tst_proto_fcntl" = "yes"; then
29192     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
29193 $as_echo_n "checking if fcntl is compilable... " >&6; }
29194     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29195 /* end confdefs.h.  */
29196
29197
29198         $curl_includes_fcntl
29199
29200 int main (void)
29201 {
29202
29203         if(0 != fcntl(0, 0, 0))
29204           return 1;
29205
29206  ;
29207  return 0;
29208 }
29209
29210 _ACEOF
29211 if ac_fn_c_try_compile "$LINENO"; then :
29212
29213       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29214 $as_echo "yes" >&6; }
29215       tst_compi_fcntl="yes"
29216
29217 else
29218
29219       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29220 $as_echo "no" >&6; }
29221       tst_compi_fcntl="no"
29222
29223 fi
29224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29225   fi
29226   #
29227   if test "$tst_compi_fcntl" = "yes"; then
29228     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
29229 $as_echo_n "checking if fcntl usage allowed... " >&6; }
29230     if test "x$curl_disallow_fcntl" != "xyes"; then
29231       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29232 $as_echo "yes" >&6; }
29233       tst_allow_fcntl="yes"
29234     else
29235       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29236 $as_echo "no" >&6; }
29237       tst_allow_fcntl="no"
29238     fi
29239   fi
29240   #
29241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
29242 $as_echo_n "checking if fcntl might be used... " >&6; }
29243   if test "$tst_links_fcntl" = "yes" &&
29244      test "$tst_proto_fcntl" = "yes" &&
29245      test "$tst_compi_fcntl" = "yes" &&
29246      test "$tst_allow_fcntl" = "yes"; then
29247     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29248 $as_echo "yes" >&6; }
29249
29250 cat >>confdefs.h <<_ACEOF
29251 #define HAVE_FCNTL 1
29252 _ACEOF
29253
29254     ac_cv_func_fcntl="yes"
29255
29256   #
29257   tst_compi_fcntl_o_nonblock="unknown"
29258   tst_allow_fcntl_o_nonblock="unknown"
29259   #
29260   case $host_os in
29261     sunos4* | aix3* | beos*)
29262             curl_disallow_fcntl_o_nonblock="yes"
29263       ;;
29264   esac
29265   #
29266   if test "$ac_cv_func_fcntl" = "yes"; then
29267     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
29268 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
29269     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29270 /* end confdefs.h.  */
29271
29272
29273         $curl_includes_fcntl
29274
29275 int main (void)
29276 {
29277
29278         int flags = 0;
29279         if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
29280           return 1;
29281
29282  ;
29283  return 0;
29284 }
29285
29286 _ACEOF
29287 if ac_fn_c_try_compile "$LINENO"; then :
29288
29289       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29290 $as_echo "yes" >&6; }
29291       tst_compi_fcntl_o_nonblock="yes"
29292
29293 else
29294
29295       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29296 $as_echo "no" >&6; }
29297       tst_compi_fcntl_o_nonblock="no"
29298
29299 fi
29300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29301   fi
29302   #
29303   if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
29304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
29305 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
29306     if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
29307       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29308 $as_echo "yes" >&6; }
29309       tst_allow_fcntl_o_nonblock="yes"
29310     else
29311       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29312 $as_echo "no" >&6; }
29313       tst_allow_fcntl_o_nonblock="no"
29314     fi
29315   fi
29316   #
29317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
29318 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
29319   if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
29320      test "$tst_allow_fcntl_o_nonblock" = "yes"; then
29321     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29322 $as_echo "yes" >&6; }
29323
29324 cat >>confdefs.h <<_ACEOF
29325 #define HAVE_FCNTL_O_NONBLOCK 1
29326 _ACEOF
29327
29328     ac_cv_func_fcntl_o_nonblock="yes"
29329   else
29330     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29331 $as_echo "no" >&6; }
29332     ac_cv_func_fcntl_o_nonblock="no"
29333   fi
29334
29335   else
29336     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29337 $as_echo "no" >&6; }
29338     ac_cv_func_fcntl="no"
29339   fi
29340
29341
29342 curl_includes_stdio="\
29343 /* includes start */
29344 #ifdef HAVE_SYS_TYPES_H
29345 #  include <sys/types.h>
29346 #endif
29347 #ifdef HAVE_STDIO_H
29348 #  include <stdio.h>
29349 #endif
29350 /* includes end */"
29351   for ac_header in sys/types.h stdio.h
29352 do :
29353   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29354 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
29355 "
29356 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29357   cat >>confdefs.h <<_ACEOF
29358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29359 _ACEOF
29360
29361 fi
29362
29363 done
29364
29365
29366
29367     #
29368   tst_links_fdopen="unknown"
29369   tst_proto_fdopen="unknown"
29370   tst_compi_fdopen="unknown"
29371   tst_allow_fdopen="unknown"
29372   #
29373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
29374 $as_echo_n "checking if fdopen can be linked... " >&6; }
29375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29376 /* end confdefs.h.  */
29377
29378
29379 #define fdopen innocuous_fdopen
29380 #ifdef __STDC__
29381 # include <limits.h>
29382 #else
29383 # include <assert.h>
29384 #endif
29385 #undef fdopen
29386 #ifdef __cplusplus
29387 extern "C"
29388 #endif
29389 char fdopen ();
29390 #if defined __stub_fdopen || defined __stub___fdopen
29391 choke me
29392 #endif
29393
29394 int main (void)
29395 {
29396 return fdopen ();
29397  ;
29398  return 0;
29399 }
29400
29401 _ACEOF
29402 if ac_fn_c_try_link "$LINENO"; then :
29403
29404     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29405 $as_echo "yes" >&6; }
29406     tst_links_fdopen="yes"
29407
29408 else
29409
29410     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29411 $as_echo "no" >&6; }
29412     tst_links_fdopen="no"
29413
29414 fi
29415 rm -f core conftest.err conftest.$ac_objext \
29416     conftest$ac_exeext conftest.$ac_ext
29417   #
29418   if test "$tst_links_fdopen" = "yes"; then
29419     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
29420 $as_echo_n "checking if fdopen is prototyped... " >&6; }
29421     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29422 /* end confdefs.h.  */
29423
29424       $curl_includes_stdio
29425
29426 _ACEOF
29427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29428   $EGREP "fdopen" >/dev/null 2>&1; then :
29429
29430       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29431 $as_echo "yes" >&6; }
29432       tst_proto_fdopen="yes"
29433
29434 else
29435
29436       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29437 $as_echo "no" >&6; }
29438       tst_proto_fdopen="no"
29439
29440 fi
29441 rm -f conftest*
29442
29443   fi
29444   #
29445   if test "$tst_proto_fdopen" = "yes"; then
29446     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
29447 $as_echo_n "checking if fdopen is compilable... " >&6; }
29448     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29449 /* end confdefs.h.  */
29450
29451
29452         $curl_includes_stdio
29453
29454 int main (void)
29455 {
29456
29457         if(0 != fdopen(0, 0))
29458           return 1;
29459
29460  ;
29461  return 0;
29462 }
29463
29464 _ACEOF
29465 if ac_fn_c_try_compile "$LINENO"; then :
29466
29467       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29468 $as_echo "yes" >&6; }
29469       tst_compi_fdopen="yes"
29470
29471 else
29472
29473       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29474 $as_echo "no" >&6; }
29475       tst_compi_fdopen="no"
29476
29477 fi
29478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29479   fi
29480   #
29481   if test "$tst_compi_fdopen" = "yes"; then
29482     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
29483 $as_echo_n "checking if fdopen usage allowed... " >&6; }
29484     if test "x$curl_disallow_fdopen" != "xyes"; then
29485       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29486 $as_echo "yes" >&6; }
29487       tst_allow_fdopen="yes"
29488     else
29489       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29490 $as_echo "no" >&6; }
29491       tst_allow_fdopen="no"
29492     fi
29493   fi
29494   #
29495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
29496 $as_echo_n "checking if fdopen might be used... " >&6; }
29497   if test "$tst_links_fdopen" = "yes" &&
29498      test "$tst_proto_fdopen" = "yes" &&
29499      test "$tst_compi_fdopen" = "yes" &&
29500      test "$tst_allow_fdopen" = "yes"; then
29501     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29502 $as_echo "yes" >&6; }
29503
29504 cat >>confdefs.h <<_ACEOF
29505 #define HAVE_FDOPEN 1
29506 _ACEOF
29507
29508     ac_cv_func_fdopen="yes"
29509   else
29510     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29511 $as_echo "no" >&6; }
29512     ac_cv_func_fdopen="no"
29513   fi
29514
29515
29516 curl_includes_netdb="\
29517 /* includes start */
29518 #ifdef HAVE_SYS_TYPES_H
29519 #  include <sys/types.h>
29520 #endif
29521 #ifdef HAVE_NETDB_H
29522 #  include <netdb.h>
29523 #endif
29524 /* includes end */"
29525   for ac_header in sys/types.h netdb.h
29526 do :
29527   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29528 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
29529 "
29530 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29531   cat >>confdefs.h <<_ACEOF
29532 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29533 _ACEOF
29534
29535 fi
29536
29537 done
29538
29539
29540
29541         #
29542   tst_links_freeaddrinfo="unknown"
29543   tst_proto_freeaddrinfo="unknown"
29544   tst_compi_freeaddrinfo="unknown"
29545   tst_allow_freeaddrinfo="unknown"
29546   #
29547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
29548 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
29549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29550 /* end confdefs.h.  */
29551
29552
29553       $curl_includes_ws2tcpip
29554       $curl_includes_sys_socket
29555       $curl_includes_netdb
29556
29557 int main (void)
29558 {
29559
29560       freeaddrinfo(0);
29561
29562  ;
29563  return 0;
29564 }
29565
29566 _ACEOF
29567 if ac_fn_c_try_link "$LINENO"; then :
29568
29569     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29570 $as_echo "yes" >&6; }
29571     tst_links_freeaddrinfo="yes"
29572
29573 else
29574
29575     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29576 $as_echo "no" >&6; }
29577     tst_links_freeaddrinfo="no"
29578
29579 fi
29580 rm -f core conftest.err conftest.$ac_objext \
29581     conftest$ac_exeext conftest.$ac_ext
29582   #
29583   if test "$tst_links_freeaddrinfo" = "yes"; then
29584     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
29585 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
29586     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29587 /* end confdefs.h.  */
29588
29589       $curl_includes_ws2tcpip
29590       $curl_includes_sys_socket
29591       $curl_includes_netdb
29592
29593 _ACEOF
29594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29595   $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
29596
29597       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29598 $as_echo "yes" >&6; }
29599       tst_proto_freeaddrinfo="yes"
29600
29601 else
29602
29603       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29604 $as_echo "no" >&6; }
29605       tst_proto_freeaddrinfo="no"
29606
29607 fi
29608 rm -f conftest*
29609
29610   fi
29611   #
29612   if test "$tst_proto_freeaddrinfo" = "yes"; then
29613     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
29614 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
29615     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29616 /* end confdefs.h.  */
29617
29618
29619         $curl_includes_ws2tcpip
29620         $curl_includes_sys_socket
29621         $curl_includes_netdb
29622
29623 int main (void)
29624 {
29625
29626         freeaddrinfo(0);
29627
29628  ;
29629  return 0;
29630 }
29631
29632 _ACEOF
29633 if ac_fn_c_try_compile "$LINENO"; then :
29634
29635       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29636 $as_echo "yes" >&6; }
29637       tst_compi_freeaddrinfo="yes"
29638
29639 else
29640
29641       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29642 $as_echo "no" >&6; }
29643       tst_compi_freeaddrinfo="no"
29644
29645 fi
29646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29647   fi
29648   #
29649   if test "$tst_compi_freeaddrinfo" = "yes"; then
29650     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
29651 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
29652     if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
29653       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29654 $as_echo "yes" >&6; }
29655       tst_allow_freeaddrinfo="yes"
29656     else
29657       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29658 $as_echo "no" >&6; }
29659       tst_allow_freeaddrinfo="no"
29660     fi
29661   fi
29662   #
29663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
29664 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
29665   if test "$tst_links_freeaddrinfo" = "yes" &&
29666      test "$tst_proto_freeaddrinfo" = "yes" &&
29667      test "$tst_compi_freeaddrinfo" = "yes" &&
29668      test "$tst_allow_freeaddrinfo" = "yes"; then
29669     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29670 $as_echo "yes" >&6; }
29671
29672 cat >>confdefs.h <<_ACEOF
29673 #define HAVE_FREEADDRINFO 1
29674 _ACEOF
29675
29676     ac_cv_func_freeaddrinfo="yes"
29677   else
29678     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29679 $as_echo "no" >&6; }
29680     ac_cv_func_freeaddrinfo="no"
29681   fi
29682
29683
29684 curl_includes_ifaddrs="\
29685 /* includes start */
29686 #ifdef HAVE_SYS_TYPES_H
29687 #  include <sys/types.h>
29688 #endif
29689 #ifdef HAVE_SYS_SOCKET_H
29690 #  include <sys/socket.h>
29691 #endif
29692 #ifdef HAVE_NETINET_IN_H
29693 #  include <netinet/in.h>
29694 #endif
29695 #ifdef HAVE_IFADDRS_H
29696 #  include <ifaddrs.h>
29697 #endif
29698 /* includes end */"
29699   for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
29700 do :
29701   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29702 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
29703 "
29704 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29705   cat >>confdefs.h <<_ACEOF
29706 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29707 _ACEOF
29708
29709 fi
29710
29711 done
29712
29713
29714
29715     #
29716   tst_links_freeifaddrs="unknown"
29717   tst_proto_freeifaddrs="unknown"
29718   tst_compi_freeifaddrs="unknown"
29719   tst_allow_freeifaddrs="unknown"
29720   #
29721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
29722 $as_echo_n "checking if freeifaddrs can be linked... " >&6; }
29723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29724 /* end confdefs.h.  */
29725
29726
29727 #define freeifaddrs innocuous_freeifaddrs
29728 #ifdef __STDC__
29729 # include <limits.h>
29730 #else
29731 # include <assert.h>
29732 #endif
29733 #undef freeifaddrs
29734 #ifdef __cplusplus
29735 extern "C"
29736 #endif
29737 char freeifaddrs ();
29738 #if defined __stub_freeifaddrs || defined __stub___freeifaddrs
29739 choke me
29740 #endif
29741
29742 int main (void)
29743 {
29744 return freeifaddrs ();
29745  ;
29746  return 0;
29747 }
29748
29749 _ACEOF
29750 if ac_fn_c_try_link "$LINENO"; then :
29751
29752     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29753 $as_echo "yes" >&6; }
29754     tst_links_freeifaddrs="yes"
29755
29756 else
29757
29758     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29759 $as_echo "no" >&6; }
29760     tst_links_freeifaddrs="no"
29761
29762 fi
29763 rm -f core conftest.err conftest.$ac_objext \
29764     conftest$ac_exeext conftest.$ac_ext
29765   #
29766   if test "$tst_links_freeifaddrs" = "yes"; then
29767     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
29768 $as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
29769     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29770 /* end confdefs.h.  */
29771
29772       $curl_includes_ifaddrs
29773
29774 _ACEOF
29775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29776   $EGREP "freeifaddrs" >/dev/null 2>&1; then :
29777
29778       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29779 $as_echo "yes" >&6; }
29780       tst_proto_freeifaddrs="yes"
29781
29782 else
29783
29784       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29785 $as_echo "no" >&6; }
29786       tst_proto_freeifaddrs="no"
29787
29788 fi
29789 rm -f conftest*
29790
29791   fi
29792   #
29793   if test "$tst_proto_freeifaddrs" = "yes"; then
29794     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
29795 $as_echo_n "checking if freeifaddrs is compilable... " >&6; }
29796     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29797 /* end confdefs.h.  */
29798
29799
29800         $curl_includes_ifaddrs
29801
29802 int main (void)
29803 {
29804
29805         freeifaddrs(0);
29806
29807  ;
29808  return 0;
29809 }
29810
29811 _ACEOF
29812 if ac_fn_c_try_compile "$LINENO"; then :
29813
29814       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29815 $as_echo "yes" >&6; }
29816       tst_compi_freeifaddrs="yes"
29817
29818 else
29819
29820       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29821 $as_echo "no" >&6; }
29822       tst_compi_freeifaddrs="no"
29823
29824 fi
29825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29826   fi
29827   #
29828   if test "$tst_compi_freeifaddrs" = "yes"; then
29829     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
29830 $as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
29831     if test "x$curl_disallow_freeifaddrs" != "xyes"; then
29832       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29833 $as_echo "yes" >&6; }
29834       tst_allow_freeifaddrs="yes"
29835     else
29836       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29837 $as_echo "no" >&6; }
29838       tst_allow_freeifaddrs="no"
29839     fi
29840   fi
29841   #
29842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
29843 $as_echo_n "checking if freeifaddrs might be used... " >&6; }
29844   if test "$tst_links_freeifaddrs" = "yes" &&
29845      test "$tst_proto_freeifaddrs" = "yes" &&
29846      test "$tst_compi_freeifaddrs" = "yes" &&
29847      test "$tst_allow_freeifaddrs" = "yes"; then
29848     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29849 $as_echo "yes" >&6; }
29850
29851 cat >>confdefs.h <<_ACEOF
29852 #define HAVE_FREEIFADDRS 1
29853 _ACEOF
29854
29855     ac_cv_func_freeifaddrs="yes"
29856   else
29857     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29858 $as_echo "no" >&6; }
29859     ac_cv_func_freeifaddrs="no"
29860   fi
29861
29862
29863 curl_includes_sys_xattr="\
29864 /* includes start */
29865 #ifdef HAVE_SYS_TYPES_H
29866 #  include <sys/types.h>
29867 #endif
29868 #ifdef HAVE_SYS_XATTR_H
29869 #  include <sys/xattr.h>
29870 #endif
29871 /* includes end */"
29872   for ac_header in sys/types.h sys/xattr.h
29873 do :
29874   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29875 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
29876 "
29877 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29878   cat >>confdefs.h <<_ACEOF
29879 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29880 _ACEOF
29881
29882 fi
29883
29884 done
29885
29886
29887
29888     #
29889   tst_links_fsetxattr="unknown"
29890   tst_proto_fsetxattr="unknown"
29891   tst_compi_fsetxattr="unknown"
29892   tst_allow_fsetxattr="unknown"
29893   tst_nargs_fsetxattr="unknown"
29894   #
29895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
29896 $as_echo_n "checking if fsetxattr can be linked... " >&6; }
29897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29898 /* end confdefs.h.  */
29899
29900
29901 #define fsetxattr innocuous_fsetxattr
29902 #ifdef __STDC__
29903 # include <limits.h>
29904 #else
29905 # include <assert.h>
29906 #endif
29907 #undef fsetxattr
29908 #ifdef __cplusplus
29909 extern "C"
29910 #endif
29911 char fsetxattr ();
29912 #if defined __stub_fsetxattr || defined __stub___fsetxattr
29913 choke me
29914 #endif
29915
29916 int main (void)
29917 {
29918 return fsetxattr ();
29919  ;
29920  return 0;
29921 }
29922
29923 _ACEOF
29924 if ac_fn_c_try_link "$LINENO"; then :
29925
29926     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29927 $as_echo "yes" >&6; }
29928     tst_links_fsetxattr="yes"
29929
29930 else
29931
29932     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29933 $as_echo "no" >&6; }
29934     tst_links_fsetxattr="no"
29935
29936 fi
29937 rm -f core conftest.err conftest.$ac_objext \
29938     conftest$ac_exeext conftest.$ac_ext
29939   #
29940   if test "$tst_links_fsetxattr" = "yes"; then
29941     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
29942 $as_echo_n "checking if fsetxattr is prototyped... " >&6; }
29943     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29944 /* end confdefs.h.  */
29945
29946       $curl_includes_sys_xattr
29947
29948 _ACEOF
29949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29950   $EGREP "fsetxattr" >/dev/null 2>&1; then :
29951
29952       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29953 $as_echo "yes" >&6; }
29954       tst_proto_fsetxattr="yes"
29955
29956 else
29957
29958       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29959 $as_echo "no" >&6; }
29960       tst_proto_fsetxattr="no"
29961
29962 fi
29963 rm -f conftest*
29964
29965   fi
29966   #
29967   if test "$tst_proto_fsetxattr" = "yes"; then
29968     if test "$tst_nargs_fsetxattr" = "unknown"; then
29969       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
29970 $as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
29971       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29972 /* end confdefs.h.  */
29973
29974
29975           $curl_includes_sys_xattr
29976
29977 int main (void)
29978 {
29979
29980           if(0 != fsetxattr(0, 0, 0, 0, 0))
29981             return 1;
29982
29983  ;
29984  return 0;
29985 }
29986
29987 _ACEOF
29988 if ac_fn_c_try_compile "$LINENO"; then :
29989
29990         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29991 $as_echo "yes" >&6; }
29992         tst_compi_fsetxattr="yes"
29993         tst_nargs_fsetxattr="5"
29994
29995 else
29996
29997         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29998 $as_echo "no" >&6; }
29999         tst_compi_fsetxattr="no"
30000
30001 fi
30002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30003     fi
30004     if test "$tst_nargs_fsetxattr" = "unknown"; then
30005       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
30006 $as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
30007       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30008 /* end confdefs.h.  */
30009
30010
30011           $curl_includes_sys_xattr
30012
30013 int main (void)
30014 {
30015
30016           if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
30017             return 1;
30018
30019  ;
30020  return 0;
30021 }
30022
30023 _ACEOF
30024 if ac_fn_c_try_compile "$LINENO"; then :
30025
30026         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30027 $as_echo "yes" >&6; }
30028         tst_compi_fsetxattr="yes"
30029         tst_nargs_fsetxattr="6"
30030
30031 else
30032
30033         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30034 $as_echo "no" >&6; }
30035         tst_compi_fsetxattr="no"
30036
30037 fi
30038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30039     fi
30040     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
30041 $as_echo_n "checking if fsetxattr is compilable... " >&6; }
30042     if test "$tst_compi_fsetxattr" = "yes"; then
30043       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30044 $as_echo "yes" >&6; }
30045     else
30046       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30047 $as_echo "no" >&6; }
30048     fi
30049   fi
30050   #
30051   if test "$tst_compi_fsetxattr" = "yes"; then
30052     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
30053 $as_echo_n "checking if fsetxattr usage allowed... " >&6; }
30054     if test "x$curl_disallow_fsetxattr" != "xyes"; then
30055       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30056 $as_echo "yes" >&6; }
30057       tst_allow_fsetxattr="yes"
30058     else
30059       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30060 $as_echo "no" >&6; }
30061       tst_allow_fsetxattr="no"
30062     fi
30063   fi
30064   #
30065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
30066 $as_echo_n "checking if fsetxattr might be used... " >&6; }
30067   if test "$tst_links_fsetxattr" = "yes" &&
30068      test "$tst_proto_fsetxattr" = "yes" &&
30069      test "$tst_compi_fsetxattr" = "yes" &&
30070      test "$tst_allow_fsetxattr" = "yes"; then
30071     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30072 $as_echo "yes" >&6; }
30073
30074 cat >>confdefs.h <<_ACEOF
30075 #define HAVE_FSETXATTR 1
30076 _ACEOF
30077
30078             #
30079     if test "$tst_nargs_fsetxattr" -eq "5"; then
30080
30081 $as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
30082
30083     elif test "$tst_nargs_fsetxattr" -eq "6"; then
30084
30085 $as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
30086
30087     fi
30088     #
30089     ac_cv_func_fsetxattr="yes"
30090   else
30091     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30092 $as_echo "no" >&6; }
30093     ac_cv_func_fsetxattr="no"
30094   fi
30095
30096
30097     #
30098   tst_links_ftruncate="unknown"
30099   tst_proto_ftruncate="unknown"
30100   tst_compi_ftruncate="unknown"
30101   tst_allow_ftruncate="unknown"
30102   #
30103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
30104 $as_echo_n "checking if ftruncate can be linked... " >&6; }
30105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30106 /* end confdefs.h.  */
30107
30108
30109 #define ftruncate innocuous_ftruncate
30110 #ifdef __STDC__
30111 # include <limits.h>
30112 #else
30113 # include <assert.h>
30114 #endif
30115 #undef ftruncate
30116 #ifdef __cplusplus
30117 extern "C"
30118 #endif
30119 char ftruncate ();
30120 #if defined __stub_ftruncate || defined __stub___ftruncate
30121 choke me
30122 #endif
30123
30124 int main (void)
30125 {
30126 return ftruncate ();
30127  ;
30128  return 0;
30129 }
30130
30131 _ACEOF
30132 if ac_fn_c_try_link "$LINENO"; then :
30133
30134     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30135 $as_echo "yes" >&6; }
30136     tst_links_ftruncate="yes"
30137
30138 else
30139
30140     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30141 $as_echo "no" >&6; }
30142     tst_links_ftruncate="no"
30143
30144 fi
30145 rm -f core conftest.err conftest.$ac_objext \
30146     conftest$ac_exeext conftest.$ac_ext
30147   #
30148   if test "$tst_links_ftruncate" = "yes"; then
30149     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
30150 $as_echo_n "checking if ftruncate is prototyped... " >&6; }
30151     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30152 /* end confdefs.h.  */
30153
30154       $curl_includes_unistd
30155
30156 _ACEOF
30157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30158   $EGREP "ftruncate" >/dev/null 2>&1; then :
30159
30160       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30161 $as_echo "yes" >&6; }
30162       tst_proto_ftruncate="yes"
30163
30164 else
30165
30166       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30167 $as_echo "no" >&6; }
30168       tst_proto_ftruncate="no"
30169
30170 fi
30171 rm -f conftest*
30172
30173   fi
30174   #
30175   if test "$tst_proto_ftruncate" = "yes"; then
30176     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
30177 $as_echo_n "checking if ftruncate is compilable... " >&6; }
30178     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30179 /* end confdefs.h.  */
30180
30181
30182         $curl_includes_unistd
30183
30184 int main (void)
30185 {
30186
30187         if(0 != ftruncate(0, 0))
30188           return 1;
30189
30190  ;
30191  return 0;
30192 }
30193
30194 _ACEOF
30195 if ac_fn_c_try_compile "$LINENO"; then :
30196
30197       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30198 $as_echo "yes" >&6; }
30199       tst_compi_ftruncate="yes"
30200
30201 else
30202
30203       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30204 $as_echo "no" >&6; }
30205       tst_compi_ftruncate="no"
30206
30207 fi
30208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30209   fi
30210   #
30211   if test "$tst_compi_ftruncate" = "yes"; then
30212     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
30213 $as_echo_n "checking if ftruncate usage allowed... " >&6; }
30214     if test "x$curl_disallow_ftruncate" != "xyes"; then
30215       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30216 $as_echo "yes" >&6; }
30217       tst_allow_ftruncate="yes"
30218     else
30219       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30220 $as_echo "no" >&6; }
30221       tst_allow_ftruncate="no"
30222     fi
30223   fi
30224   #
30225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
30226 $as_echo_n "checking if ftruncate might be used... " >&6; }
30227   if test "$tst_links_ftruncate" = "yes" &&
30228      test "$tst_proto_ftruncate" = "yes" &&
30229      test "$tst_compi_ftruncate" = "yes" &&
30230      test "$tst_allow_ftruncate" = "yes"; then
30231     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30232 $as_echo "yes" >&6; }
30233
30234 cat >>confdefs.h <<_ACEOF
30235 #define HAVE_FTRUNCATE 1
30236 _ACEOF
30237
30238     ac_cv_func_ftruncate="yes"
30239   else
30240     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30241 $as_echo "no" >&6; }
30242     ac_cv_func_ftruncate="no"
30243   fi
30244
30245
30246 curl_includes_stdlib="\
30247 /* includes start */
30248 #ifdef HAVE_SYS_TYPES_H
30249 #  include <sys/types.h>
30250 #endif
30251 #ifdef HAVE_STDLIB_H
30252 #  include <stdlib.h>
30253 #endif
30254 /* includes end */"
30255   for ac_header in sys/types.h stdlib.h
30256 do :
30257   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30258 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
30259 "
30260 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30261   cat >>confdefs.h <<_ACEOF
30262 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30263 _ACEOF
30264
30265 fi
30266
30267 done
30268
30269
30270
30271               #
30272   tst_links_getaddrinfo="unknown"
30273   tst_proto_getaddrinfo="unknown"
30274   tst_compi_getaddrinfo="unknown"
30275   tst_works_getaddrinfo="unknown"
30276   tst_allow_getaddrinfo="unknown"
30277   tst_tsafe_getaddrinfo="unknown"
30278   #
30279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
30280 $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
30281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30282 /* end confdefs.h.  */
30283
30284
30285       $curl_includes_ws2tcpip
30286       $curl_includes_sys_socket
30287       $curl_includes_netdb
30288
30289 int main (void)
30290 {
30291
30292       if(0 != getaddrinfo(0, 0, 0, 0))
30293         return 1;
30294
30295  ;
30296  return 0;
30297 }
30298
30299 _ACEOF
30300 if ac_fn_c_try_link "$LINENO"; then :
30301
30302     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30303 $as_echo "yes" >&6; }
30304     tst_links_getaddrinfo="yes"
30305
30306 else
30307
30308     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30309 $as_echo "no" >&6; }
30310     tst_links_getaddrinfo="no"
30311
30312 fi
30313 rm -f core conftest.err conftest.$ac_objext \
30314     conftest$ac_exeext conftest.$ac_ext
30315   #
30316   if test "$tst_links_getaddrinfo" = "yes"; then
30317     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
30318 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
30319     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30320 /* end confdefs.h.  */
30321
30322       $curl_includes_ws2tcpip
30323       $curl_includes_sys_socket
30324       $curl_includes_netdb
30325
30326 _ACEOF
30327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30328   $EGREP "getaddrinfo" >/dev/null 2>&1; then :
30329
30330       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30331 $as_echo "yes" >&6; }
30332       tst_proto_getaddrinfo="yes"
30333
30334 else
30335
30336       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30337 $as_echo "no" >&6; }
30338       tst_proto_getaddrinfo="no"
30339
30340 fi
30341 rm -f conftest*
30342
30343   fi
30344   #
30345   if test "$tst_proto_getaddrinfo" = "yes"; then
30346     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
30347 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
30348     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30349 /* end confdefs.h.  */
30350
30351
30352         $curl_includes_ws2tcpip
30353         $curl_includes_sys_socket
30354         $curl_includes_netdb
30355
30356 int main (void)
30357 {
30358
30359         if(0 != getaddrinfo(0, 0, 0, 0))
30360           return 1;
30361
30362  ;
30363  return 0;
30364 }
30365
30366 _ACEOF
30367 if ac_fn_c_try_compile "$LINENO"; then :
30368
30369       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30370 $as_echo "yes" >&6; }
30371       tst_compi_getaddrinfo="yes"
30372
30373 else
30374
30375       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30376 $as_echo "no" >&6; }
30377       tst_compi_getaddrinfo="no"
30378
30379 fi
30380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30381   fi
30382   #
30383     if test "x$cross_compiling" != "xyes" &&
30384     test "$tst_compi_getaddrinfo" = "yes"; then
30385     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
30386 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
30387     if test "$cross_compiling" = yes; then :
30388   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30390 as_fn_error $? "cannot run test program while cross compiling
30391 See \`config.log' for more details" "$LINENO" 5; }
30392 else
30393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30394 /* end confdefs.h.  */
30395
30396
30397         $curl_includes_ws2tcpip
30398         $curl_includes_stdlib
30399         $curl_includes_string
30400         $curl_includes_sys_socket
30401         $curl_includes_netdb
30402
30403 int main (void)
30404 {
30405
30406         struct addrinfo hints;
30407         struct addrinfo *ai = 0;
30408         int error;
30409
30410         memset(&hints, 0, sizeof(hints));
30411         hints.ai_flags = AI_NUMERICHOST;
30412         hints.ai_family = AF_UNSPEC;
30413         hints.ai_socktype = SOCK_STREAM;
30414         error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
30415         if(error || !ai)
30416           exit(1); /* fail */
30417         else
30418           exit(0);
30419
30420  ;
30421  return 0;
30422 }
30423
30424 _ACEOF
30425 if ac_fn_c_try_run "$LINENO"; then :
30426
30427       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30428 $as_echo "yes" >&6; }
30429       tst_works_getaddrinfo="yes"
30430
30431 else
30432
30433       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30434 $as_echo "no" >&6; }
30435       tst_works_getaddrinfo="no"
30436
30437 fi
30438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30439   conftest.$ac_objext conftest.beam conftest.$ac_ext
30440 fi
30441
30442   fi
30443   #
30444   if test "$tst_compi_getaddrinfo" = "yes" &&
30445     test "$tst_works_getaddrinfo" != "no"; then
30446     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
30447 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
30448     if test "x$curl_disallow_getaddrinfo" != "xyes"; then
30449       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30450 $as_echo "yes" >&6; }
30451       tst_allow_getaddrinfo="yes"
30452     else
30453       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30454 $as_echo "no" >&6; }
30455       tst_allow_getaddrinfo="no"
30456     fi
30457   fi
30458   #
30459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
30460 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
30461   if test "$tst_links_getaddrinfo" = "yes" &&
30462      test "$tst_proto_getaddrinfo" = "yes" &&
30463      test "$tst_compi_getaddrinfo" = "yes" &&
30464      test "$tst_allow_getaddrinfo" = "yes" &&
30465      test "$tst_works_getaddrinfo" != "no"; then
30466     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30467 $as_echo "yes" >&6; }
30468
30469 cat >>confdefs.h <<_ACEOF
30470 #define HAVE_GETADDRINFO 1
30471 _ACEOF
30472
30473     ac_cv_func_getaddrinfo="yes"
30474   else
30475     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30476 $as_echo "no" >&6; }
30477     ac_cv_func_getaddrinfo="no"
30478     ac_cv_func_getaddrinfo_threadsafe="no"
30479   fi
30480   #
30481   if test "$ac_cv_func_getaddrinfo" = "yes"; then
30482     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
30483 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
30484     case $host_os in
30485       aix[1234].* | aix5.[01].*)
30486                 tst_tsafe_getaddrinfo="no"
30487         ;;
30488       aix*)
30489                 tst_tsafe_getaddrinfo="yes"
30490         ;;
30491       darwin[12345].*)
30492                 tst_tsafe_getaddrinfo="no"
30493         ;;
30494       darwin*)
30495                 tst_tsafe_getaddrinfo="yes"
30496         ;;
30497       freebsd[1234].* | freebsd5.[1234]*)
30498                 tst_tsafe_getaddrinfo="no"
30499         ;;
30500       freebsd*)
30501                 tst_tsafe_getaddrinfo="yes"
30502         ;;
30503       hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
30504                 tst_tsafe_getaddrinfo="no"
30505         ;;
30506       hpux*)
30507                 tst_tsafe_getaddrinfo="yes"
30508         ;;
30509       netbsd[123].*)
30510                 tst_tsafe_getaddrinfo="no"
30511         ;;
30512       netbsd*)
30513                 tst_tsafe_getaddrinfo="yes"
30514         ;;
30515       *bsd*)
30516                 tst_tsafe_getaddrinfo="no"
30517         ;;
30518       solaris2*)
30519                 tst_tsafe_getaddrinfo="yes"
30520         ;;
30521     esac
30522     if test "$tst_tsafe_getaddrinfo" = "unknown" &&
30523        test "$ac_cv_native_windows" = "yes"; then
30524       tst_tsafe_getaddrinfo="yes"
30525     fi
30526     if test "$tst_tsafe_getaddrinfo" = "unknown"; then
30527
30528
30529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30530 /* end confdefs.h.  */
30531
30532
30533         $curl_includes_sys_socket
30534         $curl_includes_netdb
30535
30536 int main (void)
30537 {
30538 #ifdef h_errno
30539   return 0;
30540 #else
30541   force compilation error
30542 #endif
30543 }
30544
30545
30546 _ACEOF
30547 if ac_fn_c_try_compile "$LINENO"; then :
30548
30549     tst_symbol_defined="yes"
30550
30551 else
30552
30553     tst_symbol_defined="no"
30554
30555 fi
30556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30557   if test "$tst_symbol_defined" = "yes"; then
30558     curl_cv_have_def_h_errno=yes
30559
30560   else
30561     curl_cv_have_def_h_errno=no
30562
30563   fi
30564
30565       if test "$curl_cv_have_def_h_errno" = "yes"; then
30566         tst_h_errno_macro="yes"
30567       else
30568         tst_h_errno_macro="no"
30569       fi
30570       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30571 /* end confdefs.h.  */
30572
30573
30574           $curl_includes_sys_socket
30575           $curl_includes_netdb
30576
30577 int main (void)
30578 {
30579
30580           h_errno = 2;
30581           if(0 != h_errno)
30582             return 1;
30583
30584  ;
30585  return 0;
30586 }
30587
30588 _ACEOF
30589 if ac_fn_c_try_compile "$LINENO"; then :
30590
30591         tst_h_errno_modifiable_lvalue="yes"
30592
30593 else
30594
30595         tst_h_errno_modifiable_lvalue="no"
30596
30597 fi
30598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30599       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30600 /* end confdefs.h.  */
30601
30602
30603
30604 int main (void)
30605 {
30606
30607 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
30608           return 0;
30609 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
30610           return 0;
30611 #else
30612           force compilation error
30613 #endif
30614
30615  ;
30616  return 0;
30617 }
30618
30619 _ACEOF
30620 if ac_fn_c_try_compile "$LINENO"; then :
30621
30622         tst_h_errno_sbs_issue_7="yes"
30623
30624 else
30625
30626         tst_h_errno_sbs_issue_7="no"
30627
30628 fi
30629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30630       if test "$tst_h_errno_macro" = "no" &&
30631          test "$tst_h_errno_modifiable_lvalue" = "no" &&
30632          test "$tst_h_errno_sbs_issue_7" = "no"; then
30633         tst_tsafe_getaddrinfo="no"
30634       else
30635         tst_tsafe_getaddrinfo="yes"
30636       fi
30637     fi
30638     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
30639 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
30640     if test "$tst_tsafe_getaddrinfo" = "yes"; then
30641
30642 cat >>confdefs.h <<_ACEOF
30643 #define HAVE_GETADDRINFO_THREADSAFE 1
30644 _ACEOF
30645
30646       ac_cv_func_getaddrinfo_threadsafe="yes"
30647     else
30648       ac_cv_func_getaddrinfo_threadsafe="no"
30649     fi
30650   fi
30651
30652
30653       #
30654   tst_links_gai_strerror="unknown"
30655   tst_proto_gai_strerror="unknown"
30656   tst_compi_gai_strerror="unknown"
30657   tst_allow_gai_strerror="unknown"
30658   #
30659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
30660 $as_echo_n "checking if gai_strerror can be linked... " >&6; }
30661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30662 /* end confdefs.h.  */
30663
30664
30665       $curl_includes_winsock2
30666       $curl_includes_netdb
30667
30668 int main (void)
30669 {
30670
30671       if(0 != gai_strerror(0))
30672         return 1;
30673
30674  ;
30675  return 0;
30676 }
30677
30678 _ACEOF
30679 if ac_fn_c_try_link "$LINENO"; then :
30680
30681     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30682 $as_echo "yes" >&6; }
30683     tst_links_gai_strerror="yes"
30684
30685 else
30686
30687     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30688 $as_echo "no" >&6; }
30689     tst_links_gai_strerror="no"
30690
30691 fi
30692 rm -f core conftest.err conftest.$ac_objext \
30693     conftest$ac_exeext conftest.$ac_ext
30694   #
30695   if test "$tst_links_gai_strerror" = "yes"; then
30696     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
30697 $as_echo_n "checking if gai_strerror is prototyped... " >&6; }
30698     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30699 /* end confdefs.h.  */
30700
30701       $curl_includes_winsock2
30702       $curl_includes_netdb
30703
30704 _ACEOF
30705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30706   $EGREP "gai_strerror" >/dev/null 2>&1; then :
30707
30708       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30709 $as_echo "yes" >&6; }
30710       tst_proto_gai_strerror="yes"
30711
30712 else
30713
30714       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30715 $as_echo "no" >&6; }
30716       tst_proto_gai_strerror="no"
30717
30718 fi
30719 rm -f conftest*
30720
30721   fi
30722   #
30723   if test "$tst_proto_gai_strerror" = "yes"; then
30724     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
30725 $as_echo_n "checking if gai_strerror is compilable... " >&6; }
30726     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30727 /* end confdefs.h.  */
30728
30729
30730         $curl_includes_winsock2
30731         $curl_includes_netdb
30732
30733 int main (void)
30734 {
30735
30736         if(0 != gai_strerror(0))
30737           return 1;
30738
30739  ;
30740  return 0;
30741 }
30742
30743 _ACEOF
30744 if ac_fn_c_try_compile "$LINENO"; then :
30745
30746       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30747 $as_echo "yes" >&6; }
30748       tst_compi_gai_strerror="yes"
30749
30750 else
30751
30752       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30753 $as_echo "no" >&6; }
30754       tst_compi_gai_strerror="no"
30755
30756 fi
30757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30758   fi
30759   #
30760   if test "$tst_compi_gai_strerror" = "yes"; then
30761     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
30762 $as_echo_n "checking if gai_strerror usage allowed... " >&6; }
30763     if test "x$curl_disallow_gai_strerror" != "xyes"; then
30764       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30765 $as_echo "yes" >&6; }
30766       tst_allow_gai_strerror="yes"
30767     else
30768       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30769 $as_echo "no" >&6; }
30770       tst_allow_gai_strerror="no"
30771     fi
30772   fi
30773   #
30774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
30775 $as_echo_n "checking if gai_strerror might be used... " >&6; }
30776   if test "$tst_links_gai_strerror" = "yes" &&
30777      test "$tst_proto_gai_strerror" = "yes" &&
30778      test "$tst_compi_gai_strerror" = "yes" &&
30779      test "$tst_allow_gai_strerror" = "yes"; then
30780     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30781 $as_echo "yes" >&6; }
30782
30783 cat >>confdefs.h <<_ACEOF
30784 #define HAVE_GAI_STRERROR 1
30785 _ACEOF
30786
30787     ac_cv_func_gai_strerror="yes"
30788   else
30789     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30790 $as_echo "no" >&6; }
30791     ac_cv_func_gai_strerror="no"
30792   fi
30793
30794
30795       #
30796   tst_links_gethostbyaddr="unknown"
30797   tst_proto_gethostbyaddr="unknown"
30798   tst_compi_gethostbyaddr="unknown"
30799   tst_allow_gethostbyaddr="unknown"
30800   #
30801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
30802 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
30803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30804 /* end confdefs.h.  */
30805
30806
30807       $curl_includes_winsock2
30808       $curl_includes_netdb
30809
30810 int main (void)
30811 {
30812
30813       if(0 != gethostbyaddr(0, 0, 0))
30814         return 1;
30815
30816  ;
30817  return 0;
30818 }
30819
30820 _ACEOF
30821 if ac_fn_c_try_link "$LINENO"; then :
30822
30823     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30824 $as_echo "yes" >&6; }
30825     tst_links_gethostbyaddr="yes"
30826
30827 else
30828
30829     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30830 $as_echo "no" >&6; }
30831     tst_links_gethostbyaddr="no"
30832
30833 fi
30834 rm -f core conftest.err conftest.$ac_objext \
30835     conftest$ac_exeext conftest.$ac_ext
30836   #
30837   if test "$tst_links_gethostbyaddr" = "yes"; then
30838     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
30839 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
30840     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30841 /* end confdefs.h.  */
30842
30843       $curl_includes_winsock2
30844       $curl_includes_netdb
30845
30846 _ACEOF
30847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30848   $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
30849
30850       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30851 $as_echo "yes" >&6; }
30852       tst_proto_gethostbyaddr="yes"
30853
30854 else
30855
30856       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30857 $as_echo "no" >&6; }
30858       tst_proto_gethostbyaddr="no"
30859
30860 fi
30861 rm -f conftest*
30862
30863   fi
30864   #
30865   if test "$tst_proto_gethostbyaddr" = "yes"; then
30866     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
30867 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
30868     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30869 /* end confdefs.h.  */
30870
30871
30872         $curl_includes_winsock2
30873         $curl_includes_netdb
30874
30875 int main (void)
30876 {
30877
30878         if(0 != gethostbyaddr(0, 0, 0))
30879           return 1;
30880
30881  ;
30882  return 0;
30883 }
30884
30885 _ACEOF
30886 if ac_fn_c_try_compile "$LINENO"; then :
30887
30888       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30889 $as_echo "yes" >&6; }
30890       tst_compi_gethostbyaddr="yes"
30891
30892 else
30893
30894       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30895 $as_echo "no" >&6; }
30896       tst_compi_gethostbyaddr="no"
30897
30898 fi
30899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30900   fi
30901   #
30902   if test "$tst_compi_gethostbyaddr" = "yes"; then
30903     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
30904 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
30905     if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
30906       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30907 $as_echo "yes" >&6; }
30908       tst_allow_gethostbyaddr="yes"
30909     else
30910       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30911 $as_echo "no" >&6; }
30912       tst_allow_gethostbyaddr="no"
30913     fi
30914   fi
30915   #
30916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
30917 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
30918   if test "$tst_links_gethostbyaddr" = "yes" &&
30919      test "$tst_proto_gethostbyaddr" = "yes" &&
30920      test "$tst_compi_gethostbyaddr" = "yes" &&
30921      test "$tst_allow_gethostbyaddr" = "yes"; then
30922     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30923 $as_echo "yes" >&6; }
30924
30925 cat >>confdefs.h <<_ACEOF
30926 #define HAVE_GETHOSTBYADDR 1
30927 _ACEOF
30928
30929     ac_cv_func_gethostbyaddr="yes"
30930   else
30931     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30932 $as_echo "no" >&6; }
30933     ac_cv_func_gethostbyaddr="no"
30934   fi
30935
30936
30937     #
30938   tst_links_gethostbyaddr_r="unknown"
30939   tst_proto_gethostbyaddr_r="unknown"
30940   tst_compi_gethostbyaddr_r="unknown"
30941   tst_allow_gethostbyaddr_r="unknown"
30942   tst_nargs_gethostbyaddr_r="unknown"
30943   #
30944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
30945 $as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
30946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30947 /* end confdefs.h.  */
30948
30949
30950 #define gethostbyaddr_r innocuous_gethostbyaddr_r
30951 #ifdef __STDC__
30952 # include <limits.h>
30953 #else
30954 # include <assert.h>
30955 #endif
30956 #undef gethostbyaddr_r
30957 #ifdef __cplusplus
30958 extern "C"
30959 #endif
30960 char gethostbyaddr_r ();
30961 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
30962 choke me
30963 #endif
30964
30965 int main (void)
30966 {
30967 return gethostbyaddr_r ();
30968  ;
30969  return 0;
30970 }
30971
30972 _ACEOF
30973 if ac_fn_c_try_link "$LINENO"; then :
30974
30975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30976 $as_echo "yes" >&6; }
30977     tst_links_gethostbyaddr_r="yes"
30978
30979 else
30980
30981     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30982 $as_echo "no" >&6; }
30983     tst_links_gethostbyaddr_r="no"
30984
30985 fi
30986 rm -f core conftest.err conftest.$ac_objext \
30987     conftest$ac_exeext conftest.$ac_ext
30988   #
30989   if test "$tst_links_gethostbyaddr_r" = "yes"; then
30990     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
30991 $as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
30992     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30993 /* end confdefs.h.  */
30994
30995       $curl_includes_netdb
30996
30997 _ACEOF
30998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30999   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
31000
31001       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31002 $as_echo "yes" >&6; }
31003       tst_proto_gethostbyaddr_r="yes"
31004
31005 else
31006
31007       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31008 $as_echo "no" >&6; }
31009       tst_proto_gethostbyaddr_r="no"
31010
31011 fi
31012 rm -f conftest*
31013
31014   fi
31015   #
31016   if test "$tst_proto_gethostbyaddr_r" = "yes"; then
31017     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
31018       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
31019 $as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
31020       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31021 /* end confdefs.h.  */
31022
31023
31024           $curl_includes_netdb
31025
31026 int main (void)
31027 {
31028
31029           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
31030             return 1;
31031
31032  ;
31033  return 0;
31034 }
31035
31036 _ACEOF
31037 if ac_fn_c_try_compile "$LINENO"; then :
31038
31039         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31040 $as_echo "yes" >&6; }
31041         tst_compi_gethostbyaddr_r="yes"
31042         tst_nargs_gethostbyaddr_r="5"
31043
31044 else
31045
31046         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31047 $as_echo "no" >&6; }
31048         tst_compi_gethostbyaddr_r="no"
31049
31050 fi
31051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31052     fi
31053     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
31054       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
31055 $as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
31056       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31057 /* end confdefs.h.  */
31058
31059
31060           $curl_includes_netdb
31061
31062 int main (void)
31063 {
31064
31065           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
31066             return 1;
31067
31068  ;
31069  return 0;
31070 }
31071
31072 _ACEOF
31073 if ac_fn_c_try_compile "$LINENO"; then :
31074
31075         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31076 $as_echo "yes" >&6; }
31077         tst_compi_gethostbyaddr_r="yes"
31078         tst_nargs_gethostbyaddr_r="7"
31079
31080 else
31081
31082         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31083 $as_echo "no" >&6; }
31084         tst_compi_gethostbyaddr_r="no"
31085
31086 fi
31087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31088     fi
31089     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
31090       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
31091 $as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
31092       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31093 /* end confdefs.h.  */
31094
31095
31096           $curl_includes_netdb
31097
31098 int main (void)
31099 {
31100
31101           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
31102             return 1;
31103
31104  ;
31105  return 0;
31106 }
31107
31108 _ACEOF
31109 if ac_fn_c_try_compile "$LINENO"; then :
31110
31111         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31112 $as_echo "yes" >&6; }
31113         tst_compi_gethostbyaddr_r="yes"
31114         tst_nargs_gethostbyaddr_r="8"
31115
31116 else
31117
31118         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31119 $as_echo "no" >&6; }
31120         tst_compi_gethostbyaddr_r="no"
31121
31122 fi
31123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31124     fi
31125     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
31126 $as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
31127     if test "$tst_compi_gethostbyaddr_r" = "yes"; then
31128       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31129 $as_echo "yes" >&6; }
31130     else
31131       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31132 $as_echo "no" >&6; }
31133     fi
31134   fi
31135   #
31136   if test "$tst_compi_gethostbyaddr_r" = "yes"; then
31137     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
31138 $as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
31139     if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
31140       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31141 $as_echo "yes" >&6; }
31142       tst_allow_gethostbyaddr_r="yes"
31143     else
31144       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31145 $as_echo "no" >&6; }
31146       tst_allow_gethostbyaddr_r="no"
31147     fi
31148   fi
31149   #
31150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
31151 $as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
31152   if test "$tst_links_gethostbyaddr_r" = "yes" &&
31153      test "$tst_proto_gethostbyaddr_r" = "yes" &&
31154      test "$tst_compi_gethostbyaddr_r" = "yes" &&
31155      test "$tst_allow_gethostbyaddr_r" = "yes"; then
31156     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31157 $as_echo "yes" >&6; }
31158
31159 cat >>confdefs.h <<_ACEOF
31160 #define HAVE_GETHOSTBYADDR_R 1
31161 _ACEOF
31162
31163             #
31164     if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
31165
31166 $as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
31167
31168     elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
31169
31170 $as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
31171
31172     elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
31173
31174 $as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
31175
31176     fi
31177     #
31178     ac_cv_func_gethostbyaddr_r="yes"
31179   else
31180     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31181 $as_echo "no" >&6; }
31182     ac_cv_func_gethostbyaddr_r="no"
31183   fi
31184
31185
31186       #
31187   tst_links_gethostbyname="unknown"
31188   tst_proto_gethostbyname="unknown"
31189   tst_compi_gethostbyname="unknown"
31190   tst_allow_gethostbyname="unknown"
31191   #
31192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
31193 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
31194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31195 /* end confdefs.h.  */
31196
31197
31198       $curl_includes_winsock2
31199       $curl_includes_netdb
31200
31201 int main (void)
31202 {
31203
31204       if(0 != gethostbyname(0))
31205         return 1;
31206
31207  ;
31208  return 0;
31209 }
31210
31211 _ACEOF
31212 if ac_fn_c_try_link "$LINENO"; then :
31213
31214     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31215 $as_echo "yes" >&6; }
31216     tst_links_gethostbyname="yes"
31217
31218 else
31219
31220     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31221 $as_echo "no" >&6; }
31222     tst_links_gethostbyname="no"
31223
31224 fi
31225 rm -f core conftest.err conftest.$ac_objext \
31226     conftest$ac_exeext conftest.$ac_ext
31227   #
31228   if test "$tst_links_gethostbyname" = "yes"; then
31229     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
31230 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
31231     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31232 /* end confdefs.h.  */
31233
31234       $curl_includes_winsock2
31235       $curl_includes_netdb
31236
31237 _ACEOF
31238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31239   $EGREP "gethostbyname" >/dev/null 2>&1; then :
31240
31241       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31242 $as_echo "yes" >&6; }
31243       tst_proto_gethostbyname="yes"
31244
31245 else
31246
31247       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31248 $as_echo "no" >&6; }
31249       tst_proto_gethostbyname="no"
31250
31251 fi
31252 rm -f conftest*
31253
31254   fi
31255   #
31256   if test "$tst_proto_gethostbyname" = "yes"; then
31257     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
31258 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
31259     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31260 /* end confdefs.h.  */
31261
31262
31263         $curl_includes_winsock2
31264         $curl_includes_netdb
31265
31266 int main (void)
31267 {
31268
31269         if(0 != gethostbyname(0))
31270           return 1;
31271
31272  ;
31273  return 0;
31274 }
31275
31276 _ACEOF
31277 if ac_fn_c_try_compile "$LINENO"; then :
31278
31279       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31280 $as_echo "yes" >&6; }
31281       tst_compi_gethostbyname="yes"
31282
31283 else
31284
31285       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31286 $as_echo "no" >&6; }
31287       tst_compi_gethostbyname="no"
31288
31289 fi
31290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31291   fi
31292   #
31293   if test "$tst_compi_gethostbyname" = "yes"; then
31294     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
31295 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
31296     if test "x$curl_disallow_gethostbyname" != "xyes"; then
31297       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31298 $as_echo "yes" >&6; }
31299       tst_allow_gethostbyname="yes"
31300     else
31301       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31302 $as_echo "no" >&6; }
31303       tst_allow_gethostbyname="no"
31304     fi
31305   fi
31306   #
31307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
31308 $as_echo_n "checking if gethostbyname might be used... " >&6; }
31309   if test "$tst_links_gethostbyname" = "yes" &&
31310      test "$tst_proto_gethostbyname" = "yes" &&
31311      test "$tst_compi_gethostbyname" = "yes" &&
31312      test "$tst_allow_gethostbyname" = "yes"; then
31313     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31314 $as_echo "yes" >&6; }
31315
31316 cat >>confdefs.h <<_ACEOF
31317 #define HAVE_GETHOSTBYNAME 1
31318 _ACEOF
31319
31320     ac_cv_func_gethostbyname="yes"
31321   else
31322     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31323 $as_echo "no" >&6; }
31324     ac_cv_func_gethostbyname="no"
31325   fi
31326
31327
31328     #
31329   tst_links_gethostbyname_r="unknown"
31330   tst_proto_gethostbyname_r="unknown"
31331   tst_compi_gethostbyname_r="unknown"
31332   tst_allow_gethostbyname_r="unknown"
31333   tst_nargs_gethostbyname_r="unknown"
31334   #
31335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
31336 $as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
31337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31338 /* end confdefs.h.  */
31339
31340
31341 #define gethostbyname_r innocuous_gethostbyname_r
31342 #ifdef __STDC__
31343 # include <limits.h>
31344 #else
31345 # include <assert.h>
31346 #endif
31347 #undef gethostbyname_r
31348 #ifdef __cplusplus
31349 extern "C"
31350 #endif
31351 char gethostbyname_r ();
31352 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
31353 choke me
31354 #endif
31355
31356 int main (void)
31357 {
31358 return gethostbyname_r ();
31359  ;
31360  return 0;
31361 }
31362
31363 _ACEOF
31364 if ac_fn_c_try_link "$LINENO"; then :
31365
31366     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31367 $as_echo "yes" >&6; }
31368     tst_links_gethostbyname_r="yes"
31369
31370 else
31371
31372     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31373 $as_echo "no" >&6; }
31374     tst_links_gethostbyname_r="no"
31375
31376 fi
31377 rm -f core conftest.err conftest.$ac_objext \
31378     conftest$ac_exeext conftest.$ac_ext
31379   #
31380   if test "$tst_links_gethostbyname_r" = "yes"; then
31381     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
31382 $as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
31383     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31384 /* end confdefs.h.  */
31385
31386       $curl_includes_netdb
31387
31388 _ACEOF
31389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31390   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
31391
31392       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31393 $as_echo "yes" >&6; }
31394       tst_proto_gethostbyname_r="yes"
31395
31396 else
31397
31398       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31399 $as_echo "no" >&6; }
31400       tst_proto_gethostbyname_r="no"
31401
31402 fi
31403 rm -f conftest*
31404
31405   fi
31406   #
31407   if test "$tst_proto_gethostbyname_r" = "yes"; then
31408     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
31409       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
31410 $as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
31411       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31412 /* end confdefs.h.  */
31413
31414
31415           $curl_includes_netdb
31416
31417 int main (void)
31418 {
31419
31420           if(0 != gethostbyname_r(0, 0, 0))
31421             return 1;
31422
31423  ;
31424  return 0;
31425 }
31426
31427 _ACEOF
31428 if ac_fn_c_try_compile "$LINENO"; then :
31429
31430         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31431 $as_echo "yes" >&6; }
31432         tst_compi_gethostbyname_r="yes"
31433         tst_nargs_gethostbyname_r="3"
31434
31435 else
31436
31437         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31438 $as_echo "no" >&6; }
31439         tst_compi_gethostbyname_r="no"
31440
31441 fi
31442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31443     fi
31444     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
31445       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
31446 $as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
31447       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31448 /* end confdefs.h.  */
31449
31450
31451           $curl_includes_netdb
31452
31453 int main (void)
31454 {
31455
31456           if(0 != gethostbyname_r(0, 0, 0, 0, 0))
31457             return 1;
31458
31459  ;
31460  return 0;
31461 }
31462
31463 _ACEOF
31464 if ac_fn_c_try_compile "$LINENO"; then :
31465
31466         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31467 $as_echo "yes" >&6; }
31468         tst_compi_gethostbyname_r="yes"
31469         tst_nargs_gethostbyname_r="5"
31470
31471 else
31472
31473         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31474 $as_echo "no" >&6; }
31475         tst_compi_gethostbyname_r="no"
31476
31477 fi
31478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31479     fi
31480     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
31481       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
31482 $as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
31483       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31484 /* end confdefs.h.  */
31485
31486
31487           $curl_includes_netdb
31488
31489 int main (void)
31490 {
31491
31492           if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
31493             return 1;
31494
31495  ;
31496  return 0;
31497 }
31498
31499 _ACEOF
31500 if ac_fn_c_try_compile "$LINENO"; then :
31501
31502         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31503 $as_echo "yes" >&6; }
31504         tst_compi_gethostbyname_r="yes"
31505         tst_nargs_gethostbyname_r="6"
31506
31507 else
31508
31509         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31510 $as_echo "no" >&6; }
31511         tst_compi_gethostbyname_r="no"
31512
31513 fi
31514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31515     fi
31516     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
31517 $as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
31518     if test "$tst_compi_gethostbyname_r" = "yes"; then
31519       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31520 $as_echo "yes" >&6; }
31521     else
31522       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31523 $as_echo "no" >&6; }
31524     fi
31525   fi
31526   #
31527   if test "$tst_compi_gethostbyname_r" = "yes"; then
31528     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
31529 $as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
31530     if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
31531       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31532 $as_echo "yes" >&6; }
31533       tst_allow_gethostbyname_r="yes"
31534     else
31535       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31536 $as_echo "no" >&6; }
31537       tst_allow_gethostbyname_r="no"
31538     fi
31539   fi
31540   #
31541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
31542 $as_echo_n "checking if gethostbyname_r might be used... " >&6; }
31543   if test "$tst_links_gethostbyname_r" = "yes" &&
31544      test "$tst_proto_gethostbyname_r" = "yes" &&
31545      test "$tst_compi_gethostbyname_r" = "yes" &&
31546      test "$tst_allow_gethostbyname_r" = "yes"; then
31547     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31548 $as_echo "yes" >&6; }
31549
31550 cat >>confdefs.h <<_ACEOF
31551 #define HAVE_GETHOSTBYNAME_R 1
31552 _ACEOF
31553
31554             #
31555     if test "$tst_nargs_gethostbyname_r" -eq "3"; then
31556
31557 $as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
31558
31559     elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
31560
31561 $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
31562
31563     elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
31564
31565 $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
31566
31567     fi
31568     #
31569     ac_cv_func_gethostbyname_r="yes"
31570   else
31571     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31572 $as_echo "no" >&6; }
31573     ac_cv_func_gethostbyname_r="no"
31574   fi
31575
31576
31577         #
31578   tst_links_gethostname="unknown"
31579   tst_proto_gethostname="unknown"
31580   tst_compi_gethostname="unknown"
31581   tst_allow_gethostname="unknown"
31582   #
31583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
31584 $as_echo_n "checking if gethostname can be linked... " >&6; }
31585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31586 /* end confdefs.h.  */
31587
31588
31589       $curl_includes_winsock2
31590       $curl_includes_unistd
31591
31592 int main (void)
31593 {
31594
31595       if(0 != gethostname(0, 0))
31596         return 1;
31597
31598  ;
31599  return 0;
31600 }
31601
31602 _ACEOF
31603 if ac_fn_c_try_link "$LINENO"; then :
31604
31605     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31606 $as_echo "yes" >&6; }
31607     tst_links_gethostname="yes"
31608
31609 else
31610
31611     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31612 $as_echo "no" >&6; }
31613     tst_links_gethostname="no"
31614
31615 fi
31616 rm -f core conftest.err conftest.$ac_objext \
31617     conftest$ac_exeext conftest.$ac_ext
31618   #
31619   if test "$tst_links_gethostname" = "yes"; then
31620     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
31621 $as_echo_n "checking if gethostname is prototyped... " >&6; }
31622     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31623 /* end confdefs.h.  */
31624
31625       $curl_includes_winsock2
31626       $curl_includes_unistd
31627
31628 _ACEOF
31629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31630   $EGREP "gethostname" >/dev/null 2>&1; then :
31631
31632       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31633 $as_echo "yes" >&6; }
31634       tst_proto_gethostname="yes"
31635
31636 else
31637
31638       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31639 $as_echo "no" >&6; }
31640       tst_proto_gethostname="no"
31641
31642 fi
31643 rm -f conftest*
31644
31645   fi
31646   #
31647   if test "$tst_proto_gethostname" = "yes"; then
31648     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
31649 $as_echo_n "checking if gethostname is compilable... " >&6; }
31650     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31651 /* end confdefs.h.  */
31652
31653
31654         $curl_includes_winsock2
31655         $curl_includes_unistd
31656
31657 int main (void)
31658 {
31659
31660         if(0 != gethostname(0, 0))
31661           return 1;
31662
31663  ;
31664  return 0;
31665 }
31666
31667 _ACEOF
31668 if ac_fn_c_try_compile "$LINENO"; then :
31669
31670       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31671 $as_echo "yes" >&6; }
31672       tst_compi_gethostname="yes"
31673
31674 else
31675
31676       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31677 $as_echo "no" >&6; }
31678       tst_compi_gethostname="no"
31679
31680 fi
31681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31682   fi
31683   #
31684   if test "$tst_compi_gethostname" = "yes"; then
31685     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
31686 $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
31687     tst_gethostname_type_arg2="unknown"
31688     for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
31689       for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
31690         if test "$tst_gethostname_type_arg2" = "unknown"; then
31691           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31692 /* end confdefs.h.  */
31693
31694
31695               $curl_includes_winsock2
31696               $curl_includes_unistd
31697               $curl_preprocess_callconv
31698               extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
31699
31700 int main (void)
31701 {
31702
31703               if(0 != gethostname(0, 0))
31704                 return 1;
31705
31706  ;
31707  return 0;
31708 }
31709
31710 _ACEOF
31711 if ac_fn_c_try_compile "$LINENO"; then :
31712
31713             tst_gethostname_type_arg2="$tst_arg2"
31714
31715 fi
31716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31717         fi
31718       done
31719     done
31720     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
31721 $as_echo "$tst_gethostname_type_arg2" >&6; }
31722     if test "$tst_gethostname_type_arg2" != "unknown"; then
31723
31724 cat >>confdefs.h <<_ACEOF
31725 #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
31726 _ACEOF
31727
31728     fi
31729   fi
31730   #
31731   if test "$tst_compi_gethostname" = "yes"; then
31732     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
31733 $as_echo_n "checking if gethostname usage allowed... " >&6; }
31734     if test "x$curl_disallow_gethostname" != "xyes"; then
31735       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31736 $as_echo "yes" >&6; }
31737       tst_allow_gethostname="yes"
31738     else
31739       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31740 $as_echo "no" >&6; }
31741       tst_allow_gethostname="no"
31742     fi
31743   fi
31744   #
31745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
31746 $as_echo_n "checking if gethostname might be used... " >&6; }
31747   if test "$tst_links_gethostname" = "yes" &&
31748      test "$tst_proto_gethostname" = "yes" &&
31749      test "$tst_compi_gethostname" = "yes" &&
31750      test "$tst_allow_gethostname" = "yes"; then
31751     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31752 $as_echo "yes" >&6; }
31753
31754 cat >>confdefs.h <<_ACEOF
31755 #define HAVE_GETHOSTNAME 1
31756 _ACEOF
31757
31758     ac_cv_func_gethostname="yes"
31759   else
31760     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31761 $as_echo "no" >&6; }
31762     ac_cv_func_gethostname="no"
31763   fi
31764
31765
31766       #
31767   tst_links_getifaddrs="unknown"
31768   tst_proto_getifaddrs="unknown"
31769   tst_compi_getifaddrs="unknown"
31770   tst_works_getifaddrs="unknown"
31771   tst_allow_getifaddrs="unknown"
31772   #
31773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
31774 $as_echo_n "checking if getifaddrs can be linked... " >&6; }
31775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31776 /* end confdefs.h.  */
31777
31778
31779 #define getifaddrs innocuous_getifaddrs
31780 #ifdef __STDC__
31781 # include <limits.h>
31782 #else
31783 # include <assert.h>
31784 #endif
31785 #undef getifaddrs
31786 #ifdef __cplusplus
31787 extern "C"
31788 #endif
31789 char getifaddrs ();
31790 #if defined __stub_getifaddrs || defined __stub___getifaddrs
31791 choke me
31792 #endif
31793
31794 int main (void)
31795 {
31796 return getifaddrs ();
31797  ;
31798  return 0;
31799 }
31800
31801 _ACEOF
31802 if ac_fn_c_try_link "$LINENO"; then :
31803
31804     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31805 $as_echo "yes" >&6; }
31806     tst_links_getifaddrs="yes"
31807
31808 else
31809
31810     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31811 $as_echo "no" >&6; }
31812     tst_links_getifaddrs="no"
31813
31814 fi
31815 rm -f core conftest.err conftest.$ac_objext \
31816     conftest$ac_exeext conftest.$ac_ext
31817   #
31818   if test "$tst_links_getifaddrs" = "yes"; then
31819     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
31820 $as_echo_n "checking if getifaddrs is prototyped... " >&6; }
31821     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31822 /* end confdefs.h.  */
31823
31824       $curl_includes_ifaddrs
31825
31826 _ACEOF
31827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31828   $EGREP "getifaddrs" >/dev/null 2>&1; then :
31829
31830       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31831 $as_echo "yes" >&6; }
31832       tst_proto_getifaddrs="yes"
31833
31834 else
31835
31836       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31837 $as_echo "no" >&6; }
31838       tst_proto_getifaddrs="no"
31839
31840 fi
31841 rm -f conftest*
31842
31843   fi
31844   #
31845   if test "$tst_proto_getifaddrs" = "yes"; then
31846     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
31847 $as_echo_n "checking if getifaddrs is compilable... " >&6; }
31848     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31849 /* end confdefs.h.  */
31850
31851
31852         $curl_includes_ifaddrs
31853
31854 int main (void)
31855 {
31856
31857         if(0 != getifaddrs(0))
31858           return 1;
31859
31860  ;
31861  return 0;
31862 }
31863
31864 _ACEOF
31865 if ac_fn_c_try_compile "$LINENO"; then :
31866
31867       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31868 $as_echo "yes" >&6; }
31869       tst_compi_getifaddrs="yes"
31870
31871 else
31872
31873       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31874 $as_echo "no" >&6; }
31875       tst_compi_getifaddrs="no"
31876
31877 fi
31878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31879   fi
31880   #
31881     if test "x$cross_compiling" != "xyes" &&
31882     test "$tst_compi_getifaddrs" = "yes"; then
31883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
31884 $as_echo_n "checking if getifaddrs seems to work... " >&6; }
31885     if test "$cross_compiling" = yes; then :
31886   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31888 as_fn_error $? "cannot run test program while cross compiling
31889 See \`config.log' for more details" "$LINENO" 5; }
31890 else
31891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31892 /* end confdefs.h.  */
31893
31894
31895         $curl_includes_stdlib
31896         $curl_includes_ifaddrs
31897
31898 int main (void)
31899 {
31900
31901         struct ifaddrs *ifa = 0;
31902         int error;
31903
31904         error = getifaddrs(&ifa);
31905         if(error || !ifa)
31906           exit(1); /* fail */
31907         else
31908           exit(0);
31909
31910  ;
31911  return 0;
31912 }
31913
31914 _ACEOF
31915 if ac_fn_c_try_run "$LINENO"; then :
31916
31917       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31918 $as_echo "yes" >&6; }
31919       tst_works_getifaddrs="yes"
31920
31921 else
31922
31923       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31924 $as_echo "no" >&6; }
31925       tst_works_getifaddrs="no"
31926
31927 fi
31928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31929   conftest.$ac_objext conftest.beam conftest.$ac_ext
31930 fi
31931
31932   fi
31933   #
31934   if test "$tst_compi_getifaddrs" = "yes" &&
31935     test "$tst_works_getifaddrs" != "no"; then
31936     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
31937 $as_echo_n "checking if getifaddrs usage allowed... " >&6; }
31938     if test "x$curl_disallow_getifaddrs" != "xyes"; then
31939       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31940 $as_echo "yes" >&6; }
31941       tst_allow_getifaddrs="yes"
31942     else
31943       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31944 $as_echo "no" >&6; }
31945       tst_allow_getifaddrs="no"
31946     fi
31947   fi
31948   #
31949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
31950 $as_echo_n "checking if getifaddrs might be used... " >&6; }
31951   if test "$tst_links_getifaddrs" = "yes" &&
31952      test "$tst_proto_getifaddrs" = "yes" &&
31953      test "$tst_compi_getifaddrs" = "yes" &&
31954      test "$tst_allow_getifaddrs" = "yes" &&
31955      test "$tst_works_getifaddrs" != "no"; then
31956     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31957 $as_echo "yes" >&6; }
31958
31959 cat >>confdefs.h <<_ACEOF
31960 #define HAVE_GETIFADDRS 1
31961 _ACEOF
31962
31963     ac_cv_func_getifaddrs="yes"
31964   else
31965     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31966 $as_echo "no" >&6; }
31967     ac_cv_func_getifaddrs="no"
31968   fi
31969
31970
31971     #
31972   tst_links_getservbyport_r="unknown"
31973   tst_proto_getservbyport_r="unknown"
31974   tst_compi_getservbyport_r="unknown"
31975   tst_allow_getservbyport_r="unknown"
31976   tst_nargs_getservbyport_r="unknown"
31977   #
31978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
31979 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
31980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31981 /* end confdefs.h.  */
31982
31983
31984 #define getservbyport_r innocuous_getservbyport_r
31985 #ifdef __STDC__
31986 # include <limits.h>
31987 #else
31988 # include <assert.h>
31989 #endif
31990 #undef getservbyport_r
31991 #ifdef __cplusplus
31992 extern "C"
31993 #endif
31994 char getservbyport_r ();
31995 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
31996 choke me
31997 #endif
31998
31999 int main (void)
32000 {
32001 return getservbyport_r ();
32002  ;
32003  return 0;
32004 }
32005
32006 _ACEOF
32007 if ac_fn_c_try_link "$LINENO"; then :
32008
32009     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32010 $as_echo "yes" >&6; }
32011     tst_links_getservbyport_r="yes"
32012
32013 else
32014
32015     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32016 $as_echo "no" >&6; }
32017     tst_links_getservbyport_r="no"
32018
32019 fi
32020 rm -f core conftest.err conftest.$ac_objext \
32021     conftest$ac_exeext conftest.$ac_ext
32022   #
32023   if test "$tst_links_getservbyport_r" = "yes"; then
32024     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
32025 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
32026     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32027 /* end confdefs.h.  */
32028
32029       $curl_includes_netdb
32030
32031 _ACEOF
32032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32033   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
32034
32035       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32036 $as_echo "yes" >&6; }
32037       tst_proto_getservbyport_r="yes"
32038
32039 else
32040
32041       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32042 $as_echo "no" >&6; }
32043       tst_proto_getservbyport_r="no"
32044
32045 fi
32046 rm -f conftest*
32047
32048   fi
32049   #
32050   if test "$tst_proto_getservbyport_r" = "yes"; then
32051     if test "$tst_nargs_getservbyport_r" = "unknown"; then
32052       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
32053 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
32054       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32055 /* end confdefs.h.  */
32056
32057
32058           $curl_includes_netdb
32059
32060 int main (void)
32061 {
32062
32063           if(0 != getservbyport_r(0, 0, 0, 0))
32064             return 1;
32065
32066  ;
32067  return 0;
32068 }
32069
32070 _ACEOF
32071 if ac_fn_c_try_compile "$LINENO"; then :
32072
32073         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32074 $as_echo "yes" >&6; }
32075         tst_compi_getservbyport_r="yes"
32076         tst_nargs_getservbyport_r="4"
32077
32078 else
32079
32080         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32081 $as_echo "no" >&6; }
32082         tst_compi_getservbyport_r="no"
32083
32084 fi
32085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32086     fi
32087     if test "$tst_nargs_getservbyport_r" = "unknown"; then
32088       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
32089 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
32090       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32091 /* end confdefs.h.  */
32092
32093
32094           $curl_includes_netdb
32095
32096 int main (void)
32097 {
32098
32099           if(0 != getservbyport_r(0, 0, 0, 0, 0))
32100             return 1;
32101
32102  ;
32103  return 0;
32104 }
32105
32106 _ACEOF
32107 if ac_fn_c_try_compile "$LINENO"; then :
32108
32109         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32110 $as_echo "yes" >&6; }
32111         tst_compi_getservbyport_r="yes"
32112         tst_nargs_getservbyport_r="5"
32113
32114 else
32115
32116         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32117 $as_echo "no" >&6; }
32118         tst_compi_getservbyport_r="no"
32119
32120 fi
32121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32122     fi
32123     if test "$tst_nargs_getservbyport_r" = "unknown"; then
32124       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
32125 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
32126       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32127 /* end confdefs.h.  */
32128
32129
32130           $curl_includes_netdb
32131
32132 int main (void)
32133 {
32134
32135           if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
32136             return 1;
32137
32138  ;
32139  return 0;
32140 }
32141
32142 _ACEOF
32143 if ac_fn_c_try_compile "$LINENO"; then :
32144
32145         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32146 $as_echo "yes" >&6; }
32147         tst_compi_getservbyport_r="yes"
32148         tst_nargs_getservbyport_r="6"
32149
32150 else
32151
32152         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32153 $as_echo "no" >&6; }
32154         tst_compi_getservbyport_r="no"
32155
32156 fi
32157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32158     fi
32159     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
32160 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
32161     if test "$tst_compi_getservbyport_r" = "yes"; then
32162       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32163 $as_echo "yes" >&6; }
32164     else
32165       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32166 $as_echo "no" >&6; }
32167     fi
32168   fi
32169   #
32170   if test "$tst_compi_getservbyport_r" = "yes"; then
32171     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
32172 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
32173     if test "x$curl_disallow_getservbyport_r" != "xyes"; then
32174       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32175 $as_echo "yes" >&6; }
32176       tst_allow_getservbyport_r="yes"
32177     else
32178       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32179 $as_echo "no" >&6; }
32180       tst_allow_getservbyport_r="no"
32181     fi
32182   fi
32183   #
32184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
32185 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
32186   if test "$tst_links_getservbyport_r" = "yes" &&
32187      test "$tst_proto_getservbyport_r" = "yes" &&
32188      test "$tst_compi_getservbyport_r" = "yes" &&
32189      test "$tst_allow_getservbyport_r" = "yes"; then
32190     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32191 $as_echo "yes" >&6; }
32192
32193 cat >>confdefs.h <<_ACEOF
32194 #define HAVE_GETSERVBYPORT_R 1
32195 _ACEOF
32196
32197
32198 cat >>confdefs.h <<_ACEOF
32199 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
32200 _ACEOF
32201
32202     if test "$tst_nargs_getservbyport_r" -eq "4"; then
32203
32204 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
32205
32206     else
32207
32208 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
32209
32210     fi
32211     ac_cv_func_getservbyport_r="yes"
32212   else
32213     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32214 $as_echo "no" >&6; }
32215     ac_cv_func_getservbyport_r="no"
32216   fi
32217
32218
32219 curl_includes_time="\
32220 /* includes start */
32221 #ifdef HAVE_SYS_TYPES_H
32222 #  include <sys/types.h>
32223 #endif
32224 #ifdef HAVE_SYS_TIME_H
32225 #  include <sys/time.h>
32226 #  ifdef TIME_WITH_SYS_TIME
32227 #    include <time.h>
32228 #  endif
32229 #else
32230 #  ifdef HAVE_TIME_H
32231 #    include <time.h>
32232 #  endif
32233 #endif
32234 /* includes end */"
32235   for ac_header in sys/types.h sys/time.h time.h
32236 do :
32237   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32238 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
32239 "
32240 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32241   cat >>confdefs.h <<_ACEOF
32242 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32243 _ACEOF
32244
32245 fi
32246
32247 done
32248
32249
32250
32251       #
32252   tst_links_gmtime_r="unknown"
32253   tst_proto_gmtime_r="unknown"
32254   tst_compi_gmtime_r="unknown"
32255   tst_works_gmtime_r="unknown"
32256   tst_allow_gmtime_r="unknown"
32257   #
32258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
32259 $as_echo_n "checking if gmtime_r can be linked... " >&6; }
32260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32261 /* end confdefs.h.  */
32262
32263
32264 #define gmtime_r innocuous_gmtime_r
32265 #ifdef __STDC__
32266 # include <limits.h>
32267 #else
32268 # include <assert.h>
32269 #endif
32270 #undef gmtime_r
32271 #ifdef __cplusplus
32272 extern "C"
32273 #endif
32274 char gmtime_r ();
32275 #if defined __stub_gmtime_r || defined __stub___gmtime_r
32276 choke me
32277 #endif
32278
32279 int main (void)
32280 {
32281 return gmtime_r ();
32282  ;
32283  return 0;
32284 }
32285
32286 _ACEOF
32287 if ac_fn_c_try_link "$LINENO"; then :
32288
32289     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32290 $as_echo "yes" >&6; }
32291     tst_links_gmtime_r="yes"
32292
32293 else
32294
32295     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32296 $as_echo "no" >&6; }
32297     tst_links_gmtime_r="no"
32298
32299 fi
32300 rm -f core conftest.err conftest.$ac_objext \
32301     conftest$ac_exeext conftest.$ac_ext
32302   #
32303   if test "$tst_links_gmtime_r" = "yes"; then
32304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
32305 $as_echo_n "checking if gmtime_r is prototyped... " >&6; }
32306     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32307 /* end confdefs.h.  */
32308
32309       $curl_includes_time
32310
32311 _ACEOF
32312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32313   $EGREP "gmtime_r" >/dev/null 2>&1; then :
32314
32315       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32316 $as_echo "yes" >&6; }
32317       tst_proto_gmtime_r="yes"
32318
32319 else
32320
32321       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32322 $as_echo "no" >&6; }
32323       tst_proto_gmtime_r="no"
32324
32325 fi
32326 rm -f conftest*
32327
32328   fi
32329   #
32330   if test "$tst_proto_gmtime_r" = "yes"; then
32331     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
32332 $as_echo_n "checking if gmtime_r is compilable... " >&6; }
32333     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32334 /* end confdefs.h.  */
32335
32336
32337         $curl_includes_time
32338
32339 int main (void)
32340 {
32341
32342         if(0 != gmtime_r(0, 0))
32343           return 1;
32344
32345  ;
32346  return 0;
32347 }
32348
32349 _ACEOF
32350 if ac_fn_c_try_compile "$LINENO"; then :
32351
32352       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32353 $as_echo "yes" >&6; }
32354       tst_compi_gmtime_r="yes"
32355
32356 else
32357
32358       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32359 $as_echo "no" >&6; }
32360       tst_compi_gmtime_r="no"
32361
32362 fi
32363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32364   fi
32365   #
32366     if test "x$cross_compiling" != "xyes" &&
32367     test "$tst_compi_gmtime_r" = "yes"; then
32368     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
32369 $as_echo_n "checking if gmtime_r seems to work... " >&6; }
32370     if test "$cross_compiling" = yes; then :
32371   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32373 as_fn_error $? "cannot run test program while cross compiling
32374 See \`config.log' for more details" "$LINENO" 5; }
32375 else
32376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32377 /* end confdefs.h.  */
32378
32379
32380         $curl_includes_stdlib
32381         $curl_includes_time
32382
32383 int main (void)
32384 {
32385
32386         time_t local = 1170352587;
32387         struct tm *gmt = 0;
32388         struct tm result;
32389         gmt = gmtime_r(&local, &result);
32390         if(gmt)
32391           exit(0);
32392         else
32393           exit(1);
32394
32395  ;
32396  return 0;
32397 }
32398
32399 _ACEOF
32400 if ac_fn_c_try_run "$LINENO"; then :
32401
32402       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32403 $as_echo "yes" >&6; }
32404       tst_works_gmtime_r="yes"
32405
32406 else
32407
32408       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32409 $as_echo "no" >&6; }
32410       tst_works_gmtime_r="no"
32411
32412 fi
32413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32414   conftest.$ac_objext conftest.beam conftest.$ac_ext
32415 fi
32416
32417   fi
32418   #
32419   if test "$tst_compi_gmtime_r" = "yes" &&
32420     test "$tst_works_gmtime_r" != "no"; then
32421     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
32422 $as_echo_n "checking if gmtime_r usage allowed... " >&6; }
32423     if test "x$curl_disallow_gmtime_r" != "xyes"; then
32424       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32425 $as_echo "yes" >&6; }
32426       tst_allow_gmtime_r="yes"
32427     else
32428       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32429 $as_echo "no" >&6; }
32430       tst_allow_gmtime_r="no"
32431     fi
32432   fi
32433   #
32434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
32435 $as_echo_n "checking if gmtime_r might be used... " >&6; }
32436   if test "$tst_links_gmtime_r" = "yes" &&
32437      test "$tst_proto_gmtime_r" = "yes" &&
32438      test "$tst_compi_gmtime_r" = "yes" &&
32439      test "$tst_allow_gmtime_r" = "yes" &&
32440      test "$tst_works_gmtime_r" != "no"; then
32441     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32442 $as_echo "yes" >&6; }
32443
32444 cat >>confdefs.h <<_ACEOF
32445 #define HAVE_GMTIME_R 1
32446 _ACEOF
32447
32448     ac_cv_func_gmtime_r="yes"
32449   else
32450     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32451 $as_echo "no" >&6; }
32452     ac_cv_func_gmtime_r="no"
32453   fi
32454
32455
32456 curl_includes_arpa_inet="\
32457 /* includes start */
32458 #ifdef HAVE_SYS_TYPES_H
32459 #  include <sys/types.h>
32460 #endif
32461 #ifdef HAVE_SYS_SOCKET_H
32462 #  include <sys/socket.h>
32463 #endif
32464 #ifdef HAVE_NETINET_IN_H
32465 #  include <netinet/in.h>
32466 #endif
32467 #ifdef HAVE_ARPA_INET_H
32468 #  include <arpa/inet.h>
32469 #endif
32470 /* includes end */"
32471   for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
32472 do :
32473   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32474 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
32475 "
32476 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32477   cat >>confdefs.h <<_ACEOF
32478 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32479 _ACEOF
32480
32481 fi
32482
32483 done
32484
32485
32486
32487     #
32488   tst_links_inet_ntoa_r="unknown"
32489   tst_proto_inet_ntoa_r="unknown"
32490   tst_compi_inet_ntoa_r="unknown"
32491   tst_allow_inet_ntoa_r="unknown"
32492   tst_nargs_inet_ntoa_r="unknown"
32493   #
32494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
32495 $as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
32496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32497 /* end confdefs.h.  */
32498
32499
32500 #define inet_ntoa_r innocuous_inet_ntoa_r
32501 #ifdef __STDC__
32502 # include <limits.h>
32503 #else
32504 # include <assert.h>
32505 #endif
32506 #undef inet_ntoa_r
32507 #ifdef __cplusplus
32508 extern "C"
32509 #endif
32510 char inet_ntoa_r ();
32511 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
32512 choke me
32513 #endif
32514
32515 int main (void)
32516 {
32517 return inet_ntoa_r ();
32518  ;
32519  return 0;
32520 }
32521
32522 _ACEOF
32523 if ac_fn_c_try_link "$LINENO"; then :
32524
32525     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32526 $as_echo "yes" >&6; }
32527     tst_links_inet_ntoa_r="yes"
32528
32529 else
32530
32531     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32532 $as_echo "no" >&6; }
32533     tst_links_inet_ntoa_r="no"
32534
32535 fi
32536 rm -f core conftest.err conftest.$ac_objext \
32537     conftest$ac_exeext conftest.$ac_ext
32538   #
32539   if test "$tst_links_inet_ntoa_r" = "yes"; then
32540     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
32541 $as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
32542     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32543 /* end confdefs.h.  */
32544
32545       $curl_includes_arpa_inet
32546
32547 _ACEOF
32548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32549   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
32550
32551       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32552 $as_echo "yes" >&6; }
32553       tst_proto_inet_ntoa_r="yes"
32554
32555 else
32556
32557       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32558 $as_echo "no" >&6; }
32559       tst_proto_inet_ntoa_r="no"
32560
32561 fi
32562 rm -f conftest*
32563
32564   fi
32565   #
32566   if test "$tst_proto_inet_ntoa_r" = "yes"; then
32567     if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
32568       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
32569 $as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
32570       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32571 /* end confdefs.h.  */
32572
32573
32574           $curl_includes_arpa_inet
32575
32576 int main (void)
32577 {
32578
32579           struct in_addr addr;
32580           if(0 != inet_ntoa_r(addr, 0))
32581             return 1;
32582
32583  ;
32584  return 0;
32585 }
32586
32587 _ACEOF
32588 if ac_fn_c_try_compile "$LINENO"; then :
32589
32590         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32591 $as_echo "yes" >&6; }
32592         tst_compi_inet_ntoa_r="yes"
32593         tst_nargs_inet_ntoa_r="2"
32594
32595 else
32596
32597         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32598 $as_echo "no" >&6; }
32599         tst_compi_inet_ntoa_r="no"
32600
32601 fi
32602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32603     fi
32604     if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
32605       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
32606 $as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
32607       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32608 /* end confdefs.h.  */
32609
32610
32611           $curl_includes_arpa_inet
32612
32613 int main (void)
32614 {
32615
32616           struct in_addr addr;
32617           if(0 != inet_ntoa_r(addr, 0, 0))
32618             return 1;
32619
32620  ;
32621  return 0;
32622 }
32623
32624 _ACEOF
32625 if ac_fn_c_try_compile "$LINENO"; then :
32626
32627         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32628 $as_echo "yes" >&6; }
32629         tst_compi_inet_ntoa_r="yes"
32630         tst_nargs_inet_ntoa_r="3"
32631
32632 else
32633
32634         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32635 $as_echo "no" >&6; }
32636         tst_compi_inet_ntoa_r="no"
32637
32638 fi
32639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32640     fi
32641     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
32642 $as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
32643     if test "$tst_compi_inet_ntoa_r" = "yes"; then
32644       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32645 $as_echo "yes" >&6; }
32646     else
32647       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32648 $as_echo "no" >&6; }
32649     fi
32650   fi
32651   #
32652   if test "$tst_compi_inet_ntoa_r" = "yes"; then
32653     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
32654 $as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
32655     if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
32656       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32657 $as_echo "yes" >&6; }
32658       tst_allow_inet_ntoa_r="yes"
32659     else
32660       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32661 $as_echo "no" >&6; }
32662       tst_allow_inet_ntoa_r="no"
32663     fi
32664   fi
32665   #
32666   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
32667 $as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
32668   if test "$tst_links_inet_ntoa_r" = "yes" &&
32669      test "$tst_proto_inet_ntoa_r" = "yes" &&
32670      test "$tst_compi_inet_ntoa_r" = "yes" &&
32671      test "$tst_allow_inet_ntoa_r" = "yes"; then
32672     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32673 $as_echo "yes" >&6; }
32674
32675 cat >>confdefs.h <<_ACEOF
32676 #define HAVE_INET_NTOA_R 1
32677 _ACEOF
32678
32679             #
32680     if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
32681
32682 $as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
32683
32684     elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
32685
32686 $as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
32687
32688     fi
32689     #
32690     ac_cv_func_inet_ntoa_r="yes"
32691   else
32692     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32693 $as_echo "no" >&6; }
32694     ac_cv_func_inet_ntoa_r="no"
32695   fi
32696
32697
32698         #
32699   tst_links_inet_ntop="unknown"
32700   tst_proto_inet_ntop="unknown"
32701   tst_compi_inet_ntop="unknown"
32702   tst_works_inet_ntop="unknown"
32703   tst_allow_inet_ntop="unknown"
32704   #
32705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
32706 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
32707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32708 /* end confdefs.h.  */
32709
32710
32711 #define inet_ntop innocuous_inet_ntop
32712 #ifdef __STDC__
32713 # include <limits.h>
32714 #else
32715 # include <assert.h>
32716 #endif
32717 #undef inet_ntop
32718 #ifdef __cplusplus
32719 extern "C"
32720 #endif
32721 char inet_ntop ();
32722 #if defined __stub_inet_ntop || defined __stub___inet_ntop
32723 choke me
32724 #endif
32725
32726 int main (void)
32727 {
32728 return inet_ntop ();
32729  ;
32730  return 0;
32731 }
32732
32733 _ACEOF
32734 if ac_fn_c_try_link "$LINENO"; then :
32735
32736     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32737 $as_echo "yes" >&6; }
32738     tst_links_inet_ntop="yes"
32739
32740 else
32741
32742     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32743 $as_echo "no" >&6; }
32744     tst_links_inet_ntop="no"
32745
32746 fi
32747 rm -f core conftest.err conftest.$ac_objext \
32748     conftest$ac_exeext conftest.$ac_ext
32749   #
32750   if test "$tst_links_inet_ntop" = "yes"; then
32751     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
32752 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
32753     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32754 /* end confdefs.h.  */
32755
32756       $curl_includes_arpa_inet
32757
32758 _ACEOF
32759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32760   $EGREP "inet_ntop" >/dev/null 2>&1; then :
32761
32762       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32763 $as_echo "yes" >&6; }
32764       tst_proto_inet_ntop="yes"
32765
32766 else
32767
32768       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32769 $as_echo "no" >&6; }
32770       tst_proto_inet_ntop="no"
32771
32772 fi
32773 rm -f conftest*
32774
32775   fi
32776   #
32777   if test "$tst_proto_inet_ntop" = "yes"; then
32778     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
32779 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
32780     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32781 /* end confdefs.h.  */
32782
32783
32784         $curl_includes_arpa_inet
32785
32786 int main (void)
32787 {
32788
32789         if(0 != inet_ntop(0, 0, 0, 0))
32790           return 1;
32791
32792  ;
32793  return 0;
32794 }
32795
32796 _ACEOF
32797 if ac_fn_c_try_compile "$LINENO"; then :
32798
32799       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32800 $as_echo "yes" >&6; }
32801       tst_compi_inet_ntop="yes"
32802
32803 else
32804
32805       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32806 $as_echo "no" >&6; }
32807       tst_compi_inet_ntop="no"
32808
32809 fi
32810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32811   fi
32812   #
32813     if test "x$cross_compiling" != "xyes" &&
32814     test "$tst_compi_inet_ntop" = "yes"; then
32815     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
32816 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
32817     if test "$cross_compiling" = yes; then :
32818   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32820 as_fn_error $? "cannot run test program while cross compiling
32821 See \`config.log' for more details" "$LINENO" 5; }
32822 else
32823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32824 /* end confdefs.h.  */
32825
32826
32827         $curl_includes_stdlib
32828         $curl_includes_arpa_inet
32829         $curl_includes_string
32830
32831 int main (void)
32832 {
32833
32834         char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
32835         char ipv4res[sizeof "255.255.255.255"];
32836         unsigned char ipv6a[26];
32837         unsigned char ipv4a[5];
32838         char *ipv6ptr = 0;
32839         char *ipv4ptr = 0;
32840         /* - */
32841         ipv4res[0] = '\0';
32842         ipv4a[0] = 0xc0;
32843         ipv4a[1] = 0xa8;
32844         ipv4a[2] = 0x64;
32845         ipv4a[3] = 0x01;
32846         ipv4a[4] = 0x01;
32847         /* - */
32848         ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
32849         if(!ipv4ptr)
32850           exit(1); /* fail */
32851         if(ipv4ptr != ipv4res)
32852           exit(1); /* fail */
32853         if(!ipv4ptr[0])
32854           exit(1); /* fail */
32855         if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
32856           exit(1); /* fail */
32857         /* - */
32858         ipv6res[0] = '\0';
32859         memset(ipv6a, 0, sizeof(ipv6a));
32860         ipv6a[0] = 0xfe;
32861         ipv6a[1] = 0x80;
32862         ipv6a[8] = 0x02;
32863         ipv6a[9] = 0x14;
32864         ipv6a[10] = 0x4f;
32865         ipv6a[11] = 0xff;
32866         ipv6a[12] = 0xfe;
32867         ipv6a[13] = 0x0b;
32868         ipv6a[14] = 0x76;
32869         ipv6a[15] = 0xc8;
32870         ipv6a[25] = 0x01;
32871         /* - */
32872         ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
32873         if(!ipv6ptr)
32874           exit(1); /* fail */
32875         if(ipv6ptr != ipv6res)
32876           exit(1); /* fail */
32877         if(!ipv6ptr[0])
32878           exit(1); /* fail */
32879         if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
32880           exit(1); /* fail */
32881         /* - */
32882         exit(0);
32883
32884  ;
32885  return 0;
32886 }
32887
32888 _ACEOF
32889 if ac_fn_c_try_run "$LINENO"; then :
32890
32891       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32892 $as_echo "yes" >&6; }
32893       tst_works_inet_ntop="yes"
32894
32895 else
32896
32897       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32898 $as_echo "no" >&6; }
32899       tst_works_inet_ntop="no"
32900
32901 fi
32902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32903   conftest.$ac_objext conftest.beam conftest.$ac_ext
32904 fi
32905
32906   fi
32907   #
32908   if test "$tst_compi_inet_ntop" = "yes" &&
32909     test "$tst_works_inet_ntop" != "no"; then
32910     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
32911 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
32912     if test "x$curl_disallow_inet_ntop" != "xyes"; then
32913       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32914 $as_echo "yes" >&6; }
32915       tst_allow_inet_ntop="yes"
32916     else
32917       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32918 $as_echo "no" >&6; }
32919       tst_allow_inet_ntop="no"
32920     fi
32921   fi
32922   #
32923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
32924 $as_echo_n "checking if inet_ntop might be used... " >&6; }
32925   if test "$tst_links_inet_ntop" = "yes" &&
32926      test "$tst_proto_inet_ntop" = "yes" &&
32927      test "$tst_compi_inet_ntop" = "yes" &&
32928      test "$tst_allow_inet_ntop" = "yes" &&
32929      test "$tst_works_inet_ntop" != "no"; then
32930     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32931 $as_echo "yes" >&6; }
32932
32933 cat >>confdefs.h <<_ACEOF
32934 #define HAVE_INET_NTOP 1
32935 _ACEOF
32936
32937     ac_cv_func_inet_ntop="yes"
32938   else
32939     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32940 $as_echo "no" >&6; }
32941     ac_cv_func_inet_ntop="no"
32942   fi
32943
32944
32945         #
32946   tst_links_inet_pton="unknown"
32947   tst_proto_inet_pton="unknown"
32948   tst_compi_inet_pton="unknown"
32949   tst_works_inet_pton="unknown"
32950   tst_allow_inet_pton="unknown"
32951   #
32952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
32953 $as_echo_n "checking if inet_pton can be linked... " >&6; }
32954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32955 /* end confdefs.h.  */
32956
32957
32958 #define inet_pton innocuous_inet_pton
32959 #ifdef __STDC__
32960 # include <limits.h>
32961 #else
32962 # include <assert.h>
32963 #endif
32964 #undef inet_pton
32965 #ifdef __cplusplus
32966 extern "C"
32967 #endif
32968 char inet_pton ();
32969 #if defined __stub_inet_pton || defined __stub___inet_pton
32970 choke me
32971 #endif
32972
32973 int main (void)
32974 {
32975 return inet_pton ();
32976  ;
32977  return 0;
32978 }
32979
32980 _ACEOF
32981 if ac_fn_c_try_link "$LINENO"; then :
32982
32983     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32984 $as_echo "yes" >&6; }
32985     tst_links_inet_pton="yes"
32986
32987 else
32988
32989     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32990 $as_echo "no" >&6; }
32991     tst_links_inet_pton="no"
32992
32993 fi
32994 rm -f core conftest.err conftest.$ac_objext \
32995     conftest$ac_exeext conftest.$ac_ext
32996   #
32997   if test "$tst_links_inet_pton" = "yes"; then
32998     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
32999 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
33000     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33001 /* end confdefs.h.  */
33002
33003       $curl_includes_arpa_inet
33004
33005 _ACEOF
33006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33007   $EGREP "inet_pton" >/dev/null 2>&1; then :
33008
33009       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33010 $as_echo "yes" >&6; }
33011       tst_proto_inet_pton="yes"
33012
33013 else
33014
33015       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33016 $as_echo "no" >&6; }
33017       tst_proto_inet_pton="no"
33018
33019 fi
33020 rm -f conftest*
33021
33022   fi
33023   #
33024   if test "$tst_proto_inet_pton" = "yes"; then
33025     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
33026 $as_echo_n "checking if inet_pton is compilable... " >&6; }
33027     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33028 /* end confdefs.h.  */
33029
33030
33031         $curl_includes_arpa_inet
33032
33033 int main (void)
33034 {
33035
33036         if(0 != inet_pton(0, 0, 0))
33037           return 1;
33038
33039  ;
33040  return 0;
33041 }
33042
33043 _ACEOF
33044 if ac_fn_c_try_compile "$LINENO"; then :
33045
33046       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33047 $as_echo "yes" >&6; }
33048       tst_compi_inet_pton="yes"
33049
33050 else
33051
33052       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33053 $as_echo "no" >&6; }
33054       tst_compi_inet_pton="no"
33055
33056 fi
33057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33058   fi
33059   #
33060     if test "x$cross_compiling" != "xyes" &&
33061     test "$tst_compi_inet_pton" = "yes"; then
33062     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
33063 $as_echo_n "checking if inet_pton seems to work... " >&6; }
33064     if test "$cross_compiling" = yes; then :
33065   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33067 as_fn_error $? "cannot run test program while cross compiling
33068 See \`config.log' for more details" "$LINENO" 5; }
33069 else
33070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33071 /* end confdefs.h.  */
33072
33073
33074         $curl_includes_stdlib
33075         $curl_includes_arpa_inet
33076         $curl_includes_string
33077
33078 int main (void)
33079 {
33080
33081         unsigned char ipv6a[16+1];
33082         unsigned char ipv4a[4+1];
33083         const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
33084         const char *ipv4src = "192.168.100.1";
33085         /* - */
33086         memset(ipv4a, 1, sizeof(ipv4a));
33087         if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
33088           exit(1); /* fail */
33089         /* - */
33090         if( (ipv4a[0] != 0xc0) ||
33091             (ipv4a[1] != 0xa8) ||
33092             (ipv4a[2] != 0x64) ||
33093             (ipv4a[3] != 0x01) ||
33094             (ipv4a[4] != 0x01) )
33095           exit(1); /* fail */
33096         /* - */
33097         memset(ipv6a, 1, sizeof(ipv6a));
33098         if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
33099           exit(1); /* fail */
33100         /* - */
33101         if( (ipv6a[0]  != 0xfe) ||
33102             (ipv6a[1]  != 0x80) ||
33103             (ipv6a[8]  != 0x02) ||
33104             (ipv6a[9]  != 0x14) ||
33105             (ipv6a[10] != 0x4f) ||
33106             (ipv6a[11] != 0xff) ||
33107             (ipv6a[12] != 0xfe) ||
33108             (ipv6a[13] != 0x0b) ||
33109             (ipv6a[14] != 0x76) ||
33110             (ipv6a[15] != 0xc8) ||
33111             (ipv6a[16] != 0x01) )
33112           exit(1); /* fail */
33113         /* - */
33114         if( (ipv6a[2]  != 0x0) ||
33115             (ipv6a[3]  != 0x0) ||
33116             (ipv6a[4]  != 0x0) ||
33117             (ipv6a[5]  != 0x0) ||
33118             (ipv6a[6]  != 0x0) ||
33119             (ipv6a[7]  != 0x0) )
33120           exit(1); /* fail */
33121         /* - */
33122         exit(0);
33123
33124  ;
33125  return 0;
33126 }
33127
33128 _ACEOF
33129 if ac_fn_c_try_run "$LINENO"; then :
33130
33131       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33132 $as_echo "yes" >&6; }
33133       tst_works_inet_pton="yes"
33134
33135 else
33136
33137       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33138 $as_echo "no" >&6; }
33139       tst_works_inet_pton="no"
33140
33141 fi
33142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33143   conftest.$ac_objext conftest.beam conftest.$ac_ext
33144 fi
33145
33146   fi
33147   #
33148   if test "$tst_compi_inet_pton" = "yes" &&
33149     test "$tst_works_inet_pton" != "no"; then
33150     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
33151 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
33152     if test "x$curl_disallow_inet_pton" != "xyes"; then
33153       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33154 $as_echo "yes" >&6; }
33155       tst_allow_inet_pton="yes"
33156     else
33157       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33158 $as_echo "no" >&6; }
33159       tst_allow_inet_pton="no"
33160     fi
33161   fi
33162   #
33163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
33164 $as_echo_n "checking if inet_pton might be used... " >&6; }
33165   if test "$tst_links_inet_pton" = "yes" &&
33166      test "$tst_proto_inet_pton" = "yes" &&
33167      test "$tst_compi_inet_pton" = "yes" &&
33168      test "$tst_allow_inet_pton" = "yes" &&
33169      test "$tst_works_inet_pton" != "no"; then
33170     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33171 $as_echo "yes" >&6; }
33172
33173 cat >>confdefs.h <<_ACEOF
33174 #define HAVE_INET_PTON 1
33175 _ACEOF
33176
33177     ac_cv_func_inet_pton="yes"
33178   else
33179     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33180 $as_echo "no" >&6; }
33181     ac_cv_func_inet_pton="no"
33182   fi
33183
33184
33185 curl_includes_stropts="\
33186 /* includes start */
33187 #ifdef HAVE_SYS_TYPES_H
33188 #  include <sys/types.h>
33189 #endif
33190 #ifdef HAVE_UNISTD_H
33191 #  include <unistd.h>
33192 #endif
33193 #ifdef HAVE_SYS_SOCKET_H
33194 #  include <sys/socket.h>
33195 #endif
33196 #ifdef HAVE_SYS_IOCTL_H
33197 #  include <sys/ioctl.h>
33198 #endif
33199 #ifdef HAVE_STROPTS_H
33200 #  include <stropts.h>
33201 #endif
33202 /* includes end */"
33203   for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
33204 do :
33205   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33206 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
33207 "
33208 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33209   cat >>confdefs.h <<_ACEOF
33210 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33211 _ACEOF
33212
33213 fi
33214
33215 done
33216
33217
33218
33219     #
33220   tst_links_ioctl="unknown"
33221   tst_proto_ioctl="unknown"
33222   tst_compi_ioctl="unknown"
33223   tst_allow_ioctl="unknown"
33224   #
33225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
33226 $as_echo_n "checking if ioctl can be linked... " >&6; }
33227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33228 /* end confdefs.h.  */
33229
33230
33231 #define ioctl innocuous_ioctl
33232 #ifdef __STDC__
33233 # include <limits.h>
33234 #else
33235 # include <assert.h>
33236 #endif
33237 #undef ioctl
33238 #ifdef __cplusplus
33239 extern "C"
33240 #endif
33241 char ioctl ();
33242 #if defined __stub_ioctl || defined __stub___ioctl
33243 choke me
33244 #endif
33245
33246 int main (void)
33247 {
33248 return ioctl ();
33249  ;
33250  return 0;
33251 }
33252
33253 _ACEOF
33254 if ac_fn_c_try_link "$LINENO"; then :
33255
33256     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33257 $as_echo "yes" >&6; }
33258     tst_links_ioctl="yes"
33259
33260 else
33261
33262     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33263 $as_echo "no" >&6; }
33264     tst_links_ioctl="no"
33265
33266 fi
33267 rm -f core conftest.err conftest.$ac_objext \
33268     conftest$ac_exeext conftest.$ac_ext
33269   #
33270   if test "$tst_links_ioctl" = "yes"; then
33271     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
33272 $as_echo_n "checking if ioctl is prototyped... " >&6; }
33273     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33274 /* end confdefs.h.  */
33275
33276       $curl_includes_stropts
33277
33278 _ACEOF
33279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33280   $EGREP "ioctl" >/dev/null 2>&1; then :
33281
33282       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33283 $as_echo "yes" >&6; }
33284       tst_proto_ioctl="yes"
33285
33286 else
33287
33288       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33289 $as_echo "no" >&6; }
33290       tst_proto_ioctl="no"
33291
33292 fi
33293 rm -f conftest*
33294
33295   fi
33296   #
33297   if test "$tst_proto_ioctl" = "yes"; then
33298     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
33299 $as_echo_n "checking if ioctl is compilable... " >&6; }
33300     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33301 /* end confdefs.h.  */
33302
33303
33304         $curl_includes_stropts
33305
33306 int main (void)
33307 {
33308
33309         if(0 != ioctl(0, 0, 0))
33310           return 1;
33311
33312  ;
33313  return 0;
33314 }
33315
33316 _ACEOF
33317 if ac_fn_c_try_compile "$LINENO"; then :
33318
33319       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33320 $as_echo "yes" >&6; }
33321       tst_compi_ioctl="yes"
33322
33323 else
33324
33325       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33326 $as_echo "no" >&6; }
33327       tst_compi_ioctl="no"
33328
33329 fi
33330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33331   fi
33332   #
33333   if test "$tst_compi_ioctl" = "yes"; then
33334     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
33335 $as_echo_n "checking if ioctl usage allowed... " >&6; }
33336     if test "x$curl_disallow_ioctl" != "xyes"; then
33337       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33338 $as_echo "yes" >&6; }
33339       tst_allow_ioctl="yes"
33340     else
33341       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33342 $as_echo "no" >&6; }
33343       tst_allow_ioctl="no"
33344     fi
33345   fi
33346   #
33347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
33348 $as_echo_n "checking if ioctl might be used... " >&6; }
33349   if test "$tst_links_ioctl" = "yes" &&
33350      test "$tst_proto_ioctl" = "yes" &&
33351      test "$tst_compi_ioctl" = "yes" &&
33352      test "$tst_allow_ioctl" = "yes"; then
33353     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33354 $as_echo "yes" >&6; }
33355
33356 cat >>confdefs.h <<_ACEOF
33357 #define HAVE_IOCTL 1
33358 _ACEOF
33359
33360     ac_cv_func_ioctl="yes"
33361
33362   #
33363   tst_compi_ioctl_fionbio="unknown"
33364   tst_allow_ioctl_fionbio="unknown"
33365   #
33366   if test "$ac_cv_func_ioctl" = "yes"; then
33367     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
33368 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
33369     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33370 /* end confdefs.h.  */
33371
33372
33373         $curl_includes_stropts
33374
33375 int main (void)
33376 {
33377
33378         int flags = 0;
33379         if(0 != ioctl(0, FIONBIO, &flags))
33380           return 1;
33381
33382  ;
33383  return 0;
33384 }
33385
33386 _ACEOF
33387 if ac_fn_c_try_compile "$LINENO"; then :
33388
33389       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33390 $as_echo "yes" >&6; }
33391       tst_compi_ioctl_fionbio="yes"
33392
33393 else
33394
33395       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33396 $as_echo "no" >&6; }
33397       tst_compi_ioctl_fionbio="no"
33398
33399 fi
33400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33401   fi
33402   #
33403   if test "$tst_compi_ioctl_fionbio" = "yes"; then
33404     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
33405 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
33406     if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
33407       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33408 $as_echo "yes" >&6; }
33409       tst_allow_ioctl_fionbio="yes"
33410     else
33411       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33412 $as_echo "no" >&6; }
33413       tst_allow_ioctl_fionbio="no"
33414     fi
33415   fi
33416   #
33417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
33418 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
33419   if test "$tst_compi_ioctl_fionbio" = "yes" &&
33420      test "$tst_allow_ioctl_fionbio" = "yes"; then
33421     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33422 $as_echo "yes" >&6; }
33423
33424 cat >>confdefs.h <<_ACEOF
33425 #define HAVE_IOCTL_FIONBIO 1
33426 _ACEOF
33427
33428     ac_cv_func_ioctl_fionbio="yes"
33429   else
33430     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33431 $as_echo "no" >&6; }
33432     ac_cv_func_ioctl_fionbio="no"
33433   fi
33434
33435
33436   #
33437   tst_compi_ioctl_siocgifaddr="unknown"
33438   tst_allow_ioctl_siocgifaddr="unknown"
33439   #
33440   if test "$ac_cv_func_ioctl" = "yes"; then
33441     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
33442 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
33443     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33444 /* end confdefs.h.  */
33445
33446
33447         $curl_includes_stropts
33448         #include <net/if.h>
33449
33450 int main (void)
33451 {
33452
33453         struct ifreq ifr;
33454         if(0 != ioctl(0, SIOCGIFADDR, &ifr))
33455           return 1;
33456
33457  ;
33458  return 0;
33459 }
33460
33461 _ACEOF
33462 if ac_fn_c_try_compile "$LINENO"; then :
33463
33464       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33465 $as_echo "yes" >&6; }
33466       tst_compi_ioctl_siocgifaddr="yes"
33467
33468 else
33469
33470       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33471 $as_echo "no" >&6; }
33472       tst_compi_ioctl_siocgifaddr="no"
33473
33474 fi
33475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33476   fi
33477   #
33478   if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
33479     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
33480 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
33481     if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
33482       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33483 $as_echo "yes" >&6; }
33484       tst_allow_ioctl_siocgifaddr="yes"
33485     else
33486       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33487 $as_echo "no" >&6; }
33488       tst_allow_ioctl_siocgifaddr="no"
33489     fi
33490   fi
33491   #
33492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
33493 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
33494   if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
33495      test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
33496     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33497 $as_echo "yes" >&6; }
33498
33499 cat >>confdefs.h <<_ACEOF
33500 #define HAVE_IOCTL_SIOCGIFADDR 1
33501 _ACEOF
33502
33503     ac_cv_func_ioctl_siocgifaddr="yes"
33504   else
33505     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33506 $as_echo "no" >&6; }
33507     ac_cv_func_ioctl_siocgifaddr="no"
33508   fi
33509
33510   else
33511     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33512 $as_echo "no" >&6; }
33513     ac_cv_func_ioctl="no"
33514   fi
33515
33516
33517     #
33518   tst_links_ioctlsocket="unknown"
33519   tst_proto_ioctlsocket="unknown"
33520   tst_compi_ioctlsocket="unknown"
33521   tst_allow_ioctlsocket="unknown"
33522   #
33523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
33524 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
33525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33526 /* end confdefs.h.  */
33527
33528
33529       $curl_includes_winsock2
33530
33531 int main (void)
33532 {
33533
33534       if(0 != ioctlsocket(0, 0, 0))
33535         return 1;
33536
33537  ;
33538  return 0;
33539 }
33540
33541 _ACEOF
33542 if ac_fn_c_try_link "$LINENO"; then :
33543
33544     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33545 $as_echo "yes" >&6; }
33546     tst_links_ioctlsocket="yes"
33547
33548 else
33549
33550     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33551 $as_echo "no" >&6; }
33552     tst_links_ioctlsocket="no"
33553
33554 fi
33555 rm -f core conftest.err conftest.$ac_objext \
33556     conftest$ac_exeext conftest.$ac_ext
33557   #
33558   if test "$tst_links_ioctlsocket" = "yes"; then
33559     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
33560 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
33561     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33562 /* end confdefs.h.  */
33563
33564       $curl_includes_winsock2
33565
33566 _ACEOF
33567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33568   $EGREP "ioctlsocket" >/dev/null 2>&1; then :
33569
33570       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33571 $as_echo "yes" >&6; }
33572       tst_proto_ioctlsocket="yes"
33573
33574 else
33575
33576       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33577 $as_echo "no" >&6; }
33578       tst_proto_ioctlsocket="no"
33579
33580 fi
33581 rm -f conftest*
33582
33583   fi
33584   #
33585   if test "$tst_proto_ioctlsocket" = "yes"; then
33586     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
33587 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
33588     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33589 /* end confdefs.h.  */
33590
33591
33592         $curl_includes_winsock2
33593
33594 int main (void)
33595 {
33596
33597         if(0 != ioctlsocket(0, 0, 0))
33598           return 1;
33599
33600  ;
33601  return 0;
33602 }
33603
33604 _ACEOF
33605 if ac_fn_c_try_compile "$LINENO"; then :
33606
33607       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33608 $as_echo "yes" >&6; }
33609       tst_compi_ioctlsocket="yes"
33610
33611 else
33612
33613       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33614 $as_echo "no" >&6; }
33615       tst_compi_ioctlsocket="no"
33616
33617 fi
33618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33619   fi
33620   #
33621   if test "$tst_compi_ioctlsocket" = "yes"; then
33622     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
33623 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
33624     if test "x$curl_disallow_ioctlsocket" != "xyes"; then
33625       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33626 $as_echo "yes" >&6; }
33627       tst_allow_ioctlsocket="yes"
33628     else
33629       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33630 $as_echo "no" >&6; }
33631       tst_allow_ioctlsocket="no"
33632     fi
33633   fi
33634   #
33635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
33636 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
33637   if test "$tst_links_ioctlsocket" = "yes" &&
33638      test "$tst_proto_ioctlsocket" = "yes" &&
33639      test "$tst_compi_ioctlsocket" = "yes" &&
33640      test "$tst_allow_ioctlsocket" = "yes"; then
33641     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33642 $as_echo "yes" >&6; }
33643
33644 cat >>confdefs.h <<_ACEOF
33645 #define HAVE_IOCTLSOCKET 1
33646 _ACEOF
33647
33648     ac_cv_func_ioctlsocket="yes"
33649
33650   #
33651   tst_compi_ioctlsocket_fionbio="unknown"
33652   tst_allow_ioctlsocket_fionbio="unknown"
33653   #
33654   if test "$ac_cv_func_ioctlsocket" = "yes"; then
33655     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
33656 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
33657     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33658 /* end confdefs.h.  */
33659
33660
33661         $curl_includes_winsock2
33662
33663 int main (void)
33664 {
33665
33666         int flags = 0;
33667         if(0 != ioctlsocket(0, FIONBIO, &flags))
33668           return 1;
33669
33670  ;
33671  return 0;
33672 }
33673
33674 _ACEOF
33675 if ac_fn_c_try_compile "$LINENO"; then :
33676
33677       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33678 $as_echo "yes" >&6; }
33679       tst_compi_ioctlsocket_fionbio="yes"
33680
33681 else
33682
33683       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33684 $as_echo "no" >&6; }
33685       tst_compi_ioctlsocket_fionbio="no"
33686
33687 fi
33688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33689   fi
33690   #
33691   if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
33692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
33693 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
33694     if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
33695       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33696 $as_echo "yes" >&6; }
33697       tst_allow_ioctlsocket_fionbio="yes"
33698     else
33699       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33700 $as_echo "no" >&6; }
33701       tst_allow_ioctlsocket_fionbio="no"
33702     fi
33703   fi
33704   #
33705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
33706 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
33707   if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
33708      test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
33709     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33710 $as_echo "yes" >&6; }
33711
33712 cat >>confdefs.h <<_ACEOF
33713 #define HAVE_IOCTLSOCKET_FIONBIO 1
33714 _ACEOF
33715
33716     ac_cv_func_ioctlsocket_fionbio="yes"
33717   else
33718     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33719 $as_echo "no" >&6; }
33720     ac_cv_func_ioctlsocket_fionbio="no"
33721   fi
33722
33723   else
33724     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33725 $as_echo "no" >&6; }
33726     ac_cv_func_ioctlsocket="no"
33727   fi
33728
33729
33730     #
33731   tst_links_ioctlsocket_camel="unknown"
33732   tst_proto_ioctlsocket_camel="unknown"
33733   tst_compi_ioctlsocket_camel="unknown"
33734   tst_allow_ioctlsocket_camel="unknown"
33735   #
33736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
33737 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
33738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33739 /* end confdefs.h.  */
33740
33741
33742 #define IoctlSocket innocuous_IoctlSocket
33743 #ifdef __STDC__
33744 # include <limits.h>
33745 #else
33746 # include <assert.h>
33747 #endif
33748 #undef IoctlSocket
33749 #ifdef __cplusplus
33750 extern "C"
33751 #endif
33752 char IoctlSocket ();
33753 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
33754 choke me
33755 #endif
33756
33757 int main (void)
33758 {
33759 return IoctlSocket ();
33760  ;
33761  return 0;
33762 }
33763
33764 _ACEOF
33765 if ac_fn_c_try_link "$LINENO"; then :
33766
33767     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33768 $as_echo "yes" >&6; }
33769     tst_links_ioctlsocket_camel="yes"
33770
33771 else
33772
33773     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33774 $as_echo "no" >&6; }
33775     tst_links_ioctlsocket_camel="no"
33776
33777 fi
33778 rm -f core conftest.err conftest.$ac_objext \
33779     conftest$ac_exeext conftest.$ac_ext
33780   #
33781   if test "$tst_links_ioctlsocket_camel" = "yes"; then
33782     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
33783 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
33784     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33785 /* end confdefs.h.  */
33786
33787       $curl_includes_stropts
33788
33789 _ACEOF
33790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33791   $EGREP "IoctlSocket" >/dev/null 2>&1; then :
33792
33793       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33794 $as_echo "yes" >&6; }
33795       tst_proto_ioctlsocket_camel="yes"
33796
33797 else
33798
33799       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33800 $as_echo "no" >&6; }
33801       tst_proto_ioctlsocket_camel="no"
33802
33803 fi
33804 rm -f conftest*
33805
33806   fi
33807   #
33808   if test "$tst_proto_ioctlsocket_camel" = "yes"; then
33809     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
33810 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
33811     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33812 /* end confdefs.h.  */
33813
33814
33815         $curl_includes_stropts
33816
33817 int main (void)
33818 {
33819
33820         if(0 != IoctlSocket(0, 0, 0))
33821           return 1;
33822
33823  ;
33824  return 0;
33825 }
33826
33827 _ACEOF
33828 if ac_fn_c_try_compile "$LINENO"; then :
33829
33830       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33831 $as_echo "yes" >&6; }
33832       tst_compi_ioctlsocket_camel="yes"
33833
33834 else
33835
33836       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33837 $as_echo "no" >&6; }
33838       tst_compi_ioctlsocket_camel="no"
33839
33840 fi
33841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33842   fi
33843   #
33844   if test "$tst_compi_ioctlsocket_camel" = "yes"; then
33845     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
33846 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
33847     if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
33848       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33849 $as_echo "yes" >&6; }
33850       tst_allow_ioctlsocket_camel="yes"
33851     else
33852       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33853 $as_echo "no" >&6; }
33854       tst_allow_ioctlsocket_camel="no"
33855     fi
33856   fi
33857   #
33858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
33859 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
33860   if test "$tst_links_ioctlsocket_camel" = "yes" &&
33861      test "$tst_proto_ioctlsocket_camel" = "yes" &&
33862      test "$tst_compi_ioctlsocket_camel" = "yes" &&
33863      test "$tst_allow_ioctlsocket_camel" = "yes"; then
33864     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33865 $as_echo "yes" >&6; }
33866
33867 cat >>confdefs.h <<_ACEOF
33868 #define HAVE_IOCTLSOCKET_CAMEL 1
33869 _ACEOF
33870
33871     ac_cv_func_ioctlsocket_camel="yes"
33872
33873   #
33874   tst_compi_ioctlsocket_camel_fionbio="unknown"
33875   tst_allow_ioctlsocket_camel_fionbio="unknown"
33876   #
33877   if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then
33878     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
33879 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
33880     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33881 /* end confdefs.h.  */
33882
33883
33884         $curl_includes_stropts
33885
33886 int main (void)
33887 {
33888
33889         long flags = 0;
33890         if(0 != ioctlsocket(0, FIONBIO, &flags))
33891           return 1;
33892
33893  ;
33894  return 0;
33895 }
33896
33897 _ACEOF
33898 if ac_fn_c_try_compile "$LINENO"; then :
33899
33900       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33901 $as_echo "yes" >&6; }
33902       tst_compi_ioctlsocket_camel_fionbio="yes"
33903
33904 else
33905
33906       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33907 $as_echo "no" >&6; }
33908       tst_compi_ioctlsocket_camel_fionbio="no"
33909
33910 fi
33911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33912   fi
33913   #
33914   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
33915     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
33916 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
33917     if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
33918       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33919 $as_echo "yes" >&6; }
33920       tst_allow_ioctlsocket_camel_fionbio="yes"
33921     else
33922       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33923 $as_echo "no" >&6; }
33924       tst_allow_ioctlsocket_camel_fionbio="no"
33925     fi
33926   fi
33927   #
33928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
33929 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
33930   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
33931      test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
33932     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33933 $as_echo "yes" >&6; }
33934
33935 cat >>confdefs.h <<_ACEOF
33936 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
33937 _ACEOF
33938
33939     ac_cv_func_ioctlsocket_camel_fionbio="yes"
33940   else
33941     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33942 $as_echo "no" >&6; }
33943     ac_cv_func_ioctlsocket_camel_fionbio="no"
33944   fi
33945
33946   else
33947     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33948 $as_echo "no" >&6; }
33949     ac_cv_func_ioctlsocket_camel="no"
33950   fi
33951
33952
33953       #
33954   tst_links_localtime_r="unknown"
33955   tst_proto_localtime_r="unknown"
33956   tst_compi_localtime_r="unknown"
33957   tst_works_localtime_r="unknown"
33958   tst_allow_localtime_r="unknown"
33959   #
33960   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
33961 $as_echo_n "checking if localtime_r can be linked... " >&6; }
33962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33963 /* end confdefs.h.  */
33964
33965
33966 #define localtime_r innocuous_localtime_r
33967 #ifdef __STDC__
33968 # include <limits.h>
33969 #else
33970 # include <assert.h>
33971 #endif
33972 #undef localtime_r
33973 #ifdef __cplusplus
33974 extern "C"
33975 #endif
33976 char localtime_r ();
33977 #if defined __stub_localtime_r || defined __stub___localtime_r
33978 choke me
33979 #endif
33980
33981 int main (void)
33982 {
33983 return localtime_r ();
33984  ;
33985  return 0;
33986 }
33987
33988 _ACEOF
33989 if ac_fn_c_try_link "$LINENO"; then :
33990
33991     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33992 $as_echo "yes" >&6; }
33993     tst_links_localtime_r="yes"
33994
33995 else
33996
33997     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33998 $as_echo "no" >&6; }
33999     tst_links_localtime_r="no"
34000
34001 fi
34002 rm -f core conftest.err conftest.$ac_objext \
34003     conftest$ac_exeext conftest.$ac_ext
34004   #
34005   if test "$tst_links_localtime_r" = "yes"; then
34006     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
34007 $as_echo_n "checking if localtime_r is prototyped... " >&6; }
34008     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34009 /* end confdefs.h.  */
34010
34011       $curl_includes_time
34012
34013 _ACEOF
34014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34015   $EGREP "localtime_r" >/dev/null 2>&1; then :
34016
34017       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34018 $as_echo "yes" >&6; }
34019       tst_proto_localtime_r="yes"
34020
34021 else
34022
34023       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34024 $as_echo "no" >&6; }
34025       tst_proto_localtime_r="no"
34026
34027 fi
34028 rm -f conftest*
34029
34030   fi
34031   #
34032   if test "$tst_proto_localtime_r" = "yes"; then
34033     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
34034 $as_echo_n "checking if localtime_r is compilable... " >&6; }
34035     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34036 /* end confdefs.h.  */
34037
34038
34039         $curl_includes_time
34040
34041 int main (void)
34042 {
34043
34044         if(0 != localtime_r(0, 0))
34045           return 1;
34046
34047  ;
34048  return 0;
34049 }
34050
34051 _ACEOF
34052 if ac_fn_c_try_compile "$LINENO"; then :
34053
34054       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34055 $as_echo "yes" >&6; }
34056       tst_compi_localtime_r="yes"
34057
34058 else
34059
34060       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34061 $as_echo "no" >&6; }
34062       tst_compi_localtime_r="no"
34063
34064 fi
34065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34066   fi
34067   #
34068     if test "x$cross_compiling" != "xyes" &&
34069     test "$tst_compi_localtime_r" = "yes"; then
34070     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
34071 $as_echo_n "checking if localtime_r seems to work... " >&6; }
34072     if test "$cross_compiling" = yes; then :
34073   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34075 as_fn_error $? "cannot run test program while cross compiling
34076 See \`config.log' for more details" "$LINENO" 5; }
34077 else
34078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34079 /* end confdefs.h.  */
34080
34081
34082         $curl_includes_stdlib
34083         $curl_includes_time
34084
34085 int main (void)
34086 {
34087
34088         time_t clock = 1170352587;
34089         struct tm *tmp = 0;
34090         struct tm result;
34091         tmp = localtime_r(&clock, &result);
34092         if(tmp)
34093           exit(0);
34094         else
34095           exit(1);
34096
34097  ;
34098  return 0;
34099 }
34100
34101 _ACEOF
34102 if ac_fn_c_try_run "$LINENO"; then :
34103
34104       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34105 $as_echo "yes" >&6; }
34106       tst_works_localtime_r="yes"
34107
34108 else
34109
34110       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34111 $as_echo "no" >&6; }
34112       tst_works_localtime_r="no"
34113
34114 fi
34115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34116   conftest.$ac_objext conftest.beam conftest.$ac_ext
34117 fi
34118
34119   fi
34120   #
34121   if test "$tst_compi_localtime_r" = "yes" &&
34122     test "$tst_works_localtime_r" != "no"; then
34123     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
34124 $as_echo_n "checking if localtime_r usage allowed... " >&6; }
34125     if test "x$curl_disallow_localtime_r" != "xyes"; then
34126       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34127 $as_echo "yes" >&6; }
34128       tst_allow_localtime_r="yes"
34129     else
34130       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34131 $as_echo "no" >&6; }
34132       tst_allow_localtime_r="no"
34133     fi
34134   fi
34135   #
34136   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
34137 $as_echo_n "checking if localtime_r might be used... " >&6; }
34138   if test "$tst_links_localtime_r" = "yes" &&
34139      test "$tst_proto_localtime_r" = "yes" &&
34140      test "$tst_compi_localtime_r" = "yes" &&
34141      test "$tst_allow_localtime_r" = "yes" &&
34142      test "$tst_works_localtime_r" != "no"; then
34143     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34144 $as_echo "yes" >&6; }
34145
34146 cat >>confdefs.h <<_ACEOF
34147 #define HAVE_LOCALTIME_R 1
34148 _ACEOF
34149
34150     ac_cv_func_localtime_r="yes"
34151   else
34152     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34153 $as_echo "no" >&6; }
34154     ac_cv_func_localtime_r="no"
34155   fi
34156
34157
34158     #
34159   tst_links_memrchr="unknown"
34160   tst_macro_memrchr="unknown"
34161   tst_proto_memrchr="unknown"
34162   tst_compi_memrchr="unknown"
34163   tst_allow_memrchr="unknown"
34164   #
34165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
34166 $as_echo_n "checking if memrchr can be linked... " >&6; }
34167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34168 /* end confdefs.h.  */
34169
34170
34171 #define memrchr innocuous_memrchr
34172 #ifdef __STDC__
34173 # include <limits.h>
34174 #else
34175 # include <assert.h>
34176 #endif
34177 #undef memrchr
34178 #ifdef __cplusplus
34179 extern "C"
34180 #endif
34181 char memrchr ();
34182 #if defined __stub_memrchr || defined __stub___memrchr
34183 choke me
34184 #endif
34185
34186 int main (void)
34187 {
34188 return memrchr ();
34189  ;
34190  return 0;
34191 }
34192
34193 _ACEOF
34194 if ac_fn_c_try_link "$LINENO"; then :
34195
34196     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34197 $as_echo "yes" >&6; }
34198     tst_links_memrchr="yes"
34199
34200 else
34201
34202     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34203 $as_echo "no" >&6; }
34204     tst_links_memrchr="no"
34205
34206 fi
34207 rm -f core conftest.err conftest.$ac_objext \
34208     conftest$ac_exeext conftest.$ac_ext
34209   #
34210   if test "$tst_links_memrchr" = "no"; then
34211     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
34212 $as_echo_n "checking if memrchr seems a macro... " >&6; }
34213     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34214 /* end confdefs.h.  */
34215
34216
34217         $curl_includes_string
34218
34219 int main (void)
34220 {
34221
34222         if(0 != memrchr(0, 0, 0))
34223           return 1;
34224
34225  ;
34226  return 0;
34227 }
34228
34229 _ACEOF
34230 if ac_fn_c_try_link "$LINENO"; then :
34231
34232       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34233 $as_echo "yes" >&6; }
34234       tst_macro_memrchr="yes"
34235
34236 else
34237
34238       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34239 $as_echo "no" >&6; }
34240       tst_macro_memrchr="no"
34241
34242 fi
34243 rm -f core conftest.err conftest.$ac_objext \
34244     conftest$ac_exeext conftest.$ac_ext
34245   fi
34246   #
34247   if test "$tst_links_memrchr" = "yes"; then
34248     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
34249 $as_echo_n "checking if memrchr is prototyped... " >&6; }
34250     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34251 /* end confdefs.h.  */
34252
34253       $curl_includes_string
34254
34255 _ACEOF
34256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34257   $EGREP "memrchr" >/dev/null 2>&1; then :
34258
34259       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34260 $as_echo "yes" >&6; }
34261       tst_proto_memrchr="yes"
34262
34263 else
34264
34265       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34266 $as_echo "no" >&6; }
34267       tst_proto_memrchr="no"
34268
34269 fi
34270 rm -f conftest*
34271
34272   fi
34273   #
34274   if test "$tst_proto_memrchr" = "yes" ||
34275      test "$tst_macro_memrchr" = "yes"; then
34276     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
34277 $as_echo_n "checking if memrchr is compilable... " >&6; }
34278     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34279 /* end confdefs.h.  */
34280
34281
34282         $curl_includes_string
34283
34284 int main (void)
34285 {
34286
34287         if(0 != memrchr(0, 0, 0))
34288           return 1;
34289
34290  ;
34291  return 0;
34292 }
34293
34294 _ACEOF
34295 if ac_fn_c_try_compile "$LINENO"; then :
34296
34297       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34298 $as_echo "yes" >&6; }
34299       tst_compi_memrchr="yes"
34300
34301 else
34302
34303       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34304 $as_echo "no" >&6; }
34305       tst_compi_memrchr="no"
34306
34307 fi
34308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34309   fi
34310   #
34311   if test "$tst_compi_memrchr" = "yes"; then
34312     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
34313 $as_echo_n "checking if memrchr usage allowed... " >&6; }
34314     if test "x$curl_disallow_memrchr" != "xyes"; then
34315       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34316 $as_echo "yes" >&6; }
34317       tst_allow_memrchr="yes"
34318     else
34319       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34320 $as_echo "no" >&6; }
34321       tst_allow_memrchr="no"
34322     fi
34323   fi
34324   #
34325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
34326 $as_echo_n "checking if memrchr might be used... " >&6; }
34327   if (test "$tst_proto_memrchr" = "yes" ||
34328       test "$tst_macro_memrchr" = "yes") &&
34329      test "$tst_compi_memrchr" = "yes" &&
34330      test "$tst_allow_memrchr" = "yes"; then
34331     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34332 $as_echo "yes" >&6; }
34333
34334 cat >>confdefs.h <<_ACEOF
34335 #define HAVE_MEMRCHR 1
34336 _ACEOF
34337
34338     ac_cv_func_memrchr="yes"
34339   else
34340     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34341 $as_echo "no" >&6; }
34342     ac_cv_func_memrchr="no"
34343   fi
34344
34345
34346       #
34347   tst_links_poll="unknown"
34348   tst_proto_poll="unknown"
34349   tst_compi_poll="unknown"
34350   tst_works_poll="unknown"
34351   tst_allow_poll="unknown"
34352   #
34353   case $host_os in
34354     darwin*|interix*)
34355                               curl_disallow_poll="yes"
34356       ;;
34357   esac
34358   #
34359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
34360 $as_echo_n "checking if poll can be linked... " >&6; }
34361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34362 /* end confdefs.h.  */
34363
34364
34365       $curl_includes_poll
34366
34367 int main (void)
34368 {
34369
34370       if(0 != poll(0, 0, 0))
34371         return 1;
34372
34373  ;
34374  return 0;
34375 }
34376
34377 _ACEOF
34378 if ac_fn_c_try_link "$LINENO"; then :
34379
34380     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34381 $as_echo "yes" >&6; }
34382     tst_links_poll="yes"
34383
34384 else
34385
34386     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34387 $as_echo "no" >&6; }
34388     tst_links_poll="no"
34389
34390 fi
34391 rm -f core conftest.err conftest.$ac_objext \
34392     conftest$ac_exeext conftest.$ac_ext
34393   #
34394   if test "$tst_links_poll" = "yes"; then
34395     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
34396 $as_echo_n "checking if poll is prototyped... " >&6; }
34397     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34398 /* end confdefs.h.  */
34399
34400       $curl_includes_poll
34401
34402 _ACEOF
34403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34404   $EGREP "poll" >/dev/null 2>&1; then :
34405
34406       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34407 $as_echo "yes" >&6; }
34408       tst_proto_poll="yes"
34409
34410 else
34411
34412       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34413 $as_echo "no" >&6; }
34414       tst_proto_poll="no"
34415
34416 fi
34417 rm -f conftest*
34418
34419   fi
34420   #
34421   if test "$tst_proto_poll" = "yes"; then
34422     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
34423 $as_echo_n "checking if poll is compilable... " >&6; }
34424     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34425 /* end confdefs.h.  */
34426
34427
34428         $curl_includes_poll
34429
34430 int main (void)
34431 {
34432
34433         if(0 != poll(0, 0, 0))
34434           return 1;
34435
34436  ;
34437  return 0;
34438 }
34439
34440 _ACEOF
34441 if ac_fn_c_try_compile "$LINENO"; then :
34442
34443       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34444 $as_echo "yes" >&6; }
34445       tst_compi_poll="yes"
34446
34447 else
34448
34449       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34450 $as_echo "no" >&6; }
34451       tst_compi_poll="no"
34452
34453 fi
34454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34455   fi
34456   #
34457     if test "x$cross_compiling" != "xyes" &&
34458     test "$tst_compi_poll" = "yes"; then
34459     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
34460 $as_echo_n "checking if poll seems to work... " >&6; }
34461     if test "$cross_compiling" = yes; then :
34462   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34464 as_fn_error $? "cannot run test program while cross compiling
34465 See \`config.log' for more details" "$LINENO" 5; }
34466 else
34467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34468 /* end confdefs.h.  */
34469
34470
34471         $curl_includes_stdlib
34472         $curl_includes_poll
34473
34474 int main (void)
34475 {
34476
34477         if(0 != poll(0, 0, 10))
34478           exit(1); /* fail */
34479         else
34480           exit(0);
34481
34482  ;
34483  return 0;
34484 }
34485
34486 _ACEOF
34487 if ac_fn_c_try_run "$LINENO"; then :
34488
34489       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34490 $as_echo "yes" >&6; }
34491       tst_works_poll="yes"
34492
34493 else
34494
34495       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34496 $as_echo "no" >&6; }
34497       tst_works_poll="no"
34498
34499 fi
34500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34501   conftest.$ac_objext conftest.beam conftest.$ac_ext
34502 fi
34503
34504   fi
34505   #
34506   if test "$tst_compi_poll" = "yes" &&
34507     test "$tst_works_poll" != "no"; then
34508     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
34509 $as_echo_n "checking if poll usage allowed... " >&6; }
34510     if test "x$curl_disallow_poll" != "xyes"; then
34511       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34512 $as_echo "yes" >&6; }
34513       tst_allow_poll="yes"
34514     else
34515       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34516 $as_echo "no" >&6; }
34517       tst_allow_poll="no"
34518     fi
34519   fi
34520   #
34521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
34522 $as_echo_n "checking if poll might be used... " >&6; }
34523   if test "$tst_links_poll" = "yes" &&
34524      test "$tst_proto_poll" = "yes" &&
34525      test "$tst_compi_poll" = "yes" &&
34526      test "$tst_allow_poll" = "yes" &&
34527      test "$tst_works_poll" != "no"; then
34528     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34529 $as_echo "yes" >&6; }
34530
34531 cat >>confdefs.h <<_ACEOF
34532 #define HAVE_POLL 1
34533 _ACEOF
34534
34535
34536 cat >>confdefs.h <<_ACEOF
34537 #define HAVE_POLL_FINE 1
34538 _ACEOF
34539
34540     ac_cv_func_poll="yes"
34541   else
34542     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34543 $as_echo "no" >&6; }
34544     ac_cv_func_poll="no"
34545   fi
34546
34547
34548       #
34549   tst_links_setsockopt="unknown"
34550   tst_proto_setsockopt="unknown"
34551   tst_compi_setsockopt="unknown"
34552   tst_allow_setsockopt="unknown"
34553   #
34554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
34555 $as_echo_n "checking if setsockopt can be linked... " >&6; }
34556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34557 /* end confdefs.h.  */
34558
34559
34560       $curl_includes_winsock2
34561       $curl_includes_sys_socket
34562
34563 int main (void)
34564 {
34565
34566       if(0 != setsockopt(0, 0, 0, 0, 0))
34567         return 1;
34568
34569  ;
34570  return 0;
34571 }
34572
34573 _ACEOF
34574 if ac_fn_c_try_link "$LINENO"; then :
34575
34576     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34577 $as_echo "yes" >&6; }
34578     tst_links_setsockopt="yes"
34579
34580 else
34581
34582     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34583 $as_echo "no" >&6; }
34584     tst_links_setsockopt="no"
34585
34586 fi
34587 rm -f core conftest.err conftest.$ac_objext \
34588     conftest$ac_exeext conftest.$ac_ext
34589   #
34590   if test "$tst_links_setsockopt" = "yes"; then
34591     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
34592 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
34593     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34594 /* end confdefs.h.  */
34595
34596       $curl_includes_winsock2
34597       $curl_includes_sys_socket
34598
34599 _ACEOF
34600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34601   $EGREP "setsockopt" >/dev/null 2>&1; then :
34602
34603       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34604 $as_echo "yes" >&6; }
34605       tst_proto_setsockopt="yes"
34606
34607 else
34608
34609       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34610 $as_echo "no" >&6; }
34611       tst_proto_setsockopt="no"
34612
34613 fi
34614 rm -f conftest*
34615
34616   fi
34617   #
34618   if test "$tst_proto_setsockopt" = "yes"; then
34619     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
34620 $as_echo_n "checking if setsockopt is compilable... " >&6; }
34621     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34622 /* end confdefs.h.  */
34623
34624
34625         $curl_includes_winsock2
34626         $curl_includes_sys_socket
34627
34628 int main (void)
34629 {
34630
34631         if(0 != setsockopt(0, 0, 0, 0, 0))
34632           return 1;
34633
34634  ;
34635  return 0;
34636 }
34637
34638 _ACEOF
34639 if ac_fn_c_try_compile "$LINENO"; then :
34640
34641       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34642 $as_echo "yes" >&6; }
34643       tst_compi_setsockopt="yes"
34644
34645 else
34646
34647       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34648 $as_echo "no" >&6; }
34649       tst_compi_setsockopt="no"
34650
34651 fi
34652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34653   fi
34654   #
34655   if test "$tst_compi_setsockopt" = "yes"; then
34656     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
34657 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
34658     if test "x$curl_disallow_setsockopt" != "xyes"; then
34659       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34660 $as_echo "yes" >&6; }
34661       tst_allow_setsockopt="yes"
34662     else
34663       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34664 $as_echo "no" >&6; }
34665       tst_allow_setsockopt="no"
34666     fi
34667   fi
34668   #
34669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
34670 $as_echo_n "checking if setsockopt might be used... " >&6; }
34671   if test "$tst_links_setsockopt" = "yes" &&
34672      test "$tst_proto_setsockopt" = "yes" &&
34673      test "$tst_compi_setsockopt" = "yes" &&
34674      test "$tst_allow_setsockopt" = "yes"; then
34675     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34676 $as_echo "yes" >&6; }
34677
34678 cat >>confdefs.h <<_ACEOF
34679 #define HAVE_SETSOCKOPT 1
34680 _ACEOF
34681
34682     ac_cv_func_setsockopt="yes"
34683
34684   #
34685   tst_compi_setsockopt_so_nonblock="unknown"
34686   tst_allow_setsockopt_so_nonblock="unknown"
34687   #
34688   if test "$ac_cv_func_setsockopt" = "yes"; then
34689     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
34690 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
34691     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34692 /* end confdefs.h.  */
34693
34694
34695         $curl_includes_winsock2
34696         $curl_includes_sys_socket
34697
34698 int main (void)
34699 {
34700
34701         if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
34702           return 1;
34703
34704  ;
34705  return 0;
34706 }
34707
34708 _ACEOF
34709 if ac_fn_c_try_compile "$LINENO"; then :
34710
34711       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34712 $as_echo "yes" >&6; }
34713       tst_compi_setsockopt_so_nonblock="yes"
34714
34715 else
34716
34717       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34718 $as_echo "no" >&6; }
34719       tst_compi_setsockopt_so_nonblock="no"
34720
34721 fi
34722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34723   fi
34724   #
34725   if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
34726     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
34727 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
34728     if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
34729       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34730 $as_echo "yes" >&6; }
34731       tst_allow_setsockopt_so_nonblock="yes"
34732     else
34733       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34734 $as_echo "no" >&6; }
34735       tst_allow_setsockopt_so_nonblock="no"
34736     fi
34737   fi
34738   #
34739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
34740 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
34741   if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
34742      test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
34743     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34744 $as_echo "yes" >&6; }
34745
34746 cat >>confdefs.h <<_ACEOF
34747 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
34748 _ACEOF
34749
34750     ac_cv_func_setsockopt_so_nonblock="yes"
34751   else
34752     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34753 $as_echo "no" >&6; }
34754     ac_cv_func_setsockopt_so_nonblock="no"
34755   fi
34756
34757   else
34758     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34759 $as_echo "no" >&6; }
34760     ac_cv_func_setsockopt="no"
34761   fi
34762
34763
34764 curl_includes_signal="\
34765 /* includes start */
34766 #ifdef HAVE_SYS_TYPES_H
34767 #  include <sys/types.h>
34768 #endif
34769 #ifdef HAVE_SIGNAL_H
34770 #  include <signal.h>
34771 #endif
34772 /* includes end */"
34773   for ac_header in sys/types.h signal.h
34774 do :
34775   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34776 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
34777 "
34778 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34779   cat >>confdefs.h <<_ACEOF
34780 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34781 _ACEOF
34782
34783 fi
34784
34785 done
34786
34787
34788
34789     #
34790   tst_links_sigaction="unknown"
34791   tst_proto_sigaction="unknown"
34792   tst_compi_sigaction="unknown"
34793   tst_allow_sigaction="unknown"
34794   #
34795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
34796 $as_echo_n "checking if sigaction can be linked... " >&6; }
34797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34798 /* end confdefs.h.  */
34799
34800
34801 #define sigaction innocuous_sigaction
34802 #ifdef __STDC__
34803 # include <limits.h>
34804 #else
34805 # include <assert.h>
34806 #endif
34807 #undef sigaction
34808 #ifdef __cplusplus
34809 extern "C"
34810 #endif
34811 char sigaction ();
34812 #if defined __stub_sigaction || defined __stub___sigaction
34813 choke me
34814 #endif
34815
34816 int main (void)
34817 {
34818 return sigaction ();
34819  ;
34820  return 0;
34821 }
34822
34823 _ACEOF
34824 if ac_fn_c_try_link "$LINENO"; then :
34825
34826     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34827 $as_echo "yes" >&6; }
34828     tst_links_sigaction="yes"
34829
34830 else
34831
34832     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34833 $as_echo "no" >&6; }
34834     tst_links_sigaction="no"
34835
34836 fi
34837 rm -f core conftest.err conftest.$ac_objext \
34838     conftest$ac_exeext conftest.$ac_ext
34839   #
34840   if test "$tst_links_sigaction" = "yes"; then
34841     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
34842 $as_echo_n "checking if sigaction is prototyped... " >&6; }
34843     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34844 /* end confdefs.h.  */
34845
34846       $curl_includes_signal
34847
34848 _ACEOF
34849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34850   $EGREP "sigaction" >/dev/null 2>&1; then :
34851
34852       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34853 $as_echo "yes" >&6; }
34854       tst_proto_sigaction="yes"
34855
34856 else
34857
34858       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34859 $as_echo "no" >&6; }
34860       tst_proto_sigaction="no"
34861
34862 fi
34863 rm -f conftest*
34864
34865   fi
34866   #
34867   if test "$tst_proto_sigaction" = "yes"; then
34868     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
34869 $as_echo_n "checking if sigaction is compilable... " >&6; }
34870     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34871 /* end confdefs.h.  */
34872
34873
34874         $curl_includes_signal
34875
34876 int main (void)
34877 {
34878
34879         if(0 != sigaction(0, 0, 0))
34880           return 1;
34881
34882  ;
34883  return 0;
34884 }
34885
34886 _ACEOF
34887 if ac_fn_c_try_compile "$LINENO"; then :
34888
34889       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34890 $as_echo "yes" >&6; }
34891       tst_compi_sigaction="yes"
34892
34893 else
34894
34895       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34896 $as_echo "no" >&6; }
34897       tst_compi_sigaction="no"
34898
34899 fi
34900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34901   fi
34902   #
34903   if test "$tst_compi_sigaction" = "yes"; then
34904     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
34905 $as_echo_n "checking if sigaction usage allowed... " >&6; }
34906     if test "x$curl_disallow_sigaction" != "xyes"; then
34907       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34908 $as_echo "yes" >&6; }
34909       tst_allow_sigaction="yes"
34910     else
34911       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34912 $as_echo "no" >&6; }
34913       tst_allow_sigaction="no"
34914     fi
34915   fi
34916   #
34917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
34918 $as_echo_n "checking if sigaction might be used... " >&6; }
34919   if test "$tst_links_sigaction" = "yes" &&
34920      test "$tst_proto_sigaction" = "yes" &&
34921      test "$tst_compi_sigaction" = "yes" &&
34922      test "$tst_allow_sigaction" = "yes"; then
34923     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34924 $as_echo "yes" >&6; }
34925
34926 cat >>confdefs.h <<_ACEOF
34927 #define HAVE_SIGACTION 1
34928 _ACEOF
34929
34930     ac_cv_func_sigaction="yes"
34931   else
34932     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34933 $as_echo "no" >&6; }
34934     ac_cv_func_sigaction="no"
34935   fi
34936
34937
34938     #
34939   tst_links_siginterrupt="unknown"
34940   tst_proto_siginterrupt="unknown"
34941   tst_compi_siginterrupt="unknown"
34942   tst_allow_siginterrupt="unknown"
34943   #
34944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
34945 $as_echo_n "checking if siginterrupt can be linked... " >&6; }
34946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34947 /* end confdefs.h.  */
34948
34949
34950 #define siginterrupt innocuous_siginterrupt
34951 #ifdef __STDC__
34952 # include <limits.h>
34953 #else
34954 # include <assert.h>
34955 #endif
34956 #undef siginterrupt
34957 #ifdef __cplusplus
34958 extern "C"
34959 #endif
34960 char siginterrupt ();
34961 #if defined __stub_siginterrupt || defined __stub___siginterrupt
34962 choke me
34963 #endif
34964
34965 int main (void)
34966 {
34967 return siginterrupt ();
34968  ;
34969  return 0;
34970 }
34971
34972 _ACEOF
34973 if ac_fn_c_try_link "$LINENO"; then :
34974
34975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34976 $as_echo "yes" >&6; }
34977     tst_links_siginterrupt="yes"
34978
34979 else
34980
34981     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34982 $as_echo "no" >&6; }
34983     tst_links_siginterrupt="no"
34984
34985 fi
34986 rm -f core conftest.err conftest.$ac_objext \
34987     conftest$ac_exeext conftest.$ac_ext
34988   #
34989   if test "$tst_links_siginterrupt" = "yes"; then
34990     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
34991 $as_echo_n "checking if siginterrupt is prototyped... " >&6; }
34992     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34993 /* end confdefs.h.  */
34994
34995       $curl_includes_signal
34996
34997 _ACEOF
34998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34999   $EGREP "siginterrupt" >/dev/null 2>&1; then :
35000
35001       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35002 $as_echo "yes" >&6; }
35003       tst_proto_siginterrupt="yes"
35004
35005 else
35006
35007       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35008 $as_echo "no" >&6; }
35009       tst_proto_siginterrupt="no"
35010
35011 fi
35012 rm -f conftest*
35013
35014   fi
35015   #
35016   if test "$tst_proto_siginterrupt" = "yes"; then
35017     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
35018 $as_echo_n "checking if siginterrupt is compilable... " >&6; }
35019     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35020 /* end confdefs.h.  */
35021
35022
35023         $curl_includes_signal
35024
35025 int main (void)
35026 {
35027
35028         if(0 != siginterrupt(0, 0))
35029           return 1;
35030
35031  ;
35032  return 0;
35033 }
35034
35035 _ACEOF
35036 if ac_fn_c_try_compile "$LINENO"; then :
35037
35038       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35039 $as_echo "yes" >&6; }
35040       tst_compi_siginterrupt="yes"
35041
35042 else
35043
35044       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35045 $as_echo "no" >&6; }
35046       tst_compi_siginterrupt="no"
35047
35048 fi
35049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35050   fi
35051   #
35052   if test "$tst_compi_siginterrupt" = "yes"; then
35053     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
35054 $as_echo_n "checking if siginterrupt usage allowed... " >&6; }
35055     if test "x$curl_disallow_siginterrupt" != "xyes"; then
35056       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35057 $as_echo "yes" >&6; }
35058       tst_allow_siginterrupt="yes"
35059     else
35060       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35061 $as_echo "no" >&6; }
35062       tst_allow_siginterrupt="no"
35063     fi
35064   fi
35065   #
35066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
35067 $as_echo_n "checking if siginterrupt might be used... " >&6; }
35068   if test "$tst_links_siginterrupt" = "yes" &&
35069      test "$tst_proto_siginterrupt" = "yes" &&
35070      test "$tst_compi_siginterrupt" = "yes" &&
35071      test "$tst_allow_siginterrupt" = "yes"; then
35072     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35073 $as_echo "yes" >&6; }
35074
35075 cat >>confdefs.h <<_ACEOF
35076 #define HAVE_SIGINTERRUPT 1
35077 _ACEOF
35078
35079     ac_cv_func_siginterrupt="yes"
35080   else
35081     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35082 $as_echo "no" >&6; }
35083     ac_cv_func_siginterrupt="no"
35084   fi
35085
35086
35087     #
35088   tst_links_signal="unknown"
35089   tst_proto_signal="unknown"
35090   tst_compi_signal="unknown"
35091   tst_allow_signal="unknown"
35092   #
35093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
35094 $as_echo_n "checking if signal can be linked... " >&6; }
35095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35096 /* end confdefs.h.  */
35097
35098
35099 #define signal innocuous_signal
35100 #ifdef __STDC__
35101 # include <limits.h>
35102 #else
35103 # include <assert.h>
35104 #endif
35105 #undef signal
35106 #ifdef __cplusplus
35107 extern "C"
35108 #endif
35109 char signal ();
35110 #if defined __stub_signal || defined __stub___signal
35111 choke me
35112 #endif
35113
35114 int main (void)
35115 {
35116 return signal ();
35117  ;
35118  return 0;
35119 }
35120
35121 _ACEOF
35122 if ac_fn_c_try_link "$LINENO"; then :
35123
35124     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35125 $as_echo "yes" >&6; }
35126     tst_links_signal="yes"
35127
35128 else
35129
35130     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35131 $as_echo "no" >&6; }
35132     tst_links_signal="no"
35133
35134 fi
35135 rm -f core conftest.err conftest.$ac_objext \
35136     conftest$ac_exeext conftest.$ac_ext
35137   #
35138   if test "$tst_links_signal" = "yes"; then
35139     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
35140 $as_echo_n "checking if signal is prototyped... " >&6; }
35141     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35142 /* end confdefs.h.  */
35143
35144       $curl_includes_signal
35145
35146 _ACEOF
35147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35148   $EGREP "signal" >/dev/null 2>&1; then :
35149
35150       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35151 $as_echo "yes" >&6; }
35152       tst_proto_signal="yes"
35153
35154 else
35155
35156       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35157 $as_echo "no" >&6; }
35158       tst_proto_signal="no"
35159
35160 fi
35161 rm -f conftest*
35162
35163   fi
35164   #
35165   if test "$tst_proto_signal" = "yes"; then
35166     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
35167 $as_echo_n "checking if signal is compilable... " >&6; }
35168     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35169 /* end confdefs.h.  */
35170
35171
35172         $curl_includes_signal
35173
35174 int main (void)
35175 {
35176
35177         if(0 != signal(0, 0))
35178           return 1;
35179
35180  ;
35181  return 0;
35182 }
35183
35184 _ACEOF
35185 if ac_fn_c_try_compile "$LINENO"; then :
35186
35187       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35188 $as_echo "yes" >&6; }
35189       tst_compi_signal="yes"
35190
35191 else
35192
35193       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35194 $as_echo "no" >&6; }
35195       tst_compi_signal="no"
35196
35197 fi
35198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35199   fi
35200   #
35201   if test "$tst_compi_signal" = "yes"; then
35202     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
35203 $as_echo_n "checking if signal usage allowed... " >&6; }
35204     if test "x$curl_disallow_signal" != "xyes"; then
35205       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35206 $as_echo "yes" >&6; }
35207       tst_allow_signal="yes"
35208     else
35209       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35210 $as_echo "no" >&6; }
35211       tst_allow_signal="no"
35212     fi
35213   fi
35214   #
35215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
35216 $as_echo_n "checking if signal might be used... " >&6; }
35217   if test "$tst_links_signal" = "yes" &&
35218      test "$tst_proto_signal" = "yes" &&
35219      test "$tst_compi_signal" = "yes" &&
35220      test "$tst_allow_signal" = "yes"; then
35221     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35222 $as_echo "yes" >&6; }
35223
35224 cat >>confdefs.h <<_ACEOF
35225 #define HAVE_SIGNAL 1
35226 _ACEOF
35227
35228     ac_cv_func_signal="yes"
35229   else
35230     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35231 $as_echo "no" >&6; }
35232     ac_cv_func_signal="no"
35233   fi
35234
35235
35236 curl_includes_setjmp="\
35237 /* includes start */
35238 #ifdef HAVE_SYS_TYPES_H
35239 #  include <sys/types.h>
35240 #endif
35241 #ifdef HAVE_SETJMP_H
35242 #  include <setjmp.h>
35243 #endif
35244 /* includes end */"
35245   for ac_header in sys/types.h setjmp.h
35246 do :
35247   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35248 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
35249 "
35250 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35251   cat >>confdefs.h <<_ACEOF
35252 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35253 _ACEOF
35254
35255 fi
35256
35257 done
35258
35259
35260
35261     #
35262   tst_links_sigsetjmp="unknown"
35263   tst_macro_sigsetjmp="unknown"
35264   tst_proto_sigsetjmp="unknown"
35265   tst_compi_sigsetjmp="unknown"
35266   tst_allow_sigsetjmp="unknown"
35267   #
35268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
35269 $as_echo_n "checking if sigsetjmp can be linked... " >&6; }
35270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35271 /* end confdefs.h.  */
35272
35273
35274 #define sigsetjmp innocuous_sigsetjmp
35275 #ifdef __STDC__
35276 # include <limits.h>
35277 #else
35278 # include <assert.h>
35279 #endif
35280 #undef sigsetjmp
35281 #ifdef __cplusplus
35282 extern "C"
35283 #endif
35284 char sigsetjmp ();
35285 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
35286 choke me
35287 #endif
35288
35289 int main (void)
35290 {
35291 return sigsetjmp ();
35292  ;
35293  return 0;
35294 }
35295
35296 _ACEOF
35297 if ac_fn_c_try_link "$LINENO"; then :
35298
35299     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35300 $as_echo "yes" >&6; }
35301     tst_links_sigsetjmp="yes"
35302
35303 else
35304
35305     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35306 $as_echo "no" >&6; }
35307     tst_links_sigsetjmp="no"
35308
35309 fi
35310 rm -f core conftest.err conftest.$ac_objext \
35311     conftest$ac_exeext conftest.$ac_ext
35312   #
35313   if test "$tst_links_sigsetjmp" = "no"; then
35314     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
35315 $as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
35316     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35317 /* end confdefs.h.  */
35318
35319
35320         $curl_includes_setjmp
35321
35322 int main (void)
35323 {
35324
35325         sigjmp_buf env;
35326         if(0 != sigsetjmp(env, 0))
35327           return 1;
35328
35329  ;
35330  return 0;
35331 }
35332
35333 _ACEOF
35334 if ac_fn_c_try_link "$LINENO"; then :
35335
35336       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35337 $as_echo "yes" >&6; }
35338       tst_macro_sigsetjmp="yes"
35339
35340 else
35341
35342       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35343 $as_echo "no" >&6; }
35344       tst_macro_sigsetjmp="no"
35345
35346 fi
35347 rm -f core conftest.err conftest.$ac_objext \
35348     conftest$ac_exeext conftest.$ac_ext
35349   fi
35350   #
35351   if test "$tst_links_sigsetjmp" = "yes"; then
35352     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
35353 $as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
35354     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35355 /* end confdefs.h.  */
35356
35357       $curl_includes_setjmp
35358
35359 _ACEOF
35360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35361   $EGREP "sigsetjmp" >/dev/null 2>&1; then :
35362
35363       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35364 $as_echo "yes" >&6; }
35365       tst_proto_sigsetjmp="yes"
35366
35367 else
35368
35369       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35370 $as_echo "no" >&6; }
35371       tst_proto_sigsetjmp="no"
35372
35373 fi
35374 rm -f conftest*
35375
35376   fi
35377   #
35378   if test "$tst_proto_sigsetjmp" = "yes" ||
35379      test "$tst_macro_sigsetjmp" = "yes"; then
35380     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
35381 $as_echo_n "checking if sigsetjmp is compilable... " >&6; }
35382     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35383 /* end confdefs.h.  */
35384
35385
35386         $curl_includes_setjmp
35387
35388 int main (void)
35389 {
35390
35391         sigjmp_buf env;
35392         if(0 != sigsetjmp(env, 0))
35393           return 1;
35394
35395  ;
35396  return 0;
35397 }
35398
35399 _ACEOF
35400 if ac_fn_c_try_compile "$LINENO"; then :
35401
35402       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35403 $as_echo "yes" >&6; }
35404       tst_compi_sigsetjmp="yes"
35405
35406 else
35407
35408       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35409 $as_echo "no" >&6; }
35410       tst_compi_sigsetjmp="no"
35411
35412 fi
35413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35414   fi
35415   #
35416   if test "$tst_compi_sigsetjmp" = "yes"; then
35417     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
35418 $as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
35419     if test "x$curl_disallow_sigsetjmp" != "xyes"; then
35420       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35421 $as_echo "yes" >&6; }
35422       tst_allow_sigsetjmp="yes"
35423     else
35424       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35425 $as_echo "no" >&6; }
35426       tst_allow_sigsetjmp="no"
35427     fi
35428   fi
35429   #
35430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
35431 $as_echo_n "checking if sigsetjmp might be used... " >&6; }
35432   if (test "$tst_proto_sigsetjmp" = "yes" ||
35433       test "$tst_macro_sigsetjmp" = "yes") &&
35434      test "$tst_compi_sigsetjmp" = "yes" &&
35435      test "$tst_allow_sigsetjmp" = "yes"; then
35436     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35437 $as_echo "yes" >&6; }
35438
35439 cat >>confdefs.h <<_ACEOF
35440 #define HAVE_SIGSETJMP 1
35441 _ACEOF
35442
35443     ac_cv_func_sigsetjmp="yes"
35444   else
35445     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35446 $as_echo "no" >&6; }
35447     ac_cv_func_sigsetjmp="no"
35448   fi
35449
35450
35451         #
35452   tst_links_socket="unknown"
35453   tst_proto_socket="unknown"
35454   tst_compi_socket="unknown"
35455   tst_allow_socket="unknown"
35456   #
35457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
35458 $as_echo_n "checking if socket can be linked... " >&6; }
35459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35460 /* end confdefs.h.  */
35461
35462
35463       $curl_includes_winsock2
35464       $curl_includes_sys_socket
35465       $curl_includes_socket
35466
35467 int main (void)
35468 {
35469
35470       if(0 != socket(0, 0, 0))
35471         return 1;
35472
35473  ;
35474  return 0;
35475 }
35476
35477 _ACEOF
35478 if ac_fn_c_try_link "$LINENO"; then :
35479
35480     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35481 $as_echo "yes" >&6; }
35482     tst_links_socket="yes"
35483
35484 else
35485
35486     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35487 $as_echo "no" >&6; }
35488     tst_links_socket="no"
35489
35490 fi
35491 rm -f core conftest.err conftest.$ac_objext \
35492     conftest$ac_exeext conftest.$ac_ext
35493   #
35494   if test "$tst_links_socket" = "yes"; then
35495     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
35496 $as_echo_n "checking if socket is prototyped... " >&6; }
35497     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35498 /* end confdefs.h.  */
35499
35500       $curl_includes_winsock2
35501       $curl_includes_sys_socket
35502       $curl_includes_socket
35503
35504 _ACEOF
35505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35506   $EGREP "socket" >/dev/null 2>&1; then :
35507
35508       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35509 $as_echo "yes" >&6; }
35510       tst_proto_socket="yes"
35511
35512 else
35513
35514       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35515 $as_echo "no" >&6; }
35516       tst_proto_socket="no"
35517
35518 fi
35519 rm -f conftest*
35520
35521   fi
35522   #
35523   if test "$tst_proto_socket" = "yes"; then
35524     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
35525 $as_echo_n "checking if socket is compilable... " >&6; }
35526     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35527 /* end confdefs.h.  */
35528
35529
35530         $curl_includes_winsock2
35531         $curl_includes_sys_socket
35532         $curl_includes_socket
35533
35534 int main (void)
35535 {
35536
35537         if(0 != socket(0, 0, 0))
35538           return 1;
35539
35540  ;
35541  return 0;
35542 }
35543
35544 _ACEOF
35545 if ac_fn_c_try_compile "$LINENO"; then :
35546
35547       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35548 $as_echo "yes" >&6; }
35549       tst_compi_socket="yes"
35550
35551 else
35552
35553       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35554 $as_echo "no" >&6; }
35555       tst_compi_socket="no"
35556
35557 fi
35558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35559   fi
35560   #
35561   if test "$tst_compi_socket" = "yes"; then
35562     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
35563 $as_echo_n "checking if socket usage allowed... " >&6; }
35564     if test "x$curl_disallow_socket" != "xyes"; then
35565       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35566 $as_echo "yes" >&6; }
35567       tst_allow_socket="yes"
35568     else
35569       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35570 $as_echo "no" >&6; }
35571       tst_allow_socket="no"
35572     fi
35573   fi
35574   #
35575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
35576 $as_echo_n "checking if socket might be used... " >&6; }
35577   if test "$tst_links_socket" = "yes" &&
35578      test "$tst_proto_socket" = "yes" &&
35579      test "$tst_compi_socket" = "yes" &&
35580      test "$tst_allow_socket" = "yes"; then
35581     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35582 $as_echo "yes" >&6; }
35583
35584 cat >>confdefs.h <<_ACEOF
35585 #define HAVE_SOCKET 1
35586 _ACEOF
35587
35588     ac_cv_func_socket="yes"
35589   else
35590     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35591 $as_echo "no" >&6; }
35592     ac_cv_func_socket="no"
35593   fi
35594
35595
35596       #
35597   tst_links_socketpair="unknown"
35598   tst_proto_socketpair="unknown"
35599   tst_compi_socketpair="unknown"
35600   tst_allow_socketpair="unknown"
35601   #
35602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
35603 $as_echo_n "checking if socketpair can be linked... " >&6; }
35604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35605 /* end confdefs.h.  */
35606
35607
35608 #define socketpair innocuous_socketpair
35609 #ifdef __STDC__
35610 # include <limits.h>
35611 #else
35612 # include <assert.h>
35613 #endif
35614 #undef socketpair
35615 #ifdef __cplusplus
35616 extern "C"
35617 #endif
35618 char socketpair ();
35619 #if defined __stub_socketpair || defined __stub___socketpair
35620 choke me
35621 #endif
35622
35623 int main (void)
35624 {
35625 return socketpair ();
35626  ;
35627  return 0;
35628 }
35629
35630 _ACEOF
35631 if ac_fn_c_try_link "$LINENO"; then :
35632
35633     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35634 $as_echo "yes" >&6; }
35635     tst_links_socketpair="yes"
35636
35637 else
35638
35639     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35640 $as_echo "no" >&6; }
35641     tst_links_socketpair="no"
35642
35643 fi
35644 rm -f core conftest.err conftest.$ac_objext \
35645     conftest$ac_exeext conftest.$ac_ext
35646   #
35647   if test "$tst_links_socketpair" = "yes"; then
35648     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
35649 $as_echo_n "checking if socketpair is prototyped... " >&6; }
35650     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35651 /* end confdefs.h.  */
35652
35653       $curl_includes_sys_socket
35654       $curl_includes_socket
35655
35656 _ACEOF
35657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35658   $EGREP "socketpair" >/dev/null 2>&1; then :
35659
35660       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35661 $as_echo "yes" >&6; }
35662       tst_proto_socketpair="yes"
35663
35664 else
35665
35666       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35667 $as_echo "no" >&6; }
35668       tst_proto_socketpair="no"
35669
35670 fi
35671 rm -f conftest*
35672
35673   fi
35674   #
35675   if test "$tst_proto_socketpair" = "yes"; then
35676     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
35677 $as_echo_n "checking if socketpair is compilable... " >&6; }
35678     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35679 /* end confdefs.h.  */
35680
35681
35682         $curl_includes_sys_socket
35683         $curl_includes_socket
35684
35685 int main (void)
35686 {
35687
35688         int sv[2];
35689         if(0 != socketpair(0, 0, 0, sv))
35690           return 1;
35691
35692  ;
35693  return 0;
35694 }
35695
35696 _ACEOF
35697 if ac_fn_c_try_compile "$LINENO"; then :
35698
35699       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35700 $as_echo "yes" >&6; }
35701       tst_compi_socketpair="yes"
35702
35703 else
35704
35705       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35706 $as_echo "no" >&6; }
35707       tst_compi_socketpair="no"
35708
35709 fi
35710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35711   fi
35712   #
35713   if test "$tst_compi_socketpair" = "yes"; then
35714     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
35715 $as_echo_n "checking if socketpair usage allowed... " >&6; }
35716     if test "x$curl_disallow_socketpair" != "xyes"; then
35717       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35718 $as_echo "yes" >&6; }
35719       tst_allow_socketpair="yes"
35720     else
35721       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35722 $as_echo "no" >&6; }
35723       tst_allow_socketpair="no"
35724     fi
35725   fi
35726   #
35727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
35728 $as_echo_n "checking if socketpair might be used... " >&6; }
35729   if test "$tst_links_socketpair" = "yes" &&
35730      test "$tst_proto_socketpair" = "yes" &&
35731      test "$tst_compi_socketpair" = "yes" &&
35732      test "$tst_allow_socketpair" = "yes"; then
35733     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35734 $as_echo "yes" >&6; }
35735
35736 cat >>confdefs.h <<_ACEOF
35737 #define HAVE_SOCKETPAIR 1
35738 _ACEOF
35739
35740     ac_cv_func_socketpair="yes"
35741   else
35742     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35743 $as_echo "no" >&6; }
35744     ac_cv_func_socketpair="no"
35745   fi
35746
35747
35748     #
35749   tst_links_strcasecmp="unknown"
35750   tst_proto_strcasecmp="unknown"
35751   tst_compi_strcasecmp="unknown"
35752   tst_allow_strcasecmp="unknown"
35753   #
35754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
35755 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
35756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35757 /* end confdefs.h.  */
35758
35759
35760 #define strcasecmp innocuous_strcasecmp
35761 #ifdef __STDC__
35762 # include <limits.h>
35763 #else
35764 # include <assert.h>
35765 #endif
35766 #undef strcasecmp
35767 #ifdef __cplusplus
35768 extern "C"
35769 #endif
35770 char strcasecmp ();
35771 #if defined __stub_strcasecmp || defined __stub___strcasecmp
35772 choke me
35773 #endif
35774
35775 int main (void)
35776 {
35777 return strcasecmp ();
35778  ;
35779  return 0;
35780 }
35781
35782 _ACEOF
35783 if ac_fn_c_try_link "$LINENO"; then :
35784
35785     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35786 $as_echo "yes" >&6; }
35787     tst_links_strcasecmp="yes"
35788
35789 else
35790
35791     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35792 $as_echo "no" >&6; }
35793     tst_links_strcasecmp="no"
35794
35795 fi
35796 rm -f core conftest.err conftest.$ac_objext \
35797     conftest$ac_exeext conftest.$ac_ext
35798   #
35799   if test "$tst_links_strcasecmp" = "yes"; then
35800     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
35801 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
35802     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35803 /* end confdefs.h.  */
35804
35805       $curl_includes_string
35806
35807 _ACEOF
35808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35809   $EGREP "strcasecmp" >/dev/null 2>&1; then :
35810
35811       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35812 $as_echo "yes" >&6; }
35813       tst_proto_strcasecmp="yes"
35814
35815 else
35816
35817       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35818 $as_echo "no" >&6; }
35819       tst_proto_strcasecmp="no"
35820
35821 fi
35822 rm -f conftest*
35823
35824   fi
35825   #
35826   if test "$tst_proto_strcasecmp" = "yes"; then
35827     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
35828 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
35829     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35830 /* end confdefs.h.  */
35831
35832
35833         $curl_includes_string
35834
35835 int main (void)
35836 {
35837
35838         if(0 != strcasecmp(0, 0))
35839           return 1;
35840
35841  ;
35842  return 0;
35843 }
35844
35845 _ACEOF
35846 if ac_fn_c_try_compile "$LINENO"; then :
35847
35848       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35849 $as_echo "yes" >&6; }
35850       tst_compi_strcasecmp="yes"
35851
35852 else
35853
35854       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35855 $as_echo "no" >&6; }
35856       tst_compi_strcasecmp="no"
35857
35858 fi
35859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35860   fi
35861   #
35862   if test "$tst_compi_strcasecmp" = "yes"; then
35863     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
35864 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
35865     if test "x$curl_disallow_strcasecmp" != "xyes"; then
35866       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35867 $as_echo "yes" >&6; }
35868       tst_allow_strcasecmp="yes"
35869     else
35870       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35871 $as_echo "no" >&6; }
35872       tst_allow_strcasecmp="no"
35873     fi
35874   fi
35875   #
35876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
35877 $as_echo_n "checking if strcasecmp might be used... " >&6; }
35878   if test "$tst_links_strcasecmp" = "yes" &&
35879      test "$tst_proto_strcasecmp" = "yes" &&
35880      test "$tst_compi_strcasecmp" = "yes" &&
35881      test "$tst_allow_strcasecmp" = "yes"; then
35882     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35883 $as_echo "yes" >&6; }
35884
35885 cat >>confdefs.h <<_ACEOF
35886 #define HAVE_STRCASECMP 1
35887 _ACEOF
35888
35889     ac_cv_func_strcasecmp="yes"
35890   else
35891     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35892 $as_echo "no" >&6; }
35893     ac_cv_func_strcasecmp="no"
35894   fi
35895
35896
35897     #
35898   tst_links_strcmpi="unknown"
35899   tst_proto_strcmpi="unknown"
35900   tst_compi_strcmpi="unknown"
35901   tst_allow_strcmpi="unknown"
35902   #
35903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
35904 $as_echo_n "checking if strcmpi can be linked... " >&6; }
35905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35906 /* end confdefs.h.  */
35907
35908
35909 #define strcmpi innocuous_strcmpi
35910 #ifdef __STDC__
35911 # include <limits.h>
35912 #else
35913 # include <assert.h>
35914 #endif
35915 #undef strcmpi
35916 #ifdef __cplusplus
35917 extern "C"
35918 #endif
35919 char strcmpi ();
35920 #if defined __stub_strcmpi || defined __stub___strcmpi
35921 choke me
35922 #endif
35923
35924 int main (void)
35925 {
35926 return strcmpi ();
35927  ;
35928  return 0;
35929 }
35930
35931 _ACEOF
35932 if ac_fn_c_try_link "$LINENO"; then :
35933
35934     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35935 $as_echo "yes" >&6; }
35936     tst_links_strcmpi="yes"
35937
35938 else
35939
35940     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35941 $as_echo "no" >&6; }
35942     tst_links_strcmpi="no"
35943
35944 fi
35945 rm -f core conftest.err conftest.$ac_objext \
35946     conftest$ac_exeext conftest.$ac_ext
35947   #
35948   if test "$tst_links_strcmpi" = "yes"; then
35949     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
35950 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
35951     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35952 /* end confdefs.h.  */
35953
35954       $curl_includes_string
35955
35956 _ACEOF
35957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35958   $EGREP "strcmpi" >/dev/null 2>&1; then :
35959
35960       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35961 $as_echo "yes" >&6; }
35962       tst_proto_strcmpi="yes"
35963
35964 else
35965
35966       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35967 $as_echo "no" >&6; }
35968       tst_proto_strcmpi="no"
35969
35970 fi
35971 rm -f conftest*
35972
35973   fi
35974   #
35975   if test "$tst_proto_strcmpi" = "yes"; then
35976     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
35977 $as_echo_n "checking if strcmpi is compilable... " >&6; }
35978     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35979 /* end confdefs.h.  */
35980
35981
35982         $curl_includes_string
35983
35984 int main (void)
35985 {
35986
35987         if(0 != strcmpi(0, 0))
35988           return 1;
35989
35990  ;
35991  return 0;
35992 }
35993
35994 _ACEOF
35995 if ac_fn_c_try_compile "$LINENO"; then :
35996
35997       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35998 $as_echo "yes" >&6; }
35999       tst_compi_strcmpi="yes"
36000
36001 else
36002
36003       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36004 $as_echo "no" >&6; }
36005       tst_compi_strcmpi="no"
36006
36007 fi
36008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36009   fi
36010   #
36011   if test "$tst_compi_strcmpi" = "yes"; then
36012     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
36013 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
36014     if test "x$curl_disallow_strcmpi" != "xyes"; then
36015       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36016 $as_echo "yes" >&6; }
36017       tst_allow_strcmpi="yes"
36018     else
36019       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36020 $as_echo "no" >&6; }
36021       tst_allow_strcmpi="no"
36022     fi
36023   fi
36024   #
36025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
36026 $as_echo_n "checking if strcmpi might be used... " >&6; }
36027   if test "$tst_links_strcmpi" = "yes" &&
36028      test "$tst_proto_strcmpi" = "yes" &&
36029      test "$tst_compi_strcmpi" = "yes" &&
36030      test "$tst_allow_strcmpi" = "yes"; then
36031     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36032 $as_echo "yes" >&6; }
36033
36034 cat >>confdefs.h <<_ACEOF
36035 #define HAVE_STRCMPI 1
36036 _ACEOF
36037
36038     ac_cv_func_strcmpi="yes"
36039   else
36040     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36041 $as_echo "no" >&6; }
36042     ac_cv_func_strcmpi="no"
36043   fi
36044
36045
36046     #
36047   tst_links_strdup="unknown"
36048   tst_proto_strdup="unknown"
36049   tst_compi_strdup="unknown"
36050   tst_allow_strdup="unknown"
36051   #
36052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
36053 $as_echo_n "checking if strdup can be linked... " >&6; }
36054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36055 /* end confdefs.h.  */
36056
36057
36058 #define strdup innocuous_strdup
36059 #ifdef __STDC__
36060 # include <limits.h>
36061 #else
36062 # include <assert.h>
36063 #endif
36064 #undef strdup
36065 #ifdef __cplusplus
36066 extern "C"
36067 #endif
36068 char strdup ();
36069 #if defined __stub_strdup || defined __stub___strdup
36070 choke me
36071 #endif
36072
36073 int main (void)
36074 {
36075 return strdup ();
36076  ;
36077  return 0;
36078 }
36079
36080 _ACEOF
36081 if ac_fn_c_try_link "$LINENO"; then :
36082
36083     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36084 $as_echo "yes" >&6; }
36085     tst_links_strdup="yes"
36086
36087 else
36088
36089     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36090 $as_echo "no" >&6; }
36091     tst_links_strdup="no"
36092
36093 fi
36094 rm -f core conftest.err conftest.$ac_objext \
36095     conftest$ac_exeext conftest.$ac_ext
36096   #
36097   if test "$tst_links_strdup" = "yes"; then
36098     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
36099 $as_echo_n "checking if strdup is prototyped... " >&6; }
36100     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36101 /* end confdefs.h.  */
36102
36103       $curl_includes_string
36104
36105 _ACEOF
36106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36107   $EGREP "strdup" >/dev/null 2>&1; then :
36108
36109       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36110 $as_echo "yes" >&6; }
36111       tst_proto_strdup="yes"
36112
36113 else
36114
36115       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36116 $as_echo "no" >&6; }
36117       tst_proto_strdup="no"
36118
36119 fi
36120 rm -f conftest*
36121
36122   fi
36123   #
36124   if test "$tst_proto_strdup" = "yes"; then
36125     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
36126 $as_echo_n "checking if strdup is compilable... " >&6; }
36127     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36128 /* end confdefs.h.  */
36129
36130
36131         $curl_includes_string
36132
36133 int main (void)
36134 {
36135
36136         if(0 != strdup(0))
36137           return 1;
36138
36139  ;
36140  return 0;
36141 }
36142
36143 _ACEOF
36144 if ac_fn_c_try_compile "$LINENO"; then :
36145
36146       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36147 $as_echo "yes" >&6; }
36148       tst_compi_strdup="yes"
36149
36150 else
36151
36152       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36153 $as_echo "no" >&6; }
36154       tst_compi_strdup="no"
36155
36156 fi
36157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36158   fi
36159   #
36160   if test "$tst_compi_strdup" = "yes"; then
36161     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
36162 $as_echo_n "checking if strdup usage allowed... " >&6; }
36163     if test "x$curl_disallow_strdup" != "xyes"; then
36164       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36165 $as_echo "yes" >&6; }
36166       tst_allow_strdup="yes"
36167     else
36168       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36169 $as_echo "no" >&6; }
36170       tst_allow_strdup="no"
36171     fi
36172   fi
36173   #
36174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
36175 $as_echo_n "checking if strdup might be used... " >&6; }
36176   if test "$tst_links_strdup" = "yes" &&
36177      test "$tst_proto_strdup" = "yes" &&
36178      test "$tst_compi_strdup" = "yes" &&
36179      test "$tst_allow_strdup" = "yes"; then
36180     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36181 $as_echo "yes" >&6; }
36182
36183 cat >>confdefs.h <<_ACEOF
36184 #define HAVE_STRDUP 1
36185 _ACEOF
36186
36187     ac_cv_func_strdup="yes"
36188   else
36189     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36190 $as_echo "no" >&6; }
36191     ac_cv_func_strdup="no"
36192   fi
36193
36194
36195       #
36196   tst_links_strerror_r="unknown"
36197   tst_proto_strerror_r="unknown"
36198   tst_compi_strerror_r="unknown"
36199   tst_glibc_strerror_r="unknown"
36200   tst_posix_strerror_r="unknown"
36201   tst_allow_strerror_r="unknown"
36202   tst_works_glibc_strerror_r="unknown"
36203   tst_works_posix_strerror_r="unknown"
36204   tst_glibc_strerror_r_type_arg3="unknown"
36205   tst_posix_strerror_r_type_arg3="unknown"
36206   #
36207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
36208 $as_echo_n "checking if strerror_r can be linked... " >&6; }
36209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36210 /* end confdefs.h.  */
36211
36212
36213 #define strerror_r innocuous_strerror_r
36214 #ifdef __STDC__
36215 # include <limits.h>
36216 #else
36217 # include <assert.h>
36218 #endif
36219 #undef strerror_r
36220 #ifdef __cplusplus
36221 extern "C"
36222 #endif
36223 char strerror_r ();
36224 #if defined __stub_strerror_r || defined __stub___strerror_r
36225 choke me
36226 #endif
36227
36228 int main (void)
36229 {
36230 return strerror_r ();
36231  ;
36232  return 0;
36233 }
36234
36235 _ACEOF
36236 if ac_fn_c_try_link "$LINENO"; then :
36237
36238     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36239 $as_echo "yes" >&6; }
36240     tst_links_strerror_r="yes"
36241
36242 else
36243
36244     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36245 $as_echo "no" >&6; }
36246     tst_links_strerror_r="no"
36247
36248 fi
36249 rm -f core conftest.err conftest.$ac_objext \
36250     conftest$ac_exeext conftest.$ac_ext
36251   #
36252   if test "$tst_links_strerror_r" = "yes"; then
36253     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
36254 $as_echo_n "checking if strerror_r is prototyped... " >&6; }
36255     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36256 /* end confdefs.h.  */
36257
36258       $curl_includes_string
36259
36260 _ACEOF
36261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36262   $EGREP "strerror_r" >/dev/null 2>&1; then :
36263
36264       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36265 $as_echo "yes" >&6; }
36266       tst_proto_strerror_r="yes"
36267
36268 else
36269
36270       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36271 $as_echo "no" >&6; }
36272       tst_proto_strerror_r="no"
36273
36274 fi
36275 rm -f conftest*
36276
36277   fi
36278   #
36279   if test "$tst_proto_strerror_r" = "yes"; then
36280     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
36281 $as_echo_n "checking if strerror_r is compilable... " >&6; }
36282     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36283 /* end confdefs.h.  */
36284
36285
36286         $curl_includes_string
36287
36288 int main (void)
36289 {
36290
36291         if(0 != strerror_r(0, 0, 0))
36292           return 1;
36293
36294  ;
36295  return 0;
36296 }
36297
36298 _ACEOF
36299 if ac_fn_c_try_compile "$LINENO"; then :
36300
36301       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36302 $as_echo "yes" >&6; }
36303       tst_compi_strerror_r="yes"
36304
36305 else
36306
36307       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36308 $as_echo "no" >&6; }
36309       tst_compi_strerror_r="no"
36310
36311 fi
36312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36313   fi
36314   #
36315   if test "$tst_compi_strerror_r" = "yes"; then
36316     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
36317 $as_echo_n "checking if strerror_r is glibc like... " >&6; }
36318     tst_glibc_strerror_r_type_arg3="unknown"
36319     for arg3 in 'size_t' 'int' 'unsigned int'; do
36320       if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
36321         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36322 /* end confdefs.h.  */
36323
36324
36325             $curl_includes_string
36326             char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
36327
36328 int main (void)
36329 {
36330
36331             if(0 != strerror_r(0, 0, 0))
36332               return 1;
36333
36334  ;
36335  return 0;
36336 }
36337
36338 _ACEOF
36339 if ac_fn_c_try_compile "$LINENO"; then :
36340
36341           tst_glibc_strerror_r_type_arg3="$arg3"
36342
36343 fi
36344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36345       fi
36346     done
36347     case "$tst_glibc_strerror_r_type_arg3" in
36348       unknown)
36349         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36350 $as_echo "no" >&6; }
36351         tst_glibc_strerror_r="no"
36352         ;;
36353       *)
36354         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36355 $as_echo "yes" >&6; }
36356         tst_glibc_strerror_r="yes"
36357         ;;
36358     esac
36359   fi
36360   #
36361     if test "x$cross_compiling" != "xyes" &&
36362     test "$tst_glibc_strerror_r" = "yes"; then
36363     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
36364 $as_echo_n "checking if strerror_r seems to work... " >&6; }
36365     if test "$cross_compiling" = yes; then :
36366   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36368 as_fn_error $? "cannot run test program while cross compiling
36369 See \`config.log' for more details" "$LINENO" 5; }
36370 else
36371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36372 /* end confdefs.h.  */
36373
36374
36375         $curl_includes_stdlib
36376         $curl_includes_string
36377 #       include <errno.h>
36378
36379 int main (void)
36380 {
36381
36382         char buffer[1024];
36383         char *string = 0;
36384         buffer[0] = '\0';
36385         string = strerror_r(EACCES, buffer, sizeof(buffer));
36386         if(!string)
36387           exit(1); /* fail */
36388         if(!string[0])
36389           exit(1); /* fail */
36390         else
36391           exit(0);
36392
36393  ;
36394  return 0;
36395 }
36396
36397 _ACEOF
36398 if ac_fn_c_try_run "$LINENO"; then :
36399
36400       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36401 $as_echo "yes" >&6; }
36402       tst_works_glibc_strerror_r="yes"
36403
36404 else
36405
36406       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36407 $as_echo "no" >&6; }
36408       tst_works_glibc_strerror_r="no"
36409
36410 fi
36411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36412   conftest.$ac_objext conftest.beam conftest.$ac_ext
36413 fi
36414
36415   fi
36416   #
36417   if test "$tst_compi_strerror_r" = "yes" &&
36418     test "$tst_works_glibc_strerror_r" != "yes"; then
36419     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
36420 $as_echo_n "checking if strerror_r is POSIX like... " >&6; }
36421     tst_posix_strerror_r_type_arg3="unknown"
36422     for arg3 in 'size_t' 'int' 'unsigned int'; do
36423       if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
36424         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36425 /* end confdefs.h.  */
36426
36427
36428             $curl_includes_string
36429             int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
36430
36431 int main (void)
36432 {
36433
36434             if(0 != strerror_r(0, 0, 0))
36435               return 1;
36436
36437  ;
36438  return 0;
36439 }
36440
36441 _ACEOF
36442 if ac_fn_c_try_compile "$LINENO"; then :
36443
36444           tst_posix_strerror_r_type_arg3="$arg3"
36445
36446 fi
36447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36448       fi
36449     done
36450     case "$tst_posix_strerror_r_type_arg3" in
36451       unknown)
36452         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36453 $as_echo "no" >&6; }
36454         tst_posix_strerror_r="no"
36455         ;;
36456       *)
36457         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36458 $as_echo "yes" >&6; }
36459         tst_posix_strerror_r="yes"
36460         ;;
36461     esac
36462   fi
36463   #
36464     if test "x$cross_compiling" != "xyes" &&
36465     test "$tst_posix_strerror_r" = "yes"; then
36466     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
36467 $as_echo_n "checking if strerror_r seems to work... " >&6; }
36468     if test "$cross_compiling" = yes; then :
36469   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36471 as_fn_error $? "cannot run test program while cross compiling
36472 See \`config.log' for more details" "$LINENO" 5; }
36473 else
36474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36475 /* end confdefs.h.  */
36476
36477
36478         $curl_includes_stdlib
36479         $curl_includes_string
36480 #       include <errno.h>
36481
36482 int main (void)
36483 {
36484
36485         char buffer[1024];
36486         int error = 1;
36487         buffer[0] = '\0';
36488         error = strerror_r(EACCES, buffer, sizeof(buffer));
36489         if(error)
36490           exit(1); /* fail */
36491         if(buffer[0] == '\0')
36492           exit(1); /* fail */
36493         else
36494           exit(0);
36495
36496  ;
36497  return 0;
36498 }
36499
36500 _ACEOF
36501 if ac_fn_c_try_run "$LINENO"; then :
36502
36503       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36504 $as_echo "yes" >&6; }
36505       tst_works_posix_strerror_r="yes"
36506
36507 else
36508
36509       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36510 $as_echo "no" >&6; }
36511       tst_works_posix_strerror_r="no"
36512
36513 fi
36514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36515   conftest.$ac_objext conftest.beam conftest.$ac_ext
36516 fi
36517
36518   fi
36519   #
36520   if test "$tst_works_glibc_strerror_r" = "yes"; then
36521     tst_posix_strerror_r="no"
36522   fi
36523   if test "$tst_works_posix_strerror_r" = "yes"; then
36524     tst_glibc_strerror_r="no"
36525   fi
36526   if test "$tst_glibc_strerror_r" = "yes" &&
36527     test "$tst_works_glibc_strerror_r" != "no" &&
36528     test "$tst_posix_strerror_r" != "yes"; then
36529     tst_allow_strerror_r="check"
36530   fi
36531   if test "$tst_posix_strerror_r" = "yes" &&
36532     test "$tst_works_posix_strerror_r" != "no" &&
36533     test "$tst_glibc_strerror_r" != "yes"; then
36534     tst_allow_strerror_r="check"
36535   fi
36536   if test "$tst_allow_strerror_r" = "check"; then
36537     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
36538 $as_echo_n "checking if strerror_r usage allowed... " >&6; }
36539     if test "x$curl_disallow_strerror_r" != "xyes"; then
36540       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36541 $as_echo "yes" >&6; }
36542       tst_allow_strerror_r="yes"
36543     else
36544       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36545 $as_echo "no" >&6; }
36546       tst_allow_strerror_r="no"
36547     fi
36548   fi
36549   #
36550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
36551 $as_echo_n "checking if strerror_r might be used... " >&6; }
36552   if test "$tst_links_strerror_r" = "yes" &&
36553      test "$tst_proto_strerror_r" = "yes" &&
36554      test "$tst_compi_strerror_r" = "yes" &&
36555      test "$tst_allow_strerror_r" = "yes"; then
36556     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36557 $as_echo "yes" >&6; }
36558     if test "$tst_glibc_strerror_r" = "yes"; then
36559
36560 cat >>confdefs.h <<_ACEOF
36561 #define HAVE_STRERROR_R 1
36562 _ACEOF
36563
36564
36565 cat >>confdefs.h <<_ACEOF
36566 #define HAVE_GLIBC_STRERROR_R 1
36567 _ACEOF
36568
36569
36570 cat >>confdefs.h <<_ACEOF
36571 #define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
36572 _ACEOF
36573
36574     fi
36575     if test "$tst_posix_strerror_r" = "yes"; then
36576
36577 cat >>confdefs.h <<_ACEOF
36578 #define HAVE_STRERROR_R 1
36579 _ACEOF
36580
36581
36582 cat >>confdefs.h <<_ACEOF
36583 #define HAVE_POSIX_STRERROR_R 1
36584 _ACEOF
36585
36586
36587 cat >>confdefs.h <<_ACEOF
36588 #define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
36589 _ACEOF
36590
36591     fi
36592     ac_cv_func_strerror_r="yes"
36593   else
36594     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36595 $as_echo "no" >&6; }
36596     ac_cv_func_strerror_r="no"
36597   fi
36598   #
36599   if test "$tst_compi_strerror_r" = "yes" &&
36600      test "$tst_allow_strerror_r" = "unknown"; then
36601     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
36602 $as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
36603   fi
36604   #
36605
36606
36607     #
36608   tst_links_stricmp="unknown"
36609   tst_proto_stricmp="unknown"
36610   tst_compi_stricmp="unknown"
36611   tst_allow_stricmp="unknown"
36612   #
36613   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
36614 $as_echo_n "checking if stricmp can be linked... " >&6; }
36615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36616 /* end confdefs.h.  */
36617
36618
36619 #define stricmp innocuous_stricmp
36620 #ifdef __STDC__
36621 # include <limits.h>
36622 #else
36623 # include <assert.h>
36624 #endif
36625 #undef stricmp
36626 #ifdef __cplusplus
36627 extern "C"
36628 #endif
36629 char stricmp ();
36630 #if defined __stub_stricmp || defined __stub___stricmp
36631 choke me
36632 #endif
36633
36634 int main (void)
36635 {
36636 return stricmp ();
36637  ;
36638  return 0;
36639 }
36640
36641 _ACEOF
36642 if ac_fn_c_try_link "$LINENO"; then :
36643
36644     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36645 $as_echo "yes" >&6; }
36646     tst_links_stricmp="yes"
36647
36648 else
36649
36650     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36651 $as_echo "no" >&6; }
36652     tst_links_stricmp="no"
36653
36654 fi
36655 rm -f core conftest.err conftest.$ac_objext \
36656     conftest$ac_exeext conftest.$ac_ext
36657   #
36658   if test "$tst_links_stricmp" = "yes"; then
36659     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
36660 $as_echo_n "checking if stricmp is prototyped... " >&6; }
36661     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36662 /* end confdefs.h.  */
36663
36664       $curl_includes_string
36665
36666 _ACEOF
36667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36668   $EGREP "stricmp" >/dev/null 2>&1; then :
36669
36670       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36671 $as_echo "yes" >&6; }
36672       tst_proto_stricmp="yes"
36673
36674 else
36675
36676       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36677 $as_echo "no" >&6; }
36678       tst_proto_stricmp="no"
36679
36680 fi
36681 rm -f conftest*
36682
36683   fi
36684   #
36685   if test "$tst_proto_stricmp" = "yes"; then
36686     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
36687 $as_echo_n "checking if stricmp is compilable... " >&6; }
36688     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36689 /* end confdefs.h.  */
36690
36691
36692         $curl_includes_string
36693
36694 int main (void)
36695 {
36696
36697         if(0 != stricmp(0, 0))
36698           return 1;
36699
36700  ;
36701  return 0;
36702 }
36703
36704 _ACEOF
36705 if ac_fn_c_try_compile "$LINENO"; then :
36706
36707       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36708 $as_echo "yes" >&6; }
36709       tst_compi_stricmp="yes"
36710
36711 else
36712
36713       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36714 $as_echo "no" >&6; }
36715       tst_compi_stricmp="no"
36716
36717 fi
36718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36719   fi
36720   #
36721   if test "$tst_compi_stricmp" = "yes"; then
36722     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
36723 $as_echo_n "checking if stricmp usage allowed... " >&6; }
36724     if test "x$curl_disallow_stricmp" != "xyes"; then
36725       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36726 $as_echo "yes" >&6; }
36727       tst_allow_stricmp="yes"
36728     else
36729       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36730 $as_echo "no" >&6; }
36731       tst_allow_stricmp="no"
36732     fi
36733   fi
36734   #
36735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
36736 $as_echo_n "checking if stricmp might be used... " >&6; }
36737   if test "$tst_links_stricmp" = "yes" &&
36738      test "$tst_proto_stricmp" = "yes" &&
36739      test "$tst_compi_stricmp" = "yes" &&
36740      test "$tst_allow_stricmp" = "yes"; then
36741     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36742 $as_echo "yes" >&6; }
36743
36744 cat >>confdefs.h <<_ACEOF
36745 #define HAVE_STRICMP 1
36746 _ACEOF
36747
36748     ac_cv_func_stricmp="yes"
36749   else
36750     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36751 $as_echo "no" >&6; }
36752     ac_cv_func_stricmp="no"
36753   fi
36754
36755
36756     #
36757   tst_links_strncasecmp="unknown"
36758   tst_proto_strncasecmp="unknown"
36759   tst_compi_strncasecmp="unknown"
36760   tst_allow_strncasecmp="unknown"
36761   #
36762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
36763 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
36764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36765 /* end confdefs.h.  */
36766
36767
36768 #define strncasecmp innocuous_strncasecmp
36769 #ifdef __STDC__
36770 # include <limits.h>
36771 #else
36772 # include <assert.h>
36773 #endif
36774 #undef strncasecmp
36775 #ifdef __cplusplus
36776 extern "C"
36777 #endif
36778 char strncasecmp ();
36779 #if defined __stub_strncasecmp || defined __stub___strncasecmp
36780 choke me
36781 #endif
36782
36783 int main (void)
36784 {
36785 return strncasecmp ();
36786  ;
36787  return 0;
36788 }
36789
36790 _ACEOF
36791 if ac_fn_c_try_link "$LINENO"; then :
36792
36793     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36794 $as_echo "yes" >&6; }
36795     tst_links_strncasecmp="yes"
36796
36797 else
36798
36799     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36800 $as_echo "no" >&6; }
36801     tst_links_strncasecmp="no"
36802
36803 fi
36804 rm -f core conftest.err conftest.$ac_objext \
36805     conftest$ac_exeext conftest.$ac_ext
36806   #
36807   if test "$tst_links_strncasecmp" = "yes"; then
36808     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
36809 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
36810     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36811 /* end confdefs.h.  */
36812
36813       $curl_includes_string
36814
36815 _ACEOF
36816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36817   $EGREP "strncasecmp" >/dev/null 2>&1; then :
36818
36819       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36820 $as_echo "yes" >&6; }
36821       tst_proto_strncasecmp="yes"
36822
36823 else
36824
36825       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36826 $as_echo "no" >&6; }
36827       tst_proto_strncasecmp="no"
36828
36829 fi
36830 rm -f conftest*
36831
36832   fi
36833   #
36834   if test "$tst_proto_strncasecmp" = "yes"; then
36835     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
36836 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
36837     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36838 /* end confdefs.h.  */
36839
36840
36841         $curl_includes_string
36842
36843 int main (void)
36844 {
36845
36846         if(0 != strncasecmp(0, 0, 0))
36847           return 1;
36848
36849  ;
36850  return 0;
36851 }
36852
36853 _ACEOF
36854 if ac_fn_c_try_compile "$LINENO"; then :
36855
36856       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36857 $as_echo "yes" >&6; }
36858       tst_compi_strncasecmp="yes"
36859
36860 else
36861
36862       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36863 $as_echo "no" >&6; }
36864       tst_compi_strncasecmp="no"
36865
36866 fi
36867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36868   fi
36869   #
36870   if test "$tst_compi_strncasecmp" = "yes"; then
36871     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
36872 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
36873     if test "x$curl_disallow_strncasecmp" != "xyes"; then
36874       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36875 $as_echo "yes" >&6; }
36876       tst_allow_strncasecmp="yes"
36877     else
36878       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36879 $as_echo "no" >&6; }
36880       tst_allow_strncasecmp="no"
36881     fi
36882   fi
36883   #
36884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
36885 $as_echo_n "checking if strncasecmp might be used... " >&6; }
36886   if test "$tst_links_strncasecmp" = "yes" &&
36887      test "$tst_proto_strncasecmp" = "yes" &&
36888      test "$tst_compi_strncasecmp" = "yes" &&
36889      test "$tst_allow_strncasecmp" = "yes"; then
36890     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36891 $as_echo "yes" >&6; }
36892
36893 cat >>confdefs.h <<_ACEOF
36894 #define HAVE_STRNCASECMP 1
36895 _ACEOF
36896
36897     ac_cv_func_strncasecmp="yes"
36898   else
36899     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36900 $as_echo "no" >&6; }
36901     ac_cv_func_strncasecmp="no"
36902   fi
36903
36904
36905     #
36906   tst_links_strncmpi="unknown"
36907   tst_proto_strncmpi="unknown"
36908   tst_compi_strncmpi="unknown"
36909   tst_allow_strncmpi="unknown"
36910   #
36911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
36912 $as_echo_n "checking if strncmpi can be linked... " >&6; }
36913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36914 /* end confdefs.h.  */
36915
36916
36917 #define strncmpi innocuous_strncmpi
36918 #ifdef __STDC__
36919 # include <limits.h>
36920 #else
36921 # include <assert.h>
36922 #endif
36923 #undef strncmpi
36924 #ifdef __cplusplus
36925 extern "C"
36926 #endif
36927 char strncmpi ();
36928 #if defined __stub_strncmpi || defined __stub___strncmpi
36929 choke me
36930 #endif
36931
36932 int main (void)
36933 {
36934 return strncmpi ();
36935  ;
36936  return 0;
36937 }
36938
36939 _ACEOF
36940 if ac_fn_c_try_link "$LINENO"; then :
36941
36942     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36943 $as_echo "yes" >&6; }
36944     tst_links_strncmpi="yes"
36945
36946 else
36947
36948     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36949 $as_echo "no" >&6; }
36950     tst_links_strncmpi="no"
36951
36952 fi
36953 rm -f core conftest.err conftest.$ac_objext \
36954     conftest$ac_exeext conftest.$ac_ext
36955   #
36956   if test "$tst_links_strncmpi" = "yes"; then
36957     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
36958 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
36959     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36960 /* end confdefs.h.  */
36961
36962       $curl_includes_string
36963
36964 _ACEOF
36965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36966   $EGREP "strncmpi" >/dev/null 2>&1; then :
36967
36968       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36969 $as_echo "yes" >&6; }
36970       tst_proto_strncmpi="yes"
36971
36972 else
36973
36974       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36975 $as_echo "no" >&6; }
36976       tst_proto_strncmpi="no"
36977
36978 fi
36979 rm -f conftest*
36980
36981   fi
36982   #
36983   if test "$tst_proto_strncmpi" = "yes"; then
36984     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
36985 $as_echo_n "checking if strncmpi is compilable... " >&6; }
36986     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36987 /* end confdefs.h.  */
36988
36989
36990         $curl_includes_string
36991
36992 int main (void)
36993 {
36994
36995         if(0 != strncmpi(0, 0))
36996           return 1;
36997
36998  ;
36999  return 0;
37000 }
37001
37002 _ACEOF
37003 if ac_fn_c_try_compile "$LINENO"; then :
37004
37005       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37006 $as_echo "yes" >&6; }
37007       tst_compi_strncmpi="yes"
37008
37009 else
37010
37011       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37012 $as_echo "no" >&6; }
37013       tst_compi_strncmpi="no"
37014
37015 fi
37016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37017   fi
37018   #
37019   if test "$tst_compi_strncmpi" = "yes"; then
37020     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
37021 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
37022     if test "x$curl_disallow_strncmpi" != "xyes"; then
37023       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37024 $as_echo "yes" >&6; }
37025       tst_allow_strncmpi="yes"
37026     else
37027       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37028 $as_echo "no" >&6; }
37029       tst_allow_strncmpi="no"
37030     fi
37031   fi
37032   #
37033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
37034 $as_echo_n "checking if strncmpi might be used... " >&6; }
37035   if test "$tst_links_strncmpi" = "yes" &&
37036      test "$tst_proto_strncmpi" = "yes" &&
37037      test "$tst_compi_strncmpi" = "yes" &&
37038      test "$tst_allow_strncmpi" = "yes"; then
37039     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37040 $as_echo "yes" >&6; }
37041
37042 cat >>confdefs.h <<_ACEOF
37043 #define HAVE_STRNCMPI 1
37044 _ACEOF
37045
37046     ac_cv_func_strncmpi="yes"
37047   else
37048     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37049 $as_echo "no" >&6; }
37050     ac_cv_func_strncmpi="no"
37051   fi
37052
37053
37054     #
37055   tst_links_strnicmp="unknown"
37056   tst_proto_strnicmp="unknown"
37057   tst_compi_strnicmp="unknown"
37058   tst_allow_strnicmp="unknown"
37059   #
37060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
37061 $as_echo_n "checking if strnicmp can be linked... " >&6; }
37062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37063 /* end confdefs.h.  */
37064
37065
37066 #define strnicmp innocuous_strnicmp
37067 #ifdef __STDC__
37068 # include <limits.h>
37069 #else
37070 # include <assert.h>
37071 #endif
37072 #undef strnicmp
37073 #ifdef __cplusplus
37074 extern "C"
37075 #endif
37076 char strnicmp ();
37077 #if defined __stub_strnicmp || defined __stub___strnicmp
37078 choke me
37079 #endif
37080
37081 int main (void)
37082 {
37083 return strnicmp ();
37084  ;
37085  return 0;
37086 }
37087
37088 _ACEOF
37089 if ac_fn_c_try_link "$LINENO"; then :
37090
37091     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37092 $as_echo "yes" >&6; }
37093     tst_links_strnicmp="yes"
37094
37095 else
37096
37097     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37098 $as_echo "no" >&6; }
37099     tst_links_strnicmp="no"
37100
37101 fi
37102 rm -f core conftest.err conftest.$ac_objext \
37103     conftest$ac_exeext conftest.$ac_ext
37104   #
37105   if test "$tst_links_strnicmp" = "yes"; then
37106     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
37107 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
37108     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37109 /* end confdefs.h.  */
37110
37111       $curl_includes_string
37112
37113 _ACEOF
37114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37115   $EGREP "strnicmp" >/dev/null 2>&1; then :
37116
37117       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37118 $as_echo "yes" >&6; }
37119       tst_proto_strnicmp="yes"
37120
37121 else
37122
37123       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37124 $as_echo "no" >&6; }
37125       tst_proto_strnicmp="no"
37126
37127 fi
37128 rm -f conftest*
37129
37130   fi
37131   #
37132   if test "$tst_proto_strnicmp" = "yes"; then
37133     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
37134 $as_echo_n "checking if strnicmp is compilable... " >&6; }
37135     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37136 /* end confdefs.h.  */
37137
37138
37139         $curl_includes_string
37140
37141 int main (void)
37142 {
37143
37144         if(0 != strnicmp(0, 0))
37145           return 1;
37146
37147  ;
37148  return 0;
37149 }
37150
37151 _ACEOF
37152 if ac_fn_c_try_compile "$LINENO"; then :
37153
37154       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37155 $as_echo "yes" >&6; }
37156       tst_compi_strnicmp="yes"
37157
37158 else
37159
37160       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37161 $as_echo "no" >&6; }
37162       tst_compi_strnicmp="no"
37163
37164 fi
37165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37166   fi
37167   #
37168   if test "$tst_compi_strnicmp" = "yes"; then
37169     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
37170 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
37171     if test "x$curl_disallow_strnicmp" != "xyes"; then
37172       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37173 $as_echo "yes" >&6; }
37174       tst_allow_strnicmp="yes"
37175     else
37176       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37177 $as_echo "no" >&6; }
37178       tst_allow_strnicmp="no"
37179     fi
37180   fi
37181   #
37182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
37183 $as_echo_n "checking if strnicmp might be used... " >&6; }
37184   if test "$tst_links_strnicmp" = "yes" &&
37185      test "$tst_proto_strnicmp" = "yes" &&
37186      test "$tst_compi_strnicmp" = "yes" &&
37187      test "$tst_allow_strnicmp" = "yes"; then
37188     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37189 $as_echo "yes" >&6; }
37190
37191 cat >>confdefs.h <<_ACEOF
37192 #define HAVE_STRNICMP 1
37193 _ACEOF
37194
37195     ac_cv_func_strnicmp="yes"
37196   else
37197     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37198 $as_echo "no" >&6; }
37199     ac_cv_func_strnicmp="no"
37200   fi
37201
37202
37203     #
37204   tst_links_strstr="unknown"
37205   tst_proto_strstr="unknown"
37206   tst_compi_strstr="unknown"
37207   tst_allow_strstr="unknown"
37208   #
37209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
37210 $as_echo_n "checking if strstr can be linked... " >&6; }
37211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37212 /* end confdefs.h.  */
37213
37214
37215 #define strstr innocuous_strstr
37216 #ifdef __STDC__
37217 # include <limits.h>
37218 #else
37219 # include <assert.h>
37220 #endif
37221 #undef strstr
37222 #ifdef __cplusplus
37223 extern "C"
37224 #endif
37225 char strstr ();
37226 #if defined __stub_strstr || defined __stub___strstr
37227 choke me
37228 #endif
37229
37230 int main (void)
37231 {
37232 return strstr ();
37233  ;
37234  return 0;
37235 }
37236
37237 _ACEOF
37238 if ac_fn_c_try_link "$LINENO"; then :
37239
37240     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37241 $as_echo "yes" >&6; }
37242     tst_links_strstr="yes"
37243
37244 else
37245
37246     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37247 $as_echo "no" >&6; }
37248     tst_links_strstr="no"
37249
37250 fi
37251 rm -f core conftest.err conftest.$ac_objext \
37252     conftest$ac_exeext conftest.$ac_ext
37253   #
37254   if test "$tst_links_strstr" = "yes"; then
37255     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
37256 $as_echo_n "checking if strstr is prototyped... " >&6; }
37257     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37258 /* end confdefs.h.  */
37259
37260       $curl_includes_string
37261
37262 _ACEOF
37263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37264   $EGREP "strstr" >/dev/null 2>&1; then :
37265
37266       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37267 $as_echo "yes" >&6; }
37268       tst_proto_strstr="yes"
37269
37270 else
37271
37272       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37273 $as_echo "no" >&6; }
37274       tst_proto_strstr="no"
37275
37276 fi
37277 rm -f conftest*
37278
37279   fi
37280   #
37281   if test "$tst_proto_strstr" = "yes"; then
37282     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
37283 $as_echo_n "checking if strstr is compilable... " >&6; }
37284     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37285 /* end confdefs.h.  */
37286
37287
37288         $curl_includes_string
37289
37290 int main (void)
37291 {
37292
37293         if(0 != strstr(0, 0))
37294           return 1;
37295
37296  ;
37297  return 0;
37298 }
37299
37300 _ACEOF
37301 if ac_fn_c_try_compile "$LINENO"; then :
37302
37303       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37304 $as_echo "yes" >&6; }
37305       tst_compi_strstr="yes"
37306
37307 else
37308
37309       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37310 $as_echo "no" >&6; }
37311       tst_compi_strstr="no"
37312
37313 fi
37314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37315   fi
37316   #
37317   if test "$tst_compi_strstr" = "yes"; then
37318     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
37319 $as_echo_n "checking if strstr usage allowed... " >&6; }
37320     if test "x$curl_disallow_strstr" != "xyes"; then
37321       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37322 $as_echo "yes" >&6; }
37323       tst_allow_strstr="yes"
37324     else
37325       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37326 $as_echo "no" >&6; }
37327       tst_allow_strstr="no"
37328     fi
37329   fi
37330   #
37331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
37332 $as_echo_n "checking if strstr might be used... " >&6; }
37333   if test "$tst_links_strstr" = "yes" &&
37334      test "$tst_proto_strstr" = "yes" &&
37335      test "$tst_compi_strstr" = "yes" &&
37336      test "$tst_allow_strstr" = "yes"; then
37337     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37338 $as_echo "yes" >&6; }
37339
37340 cat >>confdefs.h <<_ACEOF
37341 #define HAVE_STRSTR 1
37342 _ACEOF
37343
37344     ac_cv_func_strstr="yes"
37345   else
37346     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37347 $as_echo "no" >&6; }
37348     ac_cv_func_strstr="no"
37349   fi
37350
37351
37352     #
37353   tst_links_strtok_r="unknown"
37354   tst_proto_strtok_r="unknown"
37355   tst_compi_strtok_r="unknown"
37356   tst_allow_strtok_r="unknown"
37357   #
37358   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
37359 $as_echo_n "checking if strtok_r can be linked... " >&6; }
37360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37361 /* end confdefs.h.  */
37362
37363
37364 #define strtok_r innocuous_strtok_r
37365 #ifdef __STDC__
37366 # include <limits.h>
37367 #else
37368 # include <assert.h>
37369 #endif
37370 #undef strtok_r
37371 #ifdef __cplusplus
37372 extern "C"
37373 #endif
37374 char strtok_r ();
37375 #if defined __stub_strtok_r || defined __stub___strtok_r
37376 choke me
37377 #endif
37378
37379 int main (void)
37380 {
37381 return strtok_r ();
37382  ;
37383  return 0;
37384 }
37385
37386 _ACEOF
37387 if ac_fn_c_try_link "$LINENO"; then :
37388
37389     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37390 $as_echo "yes" >&6; }
37391     tst_links_strtok_r="yes"
37392
37393 else
37394
37395     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37396 $as_echo "no" >&6; }
37397     tst_links_strtok_r="no"
37398
37399 fi
37400 rm -f core conftest.err conftest.$ac_objext \
37401     conftest$ac_exeext conftest.$ac_ext
37402   #
37403   if test "$tst_links_strtok_r" = "yes"; then
37404     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
37405 $as_echo_n "checking if strtok_r is prototyped... " >&6; }
37406     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37407 /* end confdefs.h.  */
37408
37409       $curl_includes_string
37410
37411 _ACEOF
37412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37413   $EGREP "strtok_r" >/dev/null 2>&1; then :
37414
37415       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37416 $as_echo "yes" >&6; }
37417       tst_proto_strtok_r="yes"
37418
37419 else
37420
37421       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37422 $as_echo "no" >&6; }
37423       tst_proto_strtok_r="no"
37424
37425 fi
37426 rm -f conftest*
37427
37428   fi
37429   #
37430   if test "$tst_proto_strtok_r" = "yes"; then
37431     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
37432 $as_echo_n "checking if strtok_r is compilable... " >&6; }
37433     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37434 /* end confdefs.h.  */
37435
37436
37437         $curl_includes_string
37438
37439 int main (void)
37440 {
37441
37442         if(0 != strtok_r(0, 0, 0))
37443           return 1;
37444
37445  ;
37446  return 0;
37447 }
37448
37449 _ACEOF
37450 if ac_fn_c_try_compile "$LINENO"; then :
37451
37452       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37453 $as_echo "yes" >&6; }
37454       tst_compi_strtok_r="yes"
37455
37456 else
37457
37458       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37459 $as_echo "no" >&6; }
37460       tst_compi_strtok_r="no"
37461
37462 fi
37463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37464   fi
37465   #
37466   if test "$tst_compi_strtok_r" = "yes"; then
37467     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
37468 $as_echo_n "checking if strtok_r usage allowed... " >&6; }
37469     if test "x$curl_disallow_strtok_r" != "xyes"; then
37470       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37471 $as_echo "yes" >&6; }
37472       tst_allow_strtok_r="yes"
37473     else
37474       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37475 $as_echo "no" >&6; }
37476       tst_allow_strtok_r="no"
37477     fi
37478   fi
37479   #
37480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
37481 $as_echo_n "checking if strtok_r might be used... " >&6; }
37482   if test "$tst_links_strtok_r" = "yes" &&
37483      test "$tst_proto_strtok_r" = "yes" &&
37484      test "$tst_compi_strtok_r" = "yes" &&
37485      test "$tst_allow_strtok_r" = "yes"; then
37486     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37487 $as_echo "yes" >&6; }
37488
37489 cat >>confdefs.h <<_ACEOF
37490 #define HAVE_STRTOK_R 1
37491 _ACEOF
37492
37493     ac_cv_func_strtok_r="yes"
37494   else
37495     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37496 $as_echo "no" >&6; }
37497     ac_cv_func_strtok_r="no"
37498   fi
37499
37500
37501     #
37502   tst_links_strtoll="unknown"
37503   tst_proto_strtoll="unknown"
37504   tst_compi_strtoll="unknown"
37505   tst_allow_strtoll="unknown"
37506   #
37507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
37508 $as_echo_n "checking if strtoll can be linked... " >&6; }
37509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37510 /* end confdefs.h.  */
37511
37512
37513 #define strtoll innocuous_strtoll
37514 #ifdef __STDC__
37515 # include <limits.h>
37516 #else
37517 # include <assert.h>
37518 #endif
37519 #undef strtoll
37520 #ifdef __cplusplus
37521 extern "C"
37522 #endif
37523 char strtoll ();
37524 #if defined __stub_strtoll || defined __stub___strtoll
37525 choke me
37526 #endif
37527
37528 int main (void)
37529 {
37530 return strtoll ();
37531  ;
37532  return 0;
37533 }
37534
37535 _ACEOF
37536 if ac_fn_c_try_link "$LINENO"; then :
37537
37538     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37539 $as_echo "yes" >&6; }
37540     tst_links_strtoll="yes"
37541
37542 else
37543
37544     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37545 $as_echo "no" >&6; }
37546     tst_links_strtoll="no"
37547
37548 fi
37549 rm -f core conftest.err conftest.$ac_objext \
37550     conftest$ac_exeext conftest.$ac_ext
37551   #
37552   if test "$tst_links_strtoll" = "yes"; then
37553     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
37554 $as_echo_n "checking if strtoll is prototyped... " >&6; }
37555     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37556 /* end confdefs.h.  */
37557
37558       $curl_includes_stdlib
37559
37560 _ACEOF
37561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37562   $EGREP "strtoll" >/dev/null 2>&1; then :
37563
37564       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37565 $as_echo "yes" >&6; }
37566       tst_proto_strtoll="yes"
37567
37568 else
37569
37570       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37571 $as_echo "no" >&6; }
37572       tst_proto_strtoll="no"
37573
37574 fi
37575 rm -f conftest*
37576
37577   fi
37578   #
37579   if test "$tst_proto_strtoll" = "yes"; then
37580     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
37581 $as_echo_n "checking if strtoll is compilable... " >&6; }
37582     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37583 /* end confdefs.h.  */
37584
37585
37586         $curl_includes_stdlib
37587
37588 int main (void)
37589 {
37590
37591         if(0 != strtoll(0, 0, 0))
37592           return 1;
37593
37594  ;
37595  return 0;
37596 }
37597
37598 _ACEOF
37599 if ac_fn_c_try_compile "$LINENO"; then :
37600
37601       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37602 $as_echo "yes" >&6; }
37603       tst_compi_strtoll="yes"
37604
37605 else
37606
37607       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37608 $as_echo "no" >&6; }
37609       tst_compi_strtoll="no"
37610
37611 fi
37612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37613   fi
37614   #
37615   if test "$tst_compi_strtoll" = "yes"; then
37616     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
37617 $as_echo_n "checking if strtoll usage allowed... " >&6; }
37618     if test "x$curl_disallow_strtoll" != "xyes"; then
37619       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37620 $as_echo "yes" >&6; }
37621       tst_allow_strtoll="yes"
37622     else
37623       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37624 $as_echo "no" >&6; }
37625       tst_allow_strtoll="no"
37626     fi
37627   fi
37628   #
37629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
37630 $as_echo_n "checking if strtoll might be used... " >&6; }
37631   if test "$tst_links_strtoll" = "yes" &&
37632      test "$tst_proto_strtoll" = "yes" &&
37633      test "$tst_compi_strtoll" = "yes" &&
37634      test "$tst_allow_strtoll" = "yes"; then
37635     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37636 $as_echo "yes" >&6; }
37637
37638 cat >>confdefs.h <<_ACEOF
37639 #define HAVE_STRTOLL 1
37640 _ACEOF
37641
37642     ac_cv_func_strtoll="yes"
37643   else
37644     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37645 $as_echo "no" >&6; }
37646     ac_cv_func_strtoll="no"
37647   fi
37648
37649
37650 curl_includes_sys_uio="\
37651 /* includes start */
37652 #ifdef HAVE_SYS_TYPES_H
37653 #  include <sys/types.h>
37654 #endif
37655 #ifdef HAVE_SYS_UIO_H
37656 #  include <sys/uio.h>
37657 #endif
37658 /* includes end */"
37659   for ac_header in sys/types.h sys/uio.h
37660 do :
37661   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37662 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
37663 "
37664 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37665   cat >>confdefs.h <<_ACEOF
37666 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37667 _ACEOF
37668
37669 fi
37670
37671 done
37672
37673
37674
37675     #
37676   tst_links_writev="unknown"
37677   tst_proto_writev="unknown"
37678   tst_compi_writev="unknown"
37679   tst_allow_writev="unknown"
37680   #
37681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
37682 $as_echo_n "checking if writev can be linked... " >&6; }
37683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37684 /* end confdefs.h.  */
37685
37686
37687 #define writev innocuous_writev
37688 #ifdef __STDC__
37689 # include <limits.h>
37690 #else
37691 # include <assert.h>
37692 #endif
37693 #undef writev
37694 #ifdef __cplusplus
37695 extern "C"
37696 #endif
37697 char writev ();
37698 #if defined __stub_writev || defined __stub___writev
37699 choke me
37700 #endif
37701
37702 int main (void)
37703 {
37704 return writev ();
37705  ;
37706  return 0;
37707 }
37708
37709 _ACEOF
37710 if ac_fn_c_try_link "$LINENO"; then :
37711
37712     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37713 $as_echo "yes" >&6; }
37714     tst_links_writev="yes"
37715
37716 else
37717
37718     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37719 $as_echo "no" >&6; }
37720     tst_links_writev="no"
37721
37722 fi
37723 rm -f core conftest.err conftest.$ac_objext \
37724     conftest$ac_exeext conftest.$ac_ext
37725   #
37726   if test "$tst_links_writev" = "yes"; then
37727     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
37728 $as_echo_n "checking if writev is prototyped... " >&6; }
37729     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37730 /* end confdefs.h.  */
37731
37732       $curl_includes_sys_uio
37733
37734 _ACEOF
37735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37736   $EGREP "writev" >/dev/null 2>&1; then :
37737
37738       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37739 $as_echo "yes" >&6; }
37740       tst_proto_writev="yes"
37741
37742 else
37743
37744       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37745 $as_echo "no" >&6; }
37746       tst_proto_writev="no"
37747
37748 fi
37749 rm -f conftest*
37750
37751   fi
37752   #
37753   if test "$tst_proto_writev" = "yes"; then
37754     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
37755 $as_echo_n "checking if writev is compilable... " >&6; }
37756     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37757 /* end confdefs.h.  */
37758
37759
37760         $curl_includes_sys_uio
37761
37762 int main (void)
37763 {
37764
37765         if(0 != writev(0, 0, 0))
37766           return 1;
37767
37768  ;
37769  return 0;
37770 }
37771
37772 _ACEOF
37773 if ac_fn_c_try_compile "$LINENO"; then :
37774
37775       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37776 $as_echo "yes" >&6; }
37777       tst_compi_writev="yes"
37778
37779 else
37780
37781       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37782 $as_echo "no" >&6; }
37783       tst_compi_writev="no"
37784
37785 fi
37786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37787   fi
37788   #
37789   if test "$tst_compi_writev" = "yes"; then
37790     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
37791 $as_echo_n "checking if writev usage allowed... " >&6; }
37792     if test "x$curl_disallow_writev" != "xyes"; then
37793       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37794 $as_echo "yes" >&6; }
37795       tst_allow_writev="yes"
37796     else
37797       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37798 $as_echo "no" >&6; }
37799       tst_allow_writev="no"
37800     fi
37801   fi
37802   #
37803   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
37804 $as_echo_n "checking if writev might be used... " >&6; }
37805   if test "$tst_links_writev" = "yes" &&
37806      test "$tst_proto_writev" = "yes" &&
37807      test "$tst_compi_writev" = "yes" &&
37808      test "$tst_allow_writev" = "yes"; then
37809     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37810 $as_echo "yes" >&6; }
37811
37812 cat >>confdefs.h <<_ACEOF
37813 #define HAVE_WRITEV 1
37814 _ACEOF
37815
37816     ac_cv_func_writev="yes"
37817   else
37818     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37819 $as_echo "no" >&6; }
37820     ac_cv_func_writev="no"
37821   fi
37822
37823
37824 case $host in
37825   *msdosdjgpp)
37826      ac_cv_func_pipe=no
37827      skipcheck_pipe=yes
37828      { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
37829 $as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
37830     ;;
37831 esac
37832
37833 for ac_func in fork \
37834   geteuid \
37835   getpass_r \
37836   getppid \
37837   getprotobyname \
37838   getpwuid \
37839   getrlimit \
37840   gettimeofday \
37841   inet_addr \
37842   perror \
37843   pipe \
37844   setlocale \
37845   setmode \
37846   setrlimit \
37847   uname \
37848   utime
37849
37850 do :
37851   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37852 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
37853 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
37854   cat >>confdefs.h <<_ACEOF
37855 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37856 _ACEOF
37857
37858
37859 else
37860
37861   func="$ac_func"
37862   eval skipcheck=\$skipcheck_$func
37863   if test "x$skipcheck" != "xyes"; then
37864     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
37865 $as_echo_n "checking deeper for $func... " >&6; }
37866     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37867 /* end confdefs.h.  */
37868
37869
37870
37871 int main (void)
37872 {
37873
37874         $func ();
37875
37876  ;
37877  return 0;
37878 }
37879
37880 _ACEOF
37881 if ac_fn_c_try_link "$LINENO"; then :
37882
37883       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37884 $as_echo "yes" >&6; }
37885       eval "ac_cv_func_$func=yes"
37886
37887 cat >>confdefs.h <<_ACEOF
37888 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
37889 _ACEOF
37890
37891
37892 else
37893
37894       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
37895 $as_echo "but still no" >&6; }
37896
37897 fi
37898 rm -f core conftest.err conftest.$ac_objext \
37899     conftest$ac_exeext conftest.$ac_ext
37900   fi
37901
37902 fi
37903 done
37904
37905
37906
37907     for ac_header in sys/types.h sys/socket.h netdb.h
37908 do :
37909   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37910 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
37911 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37912   cat >>confdefs.h <<_ACEOF
37913 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37914 _ACEOF
37915
37916 fi
37917
37918 done
37919
37920   #
37921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
37922 $as_echo_n "checking for getnameinfo... " >&6; }
37923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37924 /* end confdefs.h.  */
37925
37926
37927 #define getnameinfo innocuous_getnameinfo
37928 #ifdef __STDC__
37929 # include <limits.h>
37930 #else
37931 # include <assert.h>
37932 #endif
37933 #undef getnameinfo
37934 #ifdef __cplusplus
37935 extern "C"
37936 #endif
37937 char getnameinfo ();
37938 #if defined __stub_getnameinfo || defined __stub___getnameinfo
37939 choke me
37940 #endif
37941
37942 int main (void)
37943 {
37944 return getnameinfo ();
37945  ;
37946  return 0;
37947 }
37948
37949 _ACEOF
37950 if ac_fn_c_try_link "$LINENO"; then :
37951
37952     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37953 $as_echo "yes" >&6; }
37954     curl_cv_getnameinfo="yes"
37955
37956 else
37957
37958     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37959 $as_echo "no" >&6; }
37960     curl_cv_getnameinfo="no"
37961
37962 fi
37963 rm -f core conftest.err conftest.$ac_objext \
37964     conftest$ac_exeext conftest.$ac_ext
37965   #
37966   if test "$curl_cv_getnameinfo" != "yes"; then
37967     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
37968 $as_echo_n "checking deeper for getnameinfo... " >&6; }
37969     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37970 /* end confdefs.h.  */
37971
37972
37973
37974 int main (void)
37975 {
37976
37977         getnameinfo();
37978
37979  ;
37980  return 0;
37981 }
37982
37983 _ACEOF
37984 if ac_fn_c_try_link "$LINENO"; then :
37985
37986       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37987 $as_echo "yes" >&6; }
37988       curl_cv_getnameinfo="yes"
37989
37990 else
37991
37992       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
37993 $as_echo "but still no" >&6; }
37994       curl_cv_getnameinfo="no"
37995
37996 fi
37997 rm -f core conftest.err conftest.$ac_objext \
37998     conftest$ac_exeext conftest.$ac_ext
37999   fi
38000   #
38001   if test "$curl_cv_getnameinfo" != "yes"; then
38002     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
38003 $as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
38004     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38005 /* end confdefs.h.  */
38006
38007
38008 #undef inline
38009 #ifdef HAVE_WINDOWS_H
38010 #ifndef WIN32_LEAN_AND_MEAN
38011 #define WIN32_LEAN_AND_MEAN
38012 #endif
38013 #include <windows.h>
38014 #ifdef HAVE_WINSOCK2_H
38015 #include <winsock2.h>
38016 #ifdef HAVE_WS2TCPIP_H
38017 #include <ws2tcpip.h>
38018 #endif
38019 #endif
38020 #else
38021 #ifdef HAVE_SYS_TYPES_H
38022 #include <sys/types.h>
38023 #endif
38024 #ifdef HAVE_SYS_SOCKET_H
38025 #include <sys/socket.h>
38026 #endif
38027 #ifdef HAVE_NETDB_H
38028 #include <netdb.h>
38029 #endif
38030 #endif
38031
38032 int main (void)
38033 {
38034
38035         getnameinfo(0, 0, 0, 0, 0, 0, 0);
38036
38037  ;
38038  return 0;
38039 }
38040
38041 _ACEOF
38042 if ac_fn_c_try_link "$LINENO"; then :
38043
38044       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38045 $as_echo "yes" >&6; }
38046       curl_cv_getnameinfo="yes"
38047
38048 else
38049
38050       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
38051 $as_echo "but still no" >&6; }
38052       curl_cv_getnameinfo="no"
38053
38054 fi
38055 rm -f core conftest.err conftest.$ac_objext \
38056     conftest$ac_exeext conftest.$ac_ext
38057   fi
38058   #
38059   if test "$curl_cv_getnameinfo" = "yes"; then
38060     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
38061 $as_echo_n "checking types of arguments for getnameinfo... " >&6; }
38062 if ${curl_cv_func_getnameinfo_args+:} false; then :
38063   $as_echo_n "(cached) " >&6
38064 else
38065
38066       curl_cv_func_getnameinfo_args="unknown"
38067       for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
38068         for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
38069           for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
38070             for gni_arg7 in 'int' 'unsigned int'; do
38071               if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
38072                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38073 /* end confdefs.h.  */
38074
38075
38076 #undef inline
38077 #ifdef HAVE_WINDOWS_H
38078 #ifndef WIN32_LEAN_AND_MEAN
38079 #define WIN32_LEAN_AND_MEAN
38080 #endif
38081 #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
38082 #undef _WIN32_WINNT
38083 #define _WIN32_WINNT 0x0501
38084 #endif
38085 #include <windows.h>
38086 #ifdef HAVE_WINSOCK2_H
38087 #include <winsock2.h>
38088 #ifdef HAVE_WS2TCPIP_H
38089 #include <ws2tcpip.h>
38090 #endif
38091 #endif
38092 #define GNICALLCONV WSAAPI
38093 #else
38094 #ifdef HAVE_SYS_TYPES_H
38095 #include <sys/types.h>
38096 #endif
38097 #ifdef HAVE_SYS_SOCKET_H
38098 #include <sys/socket.h>
38099 #endif
38100 #ifdef HAVE_NETDB_H
38101 #include <netdb.h>
38102 #endif
38103 #define GNICALLCONV
38104 #endif
38105                     extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
38106                                            char *, $gni_arg46,
38107                                            char *, $gni_arg46,
38108                                            $gni_arg7);
38109
38110 int main (void)
38111 {
38112
38113                     $gni_arg2 salen=0;
38114                     $gni_arg46 hostlen=0;
38115                     $gni_arg46 servlen=0;
38116                     $gni_arg7 flags=0;
38117                     int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
38118
38119  ;
38120  return 0;
38121 }
38122
38123 _ACEOF
38124 if ac_fn_c_try_compile "$LINENO"; then :
38125
38126                   curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
38127
38128 fi
38129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38130               fi
38131             done
38132           done
38133         done
38134       done
38135
38136 fi
38137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
38138 $as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
38139     if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
38140       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
38141 $as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
38142       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
38143 $as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
38144     else
38145       gni_prev_IFS=$IFS; IFS=','
38146       set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
38147       IFS=$gni_prev_IFS
38148       shift
38149       #
38150       gni_qual_type_arg1=$1
38151       #
38152
38153 cat >>confdefs.h <<_ACEOF
38154 #define GETNAMEINFO_TYPE_ARG2 $2
38155 _ACEOF
38156
38157
38158 cat >>confdefs.h <<_ACEOF
38159 #define GETNAMEINFO_TYPE_ARG46 $3
38160 _ACEOF
38161
38162
38163 cat >>confdefs.h <<_ACEOF
38164 #define GETNAMEINFO_TYPE_ARG7 $4
38165 _ACEOF
38166
38167       #
38168       prev_sh_opts=$-
38169       #
38170       case $prev_sh_opts in
38171         *f*)
38172           ;;
38173         *)
38174           set -f
38175           ;;
38176       esac
38177       #
38178       case "$gni_qual_type_arg1" in
38179         const*)
38180           gni_qual_arg1=const
38181           gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
38182         ;;
38183         *)
38184           gni_qual_arg1=
38185           gni_type_arg1=$gni_qual_type_arg1
38186         ;;
38187       esac
38188       #
38189
38190 cat >>confdefs.h <<_ACEOF
38191 #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
38192 _ACEOF
38193
38194
38195 cat >>confdefs.h <<_ACEOF
38196 #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
38197 _ACEOF
38198
38199       #
38200       case $prev_sh_opts in
38201         *f*)
38202           ;;
38203         *)
38204           set +f
38205           ;;
38206       esac
38207       #
38208
38209 cat >>confdefs.h <<_ACEOF
38210 #define HAVE_GETNAMEINFO 1
38211 _ACEOF
38212
38213       ac_cv_func_getnameinfo="yes"
38214     fi
38215   fi
38216
38217
38218 if test "$ipv6" = "yes"; then
38219   if test "$ac_cv_func_getaddrinfo" = "yes"; then
38220
38221 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
38222
38223     IPV6_ENABLED=1
38224
38225   fi
38226
38227       for ac_header in stdio.h sys/types.h sys/socket.h \
38228                    netdb.h netinet/in.h arpa/inet.h
38229 do :
38230   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38231 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
38232 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38233   cat >>confdefs.h <<_ACEOF
38234 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38235 _ACEOF
38236
38237 fi
38238
38239 done
38240
38241   #
38242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working NI_WITHSCOPEID" >&5
38243 $as_echo_n "checking for working NI_WITHSCOPEID... " >&6; }
38244 if ${ac_cv_working_ni_withscopeid+:} false; then :
38245   $as_echo_n "(cached) " >&6
38246 else
38247
38248     if test "$cross_compiling" = yes; then :
38249
38250       # Program is not run when cross-compiling. So we assume
38251       # NI_WITHSCOPEID will work if we are able to compile it.
38252       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38253 /* end confdefs.h.  */
38254
38255
38256 #include <sys/types.h>
38257 #include <sys/socket.h>
38258 #include <netdb.h>
38259
38260 int main (void)
38261 {
38262
38263           unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
38264
38265  ;
38266  return 0;
38267 }
38268
38269 _ACEOF
38270 if ac_fn_c_try_compile "$LINENO"; then :
38271
38272         ac_cv_working_ni_withscopeid="yes"
38273
38274 else
38275
38276         ac_cv_working_ni_withscopeid="no"
38277
38278 fi
38279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE
38280
38281 else
38282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38283 /* end confdefs.h.  */
38284
38285
38286 #ifdef HAVE_STDLIB_H
38287 #include <stdlib.h>
38288 #endif
38289 #ifdef HAVE_STDIO_H
38290 #include <stdio.h>
38291 #endif
38292 #ifdef HAVE_SYS_TYPES_H
38293 #include <sys/types.h>
38294 #endif
38295 #ifdef HAVE_SYS_SOCKET_H
38296 #include <sys/socket.h>
38297 #endif
38298 #ifdef HAVE_NETDB_H
38299 #include <netdb.h>
38300 #endif
38301 #ifdef HAVE_NETINET_IN_H
38302 #include <netinet/in.h>
38303 #endif
38304 #ifdef HAVE_ARPA_INET_H
38305 #include <arpa/inet.h>
38306 #endif
38307
38308 int main (void)
38309 {
38310
38311 #if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
38312 #ifdef HAVE_STRUCT_SOCKADDR_STORAGE
38313         struct sockaddr_storage sa;
38314 #else
38315         unsigned char sa[256];
38316 #endif
38317         char hostbuf[NI_MAXHOST];
38318         int rc;
38319         GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa);
38320         GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf);
38321         GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
38322         int fd = socket(AF_INET6, SOCK_STREAM, 0);
38323         if(fd < 0) {
38324           perror("socket()");
38325           return 1; /* Error creating socket */
38326         }
38327         rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
38328         if(rc) {
38329           perror("getsockname()");
38330           return 2; /* Error retrieving socket name */
38331         }
38332         rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
38333         if(rc) {
38334           printf("rc = %s\n", gai_strerror(rc));
38335           return 3; /* Error translating socket address */
38336         }
38337         return 0; /* Ok, NI_WITHSCOPEID works */
38338 #else
38339         return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
38340 #endif
38341
38342  ;
38343  return 0;
38344 } # AC-LANG-PROGRAM
38345
38346 _ACEOF
38347 if ac_fn_c_try_run "$LINENO"; then :
38348
38349       # Exit code == 0. Program worked.
38350       ac_cv_working_ni_withscopeid="yes"
38351
38352 else
38353
38354       # Exit code != 0. Program failed.
38355       ac_cv_working_ni_withscopeid="no"
38356
38357 fi
38358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38359   conftest.$ac_objext conftest.beam conftest.$ac_ext
38360 fi
38361  # AC-RUN-IFELSE
38362
38363 fi
38364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_ni_withscopeid" >&5
38365 $as_echo "$ac_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK
38366   case "$ac_cv_working_ni_withscopeid" in
38367     yes)
38368
38369 $as_echo "#define HAVE_NI_WITHSCOPEID 1" >>confdefs.h
38370
38371       ;;
38372   esac
38373
38374 fi
38375
38376
38377             #
38378   tst_method="unknown"
38379
38380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
38381 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
38382   if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then
38383     tst_method="fcntl O_NONBLOCK"
38384   elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then
38385     tst_method="ioctl FIONBIO"
38386   elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then
38387     tst_method="ioctlsocket FIONBIO"
38388   elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
38389     tst_method="IoctlSocket FIONBIO"
38390   elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then
38391     tst_method="setsockopt SO_NONBLOCK"
38392   fi
38393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
38394 $as_echo "$tst_method" >&6; }
38395   if test "$tst_method" = "unknown"; then
38396     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
38397 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
38398   fi
38399
38400
38401
38402 # Extract the first word of "perl", so it can be a program name with args.
38403 set dummy perl; ac_word=$2
38404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38405 $as_echo_n "checking for $ac_word... " >&6; }
38406 if ${ac_cv_path_PERL+:} false; then :
38407   $as_echo_n "(cached) " >&6
38408 else
38409   case $PERL in
38410   [\\/]* | ?:[\\/]*)
38411   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
38412   ;;
38413   *)
38414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38415 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
38416 for as_dir in $as_dummy
38417 do
38418   IFS=$as_save_IFS
38419   test -z "$as_dir" && as_dir=.
38420     for ac_exec_ext in '' $ac_executable_extensions; do
38421   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38422     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
38423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38424     break 2
38425   fi
38426 done
38427   done
38428 IFS=$as_save_IFS
38429
38430   ;;
38431 esac
38432 fi
38433 PERL=$ac_cv_path_PERL
38434 if test -n "$PERL"; then
38435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
38436 $as_echo "$PERL" >&6; }
38437 else
38438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38439 $as_echo "no" >&6; }
38440 fi
38441
38442
38443
38444
38445 for ac_prog in gnroff nroff
38446 do
38447   # Extract the first word of "$ac_prog", so it can be a program name with args.
38448 set dummy $ac_prog; ac_word=$2
38449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38450 $as_echo_n "checking for $ac_word... " >&6; }
38451 if ${ac_cv_path_NROFF+:} false; then :
38452   $as_echo_n "(cached) " >&6
38453 else
38454   case $NROFF in
38455   [\\/]* | ?:[\\/]*)
38456   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
38457   ;;
38458   *)
38459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38460 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
38461 for as_dir in $as_dummy
38462 do
38463   IFS=$as_save_IFS
38464   test -z "$as_dir" && as_dir=.
38465     for ac_exec_ext in '' $ac_executable_extensions; do
38466   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38467     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
38468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38469     break 2
38470   fi
38471 done
38472   done
38473 IFS=$as_save_IFS
38474
38475   ;;
38476 esac
38477 fi
38478 NROFF=$ac_cv_path_NROFF
38479 if test -n "$NROFF"; then
38480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
38481 $as_echo "$NROFF" >&6; }
38482 else
38483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38484 $as_echo "no" >&6; }
38485 fi
38486
38487
38488   test -n "$NROFF" && break
38489 done
38490
38491
38492
38493 if test -n "$NROFF"; then
38494
38495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
38496 $as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
38497   MANOPT="-man"
38498   mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
38499   if test -z "$mancheck"; then
38500     MANOPT="-mandoc"
38501    mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
38502     if test -z "$mancheck"; then
38503       MANOPT=""
38504       { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
38505 $as_echo "failed" >&6; }
38506       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
38507 $as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
38508     else
38509       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
38510 $as_echo "$MANOPT" >&6; }
38511     fi
38512   else
38513     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
38514 $as_echo "$MANOPT" >&6; }
38515   fi
38516
38517 fi
38518
38519 if test -z "$MANOPT"
38520 then
38521       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
38522 $as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
38523   USE_MANUAL="no";
38524 fi
38525
38526
38527 if test "$USE_MANUAL" = "1"; then
38528
38529 $as_echo "#define USE_MANUAL 1" >>confdefs.h
38530
38531   curl_manual_msg="enabled"
38532 fi
38533
38534  if test x"$USE_MANUAL" = x1; then
38535   USE_MANUAL_TRUE=
38536   USE_MANUAL_FALSE='#'
38537 else
38538   USE_MANUAL_TRUE='#'
38539   USE_MANUAL_FALSE=
38540 fi
38541
38542
38543
38544
38545
38546   #
38547   if test "$want_ares" = "yes"; then
38548         clean_CPPFLAGS="$CPPFLAGS"
38549     clean_LDFLAGS="$LDFLAGS"
38550     clean_LIBS="$LIBS"
38551     embedded_ares="unknown"
38552     configure_runpath=`pwd`
38553     embedded_ares_builddir="$configure_runpath/ares"
38554     if test -n "$want_ares_path"; then
38555             ares_CPPFLAGS="-I$want_ares_path/include"
38556       ares_LDFLAGS="-L$want_ares_path/lib"
38557       ares_LIBS="-lcares"
38558     else
38559             if test -d "$srcdir/ares"; then
38560                 embedded_ares="yes"
38561         subdirs="$subdirs ares"
38562
38563                         ares_CPPFLAGS=""
38564         ares_LDFLAGS="-L$embedded_ares_builddir"
38565         ares_LIBS="-lcares"
38566       else
38567                 ares_CPPFLAGS=""
38568         ares_LDFLAGS=""
38569         ares_LIBS="-lcares"
38570       fi
38571     fi
38572     #
38573     CPPFLAGS="$ares_CPPFLAGS $clean_CPPFLAGS"
38574     LDFLAGS="$ares_LDFLAGS $clean_LDFLAGS"
38575     LIBS="$ares_LIBS $clean_LIBS"
38576     #
38577     if test "$embedded_ares" != "yes"; then
38578                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
38579 $as_echo_n "checking that c-ares is good and recent enough... " >&6; }
38580       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38581 /* end confdefs.h.  */
38582
38583
38584 #include <ares.h>
38585           /* set of dummy functions in case c-ares was built with debug */
38586           void curl_dofree() { }
38587           void curl_sclose() { }
38588           void curl_domalloc() { }
38589           void curl_docalloc() { }
38590           void curl_socket() { }
38591
38592 int main (void)
38593 {
38594
38595           ares_channel channel;
38596           ares_cancel(channel); /* added in 1.2.0 */
38597           ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
38598           ares_dup(&channel, channel); /* added in 1.6.0 */
38599
38600  ;
38601  return 0;
38602 }
38603
38604 _ACEOF
38605 if ac_fn_c_try_link "$LINENO"; then :
38606
38607         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38608 $as_echo "yes" >&6; }
38609
38610 else
38611
38612         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38613 $as_echo "no" >&6; }
38614         as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
38615                 CPPFLAGS="$clean_CPPFLAGS"
38616         LDFLAGS="$clean_LDFLAGS"
38617         LIBS="$clean_LIBS"
38618         # prevent usage
38619         want_ares="no"
38620
38621 fi
38622 rm -f core conftest.err conftest.$ac_objext \
38623     conftest$ac_exeext conftest.$ac_ext
38624     fi
38625     if test "$want_ares" = "yes"; then
38626
38627 $as_echo "#define USE_ARES 1" >>confdefs.h
38628
38629       USE_ARES=1
38630
38631       curl_res_msg="c-ares"
38632     fi
38633   fi
38634
38635  if test x$embedded_ares = xyes; then
38636   USE_EMBEDDED_ARES_TRUE=
38637   USE_EMBEDDED_ARES_FALSE='#'
38638 else
38639   USE_EMBEDDED_ARES_TRUE='#'
38640   USE_EMBEDDED_ARES_FALSE=
38641 fi
38642
38643
38644 if test "x$ac_cv_native_windows" != "xyes" &&
38645    test "x$enable_shared" = "xyes"; then
38646   build_libhostname=yes
38647 else
38648   build_libhostname=no
38649 fi
38650  if test x$build_libhostname = xyes; then
38651   BUILD_LIBHOSTNAME_TRUE=
38652   BUILD_LIBHOSTNAME_FALSE='#'
38653 else
38654   BUILD_LIBHOSTNAME_TRUE='#'
38655   BUILD_LIBHOSTNAME_FALSE=
38656 fi
38657
38658
38659
38660   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
38661 $as_echo_n "checking whether to enable the threaded resolver... " >&6; }
38662   OPT_THRES="default"
38663   # Check whether --enable-threaded_resolver was given.
38664 if test "${enable_threaded_resolver+set}" = set; then :
38665   enableval=$enable_threaded_resolver; OPT_THRES=$enableval
38666 fi
38667
38668   case "$OPT_THRES" in
38669     yes)
38670             want_thres="yes"
38671       ;;
38672     *)
38673             want_thres="no"
38674       ;;
38675   esac
38676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
38677 $as_echo "$want_thres" >&6; }
38678
38679
38680 if test "x$want_thres" = xyes && test "x$want_ares" = xyes; then
38681   as_fn_error $? "Options --enable-threaded-resolver and --enable-ares are mutually exclusive" "$LINENO" 5
38682 fi
38683
38684 if test "$want_thres" = "yes"; then
38685   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
38686 if test "x$ac_cv_header_pthread_h" = xyes; then :
38687
38688 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
38689
38690       save_CFLAGS="$CFLAGS"
38691
38692             ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
38693 if test "x$ac_cv_func_pthread_create" = xyes; then :
38694   USE_THREADS_POSIX=1
38695 fi
38696
38697
38698             if test "$USE_THREADS_POSIX" != "1"
38699       then
38700         CFLAGS="$CFLAGS -pthread"
38701         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
38702 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
38703 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
38704   $as_echo_n "(cached) " >&6
38705 else
38706   ac_check_lib_save_LIBS=$LIBS
38707 LIBS="-lpthread  $LIBS"
38708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38709 /* end confdefs.h.  */
38710
38711
38712 #ifdef __cplusplus
38713 extern "C"
38714 #endif
38715 char pthread_create ();
38716 int main (void)
38717 {
38718 return pthread_create ();
38719  ;
38720  return 0;
38721 }
38722 _ACEOF
38723 if ac_fn_c_try_link "$LINENO"; then :
38724   ac_cv_lib_pthread_pthread_create=yes
38725 else
38726   ac_cv_lib_pthread_pthread_create=no
38727 fi
38728 rm -f core conftest.err conftest.$ac_objext \
38729     conftest$ac_exeext conftest.$ac_ext
38730 LIBS=$ac_check_lib_save_LIBS
38731 fi
38732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
38733 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
38734 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
38735   USE_THREADS_POSIX=1
38736 else
38737    CFLAGS="$save_CFLAGS"
38738 fi
38739
38740       fi
38741
38742       if test "x$USE_THREADS_POSIX" = "x1"
38743       then
38744
38745 $as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
38746
38747         curl_res_msg="POSIX threaded"
38748       fi
38749
38750
38751
38752 fi
38753
38754
38755 fi
38756
38757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
38758 $as_echo_n "checking whether to enable verbose strings... " >&6; }
38759 # Check whether --enable-verbose was given.
38760 if test "${enable_verbose+set}" = set; then :
38761   enableval=$enable_verbose;  case "$enableval" in
38762   no)
38763        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38764 $as_echo "no" >&6; }
38765
38766 $as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
38767
38768        curl_verbose_msg="no"
38769        ;;
38770   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38771 $as_echo "yes" >&6; }
38772        ;;
38773   esac
38774 else
38775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38776 $as_echo "yes" >&6; }
38777
38778 fi
38779
38780
38781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
38782 $as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
38783 # Check whether --enable-sspi was given.
38784 if test "${enable_sspi+set}" = set; then :
38785   enableval=$enable_sspi;  case "$enableval" in
38786   yes)
38787        if test "$ac_cv_native_windows" = "yes"; then
38788          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38789 $as_echo "yes" >&6; }
38790
38791 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
38792
38793          USE_WINDOWS_SSPI=1
38794
38795          curl_sspi_msg="enabled"
38796        else
38797          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38798 $as_echo "no" >&6; }
38799          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
38800 $as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
38801        fi
38802        ;;
38803   *)
38804        if test "x$WINSSL_ENABLED" = "x1"; then
38805          # --with-winssl implies --enable-sspi
38806          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38807 $as_echo "yes" >&6; }
38808        else
38809          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38810 $as_echo "no" >&6; }
38811        fi
38812        ;;
38813   esac
38814 else
38815   if test "x$WINSSL_ENABLED" = "x1"; then
38816          # --with-winssl implies --enable-sspi
38817          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38818 $as_echo "yes" >&6; }
38819        else
38820          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38821 $as_echo "no" >&6; }
38822        fi
38823
38824 fi
38825
38826
38827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
38828 $as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
38829 # Check whether --enable-crypto-auth was given.
38830 if test "${enable_crypto_auth+set}" = set; then :
38831   enableval=$enable_crypto_auth;  case "$enableval" in
38832   no)
38833        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38834 $as_echo "no" >&6; }
38835
38836 $as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
38837
38838        ;;
38839   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38840 $as_echo "yes" >&6; }
38841        ;;
38842   esac
38843 else
38844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38845 $as_echo "yes" >&6; }
38846
38847 fi
38848
38849
38850
38851     OPT_NTLM_WB="default"
38852   # Check whether --enable-ntlm-wb was given.
38853 if test "${enable_ntlm_wb+set}" = set; then :
38854   enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
38855 fi
38856
38857   want_ntlm_wb_file="/usr/bin/ntlm_auth"
38858   case "$OPT_NTLM_WB" in
38859     no)
38860             want_ntlm_wb="no"
38861       ;;
38862     default)
38863             want_ntlm_wb="yes"
38864       ;;
38865     *)
38866             want_ntlm_wb="yes"
38867       if test -n "$enableval" && test "$enableval" != "yes"; then
38868         want_ntlm_wb_file="$enableval"
38869       fi
38870       ;;
38871   esac
38872
38873
38874
38875       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
38876 $as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
38877   if test "$ac_cv_native_windows" = "yes" ||
38878     test "x$SSL_ENABLED" = "x"; then
38879     want_ntlm_wb_file=""
38880     want_ntlm_wb="no"
38881   fi
38882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
38883 $as_echo "$want_ntlm_wb" >&6; }
38884   if test "$want_ntlm_wb" = "yes"; then
38885
38886 $as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
38887
38888
38889 cat >>confdefs.h <<_ACEOF
38890 #define NTLM_WB_FILE "$want_ntlm_wb_file"
38891 _ACEOF
38892
38893     NTLM_WB_ENABLED=1
38894   fi
38895
38896
38897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
38898 $as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
38899 # Check whether --enable-tls-srp was given.
38900 if test "${enable_tls_srp+set}" = set; then :
38901   enableval=$enable_tls_srp;  case "$enableval" in
38902   no)
38903        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38904 $as_echo "no" >&6; }
38905
38906 $as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
38907
38908        want_tls_srp=no
38909        ;;
38910   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38911 $as_echo "yes" >&6; }
38912        want_tls_srp=yes
38913        ;;
38914   esac
38915 else
38916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38917 $as_echo "yes" >&6; }
38918        want_tls_srp=yes
38919
38920 fi
38921
38922
38923 if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_SSLEAY_SRP" = "x1") ; then
38924
38925 $as_echo "#define USE_TLS_SRP 1" >>confdefs.h
38926
38927    USE_TLS_SRP=1
38928    curl_tls_srp_msg="enabled"
38929 fi
38930
38931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
38932 $as_echo_n "checking whether to enable support for cookies... " >&6; }
38933 # Check whether --enable-cookies was given.
38934 if test "${enable_cookies+set}" = set; then :
38935   enableval=$enable_cookies;  case "$enableval" in
38936   no)
38937        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38938 $as_echo "no" >&6; }
38939
38940 $as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
38941
38942        ;;
38943   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38944 $as_echo "yes" >&6; }
38945        ;;
38946   esac
38947 else
38948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38949 $as_echo "yes" >&6; }
38950
38951 fi
38952
38953
38954
38955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
38956 $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
38957   CFLAG_CURL_SYMBOL_HIDING=""
38958   doing_symbol_hiding="no"
38959   if test x"$ac_cv_native_windows" != "xyes" &&
38960     test "$want_symbol_hiding" = "yes" &&
38961     test "$supports_symbol_hiding" = "yes"; then
38962     doing_symbol_hiding="yes"
38963     CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
38964
38965 cat >>confdefs.h <<_ACEOF
38966 #define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
38967 _ACEOF
38968
38969     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38970 $as_echo "yes" >&6; }
38971   else
38972     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38973 $as_echo "no" >&6; }
38974   fi
38975    if test x$doing_symbol_hiding = xyes; then
38976   DOING_CURL_SYMBOL_HIDING_TRUE=
38977   DOING_CURL_SYMBOL_HIDING_FALSE='#'
38978 else
38979   DOING_CURL_SYMBOL_HIDING_TRUE='#'
38980   DOING_CURL_SYMBOL_HIDING_FALSE=
38981 fi
38982
38983
38984
38985
38986
38987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enforce SONAME bump" >&5
38988 $as_echo_n "checking whether to enforce SONAME bump... " >&6; }
38989 # Check whether --enable-soname-bump was given.
38990 if test "${enable_soname_bump+set}" = set; then :
38991   enableval=$enable_soname_bump;  case "$enableval" in
38992   yes)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38993 $as_echo "yes" >&6; }
38994          soname_bump=yes
38995          ;;
38996   *)
38997          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38998 $as_echo "no" >&6; }
38999          ;;
39000   esac
39001 else
39002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $soname_bump" >&5
39003 $as_echo "$soname_bump" >&6; }
39004
39005 fi
39006
39007  if test x$soname_bump = xyes; then
39008   SONAME_BUMP_TRUE=
39009   SONAME_BUMP_FALSE='#'
39010 else
39011   SONAME_BUMP_TRUE='#'
39012   SONAME_BUMP_FALSE=
39013 fi
39014
39015
39016 LIBCURL_LIBS=$LIBS
39017
39018
39019
39020
39021
39022 BLANK_AT_MAKETIME=
39023
39024
39025  if test x$cross_compiling = xyes; then
39026   CROSSCOMPILING_TRUE=
39027   CROSSCOMPILING_FALSE='#'
39028 else
39029   CROSSCOMPILING_TRUE='#'
39030   CROSSCOMPILING_FALSE=
39031 fi
39032
39033
39034 ENABLE_SHARED="$enable_shared"
39035
39036
39037 ENABLE_STATIC="$enable_static"
39038
39039
39040
39041
39042 if test "x$USE_SSLEAY" = "x1"; then
39043   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
39044 elif test -n "$SSL_ENABLED"; then
39045   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
39046 fi
39047 if test "@KRB4_ENABLED@" = "x1"; then
39048   SUPPORT_FEATURES="$SUPPORT_FEATURES KRB4"
39049 fi
39050 if test "x$IPV6_ENABLED" = "x1"; then
39051   SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
39052 fi
39053 if test "x$HAVE_LIBZ" = "x1"; then
39054   SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
39055 fi
39056 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1"; then
39057   SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
39058 fi
39059 if test "x$IDN_ENABLED" = "x1"; then
39060   SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
39061 fi
39062 if test "x$USE_WINDOWS_SSPI" = "x1"; then
39063   SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
39064 fi
39065 if test "x$CURL_DISABLE_HTTP" != "x1"; then
39066   if test "x$USE_SSLEAY" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
39067       -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \
39068       -o "x$DARWINSSL_ENABLED" = "x1"; then
39069     SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
39070     if test "x$NTLM_WB_ENABLED" = "x1"; then
39071       SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
39072     fi
39073   fi
39074 fi
39075 if test "x$USE_TLS_SRP" = "x1"; then
39076   SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
39077 fi
39078
39079
39080
39081 if test "x$CURL_DISABLE_HTTP" != "x1"; then
39082   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
39083   if test "x$SSL_ENABLED" = "x1"; then
39084     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
39085   fi
39086 fi
39087 if test "x$CURL_DISABLE_FTP" != "x1"; then
39088   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
39089   if test "x$SSL_ENABLED" = "x1"; then
39090     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
39091   fi
39092 fi
39093 if test "x$CURL_DISABLE_FILE" != "x1"; then
39094   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
39095 fi
39096 if test "x$CURL_DISABLE_TELNET" != "x1"; then
39097   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
39098 fi
39099 if test "x$CURL_DISABLE_LDAP" != "x1"; then
39100   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
39101   if test "x$CURL_DISABLE_LDAPS" != "x1"; then
39102     if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
39103       (test "x$USE_OPENLDAP" != "x1"  && test "x$HAVE_LDAP_SSL" = "x1"); then
39104       SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
39105     fi
39106   fi
39107 fi
39108 if test "x$CURL_DISABLE_DICT" != "x1"; then
39109   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
39110 fi
39111 if test "x$CURL_DISABLE_TFTP" != "x1"; then
39112   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
39113 fi
39114 if test "x$CURL_DISABLE_GOPHER" != "x1"; then
39115   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
39116 fi
39117 if test "x$CURL_DISABLE_POP3" != "x1"; then
39118   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
39119   if test "x$SSL_ENABLED" = "x1"; then
39120     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
39121   fi
39122 fi
39123 if test "x$CURL_DISABLE_IMAP" != "x1"; then
39124   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
39125   if test "x$SSL_ENABLED" = "x1"; then
39126     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
39127   fi
39128 fi
39129 if test "x$CURL_DISABLE_SMTP" != "x1"; then
39130   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
39131   if test "x$SSL_ENABLED" = "x1"; then
39132     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
39133   fi
39134 fi
39135 if test "x$USE_LIBSSH2" = "x1"; then
39136   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
39137   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
39138 fi
39139 if test "x$CURL_DISABLE_RTSP" != "x1"; then
39140   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
39141 fi
39142 if test "x$USE_LIBRTMP" = "x1"; then
39143   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
39144 fi
39145
39146 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
39147
39148
39149
39150
39151 squeeze CFLAGS
39152 squeeze CPPFLAGS
39153 squeeze DEFS
39154 squeeze LDFLAGS
39155 squeeze LIBS
39156
39157 squeeze LIBCURL_LIBS
39158 squeeze CURL_NETWORK_LIBS
39159 squeeze CURL_NETWORK_AND_TIME_LIBS
39160
39161 squeeze SUPPORT_FEATURES
39162 squeeze SUPPORT_PROTOCOLS
39163
39164
39165
39166   xc_bad_var_libs=no
39167   for xc_word in $LIBS; do
39168     case "$xc_word" in
39169       -l* | --library=*)
39170         :
39171         ;;
39172       *)
39173         xc_bad_var_libs=yes
39174         ;;
39175     esac
39176   done
39177   if test $xc_bad_var_libs = yes; then
39178     { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
39179 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
39180     { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
39181 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
39182   fi
39183
39184
39185   xc_bad_var_ldflags=no
39186   for xc_word in $LDFLAGS; do
39187     case "$xc_word" in
39188       -D*)
39189         xc_bad_var_ldflags=yes
39190         ;;
39191       -U*)
39192         xc_bad_var_ldflags=yes
39193         ;;
39194       -I*)
39195         xc_bad_var_ldflags=yes
39196         ;;
39197       -l* | --library=*)
39198         xc_bad_var_ldflags=yes
39199         ;;
39200     esac
39201   done
39202   if test $xc_bad_var_ldflags = yes; then
39203     { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
39204 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
39205     xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
39206     for xc_word in $LDFLAGS; do
39207       case "$xc_word" in
39208         -D*)
39209           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
39210 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
39211           ;;
39212         -U*)
39213           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
39214 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
39215           ;;
39216         -I*)
39217           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
39218 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
39219           ;;
39220         -l* | --library=*)
39221           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
39222 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
39223           ;;
39224       esac
39225     done
39226   fi
39227
39228
39229   xc_bad_var_cppflags=no
39230   for xc_word in $CPPFLAGS; do
39231     case "$xc_word" in
39232       -rpath*)
39233         xc_bad_var_cppflags=yes
39234         ;;
39235       -L* | --library-path=*)
39236         xc_bad_var_cppflags=yes
39237         ;;
39238       -l* | --library=*)
39239         xc_bad_var_cppflags=yes
39240         ;;
39241     esac
39242   done
39243   if test $xc_bad_var_cppflags = yes; then
39244     { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
39245 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
39246     xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
39247     for xc_word in $CPPFLAGS; do
39248       case "$xc_word" in
39249         -rpath*)
39250           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
39251 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
39252           ;;
39253         -L* | --library-path=*)
39254           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
39255 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
39256           ;;
39257         -l* | --library=*)
39258           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
39259 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
39260           ;;
39261       esac
39262     done
39263   fi
39264
39265
39266   xc_bad_var_cflags=no
39267   for xc_word in $CFLAGS; do
39268     case "$xc_word" in
39269       -D*)
39270         xc_bad_var_cflags=yes
39271         ;;
39272       -U*)
39273         xc_bad_var_cflags=yes
39274         ;;
39275       -I*)
39276         xc_bad_var_cflags=yes
39277         ;;
39278       -rpath*)
39279         xc_bad_var_cflags=yes
39280         ;;
39281       -L* | --library-path=*)
39282         xc_bad_var_cflags=yes
39283         ;;
39284       -l* | --library=*)
39285         xc_bad_var_cflags=yes
39286         ;;
39287     esac
39288   done
39289   if test $xc_bad_var_cflags = yes; then
39290     { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
39291 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
39292     xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
39293     for xc_word in $CFLAGS; do
39294       case "$xc_word" in
39295         -D*)
39296           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
39297 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
39298           ;;
39299         -U*)
39300           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
39301 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
39302           ;;
39303         -I*)
39304           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
39305 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
39306           ;;
39307         -rpath*)
39308           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
39309 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
39310           ;;
39311         -L* | --library-path=*)
39312           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
39313 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
39314           ;;
39315         -l* | --library=*)
39316           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
39317 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
39318           ;;
39319       esac
39320     done
39321   fi
39322
39323   if test $xc_bad_var_libs = yes ||
39324      test $xc_bad_var_cflags = yes ||
39325      test $xc_bad_var_ldflags = yes ||
39326      test $xc_bad_var_cppflags = yes; then
39327      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
39328 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
39329   fi
39330
39331
39332 if test "x$want_curldebug_assumed" = "xyes" &&
39333   test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
39334   ac_configure_args="$ac_configure_args --enable-curldebug"
39335 fi
39336
39337 ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile include/Makefile include/curl/Makefile src/Makefile lib/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"
39338
39339 cat >confcache <<\_ACEOF
39340 # This file is a shell script that caches the results of configure
39341 # tests run on this system so they can be shared between configure
39342 # scripts and configure runs, see configure's option --config-cache.
39343 # It is not useful on other systems.  If it contains results you don't
39344 # want to keep, you may remove or edit it.
39345 #
39346 # config.status only pays attention to the cache file if you give it
39347 # the --recheck option to rerun configure.
39348 #
39349 # `ac_cv_env_foo' variables (set or unset) will be overridden when
39350 # loading this file, other *unset* `ac_cv_foo' will be assigned the
39351 # following values.
39352
39353 _ACEOF
39354
39355 # The following way of writing the cache mishandles newlines in values,
39356 # but we know of no workaround that is simple, portable, and efficient.
39357 # So, we kill variables containing newlines.
39358 # Ultrix sh set writes to stderr and can't be redirected directly,
39359 # and sets the high bit in the cache file unless we assign to the vars.
39360 (
39361   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
39362     eval ac_val=\$$ac_var
39363     case $ac_val in #(
39364     *${as_nl}*)
39365       case $ac_var in #(
39366       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
39367 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
39368       esac
39369       case $ac_var in #(
39370       _ | IFS | as_nl) ;; #(
39371       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
39372       *) { eval $ac_var=; unset $ac_var;} ;;
39373       esac ;;
39374     esac
39375   done
39376
39377   (set) 2>&1 |
39378     case $as_nl`(ac_space=' '; set) 2>&1` in #(
39379     *${as_nl}ac_space=\ *)
39380       # `set' does not quote correctly, so add quotes: double-quote
39381       # substitution turns \\\\ into \\, and sed turns \\ into \.
39382       sed -n \
39383         "s/'/'\\\\''/g;
39384           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39385       ;; #(
39386     *)
39387       # `set' quotes correctly as required by POSIX, so do not add quotes.
39388       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
39389       ;;
39390     esac |
39391     sort
39392 ) |
39393   sed '
39394      /^ac_cv_env_/b end
39395      t clear
39396      :clear
39397      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39398      t end
39399      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39400      :end' >>confcache
39401 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
39402   if test -w "$cache_file"; then
39403     if test "x$cache_file" != "x/dev/null"; then
39404       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
39405 $as_echo "$as_me: updating cache $cache_file" >&6;}
39406       if test ! -f "$cache_file" || test -h "$cache_file"; then
39407         cat confcache >"$cache_file"
39408       else
39409         case $cache_file in #(
39410         */* | ?:*)
39411           mv -f confcache "$cache_file"$$ &&
39412           mv -f "$cache_file"$$ "$cache_file" ;; #(
39413         *)
39414           mv -f confcache "$cache_file" ;;
39415         esac
39416       fi
39417     fi
39418   else
39419     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
39420 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
39421   fi
39422 fi
39423 rm -f confcache
39424
39425 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39426 # Let make expand exec_prefix.
39427 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39428
39429 DEFS=-DHAVE_CONFIG_H
39430
39431 ac_libobjs=
39432 ac_ltlibobjs=
39433 U=
39434 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39435   # 1. Remove the extension, and $U if already installed.
39436   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39437   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
39438   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
39439   #    will be set to the directory where LIBOBJS objects are built.
39440   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
39441   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
39442 done
39443 LIBOBJS=$ac_libobjs
39444
39445 LTLIBOBJS=$ac_ltlibobjs
39446
39447
39448 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
39449   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
39450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39451 fi
39452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
39453 $as_echo_n "checking that generated files are newer than configure... " >&6; }
39454    if test -n "$am_sleep_pid"; then
39455      # Hide warnings about reused PIDs.
39456      wait $am_sleep_pid 2>/dev/null
39457    fi
39458    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
39459 $as_echo "done" >&6; }
39460 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39461   as_fn_error $? "conditional \"AMDEP\" was never defined.
39462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39463 fi
39464 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39465   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
39466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39467 fi
39468  if test -n "$EXEEXT"; then
39469   am__EXEEXT_TRUE=
39470   am__EXEEXT_FALSE='#'
39471 else
39472   am__EXEEXT_TRUE='#'
39473   am__EXEEXT_FALSE=
39474 fi
39475
39476 if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
39477   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
39478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39479 fi
39480 if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
39481   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
39482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39483 fi
39484 if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
39485   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
39486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39487 fi
39488 if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
39489   as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
39490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39491 fi
39492 if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
39493   as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
39494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39495 fi
39496 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
39497   as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
39498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39499 fi
39500 if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
39501   as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
39502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39503 fi
39504 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
39505   as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
39506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39507 fi
39508 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
39509   as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
39510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39511 fi
39512 if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
39513   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
39514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39515 fi
39516 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
39517   as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
39518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39519 fi
39520 if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
39521   as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
39522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39523 fi
39524 if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
39525   as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
39526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39527 fi
39528 if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
39529   as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
39530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39531 fi
39532 if test -z "${SONAME_BUMP_TRUE}" && test -z "${SONAME_BUMP_FALSE}"; then
39533   as_fn_error $? "conditional \"SONAME_BUMP\" was never defined.
39534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39535 fi
39536 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
39537   as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
39538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39539 fi
39540
39541 : "${CONFIG_STATUS=./config.status}"
39542 ac_write_fail=0
39543 ac_clean_files_save=$ac_clean_files
39544 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39545 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
39546 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
39547 as_write_fail=0
39548 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
39549 #! $SHELL
39550 # Generated by $as_me.
39551 # Run this file to recreate the current configuration.
39552 # Compiler output produced by configure, useful for debugging
39553 # configure, is in config.log if it exists.
39554
39555 debug=false
39556 ac_cs_recheck=false
39557 ac_cs_silent=false
39558
39559 SHELL=\${CONFIG_SHELL-$SHELL}
39560 export SHELL
39561 _ASEOF
39562 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
39563 ## -------------------- ##
39564 ## M4sh Initialization. ##
39565 ## -------------------- ##
39566
39567 # Be more Bourne compatible
39568 DUALCASE=1; export DUALCASE # for MKS sh
39569 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
39570   emulate sh
39571   NULLCMD=:
39572   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
39573   # is contrary to our usage.  Disable this feature.
39574   alias -g '${1+"$@"}'='"$@"'
39575   setopt NO_GLOB_SUBST
39576 else
39577   case `(set -o) 2>/dev/null` in #(
39578   *posix*) :
39579     set -o posix ;; #(
39580   *) :
39581      ;;
39582 esac
39583 fi
39584
39585
39586 as_nl='
39587 '
39588 export as_nl
39589 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39590 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39591 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
39592 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
39593 # Prefer a ksh shell builtin over an external printf program on Solaris,
39594 # but without wasting forks for bash or zsh.
39595 if test -z "$BASH_VERSION$ZSH_VERSION" \
39596     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
39597   as_echo='print -r --'
39598   as_echo_n='print -rn --'
39599 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
39600   as_echo='printf %s\n'
39601   as_echo_n='printf %s'
39602 else
39603   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
39604     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
39605     as_echo_n='/usr/ucb/echo -n'
39606   else
39607     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
39608     as_echo_n_body='eval
39609       arg=$1;
39610       case $arg in #(
39611       *"$as_nl"*)
39612         expr "X$arg" : "X\\(.*\\)$as_nl";
39613         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
39614       esac;
39615       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
39616     '
39617     export as_echo_n_body
39618     as_echo_n='sh -c $as_echo_n_body as_echo'
39619   fi
39620   export as_echo_body
39621   as_echo='sh -c $as_echo_body as_echo'
39622 fi
39623
39624
39625
39626 # IFS
39627 # We need space, tab and new line, in precisely that order.  Quoting is
39628 # there to prevent editors from complaining about space-tab.
39629 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
39630 # splitting by setting IFS to empty value.)
39631 IFS=" ""        $as_nl"
39632
39633 # Find who we are.  Look in the path if we contain no directory separator.
39634 as_myself=
39635 case $0 in #((
39636   *[\\/]* ) as_myself=$0 ;;
39637   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39638 for as_dir in $PATH
39639 do
39640   IFS=$as_save_IFS
39641   test -z "$as_dir" && as_dir=.
39642     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39643   done
39644 IFS=$as_save_IFS
39645
39646      ;;
39647 esac
39648 # We did not find ourselves, most probably we were run as `sh COMMAND'
39649 # in which case we are not to be found in the path.
39650 if test "x$as_myself" = x; then
39651   as_myself=$0
39652 fi
39653 if test ! -f "$as_myself"; then
39654   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
39655   exit 1
39656 fi
39657
39658 # Unset variables that we do not need and which cause bugs (e.g. in
39659 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
39660 # suppresses any "Segmentation fault" message there.  '((' could
39661 # trigger a bug in pdksh 5.2.14.
39662 for as_var in BASH_ENV ENV MAIL MAILPATH
39663 do eval test x\${$as_var+set} = xset \
39664   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
39665 done
39666 PS1='$ '
39667 PS2='> '
39668 PS4='+ '
39669
39670 # NLS nuisances.
39671 LC_ALL=C
39672 export LC_ALL
39673 LANGUAGE=C
39674 export LANGUAGE
39675
39676 # CDPATH.
39677 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
39678
39679
39680 # as_fn_error STATUS ERROR [LINENO LOG_FD]
39681 # ----------------------------------------
39682 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
39683 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
39684 # script with STATUS, using 1 if that was 0.
39685 as_fn_error ()
39686 {
39687   as_status=$1; test $as_status -eq 0 && as_status=1
39688   if test "$4"; then
39689     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
39690     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
39691   fi
39692   $as_echo "$as_me: error: $2" >&2
39693   as_fn_exit $as_status
39694 } # as_fn_error
39695
39696
39697 # as_fn_set_status STATUS
39698 # -----------------------
39699 # Set $? to STATUS, without forking.
39700 as_fn_set_status ()
39701 {
39702   return $1
39703 } # as_fn_set_status
39704
39705 # as_fn_exit STATUS
39706 # -----------------
39707 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
39708 as_fn_exit ()
39709 {
39710   set +e
39711   as_fn_set_status $1
39712   exit $1
39713 } # as_fn_exit
39714
39715 # as_fn_unset VAR
39716 # ---------------
39717 # Portably unset VAR.
39718 as_fn_unset ()
39719 {
39720   { eval $1=; unset $1;}
39721 }
39722 as_unset=as_fn_unset
39723 # as_fn_append VAR VALUE
39724 # ----------------------
39725 # Append the text in VALUE to the end of the definition contained in VAR. Take
39726 # advantage of any shell optimizations that allow amortized linear growth over
39727 # repeated appends, instead of the typical quadratic growth present in naive
39728 # implementations.
39729 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
39730   eval 'as_fn_append ()
39731   {
39732     eval $1+=\$2
39733   }'
39734 else
39735   as_fn_append ()
39736   {
39737     eval $1=\$$1\$2
39738   }
39739 fi # as_fn_append
39740
39741 # as_fn_arith ARG...
39742 # ------------------
39743 # Perform arithmetic evaluation on the ARGs, and store the result in the
39744 # global $as_val. Take advantage of shells that can avoid forks. The arguments
39745 # must be portable across $(()) and expr.
39746 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
39747   eval 'as_fn_arith ()
39748   {
39749     as_val=$(( $* ))
39750   }'
39751 else
39752   as_fn_arith ()
39753   {
39754     as_val=`expr "$@" || test $? -eq 1`
39755   }
39756 fi # as_fn_arith
39757
39758
39759 if expr a : '\(a\)' >/dev/null 2>&1 &&
39760    test "X`expr 00001 : '.*\(...\)'`" = X001; then
39761   as_expr=expr
39762 else
39763   as_expr=false
39764 fi
39765
39766 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39767   as_basename=basename
39768 else
39769   as_basename=false
39770 fi
39771
39772 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39773   as_dirname=dirname
39774 else
39775   as_dirname=false
39776 fi
39777
39778 as_me=`$as_basename -- "$0" ||
39779 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39780          X"$0" : 'X\(//\)$' \| \
39781          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39782 $as_echo X/"$0" |
39783     sed '/^.*\/\([^/][^/]*\)\/*$/{
39784             s//\1/
39785             q
39786           }
39787           /^X\/\(\/\/\)$/{
39788             s//\1/
39789             q
39790           }
39791           /^X\/\(\/\).*/{
39792             s//\1/
39793             q
39794           }
39795           s/.*/./; q'`
39796
39797 # Avoid depending upon Character Ranges.
39798 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39799 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39800 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39801 as_cr_digits='0123456789'
39802 as_cr_alnum=$as_cr_Letters$as_cr_digits
39803
39804 ECHO_C= ECHO_N= ECHO_T=
39805 case `echo -n x` in #(((((
39806 -n*)
39807   case `echo 'xy\c'` in
39808   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
39809   xy)  ECHO_C='\c';;
39810   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
39811        ECHO_T=' ';;
39812   esac;;
39813 *)
39814   ECHO_N='-n';;
39815 esac
39816
39817 rm -f conf$$ conf$$.exe conf$$.file
39818 if test -d conf$$.dir; then
39819   rm -f conf$$.dir/conf$$.file
39820 else
39821   rm -f conf$$.dir
39822   mkdir conf$$.dir 2>/dev/null
39823 fi
39824 if (echo >conf$$.file) 2>/dev/null; then
39825   if ln -s conf$$.file conf$$ 2>/dev/null; then
39826     as_ln_s='ln -s'
39827     # ... but there are two gotchas:
39828     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
39829     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
39830     # In both cases, we have to default to `cp -pR'.
39831     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
39832       as_ln_s='cp -pR'
39833   elif ln conf$$.file conf$$ 2>/dev/null; then
39834     as_ln_s=ln
39835   else
39836     as_ln_s='cp -pR'
39837   fi
39838 else
39839   as_ln_s='cp -pR'
39840 fi
39841 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39842 rmdir conf$$.dir 2>/dev/null
39843
39844
39845 # as_fn_mkdir_p
39846 # -------------
39847 # Create "$as_dir" as a directory, including parents if necessary.
39848 as_fn_mkdir_p ()
39849 {
39850
39851   case $as_dir in #(
39852   -*) as_dir=./$as_dir;;
39853   esac
39854   test -d "$as_dir" || eval $as_mkdir_p || {
39855     as_dirs=
39856     while :; do
39857       case $as_dir in #(
39858       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
39859       *) as_qdir=$as_dir;;
39860       esac
39861       as_dirs="'$as_qdir' $as_dirs"
39862       as_dir=`$as_dirname -- "$as_dir" ||
39863 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39864          X"$as_dir" : 'X\(//\)[^/]' \| \
39865          X"$as_dir" : 'X\(//\)$' \| \
39866          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39867 $as_echo X"$as_dir" |
39868     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39869             s//\1/
39870             q
39871           }
39872           /^X\(\/\/\)[^/].*/{
39873             s//\1/
39874             q
39875           }
39876           /^X\(\/\/\)$/{
39877             s//\1/
39878             q
39879           }
39880           /^X\(\/\).*/{
39881             s//\1/
39882             q
39883           }
39884           s/.*/./; q'`
39885       test -d "$as_dir" && break
39886     done
39887     test -z "$as_dirs" || eval "mkdir $as_dirs"
39888   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
39889
39890
39891 } # as_fn_mkdir_p
39892 if mkdir -p . 2>/dev/null; then
39893   as_mkdir_p='mkdir -p "$as_dir"'
39894 else
39895   test -d ./-p && rmdir ./-p
39896   as_mkdir_p=false
39897 fi
39898
39899
39900 # as_fn_executable_p FILE
39901 # -----------------------
39902 # Test if FILE is an executable regular file.
39903 as_fn_executable_p ()
39904 {
39905   test -f "$1" && test -x "$1"
39906 } # as_fn_executable_p
39907 as_test_x='test -x'
39908 as_executable_p=as_fn_executable_p
39909
39910 # Sed expression to map a string onto a valid CPP name.
39911 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39912
39913 # Sed expression to map a string onto a valid variable name.
39914 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39915
39916
39917 exec 6>&1
39918 ## ----------------------------------- ##
39919 ## Main body of $CONFIG_STATUS script. ##
39920 ## ----------------------------------- ##
39921 _ASEOF
39922 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
39923
39924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39925 # Save the log message, to keep $0 and so on meaningful, and to
39926 # report actual input values of CONFIG_FILES etc. instead of their
39927 # values after options handling.
39928 ac_log="
39929 This file was extended by curl $as_me -, which was
39930 generated by GNU Autoconf 2.69.  Invocation command line was
39931
39932   CONFIG_FILES    = $CONFIG_FILES
39933   CONFIG_HEADERS  = $CONFIG_HEADERS
39934   CONFIG_LINKS    = $CONFIG_LINKS
39935   CONFIG_COMMANDS = $CONFIG_COMMANDS
39936   $ $0 $@
39937
39938 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39939 "
39940
39941 _ACEOF
39942
39943 case $ac_config_files in *"
39944 "*) set x $ac_config_files; shift; ac_config_files=$*;;
39945 esac
39946
39947 case $ac_config_headers in *"
39948 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
39949 esac
39950
39951
39952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39953 # Files that config.status was made for.
39954 config_files="$ac_config_files"
39955 config_headers="$ac_config_headers"
39956 config_commands="$ac_config_commands"
39957
39958 _ACEOF
39959
39960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39961 ac_cs_usage="\
39962 \`$as_me' instantiates files and other configuration actions
39963 from templates according to the current configuration.  Unless the files
39964 and actions are specified as TAGs, all are instantiated by default.
39965
39966 Usage: $0 [OPTION]... [TAG]...
39967
39968   -h, --help       print this help, then exit
39969   -V, --version    print version number and configuration settings, then exit
39970       --config     print configuration, then exit
39971   -q, --quiet, --silent
39972                    do not print progress messages
39973   -d, --debug      don't remove temporary files
39974       --recheck    update $as_me by reconfiguring in the same conditions
39975       --file=FILE[:TEMPLATE]
39976                    instantiate the configuration file FILE
39977       --header=FILE[:TEMPLATE]
39978                    instantiate the configuration header FILE
39979
39980 Configuration files:
39981 $config_files
39982
39983 Configuration headers:
39984 $config_headers
39985
39986 Configuration commands:
39987 $config_commands
39988
39989 Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>."
39990
39991 _ACEOF
39992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39993 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
39994 ac_cs_version="\\
39995 curl config.status -
39996 configured by $0, generated by GNU Autoconf 2.69,
39997   with options \\"\$ac_cs_config\\"
39998
39999 Copyright (C) 2012 Free Software Foundation, Inc.
40000 This config.status script is free software; the Free Software Foundation
40001 gives unlimited permission to copy, distribute and modify it."
40002
40003 ac_pwd='$ac_pwd'
40004 srcdir='$srcdir'
40005 INSTALL='$INSTALL'
40006 MKDIR_P='$MKDIR_P'
40007 AWK='$AWK'
40008 test -n "\$AWK" || AWK=awk
40009 _ACEOF
40010
40011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40012 # The default lists apply if the user does not specify any file.
40013 ac_need_defaults=:
40014 while test $# != 0
40015 do
40016   case $1 in
40017   --*=?*)
40018     ac_option=`expr "X$1" : 'X\([^=]*\)='`
40019     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
40020     ac_shift=:
40021     ;;
40022   --*=)
40023     ac_option=`expr "X$1" : 'X\([^=]*\)='`
40024     ac_optarg=
40025     ac_shift=:
40026     ;;
40027   *)
40028     ac_option=$1
40029     ac_optarg=$2
40030     ac_shift=shift
40031     ;;
40032   esac
40033
40034   case $ac_option in
40035   # Handling of the options.
40036   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
40037     ac_cs_recheck=: ;;
40038   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
40039     $as_echo "$ac_cs_version"; exit ;;
40040   --config | --confi | --conf | --con | --co | --c )
40041     $as_echo "$ac_cs_config"; exit ;;
40042   --debug | --debu | --deb | --de | --d | -d )
40043     debug=: ;;
40044   --file | --fil | --fi | --f )
40045     $ac_shift
40046     case $ac_optarg in
40047     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
40048     '') as_fn_error $? "missing file argument" ;;
40049     esac
40050     as_fn_append CONFIG_FILES " '$ac_optarg'"
40051     ac_need_defaults=false;;
40052   --header | --heade | --head | --hea )
40053     $ac_shift
40054     case $ac_optarg in
40055     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
40056     esac
40057     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
40058     ac_need_defaults=false;;
40059   --he | --h)
40060     # Conflict between --help and --header
40061     as_fn_error $? "ambiguous option: \`$1'
40062 Try \`$0 --help' for more information.";;
40063   --help | --hel | -h )
40064     $as_echo "$ac_cs_usage"; exit ;;
40065   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
40066   | -silent | --silent | --silen | --sile | --sil | --si | --s)
40067     ac_cs_silent=: ;;
40068
40069   # This is an error.
40070   -*) as_fn_error $? "unrecognized option: \`$1'
40071 Try \`$0 --help' for more information." ;;
40072
40073   *) as_fn_append ac_config_targets " $1"
40074      ac_need_defaults=false ;;
40075
40076   esac
40077   shift
40078 done
40079
40080 ac_configure_extra_args=
40081
40082 if $ac_cs_silent; then
40083   exec 6>/dev/null
40084   ac_configure_extra_args="$ac_configure_extra_args --silent"
40085 fi
40086
40087 _ACEOF
40088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40089 if \$ac_cs_recheck; then
40090   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
40091   shift
40092   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
40093   CONFIG_SHELL='$SHELL'
40094   export CONFIG_SHELL
40095   exec "\$@"
40096 fi
40097
40098 _ACEOF
40099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40100 exec 5>>config.log
40101 {
40102   echo
40103   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40104 ## Running $as_me. ##
40105 _ASBOX
40106   $as_echo "$ac_log"
40107 } >&5
40108
40109 _ACEOF
40110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40111 #
40112 # INIT-COMMANDS
40113 #
40114 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
40115
40116
40117 # The HP-UX ksh and POSIX shell print the target directory to stdout
40118 # if CDPATH is set.
40119 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
40120
40121 sed_quote_subst='$sed_quote_subst'
40122 double_quote_subst='$double_quote_subst'
40123 delay_variable_subst='$delay_variable_subst'
40124 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
40125 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
40126 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
40127 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
40128 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
40129 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
40130 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
40131 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
40132 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
40133 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
40134 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
40135 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
40136 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
40137 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
40138 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
40139 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
40140 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
40141 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
40142 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
40143 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
40144 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
40145 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
40146 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
40147 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
40148 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
40149 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
40150 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
40151 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
40152 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
40153 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
40154 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
40155 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
40156 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
40157 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
40158 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
40159 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
40160 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
40161 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
40162 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
40163 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
40164 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
40165 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
40166 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
40167 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
40168 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
40169 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
40170 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
40171 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
40172 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
40173 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
40174 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
40175 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
40176 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
40177 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
40178 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
40179 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
40180 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
40181 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"`'
40182 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
40183 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
40184 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
40185 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
40186 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
40187 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
40188 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
40189 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
40190 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
40191 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
40192 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
40193 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
40194 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
40195 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
40196 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
40197 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
40198 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
40199 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
40200 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
40201 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
40202 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
40203 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
40204 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
40205 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
40206 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
40207 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
40208 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
40209 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
40210 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
40211 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
40212 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
40213 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
40214 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
40215 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
40216 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
40217 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
40218 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
40219 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
40220 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
40221 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
40222 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
40223 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
40224 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
40225 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
40226 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
40227 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
40228 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
40229 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
40230 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
40231 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
40232 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
40233 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
40234 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
40235 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
40236 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
40237 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
40238 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
40239 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
40240 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
40241 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
40242 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
40243 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
40244 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
40245 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
40246 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
40247 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
40248 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
40249 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
40250 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
40251 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
40252 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
40253 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
40254 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
40255
40256 LTCC='$LTCC'
40257 LTCFLAGS='$LTCFLAGS'
40258 compiler='$compiler_DEFAULT'
40259
40260 # A function that is used when there is no print builtin or printf.
40261 func_fallback_echo ()
40262 {
40263   eval 'cat <<_LTECHO_EOF
40264 \$1
40265 _LTECHO_EOF'
40266 }
40267
40268 # Quote evaled strings.
40269 for var in AS \
40270 DLLTOOL \
40271 OBJDUMP \
40272 SHELL \
40273 ECHO \
40274 PATH_SEPARATOR \
40275 SED \
40276 GREP \
40277 EGREP \
40278 FGREP \
40279 LD \
40280 NM \
40281 LN_S \
40282 lt_SP2NL \
40283 lt_NL2SP \
40284 reload_flag \
40285 deplibs_check_method \
40286 file_magic_cmd \
40287 file_magic_glob \
40288 want_nocaseglob \
40289 sharedlib_from_linklib_cmd \
40290 AR \
40291 AR_FLAGS \
40292 archiver_list_spec \
40293 STRIP \
40294 RANLIB \
40295 CC \
40296 CFLAGS \
40297 compiler \
40298 lt_cv_sys_global_symbol_pipe \
40299 lt_cv_sys_global_symbol_to_cdecl \
40300 lt_cv_sys_global_symbol_to_c_name_address \
40301 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
40302 nm_file_list_spec \
40303 lt_prog_compiler_no_builtin_flag \
40304 lt_prog_compiler_pic \
40305 lt_prog_compiler_wl \
40306 lt_prog_compiler_static \
40307 lt_cv_prog_compiler_c_o \
40308 need_locks \
40309 MANIFEST_TOOL \
40310 DSYMUTIL \
40311 NMEDIT \
40312 LIPO \
40313 OTOOL \
40314 OTOOL64 \
40315 shrext_cmds \
40316 export_dynamic_flag_spec \
40317 whole_archive_flag_spec \
40318 compiler_needs_object \
40319 with_gnu_ld \
40320 allow_undefined_flag \
40321 no_undefined_flag \
40322 hardcode_libdir_flag_spec \
40323 hardcode_libdir_separator \
40324 exclude_expsyms \
40325 include_expsyms \
40326 file_list_spec \
40327 variables_saved_for_relink \
40328 libname_spec \
40329 library_names_spec \
40330 soname_spec \
40331 install_override_mode \
40332 finish_eval \
40333 old_striplib \
40334 striplib; do
40335     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
40336     *[\\\\\\\`\\"\\\$]*)
40337       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
40338       ;;
40339     *)
40340       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
40341       ;;
40342     esac
40343 done
40344
40345 # Double-quote double-evaled strings.
40346 for var in reload_cmds \
40347 old_postinstall_cmds \
40348 old_postuninstall_cmds \
40349 old_archive_cmds \
40350 extract_expsyms_cmds \
40351 old_archive_from_new_cmds \
40352 old_archive_from_expsyms_cmds \
40353 archive_cmds \
40354 archive_expsym_cmds \
40355 module_cmds \
40356 module_expsym_cmds \
40357 export_symbols_cmds \
40358 prelink_cmds \
40359 postlink_cmds \
40360 postinstall_cmds \
40361 postuninstall_cmds \
40362 finish_cmds \
40363 sys_lib_search_path_spec \
40364 sys_lib_dlsearch_path_spec; do
40365     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
40366     *[\\\\\\\`\\"\\\$]*)
40367       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
40368       ;;
40369     *)
40370       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
40371       ;;
40372     esac
40373 done
40374
40375 ac_aux_dir='$ac_aux_dir'
40376 xsi_shell='$xsi_shell'
40377 lt_shell_append='$lt_shell_append'
40378
40379 # See if we are running on zsh, and set the options which allow our
40380 # commands through without removal of \ escapes INIT.
40381 if test -n "\${ZSH_VERSION+set}" ; then
40382    setopt NO_GLOB_SUBST
40383 fi
40384
40385
40386     PACKAGE='$PACKAGE'
40387     VERSION='$VERSION'
40388     TIMESTAMP='$TIMESTAMP'
40389     RM='$RM'
40390     ofile='$ofile'
40391
40392
40393
40394
40395 _ACEOF
40396
40397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40398
40399 # Handling of arguments.
40400 for ac_config_target in $ac_config_targets
40401 do
40402   case $ac_config_target in
40403     "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
40404     "include/curl/curlbuild.h") CONFIG_HEADERS="$CONFIG_HEADERS include/curl/curlbuild.h" ;;
40405     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
40406     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
40407     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
40408     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
40409     "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
40410     "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
40411     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
40412     "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
40413     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
40414     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
40415     "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
40416     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
40417     "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
40418     "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
40419     "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
40420     "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
40421     "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
40422     "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
40423     "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
40424     "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
40425     "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
40426     "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
40427     "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
40428     "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
40429     "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
40430     "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
40431     "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
40432     "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
40433     "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
40434     "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
40435     "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
40436     "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
40437     "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
40438     "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
40439
40440   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
40441   esac
40442 done
40443
40444
40445 # If the user did not use the arguments to specify the items to instantiate,
40446 # then the envvar interface is used.  Set only those that are not.
40447 # We use the long form for the default assignment because of an extremely
40448 # bizarre bug on SunOS 4.1.3.
40449 if $ac_need_defaults; then
40450   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
40451   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
40452   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
40453 fi
40454
40455 # Have a temporary directory for convenience.  Make it in the build tree
40456 # simply because there is no reason against having it here, and in addition,
40457 # creating and moving files from /tmp can sometimes cause problems.
40458 # Hook for its removal unless debugging.
40459 # Note that there is a small window in which the directory will not be cleaned:
40460 # after its creation but before its name has been assigned to `$tmp'.
40461 $debug ||
40462 {
40463   tmp= ac_tmp=
40464   trap 'exit_status=$?
40465   : "${ac_tmp:=$tmp}"
40466   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
40467 ' 0
40468   trap 'as_fn_exit 1' 1 2 13 15
40469 }
40470 # Create a (secure) tmp directory for tmp files.
40471
40472 {
40473   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
40474   test -d "$tmp"
40475 }  ||
40476 {
40477   tmp=./conf$$-$RANDOM
40478   (umask 077 && mkdir "$tmp")
40479 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
40480 ac_tmp=$tmp
40481
40482 # Set up the scripts for CONFIG_FILES section.
40483 # No need to generate them if there are no CONFIG_FILES.
40484 # This happens for instance with `./config.status config.h'.
40485 if test -n "$CONFIG_FILES"; then
40486
40487
40488 ac_cr=`echo X | tr X '\015'`
40489 # On cygwin, bash can eat \r inside `` if the user requested igncr.
40490 # But we know of no other shell where ac_cr would be empty at this
40491 # point, so we can use a bashism as a fallback.
40492 if test "x$ac_cr" = x; then
40493   eval ac_cr=\$\'\\r\'
40494 fi
40495 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
40496 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
40497   ac_cs_awk_cr='\\r'
40498 else
40499   ac_cs_awk_cr=$ac_cr
40500 fi
40501
40502 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
40503 _ACEOF
40504
40505
40506 {
40507   echo "cat >conf$$subs.awk <<_ACEOF" &&
40508   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
40509   echo "_ACEOF"
40510 } >conf$$subs.sh ||
40511   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
40512 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
40513 ac_delim='%!_!# '
40514 for ac_last_try in false false false false false :; do
40515   . ./conf$$subs.sh ||
40516     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
40517
40518   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
40519   if test $ac_delim_n = $ac_delim_num; then
40520     break
40521   elif $ac_last_try; then
40522     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
40523   else
40524     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40525   fi
40526 done
40527 rm -f conf$$subs.sh
40528
40529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40530 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
40531 _ACEOF
40532 sed -n '
40533 h
40534 s/^/S["/; s/!.*/"]=/
40535 p
40536 g
40537 s/^[^!]*!//
40538 :repl
40539 t repl
40540 s/'"$ac_delim"'$//
40541 t delim
40542 :nl
40543 h
40544 s/\(.\{148\}\)..*/\1/
40545 t more1
40546 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
40547 p
40548 n
40549 b repl
40550 :more1
40551 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
40552 p
40553 g
40554 s/.\{148\}//
40555 t nl
40556 :delim
40557 h
40558 s/\(.\{148\}\)..*/\1/
40559 t more2
40560 s/["\\]/\\&/g; s/^/"/; s/$/"/
40561 p
40562 b
40563 :more2
40564 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
40565 p
40566 g
40567 s/.\{148\}//
40568 t delim
40569 ' <conf$$subs.awk | sed '
40570 /^[^""]/{
40571   N
40572   s/\n//
40573 }
40574 ' >>$CONFIG_STATUS || ac_write_fail=1
40575 rm -f conf$$subs.awk
40576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40577 _ACAWK
40578 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
40579   for (key in S) S_is_set[key] = 1
40580   FS = "\a"
40581
40582 }
40583 {
40584   line = $ 0
40585   nfields = split(line, field, "@")
40586   substed = 0
40587   len = length(field[1])
40588   for (i = 2; i < nfields; i++) {
40589     key = field[i]
40590     keylen = length(key)
40591     if (S_is_set[key]) {
40592       value = S[key]
40593       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
40594       len += length(value) + length(field[++i])
40595       substed = 1
40596     } else
40597       len += 1 + keylen
40598   }
40599
40600   print line
40601 }
40602
40603 _ACAWK
40604 _ACEOF
40605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40606 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
40607   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
40608 else
40609   cat
40610 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
40611   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
40612 _ACEOF
40613
40614 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
40615 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
40616 # trailing colons and then remove the whole line if VPATH becomes empty
40617 # (actually we leave an empty line to preserve line numbers).
40618 if test "x$srcdir" = x.; then
40619   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
40620 h
40621 s///
40622 s/^/:/
40623 s/[      ]*$/:/
40624 s/:\$(srcdir):/:/g
40625 s/:\${srcdir}:/:/g
40626 s/:@srcdir@:/:/g
40627 s/^:*//
40628 s/:*$//
40629 x
40630 s/\(=[   ]*\).*/\1/
40631 G
40632 s/\n//
40633 s/^[^=]*=[       ]*$//
40634 }'
40635 fi
40636
40637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40638 fi # test -n "$CONFIG_FILES"
40639
40640 # Set up the scripts for CONFIG_HEADERS section.
40641 # No need to generate them if there are no CONFIG_HEADERS.
40642 # This happens for instance with `./config.status Makefile'.
40643 if test -n "$CONFIG_HEADERS"; then
40644 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
40645 BEGIN {
40646 _ACEOF
40647
40648 # Transform confdefs.h into an awk script `defines.awk', embedded as
40649 # here-document in config.status, that substitutes the proper values into
40650 # config.h.in to produce config.h.
40651
40652 # Create a delimiter string that does not exist in confdefs.h, to ease
40653 # handling of long lines.
40654 ac_delim='%!_!# '
40655 for ac_last_try in false false :; do
40656   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
40657   if test -z "$ac_tt"; then
40658     break
40659   elif $ac_last_try; then
40660     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
40661   else
40662     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40663   fi
40664 done
40665
40666 # For the awk script, D is an array of macro values keyed by name,
40667 # likewise P contains macro parameters if any.  Preserve backslash
40668 # newline sequences.
40669
40670 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
40671 sed -n '
40672 s/.\{148\}/&'"$ac_delim"'/g
40673 t rset
40674 :rset
40675 s/^[     ]*#[    ]*define[       ][      ]*/ /
40676 t def
40677 d
40678 :def
40679 s/\\$//
40680 t bsnl
40681 s/["\\]/\\&/g
40682 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
40683 D["\1"]=" \3"/p
40684 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
40685 d
40686 :bsnl
40687 s/["\\]/\\&/g
40688 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
40689 D["\1"]=" \3\\\\\\n"\\/p
40690 t cont
40691 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
40692 t cont
40693 d
40694 :cont
40695 n
40696 s/.\{148\}/&'"$ac_delim"'/g
40697 t clear
40698 :clear
40699 s/\\$//
40700 t bsnlc
40701 s/["\\]/\\&/g; s/^/"/; s/$/"/p
40702 d
40703 :bsnlc
40704 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
40705 b cont
40706 ' <confdefs.h | sed '
40707 s/'"$ac_delim"'/"\\\
40708 "/g' >>$CONFIG_STATUS || ac_write_fail=1
40709
40710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40711   for (key in D) D_is_set[key] = 1
40712   FS = "\a"
40713 }
40714 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
40715   line = \$ 0
40716   split(line, arg, " ")
40717   if (arg[1] == "#") {
40718     defundef = arg[2]
40719     mac1 = arg[3]
40720   } else {
40721     defundef = substr(arg[1], 2)
40722     mac1 = arg[2]
40723   }
40724   split(mac1, mac2, "(") #)
40725   macro = mac2[1]
40726   prefix = substr(line, 1, index(line, defundef) - 1)
40727   if (D_is_set[macro]) {
40728     # Preserve the white space surrounding the "#".
40729     print prefix "define", macro P[macro] D[macro]
40730     next
40731   } else {
40732     # Replace #undef with comments.  This is necessary, for example,
40733     # in the case of _POSIX_SOURCE, which is predefined and required
40734     # on some systems where configure will not decide to define it.
40735     if (defundef == "undef") {
40736       print "/*", prefix defundef, macro, "*/"
40737       next
40738     }
40739   }
40740 }
40741 { print }
40742 _ACAWK
40743 _ACEOF
40744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40745   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
40746 fi # test -n "$CONFIG_HEADERS"
40747
40748
40749 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
40750 shift
40751 for ac_tag
40752 do
40753   case $ac_tag in
40754   :[FHLC]) ac_mode=$ac_tag; continue;;
40755   esac
40756   case $ac_mode$ac_tag in
40757   :[FHL]*:*);;
40758   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
40759   :[FH]-) ac_tag=-:-;;
40760   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
40761   esac
40762   ac_save_IFS=$IFS
40763   IFS=:
40764   set x $ac_tag
40765   IFS=$ac_save_IFS
40766   shift
40767   ac_file=$1
40768   shift
40769
40770   case $ac_mode in
40771   :L) ac_source=$1;;
40772   :[FH])
40773     ac_file_inputs=
40774     for ac_f
40775     do
40776       case $ac_f in
40777       -) ac_f="$ac_tmp/stdin";;
40778       *) # Look for the file first in the build tree, then in the source tree
40779          # (if the path is not absolute).  The absolute path cannot be DOS-style,
40780          # because $ac_f cannot contain `:'.
40781          test -f "$ac_f" ||
40782            case $ac_f in
40783            [\\/$]*) false;;
40784            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
40785            esac ||
40786            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
40787       esac
40788       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
40789       as_fn_append ac_file_inputs " '$ac_f'"
40790     done
40791
40792     # Let's still pretend it is `configure' which instantiates (i.e., don't
40793     # use $as_me), people would be surprised to read:
40794     #    /* config.h.  Generated by config.status.  */
40795     configure_input='Generated from '`
40796           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
40797         `' by configure.'
40798     if test x"$ac_file" != x-; then
40799       configure_input="$ac_file.  $configure_input"
40800       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
40801 $as_echo "$as_me: creating $ac_file" >&6;}
40802     fi
40803     # Neutralize special characters interpreted by sed in replacement strings.
40804     case $configure_input in #(
40805     *\&* | *\|* | *\\* )
40806        ac_sed_conf_input=`$as_echo "$configure_input" |
40807        sed 's/[\\\\&|]/\\\\&/g'`;; #(
40808     *) ac_sed_conf_input=$configure_input;;
40809     esac
40810
40811     case $ac_tag in
40812     *:-:* | *:-) cat >"$ac_tmp/stdin" \
40813       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
40814     esac
40815     ;;
40816   esac
40817
40818   ac_dir=`$as_dirname -- "$ac_file" ||
40819 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40820          X"$ac_file" : 'X\(//\)[^/]' \| \
40821          X"$ac_file" : 'X\(//\)$' \| \
40822          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
40823 $as_echo X"$ac_file" |
40824     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40825             s//\1/
40826             q
40827           }
40828           /^X\(\/\/\)[^/].*/{
40829             s//\1/
40830             q
40831           }
40832           /^X\(\/\/\)$/{
40833             s//\1/
40834             q
40835           }
40836           /^X\(\/\).*/{
40837             s//\1/
40838             q
40839           }
40840           s/.*/./; q'`
40841   as_dir="$ac_dir"; as_fn_mkdir_p
40842   ac_builddir=.
40843
40844 case "$ac_dir" in
40845 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
40846 *)
40847   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
40848   # A ".." for each directory in $ac_dir_suffix.
40849   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
40850   case $ac_top_builddir_sub in
40851   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
40852   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
40853   esac ;;
40854 esac
40855 ac_abs_top_builddir=$ac_pwd
40856 ac_abs_builddir=$ac_pwd$ac_dir_suffix
40857 # for backward compatibility:
40858 ac_top_builddir=$ac_top_build_prefix
40859
40860 case $srcdir in
40861   .)  # We are building in place.
40862     ac_srcdir=.
40863     ac_top_srcdir=$ac_top_builddir_sub
40864     ac_abs_top_srcdir=$ac_pwd ;;
40865   [\\/]* | ?:[\\/]* )  # Absolute name.
40866     ac_srcdir=$srcdir$ac_dir_suffix;
40867     ac_top_srcdir=$srcdir
40868     ac_abs_top_srcdir=$srcdir ;;
40869   *) # Relative name.
40870     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40871     ac_top_srcdir=$ac_top_build_prefix$srcdir
40872     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40873 esac
40874 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40875
40876
40877   case $ac_mode in
40878   :F)
40879   #
40880   # CONFIG_FILE
40881   #
40882
40883   case $INSTALL in
40884   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40885   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
40886   esac
40887   ac_MKDIR_P=$MKDIR_P
40888   case $MKDIR_P in
40889   [\\/$]* | ?:[\\/]* ) ;;
40890   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
40891   esac
40892 _ACEOF
40893
40894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40895 # If the template does not know about datarootdir, expand it.
40896 # FIXME: This hack should be removed a few years after 2.60.
40897 ac_datarootdir_hack=; ac_datarootdir_seen=
40898 ac_sed_dataroot='
40899 /datarootdir/ {
40900   p
40901   q
40902 }
40903 /@datadir@/p
40904 /@docdir@/p
40905 /@infodir@/p
40906 /@localedir@/p
40907 /@mandir@/p'
40908 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
40909 *datarootdir*) ac_datarootdir_seen=yes;;
40910 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
40911   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
40912 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
40913 _ACEOF
40914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40915   ac_datarootdir_hack='
40916   s&@datadir@&$datadir&g
40917   s&@docdir@&$docdir&g
40918   s&@infodir@&$infodir&g
40919   s&@localedir@&$localedir&g
40920   s&@mandir@&$mandir&g
40921   s&\\\${datarootdir}&$datarootdir&g' ;;
40922 esac
40923 _ACEOF
40924
40925 # Neutralize VPATH when `$srcdir' = `.'.
40926 # Shell code in configure.ac might set extrasub.
40927 # FIXME: do we really want to maintain this feature?
40928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40929 ac_sed_extra="$ac_vpsub
40930 $extrasub
40931 _ACEOF
40932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40933 :t
40934 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40935 s|@configure_input@|$ac_sed_conf_input|;t t
40936 s&@top_builddir@&$ac_top_builddir_sub&;t t
40937 s&@top_build_prefix@&$ac_top_build_prefix&;t t
40938 s&@srcdir@&$ac_srcdir&;t t
40939 s&@abs_srcdir@&$ac_abs_srcdir&;t t
40940 s&@top_srcdir@&$ac_top_srcdir&;t t
40941 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
40942 s&@builddir@&$ac_builddir&;t t
40943 s&@abs_builddir@&$ac_abs_builddir&;t t
40944 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
40945 s&@INSTALL@&$ac_INSTALL&;t t
40946 s&@MKDIR_P@&$ac_MKDIR_P&;t t
40947 $ac_datarootdir_hack
40948 "
40949 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
40950   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
40951
40952 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
40953   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
40954   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
40955       "$ac_tmp/out"`; test -z "$ac_out"; } &&
40956   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40957 which seems to be undefined.  Please make sure it is defined" >&5
40958 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40959 which seems to be undefined.  Please make sure it is defined" >&2;}
40960
40961   rm -f "$ac_tmp/stdin"
40962   case $ac_file in
40963   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
40964   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
40965   esac \
40966   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
40967  ;;
40968   :H)
40969   #
40970   # CONFIG_HEADER
40971   #
40972   if test x"$ac_file" != x-; then
40973     {
40974       $as_echo "/* $configure_input  */" \
40975       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
40976     } >"$ac_tmp/config.h" \
40977       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
40978     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
40979       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
40980 $as_echo "$as_me: $ac_file is unchanged" >&6;}
40981     else
40982       rm -f "$ac_file"
40983       mv "$ac_tmp/config.h" "$ac_file" \
40984         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
40985     fi
40986   else
40987     $as_echo "/* $configure_input  */" \
40988       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
40989       || as_fn_error $? "could not create -" "$LINENO" 5
40990   fi
40991 # Compute "$ac_file"'s index in $config_headers.
40992 _am_arg="$ac_file"
40993 _am_stamp_count=1
40994 for _am_header in $config_headers :; do
40995   case $_am_header in
40996     $_am_arg | $_am_arg:* )
40997       break ;;
40998     * )
40999       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
41000   esac
41001 done
41002 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
41003 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41004          X"$_am_arg" : 'X\(//\)[^/]' \| \
41005          X"$_am_arg" : 'X\(//\)$' \| \
41006          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
41007 $as_echo X"$_am_arg" |
41008     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41009             s//\1/
41010             q
41011           }
41012           /^X\(\/\/\)[^/].*/{
41013             s//\1/
41014             q
41015           }
41016           /^X\(\/\/\)$/{
41017             s//\1/
41018             q
41019           }
41020           /^X\(\/\).*/{
41021             s//\1/
41022             q
41023           }
41024           s/.*/./; q'`/stamp-h$_am_stamp_count
41025  ;;
41026
41027   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
41028 $as_echo "$as_me: executing $ac_file commands" >&6;}
41029  ;;
41030   esac
41031
41032
41033   case $ac_file$ac_mode in
41034     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
41035   # Older Autoconf quotes --file arguments for eval, but not when files
41036   # are listed without --file.  Let's play safe and only enable the eval
41037   # if we detect the quoting.
41038   case $CONFIG_FILES in
41039   *\'*) eval set x "$CONFIG_FILES" ;;
41040   *)   set x $CONFIG_FILES ;;
41041   esac
41042   shift
41043   for mf
41044   do
41045     # Strip MF so we end up with the name of the file.
41046     mf=`echo "$mf" | sed -e 's/:.*$//'`
41047     # Check whether this is an Automake generated Makefile or not.
41048     # We used to match only the files named 'Makefile.in', but
41049     # some people rename them; so instead we look at the file content.
41050     # Grep'ing the first line is not enough: some people post-process
41051     # each Makefile.in and add a new line on top of each file to say so.
41052     # Grep'ing the whole file is not good either: AIX grep has a line
41053     # limit of 2048, but all sed's we know have understand at least 4000.
41054     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
41055       dirpart=`$as_dirname -- "$mf" ||
41056 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41057          X"$mf" : 'X\(//\)[^/]' \| \
41058          X"$mf" : 'X\(//\)$' \| \
41059          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
41060 $as_echo X"$mf" |
41061     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41062             s//\1/
41063             q
41064           }
41065           /^X\(\/\/\)[^/].*/{
41066             s//\1/
41067             q
41068           }
41069           /^X\(\/\/\)$/{
41070             s//\1/
41071             q
41072           }
41073           /^X\(\/\).*/{
41074             s//\1/
41075             q
41076           }
41077           s/.*/./; q'`
41078     else
41079       continue
41080     fi
41081     # Extract the definition of DEPDIR, am__include, and am__quote
41082     # from the Makefile without running 'make'.
41083     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
41084     test -z "$DEPDIR" && continue
41085     am__include=`sed -n 's/^am__include = //p' < "$mf"`
41086     test -z "$am__include" && continue
41087     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
41088     # Find all dependency output files, they are included files with
41089     # $(DEPDIR) in their names.  We invoke sed twice because it is the
41090     # simplest approach to changing $(DEPDIR) to its actual value in the
41091     # expansion.
41092     for file in `sed -n "
41093       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
41094          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
41095       # Make sure the directory exists.
41096       test -f "$dirpart/$file" && continue
41097       fdir=`$as_dirname -- "$file" ||
41098 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41099          X"$file" : 'X\(//\)[^/]' \| \
41100          X"$file" : 'X\(//\)$' \| \
41101          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
41102 $as_echo X"$file" |
41103     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41104             s//\1/
41105             q
41106           }
41107           /^X\(\/\/\)[^/].*/{
41108             s//\1/
41109             q
41110           }
41111           /^X\(\/\/\)$/{
41112             s//\1/
41113             q
41114           }
41115           /^X\(\/\).*/{
41116             s//\1/
41117             q
41118           }
41119           s/.*/./; q'`
41120       as_dir=$dirpart/$fdir; as_fn_mkdir_p
41121       # echo "creating $dirpart/$file"
41122       echo '# dummy' > "$dirpart/$file"
41123     done
41124   done
41125 }
41126  ;;
41127     "libtool":C)
41128
41129     # See if we are running on zsh, and set the options which allow our
41130     # commands through without removal of \ escapes.
41131     if test -n "${ZSH_VERSION+set}" ; then
41132       setopt NO_GLOB_SUBST
41133     fi
41134
41135     cfgfile="${ofile}T"
41136     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
41137     $RM "$cfgfile"
41138
41139     cat <<_LT_EOF >> "$cfgfile"
41140 #! $SHELL
41141
41142 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
41143 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
41144 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
41145 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
41146 #
41147 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
41148 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
41149 #                 Foundation, Inc.
41150 #   Written by Gordon Matzigkeit, 1996
41151 #
41152 #   This file is part of GNU Libtool.
41153 #
41154 # GNU Libtool is free software; you can redistribute it and/or
41155 # modify it under the terms of the GNU General Public License as
41156 # published by the Free Software Foundation; either version 2 of
41157 # the License, or (at your option) any later version.
41158 #
41159 # As a special exception to the GNU General Public License,
41160 # if you distribute this file as part of a program or library that
41161 # is built using GNU Libtool, you may include this file under the
41162 # same distribution terms that you use for the rest of that program.
41163 #
41164 # GNU Libtool is distributed in the hope that it will be useful,
41165 # but WITHOUT ANY WARRANTY; without even the implied warranty of
41166 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
41167 # GNU General Public License for more details.
41168 #
41169 # You should have received a copy of the GNU General Public License
41170 # along with GNU Libtool; see the file COPYING.  If not, a copy
41171 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
41172 # obtained by writing to the Free Software Foundation, Inc.,
41173 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
41174
41175
41176 # The names of the tagged configurations supported by this script.
41177 available_tags=""
41178
41179 # ### BEGIN LIBTOOL CONFIG
41180
41181 # Which release of libtool.m4 was used?
41182 macro_version=$macro_version
41183 macro_revision=$macro_revision
41184
41185 # Assembler program.
41186 AS=$lt_AS
41187
41188 # DLL creation program.
41189 DLLTOOL=$lt_DLLTOOL
41190
41191 # Object dumper program.
41192 OBJDUMP=$lt_OBJDUMP
41193
41194 # Whether or not to build shared libraries.
41195 build_libtool_libs=$enable_shared
41196
41197 # Whether or not to build static libraries.
41198 build_old_libs=$enable_static
41199
41200 # What type of objects to build.
41201 pic_mode=$pic_mode
41202
41203 # Whether or not to optimize for fast installation.
41204 fast_install=$enable_fast_install
41205
41206 # Shell to use when invoking shell scripts.
41207 SHELL=$lt_SHELL
41208
41209 # An echo program that protects backslashes.
41210 ECHO=$lt_ECHO
41211
41212 # The PATH separator for the build system.
41213 PATH_SEPARATOR=$lt_PATH_SEPARATOR
41214
41215 # The host system.
41216 host_alias=$host_alias
41217 host=$host
41218 host_os=$host_os
41219
41220 # The build system.
41221 build_alias=$build_alias
41222 build=$build
41223 build_os=$build_os
41224
41225 # A sed program that does not truncate output.
41226 SED=$lt_SED
41227
41228 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
41229 Xsed="\$SED -e 1s/^X//"
41230
41231 # A grep program that handles long lines.
41232 GREP=$lt_GREP
41233
41234 # An ERE matcher.
41235 EGREP=$lt_EGREP
41236
41237 # A literal string matcher.
41238 FGREP=$lt_FGREP
41239
41240 # A BSD- or MS-compatible name lister.
41241 NM=$lt_NM
41242
41243 # Whether we need soft or hard links.
41244 LN_S=$lt_LN_S
41245
41246 # What is the maximum length of a command?
41247 max_cmd_len=$max_cmd_len
41248
41249 # Object file suffix (normally "o").
41250 objext=$ac_objext
41251
41252 # Executable file suffix (normally "").
41253 exeext=$exeext
41254
41255 # whether the shell understands "unset".
41256 lt_unset=$lt_unset
41257
41258 # turn spaces into newlines.
41259 SP2NL=$lt_lt_SP2NL
41260
41261 # turn newlines into spaces.
41262 NL2SP=$lt_lt_NL2SP
41263
41264 # convert \$build file names to \$host format.
41265 to_host_file_cmd=$lt_cv_to_host_file_cmd
41266
41267 # convert \$build files to toolchain format.
41268 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
41269
41270 # Method to check whether dependent libraries are shared objects.
41271 deplibs_check_method=$lt_deplibs_check_method
41272
41273 # Command to use when deplibs_check_method = "file_magic".
41274 file_magic_cmd=$lt_file_magic_cmd
41275
41276 # How to find potential files when deplibs_check_method = "file_magic".
41277 file_magic_glob=$lt_file_magic_glob
41278
41279 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
41280 want_nocaseglob=$lt_want_nocaseglob
41281
41282 # Command to associate shared and link libraries.
41283 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
41284
41285 # The archiver.
41286 AR=$lt_AR
41287
41288 # Flags to create an archive.
41289 AR_FLAGS=$lt_AR_FLAGS
41290
41291 # How to feed a file listing to the archiver.
41292 archiver_list_spec=$lt_archiver_list_spec
41293
41294 # A symbol stripping program.
41295 STRIP=$lt_STRIP
41296
41297 # Commands used to install an old-style archive.
41298 RANLIB=$lt_RANLIB
41299 old_postinstall_cmds=$lt_old_postinstall_cmds
41300 old_postuninstall_cmds=$lt_old_postuninstall_cmds
41301
41302 # Whether to use a lock for old archive extraction.
41303 lock_old_archive_extraction=$lock_old_archive_extraction
41304
41305 # A C compiler.
41306 LTCC=$lt_CC
41307
41308 # LTCC compiler flags.
41309 LTCFLAGS=$lt_CFLAGS
41310
41311 # Take the output of nm and produce a listing of raw symbols and C names.
41312 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
41313
41314 # Transform the output of nm in a proper C declaration.
41315 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
41316
41317 # Transform the output of nm in a C name address pair.
41318 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
41319
41320 # Transform the output of nm in a C name address pair when lib prefix is needed.
41321 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
41322
41323 # Specify filename containing input files for \$NM.
41324 nm_file_list_spec=$lt_nm_file_list_spec
41325
41326 # The root where to search for dependent libraries,and in which our libraries should be installed.
41327 lt_sysroot=$lt_sysroot
41328
41329 # The name of the directory that contains temporary libtool files.
41330 objdir=$objdir
41331
41332 # Used to examine libraries when file_magic_cmd begins with "file".
41333 MAGIC_CMD=$MAGIC_CMD
41334
41335 # Must we lock files when doing compilation?
41336 need_locks=$lt_need_locks
41337
41338 # Manifest tool.
41339 MANIFEST_TOOL=$lt_MANIFEST_TOOL
41340
41341 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
41342 DSYMUTIL=$lt_DSYMUTIL
41343
41344 # Tool to change global to local symbols on Mac OS X.
41345 NMEDIT=$lt_NMEDIT
41346
41347 # Tool to manipulate fat objects and archives on Mac OS X.
41348 LIPO=$lt_LIPO
41349
41350 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
41351 OTOOL=$lt_OTOOL
41352
41353 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
41354 OTOOL64=$lt_OTOOL64
41355
41356 # Old archive suffix (normally "a").
41357 libext=$libext
41358
41359 # Shared library suffix (normally ".so").
41360 shrext_cmds=$lt_shrext_cmds
41361
41362 # The commands to extract the exported symbol list from a shared archive.
41363 extract_expsyms_cmds=$lt_extract_expsyms_cmds
41364
41365 # Variables whose values should be saved in libtool wrapper scripts and
41366 # restored at link time.
41367 variables_saved_for_relink=$lt_variables_saved_for_relink
41368
41369 # Do we need the "lib" prefix for modules?
41370 need_lib_prefix=$need_lib_prefix
41371
41372 # Do we need a version for libraries?
41373 need_version=$need_version
41374
41375 # Library versioning type.
41376 version_type=$version_type
41377
41378 # Shared library runtime path variable.
41379 runpath_var=$runpath_var
41380
41381 # Shared library path variable.
41382 shlibpath_var=$shlibpath_var
41383
41384 # Is shlibpath searched before the hard-coded library search path?
41385 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
41386
41387 # Format of library name prefix.
41388 libname_spec=$lt_libname_spec
41389
41390 # List of archive names.  First name is the real one, the rest are links.
41391 # The last name is the one that the linker finds with -lNAME
41392 library_names_spec=$lt_library_names_spec
41393
41394 # The coded name of the library, if different from the real name.
41395 soname_spec=$lt_soname_spec
41396
41397 # Permission mode override for installation of shared libraries.
41398 install_override_mode=$lt_install_override_mode
41399
41400 # Command to use after installation of a shared archive.
41401 postinstall_cmds=$lt_postinstall_cmds
41402
41403 # Command to use after uninstallation of a shared archive.
41404 postuninstall_cmds=$lt_postuninstall_cmds
41405
41406 # Commands used to finish a libtool library installation in a directory.
41407 finish_cmds=$lt_finish_cmds
41408
41409 # As "finish_cmds", except a single script fragment to be evaled but
41410 # not shown.
41411 finish_eval=$lt_finish_eval
41412
41413 # Whether we should hardcode library paths into libraries.
41414 hardcode_into_libs=$hardcode_into_libs
41415
41416 # Compile-time system search path for libraries.
41417 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
41418
41419 # Run-time system search path for libraries.
41420 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
41421
41422 # Whether dlopen is supported.
41423 dlopen_support=$enable_dlopen
41424
41425 # Whether dlopen of programs is supported.
41426 dlopen_self=$enable_dlopen_self
41427
41428 # Whether dlopen of statically linked programs is supported.
41429 dlopen_self_static=$enable_dlopen_self_static
41430
41431 # Commands to strip libraries.
41432 old_striplib=$lt_old_striplib
41433 striplib=$lt_striplib
41434
41435
41436 # The linker used to build libraries.
41437 LD=$lt_LD
41438
41439 # How to create reloadable object files.
41440 reload_flag=$lt_reload_flag
41441 reload_cmds=$lt_reload_cmds
41442
41443 # Commands used to build an old-style archive.
41444 old_archive_cmds=$lt_old_archive_cmds
41445
41446 # A language specific compiler.
41447 CC=$lt_compiler
41448
41449 # Is the compiler the GNU compiler?
41450 with_gcc=$GCC
41451
41452 # Compiler flag to turn off builtin functions.
41453 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
41454
41455 # Additional compiler flags for building library objects.
41456 pic_flag=$lt_lt_prog_compiler_pic
41457
41458 # How to pass a linker flag through the compiler.
41459 wl=$lt_lt_prog_compiler_wl
41460
41461 # Compiler flag to prevent dynamic linking.
41462 link_static_flag=$lt_lt_prog_compiler_static
41463
41464 # Does compiler simultaneously support -c and -o options?
41465 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
41466
41467 # Whether or not to add -lc for building shared libraries.
41468 build_libtool_need_lc=$archive_cmds_need_lc
41469
41470 # Whether or not to disallow shared libs when runtime libs are static.
41471 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
41472
41473 # Compiler flag to allow reflexive dlopens.
41474 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
41475
41476 # Compiler flag to generate shared objects directly from archives.
41477 whole_archive_flag_spec=$lt_whole_archive_flag_spec
41478
41479 # Whether the compiler copes with passing no objects directly.
41480 compiler_needs_object=$lt_compiler_needs_object
41481
41482 # Create an old-style archive from a shared archive.
41483 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
41484
41485 # Create a temporary old-style archive to link instead of a shared archive.
41486 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
41487
41488 # Commands used to build a shared archive.
41489 archive_cmds=$lt_archive_cmds
41490 archive_expsym_cmds=$lt_archive_expsym_cmds
41491
41492 # Commands used to build a loadable module if different from building
41493 # a shared archive.
41494 module_cmds=$lt_module_cmds
41495 module_expsym_cmds=$lt_module_expsym_cmds
41496
41497 # Whether we are building with GNU ld or not.
41498 with_gnu_ld=$lt_with_gnu_ld
41499
41500 # Flag that allows shared libraries with undefined symbols to be built.
41501 allow_undefined_flag=$lt_allow_undefined_flag
41502
41503 # Flag that enforces no undefined symbols.
41504 no_undefined_flag=$lt_no_undefined_flag
41505
41506 # Flag to hardcode \$libdir into a binary during linking.
41507 # This must work even if \$libdir does not exist
41508 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
41509
41510 # Whether we need a single "-rpath" flag with a separated argument.
41511 hardcode_libdir_separator=$lt_hardcode_libdir_separator
41512
41513 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
41514 # DIR into the resulting binary.
41515 hardcode_direct=$hardcode_direct
41516
41517 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
41518 # DIR into the resulting binary and the resulting library dependency is
41519 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
41520 # library is relocated.
41521 hardcode_direct_absolute=$hardcode_direct_absolute
41522
41523 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
41524 # into the resulting binary.
41525 hardcode_minus_L=$hardcode_minus_L
41526
41527 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
41528 # into the resulting binary.
41529 hardcode_shlibpath_var=$hardcode_shlibpath_var
41530
41531 # Set to "yes" if building a shared library automatically hardcodes DIR
41532 # into the library and all subsequent libraries and executables linked
41533 # against it.
41534 hardcode_automatic=$hardcode_automatic
41535
41536 # Set to yes if linker adds runtime paths of dependent libraries
41537 # to runtime path list.
41538 inherit_rpath=$inherit_rpath
41539
41540 # Whether libtool must link a program against all its dependency libraries.
41541 link_all_deplibs=$link_all_deplibs
41542
41543 # Set to "yes" if exported symbols are required.
41544 always_export_symbols=$always_export_symbols
41545
41546 # The commands to list exported symbols.
41547 export_symbols_cmds=$lt_export_symbols_cmds
41548
41549 # Symbols that should not be listed in the preloaded symbols.
41550 exclude_expsyms=$lt_exclude_expsyms
41551
41552 # Symbols that must always be exported.
41553 include_expsyms=$lt_include_expsyms
41554
41555 # Commands necessary for linking programs (against libraries) with templates.
41556 prelink_cmds=$lt_prelink_cmds
41557
41558 # Commands necessary for finishing linking programs.
41559 postlink_cmds=$lt_postlink_cmds
41560
41561 # Specify filename containing input files.
41562 file_list_spec=$lt_file_list_spec
41563
41564 # How to hardcode a shared library path into an executable.
41565 hardcode_action=$hardcode_action
41566
41567 # ### END LIBTOOL CONFIG
41568
41569 _LT_EOF
41570
41571   case $host_os in
41572   aix3*)
41573     cat <<\_LT_EOF >> "$cfgfile"
41574 # AIX sometimes has problems with the GCC collect2 program.  For some
41575 # reason, if we set the COLLECT_NAMES environment variable, the problems
41576 # vanish in a puff of smoke.
41577 if test "X${COLLECT_NAMES+set}" != Xset; then
41578   COLLECT_NAMES=
41579   export COLLECT_NAMES
41580 fi
41581 _LT_EOF
41582     ;;
41583   esac
41584
41585
41586 ltmain="$ac_aux_dir/ltmain.sh"
41587
41588
41589   # We use sed instead of cat because bash on DJGPP gets confused if
41590   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
41591   # text mode, it properly converts lines to CR/LF.  This bash problem
41592   # is reportedly fixed, but why not run on old versions too?
41593   sed '$q' "$ltmain" >> "$cfgfile" \
41594      || (rm -f "$cfgfile"; exit 1)
41595
41596   if test x"$xsi_shell" = xyes; then
41597   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
41598 func_dirname ()\
41599 {\
41600 \    case ${1} in\
41601 \      */*) func_dirname_result="${1%/*}${2}" ;;\
41602 \      *  ) func_dirname_result="${3}" ;;\
41603 \    esac\
41604 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
41605   && mv -f "$cfgfile.tmp" "$cfgfile" \
41606     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41607 test 0 -eq $? || _lt_function_replace_fail=:
41608
41609
41610   sed -e '/^func_basename ()$/,/^} # func_basename /c\
41611 func_basename ()\
41612 {\
41613 \    func_basename_result="${1##*/}"\
41614 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
41615   && mv -f "$cfgfile.tmp" "$cfgfile" \
41616     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41617 test 0 -eq $? || _lt_function_replace_fail=:
41618
41619
41620   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
41621 func_dirname_and_basename ()\
41622 {\
41623 \    case ${1} in\
41624 \      */*) func_dirname_result="${1%/*}${2}" ;;\
41625 \      *  ) func_dirname_result="${3}" ;;\
41626 \    esac\
41627 \    func_basename_result="${1##*/}"\
41628 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
41629   && mv -f "$cfgfile.tmp" "$cfgfile" \
41630     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41631 test 0 -eq $? || _lt_function_replace_fail=:
41632
41633
41634   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
41635 func_stripname ()\
41636 {\
41637 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
41638 \    # positional parameters, so assign one to ordinary parameter first.\
41639 \    func_stripname_result=${3}\
41640 \    func_stripname_result=${func_stripname_result#"${1}"}\
41641 \    func_stripname_result=${func_stripname_result%"${2}"}\
41642 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
41643   && mv -f "$cfgfile.tmp" "$cfgfile" \
41644     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41645 test 0 -eq $? || _lt_function_replace_fail=:
41646
41647
41648   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
41649 func_split_long_opt ()\
41650 {\
41651 \    func_split_long_opt_name=${1%%=*}\
41652 \    func_split_long_opt_arg=${1#*=}\
41653 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
41654   && mv -f "$cfgfile.tmp" "$cfgfile" \
41655     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41656 test 0 -eq $? || _lt_function_replace_fail=:
41657
41658
41659   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
41660 func_split_short_opt ()\
41661 {\
41662 \    func_split_short_opt_arg=${1#??}\
41663 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
41664 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
41665   && mv -f "$cfgfile.tmp" "$cfgfile" \
41666     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41667 test 0 -eq $? || _lt_function_replace_fail=:
41668
41669
41670   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
41671 func_lo2o ()\
41672 {\
41673 \    case ${1} in\
41674 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
41675 \      *)    func_lo2o_result=${1} ;;\
41676 \    esac\
41677 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
41678   && mv -f "$cfgfile.tmp" "$cfgfile" \
41679     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41680 test 0 -eq $? || _lt_function_replace_fail=:
41681
41682
41683   sed -e '/^func_xform ()$/,/^} # func_xform /c\
41684 func_xform ()\
41685 {\
41686     func_xform_result=${1%.*}.lo\
41687 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
41688   && mv -f "$cfgfile.tmp" "$cfgfile" \
41689     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41690 test 0 -eq $? || _lt_function_replace_fail=:
41691
41692
41693   sed -e '/^func_arith ()$/,/^} # func_arith /c\
41694 func_arith ()\
41695 {\
41696     func_arith_result=$(( $* ))\
41697 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
41698   && mv -f "$cfgfile.tmp" "$cfgfile" \
41699     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41700 test 0 -eq $? || _lt_function_replace_fail=:
41701
41702
41703   sed -e '/^func_len ()$/,/^} # func_len /c\
41704 func_len ()\
41705 {\
41706     func_len_result=${#1}\
41707 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
41708   && mv -f "$cfgfile.tmp" "$cfgfile" \
41709     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41710 test 0 -eq $? || _lt_function_replace_fail=:
41711
41712 fi
41713
41714 if test x"$lt_shell_append" = xyes; then
41715   sed -e '/^func_append ()$/,/^} # func_append /c\
41716 func_append ()\
41717 {\
41718     eval "${1}+=\\${2}"\
41719 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
41720   && mv -f "$cfgfile.tmp" "$cfgfile" \
41721     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41722 test 0 -eq $? || _lt_function_replace_fail=:
41723
41724
41725   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
41726 func_append_quoted ()\
41727 {\
41728 \    func_quote_for_eval "${2}"\
41729 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
41730 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
41731   && mv -f "$cfgfile.tmp" "$cfgfile" \
41732     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41733 test 0 -eq $? || _lt_function_replace_fail=:
41734
41735
41736   # Save a `func_append' function call where possible by direct use of '+='
41737   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
41738     && mv -f "$cfgfile.tmp" "$cfgfile" \
41739       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41740   test 0 -eq $? || _lt_function_replace_fail=:
41741 else
41742   # Save a `func_append' function call even when '+=' is not available
41743   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
41744     && mv -f "$cfgfile.tmp" "$cfgfile" \
41745       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41746   test 0 -eq $? || _lt_function_replace_fail=:
41747 fi
41748
41749 if test x"$_lt_function_replace_fail" = x":"; then
41750   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
41751 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
41752 fi
41753
41754
41755    mv -f "$cfgfile" "$ofile" ||
41756     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
41757   chmod +x "$ofile"
41758
41759  ;;
41760
41761   esac
41762 done # for ac_tag
41763
41764
41765 as_fn_exit 0
41766 _ACEOF
41767 ac_clean_files=$ac_clean_files_save
41768
41769 test $ac_write_fail = 0 ||
41770   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
41771
41772
41773 # configure is writing to config.log, and then calls config.status.
41774 # config.status does its own redirection, appending to config.log.
41775 # Unfortunately, on DOS this fails, as config.log is still kept open
41776 # by configure, so config.status won't be able to write to it; its
41777 # output is simply discarded.  So we exec the FD to /dev/null,
41778 # effectively closing config.log, so it can be properly (re)opened and
41779 # appended to by config.status.  When coming back to configure, we
41780 # need to make the FD available again.
41781 if test "$no_create" != yes; then
41782   ac_cs_success=:
41783   ac_config_status_args=
41784   test "$silent" = yes &&
41785     ac_config_status_args="$ac_config_status_args --quiet"
41786   exec 5>/dev/null
41787   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
41788   exec 5>>config.log
41789   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
41790   # would make configure fail if this is the last instruction.
41791   $ac_cs_success || as_fn_exit 1
41792 fi
41793
41794 #
41795 # CONFIG_SUBDIRS section.
41796 #
41797 if test "$no_recursion" != yes; then
41798
41799   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
41800   # so they do not pile up.
41801   ac_sub_configure_args=
41802   ac_prev=
41803   eval "set x $ac_configure_args"
41804   shift
41805   for ac_arg
41806   do
41807     if test -n "$ac_prev"; then
41808       ac_prev=
41809       continue
41810     fi
41811     case $ac_arg in
41812     -cache-file | --cache-file | --cache-fil | --cache-fi \
41813     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
41814       ac_prev=cache_file ;;
41815     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
41816     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
41817     | --c=*)
41818       ;;
41819     --config-cache | -C)
41820       ;;
41821     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
41822       ac_prev=srcdir ;;
41823     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
41824       ;;
41825     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
41826       ac_prev=prefix ;;
41827     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
41828       ;;
41829     --disable-option-checking)
41830       ;;
41831     *)
41832       case $ac_arg in
41833       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
41834       esac
41835       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
41836     esac
41837   done
41838
41839   # Always prepend --prefix to ensure using the same prefix
41840   # in subdir configurations.
41841   ac_arg="--prefix=$prefix"
41842   case $ac_arg in
41843   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
41844   esac
41845   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
41846
41847   # Pass --silent
41848   if test "$silent" = yes; then
41849     ac_sub_configure_args="--silent $ac_sub_configure_args"
41850   fi
41851
41852   # Always prepend --disable-option-checking to silence warnings, since
41853   # different subdirs can have different --enable and --with options.
41854   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
41855
41856   ac_popdir=`pwd`
41857   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
41858
41859     # Do not complain, so a configure script can configure whichever
41860     # parts of a large source tree are present.
41861     test -d "$srcdir/$ac_dir" || continue
41862
41863     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
41864     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
41865     $as_echo "$ac_msg" >&6
41866     as_dir="$ac_dir"; as_fn_mkdir_p
41867     ac_builddir=.
41868
41869 case "$ac_dir" in
41870 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
41871 *)
41872   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
41873   # A ".." for each directory in $ac_dir_suffix.
41874   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
41875   case $ac_top_builddir_sub in
41876   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
41877   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
41878   esac ;;
41879 esac
41880 ac_abs_top_builddir=$ac_pwd
41881 ac_abs_builddir=$ac_pwd$ac_dir_suffix
41882 # for backward compatibility:
41883 ac_top_builddir=$ac_top_build_prefix
41884
41885 case $srcdir in
41886   .)  # We are building in place.
41887     ac_srcdir=.
41888     ac_top_srcdir=$ac_top_builddir_sub
41889     ac_abs_top_srcdir=$ac_pwd ;;
41890   [\\/]* | ?:[\\/]* )  # Absolute name.
41891     ac_srcdir=$srcdir$ac_dir_suffix;
41892     ac_top_srcdir=$srcdir
41893     ac_abs_top_srcdir=$srcdir ;;
41894   *) # Relative name.
41895     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
41896     ac_top_srcdir=$ac_top_build_prefix$srcdir
41897     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
41898 esac
41899 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
41900
41901
41902     cd "$ac_dir"
41903
41904     # Check for guested configure; otherwise get Cygnus style configure.
41905     if test -f "$ac_srcdir/configure.gnu"; then
41906       ac_sub_configure=$ac_srcdir/configure.gnu
41907     elif test -f "$ac_srcdir/configure"; then
41908       ac_sub_configure=$ac_srcdir/configure
41909     elif test -f "$ac_srcdir/configure.in"; then
41910       # This should be Cygnus configure.
41911       ac_sub_configure=$ac_aux_dir/configure
41912     else
41913       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
41914 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
41915       ac_sub_configure=
41916     fi
41917
41918     # The recursion is here.
41919     if test -n "$ac_sub_configure"; then
41920       # Make the cache file name correct relative to the subdirectory.
41921       case $cache_file in
41922       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
41923       *) # Relative name.
41924         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
41925       esac
41926
41927       { $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
41928 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
41929       # The eval makes quoting arguments work.
41930       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
41931            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
41932         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
41933     fi
41934
41935     cd "$ac_popdir"
41936   done
41937 fi
41938 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
41939   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
41940 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
41941 fi
41942
41943
41944
41945     tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
41946   if test -z "$tmp_cpp"; then
41947     tmp_cpp='cpp'
41948   fi
41949   cat >./tests/configurehelp.pm <<_EOF
41950 # This is a generated file.  Do not edit.
41951
41952 package configurehelp;
41953
41954 use strict;
41955 use warnings;
41956 use Exporter;
41957
41958 use vars qw(
41959     @ISA
41960     @EXPORT_OK
41961     \$Cpreprocessor
41962     );
41963
41964 @ISA = qw(Exporter);
41965
41966 @EXPORT_OK = qw(
41967     \$Cpreprocessor
41968     );
41969
41970 \$Cpreprocessor = '$tmp_cpp';
41971
41972 1;
41973 _EOF
41974
41975
41976
41977
41978 { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
41979
41980   curl version:     ${CURLVERSION}
41981   Host setup:       ${host}
41982   Install prefix:   ${prefix}
41983   Compiler:         ${CC}
41984   SSL support:      ${curl_ssl_msg}
41985   SSH support:      ${curl_ssh_msg}
41986   zlib support:     ${curl_zlib_msg}
41987   krb4 support:     ${curl_krb4_msg}
41988   GSSAPI support:   ${curl_gss_msg}
41989   SPNEGO support:   ${curl_spnego_msg}
41990   TLS-SRP support:  ${curl_tls_srp_msg}
41991   resolver:         ${curl_res_msg}
41992   ipv6 support:     ${curl_ipv6_msg}
41993   IDN support:      ${curl_idn_msg}
41994   Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
41995   Built-in manual:  ${curl_manual_msg}
41996   --libcurl option: ${curl_libcurl_msg}
41997   Verbose errors:   ${curl_verbose_msg}
41998   SSPI support:     ${curl_sspi_msg}
41999   ca cert bundle:   ${ca}
42000   ca cert path:     ${capath}
42001   LDAP support:     ${curl_ldap_msg}
42002   LDAPS support:    ${curl_ldaps_msg}
42003   RTSP support:     ${curl_rtsp_msg}
42004   RTMP support:     ${curl_rtmp_msg}
42005   metalink support: ${curl_mtlnk_msg}
42006   Protocols:        ${SUPPORT_PROTOCOLS}
42007 " >&5
42008 $as_echo "$as_me: Configured to build curl/libcurl:
42009
42010   curl version:     ${CURLVERSION}
42011   Host setup:       ${host}
42012   Install prefix:   ${prefix}
42013   Compiler:         ${CC}
42014   SSL support:      ${curl_ssl_msg}
42015   SSH support:      ${curl_ssh_msg}
42016   zlib support:     ${curl_zlib_msg}
42017   krb4 support:     ${curl_krb4_msg}
42018   GSSAPI support:   ${curl_gss_msg}
42019   SPNEGO support:   ${curl_spnego_msg}
42020   TLS-SRP support:  ${curl_tls_srp_msg}
42021   resolver:         ${curl_res_msg}
42022   ipv6 support:     ${curl_ipv6_msg}
42023   IDN support:      ${curl_idn_msg}
42024   Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
42025   Built-in manual:  ${curl_manual_msg}
42026   --libcurl option: ${curl_libcurl_msg}
42027   Verbose errors:   ${curl_verbose_msg}
42028   SSPI support:     ${curl_sspi_msg}
42029   ca cert bundle:   ${ca}
42030   ca cert path:     ${capath}
42031   LDAP support:     ${curl_ldap_msg}
42032   LDAPS support:    ${curl_ldaps_msg}
42033   RTSP support:     ${curl_rtsp_msg}
42034   RTMP support:     ${curl_rtmp_msg}
42035   metalink support: ${curl_mtlnk_msg}
42036   Protocols:        ${SUPPORT_PROTOCOLS}
42037 " >&6;}
42038
42039 if test "x$soname_bump" = "xyes"; then
42040
42041 cat <<EOM
42042   SONAME bump:     yes - WARNING: this library will be built with the SONAME
42043                    number bumped due to (a detected) ABI breakage.
42044                    See lib/README.curl_off_t for details on this.
42045 EOM
42046
42047 fi
42048