34cbe8c0f992d82497005b1f2e30dc90ecb4a29d
[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 - 2014 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 USE_UNIX_SOCKETS
894 BUILD_LIBHOSTNAME_FALSE
895 BUILD_LIBHOSTNAME_TRUE
896 USE_EMBEDDED_ARES_FALSE
897 USE_EMBEDDED_ARES_TRUE
898 USE_ARES
899 subdirs
900 USE_MANUAL_FALSE
901 USE_MANUAL_TRUE
902 MANOPT
903 NROFF
904 PERL
905 IPV6_ENABLED
906 USE_NGHTTP2
907 IDN_ENABLED
908 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
909 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
910 CURL_LT_SHLIB_VERSIONED_FLAVOUR
911 USE_LIBRTMP
912 USE_LIBSSH2
913 LIBMETALINK_CPPFLAGS
914 LIBMETALINK_LDFLAGS
915 LIBMETALINK_LIBS
916 CURL_CA_BUNDLE
917 SSL_ENABLED
918 USE_AXTLS
919 NSS_LIBS
920 USE_NSS
921 USE_CYASSL
922 USE_POLARSSL
923 HAVE_GNUTLS_SRP
924 USE_GNUTLS_NETTLE
925 USE_GNUTLS
926 HAVE_OPENSSL_SRP
927 RANDOM_FILE
928 SSL_LIBS
929 PKGCONFIG
930 USE_DARWINSSL
931 USE_WINDOWS_SSPI
932 USE_SCHANNEL
933 USE_OPENLDAP
934 ZLIB_LIBS
935 HAVE_LIBZ_FALSE
936 HAVE_LIBZ_TRUE
937 HAVE_LIBZ
938 CURL_DISABLE_GOPHER
939 CURL_DISABLE_SMTP
940 CURL_DISABLE_SMB
941 CURL_DISABLE_IMAP
942 CURL_DISABLE_POP3
943 CURL_DISABLE_TFTP
944 CURL_DISABLE_TELNET
945 CURL_DISABLE_DICT
946 CURL_DISABLE_PROXY
947 HAVE_LDAP_SSL
948 CURL_DISABLE_LDAPS
949 CURL_DISABLE_LDAP
950 CURL_DISABLE_FILE
951 CURL_DISABLE_FTP
952 CURL_DISABLE_RTSP
953 CURL_DISABLE_HTTP
954 DOING_NATIVE_WINDOWS_FALSE
955 DOING_NATIVE_WINDOWS_TRUE
956 BUILD_UNITTESTS_FALSE
957 BUILD_UNITTESTS_TRUE
958 CURLDEBUG_FALSE
959 CURLDEBUG_TRUE
960 USE_EXPLICIT_LIB_DEPS_FALSE
961 USE_EXPLICIT_LIB_DEPS_TRUE
962 REQUIRE_LIB_DEPS
963 CPPFLAG_CURL_STATICLIB
964 USE_CPPFLAG_CURL_STATICLIB_FALSE
965 USE_CPPFLAG_CURL_STATICLIB_TRUE
966 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
967 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
968 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
969 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
970 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
971 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
972 OTOOL64
973 OTOOL
974 LIPO
975 NMEDIT
976 DSYMUTIL
977 MANIFEST_TOOL
978 RANLIB
979 ac_ct_AR
980 LN_S
981 NM
982 ac_ct_DUMPBIN
983 DUMPBIN
984 LD
985 FGREP
986 LIBTOOL
987 OBJDUMP
988 DLLTOOL
989 AS
990 host_os
991 host_vendor
992 host_cpu
993 host
994 build_os
995 build_vendor
996 build_cpu
997 build
998 PKGADD_VENDOR
999 PKGADD_NAME
1000 PKGADD_PKG
1001 VERSIONNUM
1002 CURLVERSION
1003 AM_BACKSLASH
1004 AM_DEFAULT_VERBOSITY
1005 AM_DEFAULT_V
1006 AM_V
1007 am__fastdepCC_FALSE
1008 am__fastdepCC_TRUE
1009 CCDEPMODE
1010 am__nodep
1011 AMDEPBACKSLASH
1012 AMDEP_FALSE
1013 AMDEP_TRUE
1014 am__quote
1015 am__include
1016 DEPDIR
1017 am__untar
1018 am__tar
1019 AMTAR
1020 am__leading_dot
1021 SET_MAKE
1022 AWK
1023 mkdir_p
1024 MKDIR_P
1025 INSTALL_STRIP_PROGRAM
1026 STRIP
1027 install_sh
1028 MAKEINFO
1029 AUTOHEADER
1030 AUTOMAKE
1031 AUTOCONF
1032 ACLOCAL
1033 VERSION
1034 PACKAGE
1035 CYGPATH_W
1036 am__isrc
1037 CPP
1038 OBJEXT
1039 EXEEXT
1040 ac_ct_CC
1041 CPPFLAGS
1042 LDFLAGS
1043 CFLAGS
1044 CC
1045 INSTALL_DATA
1046 INSTALL_SCRIPT
1047 INSTALL_PROGRAM
1048 libext
1049 AR
1050 EGREP
1051 GREP
1052 SED
1053 CURL_CFLAG_EXTRAS
1054 CONFIGURE_OPTIONS
1055 MAINT
1056 MAINTAINER_MODE_FALSE
1057 MAINTAINER_MODE_TRUE
1058 target_alias
1059 host_alias
1060 build_alias
1061 LIBS
1062 ECHO_T
1063 ECHO_N
1064 ECHO_C
1065 DEFS
1066 mandir
1067 localedir
1068 libdir
1069 psdir
1070 pdfdir
1071 dvidir
1072 htmldir
1073 infodir
1074 docdir
1075 oldincludedir
1076 includedir
1077 localstatedir
1078 sharedstatedir
1079 sysconfdir
1080 datadir
1081 datarootdir
1082 libexecdir
1083 sbindir
1084 bindir
1085 program_transform_name
1086 prefix
1087 exec_prefix
1088 PACKAGE_URL
1089 PACKAGE_BUGREPORT
1090 PACKAGE_STRING
1091 PACKAGE_VERSION
1092 PACKAGE_TARNAME
1093 PACKAGE_NAME
1094 SHELL
1095 PATH_SEPARATOR'
1096 ac_subst_files=''
1097 ac_user_opts='
1098 enable_option_checking
1099 enable_maintainer_mode
1100 enable_debug
1101 enable_optimize
1102 enable_warnings
1103 enable_werror
1104 enable_curldebug
1105 enable_symbol_hiding
1106 enable_hidden_symbols
1107 enable_ares
1108 enable_rt
1109 enable_dependency_tracking
1110 enable_silent_rules
1111 enable_largefile
1112 enable_shared
1113 enable_static
1114 with_pic
1115 enable_fast_install
1116 with_gnu_ld
1117 with_sysroot
1118 enable_libtool_lock
1119 enable_http
1120 enable_ftp
1121 enable_file
1122 enable_ldap
1123 enable_ldaps
1124 enable_rtsp
1125 enable_proxy
1126 enable_dict
1127 enable_telnet
1128 enable_tftp
1129 enable_pop3
1130 enable_imap
1131 enable_smb
1132 enable_smtp
1133 enable_gopher
1134 enable_manual
1135 enable_libcurl_option
1136 enable_libgcc
1137 with_zlib
1138 with_ldap_lib
1139 with_lber_lib
1140 enable_ipv6
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 with_nghttp2
1163 enable_threaded_resolver
1164 enable_verbose
1165 enable_sspi
1166 enable_crypto_auth
1167 enable_ntlm_wb
1168 enable_tls_srp
1169 enable_unix_sockets
1170 enable_cookies
1171 enable_soname_bump
1172 '
1173       ac_precious_vars='build_alias
1174 host_alias
1175 target_alias
1176 CC
1177 CFLAGS
1178 LDFLAGS
1179 LIBS
1180 CPPFLAGS
1181 CPP'
1182 ac_subdirs_all='ares'
1183
1184 # Initialize some variables set by options.
1185 ac_init_help=
1186 ac_init_version=false
1187 ac_unrecognized_opts=
1188 ac_unrecognized_sep=
1189 # The variables have the same names as the options, with
1190 # dashes changed to underlines.
1191 cache_file=/dev/null
1192 exec_prefix=NONE
1193 no_create=
1194 no_recursion=
1195 prefix=NONE
1196 program_prefix=NONE
1197 program_suffix=NONE
1198 program_transform_name=s,x,x,
1199 silent=
1200 site=
1201 srcdir=
1202 verbose=
1203 x_includes=NONE
1204 x_libraries=NONE
1205
1206 # Installation directory options.
1207 # These are left unexpanded so users can "make install exec_prefix=/foo"
1208 # and all the variables that are supposed to be based on exec_prefix
1209 # by default will actually change.
1210 # Use braces instead of parens because sh, perl, etc. also accept them.
1211 # (The list follows the same order as the GNU Coding Standards.)
1212 bindir='${exec_prefix}/bin'
1213 sbindir='${exec_prefix}/sbin'
1214 libexecdir='${exec_prefix}/libexec'
1215 datarootdir='${prefix}/share'
1216 datadir='${datarootdir}'
1217 sysconfdir='${prefix}/etc'
1218 sharedstatedir='${prefix}/com'
1219 localstatedir='${prefix}/var'
1220 includedir='${prefix}/include'
1221 oldincludedir='/usr/include'
1222 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1223 infodir='${datarootdir}/info'
1224 htmldir='${docdir}'
1225 dvidir='${docdir}'
1226 pdfdir='${docdir}'
1227 psdir='${docdir}'
1228 libdir='${exec_prefix}/lib'
1229 localedir='${datarootdir}/locale'
1230 mandir='${datarootdir}/man'
1231
1232 ac_prev=
1233 ac_dashdash=
1234 for ac_option
1235 do
1236   # If the previous option needs an argument, assign it.
1237   if test -n "$ac_prev"; then
1238     eval $ac_prev=\$ac_option
1239     ac_prev=
1240     continue
1241   fi
1242
1243   case $ac_option in
1244   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1245   *=)   ac_optarg= ;;
1246   *)    ac_optarg=yes ;;
1247   esac
1248
1249   # Accept the important Cygnus configure options, so we can diagnose typos.
1250
1251   case $ac_dashdash$ac_option in
1252   --)
1253     ac_dashdash=yes ;;
1254
1255   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1256     ac_prev=bindir ;;
1257   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1258     bindir=$ac_optarg ;;
1259
1260   -build | --build | --buil | --bui | --bu)
1261     ac_prev=build_alias ;;
1262   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1263     build_alias=$ac_optarg ;;
1264
1265   -cache-file | --cache-file | --cache-fil | --cache-fi \
1266   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1267     ac_prev=cache_file ;;
1268   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1269   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1270     cache_file=$ac_optarg ;;
1271
1272   --config-cache | -C)
1273     cache_file=config.cache ;;
1274
1275   -datadir | --datadir | --datadi | --datad)
1276     ac_prev=datadir ;;
1277   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1278     datadir=$ac_optarg ;;
1279
1280   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1281   | --dataroo | --dataro | --datar)
1282     ac_prev=datarootdir ;;
1283   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1284   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1285     datarootdir=$ac_optarg ;;
1286
1287   -disable-* | --disable-*)
1288     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1289     # Reject names that are not valid shell variable names.
1290     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291       as_fn_error $? "invalid feature name: $ac_useropt"
1292     ac_useropt_orig=$ac_useropt
1293     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1294     case $ac_user_opts in
1295       *"
1296 "enable_$ac_useropt"
1297 "*) ;;
1298       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1299          ac_unrecognized_sep=', ';;
1300     esac
1301     eval enable_$ac_useropt=no ;;
1302
1303   -docdir | --docdir | --docdi | --doc | --do)
1304     ac_prev=docdir ;;
1305   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1306     docdir=$ac_optarg ;;
1307
1308   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1309     ac_prev=dvidir ;;
1310   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1311     dvidir=$ac_optarg ;;
1312
1313   -enable-* | --enable-*)
1314     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1315     # Reject names that are not valid shell variable names.
1316     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317       as_fn_error $? "invalid feature name: $ac_useropt"
1318     ac_useropt_orig=$ac_useropt
1319     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1320     case $ac_user_opts in
1321       *"
1322 "enable_$ac_useropt"
1323 "*) ;;
1324       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1325          ac_unrecognized_sep=', ';;
1326     esac
1327     eval enable_$ac_useropt=\$ac_optarg ;;
1328
1329   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1330   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1331   | --exec | --exe | --ex)
1332     ac_prev=exec_prefix ;;
1333   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1334   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1335   | --exec=* | --exe=* | --ex=*)
1336     exec_prefix=$ac_optarg ;;
1337
1338   -gas | --gas | --ga | --g)
1339     # Obsolete; use --with-gas.
1340     with_gas=yes ;;
1341
1342   -help | --help | --hel | --he | -h)
1343     ac_init_help=long ;;
1344   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1345     ac_init_help=recursive ;;
1346   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1347     ac_init_help=short ;;
1348
1349   -host | --host | --hos | --ho)
1350     ac_prev=host_alias ;;
1351   -host=* | --host=* | --hos=* | --ho=*)
1352     host_alias=$ac_optarg ;;
1353
1354   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1355     ac_prev=htmldir ;;
1356   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1357   | --ht=*)
1358     htmldir=$ac_optarg ;;
1359
1360   -includedir | --includedir | --includedi | --included | --include \
1361   | --includ | --inclu | --incl | --inc)
1362     ac_prev=includedir ;;
1363   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1364   | --includ=* | --inclu=* | --incl=* | --inc=*)
1365     includedir=$ac_optarg ;;
1366
1367   -infodir | --infodir | --infodi | --infod | --info | --inf)
1368     ac_prev=infodir ;;
1369   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1370     infodir=$ac_optarg ;;
1371
1372   -libdir | --libdir | --libdi | --libd)
1373     ac_prev=libdir ;;
1374   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1375     libdir=$ac_optarg ;;
1376
1377   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1378   | --libexe | --libex | --libe)
1379     ac_prev=libexecdir ;;
1380   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1381   | --libexe=* | --libex=* | --libe=*)
1382     libexecdir=$ac_optarg ;;
1383
1384   -localedir | --localedir | --localedi | --localed | --locale)
1385     ac_prev=localedir ;;
1386   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1387     localedir=$ac_optarg ;;
1388
1389   -localstatedir | --localstatedir | --localstatedi | --localstated \
1390   | --localstate | --localstat | --localsta | --localst | --locals)
1391     ac_prev=localstatedir ;;
1392   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1393   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1394     localstatedir=$ac_optarg ;;
1395
1396   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1397     ac_prev=mandir ;;
1398   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1399     mandir=$ac_optarg ;;
1400
1401   -nfp | --nfp | --nf)
1402     # Obsolete; use --without-fp.
1403     with_fp=no ;;
1404
1405   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1406   | --no-cr | --no-c | -n)
1407     no_create=yes ;;
1408
1409   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1410   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1411     no_recursion=yes ;;
1412
1413   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1414   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1415   | --oldin | --oldi | --old | --ol | --o)
1416     ac_prev=oldincludedir ;;
1417   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1418   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1419   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1420     oldincludedir=$ac_optarg ;;
1421
1422   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1423     ac_prev=prefix ;;
1424   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1425     prefix=$ac_optarg ;;
1426
1427   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1428   | --program-pre | --program-pr | --program-p)
1429     ac_prev=program_prefix ;;
1430   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1431   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1432     program_prefix=$ac_optarg ;;
1433
1434   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1435   | --program-suf | --program-su | --program-s)
1436     ac_prev=program_suffix ;;
1437   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1438   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1439     program_suffix=$ac_optarg ;;
1440
1441   -program-transform-name | --program-transform-name \
1442   | --program-transform-nam | --program-transform-na \
1443   | --program-transform-n | --program-transform- \
1444   | --program-transform | --program-transfor \
1445   | --program-transfo | --program-transf \
1446   | --program-trans | --program-tran \
1447   | --progr-tra | --program-tr | --program-t)
1448     ac_prev=program_transform_name ;;
1449   -program-transform-name=* | --program-transform-name=* \
1450   | --program-transform-nam=* | --program-transform-na=* \
1451   | --program-transform-n=* | --program-transform-=* \
1452   | --program-transform=* | --program-transfor=* \
1453   | --program-transfo=* | --program-transf=* \
1454   | --program-trans=* | --program-tran=* \
1455   | --progr-tra=* | --program-tr=* | --program-t=*)
1456     program_transform_name=$ac_optarg ;;
1457
1458   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1459     ac_prev=pdfdir ;;
1460   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1461     pdfdir=$ac_optarg ;;
1462
1463   -psdir | --psdir | --psdi | --psd | --ps)
1464     ac_prev=psdir ;;
1465   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1466     psdir=$ac_optarg ;;
1467
1468   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1469   | -silent | --silent | --silen | --sile | --sil)
1470     silent=yes ;;
1471
1472   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1473     ac_prev=sbindir ;;
1474   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1475   | --sbi=* | --sb=*)
1476     sbindir=$ac_optarg ;;
1477
1478   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1479   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1480   | --sharedst | --shareds | --shared | --share | --shar \
1481   | --sha | --sh)
1482     ac_prev=sharedstatedir ;;
1483   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1484   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1485   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1486   | --sha=* | --sh=*)
1487     sharedstatedir=$ac_optarg ;;
1488
1489   -site | --site | --sit)
1490     ac_prev=site ;;
1491   -site=* | --site=* | --sit=*)
1492     site=$ac_optarg ;;
1493
1494   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1495     ac_prev=srcdir ;;
1496   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1497     srcdir=$ac_optarg ;;
1498
1499   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1500   | --syscon | --sysco | --sysc | --sys | --sy)
1501     ac_prev=sysconfdir ;;
1502   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1503   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1504     sysconfdir=$ac_optarg ;;
1505
1506   -target | --target | --targe | --targ | --tar | --ta | --t)
1507     ac_prev=target_alias ;;
1508   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1509     target_alias=$ac_optarg ;;
1510
1511   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1512     verbose=yes ;;
1513
1514   -version | --version | --versio | --versi | --vers | -V)
1515     ac_init_version=: ;;
1516
1517   -with-* | --with-*)
1518     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1519     # Reject names that are not valid shell variable names.
1520     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1521       as_fn_error $? "invalid package name: $ac_useropt"
1522     ac_useropt_orig=$ac_useropt
1523     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1524     case $ac_user_opts in
1525       *"
1526 "with_$ac_useropt"
1527 "*) ;;
1528       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1529          ac_unrecognized_sep=', ';;
1530     esac
1531     eval with_$ac_useropt=\$ac_optarg ;;
1532
1533   -without-* | --without-*)
1534     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1535     # Reject names that are not valid shell variable names.
1536     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1537       as_fn_error $? "invalid package name: $ac_useropt"
1538     ac_useropt_orig=$ac_useropt
1539     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1540     case $ac_user_opts in
1541       *"
1542 "with_$ac_useropt"
1543 "*) ;;
1544       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1545          ac_unrecognized_sep=', ';;
1546     esac
1547     eval with_$ac_useropt=no ;;
1548
1549   --x)
1550     # Obsolete; use --with-x.
1551     with_x=yes ;;
1552
1553   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1554   | --x-incl | --x-inc | --x-in | --x-i)
1555     ac_prev=x_includes ;;
1556   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1557   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1558     x_includes=$ac_optarg ;;
1559
1560   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1561   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1562     ac_prev=x_libraries ;;
1563   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1564   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1565     x_libraries=$ac_optarg ;;
1566
1567   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1568 Try \`$0 --help' for more information"
1569     ;;
1570
1571   *=*)
1572     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1573     # Reject names that are not valid shell variable names.
1574     case $ac_envvar in #(
1575       '' | [0-9]* | *[!_$as_cr_alnum]* )
1576       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1577     esac
1578     eval $ac_envvar=\$ac_optarg
1579     export $ac_envvar ;;
1580
1581   *)
1582     # FIXME: should be removed in autoconf 3.0.
1583     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1584     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1585       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1586     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1587     ;;
1588
1589   esac
1590 done
1591
1592 if test -n "$ac_prev"; then
1593   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1594   as_fn_error $? "missing argument to $ac_option"
1595 fi
1596
1597 if test -n "$ac_unrecognized_opts"; then
1598   case $enable_option_checking in
1599     no) ;;
1600     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1601     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1602   esac
1603 fi
1604
1605 # Check all directory arguments for consistency.
1606 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1607                 datadir sysconfdir sharedstatedir localstatedir includedir \
1608                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1609                 libdir localedir mandir
1610 do
1611   eval ac_val=\$$ac_var
1612   # Remove trailing slashes.
1613   case $ac_val in
1614     */ )
1615       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1616       eval $ac_var=\$ac_val;;
1617   esac
1618   # Be sure to have absolute directory names.
1619   case $ac_val in
1620     [\\/$]* | ?:[\\/]* )  continue;;
1621     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1622   esac
1623   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1624 done
1625
1626 # There might be people who depend on the old broken behavior: `$host'
1627 # used to hold the argument of --host etc.
1628 # FIXME: To remove some day.
1629 build=$build_alias
1630 host=$host_alias
1631 target=$target_alias
1632
1633 # FIXME: To remove some day.
1634 if test "x$host_alias" != x; then
1635   if test "x$build_alias" = x; then
1636     cross_compiling=maybe
1637   elif test "x$build_alias" != "x$host_alias"; then
1638     cross_compiling=yes
1639   fi
1640 fi
1641
1642 ac_tool_prefix=
1643 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1644
1645 test "$silent" = yes && exec 6>/dev/null
1646
1647
1648 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1649 ac_ls_di=`ls -di .` &&
1650 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1651   as_fn_error $? "working directory cannot be determined"
1652 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1653   as_fn_error $? "pwd does not report name of working directory"
1654
1655
1656 # Find the source files, if location was not specified.
1657 if test -z "$srcdir"; then
1658   ac_srcdir_defaulted=yes
1659   # Try the directory containing this script, then the parent directory.
1660   ac_confdir=`$as_dirname -- "$as_myself" ||
1661 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1662          X"$as_myself" : 'X\(//\)[^/]' \| \
1663          X"$as_myself" : 'X\(//\)$' \| \
1664          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1665 $as_echo X"$as_myself" |
1666     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1667             s//\1/
1668             q
1669           }
1670           /^X\(\/\/\)[^/].*/{
1671             s//\1/
1672             q
1673           }
1674           /^X\(\/\/\)$/{
1675             s//\1/
1676             q
1677           }
1678           /^X\(\/\).*/{
1679             s//\1/
1680             q
1681           }
1682           s/.*/./; q'`
1683   srcdir=$ac_confdir
1684   if test ! -r "$srcdir/$ac_unique_file"; then
1685     srcdir=..
1686   fi
1687 else
1688   ac_srcdir_defaulted=no
1689 fi
1690 if test ! -r "$srcdir/$ac_unique_file"; then
1691   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1692   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1693 fi
1694 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1695 ac_abs_confdir=`(
1696         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1697         pwd)`
1698 # When building in place, set srcdir=.
1699 if test "$ac_abs_confdir" = "$ac_pwd"; then
1700   srcdir=.
1701 fi
1702 # Remove unnecessary trailing slashes from srcdir.
1703 # Double slashes in file names in object file debugging info
1704 # mess up M-x gdb in Emacs.
1705 case $srcdir in
1706 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1707 esac
1708 for ac_var in $ac_precious_vars; do
1709   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1710   eval ac_env_${ac_var}_value=\$${ac_var}
1711   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1712   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1713 done
1714
1715 #
1716 # Report the --help message.
1717 #
1718 if test "$ac_init_help" = "long"; then
1719   # Omit some internal or obsolete options to make the list less imposing.
1720   # This message is too long to be a string in the A/UX 3.1 sh.
1721   cat <<_ACEOF
1722 \`configure' configures curl - to adapt to many kinds of systems.
1723
1724 Usage: $0 [OPTION]... [VAR=VALUE]...
1725
1726 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1727 VAR=VALUE.  See below for descriptions of some of the useful variables.
1728
1729 Defaults for the options are specified in brackets.
1730
1731 Configuration:
1732   -h, --help              display this help and exit
1733       --help=short        display options specific to this package
1734       --help=recursive    display the short help of all the included packages
1735   -V, --version           display version information and exit
1736   -q, --quiet, --silent   do not print \`checking ...' messages
1737       --cache-file=FILE   cache test results in FILE [disabled]
1738   -C, --config-cache      alias for \`--cache-file=config.cache'
1739   -n, --no-create         do not create output files
1740       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1741
1742 Installation directories:
1743   --prefix=PREFIX         install architecture-independent files in PREFIX
1744                           [$ac_default_prefix]
1745   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1746                           [PREFIX]
1747
1748 By default, \`make install' will install all the files in
1749 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1750 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1751 for instance \`--prefix=\$HOME'.
1752
1753 For better control, use the options below.
1754
1755 Fine tuning of the installation directories:
1756   --bindir=DIR            user executables [EPREFIX/bin]
1757   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1758   --libexecdir=DIR        program executables [EPREFIX/libexec]
1759   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1760   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1761   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1762   --libdir=DIR            object code libraries [EPREFIX/lib]
1763   --includedir=DIR        C header files [PREFIX/include]
1764   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1765   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1766   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1767   --infodir=DIR           info documentation [DATAROOTDIR/info]
1768   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1769   --mandir=DIR            man documentation [DATAROOTDIR/man]
1770   --docdir=DIR            documentation root [DATAROOTDIR/doc/curl]
1771   --htmldir=DIR           html documentation [DOCDIR]
1772   --dvidir=DIR            dvi documentation [DOCDIR]
1773   --pdfdir=DIR            pdf documentation [DOCDIR]
1774   --psdir=DIR             ps documentation [DOCDIR]
1775 _ACEOF
1776
1777   cat <<\_ACEOF
1778
1779 Program names:
1780   --program-prefix=PREFIX            prepend PREFIX to installed program names
1781   --program-suffix=SUFFIX            append SUFFIX to installed program names
1782   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1783
1784 System types:
1785   --build=BUILD     configure for building on BUILD [guessed]
1786   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1787 _ACEOF
1788 fi
1789
1790 if test -n "$ac_init_help"; then
1791   case $ac_init_help in
1792      short | recursive ) echo "Configuration of curl -:";;
1793    esac
1794   cat <<\_ACEOF
1795
1796 Optional Features:
1797   --disable-option-checking  ignore unrecognized --enable/--with options
1798   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1799   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1800   --enable-maintainer-mode
1801                           enable make rules and dependencies not useful (and
1802                           sometimes confusing) to the casual installer
1803   --enable-debug          Enable debug build options
1804   --disable-debug         Disable debug build options
1805   --enable-optimize       Enable compiler optimizations
1806   --disable-optimize      Disable compiler optimizations
1807   --enable-warnings       Enable strict compiler warnings
1808   --disable-warnings      Disable strict compiler warnings
1809   --enable-werror         Enable compiler warnings as errors
1810   --disable-werror        Disable compiler warnings as errors
1811   --enable-curldebug      Enable curl debug memory tracking
1812   --disable-curldebug     Disable curl debug memory tracking
1813   --enable-symbol-hiding  Enable hiding of library internal symbols
1814   --disable-symbol-hiding Disable hiding of library internal symbols
1815   --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1816   --disable-hidden-symbols
1817                           To be deprecated, use --disable-symbol-hiding
1818   --enable-ares[=PATH]    Enable c-ares for DNS lookups
1819   --disable-ares          Disable c-ares for DNS lookups
1820   --disable-rt            disable dependency on -lrt
1821   --enable-dependency-tracking
1822                           do not reject slow dependency extractors
1823   --disable-dependency-tracking
1824                           speeds up one-time build
1825   --enable-silent-rules   less verbose build output (undo: "make V=1")
1826   --disable-silent-rules  verbose build output (undo: "make V=0")
1827   --disable-largefile     omit support for large files
1828   --enable-shared[=PKGS]  build shared libraries [default=yes]
1829   --enable-static[=PKGS]  build static libraries [default=yes]
1830   --enable-fast-install[=PKGS]
1831                           optimize for fast installation [default=yes]
1832   --disable-libtool-lock  avoid locking (might break parallel builds)
1833   --enable-http           Enable HTTP support
1834   --disable-http          Disable HTTP support
1835   --enable-ftp            Enable FTP support
1836   --disable-ftp           Disable FTP support
1837   --enable-file           Enable FILE support
1838   --disable-file          Disable FILE support
1839   --enable-ldap           Enable LDAP support
1840   --disable-ldap          Disable LDAP support
1841   --enable-ldaps          Enable LDAPS support
1842   --disable-ldaps         Disable LDAPS support
1843   --enable-rtsp           Enable RTSP support
1844   --disable-rtsp          Disable RTSP support
1845   --enable-proxy          Enable proxy support
1846   --disable-proxy         Disable proxy support
1847   --enable-dict           Enable DICT support
1848   --disable-dict          Disable DICT support
1849   --enable-telnet         Enable TELNET support
1850   --disable-telnet        Disable TELNET support
1851   --enable-tftp           Enable TFTP support
1852   --disable-tftp          Disable TFTP support
1853   --enable-pop3           Enable POP3 support
1854   --disable-pop3          Disable POP3 support
1855   --enable-imap           Enable IMAP support
1856   --disable-imap          Disable IMAP support
1857   --enable-smb            Enable SMB/CIFS support
1858   --disable-smb           Disable SMB/CIFS support
1859   --enable-smtp           Enable SMTP support
1860   --disable-smtp          Disable SMTP support
1861   --enable-gopher         Enable Gopher support
1862   --disable-gopher        Disable Gopher support
1863   --enable-manual         Enable built-in manual
1864   --disable-manual        Disable built-in manual
1865   --enable-libcurl-option Enable --libcurl C code generation support
1866   --disable-libcurl-option
1867                           Disable --libcurl C code generation support
1868   --enable-libgcc         use libgcc when linking
1869   --enable-ipv6           Enable IPv6 (with IPv4) support
1870   --disable-ipv6          Disable IPv6 support
1871   --enable-versioned-symbols
1872                           Enable versioned symbols in shared library
1873   --disable-versioned-symbols
1874                           Disable versioned symbols in shared library
1875   --enable-threaded-resolver
1876                           Enable threaded resolver
1877   --disable-threaded-resolver
1878                           Disable threaded resolver
1879   --enable-verbose        Enable verbose strings
1880   --disable-verbose       Disable verbose strings
1881   --enable-sspi           Enable SSPI
1882   --disable-sspi          Disable SSPI
1883   --enable-crypto-auth    Enable cryptographic authentication
1884   --disable-crypto-auth   Disable cryptographic authentication
1885   --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1886                           helper, where FILE is ntlm_auth's absolute filename
1887                           (default: /usr/bin/ntlm_auth)
1888   --disable-ntlm-wb       Disable NTLM delegation to winbind's ntlm_auth
1889                           helper
1890   --enable-tls-srp        Enable TLS-SRP authentication
1891   --disable-tls-srp       Disable TLS-SRP authentication
1892   --enable-unix-sockets   Enable Unix domain sockets
1893   --disable-unix-sockets  Disable Unix domain sockets
1894   --enable-cookies        Enable cookies support
1895   --disable-cookies       Disable cookies support
1896   --enable-soname-bump    Enable enforced SONAME bump
1897   --disable-soname-bump   Disable enforced SONAME bump
1898
1899 Optional Packages:
1900   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1901   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1902   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1903                           both]
1904   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1905   --with-sysroot=DIR Search for dependent libraries within DIR
1906                         (or the compiler's sysroot if not specified).
1907   --with-zlib=PATH        search for zlib in PATH
1908   --without-zlib          disable use of zlib
1909   --with-ldap-lib=libname Specify name of ldap lib file
1910   --with-lber-lib=libname Specify name of lber lib file
1911   --with-gssapi-includes=DIR
1912                           Specify location of GSS-API headers
1913   --with-gssapi-libs=DIR  Specify location of GSS-API libs
1914   --with-gssapi=DIR       Where to look for GSS-API
1915   --with-winssl           enable Windows native SSL/TLS
1916   --without-winssl        disable Windows native SSL/TLS
1917   --with-darwinssl        enable iOS/Mac OS X native SSL/TLS
1918   --without-darwinssl     disable iOS/Mac OS X native SSL/TLS
1919   --with-ssl=PATH         Where to look for OpenSSL, PATH points to the SSL
1920                           installation (default: /usr/local/ssl); when
1921                           possible, set the PKG_CONFIG_PATH environment
1922                           variable instead of using this option
1923   --without-ssl           disable OpenSSL
1924   --with-egd-socket=FILE  Entropy Gathering Daemon socket pathname
1925   --with-random=FILE      read randomness from FILE (default=/dev/urandom)
1926   --with-gnutls=PATH      where to look for GnuTLS, PATH points to the
1927                           installation root
1928   --without-gnutls        disable GnuTLS detection
1929   --with-polarssl=PATH    where to look for PolarSSL, PATH points to the
1930                           installation root
1931   --without-polarssl      disable PolarSSL detection
1932   --with-cyassl=PATH      where to look for CyaSSL, PATH points to the
1933                           installation root (default: system lib default)
1934   --without-cyassl        disable CyaSSL detection
1935   --with-nss=PATH         where to look for NSS, PATH points to the
1936                           installation root
1937   --without-nss           disable NSS detection
1938   --with-axtls=PATH       Where to look for axTLS, PATH points to the axTLS
1939                           installation prefix (default: /usr/local). Ignored
1940                           if another SSL engine is selected.
1941   --without-axtls         disable axTLS
1942   --with-ca-bundle=FILE   File name to use as CA bundle
1943   --without-ca-bundle     Don't use a default CA bundle
1944   --with-ca-path=DIRECTORY
1945                           Directory to use as CA path
1946   --without-ca-path       Don't use a default CA path
1947   --with-libmetalink=PATH where to look for libmetalink, PATH points to the
1948                           installation root
1949   --without-libmetalink   disable libmetalink detection
1950   --with-libssh2=PATH     Where to look for libssh2, PATH points to the
1951                           LIBSSH2 installation; when possible, set the
1952                           PKG_CONFIG_PATH environment variable instead of
1953                           using this option
1954   --without-libssh2       disable LIBSSH2
1955   --with-librtmp=PATH     Where to look for librtmp, PATH points to the
1956                           LIBRTMP installation; when possible, set the
1957                           PKG_CONFIG_PATH environment variable instead of
1958                           using this option
1959   --without-librtmp       disable LIBRTMP
1960   --with-winidn=PATH      enable Windows native IDN
1961   --without-winidn        disable Windows native IDN
1962   --with-libidn=PATH      Enable libidn usage
1963   --without-libidn        Disable libidn usage
1964   --with-nghttp2=PATH     Enable nghttp2 usage
1965   --without-nghttp2       Disable nghttp2 usage
1966
1967 Some influential environment variables:
1968   CC          C compiler command
1969   CFLAGS      C compiler flags
1970   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1971               nonstandard directory <lib dir>
1972   LIBS        libraries to pass to the linker, e.g. -l<library>
1973   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1974               you have headers in a nonstandard directory <include dir>
1975   CPP         C preprocessor
1976
1977 Use these variables to override the choices made by `configure' or to help
1978 it to find libraries and programs with nonstandard names/locations.
1979
1980 Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>.
1981 _ACEOF
1982 ac_status=$?
1983 fi
1984
1985 if test "$ac_init_help" = "recursive"; then
1986   # If there are subdirs, report their specific --help.
1987   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1988     test -d "$ac_dir" ||
1989       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1990       continue
1991     ac_builddir=.
1992
1993 case "$ac_dir" in
1994 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1995 *)
1996   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1997   # A ".." for each directory in $ac_dir_suffix.
1998   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1999   case $ac_top_builddir_sub in
2000   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2001   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2002   esac ;;
2003 esac
2004 ac_abs_top_builddir=$ac_pwd
2005 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2006 # for backward compatibility:
2007 ac_top_builddir=$ac_top_build_prefix
2008
2009 case $srcdir in
2010   .)  # We are building in place.
2011     ac_srcdir=.
2012     ac_top_srcdir=$ac_top_builddir_sub
2013     ac_abs_top_srcdir=$ac_pwd ;;
2014   [\\/]* | ?:[\\/]* )  # Absolute name.
2015     ac_srcdir=$srcdir$ac_dir_suffix;
2016     ac_top_srcdir=$srcdir
2017     ac_abs_top_srcdir=$srcdir ;;
2018   *) # Relative name.
2019     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2020     ac_top_srcdir=$ac_top_build_prefix$srcdir
2021     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2022 esac
2023 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2024
2025     cd "$ac_dir" || { ac_status=$?; continue; }
2026     # Check for guested configure.
2027     if test -f "$ac_srcdir/configure.gnu"; then
2028       echo &&
2029       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2030     elif test -f "$ac_srcdir/configure"; then
2031       echo &&
2032       $SHELL "$ac_srcdir/configure" --help=recursive
2033     else
2034       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2035     fi || ac_status=$?
2036     cd "$ac_pwd" || { ac_status=$?; break; }
2037   done
2038 fi
2039
2040 test -n "$ac_init_help" && exit $ac_status
2041 if $ac_init_version; then
2042   cat <<\_ACEOF
2043 curl configure -
2044 generated by GNU Autoconf 2.69
2045
2046 Copyright (C) 2012 Free Software Foundation, Inc.
2047 This configure script is free software; the Free Software Foundation
2048 gives unlimited permission to copy, distribute and modify it.
2049
2050 Copyright (c) 1998 - 2014 Daniel Stenberg, <daniel@haxx.se>
2051 This configure script may be copied, distributed and modified under the
2052 terms of the curl license; see COPYING for more details
2053 _ACEOF
2054   exit
2055 fi
2056
2057 ## ------------------------ ##
2058 ## Autoconf initialization. ##
2059 ## ------------------------ ##
2060
2061 # ac_fn_c_try_compile LINENO
2062 # --------------------------
2063 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2064 ac_fn_c_try_compile ()
2065 {
2066   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067   rm -f conftest.$ac_objext
2068   if { { ac_try="$ac_compile"
2069 case "(($ac_try" in
2070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2071   *) ac_try_echo=$ac_try;;
2072 esac
2073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2074 $as_echo "$ac_try_echo"; } >&5
2075   (eval "$ac_compile") 2>conftest.err
2076   ac_status=$?
2077   if test -s conftest.err; then
2078     grep -v '^ *+' conftest.err >conftest.er1
2079     cat conftest.er1 >&5
2080     mv -f conftest.er1 conftest.err
2081   fi
2082   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2083   test $ac_status = 0; } && {
2084          test -z "$ac_c_werror_flag" ||
2085          test ! -s conftest.err
2086        } && test -s conftest.$ac_objext; then :
2087   ac_retval=0
2088 else
2089   $as_echo "$as_me: failed program was:" >&5
2090 sed 's/^/| /' conftest.$ac_ext >&5
2091
2092         ac_retval=1
2093 fi
2094   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095   as_fn_set_status $ac_retval
2096
2097 } # ac_fn_c_try_compile
2098
2099 # ac_fn_c_try_cpp LINENO
2100 # ----------------------
2101 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2102 ac_fn_c_try_cpp ()
2103 {
2104   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105   if { { ac_try="$ac_cpp conftest.$ac_ext"
2106 case "(($ac_try" in
2107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108   *) ac_try_echo=$ac_try;;
2109 esac
2110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2111 $as_echo "$ac_try_echo"; } >&5
2112   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2113   ac_status=$?
2114   if test -s conftest.err; then
2115     grep -v '^ *+' conftest.err >conftest.er1
2116     cat conftest.er1 >&5
2117     mv -f conftest.er1 conftest.err
2118   fi
2119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2120   test $ac_status = 0; } > conftest.i && {
2121          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2122          test ! -s conftest.err
2123        }; then :
2124   ac_retval=0
2125 else
2126   $as_echo "$as_me: failed program was:" >&5
2127 sed 's/^/| /' conftest.$ac_ext >&5
2128
2129     ac_retval=1
2130 fi
2131   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132   as_fn_set_status $ac_retval
2133
2134 } # ac_fn_c_try_cpp
2135
2136 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2137 # -------------------------------------------------------
2138 # Tests whether HEADER exists and can be compiled using the include files in
2139 # INCLUDES, setting the cache variable VAR accordingly.
2140 ac_fn_c_check_header_compile ()
2141 {
2142   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2144 $as_echo_n "checking for $2... " >&6; }
2145 if eval \${$3+:} false; then :
2146   $as_echo_n "(cached) " >&6
2147 else
2148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h.  */
2150 $4
2151 #include <$2>
2152 _ACEOF
2153 if ac_fn_c_try_compile "$LINENO"; then :
2154   eval "$3=yes"
2155 else
2156   eval "$3=no"
2157 fi
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 fi
2160 eval ac_res=\$$3
2161                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162 $as_echo "$ac_res" >&6; }
2163   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2164
2165 } # ac_fn_c_check_header_compile
2166
2167 # ac_fn_c_try_run LINENO
2168 # ----------------------
2169 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2170 # that executables *can* be run.
2171 ac_fn_c_try_run ()
2172 {
2173   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174   if { { ac_try="$ac_link"
2175 case "(($ac_try" in
2176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2177   *) ac_try_echo=$ac_try;;
2178 esac
2179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2180 $as_echo "$ac_try_echo"; } >&5
2181   (eval "$ac_link") 2>&5
2182   ac_status=$?
2183   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2184   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2185   { { case "(($ac_try" in
2186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2187   *) ac_try_echo=$ac_try;;
2188 esac
2189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2190 $as_echo "$ac_try_echo"; } >&5
2191   (eval "$ac_try") 2>&5
2192   ac_status=$?
2193   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2194   test $ac_status = 0; }; }; then :
2195   ac_retval=0
2196 else
2197   $as_echo "$as_me: program exited with status $ac_status" >&5
2198        $as_echo "$as_me: failed program was:" >&5
2199 sed 's/^/| /' conftest.$ac_ext >&5
2200
2201        ac_retval=$ac_status
2202 fi
2203   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2204   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205   as_fn_set_status $ac_retval
2206
2207 } # ac_fn_c_try_run
2208
2209 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2210 # --------------------------------------------
2211 # Tries to find the compile-time value of EXPR in a program that includes
2212 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2213 # computed
2214 ac_fn_c_compute_int ()
2215 {
2216   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217   if test "$cross_compiling" = yes; then
2218     # Depending upon the size, compute the lo and hi bounds.
2219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220 /* end confdefs.h.  */
2221 $4
2222 int main (void)
2223 {
2224 static int test_array [1 - 2 * !(($2) >= 0)];
2225 test_array [0] = 0;
2226 return test_array [0];
2227
2228  ;
2229  return 0;
2230 }
2231 _ACEOF
2232 if ac_fn_c_try_compile "$LINENO"; then :
2233   ac_lo=0 ac_mid=0
2234   while :; do
2235     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h.  */
2237 $4
2238 int main (void)
2239 {
2240 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2241 test_array [0] = 0;
2242 return test_array [0];
2243
2244  ;
2245  return 0;
2246 }
2247 _ACEOF
2248 if ac_fn_c_try_compile "$LINENO"; then :
2249   ac_hi=$ac_mid; break
2250 else
2251   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2252                         if test $ac_lo -le $ac_mid; then
2253                           ac_lo= ac_hi=
2254                           break
2255                         fi
2256                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2257 fi
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259   done
2260 else
2261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h.  */
2263 $4
2264 int main (void)
2265 {
2266 static int test_array [1 - 2 * !(($2) < 0)];
2267 test_array [0] = 0;
2268 return test_array [0];
2269
2270  ;
2271  return 0;
2272 }
2273 _ACEOF
2274 if ac_fn_c_try_compile "$LINENO"; then :
2275   ac_hi=-1 ac_mid=-1
2276   while :; do
2277     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h.  */
2279 $4
2280 int main (void)
2281 {
2282 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2283 test_array [0] = 0;
2284 return test_array [0];
2285
2286  ;
2287  return 0;
2288 }
2289 _ACEOF
2290 if ac_fn_c_try_compile "$LINENO"; then :
2291   ac_lo=$ac_mid; break
2292 else
2293   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2294                         if test $ac_mid -le $ac_hi; then
2295                           ac_lo= ac_hi=
2296                           break
2297                         fi
2298                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2299 fi
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301   done
2302 else
2303   ac_lo= ac_hi=
2304 fi
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 fi
2307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2308 # Binary search between lo and hi bounds.
2309 while test "x$ac_lo" != "x$ac_hi"; do
2310   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h.  */
2313 $4
2314 int main (void)
2315 {
2316 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2317 test_array [0] = 0;
2318 return test_array [0];
2319
2320  ;
2321  return 0;
2322 }
2323 _ACEOF
2324 if ac_fn_c_try_compile "$LINENO"; then :
2325   ac_hi=$ac_mid
2326 else
2327   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2328 fi
2329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2330 done
2331 case $ac_lo in #((
2332 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2333 '') ac_retval=1 ;;
2334 esac
2335   else
2336     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337 /* end confdefs.h.  */
2338 $4
2339 static long int longval () { return $2; }
2340 static unsigned long int ulongval () { return $2; }
2341 #include <stdio.h>
2342 #include <stdlib.h>
2343 int main (void)
2344 {
2345
2346   FILE *f = fopen ("conftest.val", "w");
2347   if (! f)
2348     return 1;
2349   if (($2) < 0)
2350     {
2351       long int i = longval ();
2352       if (i != ($2))
2353         return 1;
2354       fprintf (f, "%ld", i);
2355     }
2356   else
2357     {
2358       unsigned long int i = ulongval ();
2359       if (i != ($2))
2360         return 1;
2361       fprintf (f, "%lu", i);
2362     }
2363   /* Do not output a trailing newline, as this causes \r\n confusion
2364      on some platforms.  */
2365   return ferror (f) || fclose (f) != 0;
2366
2367  ;
2368  return 0;
2369 }
2370 _ACEOF
2371 if ac_fn_c_try_run "$LINENO"; then :
2372   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2373 else
2374   ac_retval=1
2375 fi
2376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2377   conftest.$ac_objext conftest.beam conftest.$ac_ext
2378 rm -f conftest.val
2379
2380   fi
2381   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2382   as_fn_set_status $ac_retval
2383
2384 } # ac_fn_c_compute_int
2385
2386 # ac_fn_c_try_link LINENO
2387 # -----------------------
2388 # Try to link conftest.$ac_ext, and return whether this succeeded.
2389 ac_fn_c_try_link ()
2390 {
2391   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2392   rm -f conftest.$ac_objext conftest$ac_exeext
2393   if { { ac_try="$ac_link"
2394 case "(($ac_try" in
2395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2396   *) ac_try_echo=$ac_try;;
2397 esac
2398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2399 $as_echo "$ac_try_echo"; } >&5
2400   (eval "$ac_link") 2>conftest.err
2401   ac_status=$?
2402   if test -s conftest.err; then
2403     grep -v '^ *+' conftest.err >conftest.er1
2404     cat conftest.er1 >&5
2405     mv -f conftest.er1 conftest.err
2406   fi
2407   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2408   test $ac_status = 0; } && {
2409          test -z "$ac_c_werror_flag" ||
2410          test ! -s conftest.err
2411        } && test -s conftest$ac_exeext && {
2412          test "$cross_compiling" = yes ||
2413          test -x conftest$ac_exeext
2414        }; then :
2415   ac_retval=0
2416 else
2417   $as_echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2419
2420         ac_retval=1
2421 fi
2422   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2423   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2424   # interfere with the next link command; also delete a directory that is
2425   # left behind by Apple's compiler.  We do this before executing the actions.
2426   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2427   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2428   as_fn_set_status $ac_retval
2429
2430 } # ac_fn_c_try_link
2431
2432 # ac_fn_c_check_func LINENO FUNC VAR
2433 # ----------------------------------
2434 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2435 ac_fn_c_check_func ()
2436 {
2437   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2438   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2439 $as_echo_n "checking for $2... " >&6; }
2440 if eval \${$3+:} false; then :
2441   $as_echo_n "(cached) " >&6
2442 else
2443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h.  */
2445
2446 #define $2 innocuous_$2
2447 #ifdef __STDC__
2448 # include <limits.h>
2449 #else
2450 # include <assert.h>
2451 #endif
2452 #undef $2
2453 #ifdef __cplusplus
2454 extern "C"
2455 #endif
2456 char $2 ();
2457 #if defined __stub_$2 || defined __stub___$2
2458 choke me
2459 #endif
2460
2461 int main (void)
2462 {
2463 return $2 ();
2464  ;
2465  return 0;
2466 }
2467 _ACEOF
2468 if ac_fn_c_try_link "$LINENO"; then :
2469   eval "$3=yes"
2470 else
2471   eval "$3=no"
2472 fi
2473 rm -f core conftest.err conftest.$ac_objext \
2474     conftest$ac_exeext conftest.$ac_ext
2475 fi
2476 eval ac_res=\$$3
2477                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2478 $as_echo "$ac_res" >&6; }
2479   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2480
2481 } # ac_fn_c_check_func
2482
2483 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2484 # -------------------------------------------------------
2485 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2486 # the include files in INCLUDES and setting the cache variable VAR
2487 # accordingly.
2488 ac_fn_c_check_header_mongrel ()
2489 {
2490   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2491   if eval \${$3+:} false; then :
2492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2493 $as_echo_n "checking for $2... " >&6; }
2494 if eval \${$3+:} false; then :
2495   $as_echo_n "(cached) " >&6
2496 fi
2497 eval ac_res=\$$3
2498                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2499 $as_echo "$ac_res" >&6; }
2500 else
2501   # Is the header compilable?
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2503 $as_echo_n "checking $2 usability... " >&6; }
2504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505 /* end confdefs.h.  */
2506 $4
2507 #include <$2>
2508 _ACEOF
2509 if ac_fn_c_try_compile "$LINENO"; then :
2510   ac_header_compiler=yes
2511 else
2512   ac_header_compiler=no
2513 fi
2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2516 $as_echo "$ac_header_compiler" >&6; }
2517
2518 # Is the header present?
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2520 $as_echo_n "checking $2 presence... " >&6; }
2521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2522 /* end confdefs.h.  */
2523 #include <$2>
2524 _ACEOF
2525 if ac_fn_c_try_cpp "$LINENO"; then :
2526   ac_header_preproc=yes
2527 else
2528   ac_header_preproc=no
2529 fi
2530 rm -f conftest.err conftest.i conftest.$ac_ext
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2532 $as_echo "$ac_header_preproc" >&6; }
2533
2534 # So?  What about this header?
2535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2536   yes:no: )
2537     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2538 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2539     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2540 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2541     ;;
2542   no:yes:* )
2543     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2544 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2545     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2546 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2547     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2548 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2549     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2550 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2551     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2552 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2553 ( $as_echo "## ---------------------------------------------------------------------- ##
2554 ## Report this to a suitable curl mailing list: http://curl.haxx.se/mail/ ##
2555 ## ---------------------------------------------------------------------- ##"
2556      ) | sed "s/^/$as_me: WARNING:     /" >&2
2557     ;;
2558 esac
2559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2560 $as_echo_n "checking for $2... " >&6; }
2561 if eval \${$3+:} false; then :
2562   $as_echo_n "(cached) " >&6
2563 else
2564   eval "$3=\$ac_header_compiler"
2565 fi
2566 eval ac_res=\$$3
2567                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2568 $as_echo "$ac_res" >&6; }
2569 fi
2570   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2571
2572 } # ac_fn_c_check_header_mongrel
2573
2574 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2575 # -------------------------------------------
2576 # Tests whether TYPE exists after having included INCLUDES, setting cache
2577 # variable VAR accordingly.
2578 ac_fn_c_check_type ()
2579 {
2580   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2581   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2582 $as_echo_n "checking for $2... " >&6; }
2583 if eval \${$3+:} false; then :
2584   $as_echo_n "(cached) " >&6
2585 else
2586   eval "$3=no"
2587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2588 /* end confdefs.h.  */
2589 $4
2590 int main (void)
2591 {
2592 if (sizeof ($2))
2593          return 0;
2594  ;
2595  return 0;
2596 }
2597 _ACEOF
2598 if ac_fn_c_try_compile "$LINENO"; then :
2599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2600 /* end confdefs.h.  */
2601 $4
2602 int main (void)
2603 {
2604 if (sizeof (($2)))
2605             return 0;
2606  ;
2607  return 0;
2608 }
2609 _ACEOF
2610 if ac_fn_c_try_compile "$LINENO"; then :
2611
2612 else
2613   eval "$3=yes"
2614 fi
2615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616 fi
2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618 fi
2619 eval ac_res=\$$3
2620                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2621 $as_echo "$ac_res" >&6; }
2622   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2623
2624 } # ac_fn_c_check_type
2625
2626 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2627 # ----------------------------------------------------
2628 # Tries to find if the field MEMBER exists in type AGGR, after including
2629 # INCLUDES, setting cache variable VAR accordingly.
2630 ac_fn_c_check_member ()
2631 {
2632   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2634 $as_echo_n "checking for $2.$3... " >&6; }
2635 if eval \${$4+:} false; then :
2636   $as_echo_n "(cached) " >&6
2637 else
2638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2639 /* end confdefs.h.  */
2640 $5
2641 int main (void)
2642 {
2643 static $2 ac_aggr;
2644 if (ac_aggr.$3)
2645 return 0;
2646  ;
2647  return 0;
2648 }
2649 _ACEOF
2650 if ac_fn_c_try_compile "$LINENO"; then :
2651   eval "$4=yes"
2652 else
2653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2654 /* end confdefs.h.  */
2655 $5
2656 int main (void)
2657 {
2658 static $2 ac_aggr;
2659 if (sizeof ac_aggr.$3)
2660 return 0;
2661  ;
2662  return 0;
2663 }
2664 _ACEOF
2665 if ac_fn_c_try_compile "$LINENO"; then :
2666   eval "$4=yes"
2667 else
2668   eval "$4=no"
2669 fi
2670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2671 fi
2672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2673 fi
2674 eval ac_res=\$$4
2675                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2676 $as_echo "$ac_res" >&6; }
2677   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2678
2679 } # ac_fn_c_check_member
2680 cat >config.log <<_ACEOF
2681 This file contains any messages produced by compilers while
2682 running configure, to aid debugging if configure makes a mistake.
2683
2684 It was created by curl $as_me -, which was
2685 generated by GNU Autoconf 2.69.  Invocation command line was
2686
2687   $ $0 $@
2688
2689 _ACEOF
2690 exec 5>>config.log
2691 {
2692 cat <<_ASUNAME
2693 ## --------- ##
2694 ## Platform. ##
2695 ## --------- ##
2696
2697 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2698 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2699 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2700 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2701 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2702
2703 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2704 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2705
2706 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2707 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2708 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2709 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2710 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2711 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2712 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2713
2714 _ASUNAME
2715
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 for as_dir in $PATH
2718 do
2719   IFS=$as_save_IFS
2720   test -z "$as_dir" && as_dir=.
2721     $as_echo "PATH: $as_dir"
2722   done
2723 IFS=$as_save_IFS
2724
2725 } >&5
2726
2727 cat >&5 <<_ACEOF
2728
2729
2730 ## ----------- ##
2731 ## Core tests. ##
2732 ## ----------- ##
2733
2734 _ACEOF
2735
2736
2737 # Keep a trace of the command line.
2738 # Strip out --no-create and --no-recursion so they do not pile up.
2739 # Strip out --silent because we don't want to record it for future runs.
2740 # Also quote any args containing shell meta-characters.
2741 # Make two passes to allow for proper duplicate-argument suppression.
2742 ac_configure_args=
2743 ac_configure_args0=
2744 ac_configure_args1=
2745 ac_must_keep_next=false
2746 for ac_pass in 1 2
2747 do
2748   for ac_arg
2749   do
2750     case $ac_arg in
2751     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2752     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2753     | -silent | --silent | --silen | --sile | --sil)
2754       continue ;;
2755     *\'*)
2756       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2757     esac
2758     case $ac_pass in
2759     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2760     2)
2761       as_fn_append ac_configure_args1 " '$ac_arg'"
2762       if test $ac_must_keep_next = true; then
2763         ac_must_keep_next=false # Got value, back to normal.
2764       else
2765         case $ac_arg in
2766           *=* | --config-cache | -C | -disable-* | --disable-* \
2767           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2768           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2769           | -with-* | --with-* | -without-* | --without-* | --x)
2770             case "$ac_configure_args0 " in
2771               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2772             esac
2773             ;;
2774           -* ) ac_must_keep_next=true ;;
2775         esac
2776       fi
2777       as_fn_append ac_configure_args " '$ac_arg'"
2778       ;;
2779     esac
2780   done
2781 done
2782 { ac_configure_args0=; unset ac_configure_args0;}
2783 { ac_configure_args1=; unset ac_configure_args1;}
2784
2785 # When interrupted or exit'd, cleanup temporary files, and complete
2786 # config.log.  We remove comments because anyway the quotes in there
2787 # would cause problems or look ugly.
2788 # WARNING: Use '\'' to represent an apostrophe within the trap.
2789 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2790 trap 'exit_status=$?
2791   # Save into config.log some information that might help in debugging.
2792   {
2793     echo
2794
2795     $as_echo "## ---------------- ##
2796 ## Cache variables. ##
2797 ## ---------------- ##"
2798     echo
2799     # The following way of writing the cache mishandles newlines in values,
2800 (
2801   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2802     eval ac_val=\$$ac_var
2803     case $ac_val in #(
2804     *${as_nl}*)
2805       case $ac_var in #(
2806       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2807 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2808       esac
2809       case $ac_var in #(
2810       _ | IFS | as_nl) ;; #(
2811       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2812       *) { eval $ac_var=; unset $ac_var;} ;;
2813       esac ;;
2814     esac
2815   done
2816   (set) 2>&1 |
2817     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2818     *${as_nl}ac_space=\ *)
2819       sed -n \
2820         "s/'\''/'\''\\\\'\'''\''/g;
2821           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2822       ;; #(
2823     *)
2824       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2825       ;;
2826     esac |
2827     sort
2828 )
2829     echo
2830
2831     $as_echo "## ----------------- ##
2832 ## Output variables. ##
2833 ## ----------------- ##"
2834     echo
2835     for ac_var in $ac_subst_vars
2836     do
2837       eval ac_val=\$$ac_var
2838       case $ac_val in
2839       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2840       esac
2841       $as_echo "$ac_var='\''$ac_val'\''"
2842     done | sort
2843     echo
2844
2845     if test -n "$ac_subst_files"; then
2846       $as_echo "## ------------------- ##
2847 ## File substitutions. ##
2848 ## ------------------- ##"
2849       echo
2850       for ac_var in $ac_subst_files
2851       do
2852         eval ac_val=\$$ac_var
2853         case $ac_val in
2854         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2855         esac
2856         $as_echo "$ac_var='\''$ac_val'\''"
2857       done | sort
2858       echo
2859     fi
2860
2861     if test -s confdefs.h; then
2862       $as_echo "## ----------- ##
2863 ## confdefs.h. ##
2864 ## ----------- ##"
2865       echo
2866       cat confdefs.h
2867       echo
2868     fi
2869     test "$ac_signal" != 0 &&
2870       $as_echo "$as_me: caught signal $ac_signal"
2871     $as_echo "$as_me: exit $exit_status"
2872   } >&5
2873   rm -f core *.core core.conftest.* &&
2874     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2875     exit $exit_status
2876 ' 0
2877 for ac_signal in 1 2 13 15; do
2878   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2879 done
2880 ac_signal=0
2881
2882 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2883 rm -f -r conftest* confdefs.h
2884
2885 $as_echo "/* confdefs.h */" > confdefs.h
2886
2887 # Predefined preprocessor variables.
2888
2889 cat >>confdefs.h <<_ACEOF
2890 #define PACKAGE_NAME "$PACKAGE_NAME"
2891 _ACEOF
2892
2893 cat >>confdefs.h <<_ACEOF
2894 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2895 _ACEOF
2896
2897 cat >>confdefs.h <<_ACEOF
2898 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2899 _ACEOF
2900
2901 cat >>confdefs.h <<_ACEOF
2902 #define PACKAGE_STRING "$PACKAGE_STRING"
2903 _ACEOF
2904
2905 cat >>confdefs.h <<_ACEOF
2906 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2907 _ACEOF
2908
2909 cat >>confdefs.h <<_ACEOF
2910 #define PACKAGE_URL "$PACKAGE_URL"
2911 _ACEOF
2912
2913
2914 # Let the site file select an alternate cache file if it wants to.
2915 # Prefer an explicitly selected file to automatically selected ones.
2916 ac_site_file1=NONE
2917 ac_site_file2=NONE
2918 if test -n "$CONFIG_SITE"; then
2919   # We do not want a PATH search for config.site.
2920   case $CONFIG_SITE in #((
2921     -*)  ac_site_file1=./$CONFIG_SITE;;
2922     */*) ac_site_file1=$CONFIG_SITE;;
2923     *)   ac_site_file1=./$CONFIG_SITE;;
2924   esac
2925 elif test "x$prefix" != xNONE; then
2926   ac_site_file1=$prefix/share/config.site
2927   ac_site_file2=$prefix/etc/config.site
2928 else
2929   ac_site_file1=$ac_default_prefix/share/config.site
2930   ac_site_file2=$ac_default_prefix/etc/config.site
2931 fi
2932 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2933 do
2934   test "x$ac_site_file" = xNONE && continue
2935   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2936     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2937 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2938     sed 's/^/| /' "$ac_site_file" >&5
2939     . "$ac_site_file" \
2940       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2942 as_fn_error $? "failed to load site script $ac_site_file
2943 See \`config.log' for more details" "$LINENO" 5; }
2944   fi
2945 done
2946
2947 if test -r "$cache_file"; then
2948   # Some versions of bash will fail to source /dev/null (special files
2949   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2950   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2951     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2952 $as_echo "$as_me: loading cache $cache_file" >&6;}
2953     case $cache_file in
2954       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2955       *)                      . "./$cache_file";;
2956     esac
2957   fi
2958 else
2959   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2960 $as_echo "$as_me: creating cache $cache_file" >&6;}
2961   >$cache_file
2962 fi
2963
2964 # Check that the precious variables saved in the cache have kept the same
2965 # value.
2966 ac_cache_corrupted=false
2967 for ac_var in $ac_precious_vars; do
2968   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2969   eval ac_new_set=\$ac_env_${ac_var}_set
2970   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2971   eval ac_new_val=\$ac_env_${ac_var}_value
2972   case $ac_old_set,$ac_new_set in
2973     set,)
2974       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2975 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2976       ac_cache_corrupted=: ;;
2977     ,set)
2978       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2979 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2980       ac_cache_corrupted=: ;;
2981     ,);;
2982     *)
2983       if test "x$ac_old_val" != "x$ac_new_val"; then
2984         # differences in whitespace do not lead to failure.
2985         ac_old_val_w=`echo x $ac_old_val`
2986         ac_new_val_w=`echo x $ac_new_val`
2987         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2988           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2989 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2990           ac_cache_corrupted=:
2991         else
2992           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2993 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2994           eval $ac_var=\$ac_old_val
2995         fi
2996         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2997 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2998         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2999 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3000       fi;;
3001   esac
3002   # Pass precious variables to config.status.
3003   if test "$ac_new_set" = set; then
3004     case $ac_new_val in
3005     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3006     *) ac_arg=$ac_var=$ac_new_val ;;
3007     esac
3008     case " $ac_configure_args " in
3009       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3010       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3011     esac
3012   fi
3013 done
3014 if $ac_cache_corrupted; then
3015   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3017   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3018 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3019   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3020 fi
3021 ## -------------------- ##
3022 ## Main body of script. ##
3023 ## -------------------- ##
3024
3025 ac_ext=c
3026 ac_cpp='$CPP $CPPFLAGS'
3027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3030
3031
3032
3033
3034
3035
3036
3037 # using curl-override.m4
3038
3039
3040
3041
3042
3043 ac_config_headers="$ac_config_headers lib/curl_config.h include/curl/curlbuild.h"
3044
3045
3046
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3048 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3049     # Check whether --enable-maintainer-mode was given.
3050 if test "${enable_maintainer_mode+set}" = set; then :
3051   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3052 else
3053   USE_MAINTAINER_MODE=no
3054 fi
3055
3056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3057 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3058    if test $USE_MAINTAINER_MODE = yes; then
3059   MAINTAINER_MODE_TRUE=
3060   MAINTAINER_MODE_FALSE='#'
3061 else
3062   MAINTAINER_MODE_TRUE='#'
3063   MAINTAINER_MODE_FALSE=
3064 fi
3065
3066   MAINT=$MAINTAINER_MODE_TRUE
3067
3068
3069
3070
3071         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3072 $as_echo_n "checking whether to enable debug build options... " >&6; }
3073   OPT_DEBUG_BUILD="default"
3074   # Check whether --enable-debug was given.
3075 if test "${enable_debug+set}" = set; then :
3076   enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3077 fi
3078
3079   case "$OPT_DEBUG_BUILD" in
3080     no)
3081             want_debug="no"
3082       ;;
3083     default)
3084             want_debug="no"
3085       ;;
3086     *)
3087             want_debug="yes"
3088       ;;
3089   esac
3090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3091 $as_echo "$want_debug" >&6; }
3092
3093
3094       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3095 $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3096   OPT_COMPILER_OPTIMIZE="default"
3097   # Check whether --enable-optimize was given.
3098 if test "${enable_optimize+set}" = set; then :
3099   enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3100 fi
3101
3102   case "$OPT_COMPILER_OPTIMIZE" in
3103     no)
3104                               want_optimize="no"
3105       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3107       ;;
3108     default)
3109                                                                         if test "$want_debug" = "yes"; then
3110         want_optimize="assume_no"
3111         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3112 $as_echo "(assumed) no" >&6; }
3113       else
3114         want_optimize="assume_yes"
3115         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3116 $as_echo "(assumed) yes" >&6; }
3117       fi
3118       ;;
3119     *)
3120                               want_optimize="yes"
3121       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3122 $as_echo "yes" >&6; }
3123       ;;
3124   esac
3125
3126
3127         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3128 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3129   OPT_COMPILER_WARNINGS="default"
3130   # Check whether --enable-warnings was given.
3131 if test "${enable_warnings+set}" = set; then :
3132   enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3133 fi
3134
3135   case "$OPT_COMPILER_WARNINGS" in
3136     no)
3137             want_warnings="no"
3138       ;;
3139     default)
3140                   want_warnings="$want_debug"
3141       ;;
3142     *)
3143             want_warnings="yes"
3144       ;;
3145   esac
3146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3147 $as_echo "$want_warnings" >&6; }
3148
3149
3150     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3151 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3152   OPT_COMPILER_WERROR="default"
3153   # Check whether --enable-werror was given.
3154 if test "${enable_werror+set}" = set; then :
3155   enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3156 fi
3157
3158   case "$OPT_COMPILER_WERROR" in
3159     no)
3160             want_werror="no"
3161       ;;
3162     default)
3163             want_werror="no"
3164       ;;
3165     *)
3166             want_werror="yes"
3167       ;;
3168   esac
3169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3170 $as_echo "$want_werror" >&6; }
3171
3172
3173     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3174 $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3175   OPT_CURLDEBUG_BUILD="default"
3176   # Check whether --enable-curldebug was given.
3177 if test "${enable_curldebug+set}" = set; then :
3178   enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3179 fi
3180
3181   case "$OPT_CURLDEBUG_BUILD" in
3182     no)
3183             want_curldebug="no"
3184       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3186       ;;
3187     default)
3188                                           if test "$want_debug" = "yes"; then
3189         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3190 $as_echo "(assumed) yes" >&6; }
3191       else
3192         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3194       fi
3195       want_curldebug_assumed="yes"
3196       want_curldebug="$want_debug"
3197       ;;
3198     *)
3199                                                       want_curldebug="yes"
3200       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3201 $as_echo "yes" >&6; }
3202       ;;
3203   esac
3204
3205
3206     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3207 $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3208   OPT_SYMBOL_HIDING="default"
3209   # Check whether --enable-symbol-hiding was given.
3210 if test "${enable_symbol_hiding+set}" = set; then :
3211   enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3212 fi
3213
3214   # Check whether --enable-hidden-symbols was given.
3215 if test "${enable_hidden_symbols+set}" = set; then :
3216   enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3217 fi
3218
3219   case "$OPT_SYMBOL_HIDING" in
3220     no)
3221                               want_symbol_hiding="no"
3222       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3224       ;;
3225     default)
3226                   want_symbol_hiding="yes"
3227       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3228 $as_echo "yes" >&6; }
3229       ;;
3230     *)
3231                         want_symbol_hiding="yes"
3232       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3233 $as_echo "yes" >&6; }
3234       ;;
3235   esac
3236
3237
3238     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3239 $as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3240   OPT_ARES="default"
3241   # Check whether --enable-ares was given.
3242 if test "${enable_ares+set}" = set; then :
3243   enableval=$enable_ares; OPT_ARES=$enableval
3244 fi
3245
3246   case "$OPT_ARES" in
3247     no)
3248             want_ares="no"
3249       ;;
3250     default)
3251             want_ares="no"
3252       ;;
3253     *)
3254             want_ares="yes"
3255       if test -n "$enableval" && test "$enableval" != "yes"; then
3256         want_ares_path="$enableval"
3257       fi
3258       ;;
3259   esac
3260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3261 $as_echo "$want_ares" >&6; }
3262
3263
3264     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3265 $as_echo_n "checking whether to disable dependency on -lrt... " >&6; }
3266   OPT_RT="default"
3267   # Check whether --enable-rt was given.
3268 if test "${enable_rt+set}" = set; then :
3269   enableval=$enable_rt; OPT_RT=$enableval
3270 fi
3271
3272   case "$OPT_RT" in
3273     no)
3274             dontwant_rt="yes"
3275       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3276 $as_echo "yes" >&6; }
3277       ;;
3278     default)
3279             dontwant_rt="no"
3280       { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)
3281       ;;
3282     *" >&5
3283 $as_echo "(assumed no)
3284       ;;
3285     *" >&6; }
3286             dontwant_rt="no"
3287       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289       ;;
3290   esac
3291     if test "$dontwant_rt" = "yes" && test "$want_thres" = "yes" ; then
3292     as_fn_error $? "options --disable-rt and --enable-thread-resolver are mutually exclusive, at most one can be selected." "$LINENO" 5
3293   fi
3294
3295
3296 #
3297 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3298 #
3299
3300 if test -z "$xc_configure_preamble_result"; then
3301   as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3302 fi
3303
3304 #
3305 # Check that 'PATH_SEPARATOR' has already been set.
3306 #
3307
3308 if test -z "$xc_PATH_SEPARATOR"; then
3309   as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3310 fi
3311 if test -z "$PATH_SEPARATOR"; then
3312   as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3313 fi
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3315 $as_echo_n "checking for path separator... " >&6; }
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3317 $as_echo "$PATH_SEPARATOR" >&6; }
3318 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3319   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3320 $as_echo_n "checking for initial path separator... " >&6; }
3321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3322 $as_echo "$xc_PATH_SEPARATOR" >&6; }
3323   as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3324 fi
3325
3326
3327 #
3328 # save the configure arguments
3329 #
3330 CONFIGURE_OPTIONS="\"$ac_configure_args\""
3331
3332
3333 CURL_CFLAG_EXTRAS=""
3334 if test X"$want_werror" = Xyes; then
3335   CURL_CFLAG_EXTRAS="-Werror"
3336 fi
3337
3338
3339 if test -z "$SED"; then
3340     # Extract the first word of "sed", so it can be a program name with args.
3341 set dummy sed; ac_word=$2
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3343 $as_echo_n "checking for $ac_word... " >&6; }
3344 if ${ac_cv_path_SED+:} false; then :
3345   $as_echo_n "(cached) " >&6
3346 else
3347   case $SED in
3348   [\\/]* | ?:[\\/]*)
3349   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3350   ;;
3351   *)
3352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3354 for as_dir in $as_dummy
3355 do
3356   IFS=$as_save_IFS
3357   test -z "$as_dir" && as_dir=.
3358     for ac_exec_ext in '' $ac_executable_extensions; do
3359   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3360     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3362     break 2
3363   fi
3364 done
3365   done
3366 IFS=$as_save_IFS
3367
3368   test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3369   ;;
3370 esac
3371 fi
3372 SED=$ac_cv_path_SED
3373 if test -n "$SED"; then
3374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3375 $as_echo "$SED" >&6; }
3376 else
3377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378 $as_echo "no" >&6; }
3379 fi
3380
3381
3382   if test -z "$SED" || test "$SED" = "not_found"; then
3383     as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3384   fi
3385 fi
3386
3387
3388 if test -z "$GREP"; then
3389     # Extract the first word of "grep", so it can be a program name with args.
3390 set dummy grep; ac_word=$2
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3392 $as_echo_n "checking for $ac_word... " >&6; }
3393 if ${ac_cv_path_GREP+:} false; then :
3394   $as_echo_n "(cached) " >&6
3395 else
3396   case $GREP in
3397   [\\/]* | ?:[\\/]*)
3398   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3399   ;;
3400   *)
3401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3403 for as_dir in $as_dummy
3404 do
3405   IFS=$as_save_IFS
3406   test -z "$as_dir" && as_dir=.
3407     for ac_exec_ext in '' $ac_executable_extensions; do
3408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3409     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411     break 2
3412   fi
3413 done
3414   done
3415 IFS=$as_save_IFS
3416
3417   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3418   ;;
3419 esac
3420 fi
3421 GREP=$ac_cv_path_GREP
3422 if test -n "$GREP"; then
3423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3424 $as_echo "$GREP" >&6; }
3425 else
3426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 $as_echo "no" >&6; }
3428 fi
3429
3430
3431   if test -z "$GREP" || test "$GREP" = "not_found"; then
3432     as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3433   fi
3434 fi
3435
3436
3437 if test -z "$EGREP"; then
3438     if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3439     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3440 $as_echo_n "checking for egrep... " >&6; }
3441     EGREP="$GREP -E"
3442     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3443 $as_echo "$EGREP" >&6; }
3444   else
3445     # Extract the first word of "egrep", so it can be a program name with args.
3446 set dummy egrep; ac_word=$2
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3448 $as_echo_n "checking for $ac_word... " >&6; }
3449 if ${ac_cv_path_EGREP+:} false; then :
3450   $as_echo_n "(cached) " >&6
3451 else
3452   case $EGREP in
3453   [\\/]* | ?:[\\/]*)
3454   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3455   ;;
3456   *)
3457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3459 for as_dir in $as_dummy
3460 do
3461   IFS=$as_save_IFS
3462   test -z "$as_dir" && as_dir=.
3463     for ac_exec_ext in '' $ac_executable_extensions; do
3464   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3465     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3467     break 2
3468   fi
3469 done
3470   done
3471 IFS=$as_save_IFS
3472
3473   test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3474   ;;
3475 esac
3476 fi
3477 EGREP=$ac_cv_path_EGREP
3478 if test -n "$EGREP"; then
3479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3480 $as_echo "$EGREP" >&6; }
3481 else
3482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3484 fi
3485
3486
3487   fi
3488 fi
3489 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3490   as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3491 fi
3492
3493
3494 if test -z "$AR"; then
3495     if test -n "$ac_tool_prefix"; then
3496   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3497 set dummy ${ac_tool_prefix}ar; ac_word=$2
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499 $as_echo_n "checking for $ac_word... " >&6; }
3500 if ${ac_cv_path_AR+:} false; then :
3501   $as_echo_n "(cached) " >&6
3502 else
3503   case $AR in
3504   [\\/]* | ?:[\\/]*)
3505   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3506   ;;
3507   *)
3508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3510 for as_dir in $as_dummy
3511 do
3512   IFS=$as_save_IFS
3513   test -z "$as_dir" && as_dir=.
3514     for ac_exec_ext in '' $ac_executable_extensions; do
3515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3516     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3518     break 2
3519   fi
3520 done
3521   done
3522 IFS=$as_save_IFS
3523
3524   ;;
3525 esac
3526 fi
3527 AR=$ac_cv_path_AR
3528 if test -n "$AR"; then
3529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3530 $as_echo "$AR" >&6; }
3531 else
3532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533 $as_echo "no" >&6; }
3534 fi
3535
3536
3537 fi
3538 if test -z "$ac_cv_path_AR"; then
3539   ac_pt_AR=$AR
3540   # Extract the first word of "ar", so it can be a program name with args.
3541 set dummy ar; ac_word=$2
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 $as_echo_n "checking for $ac_word... " >&6; }
3544 if ${ac_cv_path_ac_pt_AR+:} false; then :
3545   $as_echo_n "(cached) " >&6
3546 else
3547   case $ac_pt_AR in
3548   [\\/]* | ?:[\\/]*)
3549   ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3550   ;;
3551   *)
3552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3554 for as_dir in $as_dummy
3555 do
3556   IFS=$as_save_IFS
3557   test -z "$as_dir" && as_dir=.
3558     for ac_exec_ext in '' $ac_executable_extensions; do
3559   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3560     ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562     break 2
3563   fi
3564 done
3565   done
3566 IFS=$as_save_IFS
3567
3568   ;;
3569 esac
3570 fi
3571 ac_pt_AR=$ac_cv_path_ac_pt_AR
3572 if test -n "$ac_pt_AR"; then
3573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3574 $as_echo "$ac_pt_AR" >&6; }
3575 else
3576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577 $as_echo "no" >&6; }
3578 fi
3579
3580   if test "x$ac_pt_AR" = x; then
3581     AR="not_found"
3582   else
3583     case $cross_compiling:$ac_tool_warned in
3584 yes:)
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3587 ac_tool_warned=yes ;;
3588 esac
3589     AR=$ac_pt_AR
3590   fi
3591 else
3592   AR="$ac_cv_path_AR"
3593 fi
3594
3595   if test -z "$AR" || test "$AR" = "not_found"; then
3596     as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3597   fi
3598 fi
3599
3600
3601
3602
3603 if test -f ${srcdir}/include/curl/curlbuild.h; then
3604   rm -f ${srcdir}/include/curl/curlbuild.h
3605 fi
3606
3607 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h`
3608
3609   xc_prog_cc_prev_IFS=$IFS
3610   xc_prog_cc_prev_LIBS=$LIBS
3611   xc_prog_cc_prev_CFLAGS=$CFLAGS
3612   xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3613   xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3614
3615
3616
3617   xc_bad_var_libs=no
3618   for xc_word in $LIBS; do
3619     case "$xc_word" in
3620       -l* | --library=*)
3621         :
3622         ;;
3623       *)
3624         xc_bad_var_libs=yes
3625         ;;
3626     esac
3627   done
3628   if test $xc_bad_var_libs = yes; then
3629     { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3630 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
3631     { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3632 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3633   fi
3634
3635
3636   xc_bad_var_ldflags=no
3637   for xc_word in $LDFLAGS; do
3638     case "$xc_word" in
3639       -D*)
3640         xc_bad_var_ldflags=yes
3641         ;;
3642       -U*)
3643         xc_bad_var_ldflags=yes
3644         ;;
3645       -I*)
3646         xc_bad_var_ldflags=yes
3647         ;;
3648       -l* | --library=*)
3649         xc_bad_var_ldflags=yes
3650         ;;
3651     esac
3652   done
3653   if test $xc_bad_var_ldflags = yes; then
3654     { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3655 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3656     xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3657     for xc_word in $LDFLAGS; do
3658       case "$xc_word" in
3659         -D*)
3660           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3661 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3662           ;;
3663         -U*)
3664           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3665 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3666           ;;
3667         -I*)
3668           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3669 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3670           ;;
3671         -l* | --library=*)
3672           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3673 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3674           ;;
3675       esac
3676     done
3677   fi
3678
3679
3680   xc_bad_var_cppflags=no
3681   for xc_word in $CPPFLAGS; do
3682     case "$xc_word" in
3683       -rpath*)
3684         xc_bad_var_cppflags=yes
3685         ;;
3686       -L* | --library-path=*)
3687         xc_bad_var_cppflags=yes
3688         ;;
3689       -l* | --library=*)
3690         xc_bad_var_cppflags=yes
3691         ;;
3692     esac
3693   done
3694   if test $xc_bad_var_cppflags = yes; then
3695     { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3696 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3697     xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3698     for xc_word in $CPPFLAGS; do
3699       case "$xc_word" in
3700         -rpath*)
3701           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3702 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3703           ;;
3704         -L* | --library-path=*)
3705           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3706 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3707           ;;
3708         -l* | --library=*)
3709           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3710 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3711           ;;
3712       esac
3713     done
3714   fi
3715
3716
3717   xc_bad_var_cflags=no
3718   for xc_word in $CFLAGS; do
3719     case "$xc_word" in
3720       -D*)
3721         xc_bad_var_cflags=yes
3722         ;;
3723       -U*)
3724         xc_bad_var_cflags=yes
3725         ;;
3726       -I*)
3727         xc_bad_var_cflags=yes
3728         ;;
3729       -rpath*)
3730         xc_bad_var_cflags=yes
3731         ;;
3732       -L* | --library-path=*)
3733         xc_bad_var_cflags=yes
3734         ;;
3735       -l* | --library=*)
3736         xc_bad_var_cflags=yes
3737         ;;
3738     esac
3739   done
3740   if test $xc_bad_var_cflags = yes; then
3741     { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3742 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3743     xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3744     for xc_word in $CFLAGS; do
3745       case "$xc_word" in
3746         -D*)
3747           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3748 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3749           ;;
3750         -U*)
3751           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3752 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3753           ;;
3754         -I*)
3755           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3756 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3757           ;;
3758         -rpath*)
3759           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3760 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3761           ;;
3762         -L* | --library-path=*)
3763           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3764 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3765           ;;
3766         -l* | --library=*)
3767           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3768 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3769           ;;
3770       esac
3771     done
3772   fi
3773
3774   if test $xc_bad_var_libs = yes ||
3775      test $xc_bad_var_cflags = yes ||
3776      test $xc_bad_var_ldflags = yes ||
3777      test $xc_bad_var_cppflags = yes; then
3778      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3779 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3780   fi
3781
3782 ac_aux_dir=
3783 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3784   if test -f "$ac_dir/install-sh"; then
3785     ac_aux_dir=$ac_dir
3786     ac_install_sh="$ac_aux_dir/install-sh -c"
3787     break
3788   elif test -f "$ac_dir/install.sh"; then
3789     ac_aux_dir=$ac_dir
3790     ac_install_sh="$ac_aux_dir/install.sh -c"
3791     break
3792   elif test -f "$ac_dir/shtool"; then
3793     ac_aux_dir=$ac_dir
3794     ac_install_sh="$ac_aux_dir/shtool install -c"
3795     break
3796   fi
3797 done
3798 if test -z "$ac_aux_dir"; then
3799   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3800 fi
3801
3802 # These three variables are undocumented and unsupported,
3803 # and are intended to be withdrawn in a future Autoconf release.
3804 # They can cause serious problems if a builder's source tree is in a directory
3805 # whose full name contains unusual characters.
3806 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3807 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3808 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3809
3810
3811 # Find a good install program.  We prefer a C program (faster),
3812 # so one script is as good as another.  But avoid the broken or
3813 # incompatible versions:
3814 # SysV /etc/install, /usr/sbin/install
3815 # SunOS /usr/etc/install
3816 # IRIX /sbin/install
3817 # AIX /bin/install
3818 # AmigaOS /C/install, which installs bootblocks on floppy discs
3819 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3820 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3821 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3822 # OS/2's system install, which has a completely different semantic
3823 # ./install, which can be erroneously created by make from ./install.sh.
3824 # Reject install programs that cannot install multiple files.
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3826 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3827 if test -z "$INSTALL"; then
3828 if ${ac_cv_path_install+:} false; then :
3829   $as_echo_n "(cached) " >&6
3830 else
3831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 for as_dir in $PATH
3833 do
3834   IFS=$as_save_IFS
3835   test -z "$as_dir" && as_dir=.
3836     # Account for people who put trailing slashes in PATH elements.
3837 case $as_dir/ in #((
3838   ./ | .// | /[cC]/* | \
3839   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3840   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3841   /usr/ucb/* ) ;;
3842   *)
3843     # OSF1 and SCO ODT 3.0 have their own names for install.
3844     # Don't use installbsd from OSF since it installs stuff as root
3845     # by default.
3846     for ac_prog in ginstall scoinst install; do
3847       for ac_exec_ext in '' $ac_executable_extensions; do
3848         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3849           if test $ac_prog = install &&
3850             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3851             # AIX install.  It has an incompatible calling convention.
3852             :
3853           elif test $ac_prog = install &&
3854             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3855             # program-specific install script used by HP pwplus--don't use.
3856             :
3857           else
3858             rm -rf conftest.one conftest.two conftest.dir
3859             echo one > conftest.one
3860             echo two > conftest.two
3861             mkdir conftest.dir
3862             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3863               test -s conftest.one && test -s conftest.two &&
3864               test -s conftest.dir/conftest.one &&
3865               test -s conftest.dir/conftest.two
3866             then
3867               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3868               break 3
3869             fi
3870           fi
3871         fi
3872       done
3873     done
3874     ;;
3875 esac
3876
3877   done
3878 IFS=$as_save_IFS
3879
3880 rm -rf conftest.one conftest.two conftest.dir
3881
3882 fi
3883   if test "${ac_cv_path_install+set}" = set; then
3884     INSTALL=$ac_cv_path_install
3885   else
3886     # As a last resort, use the slow shell script.  Don't cache a
3887     # value for INSTALL within a source directory, because that will
3888     # break other packages using the cache if that directory is
3889     # removed, or if the value is a relative name.
3890     INSTALL=$ac_install_sh
3891   fi
3892 fi
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3894 $as_echo "$INSTALL" >&6; }
3895
3896 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3897 # It thinks the first close brace ends the variable substitution.
3898 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3899
3900 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3901
3902 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3903
3904 # Expand $ac_aux_dir to an absolute path.
3905 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3906
3907 ac_ext=c
3908 ac_cpp='$CPP $CPPFLAGS'
3909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3912 if test -n "$ac_tool_prefix"; then
3913   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3914 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3916 $as_echo_n "checking for $ac_word... " >&6; }
3917 if ${ac_cv_prog_CC+:} false; then :
3918   $as_echo_n "(cached) " >&6
3919 else
3920   if test -n "$CC"; then
3921   ac_cv_prog_CC="$CC" # Let the user override the test.
3922 else
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 for as_dir in $PATH
3925 do
3926   IFS=$as_save_IFS
3927   test -z "$as_dir" && as_dir=.
3928     for ac_exec_ext in '' $ac_executable_extensions; do
3929   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3930     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3932     break 2
3933   fi
3934 done
3935   done
3936 IFS=$as_save_IFS
3937
3938 fi
3939 fi
3940 CC=$ac_cv_prog_CC
3941 if test -n "$CC"; then
3942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3943 $as_echo "$CC" >&6; }
3944 else
3945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3946 $as_echo "no" >&6; }
3947 fi
3948
3949
3950 fi
3951 if test -z "$ac_cv_prog_CC"; then
3952   ac_ct_CC=$CC
3953   # Extract the first word of "gcc", so it can be a program name with args.
3954 set dummy gcc; ac_word=$2
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956 $as_echo_n "checking for $ac_word... " >&6; }
3957 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3958   $as_echo_n "(cached) " >&6
3959 else
3960   if test -n "$ac_ct_CC"; then
3961   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3962 else
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     ac_cv_prog_ac_ct_CC="gcc"
3971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3972     break 2
3973   fi
3974 done
3975   done
3976 IFS=$as_save_IFS
3977
3978 fi
3979 fi
3980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3981 if test -n "$ac_ct_CC"; then
3982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3983 $as_echo "$ac_ct_CC" >&6; }
3984 else
3985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986 $as_echo "no" >&6; }
3987 fi
3988
3989   if test "x$ac_ct_CC" = x; then
3990     CC=""
3991   else
3992     case $cross_compiling:$ac_tool_warned in
3993 yes:)
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3996 ac_tool_warned=yes ;;
3997 esac
3998     CC=$ac_ct_CC
3999   fi
4000 else
4001   CC="$ac_cv_prog_CC"
4002 fi
4003
4004 if test -z "$CC"; then
4005           if test -n "$ac_tool_prefix"; then
4006     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4007 set dummy ${ac_tool_prefix}cc; ac_word=$2
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4009 $as_echo_n "checking for $ac_word... " >&6; }
4010 if ${ac_cv_prog_CC+:} false; then :
4011   $as_echo_n "(cached) " >&6
4012 else
4013   if test -n "$CC"; then
4014   ac_cv_prog_CC="$CC" # Let the user override the test.
4015 else
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 for as_dir in $PATH
4018 do
4019   IFS=$as_save_IFS
4020   test -z "$as_dir" && as_dir=.
4021     for ac_exec_ext in '' $ac_executable_extensions; do
4022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4023     ac_cv_prog_CC="${ac_tool_prefix}cc"
4024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4025     break 2
4026   fi
4027 done
4028   done
4029 IFS=$as_save_IFS
4030
4031 fi
4032 fi
4033 CC=$ac_cv_prog_CC
4034 if test -n "$CC"; then
4035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4036 $as_echo "$CC" >&6; }
4037 else
4038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4039 $as_echo "no" >&6; }
4040 fi
4041
4042
4043   fi
4044 fi
4045 if test -z "$CC"; then
4046   # Extract the first word of "cc", so it can be a program name with args.
4047 set dummy cc; ac_word=$2
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4049 $as_echo_n "checking for $ac_word... " >&6; }
4050 if ${ac_cv_prog_CC+:} false; then :
4051   $as_echo_n "(cached) " >&6
4052 else
4053   if test -n "$CC"; then
4054   ac_cv_prog_CC="$CC" # Let the user override the test.
4055 else
4056   ac_prog_rejected=no
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 for as_dir in $PATH
4059 do
4060   IFS=$as_save_IFS
4061   test -z "$as_dir" && as_dir=.
4062     for ac_exec_ext in '' $ac_executable_extensions; do
4063   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4064     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4065        ac_prog_rejected=yes
4066        continue
4067      fi
4068     ac_cv_prog_CC="cc"
4069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4070     break 2
4071   fi
4072 done
4073   done
4074 IFS=$as_save_IFS
4075
4076 if test $ac_prog_rejected = yes; then
4077   # We found a bogon in the path, so make sure we never use it.
4078   set dummy $ac_cv_prog_CC
4079   shift
4080   if test $# != 0; then
4081     # We chose a different compiler from the bogus one.
4082     # However, it has the same basename, so the bogon will be chosen
4083     # first if we set CC to just the basename; use the full file name.
4084     shift
4085     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4086   fi
4087 fi
4088 fi
4089 fi
4090 CC=$ac_cv_prog_CC
4091 if test -n "$CC"; then
4092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4093 $as_echo "$CC" >&6; }
4094 else
4095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096 $as_echo "no" >&6; }
4097 fi
4098
4099
4100 fi
4101 if test -z "$CC"; then
4102   if test -n "$ac_tool_prefix"; then
4103   for ac_prog in cl.exe
4104   do
4105     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4106 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4108 $as_echo_n "checking for $ac_word... " >&6; }
4109 if ${ac_cv_prog_CC+:} false; then :
4110   $as_echo_n "(cached) " >&6
4111 else
4112   if test -n "$CC"; then
4113   ac_cv_prog_CC="$CC" # Let the user override the test.
4114 else
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH
4117 do
4118   IFS=$as_save_IFS
4119   test -z "$as_dir" && as_dir=.
4120     for ac_exec_ext in '' $ac_executable_extensions; do
4121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4122     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4124     break 2
4125   fi
4126 done
4127   done
4128 IFS=$as_save_IFS
4129
4130 fi
4131 fi
4132 CC=$ac_cv_prog_CC
4133 if test -n "$CC"; then
4134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4135 $as_echo "$CC" >&6; }
4136 else
4137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4138 $as_echo "no" >&6; }
4139 fi
4140
4141
4142     test -n "$CC" && break
4143   done
4144 fi
4145 if test -z "$CC"; then
4146   ac_ct_CC=$CC
4147   for ac_prog in cl.exe
4148 do
4149   # Extract the first word of "$ac_prog", so it can be a program name with args.
4150 set dummy $ac_prog; ac_word=$2
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4152 $as_echo_n "checking for $ac_word... " >&6; }
4153 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4154   $as_echo_n "(cached) " >&6
4155 else
4156   if test -n "$ac_ct_CC"; then
4157   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4158 else
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 for as_dir in $PATH
4161 do
4162   IFS=$as_save_IFS
4163   test -z "$as_dir" && as_dir=.
4164     for ac_exec_ext in '' $ac_executable_extensions; do
4165   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4166     ac_cv_prog_ac_ct_CC="$ac_prog"
4167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4168     break 2
4169   fi
4170 done
4171   done
4172 IFS=$as_save_IFS
4173
4174 fi
4175 fi
4176 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4177 if test -n "$ac_ct_CC"; then
4178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4179 $as_echo "$ac_ct_CC" >&6; }
4180 else
4181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182 $as_echo "no" >&6; }
4183 fi
4184
4185
4186   test -n "$ac_ct_CC" && break
4187 done
4188
4189   if test "x$ac_ct_CC" = x; then
4190     CC=""
4191   else
4192     case $cross_compiling:$ac_tool_warned in
4193 yes:)
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4196 ac_tool_warned=yes ;;
4197 esac
4198     CC=$ac_ct_CC
4199   fi
4200 fi
4201
4202 fi
4203
4204
4205 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4207 as_fn_error $? "no acceptable C compiler found in \$PATH
4208 See \`config.log' for more details" "$LINENO" 5; }
4209
4210 # Provide some information about the compiler.
4211 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4212 set X $ac_compile
4213 ac_compiler=$2
4214 for ac_option in --version -v -V -qversion; do
4215   { { ac_try="$ac_compiler $ac_option >&5"
4216 case "(($ac_try" in
4217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218   *) ac_try_echo=$ac_try;;
4219 esac
4220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4221 $as_echo "$ac_try_echo"; } >&5
4222   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4223   ac_status=$?
4224   if test -s conftest.err; then
4225     sed '10a\
4226 ... rest of stderr output deleted ...
4227          10q' conftest.err >conftest.er1
4228     cat conftest.er1 >&5
4229   fi
4230   rm -f conftest.er1 conftest.err
4231   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4232   test $ac_status = 0; }
4233 done
4234
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h.  */
4237
4238 int main (void)
4239 {
4240
4241  ;
4242  return 0;
4243 }
4244 _ACEOF
4245 ac_clean_files_save=$ac_clean_files
4246 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4247 # Try to create an executable without -o first, disregard a.out.
4248 # It will help us diagnose broken compilers, and finding out an intuition
4249 # of exeext.
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4251 $as_echo_n "checking whether the C compiler works... " >&6; }
4252 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4253
4254 # The possible output files:
4255 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4256
4257 ac_rmfiles=
4258 for ac_file in $ac_files
4259 do
4260   case $ac_file in
4261     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4262     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4263   esac
4264 done
4265 rm -f $ac_rmfiles
4266
4267 if { { ac_try="$ac_link_default"
4268 case "(($ac_try" in
4269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270   *) ac_try_echo=$ac_try;;
4271 esac
4272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4273 $as_echo "$ac_try_echo"; } >&5
4274   (eval "$ac_link_default") 2>&5
4275   ac_status=$?
4276   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4277   test $ac_status = 0; }; then :
4278   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4279 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4280 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4281 # so that the user can short-circuit this test for compilers unknown to
4282 # Autoconf.
4283 for ac_file in $ac_files ''
4284 do
4285   test -f "$ac_file" || continue
4286   case $ac_file in
4287     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4288         ;;
4289     [ab].out )
4290         # We found the default executable, but exeext='' is most
4291         # certainly right.
4292         break;;
4293     *.* )
4294         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4295         then :; else
4296            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4297         fi
4298         # We set ac_cv_exeext here because the later test for it is not
4299         # safe: cross compilers may not add the suffix if given an `-o'
4300         # argument, so we may need to know it at that point already.
4301         # Even if this section looks crufty: it has the advantage of
4302         # actually working.
4303         break;;
4304     * )
4305         break;;
4306   esac
4307 done
4308 test "$ac_cv_exeext" = no && ac_cv_exeext=
4309
4310 else
4311   ac_file=''
4312 fi
4313 if test -z "$ac_file"; then :
4314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4316 $as_echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4318
4319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4321 as_fn_error 77 "C compiler cannot create executables
4322 See \`config.log' for more details" "$LINENO" 5; }
4323 else
4324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4325 $as_echo "yes" >&6; }
4326 fi
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4328 $as_echo_n "checking for C compiler default output file name... " >&6; }
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4330 $as_echo "$ac_file" >&6; }
4331 ac_exeext=$ac_cv_exeext
4332
4333 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4334 ac_clean_files=$ac_clean_files_save
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4336 $as_echo_n "checking for suffix of executables... " >&6; }
4337 if { { ac_try="$ac_link"
4338 case "(($ac_try" in
4339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340   *) ac_try_echo=$ac_try;;
4341 esac
4342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4343 $as_echo "$ac_try_echo"; } >&5
4344   (eval "$ac_link") 2>&5
4345   ac_status=$?
4346   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4347   test $ac_status = 0; }; then :
4348   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4349 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4350 # work properly (i.e., refer to `conftest.exe'), while it won't with
4351 # `rm'.
4352 for ac_file in conftest.exe conftest conftest.*; do
4353   test -f "$ac_file" || continue
4354   case $ac_file in
4355     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4356     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4357           break;;
4358     * ) break;;
4359   esac
4360 done
4361 else
4362   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4364 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4365 See \`config.log' for more details" "$LINENO" 5; }
4366 fi
4367 rm -f conftest conftest$ac_cv_exeext
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4369 $as_echo "$ac_cv_exeext" >&6; }
4370
4371 rm -f conftest.$ac_ext
4372 EXEEXT=$ac_cv_exeext
4373 ac_exeext=$EXEEXT
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h.  */
4376 #include <stdio.h>
4377 int main (void)
4378 {
4379 FILE *f = fopen ("conftest.out", "w");
4380  return ferror (f) || fclose (f) != 0;
4381
4382  ;
4383  return 0;
4384 }
4385 _ACEOF
4386 ac_clean_files="$ac_clean_files conftest.out"
4387 # Check that the compiler produces executables we can run.  If not, either
4388 # the compiler is broken, or we cross compile.
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4390 $as_echo_n "checking whether we are cross compiling... " >&6; }
4391 if test "$cross_compiling" != yes; then
4392   { { ac_try="$ac_link"
4393 case "(($ac_try" in
4394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395   *) ac_try_echo=$ac_try;;
4396 esac
4397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4398 $as_echo "$ac_try_echo"; } >&5
4399   (eval "$ac_link") 2>&5
4400   ac_status=$?
4401   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4402   test $ac_status = 0; }
4403   if { ac_try='./conftest$ac_cv_exeext'
4404   { { case "(($ac_try" in
4405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4406   *) ac_try_echo=$ac_try;;
4407 esac
4408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4409 $as_echo "$ac_try_echo"; } >&5
4410   (eval "$ac_try") 2>&5
4411   ac_status=$?
4412   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4413   test $ac_status = 0; }; }; then
4414     cross_compiling=no
4415   else
4416     if test "$cross_compiling" = maybe; then
4417         cross_compiling=yes
4418     else
4419         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4421 as_fn_error $? "cannot run C compiled programs.
4422 If you meant to cross compile, use \`--host'.
4423 See \`config.log' for more details" "$LINENO" 5; }
4424     fi
4425   fi
4426 fi
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4428 $as_echo "$cross_compiling" >&6; }
4429
4430 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4431 ac_clean_files=$ac_clean_files_save
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4433 $as_echo_n "checking for suffix of object files... " >&6; }
4434 if ${ac_cv_objext+:} false; then :
4435   $as_echo_n "(cached) " >&6
4436 else
4437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h.  */
4439
4440 int main (void)
4441 {
4442
4443  ;
4444  return 0;
4445 }
4446 _ACEOF
4447 rm -f conftest.o conftest.obj
4448 if { { ac_try="$ac_compile"
4449 case "(($ac_try" in
4450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451   *) ac_try_echo=$ac_try;;
4452 esac
4453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4454 $as_echo "$ac_try_echo"; } >&5
4455   (eval "$ac_compile") 2>&5
4456   ac_status=$?
4457   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4458   test $ac_status = 0; }; then :
4459   for ac_file in conftest.o conftest.obj conftest.*; do
4460   test -f "$ac_file" || continue;
4461   case $ac_file in
4462     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4463     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4464        break;;
4465   esac
4466 done
4467 else
4468   $as_echo "$as_me: failed program was:" >&5
4469 sed 's/^/| /' conftest.$ac_ext >&5
4470
4471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4473 as_fn_error $? "cannot compute suffix of object files: cannot compile
4474 See \`config.log' for more details" "$LINENO" 5; }
4475 fi
4476 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4477 fi
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4479 $as_echo "$ac_cv_objext" >&6; }
4480 OBJEXT=$ac_cv_objext
4481 ac_objext=$OBJEXT
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4483 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4484 if ${ac_cv_c_compiler_gnu+:} false; then :
4485   $as_echo_n "(cached) " >&6
4486 else
4487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h.  */
4489
4490 int main (void)
4491 {
4492 #ifndef __GNUC__
4493        choke me
4494 #endif
4495
4496  ;
4497  return 0;
4498 }
4499 _ACEOF
4500 if ac_fn_c_try_compile "$LINENO"; then :
4501   ac_compiler_gnu=yes
4502 else
4503   ac_compiler_gnu=no
4504 fi
4505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4506 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4507
4508 fi
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4510 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4511 if test $ac_compiler_gnu = yes; then
4512   GCC=yes
4513 else
4514   GCC=
4515 fi
4516 ac_test_CFLAGS=${CFLAGS+set}
4517 ac_save_CFLAGS=$CFLAGS
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4519 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4520 if ${ac_cv_prog_cc_g+:} false; then :
4521   $as_echo_n "(cached) " >&6
4522 else
4523   ac_save_c_werror_flag=$ac_c_werror_flag
4524    ac_c_werror_flag=yes
4525    ac_cv_prog_cc_g=no
4526    CFLAGS="-g"
4527    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h.  */
4529
4530 int main (void)
4531 {
4532
4533  ;
4534  return 0;
4535 }
4536 _ACEOF
4537 if ac_fn_c_try_compile "$LINENO"; then :
4538   ac_cv_prog_cc_g=yes
4539 else
4540   CFLAGS=""
4541       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h.  */
4543
4544 int main (void)
4545 {
4546
4547  ;
4548  return 0;
4549 }
4550 _ACEOF
4551 if ac_fn_c_try_compile "$LINENO"; then :
4552
4553 else
4554   ac_c_werror_flag=$ac_save_c_werror_flag
4555          CFLAGS="-g"
4556          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h.  */
4558
4559 int main (void)
4560 {
4561
4562  ;
4563  return 0;
4564 }
4565 _ACEOF
4566 if ac_fn_c_try_compile "$LINENO"; then :
4567   ac_cv_prog_cc_g=yes
4568 fi
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570 fi
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 fi
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574    ac_c_werror_flag=$ac_save_c_werror_flag
4575 fi
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4577 $as_echo "$ac_cv_prog_cc_g" >&6; }
4578 if test "$ac_test_CFLAGS" = set; then
4579   CFLAGS=$ac_save_CFLAGS
4580 elif test $ac_cv_prog_cc_g = yes; then
4581   if test "$GCC" = yes; then
4582     CFLAGS="-g -O2"
4583   else
4584     CFLAGS="-g"
4585   fi
4586 else
4587   if test "$GCC" = yes; then
4588     CFLAGS="-O2"
4589   else
4590     CFLAGS=
4591   fi
4592 fi
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4594 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4595 if ${ac_cv_prog_cc_c89+:} false; then :
4596   $as_echo_n "(cached) " >&6
4597 else
4598   ac_cv_prog_cc_c89=no
4599 ac_save_CC=$CC
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h.  */
4602 #include <stdarg.h>
4603 #include <stdio.h>
4604 struct stat;
4605 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4606 struct buf { int x; };
4607 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4608 static char *e (p, i)
4609      char **p;
4610      int i;
4611 {
4612   return p[i];
4613 }
4614 static char *f (char * (*g) (char **, int), char **p, ...)
4615 {
4616   char *s;
4617   va_list v;
4618   va_start (v,p);
4619   s = g (p, va_arg (v,int));
4620   va_end (v);
4621   return s;
4622 }
4623
4624 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4625    function prototypes and stuff, but not '\xHH' hex character constants.
4626    These don't provoke an error unfortunately, instead are silently treated
4627    as 'x'.  The following induces an error, until -std is added to get
4628    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4629    array size at least.  It's necessary to write '\x00'==0 to get something
4630    that's true only with -std.  */
4631 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4632
4633 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4634    inside strings and character constants.  */
4635 #define FOO(x) 'x'
4636 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4637
4638 int test (int i, double x);
4639 struct s1 {int (*f) (int a);};
4640 struct s2 {int (*f) (double a);};
4641 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4642 int argc;
4643 char **argv;
4644 int main (void)
4645 {
4646 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4647  ;
4648  return 0;
4649 }
4650 _ACEOF
4651 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4652         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4653 do
4654   CC="$ac_save_CC $ac_arg"
4655   if ac_fn_c_try_compile "$LINENO"; then :
4656   ac_cv_prog_cc_c89=$ac_arg
4657 fi
4658 rm -f core conftest.err conftest.$ac_objext
4659   test "x$ac_cv_prog_cc_c89" != "xno" && break
4660 done
4661 rm -f conftest.$ac_ext
4662 CC=$ac_save_CC
4663
4664 fi
4665 # AC_CACHE_VAL
4666 case "x$ac_cv_prog_cc_c89" in
4667   x)
4668     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4669 $as_echo "none needed" >&6; } ;;
4670   xno)
4671     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4672 $as_echo "unsupported" >&6; } ;;
4673   *)
4674     CC="$CC $ac_cv_prog_cc_c89"
4675     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4676 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4677 esac
4678 if test "x$ac_cv_prog_cc_c89" != xno; then :
4679
4680 fi
4681
4682 ac_ext=c
4683 ac_cpp='$CPP $CPPFLAGS'
4684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4687
4688 ac_ext=c
4689 ac_cpp='$CPP $CPPFLAGS'
4690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4694 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4695 if ${am_cv_prog_cc_c_o+:} false; then :
4696   $as_echo_n "(cached) " >&6
4697 else
4698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h.  */
4700
4701 int main (void)
4702 {
4703
4704  ;
4705  return 0;
4706 }
4707 _ACEOF
4708   # Make sure it works both with $CC and with simple cc.
4709   # Following AC_PROG_CC_C_O, we do the test twice because some
4710   # compilers refuse to overwrite an existing .o file with -o,
4711   # though they will create one.
4712   am_cv_prog_cc_c_o=yes
4713   for am_i in 1 2; do
4714     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4715    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4716    ac_status=$?
4717    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718    (exit $ac_status); } \
4719          && test -f conftest2.$ac_objext; then
4720       : OK
4721     else
4722       am_cv_prog_cc_c_o=no
4723       break
4724     fi
4725   done
4726   rm -f core conftest*
4727   unset am_i
4728 fi
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4730 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4731 if test "$am_cv_prog_cc_c_o" != yes; then
4732    # Losing compiler, so override with the script.
4733    # FIXME: It is wrong to rewrite CC.
4734    # But if we don't then we get into trouble of one sort or another.
4735    # A longer-term fix would be to have automake use am__CC in this case,
4736    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4737    CC="$am_aux_dir/compile $CC"
4738 fi
4739 ac_ext=c
4740 ac_cpp='$CPP $CPPFLAGS'
4741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4744
4745
4746
4747 ac_ext=c
4748 ac_cpp='$CPP $CPPFLAGS'
4749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4753 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4754 # On Suns, sometimes $CPP names a directory.
4755 if test -n "$CPP" && test -d "$CPP"; then
4756   CPP=
4757 fi
4758 if test -z "$CPP"; then
4759   if ${ac_cv_prog_CPP+:} false; then :
4760   $as_echo_n "(cached) " >&6
4761 else
4762       # Double quotes because CPP needs to be expanded
4763     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4764     do
4765       ac_preproc_ok=false
4766 for ac_c_preproc_warn_flag in '' yes
4767 do
4768   # Use a header file that comes with gcc, so configuring glibc
4769   # with a fresh cross-compiler works.
4770   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4771   # <limits.h> exists even on freestanding compilers.
4772   # On the NeXT, cc -E runs the code through the compiler's parser,
4773   # not just through cpp. "Syntax error" is here to catch this case.
4774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h.  */
4776 #ifdef __STDC__
4777 # include <limits.h>
4778 #else
4779 # include <assert.h>
4780 #endif
4781                      Syntax error
4782 _ACEOF
4783 if ac_fn_c_try_cpp "$LINENO"; then :
4784
4785 else
4786   # Broken: fails on valid input.
4787 continue
4788 fi
4789 rm -f conftest.err conftest.i conftest.$ac_ext
4790
4791   # OK, works on sane cases.  Now check whether nonexistent headers
4792   # can be detected and how.
4793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h.  */
4795 #include <ac_nonexistent.h>
4796 _ACEOF
4797 if ac_fn_c_try_cpp "$LINENO"; then :
4798   # Broken: success on invalid input.
4799 continue
4800 else
4801   # Passes both tests.
4802 ac_preproc_ok=:
4803 break
4804 fi
4805 rm -f conftest.err conftest.i conftest.$ac_ext
4806
4807 done
4808 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4809 rm -f conftest.i conftest.err conftest.$ac_ext
4810 if $ac_preproc_ok; then :
4811   break
4812 fi
4813
4814     done
4815     ac_cv_prog_CPP=$CPP
4816
4817 fi
4818   CPP=$ac_cv_prog_CPP
4819 else
4820   ac_cv_prog_CPP=$CPP
4821 fi
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4823 $as_echo "$CPP" >&6; }
4824 ac_preproc_ok=false
4825 for ac_c_preproc_warn_flag in '' yes
4826 do
4827   # Use a header file that comes with gcc, so configuring glibc
4828   # with a fresh cross-compiler works.
4829   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4830   # <limits.h> exists even on freestanding compilers.
4831   # On the NeXT, cc -E runs the code through the compiler's parser,
4832   # not just through cpp. "Syntax error" is here to catch this case.
4833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h.  */
4835 #ifdef __STDC__
4836 # include <limits.h>
4837 #else
4838 # include <assert.h>
4839 #endif
4840                      Syntax error
4841 _ACEOF
4842 if ac_fn_c_try_cpp "$LINENO"; then :
4843
4844 else
4845   # Broken: fails on valid input.
4846 continue
4847 fi
4848 rm -f conftest.err conftest.i conftest.$ac_ext
4849
4850   # OK, works on sane cases.  Now check whether nonexistent headers
4851   # can be detected and how.
4852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853 /* end confdefs.h.  */
4854 #include <ac_nonexistent.h>
4855 _ACEOF
4856 if ac_fn_c_try_cpp "$LINENO"; then :
4857   # Broken: success on invalid input.
4858 continue
4859 else
4860   # Passes both tests.
4861 ac_preproc_ok=:
4862 break
4863 fi
4864 rm -f conftest.err conftest.i conftest.$ac_ext
4865
4866 done
4867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4868 rm -f conftest.i conftest.err conftest.$ac_ext
4869 if $ac_preproc_ok; then :
4870
4871 else
4872   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4874 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4875 See \`config.log' for more details" "$LINENO" 5; }
4876 fi
4877
4878 ac_ext=c
4879 ac_cpp='$CPP $CPPFLAGS'
4880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4883
4884
4885   IFS=$xc_prog_cc_prev_IFS
4886   LIBS=$xc_prog_cc_prev_LIBS
4887   CFLAGS=$xc_prog_cc_prev_CFLAGS
4888   LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4889   CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
4890
4891
4892
4893
4894
4895 am__api_version='1.15'
4896
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4898 $as_echo_n "checking whether build environment is sane... " >&6; }
4899 # Reject unsafe characters in $srcdir or the absolute working directory
4900 # name.  Accept space and tab only in the latter.
4901 am_lf='
4902 '
4903 case `pwd` in
4904   *[\\\"\#\$\&\'\`$am_lf]*)
4905     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4906 esac
4907 case $srcdir in
4908   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4909     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4910 esac
4911
4912 # Do 'set' in a subshell so we don't clobber the current shell's
4913 # arguments.  Must try -L first in case configure is actually a
4914 # symlink; some systems play weird games with the mod time of symlinks
4915 # (eg FreeBSD returns the mod time of the symlink's containing
4916 # directory).
4917 if (
4918    am_has_slept=no
4919    for am_try in 1 2; do
4920      echo "timestamp, slept: $am_has_slept" > conftest.file
4921      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4922      if test "$*" = "X"; then
4923         # -L didn't work.
4924         set X `ls -t "$srcdir/configure" conftest.file`
4925      fi
4926      if test "$*" != "X $srcdir/configure conftest.file" \
4927         && test "$*" != "X conftest.file $srcdir/configure"; then
4928
4929         # If neither matched, then we have a broken ls.  This can happen
4930         # if, for instance, CONFIG_SHELL is bash and it inherits a
4931         # broken ls alias from the environment.  This has actually
4932         # happened.  Such a system could not be considered "sane".
4933         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4934   alias in your environment" "$LINENO" 5
4935      fi
4936      if test "$2" = conftest.file || test $am_try -eq 2; then
4937        break
4938      fi
4939      # Just in case.
4940      sleep 1
4941      am_has_slept=yes
4942    done
4943    test "$2" = conftest.file
4944    )
4945 then
4946    # Ok.
4947    :
4948 else
4949    as_fn_error $? "newly created file is older than distributed files!
4950 Check your system clock" "$LINENO" 5
4951 fi
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4953 $as_echo "yes" >&6; }
4954 # If we didn't sleep, we still need to ensure time stamps of config.status and
4955 # generated files are strictly newer.
4956 am_sleep_pid=
4957 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4958   ( sleep 1 ) &
4959   am_sleep_pid=$!
4960 fi
4961
4962 rm -f conftest.file
4963
4964 test "$program_prefix" != NONE &&
4965   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4966 # Use a double $ so make ignores it.
4967 test "$program_suffix" != NONE &&
4968   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4969 # Double any \ or $.
4970 # By default was `s,x,x', remove it if useless.
4971 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4972 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4973
4974 if test x"${MISSING+set}" != xset; then
4975   case $am_aux_dir in
4976   *\ * | *\     *)
4977     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4978   *)
4979     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4980   esac
4981 fi
4982 # Use eval to expand $SHELL
4983 if eval "$MISSING --is-lightweight"; then
4984   am_missing_run="$MISSING "
4985 else
4986   am_missing_run=
4987   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4988 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4989 fi
4990
4991 if test x"${install_sh+set}" != xset; then
4992   case $am_aux_dir in
4993   *\ * | *\     *)
4994     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4995   *)
4996     install_sh="\${SHELL} $am_aux_dir/install-sh"
4997   esac
4998 fi
4999
5000 # Installed binaries are usually stripped using 'strip' when the user
5001 # run "make install-strip".  However 'strip' might not be the right
5002 # tool to use in cross-compilation environments, therefore Automake
5003 # will honor the 'STRIP' environment variable to overrule this program.
5004 if test "$cross_compiling" != no; then
5005   if test -n "$ac_tool_prefix"; then
5006   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5007 set dummy ${ac_tool_prefix}strip; ac_word=$2
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009 $as_echo_n "checking for $ac_word... " >&6; }
5010 if ${ac_cv_prog_STRIP+:} false; then :
5011   $as_echo_n "(cached) " >&6
5012 else
5013   if test -n "$STRIP"; then
5014   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5015 else
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 for as_dir in $PATH
5018 do
5019   IFS=$as_save_IFS
5020   test -z "$as_dir" && as_dir=.
5021     for ac_exec_ext in '' $ac_executable_extensions; do
5022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5023     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5025     break 2
5026   fi
5027 done
5028   done
5029 IFS=$as_save_IFS
5030
5031 fi
5032 fi
5033 STRIP=$ac_cv_prog_STRIP
5034 if test -n "$STRIP"; then
5035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5036 $as_echo "$STRIP" >&6; }
5037 else
5038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 $as_echo "no" >&6; }
5040 fi
5041
5042
5043 fi
5044 if test -z "$ac_cv_prog_STRIP"; then
5045   ac_ct_STRIP=$STRIP
5046   # Extract the first word of "strip", so it can be a program name with args.
5047 set dummy strip; ac_word=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5051   $as_echo_n "(cached) " >&6
5052 else
5053   if test -n "$ac_ct_STRIP"; then
5054   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5055 else
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5058 do
5059   IFS=$as_save_IFS
5060   test -z "$as_dir" && as_dir=.
5061     for ac_exec_ext in '' $ac_executable_extensions; do
5062   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5063     ac_cv_prog_ac_ct_STRIP="strip"
5064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065     break 2
5066   fi
5067 done
5068   done
5069 IFS=$as_save_IFS
5070
5071 fi
5072 fi
5073 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5074 if test -n "$ac_ct_STRIP"; then
5075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5076 $as_echo "$ac_ct_STRIP" >&6; }
5077 else
5078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5080 fi
5081
5082   if test "x$ac_ct_STRIP" = x; then
5083     STRIP=":"
5084   else
5085     case $cross_compiling:$ac_tool_warned in
5086 yes:)
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5089 ac_tool_warned=yes ;;
5090 esac
5091     STRIP=$ac_ct_STRIP
5092   fi
5093 else
5094   STRIP="$ac_cv_prog_STRIP"
5095 fi
5096
5097 fi
5098 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5099
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5101 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5102 if test -z "$MKDIR_P"; then
5103   if ${ac_cv_path_mkdir+:} false; then :
5104   $as_echo_n "(cached) " >&6
5105 else
5106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5108 do
5109   IFS=$as_save_IFS
5110   test -z "$as_dir" && as_dir=.
5111     for ac_prog in mkdir gmkdir; do
5112          for ac_exec_ext in '' $ac_executable_extensions; do
5113            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5114            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5115              'mkdir (GNU coreutils) '* | \
5116              'mkdir (coreutils) '* | \
5117              'mkdir (fileutils) '4.1*)
5118                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5119                break 3;;
5120            esac
5121          done
5122        done
5123   done
5124 IFS=$as_save_IFS
5125
5126 fi
5127
5128   test -d ./--version && rmdir ./--version
5129   if test "${ac_cv_path_mkdir+set}" = set; then
5130     MKDIR_P="$ac_cv_path_mkdir -p"
5131   else
5132     # As a last resort, use the slow shell script.  Don't cache a
5133     # value for MKDIR_P within a source directory, because that will
5134     # break other packages using the cache if that directory is
5135     # removed, or if the value is a relative name.
5136     MKDIR_P="$ac_install_sh -d"
5137   fi
5138 fi
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5140 $as_echo "$MKDIR_P" >&6; }
5141
5142 for ac_prog in gawk mawk nawk awk
5143 do
5144   # Extract the first word of "$ac_prog", so it can be a program name with args.
5145 set dummy $ac_prog; ac_word=$2
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 $as_echo_n "checking for $ac_word... " >&6; }
5148 if ${ac_cv_prog_AWK+:} false; then :
5149   $as_echo_n "(cached) " >&6
5150 else
5151   if test -n "$AWK"; then
5152   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5153 else
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH
5156 do
5157   IFS=$as_save_IFS
5158   test -z "$as_dir" && as_dir=.
5159     for ac_exec_ext in '' $ac_executable_extensions; do
5160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161     ac_cv_prog_AWK="$ac_prog"
5162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5163     break 2
5164   fi
5165 done
5166   done
5167 IFS=$as_save_IFS
5168
5169 fi
5170 fi
5171 AWK=$ac_cv_prog_AWK
5172 if test -n "$AWK"; then
5173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5174 $as_echo "$AWK" >&6; }
5175 else
5176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 $as_echo "no" >&6; }
5178 fi
5179
5180
5181   test -n "$AWK" && break
5182 done
5183
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5185 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5186 set x ${MAKE-make}
5187 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5188 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5189   $as_echo_n "(cached) " >&6
5190 else
5191   cat >conftest.make <<\_ACEOF
5192 SHELL = /bin/sh
5193 all:
5194         @echo '@@@%%%=$(MAKE)=@@@%%%'
5195 _ACEOF
5196 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5197 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5198   *@@@%%%=?*=@@@%%%*)
5199     eval ac_cv_prog_make_${ac_make}_set=yes;;
5200   *)
5201     eval ac_cv_prog_make_${ac_make}_set=no;;
5202 esac
5203 rm -f conftest.make
5204 fi
5205 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5207 $as_echo "yes" >&6; }
5208   SET_MAKE=
5209 else
5210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5212   SET_MAKE="MAKE=${MAKE-make}"
5213 fi
5214
5215 rm -rf .tst 2>/dev/null
5216 mkdir .tst 2>/dev/null
5217 if test -d .tst; then
5218   am__leading_dot=.
5219 else
5220   am__leading_dot=_
5221 fi
5222 rmdir .tst 2>/dev/null
5223
5224 DEPDIR="${am__leading_dot}deps"
5225
5226 ac_config_commands="$ac_config_commands depfiles"
5227
5228
5229 am_make=${MAKE-make}
5230 cat > confinc << 'END'
5231 am__doit:
5232         @echo this is the am__doit target
5233 .PHONY: am__doit
5234 END
5235 # If we don't find an include directive, just comment out the code.
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5237 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5238 am__include="#"
5239 am__quote=
5240 _am_result=none
5241 # First try GNU make style include.
5242 echo "include confinc" > confmf
5243 # Ignore all kinds of additional output from 'make'.
5244 case `$am_make -s -f confmf 2> /dev/null` in #(
5245 *the\ am__doit\ target*)
5246   am__include=include
5247   am__quote=
5248   _am_result=GNU
5249   ;;
5250 esac
5251 # Now try BSD make style include.
5252 if test "$am__include" = "#"; then
5253    echo '.include "confinc"' > confmf
5254    case `$am_make -s -f confmf 2> /dev/null` in #(
5255    *the\ am__doit\ target*)
5256      am__include=.include
5257      am__quote="\""
5258      _am_result=BSD
5259      ;;
5260    esac
5261 fi
5262
5263
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5265 $as_echo "$_am_result" >&6; }
5266 rm -f confinc confmf
5267
5268 # Check whether --enable-dependency-tracking was given.
5269 if test "${enable_dependency_tracking+set}" = set; then :
5270   enableval=$enable_dependency_tracking;
5271 fi
5272
5273 if test "x$enable_dependency_tracking" != xno; then
5274   am_depcomp="$ac_aux_dir/depcomp"
5275   AMDEPBACKSLASH='\'
5276   am__nodep='_no'
5277 fi
5278  if test "x$enable_dependency_tracking" != xno; then
5279   AMDEP_TRUE=
5280   AMDEP_FALSE='#'
5281 else
5282   AMDEP_TRUE='#'
5283   AMDEP_FALSE=
5284 fi
5285
5286
5287 # Check whether --enable-silent-rules was given.
5288 if test "${enable_silent_rules+set}" = set; then :
5289   enableval=$enable_silent_rules;
5290 fi
5291
5292 case $enable_silent_rules in # (((
5293   yes) AM_DEFAULT_VERBOSITY=0;;
5294    no) AM_DEFAULT_VERBOSITY=1;;
5295     *) AM_DEFAULT_VERBOSITY=1;;
5296 esac
5297 am_make=${MAKE-make}
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5299 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5300 if ${am_cv_make_support_nested_variables+:} false; then :
5301   $as_echo_n "(cached) " >&6
5302 else
5303   if $as_echo 'TRUE=$(BAR$(V))
5304 BAR0=false
5305 BAR1=true
5306 V=1
5307 am__doit:
5308         @$(TRUE)
5309 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5310   am_cv_make_support_nested_variables=yes
5311 else
5312   am_cv_make_support_nested_variables=no
5313 fi
5314 fi
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5316 $as_echo "$am_cv_make_support_nested_variables" >&6; }
5317 if test $am_cv_make_support_nested_variables = yes; then
5318     AM_V='$(V)'
5319   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5320 else
5321   AM_V=$AM_DEFAULT_VERBOSITY
5322   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5323 fi
5324 AM_BACKSLASH='\'
5325
5326 ## --------------------------------------- ##
5327 ##  Start of automake initialization code  ##
5328 ## --------------------------------------- ##
5329
5330 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5331   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5332   # is not polluted with repeated "-I."
5333   am__isrc=' -I$(srcdir)'
5334   # test to see if srcdir already configured
5335   if test -f $srcdir/config.status; then
5336     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5337   fi
5338 fi
5339
5340 # test whether we have cygpath
5341 if test -z "$CYGPATH_W"; then
5342   if (cygpath --version) >/dev/null 2>/dev/null; then
5343     CYGPATH_W='cygpath -w'
5344   else
5345     CYGPATH_W=echo
5346   fi
5347 fi
5348
5349
5350 # Define the identity of the package.
5351  PACKAGE='curl'
5352  VERSION='-'
5353
5354
5355 cat >>confdefs.h <<_ACEOF
5356 #define PACKAGE "$PACKAGE"
5357 _ACEOF
5358
5359
5360 cat >>confdefs.h <<_ACEOF
5361 #define VERSION "$VERSION"
5362 _ACEOF
5363
5364 # Some tools Automake needs.
5365
5366 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5367
5368
5369 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5370
5371
5372 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5373
5374
5375 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5376
5377
5378 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5379
5380 # For better backward compatibility.  To be removed once Automake 1.9.x
5381 # dies out for good.  For more background, see:
5382 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5383 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5384 mkdir_p='$(MKDIR_P)'
5385
5386 # We need awk for the "check" target (and possibly the TAP driver).  The
5387 # system "awk" is bad on some platforms.
5388 # Always define AMTAR for backward compatibility.  Yes, it's still used
5389 # in the wild :-(  We should find a proper way to deprecate it ...
5390 AMTAR='$${TAR-tar}'
5391
5392
5393 # We'll loop over all known methods to create a tar archive until one works.
5394 _am_tools='gnutar  pax cpio none'
5395
5396 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5397
5398
5399
5400
5401
5402 depcc="$CC"   am_compiler_list=
5403
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5405 $as_echo_n "checking dependency style of $depcc... " >&6; }
5406 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5407   $as_echo_n "(cached) " >&6
5408 else
5409   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5410   # We make a subdir and do the tests there.  Otherwise we can end up
5411   # making bogus files that we don't know about and never remove.  For
5412   # instance it was reported that on HP-UX the gcc test will end up
5413   # making a dummy file named 'D' -- because '-MD' means "put the output
5414   # in D".
5415   rm -rf conftest.dir
5416   mkdir conftest.dir
5417   # Copy depcomp to subdir because otherwise we won't find it if we're
5418   # using a relative directory.
5419   cp "$am_depcomp" conftest.dir
5420   cd conftest.dir
5421   # We will build objects and dependencies in a subdirectory because
5422   # it helps to detect inapplicable dependency modes.  For instance
5423   # both Tru64's cc and ICC support -MD to output dependencies as a
5424   # side effect of compilation, but ICC will put the dependencies in
5425   # the current directory while Tru64 will put them in the object
5426   # directory.
5427   mkdir sub
5428
5429   am_cv_CC_dependencies_compiler_type=none
5430   if test "$am_compiler_list" = ""; then
5431      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5432   fi
5433   am__universal=false
5434   case " $depcc " in #(
5435      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5436      esac
5437
5438   for depmode in $am_compiler_list; do
5439     # Setup a source with many dependencies, because some compilers
5440     # like to wrap large dependency lists on column 80 (with \), and
5441     # we should not choose a depcomp mode which is confused by this.
5442     #
5443     # We need to recreate these files for each test, as the compiler may
5444     # overwrite some of them when testing with obscure command lines.
5445     # This happens at least with the AIX C compiler.
5446     : > sub/conftest.c
5447     for i in 1 2 3 4 5 6; do
5448       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5449       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5450       # Solaris 10 /bin/sh.
5451       echo '/* dummy */' > sub/conftst$i.h
5452     done
5453     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5454
5455     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5456     # mode.  It turns out that the SunPro C++ compiler does not properly
5457     # handle '-M -o', and we need to detect this.  Also, some Intel
5458     # versions had trouble with output in subdirs.
5459     am__obj=sub/conftest.${OBJEXT-o}
5460     am__minus_obj="-o $am__obj"
5461     case $depmode in
5462     gcc)
5463       # This depmode causes a compiler race in universal mode.
5464       test "$am__universal" = false || continue
5465       ;;
5466     nosideeffect)
5467       # After this tag, mechanisms are not by side-effect, so they'll
5468       # only be used when explicitly requested.
5469       if test "x$enable_dependency_tracking" = xyes; then
5470         continue
5471       else
5472         break
5473       fi
5474       ;;
5475     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5476       # This compiler won't grok '-c -o', but also, the minuso test has
5477       # not run yet.  These depmodes are late enough in the game, and
5478       # so weak that their functioning should not be impacted.
5479       am__obj=conftest.${OBJEXT-o}
5480       am__minus_obj=
5481       ;;
5482     none) break ;;
5483     esac
5484     if depmode=$depmode \
5485        source=sub/conftest.c object=$am__obj \
5486        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5487        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5488          >/dev/null 2>conftest.err &&
5489        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5490        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5491        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5492        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5493       # icc doesn't choke on unknown options, it will just issue warnings
5494       # or remarks (even with -Werror).  So we grep stderr for any message
5495       # that says an option was ignored or not supported.
5496       # When given -MP, icc 7.0 and 7.1 complain thusly:
5497       #   icc: Command line warning: ignoring option '-M'; no argument required
5498       # The diagnosis changed in icc 8.0:
5499       #   icc: Command line remark: option '-MP' not supported
5500       if (grep 'ignoring option' conftest.err ||
5501           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5502         am_cv_CC_dependencies_compiler_type=$depmode
5503         break
5504       fi
5505     fi
5506   done
5507
5508   cd ..
5509   rm -rf conftest.dir
5510 else
5511   am_cv_CC_dependencies_compiler_type=none
5512 fi
5513
5514 fi
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5516 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5517 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5518
5519  if
5520   test "x$enable_dependency_tracking" != xno \
5521   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5522   am__fastdepCC_TRUE=
5523   am__fastdepCC_FALSE='#'
5524 else
5525   am__fastdepCC_TRUE='#'
5526   am__fastdepCC_FALSE=
5527 fi
5528
5529
5530
5531 # POSIX will say in a future version that running "rm -f" with no argument
5532 # is OK; and we want to be able to make that assumption in our Makefile
5533 # recipes.  So use an aggressive probe to check that the usage we want is
5534 # actually supported "in the wild" to an acceptable degree.
5535 # See automake bug#10828.
5536 # To make any issue more visible, cause the running configure to be aborted
5537 # by default if the 'rm' program in use doesn't match our expectations; the
5538 # user can still override this though.
5539 if rm -f && rm -fr && rm -rf; then : OK; else
5540   cat >&2 <<'END'
5541 Oops!
5542
5543 Your 'rm' program seems unable to run without file operands specified
5544 on the command line, even when the '-f' option is present.  This is contrary
5545 to the behaviour of most rm programs out there, and not conforming with
5546 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5547
5548 Please tell bug-automake@gnu.org about your system, including the value
5549 of your $PATH and any error possibly output before this message.  This
5550 can help us improve future automake versions.
5551
5552 END
5553   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5554     echo 'Configuration will proceed anyway, since you have set the' >&2
5555     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5556     echo >&2
5557   else
5558     cat >&2 <<'END'
5559 Aborting the configuration process, to ensure you take notice of the issue.
5560
5561 You can download and install GNU coreutils to get an 'rm' implementation
5562 that behaves properly: <http://www.gnu.org/software/coreutils/>.
5563
5564 If you want to complete the configuration process using your problematic
5565 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5566 to "yes", and re-run configure.
5567
5568 END
5569     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5570   fi
5571 fi
5572
5573 ## ------------------------------------- ##
5574 ##  End of automake initialization code  ##
5575 ## ------------------------------------- ##
5576
5577
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
5579 $as_echo_n "checking curl version... " >&6; }
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
5581 $as_echo "$CURLVERSION" >&6; }
5582
5583
5584
5585 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curlver.h`
5586
5587
5588 PKGADD_PKG="HAXXcurl"
5589 PKGADD_NAME="cURL - a client that groks URLs"
5590 PKGADD_VENDOR="curl.haxx.se"
5591
5592
5593
5594
5595     curl_ssl_msg="no      (--with-{ssl,gnutls,nss,polarssl,cyassl,axtls,winssl,darwinssl} )"
5596     curl_ssh_msg="no      (--with-libssh2)"
5597    curl_zlib_msg="no      (--with-zlib)"
5598     curl_gss_msg="no      (--with-gssapi)"
5599 curl_tls_srp_msg="no      (--enable-tls-srp)"
5600     curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
5601    curl_ipv6_msg="no      (--enable-ipv6)"
5602 curl_unix_sockets_msg="no      (--enable-unix-sockets)"
5603     curl_idn_msg="no      (--with-{libidn,winidn})"
5604  curl_manual_msg="no      (--enable-manual)"
5605 curl_libcurl_msg="enabled (--disable-libcurl-option)"
5606 curl_verbose_msg="enabled (--disable-verbose)"
5607    curl_sspi_msg="no      (--enable-sspi)"
5608    curl_ldap_msg="no      (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
5609   curl_ldaps_msg="no      (--enable-ldaps)"
5610    curl_rtsp_msg="no      (--enable-rtsp)"
5611    curl_rtmp_msg="no      (--with-librtmp)"
5612   curl_mtlnk_msg="no      (--with-libmetalink)"
5613
5614     init_ssl_msg=${curl_ssl_msg}
5615
5616 INITIAL_LDFLAGS=$LDFLAGS
5617 INITIAL_LIBS=$LIBS
5618
5619
5620 # Make sure we can run config.sub.
5621 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5622   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5623
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5625 $as_echo_n "checking build system type... " >&6; }
5626 if ${ac_cv_build+:} false; then :
5627   $as_echo_n "(cached) " >&6
5628 else
5629   ac_build_alias=$build_alias
5630 test "x$ac_build_alias" = x &&
5631   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5632 test "x$ac_build_alias" = x &&
5633   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5634 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5635   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5636
5637 fi
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5639 $as_echo "$ac_cv_build" >&6; }
5640 case $ac_cv_build in
5641 *-*-*) ;;
5642 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5643 esac
5644 build=$ac_cv_build
5645 ac_save_IFS=$IFS; IFS='-'
5646 set x $ac_cv_build
5647 shift
5648 build_cpu=$1
5649 build_vendor=$2
5650 shift; shift
5651 # Remember, the first character of IFS is used to create $*,
5652 # except with old shells:
5653 build_os=$*
5654 IFS=$ac_save_IFS
5655 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5656
5657
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5659 $as_echo_n "checking host system type... " >&6; }
5660 if ${ac_cv_host+:} false; then :
5661   $as_echo_n "(cached) " >&6
5662 else
5663   if test "x$host_alias" = x; then
5664   ac_cv_host=$ac_cv_build
5665 else
5666   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5667     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5668 fi
5669
5670 fi
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5672 $as_echo "$ac_cv_host" >&6; }
5673 case $ac_cv_host in
5674 *-*-*) ;;
5675 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5676 esac
5677 host=$ac_cv_host
5678 ac_save_IFS=$IFS; IFS='-'
5679 set x $ac_cv_host
5680 shift
5681 host_cpu=$1
5682 host_vendor=$2
5683 shift; shift
5684 # Remember, the first character of IFS is used to create $*,
5685 # except with old shells:
5686 host_os=$*
5687 IFS=$ac_save_IFS
5688 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5689
5690
5691
5692 cat >>confdefs.h <<_ACEOF
5693 #define OS "${host}"
5694 _ACEOF
5695
5696
5697
5698
5699
5700 curl_includes_inttypes="\
5701 /* includes start */
5702 #ifdef HAVE_SYS_TYPES_H
5703 # include <sys/types.h>
5704 #endif
5705 #ifdef HAVE_STDINT_H
5706 # include <stdint.h>
5707 #endif
5708 #ifdef HAVE_INTTYPES_H
5709 # include <inttypes.h>
5710 #endif
5711 /* includes end */"
5712   case $host_os in
5713     irix*)
5714       ac_cv_header_stdint_h="no"
5715       ;;
5716   esac
5717   for ac_header in sys/types.h stdint.h inttypes.h
5718 do :
5719   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5720 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_inttypes
5721 "
5722 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5723   cat >>confdefs.h <<_ACEOF
5724 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5725 _ACEOF
5726
5727 fi
5728
5729 done
5730
5731
5732
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5734 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5735 if ${ac_cv_path_GREP+:} false; then :
5736   $as_echo_n "(cached) " >&6
5737 else
5738   if test -z "$GREP"; then
5739   ac_path_GREP_found=false
5740   # Loop through the user's path and test for each of PROGNAME-LIST
5741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5743 do
5744   IFS=$as_save_IFS
5745   test -z "$as_dir" && as_dir=.
5746     for ac_prog in grep ggrep; do
5747     for ac_exec_ext in '' $ac_executable_extensions; do
5748       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5749       as_fn_executable_p "$ac_path_GREP" || continue
5750 # Check for GNU ac_path_GREP and select it if it is found.
5751   # Check for GNU $ac_path_GREP
5752 case `"$ac_path_GREP" --version 2>&1` in
5753 *GNU*)
5754   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5755 *)
5756   ac_count=0
5757   $as_echo_n 0123456789 >"conftest.in"
5758   while :
5759   do
5760     cat "conftest.in" "conftest.in" >"conftest.tmp"
5761     mv "conftest.tmp" "conftest.in"
5762     cp "conftest.in" "conftest.nl"
5763     $as_echo 'GREP' >> "conftest.nl"
5764     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5765     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5766     as_fn_arith $ac_count + 1 && ac_count=$as_val
5767     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5768       # Best one so far, save it but keep looking for a better one
5769       ac_cv_path_GREP="$ac_path_GREP"
5770       ac_path_GREP_max=$ac_count
5771     fi
5772     # 10*(2^10) chars as input seems more than enough
5773     test $ac_count -gt 10 && break
5774   done
5775   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5776 esac
5777
5778       $ac_path_GREP_found && break 3
5779     done
5780   done
5781   done
5782 IFS=$as_save_IFS
5783   if test -z "$ac_cv_path_GREP"; then
5784     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5785   fi
5786 else
5787   ac_cv_path_GREP=$GREP
5788 fi
5789
5790 fi
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5792 $as_echo "$ac_cv_path_GREP" >&6; }
5793  GREP="$ac_cv_path_GREP"
5794
5795
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5797 $as_echo_n "checking for egrep... " >&6; }
5798 if ${ac_cv_path_EGREP+:} false; then :
5799   $as_echo_n "(cached) " >&6
5800 else
5801   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5802    then ac_cv_path_EGREP="$GREP -E"
5803    else
5804      if test -z "$EGREP"; then
5805   ac_path_EGREP_found=false
5806   # Loop through the user's path and test for each of PROGNAME-LIST
5807   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5809 do
5810   IFS=$as_save_IFS
5811   test -z "$as_dir" && as_dir=.
5812     for ac_prog in egrep; do
5813     for ac_exec_ext in '' $ac_executable_extensions; do
5814       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5815       as_fn_executable_p "$ac_path_EGREP" || continue
5816 # Check for GNU ac_path_EGREP and select it if it is found.
5817   # Check for GNU $ac_path_EGREP
5818 case `"$ac_path_EGREP" --version 2>&1` in
5819 *GNU*)
5820   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5821 *)
5822   ac_count=0
5823   $as_echo_n 0123456789 >"conftest.in"
5824   while :
5825   do
5826     cat "conftest.in" "conftest.in" >"conftest.tmp"
5827     mv "conftest.tmp" "conftest.in"
5828     cp "conftest.in" "conftest.nl"
5829     $as_echo 'EGREP' >> "conftest.nl"
5830     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5831     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5832     as_fn_arith $ac_count + 1 && ac_count=$as_val
5833     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5834       # Best one so far, save it but keep looking for a better one
5835       ac_cv_path_EGREP="$ac_path_EGREP"
5836       ac_path_EGREP_max=$ac_count
5837     fi
5838     # 10*(2^10) chars as input seems more than enough
5839     test $ac_count -gt 10 && break
5840   done
5841   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5842 esac
5843
5844       $ac_path_EGREP_found && break 3
5845     done
5846   done
5847   done
5848 IFS=$as_save_IFS
5849   if test -z "$ac_cv_path_EGREP"; then
5850     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5851   fi
5852 else
5853   ac_cv_path_EGREP=$EGREP
5854 fi
5855
5856    fi
5857 fi
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5859 $as_echo "$ac_cv_path_EGREP" >&6; }
5860  EGREP="$ac_cv_path_EGREP"
5861
5862
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5864 $as_echo_n "checking for ANSI C header files... " >&6; }
5865 if ${ac_cv_header_stdc+:} false; then :
5866   $as_echo_n "(cached) " >&6
5867 else
5868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h.  */
5870 #include <stdlib.h>
5871 #include <stdarg.h>
5872 #include <string.h>
5873 #include <float.h>
5874
5875 int main (void)
5876 {
5877
5878  ;
5879  return 0;
5880 }
5881 _ACEOF
5882 if ac_fn_c_try_compile "$LINENO"; then :
5883   ac_cv_header_stdc=yes
5884 else
5885   ac_cv_header_stdc=no
5886 fi
5887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888
5889 if test $ac_cv_header_stdc = yes; then
5890   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892 /* end confdefs.h.  */
5893 #include <string.h>
5894
5895 _ACEOF
5896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5897   $EGREP "memchr" >/dev/null 2>&1; then :
5898
5899 else
5900   ac_cv_header_stdc=no
5901 fi
5902 rm -f conftest*
5903
5904 fi
5905
5906 if test $ac_cv_header_stdc = yes; then
5907   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909 /* end confdefs.h.  */
5910 #include <stdlib.h>
5911
5912 _ACEOF
5913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5914   $EGREP "free" >/dev/null 2>&1; then :
5915
5916 else
5917   ac_cv_header_stdc=no
5918 fi
5919 rm -f conftest*
5920
5921 fi
5922
5923 if test $ac_cv_header_stdc = yes; then
5924   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5925   if test "$cross_compiling" = yes; then :
5926   :
5927 else
5928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5929 /* end confdefs.h.  */
5930 #include <ctype.h>
5931 #include <stdlib.h>
5932 #if ((' ' & 0x0FF) == 0x020)
5933 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5934 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5935 #else
5936 # define ISLOWER(c) \
5937                    (('a' <= (c) && (c) <= 'i') \
5938                      || ('j' <= (c) && (c) <= 'r') \
5939                      || ('s' <= (c) && (c) <= 'z'))
5940 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5941 #endif
5942
5943 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5944 int
5945 main ()
5946 {
5947   int i;
5948   for (i = 0; i < 256; i++)
5949     if (XOR (islower (i), ISLOWER (i))
5950         || toupper (i) != TOUPPER (i))
5951       return 2;
5952   return 0;
5953 }
5954 _ACEOF
5955 if ac_fn_c_try_run "$LINENO"; then :
5956
5957 else
5958   ac_cv_header_stdc=no
5959 fi
5960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5961   conftest.$ac_objext conftest.beam conftest.$ac_ext
5962 fi
5963
5964 fi
5965 fi
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5967 $as_echo "$ac_cv_header_stdc" >&6; }
5968 if test $ac_cv_header_stdc = yes; then
5969
5970 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5971
5972 fi
5973
5974 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5975 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5976                   inttypes.h stdint.h unistd.h
5977 do :
5978   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5979 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5980 "
5981 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5982   cat >>confdefs.h <<_ACEOF
5983 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5984 _ACEOF
5985
5986 fi
5987
5988 done
5989
5990
5991
5992     #
5993         #
5994   if test -z "$SED"; then
5995     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
5996   fi
5997   #
5998   # The cast to long int works around a bug in the HP C Compiler
5999 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6000 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6001 # This bug is HP SR number 8606223364.
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6003 $as_echo_n "checking size of long... " >&6; }
6004 if ${ac_cv_sizeof_long+:} false; then :
6005   $as_echo_n "(cached) " >&6
6006 else
6007   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
6008
6009 else
6010   if test "$ac_cv_type_long" = yes; then
6011      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6013 as_fn_error 77 "cannot compute sizeof (long)
6014 See \`config.log' for more details" "$LINENO" 5; }
6015    else
6016      ac_cv_sizeof_long=0
6017    fi
6018 fi
6019
6020 fi
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6022 $as_echo "$ac_cv_sizeof_long" >&6; }
6023
6024
6025
6026 cat >>confdefs.h <<_ACEOF
6027 #define SIZEOF_LONG $ac_cv_sizeof_long
6028 _ACEOF
6029
6030
6031   # The cast to long int works around a bug in the HP C Compiler
6032 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6033 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6034 # This bug is HP SR number 8606223364.
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
6036 $as_echo_n "checking size of void*... " >&6; }
6037 if ${ac_cv_sizeof_voidp+:} false; then :
6038   $as_echo_n "(cached) " >&6
6039 else
6040   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
6041
6042 else
6043   if test "$ac_cv_type_voidp" = yes; then
6044      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6046 as_fn_error 77 "cannot compute sizeof (void*)
6047 See \`config.log' for more details" "$LINENO" 5; }
6048    else
6049      ac_cv_sizeof_voidp=0
6050    fi
6051 fi
6052
6053 fi
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
6055 $as_echo "$ac_cv_sizeof_voidp" >&6; }
6056
6057
6058
6059 cat >>confdefs.h <<_ACEOF
6060 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
6061 _ACEOF
6062
6063
6064   #
6065   if test -z "$ac_cv_sizeof_long" ||
6066     test "$ac_cv_sizeof_long" -eq "0"; then
6067     as_fn_error $? "cannot find out size of long." "$LINENO" 5
6068   fi
6069   if test -z "$ac_cv_sizeof_voidp" ||
6070      test "$ac_cv_sizeof_voidp" -eq "0"; then
6071     as_fn_error $? "cannot find out size of void*." "$LINENO" 5
6072   fi
6073   #
6074   x_LP64_long=""
6075   x_LP32_long=""
6076   x_LP16_long=""
6077   #
6078   if test "$ac_cv_sizeof_long" -eq "8" &&
6079      test "$ac_cv_sizeof_voidp" -ge "8"; then
6080     x_LP64_long="long"
6081   elif test "$ac_cv_sizeof_long" -eq "4" &&
6082        test "$ac_cv_sizeof_voidp" -ge "4"; then
6083     x_LP32_long="long"
6084   elif test "$ac_cv_sizeof_long" -eq "2" &&
6085        test "$ac_cv_sizeof_voidp" -ge "2"; then
6086     x_LP16_long="long"
6087   fi
6088   #
6089     #
6090   curl_typeof_curl_off_t="unknown"
6091   curl_sizeof_curl_off_t="unknown"
6092   curl_format_curl_off_t="unknown"
6093   curl_format_curl_off_tu="unknown"
6094   #
6095   if test "$curl_typeof_curl_off_t" = "unknown"; then
6096     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit curl_off_t data type" >&5
6097 $as_echo_n "checking for 64-bit curl_off_t data type... " >&6; }
6098     for t8 in          \
6099       "$x_LP64_long"   \
6100       'int64_t'        \
6101       '__int64'        \
6102       'long long'      \
6103       '__longlong'     \
6104       '__longlong_t'   ; do
6105
6106     if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t8"; then
6107     tmp_includes=""
6108     tmp_source=""
6109     tmp_fmt=""
6110     case `echo "$t8" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6111       int64_t)
6112         tmp_includes="$curl_includes_inttypes"
6113         tmp_source="char f[] = PRId64;"
6114         tmp_fmt="PRId64"
6115         ;;
6116       int32_t)
6117         tmp_includes="$curl_includes_inttypes"
6118         tmp_source="char f[] = PRId32;"
6119         tmp_fmt="PRId32"
6120         ;;
6121       int16_t)
6122         tmp_includes="$curl_includes_inttypes"
6123         tmp_source="char f[] = PRId16;"
6124         tmp_fmt="PRId16"
6125         ;;
6126     esac
6127     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h.  */
6129
6130
6131         $tmp_includes
6132         typedef $t8 curl_off_t;
6133         typedef char dummy_arr[sizeof(curl_off_t) == 8 ? 1 : -1];
6134
6135 int main (void)
6136 {
6137
6138         $tmp_source
6139         curl_off_t dummy;
6140
6141  ;
6142  return 0;
6143 }
6144
6145 _ACEOF
6146 if ac_fn_c_try_compile "$LINENO"; then :
6147
6148       if test -z "$tmp_fmt"; then
6149         curl_typeof_curl_off_t="$t8"
6150         curl_sizeof_curl_off_t="8"
6151       else
6152
6153   as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6154   as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6155   if test -z "$SED"; then
6156     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6157   fi
6158   if test -z "$GREP"; then
6159     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6160   fi
6161
6162   tmp_exp=""
6163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164 /* end confdefs.h.  */
6165
6166     $curl_includes_inttypes
6167 #ifdef $tmp_fmt
6168 CURL_DEF_TOKEN $tmp_fmt
6169 #endif
6170
6171
6172 _ACEOF
6173 if ac_fn_c_try_cpp "$LINENO"; then :
6174
6175     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6176       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6177       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6178       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6179     if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6180       tmp_exp=""
6181     fi
6182
6183 fi
6184 rm -f conftest.err conftest.i conftest.$ac_ext
6185   if test -z "$tmp_exp"; then
6186     eval "$as_ac_HaveDef=no"
6187
6188   else
6189     eval "$as_ac_HaveDef=yes"
6190     eval "$as_ac_Def=\$tmp_exp"
6191
6192   fi
6193
6194         as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6195         as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6196         if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6197           curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6198           curl_typeof_curl_off_t="$t8"
6199           curl_sizeof_curl_off_t="8"
6200         fi
6201                       fi
6202
6203 fi
6204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6205   fi
6206
6207     done
6208     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6209 $as_echo "$curl_typeof_curl_off_t" >&6; }
6210   fi
6211   if test "$curl_typeof_curl_off_t" = "unknown"; then
6212     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit curl_off_t data type" >&5
6213 $as_echo_n "checking for 32-bit curl_off_t data type... " >&6; }
6214     for t4 in          \
6215       "$x_LP32_long"   \
6216       'int32_t'        \
6217       '__int32'        \
6218       'int'            ; do
6219
6220     if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t4"; then
6221     tmp_includes=""
6222     tmp_source=""
6223     tmp_fmt=""
6224     case `echo "$t4" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6225       int64_t)
6226         tmp_includes="$curl_includes_inttypes"
6227         tmp_source="char f[] = PRId64;"
6228         tmp_fmt="PRId64"
6229         ;;
6230       int32_t)
6231         tmp_includes="$curl_includes_inttypes"
6232         tmp_source="char f[] = PRId32;"
6233         tmp_fmt="PRId32"
6234         ;;
6235       int16_t)
6236         tmp_includes="$curl_includes_inttypes"
6237         tmp_source="char f[] = PRId16;"
6238         tmp_fmt="PRId16"
6239         ;;
6240     esac
6241     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242 /* end confdefs.h.  */
6243
6244
6245         $tmp_includes
6246         typedef $t4 curl_off_t;
6247         typedef char dummy_arr[sizeof(curl_off_t) == 4 ? 1 : -1];
6248
6249 int main (void)
6250 {
6251
6252         $tmp_source
6253         curl_off_t dummy;
6254
6255  ;
6256  return 0;
6257 }
6258
6259 _ACEOF
6260 if ac_fn_c_try_compile "$LINENO"; then :
6261
6262       if test -z "$tmp_fmt"; then
6263         curl_typeof_curl_off_t="$t4"
6264         curl_sizeof_curl_off_t="4"
6265       else
6266
6267   as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6268   as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6269   if test -z "$SED"; then
6270     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6271   fi
6272   if test -z "$GREP"; then
6273     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6274   fi
6275
6276   tmp_exp=""
6277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278 /* end confdefs.h.  */
6279
6280     $curl_includes_inttypes
6281 #ifdef $tmp_fmt
6282 CURL_DEF_TOKEN $tmp_fmt
6283 #endif
6284
6285
6286 _ACEOF
6287 if ac_fn_c_try_cpp "$LINENO"; then :
6288
6289     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6290       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6291       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6292       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6293     if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6294       tmp_exp=""
6295     fi
6296
6297 fi
6298 rm -f conftest.err conftest.i conftest.$ac_ext
6299   if test -z "$tmp_exp"; then
6300     eval "$as_ac_HaveDef=no"
6301
6302   else
6303     eval "$as_ac_HaveDef=yes"
6304     eval "$as_ac_Def=\$tmp_exp"
6305
6306   fi
6307
6308         as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6309         as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6310         if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6311           curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6312           curl_typeof_curl_off_t="$t4"
6313           curl_sizeof_curl_off_t="4"
6314         fi
6315                       fi
6316
6317 fi
6318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6319   fi
6320
6321     done
6322     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6323 $as_echo "$curl_typeof_curl_off_t" >&6; }
6324   fi
6325   if test "$curl_typeof_curl_off_t" = "unknown"; then
6326     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16-bit curl_off_t data type" >&5
6327 $as_echo_n "checking for 16-bit curl_off_t data type... " >&6; }
6328     for t2 in          \
6329       "$x_LP16_long"   \
6330       'int16_t'        \
6331       '__int16'        \
6332       'int'            ; do
6333
6334     if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t2"; then
6335     tmp_includes=""
6336     tmp_source=""
6337     tmp_fmt=""
6338     case `echo "$t2" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6339       int64_t)
6340         tmp_includes="$curl_includes_inttypes"
6341         tmp_source="char f[] = PRId64;"
6342         tmp_fmt="PRId64"
6343         ;;
6344       int32_t)
6345         tmp_includes="$curl_includes_inttypes"
6346         tmp_source="char f[] = PRId32;"
6347         tmp_fmt="PRId32"
6348         ;;
6349       int16_t)
6350         tmp_includes="$curl_includes_inttypes"
6351         tmp_source="char f[] = PRId16;"
6352         tmp_fmt="PRId16"
6353         ;;
6354     esac
6355     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356 /* end confdefs.h.  */
6357
6358
6359         $tmp_includes
6360         typedef $t2 curl_off_t;
6361         typedef char dummy_arr[sizeof(curl_off_t) == 2 ? 1 : -1];
6362
6363 int main (void)
6364 {
6365
6366         $tmp_source
6367         curl_off_t dummy;
6368
6369  ;
6370  return 0;
6371 }
6372
6373 _ACEOF
6374 if ac_fn_c_try_compile "$LINENO"; then :
6375
6376       if test -z "$tmp_fmt"; then
6377         curl_typeof_curl_off_t="$t2"
6378         curl_sizeof_curl_off_t="2"
6379       else
6380
6381   as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6382   as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6383   if test -z "$SED"; then
6384     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6385   fi
6386   if test -z "$GREP"; then
6387     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6388   fi
6389
6390   tmp_exp=""
6391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392 /* end confdefs.h.  */
6393
6394     $curl_includes_inttypes
6395 #ifdef $tmp_fmt
6396 CURL_DEF_TOKEN $tmp_fmt
6397 #endif
6398
6399
6400 _ACEOF
6401 if ac_fn_c_try_cpp "$LINENO"; then :
6402
6403     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6404       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6405       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6406       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6407     if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6408       tmp_exp=""
6409     fi
6410
6411 fi
6412 rm -f conftest.err conftest.i conftest.$ac_ext
6413   if test -z "$tmp_exp"; then
6414     eval "$as_ac_HaveDef=no"
6415
6416   else
6417     eval "$as_ac_HaveDef=yes"
6418     eval "$as_ac_Def=\$tmp_exp"
6419
6420   fi
6421
6422         as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6423         as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6424         if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6425           curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6426           curl_typeof_curl_off_t="$t2"
6427           curl_sizeof_curl_off_t="2"
6428         fi
6429                       fi
6430
6431 fi
6432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6433   fi
6434
6435     done
6436     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6437 $as_echo "$curl_typeof_curl_off_t" >&6; }
6438   fi
6439   if test "$curl_typeof_curl_off_t" = "unknown"; then
6440     as_fn_error $? "cannot find data type for curl_off_t." "$LINENO" 5
6441   fi
6442   #
6443   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
6444 $as_echo_n "checking size of curl_off_t... " >&6; }
6445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_off_t" >&5
6446 $as_echo "$curl_sizeof_curl_off_t" >&6; }
6447   #
6448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for curl_off_t" >&5
6449 $as_echo_n "checking formatting string directive for curl_off_t... " >&6; }
6450   if test "$curl_format_curl_off_t" != "unknown"; then
6451     x_pull_headers="yes"
6452     curl_format_curl_off_t=`echo "$curl_format_curl_off_t" | "$SED" 's/["]//g'`
6453     curl_format_curl_off_tu=`echo "$curl_format_curl_off_t" | "$SED" 's/i$/u/'`
6454     curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/d$/u/'`
6455     curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/D$/U/'`
6456   else
6457     x_pull_headers="no"
6458     case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6459       long_long | __longlong | __longlong_t)
6460         curl_format_curl_off_t="lld"
6461         curl_format_curl_off_tu="llu"
6462         ;;
6463       long)
6464         curl_format_curl_off_t="ld"
6465         curl_format_curl_off_tu="lu"
6466         ;;
6467       int)
6468         curl_format_curl_off_t="d"
6469         curl_format_curl_off_tu="u"
6470         ;;
6471       __int64)
6472         curl_format_curl_off_t="I64d"
6473         curl_format_curl_off_tu="I64u"
6474         ;;
6475       __int32)
6476         curl_format_curl_off_t="I32d"
6477         curl_format_curl_off_tu="I32u"
6478         ;;
6479       __int16)
6480         curl_format_curl_off_t="I16d"
6481         curl_format_curl_off_tu="I16u"
6482         ;;
6483       *)
6484         as_fn_error $? "cannot find print format string for curl_off_t." "$LINENO" 5
6485         ;;
6486     esac
6487   fi
6488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_t\"" >&5
6489 $as_echo "\"$curl_format_curl_off_t\"" >&6; }
6490   #
6491   { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for unsigned curl_off_t" >&5
6492 $as_echo_n "checking formatting string directive for unsigned curl_off_t... " >&6; }
6493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_tu\"" >&5
6494 $as_echo "\"$curl_format_curl_off_tu\"" >&6; }
6495   #
6496
6497     { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for curl_off_t" >&5
6498 $as_echo_n "checking constant suffix string for curl_off_t... " >&6; }
6499   #
6500   curl_suffix_curl_off_t="unknown"
6501   curl_suffix_curl_off_tu="unknown"
6502   #
6503   case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6504     long_long | __longlong | __longlong_t)
6505       tst_suffixes="LL::"
6506       ;;
6507     long)
6508       tst_suffixes="L::"
6509       ;;
6510     int)
6511       tst_suffixes="::"
6512       ;;
6513     __int64 | int64_t)
6514       tst_suffixes="LL:i64::"
6515       ;;
6516     __int32 | int32_t)
6517       tst_suffixes="L:i32::"
6518       ;;
6519     __int16 | int16_t)
6520       tst_suffixes="L:i16::"
6521       ;;
6522     *)
6523       as_fn_error $? "unexpected data type $curl_typeof_curl_off_t" "$LINENO" 5
6524       ;;
6525   esac
6526   #
6527   old_IFS=$IFS; IFS=':'
6528   for tmp_ssuf in $tst_suffixes ; do
6529     IFS=$old_IFS
6530     if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6531       case $tmp_ssuf in
6532         i64 | i32 | i16)
6533           tmp_usuf="u$tmp_ssuf"
6534           ;;
6535         LL | L)
6536           tmp_usuf="U$tmp_ssuf"
6537           ;;
6538         *)
6539           tmp_usuf=""
6540           ;;
6541       esac
6542       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6543 /* end confdefs.h.  */
6544
6545
6546           $curl_includes_inttypes
6547           typedef $curl_typeof_curl_off_t new_t;
6548
6549 int main (void)
6550 {
6551
6552           new_t s1;
6553           new_t s2;
6554           s1 = -10$tmp_ssuf ;
6555           s2 =  20$tmp_ssuf ;
6556           if(s1 > s2)
6557             return 1;
6558
6559  ;
6560  return 0;
6561 }
6562
6563 _ACEOF
6564 if ac_fn_c_try_compile "$LINENO"; then :
6565
6566         curl_suffix_curl_off_t="$tmp_ssuf"
6567         curl_suffix_curl_off_tu="$tmp_usuf"
6568
6569 fi
6570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571     fi
6572   done
6573   IFS=$old_IFS
6574   #
6575   if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6576     as_fn_error $? "cannot find constant suffix string for curl_off_t." "$LINENO" 5
6577   else
6578     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_t" >&5
6579 $as_echo "$curl_suffix_curl_off_t" >&6; }
6580     { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for unsigned curl_off_t" >&5
6581 $as_echo_n "checking constant suffix string for unsigned curl_off_t... " >&6; }
6582     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_tu" >&5
6583 $as_echo "$curl_suffix_curl_off_tu" >&6; }
6584   fi
6585   #
6586
6587   #
6588   if test "$x_pull_headers" = "yes"; then
6589     if test "x$ac_cv_header_sys_types_h" = "xyes"; then
6590
6591 cat >>confdefs.h <<_EOF
6592 #define CURL_PULL_SYS_TYPES_H 1
6593 _EOF
6594
6595     fi
6596     if test "x$ac_cv_header_stdint_h" = "xyes"; then
6597
6598 cat >>confdefs.h <<_EOF
6599 #define CURL_PULL_STDINT_H 1
6600 _EOF
6601
6602     fi
6603     if test "x$ac_cv_header_inttypes_h" = "xyes"; then
6604
6605 cat >>confdefs.h <<_EOF
6606 #define CURL_PULL_INTTYPES_H 1
6607 _EOF
6608
6609     fi
6610   fi
6611   #
6612
6613 cat >>confdefs.h <<_EOF
6614 #define CURL_TYPEOF_CURL_OFF_T $curl_typeof_curl_off_t
6615 _EOF
6616
6617
6618 cat >>confdefs.h <<_EOF
6619 #define CURL_FORMAT_CURL_OFF_T "$curl_format_curl_off_t"
6620 _EOF
6621
6622
6623 cat >>confdefs.h <<_EOF
6624 #define CURL_FORMAT_CURL_OFF_TU "$curl_format_curl_off_tu"
6625 _EOF
6626
6627
6628 cat >>confdefs.h <<_EOF
6629 #define CURL_FORMAT_OFF_T "%$curl_format_curl_off_t"
6630 _EOF
6631
6632
6633 cat >>confdefs.h <<_EOF
6634 #define CURL_SIZEOF_CURL_OFF_T $curl_sizeof_curl_off_t
6635 _EOF
6636
6637
6638 cat >>confdefs.h <<_EOF
6639 #define CURL_SUFFIX_CURL_OFF_T $curl_suffix_curl_off_t
6640 _EOF
6641
6642
6643 cat >>confdefs.h <<_EOF
6644 #define CURL_SUFFIX_CURL_OFF_TU $curl_suffix_curl_off_tu
6645 _EOF
6646
6647   #
6648
6649
6650
6651
6652         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6653 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655 /* end confdefs.h.  */
6656
6657 #ifdef _AIX
6658    yes_this_is_aix
6659 #endif
6660
6661 _ACEOF
6662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6663   $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6664
6665     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6666 $as_echo "yes" >&6; }
6667     $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6668
6669
6670 else
6671
6672     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6673 $as_echo "no" >&6; }
6674
6675 fi
6676 rm -f conftest*
6677
6678
6679
6680
6681     #
6682   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6683 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h.  */
6686
6687
6688
6689 int main (void)
6690 {
6691
6692 #ifdef _THREAD_SAFE
6693       int dummy=1;
6694 #else
6695       force compilation error
6696 #endif
6697
6698  ;
6699  return 0;
6700 }
6701
6702 _ACEOF
6703 if ac_fn_c_try_compile "$LINENO"; then :
6704
6705     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6706 $as_echo "yes" >&6; }
6707     tmp_thread_safe_initially_defined="yes"
6708
6709 else
6710
6711     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6712 $as_echo "no" >&6; }
6713     tmp_thread_safe_initially_defined="no"
6714
6715 fi
6716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6717   #
6718   if test "$tmp_thread_safe_initially_defined" = "no"; then
6719     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6720 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6721
6722   case $host_os in
6723     aix[123].* | aix4.[012].*)
6724             tmp_need_thread_safe="no"
6725       ;;
6726     aix*)
6727             tmp_need_thread_safe="yes"
6728       ;;
6729     *)
6730       tmp_need_thread_safe="no"
6731       ;;
6732   esac
6733
6734     if test "$tmp_need_thread_safe" = "yes"; then
6735       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6736 $as_echo "yes" >&6; }
6737     else
6738       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6740     fi
6741   fi
6742   #
6743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6744 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6745   if test "$tmp_thread_safe_initially_defined" = "yes" ||
6746     test "$tmp_need_thread_safe" = "yes"; then
6747
6748
6749 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6750
6751 cat >>confdefs.h <<_EOF
6752 #ifndef _THREAD_SAFE
6753 #  define _THREAD_SAFE
6754 #endif
6755 _EOF
6756
6757     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6758 $as_echo "yes" >&6; }
6759   else
6760     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6762   fi
6763   #
6764
6765
6766     #
6767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6768 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6770 /* end confdefs.h.  */
6771
6772
6773
6774 int main (void)
6775 {
6776
6777 #ifdef _REENTRANT
6778       int dummy=1;
6779 #else
6780       force compilation error
6781 #endif
6782
6783  ;
6784  return 0;
6785 }
6786
6787 _ACEOF
6788 if ac_fn_c_try_compile "$LINENO"; then :
6789
6790     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6791 $as_echo "yes" >&6; }
6792     tmp_reentrant_initially_defined="yes"
6793
6794 else
6795
6796     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 $as_echo "no" >&6; }
6798     tmp_reentrant_initially_defined="no"
6799
6800 fi
6801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802   #
6803   if test "$tmp_reentrant_initially_defined" = "no"; then
6804     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6805 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6806
6807   case $host_os in
6808     solaris*)
6809       tmp_need_reentrant="yes"
6810       ;;
6811     *)
6812       tmp_need_reentrant="no"
6813       ;;
6814   esac
6815
6816     if test "$tmp_need_reentrant" = "no"; then
6817
6818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h.  */
6820
6821
6822 #include <errno.h>
6823
6824 int main (void)
6825 {
6826
6827       if(0 != errno)
6828         return 1;
6829
6830  ;
6831  return 0;
6832 }
6833
6834 _ACEOF
6835 if ac_fn_c_try_compile "$LINENO"; then :
6836
6837     tmp_errno="yes"
6838
6839 else
6840
6841     tmp_errno="no"
6842
6843 fi
6844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6845   if test "$tmp_errno" = "yes"; then
6846     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h.  */
6848
6849
6850 #include <errno.h>
6851
6852 int main (void)
6853 {
6854
6855 #ifdef errno
6856         int dummy=1;
6857 #else
6858         force compilation error
6859 #endif
6860
6861  ;
6862  return 0;
6863 }
6864
6865 _ACEOF
6866 if ac_fn_c_try_compile "$LINENO"; then :
6867
6868       tmp_errno="errno_macro_defined"
6869
6870 else
6871
6872       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h.  */
6874
6875
6876 #define _REENTRANT
6877 #include <errno.h>
6878
6879 int main (void)
6880 {
6881
6882 #ifdef errno
6883           int dummy=1;
6884 #else
6885           force compilation error
6886 #endif
6887
6888  ;
6889  return 0;
6890 }
6891
6892 _ACEOF
6893 if ac_fn_c_try_compile "$LINENO"; then :
6894
6895         tmp_errno="errno_macro_needs_reentrant"
6896         tmp_need_reentrant="yes"
6897
6898 fi
6899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6900
6901 fi
6902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6903   fi
6904
6905     fi
6906     if test "$tmp_need_reentrant" = "no"; then
6907
6908   if test "$tmp_need_reentrant" = "no"; then
6909
6910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911 /* end confdefs.h.  */
6912
6913
6914 #define gmtime_r innocuous_gmtime_r
6915 #ifdef __STDC__
6916 # include <limits.h>
6917 #else
6918 # include <assert.h>
6919 #endif
6920 #undef gmtime_r
6921 #ifdef __cplusplus
6922 extern "C"
6923 #endif
6924 char gmtime_r ();
6925 #if defined __stub_gmtime_r || defined __stub___gmtime_r
6926 choke me
6927 #endif
6928
6929 int main (void)
6930 {
6931 return gmtime_r ();
6932  ;
6933  return 0;
6934 }
6935
6936 _ACEOF
6937 if ac_fn_c_try_link "$LINENO"; then :
6938
6939     tmp_gmtime_r="yes"
6940
6941 else
6942
6943     tmp_gmtime_r="no"
6944
6945 fi
6946 rm -f core conftest.err conftest.$ac_objext \
6947     conftest$ac_exeext conftest.$ac_ext
6948   if test "$tmp_gmtime_r" = "yes"; then
6949     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950 /* end confdefs.h.  */
6951
6952 #include <sys/types.h>
6953 #include <time.h>
6954
6955 _ACEOF
6956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6957   $EGREP "gmtime_r" >/dev/null 2>&1; then :
6958
6959       tmp_gmtime_r="proto_declared"
6960
6961 else
6962
6963       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h.  */
6965
6966 #define _REENTRANT
6967 #include <sys/types.h>
6968 #include <time.h>
6969
6970 _ACEOF
6971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6972   $EGREP "gmtime_r" >/dev/null 2>&1; then :
6973
6974         tmp_gmtime_r="proto_needs_reentrant"
6975         tmp_need_reentrant="yes"
6976
6977 fi
6978 rm -f conftest*
6979
6980
6981 fi
6982 rm -f conftest*
6983
6984   fi
6985
6986   fi
6987   if test "$tmp_need_reentrant" = "no"; then
6988
6989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h.  */
6991
6992
6993 #define localtime_r innocuous_localtime_r
6994 #ifdef __STDC__
6995 # include <limits.h>
6996 #else
6997 # include <assert.h>
6998 #endif
6999 #undef localtime_r
7000 #ifdef __cplusplus
7001 extern "C"
7002 #endif
7003 char localtime_r ();
7004 #if defined __stub_localtime_r || defined __stub___localtime_r
7005 choke me
7006 #endif
7007
7008 int main (void)
7009 {
7010 return localtime_r ();
7011  ;
7012  return 0;
7013 }
7014
7015 _ACEOF
7016 if ac_fn_c_try_link "$LINENO"; then :
7017
7018     tmp_localtime_r="yes"
7019
7020 else
7021
7022     tmp_localtime_r="no"
7023
7024 fi
7025 rm -f core conftest.err conftest.$ac_objext \
7026     conftest$ac_exeext conftest.$ac_ext
7027   if test "$tmp_localtime_r" = "yes"; then
7028     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029 /* end confdefs.h.  */
7030
7031 #include <sys/types.h>
7032 #include <time.h>
7033
7034 _ACEOF
7035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7036   $EGREP "localtime_r" >/dev/null 2>&1; then :
7037
7038       tmp_localtime_r="proto_declared"
7039
7040 else
7041
7042       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7043 /* end confdefs.h.  */
7044
7045 #define _REENTRANT
7046 #include <sys/types.h>
7047 #include <time.h>
7048
7049 _ACEOF
7050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7051   $EGREP "localtime_r" >/dev/null 2>&1; then :
7052
7053         tmp_localtime_r="proto_needs_reentrant"
7054         tmp_need_reentrant="yes"
7055
7056 fi
7057 rm -f conftest*
7058
7059
7060 fi
7061 rm -f conftest*
7062
7063   fi
7064
7065   fi
7066   if test "$tmp_need_reentrant" = "no"; then
7067
7068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h.  */
7070
7071
7072 #define strerror_r innocuous_strerror_r
7073 #ifdef __STDC__
7074 # include <limits.h>
7075 #else
7076 # include <assert.h>
7077 #endif
7078 #undef strerror_r
7079 #ifdef __cplusplus
7080 extern "C"
7081 #endif
7082 char strerror_r ();
7083 #if defined __stub_strerror_r || defined __stub___strerror_r
7084 choke me
7085 #endif
7086
7087 int main (void)
7088 {
7089 return strerror_r ();
7090  ;
7091  return 0;
7092 }
7093
7094 _ACEOF
7095 if ac_fn_c_try_link "$LINENO"; then :
7096
7097     tmp_strerror_r="yes"
7098
7099 else
7100
7101     tmp_strerror_r="no"
7102
7103 fi
7104 rm -f core conftest.err conftest.$ac_objext \
7105     conftest$ac_exeext conftest.$ac_ext
7106   if test "$tmp_strerror_r" = "yes"; then
7107     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h.  */
7109
7110 #include <sys/types.h>
7111 #include <string.h>
7112
7113 _ACEOF
7114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7115   $EGREP "strerror_r" >/dev/null 2>&1; then :
7116
7117       tmp_strerror_r="proto_declared"
7118
7119 else
7120
7121       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122 /* end confdefs.h.  */
7123
7124 #define _REENTRANT
7125 #include <sys/types.h>
7126 #include <string.h>
7127
7128 _ACEOF
7129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7130   $EGREP "strerror_r" >/dev/null 2>&1; then :
7131
7132         tmp_strerror_r="proto_needs_reentrant"
7133         tmp_need_reentrant="yes"
7134
7135 fi
7136 rm -f conftest*
7137
7138
7139 fi
7140 rm -f conftest*
7141
7142   fi
7143
7144   fi
7145   if test "$tmp_need_reentrant" = "no"; then
7146
7147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h.  */
7149
7150
7151 #define strtok_r innocuous_strtok_r
7152 #ifdef __STDC__
7153 # include <limits.h>
7154 #else
7155 # include <assert.h>
7156 #endif
7157 #undef strtok_r
7158 #ifdef __cplusplus
7159 extern "C"
7160 #endif
7161 char strtok_r ();
7162 #if defined __stub_strtok_r || defined __stub___strtok_r
7163 choke me
7164 #endif
7165
7166 int main (void)
7167 {
7168 return strtok_r ();
7169  ;
7170  return 0;
7171 }
7172
7173 _ACEOF
7174 if ac_fn_c_try_link "$LINENO"; then :
7175
7176     tmp_strtok_r="yes"
7177
7178 else
7179
7180     tmp_strtok_r="no"
7181
7182 fi
7183 rm -f core conftest.err conftest.$ac_objext \
7184     conftest$ac_exeext conftest.$ac_ext
7185   if test "$tmp_strtok_r" = "yes"; then
7186     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h.  */
7188
7189 #include <sys/types.h>
7190 #include <string.h>
7191
7192 _ACEOF
7193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7194   $EGREP "strtok_r" >/dev/null 2>&1; then :
7195
7196       tmp_strtok_r="proto_declared"
7197
7198 else
7199
7200       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h.  */
7202
7203 #define _REENTRANT
7204 #include <sys/types.h>
7205 #include <string.h>
7206
7207 _ACEOF
7208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7209   $EGREP "strtok_r" >/dev/null 2>&1; then :
7210
7211         tmp_strtok_r="proto_needs_reentrant"
7212         tmp_need_reentrant="yes"
7213
7214 fi
7215 rm -f conftest*
7216
7217
7218 fi
7219 rm -f conftest*
7220
7221   fi
7222
7223   fi
7224   if test "$tmp_need_reentrant" = "no"; then
7225
7226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h.  */
7228
7229
7230 #define inet_ntoa_r innocuous_inet_ntoa_r
7231 #ifdef __STDC__
7232 # include <limits.h>
7233 #else
7234 # include <assert.h>
7235 #endif
7236 #undef inet_ntoa_r
7237 #ifdef __cplusplus
7238 extern "C"
7239 #endif
7240 char inet_ntoa_r ();
7241 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
7242 choke me
7243 #endif
7244
7245 int main (void)
7246 {
7247 return inet_ntoa_r ();
7248  ;
7249  return 0;
7250 }
7251
7252 _ACEOF
7253 if ac_fn_c_try_link "$LINENO"; then :
7254
7255     tmp_inet_ntoa_r="yes"
7256
7257 else
7258
7259     tmp_inet_ntoa_r="no"
7260
7261 fi
7262 rm -f core conftest.err conftest.$ac_objext \
7263     conftest$ac_exeext conftest.$ac_ext
7264   if test "$tmp_inet_ntoa_r" = "yes"; then
7265     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h.  */
7267
7268 #include <sys/types.h>
7269 #include <sys/socket.h>
7270 #include <netinet/in.h>
7271 #include <arpa/inet.h>
7272
7273 _ACEOF
7274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7275   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7276
7277       tmp_inet_ntoa_r="proto_declared"
7278
7279 else
7280
7281       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282 /* end confdefs.h.  */
7283
7284 #define _REENTRANT
7285 #include <sys/types.h>
7286 #include <sys/socket.h>
7287 #include <netinet/in.h>
7288 #include <arpa/inet.h>
7289
7290 _ACEOF
7291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7292   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7293
7294         tmp_inet_ntoa_r="proto_needs_reentrant"
7295         tmp_need_reentrant="yes"
7296
7297 fi
7298 rm -f conftest*
7299
7300
7301 fi
7302 rm -f conftest*
7303
7304   fi
7305
7306   fi
7307   if test "$tmp_need_reentrant" = "no"; then
7308
7309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7310 /* end confdefs.h.  */
7311
7312
7313 #define gethostbyaddr_r innocuous_gethostbyaddr_r
7314 #ifdef __STDC__
7315 # include <limits.h>
7316 #else
7317 # include <assert.h>
7318 #endif
7319 #undef gethostbyaddr_r
7320 #ifdef __cplusplus
7321 extern "C"
7322 #endif
7323 char gethostbyaddr_r ();
7324 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
7325 choke me
7326 #endif
7327
7328 int main (void)
7329 {
7330 return gethostbyaddr_r ();
7331  ;
7332  return 0;
7333 }
7334
7335 _ACEOF
7336 if ac_fn_c_try_link "$LINENO"; then :
7337
7338     tmp_gethostbyaddr_r="yes"
7339
7340 else
7341
7342     tmp_gethostbyaddr_r="no"
7343
7344 fi
7345 rm -f core conftest.err conftest.$ac_objext \
7346     conftest$ac_exeext conftest.$ac_ext
7347   if test "$tmp_gethostbyaddr_r" = "yes"; then
7348     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349 /* end confdefs.h.  */
7350
7351 #include <sys/types.h>
7352 #include <netdb.h>
7353
7354 _ACEOF
7355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7356   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7357
7358       tmp_gethostbyaddr_r="proto_declared"
7359
7360 else
7361
7362       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363 /* end confdefs.h.  */
7364
7365 #define _REENTRANT
7366 #include <sys/types.h>
7367 #include <netdb.h>
7368
7369 _ACEOF
7370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7371   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7372
7373         tmp_gethostbyaddr_r="proto_needs_reentrant"
7374         tmp_need_reentrant="yes"
7375
7376 fi
7377 rm -f conftest*
7378
7379
7380 fi
7381 rm -f conftest*
7382
7383   fi
7384
7385   fi
7386   if test "$tmp_need_reentrant" = "no"; then
7387
7388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389 /* end confdefs.h.  */
7390
7391
7392 #define gethostbyname_r innocuous_gethostbyname_r
7393 #ifdef __STDC__
7394 # include <limits.h>
7395 #else
7396 # include <assert.h>
7397 #endif
7398 #undef gethostbyname_r
7399 #ifdef __cplusplus
7400 extern "C"
7401 #endif
7402 char gethostbyname_r ();
7403 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7404 choke me
7405 #endif
7406
7407 int main (void)
7408 {
7409 return gethostbyname_r ();
7410  ;
7411  return 0;
7412 }
7413
7414 _ACEOF
7415 if ac_fn_c_try_link "$LINENO"; then :
7416
7417     tmp_gethostbyname_r="yes"
7418
7419 else
7420
7421     tmp_gethostbyname_r="no"
7422
7423 fi
7424 rm -f core conftest.err conftest.$ac_objext \
7425     conftest$ac_exeext conftest.$ac_ext
7426   if test "$tmp_gethostbyname_r" = "yes"; then
7427     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7428 /* end confdefs.h.  */
7429
7430 #include <sys/types.h>
7431 #include <netdb.h>
7432
7433 _ACEOF
7434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7435   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7436
7437       tmp_gethostbyname_r="proto_declared"
7438
7439 else
7440
7441       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442 /* end confdefs.h.  */
7443
7444 #define _REENTRANT
7445 #include <sys/types.h>
7446 #include <netdb.h>
7447
7448 _ACEOF
7449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7450   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7451
7452         tmp_gethostbyname_r="proto_needs_reentrant"
7453         tmp_need_reentrant="yes"
7454
7455 fi
7456 rm -f conftest*
7457
7458
7459 fi
7460 rm -f conftest*
7461
7462   fi
7463
7464   fi
7465   if test "$tmp_need_reentrant" = "no"; then
7466
7467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468 /* end confdefs.h.  */
7469
7470
7471 #define getprotobyname_r innocuous_getprotobyname_r
7472 #ifdef __STDC__
7473 # include <limits.h>
7474 #else
7475 # include <assert.h>
7476 #endif
7477 #undef getprotobyname_r
7478 #ifdef __cplusplus
7479 extern "C"
7480 #endif
7481 char getprotobyname_r ();
7482 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7483 choke me
7484 #endif
7485
7486 int main (void)
7487 {
7488 return getprotobyname_r ();
7489  ;
7490  return 0;
7491 }
7492
7493 _ACEOF
7494 if ac_fn_c_try_link "$LINENO"; then :
7495
7496     tmp_getprotobyname_r="yes"
7497
7498 else
7499
7500     tmp_getprotobyname_r="no"
7501
7502 fi
7503 rm -f core conftest.err conftest.$ac_objext \
7504     conftest$ac_exeext conftest.$ac_ext
7505   if test "$tmp_getprotobyname_r" = "yes"; then
7506     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h.  */
7508
7509 #include <sys/types.h>
7510 #include <netdb.h>
7511
7512 _ACEOF
7513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7514   $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7515
7516       tmp_getprotobyname_r="proto_declared"
7517
7518 else
7519
7520       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521 /* end confdefs.h.  */
7522
7523 #define _REENTRANT
7524 #include <sys/types.h>
7525 #include <netdb.h>
7526
7527 _ACEOF
7528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7529   $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7530
7531         tmp_getprotobyname_r="proto_needs_reentrant"
7532         tmp_need_reentrant="yes"
7533
7534 fi
7535 rm -f conftest*
7536
7537
7538 fi
7539 rm -f conftest*
7540
7541   fi
7542
7543   fi
7544   if test "$tmp_need_reentrant" = "no"; then
7545
7546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7547 /* end confdefs.h.  */
7548
7549
7550 #define getservbyport_r innocuous_getservbyport_r
7551 #ifdef __STDC__
7552 # include <limits.h>
7553 #else
7554 # include <assert.h>
7555 #endif
7556 #undef getservbyport_r
7557 #ifdef __cplusplus
7558 extern "C"
7559 #endif
7560 char getservbyport_r ();
7561 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7562 choke me
7563 #endif
7564
7565 int main (void)
7566 {
7567 return getservbyport_r ();
7568  ;
7569  return 0;
7570 }
7571
7572 _ACEOF
7573 if ac_fn_c_try_link "$LINENO"; then :
7574
7575     tmp_getservbyport_r="yes"
7576
7577 else
7578
7579     tmp_getservbyport_r="no"
7580
7581 fi
7582 rm -f core conftest.err conftest.$ac_objext \
7583     conftest$ac_exeext conftest.$ac_ext
7584   if test "$tmp_getservbyport_r" = "yes"; then
7585     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7586 /* end confdefs.h.  */
7587
7588 #include <sys/types.h>
7589 #include <netdb.h>
7590
7591 _ACEOF
7592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7593   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7594
7595       tmp_getservbyport_r="proto_declared"
7596
7597 else
7598
7599       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600 /* end confdefs.h.  */
7601
7602 #define _REENTRANT
7603 #include <sys/types.h>
7604 #include <netdb.h>
7605
7606 _ACEOF
7607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7608   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7609
7610         tmp_getservbyport_r="proto_needs_reentrant"
7611         tmp_need_reentrant="yes"
7612
7613 fi
7614 rm -f conftest*
7615
7616
7617 fi
7618 rm -f conftest*
7619
7620   fi
7621
7622   fi
7623
7624     fi
7625     if test "$tmp_need_reentrant" = "yes"; then
7626       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7627 $as_echo "yes" >&6; }
7628     else
7629       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630 $as_echo "no" >&6; }
7631     fi
7632   fi
7633   #
7634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7635 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7636   if test "$tmp_reentrant_initially_defined" = "yes" ||
7637     test "$tmp_need_reentrant" = "yes"; then
7638
7639
7640 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7641
7642 cat >>confdefs.h <<_EOF
7643 #ifndef _REENTRANT
7644 #  define _REENTRANT
7645 #endif
7646 _EOF
7647
7648     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7649 $as_echo "yes" >&6; }
7650   else
7651     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652 $as_echo "no" >&6; }
7653   fi
7654   #
7655
7656
7657 # Check whether --enable-largefile was given.
7658 if test "${enable_largefile+set}" = set; then :
7659   enableval=$enable_largefile;
7660 fi
7661
7662 if test "$enable_largefile" != no; then
7663
7664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7665 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7666 if ${ac_cv_sys_largefile_CC+:} false; then :
7667   $as_echo_n "(cached) " >&6
7668 else
7669   ac_cv_sys_largefile_CC=no
7670      if test "$GCC" != yes; then
7671        ac_save_CC=$CC
7672        while :; do
7673          # IRIX 6.2 and later do not support large files by default,
7674          # so use the C compiler's -n32 option if that helps.
7675          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676 /* end confdefs.h.  */
7677 #include <sys/types.h>
7678  /* Check that off_t can represent 2**63 - 1 correctly.
7679     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7680     since some C++ compilers masquerading as C compilers
7681     incorrectly reject 9223372036854775807.  */
7682 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7683   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7684                        && LARGE_OFF_T % 2147483647 == 1)
7685                       ? 1 : -1];
7686 int main (void)
7687 {
7688
7689  ;
7690  return 0;
7691 }
7692 _ACEOF
7693          if ac_fn_c_try_compile "$LINENO"; then :
7694   break
7695 fi
7696 rm -f core conftest.err conftest.$ac_objext
7697          CC="$CC -n32"
7698          if ac_fn_c_try_compile "$LINENO"; then :
7699   ac_cv_sys_largefile_CC=' -n32'; break
7700 fi
7701 rm -f core conftest.err conftest.$ac_objext
7702          break
7703        done
7704        CC=$ac_save_CC
7705        rm -f conftest.$ac_ext
7706     fi
7707 fi
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7709 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7710   if test "$ac_cv_sys_largefile_CC" != no; then
7711     CC=$CC$ac_cv_sys_largefile_CC
7712   fi
7713
7714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7715 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7716 if ${ac_cv_sys_file_offset_bits+:} false; then :
7717   $as_echo_n "(cached) " >&6
7718 else
7719   while :; do
7720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721 /* end confdefs.h.  */
7722 #include <sys/types.h>
7723  /* Check that off_t can represent 2**63 - 1 correctly.
7724     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7725     since some C++ compilers masquerading as C compilers
7726     incorrectly reject 9223372036854775807.  */
7727 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7728   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7729                        && LARGE_OFF_T % 2147483647 == 1)
7730                       ? 1 : -1];
7731 int main (void)
7732 {
7733
7734  ;
7735  return 0;
7736 }
7737 _ACEOF
7738 if ac_fn_c_try_compile "$LINENO"; then :
7739   ac_cv_sys_file_offset_bits=no; break
7740 fi
7741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7743 /* end confdefs.h.  */
7744 #define _FILE_OFFSET_BITS 64
7745 #include <sys/types.h>
7746  /* Check that off_t can represent 2**63 - 1 correctly.
7747     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7748     since some C++ compilers masquerading as C compilers
7749     incorrectly reject 9223372036854775807.  */
7750 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7751   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7752                        && LARGE_OFF_T % 2147483647 == 1)
7753                       ? 1 : -1];
7754 int main (void)
7755 {
7756
7757  ;
7758  return 0;
7759 }
7760 _ACEOF
7761 if ac_fn_c_try_compile "$LINENO"; then :
7762   ac_cv_sys_file_offset_bits=64; break
7763 fi
7764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7765   ac_cv_sys_file_offset_bits=unknown
7766   break
7767 done
7768 fi
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7770 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7771 case $ac_cv_sys_file_offset_bits in #(
7772   no | unknown) ;;
7773   *)
7774 cat >>confdefs.h <<_ACEOF
7775 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7776 _ACEOF
7777 ;;
7778 esac
7779 rm -rf conftest*
7780   if test $ac_cv_sys_file_offset_bits = unknown; then
7781     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7782 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7783 if ${ac_cv_sys_large_files+:} false; then :
7784   $as_echo_n "(cached) " >&6
7785 else
7786   while :; do
7787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h.  */
7789 #include <sys/types.h>
7790  /* Check that off_t can represent 2**63 - 1 correctly.
7791     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7792     since some C++ compilers masquerading as C compilers
7793     incorrectly reject 9223372036854775807.  */
7794 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7795   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7796                        && LARGE_OFF_T % 2147483647 == 1)
7797                       ? 1 : -1];
7798 int main (void)
7799 {
7800
7801  ;
7802  return 0;
7803 }
7804 _ACEOF
7805 if ac_fn_c_try_compile "$LINENO"; then :
7806   ac_cv_sys_large_files=no; break
7807 fi
7808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810 /* end confdefs.h.  */
7811 #define _LARGE_FILES 1
7812 #include <sys/types.h>
7813  /* Check that off_t can represent 2**63 - 1 correctly.
7814     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7815     since some C++ compilers masquerading as C compilers
7816     incorrectly reject 9223372036854775807.  */
7817 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7818   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7819                        && LARGE_OFF_T % 2147483647 == 1)
7820                       ? 1 : -1];
7821 int main (void)
7822 {
7823
7824  ;
7825  return 0;
7826 }
7827 _ACEOF
7828 if ac_fn_c_try_compile "$LINENO"; then :
7829   ac_cv_sys_large_files=1; break
7830 fi
7831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7832   ac_cv_sys_large_files=unknown
7833   break
7834 done
7835 fi
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7837 $as_echo "$ac_cv_sys_large_files" >&6; }
7838 case $ac_cv_sys_large_files in #(
7839   no | unknown) ;;
7840   *)
7841 cat >>confdefs.h <<_ACEOF
7842 #define _LARGE_FILES $ac_cv_sys_large_files
7843 _ACEOF
7844 ;;
7845 esac
7846 rm -rf conftest*
7847   fi
7848
7849
7850 fi
7851
7852
7853 case `pwd` in
7854   *\ * | *\     *)
7855     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7856 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7857 esac
7858
7859
7860
7861 macro_version='2.4.2'
7862 macro_revision='1.3337'
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876 ltmain="$ac_aux_dir/ltmain.sh"
7877
7878 # Backslashify metacharacters that are still active within
7879 # double-quoted strings.
7880 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7881
7882 # Same as above, but do not quote variable references.
7883 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7884
7885 # Sed substitution to delay expansion of an escaped shell variable in a
7886 # double_quote_subst'ed string.
7887 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7888
7889 # Sed substitution to delay expansion of an escaped single quote.
7890 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7891
7892 # Sed substitution to avoid accidental globbing in evaled expressions
7893 no_glob_subst='s/\*/\\\*/g'
7894
7895 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7896 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7897 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7898
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7900 $as_echo_n "checking how to print strings... " >&6; }
7901 # Test print first, because it will be a builtin if present.
7902 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7903    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7904   ECHO='print -r --'
7905 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7906   ECHO='printf %s\n'
7907 else
7908   # Use this function as a fallback that always works.
7909   func_fallback_echo ()
7910   {
7911     eval 'cat <<_LTECHO_EOF
7912 $1
7913 _LTECHO_EOF'
7914   }
7915   ECHO='func_fallback_echo'
7916 fi
7917
7918 # func_echo_all arg...
7919 # Invoke $ECHO with all args, space-separated.
7920 func_echo_all ()
7921 {
7922     $ECHO ""
7923 }
7924
7925 case "$ECHO" in
7926   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7927 $as_echo "printf" >&6; } ;;
7928   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7929 $as_echo "print -r" >&6; } ;;
7930   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7931 $as_echo "cat" >&6; } ;;
7932 esac
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7948 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7949 if ${ac_cv_path_SED+:} false; then :
7950   $as_echo_n "(cached) " >&6
7951 else
7952             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7953      for ac_i in 1 2 3 4 5 6 7; do
7954        ac_script="$ac_script$as_nl$ac_script"
7955      done
7956      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7957      { ac_script=; unset ac_script;}
7958      if test -z "$SED"; then
7959   ac_path_SED_found=false
7960   # Loop through the user's path and test for each of PROGNAME-LIST
7961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962 for as_dir in $PATH
7963 do
7964   IFS=$as_save_IFS
7965   test -z "$as_dir" && as_dir=.
7966     for ac_prog in sed gsed; do
7967     for ac_exec_ext in '' $ac_executable_extensions; do
7968       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7969       as_fn_executable_p "$ac_path_SED" || continue
7970 # Check for GNU ac_path_SED and select it if it is found.
7971   # Check for GNU $ac_path_SED
7972 case `"$ac_path_SED" --version 2>&1` in
7973 *GNU*)
7974   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7975 *)
7976   ac_count=0
7977   $as_echo_n 0123456789 >"conftest.in"
7978   while :
7979   do
7980     cat "conftest.in" "conftest.in" >"conftest.tmp"
7981     mv "conftest.tmp" "conftest.in"
7982     cp "conftest.in" "conftest.nl"
7983     $as_echo '' >> "conftest.nl"
7984     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7985     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7986     as_fn_arith $ac_count + 1 && ac_count=$as_val
7987     if test $ac_count -gt ${ac_path_SED_max-0}; then
7988       # Best one so far, save it but keep looking for a better one
7989       ac_cv_path_SED="$ac_path_SED"
7990       ac_path_SED_max=$ac_count
7991     fi
7992     # 10*(2^10) chars as input seems more than enough
7993     test $ac_count -gt 10 && break
7994   done
7995   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7996 esac
7997
7998       $ac_path_SED_found && break 3
7999     done
8000   done
8001   done
8002 IFS=$as_save_IFS
8003   if test -z "$ac_cv_path_SED"; then
8004     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8005   fi
8006 else
8007   ac_cv_path_SED=$SED
8008 fi
8009
8010 fi
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8012 $as_echo "$ac_cv_path_SED" >&6; }
8013  SED="$ac_cv_path_SED"
8014   rm -f conftest.sed
8015
8016 test -z "$SED" && SED=sed
8017 Xsed="$SED -e 1s/^X//"
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8030 $as_echo_n "checking for fgrep... " >&6; }
8031 if ${ac_cv_path_FGREP+:} false; then :
8032   $as_echo_n "(cached) " >&6
8033 else
8034   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8035    then ac_cv_path_FGREP="$GREP -F"
8036    else
8037      if test -z "$FGREP"; then
8038   ac_path_FGREP_found=false
8039   # Loop through the user's path and test for each of PROGNAME-LIST
8040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8041 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8042 do
8043   IFS=$as_save_IFS
8044   test -z "$as_dir" && as_dir=.
8045     for ac_prog in fgrep; do
8046     for ac_exec_ext in '' $ac_executable_extensions; do
8047       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8048       as_fn_executable_p "$ac_path_FGREP" || continue
8049 # Check for GNU ac_path_FGREP and select it if it is found.
8050   # Check for GNU $ac_path_FGREP
8051 case `"$ac_path_FGREP" --version 2>&1` in
8052 *GNU*)
8053   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8054 *)
8055   ac_count=0
8056   $as_echo_n 0123456789 >"conftest.in"
8057   while :
8058   do
8059     cat "conftest.in" "conftest.in" >"conftest.tmp"
8060     mv "conftest.tmp" "conftest.in"
8061     cp "conftest.in" "conftest.nl"
8062     $as_echo 'FGREP' >> "conftest.nl"
8063     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8064     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8065     as_fn_arith $ac_count + 1 && ac_count=$as_val
8066     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8067       # Best one so far, save it but keep looking for a better one
8068       ac_cv_path_FGREP="$ac_path_FGREP"
8069       ac_path_FGREP_max=$ac_count
8070     fi
8071     # 10*(2^10) chars as input seems more than enough
8072     test $ac_count -gt 10 && break
8073   done
8074   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8075 esac
8076
8077       $ac_path_FGREP_found && break 3
8078     done
8079   done
8080   done
8081 IFS=$as_save_IFS
8082   if test -z "$ac_cv_path_FGREP"; then
8083     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8084   fi
8085 else
8086   ac_cv_path_FGREP=$FGREP
8087 fi
8088
8089    fi
8090 fi
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8092 $as_echo "$ac_cv_path_FGREP" >&6; }
8093  FGREP="$ac_cv_path_FGREP"
8094
8095
8096 test -z "$GREP" && GREP=grep
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116 # Check whether --with-gnu-ld was given.
8117 if test "${with_gnu_ld+set}" = set; then :
8118   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8119 else
8120   with_gnu_ld=no
8121 fi
8122
8123 ac_prog=ld
8124 if test "$GCC" = yes; then
8125   # Check if gcc -print-prog-name=ld gives a path.
8126   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8127 $as_echo_n "checking for ld used by $CC... " >&6; }
8128   case $host in
8129   *-*-mingw*)
8130     # gcc leaves a trailing carriage return which upsets mingw
8131     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8132   *)
8133     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8134   esac
8135   case $ac_prog in
8136     # Accept absolute paths.
8137     [\\/]* | ?:[\\/]*)
8138       re_direlt='/[^/][^/]*/\.\./'
8139       # Canonicalize the pathname of ld
8140       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8141       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8142         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8143       done
8144       test -z "$LD" && LD="$ac_prog"
8145       ;;
8146   "")
8147     # If it fails, then pretend we aren't using GCC.
8148     ac_prog=ld
8149     ;;
8150   *)
8151     # If it is relative, then search for the first ld in PATH.
8152     with_gnu_ld=unknown
8153     ;;
8154   esac
8155 elif test "$with_gnu_ld" = yes; then
8156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8157 $as_echo_n "checking for GNU ld... " >&6; }
8158 else
8159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8160 $as_echo_n "checking for non-GNU ld... " >&6; }
8161 fi
8162 if ${lt_cv_path_LD+:} false; then :
8163   $as_echo_n "(cached) " >&6
8164 else
8165   if test -z "$LD"; then
8166   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8167   for ac_dir in $PATH; do
8168     IFS="$lt_save_ifs"
8169     test -z "$ac_dir" && ac_dir=.
8170     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8171       lt_cv_path_LD="$ac_dir/$ac_prog"
8172       # Check to see if the program is GNU ld.  I'd rather use --version,
8173       # but apparently some variants of GNU ld only accept -v.
8174       # Break only if it was the GNU/non-GNU ld that we prefer.
8175       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8176       *GNU* | *'with BFD'*)
8177         test "$with_gnu_ld" != no && break
8178         ;;
8179       *)
8180         test "$with_gnu_ld" != yes && break
8181         ;;
8182       esac
8183     fi
8184   done
8185   IFS="$lt_save_ifs"
8186 else
8187   lt_cv_path_LD="$LD" # Let the user override the test with a path.
8188 fi
8189 fi
8190
8191 LD="$lt_cv_path_LD"
8192 if test -n "$LD"; then
8193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8194 $as_echo "$LD" >&6; }
8195 else
8196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8198 fi
8199 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8201 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8202 if ${lt_cv_prog_gnu_ld+:} false; then :
8203   $as_echo_n "(cached) " >&6
8204 else
8205   # I'd rather use --version here, but apparently some GNU lds only accept -v.
8206 case `$LD -v 2>&1 </dev/null` in
8207 *GNU* | *'with BFD'*)
8208   lt_cv_prog_gnu_ld=yes
8209   ;;
8210 *)
8211   lt_cv_prog_gnu_ld=no
8212   ;;
8213 esac
8214 fi
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8216 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8217 with_gnu_ld=$lt_cv_prog_gnu_ld
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8228 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8229 if ${lt_cv_path_NM+:} false; then :
8230   $as_echo_n "(cached) " >&6
8231 else
8232   if test -n "$NM"; then
8233   # Let the user override the test.
8234   lt_cv_path_NM="$NM"
8235 else
8236   lt_nm_to_check="${ac_tool_prefix}nm"
8237   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8238     lt_nm_to_check="$lt_nm_to_check nm"
8239   fi
8240   for lt_tmp_nm in $lt_nm_to_check; do
8241     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8242     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8243       IFS="$lt_save_ifs"
8244       test -z "$ac_dir" && ac_dir=.
8245       tmp_nm="$ac_dir/$lt_tmp_nm"
8246       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8247         # Check to see if the nm accepts a BSD-compat flag.
8248         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8249         #   nm: unknown option "B" ignored
8250         # Tru64's nm complains that /dev/null is an invalid object file
8251         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8252         */dev/null* | *'Invalid file or object type'*)
8253           lt_cv_path_NM="$tmp_nm -B"
8254           break
8255           ;;
8256         *)
8257           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8258           */dev/null*)
8259             lt_cv_path_NM="$tmp_nm -p"
8260             break
8261             ;;
8262           *)
8263             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8264             continue # so that we can try to find one that supports BSD flags
8265             ;;
8266           esac
8267           ;;
8268         esac
8269       fi
8270     done
8271     IFS="$lt_save_ifs"
8272   done
8273   : ${lt_cv_path_NM=no}
8274 fi
8275 fi
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8277 $as_echo "$lt_cv_path_NM" >&6; }
8278 if test "$lt_cv_path_NM" != "no"; then
8279   NM="$lt_cv_path_NM"
8280 else
8281   # Didn't find any BSD compatible name lister, look for dumpbin.
8282   if test -n "$DUMPBIN"; then :
8283     # Let the user override the test.
8284   else
8285     if test -n "$ac_tool_prefix"; then
8286   for ac_prog in dumpbin "link -dump"
8287   do
8288     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8291 $as_echo_n "checking for $ac_word... " >&6; }
8292 if ${ac_cv_prog_DUMPBIN+:} false; then :
8293   $as_echo_n "(cached) " >&6
8294 else
8295   if test -n "$DUMPBIN"; then
8296   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8297 else
8298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8299 for as_dir in $PATH
8300 do
8301   IFS=$as_save_IFS
8302   test -z "$as_dir" && as_dir=.
8303     for ac_exec_ext in '' $ac_executable_extensions; do
8304   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8305     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8307     break 2
8308   fi
8309 done
8310   done
8311 IFS=$as_save_IFS
8312
8313 fi
8314 fi
8315 DUMPBIN=$ac_cv_prog_DUMPBIN
8316 if test -n "$DUMPBIN"; then
8317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8318 $as_echo "$DUMPBIN" >&6; }
8319 else
8320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8321 $as_echo "no" >&6; }
8322 fi
8323
8324
8325     test -n "$DUMPBIN" && break
8326   done
8327 fi
8328 if test -z "$DUMPBIN"; then
8329   ac_ct_DUMPBIN=$DUMPBIN
8330   for ac_prog in dumpbin "link -dump"
8331 do
8332   # Extract the first word of "$ac_prog", so it can be a program name with args.
8333 set dummy $ac_prog; ac_word=$2
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8335 $as_echo_n "checking for $ac_word... " >&6; }
8336 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8337   $as_echo_n "(cached) " >&6
8338 else
8339   if test -n "$ac_ct_DUMPBIN"; then
8340   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8341 else
8342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8343 for as_dir in $PATH
8344 do
8345   IFS=$as_save_IFS
8346   test -z "$as_dir" && as_dir=.
8347     for ac_exec_ext in '' $ac_executable_extensions; do
8348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8349     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8351     break 2
8352   fi
8353 done
8354   done
8355 IFS=$as_save_IFS
8356
8357 fi
8358 fi
8359 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8360 if test -n "$ac_ct_DUMPBIN"; then
8361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8362 $as_echo "$ac_ct_DUMPBIN" >&6; }
8363 else
8364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8365 $as_echo "no" >&6; }
8366 fi
8367
8368
8369   test -n "$ac_ct_DUMPBIN" && break
8370 done
8371
8372   if test "x$ac_ct_DUMPBIN" = x; then
8373     DUMPBIN=":"
8374   else
8375     case $cross_compiling:$ac_tool_warned in
8376 yes:)
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8379 ac_tool_warned=yes ;;
8380 esac
8381     DUMPBIN=$ac_ct_DUMPBIN
8382   fi
8383 fi
8384
8385     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8386     *COFF*)
8387       DUMPBIN="$DUMPBIN -symbols"
8388       ;;
8389     *)
8390       DUMPBIN=:
8391       ;;
8392     esac
8393   fi
8394
8395   if test "$DUMPBIN" != ":"; then
8396     NM="$DUMPBIN"
8397   fi
8398 fi
8399 test -z "$NM" && NM=nm
8400
8401
8402
8403
8404
8405
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8407 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8408 if ${lt_cv_nm_interface+:} false; then :
8409   $as_echo_n "(cached) " >&6
8410 else
8411   lt_cv_nm_interface="BSD nm"
8412   echo "int some_variable = 0;" > conftest.$ac_ext
8413   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8414   (eval "$ac_compile" 2>conftest.err)
8415   cat conftest.err >&5
8416   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8417   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8418   cat conftest.err >&5
8419   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8420   cat conftest.out >&5
8421   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8422     lt_cv_nm_interface="MS dumpbin"
8423   fi
8424   rm -f conftest*
8425 fi
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8427 $as_echo "$lt_cv_nm_interface" >&6; }
8428
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8430 $as_echo_n "checking whether ln -s works... " >&6; }
8431 LN_S=$as_ln_s
8432 if test "$LN_S" = "ln -s"; then
8433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8434 $as_echo "yes" >&6; }
8435 else
8436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8437 $as_echo "no, using $LN_S" >&6; }
8438 fi
8439
8440 # find the maximum length of command line arguments
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8442 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8443 if ${lt_cv_sys_max_cmd_len+:} false; then :
8444   $as_echo_n "(cached) " >&6
8445 else
8446     i=0
8447   teststring="ABCD"
8448
8449   case $build_os in
8450   msdosdjgpp*)
8451     # On DJGPP, this test can blow up pretty badly due to problems in libc
8452     # (any single argument exceeding 2000 bytes causes a buffer overrun
8453     # during glob expansion).  Even if it were fixed, the result of this
8454     # check would be larger than it should be.
8455     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8456     ;;
8457
8458   gnu*)
8459     # Under GNU Hurd, this test is not required because there is
8460     # no limit to the length of command line arguments.
8461     # Libtool will interpret -1 as no limit whatsoever
8462     lt_cv_sys_max_cmd_len=-1;
8463     ;;
8464
8465   cygwin* | mingw* | cegcc*)
8466     # On Win9x/ME, this test blows up -- it succeeds, but takes
8467     # about 5 minutes as the teststring grows exponentially.
8468     # Worse, since 9x/ME are not pre-emptively multitasking,
8469     # you end up with a "frozen" computer, even though with patience
8470     # the test eventually succeeds (with a max line length of 256k).
8471     # Instead, let's just punt: use the minimum linelength reported by
8472     # all of the supported platforms: 8192 (on NT/2K/XP).
8473     lt_cv_sys_max_cmd_len=8192;
8474     ;;
8475
8476   mint*)
8477     # On MiNT this can take a long time and run out of memory.
8478     lt_cv_sys_max_cmd_len=8192;
8479     ;;
8480
8481   amigaos*)
8482     # On AmigaOS with pdksh, this test takes hours, literally.
8483     # So we just punt and use a minimum line length of 8192.
8484     lt_cv_sys_max_cmd_len=8192;
8485     ;;
8486
8487   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8488     # This has been around since 386BSD, at least.  Likely further.
8489     if test -x /sbin/sysctl; then
8490       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8491     elif test -x /usr/sbin/sysctl; then
8492       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8493     else
8494       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8495     fi
8496     # And add a safety zone
8497     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8498     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8499     ;;
8500
8501   interix*)
8502     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8503     lt_cv_sys_max_cmd_len=196608
8504     ;;
8505
8506   os2*)
8507     # The test takes a long time on OS/2.
8508     lt_cv_sys_max_cmd_len=8192
8509     ;;
8510
8511   osf*)
8512     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8513     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8514     # nice to cause kernel panics so lets avoid the loop below.
8515     # First set a reasonable default.
8516     lt_cv_sys_max_cmd_len=16384
8517     #
8518     if test -x /sbin/sysconfig; then
8519       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8520         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8521       esac
8522     fi
8523     ;;
8524   sco3.2v5*)
8525     lt_cv_sys_max_cmd_len=102400
8526     ;;
8527   sysv5* | sco5v6* | sysv4.2uw2*)
8528     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8529     if test -n "$kargmax"; then
8530       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
8531     else
8532       lt_cv_sys_max_cmd_len=32768
8533     fi
8534     ;;
8535   *)
8536     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8537     if test -n "$lt_cv_sys_max_cmd_len" && \
8538         test undefined != "$lt_cv_sys_max_cmd_len"; then
8539       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8540       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8541     else
8542       # Make teststring a little bigger before we do anything with it.
8543       # a 1K string should be a reasonable start.
8544       for i in 1 2 3 4 5 6 7 8 ; do
8545         teststring=$teststring$teststring
8546       done
8547       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8548       # If test is not a shell built-in, we'll probably end up computing a
8549       # maximum length that is only half of the actual maximum length, but
8550       # we can't tell.
8551       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
8552                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8553               test $i != 17 # 1/2 MB should be enough
8554       do
8555         i=`expr $i + 1`
8556         teststring=$teststring$teststring
8557       done
8558       # Only check the string length outside the loop.
8559       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8560       teststring=
8561       # Add a significant safety factor because C++ compilers can tack on
8562       # massive amounts of additional arguments before passing them to the
8563       # linker.  It appears as though 1/2 is a usable value.
8564       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8565     fi
8566     ;;
8567   esac
8568
8569 fi
8570
8571 if test -n $lt_cv_sys_max_cmd_len ; then
8572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8573 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8574 else
8575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8576 $as_echo "none" >&6; }
8577 fi
8578 max_cmd_len=$lt_cv_sys_max_cmd_len
8579
8580
8581
8582
8583
8584
8585 : ${CP="cp -f"}
8586 : ${MV="mv -f"}
8587 : ${RM="rm -f"}
8588
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8590 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8591 # Try some XSI features
8592 xsi_shell=no
8593 ( _lt_dummy="a/b/c"
8594   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8595       = c,a/b,b/c, \
8596     && eval 'test $(( 1 + 1 )) -eq 2 \
8597     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8598   && xsi_shell=yes
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8600 $as_echo "$xsi_shell" >&6; }
8601
8602
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8604 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8605 lt_shell_append=no
8606 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8607     >/dev/null 2>&1 \
8608   && lt_shell_append=yes
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8610 $as_echo "$lt_shell_append" >&6; }
8611
8612
8613 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8614   lt_unset=unset
8615 else
8616   lt_unset=false
8617 fi
8618
8619
8620
8621
8622
8623 # test EBCDIC or ASCII
8624 case `echo X|tr X '\101'` in
8625  A) # ASCII based system
8626     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8627   lt_SP2NL='tr \040 \012'
8628   lt_NL2SP='tr \015\012 \040\040'
8629   ;;
8630  *) # EBCDIC based system
8631   lt_SP2NL='tr \100 \n'
8632   lt_NL2SP='tr \r\n \100\100'
8633   ;;
8634 esac
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8645 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8646 if ${lt_cv_to_host_file_cmd+:} false; then :
8647   $as_echo_n "(cached) " >&6
8648 else
8649   case $host in
8650   *-*-mingw* )
8651     case $build in
8652       *-*-mingw* ) # actually msys
8653         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8654         ;;
8655       *-*-cygwin* )
8656         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8657         ;;
8658       * ) # otherwise, assume *nix
8659         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8660         ;;
8661     esac
8662     ;;
8663   *-*-cygwin* )
8664     case $build in
8665       *-*-mingw* ) # actually msys
8666         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8667         ;;
8668       *-*-cygwin* )
8669         lt_cv_to_host_file_cmd=func_convert_file_noop
8670         ;;
8671       * ) # otherwise, assume *nix
8672         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8673         ;;
8674     esac
8675     ;;
8676   * ) # unhandled hosts (and "normal" native builds)
8677     lt_cv_to_host_file_cmd=func_convert_file_noop
8678     ;;
8679 esac
8680
8681 fi
8682
8683 to_host_file_cmd=$lt_cv_to_host_file_cmd
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8685 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8686
8687
8688
8689
8690
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8692 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8693 if ${lt_cv_to_tool_file_cmd+:} false; then :
8694   $as_echo_n "(cached) " >&6
8695 else
8696   #assume ordinary cross tools, or native build.
8697 lt_cv_to_tool_file_cmd=func_convert_file_noop
8698 case $host in
8699   *-*-mingw* )
8700     case $build in
8701       *-*-mingw* ) # actually msys
8702         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8703         ;;
8704     esac
8705     ;;
8706 esac
8707
8708 fi
8709
8710 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8712 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8713
8714
8715
8716
8717
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8719 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8720 if ${lt_cv_ld_reload_flag+:} false; then :
8721   $as_echo_n "(cached) " >&6
8722 else
8723   lt_cv_ld_reload_flag='-r'
8724 fi
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8726 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8727 reload_flag=$lt_cv_ld_reload_flag
8728 case $reload_flag in
8729 "" | " "*) ;;
8730 *) reload_flag=" $reload_flag" ;;
8731 esac
8732 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8733 case $host_os in
8734   cygwin* | mingw* | pw32* | cegcc*)
8735     if test "$GCC" != yes; then
8736       reload_cmds=false
8737     fi
8738     ;;
8739   darwin*)
8740     if test "$GCC" = yes; then
8741       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8742     else
8743       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8744     fi
8745     ;;
8746 esac
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756 if test -n "$ac_tool_prefix"; then
8757   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8758 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8760 $as_echo_n "checking for $ac_word... " >&6; }
8761 if ${ac_cv_prog_OBJDUMP+:} false; then :
8762   $as_echo_n "(cached) " >&6
8763 else
8764   if test -n "$OBJDUMP"; then
8765   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8766 else
8767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8768 for as_dir in $PATH
8769 do
8770   IFS=$as_save_IFS
8771   test -z "$as_dir" && as_dir=.
8772     for ac_exec_ext in '' $ac_executable_extensions; do
8773   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8774     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8776     break 2
8777   fi
8778 done
8779   done
8780 IFS=$as_save_IFS
8781
8782 fi
8783 fi
8784 OBJDUMP=$ac_cv_prog_OBJDUMP
8785 if test -n "$OBJDUMP"; then
8786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8787 $as_echo "$OBJDUMP" >&6; }
8788 else
8789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8790 $as_echo "no" >&6; }
8791 fi
8792
8793
8794 fi
8795 if test -z "$ac_cv_prog_OBJDUMP"; then
8796   ac_ct_OBJDUMP=$OBJDUMP
8797   # Extract the first word of "objdump", so it can be a program name with args.
8798 set dummy objdump; ac_word=$2
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8800 $as_echo_n "checking for $ac_word... " >&6; }
8801 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8802   $as_echo_n "(cached) " >&6
8803 else
8804   if test -n "$ac_ct_OBJDUMP"; then
8805   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8806 else
8807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8808 for as_dir in $PATH
8809 do
8810   IFS=$as_save_IFS
8811   test -z "$as_dir" && as_dir=.
8812     for ac_exec_ext in '' $ac_executable_extensions; do
8813   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8814     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8816     break 2
8817   fi
8818 done
8819   done
8820 IFS=$as_save_IFS
8821
8822 fi
8823 fi
8824 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8825 if test -n "$ac_ct_OBJDUMP"; then
8826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8827 $as_echo "$ac_ct_OBJDUMP" >&6; }
8828 else
8829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8830 $as_echo "no" >&6; }
8831 fi
8832
8833   if test "x$ac_ct_OBJDUMP" = x; then
8834     OBJDUMP="false"
8835   else
8836     case $cross_compiling:$ac_tool_warned in
8837 yes:)
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8840 ac_tool_warned=yes ;;
8841 esac
8842     OBJDUMP=$ac_ct_OBJDUMP
8843   fi
8844 else
8845   OBJDUMP="$ac_cv_prog_OBJDUMP"
8846 fi
8847
8848 test -z "$OBJDUMP" && OBJDUMP=objdump
8849
8850
8851
8852
8853
8854
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8856 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8857 if ${lt_cv_deplibs_check_method+:} false; then :
8858   $as_echo_n "(cached) " >&6
8859 else
8860   lt_cv_file_magic_cmd='$MAGIC_CMD'
8861 lt_cv_file_magic_test_file=
8862 lt_cv_deplibs_check_method='unknown'
8863 # Need to set the preceding variable on all platforms that support
8864 # interlibrary dependencies.
8865 # 'none' -- dependencies not supported.
8866 # `unknown' -- same as none, but documents that we really don't know.
8867 # 'pass_all' -- all dependencies passed with no checks.
8868 # 'test_compile' -- check by making test program.
8869 # 'file_magic [[regex]]' -- check by looking for files in library path
8870 # which responds to the $file_magic_cmd with a given extended regex.
8871 # If you have `file' or equivalent on your system and you're not sure
8872 # whether `pass_all' will *always* work, you probably want this one.
8873
8874 case $host_os in
8875 aix[4-9]*)
8876   lt_cv_deplibs_check_method=pass_all
8877   ;;
8878
8879 beos*)
8880   lt_cv_deplibs_check_method=pass_all
8881   ;;
8882
8883 bsdi[45]*)
8884   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8885   lt_cv_file_magic_cmd='/usr/bin/file -L'
8886   lt_cv_file_magic_test_file=/shlib/libc.so
8887   ;;
8888
8889 cygwin*)
8890   # func_win32_libid is a shell function defined in ltmain.sh
8891   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8892   lt_cv_file_magic_cmd='func_win32_libid'
8893   ;;
8894
8895 mingw* | pw32*)
8896   # Base MSYS/MinGW do not provide the 'file' command needed by
8897   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8898   # unless we find 'file', for example because we are cross-compiling.
8899   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8900   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8901     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8902     lt_cv_file_magic_cmd='func_win32_libid'
8903   else
8904     # Keep this pattern in sync with the one in func_win32_libid.
8905     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8906     lt_cv_file_magic_cmd='$OBJDUMP -f'
8907   fi
8908   ;;
8909
8910 cegcc*)
8911   # use the weaker test based on 'objdump'. See mingw*.
8912   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8913   lt_cv_file_magic_cmd='$OBJDUMP -f'
8914   ;;
8915
8916 darwin* | rhapsody*)
8917   lt_cv_deplibs_check_method=pass_all
8918   ;;
8919
8920 freebsd* | dragonfly*)
8921   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8922     case $host_cpu in
8923     i*86 )
8924       # Not sure whether the presence of OpenBSD here was a mistake.
8925       # Let's accept both of them until this is cleared up.
8926       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8927       lt_cv_file_magic_cmd=/usr/bin/file
8928       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8929       ;;
8930     esac
8931   else
8932     lt_cv_deplibs_check_method=pass_all
8933   fi
8934   ;;
8935
8936 haiku*)
8937   lt_cv_deplibs_check_method=pass_all
8938   ;;
8939
8940 hpux10.20* | hpux11*)
8941   lt_cv_file_magic_cmd=/usr/bin/file
8942   case $host_cpu in
8943   ia64*)
8944     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8945     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8946     ;;
8947   hppa*64*)
8948     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]'
8949     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8950     ;;
8951   *)
8952     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8953     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8954     ;;
8955   esac
8956   ;;
8957
8958 interix[3-9]*)
8959   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8960   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8961   ;;
8962
8963 irix5* | irix6* | nonstopux*)
8964   case $LD in
8965   *-32|*"-32 ") libmagic=32-bit;;
8966   *-n32|*"-n32 ") libmagic=N32;;
8967   *-64|*"-64 ") libmagic=64-bit;;
8968   *) libmagic=never-match;;
8969   esac
8970   lt_cv_deplibs_check_method=pass_all
8971   ;;
8972
8973 # This must be glibc/ELF.
8974 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8975   lt_cv_deplibs_check_method=pass_all
8976   ;;
8977
8978 netbsd* | netbsdelf*-gnu)
8979   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8980     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8981   else
8982     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8983   fi
8984   ;;
8985
8986 newos6*)
8987   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8988   lt_cv_file_magic_cmd=/usr/bin/file
8989   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8990   ;;
8991
8992 *nto* | *qnx*)
8993   lt_cv_deplibs_check_method=pass_all
8994   ;;
8995
8996 openbsd*)
8997   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8998     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8999   else
9000     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9001   fi
9002   ;;
9003
9004 osf3* | osf4* | osf5*)
9005   lt_cv_deplibs_check_method=pass_all
9006   ;;
9007
9008 rdos*)
9009   lt_cv_deplibs_check_method=pass_all
9010   ;;
9011
9012 solaris*)
9013   lt_cv_deplibs_check_method=pass_all
9014   ;;
9015
9016 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9017   lt_cv_deplibs_check_method=pass_all
9018   ;;
9019
9020 sysv4 | sysv4.3*)
9021   case $host_vendor in
9022   motorola)
9023     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]'
9024     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9025     ;;
9026   ncr)
9027     lt_cv_deplibs_check_method=pass_all
9028     ;;
9029   sequent)
9030     lt_cv_file_magic_cmd='/bin/file'
9031     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9032     ;;
9033   sni)
9034     lt_cv_file_magic_cmd='/bin/file'
9035     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9036     lt_cv_file_magic_test_file=/lib/libc.so
9037     ;;
9038   siemens)
9039     lt_cv_deplibs_check_method=pass_all
9040     ;;
9041   pc)
9042     lt_cv_deplibs_check_method=pass_all
9043     ;;
9044   esac
9045   ;;
9046
9047 tpf*)
9048   lt_cv_deplibs_check_method=pass_all
9049   ;;
9050 esac
9051
9052 fi
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9054 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9055
9056 file_magic_glob=
9057 want_nocaseglob=no
9058 if test "$build" = "$host"; then
9059   case $host_os in
9060   mingw* | pw32*)
9061     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9062       want_nocaseglob=yes
9063     else
9064       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9065     fi
9066     ;;
9067   esac
9068 fi
9069
9070 file_magic_cmd=$lt_cv_file_magic_cmd
9071 deplibs_check_method=$lt_cv_deplibs_check_method
9072 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095 if test -n "$ac_tool_prefix"; then
9096   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9097 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9099 $as_echo_n "checking for $ac_word... " >&6; }
9100 if ${ac_cv_prog_DLLTOOL+:} false; then :
9101   $as_echo_n "(cached) " >&6
9102 else
9103   if test -n "$DLLTOOL"; then
9104   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9105 else
9106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9107 for as_dir in $PATH
9108 do
9109   IFS=$as_save_IFS
9110   test -z "$as_dir" && as_dir=.
9111     for ac_exec_ext in '' $ac_executable_extensions; do
9112   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9113     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9115     break 2
9116   fi
9117 done
9118   done
9119 IFS=$as_save_IFS
9120
9121 fi
9122 fi
9123 DLLTOOL=$ac_cv_prog_DLLTOOL
9124 if test -n "$DLLTOOL"; then
9125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9126 $as_echo "$DLLTOOL" >&6; }
9127 else
9128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9129 $as_echo "no" >&6; }
9130 fi
9131
9132
9133 fi
9134 if test -z "$ac_cv_prog_DLLTOOL"; then
9135   ac_ct_DLLTOOL=$DLLTOOL
9136   # Extract the first word of "dlltool", so it can be a program name with args.
9137 set dummy dlltool; ac_word=$2
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9139 $as_echo_n "checking for $ac_word... " >&6; }
9140 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9141   $as_echo_n "(cached) " >&6
9142 else
9143   if test -n "$ac_ct_DLLTOOL"; then
9144   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9145 else
9146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9147 for as_dir in $PATH
9148 do
9149   IFS=$as_save_IFS
9150   test -z "$as_dir" && as_dir=.
9151     for ac_exec_ext in '' $ac_executable_extensions; do
9152   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9153     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9155     break 2
9156   fi
9157 done
9158   done
9159 IFS=$as_save_IFS
9160
9161 fi
9162 fi
9163 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9164 if test -n "$ac_ct_DLLTOOL"; then
9165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9166 $as_echo "$ac_ct_DLLTOOL" >&6; }
9167 else
9168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9169 $as_echo "no" >&6; }
9170 fi
9171
9172   if test "x$ac_ct_DLLTOOL" = x; then
9173     DLLTOOL="false"
9174   else
9175     case $cross_compiling:$ac_tool_warned in
9176 yes:)
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9179 ac_tool_warned=yes ;;
9180 esac
9181     DLLTOOL=$ac_ct_DLLTOOL
9182   fi
9183 else
9184   DLLTOOL="$ac_cv_prog_DLLTOOL"
9185 fi
9186
9187 test -z "$DLLTOOL" && DLLTOOL=dlltool
9188
9189
9190
9191
9192
9193
9194
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9196 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9197 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9198   $as_echo_n "(cached) " >&6
9199 else
9200   lt_cv_sharedlib_from_linklib_cmd='unknown'
9201
9202 case $host_os in
9203 cygwin* | mingw* | pw32* | cegcc*)
9204   # two different shell functions defined in ltmain.sh
9205   # decide which to use based on capabilities of $DLLTOOL
9206   case `$DLLTOOL --help 2>&1` in
9207   *--identify-strict*)
9208     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9209     ;;
9210   *)
9211     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9212     ;;
9213   esac
9214   ;;
9215 *)
9216   # fallback: assume linklib IS sharedlib
9217   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
9218   ;;
9219 esac
9220
9221 fi
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9223 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9224 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9225 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9226
9227
9228
9229
9230
9231
9232
9233 if test -n "$ac_tool_prefix"; then
9234   for ac_prog in ar
9235   do
9236     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9237 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9239 $as_echo_n "checking for $ac_word... " >&6; }
9240 if ${ac_cv_prog_AR+:} false; then :
9241   $as_echo_n "(cached) " >&6
9242 else
9243   if test -n "$AR"; then
9244   ac_cv_prog_AR="$AR" # Let the user override the test.
9245 else
9246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9247 for as_dir in $PATH
9248 do
9249   IFS=$as_save_IFS
9250   test -z "$as_dir" && as_dir=.
9251     for ac_exec_ext in '' $ac_executable_extensions; do
9252   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9253     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9255     break 2
9256   fi
9257 done
9258   done
9259 IFS=$as_save_IFS
9260
9261 fi
9262 fi
9263 AR=$ac_cv_prog_AR
9264 if test -n "$AR"; then
9265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9266 $as_echo "$AR" >&6; }
9267 else
9268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9269 $as_echo "no" >&6; }
9270 fi
9271
9272
9273     test -n "$AR" && break
9274   done
9275 fi
9276 if test -z "$AR"; then
9277   ac_ct_AR=$AR
9278   for ac_prog in ar
9279 do
9280   # Extract the first word of "$ac_prog", so it can be a program name with args.
9281 set dummy $ac_prog; ac_word=$2
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9283 $as_echo_n "checking for $ac_word... " >&6; }
9284 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9285   $as_echo_n "(cached) " >&6
9286 else
9287   if test -n "$ac_ct_AR"; then
9288   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9289 else
9290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9291 for as_dir in $PATH
9292 do
9293   IFS=$as_save_IFS
9294   test -z "$as_dir" && as_dir=.
9295     for ac_exec_ext in '' $ac_executable_extensions; do
9296   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9297     ac_cv_prog_ac_ct_AR="$ac_prog"
9298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9299     break 2
9300   fi
9301 done
9302   done
9303 IFS=$as_save_IFS
9304
9305 fi
9306 fi
9307 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9308 if test -n "$ac_ct_AR"; then
9309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9310 $as_echo "$ac_ct_AR" >&6; }
9311 else
9312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9313 $as_echo "no" >&6; }
9314 fi
9315
9316
9317   test -n "$ac_ct_AR" && break
9318 done
9319
9320   if test "x$ac_ct_AR" = x; then
9321     AR="false"
9322   else
9323     case $cross_compiling:$ac_tool_warned in
9324 yes:)
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9327 ac_tool_warned=yes ;;
9328 esac
9329     AR=$ac_ct_AR
9330   fi
9331 fi
9332
9333 : ${AR=ar}
9334 : ${AR_FLAGS=cru}
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9347 $as_echo_n "checking for archiver @FILE support... " >&6; }
9348 if ${lt_cv_ar_at_file+:} false; then :
9349   $as_echo_n "(cached) " >&6
9350 else
9351   lt_cv_ar_at_file=no
9352    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353 /* end confdefs.h.  */
9354
9355 int main (void)
9356 {
9357
9358  ;
9359  return 0;
9360 }
9361 _ACEOF
9362 if ac_fn_c_try_compile "$LINENO"; then :
9363   echo conftest.$ac_objext > conftest.lst
9364       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9365       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9366   (eval $lt_ar_try) 2>&5
9367   ac_status=$?
9368   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9369   test $ac_status = 0; }
9370       if test "$ac_status" -eq 0; then
9371         # Ensure the archiver fails upon bogus file names.
9372         rm -f conftest.$ac_objext libconftest.a
9373         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9374   (eval $lt_ar_try) 2>&5
9375   ac_status=$?
9376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9377   test $ac_status = 0; }
9378         if test "$ac_status" -ne 0; then
9379           lt_cv_ar_at_file=@
9380         fi
9381       fi
9382       rm -f conftest.* libconftest.a
9383
9384 fi
9385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9386
9387 fi
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9389 $as_echo "$lt_cv_ar_at_file" >&6; }
9390
9391 if test "x$lt_cv_ar_at_file" = xno; then
9392   archiver_list_spec=
9393 else
9394   archiver_list_spec=$lt_cv_ar_at_file
9395 fi
9396
9397
9398
9399
9400
9401
9402
9403 if test -n "$ac_tool_prefix"; then
9404   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9405 set dummy ${ac_tool_prefix}strip; ac_word=$2
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9407 $as_echo_n "checking for $ac_word... " >&6; }
9408 if ${ac_cv_prog_STRIP+:} false; then :
9409   $as_echo_n "(cached) " >&6
9410 else
9411   if test -n "$STRIP"; then
9412   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9413 else
9414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9415 for as_dir in $PATH
9416 do
9417   IFS=$as_save_IFS
9418   test -z "$as_dir" && as_dir=.
9419     for ac_exec_ext in '' $ac_executable_extensions; do
9420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9421     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9423     break 2
9424   fi
9425 done
9426   done
9427 IFS=$as_save_IFS
9428
9429 fi
9430 fi
9431 STRIP=$ac_cv_prog_STRIP
9432 if test -n "$STRIP"; then
9433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9434 $as_echo "$STRIP" >&6; }
9435 else
9436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9437 $as_echo "no" >&6; }
9438 fi
9439
9440
9441 fi
9442 if test -z "$ac_cv_prog_STRIP"; then
9443   ac_ct_STRIP=$STRIP
9444   # Extract the first word of "strip", so it can be a program name with args.
9445 set dummy strip; ac_word=$2
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9447 $as_echo_n "checking for $ac_word... " >&6; }
9448 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9449   $as_echo_n "(cached) " >&6
9450 else
9451   if test -n "$ac_ct_STRIP"; then
9452   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9453 else
9454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9455 for as_dir in $PATH
9456 do
9457   IFS=$as_save_IFS
9458   test -z "$as_dir" && as_dir=.
9459     for ac_exec_ext in '' $ac_executable_extensions; do
9460   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9461     ac_cv_prog_ac_ct_STRIP="strip"
9462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9463     break 2
9464   fi
9465 done
9466   done
9467 IFS=$as_save_IFS
9468
9469 fi
9470 fi
9471 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9472 if test -n "$ac_ct_STRIP"; then
9473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9474 $as_echo "$ac_ct_STRIP" >&6; }
9475 else
9476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9477 $as_echo "no" >&6; }
9478 fi
9479
9480   if test "x$ac_ct_STRIP" = x; then
9481     STRIP=":"
9482   else
9483     case $cross_compiling:$ac_tool_warned in
9484 yes:)
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9487 ac_tool_warned=yes ;;
9488 esac
9489     STRIP=$ac_ct_STRIP
9490   fi
9491 else
9492   STRIP="$ac_cv_prog_STRIP"
9493 fi
9494
9495 test -z "$STRIP" && STRIP=:
9496
9497
9498
9499
9500
9501
9502 if test -n "$ac_tool_prefix"; then
9503   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9504 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9506 $as_echo_n "checking for $ac_word... " >&6; }
9507 if ${ac_cv_prog_RANLIB+:} false; then :
9508   $as_echo_n "(cached) " >&6
9509 else
9510   if test -n "$RANLIB"; then
9511   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9512 else
9513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9514 for as_dir in $PATH
9515 do
9516   IFS=$as_save_IFS
9517   test -z "$as_dir" && as_dir=.
9518     for ac_exec_ext in '' $ac_executable_extensions; do
9519   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9520     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9522     break 2
9523   fi
9524 done
9525   done
9526 IFS=$as_save_IFS
9527
9528 fi
9529 fi
9530 RANLIB=$ac_cv_prog_RANLIB
9531 if test -n "$RANLIB"; then
9532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9533 $as_echo "$RANLIB" >&6; }
9534 else
9535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9536 $as_echo "no" >&6; }
9537 fi
9538
9539
9540 fi
9541 if test -z "$ac_cv_prog_RANLIB"; then
9542   ac_ct_RANLIB=$RANLIB
9543   # Extract the first word of "ranlib", so it can be a program name with args.
9544 set dummy ranlib; ac_word=$2
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9546 $as_echo_n "checking for $ac_word... " >&6; }
9547 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9548   $as_echo_n "(cached) " >&6
9549 else
9550   if test -n "$ac_ct_RANLIB"; then
9551   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9552 else
9553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9554 for as_dir in $PATH
9555 do
9556   IFS=$as_save_IFS
9557   test -z "$as_dir" && as_dir=.
9558     for ac_exec_ext in '' $ac_executable_extensions; do
9559   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9560     ac_cv_prog_ac_ct_RANLIB="ranlib"
9561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9562     break 2
9563   fi
9564 done
9565   done
9566 IFS=$as_save_IFS
9567
9568 fi
9569 fi
9570 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9571 if test -n "$ac_ct_RANLIB"; then
9572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9573 $as_echo "$ac_ct_RANLIB" >&6; }
9574 else
9575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9576 $as_echo "no" >&6; }
9577 fi
9578
9579   if test "x$ac_ct_RANLIB" = x; then
9580     RANLIB=":"
9581   else
9582     case $cross_compiling:$ac_tool_warned in
9583 yes:)
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9586 ac_tool_warned=yes ;;
9587 esac
9588     RANLIB=$ac_ct_RANLIB
9589   fi
9590 else
9591   RANLIB="$ac_cv_prog_RANLIB"
9592 fi
9593
9594 test -z "$RANLIB" && RANLIB=:
9595
9596
9597
9598
9599
9600
9601 # Determine commands to create old-style static archives.
9602 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9603 old_postinstall_cmds='chmod 644 $oldlib'
9604 old_postuninstall_cmds=
9605
9606 if test -n "$RANLIB"; then
9607   case $host_os in
9608   openbsd*)
9609     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9610     ;;
9611   *)
9612     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9613     ;;
9614   esac
9615   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9616 fi
9617
9618 case $host_os in
9619   darwin*)
9620     lock_old_archive_extraction=yes ;;
9621   *)
9622     lock_old_archive_extraction=no ;;
9623 esac
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663 # If no C compiler was specified, use CC.
9664 LTCC=${LTCC-"$CC"}
9665
9666 # If no C compiler flags were specified, use CFLAGS.
9667 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9668
9669 # Allow CC to be a program name with arguments.
9670 compiler=$CC
9671
9672
9673 # Check for command to grab the raw symbol name followed by C symbol from nm.
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9675 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9676 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9677   $as_echo_n "(cached) " >&6
9678 else
9679
9680 # These are sane defaults that work on at least a few old systems.
9681 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9682
9683 # Character class describing NM global symbol codes.
9684 symcode='[BCDEGRST]'
9685
9686 # Regexp to match symbols that can be accessed directly from C.
9687 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9688
9689 # Define system-specific variables.
9690 case $host_os in
9691 aix*)
9692   symcode='[BCDT]'
9693   ;;
9694 cygwin* | mingw* | pw32* | cegcc*)
9695   symcode='[ABCDGISTW]'
9696   ;;
9697 hpux*)
9698   if test "$host_cpu" = ia64; then
9699     symcode='[ABCDEGRST]'
9700   fi
9701   ;;
9702 irix* | nonstopux*)
9703   symcode='[BCDEGRST]'
9704   ;;
9705 osf*)
9706   symcode='[BCDEGQRST]'
9707   ;;
9708 solaris*)
9709   symcode='[BDRT]'
9710   ;;
9711 sco3.2v5*)
9712   symcode='[DT]'
9713   ;;
9714 sysv4.2uw2*)
9715   symcode='[DT]'
9716   ;;
9717 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9718   symcode='[ABDT]'
9719   ;;
9720 sysv4)
9721   symcode='[DFNSTU]'
9722   ;;
9723 esac
9724
9725 # If we're using GNU nm, then use its standard symbol codes.
9726 case `$NM -V 2>&1` in
9727 *GNU* | *'with BFD'*)
9728   symcode='[ABCDGIRSTW]' ;;
9729 esac
9730
9731 # Transform an extracted symbol line into a proper C declaration.
9732 # Some systems (esp. on ia64) link data and code symbols differently,
9733 # so use this general approach.
9734 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9735
9736 # Transform an extracted symbol line into symbol name and symbol address
9737 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
9738 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'"
9739
9740 # Handle CRLF in mingw tool chain
9741 opt_cr=
9742 case $build_os in
9743 mingw*)
9744   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9745   ;;
9746 esac
9747
9748 # Try without a prefix underscore, then with it.
9749 for ac_symprfx in "" "_"; do
9750
9751   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9752   symxfrm="\\1 $ac_symprfx\\2 \\2"
9753
9754   # Write the raw and C identifiers.
9755   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9756     # Fake it for dumpbin and say T for any non-static function
9757     # and D for any global variable.
9758     # Also find C++ and __fastcall symbols from MSVC++,
9759     # which start with @ or ?.
9760     lt_cv_sys_global_symbol_pipe="$AWK '"\
9761 "     {last_section=section; section=\$ 3};"\
9762 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9763 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9764 "     \$ 0!~/External *\|/{next};"\
9765 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9766 "     {if(hide[section]) next};"\
9767 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9768 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9769 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
9770 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9771 "     ' prfx=^$ac_symprfx"
9772   else
9773     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9774   fi
9775   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9776
9777   # Check to see that the pipe works correctly.
9778   pipe_works=no
9779
9780   rm -f conftest*
9781   cat > conftest.$ac_ext <<_LT_EOF
9782 #ifdef __cplusplus
9783 extern "C" {
9784 #endif
9785 char nm_test_var;
9786 void nm_test_func(void);
9787 void nm_test_func(void){}
9788 #ifdef __cplusplus
9789 }
9790 #endif
9791 int main(){nm_test_var='a';nm_test_func();return(0);}
9792 _LT_EOF
9793
9794   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9795   (eval $ac_compile) 2>&5
9796   ac_status=$?
9797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9798   test $ac_status = 0; }; then
9799     # Now try to grab the symbols.
9800     nlist=conftest.nm
9801     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9802   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9803   ac_status=$?
9804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9805   test $ac_status = 0; } && test -s "$nlist"; then
9806       # Try sorting and uniquifying the output.
9807       if sort "$nlist" | uniq > "$nlist"T; then
9808         mv -f "$nlist"T "$nlist"
9809       else
9810         rm -f "$nlist"T
9811       fi
9812
9813       # Make sure that we snagged all the symbols we need.
9814       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9815         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9816           cat <<_LT_EOF > conftest.$ac_ext
9817 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9818 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9819 /* DATA imports from DLLs on WIN32 con't be const, because runtime
9820    relocations are performed -- see ld's documentation on pseudo-relocs.  */
9821 # define LT_DLSYM_CONST
9822 #elif defined(__osf__)
9823 /* This system does not cope well with relocations in const data.  */
9824 # define LT_DLSYM_CONST
9825 #else
9826 # define LT_DLSYM_CONST const
9827 #endif
9828
9829 #ifdef __cplusplus
9830 extern "C" {
9831 #endif
9832
9833 _LT_EOF
9834           # Now generate the symbol file.
9835           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9836
9837           cat <<_LT_EOF >> conftest.$ac_ext
9838
9839 /* The mapping between symbol names and symbols.  */
9840 LT_DLSYM_CONST struct {
9841   const char *name;
9842   void       *address;
9843 }
9844 lt__PROGRAM__LTX_preloaded_symbols[] =
9845 {
9846   { "@PROGRAM@", (void *) 0 },
9847 _LT_EOF
9848           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9849           cat <<\_LT_EOF >> conftest.$ac_ext
9850   {0, (void *) 0}
9851 };
9852
9853 /* This works around a problem in FreeBSD linker */
9854 #ifdef FREEBSD_WORKAROUND
9855 static const void *lt_preloaded_setup() {
9856   return lt__PROGRAM__LTX_preloaded_symbols;
9857 }
9858 #endif
9859
9860 #ifdef __cplusplus
9861 }
9862 #endif
9863 _LT_EOF
9864           # Now try linking the two files.
9865           mv -f conftest.$ac_objext conftstm.$ac_objext
9866           lt_globsym_save_LIBS=$LIBS
9867           lt_globsym_save_CFLAGS=$CFLAGS
9868           LIBS="conftstm.$ac_objext"
9869           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9870           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9871   (eval $ac_link) 2>&5
9872   ac_status=$?
9873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9874   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9875             pipe_works=yes
9876           fi
9877           LIBS=$lt_globsym_save_LIBS
9878           CFLAGS=$lt_globsym_save_CFLAGS
9879         else
9880           echo "cannot find nm_test_func in $nlist" >&5
9881         fi
9882       else
9883         echo "cannot find nm_test_var in $nlist" >&5
9884       fi
9885     else
9886       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9887     fi
9888   else
9889     echo "$progname: failed program was:" >&5
9890     cat conftest.$ac_ext >&5
9891   fi
9892   rm -rf conftest* conftst*
9893
9894   # Do not use the global_symbol_pipe unless it works.
9895   if test "$pipe_works" = yes; then
9896     break
9897   else
9898     lt_cv_sys_global_symbol_pipe=
9899   fi
9900 done
9901
9902 fi
9903
9904 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9905   lt_cv_sys_global_symbol_to_cdecl=
9906 fi
9907 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9909 $as_echo "failed" >&6; }
9910 else
9911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9912 $as_echo "ok" >&6; }
9913 fi
9914
9915 # Response file support.
9916 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9917   nm_file_list_spec='@'
9918 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9919   nm_file_list_spec='@'
9920 fi
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9949 $as_echo_n "checking for sysroot... " >&6; }
9950
9951 # Check whether --with-sysroot was given.
9952 if test "${with_sysroot+set}" = set; then :
9953   withval=$with_sysroot;
9954 else
9955   with_sysroot=no
9956 fi
9957
9958
9959 lt_sysroot=
9960 case ${with_sysroot} in #(
9961  yes)
9962    if test "$GCC" = yes; then
9963      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9964    fi
9965    ;; #(
9966  /*)
9967    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9968    ;; #(
9969  no|'')
9970    ;; #(
9971  *)
9972    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9973 $as_echo "${with_sysroot}" >&6; }
9974    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9975    ;;
9976 esac
9977
9978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9979 $as_echo "${lt_sysroot:-no}" >&6; }
9980
9981
9982
9983
9984
9985 # Check whether --enable-libtool-lock was given.
9986 if test "${enable_libtool_lock+set}" = set; then :
9987   enableval=$enable_libtool_lock;
9988 fi
9989
9990 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9991
9992 # Some flags need to be propagated to the compiler or linker for good
9993 # libtool support.
9994 case $host in
9995 ia64-*-hpux*)
9996   # Find out which ABI we are using.
9997   echo 'int i;' > conftest.$ac_ext
9998   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9999   (eval $ac_compile) 2>&5
10000   ac_status=$?
10001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10002   test $ac_status = 0; }; then
10003     case `/usr/bin/file conftest.$ac_objext` in
10004       *ELF-32*)
10005         HPUX_IA64_MODE="32"
10006         ;;
10007       *ELF-64*)
10008         HPUX_IA64_MODE="64"
10009         ;;
10010     esac
10011   fi
10012   rm -rf conftest*
10013   ;;
10014 *-*-irix6*)
10015   # Find out which ABI we are using.
10016   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10017   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10018   (eval $ac_compile) 2>&5
10019   ac_status=$?
10020   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10021   test $ac_status = 0; }; then
10022     if test "$lt_cv_prog_gnu_ld" = yes; then
10023       case `/usr/bin/file conftest.$ac_objext` in
10024         *32-bit*)
10025           LD="${LD-ld} -melf32bsmip"
10026           ;;
10027         *N32*)
10028           LD="${LD-ld} -melf32bmipn32"
10029           ;;
10030         *64-bit*)
10031           LD="${LD-ld} -melf64bmip"
10032         ;;
10033       esac
10034     else
10035       case `/usr/bin/file conftest.$ac_objext` in
10036         *32-bit*)
10037           LD="${LD-ld} -32"
10038           ;;
10039         *N32*)
10040           LD="${LD-ld} -n32"
10041           ;;
10042         *64-bit*)
10043           LD="${LD-ld} -64"
10044           ;;
10045       esac
10046     fi
10047   fi
10048   rm -rf conftest*
10049   ;;
10050
10051 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10052 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10053   # Find out which ABI we are using.
10054   echo 'int i;' > conftest.$ac_ext
10055   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10056   (eval $ac_compile) 2>&5
10057   ac_status=$?
10058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10059   test $ac_status = 0; }; then
10060     case `/usr/bin/file conftest.o` in
10061       *32-bit*)
10062         case $host in
10063           x86_64-*kfreebsd*-gnu)
10064             LD="${LD-ld} -m elf_i386_fbsd"
10065             ;;
10066           x86_64-*linux*)
10067             case `/usr/bin/file conftest.o` in
10068               *x86-64*)
10069                 LD="${LD-ld} -m elf32_x86_64"
10070                 ;;
10071               *)
10072                 LD="${LD-ld} -m elf_i386"
10073                 ;;
10074             esac
10075             ;;
10076           powerpc64le-*)
10077             LD="${LD-ld} -m elf32lppclinux"
10078             ;;
10079           powerpc64-*)
10080             LD="${LD-ld} -m elf32ppclinux"
10081             ;;
10082           s390x-*linux*)
10083             LD="${LD-ld} -m elf_s390"
10084             ;;
10085           sparc64-*linux*)
10086             LD="${LD-ld} -m elf32_sparc"
10087             ;;
10088         esac
10089         ;;
10090       *64-bit*)
10091         case $host in
10092           x86_64-*kfreebsd*-gnu)
10093             LD="${LD-ld} -m elf_x86_64_fbsd"
10094             ;;
10095           x86_64-*linux*)
10096             LD="${LD-ld} -m elf_x86_64"
10097             ;;
10098           powerpcle-*)
10099             LD="${LD-ld} -m elf64lppc"
10100             ;;
10101           powerpc-*)
10102             LD="${LD-ld} -m elf64ppc"
10103             ;;
10104           s390*-*linux*|s390*-*tpf*)
10105             LD="${LD-ld} -m elf64_s390"
10106             ;;
10107           sparc*-*linux*)
10108             LD="${LD-ld} -m elf64_sparc"
10109             ;;
10110         esac
10111         ;;
10112     esac
10113   fi
10114   rm -rf conftest*
10115   ;;
10116
10117 *-*-sco3.2v5*)
10118   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10119   SAVE_CFLAGS="$CFLAGS"
10120   CFLAGS="$CFLAGS -belf"
10121   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10122 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10123 if ${lt_cv_cc_needs_belf+:} false; then :
10124   $as_echo_n "(cached) " >&6
10125 else
10126   ac_ext=c
10127 ac_cpp='$CPP $CPPFLAGS'
10128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10131
10132      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133 /* end confdefs.h.  */
10134
10135 int main (void)
10136 {
10137
10138  ;
10139  return 0;
10140 }
10141 _ACEOF
10142 if ac_fn_c_try_link "$LINENO"; then :
10143   lt_cv_cc_needs_belf=yes
10144 else
10145   lt_cv_cc_needs_belf=no
10146 fi
10147 rm -f core conftest.err conftest.$ac_objext \
10148     conftest$ac_exeext conftest.$ac_ext
10149      ac_ext=c
10150 ac_cpp='$CPP $CPPFLAGS'
10151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10154
10155 fi
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10157 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10158   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10159     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10160     CFLAGS="$SAVE_CFLAGS"
10161   fi
10162   ;;
10163 *-*solaris*)
10164   # Find out which ABI we are using.
10165   echo 'int i;' > conftest.$ac_ext
10166   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10167   (eval $ac_compile) 2>&5
10168   ac_status=$?
10169   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10170   test $ac_status = 0; }; then
10171     case `/usr/bin/file conftest.o` in
10172     *64-bit*)
10173       case $lt_cv_prog_gnu_ld in
10174       yes*)
10175         case $host in
10176         i?86-*-solaris*)
10177           LD="${LD-ld} -m elf_x86_64"
10178           ;;
10179         sparc*-*-solaris*)
10180           LD="${LD-ld} -m elf64_sparc"
10181           ;;
10182         esac
10183         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
10184         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10185           LD="${LD-ld}_sol2"
10186         fi
10187         ;;
10188       *)
10189         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10190           LD="${LD-ld} -64"
10191         fi
10192         ;;
10193       esac
10194       ;;
10195     esac
10196   fi
10197   rm -rf conftest*
10198   ;;
10199 esac
10200
10201 need_locks="$enable_libtool_lock"
10202
10203 if test -n "$ac_tool_prefix"; then
10204   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10205 set dummy ${ac_tool_prefix}mt; ac_word=$2
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10207 $as_echo_n "checking for $ac_word... " >&6; }
10208 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10209   $as_echo_n "(cached) " >&6
10210 else
10211   if test -n "$MANIFEST_TOOL"; then
10212   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10213 else
10214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10215 for as_dir in $PATH
10216 do
10217   IFS=$as_save_IFS
10218   test -z "$as_dir" && as_dir=.
10219     for ac_exec_ext in '' $ac_executable_extensions; do
10220   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10221     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10223     break 2
10224   fi
10225 done
10226   done
10227 IFS=$as_save_IFS
10228
10229 fi
10230 fi
10231 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10232 if test -n "$MANIFEST_TOOL"; then
10233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10234 $as_echo "$MANIFEST_TOOL" >&6; }
10235 else
10236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10237 $as_echo "no" >&6; }
10238 fi
10239
10240
10241 fi
10242 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10243   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10244   # Extract the first word of "mt", so it can be a program name with args.
10245 set dummy mt; ac_word=$2
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10247 $as_echo_n "checking for $ac_word... " >&6; }
10248 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10249   $as_echo_n "(cached) " >&6
10250 else
10251   if test -n "$ac_ct_MANIFEST_TOOL"; then
10252   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10253 else
10254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10255 for as_dir in $PATH
10256 do
10257   IFS=$as_save_IFS
10258   test -z "$as_dir" && as_dir=.
10259     for ac_exec_ext in '' $ac_executable_extensions; do
10260   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10261     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10263     break 2
10264   fi
10265 done
10266   done
10267 IFS=$as_save_IFS
10268
10269 fi
10270 fi
10271 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10272 if test -n "$ac_ct_MANIFEST_TOOL"; then
10273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10274 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10275 else
10276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10277 $as_echo "no" >&6; }
10278 fi
10279
10280   if test "x$ac_ct_MANIFEST_TOOL" = x; then
10281     MANIFEST_TOOL=":"
10282   else
10283     case $cross_compiling:$ac_tool_warned in
10284 yes:)
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10287 ac_tool_warned=yes ;;
10288 esac
10289     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10290   fi
10291 else
10292   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10293 fi
10294
10295 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10297 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10298 if ${lt_cv_path_mainfest_tool+:} false; then :
10299   $as_echo_n "(cached) " >&6
10300 else
10301   lt_cv_path_mainfest_tool=no
10302   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10303   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10304   cat conftest.err >&5
10305   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10306     lt_cv_path_mainfest_tool=yes
10307   fi
10308   rm -f conftest*
10309 fi
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10311 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10312 if test "x$lt_cv_path_mainfest_tool" != xyes; then
10313   MANIFEST_TOOL=:
10314 fi
10315
10316
10317
10318
10319
10320
10321   case $host_os in
10322     rhapsody* | darwin*)
10323     if test -n "$ac_tool_prefix"; then
10324   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10325 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10327 $as_echo_n "checking for $ac_word... " >&6; }
10328 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10329   $as_echo_n "(cached) " >&6
10330 else
10331   if test -n "$DSYMUTIL"; then
10332   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10333 else
10334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10335 for as_dir in $PATH
10336 do
10337   IFS=$as_save_IFS
10338   test -z "$as_dir" && as_dir=.
10339     for ac_exec_ext in '' $ac_executable_extensions; do
10340   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10341     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10343     break 2
10344   fi
10345 done
10346   done
10347 IFS=$as_save_IFS
10348
10349 fi
10350 fi
10351 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10352 if test -n "$DSYMUTIL"; then
10353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10354 $as_echo "$DSYMUTIL" >&6; }
10355 else
10356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10357 $as_echo "no" >&6; }
10358 fi
10359
10360
10361 fi
10362 if test -z "$ac_cv_prog_DSYMUTIL"; then
10363   ac_ct_DSYMUTIL=$DSYMUTIL
10364   # Extract the first word of "dsymutil", so it can be a program name with args.
10365 set dummy dsymutil; ac_word=$2
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10367 $as_echo_n "checking for $ac_word... " >&6; }
10368 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10369   $as_echo_n "(cached) " >&6
10370 else
10371   if test -n "$ac_ct_DSYMUTIL"; then
10372   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10373 else
10374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10375 for as_dir in $PATH
10376 do
10377   IFS=$as_save_IFS
10378   test -z "$as_dir" && as_dir=.
10379     for ac_exec_ext in '' $ac_executable_extensions; do
10380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10381     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10383     break 2
10384   fi
10385 done
10386   done
10387 IFS=$as_save_IFS
10388
10389 fi
10390 fi
10391 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10392 if test -n "$ac_ct_DSYMUTIL"; then
10393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10394 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10395 else
10396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10397 $as_echo "no" >&6; }
10398 fi
10399
10400   if test "x$ac_ct_DSYMUTIL" = x; then
10401     DSYMUTIL=":"
10402   else
10403     case $cross_compiling:$ac_tool_warned in
10404 yes:)
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10407 ac_tool_warned=yes ;;
10408 esac
10409     DSYMUTIL=$ac_ct_DSYMUTIL
10410   fi
10411 else
10412   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10413 fi
10414
10415     if test -n "$ac_tool_prefix"; then
10416   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10417 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10419 $as_echo_n "checking for $ac_word... " >&6; }
10420 if ${ac_cv_prog_NMEDIT+:} false; then :
10421   $as_echo_n "(cached) " >&6
10422 else
10423   if test -n "$NMEDIT"; then
10424   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10425 else
10426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10427 for as_dir in $PATH
10428 do
10429   IFS=$as_save_IFS
10430   test -z "$as_dir" && as_dir=.
10431     for ac_exec_ext in '' $ac_executable_extensions; do
10432   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10433     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10435     break 2
10436   fi
10437 done
10438   done
10439 IFS=$as_save_IFS
10440
10441 fi
10442 fi
10443 NMEDIT=$ac_cv_prog_NMEDIT
10444 if test -n "$NMEDIT"; then
10445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10446 $as_echo "$NMEDIT" >&6; }
10447 else
10448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10449 $as_echo "no" >&6; }
10450 fi
10451
10452
10453 fi
10454 if test -z "$ac_cv_prog_NMEDIT"; then
10455   ac_ct_NMEDIT=$NMEDIT
10456   # Extract the first word of "nmedit", so it can be a program name with args.
10457 set dummy nmedit; ac_word=$2
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10459 $as_echo_n "checking for $ac_word... " >&6; }
10460 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10461   $as_echo_n "(cached) " >&6
10462 else
10463   if test -n "$ac_ct_NMEDIT"; then
10464   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10465 else
10466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10467 for as_dir in $PATH
10468 do
10469   IFS=$as_save_IFS
10470   test -z "$as_dir" && as_dir=.
10471     for ac_exec_ext in '' $ac_executable_extensions; do
10472   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10473     ac_cv_prog_ac_ct_NMEDIT="nmedit"
10474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10475     break 2
10476   fi
10477 done
10478   done
10479 IFS=$as_save_IFS
10480
10481 fi
10482 fi
10483 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10484 if test -n "$ac_ct_NMEDIT"; then
10485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10486 $as_echo "$ac_ct_NMEDIT" >&6; }
10487 else
10488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10489 $as_echo "no" >&6; }
10490 fi
10491
10492   if test "x$ac_ct_NMEDIT" = x; then
10493     NMEDIT=":"
10494   else
10495     case $cross_compiling:$ac_tool_warned in
10496 yes:)
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10499 ac_tool_warned=yes ;;
10500 esac
10501     NMEDIT=$ac_ct_NMEDIT
10502   fi
10503 else
10504   NMEDIT="$ac_cv_prog_NMEDIT"
10505 fi
10506
10507     if test -n "$ac_tool_prefix"; then
10508   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10509 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10511 $as_echo_n "checking for $ac_word... " >&6; }
10512 if ${ac_cv_prog_LIPO+:} false; then :
10513   $as_echo_n "(cached) " >&6
10514 else
10515   if test -n "$LIPO"; then
10516   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10517 else
10518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10519 for as_dir in $PATH
10520 do
10521   IFS=$as_save_IFS
10522   test -z "$as_dir" && as_dir=.
10523     for ac_exec_ext in '' $ac_executable_extensions; do
10524   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10525     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10527     break 2
10528   fi
10529 done
10530   done
10531 IFS=$as_save_IFS
10532
10533 fi
10534 fi
10535 LIPO=$ac_cv_prog_LIPO
10536 if test -n "$LIPO"; then
10537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10538 $as_echo "$LIPO" >&6; }
10539 else
10540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10541 $as_echo "no" >&6; }
10542 fi
10543
10544
10545 fi
10546 if test -z "$ac_cv_prog_LIPO"; then
10547   ac_ct_LIPO=$LIPO
10548   # Extract the first word of "lipo", so it can be a program name with args.
10549 set dummy lipo; ac_word=$2
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10551 $as_echo_n "checking for $ac_word... " >&6; }
10552 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10553   $as_echo_n "(cached) " >&6
10554 else
10555   if test -n "$ac_ct_LIPO"; then
10556   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10557 else
10558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10559 for as_dir in $PATH
10560 do
10561   IFS=$as_save_IFS
10562   test -z "$as_dir" && as_dir=.
10563     for ac_exec_ext in '' $ac_executable_extensions; do
10564   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10565     ac_cv_prog_ac_ct_LIPO="lipo"
10566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10567     break 2
10568   fi
10569 done
10570   done
10571 IFS=$as_save_IFS
10572
10573 fi
10574 fi
10575 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10576 if test -n "$ac_ct_LIPO"; then
10577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10578 $as_echo "$ac_ct_LIPO" >&6; }
10579 else
10580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10581 $as_echo "no" >&6; }
10582 fi
10583
10584   if test "x$ac_ct_LIPO" = x; then
10585     LIPO=":"
10586   else
10587     case $cross_compiling:$ac_tool_warned in
10588 yes:)
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10591 ac_tool_warned=yes ;;
10592 esac
10593     LIPO=$ac_ct_LIPO
10594   fi
10595 else
10596   LIPO="$ac_cv_prog_LIPO"
10597 fi
10598
10599     if test -n "$ac_tool_prefix"; then
10600   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10601 set dummy ${ac_tool_prefix}otool; ac_word=$2
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10603 $as_echo_n "checking for $ac_word... " >&6; }
10604 if ${ac_cv_prog_OTOOL+:} false; then :
10605   $as_echo_n "(cached) " >&6
10606 else
10607   if test -n "$OTOOL"; then
10608   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10609 else
10610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10611 for as_dir in $PATH
10612 do
10613   IFS=$as_save_IFS
10614   test -z "$as_dir" && as_dir=.
10615     for ac_exec_ext in '' $ac_executable_extensions; do
10616   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10617     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10619     break 2
10620   fi
10621 done
10622   done
10623 IFS=$as_save_IFS
10624
10625 fi
10626 fi
10627 OTOOL=$ac_cv_prog_OTOOL
10628 if test -n "$OTOOL"; then
10629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10630 $as_echo "$OTOOL" >&6; }
10631 else
10632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10633 $as_echo "no" >&6; }
10634 fi
10635
10636
10637 fi
10638 if test -z "$ac_cv_prog_OTOOL"; then
10639   ac_ct_OTOOL=$OTOOL
10640   # Extract the first word of "otool", so it can be a program name with args.
10641 set dummy otool; ac_word=$2
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10643 $as_echo_n "checking for $ac_word... " >&6; }
10644 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10645   $as_echo_n "(cached) " >&6
10646 else
10647   if test -n "$ac_ct_OTOOL"; then
10648   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10649 else
10650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10651 for as_dir in $PATH
10652 do
10653   IFS=$as_save_IFS
10654   test -z "$as_dir" && as_dir=.
10655     for ac_exec_ext in '' $ac_executable_extensions; do
10656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10657     ac_cv_prog_ac_ct_OTOOL="otool"
10658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10659     break 2
10660   fi
10661 done
10662   done
10663 IFS=$as_save_IFS
10664
10665 fi
10666 fi
10667 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10668 if test -n "$ac_ct_OTOOL"; then
10669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10670 $as_echo "$ac_ct_OTOOL" >&6; }
10671 else
10672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10673 $as_echo "no" >&6; }
10674 fi
10675
10676   if test "x$ac_ct_OTOOL" = x; then
10677     OTOOL=":"
10678   else
10679     case $cross_compiling:$ac_tool_warned in
10680 yes:)
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10683 ac_tool_warned=yes ;;
10684 esac
10685     OTOOL=$ac_ct_OTOOL
10686   fi
10687 else
10688   OTOOL="$ac_cv_prog_OTOOL"
10689 fi
10690
10691     if test -n "$ac_tool_prefix"; then
10692   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10693 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10695 $as_echo_n "checking for $ac_word... " >&6; }
10696 if ${ac_cv_prog_OTOOL64+:} false; then :
10697   $as_echo_n "(cached) " >&6
10698 else
10699   if test -n "$OTOOL64"; then
10700   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10701 else
10702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10703 for as_dir in $PATH
10704 do
10705   IFS=$as_save_IFS
10706   test -z "$as_dir" && as_dir=.
10707     for ac_exec_ext in '' $ac_executable_extensions; do
10708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10709     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10711     break 2
10712   fi
10713 done
10714   done
10715 IFS=$as_save_IFS
10716
10717 fi
10718 fi
10719 OTOOL64=$ac_cv_prog_OTOOL64
10720 if test -n "$OTOOL64"; then
10721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10722 $as_echo "$OTOOL64" >&6; }
10723 else
10724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10725 $as_echo "no" >&6; }
10726 fi
10727
10728
10729 fi
10730 if test -z "$ac_cv_prog_OTOOL64"; then
10731   ac_ct_OTOOL64=$OTOOL64
10732   # Extract the first word of "otool64", so it can be a program name with args.
10733 set dummy otool64; ac_word=$2
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10735 $as_echo_n "checking for $ac_word... " >&6; }
10736 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10737   $as_echo_n "(cached) " >&6
10738 else
10739   if test -n "$ac_ct_OTOOL64"; then
10740   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10741 else
10742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10743 for as_dir in $PATH
10744 do
10745   IFS=$as_save_IFS
10746   test -z "$as_dir" && as_dir=.
10747     for ac_exec_ext in '' $ac_executable_extensions; do
10748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10749     ac_cv_prog_ac_ct_OTOOL64="otool64"
10750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10751     break 2
10752   fi
10753 done
10754   done
10755 IFS=$as_save_IFS
10756
10757 fi
10758 fi
10759 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10760 if test -n "$ac_ct_OTOOL64"; then
10761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10762 $as_echo "$ac_ct_OTOOL64" >&6; }
10763 else
10764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10765 $as_echo "no" >&6; }
10766 fi
10767
10768   if test "x$ac_ct_OTOOL64" = x; then
10769     OTOOL64=":"
10770   else
10771     case $cross_compiling:$ac_tool_warned in
10772 yes:)
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10775 ac_tool_warned=yes ;;
10776 esac
10777     OTOOL64=$ac_ct_OTOOL64
10778   fi
10779 else
10780   OTOOL64="$ac_cv_prog_OTOOL64"
10781 fi
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10810 $as_echo_n "checking for -single_module linker flag... " >&6; }
10811 if ${lt_cv_apple_cc_single_mod+:} false; then :
10812   $as_echo_n "(cached) " >&6
10813 else
10814   lt_cv_apple_cc_single_mod=no
10815       if test -z "${LT_MULTI_MODULE}"; then
10816         # By default we will add the -single_module flag. You can override
10817         # by either setting the environment variable LT_MULTI_MODULE
10818         # non-empty at configure time, or by adding -multi_module to the
10819         # link flags.
10820         rm -rf libconftest.dylib*
10821         echo "int foo(void){return 1;}" > conftest.c
10822         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10823 -dynamiclib -Wl,-single_module conftest.c" >&5
10824         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10825           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10826         _lt_result=$?
10827         # If there is a non-empty error log, and "single_module"
10828         # appears in it, assume the flag caused a linker warning
10829         if test -s conftest.err && $GREP single_module conftest.err; then
10830           cat conftest.err >&5
10831         # Otherwise, if the output was created with a 0 exit code from
10832         # the compiler, it worked.
10833         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
10834           lt_cv_apple_cc_single_mod=yes
10835         else
10836           cat conftest.err >&5
10837         fi
10838         rm -rf libconftest.dylib*
10839         rm -f conftest.*
10840       fi
10841 fi
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10843 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10844
10845     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10846 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10847 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10848   $as_echo_n "(cached) " >&6
10849 else
10850   lt_cv_ld_exported_symbols_list=no
10851       save_LDFLAGS=$LDFLAGS
10852       echo "_main" > conftest.sym
10853       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10854       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855 /* end confdefs.h.  */
10856
10857 int main (void)
10858 {
10859
10860  ;
10861  return 0;
10862 }
10863 _ACEOF
10864 if ac_fn_c_try_link "$LINENO"; then :
10865   lt_cv_ld_exported_symbols_list=yes
10866 else
10867   lt_cv_ld_exported_symbols_list=no
10868 fi
10869 rm -f core conftest.err conftest.$ac_objext \
10870     conftest$ac_exeext conftest.$ac_ext
10871         LDFLAGS="$save_LDFLAGS"
10872
10873 fi
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10875 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10876
10877     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10878 $as_echo_n "checking for -force_load linker flag... " >&6; }
10879 if ${lt_cv_ld_force_load+:} false; then :
10880   $as_echo_n "(cached) " >&6
10881 else
10882   lt_cv_ld_force_load=no
10883       cat > conftest.c << _LT_EOF
10884 int forced_loaded() { return 2;}
10885 _LT_EOF
10886       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10887       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10888       echo "$AR cru libconftest.a conftest.o" >&5
10889       $AR cru libconftest.a conftest.o 2>&5
10890       echo "$RANLIB libconftest.a" >&5
10891       $RANLIB libconftest.a 2>&5
10892       cat > conftest.c << _LT_EOF
10893 int main() { return 0;}
10894 _LT_EOF
10895       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10896       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10897       _lt_result=$?
10898       if test -s conftest.err && $GREP force_load conftest.err; then
10899         cat conftest.err >&5
10900       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
10901         lt_cv_ld_force_load=yes
10902       else
10903         cat conftest.err >&5
10904       fi
10905         rm -f conftest.err libconftest.a conftest conftest.c
10906         rm -rf conftest.dSYM
10907
10908 fi
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10910 $as_echo "$lt_cv_ld_force_load" >&6; }
10911     case $host_os in
10912     rhapsody* | darwin1.[012])
10913       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10914     darwin1.*)
10915       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10916     darwin*) # darwin 5.x on
10917       # if running on 10.5 or later, the deployment target defaults
10918       # to the OS version, if on x86, and 10.4, the deployment
10919       # target defaults to 10.4. Don't you love it?
10920       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10921         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10922           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10923         10.[012]*)
10924           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10925         10.*)
10926           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10927       esac
10928     ;;
10929   esac
10930     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10931       _lt_dar_single_mod='$single_module'
10932     fi
10933     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10934       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10935     else
10936       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10937     fi
10938     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10939       _lt_dsymutil='~$DSYMUTIL $lib || :'
10940     else
10941       _lt_dsymutil=
10942     fi
10943     ;;
10944   esac
10945
10946 for ac_header in dlfcn.h
10947 do :
10948   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10949 "
10950 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10951   cat >>confdefs.h <<_ACEOF
10952 #define HAVE_DLFCN_H 1
10953 _ACEOF
10954
10955 fi
10956
10957 done
10958
10959 # ------------------------------------ #
10960 #  Determine libtool default behavior  #
10961 # ------------------------------------ #
10962
10963 #
10964 # Default behavior is to enable shared and static libraries on systems
10965 # where libtool knows how to build both library versions, and does not
10966 # require separate configuration and build runs for each flavor.
10967 #
10968
10969 xc_lt_want_enable_shared='yes'
10970 xc_lt_want_enable_static='yes'
10971
10972 #
10973 # User may have disabled shared or static libraries.
10974 #
10975 case "x$enable_shared" in # (
10976   xno)
10977     xc_lt_want_enable_shared='no'
10978     ;;
10979 esac
10980 case "x$enable_static" in # (
10981   xno)
10982     xc_lt_want_enable_static='no'
10983     ;;
10984 esac
10985 if test "x$xc_lt_want_enable_shared" = 'xno' &&
10986   test "x$xc_lt_want_enable_static" = 'xno'; then
10987   as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
10988 fi
10989
10990 #
10991 # Default behavior on systems that require independent configuration
10992 # and build runs for shared and static is to enable shared libraries
10993 # and disable static ones. On these systems option '--disable-shared'
10994 # must be used in order to build a proper static library.
10995 #
10996
10997 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
10998   test "x$xc_lt_want_enable_static" = 'xyes'; then
10999   case $host_os in # (
11000     mingw* | pw32* | cegcc* | os2* | aix*)
11001       xc_lt_want_enable_static='no'
11002       ;;
11003   esac
11004 fi
11005
11006 #
11007 # Make libtool aware of current shared and static library preferences
11008 # taking in account that, depending on host characteristics, libtool
11009 # may modify these option preferences later in this configure script.
11010 #
11011
11012 enable_shared=$xc_lt_want_enable_shared
11013 enable_static=$xc_lt_want_enable_static
11014
11015 #
11016 # Default behavior is to build PIC objects for shared libraries and
11017 # non-PIC objects for static libraries.
11018 #
11019
11020 xc_lt_want_with_pic='default'
11021
11022 #
11023 # User may have specified PIC preference.
11024 #
11025
11026 case "x$with_pic" in # ((
11027   xno)
11028     xc_lt_want_with_pic='no'
11029     ;;
11030   xyes)
11031     xc_lt_want_with_pic='yes'
11032     ;;
11033 esac
11034
11035 #
11036 # Default behavior on some systems where building a shared library out
11037 # of non-PIC compiled objects will fail with following linker error
11038 # "relocation R_X86_64_32 can not be used when making a shared object"
11039 # is to build PIC objects even for static libraries. This behavior may
11040 # be overriden using 'configure --disable-shared --without-pic'.
11041 #
11042
11043 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
11044   case $host_cpu in # (
11045     x86_64 | amd64 | ia64)
11046       case $host_os in # (
11047         linux* | freebsd*)
11048           xc_lt_want_with_pic='yes'
11049           ;;
11050       esac
11051       ;;
11052   esac
11053 fi
11054
11055 #
11056 # Make libtool aware of current PIC preference taking in account that,
11057 # depending on host characteristics, libtool may modify PIC default
11058 # behavior to fit host system idiosyncrasies later in this script.
11059 #
11060
11061 with_pic=$xc_lt_want_with_pic
11062
11063 ## ----------------------- ##
11064 ##  Start of libtool code  ##
11065 ## ----------------------- ##
11066
11067
11068
11069
11070 # Set options
11071 enable_win32_dll=yes
11072
11073 case $host in
11074 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11075   if test -n "$ac_tool_prefix"; then
11076   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11077 set dummy ${ac_tool_prefix}as; ac_word=$2
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11079 $as_echo_n "checking for $ac_word... " >&6; }
11080 if ${ac_cv_prog_AS+:} false; then :
11081   $as_echo_n "(cached) " >&6
11082 else
11083   if test -n "$AS"; then
11084   ac_cv_prog_AS="$AS" # Let the user override the test.
11085 else
11086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11087 for as_dir in $PATH
11088 do
11089   IFS=$as_save_IFS
11090   test -z "$as_dir" && as_dir=.
11091     for ac_exec_ext in '' $ac_executable_extensions; do
11092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11093     ac_cv_prog_AS="${ac_tool_prefix}as"
11094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11095     break 2
11096   fi
11097 done
11098   done
11099 IFS=$as_save_IFS
11100
11101 fi
11102 fi
11103 AS=$ac_cv_prog_AS
11104 if test -n "$AS"; then
11105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11106 $as_echo "$AS" >&6; }
11107 else
11108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11109 $as_echo "no" >&6; }
11110 fi
11111
11112
11113 fi
11114 if test -z "$ac_cv_prog_AS"; then
11115   ac_ct_AS=$AS
11116   # Extract the first word of "as", so it can be a program name with args.
11117 set dummy as; ac_word=$2
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11119 $as_echo_n "checking for $ac_word... " >&6; }
11120 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11121   $as_echo_n "(cached) " >&6
11122 else
11123   if test -n "$ac_ct_AS"; then
11124   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11125 else
11126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11127 for as_dir in $PATH
11128 do
11129   IFS=$as_save_IFS
11130   test -z "$as_dir" && as_dir=.
11131     for ac_exec_ext in '' $ac_executable_extensions; do
11132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11133     ac_cv_prog_ac_ct_AS="as"
11134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11135     break 2
11136   fi
11137 done
11138   done
11139 IFS=$as_save_IFS
11140
11141 fi
11142 fi
11143 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11144 if test -n "$ac_ct_AS"; then
11145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11146 $as_echo "$ac_ct_AS" >&6; }
11147 else
11148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11149 $as_echo "no" >&6; }
11150 fi
11151
11152   if test "x$ac_ct_AS" = x; then
11153     AS="false"
11154   else
11155     case $cross_compiling:$ac_tool_warned in
11156 yes:)
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11159 ac_tool_warned=yes ;;
11160 esac
11161     AS=$ac_ct_AS
11162   fi
11163 else
11164   AS="$ac_cv_prog_AS"
11165 fi
11166
11167   if test -n "$ac_tool_prefix"; then
11168   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11169 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11171 $as_echo_n "checking for $ac_word... " >&6; }
11172 if ${ac_cv_prog_DLLTOOL+:} false; then :
11173   $as_echo_n "(cached) " >&6
11174 else
11175   if test -n "$DLLTOOL"; then
11176   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11177 else
11178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11179 for as_dir in $PATH
11180 do
11181   IFS=$as_save_IFS
11182   test -z "$as_dir" && as_dir=.
11183     for ac_exec_ext in '' $ac_executable_extensions; do
11184   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11185     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11187     break 2
11188   fi
11189 done
11190   done
11191 IFS=$as_save_IFS
11192
11193 fi
11194 fi
11195 DLLTOOL=$ac_cv_prog_DLLTOOL
11196 if test -n "$DLLTOOL"; then
11197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11198 $as_echo "$DLLTOOL" >&6; }
11199 else
11200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201 $as_echo "no" >&6; }
11202 fi
11203
11204
11205 fi
11206 if test -z "$ac_cv_prog_DLLTOOL"; then
11207   ac_ct_DLLTOOL=$DLLTOOL
11208   # Extract the first word of "dlltool", so it can be a program name with args.
11209 set dummy dlltool; ac_word=$2
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11211 $as_echo_n "checking for $ac_word... " >&6; }
11212 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11213   $as_echo_n "(cached) " >&6
11214 else
11215   if test -n "$ac_ct_DLLTOOL"; then
11216   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11217 else
11218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11219 for as_dir in $PATH
11220 do
11221   IFS=$as_save_IFS
11222   test -z "$as_dir" && as_dir=.
11223     for ac_exec_ext in '' $ac_executable_extensions; do
11224   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11225     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11227     break 2
11228   fi
11229 done
11230   done
11231 IFS=$as_save_IFS
11232
11233 fi
11234 fi
11235 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11236 if test -n "$ac_ct_DLLTOOL"; then
11237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11238 $as_echo "$ac_ct_DLLTOOL" >&6; }
11239 else
11240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11241 $as_echo "no" >&6; }
11242 fi
11243
11244   if test "x$ac_ct_DLLTOOL" = x; then
11245     DLLTOOL="false"
11246   else
11247     case $cross_compiling:$ac_tool_warned in
11248 yes:)
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11251 ac_tool_warned=yes ;;
11252 esac
11253     DLLTOOL=$ac_ct_DLLTOOL
11254   fi
11255 else
11256   DLLTOOL="$ac_cv_prog_DLLTOOL"
11257 fi
11258
11259   if test -n "$ac_tool_prefix"; then
11260   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11261 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11263 $as_echo_n "checking for $ac_word... " >&6; }
11264 if ${ac_cv_prog_OBJDUMP+:} false; then :
11265   $as_echo_n "(cached) " >&6
11266 else
11267   if test -n "$OBJDUMP"; then
11268   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11269 else
11270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11271 for as_dir in $PATH
11272 do
11273   IFS=$as_save_IFS
11274   test -z "$as_dir" && as_dir=.
11275     for ac_exec_ext in '' $ac_executable_extensions; do
11276   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11277     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11279     break 2
11280   fi
11281 done
11282   done
11283 IFS=$as_save_IFS
11284
11285 fi
11286 fi
11287 OBJDUMP=$ac_cv_prog_OBJDUMP
11288 if test -n "$OBJDUMP"; then
11289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11290 $as_echo "$OBJDUMP" >&6; }
11291 else
11292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293 $as_echo "no" >&6; }
11294 fi
11295
11296
11297 fi
11298 if test -z "$ac_cv_prog_OBJDUMP"; then
11299   ac_ct_OBJDUMP=$OBJDUMP
11300   # Extract the first word of "objdump", so it can be a program name with args.
11301 set dummy objdump; ac_word=$2
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11303 $as_echo_n "checking for $ac_word... " >&6; }
11304 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11305   $as_echo_n "(cached) " >&6
11306 else
11307   if test -n "$ac_ct_OBJDUMP"; then
11308   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11309 else
11310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11311 for as_dir in $PATH
11312 do
11313   IFS=$as_save_IFS
11314   test -z "$as_dir" && as_dir=.
11315     for ac_exec_ext in '' $ac_executable_extensions; do
11316   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11317     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11319     break 2
11320   fi
11321 done
11322   done
11323 IFS=$as_save_IFS
11324
11325 fi
11326 fi
11327 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11328 if test -n "$ac_ct_OBJDUMP"; then
11329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11330 $as_echo "$ac_ct_OBJDUMP" >&6; }
11331 else
11332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11333 $as_echo "no" >&6; }
11334 fi
11335
11336   if test "x$ac_ct_OBJDUMP" = x; then
11337     OBJDUMP="false"
11338   else
11339     case $cross_compiling:$ac_tool_warned in
11340 yes:)
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11343 ac_tool_warned=yes ;;
11344 esac
11345     OBJDUMP=$ac_ct_OBJDUMP
11346   fi
11347 else
11348   OBJDUMP="$ac_cv_prog_OBJDUMP"
11349 fi
11350
11351   ;;
11352 esac
11353
11354 test -z "$AS" && AS=as
11355
11356
11357
11358
11359
11360 test -z "$DLLTOOL" && DLLTOOL=dlltool
11361
11362
11363
11364
11365
11366 test -z "$OBJDUMP" && OBJDUMP=objdump
11367
11368
11369
11370
11371
11372
11373
11374         enable_dlopen=no
11375
11376
11377
11378             # Check whether --enable-shared was given.
11379 if test "${enable_shared+set}" = set; then :
11380   enableval=$enable_shared; p=${PACKAGE-default}
11381     case $enableval in
11382     yes) enable_shared=yes ;;
11383     no) enable_shared=no ;;
11384     *)
11385       enable_shared=no
11386       # Look at the argument we got.  We use all the common list separators.
11387       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11388       for pkg in $enableval; do
11389         IFS="$lt_save_ifs"
11390         if test "X$pkg" = "X$p"; then
11391           enable_shared=yes
11392         fi
11393       done
11394       IFS="$lt_save_ifs"
11395       ;;
11396     esac
11397 else
11398   enable_shared=yes
11399 fi
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409   # Check whether --enable-static was given.
11410 if test "${enable_static+set}" = set; then :
11411   enableval=$enable_static; p=${PACKAGE-default}
11412     case $enableval in
11413     yes) enable_static=yes ;;
11414     no) enable_static=no ;;
11415     *)
11416      enable_static=no
11417       # Look at the argument we got.  We use all the common list separators.
11418       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11419       for pkg in $enableval; do
11420         IFS="$lt_save_ifs"
11421         if test "X$pkg" = "X$p"; then
11422           enable_static=yes
11423         fi
11424       done
11425       IFS="$lt_save_ifs"
11426       ;;
11427     esac
11428 else
11429   enable_static=yes
11430 fi
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441 # Check whether --with-pic was given.
11442 if test "${with_pic+set}" = set; then :
11443   withval=$with_pic; lt_p=${PACKAGE-default}
11444     case $withval in
11445     yes|no) pic_mode=$withval ;;
11446     *)
11447       pic_mode=default
11448       # Look at the argument we got.  We use all the common list separators.
11449       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11450       for lt_pkg in $withval; do
11451         IFS="$lt_save_ifs"
11452         if test "X$lt_pkg" = "X$lt_p"; then
11453           pic_mode=yes
11454         fi
11455       done
11456       IFS="$lt_save_ifs"
11457       ;;
11458     esac
11459 else
11460   pic_mode=default
11461 fi
11462
11463
11464 test -z "$pic_mode" && pic_mode=default
11465
11466
11467
11468
11469
11470
11471
11472   # Check whether --enable-fast-install was given.
11473 if test "${enable_fast_install+set}" = set; then :
11474   enableval=$enable_fast_install; p=${PACKAGE-default}
11475     case $enableval in
11476     yes) enable_fast_install=yes ;;
11477     no) enable_fast_install=no ;;
11478     *)
11479       enable_fast_install=no
11480       # Look at the argument we got.  We use all the common list separators.
11481       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11482       for pkg in $enableval; do
11483         IFS="$lt_save_ifs"
11484         if test "X$pkg" = "X$p"; then
11485           enable_fast_install=yes
11486         fi
11487       done
11488       IFS="$lt_save_ifs"
11489       ;;
11490     esac
11491 else
11492   enable_fast_install=yes
11493 fi
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505 # This can be used to rebuild libtool when needed
11506 LIBTOOL_DEPS="$ltmain"
11507
11508 # Always use our own libtool.
11509 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540 test -z "$LN_S" && LN_S="ln -s"
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555 if test -n "${ZSH_VERSION+set}" ; then
11556    setopt NO_GLOB_SUBST
11557 fi
11558
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11560 $as_echo_n "checking for objdir... " >&6; }
11561 if ${lt_cv_objdir+:} false; then :
11562   $as_echo_n "(cached) " >&6
11563 else
11564   rm -f .libs 2>/dev/null
11565 mkdir .libs 2>/dev/null
11566 if test -d .libs; then
11567   lt_cv_objdir=.libs
11568 else
11569   # MS-DOS does not allow filenames that begin with a dot.
11570   lt_cv_objdir=_libs
11571 fi
11572 rmdir .libs 2>/dev/null
11573 fi
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11575 $as_echo "$lt_cv_objdir" >&6; }
11576 objdir=$lt_cv_objdir
11577
11578
11579
11580
11581
11582 cat >>confdefs.h <<_ACEOF
11583 #define LT_OBJDIR "$lt_cv_objdir/"
11584 _ACEOF
11585
11586
11587
11588
11589 case $host_os in
11590 aix3*)
11591   # AIX sometimes has problems with the GCC collect2 program.  For some
11592   # reason, if we set the COLLECT_NAMES environment variable, the problems
11593   # vanish in a puff of smoke.
11594   if test "X${COLLECT_NAMES+set}" != Xset; then
11595     COLLECT_NAMES=
11596     export COLLECT_NAMES
11597   fi
11598   ;;
11599 esac
11600
11601 # Global variables:
11602 ofile=libtool
11603 can_build_shared=yes
11604
11605 # All known linkers require a `.a' archive for static linking (except MSVC,
11606 # which needs '.lib').
11607 libext=a
11608
11609 with_gnu_ld="$lt_cv_prog_gnu_ld"
11610
11611 old_CC="$CC"
11612 old_CFLAGS="$CFLAGS"
11613
11614 # Set sane defaults for various variables
11615 test -z "$CC" && CC=cc
11616 test -z "$LTCC" && LTCC=$CC
11617 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11618 test -z "$LD" && LD=ld
11619 test -z "$ac_objext" && ac_objext=o
11620
11621 for cc_temp in $compiler""; do
11622   case $cc_temp in
11623     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11624     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11625     \-*) ;;
11626     *) break;;
11627   esac
11628 done
11629 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11630
11631
11632 # Only perform the check for file, if the check method requires it
11633 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11634 case $deplibs_check_method in
11635 file_magic*)
11636   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11637     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11638 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11639 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11640   $as_echo_n "(cached) " >&6
11641 else
11642   case $MAGIC_CMD in
11643 [\\/*] |  ?:[\\/]*)
11644   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11645   ;;
11646 *)
11647   lt_save_MAGIC_CMD="$MAGIC_CMD"
11648   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11649   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11650   for ac_dir in $ac_dummy; do
11651     IFS="$lt_save_ifs"
11652     test -z "$ac_dir" && ac_dir=.
11653     if test -f $ac_dir/${ac_tool_prefix}file; then
11654       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11655       if test -n "$file_magic_test_file"; then
11656         case $deplibs_check_method in
11657         "file_magic "*)
11658           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11659           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11660           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11661             $EGREP "$file_magic_regex" > /dev/null; then
11662             :
11663           else
11664             cat <<_LT_EOF 1>&2
11665
11666 *** Warning: the command libtool uses to detect shared libraries,
11667 *** $file_magic_cmd, produces output that libtool cannot recognize.
11668 *** The result is that libtool may fail to recognize shared libraries
11669 *** as such.  This will affect the creation of libtool libraries that
11670 *** depend on shared libraries, but programs linked with such libtool
11671 *** libraries will work regardless of this problem.  Nevertheless, you
11672 *** may want to report the problem to your system manager and/or to
11673 *** bug-libtool@gnu.org
11674
11675 _LT_EOF
11676           fi ;;
11677         esac
11678       fi
11679       break
11680     fi
11681   done
11682   IFS="$lt_save_ifs"
11683   MAGIC_CMD="$lt_save_MAGIC_CMD"
11684   ;;
11685 esac
11686 fi
11687
11688 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11689 if test -n "$MAGIC_CMD"; then
11690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11691 $as_echo "$MAGIC_CMD" >&6; }
11692 else
11693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11694 $as_echo "no" >&6; }
11695 fi
11696
11697
11698
11699
11700
11701 if test -z "$lt_cv_path_MAGIC_CMD"; then
11702   if test -n "$ac_tool_prefix"; then
11703     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11704 $as_echo_n "checking for file... " >&6; }
11705 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11706   $as_echo_n "(cached) " >&6
11707 else
11708   case $MAGIC_CMD in
11709 [\\/*] |  ?:[\\/]*)
11710   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11711   ;;
11712 *)
11713   lt_save_MAGIC_CMD="$MAGIC_CMD"
11714   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11715   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11716   for ac_dir in $ac_dummy; do
11717     IFS="$lt_save_ifs"
11718     test -z "$ac_dir" && ac_dir=.
11719     if test -f $ac_dir/file; then
11720       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11721       if test -n "$file_magic_test_file"; then
11722         case $deplibs_check_method in
11723         "file_magic "*)
11724           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11725           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11726           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11727             $EGREP "$file_magic_regex" > /dev/null; then
11728             :
11729           else
11730             cat <<_LT_EOF 1>&2
11731
11732 *** Warning: the command libtool uses to detect shared libraries,
11733 *** $file_magic_cmd, produces output that libtool cannot recognize.
11734 *** The result is that libtool may fail to recognize shared libraries
11735 *** as such.  This will affect the creation of libtool libraries that
11736 *** depend on shared libraries, but programs linked with such libtool
11737 *** libraries will work regardless of this problem.  Nevertheless, you
11738 *** may want to report the problem to your system manager and/or to
11739 *** bug-libtool@gnu.org
11740
11741 _LT_EOF
11742           fi ;;
11743         esac
11744       fi
11745       break
11746     fi
11747   done
11748   IFS="$lt_save_ifs"
11749   MAGIC_CMD="$lt_save_MAGIC_CMD"
11750   ;;
11751 esac
11752 fi
11753
11754 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11755 if test -n "$MAGIC_CMD"; then
11756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11757 $as_echo "$MAGIC_CMD" >&6; }
11758 else
11759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11760 $as_echo "no" >&6; }
11761 fi
11762
11763
11764   else
11765     MAGIC_CMD=:
11766   fi
11767 fi
11768
11769   fi
11770   ;;
11771 esac
11772
11773 # Use C for the default configuration in the libtool script
11774
11775 lt_save_CC="$CC"
11776 ac_ext=c
11777 ac_cpp='$CPP $CPPFLAGS'
11778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11781
11782
11783 # Source file extension for C test sources.
11784 ac_ext=c
11785
11786 # Object file extension for compiled C test sources.
11787 objext=o
11788 objext=$objext
11789
11790 # Code to be used in simple compile tests
11791 lt_simple_compile_test_code="int some_variable = 0;"
11792
11793 # Code to be used in simple link tests
11794 lt_simple_link_test_code='int main(){return(0);}'
11795
11796
11797
11798
11799
11800
11801
11802 # If no C compiler was specified, use CC.
11803 LTCC=${LTCC-"$CC"}
11804
11805 # If no C compiler flags were specified, use CFLAGS.
11806 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11807
11808 # Allow CC to be a program name with arguments.
11809 compiler=$CC
11810
11811 # Save the default compiler, since it gets overwritten when the other
11812 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11813 compiler_DEFAULT=$CC
11814
11815 # save warnings/boilerplate of simple test code
11816 ac_outfile=conftest.$ac_objext
11817 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11818 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11819 _lt_compiler_boilerplate=`cat conftest.err`
11820 $RM conftest*
11821
11822 ac_outfile=conftest.$ac_objext
11823 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11824 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11825 _lt_linker_boilerplate=`cat conftest.err`
11826 $RM -r conftest*
11827
11828
11829 ## CAVEAT EMPTOR:
11830 ## There is no encapsulation within the following macros, do not change
11831 ## the running order or otherwise move them around unless you know exactly
11832 ## what you are doing...
11833 if test -n "$compiler"; then
11834
11835 lt_prog_compiler_no_builtin_flag=
11836
11837 if test "$GCC" = yes; then
11838   case $cc_basename in
11839   nvcc*)
11840     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11841   *)
11842     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11843   esac
11844
11845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11846 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11847 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11848   $as_echo_n "(cached) " >&6
11849 else
11850   lt_cv_prog_compiler_rtti_exceptions=no
11851    ac_outfile=conftest.$ac_objext
11852    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11853    lt_compiler_flag="-fno-rtti -fno-exceptions"
11854    # Insert the option either (1) after the last *FLAGS variable, or
11855    # (2) before a word containing "conftest.", or (3) at the end.
11856    # Note that $ac_compile itself does not contain backslashes and begins
11857    # with a dollar sign (not a hyphen), so the echo should work correctly.
11858    # The option is referenced via a variable to avoid confusing sed.
11859    lt_compile=`echo "$ac_compile" | $SED \
11860    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11861    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11862    -e 's:$: $lt_compiler_flag:'`
11863    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11864    (eval "$lt_compile" 2>conftest.err)
11865    ac_status=$?
11866    cat conftest.err >&5
11867    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868    if (exit $ac_status) && test -s "$ac_outfile"; then
11869      # The compiler can only warn and ignore the option if not recognized
11870      # So say no if there are warnings other than the usual output.
11871      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11872      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11873      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11874        lt_cv_prog_compiler_rtti_exceptions=yes
11875      fi
11876    fi
11877    $RM conftest*
11878
11879 fi
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11881 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11882
11883 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11884     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11885 else
11886     :
11887 fi
11888
11889 fi
11890
11891
11892
11893
11894
11895
11896   lt_prog_compiler_wl=
11897 lt_prog_compiler_pic=
11898 lt_prog_compiler_static=
11899
11900
11901   if test "$GCC" = yes; then
11902     lt_prog_compiler_wl='-Wl,'
11903     lt_prog_compiler_static='-static'
11904
11905     case $host_os in
11906       aix*)
11907       # All AIX code is PIC.
11908       if test "$host_cpu" = ia64; then
11909         # AIX 5 now supports IA64 processor
11910         lt_prog_compiler_static='-Bstatic'
11911       fi
11912       ;;
11913
11914     amigaos*)
11915       case $host_cpu in
11916       powerpc)
11917             # see comment about AmigaOS4 .so support
11918             lt_prog_compiler_pic='-fPIC'
11919         ;;
11920       m68k)
11921             # FIXME: we need at least 68020 code to build shared libraries, but
11922             # adding the `-m68020' flag to GCC prevents building anything better,
11923             # like `-m68040'.
11924             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11925         ;;
11926       esac
11927       ;;
11928
11929     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11930       # PIC is the default for these OSes.
11931       ;;
11932
11933     mingw* | cygwin* | pw32* | os2* | cegcc*)
11934       # This hack is so that the source file can tell whether it is being
11935       # built for inclusion in a dll (and should export symbols for example).
11936       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11937       # (--disable-auto-import) libraries
11938       lt_prog_compiler_pic='-DDLL_EXPORT'
11939       ;;
11940
11941     darwin* | rhapsody*)
11942       # PIC is the default on this platform
11943       # Common symbols not allowed in MH_DYLIB files
11944       lt_prog_compiler_pic='-fno-common'
11945       ;;
11946
11947     haiku*)
11948       # PIC is the default for Haiku.
11949       # The "-static" flag exists, but is broken.
11950       lt_prog_compiler_static=
11951       ;;
11952
11953     hpux*)
11954       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11955       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11956       # sets the default TLS model and affects inlining.
11957       case $host_cpu in
11958       hppa*64*)
11959         # +Z the default
11960         ;;
11961       *)
11962         lt_prog_compiler_pic='-fPIC'
11963         ;;
11964       esac
11965       ;;
11966
11967     interix[3-9]*)
11968       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11969       # Instead, we relocate shared libraries at runtime.
11970       ;;
11971
11972     msdosdjgpp*)
11973       # Just because we use GCC doesn't mean we suddenly get shared libraries
11974       # on systems that don't support them.
11975       lt_prog_compiler_can_build_shared=no
11976       enable_shared=no
11977       ;;
11978
11979     *nto* | *qnx*)
11980       # QNX uses GNU C++, but need to define -shared option too, otherwise
11981       # it will coredump.
11982       lt_prog_compiler_pic='-fPIC -shared'
11983       ;;
11984
11985     sysv4*MP*)
11986       if test -d /usr/nec; then
11987         lt_prog_compiler_pic=-Kconform_pic
11988       fi
11989       ;;
11990
11991     *)
11992       lt_prog_compiler_pic='-fPIC'
11993       ;;
11994     esac
11995
11996     case $cc_basename in
11997     nvcc*) # Cuda Compiler Driver 2.2
11998       lt_prog_compiler_wl='-Xlinker '
11999       if test -n "$lt_prog_compiler_pic"; then
12000         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12001       fi
12002       ;;
12003     esac
12004   else
12005     # PORTME Check for flag to pass linker flags through the system compiler.
12006     case $host_os in
12007     aix*)
12008       lt_prog_compiler_wl='-Wl,'
12009       if test "$host_cpu" = ia64; then
12010         # AIX 5 now supports IA64 processor
12011         lt_prog_compiler_static='-Bstatic'
12012       else
12013         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12014       fi
12015       ;;
12016
12017     mingw* | cygwin* | pw32* | os2* | cegcc*)
12018       # This hack is so that the source file can tell whether it is being
12019       # built for inclusion in a dll (and should export symbols for example).
12020       lt_prog_compiler_pic='-DDLL_EXPORT'
12021       ;;
12022
12023     hpux9* | hpux10* | hpux11*)
12024       lt_prog_compiler_wl='-Wl,'
12025       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12026       # not for PA HP-UX.
12027       case $host_cpu in
12028       hppa*64*|ia64*)
12029         # +Z the default
12030         ;;
12031       *)
12032         lt_prog_compiler_pic='+Z'
12033         ;;
12034       esac
12035       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12036       lt_prog_compiler_static='${wl}-a ${wl}archive'
12037       ;;
12038
12039     irix5* | irix6* | nonstopux*)
12040       lt_prog_compiler_wl='-Wl,'
12041       # PIC (with -KPIC) is the default.
12042       lt_prog_compiler_static='-non_shared'
12043       ;;
12044
12045     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12046       case $cc_basename in
12047       # old Intel for x86_64 which still supported -KPIC.
12048       ecc*)
12049         lt_prog_compiler_wl='-Wl,'
12050         lt_prog_compiler_pic='-KPIC'
12051         lt_prog_compiler_static='-static'
12052         ;;
12053       # icc used to be incompatible with GCC.
12054       # ICC 10 doesn't accept -KPIC any more.
12055       icc* | ifort*)
12056         lt_prog_compiler_wl='-Wl,'
12057         lt_prog_compiler_pic='-fPIC'
12058         lt_prog_compiler_static='-static'
12059         ;;
12060       # Lahey Fortran 8.1.
12061       lf95*)
12062         lt_prog_compiler_wl='-Wl,'
12063         lt_prog_compiler_pic='--shared'
12064         lt_prog_compiler_static='--static'
12065         ;;
12066       nagfor*)
12067         # NAG Fortran compiler
12068         lt_prog_compiler_wl='-Wl,-Wl,,'
12069         lt_prog_compiler_pic='-PIC'
12070         lt_prog_compiler_static='-Bstatic'
12071         ;;
12072       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12073         # Portland Group compilers (*not* the Pentium gcc compiler,
12074         # which looks to be a dead project)
12075         lt_prog_compiler_wl='-Wl,'
12076         lt_prog_compiler_pic='-fpic'
12077         lt_prog_compiler_static='-Bstatic'
12078         ;;
12079       ccc*)
12080         lt_prog_compiler_wl='-Wl,'
12081         # All Alpha code is PIC.
12082         lt_prog_compiler_static='-non_shared'
12083         ;;
12084       xl* | bgxl* | bgf* | mpixl*)
12085         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12086         lt_prog_compiler_wl='-Wl,'
12087         lt_prog_compiler_pic='-qpic'
12088         lt_prog_compiler_static='-qstaticlink'
12089         ;;
12090       *)
12091         case `$CC -V 2>&1 | sed 5q` in
12092         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12093           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12094           lt_prog_compiler_pic='-KPIC'
12095           lt_prog_compiler_static='-Bstatic'
12096           lt_prog_compiler_wl=''
12097           ;;
12098         *Sun\ F* | *Sun*Fortran*)
12099           lt_prog_compiler_pic='-KPIC'
12100           lt_prog_compiler_static='-Bstatic'
12101           lt_prog_compiler_wl='-Qoption ld '
12102           ;;
12103         *Sun\ C*)
12104           # Sun C 5.9
12105           lt_prog_compiler_pic='-KPIC'
12106           lt_prog_compiler_static='-Bstatic'
12107           lt_prog_compiler_wl='-Wl,'
12108           ;;
12109         *Intel*\ [CF]*Compiler*)
12110           lt_prog_compiler_wl='-Wl,'
12111           lt_prog_compiler_pic='-fPIC'
12112           lt_prog_compiler_static='-static'
12113           ;;
12114         *Portland\ Group*)
12115           lt_prog_compiler_wl='-Wl,'
12116           lt_prog_compiler_pic='-fpic'
12117           lt_prog_compiler_static='-Bstatic'
12118           ;;
12119         esac
12120         ;;
12121       esac
12122       ;;
12123
12124     newsos6)
12125       lt_prog_compiler_pic='-KPIC'
12126       lt_prog_compiler_static='-Bstatic'
12127       ;;
12128
12129     *nto* | *qnx*)
12130       # QNX uses GNU C++, but need to define -shared option too, otherwise
12131       # it will coredump.
12132       lt_prog_compiler_pic='-fPIC -shared'
12133       ;;
12134
12135     osf3* | osf4* | osf5*)
12136       lt_prog_compiler_wl='-Wl,'
12137       # All OSF/1 code is PIC.
12138       lt_prog_compiler_static='-non_shared'
12139       ;;
12140
12141     rdos*)
12142       lt_prog_compiler_static='-non_shared'
12143       ;;
12144
12145     solaris*)
12146       lt_prog_compiler_pic='-KPIC'
12147       lt_prog_compiler_static='-Bstatic'
12148       case $cc_basename in
12149       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12150         lt_prog_compiler_wl='-Qoption ld ';;
12151       *)
12152         lt_prog_compiler_wl='-Wl,';;
12153       esac
12154       ;;
12155
12156     sunos4*)
12157       lt_prog_compiler_wl='-Qoption ld '
12158       lt_prog_compiler_pic='-PIC'
12159       lt_prog_compiler_static='-Bstatic'
12160       ;;
12161
12162     sysv4 | sysv4.2uw2* | sysv4.3*)
12163       lt_prog_compiler_wl='-Wl,'
12164       lt_prog_compiler_pic='-KPIC'
12165       lt_prog_compiler_static='-Bstatic'
12166       ;;
12167
12168     sysv4*MP*)
12169       if test -d /usr/nec ;then
12170         lt_prog_compiler_pic='-Kconform_pic'
12171         lt_prog_compiler_static='-Bstatic'
12172       fi
12173       ;;
12174
12175     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12176       lt_prog_compiler_wl='-Wl,'
12177       lt_prog_compiler_pic='-KPIC'
12178       lt_prog_compiler_static='-Bstatic'
12179       ;;
12180
12181     unicos*)
12182       lt_prog_compiler_wl='-Wl,'
12183       lt_prog_compiler_can_build_shared=no
12184       ;;
12185
12186     uts4*)
12187       lt_prog_compiler_pic='-pic'
12188       lt_prog_compiler_static='-Bstatic'
12189       ;;
12190
12191     *)
12192       lt_prog_compiler_can_build_shared=no
12193       ;;
12194     esac
12195   fi
12196
12197 case $host_os in
12198   # For platforms which do not support PIC, -DPIC is meaningless:
12199   *djgpp*)
12200     lt_prog_compiler_pic=
12201     ;;
12202   *)
12203     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12204     ;;
12205 esac
12206
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12208 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12209 if ${lt_cv_prog_compiler_pic+:} false; then :
12210   $as_echo_n "(cached) " >&6
12211 else
12212   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12213 fi
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12215 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12216 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12217
12218 #
12219 # Check to make sure the PIC flag actually works.
12220 #
12221 if test -n "$lt_prog_compiler_pic"; then
12222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12223 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12224 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12225   $as_echo_n "(cached) " >&6
12226 else
12227   lt_cv_prog_compiler_pic_works=no
12228    ac_outfile=conftest.$ac_objext
12229    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12230    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12231    # Insert the option either (1) after the last *FLAGS variable, or
12232    # (2) before a word containing "conftest.", or (3) at the end.
12233    # Note that $ac_compile itself does not contain backslashes and begins
12234    # with a dollar sign (not a hyphen), so the echo should work correctly.
12235    # The option is referenced via a variable to avoid confusing sed.
12236    lt_compile=`echo "$ac_compile" | $SED \
12237    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12238    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12239    -e 's:$: $lt_compiler_flag:'`
12240    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12241    (eval "$lt_compile" 2>conftest.err)
12242    ac_status=$?
12243    cat conftest.err >&5
12244    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245    if (exit $ac_status) && test -s "$ac_outfile"; then
12246      # The compiler can only warn and ignore the option if not recognized
12247      # So say no if there are warnings other than the usual output.
12248      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12249      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12250      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12251        lt_cv_prog_compiler_pic_works=yes
12252      fi
12253    fi
12254    $RM conftest*
12255
12256 fi
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12258 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12259
12260 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12261     case $lt_prog_compiler_pic in
12262      "" | " "*) ;;
12263      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12264      esac
12265 else
12266     lt_prog_compiler_pic=
12267      lt_prog_compiler_can_build_shared=no
12268 fi
12269
12270 fi
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282 #
12283 # Check to make sure the static flag actually works.
12284 #
12285 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12287 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12288 if ${lt_cv_prog_compiler_static_works+:} false; then :
12289   $as_echo_n "(cached) " >&6
12290 else
12291   lt_cv_prog_compiler_static_works=no
12292    save_LDFLAGS="$LDFLAGS"
12293    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12294    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12295    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12296      # The linker can only warn and ignore the option if not recognized
12297      # So say no if there are warnings
12298      if test -s conftest.err; then
12299        # Append any errors to the config.log.
12300        cat conftest.err 1>&5
12301        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12302        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12303        if diff conftest.exp conftest.er2 >/dev/null; then
12304          lt_cv_prog_compiler_static_works=yes
12305        fi
12306      else
12307        lt_cv_prog_compiler_static_works=yes
12308      fi
12309    fi
12310    $RM -r conftest*
12311    LDFLAGS="$save_LDFLAGS"
12312
12313 fi
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12315 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12316
12317 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12318     :
12319 else
12320     lt_prog_compiler_static=
12321 fi
12322
12323
12324
12325
12326
12327
12328
12329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12330 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12331 if ${lt_cv_prog_compiler_c_o+:} false; then :
12332   $as_echo_n "(cached) " >&6
12333 else
12334   lt_cv_prog_compiler_c_o=no
12335    $RM -r conftest 2>/dev/null
12336    mkdir conftest
12337    cd conftest
12338    mkdir out
12339    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12340
12341    lt_compiler_flag="-o out/conftest2.$ac_objext"
12342    # Insert the option either (1) after the last *FLAGS variable, or
12343    # (2) before a word containing "conftest.", or (3) at the end.
12344    # Note that $ac_compile itself does not contain backslashes and begins
12345    # with a dollar sign (not a hyphen), so the echo should work correctly.
12346    lt_compile=`echo "$ac_compile" | $SED \
12347    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12348    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12349    -e 's:$: $lt_compiler_flag:'`
12350    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12351    (eval "$lt_compile" 2>out/conftest.err)
12352    ac_status=$?
12353    cat out/conftest.err >&5
12354    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12356    then
12357      # The compiler can only warn and ignore the option if not recognized
12358      # So say no if there are warnings
12359      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12360      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12361      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12362        lt_cv_prog_compiler_c_o=yes
12363      fi
12364    fi
12365    chmod u+w . 2>&5
12366    $RM conftest*
12367    # SGI C++ compiler will create directory out/ii_files/ for
12368    # template instantiation
12369    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12370    $RM out/* && rmdir out
12371    cd ..
12372    $RM -r conftest
12373    $RM conftest*
12374
12375 fi
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12377 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12378
12379
12380
12381
12382
12383
12384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12385 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12386 if ${lt_cv_prog_compiler_c_o+:} false; then :
12387   $as_echo_n "(cached) " >&6
12388 else
12389   lt_cv_prog_compiler_c_o=no
12390    $RM -r conftest 2>/dev/null
12391    mkdir conftest
12392    cd conftest
12393    mkdir out
12394    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12395
12396    lt_compiler_flag="-o out/conftest2.$ac_objext"
12397    # Insert the option either (1) after the last *FLAGS variable, or
12398    # (2) before a word containing "conftest.", or (3) at the end.
12399    # Note that $ac_compile itself does not contain backslashes and begins
12400    # with a dollar sign (not a hyphen), so the echo should work correctly.
12401    lt_compile=`echo "$ac_compile" | $SED \
12402    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12403    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12404    -e 's:$: $lt_compiler_flag:'`
12405    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12406    (eval "$lt_compile" 2>out/conftest.err)
12407    ac_status=$?
12408    cat out/conftest.err >&5
12409    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12411    then
12412      # The compiler can only warn and ignore the option if not recognized
12413      # So say no if there are warnings
12414      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12415      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12416      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12417        lt_cv_prog_compiler_c_o=yes
12418      fi
12419    fi
12420    chmod u+w . 2>&5
12421    $RM conftest*
12422    # SGI C++ compiler will create directory out/ii_files/ for
12423    # template instantiation
12424    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12425    $RM out/* && rmdir out
12426    cd ..
12427    $RM -r conftest
12428    $RM conftest*
12429
12430 fi
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12432 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12433
12434
12435
12436
12437 hard_links="nottested"
12438 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12439   # do not overwrite the value of need_locks provided by the user
12440   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12441 $as_echo_n "checking if we can lock with hard links... " >&6; }
12442   hard_links=yes
12443   $RM conftest*
12444   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12445   touch conftest.a
12446   ln conftest.a conftest.b 2>&5 || hard_links=no
12447   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12449 $as_echo "$hard_links" >&6; }
12450   if test "$hard_links" = no; then
12451     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12452 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12453     need_locks=warn
12454   fi
12455 else
12456   need_locks=no
12457 fi
12458
12459
12460
12461
12462
12463
12464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12465 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12466
12467   runpath_var=
12468   allow_undefined_flag=
12469   always_export_symbols=no
12470   archive_cmds=
12471   archive_expsym_cmds=
12472   compiler_needs_object=no
12473   enable_shared_with_static_runtimes=no
12474   export_dynamic_flag_spec=
12475   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12476   hardcode_automatic=no
12477   hardcode_direct=no
12478   hardcode_direct_absolute=no
12479   hardcode_libdir_flag_spec=
12480   hardcode_libdir_separator=
12481   hardcode_minus_L=no
12482   hardcode_shlibpath_var=unsupported
12483   inherit_rpath=no
12484   link_all_deplibs=unknown
12485   module_cmds=
12486   module_expsym_cmds=
12487   old_archive_from_new_cmds=
12488   old_archive_from_expsyms_cmds=
12489   thread_safe_flag_spec=
12490   whole_archive_flag_spec=
12491   # include_expsyms should be a list of space-separated symbols to be *always*
12492   # included in the symbol list
12493   include_expsyms=
12494   # exclude_expsyms can be an extended regexp of symbols to exclude
12495   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12496   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12497   # as well as any symbol that contains `d'.
12498   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12499   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12500   # platforms (ab)use it in PIC code, but their linkers get confused if
12501   # the symbol is explicitly referenced.  Since portable code cannot
12502   # rely on this symbol name, it's probably fine to never include it in
12503   # preloaded symbol tables.
12504   # Exclude shared library initialization/finalization symbols.
12505   extract_expsyms_cmds=
12506
12507   case $host_os in
12508   cygwin* | mingw* | pw32* | cegcc*)
12509     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12510     # When not using gcc, we currently assume that we are using
12511     # Microsoft Visual C++.
12512     if test "$GCC" != yes; then
12513       with_gnu_ld=no
12514     fi
12515     ;;
12516   interix*)
12517     # we just hope/assume this is gcc and not c89 (= MSVC++)
12518     with_gnu_ld=yes
12519     ;;
12520   openbsd*)
12521     with_gnu_ld=no
12522     ;;
12523   linux* | k*bsd*-gnu | gnu*)
12524     link_all_deplibs=no
12525     ;;
12526   esac
12527
12528   ld_shlibs=yes
12529
12530   # On some targets, GNU ld is compatible enough with the native linker
12531   # that we're better off using the native interface for both.
12532   lt_use_gnu_ld_interface=no
12533   if test "$with_gnu_ld" = yes; then
12534     case $host_os in
12535       aix*)
12536         # The AIX port of GNU ld has always aspired to compatibility
12537         # with the native linker.  However, as the warning in the GNU ld
12538         # block says, versions before 2.19.5* couldn't really create working
12539         # shared libraries, regardless of the interface used.
12540         case `$LD -v 2>&1` in
12541           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12542           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12543           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12544           *)
12545             lt_use_gnu_ld_interface=yes
12546             ;;
12547         esac
12548         ;;
12549       *)
12550         lt_use_gnu_ld_interface=yes
12551         ;;
12552     esac
12553   fi
12554
12555   if test "$lt_use_gnu_ld_interface" = yes; then
12556     # If archive_cmds runs LD, not CC, wlarc should be empty
12557     wlarc='${wl}'
12558
12559     # Set some defaults for GNU ld with shared library support. These
12560     # are reset later if shared libraries are not supported. Putting them
12561     # here allows them to be overridden if necessary.
12562     runpath_var=LD_RUN_PATH
12563     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12564     export_dynamic_flag_spec='${wl}--export-dynamic'
12565     # ancient GNU ld didn't support --whole-archive et. al.
12566     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12567       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12568     else
12569       whole_archive_flag_spec=
12570     fi
12571     supports_anon_versioning=no
12572     case `$LD -v 2>&1` in
12573       *GNU\ gold*) supports_anon_versioning=yes ;;
12574       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12575       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12576       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12577       *\ 2.11.*) ;; # other 2.11 versions
12578       *) supports_anon_versioning=yes ;;
12579     esac
12580
12581     # See if GNU ld supports shared libraries.
12582     case $host_os in
12583     aix[3-9]*)
12584       # On AIX/PPC, the GNU linker is very broken
12585       if test "$host_cpu" != ia64; then
12586         ld_shlibs=no
12587         cat <<_LT_EOF 1>&2
12588
12589 *** Warning: the GNU linker, at least up to release 2.19, is reported
12590 *** to be unable to reliably create shared libraries on AIX.
12591 *** Therefore, libtool is disabling shared libraries support.  If you
12592 *** really care for shared libraries, you may want to install binutils
12593 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12594 *** You will then need to restart the configuration process.
12595
12596 _LT_EOF
12597       fi
12598       ;;
12599
12600     amigaos*)
12601       case $host_cpu in
12602       powerpc)
12603             # see comment about AmigaOS4 .so support
12604             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12605             archive_expsym_cmds=''
12606         ;;
12607       m68k)
12608             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)'
12609             hardcode_libdir_flag_spec='-L$libdir'
12610             hardcode_minus_L=yes
12611         ;;
12612       esac
12613       ;;
12614
12615     beos*)
12616       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12617         allow_undefined_flag=unsupported
12618         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12619         # support --undefined.  This deserves some investigation.  FIXME
12620         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12621       else
12622         ld_shlibs=no
12623       fi
12624       ;;
12625
12626     cygwin* | mingw* | pw32* | cegcc*)
12627       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12628       # as there is no search path for DLLs.
12629       hardcode_libdir_flag_spec='-L$libdir'
12630       export_dynamic_flag_spec='${wl}--export-all-symbols'
12631       allow_undefined_flag=unsupported
12632       always_export_symbols=no
12633       enable_shared_with_static_runtimes=yes
12634       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'
12635       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12636
12637       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12638         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12639         # If the export-symbols file already is a .def file (1st line
12640         # is EXPORTS), use it as is; otherwise, prepend...
12641         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12642           cp $export_symbols $output_objdir/$soname.def;
12643         else
12644           echo EXPORTS > $output_objdir/$soname.def;
12645           cat $export_symbols >> $output_objdir/$soname.def;
12646         fi~
12647         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12648       else
12649         ld_shlibs=no
12650       fi
12651       ;;
12652
12653     haiku*)
12654       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12655       link_all_deplibs=yes
12656       ;;
12657
12658     interix[3-9]*)
12659       hardcode_direct=no
12660       hardcode_shlibpath_var=no
12661       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12662       export_dynamic_flag_spec='${wl}-E'
12663       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12664       # Instead, shared libraries are loaded at an image base (0x10000000 by
12665       # default) and relocated if they conflict, which is a slow very memory
12666       # consuming and fragmenting process.  To avoid this, we pick a random,
12667       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12668       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12669       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12670       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'
12671       ;;
12672
12673     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12674       tmp_diet=no
12675       if test "$host_os" = linux-dietlibc; then
12676         case $cc_basename in
12677           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12678         esac
12679       fi
12680       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12681          && test "$tmp_diet" = no
12682       then
12683         tmp_addflag=' $pic_flag'
12684         tmp_sharedflag='-shared'
12685         case $cc_basename,$host_cpu in
12686         pgcc*)                          # Portland Group C compiler
12687           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'
12688           tmp_addflag=' $pic_flag'
12689           ;;
12690         pgf77* | pgf90* | pgf95* | pgfortran*)
12691                                         # Portland Group f77 and f90 compilers
12692           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'
12693           tmp_addflag=' $pic_flag -Mnomain' ;;
12694         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12695           tmp_addflag=' -i_dynamic' ;;
12696         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12697           tmp_addflag=' -i_dynamic -nofor_main' ;;
12698         ifc* | ifort*)                  # Intel Fortran compiler
12699           tmp_addflag=' -nofor_main' ;;
12700         lf95*)                          # Lahey Fortran 8.1
12701           whole_archive_flag_spec=
12702           tmp_sharedflag='--shared' ;;
12703         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12704           tmp_sharedflag='-qmkshrobj'
12705           tmp_addflag= ;;
12706         nvcc*)  # Cuda Compiler Driver 2.2
12707           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'
12708           compiler_needs_object=yes
12709           ;;
12710         esac
12711         case `$CC -V 2>&1 | sed 5q` in
12712         *Sun\ C*)                       # Sun C 5.9
12713           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'
12714           compiler_needs_object=yes
12715           tmp_sharedflag='-G' ;;
12716         *Sun\ F*)                       # Sun Fortran 8.3
12717           tmp_sharedflag='-G' ;;
12718         esac
12719         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12720
12721         if test "x$supports_anon_versioning" = xyes; then
12722           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12723             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12724             echo "local: *; };" >> $output_objdir/$libname.ver~
12725             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12726         fi
12727
12728         case $cc_basename in
12729         xlf* | bgf* | bgxlf* | mpixlf*)
12730           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12731           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12732           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12733           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12734           if test "x$supports_anon_versioning" = xyes; then
12735             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12736               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12737               echo "local: *; };" >> $output_objdir/$libname.ver~
12738               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12739           fi
12740           ;;
12741         esac
12742       else
12743         ld_shlibs=no
12744       fi
12745       ;;
12746
12747     netbsd* | netbsdelf*-gnu)
12748       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12749         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12750         wlarc=
12751       else
12752         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12753         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12754       fi
12755       ;;
12756
12757     solaris*)
12758       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12759         ld_shlibs=no
12760         cat <<_LT_EOF 1>&2
12761
12762 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12763 *** create shared libraries on Solaris systems.  Therefore, libtool
12764 *** is disabling shared libraries support.  We urge you to upgrade GNU
12765 *** binutils to release 2.9.1 or newer.  Another option is to modify
12766 *** your PATH or compiler configuration so that the native linker is
12767 *** used, and then restart.
12768
12769 _LT_EOF
12770       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12771         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12772         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12773       else
12774         ld_shlibs=no
12775       fi
12776       ;;
12777
12778     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12779       case `$LD -v 2>&1` in
12780         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12781         ld_shlibs=no
12782         cat <<_LT_EOF 1>&2
12783
12784 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12785 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12786 *** is disabling shared libraries support.  We urge you to upgrade GNU
12787 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12788 *** your PATH or compiler configuration so that the native linker is
12789 *** used, and then restart.
12790
12791 _LT_EOF
12792         ;;
12793         *)
12794           # For security reasons, it is highly recommended that you always
12795           # use absolute paths for naming shared libraries, and exclude the
12796           # DT_RUNPATH tag from executables and libraries.  But doing so
12797           # requires that you compile everything twice, which is a pain.
12798           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12799             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12800             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12801             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12802           else
12803             ld_shlibs=no
12804           fi
12805         ;;
12806       esac
12807       ;;
12808
12809     sunos4*)
12810       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12811       wlarc=
12812       hardcode_direct=yes
12813       hardcode_shlibpath_var=no
12814       ;;
12815
12816     *)
12817       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12818         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12819         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12820       else
12821         ld_shlibs=no
12822       fi
12823       ;;
12824     esac
12825
12826     if test "$ld_shlibs" = no; then
12827       runpath_var=
12828       hardcode_libdir_flag_spec=
12829       export_dynamic_flag_spec=
12830       whole_archive_flag_spec=
12831     fi
12832   else
12833     # PORTME fill in a description of your system's linker (not GNU ld)
12834     case $host_os in
12835     aix3*)
12836       allow_undefined_flag=unsupported
12837       always_export_symbols=yes
12838       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'
12839       # Note: this linker hardcodes the directories in LIBPATH if there
12840       # are no directories specified by -L.
12841       hardcode_minus_L=yes
12842       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12843         # Neither direct hardcoding nor static linking is supported with a
12844         # broken collect2.
12845         hardcode_direct=unsupported
12846       fi
12847       ;;
12848
12849     aix[4-9]*)
12850       if test "$host_cpu" = ia64; then
12851         # On IA64, the linker does run time linking by default, so we don't
12852         # have to do anything special.
12853         aix_use_runtimelinking=no
12854         exp_sym_flag='-Bexport'
12855         no_entry_flag=""
12856       else
12857         # If we're using GNU nm, then we don't want the "-C" option.
12858         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12859         # Also, AIX nm treats weak defined symbols like other global
12860         # defined symbols, whereas GNU nm marks them as "W".
12861         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12862           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'
12863         else
12864           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'
12865         fi
12866         aix_use_runtimelinking=no
12867
12868         # Test if we are trying to use run time linking or normal
12869         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12870         # need to do runtime linking.
12871         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12872           for ld_flag in $LDFLAGS; do
12873           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12874             aix_use_runtimelinking=yes
12875             break
12876           fi
12877           done
12878           ;;
12879         esac
12880
12881         exp_sym_flag='-bexport'
12882         no_entry_flag='-bnoentry'
12883       fi
12884
12885       # When large executables or shared objects are built, AIX ld can
12886       # have problems creating the table of contents.  If linking a library
12887       # or program results in "error TOC overflow" add -mminimal-toc to
12888       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12889       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12890
12891       archive_cmds=''
12892       hardcode_direct=yes
12893       hardcode_direct_absolute=yes
12894       hardcode_libdir_separator=':'
12895       link_all_deplibs=yes
12896       file_list_spec='${wl}-f,'
12897
12898       if test "$GCC" = yes; then
12899         case $host_os in aix4.[012]|aix4.[012].*)
12900         # We only want to do this on AIX 4.2 and lower, the check
12901         # below for broken collect2 doesn't work under 4.3+
12902           collect2name=`${CC} -print-prog-name=collect2`
12903           if test -f "$collect2name" &&
12904            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12905           then
12906           # We have reworked collect2
12907           :
12908           else
12909           # We have old collect2
12910           hardcode_direct=unsupported
12911           # It fails to find uninstalled libraries when the uninstalled
12912           # path is not listed in the libpath.  Setting hardcode_minus_L
12913           # to unsupported forces relinking
12914           hardcode_minus_L=yes
12915           hardcode_libdir_flag_spec='-L$libdir'
12916           hardcode_libdir_separator=
12917           fi
12918           ;;
12919         esac
12920         shared_flag='-shared'
12921         if test "$aix_use_runtimelinking" = yes; then
12922           shared_flag="$shared_flag "'${wl}-G'
12923         fi
12924         link_all_deplibs=no
12925       else
12926         # not using gcc
12927         if test "$host_cpu" = ia64; then
12928         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12929         # chokes on -Wl,-G. The following line is correct:
12930           shared_flag='-G'
12931         else
12932           if test "$aix_use_runtimelinking" = yes; then
12933             shared_flag='${wl}-G'
12934           else
12935             shared_flag='${wl}-bM:SRE'
12936           fi
12937         fi
12938       fi
12939
12940       export_dynamic_flag_spec='${wl}-bexpall'
12941       # It seems that -bexpall does not export symbols beginning with
12942       # underscore (_), so it is better to generate a list of symbols to export.
12943       always_export_symbols=yes
12944       if test "$aix_use_runtimelinking" = yes; then
12945         # Warning - without using the other runtime loading flags (-brtl),
12946         # -berok will link without error, but may produce a broken library.
12947         allow_undefined_flag='-berok'
12948         # Determine the default libpath from the value encoded in an
12949         # empty executable.
12950         if test "${lt_cv_aix_libpath+set}" = set; then
12951   aix_libpath=$lt_cv_aix_libpath
12952 else
12953   if ${lt_cv_aix_libpath_+:} false; then :
12954   $as_echo_n "(cached) " >&6
12955 else
12956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12957 /* end confdefs.h.  */
12958
12959 int main (void)
12960 {
12961
12962  ;
12963  return 0;
12964 }
12965 _ACEOF
12966 if ac_fn_c_try_link "$LINENO"; then :
12967
12968   lt_aix_libpath_sed='
12969       /Import File Strings/,/^$/ {
12970           /^0/ {
12971               s/^0  *\([^ ]*\) *$/\1/
12972               p
12973           }
12974       }'
12975   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12976   # Check for a 64-bit object if we didn't find anything.
12977   if test -z "$lt_cv_aix_libpath_"; then
12978     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12979   fi
12980 fi
12981 rm -f core conftest.err conftest.$ac_objext \
12982     conftest$ac_exeext conftest.$ac_ext
12983   if test -z "$lt_cv_aix_libpath_"; then
12984     lt_cv_aix_libpath_="/usr/lib:/lib"
12985   fi
12986
12987 fi
12988
12989   aix_libpath=$lt_cv_aix_libpath_
12990 fi
12991
12992         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12993         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"
12994       else
12995         if test "$host_cpu" = ia64; then
12996           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12997           allow_undefined_flag="-z nodefs"
12998           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"
12999         else
13000          # Determine the default libpath from the value encoded in an
13001          # empty executable.
13002          if test "${lt_cv_aix_libpath+set}" = set; then
13003   aix_libpath=$lt_cv_aix_libpath
13004 else
13005   if ${lt_cv_aix_libpath_+:} false; then :
13006   $as_echo_n "(cached) " >&6
13007 else
13008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13009 /* end confdefs.h.  */
13010
13011 int main (void)
13012 {
13013
13014  ;
13015  return 0;
13016 }
13017 _ACEOF
13018 if ac_fn_c_try_link "$LINENO"; then :
13019
13020   lt_aix_libpath_sed='
13021       /Import File Strings/,/^$/ {
13022           /^0/ {
13023               s/^0  *\([^ ]*\) *$/\1/
13024               p
13025           }
13026       }'
13027   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13028   # Check for a 64-bit object if we didn't find anything.
13029   if test -z "$lt_cv_aix_libpath_"; then
13030     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13031   fi
13032 fi
13033 rm -f core conftest.err conftest.$ac_objext \
13034     conftest$ac_exeext conftest.$ac_ext
13035   if test -z "$lt_cv_aix_libpath_"; then
13036     lt_cv_aix_libpath_="/usr/lib:/lib"
13037   fi
13038
13039 fi
13040
13041   aix_libpath=$lt_cv_aix_libpath_
13042 fi
13043
13044          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13045           # Warning - without using the other run time loading flags,
13046           # -berok will link without error, but may produce a broken library.
13047           no_undefined_flag=' ${wl}-bernotok'
13048           allow_undefined_flag=' ${wl}-berok'
13049           if test "$with_gnu_ld" = yes; then
13050             # We only use this code for GNU lds that support --whole-archive.
13051             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13052           else
13053             # Exported symbols can be pulled into shared objects from archives
13054             whole_archive_flag_spec='$convenience'
13055           fi
13056           archive_cmds_need_lc=yes
13057           # This is similar to how AIX traditionally builds its shared libraries.
13058           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'
13059         fi
13060       fi
13061       ;;
13062
13063     amigaos*)
13064       case $host_cpu in
13065       powerpc)
13066             # see comment about AmigaOS4 .so support
13067             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13068             archive_expsym_cmds=''
13069         ;;
13070       m68k)
13071             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)'
13072             hardcode_libdir_flag_spec='-L$libdir'
13073             hardcode_minus_L=yes
13074         ;;
13075       esac
13076       ;;
13077
13078     bsdi[45]*)
13079       export_dynamic_flag_spec=-rdynamic
13080       ;;
13081
13082     cygwin* | mingw* | pw32* | cegcc*)
13083       # When not using gcc, we currently assume that we are using
13084       # Microsoft Visual C++.
13085       # hardcode_libdir_flag_spec is actually meaningless, as there is
13086       # no search path for DLLs.
13087       case $cc_basename in
13088       cl*)
13089         # Native MSVC
13090         hardcode_libdir_flag_spec=' '
13091         allow_undefined_flag=unsupported
13092         always_export_symbols=yes
13093         file_list_spec='@'
13094         # Tell ltmain to make .lib files, not .a files.
13095         libext=lib
13096         # Tell ltmain to make .dll files, not .so files.
13097         shrext_cmds=".dll"
13098         # FIXME: Setting linknames here is a bad hack.
13099         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13100         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13101             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13102           else
13103             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13104           fi~
13105           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13106           linknames='
13107         # The linker will not automatically build a static lib if we build a DLL.
13108         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13109         enable_shared_with_static_runtimes=yes
13110         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13111         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13112         # Don't use ranlib
13113         old_postinstall_cmds='chmod 644 $oldlib'
13114         postlink_cmds='lt_outputfile="@OUTPUT@"~
13115           lt_tool_outputfile="@TOOL_OUTPUT@"~
13116           case $lt_outputfile in
13117             *.exe|*.EXE) ;;
13118             *)
13119               lt_outputfile="$lt_outputfile.exe"
13120               lt_tool_outputfile="$lt_tool_outputfile.exe"
13121               ;;
13122           esac~
13123           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13124             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13125             $RM "$lt_outputfile.manifest";
13126           fi'
13127         ;;
13128       *)
13129         # Assume MSVC wrapper
13130         hardcode_libdir_flag_spec=' '
13131         allow_undefined_flag=unsupported
13132         # Tell ltmain to make .lib files, not .a files.
13133         libext=lib
13134         # Tell ltmain to make .dll files, not .so files.
13135         shrext_cmds=".dll"
13136         # FIXME: Setting linknames here is a bad hack.
13137         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13138         # The linker will automatically build a .lib file if we build a DLL.
13139         old_archive_from_new_cmds='true'
13140         # FIXME: Should let the user specify the lib program.
13141         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13142         enable_shared_with_static_runtimes=yes
13143         ;;
13144       esac
13145       ;;
13146
13147     darwin* | rhapsody*)
13148
13149
13150   archive_cmds_need_lc=no
13151   hardcode_direct=no
13152   hardcode_automatic=yes
13153   hardcode_shlibpath_var=unsupported
13154   if test "$lt_cv_ld_force_load" = "yes"; then
13155     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\"`'
13156
13157   else
13158     whole_archive_flag_spec=''
13159   fi
13160   link_all_deplibs=yes
13161   allow_undefined_flag="$_lt_dar_allow_undefined"
13162   case $cc_basename in
13163      ifort*) _lt_dar_can_shared=yes ;;
13164      *) _lt_dar_can_shared=$GCC ;;
13165   esac
13166   if test "$_lt_dar_can_shared" = "yes"; then
13167     output_verbose_link_cmd=func_echo_all
13168     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13169     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13170     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}"
13171     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}"
13172
13173   else
13174   ld_shlibs=no
13175   fi
13176
13177       ;;
13178
13179     dgux*)
13180       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13181       hardcode_libdir_flag_spec='-L$libdir'
13182       hardcode_shlibpath_var=no
13183       ;;
13184
13185     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13186     # support.  Future versions do this automatically, but an explicit c++rt0.o
13187     # does not break anything, and helps significantly (at the cost of a little
13188     # extra space).
13189     freebsd2.2*)
13190       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13191       hardcode_libdir_flag_spec='-R$libdir'
13192       hardcode_direct=yes
13193       hardcode_shlibpath_var=no
13194       ;;
13195
13196     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13197     freebsd2.*)
13198       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13199       hardcode_direct=yes
13200       hardcode_minus_L=yes
13201       hardcode_shlibpath_var=no
13202       ;;
13203
13204     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13205     freebsd* | dragonfly*)
13206       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13207       hardcode_libdir_flag_spec='-R$libdir'
13208       hardcode_direct=yes
13209       hardcode_shlibpath_var=no
13210       ;;
13211
13212     hpux9*)
13213       if test "$GCC" = yes; then
13214         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'
13215       else
13216         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'
13217       fi
13218       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13219       hardcode_libdir_separator=:
13220       hardcode_direct=yes
13221
13222       # hardcode_minus_L: Not really in the search PATH,
13223       # but as the default location of the library.
13224       hardcode_minus_L=yes
13225       export_dynamic_flag_spec='${wl}-E'
13226       ;;
13227
13228     hpux10*)
13229       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13230         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13231       else
13232         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13233       fi
13234       if test "$with_gnu_ld" = no; then
13235         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13236         hardcode_libdir_separator=:
13237         hardcode_direct=yes
13238         hardcode_direct_absolute=yes
13239         export_dynamic_flag_spec='${wl}-E'
13240         # hardcode_minus_L: Not really in the search PATH,
13241         # but as the default location of the library.
13242         hardcode_minus_L=yes
13243       fi
13244       ;;
13245
13246     hpux11*)
13247       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13248         case $host_cpu in
13249         hppa*64*)
13250           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13251           ;;
13252         ia64*)
13253           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13254           ;;
13255         *)
13256           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13257           ;;
13258         esac
13259       else
13260         case $host_cpu in
13261         hppa*64*)
13262           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13263           ;;
13264         ia64*)
13265           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13266           ;;
13267         *)
13268
13269           # Older versions of the 11.00 compiler do not understand -b yet
13270           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13271           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13272 $as_echo_n "checking if $CC understands -b... " >&6; }
13273 if ${lt_cv_prog_compiler__b+:} false; then :
13274   $as_echo_n "(cached) " >&6
13275 else
13276   lt_cv_prog_compiler__b=no
13277    save_LDFLAGS="$LDFLAGS"
13278    LDFLAGS="$LDFLAGS -b"
13279    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13280    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13281      # The linker can only warn and ignore the option if not recognized
13282      # So say no if there are warnings
13283      if test -s conftest.err; then
13284        # Append any errors to the config.log.
13285        cat conftest.err 1>&5
13286        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13287        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13288        if diff conftest.exp conftest.er2 >/dev/null; then
13289          lt_cv_prog_compiler__b=yes
13290        fi
13291      else
13292        lt_cv_prog_compiler__b=yes
13293      fi
13294    fi
13295    $RM -r conftest*
13296    LDFLAGS="$save_LDFLAGS"
13297
13298 fi
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13300 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13301
13302 if test x"$lt_cv_prog_compiler__b" = xyes; then
13303     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13304 else
13305     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13306 fi
13307
13308           ;;
13309         esac
13310       fi
13311       if test "$with_gnu_ld" = no; then
13312         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13313         hardcode_libdir_separator=:
13314
13315         case $host_cpu in
13316         hppa*64*|ia64*)
13317           hardcode_direct=no
13318           hardcode_shlibpath_var=no
13319           ;;
13320         *)
13321           hardcode_direct=yes
13322           hardcode_direct_absolute=yes
13323           export_dynamic_flag_spec='${wl}-E'
13324
13325           # hardcode_minus_L: Not really in the search PATH,
13326           # but as the default location of the library.
13327           hardcode_minus_L=yes
13328           ;;
13329         esac
13330       fi
13331       ;;
13332
13333     irix5* | irix6* | nonstopux*)
13334       if test "$GCC" = yes; then
13335         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'
13336         # Try to use the -exported_symbol ld option, if it does not
13337         # work, assume that -exports_file does not work either and
13338         # implicitly export all symbols.
13339         # This should be the same for all languages, so no per-tag cache variable.
13340         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13341 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13342 if ${lt_cv_irix_exported_symbol+:} false; then :
13343   $as_echo_n "(cached) " >&6
13344 else
13345   save_LDFLAGS="$LDFLAGS"
13346            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13347            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13348 /* end confdefs.h.  */
13349 int foo (void) { return 0; }
13350 _ACEOF
13351 if ac_fn_c_try_link "$LINENO"; then :
13352   lt_cv_irix_exported_symbol=yes
13353 else
13354   lt_cv_irix_exported_symbol=no
13355 fi
13356 rm -f core conftest.err conftest.$ac_objext \
13357     conftest$ac_exeext conftest.$ac_ext
13358            LDFLAGS="$save_LDFLAGS"
13359 fi
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13361 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13362         if test "$lt_cv_irix_exported_symbol" = yes; then
13363           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'
13364         fi
13365       else
13366         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'
13367         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'
13368       fi
13369       archive_cmds_need_lc='no'
13370       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13371       hardcode_libdir_separator=:
13372       inherit_rpath=yes
13373       link_all_deplibs=yes
13374       ;;
13375
13376     netbsd* | netbsdelf*-gnu)
13377       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13378         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13379       else
13380         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13381       fi
13382       hardcode_libdir_flag_spec='-R$libdir'
13383       hardcode_direct=yes
13384       hardcode_shlibpath_var=no
13385       ;;
13386
13387     newsos6)
13388       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13389       hardcode_direct=yes
13390       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13391       hardcode_libdir_separator=:
13392       hardcode_shlibpath_var=no
13393       ;;
13394
13395     *nto* | *qnx*)
13396       ;;
13397
13398     openbsd*)
13399       if test -f /usr/libexec/ld.so; then
13400         hardcode_direct=yes
13401         hardcode_shlibpath_var=no
13402         hardcode_direct_absolute=yes
13403         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13404           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13405           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13406           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13407           export_dynamic_flag_spec='${wl}-E'
13408         else
13409           case $host_os in
13410            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13411              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13412              hardcode_libdir_flag_spec='-R$libdir'
13413              ;;
13414            *)
13415              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13416              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13417              ;;
13418           esac
13419         fi
13420       else
13421         ld_shlibs=no
13422       fi
13423       ;;
13424
13425     os2*)
13426       hardcode_libdir_flag_spec='-L$libdir'
13427       hardcode_minus_L=yes
13428       allow_undefined_flag=unsupported
13429       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'
13430       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13431       ;;
13432
13433     osf3*)
13434       if test "$GCC" = yes; then
13435         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13436         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'
13437       else
13438         allow_undefined_flag=' -expect_unresolved \*'
13439         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'
13440       fi
13441       archive_cmds_need_lc='no'
13442       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13443       hardcode_libdir_separator=:
13444       ;;
13445
13446     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13447       if test "$GCC" = yes; then
13448         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13449         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'
13450         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13451       else
13452         allow_undefined_flag=' -expect_unresolved \*'
13453         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'
13454         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~
13455         $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'
13456
13457         # Both c and cxx compiler support -rpath directly
13458         hardcode_libdir_flag_spec='-rpath $libdir'
13459       fi
13460       archive_cmds_need_lc='no'
13461       hardcode_libdir_separator=:
13462       ;;
13463
13464     solaris*)
13465       no_undefined_flag=' -z defs'
13466       if test "$GCC" = yes; then
13467         wlarc='${wl}'
13468         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13469         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13470           $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'
13471       else
13472         case `$CC -V 2>&1` in
13473         *"Compilers 5.0"*)
13474           wlarc=''
13475           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13476           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13477           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13478           ;;
13479         *)
13480           wlarc='${wl}'
13481           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13482           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13483           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13484           ;;
13485         esac
13486       fi
13487       hardcode_libdir_flag_spec='-R$libdir'
13488       hardcode_shlibpath_var=no
13489       case $host_os in
13490       solaris2.[0-5] | solaris2.[0-5].*) ;;
13491       *)
13492         # The compiler driver will combine and reorder linker options,
13493         # but understands `-z linker_flag'.  GCC discards it without `$wl',
13494         # but is careful enough not to reorder.
13495         # Supported since Solaris 2.6 (maybe 2.5.1?)
13496         if test "$GCC" = yes; then
13497           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13498         else
13499           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13500         fi
13501         ;;
13502       esac
13503       link_all_deplibs=yes
13504       ;;
13505
13506     sunos4*)
13507       if test "x$host_vendor" = xsequent; then
13508         # Use $CC to link under sequent, because it throws in some extra .o
13509         # files that make .init and .fini sections work.
13510         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13511       else
13512         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13513       fi
13514       hardcode_libdir_flag_spec='-L$libdir'
13515       hardcode_direct=yes
13516       hardcode_minus_L=yes
13517       hardcode_shlibpath_var=no
13518       ;;
13519
13520     sysv4)
13521       case $host_vendor in
13522         sni)
13523           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13524           hardcode_direct=yes # is this really true???
13525         ;;
13526         siemens)
13527           ## LD is ld it makes a PLAMLIB
13528           ## CC just makes a GrossModule.
13529           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13530           reload_cmds='$CC -r -o $output$reload_objs'
13531           hardcode_direct=no
13532         ;;
13533         motorola)
13534           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13535           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13536         ;;
13537       esac
13538       runpath_var='LD_RUN_PATH'
13539       hardcode_shlibpath_var=no
13540       ;;
13541
13542     sysv4.3*)
13543       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13544       hardcode_shlibpath_var=no
13545       export_dynamic_flag_spec='-Bexport'
13546       ;;
13547
13548     sysv4*MP*)
13549       if test -d /usr/nec; then
13550         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13551         hardcode_shlibpath_var=no
13552         runpath_var=LD_RUN_PATH
13553         hardcode_runpath_var=yes
13554         ld_shlibs=yes
13555       fi
13556       ;;
13557
13558     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13559       no_undefined_flag='${wl}-z,text'
13560       archive_cmds_need_lc=no
13561       hardcode_shlibpath_var=no
13562       runpath_var='LD_RUN_PATH'
13563
13564       if test "$GCC" = yes; then
13565         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13566         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13567       else
13568         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13569         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13570       fi
13571       ;;
13572
13573     sysv5* | sco3.2v5* | sco5v6*)
13574       # Note: We can NOT use -z defs as we might desire, because we do not
13575       # link with -lc, and that would cause any symbols used from libc to
13576       # always be unresolved, which means just about no library would
13577       # ever link correctly.  If we're not using GNU ld we use -z text
13578       # though, which does catch some bad symbols but isn't as heavy-handed
13579       # as -z defs.
13580       no_undefined_flag='${wl}-z,text'
13581       allow_undefined_flag='${wl}-z,nodefs'
13582       archive_cmds_need_lc=no
13583       hardcode_shlibpath_var=no
13584       hardcode_libdir_flag_spec='${wl}-R,$libdir'
13585       hardcode_libdir_separator=':'
13586       link_all_deplibs=yes
13587       export_dynamic_flag_spec='${wl}-Bexport'
13588       runpath_var='LD_RUN_PATH'
13589
13590       if test "$GCC" = yes; then
13591         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13592         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13593       else
13594         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13595         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13596       fi
13597       ;;
13598
13599     uts4*)
13600       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13601       hardcode_libdir_flag_spec='-L$libdir'
13602       hardcode_shlibpath_var=no
13603       ;;
13604
13605     *)
13606       ld_shlibs=no
13607       ;;
13608     esac
13609
13610     if test x$host_vendor = xsni; then
13611       case $host in
13612       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13613         export_dynamic_flag_spec='${wl}-Blargedynsym'
13614         ;;
13615       esac
13616     fi
13617   fi
13618
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13620 $as_echo "$ld_shlibs" >&6; }
13621 test "$ld_shlibs" = no && can_build_shared=no
13622
13623 with_gnu_ld=$with_gnu_ld
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639 #
13640 # Do we need to explicitly link libc?
13641 #
13642 case "x$archive_cmds_need_lc" in
13643 x|xyes)
13644   # Assume -lc should be added
13645   archive_cmds_need_lc=yes
13646
13647   if test "$enable_shared" = yes && test "$GCC" = yes; then
13648     case $archive_cmds in
13649     *'~'*)
13650       # FIXME: we may have to deal with multi-command sequences.
13651       ;;
13652     '$CC '*)
13653       # Test whether the compiler implicitly links with -lc since on some
13654       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13655       # to ld, don't add -lc before -lgcc.
13656       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13657 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13658 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13659   $as_echo_n "(cached) " >&6
13660 else
13661   $RM conftest*
13662         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13663
13664         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13665   (eval $ac_compile) 2>&5
13666   ac_status=$?
13667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13668   test $ac_status = 0; } 2>conftest.err; then
13669           soname=conftest
13670           lib=conftest
13671           libobjs=conftest.$ac_objext
13672           deplibs=
13673           wl=$lt_prog_compiler_wl
13674           pic_flag=$lt_prog_compiler_pic
13675           compiler_flags=-v
13676           linker_flags=-v
13677           verstring=
13678           output_objdir=.
13679           libname=conftest
13680           lt_save_allow_undefined_flag=$allow_undefined_flag
13681           allow_undefined_flag=
13682           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13683   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13684   ac_status=$?
13685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13686   test $ac_status = 0; }
13687           then
13688             lt_cv_archive_cmds_need_lc=no
13689           else
13690             lt_cv_archive_cmds_need_lc=yes
13691           fi
13692           allow_undefined_flag=$lt_save_allow_undefined_flag
13693         else
13694           cat conftest.err 1>&5
13695         fi
13696         $RM conftest*
13697
13698 fi
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13700 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13701       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13702       ;;
13703     esac
13704   fi
13705   ;;
13706 esac
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13860 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13861
13862 if test "$GCC" = yes; then
13863   case $host_os in
13864     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13865     *) lt_awk_arg="/^libraries:/" ;;
13866   esac
13867   case $host_os in
13868     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
13869     *) lt_sed_strip_eq="s,=/,/,g" ;;
13870   esac
13871   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13872   case $lt_search_path_spec in
13873   *\;*)
13874     # if the path contains ";" then we assume it to be the separator
13875     # otherwise default to the standard path separator (i.e. ":") - it is
13876     # assumed that no part of a normal pathname contains ";" but that should
13877     # okay in the real world where ";" in dirpaths is itself problematic.
13878     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13879     ;;
13880   *)
13881     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13882     ;;
13883   esac
13884   # Ok, now we have the path, separated by spaces, we can step through it
13885   # and add multilib dir if necessary.
13886   lt_tmp_lt_search_path_spec=
13887   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13888   for lt_sys_path in $lt_search_path_spec; do
13889     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13890       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13891     else
13892       test -d "$lt_sys_path" && \
13893         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13894     fi
13895   done
13896   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13897 BEGIN {RS=" "; FS="/|\n";} {
13898   lt_foo="";
13899   lt_count=0;
13900   for (lt_i = NF; lt_i > 0; lt_i--) {
13901     if ($lt_i != "" && $lt_i != ".") {
13902       if ($lt_i == "..") {
13903         lt_count++;
13904       } else {
13905         if (lt_count == 0) {
13906           lt_foo="/" $lt_i lt_foo;
13907         } else {
13908           lt_count--;
13909         }
13910       }
13911     }
13912   }
13913   if (lt_foo != "") { lt_freq[lt_foo]++; }
13914   if (lt_freq[lt_foo] == 1) { print lt_foo; }
13915 }'`
13916   # AWK program above erroneously prepends '/' to C:/dos/paths
13917   # for these hosts.
13918   case $host_os in
13919     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13920       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13921   esac
13922   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13923 else
13924   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13925 fi
13926 library_names_spec=
13927 libname_spec='lib$name'
13928 soname_spec=
13929 shrext_cmds=".so"
13930 postinstall_cmds=
13931 postuninstall_cmds=
13932 finish_cmds=
13933 finish_eval=
13934 shlibpath_var=
13935 shlibpath_overrides_runpath=unknown
13936 version_type=none
13937 dynamic_linker="$host_os ld.so"
13938 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13939 need_lib_prefix=unknown
13940 hardcode_into_libs=no
13941
13942 # when you set need_version to no, make sure it does not cause -set_version
13943 # flags to be left without arguments
13944 need_version=unknown
13945
13946 case $host_os in
13947 aix3*)
13948   version_type=linux # correct to gnu/linux during the next big refactor
13949   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13950   shlibpath_var=LIBPATH
13951
13952   # AIX 3 has no versioning support, so we append a major version to the name.
13953   soname_spec='${libname}${release}${shared_ext}$major'
13954   ;;
13955
13956 aix[4-9]*)
13957   version_type=linux # correct to gnu/linux during the next big refactor
13958   need_lib_prefix=no
13959   need_version=no
13960   hardcode_into_libs=yes
13961   if test "$host_cpu" = ia64; then
13962     # AIX 5 supports IA64
13963     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13964     shlibpath_var=LD_LIBRARY_PATH
13965   else
13966     # With GCC up to 2.95.x, collect2 would create an import file
13967     # for dependence libraries.  The import file would start with
13968     # the line `#! .'.  This would cause the generated library to
13969     # depend on `.', always an invalid library.  This was fixed in
13970     # development snapshots of GCC prior to 3.0.
13971     case $host_os in
13972       aix4 | aix4.[01] | aix4.[01].*)
13973       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13974            echo ' yes '
13975            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13976         :
13977       else
13978         can_build_shared=no
13979       fi
13980       ;;
13981     esac
13982     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13983     # soname into executable. Probably we can add versioning support to
13984     # collect2, so additional links can be useful in future.
13985     if test "$aix_use_runtimelinking" = yes; then
13986       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13987       # instead of lib<name>.a to let people know that these are not
13988       # typical AIX shared libraries.
13989       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13990     else
13991       # We preserve .a as extension for shared libraries through AIX4.2
13992       # and later when we are not doing run time linking.
13993       library_names_spec='${libname}${release}.a $libname.a'
13994       soname_spec='${libname}${release}${shared_ext}$major'
13995     fi
13996     shlibpath_var=LIBPATH
13997   fi
13998   ;;
13999
14000 amigaos*)
14001   case $host_cpu in
14002   powerpc)
14003     # Since July 2007 AmigaOS4 officially supports .so libraries.
14004     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14005     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14006     ;;
14007   m68k)
14008     library_names_spec='$libname.ixlibrary $libname.a'
14009     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14010     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'
14011     ;;
14012   esac
14013   ;;
14014
14015 beos*)
14016   library_names_spec='${libname}${shared_ext}'
14017   dynamic_linker="$host_os ld.so"
14018   shlibpath_var=LIBRARY_PATH
14019   ;;
14020
14021 bsdi[45]*)
14022   version_type=linux # correct to gnu/linux during the next big refactor
14023   need_version=no
14024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14025   soname_spec='${libname}${release}${shared_ext}$major'
14026   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14027   shlibpath_var=LD_LIBRARY_PATH
14028   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14029   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14030   # the default ld.so.conf also contains /usr/contrib/lib and
14031   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14032   # libtool to hard-code these into programs
14033   ;;
14034
14035 cygwin* | mingw* | pw32* | cegcc*)
14036   version_type=windows
14037   shrext_cmds=".dll"
14038   need_version=no
14039   need_lib_prefix=no
14040
14041   case $GCC,$cc_basename in
14042   yes,*)
14043     # gcc
14044     library_names_spec='$libname.dll.a'
14045     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14046     postinstall_cmds='base_file=`basename \${file}`~
14047       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14048       dldir=$destdir/`dirname \$dlpath`~
14049       test -d \$dldir || mkdir -p \$dldir~
14050       $install_prog $dir/$dlname \$dldir/$dlname~
14051       chmod a+x \$dldir/$dlname~
14052       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14053         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14054       fi'
14055     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14056       dlpath=$dir/\$dldll~
14057        $RM \$dlpath'
14058     shlibpath_overrides_runpath=yes
14059
14060     case $host_os in
14061     cygwin*)
14062       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14063       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14064
14065       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14066       ;;
14067     mingw* | cegcc*)
14068       # MinGW DLLs use traditional 'lib' prefix
14069       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14070       ;;
14071     pw32*)
14072       # pw32 DLLs use 'pw' prefix rather than 'lib'
14073       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14074       ;;
14075     esac
14076     dynamic_linker='Win32 ld.exe'
14077     ;;
14078
14079   *,cl*)
14080     # Native MSVC
14081     libname_spec='$name'
14082     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14083     library_names_spec='${libname}.dll.lib'
14084
14085     case $build_os in
14086     mingw*)
14087       sys_lib_search_path_spec=
14088       lt_save_ifs=$IFS
14089       IFS=';'
14090       for lt_path in $LIB
14091       do
14092         IFS=$lt_save_ifs
14093         # Let DOS variable expansion print the short 8.3 style file name.
14094         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14095         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14096       done
14097       IFS=$lt_save_ifs
14098       # Convert to MSYS style.
14099       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14100       ;;
14101     cygwin*)
14102       # Convert to unix form, then to dos form, then back to unix form
14103       # but this time dos style (no spaces!) so that the unix form looks
14104       # like /cygdrive/c/PROGRA~1:/cygdr...
14105       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14106       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14107       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14108       ;;
14109     *)
14110       sys_lib_search_path_spec="$LIB"
14111       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14112         # It is most probably a Windows format PATH.
14113         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14114       else
14115         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14116       fi
14117       # FIXME: find the short name or the path components, as spaces are
14118       # common. (e.g. "Program Files" -> "PROGRA~1")
14119       ;;
14120     esac
14121
14122     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14123     postinstall_cmds='base_file=`basename \${file}`~
14124       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14125       dldir=$destdir/`dirname \$dlpath`~
14126       test -d \$dldir || mkdir -p \$dldir~
14127       $install_prog $dir/$dlname \$dldir/$dlname'
14128     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14129       dlpath=$dir/\$dldll~
14130        $RM \$dlpath'
14131     shlibpath_overrides_runpath=yes
14132     dynamic_linker='Win32 link.exe'
14133     ;;
14134
14135   *)
14136     # Assume MSVC wrapper
14137     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14138     dynamic_linker='Win32 ld.exe'
14139     ;;
14140   esac
14141   # FIXME: first we should search . and the directory the executable is in
14142   shlibpath_var=PATH
14143   ;;
14144
14145 darwin* | rhapsody*)
14146   dynamic_linker="$host_os dyld"
14147   version_type=darwin
14148   need_lib_prefix=no
14149   need_version=no
14150   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14151   soname_spec='${libname}${release}${major}$shared_ext'
14152   shlibpath_overrides_runpath=yes
14153   shlibpath_var=DYLD_LIBRARY_PATH
14154   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14155
14156   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14157   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14158   ;;
14159
14160 dgux*)
14161   version_type=linux # correct to gnu/linux during the next big refactor
14162   need_lib_prefix=no
14163   need_version=no
14164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14165   soname_spec='${libname}${release}${shared_ext}$major'
14166   shlibpath_var=LD_LIBRARY_PATH
14167   ;;
14168
14169 freebsd* | dragonfly*)
14170   # DragonFly does not have aout.  When/if they implement a new
14171   # versioning mechanism, adjust this.
14172   if test -x /usr/bin/objformat; then
14173     objformat=`/usr/bin/objformat`
14174   else
14175     case $host_os in
14176     freebsd[23].*) objformat=aout ;;
14177     *) objformat=elf ;;
14178     esac
14179   fi
14180   version_type=freebsd-$objformat
14181   case $version_type in
14182     freebsd-elf*)
14183       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14184       need_version=no
14185       need_lib_prefix=no
14186       ;;
14187     freebsd-*)
14188       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14189       need_version=yes
14190       ;;
14191   esac
14192   shlibpath_var=LD_LIBRARY_PATH
14193   case $host_os in
14194   freebsd2.*)
14195     shlibpath_overrides_runpath=yes
14196     ;;
14197   freebsd3.[01]* | freebsdelf3.[01]*)
14198     shlibpath_overrides_runpath=yes
14199     hardcode_into_libs=yes
14200     ;;
14201   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14202   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14203     shlibpath_overrides_runpath=no
14204     hardcode_into_libs=yes
14205     ;;
14206   *) # from 4.6 on, and DragonFly
14207     shlibpath_overrides_runpath=yes
14208     hardcode_into_libs=yes
14209     ;;
14210   esac
14211   ;;
14212
14213 haiku*)
14214   version_type=linux # correct to gnu/linux during the next big refactor
14215   need_lib_prefix=no
14216   need_version=no
14217   dynamic_linker="$host_os runtime_loader"
14218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14219   soname_spec='${libname}${release}${shared_ext}$major'
14220   shlibpath_var=LIBRARY_PATH
14221   shlibpath_overrides_runpath=yes
14222   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14223   hardcode_into_libs=yes
14224   ;;
14225
14226 hpux9* | hpux10* | hpux11*)
14227   # Give a soname corresponding to the major version so that dld.sl refuses to
14228   # link against other versions.
14229   version_type=sunos
14230   need_lib_prefix=no
14231   need_version=no
14232   case $host_cpu in
14233   ia64*)
14234     shrext_cmds='.so'
14235     hardcode_into_libs=yes
14236     dynamic_linker="$host_os dld.so"
14237     shlibpath_var=LD_LIBRARY_PATH
14238     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14239     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14240     soname_spec='${libname}${release}${shared_ext}$major'
14241     if test "X$HPUX_IA64_MODE" = X32; then
14242       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14243     else
14244       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14245     fi
14246     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14247     ;;
14248   hppa*64*)
14249     shrext_cmds='.sl'
14250     hardcode_into_libs=yes
14251     dynamic_linker="$host_os dld.sl"
14252     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14253     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14257     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14258     ;;
14259   *)
14260     shrext_cmds='.sl'
14261     dynamic_linker="$host_os dld.sl"
14262     shlibpath_var=SHLIB_PATH
14263     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14264     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14265     soname_spec='${libname}${release}${shared_ext}$major'
14266     ;;
14267   esac
14268   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14269   postinstall_cmds='chmod 555 $lib'
14270   # or fails outright, so override atomically:
14271   install_override_mode=555
14272   ;;
14273
14274 interix[3-9]*)
14275   version_type=linux # correct to gnu/linux during the next big refactor
14276   need_lib_prefix=no
14277   need_version=no
14278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14279   soname_spec='${libname}${release}${shared_ext}$major'
14280   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14281   shlibpath_var=LD_LIBRARY_PATH
14282   shlibpath_overrides_runpath=no
14283   hardcode_into_libs=yes
14284   ;;
14285
14286 irix5* | irix6* | nonstopux*)
14287   case $host_os in
14288     nonstopux*) version_type=nonstopux ;;
14289     *)
14290         if test "$lt_cv_prog_gnu_ld" = yes; then
14291                 version_type=linux # correct to gnu/linux during the next big refactor
14292         else
14293                 version_type=irix
14294         fi ;;
14295   esac
14296   need_lib_prefix=no
14297   need_version=no
14298   soname_spec='${libname}${release}${shared_ext}$major'
14299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14300   case $host_os in
14301   irix5* | nonstopux*)
14302     libsuff= shlibsuff=
14303     ;;
14304   *)
14305     case $LD in # libtool.m4 will add one of these switches to LD
14306     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14307       libsuff= shlibsuff= libmagic=32-bit;;
14308     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14309       libsuff=32 shlibsuff=N32 libmagic=N32;;
14310     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14311       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14312     *) libsuff= shlibsuff= libmagic=never-match;;
14313     esac
14314     ;;
14315   esac
14316   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14317   shlibpath_overrides_runpath=no
14318   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14319   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14320   hardcode_into_libs=yes
14321   ;;
14322
14323 # No shared lib support for Linux oldld, aout, or coff.
14324 linux*oldld* | linux*aout* | linux*coff*)
14325   dynamic_linker=no
14326   ;;
14327
14328 # This must be glibc/ELF.
14329 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14330   version_type=linux # correct to gnu/linux during the next big refactor
14331   need_lib_prefix=no
14332   need_version=no
14333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14334   soname_spec='${libname}${release}${shared_ext}$major'
14335   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14336   shlibpath_var=LD_LIBRARY_PATH
14337   shlibpath_overrides_runpath=no
14338
14339   # Some binutils ld are patched to set DT_RUNPATH
14340   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14341   $as_echo_n "(cached) " >&6
14342 else
14343   lt_cv_shlibpath_overrides_runpath=no
14344     save_LDFLAGS=$LDFLAGS
14345     save_libdir=$libdir
14346     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14347          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14348     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14349 /* end confdefs.h.  */
14350
14351 int main (void)
14352 {
14353
14354  ;
14355  return 0;
14356 }
14357 _ACEOF
14358 if ac_fn_c_try_link "$LINENO"; then :
14359   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14360   lt_cv_shlibpath_overrides_runpath=yes
14361 fi
14362 fi
14363 rm -f core conftest.err conftest.$ac_objext \
14364     conftest$ac_exeext conftest.$ac_ext
14365     LDFLAGS=$save_LDFLAGS
14366     libdir=$save_libdir
14367
14368 fi
14369
14370   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14371
14372   # This implies no fast_install, which is unacceptable.
14373   # Some rework will be needed to allow for fast_install
14374   # before this can be enabled.
14375   hardcode_into_libs=yes
14376
14377   # Append ld.so.conf contents to the search path
14378   if test -f /etc/ld.so.conf; then
14379     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' ' '`
14380     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14381   fi
14382
14383   # We used to test for /lib/ld.so.1 and disable shared libraries on
14384   # powerpc, because MkLinux only supported shared libraries with the
14385   # GNU dynamic linker.  Since this was broken with cross compilers,
14386   # most powerpc-linux boxes support dynamic linking these days and
14387   # people can always --disable-shared, the test was removed, and we
14388   # assume the GNU/Linux dynamic linker is in use.
14389   dynamic_linker='GNU/Linux ld.so'
14390   ;;
14391
14392 netbsdelf*-gnu)
14393   version_type=linux
14394   need_lib_prefix=no
14395   need_version=no
14396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14397   soname_spec='${libname}${release}${shared_ext}$major'
14398   shlibpath_var=LD_LIBRARY_PATH
14399   shlibpath_overrides_runpath=no
14400   hardcode_into_libs=yes
14401   dynamic_linker='NetBSD ld.elf_so'
14402   ;;
14403
14404 netbsd*)
14405   version_type=sunos
14406   need_lib_prefix=no
14407   need_version=no
14408   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14409     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14410     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14411     dynamic_linker='NetBSD (a.out) ld.so'
14412   else
14413     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14414     soname_spec='${libname}${release}${shared_ext}$major'
14415     dynamic_linker='NetBSD ld.elf_so'
14416   fi
14417   shlibpath_var=LD_LIBRARY_PATH
14418   shlibpath_overrides_runpath=yes
14419   hardcode_into_libs=yes
14420   ;;
14421
14422 newsos6)
14423   version_type=linux # correct to gnu/linux during the next big refactor
14424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14425   shlibpath_var=LD_LIBRARY_PATH
14426   shlibpath_overrides_runpath=yes
14427   ;;
14428
14429 *nto* | *qnx*)
14430   version_type=qnx
14431   need_lib_prefix=no
14432   need_version=no
14433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14434   soname_spec='${libname}${release}${shared_ext}$major'
14435   shlibpath_var=LD_LIBRARY_PATH
14436   shlibpath_overrides_runpath=no
14437   hardcode_into_libs=yes
14438   dynamic_linker='ldqnx.so'
14439   ;;
14440
14441 openbsd*)
14442   version_type=sunos
14443   sys_lib_dlsearch_path_spec="/usr/lib"
14444   need_lib_prefix=no
14445   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14446   case $host_os in
14447     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14448     *)                          need_version=no  ;;
14449   esac
14450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14451   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14452   shlibpath_var=LD_LIBRARY_PATH
14453   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14454     case $host_os in
14455       openbsd2.[89] | openbsd2.[89].*)
14456         shlibpath_overrides_runpath=no
14457         ;;
14458       *)
14459         shlibpath_overrides_runpath=yes
14460         ;;
14461       esac
14462   else
14463     shlibpath_overrides_runpath=yes
14464   fi
14465   ;;
14466
14467 os2*)
14468   libname_spec='$name'
14469   shrext_cmds=".dll"
14470   need_lib_prefix=no
14471   library_names_spec='$libname${shared_ext} $libname.a'
14472   dynamic_linker='OS/2 ld.exe'
14473   shlibpath_var=LIBPATH
14474   ;;
14475
14476 osf3* | osf4* | osf5*)
14477   version_type=osf
14478   need_lib_prefix=no
14479   need_version=no
14480   soname_spec='${libname}${release}${shared_ext}$major'
14481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14482   shlibpath_var=LD_LIBRARY_PATH
14483   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14484   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14485   ;;
14486
14487 rdos*)
14488   dynamic_linker=no
14489   ;;
14490
14491 solaris*)
14492   version_type=linux # correct to gnu/linux during the next big refactor
14493   need_lib_prefix=no
14494   need_version=no
14495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14496   soname_spec='${libname}${release}${shared_ext}$major'
14497   shlibpath_var=LD_LIBRARY_PATH
14498   shlibpath_overrides_runpath=yes
14499   hardcode_into_libs=yes
14500   # ldd complains unless libraries are executable
14501   postinstall_cmds='chmod +x $lib'
14502   ;;
14503
14504 sunos4*)
14505   version_type=sunos
14506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14507   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14508   shlibpath_var=LD_LIBRARY_PATH
14509   shlibpath_overrides_runpath=yes
14510   if test "$with_gnu_ld" = yes; then
14511     need_lib_prefix=no
14512   fi
14513   need_version=yes
14514   ;;
14515
14516 sysv4 | sysv4.3*)
14517   version_type=linux # correct to gnu/linux during the next big refactor
14518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14519   soname_spec='${libname}${release}${shared_ext}$major'
14520   shlibpath_var=LD_LIBRARY_PATH
14521   case $host_vendor in
14522     sni)
14523       shlibpath_overrides_runpath=no
14524       need_lib_prefix=no
14525       runpath_var=LD_RUN_PATH
14526       ;;
14527     siemens)
14528       need_lib_prefix=no
14529       ;;
14530     motorola)
14531       need_lib_prefix=no
14532       need_version=no
14533       shlibpath_overrides_runpath=no
14534       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14535       ;;
14536   esac
14537   ;;
14538
14539 sysv4*MP*)
14540   if test -d /usr/nec ;then
14541     version_type=linux # correct to gnu/linux during the next big refactor
14542     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14543     soname_spec='$libname${shared_ext}.$major'
14544     shlibpath_var=LD_LIBRARY_PATH
14545   fi
14546   ;;
14547
14548 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14549   version_type=freebsd-elf
14550   need_lib_prefix=no
14551   need_version=no
14552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14553   soname_spec='${libname}${release}${shared_ext}$major'
14554   shlibpath_var=LD_LIBRARY_PATH
14555   shlibpath_overrides_runpath=yes
14556   hardcode_into_libs=yes
14557   if test "$with_gnu_ld" = yes; then
14558     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14559   else
14560     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14561     case $host_os in
14562       sco3.2v5*)
14563         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14564         ;;
14565     esac
14566   fi
14567   sys_lib_dlsearch_path_spec='/usr/lib'
14568   ;;
14569
14570 tpf*)
14571   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14572   version_type=linux # correct to gnu/linux during the next big refactor
14573   need_lib_prefix=no
14574   need_version=no
14575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14576   shlibpath_var=LD_LIBRARY_PATH
14577   shlibpath_overrides_runpath=no
14578   hardcode_into_libs=yes
14579   ;;
14580
14581 uts4*)
14582   version_type=linux # correct to gnu/linux during the next big refactor
14583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14584   soname_spec='${libname}${release}${shared_ext}$major'
14585   shlibpath_var=LD_LIBRARY_PATH
14586   ;;
14587
14588 *)
14589   dynamic_linker=no
14590   ;;
14591 esac
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14593 $as_echo "$dynamic_linker" >&6; }
14594 test "$dynamic_linker" = no && can_build_shared=no
14595
14596 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14597 if test "$GCC" = yes; then
14598   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14599 fi
14600
14601 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14602   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14603 fi
14604 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14605   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14606 fi
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14700 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14701 hardcode_action=
14702 if test -n "$hardcode_libdir_flag_spec" ||
14703    test -n "$runpath_var" ||
14704    test "X$hardcode_automatic" = "Xyes" ; then
14705
14706   # We can hardcode non-existent directories.
14707   if test "$hardcode_direct" != no &&
14708      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14709      # have to relink, otherwise we might link with an installed library
14710      # when we should be linking with a yet-to-be-installed one
14711      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14712      test "$hardcode_minus_L" != no; then
14713     # Linking always hardcodes the temporary library directory.
14714     hardcode_action=relink
14715   else
14716     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14717     hardcode_action=immediate
14718   fi
14719 else
14720   # We cannot hardcode anything, or else we can only hardcode existing
14721   # directories.
14722   hardcode_action=unsupported
14723 fi
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14725 $as_echo "$hardcode_action" >&6; }
14726
14727 if test "$hardcode_action" = relink ||
14728    test "$inherit_rpath" = yes; then
14729   # Fast installation is not supported
14730   enable_fast_install=no
14731 elif test "$shlibpath_overrides_runpath" = yes ||
14732      test "$enable_shared" = no; then
14733   # Fast installation is not necessary
14734   enable_fast_install=needless
14735 fi
14736
14737
14738
14739
14740
14741
14742   if test "x$enable_dlopen" != xyes; then
14743   enable_dlopen=unknown
14744   enable_dlopen_self=unknown
14745   enable_dlopen_self_static=unknown
14746 else
14747   lt_cv_dlopen=no
14748   lt_cv_dlopen_libs=
14749
14750   case $host_os in
14751   beos*)
14752     lt_cv_dlopen="load_add_on"
14753     lt_cv_dlopen_libs=
14754     lt_cv_dlopen_self=yes
14755     ;;
14756
14757   mingw* | pw32* | cegcc*)
14758     lt_cv_dlopen="LoadLibrary"
14759     lt_cv_dlopen_libs=
14760     ;;
14761
14762   cygwin*)
14763     lt_cv_dlopen="dlopen"
14764     lt_cv_dlopen_libs=
14765     ;;
14766
14767   darwin*)
14768   # if libdl is installed we need to link against it
14769     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14770 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14771 if ${ac_cv_lib_dl_dlopen+:} false; then :
14772   $as_echo_n "(cached) " >&6
14773 else
14774   ac_check_lib_save_LIBS=$LIBS
14775 LIBS="-ldl  $LIBS"
14776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14777 /* end confdefs.h.  */
14778
14779
14780 #ifdef __cplusplus
14781 extern "C"
14782 #endif
14783 char dlopen ();
14784 int main (void)
14785 {
14786 return dlopen ();
14787  ;
14788  return 0;
14789 }
14790 _ACEOF
14791 if ac_fn_c_try_link "$LINENO"; then :
14792   ac_cv_lib_dl_dlopen=yes
14793 else
14794   ac_cv_lib_dl_dlopen=no
14795 fi
14796 rm -f core conftest.err conftest.$ac_objext \
14797     conftest$ac_exeext conftest.$ac_ext
14798 LIBS=$ac_check_lib_save_LIBS
14799 fi
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14801 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14802 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14803   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14804 else
14805
14806     lt_cv_dlopen="dyld"
14807     lt_cv_dlopen_libs=
14808     lt_cv_dlopen_self=yes
14809
14810 fi
14811
14812     ;;
14813
14814   *)
14815     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14816 if test "x$ac_cv_func_shl_load" = xyes; then :
14817   lt_cv_dlopen="shl_load"
14818 else
14819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14820 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14821 if ${ac_cv_lib_dld_shl_load+:} false; then :
14822   $as_echo_n "(cached) " >&6
14823 else
14824   ac_check_lib_save_LIBS=$LIBS
14825 LIBS="-ldld  $LIBS"
14826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14827 /* end confdefs.h.  */
14828
14829
14830 #ifdef __cplusplus
14831 extern "C"
14832 #endif
14833 char shl_load ();
14834 int main (void)
14835 {
14836 return shl_load ();
14837  ;
14838  return 0;
14839 }
14840 _ACEOF
14841 if ac_fn_c_try_link "$LINENO"; then :
14842   ac_cv_lib_dld_shl_load=yes
14843 else
14844   ac_cv_lib_dld_shl_load=no
14845 fi
14846 rm -f core conftest.err conftest.$ac_objext \
14847     conftest$ac_exeext conftest.$ac_ext
14848 LIBS=$ac_check_lib_save_LIBS
14849 fi
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14851 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14852 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14853   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14854 else
14855   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14856 if test "x$ac_cv_func_dlopen" = xyes; then :
14857   lt_cv_dlopen="dlopen"
14858 else
14859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14860 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14861 if ${ac_cv_lib_dl_dlopen+:} false; then :
14862   $as_echo_n "(cached) " >&6
14863 else
14864   ac_check_lib_save_LIBS=$LIBS
14865 LIBS="-ldl  $LIBS"
14866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867 /* end confdefs.h.  */
14868
14869
14870 #ifdef __cplusplus
14871 extern "C"
14872 #endif
14873 char dlopen ();
14874 int main (void)
14875 {
14876 return dlopen ();
14877  ;
14878  return 0;
14879 }
14880 _ACEOF
14881 if ac_fn_c_try_link "$LINENO"; then :
14882   ac_cv_lib_dl_dlopen=yes
14883 else
14884   ac_cv_lib_dl_dlopen=no
14885 fi
14886 rm -f core conftest.err conftest.$ac_objext \
14887     conftest$ac_exeext conftest.$ac_ext
14888 LIBS=$ac_check_lib_save_LIBS
14889 fi
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14891 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14892 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14893   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14894 else
14895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14896 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14897 if ${ac_cv_lib_svld_dlopen+:} false; then :
14898   $as_echo_n "(cached) " >&6
14899 else
14900   ac_check_lib_save_LIBS=$LIBS
14901 LIBS="-lsvld  $LIBS"
14902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14903 /* end confdefs.h.  */
14904
14905
14906 #ifdef __cplusplus
14907 extern "C"
14908 #endif
14909 char dlopen ();
14910 int main (void)
14911 {
14912 return dlopen ();
14913  ;
14914  return 0;
14915 }
14916 _ACEOF
14917 if ac_fn_c_try_link "$LINENO"; then :
14918   ac_cv_lib_svld_dlopen=yes
14919 else
14920   ac_cv_lib_svld_dlopen=no
14921 fi
14922 rm -f core conftest.err conftest.$ac_objext \
14923     conftest$ac_exeext conftest.$ac_ext
14924 LIBS=$ac_check_lib_save_LIBS
14925 fi
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14927 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14928 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14929   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14930 else
14931   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14932 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14933 if ${ac_cv_lib_dld_dld_link+:} false; then :
14934   $as_echo_n "(cached) " >&6
14935 else
14936   ac_check_lib_save_LIBS=$LIBS
14937 LIBS="-ldld  $LIBS"
14938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14939 /* end confdefs.h.  */
14940
14941
14942 #ifdef __cplusplus
14943 extern "C"
14944 #endif
14945 char dld_link ();
14946 int main (void)
14947 {
14948 return dld_link ();
14949  ;
14950  return 0;
14951 }
14952 _ACEOF
14953 if ac_fn_c_try_link "$LINENO"; then :
14954   ac_cv_lib_dld_dld_link=yes
14955 else
14956   ac_cv_lib_dld_dld_link=no
14957 fi
14958 rm -f core conftest.err conftest.$ac_objext \
14959     conftest$ac_exeext conftest.$ac_ext
14960 LIBS=$ac_check_lib_save_LIBS
14961 fi
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14963 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14964 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14965   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14966 fi
14967
14968
14969 fi
14970
14971
14972 fi
14973
14974
14975 fi
14976
14977
14978 fi
14979
14980
14981 fi
14982
14983     ;;
14984   esac
14985
14986   if test "x$lt_cv_dlopen" != xno; then
14987     enable_dlopen=yes
14988   else
14989     enable_dlopen=no
14990   fi
14991
14992   case $lt_cv_dlopen in
14993   dlopen)
14994     save_CPPFLAGS="$CPPFLAGS"
14995     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14996
14997     save_LDFLAGS="$LDFLAGS"
14998     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14999
15000     save_LIBS="$LIBS"
15001     LIBS="$lt_cv_dlopen_libs $LIBS"
15002
15003     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15004 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15005 if ${lt_cv_dlopen_self+:} false; then :
15006   $as_echo_n "(cached) " >&6
15007 else
15008           if test "$cross_compiling" = yes; then :
15009   lt_cv_dlopen_self=cross
15010 else
15011   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15012   lt_status=$lt_dlunknown
15013   cat > conftest.$ac_ext <<_LT_EOF
15014 #line $LINENO "configure"
15015 #include "confdefs.h"
15016
15017 #if HAVE_DLFCN_H
15018 #include <dlfcn.h>
15019 #endif
15020
15021 #include <stdio.h>
15022
15023 #ifdef RTLD_GLOBAL
15024 #  define LT_DLGLOBAL           RTLD_GLOBAL
15025 #else
15026 #  ifdef DL_GLOBAL
15027 #    define LT_DLGLOBAL         DL_GLOBAL
15028 #  else
15029 #    define LT_DLGLOBAL         0
15030 #  endif
15031 #endif
15032
15033 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15034    find out it does not work in some platform. */
15035 #ifndef LT_DLLAZY_OR_NOW
15036 #  ifdef RTLD_LAZY
15037 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15038 #  else
15039 #    ifdef DL_LAZY
15040 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15041 #    else
15042 #      ifdef RTLD_NOW
15043 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15044 #      else
15045 #        ifdef DL_NOW
15046 #          define LT_DLLAZY_OR_NOW      DL_NOW
15047 #        else
15048 #          define LT_DLLAZY_OR_NOW      0
15049 #        endif
15050 #      endif
15051 #    endif
15052 #  endif
15053 #endif
15054
15055 /* When -fvisbility=hidden is used, assume the code has been annotated
15056    correspondingly for the symbols needed.  */
15057 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15058 int fnord () __attribute__((visibility("default")));
15059 #endif
15060
15061 int fnord () { return 42; }
15062 int main ()
15063 {
15064   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15065   int status = $lt_dlunknown;
15066
15067   if (self)
15068     {
15069       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15070       else
15071         {
15072           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15073           else puts (dlerror ());
15074         }
15075       /* dlclose (self); */
15076     }
15077   else
15078     puts (dlerror ());
15079
15080   return status;
15081 }
15082 _LT_EOF
15083   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15084   (eval $ac_link) 2>&5
15085   ac_status=$?
15086   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15087   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15088     (./conftest; exit; ) >&5 2>/dev/null
15089     lt_status=$?
15090     case x$lt_status in
15091       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15092       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15093       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15094     esac
15095   else :
15096     # compilation failed
15097     lt_cv_dlopen_self=no
15098   fi
15099 fi
15100 rm -fr conftest*
15101
15102
15103 fi
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15105 $as_echo "$lt_cv_dlopen_self" >&6; }
15106
15107     if test "x$lt_cv_dlopen_self" = xyes; then
15108       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15109       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15110 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15111 if ${lt_cv_dlopen_self_static+:} false; then :
15112   $as_echo_n "(cached) " >&6
15113 else
15114           if test "$cross_compiling" = yes; then :
15115   lt_cv_dlopen_self_static=cross
15116 else
15117   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15118   lt_status=$lt_dlunknown
15119   cat > conftest.$ac_ext <<_LT_EOF
15120 #line $LINENO "configure"
15121 #include "confdefs.h"
15122
15123 #if HAVE_DLFCN_H
15124 #include <dlfcn.h>
15125 #endif
15126
15127 #include <stdio.h>
15128
15129 #ifdef RTLD_GLOBAL
15130 #  define LT_DLGLOBAL           RTLD_GLOBAL
15131 #else
15132 #  ifdef DL_GLOBAL
15133 #    define LT_DLGLOBAL         DL_GLOBAL
15134 #  else
15135 #    define LT_DLGLOBAL         0
15136 #  endif
15137 #endif
15138
15139 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15140    find out it does not work in some platform. */
15141 #ifndef LT_DLLAZY_OR_NOW
15142 #  ifdef RTLD_LAZY
15143 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15144 #  else
15145 #    ifdef DL_LAZY
15146 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15147 #    else
15148 #      ifdef RTLD_NOW
15149 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15150 #      else
15151 #        ifdef DL_NOW
15152 #          define LT_DLLAZY_OR_NOW      DL_NOW
15153 #        else
15154 #          define LT_DLLAZY_OR_NOW      0
15155 #        endif
15156 #      endif
15157 #    endif
15158 #  endif
15159 #endif
15160
15161 /* When -fvisbility=hidden is used, assume the code has been annotated
15162    correspondingly for the symbols needed.  */
15163 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15164 int fnord () __attribute__((visibility("default")));
15165 #endif
15166
15167 int fnord () { return 42; }
15168 int main ()
15169 {
15170   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15171   int status = $lt_dlunknown;
15172
15173   if (self)
15174     {
15175       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15176       else
15177         {
15178           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15179           else puts (dlerror ());
15180         }
15181       /* dlclose (self); */
15182     }
15183   else
15184     puts (dlerror ());
15185
15186   return status;
15187 }
15188 _LT_EOF
15189   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15190   (eval $ac_link) 2>&5
15191   ac_status=$?
15192   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15193   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15194     (./conftest; exit; ) >&5 2>/dev/null
15195     lt_status=$?
15196     case x$lt_status in
15197       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15198       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15199       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15200     esac
15201   else :
15202     # compilation failed
15203     lt_cv_dlopen_self_static=no
15204   fi
15205 fi
15206 rm -fr conftest*
15207
15208
15209 fi
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15211 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15212     fi
15213
15214     CPPFLAGS="$save_CPPFLAGS"
15215     LDFLAGS="$save_LDFLAGS"
15216     LIBS="$save_LIBS"
15217     ;;
15218   esac
15219
15220   case $lt_cv_dlopen_self in
15221   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15222   *) enable_dlopen_self=unknown ;;
15223   esac
15224
15225   case $lt_cv_dlopen_self_static in
15226   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15227   *) enable_dlopen_self_static=unknown ;;
15228   esac
15229 fi
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247 striplib=
15248 old_striplib=
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15250 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15251 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15252   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15253   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15255 $as_echo "yes" >&6; }
15256 else
15257 # FIXME - insert some real tests, host_os isn't really good enough
15258   case $host_os in
15259   darwin*)
15260     if test -n "$STRIP" ; then
15261       striplib="$STRIP -x"
15262       old_striplib="$STRIP -S"
15263       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15264 $as_echo "yes" >&6; }
15265     else
15266       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15267 $as_echo "no" >&6; }
15268     fi
15269     ;;
15270   *)
15271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15272 $as_echo "no" >&6; }
15273     ;;
15274   esac
15275 fi
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288   # Report which library types will actually be built
15289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15290 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15292 $as_echo "$can_build_shared" >&6; }
15293
15294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15295 $as_echo_n "checking whether to build shared libraries... " >&6; }
15296   test "$can_build_shared" = "no" && enable_shared=no
15297
15298   # On AIX, shared libraries and static libraries use the same namespace, and
15299   # are all built from PIC.
15300   case $host_os in
15301   aix3*)
15302     test "$enable_shared" = yes && enable_static=no
15303     if test -n "$RANLIB"; then
15304       archive_cmds="$archive_cmds~\$RANLIB \$lib"
15305       postinstall_cmds='$RANLIB $lib'
15306     fi
15307     ;;
15308
15309   aix[4-9]*)
15310     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15311       test "$enable_shared" = yes && enable_static=no
15312     fi
15313     ;;
15314   esac
15315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15316 $as_echo "$enable_shared" >&6; }
15317
15318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15319 $as_echo_n "checking whether to build static libraries... " >&6; }
15320   # Make sure either enable_shared or enable_static is yes.
15321   test "$enable_shared" = yes || enable_static=yes
15322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15323 $as_echo "$enable_static" >&6; }
15324
15325
15326
15327
15328 fi
15329 ac_ext=c
15330 ac_cpp='$CPP $CPPFLAGS'
15331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15334
15335 CC="$lt_save_CC"
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351         ac_config_commands="$ac_config_commands libtool"
15352
15353
15354
15355
15356 # Only expand once:
15357
15358
15359 ## --------------------- ##
15360 ##  End of libtool code  ##
15361 ## --------------------- ##
15362
15363 #
15364 # Verify if finally libtool shared libraries will be built
15365 #
15366
15367 case "x$enable_shared" in # ((
15368   xyes | xno)
15369     xc_lt_build_shared=$enable_shared
15370     ;;
15371   *)
15372     as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15373     ;;
15374 esac
15375
15376 #
15377 # Verify if finally libtool static libraries will be built
15378 #
15379
15380 case "x$enable_static" in # ((
15381   xyes | xno)
15382     xc_lt_build_static=$enable_static
15383     ;;
15384   *)
15385     as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15386     ;;
15387 esac
15388
15389 #
15390 # Verify if libtool shared libraries should be linked using flag -version-info
15391 #
15392
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15394 $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15395 xc_lt_shlib_use_version_info='yes'
15396 if test "x$version_type" = 'xnone'; then
15397   xc_lt_shlib_use_version_info='no'
15398 fi
15399 case $host_os in # (
15400   amigaos*)
15401     xc_lt_shlib_use_version_info='yes'
15402     ;;
15403 esac
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15405 $as_echo "$xc_lt_shlib_use_version_info" >&6; }
15406
15407 #
15408 # Verify if libtool shared libraries should be linked using flag -no-undefined
15409 #
15410
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15412 $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15413 xc_lt_shlib_use_no_undefined='no'
15414 if test "x$allow_undefined" = 'xno'; then
15415   xc_lt_shlib_use_no_undefined='yes'
15416 elif test "x$allow_undefined_flag" = 'xunsupported'; then
15417   xc_lt_shlib_use_no_undefined='yes'
15418 fi
15419 case $host_os in # (
15420   cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15421     xc_lt_shlib_use_no_undefined='yes'
15422     ;;
15423 esac
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15425 $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15426
15427 #
15428 # Verify if libtool shared libraries should be linked using flag -mimpure-text
15429 #
15430
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15432 $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15433 xc_lt_shlib_use_mimpure_text='no'
15434 case $host_os in # (
15435   solaris2*)
15436     if test "x$GCC" = 'xyes'; then
15437       xc_lt_shlib_use_mimpure_text='yes'
15438     fi
15439     ;;
15440 esac
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15442 $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15443
15444 #
15445 # Find out wether libtool libraries would be built wit PIC
15446 #
15447
15448 case "x$pic_mode" in # ((((
15449   xdefault)
15450     xc_lt_build_shared_with_pic='yes'
15451     xc_lt_build_static_with_pic='no'
15452     ;;
15453   xyes)
15454     xc_lt_build_shared_with_pic='yes'
15455     xc_lt_build_static_with_pic='yes'
15456     ;;
15457   xno)
15458     xc_lt_build_shared_with_pic='no'
15459     xc_lt_build_static_with_pic='no'
15460     ;;
15461   *)
15462     xc_lt_build_shared_with_pic='unknown'
15463     xc_lt_build_static_with_pic='unknown'
15464     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15465 $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15466     ;;
15467 esac
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15469 $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15471 $as_echo "$xc_lt_build_shared_with_pic" >&6; }
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15473 $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15475 $as_echo "$xc_lt_build_static_with_pic" >&6; }
15476
15477 #
15478 # Verify if libtool shared libraries will be built while static not built
15479 #
15480
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15482 $as_echo_n "checking whether to build shared libraries only... " >&6; }
15483 if test "$xc_lt_build_shared" = 'yes' &&
15484   test "$xc_lt_build_static" = 'no'; then
15485   xc_lt_build_shared_only='yes'
15486 else
15487   xc_lt_build_shared_only='no'
15488 fi
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15490 $as_echo "$xc_lt_build_shared_only" >&6; }
15491
15492 #
15493 # Verify if libtool static libraries will be built while shared not built
15494 #
15495
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15497 $as_echo_n "checking whether to build static libraries only... " >&6; }
15498 if test "$xc_lt_build_static" = 'yes' &&
15499   test "$xc_lt_build_shared" = 'no'; then
15500   xc_lt_build_static_only='yes'
15501 else
15502   xc_lt_build_static_only='no'
15503 fi
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15505 $as_echo "$xc_lt_build_static_only" >&6; }
15506
15507
15508
15509
15510 #
15511 # Automake conditionals based on libtool related checks
15512 #
15513
15514  if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15515   CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15516   CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15517 else
15518   CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15519   CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15520 fi
15521
15522  if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15523   CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15524   CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15525 else
15526   CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15527   CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15528 fi
15529
15530  if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15531   CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15532   CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15533 else
15534   CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15535   CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15536 fi
15537
15538
15539 #
15540 # Due to libtool and automake machinery limitations of not allowing
15541 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
15542 # inclusion of these in shared or static libraries, we are forced to
15543 # build using separate configure runs for shared and static libraries
15544 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
15545 # to compile objects for each kind of library. Notice that relying on
15546 # the '-DPIC' CFLAG that libtool provides is not valid given that the
15547 # user might for example choose to build static libraries with PIC.
15548 #
15549
15550 #
15551 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15552 # targeting a static library and not building its shared counterpart.
15553 #
15554
15555  if test "x$xc_lt_build_static_only" = 'xyes'; then
15556   USE_CPPFLAG_CURL_STATICLIB_TRUE=
15557   USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
15558 else
15559   USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
15560   USE_CPPFLAG_CURL_STATICLIB_FALSE=
15561 fi
15562
15563
15564 #
15565 # Make staticlib CPPFLAG variable and its definition visible in output
15566 # files unconditionally, providing an empty definition unless strictly
15567 # targeting a static library and not building its shared counterpart.
15568 #
15569
15570 CPPFLAG_CURL_STATICLIB=
15571 if test "x$xc_lt_build_static_only" = 'xyes'; then
15572   CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
15573 fi
15574
15575
15576
15577 # Determine whether all dependent libraries must be specified when linking
15578 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
15579 then
15580     REQUIRE_LIB_DEPS=no
15581 else
15582     REQUIRE_LIB_DEPS=yes
15583 fi
15584
15585  if test x$REQUIRE_LIB_DEPS = xyes; then
15586   USE_EXPLICIT_LIB_DEPS_TRUE=
15587   USE_EXPLICIT_LIB_DEPS_FALSE='#'
15588 else
15589   USE_EXPLICIT_LIB_DEPS_TRUE='#'
15590   USE_EXPLICIT_LIB_DEPS_FALSE=
15591 fi
15592
15593
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15595 $as_echo_n "checking for inline... " >&6; }
15596 if ${ac_cv_c_inline+:} false; then :
15597   $as_echo_n "(cached) " >&6
15598 else
15599   ac_cv_c_inline=no
15600 for ac_kw in inline __inline__ __inline; do
15601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15602 /* end confdefs.h.  */
15603 #ifndef __cplusplus
15604 typedef int foo_t;
15605 static $ac_kw foo_t static_foo () {return 0; }
15606 $ac_kw foo_t foo () {return 0; }
15607 #endif
15608
15609 _ACEOF
15610 if ac_fn_c_try_compile "$LINENO"; then :
15611   ac_cv_c_inline=$ac_kw
15612 fi
15613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15614   test "$ac_cv_c_inline" != no && break
15615 done
15616
15617 fi
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15619 $as_echo "$ac_cv_c_inline" >&6; }
15620
15621 case $ac_cv_c_inline in
15622   inline | yes) ;;
15623   *)
15624     case $ac_cv_c_inline in
15625       no) ac_val=;;
15626       *) ac_val=$ac_cv_c_inline;;
15627     esac
15628     cat >>confdefs.h <<_ACEOF
15629 #ifndef __cplusplus
15630 #define inline $ac_val
15631 #endif
15632 _ACEOF
15633     ;;
15634 esac
15635
15636
15637
15638
15639   #
15640   compiler_id="unknown"
15641   compiler_num="0"
15642   #
15643   flags_dbg_all="unknown"
15644   flags_dbg_yes="unknown"
15645   flags_dbg_off="unknown"
15646   flags_opt_all="unknown"
15647   flags_opt_yes="unknown"
15648   flags_opt_off="unknown"
15649   #
15650   flags_prefer_cppflags="no"
15651   #
15652
15653   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
15654 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
15655
15656       if test -z "$SED"; then
15657     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15658   fi
15659   if test -z "$GREP"; then
15660     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15661   fi
15662
15663   tmp_exp=""
15664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15665 /* end confdefs.h.  */
15666
15667
15668 #ifdef __DECC
15669 CURL_DEF_TOKEN __DECC
15670 #endif
15671
15672
15673 _ACEOF
15674 if ac_fn_c_try_cpp "$LINENO"; then :
15675
15676     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15677       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15678       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15679       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15680     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
15681       tmp_exp=""
15682     fi
15683
15684 fi
15685 rm -f conftest.err conftest.i conftest.$ac_ext
15686   if test -z "$tmp_exp"; then
15687     curl_cv_have_def___DECC=no
15688
15689   else
15690     curl_cv_have_def___DECC=yes
15691     curl_cv_def___DECC=$tmp_exp
15692
15693   fi
15694
15695
15696       if test -z "$SED"; then
15697     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15698   fi
15699   if test -z "$GREP"; then
15700     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15701   fi
15702
15703   tmp_exp=""
15704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15705 /* end confdefs.h.  */
15706
15707
15708 #ifdef __DECC_VER
15709 CURL_DEF_TOKEN __DECC_VER
15710 #endif
15711
15712
15713 _ACEOF
15714 if ac_fn_c_try_cpp "$LINENO"; then :
15715
15716     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15717       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15718       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15719       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15720     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
15721       tmp_exp=""
15722     fi
15723
15724 fi
15725 rm -f conftest.err conftest.i conftest.$ac_ext
15726   if test -z "$tmp_exp"; then
15727     curl_cv_have_def___DECC_VER=no
15728
15729   else
15730     curl_cv_have_def___DECC_VER=yes
15731     curl_cv_def___DECC_VER=$tmp_exp
15732
15733   fi
15734
15735   if test "$curl_cv_have_def___DECC" = "yes" &&
15736     test "$curl_cv_have_def___DECC_VER" = "yes"; then
15737     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15738 $as_echo "yes" >&6; }
15739     compiler_id="DEC_C"
15740     flags_dbg_all="-g -g0 -g1 -g2 -g3"
15741     flags_dbg_yes="-g2"
15742     flags_dbg_off=""
15743     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
15744     flags_opt_yes="-O1"
15745     flags_opt_off="-O0"
15746   else
15747     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15748 $as_echo "no" >&6; }
15749   fi
15750
15751
15752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
15753 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
15754
15755       if test -z "$SED"; then
15756     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15757   fi
15758   if test -z "$GREP"; then
15759     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15760   fi
15761
15762   tmp_exp=""
15763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15764 /* end confdefs.h.  */
15765
15766
15767 #ifdef __HP_cc
15768 CURL_DEF_TOKEN __HP_cc
15769 #endif
15770
15771
15772 _ACEOF
15773 if ac_fn_c_try_cpp "$LINENO"; then :
15774
15775     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15776       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15777       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15778       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15779     if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
15780       tmp_exp=""
15781     fi
15782
15783 fi
15784 rm -f conftest.err conftest.i conftest.$ac_ext
15785   if test -z "$tmp_exp"; then
15786     curl_cv_have_def___HP_cc=no
15787
15788   else
15789     curl_cv_have_def___HP_cc=yes
15790     curl_cv_def___HP_cc=$tmp_exp
15791
15792   fi
15793
15794   if test "$curl_cv_have_def___HP_cc" = "yes"; then
15795     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15796 $as_echo "yes" >&6; }
15797     compiler_id="HP_UX_C"
15798     flags_dbg_all="-g -s"
15799     flags_dbg_yes="-g"
15800     flags_dbg_off="-s"
15801     flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
15802     flags_opt_yes="+O2"
15803     flags_opt_off="+O0"
15804   else
15805     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15806 $as_echo "no" >&6; }
15807   fi
15808
15809
15810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
15811 $as_echo_n "checking if compiler is IBM C... " >&6; }
15812
15813       if test -z "$SED"; then
15814     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15815   fi
15816   if test -z "$GREP"; then
15817     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15818   fi
15819
15820   tmp_exp=""
15821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15822 /* end confdefs.h.  */
15823
15824
15825 #ifdef __IBMC__
15826 CURL_DEF_TOKEN __IBMC__
15827 #endif
15828
15829
15830 _ACEOF
15831 if ac_fn_c_try_cpp "$LINENO"; then :
15832
15833     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15834       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15835       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15836       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15837     if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
15838       tmp_exp=""
15839     fi
15840
15841 fi
15842 rm -f conftest.err conftest.i conftest.$ac_ext
15843   if test -z "$tmp_exp"; then
15844     curl_cv_have_def___IBMC__=no
15845
15846   else
15847     curl_cv_have_def___IBMC__=yes
15848     curl_cv_def___IBMC__=$tmp_exp
15849
15850   fi
15851
15852   if test "$curl_cv_have_def___IBMC__" = "yes"; then
15853     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15854 $as_echo "yes" >&6; }
15855     compiler_id="IBM_C"
15856     flags_dbg_all="-g -g0 -g1 -g2 -g3"
15857     flags_dbg_yes="-g"
15858     flags_dbg_off=""
15859     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
15860     flags_opt_all="$flags_opt_all -qnooptimize"
15861     flags_opt_all="$flags_opt_all -qoptimize=0"
15862     flags_opt_all="$flags_opt_all -qoptimize=1"
15863     flags_opt_all="$flags_opt_all -qoptimize=2"
15864     flags_opt_all="$flags_opt_all -qoptimize=3"
15865     flags_opt_all="$flags_opt_all -qoptimize=4"
15866     flags_opt_all="$flags_opt_all -qoptimize=5"
15867     flags_opt_yes="-O2"
15868     flags_opt_off="-qnooptimize"
15869     flags_prefer_cppflags="yes"
15870   else
15871     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15872 $as_echo "no" >&6; }
15873   fi
15874
15875
15876     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
15877 $as_echo_n "checking if compiler is Intel C... " >&6; }
15878
15879       if test -z "$SED"; then
15880     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15881   fi
15882   if test -z "$GREP"; then
15883     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15884   fi
15885
15886   tmp_exp=""
15887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15888 /* end confdefs.h.  */
15889
15890
15891 #ifdef __INTEL_COMPILER
15892 CURL_DEF_TOKEN __INTEL_COMPILER
15893 #endif
15894
15895
15896 _ACEOF
15897 if ac_fn_c_try_cpp "$LINENO"; then :
15898
15899     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15900       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15901       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15902       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15903     if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
15904       tmp_exp=""
15905     fi
15906
15907 fi
15908 rm -f conftest.err conftest.i conftest.$ac_ext
15909   if test -z "$tmp_exp"; then
15910     curl_cv_have_def___INTEL_COMPILER=no
15911
15912   else
15913     curl_cv_have_def___INTEL_COMPILER=yes
15914     curl_cv_def___INTEL_COMPILER=$tmp_exp
15915
15916   fi
15917
15918   if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
15919     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15920 $as_echo "yes" >&6; }
15921     compiler_num="$curl_cv_def___INTEL_COMPILER"
15922
15923       if test -z "$SED"; then
15924     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15925   fi
15926   if test -z "$GREP"; then
15927     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15928   fi
15929
15930   tmp_exp=""
15931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15932 /* end confdefs.h.  */
15933
15934
15935 #ifdef __unix__
15936 CURL_DEF_TOKEN __unix__
15937 #endif
15938
15939
15940 _ACEOF
15941 if ac_fn_c_try_cpp "$LINENO"; then :
15942
15943     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15944       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15945       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15946       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15947     if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
15948       tmp_exp=""
15949     fi
15950
15951 fi
15952 rm -f conftest.err conftest.i conftest.$ac_ext
15953   if test -z "$tmp_exp"; then
15954     curl_cv_have_def___unix__=no
15955
15956   else
15957     curl_cv_have_def___unix__=yes
15958     curl_cv_def___unix__=$tmp_exp
15959
15960   fi
15961
15962     if test "$curl_cv_have_def___unix__" = "yes"; then
15963       compiler_id="INTEL_UNIX_C"
15964       flags_dbg_all="-g -g0"
15965       flags_dbg_yes="-g"
15966       flags_dbg_off=""
15967       flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
15968       flags_opt_yes="-O2"
15969       flags_opt_off="-O0"
15970     else
15971       compiler_id="INTEL_WINDOWS_C"
15972       flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
15973       flags_dbg_all="$flags_dbg_all /debug"
15974       flags_dbg_all="$flags_dbg_all /debug:none"
15975       flags_dbg_all="$flags_dbg_all /debug:minimal"
15976       flags_dbg_all="$flags_dbg_all /debug:partial"
15977       flags_dbg_all="$flags_dbg_all /debug:full"
15978       flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
15979       flags_dbg_all="$flags_dbg_all /debug:extended"
15980       flags_dbg_yes="/Zi /Oy-"
15981       flags_dbg_off="/debug:none /Oy-"
15982       flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
15983       flags_opt_yes="/O2"
15984       flags_opt_off="/Od"
15985     fi
15986   else
15987     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15988 $as_echo "no" >&6; }
15989   fi
15990
15991
15992     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
15993 $as_echo_n "checking if compiler is clang... " >&6; }
15994
15995       if test -z "$SED"; then
15996     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15997   fi
15998   if test -z "$GREP"; then
15999     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16000   fi
16001
16002   tmp_exp=""
16003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16004 /* end confdefs.h.  */
16005
16006
16007 #ifdef __clang__
16008 CURL_DEF_TOKEN __clang__
16009 #endif
16010
16011
16012 _ACEOF
16013 if ac_fn_c_try_cpp "$LINENO"; then :
16014
16015     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16016       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16017       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16018       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16019     if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16020       tmp_exp=""
16021     fi
16022
16023 fi
16024 rm -f conftest.err conftest.i conftest.$ac_ext
16025   if test -z "$tmp_exp"; then
16026     curl_cv_have_def___clang__=no
16027
16028   else
16029     curl_cv_have_def___clang__=yes
16030     curl_cv_def___clang__=$tmp_exp
16031
16032   fi
16033
16034   if test "$curl_cv_have_def___clang__" = "yes"; then
16035     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16036 $as_echo "yes" >&6; }
16037     compiler_id="CLANG"
16038     clangver=`$CC -dumpversion`
16039     clangvhi=`echo $clangver | cut -d . -f1`
16040     clangvlo=`echo $clangver | cut -d . -f2`
16041     compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16042     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16043     flags_dbg_all="$flags_dbg_all -ggdb"
16044     flags_dbg_all="$flags_dbg_all -gstabs"
16045     flags_dbg_all="$flags_dbg_all -gstabs+"
16046     flags_dbg_all="$flags_dbg_all -gcoff"
16047     flags_dbg_all="$flags_dbg_all -gxcoff"
16048     flags_dbg_all="$flags_dbg_all -gdwarf-2"
16049     flags_dbg_all="$flags_dbg_all -gvms"
16050     flags_dbg_yes="-g"
16051     flags_dbg_off=""
16052     flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16053     flags_opt_yes="-Os"
16054     flags_opt_off="-O0"
16055   else
16056     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16057 $as_echo "no" >&6; }
16058   fi
16059
16060
16061       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16062 $as_echo_n "checking if compiler is GNU C... " >&6; }
16063
16064       if test -z "$SED"; then
16065     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16066   fi
16067   if test -z "$GREP"; then
16068     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16069   fi
16070
16071   tmp_exp=""
16072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16073 /* end confdefs.h.  */
16074
16075
16076 #ifdef __GNUC__
16077 CURL_DEF_TOKEN __GNUC__
16078 #endif
16079
16080
16081 _ACEOF
16082 if ac_fn_c_try_cpp "$LINENO"; then :
16083
16084     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16085       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16086       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16087       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16088     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16089       tmp_exp=""
16090     fi
16091
16092 fi
16093 rm -f conftest.err conftest.i conftest.$ac_ext
16094   if test -z "$tmp_exp"; then
16095     curl_cv_have_def___GNUC__=no
16096
16097   else
16098     curl_cv_have_def___GNUC__=yes
16099     curl_cv_def___GNUC__=$tmp_exp
16100
16101   fi
16102
16103   if test "$curl_cv_have_def___GNUC__" = "yes" &&
16104     test "$compiler_id" = "unknown"; then
16105     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16106 $as_echo "yes" >&6; }
16107     compiler_id="GNU_C"
16108     gccver=`$CC -dumpversion`
16109     gccvhi=`echo $gccver | cut -d . -f1`
16110     gccvlo=`echo $gccver | cut -d . -f2`
16111     compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16112     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16113     flags_dbg_all="$flags_dbg_all -ggdb"
16114     flags_dbg_all="$flags_dbg_all -gstabs"
16115     flags_dbg_all="$flags_dbg_all -gstabs+"
16116     flags_dbg_all="$flags_dbg_all -gcoff"
16117     flags_dbg_all="$flags_dbg_all -gxcoff"
16118     flags_dbg_all="$flags_dbg_all -gdwarf-2"
16119     flags_dbg_all="$flags_dbg_all -gvms"
16120     flags_dbg_yes="-g"
16121     flags_dbg_off=""
16122     flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16123     flags_opt_yes="-O2"
16124     flags_opt_off="-O0"
16125
16126       if test -z "$SED"; then
16127     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16128   fi
16129   if test -z "$GREP"; then
16130     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16131   fi
16132
16133   tmp_exp=""
16134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16135 /* end confdefs.h.  */
16136
16137
16138 #ifdef _WIN32
16139 CURL_DEF_TOKEN _WIN32
16140 #endif
16141
16142
16143 _ACEOF
16144 if ac_fn_c_try_cpp "$LINENO"; then :
16145
16146     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16147       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16148       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16149       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16150     if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16151       tmp_exp=""
16152     fi
16153
16154 fi
16155 rm -f conftest.err conftest.i conftest.$ac_ext
16156   if test -z "$tmp_exp"; then
16157     curl_cv_have_def__WIN32=no
16158
16159   else
16160     curl_cv_have_def__WIN32=yes
16161     curl_cv_def__WIN32=$tmp_exp
16162
16163   fi
16164
16165   else
16166     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16167 $as_echo "no" >&6; }
16168   fi
16169
16170
16171   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16172 $as_echo_n "checking if compiler is LCC... " >&6; }
16173
16174       if test -z "$SED"; then
16175     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16176   fi
16177   if test -z "$GREP"; then
16178     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16179   fi
16180
16181   tmp_exp=""
16182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16183 /* end confdefs.h.  */
16184
16185
16186 #ifdef __LCC__
16187 CURL_DEF_TOKEN __LCC__
16188 #endif
16189
16190
16191 _ACEOF
16192 if ac_fn_c_try_cpp "$LINENO"; then :
16193
16194     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16195       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16196       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16197       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16198     if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16199       tmp_exp=""
16200     fi
16201
16202 fi
16203 rm -f conftest.err conftest.i conftest.$ac_ext
16204   if test -z "$tmp_exp"; then
16205     curl_cv_have_def___LCC__=no
16206
16207   else
16208     curl_cv_have_def___LCC__=yes
16209     curl_cv_def___LCC__=$tmp_exp
16210
16211   fi
16212
16213   if test "$curl_cv_have_def___LCC__" = "yes"; then
16214     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16215 $as_echo "yes" >&6; }
16216     compiler_id="LCC"
16217     flags_dbg_all="-g"
16218     flags_dbg_yes="-g"
16219     flags_dbg_off=""
16220     flags_opt_all=""
16221     flags_opt_yes=""
16222     flags_opt_off=""
16223   else
16224     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16225 $as_echo "no" >&6; }
16226   fi
16227
16228
16229     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16230 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16231
16232       if test -z "$SED"; then
16233     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16234   fi
16235   if test -z "$GREP"; then
16236     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16237   fi
16238
16239   tmp_exp=""
16240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16241 /* end confdefs.h.  */
16242
16243
16244 #ifdef __GNUC__
16245 CURL_DEF_TOKEN __GNUC__
16246 #endif
16247
16248
16249 _ACEOF
16250 if ac_fn_c_try_cpp "$LINENO"; then :
16251
16252     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16253       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16254       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16255       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16256     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16257       tmp_exp=""
16258     fi
16259
16260 fi
16261 rm -f conftest.err conftest.i conftest.$ac_ext
16262   if test -z "$tmp_exp"; then
16263     curl_cv_have_def___GNUC__=no
16264
16265   else
16266     curl_cv_have_def___GNUC__=yes
16267     curl_cv_def___GNUC__=$tmp_exp
16268
16269   fi
16270
16271
16272       if test -z "$SED"; then
16273     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16274   fi
16275   if test -z "$GREP"; then
16276     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16277   fi
16278
16279   tmp_exp=""
16280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16281 /* end confdefs.h.  */
16282
16283
16284 #ifdef _COMPILER_VERSION
16285 CURL_DEF_TOKEN _COMPILER_VERSION
16286 #endif
16287
16288
16289 _ACEOF
16290 if ac_fn_c_try_cpp "$LINENO"; then :
16291
16292     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16293       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16294       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16295       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16296     if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16297       tmp_exp=""
16298     fi
16299
16300 fi
16301 rm -f conftest.err conftest.i conftest.$ac_ext
16302   if test -z "$tmp_exp"; then
16303     curl_cv_have_def__COMPILER_VERSION=no
16304
16305   else
16306     curl_cv_have_def__COMPILER_VERSION=yes
16307     curl_cv_def__COMPILER_VERSION=$tmp_exp
16308
16309   fi
16310
16311
16312       if test -z "$SED"; then
16313     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16314   fi
16315   if test -z "$GREP"; then
16316     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16317   fi
16318
16319   tmp_exp=""
16320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16321 /* end confdefs.h.  */
16322
16323
16324 #ifdef _SGI_COMPILER_VERSION
16325 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16326 #endif
16327
16328
16329 _ACEOF
16330 if ac_fn_c_try_cpp "$LINENO"; then :
16331
16332     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16333       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16334       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16335       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16336     if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16337       tmp_exp=""
16338     fi
16339
16340 fi
16341 rm -f conftest.err conftest.i conftest.$ac_ext
16342   if test -z "$tmp_exp"; then
16343     curl_cv_have_def__SGI_COMPILER_VERSION=no
16344
16345   else
16346     curl_cv_have_def__SGI_COMPILER_VERSION=yes
16347     curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16348
16349   fi
16350
16351   if test "$curl_cv_have_def___GNUC__" = "no" &&
16352     (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16353      test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16354     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16355 $as_echo "yes" >&6; }
16356     compiler_id="SGI_MIPSPRO_C"
16357     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16358     flags_dbg_yes="-g"
16359     flags_dbg_off=""
16360     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16361     flags_opt_yes="-O2"
16362     flags_opt_off="-O0"
16363   else
16364     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16365 $as_echo "no" >&6; }
16366   fi
16367
16368
16369     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16370 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16371
16372       if test -z "$SED"; then
16373     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16374   fi
16375   if test -z "$GREP"; then
16376     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16377   fi
16378
16379   tmp_exp=""
16380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16381 /* end confdefs.h.  */
16382
16383
16384 #ifdef __GNUC__
16385 CURL_DEF_TOKEN __GNUC__
16386 #endif
16387
16388
16389 _ACEOF
16390 if ac_fn_c_try_cpp "$LINENO"; then :
16391
16392     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16393       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16394       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16395       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16396     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16397       tmp_exp=""
16398     fi
16399
16400 fi
16401 rm -f conftest.err conftest.i conftest.$ac_ext
16402   if test -z "$tmp_exp"; then
16403     curl_cv_have_def___GNUC__=no
16404
16405   else
16406     curl_cv_have_def___GNUC__=yes
16407     curl_cv_def___GNUC__=$tmp_exp
16408
16409   fi
16410
16411
16412       if test -z "$SED"; then
16413     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16414   fi
16415   if test -z "$GREP"; then
16416     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16417   fi
16418
16419   tmp_exp=""
16420   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16421 /* end confdefs.h.  */
16422
16423
16424 #ifdef __sgi
16425 CURL_DEF_TOKEN __sgi
16426 #endif
16427
16428
16429 _ACEOF
16430 if ac_fn_c_try_cpp "$LINENO"; then :
16431
16432     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16433       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16434       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16435       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16436     if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16437       tmp_exp=""
16438     fi
16439
16440 fi
16441 rm -f conftest.err conftest.i conftest.$ac_ext
16442   if test -z "$tmp_exp"; then
16443     curl_cv_have_def___sgi=no
16444
16445   else
16446     curl_cv_have_def___sgi=yes
16447     curl_cv_def___sgi=$tmp_exp
16448
16449   fi
16450
16451   if test "$curl_cv_have_def___GNUC__" = "no" &&
16452     test "$curl_cv_have_def___sgi" = "yes" &&
16453     test "$compiler_id" = "unknown"; then
16454     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16455 $as_echo "yes" >&6; }
16456     compiler_id="SGI_MIPS_C"
16457     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16458     flags_dbg_yes="-g"
16459     flags_dbg_off=""
16460     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16461     flags_opt_yes="-O2"
16462     flags_opt_off="-O0"
16463   else
16464     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16465 $as_echo "no" >&6; }
16466   fi
16467
16468
16469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16470 $as_echo_n "checking if compiler is SunPro C... " >&6; }
16471
16472       if test -z "$SED"; then
16473     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16474   fi
16475   if test -z "$GREP"; then
16476     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16477   fi
16478
16479   tmp_exp=""
16480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16481 /* end confdefs.h.  */
16482
16483
16484 #ifdef __SUNPRO_C
16485 CURL_DEF_TOKEN __SUNPRO_C
16486 #endif
16487
16488
16489 _ACEOF
16490 if ac_fn_c_try_cpp "$LINENO"; then :
16491
16492     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16493       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16494       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16495       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16496     if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16497       tmp_exp=""
16498     fi
16499
16500 fi
16501 rm -f conftest.err conftest.i conftest.$ac_ext
16502   if test -z "$tmp_exp"; then
16503     curl_cv_have_def___SUNPRO_C=no
16504
16505   else
16506     curl_cv_have_def___SUNPRO_C=yes
16507     curl_cv_def___SUNPRO_C=$tmp_exp
16508
16509   fi
16510
16511   if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16512     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16513 $as_echo "yes" >&6; }
16514     compiler_id="SUNPRO_C"
16515     flags_dbg_all="-g -s"
16516     flags_dbg_yes="-g"
16517     flags_dbg_off="-s"
16518     flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16519     flags_opt_yes="-xO2"
16520     flags_opt_off=""
16521   else
16522     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16523 $as_echo "no" >&6; }
16524   fi
16525
16526
16527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16528 $as_echo_n "checking if compiler is Tiny C... " >&6; }
16529
16530       if test -z "$SED"; then
16531     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16532   fi
16533   if test -z "$GREP"; then
16534     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16535   fi
16536
16537   tmp_exp=""
16538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16539 /* end confdefs.h.  */
16540
16541
16542 #ifdef __TINYC__
16543 CURL_DEF_TOKEN __TINYC__
16544 #endif
16545
16546
16547 _ACEOF
16548 if ac_fn_c_try_cpp "$LINENO"; then :
16549
16550     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16551       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16552       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16553       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16554     if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
16555       tmp_exp=""
16556     fi
16557
16558 fi
16559 rm -f conftest.err conftest.i conftest.$ac_ext
16560   if test -z "$tmp_exp"; then
16561     curl_cv_have_def___TINYC__=no
16562
16563   else
16564     curl_cv_have_def___TINYC__=yes
16565     curl_cv_def___TINYC__=$tmp_exp
16566
16567   fi
16568
16569   if test "$curl_cv_have_def___TINYC__" = "yes"; then
16570     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16571 $as_echo "yes" >&6; }
16572     compiler_id="TINY_C"
16573     flags_dbg_all="-g -b"
16574     flags_dbg_yes="-g"
16575     flags_dbg_off=""
16576     flags_opt_all=""
16577     flags_opt_yes=""
16578     flags_opt_off=""
16579   else
16580     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16581 $as_echo "no" >&6; }
16582   fi
16583
16584
16585   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
16586 $as_echo_n "checking if compiler is Watcom C... " >&6; }
16587
16588       if test -z "$SED"; then
16589     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16590   fi
16591   if test -z "$GREP"; then
16592     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16593   fi
16594
16595   tmp_exp=""
16596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16597 /* end confdefs.h.  */
16598
16599
16600 #ifdef __WATCOMC__
16601 CURL_DEF_TOKEN __WATCOMC__
16602 #endif
16603
16604
16605 _ACEOF
16606 if ac_fn_c_try_cpp "$LINENO"; then :
16607
16608     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16609       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16610       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16611       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16612     if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
16613       tmp_exp=""
16614     fi
16615
16616 fi
16617 rm -f conftest.err conftest.i conftest.$ac_ext
16618   if test -z "$tmp_exp"; then
16619     curl_cv_have_def___WATCOMC__=no
16620
16621   else
16622     curl_cv_have_def___WATCOMC__=yes
16623     curl_cv_def___WATCOMC__=$tmp_exp
16624
16625   fi
16626
16627   if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
16628     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16629 $as_echo "yes" >&6; }
16630
16631       if test -z "$SED"; then
16632     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16633   fi
16634   if test -z "$GREP"; then
16635     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16636   fi
16637
16638   tmp_exp=""
16639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16640 /* end confdefs.h.  */
16641
16642
16643 #ifdef __UNIX__
16644 CURL_DEF_TOKEN __UNIX__
16645 #endif
16646
16647
16648 _ACEOF
16649 if ac_fn_c_try_cpp "$LINENO"; then :
16650
16651     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16652       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16653       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16654       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16655     if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
16656       tmp_exp=""
16657     fi
16658
16659 fi
16660 rm -f conftest.err conftest.i conftest.$ac_ext
16661   if test -z "$tmp_exp"; then
16662     curl_cv_have_def___UNIX__=no
16663
16664   else
16665     curl_cv_have_def___UNIX__=yes
16666     curl_cv_def___UNIX__=$tmp_exp
16667
16668   fi
16669
16670     if test "$curl_cv_have_def___UNIX__" = "yes"; then
16671       compiler_id="WATCOM_UNIX_C"
16672       flags_dbg_all="-g1 -g1+ -g2 -g3"
16673       flags_dbg_yes="-g2"
16674       flags_dbg_off=""
16675       flags_opt_all="-O0 -O1 -O2 -O3"
16676       flags_opt_yes="-O2"
16677       flags_opt_off="-O0"
16678     else
16679       compiler_id="WATCOM_WINDOWS_C"
16680       flags_dbg_all=""
16681       flags_dbg_yes=""
16682       flags_dbg_off=""
16683       flags_opt_all=""
16684       flags_opt_yes=""
16685       flags_opt_off=""
16686     fi
16687   else
16688     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16689 $as_echo "no" >&6; }
16690   fi
16691
16692   #
16693   if test "$compiler_id" = "unknown"; then
16694   cat <<_EOF 1>&2
16695 ***
16696 *** Warning: This configure script does not have information about the
16697 *** compiler you are using, relative to the flags required to enable or
16698 *** disable generation of debug info, optimization options or warnings.
16699 ***
16700 *** Whatever settings are present in CFLAGS will be used for this run.
16701 ***
16702 *** If you wish to help the cURL project to better support your compiler
16703 *** you can report this and the required info on the libcurl development
16704 *** mailing list: http://cool.haxx.se/mailman/listinfo/curl-library/
16705 ***
16706 _EOF
16707   fi
16708
16709
16710 squeeze() {
16711   _sqz_result=""
16712   eval _sqz_input=\$$1
16713   for _sqz_token in $_sqz_input; do
16714     if test -z "$_sqz_result"; then
16715       _sqz_result="$_sqz_token"
16716     else
16717       _sqz_result="$_sqz_result $_sqz_token"
16718     fi
16719   done
16720   eval $1=\$_sqz_result
16721   return 0
16722 }
16723
16724
16725       #
16726   if test "$compiler_id" != "unknown"; then
16727     #
16728     if test "$compiler_id" = "GNU_C" ||
16729       test "$compiler_id" = "CLANG"; then
16730
16731       if test "$compiler_id" = "GNU_C" ||
16732     test "$compiler_id" = "CLANG"; then
16733     tmp_has_include="no"
16734     tmp_chg_FLAGS="$CFLAGS"
16735     for word1 in $tmp_chg_FLAGS; do
16736       case "$word1" in
16737         -I*)
16738           tmp_has_include="yes"
16739           ;;
16740       esac
16741     done
16742     if test "$tmp_has_include" = "yes"; then
16743       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
16744       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
16745       CFLAGS="$tmp_chg_FLAGS"
16746       squeeze CFLAGS
16747     fi
16748     tmp_has_include="no"
16749     tmp_chg_FLAGS="$CPPFLAGS"
16750     for word1 in $tmp_chg_FLAGS; do
16751       case "$word1" in
16752         -I*)
16753           tmp_has_include="yes"
16754           ;;
16755       esac
16756     done
16757     if test "$tmp_has_include" = "yes"; then
16758       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
16759       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
16760       CPPFLAGS="$tmp_chg_FLAGS"
16761       squeeze CPPFLAGS
16762     fi
16763   fi
16764
16765     fi
16766     #
16767     tmp_save_CPPFLAGS="$CPPFLAGS"
16768     tmp_save_CFLAGS="$CFLAGS"
16769     tmp_CPPFLAGS=""
16770     tmp_CFLAGS=""
16771     #
16772     case "$compiler_id" in
16773         #
16774       CLANG)
16775         #
16776                                 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
16777         ;;
16778         #
16779       DEC_C)
16780         #
16781                 tmp_CFLAGS="$tmp_CFLAGS -std1"
16782                 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
16783                 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
16784                 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
16785         ;;
16786         #
16787       GNU_C)
16788         #
16789                 tmp_CFLAGS="$tmp_CFLAGS"
16790         ;;
16791         #
16792       HP_UX_C)
16793         #
16794                 tmp_CFLAGS="$tmp_CFLAGS -z"
16795                                 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
16796         ;;
16797         #
16798       IBM_C)
16799         #
16800                 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
16801                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
16802                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
16803         ;;
16804         #
16805       INTEL_UNIX_C)
16806         #
16807                         tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
16808                                                 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
16809                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
16810         ;;
16811         #
16812       INTEL_WINDOWS_C)
16813         #
16814                 tmp_CFLAGS="$tmp_CFLAGS"
16815         ;;
16816         #
16817       LCC)
16818         #
16819                 tmp_CFLAGS="$tmp_CFLAGS -n"
16820         ;;
16821         #
16822       SGI_MIPS_C)
16823         #
16824                 tmp_CFLAGS="$tmp_CFLAGS"
16825         ;;
16826         #
16827       SGI_MIPSPRO_C)
16828         #
16829                 tmp_CFLAGS="$tmp_CFLAGS"
16830         ;;
16831         #
16832       SUNPRO_C)
16833         #
16834                 tmp_CFLAGS="$tmp_CFLAGS"
16835         ;;
16836         #
16837       TINY_C)
16838         #
16839                 tmp_CFLAGS="$tmp_CFLAGS"
16840         ;;
16841         #
16842       WATCOM_UNIX_C)
16843         #
16844                 tmp_CFLAGS="$tmp_CFLAGS"
16845         ;;
16846         #
16847       WATCOM_WINDOWS_C)
16848         #
16849                 tmp_CFLAGS="$tmp_CFLAGS"
16850         ;;
16851         #
16852     esac
16853     #
16854     squeeze tmp_CPPFLAGS
16855     squeeze tmp_CFLAGS
16856     #
16857     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
16858       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
16859 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
16860       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
16861       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
16862       squeeze CPPFLAGS
16863       squeeze CFLAGS
16864
16865     tmp_compiler_works="unknown"
16866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16867 /* end confdefs.h.  */
16868
16869
16870
16871 int main (void)
16872 {
16873
16874       int i = 1;
16875       return i;
16876
16877  ;
16878  return 0;
16879 }
16880
16881 _ACEOF
16882 if ac_fn_c_try_compile "$LINENO"; then :
16883
16884     tmp_compiler_works="yes"
16885
16886 else
16887
16888     tmp_compiler_works="no"
16889     echo " " >&6
16890     sed 's/^/cc-fail: /' conftest.err >&6
16891     echo " " >&6
16892
16893 fi
16894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16895     if test "$tmp_compiler_works" = "yes"; then
16896     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16897 /* end confdefs.h.  */
16898
16899
16900
16901 int main (void)
16902 {
16903
16904         int i = 1;
16905         return i;
16906
16907  ;
16908  return 0;
16909 }
16910
16911 _ACEOF
16912 if ac_fn_c_try_link "$LINENO"; then :
16913
16914       tmp_compiler_works="yes"
16915
16916 else
16917
16918       tmp_compiler_works="no"
16919       echo " " >&6
16920       sed 's/^/link-fail: /' conftest.err >&6
16921       echo " " >&6
16922
16923 fi
16924 rm -f core conftest.err conftest.$ac_objext \
16925     conftest$ac_exeext conftest.$ac_ext
16926   fi
16927     if test "x$cross_compiling" != "xyes" &&
16928     test "$tmp_compiler_works" = "yes"; then
16929     if test "$cross_compiling" = yes; then :
16930   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16932 as_fn_error $? "cannot run test program while cross compiling
16933 See \`config.log' for more details" "$LINENO" 5; }
16934 else
16935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16936 /* end confdefs.h.  */
16937
16938
16939 #       ifdef __STDC__
16940 #         include <stdlib.h>
16941 #       endif
16942
16943 int main (void)
16944 {
16945
16946         int i = 0;
16947         exit(i);
16948
16949  ;
16950  return 0;
16951 }
16952
16953 _ACEOF
16954 if ac_fn_c_try_run "$LINENO"; then :
16955
16956       tmp_compiler_works="yes"
16957
16958 else
16959
16960       tmp_compiler_works="no"
16961       echo " " >&6
16962       echo "run-fail: test program exited with status $ac_status" >&6
16963       echo " " >&6
16964
16965 fi
16966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16967   conftest.$ac_objext conftest.beam conftest.$ac_ext
16968 fi
16969
16970   fi
16971     if test "$tmp_compiler_works" = "yes"; then
16972
16973         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16974 $as_echo "yes" >&6; }
16975         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
16976 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
16977
16978   else
16979
16980         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16981 $as_echo "no" >&6; }
16982         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
16983 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
16984                 CPPFLAGS="$tmp_save_CPPFLAGS"
16985         CFLAGS="$tmp_save_CFLAGS"
16986
16987   fi
16988
16989     fi
16990     #
16991   fi
16992
16993
16994         #
16995   if test "$compiler_id" != "unknown"; then
16996     #
16997     tmp_save_CFLAGS="$CFLAGS"
16998     tmp_save_CPPFLAGS="$CPPFLAGS"
16999     #
17000     tmp_options=""
17001     tmp_CFLAGS="$CFLAGS"
17002     tmp_CPPFLAGS="$CPPFLAGS"
17003
17004     ac_var_stripped=""
17005   for word1 in $tmp_CFLAGS; do
17006     ac_var_strip_word="no"
17007     for word2 in $flags_dbg_all; do
17008       if test "$word1" = "$word2"; then
17009         ac_var_strip_word="yes"
17010       fi
17011     done
17012     if test "$ac_var_strip_word" = "no"; then
17013       ac_var_stripped="$ac_var_stripped $word1"
17014     fi
17015   done
17016     tmp_CFLAGS="$ac_var_stripped"
17017   squeeze tmp_CFLAGS
17018
17019
17020     ac_var_stripped=""
17021   for word1 in $tmp_CPPFLAGS; do
17022     ac_var_strip_word="no"
17023     for word2 in $flags_dbg_all; do
17024       if test "$word1" = "$word2"; then
17025         ac_var_strip_word="yes"
17026       fi
17027     done
17028     if test "$ac_var_strip_word" = "no"; then
17029       ac_var_stripped="$ac_var_stripped $word1"
17030     fi
17031   done
17032     tmp_CPPFLAGS="$ac_var_stripped"
17033   squeeze tmp_CPPFLAGS
17034
17035     #
17036     if test "$want_debug" = "yes"; then
17037       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
17038 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
17039       tmp_options="$flags_dbg_yes"
17040     fi
17041     if test "$want_debug" = "no"; then
17042       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17043 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17044       tmp_options="$flags_dbg_off"
17045     fi
17046     #
17047     if test "$flags_prefer_cppflags" = "yes"; then
17048       CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17049       CFLAGS="$tmp_CFLAGS"
17050     else
17051       CPPFLAGS="$tmp_CPPFLAGS"
17052       CFLAGS="$tmp_CFLAGS $tmp_options"
17053     fi
17054     squeeze CPPFLAGS
17055     squeeze CFLAGS
17056
17057     tmp_compiler_works="unknown"
17058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17059 /* end confdefs.h.  */
17060
17061
17062
17063 int main (void)
17064 {
17065
17066       int i = 1;
17067       return i;
17068
17069  ;
17070  return 0;
17071 }
17072
17073 _ACEOF
17074 if ac_fn_c_try_compile "$LINENO"; then :
17075
17076     tmp_compiler_works="yes"
17077
17078 else
17079
17080     tmp_compiler_works="no"
17081     echo " " >&6
17082     sed 's/^/cc-fail: /' conftest.err >&6
17083     echo " " >&6
17084
17085 fi
17086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17087     if test "$tmp_compiler_works" = "yes"; then
17088     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17089 /* end confdefs.h.  */
17090
17091
17092
17093 int main (void)
17094 {
17095
17096         int i = 1;
17097         return i;
17098
17099  ;
17100  return 0;
17101 }
17102
17103 _ACEOF
17104 if ac_fn_c_try_link "$LINENO"; then :
17105
17106       tmp_compiler_works="yes"
17107
17108 else
17109
17110       tmp_compiler_works="no"
17111       echo " " >&6
17112       sed 's/^/link-fail: /' conftest.err >&6
17113       echo " " >&6
17114
17115 fi
17116 rm -f core conftest.err conftest.$ac_objext \
17117     conftest$ac_exeext conftest.$ac_ext
17118   fi
17119     if test "x$cross_compiling" != "xyes" &&
17120     test "$tmp_compiler_works" = "yes"; then
17121     if test "$cross_compiling" = yes; then :
17122   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17124 as_fn_error $? "cannot run test program while cross compiling
17125 See \`config.log' for more details" "$LINENO" 5; }
17126 else
17127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17128 /* end confdefs.h.  */
17129
17130
17131 #       ifdef __STDC__
17132 #         include <stdlib.h>
17133 #       endif
17134
17135 int main (void)
17136 {
17137
17138         int i = 0;
17139         exit(i);
17140
17141  ;
17142  return 0;
17143 }
17144
17145 _ACEOF
17146 if ac_fn_c_try_run "$LINENO"; then :
17147
17148       tmp_compiler_works="yes"
17149
17150 else
17151
17152       tmp_compiler_works="no"
17153       echo " " >&6
17154       echo "run-fail: test program exited with status $ac_status" >&6
17155       echo " " >&6
17156
17157 fi
17158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17159   conftest.$ac_objext conftest.beam conftest.$ac_ext
17160 fi
17161
17162   fi
17163     if test "$tmp_compiler_works" = "yes"; then
17164
17165       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17166 $as_echo "yes" >&6; }
17167       { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17168 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17169
17170   else
17171
17172       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17173 $as_echo "no" >&6; }
17174       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17175 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17176             CPPFLAGS="$tmp_save_CPPFLAGS"
17177       CFLAGS="$tmp_save_CFLAGS"
17178
17179   fi
17180
17181     #
17182   fi
17183
17184
17185         #
17186   if test "$compiler_id" != "unknown"; then
17187     #
17188     tmp_save_CFLAGS="$CFLAGS"
17189     tmp_save_CPPFLAGS="$CPPFLAGS"
17190     #
17191     tmp_options=""
17192     tmp_CFLAGS="$CFLAGS"
17193     tmp_CPPFLAGS="$CPPFLAGS"
17194     honor_optimize_option="yes"
17195     #
17196                         #
17197     if test "$want_optimize" = "assume_no" ||
17198        test "$want_optimize" = "assume_yes"; then
17199       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17200 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17201
17202
17203   ac_var_match_word="no"
17204   for word1 in $tmp_CFLAGS; do
17205     for word2 in $flags_opt_all; do
17206       if test "$word1" = "$word2"; then
17207         ac_var_match_word="yes"
17208       fi
17209     done
17210   done
17211
17212   if test "$ac_var_match_word" = "yes"; then
17213
17214         honor_optimize_option="no"
17215
17216
17217   fi
17218
17219
17220
17221   ac_var_match_word="no"
17222   for word1 in $tmp_CPPFLAGS; do
17223     for word2 in $flags_opt_all; do
17224       if test "$word1" = "$word2"; then
17225         ac_var_match_word="yes"
17226       fi
17227     done
17228   done
17229
17230   if test "$ac_var_match_word" = "yes"; then
17231
17232         honor_optimize_option="no"
17233
17234
17235   fi
17236
17237       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17238 $as_echo "$honor_optimize_option" >&6; }
17239       if test "$honor_optimize_option" = "yes"; then
17240         if test "$want_optimize" = "assume_yes"; then
17241           want_optimize="yes"
17242         fi
17243         if test "$want_optimize" = "assume_no"; then
17244           want_optimize="no"
17245         fi
17246       fi
17247     fi
17248     #
17249     if test "$honor_optimize_option" = "yes"; then
17250
17251     ac_var_stripped=""
17252   for word1 in $tmp_CFLAGS; do
17253     ac_var_strip_word="no"
17254     for word2 in $flags_opt_all; do
17255       if test "$word1" = "$word2"; then
17256         ac_var_strip_word="yes"
17257       fi
17258     done
17259     if test "$ac_var_strip_word" = "no"; then
17260       ac_var_stripped="$ac_var_stripped $word1"
17261     fi
17262   done
17263     tmp_CFLAGS="$ac_var_stripped"
17264   squeeze tmp_CFLAGS
17265
17266
17267     ac_var_stripped=""
17268   for word1 in $tmp_CPPFLAGS; do
17269     ac_var_strip_word="no"
17270     for word2 in $flags_opt_all; do
17271       if test "$word1" = "$word2"; then
17272         ac_var_strip_word="yes"
17273       fi
17274     done
17275     if test "$ac_var_strip_word" = "no"; then
17276       ac_var_stripped="$ac_var_stripped $word1"
17277     fi
17278   done
17279     tmp_CPPFLAGS="$ac_var_stripped"
17280   squeeze tmp_CPPFLAGS
17281
17282       if test "$want_optimize" = "yes"; then
17283         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17284 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17285         tmp_options="$flags_opt_yes"
17286       fi
17287       if test "$want_optimize" = "no"; then
17288         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17289 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17290         tmp_options="$flags_opt_off"
17291       fi
17292       if test "$flags_prefer_cppflags" = "yes"; then
17293         CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17294         CFLAGS="$tmp_CFLAGS"
17295       else
17296         CPPFLAGS="$tmp_CPPFLAGS"
17297         CFLAGS="$tmp_CFLAGS $tmp_options"
17298       fi
17299       squeeze CPPFLAGS
17300       squeeze CFLAGS
17301
17302     tmp_compiler_works="unknown"
17303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17304 /* end confdefs.h.  */
17305
17306
17307
17308 int main (void)
17309 {
17310
17311       int i = 1;
17312       return i;
17313
17314  ;
17315  return 0;
17316 }
17317
17318 _ACEOF
17319 if ac_fn_c_try_compile "$LINENO"; then :
17320
17321     tmp_compiler_works="yes"
17322
17323 else
17324
17325     tmp_compiler_works="no"
17326     echo " " >&6
17327     sed 's/^/cc-fail: /' conftest.err >&6
17328     echo " " >&6
17329
17330 fi
17331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17332     if test "$tmp_compiler_works" = "yes"; then
17333     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17334 /* end confdefs.h.  */
17335
17336
17337
17338 int main (void)
17339 {
17340
17341         int i = 1;
17342         return i;
17343
17344  ;
17345  return 0;
17346 }
17347
17348 _ACEOF
17349 if ac_fn_c_try_link "$LINENO"; then :
17350
17351       tmp_compiler_works="yes"
17352
17353 else
17354
17355       tmp_compiler_works="no"
17356       echo " " >&6
17357       sed 's/^/link-fail: /' conftest.err >&6
17358       echo " " >&6
17359
17360 fi
17361 rm -f core conftest.err conftest.$ac_objext \
17362     conftest$ac_exeext conftest.$ac_ext
17363   fi
17364     if test "x$cross_compiling" != "xyes" &&
17365     test "$tmp_compiler_works" = "yes"; then
17366     if test "$cross_compiling" = yes; then :
17367   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17369 as_fn_error $? "cannot run test program while cross compiling
17370 See \`config.log' for more details" "$LINENO" 5; }
17371 else
17372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17373 /* end confdefs.h.  */
17374
17375
17376 #       ifdef __STDC__
17377 #         include <stdlib.h>
17378 #       endif
17379
17380 int main (void)
17381 {
17382
17383         int i = 0;
17384         exit(i);
17385
17386  ;
17387  return 0;
17388 }
17389
17390 _ACEOF
17391 if ac_fn_c_try_run "$LINENO"; then :
17392
17393       tmp_compiler_works="yes"
17394
17395 else
17396
17397       tmp_compiler_works="no"
17398       echo " " >&6
17399       echo "run-fail: test program exited with status $ac_status" >&6
17400       echo " " >&6
17401
17402 fi
17403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17404   conftest.$ac_objext conftest.beam conftest.$ac_ext
17405 fi
17406
17407   fi
17408     if test "$tmp_compiler_works" = "yes"; then
17409
17410         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17411 $as_echo "yes" >&6; }
17412         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17413 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17414
17415   else
17416
17417         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17418 $as_echo "no" >&6; }
17419         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17420 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17421                 CPPFLAGS="$tmp_save_CPPFLAGS"
17422         CFLAGS="$tmp_save_CFLAGS"
17423
17424   fi
17425
17426     fi
17427     #
17428   fi
17429
17430
17431         #
17432   if test "$compiler_id" != "unknown"; then
17433     #
17434     tmp_save_CPPFLAGS="$CPPFLAGS"
17435     tmp_save_CFLAGS="$CFLAGS"
17436     tmp_CPPFLAGS=""
17437     tmp_CFLAGS=""
17438     #
17439     case "$compiler_id" in
17440         #
17441       CLANG)
17442         #
17443         if test "$want_warnings" = "yes"; then
17444           tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17445           tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17446           tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17447           tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
17448           tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17449           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17450           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17451           tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17452           tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17453           tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17454           tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17455           tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17456           tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17457           tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17458           tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17459           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17460           tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
17461           #
17462                     if test "$compiler_num" -ge "101"; then
17463             tmp_CFLAGS="$tmp_CFLAGS -Wunused"
17464           fi
17465         fi
17466         ;;
17467         #
17468       DEC_C)
17469         #
17470         if test "$want_warnings" = "yes"; then
17471                     tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
17472         fi
17473         ;;
17474         #
17475       GNU_C)
17476         #
17477         if test "$want_warnings" = "yes"; then
17478           #
17479                               if test "x$cross_compiling" != "xyes" ||
17480             test "$compiler_num" -ge "300"; then
17481             tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17482           fi
17483           #
17484                     tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
17485           #
17486                     if test "$compiler_num" -ge "104"; then
17487             tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17488                         if test "x$cross_compiling" != "xyes" ||
17489               test "$compiler_num" -ge "300"; then
17490               tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
17491             fi
17492           fi
17493           #
17494                     if test "$compiler_num" -ge "207"; then
17495             tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17496                         if test "x$cross_compiling" != "xyes" ||
17497               test "$compiler_num" -ge "300"; then
17498               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17499               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17500             fi
17501           fi
17502           #
17503                     if test "$compiler_num" -ge "295"; then
17504             tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17505           fi
17506           #
17507                     if test "$compiler_num" -ge "296"; then
17508             tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17509             tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17510                                                 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17511           fi
17512           #
17513                     if test "$compiler_num" -ge "297"; then
17514             tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17515           fi
17516           #
17517                     if test "$compiler_num" -ge "300"; then
17518                                                             tmp_CFLAGS="$tmp_CFLAGS"
17519           fi
17520           #
17521                     if test "$compiler_num" -ge "303"; then
17522             tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17523           fi
17524           #
17525                     if test "$compiler_num" -ge "304"; then
17526             tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17527           fi
17528           #
17529                     if test "$compiler_num" -ge "400"; then
17530             tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
17531           fi
17532           #
17533                     if test "$compiler_num" -ge "402"; then
17534             tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17535           fi
17536           #
17537                     if test "$compiler_num" -ge "403"; then
17538             tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
17539             tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
17540             tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
17541             tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
17542           fi
17543           #
17544                     if test "$compiler_num" -ge "405"; then
17545                         if test "$curl_cv_have_def__WIN32" = "yes"; then
17546               tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
17547             fi
17548           fi
17549           #
17550         fi
17551         #
17552                 if test "$compiler_num" -ge "300"; then
17553           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17554         else
17555                               if test "x$cross_compiling" = "xyes"; then
17556             if test "$compiler_num" -ge "104"; then
17557                             tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
17558             fi
17559             if test "$compiler_num" -ge "207"; then
17560                             tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
17561               tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
17562             fi
17563           fi
17564         fi
17565         ;;
17566         #
17567       HP_UX_C)
17568         #
17569         if test "$want_warnings" = "yes"; then
17570                     tmp_CFLAGS="$tmp_CFLAGS +w1"
17571         fi
17572         ;;
17573         #
17574       IBM_C)
17575         #
17576                 tmp_CFLAGS="$tmp_CFLAGS"
17577         ;;
17578         #
17579       INTEL_UNIX_C)
17580         #
17581         if test "$want_warnings" = "yes"; then
17582           if test "$compiler_num" -gt "600"; then
17583                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
17584                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
17585                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
17586                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
17587                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
17588                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
17589                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
17590                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
17591                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
17592                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
17593                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
17594           fi
17595         fi
17596                 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
17597                 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
17598                 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
17599                 if test "$compiler_num" -ge "1000"; then
17600                     tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
17601         fi
17602         ;;
17603         #
17604       INTEL_WINDOWS_C)
17605         #
17606                 tmp_CFLAGS="$tmp_CFLAGS"
17607         ;;
17608         #
17609       LCC)
17610         #
17611         if test "$want_warnings" = "yes"; then
17612                                                   tmp_CFLAGS="$tmp_CFLAGS"
17613         fi
17614         ;;
17615         #
17616       SGI_MIPS_C)
17617         #
17618         if test "$want_warnings" = "yes"; then
17619                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17620         fi
17621         ;;
17622         #
17623       SGI_MIPSPRO_C)
17624         #
17625         if test "$want_warnings" = "yes"; then
17626                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17627                               tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
17628         fi
17629         ;;
17630         #
17631       SUNPRO_C)
17632         #
17633         if test "$want_warnings" = "yes"; then
17634                     tmp_CFLAGS="$tmp_CFLAGS -v"
17635         fi
17636         ;;
17637         #
17638       TINY_C)
17639         #
17640         if test "$want_warnings" = "yes"; then
17641                     tmp_CFLAGS="$tmp_CFLAGS -Wall"
17642                     tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
17643                     tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
17644         fi
17645         ;;
17646         #
17647       WATCOM_UNIX_C)
17648         #
17649         if test "$want_warnings" = "yes"; then
17650                     tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17651         fi
17652         ;;
17653         #
17654       WATCOM_WINDOWS_C)
17655         #
17656                 tmp_CFLAGS="$tmp_CFLAGS"
17657         ;;
17658         #
17659     esac
17660     #
17661     squeeze tmp_CPPFLAGS
17662     squeeze tmp_CFLAGS
17663     #
17664     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17665       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
17666 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
17667       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17668       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17669       squeeze CPPFLAGS
17670       squeeze CFLAGS
17671
17672     tmp_compiler_works="unknown"
17673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17674 /* end confdefs.h.  */
17675
17676
17677
17678 int main (void)
17679 {
17680
17681       int i = 1;
17682       return i;
17683
17684  ;
17685  return 0;
17686 }
17687
17688 _ACEOF
17689 if ac_fn_c_try_compile "$LINENO"; then :
17690
17691     tmp_compiler_works="yes"
17692
17693 else
17694
17695     tmp_compiler_works="no"
17696     echo " " >&6
17697     sed 's/^/cc-fail: /' conftest.err >&6
17698     echo " " >&6
17699
17700 fi
17701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17702     if test "$tmp_compiler_works" = "yes"; then
17703     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17704 /* end confdefs.h.  */
17705
17706
17707
17708 int main (void)
17709 {
17710
17711         int i = 1;
17712         return i;
17713
17714  ;
17715  return 0;
17716 }
17717
17718 _ACEOF
17719 if ac_fn_c_try_link "$LINENO"; then :
17720
17721       tmp_compiler_works="yes"
17722
17723 else
17724
17725       tmp_compiler_works="no"
17726       echo " " >&6
17727       sed 's/^/link-fail: /' conftest.err >&6
17728       echo " " >&6
17729
17730 fi
17731 rm -f core conftest.err conftest.$ac_objext \
17732     conftest$ac_exeext conftest.$ac_ext
17733   fi
17734     if test "x$cross_compiling" != "xyes" &&
17735     test "$tmp_compiler_works" = "yes"; then
17736     if test "$cross_compiling" = yes; then :
17737   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17739 as_fn_error $? "cannot run test program while cross compiling
17740 See \`config.log' for more details" "$LINENO" 5; }
17741 else
17742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17743 /* end confdefs.h.  */
17744
17745
17746 #       ifdef __STDC__
17747 #         include <stdlib.h>
17748 #       endif
17749
17750 int main (void)
17751 {
17752
17753         int i = 0;
17754         exit(i);
17755
17756  ;
17757  return 0;
17758 }
17759
17760 _ACEOF
17761 if ac_fn_c_try_run "$LINENO"; then :
17762
17763       tmp_compiler_works="yes"
17764
17765 else
17766
17767       tmp_compiler_works="no"
17768       echo " " >&6
17769       echo "run-fail: test program exited with status $ac_status" >&6
17770       echo " " >&6
17771
17772 fi
17773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17774   conftest.$ac_objext conftest.beam conftest.$ac_ext
17775 fi
17776
17777   fi
17778     if test "$tmp_compiler_works" = "yes"; then
17779
17780         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17781 $as_echo "yes" >&6; }
17782         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17783 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17784
17785   else
17786
17787         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17788 $as_echo "no" >&6; }
17789         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17790 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17791                 CPPFLAGS="$tmp_save_CPPFLAGS"
17792         CFLAGS="$tmp_save_CFLAGS"
17793
17794   fi
17795
17796     fi
17797     #
17798   fi
17799
17800
17801 if test "$compiler_id" = "INTEL_UNIX_C"; then
17802   #
17803   if test "$compiler_num" -ge "1000"; then
17804         CFLAGS="$CFLAGS -shared-intel"
17805   elif test "$compiler_num" -ge "900"; then
17806         CFLAGS="$CFLAGS -i-dynamic"
17807   fi
17808   #
17809 fi
17810
17811
17812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
17813 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
17814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17815 /* end confdefs.h.  */
17816
17817
17818
17819 int main (void)
17820 {
17821
17822       force compilation error
17823
17824  ;
17825  return 0;
17826 }
17827
17828 _ACEOF
17829 if ac_fn_c_try_compile "$LINENO"; then :
17830
17831     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17832 $as_echo "no" >&6; }
17833     as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
17834
17835 else
17836
17837     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17838 $as_echo "yes" >&6; }
17839
17840 fi
17841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17842
17843
17844     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
17845 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
17846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17847 /* end confdefs.h.  */
17848
17849
17850       typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
17851
17852 int main (void)
17853 {
17854
17855       bad_t dummy;
17856
17857  ;
17858  return 0;
17859 }
17860
17861 _ACEOF
17862 if ac_fn_c_try_compile "$LINENO"; then :
17863
17864     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17865 $as_echo "no" >&6; }
17866     as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
17867
17868 else
17869
17870     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17871 $as_echo "yes" >&6; }
17872
17873 fi
17874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17875
17876
17877     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
17878 $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
17879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17880 /* end confdefs.h.  */
17881
17882
17883 #     include <stdlib.h>
17884       int rand(int n);
17885       int rand(int n)
17886       {
17887         if(n)
17888           return ++n;
17889         else
17890           return n;
17891       }
17892
17893 int main (void)
17894 {
17895
17896       int i[2]={0,0};
17897       int j = rand(i[0]);
17898       if(j)
17899         return j;
17900
17901  ;
17902  return 0;
17903 }
17904
17905 _ACEOF
17906 if ac_fn_c_try_compile "$LINENO"; then :
17907
17908     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17909 $as_echo "no" >&6; }
17910     as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
17911
17912 else
17913
17914     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17915 $as_echo "yes" >&6; }
17916
17917 fi
17918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17919
17920
17921       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
17922 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
17923   supports_symbol_hiding="no"
17924   symbol_hiding_CFLAGS=""
17925   symbol_hiding_EXTERN=""
17926   tmp_CFLAGS=""
17927   tmp_EXTERN=""
17928   case "$compiler_id" in
17929     CLANG)
17930             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
17931       tmp_CFLAGS="-fvisibility=hidden"
17932       supports_symbol_hiding="yes"
17933       ;;
17934     GNU_C)
17935             if test "$compiler_num" -ge "304"; then
17936         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
17937           tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
17938           tmp_CFLAGS="-fvisibility=hidden"
17939           supports_symbol_hiding="yes"
17940         fi
17941       fi
17942       ;;
17943     INTEL_UNIX_C)
17944             if test "$compiler_num" -ge "900"; then
17945         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
17946           tmp_save_CFLAGS="$CFLAGS"
17947           CFLAGS="$CFLAGS -fvisibility=hidden"
17948           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17949 /* end confdefs.h.  */
17950
17951
17952 #             include <stdio.h>
17953
17954 int main (void)
17955 {
17956
17957               printf("icc fvisibility bug test");
17958
17959  ;
17960  return 0;
17961 }
17962
17963 _ACEOF
17964 if ac_fn_c_try_link "$LINENO"; then :
17965
17966             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
17967             tmp_CFLAGS="-fvisibility=hidden"
17968             supports_symbol_hiding="yes"
17969
17970 fi
17971 rm -f core conftest.err conftest.$ac_objext \
17972     conftest$ac_exeext conftest.$ac_ext
17973           CFLAGS="$tmp_save_CFLAGS"
17974         fi
17975       fi
17976       ;;
17977     SUNPRO_C)
17978       if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
17979         tmp_EXTERN="__global"
17980         tmp_CFLAGS="-xldscope=hidden"
17981         supports_symbol_hiding="yes"
17982       fi
17983       ;;
17984   esac
17985   if test "$supports_symbol_hiding" = "yes"; then
17986     tmp_save_CFLAGS="$CFLAGS"
17987     CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17988     squeeze CFLAGS
17989     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17990 /* end confdefs.h.  */
17991
17992
17993         $tmp_EXTERN char *dummy(char *buff);
17994         char *dummy(char *buff)
17995         {
17996          if(buff)
17997            return ++buff;
17998          else
17999            return buff;
18000         }
18001
18002 int main (void)
18003 {
18004
18005         char b[16];
18006         char *r = dummy(&b[0]);
18007         if(r)
18008           return (int)*r;
18009
18010  ;
18011  return 0;
18012 }
18013
18014 _ACEOF
18015 if ac_fn_c_try_compile "$LINENO"; then :
18016
18017       supports_symbol_hiding="yes"
18018       if test -f conftest.err; then
18019         grep 'visibility' conftest.err >/dev/null
18020         if test "$?" -eq "0"; then
18021           supports_symbol_hiding="no"
18022         fi
18023       fi
18024
18025 else
18026
18027       supports_symbol_hiding="no"
18028       echo " " >&6
18029       sed 's/^/cc-src: /' conftest.$ac_ext >&6
18030       sed 's/^/cc-err: /' conftest.err >&6
18031       echo " " >&6
18032
18033 fi
18034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18035     CFLAGS="$tmp_save_CFLAGS"
18036   fi
18037   if test "$supports_symbol_hiding" = "yes"; then
18038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18039 $as_echo "yes" >&6; }
18040     symbol_hiding_CFLAGS="$tmp_CFLAGS"
18041     symbol_hiding_EXTERN="$tmp_EXTERN"
18042   else
18043     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18044 $as_echo "no" >&6; }
18045   fi
18046
18047
18048
18049       supports_curldebug="unknown"
18050   if test "$want_curldebug" = "yes"; then
18051     if test "x$enable_shared" != "xno" &&
18052       test "x$enable_shared" != "xyes"; then
18053       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
18054 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
18055       supports_curldebug="no"
18056     fi
18057     if test "x$enable_static" != "xno" &&
18058       test "x$enable_static" != "xyes"; then
18059       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
18060 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
18061       supports_curldebug="no"
18062     fi
18063     if test "$supports_curldebug" != "no"; then
18064       if test "$enable_shared" = "yes" &&
18065         test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
18066         supports_curldebug="no"
18067         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
18068 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
18069       fi
18070     fi
18071   fi
18072   #
18073   if test "$want_curldebug" = "yes"; then
18074     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
18075 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
18076     test "$supports_curldebug" = "no" || supports_curldebug="yes"
18077     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
18078 $as_echo "$supports_curldebug" >&6; }
18079     if test "$supports_curldebug" = "no"; then
18080       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18081 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18082       want_curldebug="no"
18083     fi
18084   fi
18085   #
18086   if test "$want_curldebug" = "yes"; then
18087     CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
18088     squeeze CPPFLAGS
18089   fi
18090   if test "$want_debug" = "yes"; then
18091     CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
18092     squeeze CPPFLAGS
18093   fi
18094
18095  if test x$want_curldebug = xyes; then
18096   CURLDEBUG_TRUE=
18097   CURLDEBUG_FALSE='#'
18098 else
18099   CURLDEBUG_TRUE='#'
18100   CURLDEBUG_FALSE=
18101 fi
18102
18103
18104 supports_unittests=yes
18105 # cross-compilation of unit tests static library/programs fails when
18106 # libcurl shared library is built. This might be due to a libtool or
18107 # automake issue. In this case we disable unit tests.
18108 if test "x$cross_compiling" != "xno" &&
18109    test "x$enable_shared" != "xno"; then
18110   supports_unittests=no
18111 fi
18112
18113 # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18114 # a problem related with OpenSSL headers and library versions not matching.
18115 # Disable unit tests while time to further investigate this is found.
18116 case $host in
18117   mips-sgi-irix6.5)
18118     if test "$compiler_id" = "GNU_C"; then
18119       supports_unittests=no
18120     fi
18121     ;;
18122 esac
18123
18124 # All AIX autobuilds fails unit tests linking against unittests library
18125 # due to unittests library being built with no symbols or members. Libtool ?
18126 # Disable unit tests while time to further investigate this is found.
18127 case $host_os in
18128   aix*)
18129     supports_unittests=no
18130     ;;
18131 esac
18132
18133 if test "x$want_debug" = "xyes" &&
18134    test "x$supports_unittests" = "xyes"; then
18135   want_unittests=yes
18136 else
18137   want_unittests=no
18138 fi
18139  if test x$want_unittests = xyes; then
18140   BUILD_UNITTESTS_TRUE=
18141   BUILD_UNITTESTS_FALSE='#'
18142 else
18143   BUILD_UNITTESTS_TRUE='#'
18144   BUILD_UNITTESTS_FALSE=
18145 fi
18146
18147
18148
18149
18150
18151   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18152 $as_echo_n "checking for windows.h... " >&6; }
18153 if ${ac_cv_header_windows_h+:} false; then :
18154   $as_echo_n "(cached) " >&6
18155 else
18156
18157     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18158 /* end confdefs.h.  */
18159
18160
18161 #undef inline
18162 #ifndef WIN32_LEAN_AND_MEAN
18163 #define WIN32_LEAN_AND_MEAN
18164 #endif
18165 #include <windows.h>
18166
18167 int main (void)
18168 {
18169
18170 #if defined(__CYGWIN__) || defined(__CEGCC__)
18171         HAVE_WINDOWS_H shall not be defined.
18172 #else
18173         int dummy=2*WINVER;
18174 #endif
18175
18176  ;
18177  return 0;
18178 }
18179
18180 _ACEOF
18181 if ac_fn_c_try_compile "$LINENO"; then :
18182
18183       ac_cv_header_windows_h="yes"
18184
18185 else
18186
18187       ac_cv_header_windows_h="no"
18188
18189 fi
18190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18191
18192 fi
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
18194 $as_echo "$ac_cv_header_windows_h" >&6; }
18195   case "$ac_cv_header_windows_h" in
18196     yes)
18197
18198 cat >>confdefs.h <<_ACEOF
18199 #define HAVE_WINDOWS_H 1
18200 _ACEOF
18201
18202
18203 cat >>confdefs.h <<_ACEOF
18204 #define WIN32_LEAN_AND_MEAN 1
18205 _ACEOF
18206
18207       ;;
18208   esac
18209
18210
18211     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18212 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
18213 if ${ac_cv_native_windows+:} false; then :
18214   $as_echo_n "(cached) " >&6
18215 else
18216
18217     if test "$ac_cv_header_windows_h" = "no"; then
18218       ac_cv_native_windows="no"
18219     else
18220       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18221 /* end confdefs.h.  */
18222
18223
18224
18225 int main (void)
18226 {
18227
18228 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18229    (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18230           int dummy=1;
18231 #else
18232           Not a native Windows build target.
18233 #endif
18234
18235  ;
18236  return 0;
18237 }
18238
18239 _ACEOF
18240 if ac_fn_c_try_compile "$LINENO"; then :
18241
18242         ac_cv_native_windows="yes"
18243
18244 else
18245
18246         ac_cv_native_windows="no"
18247
18248 fi
18249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18250     fi
18251
18252 fi
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5
18254 $as_echo "$ac_cv_native_windows" >&6; }
18255    if test "x$ac_cv_native_windows" = xyes; then
18256   DOING_NATIVE_WINDOWS_TRUE=
18257   DOING_NATIVE_WINDOWS_FALSE='#'
18258 else
18259   DOING_NATIVE_WINDOWS_TRUE='#'
18260   DOING_NATIVE_WINDOWS_FALSE=
18261 fi
18262
18263
18264 case X-"$ac_cv_native_windows" in
18265   X-yes)
18266
18267     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18268 $as_echo_n "checking for winsock.h... " >&6; }
18269 if ${ac_cv_header_winsock_h+:} false; then :
18270   $as_echo_n "(cached) " >&6
18271 else
18272
18273     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18274 /* end confdefs.h.  */
18275
18276
18277 #undef inline
18278 #ifndef WIN32_LEAN_AND_MEAN
18279 #define WIN32_LEAN_AND_MEAN
18280 #endif
18281 #include <windows.h>
18282 #include <winsock.h>
18283
18284 int main (void)
18285 {
18286
18287 #if defined(__CYGWIN__) || defined(__CEGCC__)
18288         HAVE_WINSOCK_H shall not be defined.
18289 #else
18290         int dummy=WSACleanup();
18291 #endif
18292
18293  ;
18294  return 0;
18295 }
18296
18297 _ACEOF
18298 if ac_fn_c_try_compile "$LINENO"; then :
18299
18300       ac_cv_header_winsock_h="yes"
18301
18302 else
18303
18304       ac_cv_header_winsock_h="no"
18305
18306 fi
18307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18308
18309 fi
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
18311 $as_echo "$ac_cv_header_winsock_h" >&6; }
18312   case "$ac_cv_header_winsock_h" in
18313     yes)
18314
18315 cat >>confdefs.h <<_ACEOF
18316 #define HAVE_WINSOCK_H 1
18317 _ACEOF
18318
18319       ;;
18320   esac
18321
18322
18323     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18324 $as_echo_n "checking for winsock2.h... " >&6; }
18325 if ${ac_cv_header_winsock2_h+:} false; then :
18326   $as_echo_n "(cached) " >&6
18327 else
18328
18329     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18330 /* end confdefs.h.  */
18331
18332
18333 #undef inline
18334 #ifndef WIN32_LEAN_AND_MEAN
18335 #define WIN32_LEAN_AND_MEAN
18336 #endif
18337 #include <windows.h>
18338 #include <winsock2.h>
18339
18340 int main (void)
18341 {
18342
18343 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18344         HAVE_WINSOCK2_H shall not be defined.
18345 #else
18346         int dummy=2*IPPROTO_ESP;
18347 #endif
18348
18349  ;
18350  return 0;
18351 }
18352
18353 _ACEOF
18354 if ac_fn_c_try_compile "$LINENO"; then :
18355
18356       ac_cv_header_winsock2_h="yes"
18357
18358 else
18359
18360       ac_cv_header_winsock2_h="no"
18361
18362 fi
18363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18364
18365 fi
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
18367 $as_echo "$ac_cv_header_winsock2_h" >&6; }
18368   case "$ac_cv_header_winsock2_h" in
18369     yes)
18370
18371 cat >>confdefs.h <<_ACEOF
18372 #define HAVE_WINSOCK2_H 1
18373 _ACEOF
18374
18375       ;;
18376   esac
18377
18378
18379     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18380 $as_echo_n "checking for ws2tcpip.h... " >&6; }
18381 if ${ac_cv_header_ws2tcpip_h+:} false; then :
18382   $as_echo_n "(cached) " >&6
18383 else
18384
18385     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18386 /* end confdefs.h.  */
18387
18388
18389 #undef inline
18390 #ifndef WIN32_LEAN_AND_MEAN
18391 #define WIN32_LEAN_AND_MEAN
18392 #endif
18393 #include <windows.h>
18394 #include <winsock2.h>
18395 #include <ws2tcpip.h>
18396
18397 int main (void)
18398 {
18399
18400 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18401         HAVE_WS2TCPIP_H shall not be defined.
18402 #else
18403         int dummy=2*IP_PKTINFO;
18404 #endif
18405
18406  ;
18407  return 0;
18408 }
18409
18410 _ACEOF
18411 if ac_fn_c_try_compile "$LINENO"; then :
18412
18413       ac_cv_header_ws2tcpip_h="yes"
18414
18415 else
18416
18417       ac_cv_header_ws2tcpip_h="no"
18418
18419 fi
18420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18421
18422 fi
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
18424 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
18425   case "$ac_cv_header_ws2tcpip_h" in
18426     yes)
18427
18428 cat >>confdefs.h <<_ACEOF
18429 #define HAVE_WS2TCPIP_H 1
18430 _ACEOF
18431
18432       ;;
18433   esac
18434
18435
18436     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18437 $as_echo_n "checking for winldap.h... " >&6; }
18438 if ${ac_cv_header_winldap_h+:} false; then :
18439   $as_echo_n "(cached) " >&6
18440 else
18441
18442     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18443 /* end confdefs.h.  */
18444
18445
18446 #undef inline
18447 #ifdef HAVE_WINDOWS_H
18448 #ifndef WIN32_LEAN_AND_MEAN
18449 #define WIN32_LEAN_AND_MEAN
18450 #endif
18451 #include <windows.h>
18452 #endif
18453 #include <winldap.h>
18454
18455 int main (void)
18456 {
18457
18458 #if defined(__CYGWIN__) || defined(__CEGCC__)
18459         HAVE_WINLDAP_H shall not be defined.
18460 #else
18461         LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18462         ULONG res = ldap_unbind(ldp);
18463 #endif
18464
18465  ;
18466  return 0;
18467 }
18468
18469 _ACEOF
18470 if ac_fn_c_try_compile "$LINENO"; then :
18471
18472       ac_cv_header_winldap_h="yes"
18473
18474 else
18475
18476       ac_cv_header_winldap_h="no"
18477
18478 fi
18479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18480
18481 fi
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winldap_h" >&5
18483 $as_echo "$ac_cv_header_winldap_h" >&6; }
18484   case "$ac_cv_header_winldap_h" in
18485     yes)
18486
18487 cat >>confdefs.h <<_ACEOF
18488 #define HAVE_WINLDAP_H 1
18489 _ACEOF
18490
18491       ;;
18492   esac
18493
18494
18495     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
18496 $as_echo_n "checking for winber.h... " >&6; }
18497 if ${ac_cv_header_winber_h+:} false; then :
18498   $as_echo_n "(cached) " >&6
18499 else
18500
18501     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18502 /* end confdefs.h.  */
18503
18504
18505 #undef inline
18506 #ifdef HAVE_WINDOWS_H
18507 #ifndef WIN32_LEAN_AND_MEAN
18508 #define WIN32_LEAN_AND_MEAN
18509 #endif
18510 #include <windows.h>
18511 #endif
18512 #include <winldap.h>
18513 #include <winber.h>
18514
18515 int main (void)
18516 {
18517
18518 #if defined(__CYGWIN__) || defined(__CEGCC__)
18519         HAVE_WINBER_H shall not be defined.
18520 #else
18521         BERVAL *bvp = NULL;
18522         BerElement *bep = ber_init(bvp);
18523         ber_free(bep, 1);
18524 #endif
18525
18526  ;
18527  return 0;
18528 }
18529
18530 _ACEOF
18531 if ac_fn_c_try_compile "$LINENO"; then :
18532
18533       ac_cv_header_winber_h="yes"
18534
18535 else
18536
18537       ac_cv_header_winber_h="no"
18538
18539 fi
18540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18541
18542 fi
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winber_h" >&5
18544 $as_echo "$ac_cv_header_winber_h" >&6; }
18545   case "$ac_cv_header_winber_h" in
18546     yes)
18547
18548 cat >>confdefs.h <<_ACEOF
18549 #define HAVE_WINBER_H 1
18550 _ACEOF
18551
18552       ;;
18553   esac
18554
18555     ;;
18556   *)
18557     ac_cv_header_winsock_h="no"
18558     ac_cv_header_winsock2_h="no"
18559     ac_cv_header_ws2tcpip_h="no"
18560     ac_cv_header_winldap_h="no"
18561     ac_cv_header_winber_h="no"
18562     ;;
18563 esac
18564
18565     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
18566 $as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
18567   curl_win32_file_api="no"
18568   if test "$ac_cv_header_windows_h" = "yes"; then
18569     if test x"$enable_largefile" != "xno"; then
18570       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18571 /* end confdefs.h.  */
18572
18573
18574
18575 int main (void)
18576 {
18577
18578 #if !defined(_WIN32_WCE) && \
18579     (defined(__MINGW32__) || \
18580     (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
18581           int dummy=1;
18582 #else
18583           WIN32 large file API not supported.
18584 #endif
18585
18586  ;
18587  return 0;
18588 }
18589
18590 _ACEOF
18591 if ac_fn_c_try_compile "$LINENO"; then :
18592
18593         curl_win32_file_api="win32_large_files"
18594
18595 fi
18596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18597     fi
18598     if test "$curl_win32_file_api" = "no"; then
18599       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18600 /* end confdefs.h.  */
18601
18602
18603
18604 int main (void)
18605 {
18606
18607 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
18608           int dummy=1;
18609 #else
18610           WIN32 small file API not supported.
18611 #endif
18612
18613  ;
18614  return 0;
18615 }
18616
18617 _ACEOF
18618 if ac_fn_c_try_compile "$LINENO"; then :
18619
18620         curl_win32_file_api="win32_small_files"
18621
18622 fi
18623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18624     fi
18625   fi
18626   case "$curl_win32_file_api" in
18627     win32_large_files)
18628       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
18629 $as_echo "yes (large file enabled)" >&6; }
18630
18631 cat >>confdefs.h <<_ACEOF
18632 #define USE_WIN32_LARGE_FILES 1
18633 _ACEOF
18634
18635       ;;
18636     win32_small_files)
18637       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
18638 $as_echo "yes (large file disabled)" >&6; }
18639
18640 cat >>confdefs.h <<_ACEOF
18641 #define USE_WIN32_SMALL_FILES 1
18642 _ACEOF
18643
18644       ;;
18645     *)
18646       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18647 $as_echo "no" >&6; }
18648       ;;
18649   esac
18650
18651
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
18653 $as_echo_n "checking whether to support http... " >&6; }
18654 # Check whether --enable-http was given.
18655 if test "${enable_http+set}" = set; then :
18656   enableval=$enable_http;  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_HTTP 1" >>confdefs.h
18662
18663        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
18664 $as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
18665        CURL_DISABLE_HTTP=1
18666
18667
18668 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
18669
18670        CURL_DISABLE_RTSP=1
18671
18672        ;;
18673   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18674 $as_echo "yes" >&6; }
18675        ;;
18676   esac
18677 else
18678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18679 $as_echo "yes" >&6; }
18680
18681 fi
18682
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
18684 $as_echo_n "checking whether to support ftp... " >&6; }
18685 # Check whether --enable-ftp was given.
18686 if test "${enable_ftp+set}" = set; then :
18687   enableval=$enable_ftp;  case "$enableval" in
18688   no)
18689        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18690 $as_echo "no" >&6; }
18691
18692 $as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
18693
18694        CURL_DISABLE_FTP=1
18695
18696        ;;
18697   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18698 $as_echo "yes" >&6; }
18699        ;;
18700   esac
18701 else
18702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18703 $as_echo "yes" >&6; }
18704
18705 fi
18706
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
18708 $as_echo_n "checking whether to support file... " >&6; }
18709 # Check whether --enable-file was given.
18710 if test "${enable_file+set}" = set; then :
18711   enableval=$enable_file;  case "$enableval" in
18712   no)
18713        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18714 $as_echo "no" >&6; }
18715
18716 $as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
18717
18718        CURL_DISABLE_FILE=1
18719
18720        ;;
18721   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18722 $as_echo "yes" >&6; }
18723        ;;
18724   esac
18725 else
18726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18727 $as_echo "yes" >&6; }
18728
18729 fi
18730
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
18732 $as_echo_n "checking whether to support ldap... " >&6; }
18733 # Check whether --enable-ldap was given.
18734 if test "${enable_ldap+set}" = set; then :
18735   enableval=$enable_ldap;  case "$enableval" in
18736   no)
18737        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18738 $as_echo "no" >&6; }
18739
18740 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
18741
18742        CURL_DISABLE_LDAP=1
18743
18744        ;;
18745   *)
18746        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18747 $as_echo "yes" >&6; }
18748        ;;
18749   esac
18750 else
18751
18752        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18753 $as_echo "yes" >&6; }
18754
18755 fi
18756
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
18758 $as_echo_n "checking whether to support ldaps... " >&6; }
18759 # Check whether --enable-ldaps was given.
18760 if test "${enable_ldaps+set}" = set; then :
18761   enableval=$enable_ldaps;  case "$enableval" in
18762   no)
18763        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18764 $as_echo "no" >&6; }
18765
18766 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
18767
18768        CURL_DISABLE_LDAPS=1
18769
18770        ;;
18771   *)   if test "x$CURL_DISABLE_LDAP" = "x1" ; then
18772          { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
18773 $as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
18774
18775 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
18776
18777          CURL_DISABLE_LDAPS=1
18778
18779        else
18780          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18781 $as_echo "yes" >&6; }
18782
18783 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
18784
18785          HAVE_LDAP_SSL=1
18786
18787        fi
18788        ;;
18789   esac
18790 else
18791
18792        if test "x$CURL_DISABLE_LDAP" = "x1" ; then
18793          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18794 $as_echo "no" >&6; }
18795
18796 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
18797
18798          CURL_DISABLE_LDAPS=1
18799
18800        else
18801          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18802 $as_echo "yes" >&6; }
18803
18804 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
18805
18806          HAVE_LDAP_SSL=1
18807
18808        fi
18809
18810 fi
18811
18812
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
18814 $as_echo_n "checking whether to support rtsp... " >&6; }
18815 # Check whether --enable-rtsp was given.
18816 if test "${enable_rtsp+set}" = set; then :
18817   enableval=$enable_rtsp;  case "$enableval" in
18818   no)
18819        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18820 $as_echo "no" >&6; }
18821
18822 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
18823
18824        CURL_DISABLE_RTSP=1
18825
18826        ;;
18827   *)   if test x$CURL_DISABLE_HTTP = x1 ; then
18828           as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
18829        else
18830           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18831 $as_echo "yes" >&6; }
18832           curl_rtsp_msg="enabled"
18833        fi
18834        ;;
18835   esac
18836 else
18837   if test "x$CURL_DISABLE_HTTP" != "x1"; then
18838           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18839 $as_echo "yes" >&6; }
18840           curl_rtsp_msg="enabled"
18841        else
18842           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18843 $as_echo "no" >&6; }
18844        fi
18845
18846 fi
18847
18848
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
18850 $as_echo_n "checking whether to support proxies... " >&6; }
18851 # Check whether --enable-proxy was given.
18852 if test "${enable_proxy+set}" = set; then :
18853   enableval=$enable_proxy;  case "$enableval" in
18854   no)
18855        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18856 $as_echo "no" >&6; }
18857
18858 $as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
18859
18860        CURL_DISABLE_PROXY=1
18861
18862        ;;
18863   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18864 $as_echo "yes" >&6; }
18865        ;;
18866   esac
18867 else
18868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18869 $as_echo "yes" >&6; }
18870
18871 fi
18872
18873
18874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
18875 $as_echo_n "checking whether to support dict... " >&6; }
18876 # Check whether --enable-dict was given.
18877 if test "${enable_dict+set}" = set; then :
18878   enableval=$enable_dict;  case "$enableval" in
18879   no)
18880        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18881 $as_echo "no" >&6; }
18882
18883 $as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
18884
18885        CURL_DISABLE_DICT=1
18886
18887        ;;
18888   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18889 $as_echo "yes" >&6; }
18890        ;;
18891   esac
18892 else
18893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18894 $as_echo "yes" >&6; }
18895
18896 fi
18897
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
18899 $as_echo_n "checking whether to support telnet... " >&6; }
18900 # Check whether --enable-telnet was given.
18901 if test "${enable_telnet+set}" = set; then :
18902   enableval=$enable_telnet;  case "$enableval" in
18903   no)
18904        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18905 $as_echo "no" >&6; }
18906
18907 $as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
18908
18909        CURL_DISABLE_TELNET=1
18910
18911        ;;
18912   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18913 $as_echo "yes" >&6; }
18914        ;;
18915   esac
18916 else
18917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18918 $as_echo "yes" >&6; }
18919
18920 fi
18921
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
18923 $as_echo_n "checking whether to support tftp... " >&6; }
18924 # Check whether --enable-tftp was given.
18925 if test "${enable_tftp+set}" = set; then :
18926   enableval=$enable_tftp;  case "$enableval" in
18927   no)
18928        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18929 $as_echo "no" >&6; }
18930
18931 $as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
18932
18933        CURL_DISABLE_TFTP=1
18934
18935        ;;
18936   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18937 $as_echo "yes" >&6; }
18938        ;;
18939   esac
18940 else
18941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18942 $as_echo "yes" >&6; }
18943
18944 fi
18945
18946
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
18948 $as_echo_n "checking whether to support pop3... " >&6; }
18949 # Check whether --enable-pop3 was given.
18950 if test "${enable_pop3+set}" = set; then :
18951   enableval=$enable_pop3;  case "$enableval" in
18952   no)
18953        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18954 $as_echo "no" >&6; }
18955
18956 $as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
18957
18958        CURL_DISABLE_POP3=1
18959
18960        ;;
18961   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18962 $as_echo "yes" >&6; }
18963        ;;
18964   esac
18965 else
18966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18967 $as_echo "yes" >&6; }
18968
18969 fi
18970
18971
18972
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
18974 $as_echo_n "checking whether to support imap... " >&6; }
18975 # Check whether --enable-imap was given.
18976 if test "${enable_imap+set}" = set; then :
18977   enableval=$enable_imap;  case "$enableval" in
18978   no)
18979        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18980 $as_echo "no" >&6; }
18981
18982 $as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
18983
18984        CURL_DISABLE_IMAP=1
18985
18986        ;;
18987   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18988 $as_echo "yes" >&6; }
18989        ;;
18990   esac
18991 else
18992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18993 $as_echo "yes" >&6; }
18994
18995 fi
18996
18997
18998
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
19000 $as_echo_n "checking whether to support smb... " >&6; }
19001 # Check whether --enable-smb was given.
19002 if test "${enable_smb+set}" = set; then :
19003   enableval=$enable_smb;  case "$enableval" in
19004   no)
19005        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19006 $as_echo "no" >&6; }
19007
19008 $as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
19009
19010        CURL_DISABLE_SMB=1
19011
19012        ;;
19013   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19014 $as_echo "yes" >&6; }
19015        ;;
19016   esac
19017 else
19018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19019 $as_echo "yes" >&6; }
19020
19021 fi
19022
19023
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
19025 $as_echo_n "checking whether to support smtp... " >&6; }
19026 # Check whether --enable-smtp was given.
19027 if test "${enable_smtp+set}" = set; then :
19028   enableval=$enable_smtp;  case "$enableval" in
19029   no)
19030        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19031 $as_echo "no" >&6; }
19032
19033 $as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
19034
19035        CURL_DISABLE_SMTP=1
19036
19037        ;;
19038   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19039 $as_echo "yes" >&6; }
19040        ;;
19041   esac
19042 else
19043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19044 $as_echo "yes" >&6; }
19045
19046 fi
19047
19048
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
19050 $as_echo_n "checking whether to support gopher... " >&6; }
19051 # Check whether --enable-gopher was given.
19052 if test "${enable_gopher+set}" = set; then :
19053   enableval=$enable_gopher;  case "$enableval" in
19054   no)
19055        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19056 $as_echo "no" >&6; }
19057
19058 $as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
19059
19060        CURL_DISABLE_GOPHER=1
19061
19062        ;;
19063   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19064 $as_echo "yes" >&6; }
19065        ;;
19066   esac
19067 else
19068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19069 $as_echo "yes" >&6; }
19070
19071 fi
19072
19073
19074
19075
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
19077 $as_echo_n "checking whether to provide built-in manual... " >&6; }
19078 # Check whether --enable-manual was given.
19079 if test "${enable_manual+set}" = set; then :
19080   enableval=$enable_manual;  case "$enableval" in
19081   no)
19082        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19083 $as_echo "no" >&6; }
19084        ;;
19085   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19086 $as_echo "yes" >&6; }
19087        USE_MANUAL="1"
19088        ;;
19089   esac
19090 else
19091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19092 $as_echo "yes" >&6; }
19093        USE_MANUAL="1"
19094
19095 fi
19096
19097
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
19099 $as_echo_n "checking whether to enable generation of C code... " >&6; }
19100 # Check whether --enable-libcurl_option was given.
19101 if test "${enable_libcurl_option+set}" = set; then :
19102   enableval=$enable_libcurl_option;  case "$enableval" in
19103   no)
19104        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19105 $as_echo "no" >&6; }
19106
19107 $as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19108
19109        curl_libcurl_msg="no"
19110        ;;
19111   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19112 $as_echo "yes" >&6; }
19113        ;;
19114   esac
19115 else
19116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19117 $as_echo "yes" >&6; }
19118
19119 fi
19120
19121
19122
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19124 $as_echo_n "checking whether to use libgcc... " >&6; }
19125 # Check whether --enable-libgcc was given.
19126 if test "${enable_libgcc+set}" = set; then :
19127   enableval=$enable_libgcc;  case "$enableval" in
19128   yes)
19129        LIBS="-lgcc $LIBS"
19130        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19131 $as_echo "yes" >&6; }
19132        ;;
19133   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19134 $as_echo "no" >&6; }
19135        ;;
19136   esac
19137 else
19138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19139 $as_echo "no" >&6; }
19140
19141 fi
19142
19143
19144
19145   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19146 $as_echo_n "checking if X/Open network library is required... " >&6; }
19147   tst_lib_xnet_required="no"
19148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19149 /* end confdefs.h.  */
19150
19151
19152 int main (void)
19153 {
19154 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19155   return 0;
19156 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19157   return 0;
19158 #else
19159   force compilation error
19160 #endif
19161 }
19162
19163
19164 _ACEOF
19165 if ac_fn_c_try_compile "$LINENO"; then :
19166
19167     tst_lib_xnet_required="yes"
19168     LIBS="-lxnet $LIBS"
19169
19170 fi
19171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19173 $as_echo "$tst_lib_xnet_required" >&6; }
19174
19175
19176 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19177 if test "x$ac_cv_func_gethostbyname" = xyes; then :
19178   HAVE_GETHOSTBYNAME="1"
19179
19180 else
19181    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19182 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19183 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19184   $as_echo_n "(cached) " >&6
19185 else
19186   ac_check_lib_save_LIBS=$LIBS
19187 LIBS="-lnsl  $LIBS"
19188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19189 /* end confdefs.h.  */
19190
19191
19192 #ifdef __cplusplus
19193 extern "C"
19194 #endif
19195 char gethostbyname ();
19196 int main (void)
19197 {
19198 return gethostbyname ();
19199  ;
19200  return 0;
19201 }
19202 _ACEOF
19203 if ac_fn_c_try_link "$LINENO"; then :
19204   ac_cv_lib_nsl_gethostbyname=yes
19205 else
19206   ac_cv_lib_nsl_gethostbyname=no
19207 fi
19208 rm -f core conftest.err conftest.$ac_objext \
19209     conftest$ac_exeext conftest.$ac_ext
19210 LIBS=$ac_check_lib_save_LIBS
19211 fi
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19213 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19214 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19215   HAVE_GETHOSTBYNAME="1"
19216                              LIBS="-lnsl $LIBS"
19217
19218 fi
19219
19220
19221 fi
19222
19223
19224 if test "$HAVE_GETHOSTBYNAME" != "1"
19225 then
19226     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19227 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19228 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19229   $as_echo_n "(cached) " >&6
19230 else
19231   ac_check_lib_save_LIBS=$LIBS
19232 LIBS="-lsocket  $LIBS"
19233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19234 /* end confdefs.h.  */
19235
19236
19237 #ifdef __cplusplus
19238 extern "C"
19239 #endif
19240 char gethostbyname ();
19241 int main (void)
19242 {
19243 return gethostbyname ();
19244  ;
19245  return 0;
19246 }
19247 _ACEOF
19248 if ac_fn_c_try_link "$LINENO"; then :
19249   ac_cv_lib_socket_gethostbyname=yes
19250 else
19251   ac_cv_lib_socket_gethostbyname=no
19252 fi
19253 rm -f core conftest.err conftest.$ac_objext \
19254     conftest$ac_exeext conftest.$ac_ext
19255 LIBS=$ac_check_lib_save_LIBS
19256 fi
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19258 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19259 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19260   HAVE_GETHOSTBYNAME="1"
19261                LIBS="-lsocket $LIBS"
19262
19263 fi
19264
19265 fi
19266
19267 if test "$HAVE_GETHOSTBYNAME" != "1"
19268 then
19269     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19270 $as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19271 if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19272   $as_echo_n "(cached) " >&6
19273 else
19274   ac_check_lib_save_LIBS=$LIBS
19275 LIBS="-lwatt  $LIBS"
19276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19277 /* end confdefs.h.  */
19278
19279
19280 #ifdef __cplusplus
19281 extern "C"
19282 #endif
19283 char gethostbyname ();
19284 int main (void)
19285 {
19286 return gethostbyname ();
19287  ;
19288  return 0;
19289 }
19290 _ACEOF
19291 if ac_fn_c_try_link "$LINENO"; then :
19292   ac_cv_lib_watt_gethostbyname=yes
19293 else
19294   ac_cv_lib_watt_gethostbyname=no
19295 fi
19296 rm -f core conftest.err conftest.$ac_objext \
19297     conftest$ac_exeext conftest.$ac_ext
19298 LIBS=$ac_check_lib_save_LIBS
19299 fi
19300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19301 $as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19302 if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19303   HAVE_GETHOSTBYNAME="1"
19304                CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19305                LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19306                LIBS="-lwatt $LIBS"
19307
19308 fi
19309
19310 fi
19311
19312 if test "$HAVE_GETHOSTBYNAME" != "1"
19313 then
19314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19315 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19316   my_ac_save_LIBS=$LIBS
19317   LIBS="-lnsl -lsocket $LIBS"
19318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19319 /* end confdefs.h.  */
19320
19321
19322
19323 int main (void)
19324 {
19325
19326       gethostbyname();
19327
19328  ;
19329  return 0;
19330 }
19331
19332 _ACEOF
19333 if ac_fn_c_try_link "$LINENO"; then :
19334
19335     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19336 $as_echo "yes" >&6; }
19337     HAVE_GETHOSTBYNAME="1"
19338
19339 else
19340
19341     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19342 $as_echo "no" >&6; }
19343     LIBS=$my_ac_save_LIBS
19344
19345 fi
19346 rm -f core conftest.err conftest.$ac_objext \
19347     conftest$ac_exeext conftest.$ac_ext
19348 fi
19349
19350 if test "$HAVE_GETHOSTBYNAME" != "1"
19351 then
19352     if test "$ac_cv_header_windows_h" = "yes"; then
19353     if test "$ac_cv_header_winsock_h" = "yes"; then
19354       case $host in
19355         *-*-mingw32ce*)
19356           winsock_LIB="-lwinsock"
19357           ;;
19358         *)
19359           winsock_LIB="-lwsock32"
19360           ;;
19361       esac
19362     fi
19363     if test "$ac_cv_header_winsock2_h" = "yes"; then
19364       winsock_LIB="-lws2_32"
19365     fi
19366     if test ! -z "$winsock_LIB"; then
19367       my_ac_save_LIBS=$LIBS
19368       LIBS="$winsock_LIB $LIBS"
19369       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19370 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19371       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19372 /* end confdefs.h.  */
19373
19374
19375 #ifdef HAVE_WINDOWS_H
19376 #ifndef WIN32_LEAN_AND_MEAN
19377 #define WIN32_LEAN_AND_MEAN
19378 #endif
19379 #include <windows.h>
19380 #ifdef HAVE_WINSOCK2_H
19381 #include <winsock2.h>
19382 #else
19383 #ifdef HAVE_WINSOCK_H
19384 #include <winsock.h>
19385 #endif
19386 #endif
19387 #endif
19388
19389 int main (void)
19390 {
19391
19392           gethostbyname("www.dummysite.com");
19393
19394  ;
19395  return 0;
19396 }
19397
19398 _ACEOF
19399 if ac_fn_c_try_link "$LINENO"; then :
19400
19401         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19402 $as_echo "yes" >&6; }
19403         HAVE_GETHOSTBYNAME="1"
19404
19405 else
19406
19407         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19408 $as_echo "no" >&6; }
19409         winsock_LIB=""
19410         LIBS=$my_ac_save_LIBS
19411
19412 fi
19413 rm -f core conftest.err conftest.$ac_objext \
19414     conftest$ac_exeext conftest.$ac_ext
19415     fi
19416   fi
19417 fi
19418
19419 if test "$HAVE_GETHOSTBYNAME" != "1"
19420 then
19421     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
19422 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
19423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19424 /* end confdefs.h.  */
19425
19426
19427 /* Older Minix versions may need <net/gen/netdb.h> here instead */
19428 #include <netdb.h>
19429
19430 int main (void)
19431 {
19432
19433       gethostbyname("www.dummysite.com");
19434
19435  ;
19436  return 0;
19437 }
19438
19439 _ACEOF
19440 if ac_fn_c_try_link "$LINENO"; then :
19441
19442     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19443 $as_echo "yes" >&6; }
19444     HAVE_GETHOSTBYNAME="1"
19445
19446 else
19447
19448     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19449 $as_echo "no" >&6; }
19450
19451 fi
19452 rm -f core conftest.err conftest.$ac_objext \
19453     conftest$ac_exeext conftest.$ac_ext
19454 fi
19455
19456 if test "$HAVE_GETHOSTBYNAME" != "1"
19457 then
19458     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
19459 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
19460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19461 /* end confdefs.h.  */
19462
19463
19464 #include <stdio.h>
19465 #include <netdb.h>
19466
19467 int main (void)
19468 {
19469
19470       gethostbyname("www.dummysite.com");
19471
19472  ;
19473  return 0;
19474 }
19475
19476 _ACEOF
19477 if ac_fn_c_try_link "$LINENO"; then :
19478
19479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19480 $as_echo "yes" >&6; }
19481     HAVE_GETHOSTBYNAME="1"
19482
19483 else
19484
19485     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19486 $as_echo "no" >&6; }
19487
19488 fi
19489 rm -f core conftest.err conftest.$ac_objext \
19490     conftest$ac_exeext conftest.$ac_ext
19491 fi
19492
19493 if test "$HAVE_GETHOSTBYNAME" != "1"
19494 then
19495     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
19496 $as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
19497 if ${ac_cv_lib_network_gethostbyname+:} false; then :
19498   $as_echo_n "(cached) " >&6
19499 else
19500   ac_check_lib_save_LIBS=$LIBS
19501 LIBS="-lnetwork  $LIBS"
19502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19503 /* end confdefs.h.  */
19504
19505
19506 #ifdef __cplusplus
19507 extern "C"
19508 #endif
19509 char gethostbyname ();
19510 int main (void)
19511 {
19512 return gethostbyname ();
19513  ;
19514  return 0;
19515 }
19516 _ACEOF
19517 if ac_fn_c_try_link "$LINENO"; then :
19518   ac_cv_lib_network_gethostbyname=yes
19519 else
19520   ac_cv_lib_network_gethostbyname=no
19521 fi
19522 rm -f core conftest.err conftest.$ac_objext \
19523     conftest$ac_exeext conftest.$ac_ext
19524 LIBS=$ac_check_lib_save_LIBS
19525 fi
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
19527 $as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
19528 if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
19529   HAVE_GETHOSTBYNAME="1"
19530                LIBS="-lnetwork $LIBS"
19531
19532 fi
19533
19534 fi
19535
19536 if test "$HAVE_GETHOSTBYNAME" != "1"
19537 then
19538     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
19539 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
19540 if ${ac_cv_lib_net_gethostbyname+:} false; then :
19541   $as_echo_n "(cached) " >&6
19542 else
19543   ac_check_lib_save_LIBS=$LIBS
19544 LIBS="-lnet  $LIBS"
19545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19546 /* end confdefs.h.  */
19547
19548
19549 #ifdef __cplusplus
19550 extern "C"
19551 #endif
19552 char gethostbyname ();
19553 int main (void)
19554 {
19555 return gethostbyname ();
19556  ;
19557  return 0;
19558 }
19559 _ACEOF
19560 if ac_fn_c_try_link "$LINENO"; then :
19561   ac_cv_lib_net_gethostbyname=yes
19562 else
19563   ac_cv_lib_net_gethostbyname=no
19564 fi
19565 rm -f core conftest.err conftest.$ac_objext \
19566     conftest$ac_exeext conftest.$ac_ext
19567 LIBS=$ac_check_lib_save_LIBS
19568 fi
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
19570 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
19571 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
19572   HAVE_GETHOSTBYNAME="1"
19573                LIBS="-lnet $LIBS"
19574
19575 fi
19576
19577 fi
19578
19579
19580 if test "$HAVE_GETHOSTBYNAME" != "1"; then
19581   as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
19582 fi
19583
19584 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
19585 if test "x$ac_cv_func_strcasecmp" = xyes; then :
19586
19587 else
19588    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
19589 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
19590 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
19591   $as_echo_n "(cached) " >&6
19592 else
19593   ac_check_lib_save_LIBS=$LIBS
19594 LIBS="-lresolve  $LIBS"
19595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19596 /* end confdefs.h.  */
19597
19598
19599 #ifdef __cplusplus
19600 extern "C"
19601 #endif
19602 char strcasecmp ();
19603 int main (void)
19604 {
19605 return strcasecmp ();
19606  ;
19607  return 0;
19608 }
19609 _ACEOF
19610 if ac_fn_c_try_link "$LINENO"; then :
19611   ac_cv_lib_resolve_strcasecmp=yes
19612 else
19613   ac_cv_lib_resolve_strcasecmp=no
19614 fi
19615 rm -f core conftest.err conftest.$ac_objext \
19616     conftest$ac_exeext conftest.$ac_ext
19617 LIBS=$ac_check_lib_save_LIBS
19618 fi
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
19620 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
19621 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
19622   cat >>confdefs.h <<_ACEOF
19623 #define HAVE_LIBRESOLVE 1
19624 _ACEOF
19625
19626   LIBS="-lresolve $LIBS"
19627
19628 fi
19629
19630 fi
19631
19632
19633 if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
19634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
19635 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
19636 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
19637   $as_echo_n "(cached) " >&6
19638 else
19639   ac_check_lib_save_LIBS=$LIBS
19640 LIBS="-lresolve -lnsl $LIBS"
19641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19642 /* end confdefs.h.  */
19643
19644
19645 #ifdef __cplusplus
19646 extern "C"
19647 #endif
19648 char strcasecmp ();
19649 int main (void)
19650 {
19651 return strcasecmp ();
19652  ;
19653  return 0;
19654 }
19655 _ACEOF
19656 if ac_fn_c_try_link "$LINENO"; then :
19657   ac_cv_lib_resolve_strcasecmp=yes
19658 else
19659   ac_cv_lib_resolve_strcasecmp=no
19660 fi
19661 rm -f core conftest.err conftest.$ac_objext \
19662     conftest$ac_exeext conftest.$ac_ext
19663 LIBS=$ac_check_lib_save_LIBS
19664 fi
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
19666 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
19667 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
19668   LIBS="-lresolve $LIBS"
19669 fi
19670
19671 fi
19672 ac_cv_func_strcasecmp="no"
19673
19674
19675 curl_includes_winsock2="\
19676 /* includes start */
19677 #ifdef HAVE_WINDOWS_H
19678 #  ifndef WIN32_LEAN_AND_MEAN
19679 #    define WIN32_LEAN_AND_MEAN
19680 #  endif
19681 #  include <windows.h>
19682 #  ifdef HAVE_WINSOCK2_H
19683 #    include <winsock2.h>
19684 #  else
19685 #    ifdef HAVE_WINSOCK_H
19686 #      include <winsock.h>
19687 #    endif
19688 #  endif
19689 #endif
19690 /* includes end */"
19691
19692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
19693 $as_echo_n "checking for windows.h... " >&6; }
19694 if ${ac_cv_header_windows_h+:} false; then :
19695   $as_echo_n "(cached) " >&6
19696 else
19697
19698     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19699 /* end confdefs.h.  */
19700
19701
19702 #undef inline
19703 #ifndef WIN32_LEAN_AND_MEAN
19704 #define WIN32_LEAN_AND_MEAN
19705 #endif
19706 #include <windows.h>
19707
19708 int main (void)
19709 {
19710
19711 #if defined(__CYGWIN__) || defined(__CEGCC__)
19712         HAVE_WINDOWS_H shall not be defined.
19713 #else
19714         int dummy=2*WINVER;
19715 #endif
19716
19717  ;
19718  return 0;
19719 }
19720
19721 _ACEOF
19722 if ac_fn_c_try_compile "$LINENO"; then :
19723
19724       ac_cv_header_windows_h="yes"
19725
19726 else
19727
19728       ac_cv_header_windows_h="no"
19729
19730 fi
19731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19732
19733 fi
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
19735 $as_echo "$ac_cv_header_windows_h" >&6; }
19736   case "$ac_cv_header_windows_h" in
19737     yes)
19738
19739 cat >>confdefs.h <<_ACEOF
19740 #define HAVE_WINDOWS_H 1
19741 _ACEOF
19742
19743
19744 cat >>confdefs.h <<_ACEOF
19745 #define WIN32_LEAN_AND_MEAN 1
19746 _ACEOF
19747
19748       ;;
19749   esac
19750
19751
19752     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
19753 $as_echo_n "checking for winsock.h... " >&6; }
19754 if ${ac_cv_header_winsock_h+:} false; then :
19755   $as_echo_n "(cached) " >&6
19756 else
19757
19758     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19759 /* end confdefs.h.  */
19760
19761
19762 #undef inline
19763 #ifndef WIN32_LEAN_AND_MEAN
19764 #define WIN32_LEAN_AND_MEAN
19765 #endif
19766 #include <windows.h>
19767 #include <winsock.h>
19768
19769 int main (void)
19770 {
19771
19772 #if defined(__CYGWIN__) || defined(__CEGCC__)
19773         HAVE_WINSOCK_H shall not be defined.
19774 #else
19775         int dummy=WSACleanup();
19776 #endif
19777
19778  ;
19779  return 0;
19780 }
19781
19782 _ACEOF
19783 if ac_fn_c_try_compile "$LINENO"; then :
19784
19785       ac_cv_header_winsock_h="yes"
19786
19787 else
19788
19789       ac_cv_header_winsock_h="no"
19790
19791 fi
19792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19793
19794 fi
19795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
19796 $as_echo "$ac_cv_header_winsock_h" >&6; }
19797   case "$ac_cv_header_winsock_h" in
19798     yes)
19799
19800 cat >>confdefs.h <<_ACEOF
19801 #define HAVE_WINSOCK_H 1
19802 _ACEOF
19803
19804       ;;
19805   esac
19806
19807
19808     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
19809 $as_echo_n "checking for winsock2.h... " >&6; }
19810 if ${ac_cv_header_winsock2_h+:} false; then :
19811   $as_echo_n "(cached) " >&6
19812 else
19813
19814     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19815 /* end confdefs.h.  */
19816
19817
19818 #undef inline
19819 #ifndef WIN32_LEAN_AND_MEAN
19820 #define WIN32_LEAN_AND_MEAN
19821 #endif
19822 #include <windows.h>
19823 #include <winsock2.h>
19824
19825 int main (void)
19826 {
19827
19828 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
19829         HAVE_WINSOCK2_H shall not be defined.
19830 #else
19831         int dummy=2*IPPROTO_ESP;
19832 #endif
19833
19834  ;
19835  return 0;
19836 }
19837
19838 _ACEOF
19839 if ac_fn_c_try_compile "$LINENO"; then :
19840
19841       ac_cv_header_winsock2_h="yes"
19842
19843 else
19844
19845       ac_cv_header_winsock2_h="no"
19846
19847 fi
19848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19849
19850 fi
19851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
19852 $as_echo "$ac_cv_header_winsock2_h" >&6; }
19853   case "$ac_cv_header_winsock2_h" in
19854     yes)
19855
19856 cat >>confdefs.h <<_ACEOF
19857 #define HAVE_WINSOCK2_H 1
19858 _ACEOF
19859
19860       ;;
19861   esac
19862
19863
19864
19865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
19866 $as_echo_n "checking for connect in libraries... " >&6; }
19867   tst_connect_save_LIBS="$LIBS"
19868   tst_connect_need_LIBS="unknown"
19869   for tst_lib in '' '-lsocket' ; do
19870     if test "$tst_connect_need_LIBS" = "unknown"; then
19871       LIBS="$tst_lib $tst_connect_save_LIBS"
19872       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19873 /* end confdefs.h.  */
19874
19875
19876           $curl_includes_winsock2
19877           #ifndef HAVE_WINDOWS_H
19878             int connect(int, void*, int);
19879           #endif
19880
19881 int main (void)
19882 {
19883
19884           if(0 != connect(0, 0, 0))
19885             return 1;
19886
19887  ;
19888  return 0;
19889 }
19890
19891 _ACEOF
19892 if ac_fn_c_try_link "$LINENO"; then :
19893
19894         tst_connect_need_LIBS="$tst_lib"
19895
19896 fi
19897 rm -f core conftest.err conftest.$ac_objext \
19898     conftest$ac_exeext conftest.$ac_ext
19899     fi
19900   done
19901   LIBS="$tst_connect_save_LIBS"
19902   #
19903   case X-"$tst_connect_need_LIBS" in
19904     X-unknown)
19905       { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
19906 $as_echo "cannot find connect" >&6; }
19907       as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
19908       ;;
19909     X-)
19910       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19911 $as_echo "yes" >&6; }
19912       ;;
19913     *)
19914       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
19915 $as_echo "$tst_connect_need_LIBS" >&6; }
19916       LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
19917       ;;
19918   esac
19919
19920
19921 CURL_NETWORK_LIBS=$LIBS
19922
19923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19924 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19925 if ${ac_cv_header_time+:} false; then :
19926   $as_echo_n "(cached) " >&6
19927 else
19928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19929 /* end confdefs.h.  */
19930 #include <sys/types.h>
19931 #include <sys/time.h>
19932 #include <time.h>
19933
19934 int main (void)
19935 {
19936 if ((struct tm *) 0)
19937 return 0;
19938  ;
19939  return 0;
19940 }
19941 _ACEOF
19942 if ac_fn_c_try_compile "$LINENO"; then :
19943   ac_cv_header_time=yes
19944 else
19945   ac_cv_header_time=no
19946 fi
19947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19948 fi
19949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19950 $as_echo "$ac_cv_header_time" >&6; }
19951 if test $ac_cv_header_time = yes; then
19952
19953 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19954
19955 fi
19956
19957
19958     for ac_header in sys/types.h sys/time.h time.h
19959 do :
19960   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19961 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19962 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19963   cat >>confdefs.h <<_ACEOF
19964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19965 _ACEOF
19966
19967 fi
19968
19969 done
19970
19971   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
19972 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
19973   #
19974   if test "x$dontwant_rt" == "xno" ; then
19975     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19976 /* end confdefs.h.  */
19977
19978
19979 #ifdef HAVE_SYS_TYPES_H
19980 #include <sys/types.h>
19981 #endif
19982 #ifdef HAVE_SYS_TIME_H
19983 #include <sys/time.h>
19984 #ifdef TIME_WITH_SYS_TIME
19985 #include <time.h>
19986 #endif
19987 #else
19988 #ifdef HAVE_TIME_H
19989 #include <time.h>
19990 #endif
19991 #endif
19992
19993 int main (void)
19994 {
19995
19996         struct timespec ts;
19997         (void)clock_gettime(CLOCK_MONOTONIC, &ts);
19998
19999  ;
20000  return 0;
20001 }
20002
20003 _ACEOF
20004 if ac_fn_c_try_compile "$LINENO"; then :
20005
20006       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20007 $as_echo "yes" >&6; }
20008       ac_cv_func_clock_gettime="yes"
20009
20010 else
20011
20012       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20013 $as_echo "no" >&6; }
20014       ac_cv_func_clock_gettime="no"
20015
20016 fi
20017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20018   fi
20019
20020
20021     #
20022   if test "$ac_cv_func_clock_gettime" = "yes"; then
20023     #
20024     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
20025 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
20026     #
20027     curl_cv_save_LIBS="$LIBS"
20028     curl_cv_gclk_LIBS="unknown"
20029     #
20030     for x_xlibs in '' '-lrt' '-lposix4' ; do
20031       if test "$curl_cv_gclk_LIBS" = "unknown"; then
20032         if test -z "$x_xlibs"; then
20033           LIBS="$curl_cv_save_LIBS"
20034         else
20035           LIBS="$x_xlibs $curl_cv_save_LIBS"
20036         fi
20037         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20038 /* end confdefs.h.  */
20039
20040
20041 #ifdef HAVE_SYS_TYPES_H
20042 #include <sys/types.h>
20043 #endif
20044 #ifdef HAVE_SYS_TIME_H
20045 #include <sys/time.h>
20046 #ifdef TIME_WITH_SYS_TIME
20047 #include <time.h>
20048 #endif
20049 #else
20050 #ifdef HAVE_TIME_H
20051 #include <time.h>
20052 #endif
20053 #endif
20054
20055 int main (void)
20056 {
20057
20058             struct timespec ts;
20059             (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20060
20061  ;
20062  return 0;
20063 }
20064
20065 _ACEOF
20066 if ac_fn_c_try_link "$LINENO"; then :
20067
20068           curl_cv_gclk_LIBS="$x_xlibs"
20069
20070 fi
20071 rm -f core conftest.err conftest.$ac_objext \
20072     conftest$ac_exeext conftest.$ac_ext
20073       fi
20074     done
20075     #
20076     LIBS="$curl_cv_save_LIBS"
20077     #
20078     case X-"$curl_cv_gclk_LIBS" in
20079       X-unknown)
20080         { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
20081 $as_echo "cannot find clock_gettime" >&6; }
20082         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20083 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20084         ac_cv_func_clock_gettime="no"
20085         ;;
20086       X-)
20087         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20088 $as_echo "no additional lib required" >&6; }
20089         ac_cv_func_clock_gettime="yes"
20090         ;;
20091       *)
20092         if test -z "$curl_cv_save_LIBS"; then
20093           LIBS="$curl_cv_gclk_LIBS"
20094         else
20095           LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
20096         fi
20097         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
20098 $as_echo "$curl_cv_gclk_LIBS" >&6; }
20099         ac_cv_func_clock_gettime="yes"
20100         ;;
20101     esac
20102     #
20103         if test "x$cross_compiling" != "xyes" &&
20104       test "$ac_cv_func_clock_gettime" = "yes"; then
20105       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
20106 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
20107       if test "$cross_compiling" = yes; then :
20108   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20110 as_fn_error $? "cannot run test program while cross compiling
20111 See \`config.log' for more details" "$LINENO" 5; }
20112 else
20113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20114 /* end confdefs.h.  */
20115
20116
20117 #ifdef HAVE_STDLIB_H
20118 #include <stdlib.h>
20119 #endif
20120 #ifdef HAVE_SYS_TYPES_H
20121 #include <sys/types.h>
20122 #endif
20123 #ifdef HAVE_SYS_TIME_H
20124 #include <sys/time.h>
20125 #ifdef TIME_WITH_SYS_TIME
20126 #include <time.h>
20127 #endif
20128 #else
20129 #ifdef HAVE_TIME_H
20130 #include <time.h>
20131 #endif
20132 #endif
20133
20134 int main (void)
20135 {
20136
20137           struct timespec ts;
20138           if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20139             exit(0);
20140           else
20141             exit(1);
20142
20143  ;
20144  return 0;
20145 }
20146
20147 _ACEOF
20148 if ac_fn_c_try_run "$LINENO"; then :
20149
20150         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20151 $as_echo "yes" >&6; }
20152
20153 else
20154
20155         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20156 $as_echo "no" >&6; }
20157         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20158 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20159         ac_cv_func_clock_gettime="no"
20160         LIBS="$curl_cv_save_LIBS"
20161
20162 fi
20163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20164   conftest.$ac_objext conftest.beam conftest.$ac_ext
20165 fi
20166
20167     fi
20168     #
20169     case "$ac_cv_func_clock_gettime" in
20170       yes)
20171
20172 cat >>confdefs.h <<_ACEOF
20173 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
20174 _ACEOF
20175
20176         ;;
20177     esac
20178     #
20179   fi
20180   #
20181
20182
20183 CURL_NETWORK_AND_TIME_LIBS=$LIBS
20184
20185
20186
20187 clean_CPPFLAGS=$CPPFLAGS
20188 clean_LDFLAGS=$LDFLAGS
20189 clean_LIBS=$LIBS
20190 ZLIB_LIBS=""
20191
20192 # Check whether --with-zlib was given.
20193 if test "${with_zlib+set}" = set; then :
20194   withval=$with_zlib; OPT_ZLIB="$withval"
20195 fi
20196
20197
20198 if test "$OPT_ZLIB" = "no" ; then
20199     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20200 $as_echo "$as_me: WARNING: zlib disabled" >&2;}
20201 else
20202   if test "$OPT_ZLIB" = "yes" ; then
20203     OPT_ZLIB=""
20204   fi
20205
20206   if test -z "$OPT_ZLIB" ; then
20207
20208     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20209 $as_echo_n "checking for inflateEnd in -lz... " >&6; }
20210 if ${ac_cv_lib_z_inflateEnd+:} false; then :
20211   $as_echo_n "(cached) " >&6
20212 else
20213   ac_check_lib_save_LIBS=$LIBS
20214 LIBS="-lz  $LIBS"
20215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20216 /* end confdefs.h.  */
20217
20218
20219 #ifdef __cplusplus
20220 extern "C"
20221 #endif
20222 char inflateEnd ();
20223 int main (void)
20224 {
20225 return inflateEnd ();
20226  ;
20227  return 0;
20228 }
20229 _ACEOF
20230 if ac_fn_c_try_link "$LINENO"; then :
20231   ac_cv_lib_z_inflateEnd=yes
20232 else
20233   ac_cv_lib_z_inflateEnd=no
20234 fi
20235 rm -f core conftest.err conftest.$ac_objext \
20236     conftest$ac_exeext conftest.$ac_ext
20237 LIBS=$ac_check_lib_save_LIBS
20238 fi
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20240 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20241 if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20242                      HAVE_LIBZ="1"
20243                     LIBS="-lz $LIBS"
20244 else
20245                      OPT_ZLIB="/usr/local"
20246 fi
20247
20248
20249   fi
20250
20251     if test -n "$OPT_ZLIB"; then
20252      CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20253      LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20254   fi
20255
20256   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20257 if test "x$ac_cv_header_zlib_h" = xyes; then :
20258
20259         HAVE_ZLIB_H="1"
20260         if test "$HAVE_LIBZ" != "1"; then
20261       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20262 $as_echo_n "checking for gzread in -lz... " >&6; }
20263 if ${ac_cv_lib_z_gzread+:} false; then :
20264   $as_echo_n "(cached) " >&6
20265 else
20266   ac_check_lib_save_LIBS=$LIBS
20267 LIBS="-lz  $LIBS"
20268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20269 /* end confdefs.h.  */
20270
20271
20272 #ifdef __cplusplus
20273 extern "C"
20274 #endif
20275 char gzread ();
20276 int main (void)
20277 {
20278 return gzread ();
20279  ;
20280  return 0;
20281 }
20282 _ACEOF
20283 if ac_fn_c_try_link "$LINENO"; then :
20284   ac_cv_lib_z_gzread=yes
20285 else
20286   ac_cv_lib_z_gzread=no
20287 fi
20288 rm -f core conftest.err conftest.$ac_objext \
20289     conftest$ac_exeext conftest.$ac_ext
20290 LIBS=$ac_check_lib_save_LIBS
20291 fi
20292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20293 $as_echo "$ac_cv_lib_z_gzread" >&6; }
20294 if test "x$ac_cv_lib_z_gzread" = xyes; then :
20295
20296                                       HAVE_LIBZ="1"
20297                    LIBS="-lz $LIBS"
20298
20299 else
20300    CPPFLAGS=$clean_CPPFLAGS
20301                    LDFLAGS=$clean_LDFLAGS
20302 fi
20303
20304     fi
20305
20306 else
20307
20308             CPPFLAGS=$clean_CPPFLAGS
20309       LDFLAGS=$clean_LDFLAGS
20310
20311 fi
20312
20313
20314
20315   if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20316   then
20317     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20318 $as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20319     HAVE_LIBZ=""
20320     CPPFLAGS=$clean_CPPFLAGS
20321     LDFLAGS=$clean_LDFLAGS
20322     LIBS=$clean_LIBS
20323   elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20324   then
20325     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20326 $as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20327     CPPFLAGS=$clean_CPPFLAGS
20328     LDFLAGS=$clean_LDFLAGS
20329     LIBS=$clean_LIBS
20330   elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20331   then
20332
20333
20334 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20335
20336
20337 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20338
20339
20340     ZLIB_LIBS="-lz"
20341     LIBS="-lz $clean_LIBS"
20342
20343         AMFIXLIB="1"
20344     { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20345 $as_echo "$as_me: found both libz and libz.h header" >&6;}
20346     curl_zlib_msg="enabled"
20347   fi
20348 fi
20349
20350  if test x"$AMFIXLIB" = x1; then
20351   HAVE_LIBZ_TRUE=
20352   HAVE_LIBZ_FALSE='#'
20353 else
20354   HAVE_LIBZ_TRUE='#'
20355   HAVE_LIBZ_FALSE=
20356 fi
20357
20358
20359
20360
20361 LDAPLIBNAME=""
20362
20363 # Check whether --with-ldap-lib was given.
20364 if test "${with_ldap_lib+set}" = set; then :
20365   withval=$with_ldap_lib; LDAPLIBNAME="$withval"
20366 fi
20367
20368
20369 LBERLIBNAME=""
20370
20371 # Check whether --with-lber-lib was given.
20372 if test "${with_lber_lib+set}" = set; then :
20373   withval=$with_lber_lib; LBERLIBNAME="$withval"
20374 fi
20375
20376
20377 if test x$CURL_DISABLE_LDAP != x1 ; then
20378
20379
20380     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
20381 $as_echo_n "checking for lber.h... " >&6; }
20382 if ${ac_cv_header_lber_h+:} false; then :
20383   $as_echo_n "(cached) " >&6
20384 else
20385
20386     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20387 /* end confdefs.h.  */
20388
20389
20390 #undef inline
20391 #ifdef HAVE_WINDOWS_H
20392 #ifndef WIN32_LEAN_AND_MEAN
20393 #define WIN32_LEAN_AND_MEAN
20394 #endif
20395 #include <windows.h>
20396 #else
20397 #ifdef HAVE_SYS_TYPES_H
20398 #include <sys/types.h>
20399 #endif
20400 #endif
20401 #ifndef NULL
20402 #define NULL (void *)0
20403 #endif
20404 #include <lber.h>
20405
20406 int main (void)
20407 {
20408
20409         BerValue *bvp = NULL;
20410         BerElement *bep = ber_init(bvp);
20411         ber_free(bep, 1);
20412
20413  ;
20414  return 0;
20415 }
20416
20417 _ACEOF
20418 if ac_fn_c_try_compile "$LINENO"; then :
20419
20420       ac_cv_header_lber_h="yes"
20421
20422 else
20423
20424       ac_cv_header_lber_h="no"
20425
20426 fi
20427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20428
20429 fi
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_lber_h" >&5
20431 $as_echo "$ac_cv_header_lber_h" >&6; }
20432   if test "$ac_cv_header_lber_h" = "yes"; then
20433
20434 cat >>confdefs.h <<_ACEOF
20435 #define HAVE_LBER_H 1
20436 _ACEOF
20437
20438     #
20439     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20440 /* end confdefs.h.  */
20441
20442
20443 #undef inline
20444 #ifdef HAVE_WINDOWS_H
20445 #ifndef WIN32_LEAN_AND_MEAN
20446 #define WIN32_LEAN_AND_MEAN
20447 #endif
20448 #include <windows.h>
20449 #else
20450 #ifdef HAVE_SYS_TYPES_H
20451 #include <sys/types.h>
20452 #endif
20453 #endif
20454 #ifndef NULL
20455 #define NULL (void *)0
20456 #endif
20457 #ifndef LDAP_DEPRECATED
20458 #define LDAP_DEPRECATED 1
20459 #endif
20460 #include <ldap.h>
20461
20462 int main (void)
20463 {
20464
20465         BerValue *bvp = NULL;
20466         BerElement *bep = ber_init(bvp);
20467         ber_free(bep, 1);
20468
20469  ;
20470  return 0;
20471 }
20472
20473 _ACEOF
20474 if ac_fn_c_try_compile "$LINENO"; then :
20475
20476       curl_cv_need_header_lber_h="no"
20477
20478 else
20479
20480       curl_cv_need_header_lber_h="yes"
20481
20482 fi
20483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20484     #
20485     case "$curl_cv_need_header_lber_h" in
20486       yes)
20487
20488 cat >>confdefs.h <<_ACEOF
20489 #define NEED_LBER_H 1
20490 _ACEOF
20491
20492         ;;
20493     esac
20494   fi
20495
20496
20497     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
20498 $as_echo_n "checking for ldap.h... " >&6; }
20499 if ${ac_cv_header_ldap_h+:} false; then :
20500   $as_echo_n "(cached) " >&6
20501 else
20502
20503     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20504 /* end confdefs.h.  */
20505
20506
20507 #undef inline
20508 #ifdef HAVE_WINDOWS_H
20509 #ifndef WIN32_LEAN_AND_MEAN
20510 #define WIN32_LEAN_AND_MEAN
20511 #endif
20512 #include <windows.h>
20513 #else
20514 #ifdef HAVE_SYS_TYPES_H
20515 #include <sys/types.h>
20516 #endif
20517 #endif
20518 #ifndef LDAP_DEPRECATED
20519 #define LDAP_DEPRECATED 1
20520 #endif
20521 #ifdef NEED_LBER_H
20522 #include <lber.h>
20523 #endif
20524 #include <ldap.h>
20525
20526 int main (void)
20527 {
20528
20529         LDAP *ldp = ldap_init("dummy", LDAP_PORT);
20530         int res = ldap_unbind(ldp);
20531
20532  ;
20533  return 0;
20534 }
20535
20536 _ACEOF
20537 if ac_fn_c_try_compile "$LINENO"; then :
20538
20539       ac_cv_header_ldap_h="yes"
20540
20541 else
20542
20543       ac_cv_header_ldap_h="no"
20544
20545 fi
20546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20547
20548 fi
20549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldap_h" >&5
20550 $as_echo "$ac_cv_header_ldap_h" >&6; }
20551   case "$ac_cv_header_ldap_h" in
20552     yes)
20553
20554 cat >>confdefs.h <<_ACEOF
20555 #define HAVE_LDAP_H 1
20556 _ACEOF
20557
20558       ;;
20559   esac
20560
20561
20562     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
20563 $as_echo_n "checking for ldapssl.h... " >&6; }
20564 if ${ac_cv_header_ldapssl_h+:} false; then :
20565   $as_echo_n "(cached) " >&6
20566 else
20567
20568     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20569 /* end confdefs.h.  */
20570
20571
20572 #undef inline
20573 #ifdef HAVE_WINDOWS_H
20574 #ifndef WIN32_LEAN_AND_MEAN
20575 #define WIN32_LEAN_AND_MEAN
20576 #endif
20577 #include <windows.h>
20578 #else
20579 #ifdef HAVE_SYS_TYPES_H
20580 #include <sys/types.h>
20581 #endif
20582 #endif
20583 #ifndef NULL
20584 #define NULL (void *)0
20585 #endif
20586 #ifndef LDAP_DEPRECATED
20587 #define LDAP_DEPRECATED 1
20588 #endif
20589 #ifdef NEED_LBER_H
20590 #include <lber.h>
20591 #endif
20592 #ifdef HAVE_LDAP_H
20593 #include <ldap.h>
20594 #endif
20595 #include <ldapssl.h>
20596
20597 int main (void)
20598 {
20599
20600         char *cert_label = NULL;
20601         LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
20602
20603  ;
20604  return 0;
20605 }
20606
20607 _ACEOF
20608 if ac_fn_c_try_compile "$LINENO"; then :
20609
20610       ac_cv_header_ldapssl_h="yes"
20611
20612 else
20613
20614       ac_cv_header_ldapssl_h="no"
20615
20616 fi
20617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20618
20619 fi
20620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldapssl_h" >&5
20621 $as_echo "$ac_cv_header_ldapssl_h" >&6; }
20622   case "$ac_cv_header_ldapssl_h" in
20623     yes)
20624
20625 cat >>confdefs.h <<_ACEOF
20626 #define HAVE_LDAPSSL_H 1
20627 _ACEOF
20628
20629       ;;
20630   esac
20631
20632
20633     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
20634 $as_echo_n "checking for ldap_ssl.h... " >&6; }
20635 if ${ac_cv_header_ldap_ssl_h+:} false; then :
20636   $as_echo_n "(cached) " >&6
20637 else
20638
20639     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20640 /* end confdefs.h.  */
20641
20642
20643 #undef inline
20644 #ifdef HAVE_WINDOWS_H
20645 #ifndef WIN32_LEAN_AND_MEAN
20646 #define WIN32_LEAN_AND_MEAN
20647 #endif
20648 #include <windows.h>
20649 #else
20650 #ifdef HAVE_SYS_TYPES_H
20651 #include <sys/types.h>
20652 #endif
20653 #endif
20654 #ifndef LDAP_DEPRECATED
20655 #define LDAP_DEPRECATED 1
20656 #endif
20657 #ifdef NEED_LBER_H
20658 #include <lber.h>
20659 #endif
20660 #ifdef HAVE_LDAP_H
20661 #include <ldap.h>
20662 #endif
20663 #include <ldap_ssl.h>
20664
20665 int main (void)
20666 {
20667
20668         LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
20669
20670  ;
20671  return 0;
20672 }
20673
20674 _ACEOF
20675 if ac_fn_c_try_compile "$LINENO"; then :
20676
20677       ac_cv_header_ldap_ssl_h="yes"
20678
20679 else
20680
20681       ac_cv_header_ldap_ssl_h="no"
20682
20683 fi
20684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20685
20686 fi
20687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldap_ssl_h" >&5
20688 $as_echo "$ac_cv_header_ldap_ssl_h" >&6; }
20689   case "$ac_cv_header_ldap_ssl_h" in
20690     yes)
20691
20692 cat >>confdefs.h <<_ACEOF
20693 #define HAVE_LDAP_SSL_H 1
20694 _ACEOF
20695
20696       ;;
20697   esac
20698
20699
20700   if test -z "$LDAPLIBNAME" ; then
20701     if test "$ac_cv_native_windows" = "yes"; then
20702             LDAPLIBNAME="wldap32"
20703       LBERLIBNAME="no"
20704     fi
20705   fi
20706
20707   if test "$LDAPLIBNAME" ; then
20708     as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
20710 $as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
20711 if eval \${$as_ac_Lib+:} false; then :
20712   $as_echo_n "(cached) " >&6
20713 else
20714   ac_check_lib_save_LIBS=$LIBS
20715 LIBS="-l"$LDAPLIBNAME"  $LIBS"
20716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20717 /* end confdefs.h.  */
20718
20719
20720 #ifdef __cplusplus
20721 extern "C"
20722 #endif
20723 char ldap_init ();
20724 int main (void)
20725 {
20726 return ldap_init ();
20727  ;
20728  return 0;
20729 }
20730 _ACEOF
20731 if ac_fn_c_try_link "$LINENO"; then :
20732   eval "$as_ac_Lib=yes"
20733 else
20734   eval "$as_ac_Lib=no"
20735 fi
20736 rm -f core conftest.err conftest.$ac_objext \
20737     conftest$ac_exeext conftest.$ac_ext
20738 LIBS=$ac_check_lib_save_LIBS
20739 fi
20740 eval ac_res=\$$as_ac_Lib
20741                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20742 $as_echo "$ac_res" >&6; }
20743 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20744   cat >>confdefs.h <<_ACEOF
20745 #define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
20746 _ACEOF
20747
20748   LIBS="-l"$LDAPLIBNAME" $LIBS"
20749
20750 else
20751
20752       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
20753 $as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
20754
20755 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
20756
20757       CURL_DISABLE_LDAP=1
20758
20759
20760 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20761
20762       CURL_DISABLE_LDAPS=1
20763
20764 fi
20765
20766   else
20767
20768     #
20769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
20770 $as_echo_n "checking for LDAP libraries... " >&6; }
20771   #
20772   u_libs=""
20773   #
20774
20775   #
20776   curl_cv_save_LIBS="$LIBS"
20777   curl_cv_ldap_LIBS="unknown"
20778   #
20779   for x_nlibs in '' "$u_libs" \
20780     '-lldap' \
20781     '-llber -lldap' \
20782     '-lldap -llber' \
20783     '-lldapssl -lldapx -lldapsdk' \
20784     '-lldapsdk -lldapx -lldapssl' ; do
20785     if test "$curl_cv_ldap_LIBS" = "unknown"; then
20786       if test -z "$x_nlibs"; then
20787         LIBS="$curl_cv_save_LIBS"
20788       else
20789         LIBS="$x_nlibs $curl_cv_save_LIBS"
20790       fi
20791       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20792 /* end confdefs.h.  */
20793
20794
20795 #undef inline
20796 #ifdef HAVE_WINDOWS_H
20797 #ifndef WIN32_LEAN_AND_MEAN
20798 #define WIN32_LEAN_AND_MEAN
20799 #endif
20800 #include <windows.h>
20801 #else
20802 #ifdef HAVE_SYS_TYPES_H
20803 #include <sys/types.h>
20804 #endif
20805 #endif
20806 #ifndef NULL
20807 #define NULL (void *)0
20808 #endif
20809 #ifndef LDAP_DEPRECATED
20810 #define LDAP_DEPRECATED 1
20811 #endif
20812 #ifdef NEED_LBER_H
20813 #include <lber.h>
20814 #endif
20815 #ifdef HAVE_LDAP_H
20816 #include <ldap.h>
20817 #endif
20818
20819 int main (void)
20820 {
20821
20822           BerValue *bvp = NULL;
20823           BerElement *bep = ber_init(bvp);
20824           LDAP *ldp = ldap_init("dummy", LDAP_PORT);
20825           int res = ldap_unbind(ldp);
20826           ber_free(bep, 1);
20827
20828  ;
20829  return 0;
20830 }
20831
20832 _ACEOF
20833 if ac_fn_c_try_link "$LINENO"; then :
20834
20835         curl_cv_ldap_LIBS="$x_nlibs"
20836
20837 fi
20838 rm -f core conftest.err conftest.$ac_objext \
20839     conftest$ac_exeext conftest.$ac_ext
20840     fi
20841   done
20842   #
20843   LIBS="$curl_cv_save_LIBS"
20844   #
20845   case X-"$curl_cv_ldap_LIBS" in
20846     X-unknown)
20847       { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
20848 $as_echo "cannot find LDAP libraries" >&6; }
20849       ;;
20850     X-)
20851       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20852 $as_echo "no additional lib required" >&6; }
20853       ;;
20854     *)
20855       if test -z "$curl_cv_save_LIBS"; then
20856         LIBS="$curl_cv_ldap_LIBS"
20857       else
20858         LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
20859       fi
20860       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
20861 $as_echo "$curl_cv_ldap_LIBS" >&6; }
20862       ;;
20863   esac
20864   #
20865
20866     case X-"$curl_cv_ldap_LIBS" in
20867       X-unknown)
20868         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
20869 $as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
20870
20871 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
20872
20873         CURL_DISABLE_LDAP=1
20874
20875
20876 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20877
20878         CURL_DISABLE_LDAPS=1
20879
20880         ;;
20881     esac
20882   fi
20883 fi
20884
20885 if test x$CURL_DISABLE_LDAP != x1 ; then
20886
20887   if test "$LBERLIBNAME" ; then
20888             if test "$LBERLIBNAME" != "no" ; then
20889       as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
20890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
20891 $as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
20892 if eval \${$as_ac_Lib+:} false; then :
20893   $as_echo_n "(cached) " >&6
20894 else
20895   ac_check_lib_save_LIBS=$LIBS
20896 LIBS="-l"$LBERLIBNAME"  $LIBS"
20897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20898 /* end confdefs.h.  */
20899
20900
20901 #ifdef __cplusplus
20902 extern "C"
20903 #endif
20904 char ber_free ();
20905 int main (void)
20906 {
20907 return ber_free ();
20908  ;
20909  return 0;
20910 }
20911 _ACEOF
20912 if ac_fn_c_try_link "$LINENO"; then :
20913   eval "$as_ac_Lib=yes"
20914 else
20915   eval "$as_ac_Lib=no"
20916 fi
20917 rm -f core conftest.err conftest.$ac_objext \
20918     conftest$ac_exeext conftest.$ac_ext
20919 LIBS=$ac_check_lib_save_LIBS
20920 fi
20921 eval ac_res=\$$as_ac_Lib
20922                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20923 $as_echo "$ac_res" >&6; }
20924 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20925   cat >>confdefs.h <<_ACEOF
20926 #define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
20927 _ACEOF
20928
20929   LIBS="-l"$LBERLIBNAME" $LIBS"
20930
20931 else
20932
20933         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
20934 $as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
20935
20936 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
20937
20938         CURL_DISABLE_LDAP=1
20939
20940
20941 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20942
20943         CURL_DISABLE_LDAPS=1
20944
20945 fi
20946
20947     fi
20948   fi
20949 fi
20950
20951 if test x$CURL_DISABLE_LDAP != x1 ; then
20952   for ac_func in ldap_url_parse ldap_init_fd
20953 do :
20954   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20955 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20956 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20957   cat >>confdefs.h <<_ACEOF
20958 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20959 _ACEOF
20960
20961 fi
20962 done
20963
20964
20965   if test "$LDAPLIBNAME" = "wldap32"; then
20966     curl_ldap_msg="enabled (winldap)"
20967
20968 $as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
20969
20970   else
20971     curl_ldap_msg="enabled (OpenLDAP)"
20972     if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
20973
20974 $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
20975
20976       USE_OPENLDAP=1
20977
20978     fi
20979   fi
20980 fi
20981
20982 if test x$CURL_DISABLE_LDAPS != x1 ; then
20983     curl_ldaps_msg="enabled"
20984 fi
20985
20986
20987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
20988 $as_echo_n "checking whether to enable IPv6... " >&6; }
20989 # Check whether --enable-ipv6 was given.
20990 if test "${enable_ipv6+set}" = set; then :
20991   enableval=$enable_ipv6;  case "$enableval" in
20992   no)
20993        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20994 $as_echo "no" >&6; }
20995        ipv6=no
20996        ;;
20997   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20998 $as_echo "yes" >&6; }
20999        ipv6=yes
21000        ;;
21001   esac
21002 else
21003   if test "$cross_compiling" = yes; then :
21004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21005 $as_echo "no" >&6; }
21006   ipv6=no
21007
21008 else
21009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21010 /* end confdefs.h.  */
21011  /* is AF_INET6 available? */
21012 #include <sys/types.h>
21013 #include <sys/socket.h>
21014 #include <stdlib.h> /* for exit() */
21015 main()
21016 {
21017  if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
21018    exit(1);
21019  else
21020    exit(0);
21021 }
21022
21023 _ACEOF
21024 if ac_fn_c_try_run "$LINENO"; then :
21025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21026 $as_echo "yes" >&6; }
21027   ipv6=yes
21028 else
21029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21030 $as_echo "no" >&6; }
21031   ipv6=no
21032 fi
21033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21034   conftest.$ac_objext conftest.beam conftest.$ac_ext
21035 fi
21036
21037 fi
21038
21039
21040 if test "$ipv6" = "yes"; then
21041   curl_ipv6_msg="enabled"
21042 fi
21043
21044 # Check if struct sockaddr_in6 have sin6_scope_id member
21045 if test "$ipv6" = yes; then
21046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
21047 $as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
21048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21049 /* end confdefs.h.  */
21050
21051 #include <sys/types.h>
21052 #include <netinet/in.h>
21053 int main (void)
21054 {
21055 struct sockaddr_in6 s; s.sin6_scope_id = 0;
21056  ;
21057  return 0;
21058 }
21059 _ACEOF
21060 if ac_fn_c_try_compile "$LINENO"; then :
21061   have_sin6_scope_id=yes
21062 fi
21063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21064   if test "$have_sin6_scope_id" = yes; then
21065     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21066 $as_echo "yes" >&6; }
21067
21068 $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
21069
21070   else
21071     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21072 $as_echo "no" >&6; }
21073   fi
21074 fi
21075
21076
21077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
21078 $as_echo_n "checking if argv can be written to... " >&6; }
21079 if test "$cross_compiling" = yes; then :
21080
21081   curl_cv_writable_argv=cross
21082
21083 else
21084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21085 /* end confdefs.h.  */
21086
21087
21088 int main(int argc, char ** argv) {
21089     argv[0][0] = ' ';
21090     return (argv[0][0] == ' ')?0:1;
21091 }
21092
21093
21094 _ACEOF
21095 if ac_fn_c_try_run "$LINENO"; then :
21096
21097   curl_cv_writable_argv=yes
21098
21099 else
21100
21101   curl_cv_writable_argv=no
21102
21103 fi
21104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21105   conftest.$ac_objext conftest.beam conftest.$ac_ext
21106 fi
21107
21108 case $curl_cv_writable_argv in
21109 yes)
21110
21111 $as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
21112
21113         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21114 $as_echo "yes" >&6; }
21115         ;;
21116 no)
21117         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21118 $as_echo "no" >&6; }
21119         ;;
21120 *)
21121         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21122 $as_echo "no" >&6; }
21123         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
21124 $as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
21125         ;;
21126 esac
21127
21128
21129
21130 GSSAPI_ROOT="/usr"
21131
21132 # Check whether --with-gssapi-includes was given.
21133 if test "${with_gssapi_includes+set}" = set; then :
21134   withval=$with_gssapi_includes;  GSSAPI_INCS="-I$withval"
21135     want_gss="yes"
21136
21137 fi
21138
21139
21140
21141 # Check whether --with-gssapi-libs was given.
21142 if test "${with_gssapi_libs+set}" = set; then :
21143   withval=$with_gssapi_libs;  GSSAPI_LIB_DIR="-L$withval"
21144     want_gss="yes"
21145
21146 fi
21147
21148
21149
21150 # Check whether --with-gssapi was given.
21151 if test "${with_gssapi+set}" = set; then :
21152   withval=$with_gssapi;
21153   GSSAPI_ROOT="$withval"
21154   if test x"$GSSAPI_ROOT" != xno; then
21155     want_gss="yes"
21156     if test x"$GSSAPI_ROOT" = xyes; then
21157             GSSAPI_ROOT="/usr"
21158     fi
21159   fi
21160
21161 fi
21162
21163
21164 : ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
21165
21166 save_CPPFLAGS="$CPPFLAGS"
21167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
21168 $as_echo_n "checking if GSS-API support is requested... " >&6; }
21169 if test x"$want_gss" = xyes; then
21170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21171 $as_echo "yes" >&6; }
21172
21173   if test -z "$GSSAPI_INCS"; then
21174      if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21175         GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
21176      elif test -f "$KRB5CONFIG"; then
21177         GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
21178      elif test "$GSSAPI_ROOT" != "yes"; then
21179         GSSAPI_INCS="-I$GSSAPI_ROOT/include"
21180      fi
21181   fi
21182
21183   CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
21184
21185   ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
21186 if test "x$ac_cv_header_gss_h" = xyes; then :
21187
21188
21189 $as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
21190
21191       gnu_gss=yes
21192
21193 else
21194
21195             for ac_header in gssapi/gssapi.h
21196 do :
21197   ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
21198 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
21199   cat >>confdefs.h <<_ACEOF
21200 #define HAVE_GSSAPI_GSSAPI_H 1
21201 _ACEOF
21202
21203 else
21204   not_mit=1
21205 fi
21206
21207 done
21208
21209       for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
21210 do :
21211   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21212 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
21213 $ac_includes_default
21214 #ifdef HAVE_GSSAPI_GSSAPI_H
21215 #include <gssapi/gssapi.h>
21216 #endif
21217
21218 "
21219 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21220   cat >>confdefs.h <<_ACEOF
21221 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21222 _ACEOF
21223
21224 else
21225   not_mit=1
21226 fi
21227
21228 done
21229
21230       if test "x$not_mit" = "x1"; then
21231                 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
21232 if test "x$ac_cv_header_gssapi_h" = xyes; then :
21233
21234
21235 $as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
21236
21237
21238 else
21239
21240                             want_gss=no
21241               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
21242 $as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
21243
21244
21245 fi
21246
21247
21248       else
21249
21250 $as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
21251
21252                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
21253 $as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
21254         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21255 /* end confdefs.h.  */
21256
21257
21258 #include <gssapi/gssapi.h>
21259 #include <gssapi/gssapi_generic.h>
21260 #include <gssapi/gssapi_krb5.h>
21261
21262 int main (void)
21263 {
21264
21265             gss_import_name(
21266                             (OM_uint32 *)0,
21267                             (gss_buffer_t)0,
21268                             GSS_C_NT_HOSTBASED_SERVICE,
21269                             (gss_name_t *)0);
21270
21271  ;
21272  return 0;
21273 }
21274
21275 _ACEOF
21276 if ac_fn_c_try_compile "$LINENO"; then :
21277
21278           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21279 $as_echo "yes" >&6; }
21280
21281 else
21282
21283           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21284 $as_echo "no" >&6; }
21285
21286 $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
21287
21288
21289 fi
21290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21291       fi
21292
21293
21294 fi
21295
21296
21297 else
21298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21299 $as_echo "no" >&6; }
21300 fi
21301 if test x"$want_gss" = xyes; then
21302
21303 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
21304
21305   HAVE_GSSAPI=1
21306   curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
21307
21308   if test -n "$gnu_gss"; then
21309     curl_gss_msg="enabled (GNU GSS)"
21310     LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
21311     LIBS="-lgss $LIBS"
21312   elif test -z "$GSSAPI_LIB_DIR"; then
21313      case $host in
21314      *-*-darwin*)
21315         LIBS="-lgssapi_krb5 -lresolv $LIBS"
21316         ;;
21317      *)
21318         if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21319                                  gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
21320            LIBS="$gss_libs $LIBS"
21321         elif test -f "$KRB5CONFIG"; then
21322                                  gss_libs=`$KRB5CONFIG --libs gssapi`
21323            LIBS="$gss_libs $LIBS"
21324         else
21325            case $host in
21326            *-hp-hpux*)
21327               gss_libname="gss"
21328               ;;
21329            *)
21330               gss_libname="gssapi"
21331               ;;
21332            esac
21333
21334            if test "$GSSAPI_ROOT" != "yes"; then
21335               LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
21336               LIBS="-l$gss_libname $LIBS"
21337            else
21338               LIBS="-l$gss_libname $LIBS"
21339            fi
21340         fi
21341         ;;
21342      esac
21343   else
21344      LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
21345      case $host in
21346      *-hp-hpux*)
21347         LIBS="-lgss $LIBS"
21348         ;;
21349      *)
21350         LIBS="-lgssapi $LIBS"
21351         ;;
21352      esac
21353   fi
21354 else
21355   CPPFLAGS="$save_CPPFLAGS"
21356 fi
21357
21358
21359 OPT_WINSSL=no
21360
21361 # Check whether --with-winssl was given.
21362 if test "${with_winssl+set}" = set; then :
21363   withval=$with_winssl; OPT_WINSSL=$withval
21364 fi
21365
21366
21367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
21368 $as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
21369 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
21370   if test "x$OPT_WINSSL" != "xno"  &&
21371      test "x$ac_cv_native_windows" = "xyes"; then
21372     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21373 $as_echo "yes" >&6; }
21374
21375 $as_echo "#define USE_SCHANNEL 1" >>confdefs.h
21376
21377     USE_SCHANNEL=1
21378
21379     curl_ssl_msg="enabled (Windows-native)"
21380     WINSSL_ENABLED=1
21381     # --with-winssl implies --enable-sspi
21382
21383 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
21384
21385     USE_WINDOWS_SSPI=1
21386
21387     curl_sspi_msg="enabled"
21388   else
21389     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21390 $as_echo "no" >&6; }
21391   fi
21392 else
21393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21394 $as_echo "no" >&6; }
21395 fi
21396
21397 OPT_DARWINSSL=no
21398
21399 # Check whether --with-darwinssl was given.
21400 if test "${with_darwinssl+set}" = set; then :
21401   withval=$with_darwinssl; OPT_DARWINSSL=$withval
21402 fi
21403
21404
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable iOS/Mac OS X native SSL/TLS" >&5
21406 $as_echo_n "checking whether to enable iOS/Mac OS X native SSL/TLS... " >&6; }
21407 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
21408   if test "x$OPT_DARWINSSL" != "xno" &&
21409      test -d "/System/Library/Frameworks/Security.framework"; then
21410     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21411 $as_echo "yes" >&6; }
21412
21413 $as_echo "#define USE_DARWINSSL 1" >>confdefs.h
21414
21415     USE_DARWINSSL=1
21416
21417     curl_ssl_msg="enabled (iOS/Mac OS X-native)"
21418     DARWINSSL_ENABLED=1
21419     LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
21420   else
21421     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21422 $as_echo "no" >&6; }
21423   fi
21424 else
21425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21426 $as_echo "no" >&6; }
21427 fi
21428
21429
21430 OPT_SSL=off
21431 ca="no"
21432
21433 # Check whether --with-ssl was given.
21434 if test "${with_ssl+set}" = set; then :
21435   withval=$with_ssl; OPT_SSL=$withval
21436 fi
21437
21438
21439 if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then
21440     CLEANLDFLAGS="$LDFLAGS"
21441   CLEANCPPFLAGS="$CPPFLAGS"
21442   CLEANLIBS="$LIBS"
21443
21444   case "$OPT_SSL" in
21445   yes)
21446         if test x$cross_compiling != xyes; then
21447             PKGTEST="yes"
21448     fi
21449     PREFIX_OPENSSL=/usr/local/ssl
21450     LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
21451     ;;
21452   off)
21453         if test x$cross_compiling != xyes; then
21454             PKGTEST="yes"
21455     fi
21456     PREFIX_OPENSSL=
21457     ;;
21458   *)
21459         PKGTEST="no"
21460     PREFIX_OPENSSL=$OPT_SSL
21461
21462                 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
21463     { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
21464 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
21465     if test -f "$OPENSSL_PCDIR/openssl.pc"; then
21466       PKGTEST="yes"
21467     fi
21468
21469             LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
21470     if test "$PREFIX_OPENSSL" != "/usr" ; then
21471       SSL_LDFLAGS="-L$LIB_OPENSSL"
21472       SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
21473     fi
21474     SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
21475     ;;
21476   esac
21477
21478   if test "$PKGTEST" = "yes"; then
21479
21480
21481
21482     PKGCONFIG="no"
21483
21484     if test -n "$ac_tool_prefix"; then
21485   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21486 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21488 $as_echo_n "checking for $ac_word... " >&6; }
21489 if ${ac_cv_path_PKGCONFIG+:} false; then :
21490   $as_echo_n "(cached) " >&6
21491 else
21492   case $PKGCONFIG in
21493   [\\/]* | ?:[\\/]*)
21494   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21495   ;;
21496   *)
21497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21498 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21499 for as_dir in $as_dummy
21500 do
21501   IFS=$as_save_IFS
21502   test -z "$as_dir" && as_dir=.
21503     for ac_exec_ext in '' $ac_executable_extensions; do
21504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21505     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21507     break 2
21508   fi
21509 done
21510   done
21511 IFS=$as_save_IFS
21512
21513   ;;
21514 esac
21515 fi
21516 PKGCONFIG=$ac_cv_path_PKGCONFIG
21517 if test -n "$PKGCONFIG"; then
21518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21519 $as_echo "$PKGCONFIG" >&6; }
21520 else
21521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21522 $as_echo "no" >&6; }
21523 fi
21524
21525
21526 fi
21527 if test -z "$ac_cv_path_PKGCONFIG"; then
21528   ac_pt_PKGCONFIG=$PKGCONFIG
21529   # Extract the first word of "pkg-config", so it can be a program name with args.
21530 set dummy pkg-config; ac_word=$2
21531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21532 $as_echo_n "checking for $ac_word... " >&6; }
21533 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
21534   $as_echo_n "(cached) " >&6
21535 else
21536   case $ac_pt_PKGCONFIG in
21537   [\\/]* | ?:[\\/]*)
21538   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
21539   ;;
21540   *)
21541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21542 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21543 for as_dir in $as_dummy
21544 do
21545   IFS=$as_save_IFS
21546   test -z "$as_dir" && as_dir=.
21547     for ac_exec_ext in '' $ac_executable_extensions; do
21548   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21549     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21551     break 2
21552   fi
21553 done
21554   done
21555 IFS=$as_save_IFS
21556
21557   ;;
21558 esac
21559 fi
21560 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21561 if test -n "$ac_pt_PKGCONFIG"; then
21562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21563 $as_echo "$ac_pt_PKGCONFIG" >&6; }
21564 else
21565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21566 $as_echo "no" >&6; }
21567 fi
21568
21569   if test "x$ac_pt_PKGCONFIG" = x; then
21570     PKGCONFIG="no"
21571   else
21572     case $cross_compiling:$ac_tool_warned in
21573 yes:)
21574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21576 ac_tool_warned=yes ;;
21577 esac
21578     PKGCONFIG=$ac_pt_PKGCONFIG
21579   fi
21580 else
21581   PKGCONFIG="$ac_cv_path_PKGCONFIG"
21582 fi
21583
21584
21585     if test x$PKGCONFIG != xno; then
21586       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
21587 $as_echo_n "checking for openssl options with pkg-config... " >&6; }
21588             itexists=`
21589     if test -n "$OPENSSL_PCDIR"; then
21590       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
21591       export PKG_CONFIG_LIBDIR
21592     fi
21593          $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
21594
21595       if test -z "$itexists"; then
21596                         PKGCONFIG="no"
21597         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21598 $as_echo "no" >&6; }
21599       else
21600         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
21601 $as_echo "found" >&6; }
21602       fi
21603     fi
21604
21605
21606     if test "$PKGCONFIG" != "no" ; then
21607       SSL_LIBS=`
21608     if test -n "$OPENSSL_PCDIR"; then
21609       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
21610       export PKG_CONFIG_LIBDIR
21611     fi
21612          $PKGCONFIG --libs-only-l openssl 2>/dev/null`
21613
21614       SSL_LDFLAGS=`
21615     if test -n "$OPENSSL_PCDIR"; then
21616       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
21617       export PKG_CONFIG_LIBDIR
21618     fi
21619          $PKGCONFIG --libs-only-L openssl 2>/dev/null`
21620
21621       SSL_CPPFLAGS=`
21622     if test -n "$OPENSSL_PCDIR"; then
21623       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
21624       export PKG_CONFIG_LIBDIR
21625     fi
21626          $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
21627
21628
21629       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
21630 $as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
21631       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
21632 $as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
21633       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
21634 $as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
21635
21636       LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
21637
21638                                           LIBS="$SSL_LIBS $LIBS"
21639     fi
21640   fi
21641
21642     CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
21643   LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
21644
21645     case $host in
21646     *-*-msys* | *-*-mingw*)
21647       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
21648 $as_echo_n "checking for gdi32... " >&6; }
21649       my_ac_save_LIBS=$LIBS
21650       LIBS="-lgdi32 $LIBS"
21651       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21652 /* end confdefs.h.  */
21653 #include <windef.h>
21654                    #include <wingdi.h>
21655 int main (void)
21656 {
21657 GdiFlush();
21658  ;
21659  return 0;
21660 }
21661 _ACEOF
21662 if ac_fn_c_try_link "$LINENO"; then :
21663                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21664 $as_echo "yes" >&6; }
21665 else
21666                       LIBS=$my_ac_save_LIBS
21667                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21668 $as_echo "no" >&6; }
21669
21670 fi
21671 rm -f core conftest.err conftest.$ac_objext \
21672     conftest$ac_exeext conftest.$ac_ext
21673       ;;
21674   esac
21675
21676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_lock in -lcrypto" >&5
21677 $as_echo_n "checking for CRYPTO_lock in -lcrypto... " >&6; }
21678 if ${ac_cv_lib_crypto_CRYPTO_lock+:} false; then :
21679   $as_echo_n "(cached) " >&6
21680 else
21681   ac_check_lib_save_LIBS=$LIBS
21682 LIBS="-lcrypto  $LIBS"
21683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21684 /* end confdefs.h.  */
21685
21686
21687 #ifdef __cplusplus
21688 extern "C"
21689 #endif
21690 char CRYPTO_lock ();
21691 int main (void)
21692 {
21693 return CRYPTO_lock ();
21694  ;
21695  return 0;
21696 }
21697 _ACEOF
21698 if ac_fn_c_try_link "$LINENO"; then :
21699   ac_cv_lib_crypto_CRYPTO_lock=yes
21700 else
21701   ac_cv_lib_crypto_CRYPTO_lock=no
21702 fi
21703 rm -f core conftest.err conftest.$ac_objext \
21704     conftest$ac_exeext conftest.$ac_ext
21705 LIBS=$ac_check_lib_save_LIBS
21706 fi
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5
21708 $as_echo "$ac_cv_lib_crypto_CRYPTO_lock" >&6; }
21709 if test "x$ac_cv_lib_crypto_CRYPTO_lock" = xyes; then :
21710
21711      HAVECRYPTO="yes"
21712      LIBS="-lcrypto $LIBS"
21713
21714 else
21715
21716      LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
21717      CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
21718      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_add_lock in -lcrypto" >&5
21719 $as_echo_n "checking for CRYPTO_add_lock in -lcrypto... " >&6; }
21720 if ${ac_cv_lib_crypto_CRYPTO_add_lock+:} false; then :
21721   $as_echo_n "(cached) " >&6
21722 else
21723   ac_check_lib_save_LIBS=$LIBS
21724 LIBS="-lcrypto  $LIBS"
21725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21726 /* end confdefs.h.  */
21727
21728
21729 #ifdef __cplusplus
21730 extern "C"
21731 #endif
21732 char CRYPTO_add_lock ();
21733 int main (void)
21734 {
21735 return CRYPTO_add_lock ();
21736  ;
21737  return 0;
21738 }
21739 _ACEOF
21740 if ac_fn_c_try_link "$LINENO"; then :
21741   ac_cv_lib_crypto_CRYPTO_add_lock=yes
21742 else
21743   ac_cv_lib_crypto_CRYPTO_add_lock=no
21744 fi
21745 rm -f core conftest.err conftest.$ac_objext \
21746     conftest$ac_exeext conftest.$ac_ext
21747 LIBS=$ac_check_lib_save_LIBS
21748 fi
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_add_lock" >&5
21750 $as_echo "$ac_cv_lib_crypto_CRYPTO_add_lock" >&6; }
21751 if test "x$ac_cv_lib_crypto_CRYPTO_add_lock" = xyes; then :
21752
21753        HAVECRYPTO="yes"
21754        LIBS="-lcrypto $LIBS"
21755 else
21756
21757        LDFLAGS="$CLEANLDFLAGS"
21758        CPPFLAGS="$CLEANCPPFLAGS"
21759        LIBS="$CLEANLIBS"
21760
21761 fi
21762
21763
21764 fi
21765
21766
21767
21768   if test X"$HAVECRYPTO" = X"yes"; then
21769      { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking without -ldl" >&5
21770 $as_echo_n "checking OpenSSL linking without -ldl... " >&6; }
21771      saved_libs=$LIBS
21772      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21773 /* end confdefs.h.  */
21774
21775           #include <openssl/evp.h>
21776
21777 int main (void)
21778 {
21779
21780           SSLeay_add_all_algorithms();
21781
21782  ;
21783  return 0;
21784 }
21785 _ACEOF
21786 if ac_fn_c_try_link "$LINENO"; then :
21787
21788           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21789 $as_echo "yes" >&6; }
21790           LIBS="$saved_libs"
21791
21792 else
21793
21794           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21795 $as_echo "no" >&6; }
21796           { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
21797 $as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
21798           LIBS="-ldl $LIBS"
21799           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21800 /* end confdefs.h.  */
21801
21802             #include <openssl/evp.h>
21803
21804 int main (void)
21805 {
21806
21807             SSLeay_add_all_algorithms();
21808
21809  ;
21810  return 0;
21811 }
21812 _ACEOF
21813 if ac_fn_c_try_link "$LINENO"; then :
21814
21815             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21816 $as_echo "yes" >&6; }
21817             LIBS="$saved_libs -ldl"
21818
21819 else
21820
21821             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21822 $as_echo "no" >&6; }
21823             LIBS="$saved_libs"
21824
21825
21826 fi
21827 rm -f core conftest.err conftest.$ac_objext \
21828     conftest$ac_exeext conftest.$ac_ext
21829
21830
21831
21832 fi
21833 rm -f core conftest.err conftest.$ac_objext \
21834     conftest$ac_exeext conftest.$ac_ext
21835
21836   fi
21837
21838   if test X"$HAVECRYPTO" = X"yes"; then
21839
21840     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
21841 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
21842 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
21843   $as_echo_n "(cached) " >&6
21844 else
21845   ac_check_lib_save_LIBS=$LIBS
21846 LIBS="-lssl  $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 SSL_connect ();
21855 int main (void)
21856 {
21857 return SSL_connect ();
21858  ;
21859  return 0;
21860 }
21861 _ACEOF
21862 if ac_fn_c_try_link "$LINENO"; then :
21863   ac_cv_lib_ssl_SSL_connect=yes
21864 else
21865   ac_cv_lib_ssl_SSL_connect=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_ssl_SSL_connect" >&5
21872 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
21873 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
21874   cat >>confdefs.h <<_ACEOF
21875 #define HAVE_LIBSSL 1
21876 _ACEOF
21877
21878   LIBS="-lssl $LIBS"
21879
21880 fi
21881
21882
21883     if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
21884                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
21885 $as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
21886         OLIBS=$LIBS
21887         LIBS="-lRSAglue -lrsaref $LIBS"
21888         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
21889 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
21890 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
21891   $as_echo_n "(cached) " >&6
21892 else
21893   ac_check_lib_save_LIBS=$LIBS
21894 LIBS="-lssl  $LIBS"
21895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21896 /* end confdefs.h.  */
21897
21898
21899 #ifdef __cplusplus
21900 extern "C"
21901 #endif
21902 char SSL_connect ();
21903 int main (void)
21904 {
21905 return SSL_connect ();
21906  ;
21907  return 0;
21908 }
21909 _ACEOF
21910 if ac_fn_c_try_link "$LINENO"; then :
21911   ac_cv_lib_ssl_SSL_connect=yes
21912 else
21913   ac_cv_lib_ssl_SSL_connect=no
21914 fi
21915 rm -f core conftest.err conftest.$ac_objext \
21916     conftest$ac_exeext conftest.$ac_ext
21917 LIBS=$ac_check_lib_save_LIBS
21918 fi
21919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
21920 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
21921 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
21922   cat >>confdefs.h <<_ACEOF
21923 #define HAVE_LIBSSL 1
21924 _ACEOF
21925
21926   LIBS="-lssl $LIBS"
21927
21928 fi
21929
21930         if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
21931                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21932 $as_echo "no" >&6; }
21933             LIBS=$OLIBS
21934         else
21935             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21936 $as_echo "yes" >&6; }
21937         fi
21938
21939     else
21940
21941             for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
21942                        openssl/pem.h openssl/ssl.h openssl/err.h
21943 do :
21944   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21945 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21946 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21947   cat >>confdefs.h <<_ACEOF
21948 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21949 _ACEOF
21950  curl_ssl_msg="enabled (OpenSSL)"
21951         OPENSSL_ENABLED=1
21952
21953 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
21954
21955 fi
21956
21957 done
21958
21959
21960       if test $ac_cv_header_openssl_x509_h = no; then
21961                                 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
21962 do :
21963   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21964 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21965 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21966   cat >>confdefs.h <<_ACEOF
21967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21968 _ACEOF
21969
21970 fi
21971
21972 done
21973
21974
21975         if test $ac_cv_header_x509_h = yes &&
21976            test $ac_cv_header_crypto_h = yes &&
21977            test $ac_cv_header_ssl_h = yes; then
21978                     curl_ssl_msg="enabled (OpenSSL)"
21979           OPENSSL_ENABLED=1
21980         fi
21981       fi
21982     fi
21983
21984     if test X"$OPENSSL_ENABLED" = X"1"; then
21985               for ac_header in openssl/pkcs12.h
21986 do :
21987   ac_fn_c_check_header_mongrel "$LINENO" "openssl/pkcs12.h" "ac_cv_header_openssl_pkcs12_h" "$ac_includes_default"
21988 if test "x$ac_cv_header_openssl_pkcs12_h" = xyes; then :
21989   cat >>confdefs.h <<_ACEOF
21990 #define HAVE_OPENSSL_PKCS12_H 1
21991 _ACEOF
21992
21993 fi
21994
21995 done
21996
21997     else
21998        LIBS="$CLEANLIBS"
21999     fi
22000
22001     if test X"$OPT_SSL" != Xoff &&
22002        test "$OPENSSL_ENABLED" != "1"; then
22003       as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
22004     fi
22005   fi
22006
22007   if test X"$OPENSSL_ENABLED" = X"1"; then
22008             ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init"
22009 if test "x$ac_cv_func_ENGINE_init" = xyes; then :
22010
22011                 for ac_header in openssl/engine.h
22012 do :
22013   ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
22014 if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
22015   cat >>confdefs.h <<_ACEOF
22016 #define HAVE_OPENSSL_ENGINE_H 1
22017 _ACEOF
22018
22019 fi
22020
22021 done
22022
22023                 for ac_func in ENGINE_load_builtin_engines
22024 do :
22025   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22026 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22027 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22028   cat >>confdefs.h <<_ACEOF
22029 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22030 _ACEOF
22031
22032 fi
22033 done
22034
22035
22036 fi
22037
22038
22039
22040     for ac_func in RAND_status \
22041                     RAND_screen \
22042                     RAND_egd \
22043                     ENGINE_cleanup \
22044                     CRYPTO_cleanup_all_ex_data \
22045                     SSL_get_shutdown \
22046                     SSLv2_client_method \
22047                     DES_set_odd_parity
22048 do :
22049   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22050 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22051 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22052   cat >>confdefs.h <<_ACEOF
22053 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22054 _ACEOF
22055
22056 fi
22057 done
22058
22059
22060     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
22061 $as_echo_n "checking for BoringSSL... " >&6; }
22062     if test "x$ac_cv_func_DES_set_odd_parity" != "xyes"; then
22063       curl_ssl_msg="enabled (BoringSSL)"
22064
22065 cat >>confdefs.h <<_ACEOF
22066 #define HAVE_BORINGSSL 1
22067 _ACEOF
22068
22069       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22070 $as_echo "yes" >&6; }
22071     else
22072       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22073 $as_echo "no" >&6; }
22074     fi
22075     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
22076 $as_echo_n "checking for libressl... " >&6; }
22077     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22078 /* end confdefs.h.  */
22079
22080
22081 #include <openssl/opensslv.h>
22082
22083 int main (void)
22084 {
22085
22086         int dummy = LIBRESSL_VERSION_NUMBER;
22087
22088  ;
22089  return 0;
22090 }
22091
22092 _ACEOF
22093 if ac_fn_c_try_compile "$LINENO"; then :
22094
22095       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22096 $as_echo "yes" >&6; }
22097
22098 cat >>confdefs.h <<_ACEOF
22099 #define HAVE_LIBRESSL 1
22100 _ACEOF
22101
22102       curl_ssl_msg="enabled (libressl)"
22103
22104 else
22105
22106       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22107 $as_echo "no" >&6; }
22108
22109 fi
22110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22111   fi
22112
22113   if test "$OPENSSL_ENABLED" = "1"; then
22114     if test -n "$LIB_OPENSSL"; then
22115                             if test "x$cross_compiling" != "xyes"; then
22116          LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
22117          export LD_LIBRARY_PATH
22118          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5
22119 $as_echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;}
22120        fi
22121     fi
22122
22123   #
22124
22125   #
22126   tst_api="unknown"
22127   #
22128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
22129 $as_echo_n "checking for OpenSSL headers version... " >&6; }
22130
22131       if test -z "$SED"; then
22132     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
22133   fi
22134   if test -z "$GREP"; then
22135     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
22136   fi
22137
22138   tmp_exp=""
22139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22140 /* end confdefs.h.  */
22141
22142
22143 #   ifdef USE_OPENSSL
22144 #     include <openssl/crypto.h>
22145 #   else
22146 #     include <crypto.h>
22147 #   endif
22148
22149 #ifdef OPENSSL_VERSION_NUMBER
22150 CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
22151 #endif
22152
22153
22154 _ACEOF
22155 if ac_fn_c_try_cpp "$LINENO"; then :
22156
22157     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
22158       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
22159       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
22160       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
22161     if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
22162       tmp_exp=""
22163     fi
22164
22165 fi
22166 rm -f conftest.err conftest.i conftest.$ac_ext
22167   if test -z "$tmp_exp"; then
22168     curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
22169
22170   else
22171     curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
22172     curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
22173
22174   fi
22175
22176   if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
22177     tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
22178     case "x$tst_verlen" in
22179       x6)
22180         tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22181         tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
22182         tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22183         tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22184         ;;
22185       x11|x10)
22186         tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22187         tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22188         tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
22189         tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22190         ;;
22191       *)
22192         tst_api="unknown"
22193         ;;
22194     esac
22195     case $tst_api in
22196       0x110) tst_show="1.1.0" ;;
22197       0x102) tst_show="1.0.2" ;;
22198       0x101) tst_show="1.0.1" ;;
22199       0x100) tst_show="1.0.0" ;;
22200       0x099) tst_show="0.9.9" ;;
22201       0x098) tst_show="0.9.8" ;;
22202       0x097) tst_show="0.9.7" ;;
22203       0x096) tst_show="0.9.6" ;;
22204       0x095) tst_show="0.9.5" ;;
22205       0x094) tst_show="0.9.4" ;;
22206       0x093) tst_show="0.9.3" ;;
22207       0x092) tst_show="0.9.2" ;;
22208       0x091) tst_show="0.9.1" ;;
22209       *)     tst_show="unknown" ;;
22210     esac
22211     tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
22212   else
22213     tst_show="unknown"
22214   fi
22215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
22216 $as_echo "$tst_show" >&6; }
22217   #
22218   curl_openssl_api_headers=$tst_api
22219
22220
22221   #
22222   tst_api="unknown"
22223   #
22224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
22225 $as_echo_n "checking for OpenSSL library version... " >&6; }
22226   if test "$tst_api" = "unknown"; then
22227     case $host in
22228       *-*-vms*)
22229         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22230 /* end confdefs.h.  */
22231
22232
22233 #define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
22234 #ifdef __STDC__
22235 # include <limits.h>
22236 #else
22237 # include <assert.h>
22238 #endif
22239 #undef SSL_CTX_set_not_resumbl_sess_cb
22240 #ifdef __cplusplus
22241 extern "C"
22242 #endif
22243 char SSL_CTX_set_not_resumbl_sess_cb ();
22244 #if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
22245 choke me
22246 #endif
22247
22248 int main (void)
22249 {
22250 return SSL_CTX_set_not_resumbl_sess_cb ();
22251  ;
22252  return 0;
22253 }
22254
22255 _ACEOF
22256 if ac_fn_c_try_link "$LINENO"; then :
22257
22258           tst_api="0x110"
22259
22260 fi
22261 rm -f core conftest.err conftest.$ac_objext \
22262     conftest$ac_exeext conftest.$ac_ext
22263         ;;
22264       *)
22265         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22266 /* end confdefs.h.  */
22267
22268
22269 #define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
22270 #ifdef __STDC__
22271 # include <limits.h>
22272 #else
22273 # include <assert.h>
22274 #endif
22275 #undef SSL_CTX_set_not_resumable_session_callback
22276 #ifdef __cplusplus
22277 extern "C"
22278 #endif
22279 char SSL_CTX_set_not_resumable_session_callback ();
22280 #if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
22281 choke me
22282 #endif
22283
22284 int main (void)
22285 {
22286 return SSL_CTX_set_not_resumable_session_callback ();
22287  ;
22288  return 0;
22289 }
22290
22291 _ACEOF
22292 if ac_fn_c_try_link "$LINENO"; then :
22293
22294           tst_api="0x110"
22295
22296 fi
22297 rm -f core conftest.err conftest.$ac_objext \
22298     conftest$ac_exeext conftest.$ac_ext
22299         ;;
22300     esac
22301   fi
22302   if test "$tst_api" = "unknown"; then
22303     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22304 /* end confdefs.h.  */
22305
22306
22307 #define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
22308 #ifdef __STDC__
22309 # include <limits.h>
22310 #else
22311 # include <assert.h>
22312 #endif
22313 #undef SSL_CONF_CTX_new
22314 #ifdef __cplusplus
22315 extern "C"
22316 #endif
22317 char SSL_CONF_CTX_new ();
22318 #if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
22319 choke me
22320 #endif
22321
22322 int main (void)
22323 {
22324 return SSL_CONF_CTX_new ();
22325  ;
22326  return 0;
22327 }
22328
22329 _ACEOF
22330 if ac_fn_c_try_link "$LINENO"; then :
22331
22332       tst_api="0x102"
22333
22334 fi
22335 rm -f core conftest.err conftest.$ac_objext \
22336     conftest$ac_exeext conftest.$ac_ext
22337   fi
22338   if test "$tst_api" = "unknown"; then
22339     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22340 /* end confdefs.h.  */
22341
22342
22343 #define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
22344 #ifdef __STDC__
22345 # include <limits.h>
22346 #else
22347 # include <assert.h>
22348 #endif
22349 #undef SSL_renegotiate_abbreviated
22350 #ifdef __cplusplus
22351 extern "C"
22352 #endif
22353 char SSL_renegotiate_abbreviated ();
22354 #if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
22355 choke me
22356 #endif
22357
22358 int main (void)
22359 {
22360 return SSL_renegotiate_abbreviated ();
22361  ;
22362  return 0;
22363 }
22364
22365 _ACEOF
22366 if ac_fn_c_try_link "$LINENO"; then :
22367
22368       tst_api="0x101"
22369
22370 fi
22371 rm -f core conftest.err conftest.$ac_objext \
22372     conftest$ac_exeext conftest.$ac_ext
22373   fi
22374   if test "$tst_api" = "unknown"; then
22375     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22376 /* end confdefs.h.  */
22377
22378
22379 #define OBJ_add_sigid innocuous_OBJ_add_sigid
22380 #ifdef __STDC__
22381 # include <limits.h>
22382 #else
22383 # include <assert.h>
22384 #endif
22385 #undef OBJ_add_sigid
22386 #ifdef __cplusplus
22387 extern "C"
22388 #endif
22389 char OBJ_add_sigid ();
22390 #if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
22391 choke me
22392 #endif
22393
22394 int main (void)
22395 {
22396 return OBJ_add_sigid ();
22397  ;
22398  return 0;
22399 }
22400
22401 _ACEOF
22402 if ac_fn_c_try_link "$LINENO"; then :
22403
22404       tst_api="0x100"
22405
22406 fi
22407 rm -f core conftest.err conftest.$ac_objext \
22408     conftest$ac_exeext conftest.$ac_ext
22409   fi
22410   if test "$tst_api" = "unknown"; then
22411     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22412 /* end confdefs.h.  */
22413
22414
22415 #define ERR_set_mark innocuous_ERR_set_mark
22416 #ifdef __STDC__
22417 # include <limits.h>
22418 #else
22419 # include <assert.h>
22420 #endif
22421 #undef ERR_set_mark
22422 #ifdef __cplusplus
22423 extern "C"
22424 #endif
22425 char ERR_set_mark ();
22426 #if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
22427 choke me
22428 #endif
22429
22430 int main (void)
22431 {
22432 return ERR_set_mark ();
22433  ;
22434  return 0;
22435 }
22436
22437 _ACEOF
22438 if ac_fn_c_try_link "$LINENO"; then :
22439
22440       tst_api="0x098"
22441
22442 fi
22443 rm -f core conftest.err conftest.$ac_objext \
22444     conftest$ac_exeext conftest.$ac_ext
22445   fi
22446   if test "$tst_api" = "unknown"; then
22447     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22448 /* end confdefs.h.  */
22449
22450
22451 #define ERR_peek_last_error innocuous_ERR_peek_last_error
22452 #ifdef __STDC__
22453 # include <limits.h>
22454 #else
22455 # include <assert.h>
22456 #endif
22457 #undef ERR_peek_last_error
22458 #ifdef __cplusplus
22459 extern "C"
22460 #endif
22461 char ERR_peek_last_error ();
22462 #if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
22463 choke me
22464 #endif
22465
22466 int main (void)
22467 {
22468 return ERR_peek_last_error ();
22469  ;
22470  return 0;
22471 }
22472
22473 _ACEOF
22474 if ac_fn_c_try_link "$LINENO"; then :
22475
22476       tst_api="0x097"
22477
22478 fi
22479 rm -f core conftest.err conftest.$ac_objext \
22480     conftest$ac_exeext conftest.$ac_ext
22481   fi
22482   if test "$tst_api" = "unknown"; then
22483     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22484 /* end confdefs.h.  */
22485
22486
22487 #define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
22488 #ifdef __STDC__
22489 # include <limits.h>
22490 #else
22491 # include <assert.h>
22492 #endif
22493 #undef c2i_ASN1_OBJECT
22494 #ifdef __cplusplus
22495 extern "C"
22496 #endif
22497 char c2i_ASN1_OBJECT ();
22498 #if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
22499 choke me
22500 #endif
22501
22502 int main (void)
22503 {
22504 return c2i_ASN1_OBJECT ();
22505  ;
22506  return 0;
22507 }
22508
22509 _ACEOF
22510 if ac_fn_c_try_link "$LINENO"; then :
22511
22512       tst_api="0x096"
22513
22514 fi
22515 rm -f core conftest.err conftest.$ac_objext \
22516     conftest$ac_exeext conftest.$ac_ext
22517   fi
22518   if test "$tst_api" = "unknown"; then
22519     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22520 /* end confdefs.h.  */
22521
22522
22523 #define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
22524 #ifdef __STDC__
22525 # include <limits.h>
22526 #else
22527 # include <assert.h>
22528 #endif
22529 #undef SSL_CTX_set_purpose
22530 #ifdef __cplusplus
22531 extern "C"
22532 #endif
22533 char SSL_CTX_set_purpose ();
22534 #if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
22535 choke me
22536 #endif
22537
22538 int main (void)
22539 {
22540 return SSL_CTX_set_purpose ();
22541  ;
22542  return 0;
22543 }
22544
22545 _ACEOF
22546 if ac_fn_c_try_link "$LINENO"; then :
22547
22548       tst_api="0x095"
22549
22550 fi
22551 rm -f core conftest.err conftest.$ac_objext \
22552     conftest$ac_exeext conftest.$ac_ext
22553   fi
22554   if test "$tst_api" = "unknown"; then
22555     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22556 /* end confdefs.h.  */
22557
22558
22559 #define OBJ_obj2txt innocuous_OBJ_obj2txt
22560 #ifdef __STDC__
22561 # include <limits.h>
22562 #else
22563 # include <assert.h>
22564 #endif
22565 #undef OBJ_obj2txt
22566 #ifdef __cplusplus
22567 extern "C"
22568 #endif
22569 char OBJ_obj2txt ();
22570 #if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
22571 choke me
22572 #endif
22573
22574 int main (void)
22575 {
22576 return OBJ_obj2txt ();
22577  ;
22578  return 0;
22579 }
22580
22581 _ACEOF
22582 if ac_fn_c_try_link "$LINENO"; then :
22583
22584       tst_api="0x094"
22585
22586 fi
22587 rm -f core conftest.err conftest.$ac_objext \
22588     conftest$ac_exeext conftest.$ac_ext
22589   fi
22590   if test "$tst_api" = "unknown"; then
22591     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22592 /* end confdefs.h.  */
22593
22594
22595 #define SSL_get_verify_depth innocuous_SSL_get_verify_depth
22596 #ifdef __STDC__
22597 # include <limits.h>
22598 #else
22599 # include <assert.h>
22600 #endif
22601 #undef SSL_get_verify_depth
22602 #ifdef __cplusplus
22603 extern "C"
22604 #endif
22605 char SSL_get_verify_depth ();
22606 #if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
22607 choke me
22608 #endif
22609
22610 int main (void)
22611 {
22612 return SSL_get_verify_depth ();
22613  ;
22614  return 0;
22615 }
22616
22617 _ACEOF
22618 if ac_fn_c_try_link "$LINENO"; then :
22619
22620       tst_api="0x093"
22621
22622 fi
22623 rm -f core conftest.err conftest.$ac_objext \
22624     conftest$ac_exeext conftest.$ac_ext
22625   fi
22626   if test "$tst_api" = "unknown"; then
22627     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22628 /* end confdefs.h.  */
22629
22630
22631 #define SSL_library_init innocuous_SSL_library_init
22632 #ifdef __STDC__
22633 # include <limits.h>
22634 #else
22635 # include <assert.h>
22636 #endif
22637 #undef SSL_library_init
22638 #ifdef __cplusplus
22639 extern "C"
22640 #endif
22641 char SSL_library_init ();
22642 #if defined __stub_SSL_library_init || defined __stub___SSL_library_init
22643 choke me
22644 #endif
22645
22646 int main (void)
22647 {
22648 return SSL_library_init ();
22649  ;
22650  return 0;
22651 }
22652
22653 _ACEOF
22654 if ac_fn_c_try_link "$LINENO"; then :
22655
22656       tst_api="0x092"
22657
22658 fi
22659 rm -f core conftest.err conftest.$ac_objext \
22660     conftest$ac_exeext conftest.$ac_ext
22661   fi
22662   if test "$tst_api" = "unknown"; then
22663     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22664 /* end confdefs.h.  */
22665
22666
22667 #define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
22668 #ifdef __STDC__
22669 # include <limits.h>
22670 #else
22671 # include <assert.h>
22672 #endif
22673 #undef SSL_CTX_set_cipher_list
22674 #ifdef __cplusplus
22675 extern "C"
22676 #endif
22677 char SSL_CTX_set_cipher_list ();
22678 #if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
22679 choke me
22680 #endif
22681
22682 int main (void)
22683 {
22684 return SSL_CTX_set_cipher_list ();
22685  ;
22686  return 0;
22687 }
22688
22689 _ACEOF
22690 if ac_fn_c_try_link "$LINENO"; then :
22691
22692       tst_api="0x091"
22693
22694 fi
22695 rm -f core conftest.err conftest.$ac_objext \
22696     conftest$ac_exeext conftest.$ac_ext
22697   fi
22698   case $tst_api in
22699     0x110) tst_show="1.1.0" ;;
22700     0x102) tst_show="1.0.2" ;;
22701     0x101) tst_show="1.0.1" ;;
22702     0x100) tst_show="1.0.0" ;;
22703     0x099) tst_show="0.9.9" ;;
22704     0x098) tst_show="0.9.8" ;;
22705     0x097) tst_show="0.9.7" ;;
22706     0x096) tst_show="0.9.6" ;;
22707     0x095) tst_show="0.9.5" ;;
22708     0x094) tst_show="0.9.4" ;;
22709     0x093) tst_show="0.9.3" ;;
22710     0x092) tst_show="0.9.2" ;;
22711     0x091) tst_show="0.9.1" ;;
22712     *)     tst_show="unknown" ;;
22713   esac
22714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
22715 $as_echo "$tst_show" >&6; }
22716   #
22717   curl_openssl_api_library=$tst_api
22718
22719   #
22720   tst_match="yes"
22721   #
22722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
22723 $as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
22724   if test "$curl_openssl_api_headers" = "unknown" ||
22725     test "$curl_openssl_api_library" = "unknown"; then
22726     tst_match="fail"
22727     tst_warns="Can not compare OpenSSL headers and library versions."
22728   elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
22729     tst_match="no"
22730     tst_warns="OpenSSL headers and library versions do not match."
22731   fi
22732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
22733 $as_echo "$tst_match" >&6; }
22734   if test "$tst_match" != "yes"; then
22735     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
22736 $as_echo "$as_me: WARNING: $tst_warns" >&2;}
22737   fi
22738
22739   fi
22740
22741 fi
22742
22743
22744 if test X"$OPENSSL_ENABLED" = X"1"; then
22745
22746 # Check whether --with-egd-socket was given.
22747 if test "${with_egd_socket+set}" = set; then :
22748   withval=$with_egd_socket;  EGD_SOCKET="$withval"
22749
22750 fi
22751
22752   if test -n "$EGD_SOCKET" ; then
22753
22754 cat >>confdefs.h <<_ACEOF
22755 #define EGD_SOCKET "$EGD_SOCKET"
22756 _ACEOF
22757
22758   fi
22759
22760
22761 # Check whether --with-random was given.
22762 if test "${with_random+set}" = set; then :
22763   withval=$with_random;  RANDOM_FILE="$withval"
22764 else
22765
22766           if test x$cross_compiling != xyes; then
22767                         as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
22769 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
22770 if eval \${$as_ac_File+:} false; then :
22771   $as_echo_n "(cached) " >&6
22772 else
22773   test "$cross_compiling" = yes &&
22774   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
22775 if test -r ""/dev/urandom""; then
22776   eval "$as_ac_File=yes"
22777 else
22778   eval "$as_ac_File=no"
22779 fi
22780 fi
22781 eval ac_res=\$$as_ac_File
22782                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22783 $as_echo "$ac_res" >&6; }
22784 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
22785    RANDOM_FILE="/dev/urandom"
22786 fi
22787
22788           else
22789             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
22790 $as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
22791           fi
22792
22793
22794 fi
22795
22796   if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
22797
22798
22799 cat >>confdefs.h <<_ACEOF
22800 #define RANDOM_FILE "$RANDOM_FILE"
22801 _ACEOF
22802
22803   fi
22804 fi
22805
22806 if test "$OPENSSL_ENABLED" = "1"; then
22807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
22808 $as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
22809 if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
22810   $as_echo_n "(cached) " >&6
22811 else
22812   ac_check_lib_save_LIBS=$LIBS
22813 LIBS="-lcrypto  $LIBS"
22814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22815 /* end confdefs.h.  */
22816
22817
22818 #ifdef __cplusplus
22819 extern "C"
22820 #endif
22821 char SRP_Calc_client_key ();
22822 int main (void)
22823 {
22824 return SRP_Calc_client_key ();
22825  ;
22826  return 0;
22827 }
22828 _ACEOF
22829 if ac_fn_c_try_link "$LINENO"; then :
22830   ac_cv_lib_crypto_SRP_Calc_client_key=yes
22831 else
22832   ac_cv_lib_crypto_SRP_Calc_client_key=no
22833 fi
22834 rm -f core conftest.err conftest.$ac_objext \
22835     conftest$ac_exeext conftest.$ac_ext
22836 LIBS=$ac_check_lib_save_LIBS
22837 fi
22838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
22839 $as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
22840 if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
22841
22842
22843 $as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
22844
22845      HAVE_OPENSSL_SRP=1
22846
22847
22848 fi
22849
22850 fi
22851
22852
22853 OPT_GNUTLS=no
22854
22855
22856 # Check whether --with-gnutls was given.
22857 if test "${with_gnutls+set}" = set; then :
22858   withval=$with_gnutls; OPT_GNUTLS=$withval
22859 fi
22860
22861
22862 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
22863
22864   if test X"$OPT_GNUTLS" != Xno; then
22865
22866     addld=""
22867     addlib=""
22868     gtlslib=""
22869     version=""
22870     addcflags=""
22871
22872     if test "x$OPT_GNUTLS" = "xyes"; then
22873
22874
22875     PKGCONFIG="no"
22876
22877     if test -n "$ac_tool_prefix"; then
22878   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22879 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22881 $as_echo_n "checking for $ac_word... " >&6; }
22882 if ${ac_cv_path_PKGCONFIG+:} false; then :
22883   $as_echo_n "(cached) " >&6
22884 else
22885   case $PKGCONFIG in
22886   [\\/]* | ?:[\\/]*)
22887   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22888   ;;
22889   *)
22890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22891 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22892 for as_dir in $as_dummy
22893 do
22894   IFS=$as_save_IFS
22895   test -z "$as_dir" && as_dir=.
22896     for ac_exec_ext in '' $ac_executable_extensions; do
22897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22898     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22900     break 2
22901   fi
22902 done
22903   done
22904 IFS=$as_save_IFS
22905
22906   ;;
22907 esac
22908 fi
22909 PKGCONFIG=$ac_cv_path_PKGCONFIG
22910 if test -n "$PKGCONFIG"; then
22911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22912 $as_echo "$PKGCONFIG" >&6; }
22913 else
22914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22915 $as_echo "no" >&6; }
22916 fi
22917
22918
22919 fi
22920 if test -z "$ac_cv_path_PKGCONFIG"; then
22921   ac_pt_PKGCONFIG=$PKGCONFIG
22922   # Extract the first word of "pkg-config", so it can be a program name with args.
22923 set dummy pkg-config; ac_word=$2
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22925 $as_echo_n "checking for $ac_word... " >&6; }
22926 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22927   $as_echo_n "(cached) " >&6
22928 else
22929   case $ac_pt_PKGCONFIG in
22930   [\\/]* | ?:[\\/]*)
22931   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22932   ;;
22933   *)
22934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22935 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22936 for as_dir in $as_dummy
22937 do
22938   IFS=$as_save_IFS
22939   test -z "$as_dir" && as_dir=.
22940     for ac_exec_ext in '' $ac_executable_extensions; do
22941   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22942     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22944     break 2
22945   fi
22946 done
22947   done
22948 IFS=$as_save_IFS
22949
22950   ;;
22951 esac
22952 fi
22953 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22954 if test -n "$ac_pt_PKGCONFIG"; then
22955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22956 $as_echo "$ac_pt_PKGCONFIG" >&6; }
22957 else
22958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22959 $as_echo "no" >&6; }
22960 fi
22961
22962   if test "x$ac_pt_PKGCONFIG" = x; then
22963     PKGCONFIG="no"
22964   else
22965     case $cross_compiling:$ac_tool_warned in
22966 yes:)
22967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22969 ac_tool_warned=yes ;;
22970 esac
22971     PKGCONFIG=$ac_pt_PKGCONFIG
22972   fi
22973 else
22974   PKGCONFIG="$ac_cv_path_PKGCONFIG"
22975 fi
22976
22977
22978     if test x$PKGCONFIG != xno; then
22979       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
22980 $as_echo_n "checking for gnutls options with pkg-config... " >&6; }
22981             itexists=`
22982     if test -n ""; then
22983       PKG_CONFIG_LIBDIR=""
22984       export PKG_CONFIG_LIBDIR
22985     fi
22986          $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
22987
22988       if test -z "$itexists"; then
22989                         PKGCONFIG="no"
22990         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22991 $as_echo "no" >&6; }
22992       else
22993         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22994 $as_echo "found" >&6; }
22995       fi
22996     fi
22997
22998
22999       if test "$PKGCONFIG" != "no" ; then
23000         addlib=`$PKGCONFIG --libs-only-l gnutls`
23001         addld=`$PKGCONFIG --libs-only-L gnutls`
23002         addcflags=`$PKGCONFIG --cflags-only-I gnutls`
23003         version=`$PKGCONFIG --modversion gnutls`
23004         gtlslib=`echo $addld | $SED -e 's/-L//'`
23005       else
23006                         check=`libgnutls-config --version 2>/dev/null`
23007         if test -n "$check"; then
23008           addlib=`libgnutls-config --libs`
23009           addcflags=`libgnutls-config --cflags`
23010           version=`libgnutls-config --version`
23011           gtlslib=`libgnutls-config --prefix`/lib$libsuff
23012         fi
23013       fi
23014     else
23015                   cfg=$OPT_GNUTLS/bin/libgnutls-config
23016       check=`$cfg --version 2>/dev/null`
23017       if test -n "$check"; then
23018         addlib=`$cfg --libs`
23019         addcflags=`$cfg --cflags`
23020         version=`$cfg --version`
23021         gtlslib=`$cfg --prefix`/lib$libsuff
23022       else
23023                 addlib=-lgnutls
23024         addld=-L$OPT_GNUTLS/lib$libsuff
23025         addcflags=-I$OPT_GNUTLS/include
23026         version="" # we just don't know
23027         gtlslib=$OPT_GNUTLS/lib$libsuff
23028       fi
23029     fi
23030
23031     if test -z "$version"; then
23032             version="unknown"
23033     fi
23034
23035     if test -n "$addlib"; then
23036
23037       CLEANLIBS="$LIBS"
23038       CLEANCPPFLAGS="$CPPFLAGS"
23039       CLEANLDFLAGS="$LDFLAGS"
23040
23041       LIBS="$addlib $LIBS"
23042       LDFLAGS="$LDFLAGS $addld"
23043       if test "$addcflags" != "-I/usr/include"; then
23044          CPPFLAGS="$CPPFLAGS $addcflags"
23045       fi
23046
23047       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
23048 $as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
23049 if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
23050   $as_echo_n "(cached) " >&6
23051 else
23052   ac_check_lib_save_LIBS=$LIBS
23053 LIBS="-lgnutls  $LIBS"
23054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23055 /* end confdefs.h.  */
23056
23057
23058 #ifdef __cplusplus
23059 extern "C"
23060 #endif
23061 char gnutls_check_version ();
23062 int main (void)
23063 {
23064 return gnutls_check_version ();
23065  ;
23066  return 0;
23067 }
23068 _ACEOF
23069 if ac_fn_c_try_link "$LINENO"; then :
23070   ac_cv_lib_gnutls_gnutls_check_version=yes
23071 else
23072   ac_cv_lib_gnutls_gnutls_check_version=no
23073 fi
23074 rm -f core conftest.err conftest.$ac_objext \
23075     conftest$ac_exeext conftest.$ac_ext
23076 LIBS=$ac_check_lib_save_LIBS
23077 fi
23078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
23079 $as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
23080 if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
23081
23082
23083 $as_echo "#define USE_GNUTLS 1" >>confdefs.h
23084
23085        USE_GNUTLS=1
23086
23087        GNUTLS_ENABLED=1
23088        USE_GNUTLS="yes"
23089        curl_ssl_msg="enabled (GnuTLS)"
23090
23091 else
23092
23093          LIBS="$CLEANLIBS"
23094          CPPFLAGS="$CLEANCPPFLAGS"
23095
23096 fi
23097
23098
23099       if test "x$USE_GNUTLS" = "xyes"; then
23100         { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
23101 $as_echo "$as_me: detected GnuTLS version $version" >&6;}
23102
23103         if test -n "$gtlslib"; then
23104                                                   if test "x$cross_compiling" != "xyes"; then
23105             LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib"
23106             export LD_LIBRARY_PATH
23107             { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to LD_LIBRARY_PATH" >&5
23108 $as_echo "$as_me: Added $gtlslib to LD_LIBRARY_PATH" >&6;}
23109           fi
23110         fi
23111       fi
23112
23113     fi
23114
23115   fi
23116 fi
23117
23118
23119 if test "$GNUTLS_ENABLED" = "1"; then
23120   USE_GNUTLS_NETTLE=
23121   # First check if we can detect either crypto library via transitive linking
23122   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
23123 $as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
23124 if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
23125   $as_echo_n "(cached) " >&6
23126 else
23127   ac_check_lib_save_LIBS=$LIBS
23128 LIBS="-lgnutls  $LIBS"
23129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23130 /* end confdefs.h.  */
23131
23132
23133 #ifdef __cplusplus
23134 extern "C"
23135 #endif
23136 char nettle_MD5Init ();
23137 int main (void)
23138 {
23139 return nettle_MD5Init ();
23140  ;
23141  return 0;
23142 }
23143 _ACEOF
23144 if ac_fn_c_try_link "$LINENO"; then :
23145   ac_cv_lib_gnutls_nettle_MD5Init=yes
23146 else
23147   ac_cv_lib_gnutls_nettle_MD5Init=no
23148 fi
23149 rm -f core conftest.err conftest.$ac_objext \
23150     conftest$ac_exeext conftest.$ac_ext
23151 LIBS=$ac_check_lib_save_LIBS
23152 fi
23153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
23154 $as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
23155 if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
23156    USE_GNUTLS_NETTLE=1
23157 fi
23158
23159   if test "$USE_GNUTLS_NETTLE" = ""; then
23160     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
23161 $as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
23162 if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
23163   $as_echo_n "(cached) " >&6
23164 else
23165   ac_check_lib_save_LIBS=$LIBS
23166 LIBS="-lgnutls  $LIBS"
23167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23168 /* end confdefs.h.  */
23169
23170
23171 #ifdef __cplusplus
23172 extern "C"
23173 #endif
23174 char gcry_control ();
23175 int main (void)
23176 {
23177 return gcry_control ();
23178  ;
23179  return 0;
23180 }
23181 _ACEOF
23182 if ac_fn_c_try_link "$LINENO"; then :
23183   ac_cv_lib_gnutls_gcry_control=yes
23184 else
23185   ac_cv_lib_gnutls_gcry_control=no
23186 fi
23187 rm -f core conftest.err conftest.$ac_objext \
23188     conftest$ac_exeext conftest.$ac_ext
23189 LIBS=$ac_check_lib_save_LIBS
23190 fi
23191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
23192 $as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
23193 if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
23194    USE_GNUTLS_NETTLE=0
23195 fi
23196
23197   fi
23198   # If not, try linking directly to both of them to see if they are available
23199   if test "$USE_GNUTLS_NETTLE" = ""; then
23200     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
23201 $as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
23202 if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
23203   $as_echo_n "(cached) " >&6
23204 else
23205   ac_check_lib_save_LIBS=$LIBS
23206 LIBS="-lnettle  $LIBS"
23207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23208 /* end confdefs.h.  */
23209
23210
23211 #ifdef __cplusplus
23212 extern "C"
23213 #endif
23214 char nettle_MD5Init ();
23215 int main (void)
23216 {
23217 return nettle_MD5Init ();
23218  ;
23219  return 0;
23220 }
23221 _ACEOF
23222 if ac_fn_c_try_link "$LINENO"; then :
23223   ac_cv_lib_nettle_nettle_MD5Init=yes
23224 else
23225   ac_cv_lib_nettle_nettle_MD5Init=no
23226 fi
23227 rm -f core conftest.err conftest.$ac_objext \
23228     conftest$ac_exeext conftest.$ac_ext
23229 LIBS=$ac_check_lib_save_LIBS
23230 fi
23231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
23232 $as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
23233 if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
23234    USE_GNUTLS_NETTLE=1
23235 fi
23236
23237   fi
23238   if test "$USE_GNUTLS_NETTLE" = ""; then
23239     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
23240 $as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
23241 if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
23242   $as_echo_n "(cached) " >&6
23243 else
23244   ac_check_lib_save_LIBS=$LIBS
23245 LIBS="-lgcrypt  $LIBS"
23246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23247 /* end confdefs.h.  */
23248
23249
23250 #ifdef __cplusplus
23251 extern "C"
23252 #endif
23253 char gcry_control ();
23254 int main (void)
23255 {
23256 return gcry_control ();
23257  ;
23258  return 0;
23259 }
23260 _ACEOF
23261 if ac_fn_c_try_link "$LINENO"; then :
23262   ac_cv_lib_gcrypt_gcry_control=yes
23263 else
23264   ac_cv_lib_gcrypt_gcry_control=no
23265 fi
23266 rm -f core conftest.err conftest.$ac_objext \
23267     conftest$ac_exeext conftest.$ac_ext
23268 LIBS=$ac_check_lib_save_LIBS
23269 fi
23270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
23271 $as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
23272 if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
23273    USE_GNUTLS_NETTLE=0
23274 fi
23275
23276   fi
23277   if test "$USE_GNUTLS_NETTLE" = ""; then
23278     as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
23279   fi
23280   if test "$USE_GNUTLS_NETTLE" = "1"; then
23281
23282 $as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
23283
23284     USE_GNUTLS_NETTLE=1
23285
23286     LIBS="-lnettle $LIBS"
23287   else
23288     LIBS="-lgcrypt $LIBS"
23289   fi
23290 fi
23291
23292 if test "$GNUTLS_ENABLED" = "1"; then
23293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
23294 $as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
23295 if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
23296   $as_echo_n "(cached) " >&6
23297 else
23298   ac_check_lib_save_LIBS=$LIBS
23299 LIBS="-lgnutls  $LIBS"
23300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23301 /* end confdefs.h.  */
23302
23303
23304 #ifdef __cplusplus
23305 extern "C"
23306 #endif
23307 char gnutls_srp_verifier ();
23308 int main (void)
23309 {
23310 return gnutls_srp_verifier ();
23311  ;
23312  return 0;
23313 }
23314 _ACEOF
23315 if ac_fn_c_try_link "$LINENO"; then :
23316   ac_cv_lib_gnutls_gnutls_srp_verifier=yes
23317 else
23318   ac_cv_lib_gnutls_gnutls_srp_verifier=no
23319 fi
23320 rm -f core conftest.err conftest.$ac_objext \
23321     conftest$ac_exeext conftest.$ac_ext
23322 LIBS=$ac_check_lib_save_LIBS
23323 fi
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
23325 $as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
23326 if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
23327
23328
23329 $as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
23330
23331      HAVE_GNUTLS_SRP=1
23332
23333
23334 fi
23335
23336 fi
23337
23338
23339 OPT_POLARSSL=no
23340
23341 _cppflags=$CPPFLAGS
23342 _ldflags=$LDFLAGS
23343
23344 # Check whether --with-polarssl was given.
23345 if test "${with_polarssl+set}" = set; then :
23346   withval=$with_polarssl; OPT_POLARSSL=$withval
23347 fi
23348
23349
23350 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23351
23352   if test X"$OPT_POLARSSL" != Xno; then
23353
23354     if test "$OPT_POLARSSL" = "yes"; then
23355       OPT_POLARSSL=""
23356     fi
23357
23358     if test -z "$OPT_POLARSSL" ; then
23359
23360       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
23361 $as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
23362 if ${ac_cv_lib_polarssl_havege_init+:} false; then :
23363   $as_echo_n "(cached) " >&6
23364 else
23365   ac_check_lib_save_LIBS=$LIBS
23366 LIBS="-lpolarssl  $LIBS"
23367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23368 /* end confdefs.h.  */
23369
23370
23371 #ifdef __cplusplus
23372 extern "C"
23373 #endif
23374 char havege_init ();
23375 int main (void)
23376 {
23377 return havege_init ();
23378  ;
23379  return 0;
23380 }
23381 _ACEOF
23382 if ac_fn_c_try_link "$LINENO"; then :
23383   ac_cv_lib_polarssl_havege_init=yes
23384 else
23385   ac_cv_lib_polarssl_havege_init=no
23386 fi
23387 rm -f core conftest.err conftest.$ac_objext \
23388     conftest$ac_exeext conftest.$ac_ext
23389 LIBS=$ac_check_lib_save_LIBS
23390 fi
23391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
23392 $as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
23393 if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
23394
23395
23396 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
23397
23398          USE_POLARSSL=1
23399
23400          POLARSSL_ENABLED=1
23401          USE_POLARSSL="yes"
23402          curl_ssl_msg="enabled (PolarSSL)"
23403
23404 fi
23405
23406     fi
23407
23408     addld=""
23409     addlib=""
23410     addcflags=""
23411     polarssllib=""
23412
23413     if test "x$USE_POLARSSL" != "xyes"; then
23414             addld=-L$OPT_POLARSSL/lib$libsuff
23415       addcflags=-I$OPT_POLARSSL/include
23416       polarssllib=$OPT_POLARSSL/lib$libsuff
23417
23418       LDFLAGS="$LDFLAGS $addld"
23419       if test "$addcflags" != "-I/usr/include"; then
23420          CPPFLAGS="$CPPFLAGS $addcflags"
23421       fi
23422
23423       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
23424 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
23425 if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
23426   $as_echo_n "(cached) " >&6
23427 else
23428   ac_check_lib_save_LIBS=$LIBS
23429 LIBS="-lpolarssl  $LIBS"
23430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23431 /* end confdefs.h.  */
23432
23433
23434 #ifdef __cplusplus
23435 extern "C"
23436 #endif
23437 char ssl_init ();
23438 int main (void)
23439 {
23440 return ssl_init ();
23441  ;
23442  return 0;
23443 }
23444 _ACEOF
23445 if ac_fn_c_try_link "$LINENO"; then :
23446   ac_cv_lib_polarssl_ssl_init=yes
23447 else
23448   ac_cv_lib_polarssl_ssl_init=no
23449 fi
23450 rm -f core conftest.err conftest.$ac_objext \
23451     conftest$ac_exeext conftest.$ac_ext
23452 LIBS=$ac_check_lib_save_LIBS
23453 fi
23454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
23455 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
23456 if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
23457
23458
23459 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
23460
23461        USE_POLARSSL=1
23462
23463        POLARSSL_ENABLED=1
23464        USE_POLARSSL="yes"
23465        curl_ssl_msg="enabled (PolarSSL)"
23466
23467 else
23468
23469          CPPFLAGS=$_cppflags
23470          LDFLAGS=$_ldflags
23471
23472 fi
23473
23474     fi
23475
23476     if test "x$USE_POLARSSL" = "xyes"; then
23477       { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
23478 $as_echo "$as_me: detected PolarSSL" >&6;}
23479
23480       LIBS="-lpolarssl $LIBS"
23481
23482       if test -n "$polarssllib"; then
23483                                         if test "x$cross_compiling" != "xyes"; then
23484           LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$polarssllib"
23485           export LD_LIBRARY_PATH
23486           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to LD_LIBRARY_PATH" >&5
23487 $as_echo "$as_me: Added $polarssllib to LD_LIBRARY_PATH" >&6;}
23488         fi
23489       fi
23490     fi
23491
23492   fi
23493 fi
23494
23495
23496 OPT_CYASSL=no
23497
23498 _cppflags=$CPPFLAGS
23499 _ldflags=$LDFLAGS
23500
23501 # Check whether --with-cyassl was given.
23502 if test "${with_cyassl+set}" = set; then :
23503   withval=$with_cyassl; OPT_CYASSL=$withval
23504 fi
23505
23506
23507 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23508
23509   if test X"$OPT_CYASSL" != Xno; then
23510
23511     if test "$OPT_CYASSL" = "yes"; then
23512       OPT_CYASSL=""
23513     fi
23514
23515
23516     cyassllibname=cyassl
23517
23518     if test -z "$OPT_CYASSL" ; then
23519
23520       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
23521 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
23522 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
23523   $as_echo_n "(cached) " >&6
23524 else
23525   ac_check_lib_save_LIBS=$LIBS
23526 LIBS="-lcyassl  $LIBS"
23527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23528 /* end confdefs.h.  */
23529
23530
23531 #ifdef __cplusplus
23532 extern "C"
23533 #endif
23534 char CyaSSL_Init ();
23535 int main (void)
23536 {
23537 return CyaSSL_Init ();
23538  ;
23539  return 0;
23540 }
23541 _ACEOF
23542 if ac_fn_c_try_link "$LINENO"; then :
23543   ac_cv_lib_cyassl_CyaSSL_Init=yes
23544 else
23545   ac_cv_lib_cyassl_CyaSSL_Init=no
23546 fi
23547 rm -f core conftest.err conftest.$ac_objext \
23548     conftest$ac_exeext conftest.$ac_ext
23549 LIBS=$ac_check_lib_save_LIBS
23550 fi
23551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
23552 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
23553 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
23554
23555
23556 $as_echo "#define USE_CYASSL 1" >>confdefs.h
23557
23558          USE_CYASSL=1
23559
23560          CYASSL_ENABLED=1
23561          USE_CYASSL="yes"
23562          curl_ssl_msg="enabled (CyaSSL)"
23563
23564 fi
23565
23566     fi
23567
23568     addld=""
23569     addlib=""
23570     addcflags=""
23571     cyassllib=""
23572
23573     if test "x$USE_CYASSL" != "xyes"; then
23574             addld=-L$OPT_CYASSL/lib$libsuff
23575       addcflags=-I$OPT_CYASSL/include
23576       cyassllib=$OPT_CYASSL/lib$libsuff
23577
23578       LDFLAGS="$LDFLAGS $addld"
23579       if test "$addcflags" != "-I/usr/include"; then
23580          CPPFLAGS="$CPPFLAGS $addcflags"
23581       fi
23582
23583       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
23584 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
23585 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
23586   $as_echo_n "(cached) " >&6
23587 else
23588   ac_check_lib_save_LIBS=$LIBS
23589 LIBS="-lcyassl  $LIBS"
23590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23591 /* end confdefs.h.  */
23592
23593
23594 #ifdef __cplusplus
23595 extern "C"
23596 #endif
23597 char CyaSSL_Init ();
23598 int main (void)
23599 {
23600 return CyaSSL_Init ();
23601  ;
23602  return 0;
23603 }
23604 _ACEOF
23605 if ac_fn_c_try_link "$LINENO"; then :
23606   ac_cv_lib_cyassl_CyaSSL_Init=yes
23607 else
23608   ac_cv_lib_cyassl_CyaSSL_Init=no
23609 fi
23610 rm -f core conftest.err conftest.$ac_objext \
23611     conftest$ac_exeext conftest.$ac_ext
23612 LIBS=$ac_check_lib_save_LIBS
23613 fi
23614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
23615 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
23616 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
23617
23618
23619 $as_echo "#define USE_CYASSL 1" >>confdefs.h
23620
23621        USE_CYASSL=1
23622
23623        CYASSL_ENABLED=1
23624        USE_CYASSL="yes"
23625        curl_ssl_msg="enabled (CyaSSL)"
23626
23627 else
23628
23629          CPPFLAGS=$_cppflags
23630          LDFLAGS=$_ldflags
23631          cyassllib=""
23632
23633 fi
23634
23635     fi
23636
23637     addld=""
23638     addlib=""
23639     addcflags=""
23640
23641     if test "x$USE_CYASSL" != "xyes"; then
23642             addld=-L$OPT_CYASSL/lib$libsuff
23643       addcflags=-I$OPT_CYASSL/include
23644       cyassllib=$OPT_CYASSL/lib$libsuff
23645
23646       LDFLAGS="$LDFLAGS $addld"
23647       if test "$addcflags" != "-I/usr/include"; then
23648          CPPFLAGS="$CPPFLAGS $addcflags"
23649       fi
23650
23651       cyassllibname=wolfssl
23652       my_ac_save_LIBS="$LIBS"
23653       LIBS="-l$cyassllibname -lm $LIBS"
23654
23655       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5
23656 $as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; }
23657       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23658 /* end confdefs.h.  */
23659
23660
23661 /* These aren't needed for detection and confuse WolfSSL.
23662    They are set up properly later if it is detected.  */
23663 #undef SIZEOF_LONG
23664 #undef SIZEOF_LONG_LONG
23665 #include <cyassl/ssl.h>
23666
23667 int main (void)
23668 {
23669
23670           return CyaSSL_Init();
23671
23672  ;
23673  return 0;
23674 }
23675
23676 _ACEOF
23677 if ac_fn_c_try_link "$LINENO"; then :
23678
23679          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23680 $as_echo "yes" >&6; }
23681
23682 $as_echo "#define USE_CYASSL 1" >>confdefs.h
23683
23684          USE_CYASSL=1
23685
23686          CYASSL_ENABLED=1
23687          USE_CYASSL="yes"
23688          curl_ssl_msg="enabled (CyaSSL)"
23689
23690 else
23691
23692          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23693 $as_echo "no" >&6; }
23694          CPPFLAGS=$_cppflags
23695          LDFLAGS=$_ldflags
23696          cyassllib=""
23697
23698 fi
23699 rm -f core conftest.err conftest.$ac_objext \
23700     conftest$ac_exeext conftest.$ac_ext
23701       LIBS="$my_ac_save_LIBS"
23702     fi
23703
23704     if test "x$USE_CYASSL" = "xyes"; then
23705       { $as_echo "$as_me:${as_lineno-$LINENO}: detected CyaSSL" >&5
23706 $as_echo "$as_me: detected CyaSSL" >&6;}
23707
23708             # The cast to long int works around a bug in the HP C Compiler
23709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23711 # This bug is HP SR number 8606223364.
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
23713 $as_echo_n "checking size of long long... " >&6; }
23714 if ${ac_cv_sizeof_long_long+:} false; then :
23715   $as_echo_n "(cached) " >&6
23716 else
23717   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
23718
23719 else
23720   if test "$ac_cv_type_long_long" = yes; then
23721      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23723 as_fn_error 77 "cannot compute sizeof (long long)
23724 See \`config.log' for more details" "$LINENO" 5; }
23725    else
23726      ac_cv_sizeof_long_long=0
23727    fi
23728 fi
23729
23730 fi
23731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
23732 $as_echo "$ac_cv_sizeof_long_long" >&6; }
23733
23734
23735
23736 cat >>confdefs.h <<_ACEOF
23737 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23738 _ACEOF
23739
23740
23741
23742             for ac_header in cyassl/options.h
23743 do :
23744   ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default"
23745 if test "x$ac_cv_header_cyassl_options_h" = xyes; then :
23746   cat >>confdefs.h <<_ACEOF
23747 #define HAVE_CYASSL_OPTIONS_H 1
23748 _ACEOF
23749
23750 fi
23751
23752 done
23753
23754
23755             for ac_header in cyassl/error-ssl.h
23756 do :
23757   ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
23758 if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
23759   cat >>confdefs.h <<_ACEOF
23760 #define HAVE_CYASSL_ERROR_SSL_H 1
23761 _ACEOF
23762
23763 fi
23764
23765 done
23766
23767
23768       LIBS="-l$cyassllibname -lm $LIBS"
23769
23770       if test -n "$cyassllib"; then
23771                                         if test "x$cross_compiling" != "xyes"; then
23772           LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$cyassllib"
23773           export LD_LIBRARY_PATH
23774           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to LD_LIBRARY_PATH" >&5
23775 $as_echo "$as_me: Added $cyassllib to LD_LIBRARY_PATH" >&6;}
23776         fi
23777       fi
23778
23779     fi
23780
23781   fi
23782 fi
23783
23784
23785 OPT_NSS=no
23786
23787
23788 # Check whether --with-nss was given.
23789 if test "${with_nss+set}" = set; then :
23790   withval=$with_nss; OPT_NSS=$withval
23791 fi
23792
23793
23794 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23795
23796   if test X"$OPT_NSS" != Xno; then
23797
23798     addld=""
23799     addlib=""
23800     addcflags=""
23801     nssprefix=""
23802     version=""
23803
23804     if test "x$OPT_NSS" = "xyes"; then
23805
23806
23807
23808     PKGCONFIG="no"
23809
23810     if test -n "$ac_tool_prefix"; then
23811   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23812 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23814 $as_echo_n "checking for $ac_word... " >&6; }
23815 if ${ac_cv_path_PKGCONFIG+:} false; then :
23816   $as_echo_n "(cached) " >&6
23817 else
23818   case $PKGCONFIG in
23819   [\\/]* | ?:[\\/]*)
23820   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23821   ;;
23822   *)
23823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23824 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23825 for as_dir in $as_dummy
23826 do
23827   IFS=$as_save_IFS
23828   test -z "$as_dir" && as_dir=.
23829     for ac_exec_ext in '' $ac_executable_extensions; do
23830   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23831     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23833     break 2
23834   fi
23835 done
23836   done
23837 IFS=$as_save_IFS
23838
23839   ;;
23840 esac
23841 fi
23842 PKGCONFIG=$ac_cv_path_PKGCONFIG
23843 if test -n "$PKGCONFIG"; then
23844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23845 $as_echo "$PKGCONFIG" >&6; }
23846 else
23847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23848 $as_echo "no" >&6; }
23849 fi
23850
23851
23852 fi
23853 if test -z "$ac_cv_path_PKGCONFIG"; then
23854   ac_pt_PKGCONFIG=$PKGCONFIG
23855   # Extract the first word of "pkg-config", so it can be a program name with args.
23856 set dummy pkg-config; ac_word=$2
23857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23858 $as_echo_n "checking for $ac_word... " >&6; }
23859 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23860   $as_echo_n "(cached) " >&6
23861 else
23862   case $ac_pt_PKGCONFIG in
23863   [\\/]* | ?:[\\/]*)
23864   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23865   ;;
23866   *)
23867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23868 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23869 for as_dir in $as_dummy
23870 do
23871   IFS=$as_save_IFS
23872   test -z "$as_dir" && as_dir=.
23873     for ac_exec_ext in '' $ac_executable_extensions; do
23874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23875     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23877     break 2
23878   fi
23879 done
23880   done
23881 IFS=$as_save_IFS
23882
23883   ;;
23884 esac
23885 fi
23886 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23887 if test -n "$ac_pt_PKGCONFIG"; then
23888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23889 $as_echo "$ac_pt_PKGCONFIG" >&6; }
23890 else
23891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23892 $as_echo "no" >&6; }
23893 fi
23894
23895   if test "x$ac_pt_PKGCONFIG" = x; then
23896     PKGCONFIG="no"
23897   else
23898     case $cross_compiling:$ac_tool_warned in
23899 yes:)
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23902 ac_tool_warned=yes ;;
23903 esac
23904     PKGCONFIG=$ac_pt_PKGCONFIG
23905   fi
23906 else
23907   PKGCONFIG="$ac_cv_path_PKGCONFIG"
23908 fi
23909
23910
23911     if test x$PKGCONFIG != xno; then
23912       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
23913 $as_echo_n "checking for nss options with pkg-config... " >&6; }
23914             itexists=`
23915     if test -n ""; then
23916       PKG_CONFIG_LIBDIR=""
23917       export PKG_CONFIG_LIBDIR
23918     fi
23919          $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
23920
23921       if test -z "$itexists"; then
23922                         PKGCONFIG="no"
23923         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23924 $as_echo "no" >&6; }
23925       else
23926         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23927 $as_echo "found" >&6; }
23928       fi
23929     fi
23930
23931
23932       if test "$PKGCONFIG" != "no" ; then
23933         addlib=`$PKGCONFIG --libs nss`
23934         addcflags=`$PKGCONFIG --cflags nss`
23935         version=`$PKGCONFIG --modversion nss`
23936         nssprefix=`$PKGCONFIG --variable=prefix nss`
23937       else
23938
23939         check=`nss-config --version 2>/dev/null`
23940         if test -n "$check"; then
23941           addlib=`nss-config --libs`
23942           addcflags=`nss-config --cflags`
23943           version=`nss-config --version`
23944           nssprefix=`nss-config --prefix`
23945         else
23946           addlib="-lnss3"
23947           addcflags=""
23948           version="unknown"
23949         fi
23950       fi
23951     else
23952       NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
23953       if test -f "$NSS_PCDIR/nss.pc"; then
23954
23955
23956     PKGCONFIG="no"
23957
23958     if test -n "$ac_tool_prefix"; then
23959   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23960 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23962 $as_echo_n "checking for $ac_word... " >&6; }
23963 if ${ac_cv_path_PKGCONFIG+:} false; then :
23964   $as_echo_n "(cached) " >&6
23965 else
23966   case $PKGCONFIG in
23967   [\\/]* | ?:[\\/]*)
23968   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23969   ;;
23970   *)
23971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23972 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23973 for as_dir in $as_dummy
23974 do
23975   IFS=$as_save_IFS
23976   test -z "$as_dir" && as_dir=.
23977     for ac_exec_ext in '' $ac_executable_extensions; do
23978   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23979     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23981     break 2
23982   fi
23983 done
23984   done
23985 IFS=$as_save_IFS
23986
23987   ;;
23988 esac
23989 fi
23990 PKGCONFIG=$ac_cv_path_PKGCONFIG
23991 if test -n "$PKGCONFIG"; then
23992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23993 $as_echo "$PKGCONFIG" >&6; }
23994 else
23995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23996 $as_echo "no" >&6; }
23997 fi
23998
23999
24000 fi
24001 if test -z "$ac_cv_path_PKGCONFIG"; then
24002   ac_pt_PKGCONFIG=$PKGCONFIG
24003   # Extract the first word of "pkg-config", so it can be a program name with args.
24004 set dummy pkg-config; ac_word=$2
24005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24006 $as_echo_n "checking for $ac_word... " >&6; }
24007 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24008   $as_echo_n "(cached) " >&6
24009 else
24010   case $ac_pt_PKGCONFIG in
24011   [\\/]* | ?:[\\/]*)
24012   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24013   ;;
24014   *)
24015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24016 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24017 for as_dir in $as_dummy
24018 do
24019   IFS=$as_save_IFS
24020   test -z "$as_dir" && as_dir=.
24021     for ac_exec_ext in '' $ac_executable_extensions; do
24022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24023     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24025     break 2
24026   fi
24027 done
24028   done
24029 IFS=$as_save_IFS
24030
24031   ;;
24032 esac
24033 fi
24034 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24035 if test -n "$ac_pt_PKGCONFIG"; then
24036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24037 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24038 else
24039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24040 $as_echo "no" >&6; }
24041 fi
24042
24043   if test "x$ac_pt_PKGCONFIG" = x; then
24044     PKGCONFIG="no"
24045   else
24046     case $cross_compiling:$ac_tool_warned in
24047 yes:)
24048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24050 ac_tool_warned=yes ;;
24051 esac
24052     PKGCONFIG=$ac_pt_PKGCONFIG
24053   fi
24054 else
24055   PKGCONFIG="$ac_cv_path_PKGCONFIG"
24056 fi
24057
24058
24059     if test x$PKGCONFIG != xno; then
24060       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
24061 $as_echo_n "checking for nss options with pkg-config... " >&6; }
24062             itexists=`
24063     if test -n "$NSS_PCDIR"; then
24064       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24065       export PKG_CONFIG_LIBDIR
24066     fi
24067          $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
24068
24069       if test -z "$itexists"; then
24070                         PKGCONFIG="no"
24071         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24072 $as_echo "no" >&6; }
24073       else
24074         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24075 $as_echo "found" >&6; }
24076       fi
24077     fi
24078
24079         if test "$PKGCONFIG" != "no" ; then
24080           addld=`
24081     if test -n "$NSS_PCDIR"; then
24082       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24083       export PKG_CONFIG_LIBDIR
24084     fi
24085  $PKGCONFIG --libs-only-L nss`
24086           addlib=`
24087     if test -n "$NSS_PCDIR"; then
24088       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24089       export PKG_CONFIG_LIBDIR
24090     fi
24091  $PKGCONFIG --libs-only-l nss`
24092           addcflags=`
24093     if test -n "$NSS_PCDIR"; then
24094       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24095       export PKG_CONFIG_LIBDIR
24096     fi
24097  $PKGCONFIG --cflags nss`
24098           version=`
24099     if test -n "$NSS_PCDIR"; then
24100       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24101       export PKG_CONFIG_LIBDIR
24102     fi
24103  $PKGCONFIG --modversion nss`
24104           nssprefix=`
24105     if test -n "$NSS_PCDIR"; then
24106       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24107       export PKG_CONFIG_LIBDIR
24108     fi
24109  $PKGCONFIG --variable=prefix nss`
24110         fi
24111       fi
24112     fi
24113
24114     if test -z "$addlib"; then
24115       # Without pkg-config, we'll kludge in some defaults
24116       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
24117 $as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
24118       addld="-L$OPT_NSS/lib"
24119       addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
24120       addcflags="-I$OPT_NSS/include"
24121       version="unknown"
24122       nssprefix=$OPT_NSS
24123     fi
24124
24125     CLEANLDFLAGS="$LDFLAGS"
24126     CLEANLIBS="$LIBS"
24127     CLEANCPPFLAGS="$CPPFLAGS"
24128
24129     LDFLAGS="$addld $LDFLAGS"
24130     LIBS="$addlib $LIBS"
24131     if test "$addcflags" != "-I/usr/include"; then
24132        CPPFLAGS="$CPPFLAGS $addcflags"
24133     fi
24134
24135         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
24136 $as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
24137 if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
24138   $as_echo_n "(cached) " >&6
24139 else
24140   ac_check_lib_save_LIBS=$LIBS
24141 LIBS="-lnss3  $LIBS"
24142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24143 /* end confdefs.h.  */
24144
24145
24146 #ifdef __cplusplus
24147 extern "C"
24148 #endif
24149 char SSL_VersionRangeSet ();
24150 int main (void)
24151 {
24152 return SSL_VersionRangeSet ();
24153  ;
24154  return 0;
24155 }
24156 _ACEOF
24157 if ac_fn_c_try_link "$LINENO"; then :
24158   ac_cv_lib_nss3_SSL_VersionRangeSet=yes
24159 else
24160   ac_cv_lib_nss3_SSL_VersionRangeSet=no
24161 fi
24162 rm -f core conftest.err conftest.$ac_objext \
24163     conftest$ac_exeext conftest.$ac_ext
24164 LIBS=$ac_check_lib_save_LIBS
24165 fi
24166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
24167 $as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
24168 if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
24169
24170
24171 $as_echo "#define USE_NSS 1" >>confdefs.h
24172
24173      USE_NSS=1
24174
24175      USE_NSS="yes"
24176      NSS_ENABLED=1
24177      curl_ssl_msg="enabled (NSS)"
24178
24179 else
24180
24181        LDFLAGS="$CLEANLDFLAGS"
24182        LIBS="$CLEANLIBS"
24183        CPPFLAGS="$CLEANCPPFLAGS"
24184
24185 fi
24186
24187
24188     if test "x$USE_NSS" = "xyes"; then
24189       { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
24190 $as_echo "$as_me: detected NSS version $version" >&6;}
24191
24192             NSS_LIBS=$addlib
24193
24194
24195                               if test "x$cross_compiling" != "xyes"; then
24196         LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff"
24197         export LD_LIBRARY_PATH
24198         { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
24199 $as_echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
24200       fi
24201
24202     fi
24203   fi
24204 fi
24205 OPT_AXTLS=off
24206
24207
24208 # Check whether --with-axtls was given.
24209 if test "${with_axtls+set}" = set; then :
24210   withval=$with_axtls; OPT_AXTLS=$withval
24211 fi
24212
24213
24214 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
24215   if test X"$OPT_AXTLS" != Xno; then
24216         CLEANLDFLAGS="$LDFLAGS"
24217     CLEANCPPFLAGS="$CPPFLAGS"
24218     CLEANLIBS="$LIBS"
24219
24220     case "$OPT_AXTLS" in
24221     yes)
24222             PREFIX_AXTLS=/usr/local
24223       LIB_AXTLS="$PREFIX_AXTLS/lib"
24224       LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
24225       CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
24226       ;;
24227     off)
24228             PREFIX_AXTLS=
24229       ;;
24230     *)
24231             PREFIX_AXTLS=$OPT_AXTLS
24232       LIB_AXTLS="$PREFIX_AXTLS/lib"
24233       LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
24234       CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
24235       ;;
24236     esac
24237
24238     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5
24239 $as_echo_n "checking for ssl_version in -laxtls... " >&6; }
24240 if ${ac_cv_lib_axtls_ssl_version+:} false; then :
24241   $as_echo_n "(cached) " >&6
24242 else
24243   ac_check_lib_save_LIBS=$LIBS
24244 LIBS="-laxtls  $LIBS"
24245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24246 /* end confdefs.h.  */
24247
24248
24249 #ifdef __cplusplus
24250 extern "C"
24251 #endif
24252 char ssl_version ();
24253 int main (void)
24254 {
24255 return ssl_version ();
24256  ;
24257  return 0;
24258 }
24259 _ACEOF
24260 if ac_fn_c_try_link "$LINENO"; then :
24261   ac_cv_lib_axtls_ssl_version=yes
24262 else
24263   ac_cv_lib_axtls_ssl_version=no
24264 fi
24265 rm -f core conftest.err conftest.$ac_objext \
24266     conftest$ac_exeext conftest.$ac_ext
24267 LIBS=$ac_check_lib_save_LIBS
24268 fi
24269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5
24270 $as_echo "$ac_cv_lib_axtls_ssl_version" >&6; }
24271 if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then :
24272
24273       LIBS="-laxtls $LIBS"
24274
24275 $as_echo "#define USE_AXTLS 1" >>confdefs.h
24276
24277       USE_AXTLS=1
24278
24279       AXTLS_ENABLED=1
24280       USE_AXTLS="yes"
24281       curl_ssl_msg="enabled (axTLS)"
24282
24283       if test "x$cross_compiling" != "xyes"; then
24284         LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_AXTLS"
24285         export LD_LIBRARY_PATH
24286         { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&5
24287 $as_echo "$as_me: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&6;}
24288       fi
24289
24290 else
24291
24292       LDFLAGS="$CLEANLDFLAGS"
24293       CPPFLAGS="$CLEANCPPFLAGS"
24294       LIBS="$CLEANLIBS"
24295
24296 fi
24297
24298   fi
24299 fi
24300
24301 if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" = "x"; then
24302   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
24303 $as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
24304   { $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
24305 $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;}
24306 else
24307   # SSL is enabled, genericly
24308
24309   SSL_ENABLED="1"
24310 fi
24311
24312
24313
24314
24315   { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
24316 $as_echo_n "checking default CA cert bundle/path... " >&6; }
24317
24318
24319 # Check whether --with-ca-bundle was given.
24320 if test "${with_ca_bundle+set}" = set; then :
24321   withval=$with_ca_bundle;
24322     want_ca="$withval"
24323     if test "x$want_ca" = "xyes"; then
24324       as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
24325     fi
24326
24327 else
24328    want_ca="unset"
24329 fi
24330
24331
24332 # Check whether --with-ca-path was given.
24333 if test "${with_ca_path+set}" = set; then :
24334   withval=$with_ca_path;
24335     want_capath="$withval"
24336     if test "x$want_capath" = "xyes"; then
24337       as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
24338     fi
24339
24340 else
24341    want_capath="unset"
24342 fi
24343
24344
24345   if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
24346           "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
24347         ca="$want_ca"
24348     capath="$want_capath"
24349   elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
24350         ca="$want_ca"
24351     capath="no"
24352   elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
24353         if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
24354       as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5
24355     fi
24356     capath="$want_capath"
24357     ca="no"
24358   else
24359             ca="no"
24360     capath="no"
24361     if test "x$cross_compiling" != "xyes"; then
24362                   if test "x$want_ca" = "xunset"; then
24363                                 if test "x$prefix" != xNONE; then
24364           cac="${prefix}/share/curl/curl-ca-bundle.crt"
24365         else
24366           cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
24367         fi
24368
24369         for a in /etc/ssl/certs/ca-certificates.crt \
24370                  /etc/pki/tls/certs/ca-bundle.crt \
24371                  /usr/share/ssl/certs/ca-bundle.crt \
24372                  /usr/local/share/certs/ca-root.crt \
24373                  /etc/ssl/cert.pem \
24374                  "$cac"; do
24375           if test -f "$a"; then
24376             ca="$a"
24377             break
24378           fi
24379         done
24380       fi
24381       if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
24382               "x$OPENSSL_ENABLED" = "x1"; then
24383         for a in /etc/ssl/certs/; do
24384           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
24385             capath="$a"
24386             break
24387           fi
24388         done
24389       fi
24390     else
24391             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
24392 $as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
24393     fi
24394   fi
24395
24396   if test "x$ca" != "xno"; then
24397     CURL_CA_BUNDLE='"'$ca'"'
24398
24399 cat >>confdefs.h <<_ACEOF
24400 #define CURL_CA_BUNDLE "$ca"
24401 _ACEOF
24402
24403
24404     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
24405 $as_echo "$ca" >&6; }
24406   fi
24407   if test "x$capath" != "xno"; then
24408     CURL_CA_PATH="\"$capath\""
24409
24410 cat >>confdefs.h <<_ACEOF
24411 #define CURL_CA_PATH "$capath"
24412 _ACEOF
24413
24414     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
24415 $as_echo "$capath (capath)" >&6; }
24416   fi
24417   if test "x$ca" = "xno" && test "x$capath" = "xno"; then
24418     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24419 $as_echo "no" >&6; }
24420   fi
24421
24422
24423
24424 OPT_LIBMETALINK=no
24425
24426
24427 # Check whether --with-libmetalink was given.
24428 if test "${with_libmetalink+set}" = set; then :
24429   withval=$with_libmetalink; OPT_LIBMETALINK=$withval
24430 fi
24431
24432
24433 if test X"$OPT_LIBMETALINK" != Xno; then
24434
24435   addld=""
24436   addlib=""
24437   addcflags=""
24438   version=""
24439   libmetalinklib=""
24440
24441   PKGTEST="no"
24442   if test "x$OPT_LIBMETALINK" = "xyes"; then
24443         PKGTEST="yes"
24444
24445
24446     PKGCONFIG="no"
24447
24448     if test -n "$ac_tool_prefix"; then
24449   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24450 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24452 $as_echo_n "checking for $ac_word... " >&6; }
24453 if ${ac_cv_path_PKGCONFIG+:} false; then :
24454   $as_echo_n "(cached) " >&6
24455 else
24456   case $PKGCONFIG in
24457   [\\/]* | ?:[\\/]*)
24458   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24459   ;;
24460   *)
24461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24462 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24463 for as_dir in $as_dummy
24464 do
24465   IFS=$as_save_IFS
24466   test -z "$as_dir" && as_dir=.
24467     for ac_exec_ext in '' $ac_executable_extensions; do
24468   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24469     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24471     break 2
24472   fi
24473 done
24474   done
24475 IFS=$as_save_IFS
24476
24477   ;;
24478 esac
24479 fi
24480 PKGCONFIG=$ac_cv_path_PKGCONFIG
24481 if test -n "$PKGCONFIG"; then
24482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24483 $as_echo "$PKGCONFIG" >&6; }
24484 else
24485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24486 $as_echo "no" >&6; }
24487 fi
24488
24489
24490 fi
24491 if test -z "$ac_cv_path_PKGCONFIG"; then
24492   ac_pt_PKGCONFIG=$PKGCONFIG
24493   # Extract the first word of "pkg-config", so it can be a program name with args.
24494 set dummy pkg-config; ac_word=$2
24495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24496 $as_echo_n "checking for $ac_word... " >&6; }
24497 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24498   $as_echo_n "(cached) " >&6
24499 else
24500   case $ac_pt_PKGCONFIG in
24501   [\\/]* | ?:[\\/]*)
24502   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24503   ;;
24504   *)
24505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24506 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24507 for as_dir in $as_dummy
24508 do
24509   IFS=$as_save_IFS
24510   test -z "$as_dir" && as_dir=.
24511     for ac_exec_ext in '' $ac_executable_extensions; do
24512   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24513     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24515     break 2
24516   fi
24517 done
24518   done
24519 IFS=$as_save_IFS
24520
24521   ;;
24522 esac
24523 fi
24524 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24525 if test -n "$ac_pt_PKGCONFIG"; then
24526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24527 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24528 else
24529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24530 $as_echo "no" >&6; }
24531 fi
24532
24533   if test "x$ac_pt_PKGCONFIG" = x; then
24534     PKGCONFIG="no"
24535   else
24536     case $cross_compiling:$ac_tool_warned in
24537 yes:)
24538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24540 ac_tool_warned=yes ;;
24541 esac
24542     PKGCONFIG=$ac_pt_PKGCONFIG
24543   fi
24544 else
24545   PKGCONFIG="$ac_cv_path_PKGCONFIG"
24546 fi
24547
24548
24549     if test x$PKGCONFIG != xno; then
24550       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
24551 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
24552             itexists=`
24553     if test -n ""; then
24554       PKG_CONFIG_LIBDIR=""
24555       export PKG_CONFIG_LIBDIR
24556     fi
24557          $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
24558
24559       if test -z "$itexists"; then
24560                         PKGCONFIG="no"
24561         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24562 $as_echo "no" >&6; }
24563       else
24564         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24565 $as_echo "found" >&6; }
24566       fi
24567     fi
24568
24569   else
24570         LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
24571     { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
24572 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
24573     if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
24574       PKGTEST="yes"
24575     fi
24576     if test "$PKGTEST" = "yes"; then
24577
24578
24579     PKGCONFIG="no"
24580
24581     if test -n "$ac_tool_prefix"; then
24582   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24583 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24585 $as_echo_n "checking for $ac_word... " >&6; }
24586 if ${ac_cv_path_PKGCONFIG+:} false; then :
24587   $as_echo_n "(cached) " >&6
24588 else
24589   case $PKGCONFIG in
24590   [\\/]* | ?:[\\/]*)
24591   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24592   ;;
24593   *)
24594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24595 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24596 for as_dir in $as_dummy
24597 do
24598   IFS=$as_save_IFS
24599   test -z "$as_dir" && as_dir=.
24600     for ac_exec_ext in '' $ac_executable_extensions; do
24601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24602     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24604     break 2
24605   fi
24606 done
24607   done
24608 IFS=$as_save_IFS
24609
24610   ;;
24611 esac
24612 fi
24613 PKGCONFIG=$ac_cv_path_PKGCONFIG
24614 if test -n "$PKGCONFIG"; then
24615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24616 $as_echo "$PKGCONFIG" >&6; }
24617 else
24618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24619 $as_echo "no" >&6; }
24620 fi
24621
24622
24623 fi
24624 if test -z "$ac_cv_path_PKGCONFIG"; then
24625   ac_pt_PKGCONFIG=$PKGCONFIG
24626   # Extract the first word of "pkg-config", so it can be a program name with args.
24627 set dummy pkg-config; ac_word=$2
24628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24629 $as_echo_n "checking for $ac_word... " >&6; }
24630 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24631   $as_echo_n "(cached) " >&6
24632 else
24633   case $ac_pt_PKGCONFIG in
24634   [\\/]* | ?:[\\/]*)
24635   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24636   ;;
24637   *)
24638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24639 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24640 for as_dir in $as_dummy
24641 do
24642   IFS=$as_save_IFS
24643   test -z "$as_dir" && as_dir=.
24644     for ac_exec_ext in '' $ac_executable_extensions; do
24645   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24646     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24648     break 2
24649   fi
24650 done
24651   done
24652 IFS=$as_save_IFS
24653
24654   ;;
24655 esac
24656 fi
24657 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24658 if test -n "$ac_pt_PKGCONFIG"; then
24659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24660 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24661 else
24662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24663 $as_echo "no" >&6; }
24664 fi
24665
24666   if test "x$ac_pt_PKGCONFIG" = x; then
24667     PKGCONFIG="no"
24668   else
24669     case $cross_compiling:$ac_tool_warned in
24670 yes:)
24671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24673 ac_tool_warned=yes ;;
24674 esac
24675     PKGCONFIG=$ac_pt_PKGCONFIG
24676   fi
24677 else
24678   PKGCONFIG="$ac_cv_path_PKGCONFIG"
24679 fi
24680
24681
24682     if test x$PKGCONFIG != xno; then
24683       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
24684 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
24685             itexists=`
24686     if test -n "$LIBMETALINK_PCDIR"; then
24687       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24688       export PKG_CONFIG_LIBDIR
24689     fi
24690          $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
24691
24692       if test -z "$itexists"; then
24693                         PKGCONFIG="no"
24694         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24695 $as_echo "no" >&6; }
24696       else
24697         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24698 $as_echo "found" >&6; }
24699       fi
24700     fi
24701
24702     fi
24703   fi
24704   if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
24705     addlib=`
24706     if test -n "$LIBMETALINK_PCDIR"; then
24707       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24708       export PKG_CONFIG_LIBDIR
24709     fi
24710        $PKGCONFIG --libs-only-l libmetalink`
24711     addld=`
24712     if test -n "$LIBMETALINK_PCDIR"; then
24713       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24714       export PKG_CONFIG_LIBDIR
24715     fi
24716        $PKGCONFIG --libs-only-L libmetalink`
24717     addcflags=`
24718     if test -n "$LIBMETALINK_PCDIR"; then
24719       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24720       export PKG_CONFIG_LIBDIR
24721     fi
24722        $PKGCONFIG --cflags-only-I libmetalink`
24723     version=`
24724     if test -n "$LIBMETALINK_PCDIR"; then
24725       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24726       export PKG_CONFIG_LIBDIR
24727     fi
24728        $PKGCONFIG --modversion libmetalink`
24729     libmetalinklib=`echo $addld | $SED -e 's/-L//'`
24730   fi
24731   if test -n "$addlib"; then
24732
24733     clean_CPPFLAGS="$CPPFLAGS"
24734     clean_LDFLAGS="$LDFLAGS"
24735     clean_LIBS="$LIBS"
24736     CPPFLAGS="$addcflags $clean_CPPFLAGS"
24737     LDFLAGS="$addld $clean_LDFLAGS"
24738     LIBS="$addlib $clean_LIBS"
24739     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
24740 $as_echo_n "checking if libmetalink is recent enough... " >&6; }
24741     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24742 /* end confdefs.h.  */
24743
24744
24745 #       include <metalink/metalink.h>
24746
24747 int main (void)
24748 {
24749
24750         if(0 != metalink_strerror(0)) /* added in 0.1.0 */
24751           return 1;
24752
24753  ;
24754  return 0;
24755 }
24756
24757 _ACEOF
24758 if ac_fn_c_try_link "$LINENO"; then :
24759
24760       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
24761 $as_echo "yes ($version)" >&6; }
24762       want_metalink="yes"
24763
24764 else
24765
24766       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
24767 $as_echo "no ($version)" >&6; }
24768       { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
24769 $as_echo "$as_me: libmetalink library defective or too old" >&6;}
24770       want_metalink="no"
24771
24772 fi
24773 rm -f core conftest.err conftest.$ac_objext \
24774     conftest$ac_exeext conftest.$ac_ext
24775     CPPFLAGS="$clean_CPPFLAGS"
24776     LDFLAGS="$clean_LDFLAGS"
24777     LIBS="$clean_LIBS"
24778     if test "$want_metalink" = "yes"; then
24779
24780 $as_echo "#define USE_METALINK 1" >>confdefs.h
24781
24782       LIBMETALINK_LIBS=$addlib
24783       LIBMETALINK_LDFLAGS=$addld
24784       LIBMETALINK_CPPFLAGS=$addcflags
24785
24786
24787
24788       curl_mtlnk_msg="enabled"
24789     fi
24790
24791   fi
24792 fi
24793
24794
24795 OPT_LIBSSH2=off
24796
24797 # Check whether --with-libssh2 was given.
24798 if test "${with_libssh2+set}" = set; then :
24799   withval=$with_libssh2; OPT_LIBSSH2=$withval
24800 fi
24801
24802
24803 if test X"$OPT_LIBSSH2" != Xno; then
24804     CLEANLDFLAGS="$LDFLAGS"
24805   CLEANCPPFLAGS="$CPPFLAGS"
24806   CLEANLIBS="$LIBS"
24807
24808   case "$OPT_LIBSSH2" in
24809   yes)
24810
24811
24812     PKGCONFIG="no"
24813
24814     if test -n "$ac_tool_prefix"; then
24815   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24816 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24818 $as_echo_n "checking for $ac_word... " >&6; }
24819 if ${ac_cv_path_PKGCONFIG+:} false; then :
24820   $as_echo_n "(cached) " >&6
24821 else
24822   case $PKGCONFIG in
24823   [\\/]* | ?:[\\/]*)
24824   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24825   ;;
24826   *)
24827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24828 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24829 for as_dir in $as_dummy
24830 do
24831   IFS=$as_save_IFS
24832   test -z "$as_dir" && as_dir=.
24833     for ac_exec_ext in '' $ac_executable_extensions; do
24834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24835     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24837     break 2
24838   fi
24839 done
24840   done
24841 IFS=$as_save_IFS
24842
24843   ;;
24844 esac
24845 fi
24846 PKGCONFIG=$ac_cv_path_PKGCONFIG
24847 if test -n "$PKGCONFIG"; then
24848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24849 $as_echo "$PKGCONFIG" >&6; }
24850 else
24851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24852 $as_echo "no" >&6; }
24853 fi
24854
24855
24856 fi
24857 if test -z "$ac_cv_path_PKGCONFIG"; then
24858   ac_pt_PKGCONFIG=$PKGCONFIG
24859   # Extract the first word of "pkg-config", so it can be a program name with args.
24860 set dummy pkg-config; ac_word=$2
24861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24862 $as_echo_n "checking for $ac_word... " >&6; }
24863 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24864   $as_echo_n "(cached) " >&6
24865 else
24866   case $ac_pt_PKGCONFIG in
24867   [\\/]* | ?:[\\/]*)
24868   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24869   ;;
24870   *)
24871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24872 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24873 for as_dir in $as_dummy
24874 do
24875   IFS=$as_save_IFS
24876   test -z "$as_dir" && as_dir=.
24877     for ac_exec_ext in '' $ac_executable_extensions; do
24878   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24879     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24881     break 2
24882   fi
24883 done
24884   done
24885 IFS=$as_save_IFS
24886
24887   ;;
24888 esac
24889 fi
24890 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24891 if test -n "$ac_pt_PKGCONFIG"; then
24892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24893 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24894 else
24895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24896 $as_echo "no" >&6; }
24897 fi
24898
24899   if test "x$ac_pt_PKGCONFIG" = x; then
24900     PKGCONFIG="no"
24901   else
24902     case $cross_compiling:$ac_tool_warned in
24903 yes:)
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24906 ac_tool_warned=yes ;;
24907 esac
24908     PKGCONFIG=$ac_pt_PKGCONFIG
24909   fi
24910 else
24911   PKGCONFIG="$ac_cv_path_PKGCONFIG"
24912 fi
24913
24914
24915     if test x$PKGCONFIG != xno; then
24916       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
24917 $as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
24918             itexists=`
24919     if test -n ""; then
24920       PKG_CONFIG_LIBDIR=""
24921       export PKG_CONFIG_LIBDIR
24922     fi
24923          $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
24924
24925       if test -z "$itexists"; then
24926                         PKGCONFIG="no"
24927         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24928 $as_echo "no" >&6; }
24929       else
24930         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24931 $as_echo "found" >&6; }
24932       fi
24933     fi
24934
24935
24936     if test "$PKGCONFIG" != "no" ; then
24937       LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
24938       LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
24939       CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
24940       version=`$PKGCONFIG --modversion libssh2`
24941       DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
24942     fi
24943
24944     ;;
24945   off)
24946         ;;
24947   *)
24948         PREFIX_SSH2=$OPT_LIBSSH2
24949     ;;
24950   esac
24951
24952     if test -n "$PREFIX_SSH2"; then
24953     LIB_SSH2="-lssh2"
24954     LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
24955     CPP_SSH2=-I${PREFIX_SSH2}/include
24956     DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
24957   fi
24958
24959   LDFLAGS="$LDFLAGS $LD_SSH2"
24960   CPPFLAGS="$CPPFLAGS $CPP_SSH2"
24961   LIBS="$LIB_SSH2 $LIBS"
24962
24963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
24964 $as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
24965 if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
24966   $as_echo_n "(cached) " >&6
24967 else
24968   ac_check_lib_save_LIBS=$LIBS
24969 LIBS="-lssh2  $LIBS"
24970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24971 /* end confdefs.h.  */
24972
24973
24974 #ifdef __cplusplus
24975 extern "C"
24976 #endif
24977 char libssh2_channel_open_ex ();
24978 int main (void)
24979 {
24980 return libssh2_channel_open_ex ();
24981  ;
24982  return 0;
24983 }
24984 _ACEOF
24985 if ac_fn_c_try_link "$LINENO"; then :
24986   ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
24987 else
24988   ac_cv_lib_ssh2_libssh2_channel_open_ex=no
24989 fi
24990 rm -f core conftest.err conftest.$ac_objext \
24991     conftest$ac_exeext conftest.$ac_ext
24992 LIBS=$ac_check_lib_save_LIBS
24993 fi
24994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
24995 $as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
24996 if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
24997   cat >>confdefs.h <<_ACEOF
24998 #define HAVE_LIBSSH2 1
24999 _ACEOF
25000
25001   LIBS="-lssh2 $LIBS"
25002
25003 fi
25004
25005
25006   for ac_header in libssh2.h
25007 do :
25008   ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
25009 if test "x$ac_cv_header_libssh2_h" = xyes; then :
25010   cat >>confdefs.h <<_ACEOF
25011 #define HAVE_LIBSSH2_H 1
25012 _ACEOF
25013  curl_ssh_msg="enabled (libSSH2)"
25014     LIBSSH2_ENABLED=1
25015
25016 $as_echo "#define USE_LIBSSH2 1" >>confdefs.h
25017
25018     USE_LIBSSH2=1
25019
25020
25021 fi
25022
25023 done
25024
25025
25026   if test X"$OPT_LIBSSH2" != Xoff &&
25027      test "$LIBSSH2_ENABLED" != "1"; then
25028     as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
25029   fi
25030
25031   if test "$LIBSSH2_ENABLED" = "1"; then
25032     if test -n "$DIR_SSH2"; then
25033
25034        if test "x$cross_compiling" != "xyes"; then
25035          LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
25036          export LD_LIBRARY_PATH
25037          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&5
25038 $as_echo "$as_me: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&6;}
25039        fi
25040     fi
25041   else
25042         LDFLAGS=$CLEANLDFLAGS
25043     CPPFLAGS=$CLEANCPPFLAGS
25044     LIBS=$CLEANLIBS
25045   fi
25046 fi
25047
25048
25049 OPT_LIBRTMP=off
25050
25051 # Check whether --with-librtmp was given.
25052 if test "${with_librtmp+set}" = set; then :
25053   withval=$with_librtmp; OPT_LIBRTMP=$withval
25054 fi
25055
25056
25057 if test X"$OPT_LIBRTMP" != Xno; then
25058     CLEANLDFLAGS="$LDFLAGS"
25059   CLEANCPPFLAGS="$CPPFLAGS"
25060   CLEANLIBS="$LIBS"
25061
25062   case "$OPT_LIBRTMP" in
25063   yes)
25064
25065
25066     PKGCONFIG="no"
25067
25068     if test -n "$ac_tool_prefix"; then
25069   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25070 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25072 $as_echo_n "checking for $ac_word... " >&6; }
25073 if ${ac_cv_path_PKGCONFIG+:} false; then :
25074   $as_echo_n "(cached) " >&6
25075 else
25076   case $PKGCONFIG in
25077   [\\/]* | ?:[\\/]*)
25078   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25079   ;;
25080   *)
25081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25082 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25083 for as_dir in $as_dummy
25084 do
25085   IFS=$as_save_IFS
25086   test -z "$as_dir" && as_dir=.
25087     for ac_exec_ext in '' $ac_executable_extensions; do
25088   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25089     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25091     break 2
25092   fi
25093 done
25094   done
25095 IFS=$as_save_IFS
25096
25097   ;;
25098 esac
25099 fi
25100 PKGCONFIG=$ac_cv_path_PKGCONFIG
25101 if test -n "$PKGCONFIG"; then
25102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25103 $as_echo "$PKGCONFIG" >&6; }
25104 else
25105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25106 $as_echo "no" >&6; }
25107 fi
25108
25109
25110 fi
25111 if test -z "$ac_cv_path_PKGCONFIG"; then
25112   ac_pt_PKGCONFIG=$PKGCONFIG
25113   # Extract the first word of "pkg-config", so it can be a program name with args.
25114 set dummy pkg-config; ac_word=$2
25115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25116 $as_echo_n "checking for $ac_word... " >&6; }
25117 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25118   $as_echo_n "(cached) " >&6
25119 else
25120   case $ac_pt_PKGCONFIG in
25121   [\\/]* | ?:[\\/]*)
25122   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25123   ;;
25124   *)
25125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25126 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25127 for as_dir in $as_dummy
25128 do
25129   IFS=$as_save_IFS
25130   test -z "$as_dir" && as_dir=.
25131     for ac_exec_ext in '' $ac_executable_extensions; do
25132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25133     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25135     break 2
25136   fi
25137 done
25138   done
25139 IFS=$as_save_IFS
25140
25141   ;;
25142 esac
25143 fi
25144 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25145 if test -n "$ac_pt_PKGCONFIG"; then
25146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25147 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25148 else
25149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25150 $as_echo "no" >&6; }
25151 fi
25152
25153   if test "x$ac_pt_PKGCONFIG" = x; then
25154     PKGCONFIG="no"
25155   else
25156     case $cross_compiling:$ac_tool_warned in
25157 yes:)
25158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25160 ac_tool_warned=yes ;;
25161 esac
25162     PKGCONFIG=$ac_pt_PKGCONFIG
25163   fi
25164 else
25165   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25166 fi
25167
25168
25169     if test x$PKGCONFIG != xno; then
25170       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
25171 $as_echo_n "checking for librtmp options with pkg-config... " >&6; }
25172             itexists=`
25173     if test -n ""; then
25174       PKG_CONFIG_LIBDIR=""
25175       export PKG_CONFIG_LIBDIR
25176     fi
25177          $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
25178
25179       if test -z "$itexists"; then
25180                         PKGCONFIG="no"
25181         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25182 $as_echo "no" >&6; }
25183       else
25184         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25185 $as_echo "found" >&6; }
25186       fi
25187     fi
25188
25189
25190     if test "$PKGCONFIG" != "no" ; then
25191       LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
25192       LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
25193       CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
25194       version=`$PKGCONFIG --modversion librtmp`
25195       DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
25196     else
25197                   as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
25198     fi
25199
25200     ;;
25201   off)
25202         LIB_RTMP="-lrtmp"
25203     ;;
25204   *)
25205         PREFIX_RTMP=$OPT_LIBRTMP
25206     ;;
25207   esac
25208
25209     if test -n "$PREFIX_RTMP"; then
25210     LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
25211     CPP_RTMP=-I${PREFIX_RTMP}/include
25212     DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
25213   fi
25214
25215   LDFLAGS="$LDFLAGS $LD_RTMP"
25216   CPPFLAGS="$CPPFLAGS $CPP_RTMP"
25217   LIBS="$LIB_RTMP $LIBS"
25218
25219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
25220 $as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
25221 if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
25222   $as_echo_n "(cached) " >&6
25223 else
25224   ac_check_lib_save_LIBS=$LIBS
25225 LIBS="-lrtmp  $LIBS"
25226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25227 /* end confdefs.h.  */
25228
25229
25230 #ifdef __cplusplus
25231 extern "C"
25232 #endif
25233 char RTMP_Init ();
25234 int main (void)
25235 {
25236 return RTMP_Init ();
25237  ;
25238  return 0;
25239 }
25240 _ACEOF
25241 if ac_fn_c_try_link "$LINENO"; then :
25242   ac_cv_lib_rtmp_RTMP_Init=yes
25243 else
25244   ac_cv_lib_rtmp_RTMP_Init=no
25245 fi
25246 rm -f core conftest.err conftest.$ac_objext \
25247     conftest$ac_exeext conftest.$ac_ext
25248 LIBS=$ac_check_lib_save_LIBS
25249 fi
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
25251 $as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
25252 if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
25253
25254      for ac_header in librtmp/rtmp.h
25255 do :
25256   ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
25257 if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
25258   cat >>confdefs.h <<_ACEOF
25259 #define HAVE_LIBRTMP_RTMP_H 1
25260 _ACEOF
25261  curl_rtmp_msg="enabled (librtmp)"
25262         LIBRTMP_ENABLED=1
25263
25264 $as_echo "#define USE_LIBRTMP 1" >>confdefs.h
25265
25266         USE_LIBRTMP=1
25267
25268
25269 fi
25270
25271 done
25272
25273
25274 else
25275         LDFLAGS=$CLEANLDFLAGS
25276       CPPFLAGS=$CLEANCPPFLAGS
25277       LIBS=$CLEANLIBS
25278
25279 fi
25280
25281
25282   if test X"$OPT_LIBRTMP" != Xoff &&
25283      test "$LIBRTMP_ENABLED" != "1"; then
25284     as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
25285   fi
25286
25287 fi
25288
25289
25290 versioned_symbols_flavour=
25291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
25292 $as_echo_n "checking whether versioned symbols are wanted... " >&6; }
25293 # Check whether --enable-versioned-symbols was given.
25294 if test "${enable_versioned_symbols+set}" = set; then :
25295   enableval=$enable_versioned_symbols;  case "$enableval" in
25296   yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25297 $as_echo "yes" >&6; }
25298     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
25299 $as_echo_n "checking if libraries can be versioned... " >&6; }
25300     GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
25301     if test -z "$GLD"; then
25302         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25303 $as_echo "no" >&6; }
25304         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
25305 $as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
25306     else
25307         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25308 $as_echo "yes" >&6; }
25309         if test "x$OPENSSL_ENABLED" = "x1"; then
25310           versioned_symbols_flavour="OPENSSL_"
25311         elif test "x$GNUTLS_ENABLED" = "x1"; then
25312           versioned_symbols_flavour="GNUTLS_"
25313         elif test "x$NSS_ENABLED" = "x1"; then
25314           versioned_symbols_flavour="NSS_"
25315         elif test "x$POLARSSL_ENABLED" = "x1"; then
25316           versioned_symbols_flavour="POLARSSL_"
25317         elif test "x$CYASSL_ENABLED" = "x1"; then
25318           versioned_symbols_flavour="CYASSL_"
25319         elif test "x$AXTLS_ENABLED" = "x1"; then
25320           versioned_symbols_flavour="AXTLS_"
25321         elif test "x$WINSSL_ENABLED" = "x1"; then
25322           versioned_symbols_flavour="WINSSL_"
25323         elif test "x$DARWINSSL_ENABLED" = "x1"; then
25324           versioned_symbols_flavour="DARWINSSL_"
25325         else
25326           versioned_symbols_flavour=""
25327         fi
25328         versioned_symbols="yes"
25329     fi
25330     ;;
25331
25332   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25333 $as_echo "no" >&6; }
25334     ;;
25335   esac
25336
25337 else
25338
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25340 $as_echo "no" >&6; }
25341
25342
25343 fi
25344
25345
25346 CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
25347
25348  if test "x$versioned_symbols" = 'xyes'; then
25349   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
25350   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
25351 else
25352   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
25353   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
25354 fi
25355
25356
25357
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
25359 $as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
25360 OPT_WINIDN="default"
25361
25362 # Check whether --with-winidn was given.
25363 if test "${with_winidn+set}" = set; then :
25364   withval=$with_winidn; OPT_WINIDN=$withval
25365 fi
25366
25367 case "$OPT_WINIDN" in
25368   no|default)
25369         want_winidn="no"
25370     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25371 $as_echo "no" >&6; }
25372     ;;
25373   yes)
25374         want_winidn="yes"
25375     want_winidn_path="default"
25376     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25377 $as_echo "yes" >&6; }
25378     ;;
25379   *)
25380         want_winidn="yes"
25381     want_winidn_path="$withval"
25382     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
25383 $as_echo "yes ($withval)" >&6; }
25384     ;;
25385 esac
25386
25387 if test "$want_winidn" = "yes"; then
25388     clean_CPPFLAGS="$CPPFLAGS"
25389   clean_LDFLAGS="$LDFLAGS"
25390   clean_LIBS="$LIBS"
25391   WINIDN_LIBS="-lnormaliz"
25392   #
25393   if test "$want_winidn_path" != "default"; then
25394             WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
25395     WINIDN_CPPFLAGS="-I$want_winidn_path/include"
25396     WINIDN_DIR="$want_winidn_path/lib$libsuff"
25397   fi
25398   #
25399   CPPFLAGS="$WINIDN_CPPFLAGS $CPPFLAGS"
25400   LDFLAGS="$WINIDN_LDFLAGS $LDFLAGS"
25401   LIBS="$WINIDN_LIBS $LIBS"
25402   #
25403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
25404 $as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
25405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25406 /* end confdefs.h.  */
25407
25408
25409 #define IdnToUnicode innocuous_IdnToUnicode
25410 #ifdef __STDC__
25411 # include <limits.h>
25412 #else
25413 # include <assert.h>
25414 #endif
25415 #undef IdnToUnicode
25416 #ifdef __cplusplus
25417 extern "C"
25418 #endif
25419 char IdnToUnicode ();
25420 #if defined __stub_IdnToUnicode || defined __stub___IdnToUnicode
25421 choke me
25422 #endif
25423
25424 int main (void)
25425 {
25426 return IdnToUnicode ();
25427  ;
25428  return 0;
25429 }
25430
25431 _ACEOF
25432 if ac_fn_c_try_link "$LINENO"; then :
25433
25434     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25435 $as_echo "yes" >&6; }
25436     tst_links_winidn="yes"
25437
25438 else
25439
25440     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25441 $as_echo "no" >&6; }
25442     tst_links_winidn="no"
25443
25444 fi
25445 rm -f core conftest.err conftest.$ac_objext \
25446     conftest$ac_exeext conftest.$ac_ext
25447   #
25448   if test "$tst_links_winidn" = "yes"; then
25449
25450 $as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
25451
25452
25453 $as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
25454
25455     IDN_ENABLED=1
25456
25457     curl_idn_msg="enabled (Windows-native)"
25458   else
25459     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
25460 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
25461     CPPFLAGS="$clean_CPPFLAGS"
25462     LDFLAGS="$clean_LDFLAGS"
25463     LIBS="$clean_LIBS"
25464   fi
25465 fi
25466
25467
25468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn" >&5
25469 $as_echo_n "checking whether to build with libidn... " >&6; }
25470 OPT_IDN="default"
25471
25472 # Check whether --with-libidn was given.
25473 if test "${with_libidn+set}" = set; then :
25474   withval=$with_libidn; OPT_IDN=$withval
25475 fi
25476
25477 case "$OPT_IDN" in
25478   no)
25479         want_idn="no"
25480     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25481 $as_echo "no" >&6; }
25482     ;;
25483   default)
25484         want_idn="yes"
25485     want_idn_path="default"
25486     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
25487 $as_echo "(assumed) yes" >&6; }
25488     ;;
25489   yes)
25490         want_idn="yes"
25491     want_idn_path="default"
25492     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25493 $as_echo "yes" >&6; }
25494     ;;
25495   *)
25496         want_idn="yes"
25497     want_idn_path="$withval"
25498     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
25499 $as_echo "yes ($withval)" >&6; }
25500     ;;
25501 esac
25502
25503 if test "$want_idn" = "yes"; then
25504     clean_CPPFLAGS="$CPPFLAGS"
25505   clean_LDFLAGS="$LDFLAGS"
25506   clean_LIBS="$LIBS"
25507   PKGCONFIG="no"
25508   #
25509   if test "$want_idn_path" != "default"; then
25510         IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
25511
25512
25513     PKGCONFIG="no"
25514
25515     if test -n "$ac_tool_prefix"; then
25516   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25517 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25519 $as_echo_n "checking for $ac_word... " >&6; }
25520 if ${ac_cv_path_PKGCONFIG+:} false; then :
25521   $as_echo_n "(cached) " >&6
25522 else
25523   case $PKGCONFIG in
25524   [\\/]* | ?:[\\/]*)
25525   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25526   ;;
25527   *)
25528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25529 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25530 for as_dir in $as_dummy
25531 do
25532   IFS=$as_save_IFS
25533   test -z "$as_dir" && as_dir=.
25534     for ac_exec_ext in '' $ac_executable_extensions; do
25535   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25536     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25538     break 2
25539   fi
25540 done
25541   done
25542 IFS=$as_save_IFS
25543
25544   ;;
25545 esac
25546 fi
25547 PKGCONFIG=$ac_cv_path_PKGCONFIG
25548 if test -n "$PKGCONFIG"; then
25549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25550 $as_echo "$PKGCONFIG" >&6; }
25551 else
25552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25553 $as_echo "no" >&6; }
25554 fi
25555
25556
25557 fi
25558 if test -z "$ac_cv_path_PKGCONFIG"; then
25559   ac_pt_PKGCONFIG=$PKGCONFIG
25560   # Extract the first word of "pkg-config", so it can be a program name with args.
25561 set dummy pkg-config; ac_word=$2
25562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25563 $as_echo_n "checking for $ac_word... " >&6; }
25564 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25565   $as_echo_n "(cached) " >&6
25566 else
25567   case $ac_pt_PKGCONFIG in
25568   [\\/]* | ?:[\\/]*)
25569   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25570   ;;
25571   *)
25572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25573 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25574 for as_dir in $as_dummy
25575 do
25576   IFS=$as_save_IFS
25577   test -z "$as_dir" && as_dir=.
25578     for ac_exec_ext in '' $ac_executable_extensions; do
25579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25580     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25582     break 2
25583   fi
25584 done
25585   done
25586 IFS=$as_save_IFS
25587
25588   ;;
25589 esac
25590 fi
25591 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25592 if test -n "$ac_pt_PKGCONFIG"; then
25593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25594 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25595 else
25596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25597 $as_echo "no" >&6; }
25598 fi
25599
25600   if test "x$ac_pt_PKGCONFIG" = x; then
25601     PKGCONFIG="no"
25602   else
25603     case $cross_compiling:$ac_tool_warned in
25604 yes:)
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25607 ac_tool_warned=yes ;;
25608 esac
25609     PKGCONFIG=$ac_pt_PKGCONFIG
25610   fi
25611 else
25612   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25613 fi
25614
25615
25616     if test x$PKGCONFIG != xno; then
25617       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn options with pkg-config" >&5
25618 $as_echo_n "checking for libidn options with pkg-config... " >&6; }
25619             itexists=`
25620     if test -n "$IDN_PCDIR"; then
25621       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
25622       export PKG_CONFIG_LIBDIR
25623     fi
25624          $PKGCONFIG --exists libidn >/dev/null 2>&1 && echo 1`
25625
25626       if test -z "$itexists"; then
25627                         PKGCONFIG="no"
25628         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25629 $as_echo "no" >&6; }
25630       else
25631         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25632 $as_echo "found" >&6; }
25633       fi
25634     fi
25635
25636     if test "$PKGCONFIG" != "no"; then
25637       IDN_LIBS=`
25638     if test -n "$IDN_PCDIR"; then
25639       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
25640       export PKG_CONFIG_LIBDIR
25641     fi
25642          $PKGCONFIG --libs-only-l libidn 2>/dev/null`
25643       IDN_LDFLAGS=`
25644     if test -n "$IDN_PCDIR"; then
25645       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
25646       export PKG_CONFIG_LIBDIR
25647     fi
25648          $PKGCONFIG --libs-only-L libidn 2>/dev/null`
25649       IDN_CPPFLAGS=`
25650     if test -n "$IDN_PCDIR"; then
25651       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
25652       export PKG_CONFIG_LIBDIR
25653     fi
25654          $PKGCONFIG --cflags-only-I libidn 2>/dev/null`
25655       IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
25656     else
25657             IDN_LIBS="-lidn"
25658       IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
25659       IDN_CPPFLAGS="-I$want_idn_path/include"
25660       IDN_DIR="$want_idn_path/lib$libsuff"
25661     fi
25662   else
25663
25664
25665     PKGCONFIG="no"
25666
25667     if test -n "$ac_tool_prefix"; then
25668   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25669 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25671 $as_echo_n "checking for $ac_word... " >&6; }
25672 if ${ac_cv_path_PKGCONFIG+:} false; then :
25673   $as_echo_n "(cached) " >&6
25674 else
25675   case $PKGCONFIG in
25676   [\\/]* | ?:[\\/]*)
25677   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25678   ;;
25679   *)
25680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25681 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25682 for as_dir in $as_dummy
25683 do
25684   IFS=$as_save_IFS
25685   test -z "$as_dir" && as_dir=.
25686     for ac_exec_ext in '' $ac_executable_extensions; do
25687   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25688     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25690     break 2
25691   fi
25692 done
25693   done
25694 IFS=$as_save_IFS
25695
25696   ;;
25697 esac
25698 fi
25699 PKGCONFIG=$ac_cv_path_PKGCONFIG
25700 if test -n "$PKGCONFIG"; then
25701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25702 $as_echo "$PKGCONFIG" >&6; }
25703 else
25704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25705 $as_echo "no" >&6; }
25706 fi
25707
25708
25709 fi
25710 if test -z "$ac_cv_path_PKGCONFIG"; then
25711   ac_pt_PKGCONFIG=$PKGCONFIG
25712   # Extract the first word of "pkg-config", so it can be a program name with args.
25713 set dummy pkg-config; ac_word=$2
25714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25715 $as_echo_n "checking for $ac_word... " >&6; }
25716 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25717   $as_echo_n "(cached) " >&6
25718 else
25719   case $ac_pt_PKGCONFIG in
25720   [\\/]* | ?:[\\/]*)
25721   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25722   ;;
25723   *)
25724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25725 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25726 for as_dir in $as_dummy
25727 do
25728   IFS=$as_save_IFS
25729   test -z "$as_dir" && as_dir=.
25730     for ac_exec_ext in '' $ac_executable_extensions; do
25731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25732     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25734     break 2
25735   fi
25736 done
25737   done
25738 IFS=$as_save_IFS
25739
25740   ;;
25741 esac
25742 fi
25743 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25744 if test -n "$ac_pt_PKGCONFIG"; then
25745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25746 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25747 else
25748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25749 $as_echo "no" >&6; }
25750 fi
25751
25752   if test "x$ac_pt_PKGCONFIG" = x; then
25753     PKGCONFIG="no"
25754   else
25755     case $cross_compiling:$ac_tool_warned in
25756 yes:)
25757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25759 ac_tool_warned=yes ;;
25760 esac
25761     PKGCONFIG=$ac_pt_PKGCONFIG
25762   fi
25763 else
25764   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25765 fi
25766
25767
25768     if test x$PKGCONFIG != xno; then
25769       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn options with pkg-config" >&5
25770 $as_echo_n "checking for libidn options with pkg-config... " >&6; }
25771             itexists=`
25772     if test -n ""; then
25773       PKG_CONFIG_LIBDIR=""
25774       export PKG_CONFIG_LIBDIR
25775     fi
25776          $PKGCONFIG --exists libidn >/dev/null 2>&1 && echo 1`
25777
25778       if test -z "$itexists"; then
25779                         PKGCONFIG="no"
25780         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25781 $as_echo "no" >&6; }
25782       else
25783         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25784 $as_echo "found" >&6; }
25785       fi
25786     fi
25787
25788     if test "$PKGCONFIG" != "no"; then
25789       IDN_LIBS=`$PKGCONFIG --libs-only-l libidn 2>/dev/null`
25790       IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn 2>/dev/null`
25791       IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn 2>/dev/null`
25792       IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
25793     else
25794             IDN_LIBS="-lidn"
25795     fi
25796   fi
25797   #
25798   if test "$PKGCONFIG" != "no"; then
25799     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
25800 $as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
25801     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
25802 $as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
25803     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
25804 $as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
25805     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
25806 $as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
25807   else
25808     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
25809 $as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
25810     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
25811 $as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
25812     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
25813 $as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
25814     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
25815 $as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
25816   fi
25817   #
25818   CPPFLAGS="$IDN_CPPFLAGS $CPPFLAGS"
25819   LDFLAGS="$IDN_LDFLAGS $LDFLAGS"
25820   LIBS="$IDN_LIBS $LIBS"
25821   #
25822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idna_to_ascii_4i can be linked" >&5
25823 $as_echo_n "checking if idna_to_ascii_4i can be linked... " >&6; }
25824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25825 /* end confdefs.h.  */
25826
25827
25828 #define idna_to_ascii_4i innocuous_idna_to_ascii_4i
25829 #ifdef __STDC__
25830 # include <limits.h>
25831 #else
25832 # include <assert.h>
25833 #endif
25834 #undef idna_to_ascii_4i
25835 #ifdef __cplusplus
25836 extern "C"
25837 #endif
25838 char idna_to_ascii_4i ();
25839 #if defined __stub_idna_to_ascii_4i || defined __stub___idna_to_ascii_4i
25840 choke me
25841 #endif
25842
25843 int main (void)
25844 {
25845 return idna_to_ascii_4i ();
25846  ;
25847  return 0;
25848 }
25849
25850 _ACEOF
25851 if ac_fn_c_try_link "$LINENO"; then :
25852
25853     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25854 $as_echo "yes" >&6; }
25855     tst_links_libidn="yes"
25856
25857 else
25858
25859     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25860 $as_echo "no" >&6; }
25861     tst_links_libidn="no"
25862
25863 fi
25864 rm -f core conftest.err conftest.$ac_objext \
25865     conftest$ac_exeext conftest.$ac_ext
25866   if test "$tst_links_libidn" = "no"; then
25867     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idna_to_ascii_lz can be linked" >&5
25868 $as_echo_n "checking if idna_to_ascii_lz can be linked... " >&6; }
25869     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25870 /* end confdefs.h.  */
25871
25872
25873 #define idna_to_ascii_lz innocuous_idna_to_ascii_lz
25874 #ifdef __STDC__
25875 # include <limits.h>
25876 #else
25877 # include <assert.h>
25878 #endif
25879 #undef idna_to_ascii_lz
25880 #ifdef __cplusplus
25881 extern "C"
25882 #endif
25883 char idna_to_ascii_lz ();
25884 #if defined __stub_idna_to_ascii_lz || defined __stub___idna_to_ascii_lz
25885 choke me
25886 #endif
25887
25888 int main (void)
25889 {
25890 return idna_to_ascii_lz ();
25891  ;
25892  return 0;
25893 }
25894
25895 _ACEOF
25896 if ac_fn_c_try_link "$LINENO"; then :
25897
25898       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25899 $as_echo "yes" >&6; }
25900       tst_links_libidn="yes"
25901
25902 else
25903
25904       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25905 $as_echo "no" >&6; }
25906       tst_links_libidn="no"
25907
25908 fi
25909 rm -f core conftest.err conftest.$ac_objext \
25910     conftest$ac_exeext conftest.$ac_ext
25911   fi
25912   #
25913   if test "$tst_links_libidn" = "yes"; then
25914
25915 $as_echo "#define HAVE_LIBIDN 1" >>confdefs.h
25916
25917         for ac_func in idn_free idna_strerror tld_strerror
25918 do :
25919   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25920 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25921 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25922   cat >>confdefs.h <<_ACEOF
25923 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25924 _ACEOF
25925
25926 fi
25927 done
25928
25929     for ac_header in idn-free.h tld.h
25930 do :
25931   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25932 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25933 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25934   cat >>confdefs.h <<_ACEOF
25935 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25936 _ACEOF
25937
25938 fi
25939
25940 done
25941
25942     if test "x$ac_cv_header_tld_h" = "xyes"; then
25943       IDN_ENABLED=1
25944
25945       curl_idn_msg="enabled"
25946       if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
25947         LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$IDN_DIR"
25948         export LD_LIBRARY_PATH
25949         { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to LD_LIBRARY_PATH" >&5
25950 $as_echo "$as_me: Added $IDN_DIR to LD_LIBRARY_PATH" >&6;}
25951       fi
25952     else
25953       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libraries for IDN support too old: IDN disabled" >&5
25954 $as_echo "$as_me: WARNING: Libraries for IDN support too old: IDN disabled" >&2;}
25955       CPPFLAGS="$clean_CPPFLAGS"
25956       LDFLAGS="$clean_LDFLAGS"
25957       LIBS="$clean_LIBS"
25958     fi
25959   else
25960     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
25961 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
25962     CPPFLAGS="$clean_CPPFLAGS"
25963     LDFLAGS="$clean_LDFLAGS"
25964     LIBS="$clean_LIBS"
25965   fi
25966 fi
25967
25968
25969
25970
25971
25972 OPT_H2="yes"
25973
25974 # Check whether --with-nghttp2 was given.
25975 if test "${with_nghttp2+set}" = set; then :
25976   withval=$with_nghttp2; OPT_H2=$withval
25977 fi
25978
25979 case "$OPT_H2" in
25980   no)
25981         want_h2="no"
25982     ;;
25983   yes)
25984         want_h2="default"
25985     want_h2_path=""
25986     ;;
25987   *)
25988         want_h2="yes"
25989     want_h2_path="$withval/lib/pkgconfig"
25990     ;;
25991 esac
25992
25993 curl_h2_msg="disabled (--with-nghttp2)"
25994 if test X"$want_h2" != Xno; then
25995     CLEANLDFLAGS="$LDFLAGS"
25996   CLEANCPPFLAGS="$CPPFLAGS"
25997   CLEANLIBS="$LIBS"
25998
25999
26000
26001     PKGCONFIG="no"
26002
26003     if test -n "$ac_tool_prefix"; then
26004   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26005 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26007 $as_echo_n "checking for $ac_word... " >&6; }
26008 if ${ac_cv_path_PKGCONFIG+:} false; then :
26009   $as_echo_n "(cached) " >&6
26010 else
26011   case $PKGCONFIG in
26012   [\\/]* | ?:[\\/]*)
26013   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26014   ;;
26015   *)
26016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26017 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26018 for as_dir in $as_dummy
26019 do
26020   IFS=$as_save_IFS
26021   test -z "$as_dir" && as_dir=.
26022     for ac_exec_ext in '' $ac_executable_extensions; do
26023   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26024     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26026     break 2
26027   fi
26028 done
26029   done
26030 IFS=$as_save_IFS
26031
26032   ;;
26033 esac
26034 fi
26035 PKGCONFIG=$ac_cv_path_PKGCONFIG
26036 if test -n "$PKGCONFIG"; then
26037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26038 $as_echo "$PKGCONFIG" >&6; }
26039 else
26040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26041 $as_echo "no" >&6; }
26042 fi
26043
26044
26045 fi
26046 if test -z "$ac_cv_path_PKGCONFIG"; then
26047   ac_pt_PKGCONFIG=$PKGCONFIG
26048   # Extract the first word of "pkg-config", so it can be a program name with args.
26049 set dummy pkg-config; ac_word=$2
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26051 $as_echo_n "checking for $ac_word... " >&6; }
26052 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26053   $as_echo_n "(cached) " >&6
26054 else
26055   case $ac_pt_PKGCONFIG in
26056   [\\/]* | ?:[\\/]*)
26057   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26058   ;;
26059   *)
26060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26061 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26062 for as_dir in $as_dummy
26063 do
26064   IFS=$as_save_IFS
26065   test -z "$as_dir" && as_dir=.
26066     for ac_exec_ext in '' $ac_executable_extensions; do
26067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26068     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26070     break 2
26071   fi
26072 done
26073   done
26074 IFS=$as_save_IFS
26075
26076   ;;
26077 esac
26078 fi
26079 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26080 if test -n "$ac_pt_PKGCONFIG"; then
26081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26082 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26083 else
26084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26085 $as_echo "no" >&6; }
26086 fi
26087
26088   if test "x$ac_pt_PKGCONFIG" = x; then
26089     PKGCONFIG="no"
26090   else
26091     case $cross_compiling:$ac_tool_warned in
26092 yes:)
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26095 ac_tool_warned=yes ;;
26096 esac
26097     PKGCONFIG=$ac_pt_PKGCONFIG
26098   fi
26099 else
26100   PKGCONFIG="$ac_cv_path_PKGCONFIG"
26101 fi
26102
26103
26104     if test x$PKGCONFIG != xno; then
26105       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
26106 $as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
26107             itexists=`
26108     if test -n "$want_h2_path"; then
26109       PKG_CONFIG_LIBDIR="$want_h2_path"
26110       export PKG_CONFIG_LIBDIR
26111     fi
26112          $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
26113
26114       if test -z "$itexists"; then
26115                         PKGCONFIG="no"
26116         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26117 $as_echo "no" >&6; }
26118       else
26119         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26120 $as_echo "found" >&6; }
26121       fi
26122     fi
26123
26124
26125   if test "$PKGCONFIG" != "no" ; then
26126     LIB_H2=`
26127     if test -n "$want_h2_path"; then
26128       PKG_CONFIG_LIBDIR="$want_h2_path"
26129       export PKG_CONFIG_LIBDIR
26130     fi
26131
26132       $PKGCONFIG --libs-only-l libnghttp2`
26133     { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
26134 $as_echo "$as_me: -l is $LIB_H2" >&6;}
26135
26136     CPP_H2=`
26137     if test -n "$want_h2_path"; then
26138       PKG_CONFIG_LIBDIR="$want_h2_path"
26139       export PKG_CONFIG_LIBDIR
26140     fi
26141        $PKGCONFIG --cflags-only-I libnghttp2`
26142     { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
26143 $as_echo "$as_me: -I is $CPP_H2" >&6;}
26144
26145     LD_H2=`
26146     if test -n "$want_h2_path"; then
26147       PKG_CONFIG_LIBDIR="$want_h2_path"
26148       export PKG_CONFIG_LIBDIR
26149     fi
26150
26151       $PKGCONFIG --libs-only-L libnghttp2`
26152     { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
26153 $as_echo "$as_me: -L is $LD_H2" >&6;}
26154
26155     LDFLAGS="$LDFLAGS $LD_H2"
26156     CPPFLAGS="$CPPFLAGS $CPP_H2"
26157     LIBS="$LIB_H2 $LIBS"
26158
26159     # use nghttp2_option_set_no_recv_client_magic to require nghttp2
26160     # >= 1.0.0
26161     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5
26162 $as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; }
26163 if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then :
26164   $as_echo_n "(cached) " >&6
26165 else
26166   ac_check_lib_save_LIBS=$LIBS
26167 LIBS="-lnghttp2  $LIBS"
26168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26169 /* end confdefs.h.  */
26170
26171
26172 #ifdef __cplusplus
26173 extern "C"
26174 #endif
26175 char nghttp2_option_set_no_recv_client_magic ();
26176 int main (void)
26177 {
26178 return nghttp2_option_set_no_recv_client_magic ();
26179  ;
26180  return 0;
26181 }
26182 _ACEOF
26183 if ac_fn_c_try_link "$LINENO"; then :
26184   ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes
26185 else
26186   ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no
26187 fi
26188 rm -f core conftest.err conftest.$ac_objext \
26189     conftest$ac_exeext conftest.$ac_ext
26190 LIBS=$ac_check_lib_save_LIBS
26191 fi
26192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5
26193 $as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; }
26194 if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then :
26195
26196        for ac_header in nghttp2/nghttp2.h
26197 do :
26198   ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
26199 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
26200   cat >>confdefs.h <<_ACEOF
26201 #define HAVE_NGHTTP2_NGHTTP2_H 1
26202 _ACEOF
26203  curl_h2_msg="enabled (nghttp2)"
26204           NGHTTP2_ENABLED=1
26205
26206 $as_echo "#define USE_NGHTTP2 1" >>confdefs.h
26207
26208           USE_NGHTTP2=1
26209
26210
26211 fi
26212
26213 done
26214
26215
26216 else
26217           LDFLAGS=$CLEANLDFLAGS
26218         CPPFLAGS=$CLEANCPPFLAGS
26219         LIBS=$CLEANLIBS
26220
26221 fi
26222
26223
26224   else
26225         if test X"$want_h2" != Xdefault; then
26226                   as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
26227     fi
26228   fi
26229
26230 fi
26231
26232
26233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
26234 $as_echo_n "checking for ANSI C header files... " >&6; }
26235 if ${ac_cv_header_stdc+:} false; then :
26236   $as_echo_n "(cached) " >&6
26237 else
26238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26239 /* end confdefs.h.  */
26240 #include <stdlib.h>
26241 #include <stdarg.h>
26242 #include <string.h>
26243 #include <float.h>
26244
26245 int main (void)
26246 {
26247
26248  ;
26249  return 0;
26250 }
26251 _ACEOF
26252 if ac_fn_c_try_compile "$LINENO"; then :
26253   ac_cv_header_stdc=yes
26254 else
26255   ac_cv_header_stdc=no
26256 fi
26257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26258
26259 if test $ac_cv_header_stdc = yes; then
26260   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26262 /* end confdefs.h.  */
26263 #include <string.h>
26264
26265 _ACEOF
26266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26267   $EGREP "memchr" >/dev/null 2>&1; then :
26268
26269 else
26270   ac_cv_header_stdc=no
26271 fi
26272 rm -f conftest*
26273
26274 fi
26275
26276 if test $ac_cv_header_stdc = yes; then
26277   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26279 /* end confdefs.h.  */
26280 #include <stdlib.h>
26281
26282 _ACEOF
26283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26284   $EGREP "free" >/dev/null 2>&1; then :
26285
26286 else
26287   ac_cv_header_stdc=no
26288 fi
26289 rm -f conftest*
26290
26291 fi
26292
26293 if test $ac_cv_header_stdc = yes; then
26294   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26295   if test "$cross_compiling" = yes; then :
26296   :
26297 else
26298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26299 /* end confdefs.h.  */
26300 #include <ctype.h>
26301 #include <stdlib.h>
26302 #if ((' ' & 0x0FF) == 0x020)
26303 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26304 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26305 #else
26306 # define ISLOWER(c) \
26307                    (('a' <= (c) && (c) <= 'i') \
26308                      || ('j' <= (c) && (c) <= 'r') \
26309                      || ('s' <= (c) && (c) <= 'z'))
26310 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26311 #endif
26312
26313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26314 int
26315 main ()
26316 {
26317   int i;
26318   for (i = 0; i < 256; i++)
26319     if (XOR (islower (i), ISLOWER (i))
26320         || toupper (i) != TOUPPER (i))
26321       return 2;
26322   return 0;
26323 }
26324 _ACEOF
26325 if ac_fn_c_try_run "$LINENO"; then :
26326
26327 else
26328   ac_cv_header_stdc=no
26329 fi
26330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26331   conftest.$ac_objext conftest.beam conftest.$ac_ext
26332 fi
26333
26334 fi
26335 fi
26336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
26337 $as_echo "$ac_cv_header_stdc" >&6; }
26338 if test $ac_cv_header_stdc = yes; then
26339
26340 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
26341
26342 fi
26343
26344
26345
26346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
26347 $as_echo_n "checking for malloc.h... " >&6; }
26348 if ${ac_cv_header_malloc_h+:} false; then :
26349   $as_echo_n "(cached) " >&6
26350 else
26351
26352     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26353 /* end confdefs.h.  */
26354
26355
26356 #include <malloc.h>
26357
26358 int main (void)
26359 {
26360
26361         void *p = malloc(10);
26362         void *q = calloc(10,10);
26363         free(p);
26364         free(q);
26365
26366  ;
26367  return 0;
26368 }
26369
26370 _ACEOF
26371 if ac_fn_c_try_compile "$LINENO"; then :
26372
26373       ac_cv_header_malloc_h="yes"
26374
26375 else
26376
26377       ac_cv_header_malloc_h="no"
26378
26379 fi
26380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26381
26382 fi
26383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_malloc_h" >&5
26384 $as_echo "$ac_cv_header_malloc_h" >&6; }
26385   if test "$ac_cv_header_malloc_h" = "yes"; then
26386
26387 cat >>confdefs.h <<_ACEOF
26388 #define HAVE_MALLOC_H 1
26389 _ACEOF
26390
26391     #
26392     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26393 /* end confdefs.h.  */
26394
26395
26396 #include <stdlib.h>
26397
26398 int main (void)
26399 {
26400
26401         void *p = malloc(10);
26402         void *q = calloc(10,10);
26403         free(p);
26404         free(q);
26405
26406  ;
26407  return 0;
26408 }
26409
26410 _ACEOF
26411 if ac_fn_c_try_compile "$LINENO"; then :
26412
26413       curl_cv_need_header_malloc_h="no"
26414
26415 else
26416
26417       curl_cv_need_header_malloc_h="yes"
26418
26419 fi
26420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26421     #
26422     case "$curl_cv_need_header_malloc_h" in
26423       yes)
26424
26425 cat >>confdefs.h <<_ACEOF
26426 #define NEED_MALLOC_H 1
26427 _ACEOF
26428
26429         ;;
26430     esac
26431   fi
26432
26433
26434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
26435 $as_echo_n "checking for memory.h... " >&6; }
26436 if ${ac_cv_header_memory_h+:} false; then :
26437   $as_echo_n "(cached) " >&6
26438 else
26439
26440     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26441 /* end confdefs.h.  */
26442
26443
26444 #include <memory.h>
26445
26446 int main (void)
26447 {
26448
26449         void *p = malloc(10);
26450         void *q = calloc(10,10);
26451         free(p);
26452         free(q);
26453
26454  ;
26455  return 0;
26456 }
26457
26458 _ACEOF
26459 if ac_fn_c_try_compile "$LINENO"; then :
26460
26461       ac_cv_header_memory_h="yes"
26462
26463 else
26464
26465       ac_cv_header_memory_h="no"
26466
26467 fi
26468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26469
26470 fi
26471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_memory_h" >&5
26472 $as_echo "$ac_cv_header_memory_h" >&6; }
26473   if test "$ac_cv_header_memory_h" = "yes"; then
26474
26475 cat >>confdefs.h <<_ACEOF
26476 #define HAVE_MEMORY_H 1
26477 _ACEOF
26478
26479     #
26480     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26481 /* end confdefs.h.  */
26482
26483
26484 #include <stdlib.h>
26485
26486 int main (void)
26487 {
26488
26489         void *p = malloc(10);
26490         void *q = calloc(10,10);
26491         free(p);
26492         free(q);
26493
26494  ;
26495  return 0;
26496 }
26497
26498 _ACEOF
26499 if ac_fn_c_try_compile "$LINENO"; then :
26500
26501       curl_cv_need_header_memory_h="no"
26502
26503 else
26504
26505       curl_cv_need_header_memory_h="yes"
26506
26507 fi
26508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26509     #
26510     case "$curl_cv_need_header_memory_h" in
26511       yes)
26512
26513 cat >>confdefs.h <<_ACEOF
26514 #define NEED_MEMORY_H 1
26515 _ACEOF
26516
26517         ;;
26518     esac
26519   fi
26520
26521
26522 for ac_header in sys/types.h \
26523         sys/time.h \
26524         sys/select.h \
26525         sys/socket.h \
26526         sys/ioctl.h \
26527         sys/uio.h \
26528         assert.h \
26529         unistd.h \
26530         stdlib.h \
26531         limits.h \
26532         arpa/inet.h \
26533         net/if.h \
26534         netinet/in.h \
26535         sys/un.h \
26536         netinet/tcp.h \
26537         netdb.h \
26538         sys/sockio.h \
26539         sys/stat.h \
26540         sys/param.h \
26541         termios.h \
26542         termio.h \
26543         sgtty.h \
26544         fcntl.h \
26545         alloca.h \
26546         time.h \
26547         io.h \
26548         pwd.h \
26549         utime.h \
26550         sys/utime.h \
26551         sys/poll.h \
26552         poll.h \
26553         socket.h \
26554         sys/resource.h \
26555         libgen.h \
26556         locale.h \
26557         errno.h \
26558         stdbool.h \
26559         arpa/tftp.h \
26560         sys/filio.h \
26561         sys/wait.h \
26562         setjmp.h
26563 do :
26564   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26565 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
26566 #ifdef HAVE_SYS_TYPES_H
26567 #include <sys/types.h>
26568 #endif
26569 #ifdef HAVE_SYS_TIME_H
26570 #include <sys/time.h>
26571 #endif
26572 #ifdef HAVE_SYS_SELECT_H
26573 #include <sys/select.h>
26574 #endif
26575 #ifdef HAVE_SYS_SOCKET_H
26576 #include <sys/socket.h>
26577 #endif
26578 #ifdef HAVE_NETINET_IN_H
26579 #include <netinet/in.h>
26580 #endif
26581 #ifdef HAVE_SYS_UN_H
26582 #include <sys/un.h>
26583 #endif
26584
26585
26586 "
26587 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26588   cat >>confdefs.h <<_ACEOF
26589 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26590 _ACEOF
26591
26592 fi
26593
26594 done
26595
26596
26597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26598 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26599 if ${ac_cv_c_const+:} false; then :
26600   $as_echo_n "(cached) " >&6
26601 else
26602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26603 /* end confdefs.h.  */
26604
26605 int main (void)
26606 {
26607
26608 #ifndef __cplusplus
26609   /* Ultrix mips cc rejects this sort of thing.  */
26610   typedef int charset[2];
26611   const charset cs = { 0, 0 };
26612   /* SunOS 4.1.1 cc rejects this.  */
26613   char const *const *pcpcc;
26614   char **ppc;
26615   /* NEC SVR4.0.2 mips cc rejects this.  */
26616   struct point {int x, y;};
26617   static struct point const zero = {0,0};
26618   /* AIX XL C 1.02.0.0 rejects this.
26619      It does not let you subtract one const X* pointer from another in
26620      an arm of an if-expression whose if-part is not a constant
26621      expression */
26622   const char *g = "string";
26623   pcpcc = &g + (g ? g-g : 0);
26624   /* HPUX 7.0 cc rejects these. */
26625   ++pcpcc;
26626   ppc = (char**) pcpcc;
26627   pcpcc = (char const *const *) ppc;
26628   { /* SCO 3.2v4 cc rejects this sort of thing.  */
26629     char tx;
26630     char *t = &tx;
26631     char const *s = 0 ? (char *) 0 : (char const *) 0;
26632
26633     *t++ = 0;
26634     if (s) return 0;
26635   }
26636   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26637     int x[] = {25, 17};
26638     const int *foo = &x[0];
26639     ++foo;
26640   }
26641   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26642     typedef const int *iptr;
26643     iptr p = 0;
26644     ++p;
26645   }
26646   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26647        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26648     struct s { int j; const int *ap[3]; } bx;
26649     struct s *b = &bx; b->j = 5;
26650   }
26651   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26652     const int foo = 10;
26653     if (!foo) return 0;
26654   }
26655   return !cs[0] && !zero.x;
26656 #endif
26657
26658  ;
26659  return 0;
26660 }
26661 _ACEOF
26662 if ac_fn_c_try_compile "$LINENO"; then :
26663   ac_cv_c_const=yes
26664 else
26665   ac_cv_c_const=no
26666 fi
26667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26668 fi
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26670 $as_echo "$ac_cv_c_const" >&6; }
26671 if test $ac_cv_c_const = no; then
26672
26673 $as_echo "#define const /**/" >>confdefs.h
26674
26675 fi
26676
26677
26678   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
26679 $as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
26680 if ${curl_cv_variadic_macros_c99+:} false; then :
26681   $as_echo_n "(cached) " >&6
26682 else
26683
26684     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26685 /* end confdefs.h.  */
26686
26687
26688 #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
26689 #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
26690         int fun3(int arg1, int arg2, int arg3);
26691         int fun2(int arg1, int arg2);
26692         int fun3(int arg1, int arg2, int arg3)
26693         { return arg1 + arg2 + arg3; }
26694         int fun2(int arg1, int arg2)
26695         { return arg1 + arg2; }
26696
26697 int main (void)
26698 {
26699
26700         int res3 = c99_vmacro3(1, 2, 3);
26701         int res2 = c99_vmacro2(1, 2);
26702
26703  ;
26704  return 0;
26705 }
26706
26707 _ACEOF
26708 if ac_fn_c_try_compile "$LINENO"; then :
26709
26710       curl_cv_variadic_macros_c99="yes"
26711
26712 else
26713
26714       curl_cv_variadic_macros_c99="no"
26715
26716 fi
26717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26718
26719 fi
26720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
26721 $as_echo "$curl_cv_variadic_macros_c99" >&6; }
26722   case "$curl_cv_variadic_macros_c99" in
26723     yes)
26724
26725 cat >>confdefs.h <<_ACEOF
26726 #define HAVE_VARIADIC_MACROS_C99 1
26727 _ACEOF
26728
26729       ;;
26730   esac
26731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
26732 $as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
26733 if ${curl_cv_variadic_macros_gcc+:} false; then :
26734   $as_echo_n "(cached) " >&6
26735 else
26736
26737     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26738 /* end confdefs.h.  */
26739
26740
26741 #define gcc_vmacro3(first, args...) fun3(first, args)
26742 #define gcc_vmacro2(first, args...) fun2(first, args)
26743         int fun3(int arg1, int arg2, int arg3);
26744         int fun2(int arg1, int arg2);
26745         int fun3(int arg1, int arg2, int arg3)
26746         { return arg1 + arg2 + arg3; }
26747         int fun2(int arg1, int arg2)
26748         { return arg1 + arg2; }
26749
26750 int main (void)
26751 {
26752
26753         int res3 = gcc_vmacro3(1, 2, 3);
26754         int res2 = gcc_vmacro2(1, 2);
26755
26756  ;
26757  return 0;
26758 }
26759
26760 _ACEOF
26761 if ac_fn_c_try_compile "$LINENO"; then :
26762
26763       curl_cv_variadic_macros_gcc="yes"
26764
26765 else
26766
26767       curl_cv_variadic_macros_gcc="no"
26768
26769 fi
26770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26771
26772 fi
26773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
26774 $as_echo "$curl_cv_variadic_macros_gcc" >&6; }
26775   case "$curl_cv_variadic_macros_gcc" in
26776     yes)
26777
26778 cat >>confdefs.h <<_ACEOF
26779 #define HAVE_VARIADIC_MACROS_GCC 1
26780 _ACEOF
26781
26782       ;;
26783   esac
26784
26785 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26786 if test "x$ac_cv_type_size_t" = xyes; then :
26787
26788 else
26789
26790 cat >>confdefs.h <<_ACEOF
26791 #define size_t unsigned int
26792 _ACEOF
26793
26794 fi
26795
26796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26797 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26798 if ${ac_cv_header_time+:} false; then :
26799   $as_echo_n "(cached) " >&6
26800 else
26801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26802 /* end confdefs.h.  */
26803 #include <sys/types.h>
26804 #include <sys/time.h>
26805 #include <time.h>
26806
26807 int main (void)
26808 {
26809 if ((struct tm *) 0)
26810 return 0;
26811  ;
26812  return 0;
26813 }
26814 _ACEOF
26815 if ac_fn_c_try_compile "$LINENO"; then :
26816   ac_cv_header_time=yes
26817 else
26818   ac_cv_header_time=no
26819 fi
26820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26821 fi
26822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26823 $as_echo "$ac_cv_header_time" >&6; }
26824 if test $ac_cv_header_time = yes; then
26825
26826 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26827
26828 fi
26829
26830
26831         for ac_header in sys/types.h sys/time.h time.h sys/socket.h
26832 do :
26833   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26834 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26835 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26836   cat >>confdefs.h <<_ACEOF
26837 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26838 _ACEOF
26839
26840 fi
26841
26842 done
26843
26844   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
26845 $as_echo_n "checking for struct timeval... " >&6; }
26846 if ${ac_cv_struct_timeval+:} 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 #ifdef HAVE_WINDOWS_H
26856 #ifndef WIN32_LEAN_AND_MEAN
26857 #define WIN32_LEAN_AND_MEAN
26858 #endif
26859 #include <windows.h>
26860 #ifdef HAVE_WINSOCK2_H
26861 #include <winsock2.h>
26862 #else
26863 #ifdef HAVE_WINSOCK_H
26864 #include <winsock.h>
26865 #endif
26866 #endif
26867 #endif
26868 #ifdef HAVE_SYS_TYPES_H
26869 #include <sys/types.h>
26870 #endif
26871 #ifdef HAVE_SYS_TIME_H
26872 #include <sys/time.h>
26873 #ifdef TIME_WITH_SYS_TIME
26874 #include <time.h>
26875 #endif
26876 #else
26877 #ifdef HAVE_TIME_H
26878 #include <time.h>
26879 #endif
26880 #endif
26881 #ifdef HAVE_SYS_SOCKET_H
26882 #include <sys/socket.h>
26883 #endif
26884
26885 int main (void)
26886 {
26887
26888         struct timeval ts;
26889         ts.tv_sec  = 0;
26890         ts.tv_usec = 0;
26891
26892  ;
26893  return 0;
26894 }
26895
26896 _ACEOF
26897 if ac_fn_c_try_compile "$LINENO"; then :
26898
26899       ac_cv_struct_timeval="yes"
26900
26901 else
26902
26903       ac_cv_struct_timeval="no"
26904
26905 fi
26906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26907
26908 fi
26909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timeval" >&5
26910 $as_echo "$ac_cv_struct_timeval" >&6; }
26911   case "$ac_cv_struct_timeval" in
26912     yes)
26913
26914 cat >>confdefs.h <<_ACEOF
26915 #define HAVE_STRUCT_TIMEVAL 1
26916 _ACEOF
26917
26918       ;;
26919   esac
26920
26921
26922
26923     if test "x$cross_compiling" != xyes; then
26924
26925             { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
26926 $as_echo_n "checking run-time libs availability... " >&6; }
26927     if test "$cross_compiling" = yes; then :
26928   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26930 as_fn_error $? "cannot run test program while cross compiling
26931 See \`config.log' for more details" "$LINENO" 5; }
26932 else
26933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26934 /* end confdefs.h.  */
26935
26936 main()
26937 {
26938   return 0;
26939 }
26940
26941 _ACEOF
26942 if ac_fn_c_try_run "$LINENO"; then :
26943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
26944 $as_echo "fine" >&6; }
26945 else
26946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
26947 $as_echo "failed" >&6; }
26948     as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
26949
26950 fi
26951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26952   conftest.$ac_objext conftest.beam conftest.$ac_ext
26953 fi
26954
26955
26956       fi
26957
26958
26959 # The cast to long int works around a bug in the HP C Compiler
26960 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26961 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26962 # This bug is HP SR number 8606223364.
26963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
26964 $as_echo_n "checking size of size_t... " >&6; }
26965 if ${ac_cv_sizeof_size_t+:} false; then :
26966   $as_echo_n "(cached) " >&6
26967 else
26968   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
26969
26970 else
26971   if test "$ac_cv_type_size_t" = yes; then
26972      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26974 as_fn_error 77 "cannot compute sizeof (size_t)
26975 See \`config.log' for more details" "$LINENO" 5; }
26976    else
26977      ac_cv_sizeof_size_t=0
26978    fi
26979 fi
26980
26981 fi
26982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
26983 $as_echo "$ac_cv_sizeof_size_t" >&6; }
26984
26985
26986
26987 cat >>confdefs.h <<_ACEOF
26988 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
26989 _ACEOF
26990
26991
26992 # The cast to long int works around a bug in the HP C Compiler
26993 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26994 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26995 # This bug is HP SR number 8606223364.
26996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
26997 $as_echo_n "checking size of long... " >&6; }
26998 if ${ac_cv_sizeof_long+:} false; then :
26999   $as_echo_n "(cached) " >&6
27000 else
27001   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
27002
27003 else
27004   if test "$ac_cv_type_long" = yes; then
27005      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27007 as_fn_error 77 "cannot compute sizeof (long)
27008 See \`config.log' for more details" "$LINENO" 5; }
27009    else
27010      ac_cv_sizeof_long=0
27011    fi
27012 fi
27013
27014 fi
27015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
27016 $as_echo "$ac_cv_sizeof_long" >&6; }
27017
27018
27019
27020 cat >>confdefs.h <<_ACEOF
27021 #define SIZEOF_LONG $ac_cv_sizeof_long
27022 _ACEOF
27023
27024
27025 # The cast to long int works around a bug in the HP C Compiler
27026 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27027 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27028 # This bug is HP SR number 8606223364.
27029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27030 $as_echo_n "checking size of int... " >&6; }
27031 if ${ac_cv_sizeof_int+:} false; then :
27032   $as_echo_n "(cached) " >&6
27033 else
27034   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
27035
27036 else
27037   if test "$ac_cv_type_int" = yes; then
27038      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27040 as_fn_error 77 "cannot compute sizeof (int)
27041 See \`config.log' for more details" "$LINENO" 5; }
27042    else
27043      ac_cv_sizeof_int=0
27044    fi
27045 fi
27046
27047 fi
27048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27049 $as_echo "$ac_cv_sizeof_int" >&6; }
27050
27051
27052
27053 cat >>confdefs.h <<_ACEOF
27054 #define SIZEOF_INT $ac_cv_sizeof_int
27055 _ACEOF
27056
27057
27058 # The cast to long int works around a bug in the HP C Compiler
27059 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27060 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27061 # This bug is HP SR number 8606223364.
27062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
27063 $as_echo_n "checking size of short... " >&6; }
27064 if ${ac_cv_sizeof_short+:} false; then :
27065   $as_echo_n "(cached) " >&6
27066 else
27067   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
27068
27069 else
27070   if test "$ac_cv_type_short" = yes; then
27071      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27073 as_fn_error 77 "cannot compute sizeof (short)
27074 See \`config.log' for more details" "$LINENO" 5; }
27075    else
27076      ac_cv_sizeof_short=0
27077    fi
27078 fi
27079
27080 fi
27081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
27082 $as_echo "$ac_cv_sizeof_short" >&6; }
27083
27084
27085
27086 cat >>confdefs.h <<_ACEOF
27087 #define SIZEOF_SHORT $ac_cv_sizeof_short
27088 _ACEOF
27089
27090
27091
27092   if test -z "$ac_cv_sizeof_long" ||
27093     test "$ac_cv_sizeof_long" -eq "0"; then
27094     as_fn_error $? "cannot find out size of long." "$LINENO" 5
27095   fi
27096
27097 cat >>confdefs.h <<_EOF
27098 #define CURL_SIZEOF_LONG $ac_cv_sizeof_long
27099 _EOF
27100
27101
27102 # The cast to long int works around a bug in the HP C Compiler
27103 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27104 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27105 # This bug is HP SR number 8606223364.
27106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
27107 $as_echo_n "checking size of time_t... " >&6; }
27108 if ${ac_cv_sizeof_time_t+:} false; then :
27109   $as_echo_n "(cached) " >&6
27110 else
27111   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
27112
27113 else
27114   if test "$ac_cv_type_time_t" = yes; then
27115      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27117 as_fn_error 77 "cannot compute sizeof (time_t)
27118 See \`config.log' for more details" "$LINENO" 5; }
27119    else
27120      ac_cv_sizeof_time_t=0
27121    fi
27122 fi
27123
27124 fi
27125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
27126 $as_echo "$ac_cv_sizeof_time_t" >&6; }
27127
27128
27129
27130 cat >>confdefs.h <<_ACEOF
27131 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
27132 _ACEOF
27133
27134
27135 # The cast to long int works around a bug in the HP C Compiler
27136 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27137 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27138 # This bug is HP SR number 8606223364.
27139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
27140 $as_echo_n "checking size of off_t... " >&6; }
27141 if ${ac_cv_sizeof_off_t+:} false; then :
27142   $as_echo_n "(cached) " >&6
27143 else
27144   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
27145
27146 else
27147   if test "$ac_cv_type_off_t" = yes; then
27148      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27150 as_fn_error 77 "cannot compute sizeof (off_t)
27151 See \`config.log' for more details" "$LINENO" 5; }
27152    else
27153      ac_cv_sizeof_off_t=0
27154    fi
27155 fi
27156
27157 fi
27158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
27159 $as_echo "$ac_cv_sizeof_off_t" >&6; }
27160
27161
27162
27163 cat >>confdefs.h <<_ACEOF
27164 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
27165 _ACEOF
27166
27167
27168
27169 soname_bump=no
27170 if test x"$ac_cv_native_windows" != "xyes" &&
27171    test $ac_cv_sizeof_off_t -ne $curl_sizeof_curl_off_t; then
27172   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This libcurl built is probably not ABI compatible with previous" >&5
27173 $as_echo "$as_me: WARNING: This libcurl built is probably not ABI compatible with previous" >&2;}
27174   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&5
27175 $as_echo "$as_me: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&2;}
27176   soname_bump=yes
27177 fi
27178
27179
27180 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
27181 if test "x$ac_cv_type_long_long" = xyes; then :
27182
27183 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
27184
27185    longlong="yes"
27186
27187 fi
27188
27189
27190 if test "xyes" = "x$longlong"; then
27191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
27192 $as_echo_n "checking if numberLL works... " >&6; }
27193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27194 /* end confdefs.h.  */
27195
27196
27197
27198 int main (void)
27199 {
27200
27201       long long val = 1000LL;
27202
27203  ;
27204  return 0;
27205 }
27206
27207 _ACEOF
27208 if ac_fn_c_try_compile "$LINENO"; then :
27209
27210     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27211 $as_echo "yes" >&6; }
27212
27213 $as_echo "#define HAVE_LL 1" >>confdefs.h
27214
27215
27216 else
27217
27218     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27219 $as_echo "no" >&6; }
27220
27221 fi
27222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27223 fi
27224
27225
27226 # check for ssize_t
27227 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27228 if test "x$ac_cv_type_ssize_t" = xyes; then :
27229
27230 else
27231
27232 $as_echo "#define ssize_t int" >>confdefs.h
27233
27234 fi
27235
27236
27237 # check for bool type
27238 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
27239 #ifdef HAVE_SYS_TYPES_H
27240 #include <sys/types.h>
27241 #endif
27242 #ifdef HAVE_STDBOOL_H
27243 #include <stdbool.h>
27244 #endif
27245
27246 "
27247 if test "x$ac_cv_type_bool" = xyes; then :
27248
27249
27250 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
27251
27252
27253 fi
27254
27255
27256
27257 curl_includes_ws2tcpip="\
27258 /* includes start */
27259 #ifdef HAVE_WINDOWS_H
27260 #  ifndef WIN32_LEAN_AND_MEAN
27261 #    define WIN32_LEAN_AND_MEAN
27262 #  endif
27263 #  include <windows.h>
27264 #  ifdef HAVE_WINSOCK2_H
27265 #    include <winsock2.h>
27266 #    ifdef HAVE_WS2TCPIP_H
27267 #       include <ws2tcpip.h>
27268 #    endif
27269 #  endif
27270 #endif
27271 /* includes end */"
27272
27273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
27274 $as_echo_n "checking for windows.h... " >&6; }
27275 if ${ac_cv_header_windows_h+:} false; then :
27276   $as_echo_n "(cached) " >&6
27277 else
27278
27279     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27280 /* end confdefs.h.  */
27281
27282
27283 #undef inline
27284 #ifndef WIN32_LEAN_AND_MEAN
27285 #define WIN32_LEAN_AND_MEAN
27286 #endif
27287 #include <windows.h>
27288
27289 int main (void)
27290 {
27291
27292 #if defined(__CYGWIN__) || defined(__CEGCC__)
27293         HAVE_WINDOWS_H shall not be defined.
27294 #else
27295         int dummy=2*WINVER;
27296 #endif
27297
27298  ;
27299  return 0;
27300 }
27301
27302 _ACEOF
27303 if ac_fn_c_try_compile "$LINENO"; then :
27304
27305       ac_cv_header_windows_h="yes"
27306
27307 else
27308
27309       ac_cv_header_windows_h="no"
27310
27311 fi
27312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27313
27314 fi
27315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
27316 $as_echo "$ac_cv_header_windows_h" >&6; }
27317   case "$ac_cv_header_windows_h" in
27318     yes)
27319
27320 cat >>confdefs.h <<_ACEOF
27321 #define HAVE_WINDOWS_H 1
27322 _ACEOF
27323
27324
27325 cat >>confdefs.h <<_ACEOF
27326 #define WIN32_LEAN_AND_MEAN 1
27327 _ACEOF
27328
27329       ;;
27330   esac
27331
27332
27333     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
27334 $as_echo_n "checking for winsock2.h... " >&6; }
27335 if ${ac_cv_header_winsock2_h+:} false; then :
27336   $as_echo_n "(cached) " >&6
27337 else
27338
27339     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27340 /* end confdefs.h.  */
27341
27342
27343 #undef inline
27344 #ifndef WIN32_LEAN_AND_MEAN
27345 #define WIN32_LEAN_AND_MEAN
27346 #endif
27347 #include <windows.h>
27348 #include <winsock2.h>
27349
27350 int main (void)
27351 {
27352
27353 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
27354         HAVE_WINSOCK2_H shall not be defined.
27355 #else
27356         int dummy=2*IPPROTO_ESP;
27357 #endif
27358
27359  ;
27360  return 0;
27361 }
27362
27363 _ACEOF
27364 if ac_fn_c_try_compile "$LINENO"; then :
27365
27366       ac_cv_header_winsock2_h="yes"
27367
27368 else
27369
27370       ac_cv_header_winsock2_h="no"
27371
27372 fi
27373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27374
27375 fi
27376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
27377 $as_echo "$ac_cv_header_winsock2_h" >&6; }
27378   case "$ac_cv_header_winsock2_h" in
27379     yes)
27380
27381 cat >>confdefs.h <<_ACEOF
27382 #define HAVE_WINSOCK2_H 1
27383 _ACEOF
27384
27385       ;;
27386   esac
27387
27388
27389     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
27390 $as_echo_n "checking for ws2tcpip.h... " >&6; }
27391 if ${ac_cv_header_ws2tcpip_h+:} false; then :
27392   $as_echo_n "(cached) " >&6
27393 else
27394
27395     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27396 /* end confdefs.h.  */
27397
27398
27399 #undef inline
27400 #ifndef WIN32_LEAN_AND_MEAN
27401 #define WIN32_LEAN_AND_MEAN
27402 #endif
27403 #include <windows.h>
27404 #include <winsock2.h>
27405 #include <ws2tcpip.h>
27406
27407 int main (void)
27408 {
27409
27410 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
27411         HAVE_WS2TCPIP_H shall not be defined.
27412 #else
27413         int dummy=2*IP_PKTINFO;
27414 #endif
27415
27416  ;
27417  return 0;
27418 }
27419
27420 _ACEOF
27421 if ac_fn_c_try_compile "$LINENO"; then :
27422
27423       ac_cv_header_ws2tcpip_h="yes"
27424
27425 else
27426
27427       ac_cv_header_ws2tcpip_h="no"
27428
27429 fi
27430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27431
27432 fi
27433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
27434 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
27435   case "$ac_cv_header_ws2tcpip_h" in
27436     yes)
27437
27438 cat >>confdefs.h <<_ACEOF
27439 #define HAVE_WS2TCPIP_H 1
27440 _ACEOF
27441
27442       ;;
27443   esac
27444
27445
27446
27447 curl_includes_sys_socket="\
27448 /* includes start */
27449 #ifdef HAVE_SYS_TYPES_H
27450 #  include <sys/types.h>
27451 #endif
27452 #ifdef HAVE_SYS_SOCKET_H
27453 #  include <sys/socket.h>
27454 #endif
27455 /* includes end */"
27456   for ac_header in sys/types.h sys/socket.h
27457 do :
27458   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27459 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
27460 "
27461 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27462   cat >>confdefs.h <<_ACEOF
27463 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27464 _ACEOF
27465
27466 fi
27467
27468 done
27469
27470
27471
27472 curl_preprocess_callconv="\
27473 /* preprocess start */
27474 #ifdef HAVE_WINDOWS_H
27475 #  define FUNCALLCONV __stdcall
27476 #else
27477 #  define FUNCALLCONV
27478 #endif
27479 /* preprocess end */"
27480
27481
27482         #
27483     #
27484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5
27485 $as_echo_n "checking for curl_socklen_t data type... " >&6; }
27486   curl_typeof_curl_socklen_t="unknown"
27487   for arg1 in int SOCKET; do
27488     for arg2 in 'struct sockaddr' void; do
27489       for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
27490         if test "$curl_typeof_curl_socklen_t" = "unknown"; then
27491           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27492 /* end confdefs.h.  */
27493
27494
27495               $curl_includes_ws2tcpip
27496               $curl_includes_sys_socket
27497               $curl_preprocess_callconv
27498               extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
27499
27500 int main (void)
27501 {
27502
27503               $t *lenptr = 0;
27504               if(0 != getpeername(0, 0, lenptr))
27505                 return 1;
27506
27507  ;
27508  return 0;
27509 }
27510
27511 _ACEOF
27512 if ac_fn_c_try_compile "$LINENO"; then :
27513
27514             curl_typeof_curl_socklen_t="$t"
27515
27516 fi
27517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27518         fi
27519       done
27520     done
27521   done
27522   for t in socklen_t int; do
27523     if test "$curl_typeof_curl_socklen_t" = "void"; then
27524       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27525 /* end confdefs.h.  */
27526
27527
27528           $curl_includes_sys_socket
27529           typedef $t curl_socklen_t;
27530
27531 int main (void)
27532 {
27533
27534           curl_socklen_t dummy;
27535
27536  ;
27537  return 0;
27538 }
27539
27540 _ACEOF
27541 if ac_fn_c_try_compile "$LINENO"; then :
27542
27543         curl_typeof_curl_socklen_t="$t"
27544
27545 fi
27546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27547     fi
27548   done
27549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5
27550 $as_echo "$curl_typeof_curl_socklen_t" >&6; }
27551   if test "$curl_typeof_curl_socklen_t" = "void" ||
27552     test "$curl_typeof_curl_socklen_t" = "unknown"; then
27553     as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5
27554   fi
27555   #
27556   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5
27557 $as_echo_n "checking size of curl_socklen_t... " >&6; }
27558   curl_sizeof_curl_socklen_t="unknown"
27559   curl_pull_headers_socklen_t="unknown"
27560   if test "$ac_cv_header_ws2tcpip_h" = "yes"; then
27561     tst_pull_header_checks='none ws2tcpip'
27562     tst_size_checks='4'
27563   else
27564     tst_pull_header_checks='none systypes syssocket'
27565     tst_size_checks='4 8 2'
27566   fi
27567   for tst_size in $tst_size_checks; do
27568     for tst_pull_headers in $tst_pull_header_checks; do
27569       if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
27570         case $tst_pull_headers in
27571           ws2tcpip)
27572             tmp_includes="$curl_includes_ws2tcpip"
27573             ;;
27574           systypes)
27575             tmp_includes="$curl_includes_sys_types"
27576             ;;
27577           syssocket)
27578             tmp_includes="$curl_includes_sys_socket"
27579             ;;
27580           *)
27581             tmp_includes=""
27582             ;;
27583         esac
27584         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27585 /* end confdefs.h.  */
27586
27587
27588             $tmp_includes
27589             typedef $curl_typeof_curl_socklen_t curl_socklen_t;
27590             typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1];
27591
27592 int main (void)
27593 {
27594
27595             curl_socklen_t dummy;
27596
27597  ;
27598  return 0;
27599 }
27600
27601 _ACEOF
27602 if ac_fn_c_try_compile "$LINENO"; then :
27603
27604           curl_sizeof_curl_socklen_t="$tst_size"
27605           curl_pull_headers_socklen_t="$tst_pull_headers"
27606
27607 fi
27608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27609       fi
27610     done
27611   done
27612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5
27613 $as_echo "$curl_sizeof_curl_socklen_t" >&6; }
27614   if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
27615     as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5
27616   fi
27617   #
27618   case $curl_pull_headers_socklen_t in
27619     ws2tcpip)
27620
27621 cat >>confdefs.h <<_EOF
27622 #define CURL_PULL_WS2TCPIP_H 1
27623 _EOF
27624
27625       ;;
27626     systypes)
27627
27628 cat >>confdefs.h <<_EOF
27629 #define CURL_PULL_SYS_TYPES_H 1
27630 _EOF
27631
27632       ;;
27633     syssocket)
27634
27635 cat >>confdefs.h <<_EOF
27636 #define CURL_PULL_SYS_TYPES_H 1
27637 _EOF
27638
27639
27640 cat >>confdefs.h <<_EOF
27641 #define CURL_PULL_SYS_SOCKET_H 1
27642 _EOF
27643
27644       ;;
27645   esac
27646
27647 cat >>confdefs.h <<_EOF
27648 #define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t
27649 _EOF
27650
27651
27652 cat >>confdefs.h <<_EOF
27653 #define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t
27654 _EOF
27655
27656
27657
27658
27659 curl_includes_poll="\
27660 /* includes start */
27661 #ifdef HAVE_SYS_TYPES_H
27662 #  include <sys/types.h>
27663 #endif
27664 #ifdef HAVE_POLL_H
27665 #  include <poll.h>
27666 #endif
27667 #ifdef HAVE_SYS_POLL_H
27668 #  include <sys/poll.h>
27669 #endif
27670 /* includes end */"
27671   for ac_header in sys/types.h poll.h sys/poll.h
27672 do :
27673   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27674 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
27675 "
27676 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27677   cat >>confdefs.h <<_ACEOF
27678 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27679 _ACEOF
27680
27681 fi
27682
27683 done
27684
27685
27686
27687     #
27688   tst_poll_events_macro_defined="unknown"
27689   #
27690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27691 /* end confdefs.h.  */
27692
27693
27694       $curl_includes_poll
27695
27696 int main (void)
27697 {
27698
27699 #if defined(events) || defined(revents)
27700       return 0;
27701 #else
27702       force compilation error
27703 #endif
27704
27705  ;
27706  return 0;
27707 }
27708
27709 _ACEOF
27710 if ac_fn_c_try_compile "$LINENO"; then :
27711
27712     tst_poll_events_macro_defined="yes"
27713
27714 else
27715
27716     tst_poll_events_macro_defined="no"
27717
27718 fi
27719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27720   #
27721   if test "$tst_poll_events_macro_defined" = "yes"; then
27722     if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
27723
27724 cat >>confdefs.h <<_EOF
27725 #define CURL_PULL_SYS_POLL_H 1
27726 _EOF
27727
27728     fi
27729   fi
27730   #
27731
27732
27733
27734   ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
27735 #undef inline
27736 #ifdef HAVE_WINDOWS_H
27737 #ifndef WIN32_LEAN_AND_MEAN
27738 #define WIN32_LEAN_AND_MEAN
27739 #endif
27740 #include <windows.h>
27741 #ifdef HAVE_WINSOCK2_H
27742 #include <winsock2.h>
27743 #else
27744 #ifdef HAVE_WINSOCK_H
27745 #include <winsock.h>
27746 #endif
27747 #endif
27748 #else
27749 #ifdef HAVE_SYS_TYPES_H
27750 #include <sys/types.h>
27751 #endif
27752 #ifdef HAVE_SYS_SOCKET_H
27753 #include <sys/socket.h>
27754 #endif
27755 #ifdef HAVE_NETINET_IN_H
27756 #include <netinet/in.h>
27757 #endif
27758 #ifdef HAVE_ARPA_INET_H
27759 #include <arpa/inet.h>
27760 #endif
27761 #endif
27762
27763 "
27764 if test "x$ac_cv_type_in_addr_t" = xyes; then :
27765
27766 else
27767
27768         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
27769 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
27770 if ${curl_cv_in_addr_t_equiv+:} false; then :
27771   $as_echo_n "(cached) " >&6
27772 else
27773
27774       curl_cv_in_addr_t_equiv="unknown"
27775       for t in "unsigned long" int size_t unsigned long; do
27776         if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
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 #ifdef HAVE_NETINET_IN_H
27802 #include <netinet/in.h>
27803 #endif
27804 #ifdef HAVE_ARPA_INET_H
27805 #include <arpa/inet.h>
27806 #endif
27807 #endif
27808
27809 int main (void)
27810 {
27811
27812               $t data = inet_addr ("1.2.3.4");
27813
27814  ;
27815  return 0;
27816 }
27817
27818 _ACEOF
27819 if ac_fn_c_try_link "$LINENO"; then :
27820
27821             curl_cv_in_addr_t_equiv="$t"
27822
27823 fi
27824 rm -f core conftest.err conftest.$ac_objext \
27825     conftest$ac_exeext conftest.$ac_ext
27826         fi
27827       done
27828
27829 fi
27830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
27831 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
27832     case "$curl_cv_in_addr_t_equiv" in
27833       unknown)
27834         as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
27835         ;;
27836       *)
27837
27838 cat >>confdefs.h <<_ACEOF
27839 #define in_addr_t $curl_cv_in_addr_t_equiv
27840 _ACEOF
27841
27842         ;;
27843     esac
27844
27845 fi
27846
27847
27848
27849
27850    ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
27851 #undef inline
27852 #ifdef HAVE_WINDOWS_H
27853 #ifndef WIN32_LEAN_AND_MEAN
27854 #define WIN32_LEAN_AND_MEAN
27855 #endif
27856 #include <windows.h>
27857 #ifdef HAVE_WINSOCK2_H
27858 #include <winsock2.h>
27859 #endif
27860 #else
27861 #ifdef HAVE_SYS_TYPES_H
27862 #include <sys/types.h>
27863 #endif
27864 #ifdef HAVE_SYS_SOCKET_H
27865 #include <sys/socket.h>
27866 #endif
27867 #ifdef HAVE_NETINET_IN_H
27868 #include <netinet/in.h>
27869 #endif
27870 #ifdef HAVE_ARPA_INET_H
27871 #include <arpa/inet.h>
27872 #endif
27873 #endif
27874
27875 "
27876 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
27877
27878 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
27879
27880 fi
27881
27882
27883
27884
27885   for ac_header in signal.h
27886 do :
27887   ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
27888 if test "x$ac_cv_header_signal_h" = xyes; then :
27889   cat >>confdefs.h <<_ACEOF
27890 #define HAVE_SIGNAL_H 1
27891 _ACEOF
27892
27893 fi
27894
27895 done
27896
27897   ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
27898 #ifdef HAVE_SIGNAL_H
27899 #include <signal.h>
27900 #endif
27901
27902 "
27903 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
27904
27905
27906 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
27907
27908
27909 fi
27910
27911   case "$ac_cv_type_sig_atomic_t" in
27912     yes)
27913       #
27914       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
27915 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
27916       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27917 /* end confdefs.h.  */
27918
27919
27920 #ifdef HAVE_SIGNAL_H
27921 #include <signal.h>
27922 #endif
27923
27924 int main (void)
27925 {
27926
27927           static volatile sig_atomic_t dummy = 0;
27928
27929  ;
27930  return 0;
27931 }
27932
27933 _ACEOF
27934 if ac_fn_c_try_link "$LINENO"; then :
27935
27936         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27937 $as_echo "no" >&6; }
27938         ac_cv_sig_atomic_t_volatile="no"
27939
27940 else
27941
27942         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27943 $as_echo "yes" >&6; }
27944         ac_cv_sig_atomic_t_volatile="yes"
27945
27946 fi
27947 rm -f core conftest.err conftest.$ac_objext \
27948     conftest$ac_exeext conftest.$ac_ext
27949       #
27950       if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then
27951
27952 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
27953
27954       fi
27955       ;;
27956   esac
27957
27958
27959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
27960 $as_echo_n "checking return type of signal handlers... " >&6; }
27961 if ${ac_cv_type_signal+:} false; then :
27962   $as_echo_n "(cached) " >&6
27963 else
27964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27965 /* end confdefs.h.  */
27966 #include <sys/types.h>
27967 #include <signal.h>
27968
27969 int main (void)
27970 {
27971 return *(signal (0, 0)) (0) == 1;
27972  ;
27973  return 0;
27974 }
27975 _ACEOF
27976 if ac_fn_c_try_compile "$LINENO"; then :
27977   ac_cv_type_signal=int
27978 else
27979   ac_cv_type_signal=void
27980 fi
27981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27982 fi
27983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27984 $as_echo "$ac_cv_type_signal" >&6; }
27985
27986 cat >>confdefs.h <<_ACEOF
27987 #define RETSIGTYPE $ac_cv_type_signal
27988 _ACEOF
27989
27990
27991
27992
27993     for ac_header in sys/select.h sys/socket.h
27994 do :
27995   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27996 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27997 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27998   cat >>confdefs.h <<_ACEOF
27999 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28000 _ACEOF
28001
28002 fi
28003
28004 done
28005
28006   #
28007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
28008 $as_echo_n "checking for select... " >&6; }
28009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28010 /* end confdefs.h.  */
28011
28012
28013 #undef inline
28014 #ifdef HAVE_WINDOWS_H
28015 #ifndef WIN32_LEAN_AND_MEAN
28016 #define WIN32_LEAN_AND_MEAN
28017 #endif
28018 #include <windows.h>
28019 #ifdef HAVE_WINSOCK2_H
28020 #include <winsock2.h>
28021 #else
28022 #ifdef HAVE_WINSOCK_H
28023 #include <winsock.h>
28024 #endif
28025 #endif
28026 #endif
28027 #ifdef HAVE_SYS_TYPES_H
28028 #include <sys/types.h>
28029 #endif
28030 #ifdef HAVE_SYS_TIME_H
28031 #include <sys/time.h>
28032 #ifdef TIME_WITH_SYS_TIME
28033 #include <time.h>
28034 #endif
28035 #else
28036 #ifdef HAVE_TIME_H
28037 #include <time.h>
28038 #endif
28039 #endif
28040 #ifndef HAVE_WINDOWS_H
28041 #ifdef HAVE_SYS_SELECT_H
28042 #include <sys/select.h>
28043 #endif
28044 #ifdef HAVE_SYS_SOCKET_H
28045 #include <sys/socket.h>
28046 #endif
28047 #endif
28048
28049 int main (void)
28050 {
28051
28052       select(0, 0, 0, 0, 0);
28053
28054  ;
28055  return 0;
28056 }
28057
28058 _ACEOF
28059 if ac_fn_c_try_link "$LINENO"; then :
28060
28061     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28062 $as_echo "yes" >&6; }
28063     curl_cv_select="yes"
28064
28065 else
28066
28067     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28068 $as_echo "no" >&6; }
28069     curl_cv_select="no"
28070
28071 fi
28072 rm -f core conftest.err conftest.$ac_objext \
28073     conftest$ac_exeext conftest.$ac_ext
28074   #
28075   if test "$curl_cv_select" = "yes"; then
28076     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
28077 $as_echo_n "checking types of args and return type for select... " >&6; }
28078 if ${curl_cv_func_select_args+:} false; then :
28079   $as_echo_n "(cached) " >&6
28080 else
28081
28082       curl_cv_func_select_args="unknown"
28083       for sel_retv in 'int' 'ssize_t'; do
28084         for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
28085           for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
28086             for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
28087               if test "$curl_cv_func_select_args" = "unknown"; then
28088                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28089 /* end confdefs.h.  */
28090
28091
28092 #undef inline
28093 #ifdef HAVE_WINDOWS_H
28094 #ifndef WIN32_LEAN_AND_MEAN
28095 #define WIN32_LEAN_AND_MEAN
28096 #endif
28097 #include <windows.h>
28098 #ifdef HAVE_WINSOCK2_H
28099 #include <winsock2.h>
28100 #else
28101 #ifdef HAVE_WINSOCK_H
28102 #include <winsock.h>
28103 #endif
28104 #endif
28105 #define SELECTCALLCONV PASCAL
28106 #endif
28107 #ifdef HAVE_SYS_TYPES_H
28108 #include <sys/types.h>
28109 #endif
28110 #ifdef HAVE_SYS_TIME_H
28111 #include <sys/time.h>
28112 #ifdef TIME_WITH_SYS_TIME
28113 #include <time.h>
28114 #endif
28115 #else
28116 #ifdef HAVE_TIME_H
28117 #include <time.h>
28118 #endif
28119 #endif
28120 #ifndef HAVE_WINDOWS_H
28121 #ifdef HAVE_SYS_SELECT_H
28122 #include <sys/select.h>
28123 #endif
28124 #ifdef HAVE_SYS_SOCKET_H
28125 #include <sys/socket.h>
28126 #endif
28127 #define SELECTCALLCONV
28128 #endif
28129 #ifndef HAVE_STRUCT_TIMEVAL
28130                     struct timeval {
28131                       long tv_sec;
28132                       long tv_usec;
28133                     };
28134 #endif
28135                     extern $sel_retv SELECTCALLCONV select($sel_arg1,
28136                                                            $sel_arg234,
28137                                                            $sel_arg234,
28138                                                            $sel_arg234,
28139                                                            $sel_arg5);
28140
28141 int main (void)
28142 {
28143
28144                     $sel_arg1   nfds=0;
28145                     $sel_arg234 rfds=0;
28146                     $sel_arg234 wfds=0;
28147                     $sel_arg234 efds=0;
28148                     $sel_retv res = select(nfds, rfds, wfds, efds, 0);
28149
28150  ;
28151  return 0;
28152 }
28153
28154 _ACEOF
28155 if ac_fn_c_try_compile "$LINENO"; then :
28156
28157                   curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
28158
28159 fi
28160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28161               fi
28162             done
28163           done
28164         done
28165       done
28166
28167 fi
28168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
28169 $as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
28170     if test "$curl_cv_func_select_args" = "unknown"; then
28171       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
28172 $as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
28173       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
28174 $as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
28175     else
28176       select_prev_IFS=$IFS; IFS=','
28177       set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
28178       IFS=$select_prev_IFS
28179       shift
28180       #
28181       sel_qual_type_arg5=$3
28182       #
28183
28184 cat >>confdefs.h <<_ACEOF
28185 #define SELECT_TYPE_ARG1 $1
28186 _ACEOF
28187
28188
28189 cat >>confdefs.h <<_ACEOF
28190 #define SELECT_TYPE_ARG234 $2
28191 _ACEOF
28192
28193
28194 cat >>confdefs.h <<_ACEOF
28195 #define SELECT_TYPE_RETV $4
28196 _ACEOF
28197
28198       #
28199       prev_sh_opts=$-
28200       #
28201       case $prev_sh_opts in
28202         *f*)
28203           ;;
28204         *)
28205           set -f
28206           ;;
28207       esac
28208       #
28209       case "$sel_qual_type_arg5" in
28210         const*)
28211           sel_qual_arg5=const
28212           sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
28213         ;;
28214         *)
28215           sel_qual_arg5=
28216           sel_type_arg5=$sel_qual_type_arg5
28217         ;;
28218       esac
28219       #
28220
28221 cat >>confdefs.h <<_ACEOF
28222 #define SELECT_QUAL_ARG5 $sel_qual_arg5
28223 _ACEOF
28224
28225
28226 cat >>confdefs.h <<_ACEOF
28227 #define SELECT_TYPE_ARG5 $sel_type_arg5
28228 _ACEOF
28229
28230       #
28231       case $prev_sh_opts in
28232         *f*)
28233           ;;
28234         *)
28235           set +f
28236           ;;
28237       esac
28238       #
28239
28240 cat >>confdefs.h <<_ACEOF
28241 #define HAVE_SELECT 1
28242 _ACEOF
28243
28244       ac_cv_func_select="yes"
28245     fi
28246   fi
28247
28248
28249
28250       for ac_header in sys/types.h sys/socket.h
28251 do :
28252   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28253 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28254 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28255   cat >>confdefs.h <<_ACEOF
28256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28257 _ACEOF
28258
28259 fi
28260
28261 done
28262
28263   #
28264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
28265 $as_echo_n "checking for recv... " >&6; }
28266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28267 /* end confdefs.h.  */
28268
28269
28270 #undef inline
28271 #ifdef HAVE_WINDOWS_H
28272 #ifndef WIN32_LEAN_AND_MEAN
28273 #define WIN32_LEAN_AND_MEAN
28274 #endif
28275 #include <windows.h>
28276 #ifdef HAVE_WINSOCK2_H
28277 #include <winsock2.h>
28278 #else
28279 #ifdef HAVE_WINSOCK_H
28280 #include <winsock.h>
28281 #endif
28282 #endif
28283 #else
28284 #ifdef HAVE_SYS_TYPES_H
28285 #include <sys/types.h>
28286 #endif
28287 #ifdef HAVE_SYS_SOCKET_H
28288 #include <sys/socket.h>
28289 #endif
28290 #endif
28291
28292 int main (void)
28293 {
28294
28295       recv(0, 0, 0, 0);
28296
28297  ;
28298  return 0;
28299 }
28300
28301 _ACEOF
28302 if ac_fn_c_try_link "$LINENO"; then :
28303
28304     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28305 $as_echo "yes" >&6; }
28306     curl_cv_recv="yes"
28307
28308 else
28309
28310     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28311 $as_echo "no" >&6; }
28312     curl_cv_recv="no"
28313
28314 fi
28315 rm -f core conftest.err conftest.$ac_objext \
28316     conftest$ac_exeext conftest.$ac_ext
28317   #
28318   if test "$curl_cv_recv" = "yes"; then
28319     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
28320 $as_echo_n "checking types of args and return type for recv... " >&6; }
28321 if ${curl_cv_func_recv_args+:} false; then :
28322   $as_echo_n "(cached) " >&6
28323 else
28324
28325       curl_cv_func_recv_args="unknown"
28326       for recv_retv in 'int' 'ssize_t'; do
28327         for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
28328           for recv_arg2 in 'char *' 'void *'; do
28329             for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
28330               for recv_arg4 in 'int' 'unsigned int'; do
28331                 if test "$curl_cv_func_recv_args" = "unknown"; then
28332                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28333 /* end confdefs.h.  */
28334
28335
28336 #undef inline
28337 #ifdef HAVE_WINDOWS_H
28338 #ifndef WIN32_LEAN_AND_MEAN
28339 #define WIN32_LEAN_AND_MEAN
28340 #endif
28341 #include <windows.h>
28342 #ifdef HAVE_WINSOCK2_H
28343 #include <winsock2.h>
28344 #else
28345 #ifdef HAVE_WINSOCK_H
28346 #include <winsock.h>
28347 #endif
28348 #endif
28349 #define RECVCALLCONV PASCAL
28350 #else
28351 #ifdef HAVE_SYS_TYPES_H
28352 #include <sys/types.h>
28353 #endif
28354 #ifdef HAVE_SYS_SOCKET_H
28355 #include <sys/socket.h>
28356 #endif
28357 #define RECVCALLCONV
28358 #endif
28359                       extern $recv_retv RECVCALLCONV
28360                       recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
28361
28362 int main (void)
28363 {
28364
28365                       $recv_arg1 s=0;
28366                       $recv_arg2 buf=0;
28367                       $recv_arg3 len=0;
28368                       $recv_arg4 flags=0;
28369                       $recv_retv res = recv(s, buf, len, flags);
28370
28371  ;
28372  return 0;
28373 }
28374
28375 _ACEOF
28376 if ac_fn_c_try_compile "$LINENO"; then :
28377
28378                     curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
28379
28380 fi
28381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28382                 fi
28383               done
28384             done
28385           done
28386         done
28387       done
28388
28389 fi
28390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
28391 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
28392     if test "$curl_cv_func_recv_args" = "unknown"; then
28393       as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
28394     else
28395       recv_prev_IFS=$IFS; IFS=','
28396       set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
28397       IFS=$recv_prev_IFS
28398       shift
28399       #
28400
28401 cat >>confdefs.h <<_ACEOF
28402 #define RECV_TYPE_ARG1 $1
28403 _ACEOF
28404
28405
28406 cat >>confdefs.h <<_ACEOF
28407 #define RECV_TYPE_ARG2 $2
28408 _ACEOF
28409
28410
28411 cat >>confdefs.h <<_ACEOF
28412 #define RECV_TYPE_ARG3 $3
28413 _ACEOF
28414
28415
28416 cat >>confdefs.h <<_ACEOF
28417 #define RECV_TYPE_ARG4 $4
28418 _ACEOF
28419
28420
28421 cat >>confdefs.h <<_ACEOF
28422 #define RECV_TYPE_RETV $5
28423 _ACEOF
28424
28425       #
28426
28427 cat >>confdefs.h <<_ACEOF
28428 #define HAVE_RECV 1
28429 _ACEOF
28430
28431       ac_cv_func_recv="yes"
28432     fi
28433   else
28434     as_fn_error $? "Unable to link function recv" "$LINENO" 5
28435   fi
28436
28437
28438       for ac_header in sys/types.h sys/socket.h
28439 do :
28440   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28441 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28442 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28443   cat >>confdefs.h <<_ACEOF
28444 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28445 _ACEOF
28446
28447 fi
28448
28449 done
28450
28451   #
28452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
28453 $as_echo_n "checking for send... " >&6; }
28454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28455 /* end confdefs.h.  */
28456
28457
28458 #undef inline
28459 #ifdef HAVE_WINDOWS_H
28460 #ifndef WIN32_LEAN_AND_MEAN
28461 #define WIN32_LEAN_AND_MEAN
28462 #endif
28463 #include <windows.h>
28464 #ifdef HAVE_WINSOCK2_H
28465 #include <winsock2.h>
28466 #else
28467 #ifdef HAVE_WINSOCK_H
28468 #include <winsock.h>
28469 #endif
28470 #endif
28471 #else
28472 #ifdef HAVE_SYS_TYPES_H
28473 #include <sys/types.h>
28474 #endif
28475 #ifdef HAVE_SYS_SOCKET_H
28476 #include <sys/socket.h>
28477 #endif
28478 #endif
28479
28480 int main (void)
28481 {
28482
28483       send(0, 0, 0, 0);
28484
28485  ;
28486  return 0;
28487 }
28488
28489 _ACEOF
28490 if ac_fn_c_try_link "$LINENO"; then :
28491
28492     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28493 $as_echo "yes" >&6; }
28494     curl_cv_send="yes"
28495
28496 else
28497
28498     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28499 $as_echo "no" >&6; }
28500     curl_cv_send="no"
28501
28502 fi
28503 rm -f core conftest.err conftest.$ac_objext \
28504     conftest$ac_exeext conftest.$ac_ext
28505   #
28506   if test "$curl_cv_send" = "yes"; then
28507     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
28508 $as_echo_n "checking types of args and return type for send... " >&6; }
28509 if ${curl_cv_func_send_args+:} false; then :
28510   $as_echo_n "(cached) " >&6
28511 else
28512
28513       curl_cv_func_send_args="unknown"
28514       for send_retv in 'int' 'ssize_t'; do
28515         for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
28516           for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
28517             for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
28518               for send_arg4 in 'int' 'unsigned int'; do
28519                 if test "$curl_cv_func_send_args" = "unknown"; then
28520                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28521 /* end confdefs.h.  */
28522
28523
28524 #undef inline
28525 #ifdef HAVE_WINDOWS_H
28526 #ifndef WIN32_LEAN_AND_MEAN
28527 #define WIN32_LEAN_AND_MEAN
28528 #endif
28529 #include <windows.h>
28530 #ifdef HAVE_WINSOCK2_H
28531 #include <winsock2.h>
28532 #else
28533 #ifdef HAVE_WINSOCK_H
28534 #include <winsock.h>
28535 #endif
28536 #endif
28537 #define SENDCALLCONV PASCAL
28538 #else
28539 #ifdef HAVE_SYS_TYPES_H
28540 #include <sys/types.h>
28541 #endif
28542 #ifdef HAVE_SYS_SOCKET_H
28543 #include <sys/socket.h>
28544 #endif
28545 #define SENDCALLCONV
28546 #endif
28547                       extern $send_retv SENDCALLCONV
28548                       send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
28549
28550 int main (void)
28551 {
28552
28553                       $send_arg1 s=0;
28554                       $send_arg3 len=0;
28555                       $send_arg4 flags=0;
28556                       $send_retv res = send(s, 0, len, flags);
28557
28558  ;
28559  return 0;
28560 }
28561
28562 _ACEOF
28563 if ac_fn_c_try_compile "$LINENO"; then :
28564
28565                     curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
28566
28567 fi
28568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28569                 fi
28570               done
28571             done
28572           done
28573         done
28574       done
28575
28576 fi
28577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
28578 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
28579     if test "$curl_cv_func_send_args" = "unknown"; then
28580       as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
28581     else
28582       send_prev_IFS=$IFS; IFS=','
28583       set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
28584       IFS=$send_prev_IFS
28585       shift
28586       #
28587       send_qual_type_arg2=$2
28588       #
28589
28590 cat >>confdefs.h <<_ACEOF
28591 #define SEND_TYPE_ARG1 $1
28592 _ACEOF
28593
28594
28595 cat >>confdefs.h <<_ACEOF
28596 #define SEND_TYPE_ARG3 $3
28597 _ACEOF
28598
28599
28600 cat >>confdefs.h <<_ACEOF
28601 #define SEND_TYPE_ARG4 $4
28602 _ACEOF
28603
28604
28605 cat >>confdefs.h <<_ACEOF
28606 #define SEND_TYPE_RETV $5
28607 _ACEOF
28608
28609       #
28610       prev_sh_opts=$-
28611       #
28612       case $prev_sh_opts in
28613         *f*)
28614           ;;
28615         *)
28616           set -f
28617           ;;
28618       esac
28619       #
28620       case "$send_qual_type_arg2" in
28621         const*)
28622           send_qual_arg2=const
28623           send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
28624         ;;
28625         *)
28626           send_qual_arg2=
28627           send_type_arg2=$send_qual_type_arg2
28628         ;;
28629       esac
28630       #
28631
28632 cat >>confdefs.h <<_ACEOF
28633 #define SEND_QUAL_ARG2 $send_qual_arg2
28634 _ACEOF
28635
28636
28637 cat >>confdefs.h <<_ACEOF
28638 #define SEND_TYPE_ARG2 $send_type_arg2
28639 _ACEOF
28640
28641       #
28642       case $prev_sh_opts in
28643         *f*)
28644           ;;
28645         *)
28646           set +f
28647           ;;
28648       esac
28649       #
28650
28651 cat >>confdefs.h <<_ACEOF
28652 #define HAVE_SEND 1
28653 _ACEOF
28654
28655       ac_cv_func_send="yes"
28656     fi
28657   else
28658     as_fn_error $? "Unable to link function send" "$LINENO" 5
28659   fi
28660
28661
28662   for ac_header in sys/types.h sys/socket.h
28663 do :
28664   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28665 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28666 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28667   cat >>confdefs.h <<_ACEOF
28668 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28669 _ACEOF
28670
28671 fi
28672
28673 done
28674
28675   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
28676 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
28677 if ${ac_cv_msg_nosignal+:} false; then :
28678   $as_echo_n "(cached) " >&6
28679 else
28680
28681     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28682 /* end confdefs.h.  */
28683
28684
28685 #undef inline
28686 #ifdef HAVE_WINDOWS_H
28687 #ifndef WIN32_LEAN_AND_MEAN
28688 #define WIN32_LEAN_AND_MEAN
28689 #endif
28690 #include <windows.h>
28691 #ifdef HAVE_WINSOCK2_H
28692 #include <winsock2.h>
28693 #else
28694 #ifdef HAVE_WINSOCK_H
28695 #include <winsock.h>
28696 #endif
28697 #endif
28698 #else
28699 #ifdef HAVE_SYS_TYPES_H
28700 #include <sys/types.h>
28701 #endif
28702 #ifdef HAVE_SYS_SOCKET_H
28703 #include <sys/socket.h>
28704 #endif
28705 #endif
28706
28707 int main (void)
28708 {
28709
28710         int flag=MSG_NOSIGNAL;
28711
28712  ;
28713  return 0;
28714 }
28715
28716 _ACEOF
28717 if ac_fn_c_try_compile "$LINENO"; then :
28718
28719       ac_cv_msg_nosignal="yes"
28720
28721 else
28722
28723       ac_cv_msg_nosignal="no"
28724
28725 fi
28726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28727
28728 fi
28729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5
28730 $as_echo "$ac_cv_msg_nosignal" >&6; }
28731   case "$ac_cv_msg_nosignal" in
28732     yes)
28733
28734 cat >>confdefs.h <<_ACEOF
28735 #define HAVE_MSG_NOSIGNAL 1
28736 _ACEOF
28737
28738       ;;
28739   esac
28740
28741
28742
28743 curl_includes_unistd="\
28744 /* includes start */
28745 #ifdef HAVE_SYS_TYPES_H
28746 #  include <sys/types.h>
28747 #endif
28748 #ifdef HAVE_UNISTD_H
28749 #  include <unistd.h>
28750 #endif
28751 /* includes end */"
28752   for ac_header in sys/types.h unistd.h
28753 do :
28754   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28755 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
28756 "
28757 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28758   cat >>confdefs.h <<_ACEOF
28759 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28760 _ACEOF
28761
28762 fi
28763
28764 done
28765
28766
28767
28768     #
28769   tst_links_alarm="unknown"
28770   tst_proto_alarm="unknown"
28771   tst_compi_alarm="unknown"
28772   tst_allow_alarm="unknown"
28773   #
28774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
28775 $as_echo_n "checking if alarm can be linked... " >&6; }
28776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28777 /* end confdefs.h.  */
28778
28779
28780 #define alarm innocuous_alarm
28781 #ifdef __STDC__
28782 # include <limits.h>
28783 #else
28784 # include <assert.h>
28785 #endif
28786 #undef alarm
28787 #ifdef __cplusplus
28788 extern "C"
28789 #endif
28790 char alarm ();
28791 #if defined __stub_alarm || defined __stub___alarm
28792 choke me
28793 #endif
28794
28795 int main (void)
28796 {
28797 return alarm ();
28798  ;
28799  return 0;
28800 }
28801
28802 _ACEOF
28803 if ac_fn_c_try_link "$LINENO"; then :
28804
28805     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28806 $as_echo "yes" >&6; }
28807     tst_links_alarm="yes"
28808
28809 else
28810
28811     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28812 $as_echo "no" >&6; }
28813     tst_links_alarm="no"
28814
28815 fi
28816 rm -f core conftest.err conftest.$ac_objext \
28817     conftest$ac_exeext conftest.$ac_ext
28818   #
28819   if test "$tst_links_alarm" = "yes"; then
28820     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
28821 $as_echo_n "checking if alarm is prototyped... " >&6; }
28822     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28823 /* end confdefs.h.  */
28824
28825       $curl_includes_unistd
28826
28827 _ACEOF
28828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28829   $EGREP "alarm" >/dev/null 2>&1; then :
28830
28831       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28832 $as_echo "yes" >&6; }
28833       tst_proto_alarm="yes"
28834
28835 else
28836
28837       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28838 $as_echo "no" >&6; }
28839       tst_proto_alarm="no"
28840
28841 fi
28842 rm -f conftest*
28843
28844   fi
28845   #
28846   if test "$tst_proto_alarm" = "yes"; then
28847     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
28848 $as_echo_n "checking if alarm is compilable... " >&6; }
28849     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28850 /* end confdefs.h.  */
28851
28852
28853         $curl_includes_unistd
28854
28855 int main (void)
28856 {
28857
28858         if(0 != alarm(0))
28859           return 1;
28860
28861  ;
28862  return 0;
28863 }
28864
28865 _ACEOF
28866 if ac_fn_c_try_compile "$LINENO"; then :
28867
28868       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28869 $as_echo "yes" >&6; }
28870       tst_compi_alarm="yes"
28871
28872 else
28873
28874       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28875 $as_echo "no" >&6; }
28876       tst_compi_alarm="no"
28877
28878 fi
28879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28880   fi
28881   #
28882   if test "$tst_compi_alarm" = "yes"; then
28883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
28884 $as_echo_n "checking if alarm usage allowed... " >&6; }
28885     if test "x$curl_disallow_alarm" != "xyes"; then
28886       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28887 $as_echo "yes" >&6; }
28888       tst_allow_alarm="yes"
28889     else
28890       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28891 $as_echo "no" >&6; }
28892       tst_allow_alarm="no"
28893     fi
28894   fi
28895   #
28896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
28897 $as_echo_n "checking if alarm might be used... " >&6; }
28898   if test "$tst_links_alarm" = "yes" &&
28899      test "$tst_proto_alarm" = "yes" &&
28900      test "$tst_compi_alarm" = "yes" &&
28901      test "$tst_allow_alarm" = "yes"; then
28902     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28903 $as_echo "yes" >&6; }
28904
28905 cat >>confdefs.h <<_ACEOF
28906 #define HAVE_ALARM 1
28907 _ACEOF
28908
28909     ac_cv_func_alarm="yes"
28910   else
28911     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28912 $as_echo "no" >&6; }
28913     ac_cv_func_alarm="no"
28914   fi
28915
28916
28917 curl_includes_string="\
28918 /* includes start */
28919 #ifdef HAVE_SYS_TYPES_H
28920 #  include <sys/types.h>
28921 #endif
28922 #ifdef HAVE_STRING_H
28923 #  include <string.h>
28924 #endif
28925 #ifdef HAVE_STRINGS_H
28926 #  include <strings.h>
28927 #endif
28928 /* includes end */"
28929   for ac_header in sys/types.h string.h strings.h
28930 do :
28931   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28932 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
28933 "
28934 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28935   cat >>confdefs.h <<_ACEOF
28936 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28937 _ACEOF
28938
28939 fi
28940
28941 done
28942
28943
28944
28945 curl_includes_libgen="\
28946 /* includes start */
28947 #ifdef HAVE_SYS_TYPES_H
28948 #  include <sys/types.h>
28949 #endif
28950 #ifdef HAVE_LIBGEN_H
28951 #  include <libgen.h>
28952 #endif
28953 /* includes end */"
28954   for ac_header in sys/types.h libgen.h
28955 do :
28956   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28957 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
28958 "
28959 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28960   cat >>confdefs.h <<_ACEOF
28961 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28962 _ACEOF
28963
28964 fi
28965
28966 done
28967
28968
28969
28970         #
28971   tst_links_basename="unknown"
28972   tst_proto_basename="unknown"
28973   tst_compi_basename="unknown"
28974   tst_allow_basename="unknown"
28975   #
28976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
28977 $as_echo_n "checking if basename can be linked... " >&6; }
28978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28979 /* end confdefs.h.  */
28980
28981
28982 #define basename innocuous_basename
28983 #ifdef __STDC__
28984 # include <limits.h>
28985 #else
28986 # include <assert.h>
28987 #endif
28988 #undef basename
28989 #ifdef __cplusplus
28990 extern "C"
28991 #endif
28992 char basename ();
28993 #if defined __stub_basename || defined __stub___basename
28994 choke me
28995 #endif
28996
28997 int main (void)
28998 {
28999 return basename ();
29000  ;
29001  return 0;
29002 }
29003
29004 _ACEOF
29005 if ac_fn_c_try_link "$LINENO"; then :
29006
29007     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29008 $as_echo "yes" >&6; }
29009     tst_links_basename="yes"
29010
29011 else
29012
29013     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29014 $as_echo "no" >&6; }
29015     tst_links_basename="no"
29016
29017 fi
29018 rm -f core conftest.err conftest.$ac_objext \
29019     conftest$ac_exeext conftest.$ac_ext
29020   #
29021   if test "$tst_links_basename" = "yes"; then
29022     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
29023 $as_echo_n "checking if basename is prototyped... " >&6; }
29024     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29025 /* end confdefs.h.  */
29026
29027       $curl_includes_string
29028       $curl_includes_libgen
29029       $curl_includes_unistd
29030
29031 _ACEOF
29032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29033   $EGREP "basename" >/dev/null 2>&1; then :
29034
29035       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29036 $as_echo "yes" >&6; }
29037       tst_proto_basename="yes"
29038
29039 else
29040
29041       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29042 $as_echo "no" >&6; }
29043       tst_proto_basename="no"
29044
29045 fi
29046 rm -f conftest*
29047
29048   fi
29049   #
29050   if test "$tst_proto_basename" = "yes"; then
29051     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
29052 $as_echo_n "checking if basename is compilable... " >&6; }
29053     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29054 /* end confdefs.h.  */
29055
29056
29057         $curl_includes_string
29058         $curl_includes_libgen
29059         $curl_includes_unistd
29060
29061 int main (void)
29062 {
29063
29064         if(0 != basename(0))
29065           return 1;
29066
29067  ;
29068  return 0;
29069 }
29070
29071 _ACEOF
29072 if ac_fn_c_try_compile "$LINENO"; then :
29073
29074       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29075 $as_echo "yes" >&6; }
29076       tst_compi_basename="yes"
29077
29078 else
29079
29080       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29081 $as_echo "no" >&6; }
29082       tst_compi_basename="no"
29083
29084 fi
29085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29086   fi
29087   #
29088   if test "$tst_compi_basename" = "yes"; then
29089     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
29090 $as_echo_n "checking if basename usage allowed... " >&6; }
29091     if test "x$curl_disallow_basename" != "xyes"; then
29092       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29093 $as_echo "yes" >&6; }
29094       tst_allow_basename="yes"
29095     else
29096       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29097 $as_echo "no" >&6; }
29098       tst_allow_basename="no"
29099     fi
29100   fi
29101   #
29102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
29103 $as_echo_n "checking if basename might be used... " >&6; }
29104   if test "$tst_links_basename" = "yes" &&
29105      test "$tst_proto_basename" = "yes" &&
29106      test "$tst_compi_basename" = "yes" &&
29107      test "$tst_allow_basename" = "yes"; then
29108     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29109 $as_echo "yes" >&6; }
29110
29111 cat >>confdefs.h <<_ACEOF
29112 #define HAVE_BASENAME 1
29113 _ACEOF
29114
29115     ac_cv_func_basename="yes"
29116   else
29117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29118 $as_echo "no" >&6; }
29119     ac_cv_func_basename="no"
29120   fi
29121
29122
29123 curl_includes_socket="\
29124 /* includes start */
29125 #ifdef HAVE_SYS_TYPES_H
29126 #  include <sys/types.h>
29127 #endif
29128 #ifdef HAVE_SOCKET_H
29129 #  include <socket.h>
29130 #endif
29131 /* includes end */"
29132   for ac_header in sys/types.h socket.h
29133 do :
29134   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29135 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
29136 "
29137 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29138   cat >>confdefs.h <<_ACEOF
29139 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29140 _ACEOF
29141
29142 fi
29143
29144 done
29145
29146
29147
29148       #
29149   tst_links_closesocket="unknown"
29150   tst_proto_closesocket="unknown"
29151   tst_compi_closesocket="unknown"
29152   tst_allow_closesocket="unknown"
29153   #
29154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
29155 $as_echo_n "checking if closesocket can be linked... " >&6; }
29156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29157 /* end confdefs.h.  */
29158
29159
29160       $curl_includes_winsock2
29161       $curl_includes_socket
29162
29163 int main (void)
29164 {
29165
29166       if(0 != closesocket(0))
29167         return 1;
29168
29169  ;
29170  return 0;
29171 }
29172
29173 _ACEOF
29174 if ac_fn_c_try_link "$LINENO"; then :
29175
29176     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29177 $as_echo "yes" >&6; }
29178     tst_links_closesocket="yes"
29179
29180 else
29181
29182     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29183 $as_echo "no" >&6; }
29184     tst_links_closesocket="no"
29185
29186 fi
29187 rm -f core conftest.err conftest.$ac_objext \
29188     conftest$ac_exeext conftest.$ac_ext
29189   #
29190   if test "$tst_links_closesocket" = "yes"; then
29191     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
29192 $as_echo_n "checking if closesocket is prototyped... " >&6; }
29193     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29194 /* end confdefs.h.  */
29195
29196       $curl_includes_winsock2
29197       $curl_includes_socket
29198
29199 _ACEOF
29200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29201   $EGREP "closesocket" >/dev/null 2>&1; then :
29202
29203       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29204 $as_echo "yes" >&6; }
29205       tst_proto_closesocket="yes"
29206
29207 else
29208
29209       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29210 $as_echo "no" >&6; }
29211       tst_proto_closesocket="no"
29212
29213 fi
29214 rm -f conftest*
29215
29216   fi
29217   #
29218   if test "$tst_proto_closesocket" = "yes"; then
29219     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
29220 $as_echo_n "checking if closesocket is compilable... " >&6; }
29221     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29222 /* end confdefs.h.  */
29223
29224
29225         $curl_includes_winsock2
29226         $curl_includes_socket
29227
29228 int main (void)
29229 {
29230
29231         if(0 != closesocket(0))
29232           return 1;
29233
29234  ;
29235  return 0;
29236 }
29237
29238 _ACEOF
29239 if ac_fn_c_try_compile "$LINENO"; then :
29240
29241       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29242 $as_echo "yes" >&6; }
29243       tst_compi_closesocket="yes"
29244
29245 else
29246
29247       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29248 $as_echo "no" >&6; }
29249       tst_compi_closesocket="no"
29250
29251 fi
29252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29253   fi
29254   #
29255   if test "$tst_compi_closesocket" = "yes"; then
29256     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
29257 $as_echo_n "checking if closesocket usage allowed... " >&6; }
29258     if test "x$curl_disallow_closesocket" != "xyes"; then
29259       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29260 $as_echo "yes" >&6; }
29261       tst_allow_closesocket="yes"
29262     else
29263       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29264 $as_echo "no" >&6; }
29265       tst_allow_closesocket="no"
29266     fi
29267   fi
29268   #
29269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
29270 $as_echo_n "checking if closesocket might be used... " >&6; }
29271   if test "$tst_links_closesocket" = "yes" &&
29272      test "$tst_proto_closesocket" = "yes" &&
29273      test "$tst_compi_closesocket" = "yes" &&
29274      test "$tst_allow_closesocket" = "yes"; then
29275     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29276 $as_echo "yes" >&6; }
29277
29278 cat >>confdefs.h <<_ACEOF
29279 #define HAVE_CLOSESOCKET 1
29280 _ACEOF
29281
29282     ac_cv_func_closesocket="yes"
29283   else
29284     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29285 $as_echo "no" >&6; }
29286     ac_cv_func_closesocket="no"
29287   fi
29288
29289
29290     #
29291   tst_links_closesocket_camel="unknown"
29292   tst_proto_closesocket_camel="unknown"
29293   tst_compi_closesocket_camel="unknown"
29294   tst_allow_closesocket_camel="unknown"
29295   #
29296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
29297 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
29298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29299 /* end confdefs.h.  */
29300
29301
29302       $curl_includes_sys_socket
29303
29304 int main (void)
29305 {
29306
29307       if(0 != CloseSocket(0))
29308         return 1;
29309
29310  ;
29311  return 0;
29312 }
29313
29314 _ACEOF
29315 if ac_fn_c_try_link "$LINENO"; then :
29316
29317     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29318 $as_echo "yes" >&6; }
29319     tst_links_closesocket_camel="yes"
29320
29321 else
29322
29323     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29324 $as_echo "no" >&6; }
29325     tst_links_closesocket_camel="no"
29326
29327 fi
29328 rm -f core conftest.err conftest.$ac_objext \
29329     conftest$ac_exeext conftest.$ac_ext
29330   #
29331   if test "$tst_links_closesocket_camel" = "yes"; then
29332     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
29333 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
29334     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29335 /* end confdefs.h.  */
29336
29337       $curl_includes_sys_socket
29338
29339 _ACEOF
29340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29341   $EGREP "CloseSocket" >/dev/null 2>&1; then :
29342
29343       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29344 $as_echo "yes" >&6; }
29345       tst_proto_closesocket_camel="yes"
29346
29347 else
29348
29349       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29350 $as_echo "no" >&6; }
29351       tst_proto_closesocket_camel="no"
29352
29353 fi
29354 rm -f conftest*
29355
29356   fi
29357   #
29358   if test "$tst_proto_closesocket_camel" = "yes"; then
29359     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
29360 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
29361     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29362 /* end confdefs.h.  */
29363
29364
29365         $curl_includes_sys_socket
29366
29367 int main (void)
29368 {
29369
29370         if(0 != CloseSocket(0))
29371           return 1;
29372
29373  ;
29374  return 0;
29375 }
29376
29377 _ACEOF
29378 if ac_fn_c_try_compile "$LINENO"; then :
29379
29380       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29381 $as_echo "yes" >&6; }
29382       tst_compi_closesocket_camel="yes"
29383
29384 else
29385
29386       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29387 $as_echo "no" >&6; }
29388       tst_compi_closesocket_camel="no"
29389
29390 fi
29391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29392   fi
29393   #
29394   if test "$tst_compi_closesocket_camel" = "yes"; then
29395     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
29396 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
29397     if test "x$curl_disallow_closesocket_camel" != "xyes"; then
29398       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29399 $as_echo "yes" >&6; }
29400       tst_allow_closesocket_camel="yes"
29401     else
29402       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29403 $as_echo "no" >&6; }
29404       tst_allow_closesocket_camel="no"
29405     fi
29406   fi
29407   #
29408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
29409 $as_echo_n "checking if CloseSocket might be used... " >&6; }
29410   if test "$tst_links_closesocket_camel" = "yes" &&
29411      test "$tst_proto_closesocket_camel" = "yes" &&
29412      test "$tst_compi_closesocket_camel" = "yes" &&
29413      test "$tst_allow_closesocket_camel" = "yes"; then
29414     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29415 $as_echo "yes" >&6; }
29416
29417 cat >>confdefs.h <<_ACEOF
29418 #define HAVE_CLOSESOCKET_CAMEL 1
29419 _ACEOF
29420
29421     ac_cv_func_closesocket_camel="yes"
29422   else
29423     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29424 $as_echo "no" >&6; }
29425     ac_cv_func_closesocket_camel="no"
29426   fi
29427
29428
29429         #
29430   tst_links_connect="unknown"
29431   tst_proto_connect="unknown"
29432   tst_compi_connect="unknown"
29433   tst_allow_connect="unknown"
29434   #
29435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
29436 $as_echo_n "checking if connect can be linked... " >&6; }
29437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29438 /* end confdefs.h.  */
29439
29440
29441       $curl_includes_winsock2
29442       $curl_includes_sys_socket
29443       $curl_includes_socket
29444
29445 int main (void)
29446 {
29447
29448       if(0 != connect(0, 0, 0))
29449         return 1;
29450
29451  ;
29452  return 0;
29453 }
29454
29455 _ACEOF
29456 if ac_fn_c_try_link "$LINENO"; then :
29457
29458     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29459 $as_echo "yes" >&6; }
29460     tst_links_connect="yes"
29461
29462 else
29463
29464     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29465 $as_echo "no" >&6; }
29466     tst_links_connect="no"
29467
29468 fi
29469 rm -f core conftest.err conftest.$ac_objext \
29470     conftest$ac_exeext conftest.$ac_ext
29471   #
29472   if test "$tst_links_connect" = "yes"; then
29473     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
29474 $as_echo_n "checking if connect is prototyped... " >&6; }
29475     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29476 /* end confdefs.h.  */
29477
29478       $curl_includes_winsock2
29479       $curl_includes_sys_socket
29480       $curl_includes_socket
29481
29482 _ACEOF
29483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29484   $EGREP "connect" >/dev/null 2>&1; then :
29485
29486       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29487 $as_echo "yes" >&6; }
29488       tst_proto_connect="yes"
29489
29490 else
29491
29492       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29493 $as_echo "no" >&6; }
29494       tst_proto_connect="no"
29495
29496 fi
29497 rm -f conftest*
29498
29499   fi
29500   #
29501   if test "$tst_proto_connect" = "yes"; then
29502     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
29503 $as_echo_n "checking if connect is compilable... " >&6; }
29504     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29505 /* end confdefs.h.  */
29506
29507
29508         $curl_includes_winsock2
29509         $curl_includes_sys_socket
29510         $curl_includes_socket
29511
29512 int main (void)
29513 {
29514
29515         if(0 != connect(0, 0, 0))
29516           return 1;
29517
29518  ;
29519  return 0;
29520 }
29521
29522 _ACEOF
29523 if ac_fn_c_try_compile "$LINENO"; then :
29524
29525       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29526 $as_echo "yes" >&6; }
29527       tst_compi_connect="yes"
29528
29529 else
29530
29531       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29532 $as_echo "no" >&6; }
29533       tst_compi_connect="no"
29534
29535 fi
29536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29537   fi
29538   #
29539   if test "$tst_compi_connect" = "yes"; then
29540     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
29541 $as_echo_n "checking if connect usage allowed... " >&6; }
29542     if test "x$curl_disallow_connect" != "xyes"; then
29543       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29544 $as_echo "yes" >&6; }
29545       tst_allow_connect="yes"
29546     else
29547       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29548 $as_echo "no" >&6; }
29549       tst_allow_connect="no"
29550     fi
29551   fi
29552   #
29553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
29554 $as_echo_n "checking if connect might be used... " >&6; }
29555   if test "$tst_links_connect" = "yes" &&
29556      test "$tst_proto_connect" = "yes" &&
29557      test "$tst_compi_connect" = "yes" &&
29558      test "$tst_allow_connect" = "yes"; then
29559     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29560 $as_echo "yes" >&6; }
29561
29562 cat >>confdefs.h <<_ACEOF
29563 #define HAVE_CONNECT 1
29564 _ACEOF
29565
29566     ac_cv_func_connect="yes"
29567   else
29568     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29569 $as_echo "no" >&6; }
29570     ac_cv_func_connect="no"
29571   fi
29572
29573
29574 curl_includes_fcntl="\
29575 /* includes start */
29576 #ifdef HAVE_SYS_TYPES_H
29577 #  include <sys/types.h>
29578 #endif
29579 #ifdef HAVE_UNISTD_H
29580 #  include <unistd.h>
29581 #endif
29582 #ifdef HAVE_FCNTL_H
29583 #  include <fcntl.h>
29584 #endif
29585 /* includes end */"
29586   for ac_header in sys/types.h unistd.h fcntl.h
29587 do :
29588   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29589 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
29590 "
29591 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29592   cat >>confdefs.h <<_ACEOF
29593 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29594 _ACEOF
29595
29596 fi
29597
29598 done
29599
29600
29601
29602     #
29603   tst_links_fcntl="unknown"
29604   tst_proto_fcntl="unknown"
29605   tst_compi_fcntl="unknown"
29606   tst_allow_fcntl="unknown"
29607   #
29608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
29609 $as_echo_n "checking if fcntl can be linked... " >&6; }
29610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29611 /* end confdefs.h.  */
29612
29613
29614 #define fcntl innocuous_fcntl
29615 #ifdef __STDC__
29616 # include <limits.h>
29617 #else
29618 # include <assert.h>
29619 #endif
29620 #undef fcntl
29621 #ifdef __cplusplus
29622 extern "C"
29623 #endif
29624 char fcntl ();
29625 #if defined __stub_fcntl || defined __stub___fcntl
29626 choke me
29627 #endif
29628
29629 int main (void)
29630 {
29631 return fcntl ();
29632  ;
29633  return 0;
29634 }
29635
29636 _ACEOF
29637 if ac_fn_c_try_link "$LINENO"; then :
29638
29639     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29640 $as_echo "yes" >&6; }
29641     tst_links_fcntl="yes"
29642
29643 else
29644
29645     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29646 $as_echo "no" >&6; }
29647     tst_links_fcntl="no"
29648
29649 fi
29650 rm -f core conftest.err conftest.$ac_objext \
29651     conftest$ac_exeext conftest.$ac_ext
29652   #
29653   if test "$tst_links_fcntl" = "yes"; then
29654     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
29655 $as_echo_n "checking if fcntl is prototyped... " >&6; }
29656     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29657 /* end confdefs.h.  */
29658
29659       $curl_includes_fcntl
29660
29661 _ACEOF
29662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29663   $EGREP "fcntl" >/dev/null 2>&1; then :
29664
29665       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29666 $as_echo "yes" >&6; }
29667       tst_proto_fcntl="yes"
29668
29669 else
29670
29671       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29672 $as_echo "no" >&6; }
29673       tst_proto_fcntl="no"
29674
29675 fi
29676 rm -f conftest*
29677
29678   fi
29679   #
29680   if test "$tst_proto_fcntl" = "yes"; then
29681     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
29682 $as_echo_n "checking if fcntl is compilable... " >&6; }
29683     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29684 /* end confdefs.h.  */
29685
29686
29687         $curl_includes_fcntl
29688
29689 int main (void)
29690 {
29691
29692         if(0 != fcntl(0, 0, 0))
29693           return 1;
29694
29695  ;
29696  return 0;
29697 }
29698
29699 _ACEOF
29700 if ac_fn_c_try_compile "$LINENO"; then :
29701
29702       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29703 $as_echo "yes" >&6; }
29704       tst_compi_fcntl="yes"
29705
29706 else
29707
29708       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29709 $as_echo "no" >&6; }
29710       tst_compi_fcntl="no"
29711
29712 fi
29713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29714   fi
29715   #
29716   if test "$tst_compi_fcntl" = "yes"; then
29717     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
29718 $as_echo_n "checking if fcntl usage allowed... " >&6; }
29719     if test "x$curl_disallow_fcntl" != "xyes"; then
29720       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29721 $as_echo "yes" >&6; }
29722       tst_allow_fcntl="yes"
29723     else
29724       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29725 $as_echo "no" >&6; }
29726       tst_allow_fcntl="no"
29727     fi
29728   fi
29729   #
29730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
29731 $as_echo_n "checking if fcntl might be used... " >&6; }
29732   if test "$tst_links_fcntl" = "yes" &&
29733      test "$tst_proto_fcntl" = "yes" &&
29734      test "$tst_compi_fcntl" = "yes" &&
29735      test "$tst_allow_fcntl" = "yes"; then
29736     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29737 $as_echo "yes" >&6; }
29738
29739 cat >>confdefs.h <<_ACEOF
29740 #define HAVE_FCNTL 1
29741 _ACEOF
29742
29743     ac_cv_func_fcntl="yes"
29744
29745   #
29746   tst_compi_fcntl_o_nonblock="unknown"
29747   tst_allow_fcntl_o_nonblock="unknown"
29748   #
29749   case $host_os in
29750     sunos4* | aix3* | beos*)
29751             curl_disallow_fcntl_o_nonblock="yes"
29752       ;;
29753   esac
29754   #
29755   if test "$ac_cv_func_fcntl" = "yes"; then
29756     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
29757 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
29758     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29759 /* end confdefs.h.  */
29760
29761
29762         $curl_includes_fcntl
29763
29764 int main (void)
29765 {
29766
29767         int flags = 0;
29768         if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
29769           return 1;
29770
29771  ;
29772  return 0;
29773 }
29774
29775 _ACEOF
29776 if ac_fn_c_try_compile "$LINENO"; then :
29777
29778       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29779 $as_echo "yes" >&6; }
29780       tst_compi_fcntl_o_nonblock="yes"
29781
29782 else
29783
29784       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29785 $as_echo "no" >&6; }
29786       tst_compi_fcntl_o_nonblock="no"
29787
29788 fi
29789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29790   fi
29791   #
29792   if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
29793     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
29794 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
29795     if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
29796       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29797 $as_echo "yes" >&6; }
29798       tst_allow_fcntl_o_nonblock="yes"
29799     else
29800       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29801 $as_echo "no" >&6; }
29802       tst_allow_fcntl_o_nonblock="no"
29803     fi
29804   fi
29805   #
29806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
29807 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
29808   if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
29809      test "$tst_allow_fcntl_o_nonblock" = "yes"; then
29810     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29811 $as_echo "yes" >&6; }
29812
29813 cat >>confdefs.h <<_ACEOF
29814 #define HAVE_FCNTL_O_NONBLOCK 1
29815 _ACEOF
29816
29817     ac_cv_func_fcntl_o_nonblock="yes"
29818   else
29819     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29820 $as_echo "no" >&6; }
29821     ac_cv_func_fcntl_o_nonblock="no"
29822   fi
29823
29824   else
29825     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29826 $as_echo "no" >&6; }
29827     ac_cv_func_fcntl="no"
29828   fi
29829
29830
29831 curl_includes_stdio="\
29832 /* includes start */
29833 #ifdef HAVE_SYS_TYPES_H
29834 #  include <sys/types.h>
29835 #endif
29836 #ifdef HAVE_STDIO_H
29837 #  include <stdio.h>
29838 #endif
29839 /* includes end */"
29840   for ac_header in sys/types.h stdio.h
29841 do :
29842   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29843 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
29844 "
29845 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29846   cat >>confdefs.h <<_ACEOF
29847 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29848 _ACEOF
29849
29850 fi
29851
29852 done
29853
29854
29855
29856     #
29857   tst_links_fdopen="unknown"
29858   tst_proto_fdopen="unknown"
29859   tst_compi_fdopen="unknown"
29860   tst_allow_fdopen="unknown"
29861   #
29862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
29863 $as_echo_n "checking if fdopen can be linked... " >&6; }
29864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29865 /* end confdefs.h.  */
29866
29867
29868 #define fdopen innocuous_fdopen
29869 #ifdef __STDC__
29870 # include <limits.h>
29871 #else
29872 # include <assert.h>
29873 #endif
29874 #undef fdopen
29875 #ifdef __cplusplus
29876 extern "C"
29877 #endif
29878 char fdopen ();
29879 #if defined __stub_fdopen || defined __stub___fdopen
29880 choke me
29881 #endif
29882
29883 int main (void)
29884 {
29885 return fdopen ();
29886  ;
29887  return 0;
29888 }
29889
29890 _ACEOF
29891 if ac_fn_c_try_link "$LINENO"; then :
29892
29893     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29894 $as_echo "yes" >&6; }
29895     tst_links_fdopen="yes"
29896
29897 else
29898
29899     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29900 $as_echo "no" >&6; }
29901     tst_links_fdopen="no"
29902
29903 fi
29904 rm -f core conftest.err conftest.$ac_objext \
29905     conftest$ac_exeext conftest.$ac_ext
29906   #
29907   if test "$tst_links_fdopen" = "yes"; then
29908     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
29909 $as_echo_n "checking if fdopen is prototyped... " >&6; }
29910     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29911 /* end confdefs.h.  */
29912
29913       $curl_includes_stdio
29914
29915 _ACEOF
29916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29917   $EGREP "fdopen" >/dev/null 2>&1; then :
29918
29919       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29920 $as_echo "yes" >&6; }
29921       tst_proto_fdopen="yes"
29922
29923 else
29924
29925       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29926 $as_echo "no" >&6; }
29927       tst_proto_fdopen="no"
29928
29929 fi
29930 rm -f conftest*
29931
29932   fi
29933   #
29934   if test "$tst_proto_fdopen" = "yes"; then
29935     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
29936 $as_echo_n "checking if fdopen is compilable... " >&6; }
29937     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29938 /* end confdefs.h.  */
29939
29940
29941         $curl_includes_stdio
29942
29943 int main (void)
29944 {
29945
29946         if(0 != fdopen(0, 0))
29947           return 1;
29948
29949  ;
29950  return 0;
29951 }
29952
29953 _ACEOF
29954 if ac_fn_c_try_compile "$LINENO"; then :
29955
29956       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29957 $as_echo "yes" >&6; }
29958       tst_compi_fdopen="yes"
29959
29960 else
29961
29962       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29963 $as_echo "no" >&6; }
29964       tst_compi_fdopen="no"
29965
29966 fi
29967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29968   fi
29969   #
29970   if test "$tst_compi_fdopen" = "yes"; then
29971     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
29972 $as_echo_n "checking if fdopen usage allowed... " >&6; }
29973     if test "x$curl_disallow_fdopen" != "xyes"; then
29974       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29975 $as_echo "yes" >&6; }
29976       tst_allow_fdopen="yes"
29977     else
29978       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29979 $as_echo "no" >&6; }
29980       tst_allow_fdopen="no"
29981     fi
29982   fi
29983   #
29984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
29985 $as_echo_n "checking if fdopen might be used... " >&6; }
29986   if test "$tst_links_fdopen" = "yes" &&
29987      test "$tst_proto_fdopen" = "yes" &&
29988      test "$tst_compi_fdopen" = "yes" &&
29989      test "$tst_allow_fdopen" = "yes"; then
29990     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29991 $as_echo "yes" >&6; }
29992
29993 cat >>confdefs.h <<_ACEOF
29994 #define HAVE_FDOPEN 1
29995 _ACEOF
29996
29997     ac_cv_func_fdopen="yes"
29998   else
29999     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30000 $as_echo "no" >&6; }
30001     ac_cv_func_fdopen="no"
30002   fi
30003
30004
30005 curl_includes_netdb="\
30006 /* includes start */
30007 #ifdef HAVE_SYS_TYPES_H
30008 #  include <sys/types.h>
30009 #endif
30010 #ifdef HAVE_NETDB_H
30011 #  include <netdb.h>
30012 #endif
30013 /* includes end */"
30014   for ac_header in sys/types.h netdb.h
30015 do :
30016   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30017 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
30018 "
30019 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30020   cat >>confdefs.h <<_ACEOF
30021 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30022 _ACEOF
30023
30024 fi
30025
30026 done
30027
30028
30029
30030         #
30031   tst_links_freeaddrinfo="unknown"
30032   tst_proto_freeaddrinfo="unknown"
30033   tst_compi_freeaddrinfo="unknown"
30034   tst_allow_freeaddrinfo="unknown"
30035   #
30036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
30037 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
30038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30039 /* end confdefs.h.  */
30040
30041
30042       $curl_includes_ws2tcpip
30043       $curl_includes_sys_socket
30044       $curl_includes_netdb
30045
30046 int main (void)
30047 {
30048
30049       freeaddrinfo(0);
30050
30051  ;
30052  return 0;
30053 }
30054
30055 _ACEOF
30056 if ac_fn_c_try_link "$LINENO"; then :
30057
30058     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30059 $as_echo "yes" >&6; }
30060     tst_links_freeaddrinfo="yes"
30061
30062 else
30063
30064     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30065 $as_echo "no" >&6; }
30066     tst_links_freeaddrinfo="no"
30067
30068 fi
30069 rm -f core conftest.err conftest.$ac_objext \
30070     conftest$ac_exeext conftest.$ac_ext
30071   #
30072   if test "$tst_links_freeaddrinfo" = "yes"; then
30073     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
30074 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
30075     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30076 /* end confdefs.h.  */
30077
30078       $curl_includes_ws2tcpip
30079       $curl_includes_sys_socket
30080       $curl_includes_netdb
30081
30082 _ACEOF
30083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30084   $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
30085
30086       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30087 $as_echo "yes" >&6; }
30088       tst_proto_freeaddrinfo="yes"
30089
30090 else
30091
30092       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30093 $as_echo "no" >&6; }
30094       tst_proto_freeaddrinfo="no"
30095
30096 fi
30097 rm -f conftest*
30098
30099   fi
30100   #
30101   if test "$tst_proto_freeaddrinfo" = "yes"; then
30102     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
30103 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
30104     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30105 /* end confdefs.h.  */
30106
30107
30108         $curl_includes_ws2tcpip
30109         $curl_includes_sys_socket
30110         $curl_includes_netdb
30111
30112 int main (void)
30113 {
30114
30115         freeaddrinfo(0);
30116
30117  ;
30118  return 0;
30119 }
30120
30121 _ACEOF
30122 if ac_fn_c_try_compile "$LINENO"; then :
30123
30124       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30125 $as_echo "yes" >&6; }
30126       tst_compi_freeaddrinfo="yes"
30127
30128 else
30129
30130       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30131 $as_echo "no" >&6; }
30132       tst_compi_freeaddrinfo="no"
30133
30134 fi
30135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30136   fi
30137   #
30138   if test "$tst_compi_freeaddrinfo" = "yes"; then
30139     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
30140 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
30141     if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
30142       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30143 $as_echo "yes" >&6; }
30144       tst_allow_freeaddrinfo="yes"
30145     else
30146       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30147 $as_echo "no" >&6; }
30148       tst_allow_freeaddrinfo="no"
30149     fi
30150   fi
30151   #
30152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
30153 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
30154   if test "$tst_links_freeaddrinfo" = "yes" &&
30155      test "$tst_proto_freeaddrinfo" = "yes" &&
30156      test "$tst_compi_freeaddrinfo" = "yes" &&
30157      test "$tst_allow_freeaddrinfo" = "yes"; then
30158     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30159 $as_echo "yes" >&6; }
30160
30161 cat >>confdefs.h <<_ACEOF
30162 #define HAVE_FREEADDRINFO 1
30163 _ACEOF
30164
30165     ac_cv_func_freeaddrinfo="yes"
30166   else
30167     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30168 $as_echo "no" >&6; }
30169     ac_cv_func_freeaddrinfo="no"
30170   fi
30171
30172
30173 curl_includes_ifaddrs="\
30174 /* includes start */
30175 #ifdef HAVE_SYS_TYPES_H
30176 #  include <sys/types.h>
30177 #endif
30178 #ifdef HAVE_SYS_SOCKET_H
30179 #  include <sys/socket.h>
30180 #endif
30181 #ifdef HAVE_NETINET_IN_H
30182 #  include <netinet/in.h>
30183 #endif
30184 #ifdef HAVE_IFADDRS_H
30185 #  include <ifaddrs.h>
30186 #endif
30187 /* includes end */"
30188   for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
30189 do :
30190   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30191 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
30192 "
30193 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30194   cat >>confdefs.h <<_ACEOF
30195 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30196 _ACEOF
30197
30198 fi
30199
30200 done
30201
30202
30203
30204     #
30205   tst_links_freeifaddrs="unknown"
30206   tst_proto_freeifaddrs="unknown"
30207   tst_compi_freeifaddrs="unknown"
30208   tst_allow_freeifaddrs="unknown"
30209   #
30210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
30211 $as_echo_n "checking if freeifaddrs can be linked... " >&6; }
30212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30213 /* end confdefs.h.  */
30214
30215
30216 #define freeifaddrs innocuous_freeifaddrs
30217 #ifdef __STDC__
30218 # include <limits.h>
30219 #else
30220 # include <assert.h>
30221 #endif
30222 #undef freeifaddrs
30223 #ifdef __cplusplus
30224 extern "C"
30225 #endif
30226 char freeifaddrs ();
30227 #if defined __stub_freeifaddrs || defined __stub___freeifaddrs
30228 choke me
30229 #endif
30230
30231 int main (void)
30232 {
30233 return freeifaddrs ();
30234  ;
30235  return 0;
30236 }
30237
30238 _ACEOF
30239 if ac_fn_c_try_link "$LINENO"; then :
30240
30241     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30242 $as_echo "yes" >&6; }
30243     tst_links_freeifaddrs="yes"
30244
30245 else
30246
30247     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30248 $as_echo "no" >&6; }
30249     tst_links_freeifaddrs="no"
30250
30251 fi
30252 rm -f core conftest.err conftest.$ac_objext \
30253     conftest$ac_exeext conftest.$ac_ext
30254   #
30255   if test "$tst_links_freeifaddrs" = "yes"; then
30256     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
30257 $as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
30258     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30259 /* end confdefs.h.  */
30260
30261       $curl_includes_ifaddrs
30262
30263 _ACEOF
30264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30265   $EGREP "freeifaddrs" >/dev/null 2>&1; then :
30266
30267       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30268 $as_echo "yes" >&6; }
30269       tst_proto_freeifaddrs="yes"
30270
30271 else
30272
30273       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30274 $as_echo "no" >&6; }
30275       tst_proto_freeifaddrs="no"
30276
30277 fi
30278 rm -f conftest*
30279
30280   fi
30281   #
30282   if test "$tst_proto_freeifaddrs" = "yes"; then
30283     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
30284 $as_echo_n "checking if freeifaddrs is compilable... " >&6; }
30285     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30286 /* end confdefs.h.  */
30287
30288
30289         $curl_includes_ifaddrs
30290
30291 int main (void)
30292 {
30293
30294         freeifaddrs(0);
30295
30296  ;
30297  return 0;
30298 }
30299
30300 _ACEOF
30301 if ac_fn_c_try_compile "$LINENO"; then :
30302
30303       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30304 $as_echo "yes" >&6; }
30305       tst_compi_freeifaddrs="yes"
30306
30307 else
30308
30309       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30310 $as_echo "no" >&6; }
30311       tst_compi_freeifaddrs="no"
30312
30313 fi
30314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30315   fi
30316   #
30317   if test "$tst_compi_freeifaddrs" = "yes"; then
30318     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
30319 $as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
30320     if test "x$curl_disallow_freeifaddrs" != "xyes"; then
30321       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30322 $as_echo "yes" >&6; }
30323       tst_allow_freeifaddrs="yes"
30324     else
30325       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30326 $as_echo "no" >&6; }
30327       tst_allow_freeifaddrs="no"
30328     fi
30329   fi
30330   #
30331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
30332 $as_echo_n "checking if freeifaddrs might be used... " >&6; }
30333   if test "$tst_links_freeifaddrs" = "yes" &&
30334      test "$tst_proto_freeifaddrs" = "yes" &&
30335      test "$tst_compi_freeifaddrs" = "yes" &&
30336      test "$tst_allow_freeifaddrs" = "yes"; then
30337     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30338 $as_echo "yes" >&6; }
30339
30340 cat >>confdefs.h <<_ACEOF
30341 #define HAVE_FREEIFADDRS 1
30342 _ACEOF
30343
30344     ac_cv_func_freeifaddrs="yes"
30345   else
30346     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30347 $as_echo "no" >&6; }
30348     ac_cv_func_freeifaddrs="no"
30349   fi
30350
30351
30352 curl_includes_sys_xattr="\
30353 /* includes start */
30354 #ifdef HAVE_SYS_TYPES_H
30355 #  include <sys/types.h>
30356 #endif
30357 #ifdef HAVE_SYS_XATTR_H
30358 #  include <sys/xattr.h>
30359 #endif
30360 /* includes end */"
30361   for ac_header in sys/types.h sys/xattr.h
30362 do :
30363   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30364 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
30365 "
30366 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30367   cat >>confdefs.h <<_ACEOF
30368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30369 _ACEOF
30370
30371 fi
30372
30373 done
30374
30375
30376
30377     #
30378   tst_links_fsetxattr="unknown"
30379   tst_proto_fsetxattr="unknown"
30380   tst_compi_fsetxattr="unknown"
30381   tst_allow_fsetxattr="unknown"
30382   tst_nargs_fsetxattr="unknown"
30383   #
30384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
30385 $as_echo_n "checking if fsetxattr can be linked... " >&6; }
30386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30387 /* end confdefs.h.  */
30388
30389
30390 #define fsetxattr innocuous_fsetxattr
30391 #ifdef __STDC__
30392 # include <limits.h>
30393 #else
30394 # include <assert.h>
30395 #endif
30396 #undef fsetxattr
30397 #ifdef __cplusplus
30398 extern "C"
30399 #endif
30400 char fsetxattr ();
30401 #if defined __stub_fsetxattr || defined __stub___fsetxattr
30402 choke me
30403 #endif
30404
30405 int main (void)
30406 {
30407 return fsetxattr ();
30408  ;
30409  return 0;
30410 }
30411
30412 _ACEOF
30413 if ac_fn_c_try_link "$LINENO"; then :
30414
30415     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30416 $as_echo "yes" >&6; }
30417     tst_links_fsetxattr="yes"
30418
30419 else
30420
30421     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30422 $as_echo "no" >&6; }
30423     tst_links_fsetxattr="no"
30424
30425 fi
30426 rm -f core conftest.err conftest.$ac_objext \
30427     conftest$ac_exeext conftest.$ac_ext
30428   #
30429   if test "$tst_links_fsetxattr" = "yes"; then
30430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
30431 $as_echo_n "checking if fsetxattr is prototyped... " >&6; }
30432     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30433 /* end confdefs.h.  */
30434
30435       $curl_includes_sys_xattr
30436
30437 _ACEOF
30438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30439   $EGREP "fsetxattr" >/dev/null 2>&1; then :
30440
30441       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30442 $as_echo "yes" >&6; }
30443       tst_proto_fsetxattr="yes"
30444
30445 else
30446
30447       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30448 $as_echo "no" >&6; }
30449       tst_proto_fsetxattr="no"
30450
30451 fi
30452 rm -f conftest*
30453
30454   fi
30455   #
30456   if test "$tst_proto_fsetxattr" = "yes"; then
30457     if test "$tst_nargs_fsetxattr" = "unknown"; then
30458       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
30459 $as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
30460       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30461 /* end confdefs.h.  */
30462
30463
30464           $curl_includes_sys_xattr
30465
30466 int main (void)
30467 {
30468
30469           if(0 != fsetxattr(0, 0, 0, 0, 0))
30470             return 1;
30471
30472  ;
30473  return 0;
30474 }
30475
30476 _ACEOF
30477 if ac_fn_c_try_compile "$LINENO"; then :
30478
30479         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30480 $as_echo "yes" >&6; }
30481         tst_compi_fsetxattr="yes"
30482         tst_nargs_fsetxattr="5"
30483
30484 else
30485
30486         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30487 $as_echo "no" >&6; }
30488         tst_compi_fsetxattr="no"
30489
30490 fi
30491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30492     fi
30493     if test "$tst_nargs_fsetxattr" = "unknown"; then
30494       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
30495 $as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
30496       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30497 /* end confdefs.h.  */
30498
30499
30500           $curl_includes_sys_xattr
30501
30502 int main (void)
30503 {
30504
30505           if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
30506             return 1;
30507
30508  ;
30509  return 0;
30510 }
30511
30512 _ACEOF
30513 if ac_fn_c_try_compile "$LINENO"; then :
30514
30515         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30516 $as_echo "yes" >&6; }
30517         tst_compi_fsetxattr="yes"
30518         tst_nargs_fsetxattr="6"
30519
30520 else
30521
30522         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30523 $as_echo "no" >&6; }
30524         tst_compi_fsetxattr="no"
30525
30526 fi
30527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30528     fi
30529     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
30530 $as_echo_n "checking if fsetxattr is compilable... " >&6; }
30531     if test "$tst_compi_fsetxattr" = "yes"; then
30532       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30533 $as_echo "yes" >&6; }
30534     else
30535       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30536 $as_echo "no" >&6; }
30537     fi
30538   fi
30539   #
30540   if test "$tst_compi_fsetxattr" = "yes"; then
30541     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
30542 $as_echo_n "checking if fsetxattr usage allowed... " >&6; }
30543     if test "x$curl_disallow_fsetxattr" != "xyes"; then
30544       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30545 $as_echo "yes" >&6; }
30546       tst_allow_fsetxattr="yes"
30547     else
30548       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30549 $as_echo "no" >&6; }
30550       tst_allow_fsetxattr="no"
30551     fi
30552   fi
30553   #
30554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
30555 $as_echo_n "checking if fsetxattr might be used... " >&6; }
30556   if test "$tst_links_fsetxattr" = "yes" &&
30557      test "$tst_proto_fsetxattr" = "yes" &&
30558      test "$tst_compi_fsetxattr" = "yes" &&
30559      test "$tst_allow_fsetxattr" = "yes"; then
30560     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30561 $as_echo "yes" >&6; }
30562
30563 cat >>confdefs.h <<_ACEOF
30564 #define HAVE_FSETXATTR 1
30565 _ACEOF
30566
30567             #
30568     if test "$tst_nargs_fsetxattr" -eq "5"; then
30569
30570 $as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
30571
30572     elif test "$tst_nargs_fsetxattr" -eq "6"; then
30573
30574 $as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
30575
30576     fi
30577     #
30578     ac_cv_func_fsetxattr="yes"
30579   else
30580     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30581 $as_echo "no" >&6; }
30582     ac_cv_func_fsetxattr="no"
30583   fi
30584
30585
30586     #
30587   tst_links_ftruncate="unknown"
30588   tst_proto_ftruncate="unknown"
30589   tst_compi_ftruncate="unknown"
30590   tst_allow_ftruncate="unknown"
30591   #
30592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
30593 $as_echo_n "checking if ftruncate can be linked... " >&6; }
30594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30595 /* end confdefs.h.  */
30596
30597
30598 #define ftruncate innocuous_ftruncate
30599 #ifdef __STDC__
30600 # include <limits.h>
30601 #else
30602 # include <assert.h>
30603 #endif
30604 #undef ftruncate
30605 #ifdef __cplusplus
30606 extern "C"
30607 #endif
30608 char ftruncate ();
30609 #if defined __stub_ftruncate || defined __stub___ftruncate
30610 choke me
30611 #endif
30612
30613 int main (void)
30614 {
30615 return ftruncate ();
30616  ;
30617  return 0;
30618 }
30619
30620 _ACEOF
30621 if ac_fn_c_try_link "$LINENO"; then :
30622
30623     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30624 $as_echo "yes" >&6; }
30625     tst_links_ftruncate="yes"
30626
30627 else
30628
30629     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30630 $as_echo "no" >&6; }
30631     tst_links_ftruncate="no"
30632
30633 fi
30634 rm -f core conftest.err conftest.$ac_objext \
30635     conftest$ac_exeext conftest.$ac_ext
30636   #
30637   if test "$tst_links_ftruncate" = "yes"; then
30638     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
30639 $as_echo_n "checking if ftruncate is prototyped... " >&6; }
30640     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30641 /* end confdefs.h.  */
30642
30643       $curl_includes_unistd
30644
30645 _ACEOF
30646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30647   $EGREP "ftruncate" >/dev/null 2>&1; then :
30648
30649       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30650 $as_echo "yes" >&6; }
30651       tst_proto_ftruncate="yes"
30652
30653 else
30654
30655       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30656 $as_echo "no" >&6; }
30657       tst_proto_ftruncate="no"
30658
30659 fi
30660 rm -f conftest*
30661
30662   fi
30663   #
30664   if test "$tst_proto_ftruncate" = "yes"; then
30665     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
30666 $as_echo_n "checking if ftruncate is compilable... " >&6; }
30667     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30668 /* end confdefs.h.  */
30669
30670
30671         $curl_includes_unistd
30672
30673 int main (void)
30674 {
30675
30676         if(0 != ftruncate(0, 0))
30677           return 1;
30678
30679  ;
30680  return 0;
30681 }
30682
30683 _ACEOF
30684 if ac_fn_c_try_compile "$LINENO"; then :
30685
30686       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30687 $as_echo "yes" >&6; }
30688       tst_compi_ftruncate="yes"
30689
30690 else
30691
30692       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30693 $as_echo "no" >&6; }
30694       tst_compi_ftruncate="no"
30695
30696 fi
30697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30698   fi
30699   #
30700   if test "$tst_compi_ftruncate" = "yes"; then
30701     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
30702 $as_echo_n "checking if ftruncate usage allowed... " >&6; }
30703     if test "x$curl_disallow_ftruncate" != "xyes"; then
30704       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30705 $as_echo "yes" >&6; }
30706       tst_allow_ftruncate="yes"
30707     else
30708       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30709 $as_echo "no" >&6; }
30710       tst_allow_ftruncate="no"
30711     fi
30712   fi
30713   #
30714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
30715 $as_echo_n "checking if ftruncate might be used... " >&6; }
30716   if test "$tst_links_ftruncate" = "yes" &&
30717      test "$tst_proto_ftruncate" = "yes" &&
30718      test "$tst_compi_ftruncate" = "yes" &&
30719      test "$tst_allow_ftruncate" = "yes"; then
30720     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30721 $as_echo "yes" >&6; }
30722
30723 cat >>confdefs.h <<_ACEOF
30724 #define HAVE_FTRUNCATE 1
30725 _ACEOF
30726
30727     ac_cv_func_ftruncate="yes"
30728   else
30729     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30730 $as_echo "no" >&6; }
30731     ac_cv_func_ftruncate="no"
30732   fi
30733
30734
30735 curl_includes_stdlib="\
30736 /* includes start */
30737 #ifdef HAVE_SYS_TYPES_H
30738 #  include <sys/types.h>
30739 #endif
30740 #ifdef HAVE_STDLIB_H
30741 #  include <stdlib.h>
30742 #endif
30743 /* includes end */"
30744   for ac_header in sys/types.h stdlib.h
30745 do :
30746   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30747 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
30748 "
30749 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30750   cat >>confdefs.h <<_ACEOF
30751 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30752 _ACEOF
30753
30754 fi
30755
30756 done
30757
30758
30759
30760               #
30761   tst_links_getaddrinfo="unknown"
30762   tst_proto_getaddrinfo="unknown"
30763   tst_compi_getaddrinfo="unknown"
30764   tst_works_getaddrinfo="unknown"
30765   tst_allow_getaddrinfo="unknown"
30766   tst_tsafe_getaddrinfo="unknown"
30767   #
30768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
30769 $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
30770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30771 /* end confdefs.h.  */
30772
30773
30774       $curl_includes_ws2tcpip
30775       $curl_includes_sys_socket
30776       $curl_includes_netdb
30777
30778 int main (void)
30779 {
30780
30781       if(0 != getaddrinfo(0, 0, 0, 0))
30782         return 1;
30783
30784  ;
30785  return 0;
30786 }
30787
30788 _ACEOF
30789 if ac_fn_c_try_link "$LINENO"; then :
30790
30791     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30792 $as_echo "yes" >&6; }
30793     tst_links_getaddrinfo="yes"
30794
30795 else
30796
30797     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30798 $as_echo "no" >&6; }
30799     tst_links_getaddrinfo="no"
30800
30801 fi
30802 rm -f core conftest.err conftest.$ac_objext \
30803     conftest$ac_exeext conftest.$ac_ext
30804   #
30805   if test "$tst_links_getaddrinfo" = "yes"; then
30806     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
30807 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
30808     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30809 /* end confdefs.h.  */
30810
30811       $curl_includes_ws2tcpip
30812       $curl_includes_sys_socket
30813       $curl_includes_netdb
30814
30815 _ACEOF
30816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30817   $EGREP "getaddrinfo" >/dev/null 2>&1; then :
30818
30819       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30820 $as_echo "yes" >&6; }
30821       tst_proto_getaddrinfo="yes"
30822
30823 else
30824
30825       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30826 $as_echo "no" >&6; }
30827       tst_proto_getaddrinfo="no"
30828
30829 fi
30830 rm -f conftest*
30831
30832   fi
30833   #
30834   if test "$tst_proto_getaddrinfo" = "yes"; then
30835     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
30836 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
30837     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30838 /* end confdefs.h.  */
30839
30840
30841         $curl_includes_ws2tcpip
30842         $curl_includes_sys_socket
30843         $curl_includes_netdb
30844
30845 int main (void)
30846 {
30847
30848         if(0 != getaddrinfo(0, 0, 0, 0))
30849           return 1;
30850
30851  ;
30852  return 0;
30853 }
30854
30855 _ACEOF
30856 if ac_fn_c_try_compile "$LINENO"; then :
30857
30858       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30859 $as_echo "yes" >&6; }
30860       tst_compi_getaddrinfo="yes"
30861
30862 else
30863
30864       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30865 $as_echo "no" >&6; }
30866       tst_compi_getaddrinfo="no"
30867
30868 fi
30869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30870   fi
30871   #
30872     if test "x$cross_compiling" != "xyes" &&
30873     test "$tst_compi_getaddrinfo" = "yes"; then
30874     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
30875 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
30876     if test "$cross_compiling" = yes; then :
30877   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30879 as_fn_error $? "cannot run test program while cross compiling
30880 See \`config.log' for more details" "$LINENO" 5; }
30881 else
30882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30883 /* end confdefs.h.  */
30884
30885
30886         $curl_includes_ws2tcpip
30887         $curl_includes_stdlib
30888         $curl_includes_string
30889         $curl_includes_sys_socket
30890         $curl_includes_netdb
30891
30892 int main (void)
30893 {
30894
30895         struct addrinfo hints;
30896         struct addrinfo *ai = 0;
30897         int error;
30898
30899         memset(&hints, 0, sizeof(hints));
30900         hints.ai_flags = AI_NUMERICHOST;
30901         hints.ai_family = AF_UNSPEC;
30902         hints.ai_socktype = SOCK_STREAM;
30903         error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
30904         if(error || !ai)
30905           exit(1); /* fail */
30906         else
30907           exit(0);
30908
30909  ;
30910  return 0;
30911 }
30912
30913 _ACEOF
30914 if ac_fn_c_try_run "$LINENO"; then :
30915
30916       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30917 $as_echo "yes" >&6; }
30918       tst_works_getaddrinfo="yes"
30919
30920 else
30921
30922       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30923 $as_echo "no" >&6; }
30924       tst_works_getaddrinfo="no"
30925
30926 fi
30927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30928   conftest.$ac_objext conftest.beam conftest.$ac_ext
30929 fi
30930
30931   fi
30932   #
30933   if test "$tst_compi_getaddrinfo" = "yes" &&
30934     test "$tst_works_getaddrinfo" != "no"; then
30935     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
30936 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
30937     if test "x$curl_disallow_getaddrinfo" != "xyes"; then
30938       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30939 $as_echo "yes" >&6; }
30940       tst_allow_getaddrinfo="yes"
30941     else
30942       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30943 $as_echo "no" >&6; }
30944       tst_allow_getaddrinfo="no"
30945     fi
30946   fi
30947   #
30948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
30949 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
30950   if test "$tst_links_getaddrinfo" = "yes" &&
30951      test "$tst_proto_getaddrinfo" = "yes" &&
30952      test "$tst_compi_getaddrinfo" = "yes" &&
30953      test "$tst_allow_getaddrinfo" = "yes" &&
30954      test "$tst_works_getaddrinfo" != "no"; then
30955     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30956 $as_echo "yes" >&6; }
30957
30958 cat >>confdefs.h <<_ACEOF
30959 #define HAVE_GETADDRINFO 1
30960 _ACEOF
30961
30962     ac_cv_func_getaddrinfo="yes"
30963   else
30964     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30965 $as_echo "no" >&6; }
30966     ac_cv_func_getaddrinfo="no"
30967     ac_cv_func_getaddrinfo_threadsafe="no"
30968   fi
30969   #
30970   if test "$ac_cv_func_getaddrinfo" = "yes"; then
30971     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
30972 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
30973     case $host_os in
30974       aix[1234].* | aix5.[01].*)
30975                 tst_tsafe_getaddrinfo="no"
30976         ;;
30977       aix*)
30978                 tst_tsafe_getaddrinfo="yes"
30979         ;;
30980       darwin[12345].*)
30981                 tst_tsafe_getaddrinfo="no"
30982         ;;
30983       darwin*)
30984                 tst_tsafe_getaddrinfo="yes"
30985         ;;
30986       freebsd[1234].* | freebsd5.[1234]*)
30987                 tst_tsafe_getaddrinfo="no"
30988         ;;
30989       freebsd*)
30990                 tst_tsafe_getaddrinfo="yes"
30991         ;;
30992       hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
30993                 tst_tsafe_getaddrinfo="no"
30994         ;;
30995       hpux*)
30996                 tst_tsafe_getaddrinfo="yes"
30997         ;;
30998       netbsd[123].*)
30999                 tst_tsafe_getaddrinfo="no"
31000         ;;
31001       netbsd*)
31002                 tst_tsafe_getaddrinfo="yes"
31003         ;;
31004       *bsd*)
31005                 tst_tsafe_getaddrinfo="no"
31006         ;;
31007       solaris2*)
31008                 tst_tsafe_getaddrinfo="yes"
31009         ;;
31010     esac
31011     if test "$tst_tsafe_getaddrinfo" = "unknown" &&
31012        test "$ac_cv_native_windows" = "yes"; then
31013       tst_tsafe_getaddrinfo="yes"
31014     fi
31015     if test "$tst_tsafe_getaddrinfo" = "unknown"; then
31016
31017
31018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31019 /* end confdefs.h.  */
31020
31021
31022         $curl_includes_sys_socket
31023         $curl_includes_netdb
31024
31025 int main (void)
31026 {
31027 #ifdef h_errno
31028   return 0;
31029 #else
31030   force compilation error
31031 #endif
31032 }
31033
31034
31035 _ACEOF
31036 if ac_fn_c_try_compile "$LINENO"; then :
31037
31038     tst_symbol_defined="yes"
31039
31040 else
31041
31042     tst_symbol_defined="no"
31043
31044 fi
31045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31046   if test "$tst_symbol_defined" = "yes"; then
31047     curl_cv_have_def_h_errno=yes
31048
31049   else
31050     curl_cv_have_def_h_errno=no
31051
31052   fi
31053
31054       if test "$curl_cv_have_def_h_errno" = "yes"; then
31055         tst_h_errno_macro="yes"
31056       else
31057         tst_h_errno_macro="no"
31058       fi
31059       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31060 /* end confdefs.h.  */
31061
31062
31063           $curl_includes_sys_socket
31064           $curl_includes_netdb
31065
31066 int main (void)
31067 {
31068
31069           h_errno = 2;
31070           if(0 != h_errno)
31071             return 1;
31072
31073  ;
31074  return 0;
31075 }
31076
31077 _ACEOF
31078 if ac_fn_c_try_compile "$LINENO"; then :
31079
31080         tst_h_errno_modifiable_lvalue="yes"
31081
31082 else
31083
31084         tst_h_errno_modifiable_lvalue="no"
31085
31086 fi
31087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31088       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31089 /* end confdefs.h.  */
31090
31091
31092
31093 int main (void)
31094 {
31095
31096 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
31097           return 0;
31098 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
31099           return 0;
31100 #else
31101           force compilation error
31102 #endif
31103
31104  ;
31105  return 0;
31106 }
31107
31108 _ACEOF
31109 if ac_fn_c_try_compile "$LINENO"; then :
31110
31111         tst_h_errno_sbs_issue_7="yes"
31112
31113 else
31114
31115         tst_h_errno_sbs_issue_7="no"
31116
31117 fi
31118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31119       if test "$tst_h_errno_macro" = "no" &&
31120          test "$tst_h_errno_modifiable_lvalue" = "no" &&
31121          test "$tst_h_errno_sbs_issue_7" = "no"; then
31122         tst_tsafe_getaddrinfo="no"
31123       else
31124         tst_tsafe_getaddrinfo="yes"
31125       fi
31126     fi
31127     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
31128 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
31129     if test "$tst_tsafe_getaddrinfo" = "yes"; then
31130
31131 cat >>confdefs.h <<_ACEOF
31132 #define HAVE_GETADDRINFO_THREADSAFE 1
31133 _ACEOF
31134
31135       ac_cv_func_getaddrinfo_threadsafe="yes"
31136     else
31137       ac_cv_func_getaddrinfo_threadsafe="no"
31138     fi
31139   fi
31140
31141
31142       #
31143   tst_links_gai_strerror="unknown"
31144   tst_proto_gai_strerror="unknown"
31145   tst_compi_gai_strerror="unknown"
31146   tst_allow_gai_strerror="unknown"
31147   #
31148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
31149 $as_echo_n "checking if gai_strerror can be linked... " >&6; }
31150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31151 /* end confdefs.h.  */
31152
31153
31154       $curl_includes_winsock2
31155       $curl_includes_netdb
31156
31157 int main (void)
31158 {
31159
31160       if(0 != gai_strerror(0))
31161         return 1;
31162
31163  ;
31164  return 0;
31165 }
31166
31167 _ACEOF
31168 if ac_fn_c_try_link "$LINENO"; then :
31169
31170     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31171 $as_echo "yes" >&6; }
31172     tst_links_gai_strerror="yes"
31173
31174 else
31175
31176     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31177 $as_echo "no" >&6; }
31178     tst_links_gai_strerror="no"
31179
31180 fi
31181 rm -f core conftest.err conftest.$ac_objext \
31182     conftest$ac_exeext conftest.$ac_ext
31183   #
31184   if test "$tst_links_gai_strerror" = "yes"; then
31185     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
31186 $as_echo_n "checking if gai_strerror is prototyped... " >&6; }
31187     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31188 /* end confdefs.h.  */
31189
31190       $curl_includes_winsock2
31191       $curl_includes_netdb
31192
31193 _ACEOF
31194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31195   $EGREP "gai_strerror" >/dev/null 2>&1; then :
31196
31197       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31198 $as_echo "yes" >&6; }
31199       tst_proto_gai_strerror="yes"
31200
31201 else
31202
31203       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31204 $as_echo "no" >&6; }
31205       tst_proto_gai_strerror="no"
31206
31207 fi
31208 rm -f conftest*
31209
31210   fi
31211   #
31212   if test "$tst_proto_gai_strerror" = "yes"; then
31213     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
31214 $as_echo_n "checking if gai_strerror is compilable... " >&6; }
31215     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31216 /* end confdefs.h.  */
31217
31218
31219         $curl_includes_winsock2
31220         $curl_includes_netdb
31221
31222 int main (void)
31223 {
31224
31225         if(0 != gai_strerror(0))
31226           return 1;
31227
31228  ;
31229  return 0;
31230 }
31231
31232 _ACEOF
31233 if ac_fn_c_try_compile "$LINENO"; then :
31234
31235       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31236 $as_echo "yes" >&6; }
31237       tst_compi_gai_strerror="yes"
31238
31239 else
31240
31241       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31242 $as_echo "no" >&6; }
31243       tst_compi_gai_strerror="no"
31244
31245 fi
31246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31247   fi
31248   #
31249   if test "$tst_compi_gai_strerror" = "yes"; then
31250     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
31251 $as_echo_n "checking if gai_strerror usage allowed... " >&6; }
31252     if test "x$curl_disallow_gai_strerror" != "xyes"; then
31253       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31254 $as_echo "yes" >&6; }
31255       tst_allow_gai_strerror="yes"
31256     else
31257       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31258 $as_echo "no" >&6; }
31259       tst_allow_gai_strerror="no"
31260     fi
31261   fi
31262   #
31263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
31264 $as_echo_n "checking if gai_strerror might be used... " >&6; }
31265   if test "$tst_links_gai_strerror" = "yes" &&
31266      test "$tst_proto_gai_strerror" = "yes" &&
31267      test "$tst_compi_gai_strerror" = "yes" &&
31268      test "$tst_allow_gai_strerror" = "yes"; then
31269     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31270 $as_echo "yes" >&6; }
31271
31272 cat >>confdefs.h <<_ACEOF
31273 #define HAVE_GAI_STRERROR 1
31274 _ACEOF
31275
31276     ac_cv_func_gai_strerror="yes"
31277   else
31278     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31279 $as_echo "no" >&6; }
31280     ac_cv_func_gai_strerror="no"
31281   fi
31282
31283
31284       #
31285   tst_links_gethostbyaddr="unknown"
31286   tst_proto_gethostbyaddr="unknown"
31287   tst_compi_gethostbyaddr="unknown"
31288   tst_allow_gethostbyaddr="unknown"
31289   #
31290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
31291 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
31292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31293 /* end confdefs.h.  */
31294
31295
31296       $curl_includes_winsock2
31297       $curl_includes_netdb
31298
31299 int main (void)
31300 {
31301
31302       if(0 != gethostbyaddr(0, 0, 0))
31303         return 1;
31304
31305  ;
31306  return 0;
31307 }
31308
31309 _ACEOF
31310 if ac_fn_c_try_link "$LINENO"; then :
31311
31312     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31313 $as_echo "yes" >&6; }
31314     tst_links_gethostbyaddr="yes"
31315
31316 else
31317
31318     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31319 $as_echo "no" >&6; }
31320     tst_links_gethostbyaddr="no"
31321
31322 fi
31323 rm -f core conftest.err conftest.$ac_objext \
31324     conftest$ac_exeext conftest.$ac_ext
31325   #
31326   if test "$tst_links_gethostbyaddr" = "yes"; then
31327     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
31328 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
31329     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31330 /* end confdefs.h.  */
31331
31332       $curl_includes_winsock2
31333       $curl_includes_netdb
31334
31335 _ACEOF
31336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31337   $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
31338
31339       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31340 $as_echo "yes" >&6; }
31341       tst_proto_gethostbyaddr="yes"
31342
31343 else
31344
31345       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31346 $as_echo "no" >&6; }
31347       tst_proto_gethostbyaddr="no"
31348
31349 fi
31350 rm -f conftest*
31351
31352   fi
31353   #
31354   if test "$tst_proto_gethostbyaddr" = "yes"; then
31355     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
31356 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
31357     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31358 /* end confdefs.h.  */
31359
31360
31361         $curl_includes_winsock2
31362         $curl_includes_netdb
31363
31364 int main (void)
31365 {
31366
31367         if(0 != gethostbyaddr(0, 0, 0))
31368           return 1;
31369
31370  ;
31371  return 0;
31372 }
31373
31374 _ACEOF
31375 if ac_fn_c_try_compile "$LINENO"; then :
31376
31377       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31378 $as_echo "yes" >&6; }
31379       tst_compi_gethostbyaddr="yes"
31380
31381 else
31382
31383       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31384 $as_echo "no" >&6; }
31385       tst_compi_gethostbyaddr="no"
31386
31387 fi
31388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31389   fi
31390   #
31391   if test "$tst_compi_gethostbyaddr" = "yes"; then
31392     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
31393 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
31394     if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
31395       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31396 $as_echo "yes" >&6; }
31397       tst_allow_gethostbyaddr="yes"
31398     else
31399       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31400 $as_echo "no" >&6; }
31401       tst_allow_gethostbyaddr="no"
31402     fi
31403   fi
31404   #
31405   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
31406 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
31407   if test "$tst_links_gethostbyaddr" = "yes" &&
31408      test "$tst_proto_gethostbyaddr" = "yes" &&
31409      test "$tst_compi_gethostbyaddr" = "yes" &&
31410      test "$tst_allow_gethostbyaddr" = "yes"; then
31411     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31412 $as_echo "yes" >&6; }
31413
31414 cat >>confdefs.h <<_ACEOF
31415 #define HAVE_GETHOSTBYADDR 1
31416 _ACEOF
31417
31418     ac_cv_func_gethostbyaddr="yes"
31419   else
31420     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31421 $as_echo "no" >&6; }
31422     ac_cv_func_gethostbyaddr="no"
31423   fi
31424
31425
31426     #
31427   tst_links_gethostbyaddr_r="unknown"
31428   tst_proto_gethostbyaddr_r="unknown"
31429   tst_compi_gethostbyaddr_r="unknown"
31430   tst_allow_gethostbyaddr_r="unknown"
31431   tst_nargs_gethostbyaddr_r="unknown"
31432   #
31433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
31434 $as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
31435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31436 /* end confdefs.h.  */
31437
31438
31439 #define gethostbyaddr_r innocuous_gethostbyaddr_r
31440 #ifdef __STDC__
31441 # include <limits.h>
31442 #else
31443 # include <assert.h>
31444 #endif
31445 #undef gethostbyaddr_r
31446 #ifdef __cplusplus
31447 extern "C"
31448 #endif
31449 char gethostbyaddr_r ();
31450 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
31451 choke me
31452 #endif
31453
31454 int main (void)
31455 {
31456 return gethostbyaddr_r ();
31457  ;
31458  return 0;
31459 }
31460
31461 _ACEOF
31462 if ac_fn_c_try_link "$LINENO"; then :
31463
31464     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31465 $as_echo "yes" >&6; }
31466     tst_links_gethostbyaddr_r="yes"
31467
31468 else
31469
31470     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31471 $as_echo "no" >&6; }
31472     tst_links_gethostbyaddr_r="no"
31473
31474 fi
31475 rm -f core conftest.err conftest.$ac_objext \
31476     conftest$ac_exeext conftest.$ac_ext
31477   #
31478   if test "$tst_links_gethostbyaddr_r" = "yes"; then
31479     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
31480 $as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
31481     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31482 /* end confdefs.h.  */
31483
31484       $curl_includes_netdb
31485
31486 _ACEOF
31487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31488   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
31489
31490       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31491 $as_echo "yes" >&6; }
31492       tst_proto_gethostbyaddr_r="yes"
31493
31494 else
31495
31496       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31497 $as_echo "no" >&6; }
31498       tst_proto_gethostbyaddr_r="no"
31499
31500 fi
31501 rm -f conftest*
31502
31503   fi
31504   #
31505   if test "$tst_proto_gethostbyaddr_r" = "yes"; then
31506     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
31507       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
31508 $as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
31509       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31510 /* end confdefs.h.  */
31511
31512
31513           $curl_includes_netdb
31514
31515 int main (void)
31516 {
31517
31518           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
31519             return 1;
31520
31521  ;
31522  return 0;
31523 }
31524
31525 _ACEOF
31526 if ac_fn_c_try_compile "$LINENO"; then :
31527
31528         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31529 $as_echo "yes" >&6; }
31530         tst_compi_gethostbyaddr_r="yes"
31531         tst_nargs_gethostbyaddr_r="5"
31532
31533 else
31534
31535         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31536 $as_echo "no" >&6; }
31537         tst_compi_gethostbyaddr_r="no"
31538
31539 fi
31540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31541     fi
31542     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
31543       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
31544 $as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
31545       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31546 /* end confdefs.h.  */
31547
31548
31549           $curl_includes_netdb
31550
31551 int main (void)
31552 {
31553
31554           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
31555             return 1;
31556
31557  ;
31558  return 0;
31559 }
31560
31561 _ACEOF
31562 if ac_fn_c_try_compile "$LINENO"; then :
31563
31564         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31565 $as_echo "yes" >&6; }
31566         tst_compi_gethostbyaddr_r="yes"
31567         tst_nargs_gethostbyaddr_r="7"
31568
31569 else
31570
31571         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31572 $as_echo "no" >&6; }
31573         tst_compi_gethostbyaddr_r="no"
31574
31575 fi
31576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31577     fi
31578     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
31579       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
31580 $as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
31581       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31582 /* end confdefs.h.  */
31583
31584
31585           $curl_includes_netdb
31586
31587 int main (void)
31588 {
31589
31590           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
31591             return 1;
31592
31593  ;
31594  return 0;
31595 }
31596
31597 _ACEOF
31598 if ac_fn_c_try_compile "$LINENO"; then :
31599
31600         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31601 $as_echo "yes" >&6; }
31602         tst_compi_gethostbyaddr_r="yes"
31603         tst_nargs_gethostbyaddr_r="8"
31604
31605 else
31606
31607         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31608 $as_echo "no" >&6; }
31609         tst_compi_gethostbyaddr_r="no"
31610
31611 fi
31612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31613     fi
31614     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
31615 $as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
31616     if test "$tst_compi_gethostbyaddr_r" = "yes"; then
31617       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31618 $as_echo "yes" >&6; }
31619     else
31620       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31621 $as_echo "no" >&6; }
31622     fi
31623   fi
31624   #
31625   if test "$tst_compi_gethostbyaddr_r" = "yes"; then
31626     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
31627 $as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
31628     if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
31629       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31630 $as_echo "yes" >&6; }
31631       tst_allow_gethostbyaddr_r="yes"
31632     else
31633       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31634 $as_echo "no" >&6; }
31635       tst_allow_gethostbyaddr_r="no"
31636     fi
31637   fi
31638   #
31639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
31640 $as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
31641   if test "$tst_links_gethostbyaddr_r" = "yes" &&
31642      test "$tst_proto_gethostbyaddr_r" = "yes" &&
31643      test "$tst_compi_gethostbyaddr_r" = "yes" &&
31644      test "$tst_allow_gethostbyaddr_r" = "yes"; then
31645     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31646 $as_echo "yes" >&6; }
31647
31648 cat >>confdefs.h <<_ACEOF
31649 #define HAVE_GETHOSTBYADDR_R 1
31650 _ACEOF
31651
31652             #
31653     if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
31654
31655 $as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
31656
31657     elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
31658
31659 $as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
31660
31661     elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
31662
31663 $as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
31664
31665     fi
31666     #
31667     ac_cv_func_gethostbyaddr_r="yes"
31668   else
31669     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31670 $as_echo "no" >&6; }
31671     ac_cv_func_gethostbyaddr_r="no"
31672   fi
31673
31674
31675       #
31676   tst_links_gethostbyname="unknown"
31677   tst_proto_gethostbyname="unknown"
31678   tst_compi_gethostbyname="unknown"
31679   tst_allow_gethostbyname="unknown"
31680   #
31681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
31682 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
31683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31684 /* end confdefs.h.  */
31685
31686
31687       $curl_includes_winsock2
31688       $curl_includes_netdb
31689
31690 int main (void)
31691 {
31692
31693       if(0 != gethostbyname(0))
31694         return 1;
31695
31696  ;
31697  return 0;
31698 }
31699
31700 _ACEOF
31701 if ac_fn_c_try_link "$LINENO"; then :
31702
31703     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31704 $as_echo "yes" >&6; }
31705     tst_links_gethostbyname="yes"
31706
31707 else
31708
31709     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31710 $as_echo "no" >&6; }
31711     tst_links_gethostbyname="no"
31712
31713 fi
31714 rm -f core conftest.err conftest.$ac_objext \
31715     conftest$ac_exeext conftest.$ac_ext
31716   #
31717   if test "$tst_links_gethostbyname" = "yes"; then
31718     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
31719 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
31720     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31721 /* end confdefs.h.  */
31722
31723       $curl_includes_winsock2
31724       $curl_includes_netdb
31725
31726 _ACEOF
31727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31728   $EGREP "gethostbyname" >/dev/null 2>&1; then :
31729
31730       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31731 $as_echo "yes" >&6; }
31732       tst_proto_gethostbyname="yes"
31733
31734 else
31735
31736       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31737 $as_echo "no" >&6; }
31738       tst_proto_gethostbyname="no"
31739
31740 fi
31741 rm -f conftest*
31742
31743   fi
31744   #
31745   if test "$tst_proto_gethostbyname" = "yes"; then
31746     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
31747 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
31748     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31749 /* end confdefs.h.  */
31750
31751
31752         $curl_includes_winsock2
31753         $curl_includes_netdb
31754
31755 int main (void)
31756 {
31757
31758         if(0 != gethostbyname(0))
31759           return 1;
31760
31761  ;
31762  return 0;
31763 }
31764
31765 _ACEOF
31766 if ac_fn_c_try_compile "$LINENO"; then :
31767
31768       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31769 $as_echo "yes" >&6; }
31770       tst_compi_gethostbyname="yes"
31771
31772 else
31773
31774       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31775 $as_echo "no" >&6; }
31776       tst_compi_gethostbyname="no"
31777
31778 fi
31779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31780   fi
31781   #
31782   if test "$tst_compi_gethostbyname" = "yes"; then
31783     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
31784 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
31785     if test "x$curl_disallow_gethostbyname" != "xyes"; then
31786       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31787 $as_echo "yes" >&6; }
31788       tst_allow_gethostbyname="yes"
31789     else
31790       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31791 $as_echo "no" >&6; }
31792       tst_allow_gethostbyname="no"
31793     fi
31794   fi
31795   #
31796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
31797 $as_echo_n "checking if gethostbyname might be used... " >&6; }
31798   if test "$tst_links_gethostbyname" = "yes" &&
31799      test "$tst_proto_gethostbyname" = "yes" &&
31800      test "$tst_compi_gethostbyname" = "yes" &&
31801      test "$tst_allow_gethostbyname" = "yes"; then
31802     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31803 $as_echo "yes" >&6; }
31804
31805 cat >>confdefs.h <<_ACEOF
31806 #define HAVE_GETHOSTBYNAME 1
31807 _ACEOF
31808
31809     ac_cv_func_gethostbyname="yes"
31810   else
31811     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31812 $as_echo "no" >&6; }
31813     ac_cv_func_gethostbyname="no"
31814   fi
31815
31816
31817     #
31818   tst_links_gethostbyname_r="unknown"
31819   tst_proto_gethostbyname_r="unknown"
31820   tst_compi_gethostbyname_r="unknown"
31821   tst_allow_gethostbyname_r="unknown"
31822   tst_nargs_gethostbyname_r="unknown"
31823   #
31824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
31825 $as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
31826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31827 /* end confdefs.h.  */
31828
31829
31830 #define gethostbyname_r innocuous_gethostbyname_r
31831 #ifdef __STDC__
31832 # include <limits.h>
31833 #else
31834 # include <assert.h>
31835 #endif
31836 #undef gethostbyname_r
31837 #ifdef __cplusplus
31838 extern "C"
31839 #endif
31840 char gethostbyname_r ();
31841 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
31842 choke me
31843 #endif
31844
31845 int main (void)
31846 {
31847 return gethostbyname_r ();
31848  ;
31849  return 0;
31850 }
31851
31852 _ACEOF
31853 if ac_fn_c_try_link "$LINENO"; then :
31854
31855     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31856 $as_echo "yes" >&6; }
31857     tst_links_gethostbyname_r="yes"
31858
31859 else
31860
31861     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31862 $as_echo "no" >&6; }
31863     tst_links_gethostbyname_r="no"
31864
31865 fi
31866 rm -f core conftest.err conftest.$ac_objext \
31867     conftest$ac_exeext conftest.$ac_ext
31868   #
31869   if test "$tst_links_gethostbyname_r" = "yes"; then
31870     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
31871 $as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
31872     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31873 /* end confdefs.h.  */
31874
31875       $curl_includes_netdb
31876
31877 _ACEOF
31878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31879   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
31880
31881       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31882 $as_echo "yes" >&6; }
31883       tst_proto_gethostbyname_r="yes"
31884
31885 else
31886
31887       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31888 $as_echo "no" >&6; }
31889       tst_proto_gethostbyname_r="no"
31890
31891 fi
31892 rm -f conftest*
31893
31894   fi
31895   #
31896   if test "$tst_proto_gethostbyname_r" = "yes"; then
31897     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
31898       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
31899 $as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
31900       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31901 /* end confdefs.h.  */
31902
31903
31904           $curl_includes_netdb
31905
31906 int main (void)
31907 {
31908
31909           if(0 != gethostbyname_r(0, 0, 0))
31910             return 1;
31911
31912  ;
31913  return 0;
31914 }
31915
31916 _ACEOF
31917 if ac_fn_c_try_compile "$LINENO"; then :
31918
31919         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31920 $as_echo "yes" >&6; }
31921         tst_compi_gethostbyname_r="yes"
31922         tst_nargs_gethostbyname_r="3"
31923
31924 else
31925
31926         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31927 $as_echo "no" >&6; }
31928         tst_compi_gethostbyname_r="no"
31929
31930 fi
31931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31932     fi
31933     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
31934       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
31935 $as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
31936       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31937 /* end confdefs.h.  */
31938
31939
31940           $curl_includes_netdb
31941
31942 int main (void)
31943 {
31944
31945           if(0 != gethostbyname_r(0, 0, 0, 0, 0))
31946             return 1;
31947
31948  ;
31949  return 0;
31950 }
31951
31952 _ACEOF
31953 if ac_fn_c_try_compile "$LINENO"; then :
31954
31955         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31956 $as_echo "yes" >&6; }
31957         tst_compi_gethostbyname_r="yes"
31958         tst_nargs_gethostbyname_r="5"
31959
31960 else
31961
31962         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31963 $as_echo "no" >&6; }
31964         tst_compi_gethostbyname_r="no"
31965
31966 fi
31967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31968     fi
31969     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
31970       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
31971 $as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
31972       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31973 /* end confdefs.h.  */
31974
31975
31976           $curl_includes_netdb
31977
31978 int main (void)
31979 {
31980
31981           if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
31982             return 1;
31983
31984  ;
31985  return 0;
31986 }
31987
31988 _ACEOF
31989 if ac_fn_c_try_compile "$LINENO"; then :
31990
31991         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31992 $as_echo "yes" >&6; }
31993         tst_compi_gethostbyname_r="yes"
31994         tst_nargs_gethostbyname_r="6"
31995
31996 else
31997
31998         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31999 $as_echo "no" >&6; }
32000         tst_compi_gethostbyname_r="no"
32001
32002 fi
32003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32004     fi
32005     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
32006 $as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
32007     if test "$tst_compi_gethostbyname_r" = "yes"; then
32008       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32009 $as_echo "yes" >&6; }
32010     else
32011       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32012 $as_echo "no" >&6; }
32013     fi
32014   fi
32015   #
32016   if test "$tst_compi_gethostbyname_r" = "yes"; then
32017     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
32018 $as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
32019     if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
32020       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32021 $as_echo "yes" >&6; }
32022       tst_allow_gethostbyname_r="yes"
32023     else
32024       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32025 $as_echo "no" >&6; }
32026       tst_allow_gethostbyname_r="no"
32027     fi
32028   fi
32029   #
32030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
32031 $as_echo_n "checking if gethostbyname_r might be used... " >&6; }
32032   if test "$tst_links_gethostbyname_r" = "yes" &&
32033      test "$tst_proto_gethostbyname_r" = "yes" &&
32034      test "$tst_compi_gethostbyname_r" = "yes" &&
32035      test "$tst_allow_gethostbyname_r" = "yes"; then
32036     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32037 $as_echo "yes" >&6; }
32038
32039 cat >>confdefs.h <<_ACEOF
32040 #define HAVE_GETHOSTBYNAME_R 1
32041 _ACEOF
32042
32043             #
32044     if test "$tst_nargs_gethostbyname_r" -eq "3"; then
32045
32046 $as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
32047
32048     elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
32049
32050 $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
32051
32052     elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
32053
32054 $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
32055
32056     fi
32057     #
32058     ac_cv_func_gethostbyname_r="yes"
32059   else
32060     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32061 $as_echo "no" >&6; }
32062     ac_cv_func_gethostbyname_r="no"
32063   fi
32064
32065
32066         #
32067   tst_links_gethostname="unknown"
32068   tst_proto_gethostname="unknown"
32069   tst_compi_gethostname="unknown"
32070   tst_allow_gethostname="unknown"
32071   #
32072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
32073 $as_echo_n "checking if gethostname can be linked... " >&6; }
32074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32075 /* end confdefs.h.  */
32076
32077
32078       $curl_includes_winsock2
32079       $curl_includes_unistd
32080
32081 int main (void)
32082 {
32083
32084       if(0 != gethostname(0, 0))
32085         return 1;
32086
32087  ;
32088  return 0;
32089 }
32090
32091 _ACEOF
32092 if ac_fn_c_try_link "$LINENO"; then :
32093
32094     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32095 $as_echo "yes" >&6; }
32096     tst_links_gethostname="yes"
32097
32098 else
32099
32100     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32101 $as_echo "no" >&6; }
32102     tst_links_gethostname="no"
32103
32104 fi
32105 rm -f core conftest.err conftest.$ac_objext \
32106     conftest$ac_exeext conftest.$ac_ext
32107   #
32108   if test "$tst_links_gethostname" = "yes"; then
32109     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
32110 $as_echo_n "checking if gethostname is prototyped... " >&6; }
32111     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32112 /* end confdefs.h.  */
32113
32114       $curl_includes_winsock2
32115       $curl_includes_unistd
32116
32117 _ACEOF
32118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32119   $EGREP "gethostname" >/dev/null 2>&1; then :
32120
32121       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32122 $as_echo "yes" >&6; }
32123       tst_proto_gethostname="yes"
32124
32125 else
32126
32127       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32128 $as_echo "no" >&6; }
32129       tst_proto_gethostname="no"
32130
32131 fi
32132 rm -f conftest*
32133
32134   fi
32135   #
32136   if test "$tst_proto_gethostname" = "yes"; then
32137     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
32138 $as_echo_n "checking if gethostname is compilable... " >&6; }
32139     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32140 /* end confdefs.h.  */
32141
32142
32143         $curl_includes_winsock2
32144         $curl_includes_unistd
32145
32146 int main (void)
32147 {
32148
32149         if(0 != gethostname(0, 0))
32150           return 1;
32151
32152  ;
32153  return 0;
32154 }
32155
32156 _ACEOF
32157 if ac_fn_c_try_compile "$LINENO"; then :
32158
32159       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32160 $as_echo "yes" >&6; }
32161       tst_compi_gethostname="yes"
32162
32163 else
32164
32165       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32166 $as_echo "no" >&6; }
32167       tst_compi_gethostname="no"
32168
32169 fi
32170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32171   fi
32172   #
32173   if test "$tst_compi_gethostname" = "yes"; then
32174     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
32175 $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
32176     tst_gethostname_type_arg2="unknown"
32177     for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
32178       for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
32179         if test "$tst_gethostname_type_arg2" = "unknown"; then
32180           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32181 /* end confdefs.h.  */
32182
32183
32184               $curl_includes_winsock2
32185               $curl_includes_unistd
32186               $curl_preprocess_callconv
32187               extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
32188
32189 int main (void)
32190 {
32191
32192               if(0 != gethostname(0, 0))
32193                 return 1;
32194
32195  ;
32196  return 0;
32197 }
32198
32199 _ACEOF
32200 if ac_fn_c_try_compile "$LINENO"; then :
32201
32202             tst_gethostname_type_arg2="$tst_arg2"
32203
32204 fi
32205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32206         fi
32207       done
32208     done
32209     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
32210 $as_echo "$tst_gethostname_type_arg2" >&6; }
32211     if test "$tst_gethostname_type_arg2" != "unknown"; then
32212
32213 cat >>confdefs.h <<_ACEOF
32214 #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
32215 _ACEOF
32216
32217     fi
32218   fi
32219   #
32220   if test "$tst_compi_gethostname" = "yes"; then
32221     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
32222 $as_echo_n "checking if gethostname usage allowed... " >&6; }
32223     if test "x$curl_disallow_gethostname" != "xyes"; then
32224       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32225 $as_echo "yes" >&6; }
32226       tst_allow_gethostname="yes"
32227     else
32228       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32229 $as_echo "no" >&6; }
32230       tst_allow_gethostname="no"
32231     fi
32232   fi
32233   #
32234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
32235 $as_echo_n "checking if gethostname might be used... " >&6; }
32236   if test "$tst_links_gethostname" = "yes" &&
32237      test "$tst_proto_gethostname" = "yes" &&
32238      test "$tst_compi_gethostname" = "yes" &&
32239      test "$tst_allow_gethostname" = "yes"; then
32240     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32241 $as_echo "yes" >&6; }
32242
32243 cat >>confdefs.h <<_ACEOF
32244 #define HAVE_GETHOSTNAME 1
32245 _ACEOF
32246
32247     ac_cv_func_gethostname="yes"
32248   else
32249     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32250 $as_echo "no" >&6; }
32251     ac_cv_func_gethostname="no"
32252   fi
32253
32254
32255       #
32256   tst_links_getifaddrs="unknown"
32257   tst_proto_getifaddrs="unknown"
32258   tst_compi_getifaddrs="unknown"
32259   tst_works_getifaddrs="unknown"
32260   tst_allow_getifaddrs="unknown"
32261   #
32262   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
32263 $as_echo_n "checking if getifaddrs can be linked... " >&6; }
32264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32265 /* end confdefs.h.  */
32266
32267
32268 #define getifaddrs innocuous_getifaddrs
32269 #ifdef __STDC__
32270 # include <limits.h>
32271 #else
32272 # include <assert.h>
32273 #endif
32274 #undef getifaddrs
32275 #ifdef __cplusplus
32276 extern "C"
32277 #endif
32278 char getifaddrs ();
32279 #if defined __stub_getifaddrs || defined __stub___getifaddrs
32280 choke me
32281 #endif
32282
32283 int main (void)
32284 {
32285 return getifaddrs ();
32286  ;
32287  return 0;
32288 }
32289
32290 _ACEOF
32291 if ac_fn_c_try_link "$LINENO"; then :
32292
32293     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32294 $as_echo "yes" >&6; }
32295     tst_links_getifaddrs="yes"
32296
32297 else
32298
32299     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32300 $as_echo "no" >&6; }
32301     tst_links_getifaddrs="no"
32302
32303 fi
32304 rm -f core conftest.err conftest.$ac_objext \
32305     conftest$ac_exeext conftest.$ac_ext
32306   #
32307   if test "$tst_links_getifaddrs" = "yes"; then
32308     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
32309 $as_echo_n "checking if getifaddrs is prototyped... " >&6; }
32310     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32311 /* end confdefs.h.  */
32312
32313       $curl_includes_ifaddrs
32314
32315 _ACEOF
32316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32317   $EGREP "getifaddrs" >/dev/null 2>&1; then :
32318
32319       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32320 $as_echo "yes" >&6; }
32321       tst_proto_getifaddrs="yes"
32322
32323 else
32324
32325       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32326 $as_echo "no" >&6; }
32327       tst_proto_getifaddrs="no"
32328
32329 fi
32330 rm -f conftest*
32331
32332   fi
32333   #
32334   if test "$tst_proto_getifaddrs" = "yes"; then
32335     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
32336 $as_echo_n "checking if getifaddrs is compilable... " >&6; }
32337     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32338 /* end confdefs.h.  */
32339
32340
32341         $curl_includes_ifaddrs
32342
32343 int main (void)
32344 {
32345
32346         if(0 != getifaddrs(0))
32347           return 1;
32348
32349  ;
32350  return 0;
32351 }
32352
32353 _ACEOF
32354 if ac_fn_c_try_compile "$LINENO"; then :
32355
32356       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32357 $as_echo "yes" >&6; }
32358       tst_compi_getifaddrs="yes"
32359
32360 else
32361
32362       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32363 $as_echo "no" >&6; }
32364       tst_compi_getifaddrs="no"
32365
32366 fi
32367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32368   fi
32369   #
32370     if test "x$cross_compiling" != "xyes" &&
32371     test "$tst_compi_getifaddrs" = "yes"; then
32372     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
32373 $as_echo_n "checking if getifaddrs seems to work... " >&6; }
32374     if test "$cross_compiling" = yes; then :
32375   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32377 as_fn_error $? "cannot run test program while cross compiling
32378 See \`config.log' for more details" "$LINENO" 5; }
32379 else
32380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32381 /* end confdefs.h.  */
32382
32383
32384         $curl_includes_stdlib
32385         $curl_includes_ifaddrs
32386
32387 int main (void)
32388 {
32389
32390         struct ifaddrs *ifa = 0;
32391         int error;
32392
32393         error = getifaddrs(&ifa);
32394         if(error || !ifa)
32395           exit(1); /* fail */
32396         else
32397           exit(0);
32398
32399  ;
32400  return 0;
32401 }
32402
32403 _ACEOF
32404 if ac_fn_c_try_run "$LINENO"; then :
32405
32406       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32407 $as_echo "yes" >&6; }
32408       tst_works_getifaddrs="yes"
32409
32410 else
32411
32412       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32413 $as_echo "no" >&6; }
32414       tst_works_getifaddrs="no"
32415
32416 fi
32417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32418   conftest.$ac_objext conftest.beam conftest.$ac_ext
32419 fi
32420
32421   fi
32422   #
32423   if test "$tst_compi_getifaddrs" = "yes" &&
32424     test "$tst_works_getifaddrs" != "no"; then
32425     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
32426 $as_echo_n "checking if getifaddrs usage allowed... " >&6; }
32427     if test "x$curl_disallow_getifaddrs" != "xyes"; then
32428       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32429 $as_echo "yes" >&6; }
32430       tst_allow_getifaddrs="yes"
32431     else
32432       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32433 $as_echo "no" >&6; }
32434       tst_allow_getifaddrs="no"
32435     fi
32436   fi
32437   #
32438   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
32439 $as_echo_n "checking if getifaddrs might be used... " >&6; }
32440   if test "$tst_links_getifaddrs" = "yes" &&
32441      test "$tst_proto_getifaddrs" = "yes" &&
32442      test "$tst_compi_getifaddrs" = "yes" &&
32443      test "$tst_allow_getifaddrs" = "yes" &&
32444      test "$tst_works_getifaddrs" != "no"; then
32445     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32446 $as_echo "yes" >&6; }
32447
32448 cat >>confdefs.h <<_ACEOF
32449 #define HAVE_GETIFADDRS 1
32450 _ACEOF
32451
32452     ac_cv_func_getifaddrs="yes"
32453   else
32454     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32455 $as_echo "no" >&6; }
32456     ac_cv_func_getifaddrs="no"
32457   fi
32458
32459
32460     #
32461   tst_links_getservbyport_r="unknown"
32462   tst_proto_getservbyport_r="unknown"
32463   tst_compi_getservbyport_r="unknown"
32464   tst_allow_getservbyport_r="unknown"
32465   tst_nargs_getservbyport_r="unknown"
32466   #
32467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
32468 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
32469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32470 /* end confdefs.h.  */
32471
32472
32473 #define getservbyport_r innocuous_getservbyport_r
32474 #ifdef __STDC__
32475 # include <limits.h>
32476 #else
32477 # include <assert.h>
32478 #endif
32479 #undef getservbyport_r
32480 #ifdef __cplusplus
32481 extern "C"
32482 #endif
32483 char getservbyport_r ();
32484 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
32485 choke me
32486 #endif
32487
32488 int main (void)
32489 {
32490 return getservbyport_r ();
32491  ;
32492  return 0;
32493 }
32494
32495 _ACEOF
32496 if ac_fn_c_try_link "$LINENO"; then :
32497
32498     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32499 $as_echo "yes" >&6; }
32500     tst_links_getservbyport_r="yes"
32501
32502 else
32503
32504     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32505 $as_echo "no" >&6; }
32506     tst_links_getservbyport_r="no"
32507
32508 fi
32509 rm -f core conftest.err conftest.$ac_objext \
32510     conftest$ac_exeext conftest.$ac_ext
32511   #
32512   if test "$tst_links_getservbyport_r" = "yes"; then
32513     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
32514 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
32515     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32516 /* end confdefs.h.  */
32517
32518       $curl_includes_netdb
32519
32520 _ACEOF
32521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32522   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
32523
32524       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32525 $as_echo "yes" >&6; }
32526       tst_proto_getservbyport_r="yes"
32527
32528 else
32529
32530       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32531 $as_echo "no" >&6; }
32532       tst_proto_getservbyport_r="no"
32533
32534 fi
32535 rm -f conftest*
32536
32537   fi
32538   #
32539   if test "$tst_proto_getservbyport_r" = "yes"; then
32540     if test "$tst_nargs_getservbyport_r" = "unknown"; then
32541       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
32542 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
32543       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32544 /* end confdefs.h.  */
32545
32546
32547           $curl_includes_netdb
32548
32549 int main (void)
32550 {
32551
32552           if(0 != getservbyport_r(0, 0, 0, 0))
32553             return 1;
32554
32555  ;
32556  return 0;
32557 }
32558
32559 _ACEOF
32560 if ac_fn_c_try_compile "$LINENO"; then :
32561
32562         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32563 $as_echo "yes" >&6; }
32564         tst_compi_getservbyport_r="yes"
32565         tst_nargs_getservbyport_r="4"
32566
32567 else
32568
32569         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32570 $as_echo "no" >&6; }
32571         tst_compi_getservbyport_r="no"
32572
32573 fi
32574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32575     fi
32576     if test "$tst_nargs_getservbyport_r" = "unknown"; then
32577       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
32578 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
32579       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32580 /* end confdefs.h.  */
32581
32582
32583           $curl_includes_netdb
32584
32585 int main (void)
32586 {
32587
32588           if(0 != getservbyport_r(0, 0, 0, 0, 0))
32589             return 1;
32590
32591  ;
32592  return 0;
32593 }
32594
32595 _ACEOF
32596 if ac_fn_c_try_compile "$LINENO"; then :
32597
32598         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32599 $as_echo "yes" >&6; }
32600         tst_compi_getservbyport_r="yes"
32601         tst_nargs_getservbyport_r="5"
32602
32603 else
32604
32605         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32606 $as_echo "no" >&6; }
32607         tst_compi_getservbyport_r="no"
32608
32609 fi
32610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32611     fi
32612     if test "$tst_nargs_getservbyport_r" = "unknown"; then
32613       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
32614 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
32615       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32616 /* end confdefs.h.  */
32617
32618
32619           $curl_includes_netdb
32620
32621 int main (void)
32622 {
32623
32624           if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
32625             return 1;
32626
32627  ;
32628  return 0;
32629 }
32630
32631 _ACEOF
32632 if ac_fn_c_try_compile "$LINENO"; then :
32633
32634         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32635 $as_echo "yes" >&6; }
32636         tst_compi_getservbyport_r="yes"
32637         tst_nargs_getservbyport_r="6"
32638
32639 else
32640
32641         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32642 $as_echo "no" >&6; }
32643         tst_compi_getservbyport_r="no"
32644
32645 fi
32646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32647     fi
32648     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
32649 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
32650     if test "$tst_compi_getservbyport_r" = "yes"; then
32651       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32652 $as_echo "yes" >&6; }
32653     else
32654       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32655 $as_echo "no" >&6; }
32656     fi
32657   fi
32658   #
32659   if test "$tst_compi_getservbyport_r" = "yes"; then
32660     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
32661 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
32662     if test "x$curl_disallow_getservbyport_r" != "xyes"; then
32663       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32664 $as_echo "yes" >&6; }
32665       tst_allow_getservbyport_r="yes"
32666     else
32667       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32668 $as_echo "no" >&6; }
32669       tst_allow_getservbyport_r="no"
32670     fi
32671   fi
32672   #
32673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
32674 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
32675   if test "$tst_links_getservbyport_r" = "yes" &&
32676      test "$tst_proto_getservbyport_r" = "yes" &&
32677      test "$tst_compi_getservbyport_r" = "yes" &&
32678      test "$tst_allow_getservbyport_r" = "yes"; then
32679     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32680 $as_echo "yes" >&6; }
32681
32682 cat >>confdefs.h <<_ACEOF
32683 #define HAVE_GETSERVBYPORT_R 1
32684 _ACEOF
32685
32686
32687 cat >>confdefs.h <<_ACEOF
32688 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
32689 _ACEOF
32690
32691     if test "$tst_nargs_getservbyport_r" -eq "4"; then
32692
32693 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
32694
32695     else
32696
32697 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
32698
32699     fi
32700     ac_cv_func_getservbyport_r="yes"
32701   else
32702     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32703 $as_echo "no" >&6; }
32704     ac_cv_func_getservbyport_r="no"
32705   fi
32706
32707
32708 curl_includes_time="\
32709 /* includes start */
32710 #ifdef HAVE_SYS_TYPES_H
32711 #  include <sys/types.h>
32712 #endif
32713 #ifdef HAVE_SYS_TIME_H
32714 #  include <sys/time.h>
32715 #  ifdef TIME_WITH_SYS_TIME
32716 #    include <time.h>
32717 #  endif
32718 #else
32719 #  ifdef HAVE_TIME_H
32720 #    include <time.h>
32721 #  endif
32722 #endif
32723 /* includes end */"
32724   for ac_header in sys/types.h sys/time.h time.h
32725 do :
32726   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32727 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
32728 "
32729 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32730   cat >>confdefs.h <<_ACEOF
32731 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32732 _ACEOF
32733
32734 fi
32735
32736 done
32737
32738
32739
32740       #
32741   tst_links_gmtime_r="unknown"
32742   tst_proto_gmtime_r="unknown"
32743   tst_compi_gmtime_r="unknown"
32744   tst_works_gmtime_r="unknown"
32745   tst_allow_gmtime_r="unknown"
32746   #
32747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
32748 $as_echo_n "checking if gmtime_r can be linked... " >&6; }
32749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32750 /* end confdefs.h.  */
32751
32752
32753 #define gmtime_r innocuous_gmtime_r
32754 #ifdef __STDC__
32755 # include <limits.h>
32756 #else
32757 # include <assert.h>
32758 #endif
32759 #undef gmtime_r
32760 #ifdef __cplusplus
32761 extern "C"
32762 #endif
32763 char gmtime_r ();
32764 #if defined __stub_gmtime_r || defined __stub___gmtime_r
32765 choke me
32766 #endif
32767
32768 int main (void)
32769 {
32770 return gmtime_r ();
32771  ;
32772  return 0;
32773 }
32774
32775 _ACEOF
32776 if ac_fn_c_try_link "$LINENO"; then :
32777
32778     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32779 $as_echo "yes" >&6; }
32780     tst_links_gmtime_r="yes"
32781
32782 else
32783
32784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32785 $as_echo "no" >&6; }
32786     tst_links_gmtime_r="no"
32787
32788 fi
32789 rm -f core conftest.err conftest.$ac_objext \
32790     conftest$ac_exeext conftest.$ac_ext
32791   #
32792   if test "$tst_links_gmtime_r" = "yes"; then
32793     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
32794 $as_echo_n "checking if gmtime_r is prototyped... " >&6; }
32795     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32796 /* end confdefs.h.  */
32797
32798       $curl_includes_time
32799
32800 _ACEOF
32801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32802   $EGREP "gmtime_r" >/dev/null 2>&1; then :
32803
32804       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32805 $as_echo "yes" >&6; }
32806       tst_proto_gmtime_r="yes"
32807
32808 else
32809
32810       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32811 $as_echo "no" >&6; }
32812       tst_proto_gmtime_r="no"
32813
32814 fi
32815 rm -f conftest*
32816
32817   fi
32818   #
32819   if test "$tst_proto_gmtime_r" = "yes"; then
32820     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
32821 $as_echo_n "checking if gmtime_r is compilable... " >&6; }
32822     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32823 /* end confdefs.h.  */
32824
32825
32826         $curl_includes_time
32827
32828 int main (void)
32829 {
32830
32831         if(0 != gmtime_r(0, 0))
32832           return 1;
32833
32834  ;
32835  return 0;
32836 }
32837
32838 _ACEOF
32839 if ac_fn_c_try_compile "$LINENO"; then :
32840
32841       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32842 $as_echo "yes" >&6; }
32843       tst_compi_gmtime_r="yes"
32844
32845 else
32846
32847       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32848 $as_echo "no" >&6; }
32849       tst_compi_gmtime_r="no"
32850
32851 fi
32852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32853   fi
32854   #
32855     if test "x$cross_compiling" != "xyes" &&
32856     test "$tst_compi_gmtime_r" = "yes"; then
32857     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
32858 $as_echo_n "checking if gmtime_r seems to work... " >&6; }
32859     if test "$cross_compiling" = yes; then :
32860   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32862 as_fn_error $? "cannot run test program while cross compiling
32863 See \`config.log' for more details" "$LINENO" 5; }
32864 else
32865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32866 /* end confdefs.h.  */
32867
32868
32869         $curl_includes_stdlib
32870         $curl_includes_time
32871
32872 int main (void)
32873 {
32874
32875         time_t local = 1170352587;
32876         struct tm *gmt = 0;
32877         struct tm result;
32878         gmt = gmtime_r(&local, &result);
32879         if(gmt)
32880           exit(0);
32881         else
32882           exit(1);
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_gmtime_r="yes"
32894
32895 else
32896
32897       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32898 $as_echo "no" >&6; }
32899       tst_works_gmtime_r="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_gmtime_r" = "yes" &&
32909     test "$tst_works_gmtime_r" != "no"; then
32910     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
32911 $as_echo_n "checking if gmtime_r usage allowed... " >&6; }
32912     if test "x$curl_disallow_gmtime_r" != "xyes"; then
32913       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32914 $as_echo "yes" >&6; }
32915       tst_allow_gmtime_r="yes"
32916     else
32917       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32918 $as_echo "no" >&6; }
32919       tst_allow_gmtime_r="no"
32920     fi
32921   fi
32922   #
32923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
32924 $as_echo_n "checking if gmtime_r might be used... " >&6; }
32925   if test "$tst_links_gmtime_r" = "yes" &&
32926      test "$tst_proto_gmtime_r" = "yes" &&
32927      test "$tst_compi_gmtime_r" = "yes" &&
32928      test "$tst_allow_gmtime_r" = "yes" &&
32929      test "$tst_works_gmtime_r" != "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_GMTIME_R 1
32935 _ACEOF
32936
32937     ac_cv_func_gmtime_r="yes"
32938   else
32939     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32940 $as_echo "no" >&6; }
32941     ac_cv_func_gmtime_r="no"
32942   fi
32943
32944
32945 curl_includes_arpa_inet="\
32946 /* includes start */
32947 #ifdef HAVE_SYS_TYPES_H
32948 #  include <sys/types.h>
32949 #endif
32950 #ifdef HAVE_SYS_SOCKET_H
32951 #  include <sys/socket.h>
32952 #endif
32953 #ifdef HAVE_NETINET_IN_H
32954 #  include <netinet/in.h>
32955 #endif
32956 #ifdef HAVE_ARPA_INET_H
32957 #  include <arpa/inet.h>
32958 #endif
32959 /* includes end */"
32960   for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
32961 do :
32962   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32963 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
32964 "
32965 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32966   cat >>confdefs.h <<_ACEOF
32967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32968 _ACEOF
32969
32970 fi
32971
32972 done
32973
32974
32975
32976     #
32977   tst_links_inet_ntoa_r="unknown"
32978   tst_proto_inet_ntoa_r="unknown"
32979   tst_compi_inet_ntoa_r="unknown"
32980   tst_allow_inet_ntoa_r="unknown"
32981   tst_nargs_inet_ntoa_r="unknown"
32982   #
32983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
32984 $as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
32985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32986 /* end confdefs.h.  */
32987
32988
32989 #define inet_ntoa_r innocuous_inet_ntoa_r
32990 #ifdef __STDC__
32991 # include <limits.h>
32992 #else
32993 # include <assert.h>
32994 #endif
32995 #undef inet_ntoa_r
32996 #ifdef __cplusplus
32997 extern "C"
32998 #endif
32999 char inet_ntoa_r ();
33000 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
33001 choke me
33002 #endif
33003
33004 int main (void)
33005 {
33006 return inet_ntoa_r ();
33007  ;
33008  return 0;
33009 }
33010
33011 _ACEOF
33012 if ac_fn_c_try_link "$LINENO"; then :
33013
33014     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33015 $as_echo "yes" >&6; }
33016     tst_links_inet_ntoa_r="yes"
33017
33018 else
33019
33020     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33021 $as_echo "no" >&6; }
33022     tst_links_inet_ntoa_r="no"
33023
33024 fi
33025 rm -f core conftest.err conftest.$ac_objext \
33026     conftest$ac_exeext conftest.$ac_ext
33027   #
33028   if test "$tst_links_inet_ntoa_r" = "yes"; then
33029     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
33030 $as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
33031     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33032 /* end confdefs.h.  */
33033
33034       $curl_includes_arpa_inet
33035
33036 _ACEOF
33037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33038   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
33039
33040       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33041 $as_echo "yes" >&6; }
33042       tst_proto_inet_ntoa_r="yes"
33043
33044 else
33045
33046       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33047 $as_echo "no" >&6; }
33048       tst_proto_inet_ntoa_r="no"
33049
33050 fi
33051 rm -f conftest*
33052
33053   fi
33054   #
33055   if test "$tst_proto_inet_ntoa_r" = "yes"; then
33056     if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
33057       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
33058 $as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
33059       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33060 /* end confdefs.h.  */
33061
33062
33063           $curl_includes_arpa_inet
33064
33065 int main (void)
33066 {
33067
33068           struct in_addr addr;
33069           if(0 != inet_ntoa_r(addr, 0))
33070             return 1;
33071
33072  ;
33073  return 0;
33074 }
33075
33076 _ACEOF
33077 if ac_fn_c_try_compile "$LINENO"; then :
33078
33079         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33080 $as_echo "yes" >&6; }
33081         tst_compi_inet_ntoa_r="yes"
33082         tst_nargs_inet_ntoa_r="2"
33083
33084 else
33085
33086         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33087 $as_echo "no" >&6; }
33088         tst_compi_inet_ntoa_r="no"
33089
33090 fi
33091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33092     fi
33093     if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
33094       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
33095 $as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
33096       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33097 /* end confdefs.h.  */
33098
33099
33100           $curl_includes_arpa_inet
33101
33102 int main (void)
33103 {
33104
33105           struct in_addr addr;
33106           if(0 != inet_ntoa_r(addr, 0, 0))
33107             return 1;
33108
33109  ;
33110  return 0;
33111 }
33112
33113 _ACEOF
33114 if ac_fn_c_try_compile "$LINENO"; then :
33115
33116         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33117 $as_echo "yes" >&6; }
33118         tst_compi_inet_ntoa_r="yes"
33119         tst_nargs_inet_ntoa_r="3"
33120
33121 else
33122
33123         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33124 $as_echo "no" >&6; }
33125         tst_compi_inet_ntoa_r="no"
33126
33127 fi
33128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33129     fi
33130     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
33131 $as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
33132     if test "$tst_compi_inet_ntoa_r" = "yes"; then
33133       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33134 $as_echo "yes" >&6; }
33135     else
33136       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33137 $as_echo "no" >&6; }
33138     fi
33139   fi
33140   #
33141   if test "$tst_compi_inet_ntoa_r" = "yes"; then
33142     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
33143 $as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
33144     if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
33145       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33146 $as_echo "yes" >&6; }
33147       tst_allow_inet_ntoa_r="yes"
33148     else
33149       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33150 $as_echo "no" >&6; }
33151       tst_allow_inet_ntoa_r="no"
33152     fi
33153   fi
33154   #
33155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
33156 $as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
33157   if test "$tst_links_inet_ntoa_r" = "yes" &&
33158      test "$tst_proto_inet_ntoa_r" = "yes" &&
33159      test "$tst_compi_inet_ntoa_r" = "yes" &&
33160      test "$tst_allow_inet_ntoa_r" = "yes"; then
33161     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33162 $as_echo "yes" >&6; }
33163
33164 cat >>confdefs.h <<_ACEOF
33165 #define HAVE_INET_NTOA_R 1
33166 _ACEOF
33167
33168             #
33169     if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
33170
33171 $as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
33172
33173     elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
33174
33175 $as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
33176
33177     fi
33178     #
33179     ac_cv_func_inet_ntoa_r="yes"
33180   else
33181     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33182 $as_echo "no" >&6; }
33183     ac_cv_func_inet_ntoa_r="no"
33184   fi
33185
33186
33187         #
33188   tst_links_inet_ntop="unknown"
33189   tst_proto_inet_ntop="unknown"
33190   tst_compi_inet_ntop="unknown"
33191   tst_works_inet_ntop="unknown"
33192   tst_allow_inet_ntop="unknown"
33193   #
33194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
33195 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
33196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33197 /* end confdefs.h.  */
33198
33199
33200 #define inet_ntop innocuous_inet_ntop
33201 #ifdef __STDC__
33202 # include <limits.h>
33203 #else
33204 # include <assert.h>
33205 #endif
33206 #undef inet_ntop
33207 #ifdef __cplusplus
33208 extern "C"
33209 #endif
33210 char inet_ntop ();
33211 #if defined __stub_inet_ntop || defined __stub___inet_ntop
33212 choke me
33213 #endif
33214
33215 int main (void)
33216 {
33217 return inet_ntop ();
33218  ;
33219  return 0;
33220 }
33221
33222 _ACEOF
33223 if ac_fn_c_try_link "$LINENO"; then :
33224
33225     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33226 $as_echo "yes" >&6; }
33227     tst_links_inet_ntop="yes"
33228
33229 else
33230
33231     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33232 $as_echo "no" >&6; }
33233     tst_links_inet_ntop="no"
33234
33235 fi
33236 rm -f core conftest.err conftest.$ac_objext \
33237     conftest$ac_exeext conftest.$ac_ext
33238   #
33239   if test "$tst_links_inet_ntop" = "yes"; then
33240     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
33241 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
33242     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33243 /* end confdefs.h.  */
33244
33245       $curl_includes_arpa_inet
33246
33247 _ACEOF
33248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33249   $EGREP "inet_ntop" >/dev/null 2>&1; then :
33250
33251       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33252 $as_echo "yes" >&6; }
33253       tst_proto_inet_ntop="yes"
33254
33255 else
33256
33257       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33258 $as_echo "no" >&6; }
33259       tst_proto_inet_ntop="no"
33260
33261 fi
33262 rm -f conftest*
33263
33264   fi
33265   #
33266   if test "$tst_proto_inet_ntop" = "yes"; then
33267     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
33268 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
33269     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33270 /* end confdefs.h.  */
33271
33272
33273         $curl_includes_arpa_inet
33274
33275 int main (void)
33276 {
33277
33278         if(0 != inet_ntop(0, 0, 0, 0))
33279           return 1;
33280
33281  ;
33282  return 0;
33283 }
33284
33285 _ACEOF
33286 if ac_fn_c_try_compile "$LINENO"; then :
33287
33288       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33289 $as_echo "yes" >&6; }
33290       tst_compi_inet_ntop="yes"
33291
33292 else
33293
33294       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33295 $as_echo "no" >&6; }
33296       tst_compi_inet_ntop="no"
33297
33298 fi
33299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33300   fi
33301   #
33302     if test "x$cross_compiling" != "xyes" &&
33303     test "$tst_compi_inet_ntop" = "yes"; then
33304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
33305 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
33306     if test "$cross_compiling" = yes; then :
33307   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33309 as_fn_error $? "cannot run test program while cross compiling
33310 See \`config.log' for more details" "$LINENO" 5; }
33311 else
33312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33313 /* end confdefs.h.  */
33314
33315
33316         $curl_includes_stdlib
33317         $curl_includes_arpa_inet
33318         $curl_includes_string
33319
33320 int main (void)
33321 {
33322
33323         char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
33324         char ipv4res[sizeof "255.255.255.255"];
33325         unsigned char ipv6a[26];
33326         unsigned char ipv4a[5];
33327         char *ipv6ptr = 0;
33328         char *ipv4ptr = 0;
33329         /* - */
33330         ipv4res[0] = '\0';
33331         ipv4a[0] = 0xc0;
33332         ipv4a[1] = 0xa8;
33333         ipv4a[2] = 0x64;
33334         ipv4a[3] = 0x01;
33335         ipv4a[4] = 0x01;
33336         /* - */
33337         ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
33338         if(!ipv4ptr)
33339           exit(1); /* fail */
33340         if(ipv4ptr != ipv4res)
33341           exit(1); /* fail */
33342         if(!ipv4ptr[0])
33343           exit(1); /* fail */
33344         if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
33345           exit(1); /* fail */
33346         /* - */
33347         ipv6res[0] = '\0';
33348         memset(ipv6a, 0, sizeof(ipv6a));
33349         ipv6a[0] = 0xfe;
33350         ipv6a[1] = 0x80;
33351         ipv6a[8] = 0x02;
33352         ipv6a[9] = 0x14;
33353         ipv6a[10] = 0x4f;
33354         ipv6a[11] = 0xff;
33355         ipv6a[12] = 0xfe;
33356         ipv6a[13] = 0x0b;
33357         ipv6a[14] = 0x76;
33358         ipv6a[15] = 0xc8;
33359         ipv6a[25] = 0x01;
33360         /* - */
33361         ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
33362         if(!ipv6ptr)
33363           exit(1); /* fail */
33364         if(ipv6ptr != ipv6res)
33365           exit(1); /* fail */
33366         if(!ipv6ptr[0])
33367           exit(1); /* fail */
33368         if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
33369           exit(1); /* fail */
33370         /* - */
33371         exit(0);
33372
33373  ;
33374  return 0;
33375 }
33376
33377 _ACEOF
33378 if ac_fn_c_try_run "$LINENO"; then :
33379
33380       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33381 $as_echo "yes" >&6; }
33382       tst_works_inet_ntop="yes"
33383
33384 else
33385
33386       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33387 $as_echo "no" >&6; }
33388       tst_works_inet_ntop="no"
33389
33390 fi
33391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33392   conftest.$ac_objext conftest.beam conftest.$ac_ext
33393 fi
33394
33395   fi
33396   #
33397   if test "$tst_compi_inet_ntop" = "yes" &&
33398     test "$tst_works_inet_ntop" != "no"; then
33399     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
33400 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
33401     if test "x$curl_disallow_inet_ntop" != "xyes"; then
33402       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33403 $as_echo "yes" >&6; }
33404       tst_allow_inet_ntop="yes"
33405     else
33406       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33407 $as_echo "no" >&6; }
33408       tst_allow_inet_ntop="no"
33409     fi
33410   fi
33411   #
33412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
33413 $as_echo_n "checking if inet_ntop might be used... " >&6; }
33414   if test "$tst_links_inet_ntop" = "yes" &&
33415      test "$tst_proto_inet_ntop" = "yes" &&
33416      test "$tst_compi_inet_ntop" = "yes" &&
33417      test "$tst_allow_inet_ntop" = "yes" &&
33418      test "$tst_works_inet_ntop" != "no"; then
33419     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33420 $as_echo "yes" >&6; }
33421
33422 cat >>confdefs.h <<_ACEOF
33423 #define HAVE_INET_NTOP 1
33424 _ACEOF
33425
33426     ac_cv_func_inet_ntop="yes"
33427   else
33428     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33429 $as_echo "no" >&6; }
33430     ac_cv_func_inet_ntop="no"
33431   fi
33432
33433
33434         #
33435   tst_links_inet_pton="unknown"
33436   tst_proto_inet_pton="unknown"
33437   tst_compi_inet_pton="unknown"
33438   tst_works_inet_pton="unknown"
33439   tst_allow_inet_pton="unknown"
33440   #
33441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
33442 $as_echo_n "checking if inet_pton can be linked... " >&6; }
33443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33444 /* end confdefs.h.  */
33445
33446
33447 #define inet_pton innocuous_inet_pton
33448 #ifdef __STDC__
33449 # include <limits.h>
33450 #else
33451 # include <assert.h>
33452 #endif
33453 #undef inet_pton
33454 #ifdef __cplusplus
33455 extern "C"
33456 #endif
33457 char inet_pton ();
33458 #if defined __stub_inet_pton || defined __stub___inet_pton
33459 choke me
33460 #endif
33461
33462 int main (void)
33463 {
33464 return inet_pton ();
33465  ;
33466  return 0;
33467 }
33468
33469 _ACEOF
33470 if ac_fn_c_try_link "$LINENO"; then :
33471
33472     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33473 $as_echo "yes" >&6; }
33474     tst_links_inet_pton="yes"
33475
33476 else
33477
33478     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33479 $as_echo "no" >&6; }
33480     tst_links_inet_pton="no"
33481
33482 fi
33483 rm -f core conftest.err conftest.$ac_objext \
33484     conftest$ac_exeext conftest.$ac_ext
33485   #
33486   if test "$tst_links_inet_pton" = "yes"; then
33487     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
33488 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
33489     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33490 /* end confdefs.h.  */
33491
33492       $curl_includes_arpa_inet
33493
33494 _ACEOF
33495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33496   $EGREP "inet_pton" >/dev/null 2>&1; then :
33497
33498       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33499 $as_echo "yes" >&6; }
33500       tst_proto_inet_pton="yes"
33501
33502 else
33503
33504       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33505 $as_echo "no" >&6; }
33506       tst_proto_inet_pton="no"
33507
33508 fi
33509 rm -f conftest*
33510
33511   fi
33512   #
33513   if test "$tst_proto_inet_pton" = "yes"; then
33514     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
33515 $as_echo_n "checking if inet_pton is compilable... " >&6; }
33516     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33517 /* end confdefs.h.  */
33518
33519
33520         $curl_includes_arpa_inet
33521
33522 int main (void)
33523 {
33524
33525         if(0 != inet_pton(0, 0, 0))
33526           return 1;
33527
33528  ;
33529  return 0;
33530 }
33531
33532 _ACEOF
33533 if ac_fn_c_try_compile "$LINENO"; then :
33534
33535       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33536 $as_echo "yes" >&6; }
33537       tst_compi_inet_pton="yes"
33538
33539 else
33540
33541       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33542 $as_echo "no" >&6; }
33543       tst_compi_inet_pton="no"
33544
33545 fi
33546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33547   fi
33548   #
33549     if test "x$cross_compiling" != "xyes" &&
33550     test "$tst_compi_inet_pton" = "yes"; then
33551     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
33552 $as_echo_n "checking if inet_pton seems to work... " >&6; }
33553     if test "$cross_compiling" = yes; then :
33554   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33556 as_fn_error $? "cannot run test program while cross compiling
33557 See \`config.log' for more details" "$LINENO" 5; }
33558 else
33559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33560 /* end confdefs.h.  */
33561
33562
33563         $curl_includes_stdlib
33564         $curl_includes_arpa_inet
33565         $curl_includes_string
33566
33567 int main (void)
33568 {
33569
33570         unsigned char ipv6a[16+1];
33571         unsigned char ipv4a[4+1];
33572         const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
33573         const char *ipv4src = "192.168.100.1";
33574         /* - */
33575         memset(ipv4a, 1, sizeof(ipv4a));
33576         if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
33577           exit(1); /* fail */
33578         /* - */
33579         if( (ipv4a[0] != 0xc0) ||
33580             (ipv4a[1] != 0xa8) ||
33581             (ipv4a[2] != 0x64) ||
33582             (ipv4a[3] != 0x01) ||
33583             (ipv4a[4] != 0x01) )
33584           exit(1); /* fail */
33585         /* - */
33586         memset(ipv6a, 1, sizeof(ipv6a));
33587         if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
33588           exit(1); /* fail */
33589         /* - */
33590         if( (ipv6a[0]  != 0xfe) ||
33591             (ipv6a[1]  != 0x80) ||
33592             (ipv6a[8]  != 0x02) ||
33593             (ipv6a[9]  != 0x14) ||
33594             (ipv6a[10] != 0x4f) ||
33595             (ipv6a[11] != 0xff) ||
33596             (ipv6a[12] != 0xfe) ||
33597             (ipv6a[13] != 0x0b) ||
33598             (ipv6a[14] != 0x76) ||
33599             (ipv6a[15] != 0xc8) ||
33600             (ipv6a[16] != 0x01) )
33601           exit(1); /* fail */
33602         /* - */
33603         if( (ipv6a[2]  != 0x0) ||
33604             (ipv6a[3]  != 0x0) ||
33605             (ipv6a[4]  != 0x0) ||
33606             (ipv6a[5]  != 0x0) ||
33607             (ipv6a[6]  != 0x0) ||
33608             (ipv6a[7]  != 0x0) )
33609           exit(1); /* fail */
33610         /* - */
33611         exit(0);
33612
33613  ;
33614  return 0;
33615 }
33616
33617 _ACEOF
33618 if ac_fn_c_try_run "$LINENO"; then :
33619
33620       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33621 $as_echo "yes" >&6; }
33622       tst_works_inet_pton="yes"
33623
33624 else
33625
33626       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33627 $as_echo "no" >&6; }
33628       tst_works_inet_pton="no"
33629
33630 fi
33631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33632   conftest.$ac_objext conftest.beam conftest.$ac_ext
33633 fi
33634
33635   fi
33636   #
33637   if test "$tst_compi_inet_pton" = "yes" &&
33638     test "$tst_works_inet_pton" != "no"; then
33639     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
33640 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
33641     if test "x$curl_disallow_inet_pton" != "xyes"; then
33642       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33643 $as_echo "yes" >&6; }
33644       tst_allow_inet_pton="yes"
33645     else
33646       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33647 $as_echo "no" >&6; }
33648       tst_allow_inet_pton="no"
33649     fi
33650   fi
33651   #
33652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
33653 $as_echo_n "checking if inet_pton might be used... " >&6; }
33654   if test "$tst_links_inet_pton" = "yes" &&
33655      test "$tst_proto_inet_pton" = "yes" &&
33656      test "$tst_compi_inet_pton" = "yes" &&
33657      test "$tst_allow_inet_pton" = "yes" &&
33658      test "$tst_works_inet_pton" != "no"; then
33659     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33660 $as_echo "yes" >&6; }
33661
33662 cat >>confdefs.h <<_ACEOF
33663 #define HAVE_INET_PTON 1
33664 _ACEOF
33665
33666     ac_cv_func_inet_pton="yes"
33667   else
33668     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33669 $as_echo "no" >&6; }
33670     ac_cv_func_inet_pton="no"
33671   fi
33672
33673
33674 curl_includes_stropts="\
33675 /* includes start */
33676 #ifdef HAVE_SYS_TYPES_H
33677 #  include <sys/types.h>
33678 #endif
33679 #ifdef HAVE_UNISTD_H
33680 #  include <unistd.h>
33681 #endif
33682 #ifdef HAVE_SYS_SOCKET_H
33683 #  include <sys/socket.h>
33684 #endif
33685 #ifdef HAVE_SYS_IOCTL_H
33686 #  include <sys/ioctl.h>
33687 #endif
33688 #ifdef HAVE_STROPTS_H
33689 #  include <stropts.h>
33690 #endif
33691 /* includes end */"
33692   for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
33693 do :
33694   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33695 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
33696 "
33697 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33698   cat >>confdefs.h <<_ACEOF
33699 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33700 _ACEOF
33701
33702 fi
33703
33704 done
33705
33706
33707
33708     #
33709   tst_links_ioctl="unknown"
33710   tst_proto_ioctl="unknown"
33711   tst_compi_ioctl="unknown"
33712   tst_allow_ioctl="unknown"
33713   #
33714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
33715 $as_echo_n "checking if ioctl can be linked... " >&6; }
33716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33717 /* end confdefs.h.  */
33718
33719
33720 #define ioctl innocuous_ioctl
33721 #ifdef __STDC__
33722 # include <limits.h>
33723 #else
33724 # include <assert.h>
33725 #endif
33726 #undef ioctl
33727 #ifdef __cplusplus
33728 extern "C"
33729 #endif
33730 char ioctl ();
33731 #if defined __stub_ioctl || defined __stub___ioctl
33732 choke me
33733 #endif
33734
33735 int main (void)
33736 {
33737 return ioctl ();
33738  ;
33739  return 0;
33740 }
33741
33742 _ACEOF
33743 if ac_fn_c_try_link "$LINENO"; then :
33744
33745     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33746 $as_echo "yes" >&6; }
33747     tst_links_ioctl="yes"
33748
33749 else
33750
33751     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33752 $as_echo "no" >&6; }
33753     tst_links_ioctl="no"
33754
33755 fi
33756 rm -f core conftest.err conftest.$ac_objext \
33757     conftest$ac_exeext conftest.$ac_ext
33758   #
33759   if test "$tst_links_ioctl" = "yes"; then
33760     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
33761 $as_echo_n "checking if ioctl is prototyped... " >&6; }
33762     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33763 /* end confdefs.h.  */
33764
33765       $curl_includes_stropts
33766
33767 _ACEOF
33768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33769   $EGREP "ioctl" >/dev/null 2>&1; then :
33770
33771       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33772 $as_echo "yes" >&6; }
33773       tst_proto_ioctl="yes"
33774
33775 else
33776
33777       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33778 $as_echo "no" >&6; }
33779       tst_proto_ioctl="no"
33780
33781 fi
33782 rm -f conftest*
33783
33784   fi
33785   #
33786   if test "$tst_proto_ioctl" = "yes"; then
33787     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
33788 $as_echo_n "checking if ioctl is compilable... " >&6; }
33789     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33790 /* end confdefs.h.  */
33791
33792
33793         $curl_includes_stropts
33794
33795 int main (void)
33796 {
33797
33798         if(0 != ioctl(0, 0, 0))
33799           return 1;
33800
33801  ;
33802  return 0;
33803 }
33804
33805 _ACEOF
33806 if ac_fn_c_try_compile "$LINENO"; then :
33807
33808       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33809 $as_echo "yes" >&6; }
33810       tst_compi_ioctl="yes"
33811
33812 else
33813
33814       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33815 $as_echo "no" >&6; }
33816       tst_compi_ioctl="no"
33817
33818 fi
33819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33820   fi
33821   #
33822   if test "$tst_compi_ioctl" = "yes"; then
33823     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
33824 $as_echo_n "checking if ioctl usage allowed... " >&6; }
33825     if test "x$curl_disallow_ioctl" != "xyes"; then
33826       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33827 $as_echo "yes" >&6; }
33828       tst_allow_ioctl="yes"
33829     else
33830       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33831 $as_echo "no" >&6; }
33832       tst_allow_ioctl="no"
33833     fi
33834   fi
33835   #
33836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
33837 $as_echo_n "checking if ioctl might be used... " >&6; }
33838   if test "$tst_links_ioctl" = "yes" &&
33839      test "$tst_proto_ioctl" = "yes" &&
33840      test "$tst_compi_ioctl" = "yes" &&
33841      test "$tst_allow_ioctl" = "yes"; then
33842     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33843 $as_echo "yes" >&6; }
33844
33845 cat >>confdefs.h <<_ACEOF
33846 #define HAVE_IOCTL 1
33847 _ACEOF
33848
33849     ac_cv_func_ioctl="yes"
33850
33851   #
33852   tst_compi_ioctl_fionbio="unknown"
33853   tst_allow_ioctl_fionbio="unknown"
33854   #
33855   if test "$ac_cv_func_ioctl" = "yes"; then
33856     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
33857 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
33858     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33859 /* end confdefs.h.  */
33860
33861
33862         $curl_includes_stropts
33863
33864 int main (void)
33865 {
33866
33867         int flags = 0;
33868         if(0 != ioctl(0, FIONBIO, &flags))
33869           return 1;
33870
33871  ;
33872  return 0;
33873 }
33874
33875 _ACEOF
33876 if ac_fn_c_try_compile "$LINENO"; then :
33877
33878       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33879 $as_echo "yes" >&6; }
33880       tst_compi_ioctl_fionbio="yes"
33881
33882 else
33883
33884       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33885 $as_echo "no" >&6; }
33886       tst_compi_ioctl_fionbio="no"
33887
33888 fi
33889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33890   fi
33891   #
33892   if test "$tst_compi_ioctl_fionbio" = "yes"; then
33893     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
33894 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
33895     if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
33896       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33897 $as_echo "yes" >&6; }
33898       tst_allow_ioctl_fionbio="yes"
33899     else
33900       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33901 $as_echo "no" >&6; }
33902       tst_allow_ioctl_fionbio="no"
33903     fi
33904   fi
33905   #
33906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
33907 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
33908   if test "$tst_compi_ioctl_fionbio" = "yes" &&
33909      test "$tst_allow_ioctl_fionbio" = "yes"; then
33910     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33911 $as_echo "yes" >&6; }
33912
33913 cat >>confdefs.h <<_ACEOF
33914 #define HAVE_IOCTL_FIONBIO 1
33915 _ACEOF
33916
33917     ac_cv_func_ioctl_fionbio="yes"
33918   else
33919     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33920 $as_echo "no" >&6; }
33921     ac_cv_func_ioctl_fionbio="no"
33922   fi
33923
33924
33925   #
33926   tst_compi_ioctl_siocgifaddr="unknown"
33927   tst_allow_ioctl_siocgifaddr="unknown"
33928   #
33929   if test "$ac_cv_func_ioctl" = "yes"; then
33930     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
33931 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
33932     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33933 /* end confdefs.h.  */
33934
33935
33936         $curl_includes_stropts
33937         #include <net/if.h>
33938
33939 int main (void)
33940 {
33941
33942         struct ifreq ifr;
33943         if(0 != ioctl(0, SIOCGIFADDR, &ifr))
33944           return 1;
33945
33946  ;
33947  return 0;
33948 }
33949
33950 _ACEOF
33951 if ac_fn_c_try_compile "$LINENO"; then :
33952
33953       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33954 $as_echo "yes" >&6; }
33955       tst_compi_ioctl_siocgifaddr="yes"
33956
33957 else
33958
33959       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33960 $as_echo "no" >&6; }
33961       tst_compi_ioctl_siocgifaddr="no"
33962
33963 fi
33964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33965   fi
33966   #
33967   if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
33968     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
33969 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
33970     if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
33971       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33972 $as_echo "yes" >&6; }
33973       tst_allow_ioctl_siocgifaddr="yes"
33974     else
33975       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33976 $as_echo "no" >&6; }
33977       tst_allow_ioctl_siocgifaddr="no"
33978     fi
33979   fi
33980   #
33981   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
33982 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
33983   if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
33984      test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
33985     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33986 $as_echo "yes" >&6; }
33987
33988 cat >>confdefs.h <<_ACEOF
33989 #define HAVE_IOCTL_SIOCGIFADDR 1
33990 _ACEOF
33991
33992     ac_cv_func_ioctl_siocgifaddr="yes"
33993   else
33994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33995 $as_echo "no" >&6; }
33996     ac_cv_func_ioctl_siocgifaddr="no"
33997   fi
33998
33999   else
34000     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34001 $as_echo "no" >&6; }
34002     ac_cv_func_ioctl="no"
34003   fi
34004
34005
34006     #
34007   tst_links_ioctlsocket="unknown"
34008   tst_proto_ioctlsocket="unknown"
34009   tst_compi_ioctlsocket="unknown"
34010   tst_allow_ioctlsocket="unknown"
34011   #
34012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
34013 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
34014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34015 /* end confdefs.h.  */
34016
34017
34018       $curl_includes_winsock2
34019
34020 int main (void)
34021 {
34022
34023       if(0 != ioctlsocket(0, 0, 0))
34024         return 1;
34025
34026  ;
34027  return 0;
34028 }
34029
34030 _ACEOF
34031 if ac_fn_c_try_link "$LINENO"; then :
34032
34033     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34034 $as_echo "yes" >&6; }
34035     tst_links_ioctlsocket="yes"
34036
34037 else
34038
34039     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34040 $as_echo "no" >&6; }
34041     tst_links_ioctlsocket="no"
34042
34043 fi
34044 rm -f core conftest.err conftest.$ac_objext \
34045     conftest$ac_exeext conftest.$ac_ext
34046   #
34047   if test "$tst_links_ioctlsocket" = "yes"; then
34048     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
34049 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
34050     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34051 /* end confdefs.h.  */
34052
34053       $curl_includes_winsock2
34054
34055 _ACEOF
34056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34057   $EGREP "ioctlsocket" >/dev/null 2>&1; then :
34058
34059       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34060 $as_echo "yes" >&6; }
34061       tst_proto_ioctlsocket="yes"
34062
34063 else
34064
34065       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34066 $as_echo "no" >&6; }
34067       tst_proto_ioctlsocket="no"
34068
34069 fi
34070 rm -f conftest*
34071
34072   fi
34073   #
34074   if test "$tst_proto_ioctlsocket" = "yes"; then
34075     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
34076 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
34077     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34078 /* end confdefs.h.  */
34079
34080
34081         $curl_includes_winsock2
34082
34083 int main (void)
34084 {
34085
34086         if(0 != ioctlsocket(0, 0, 0))
34087           return 1;
34088
34089  ;
34090  return 0;
34091 }
34092
34093 _ACEOF
34094 if ac_fn_c_try_compile "$LINENO"; then :
34095
34096       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34097 $as_echo "yes" >&6; }
34098       tst_compi_ioctlsocket="yes"
34099
34100 else
34101
34102       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34103 $as_echo "no" >&6; }
34104       tst_compi_ioctlsocket="no"
34105
34106 fi
34107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34108   fi
34109   #
34110   if test "$tst_compi_ioctlsocket" = "yes"; then
34111     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
34112 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
34113     if test "x$curl_disallow_ioctlsocket" != "xyes"; then
34114       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34115 $as_echo "yes" >&6; }
34116       tst_allow_ioctlsocket="yes"
34117     else
34118       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34119 $as_echo "no" >&6; }
34120       tst_allow_ioctlsocket="no"
34121     fi
34122   fi
34123   #
34124   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
34125 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
34126   if test "$tst_links_ioctlsocket" = "yes" &&
34127      test "$tst_proto_ioctlsocket" = "yes" &&
34128      test "$tst_compi_ioctlsocket" = "yes" &&
34129      test "$tst_allow_ioctlsocket" = "yes"; then
34130     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34131 $as_echo "yes" >&6; }
34132
34133 cat >>confdefs.h <<_ACEOF
34134 #define HAVE_IOCTLSOCKET 1
34135 _ACEOF
34136
34137     ac_cv_func_ioctlsocket="yes"
34138
34139   #
34140   tst_compi_ioctlsocket_fionbio="unknown"
34141   tst_allow_ioctlsocket_fionbio="unknown"
34142   #
34143   if test "$ac_cv_func_ioctlsocket" = "yes"; then
34144     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
34145 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
34146     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34147 /* end confdefs.h.  */
34148
34149
34150         $curl_includes_winsock2
34151
34152 int main (void)
34153 {
34154
34155         int flags = 0;
34156         if(0 != ioctlsocket(0, FIONBIO, &flags))
34157           return 1;
34158
34159  ;
34160  return 0;
34161 }
34162
34163 _ACEOF
34164 if ac_fn_c_try_compile "$LINENO"; then :
34165
34166       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34167 $as_echo "yes" >&6; }
34168       tst_compi_ioctlsocket_fionbio="yes"
34169
34170 else
34171
34172       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34173 $as_echo "no" >&6; }
34174       tst_compi_ioctlsocket_fionbio="no"
34175
34176 fi
34177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34178   fi
34179   #
34180   if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
34181     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
34182 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
34183     if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
34184       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34185 $as_echo "yes" >&6; }
34186       tst_allow_ioctlsocket_fionbio="yes"
34187     else
34188       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34189 $as_echo "no" >&6; }
34190       tst_allow_ioctlsocket_fionbio="no"
34191     fi
34192   fi
34193   #
34194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
34195 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
34196   if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
34197      test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
34198     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34199 $as_echo "yes" >&6; }
34200
34201 cat >>confdefs.h <<_ACEOF
34202 #define HAVE_IOCTLSOCKET_FIONBIO 1
34203 _ACEOF
34204
34205     ac_cv_func_ioctlsocket_fionbio="yes"
34206   else
34207     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34208 $as_echo "no" >&6; }
34209     ac_cv_func_ioctlsocket_fionbio="no"
34210   fi
34211
34212   else
34213     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34214 $as_echo "no" >&6; }
34215     ac_cv_func_ioctlsocket="no"
34216   fi
34217
34218
34219     #
34220   tst_links_ioctlsocket_camel="unknown"
34221   tst_proto_ioctlsocket_camel="unknown"
34222   tst_compi_ioctlsocket_camel="unknown"
34223   tst_allow_ioctlsocket_camel="unknown"
34224   #
34225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
34226 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
34227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34228 /* end confdefs.h.  */
34229
34230
34231 #define IoctlSocket innocuous_IoctlSocket
34232 #ifdef __STDC__
34233 # include <limits.h>
34234 #else
34235 # include <assert.h>
34236 #endif
34237 #undef IoctlSocket
34238 #ifdef __cplusplus
34239 extern "C"
34240 #endif
34241 char IoctlSocket ();
34242 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
34243 choke me
34244 #endif
34245
34246 int main (void)
34247 {
34248 return IoctlSocket ();
34249  ;
34250  return 0;
34251 }
34252
34253 _ACEOF
34254 if ac_fn_c_try_link "$LINENO"; then :
34255
34256     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34257 $as_echo "yes" >&6; }
34258     tst_links_ioctlsocket_camel="yes"
34259
34260 else
34261
34262     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34263 $as_echo "no" >&6; }
34264     tst_links_ioctlsocket_camel="no"
34265
34266 fi
34267 rm -f core conftest.err conftest.$ac_objext \
34268     conftest$ac_exeext conftest.$ac_ext
34269   #
34270   if test "$tst_links_ioctlsocket_camel" = "yes"; then
34271     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
34272 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
34273     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34274 /* end confdefs.h.  */
34275
34276       $curl_includes_stropts
34277
34278 _ACEOF
34279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34280   $EGREP "IoctlSocket" >/dev/null 2>&1; then :
34281
34282       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34283 $as_echo "yes" >&6; }
34284       tst_proto_ioctlsocket_camel="yes"
34285
34286 else
34287
34288       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34289 $as_echo "no" >&6; }
34290       tst_proto_ioctlsocket_camel="no"
34291
34292 fi
34293 rm -f conftest*
34294
34295   fi
34296   #
34297   if test "$tst_proto_ioctlsocket_camel" = "yes"; then
34298     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
34299 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
34300     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34301 /* end confdefs.h.  */
34302
34303
34304         $curl_includes_stropts
34305
34306 int main (void)
34307 {
34308
34309         if(0 != IoctlSocket(0, 0, 0))
34310           return 1;
34311
34312  ;
34313  return 0;
34314 }
34315
34316 _ACEOF
34317 if ac_fn_c_try_compile "$LINENO"; then :
34318
34319       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34320 $as_echo "yes" >&6; }
34321       tst_compi_ioctlsocket_camel="yes"
34322
34323 else
34324
34325       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34326 $as_echo "no" >&6; }
34327       tst_compi_ioctlsocket_camel="no"
34328
34329 fi
34330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34331   fi
34332   #
34333   if test "$tst_compi_ioctlsocket_camel" = "yes"; then
34334     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
34335 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
34336     if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
34337       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34338 $as_echo "yes" >&6; }
34339       tst_allow_ioctlsocket_camel="yes"
34340     else
34341       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34342 $as_echo "no" >&6; }
34343       tst_allow_ioctlsocket_camel="no"
34344     fi
34345   fi
34346   #
34347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
34348 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
34349   if test "$tst_links_ioctlsocket_camel" = "yes" &&
34350      test "$tst_proto_ioctlsocket_camel" = "yes" &&
34351      test "$tst_compi_ioctlsocket_camel" = "yes" &&
34352      test "$tst_allow_ioctlsocket_camel" = "yes"; then
34353     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34354 $as_echo "yes" >&6; }
34355
34356 cat >>confdefs.h <<_ACEOF
34357 #define HAVE_IOCTLSOCKET_CAMEL 1
34358 _ACEOF
34359
34360     ac_cv_func_ioctlsocket_camel="yes"
34361
34362   #
34363   tst_compi_ioctlsocket_camel_fionbio="unknown"
34364   tst_allow_ioctlsocket_camel_fionbio="unknown"
34365   #
34366   if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then
34367     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
34368 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
34369     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34370 /* end confdefs.h.  */
34371
34372
34373         $curl_includes_stropts
34374
34375 int main (void)
34376 {
34377
34378         long flags = 0;
34379         if(0 != ioctlsocket(0, FIONBIO, &flags))
34380           return 1;
34381
34382  ;
34383  return 0;
34384 }
34385
34386 _ACEOF
34387 if ac_fn_c_try_compile "$LINENO"; then :
34388
34389       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34390 $as_echo "yes" >&6; }
34391       tst_compi_ioctlsocket_camel_fionbio="yes"
34392
34393 else
34394
34395       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34396 $as_echo "no" >&6; }
34397       tst_compi_ioctlsocket_camel_fionbio="no"
34398
34399 fi
34400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34401   fi
34402   #
34403   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
34404     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
34405 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
34406     if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
34407       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34408 $as_echo "yes" >&6; }
34409       tst_allow_ioctlsocket_camel_fionbio="yes"
34410     else
34411       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34412 $as_echo "no" >&6; }
34413       tst_allow_ioctlsocket_camel_fionbio="no"
34414     fi
34415   fi
34416   #
34417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
34418 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
34419   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
34420      test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
34421     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34422 $as_echo "yes" >&6; }
34423
34424 cat >>confdefs.h <<_ACEOF
34425 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
34426 _ACEOF
34427
34428     ac_cv_func_ioctlsocket_camel_fionbio="yes"
34429   else
34430     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34431 $as_echo "no" >&6; }
34432     ac_cv_func_ioctlsocket_camel_fionbio="no"
34433   fi
34434
34435   else
34436     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34437 $as_echo "no" >&6; }
34438     ac_cv_func_ioctlsocket_camel="no"
34439   fi
34440
34441
34442       #
34443   tst_links_localtime_r="unknown"
34444   tst_proto_localtime_r="unknown"
34445   tst_compi_localtime_r="unknown"
34446   tst_works_localtime_r="unknown"
34447   tst_allow_localtime_r="unknown"
34448   #
34449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
34450 $as_echo_n "checking if localtime_r can be linked... " >&6; }
34451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34452 /* end confdefs.h.  */
34453
34454
34455 #define localtime_r innocuous_localtime_r
34456 #ifdef __STDC__
34457 # include <limits.h>
34458 #else
34459 # include <assert.h>
34460 #endif
34461 #undef localtime_r
34462 #ifdef __cplusplus
34463 extern "C"
34464 #endif
34465 char localtime_r ();
34466 #if defined __stub_localtime_r || defined __stub___localtime_r
34467 choke me
34468 #endif
34469
34470 int main (void)
34471 {
34472 return localtime_r ();
34473  ;
34474  return 0;
34475 }
34476
34477 _ACEOF
34478 if ac_fn_c_try_link "$LINENO"; then :
34479
34480     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34481 $as_echo "yes" >&6; }
34482     tst_links_localtime_r="yes"
34483
34484 else
34485
34486     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34487 $as_echo "no" >&6; }
34488     tst_links_localtime_r="no"
34489
34490 fi
34491 rm -f core conftest.err conftest.$ac_objext \
34492     conftest$ac_exeext conftest.$ac_ext
34493   #
34494   if test "$tst_links_localtime_r" = "yes"; then
34495     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
34496 $as_echo_n "checking if localtime_r is prototyped... " >&6; }
34497     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34498 /* end confdefs.h.  */
34499
34500       $curl_includes_time
34501
34502 _ACEOF
34503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34504   $EGREP "localtime_r" >/dev/null 2>&1; then :
34505
34506       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34507 $as_echo "yes" >&6; }
34508       tst_proto_localtime_r="yes"
34509
34510 else
34511
34512       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34513 $as_echo "no" >&6; }
34514       tst_proto_localtime_r="no"
34515
34516 fi
34517 rm -f conftest*
34518
34519   fi
34520   #
34521   if test "$tst_proto_localtime_r" = "yes"; then
34522     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
34523 $as_echo_n "checking if localtime_r is compilable... " >&6; }
34524     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34525 /* end confdefs.h.  */
34526
34527
34528         $curl_includes_time
34529
34530 int main (void)
34531 {
34532
34533         if(0 != localtime_r(0, 0))
34534           return 1;
34535
34536  ;
34537  return 0;
34538 }
34539
34540 _ACEOF
34541 if ac_fn_c_try_compile "$LINENO"; then :
34542
34543       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34544 $as_echo "yes" >&6; }
34545       tst_compi_localtime_r="yes"
34546
34547 else
34548
34549       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34550 $as_echo "no" >&6; }
34551       tst_compi_localtime_r="no"
34552
34553 fi
34554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34555   fi
34556   #
34557     if test "x$cross_compiling" != "xyes" &&
34558     test "$tst_compi_localtime_r" = "yes"; then
34559     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
34560 $as_echo_n "checking if localtime_r seems to work... " >&6; }
34561     if test "$cross_compiling" = yes; then :
34562   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34564 as_fn_error $? "cannot run test program while cross compiling
34565 See \`config.log' for more details" "$LINENO" 5; }
34566 else
34567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34568 /* end confdefs.h.  */
34569
34570
34571         $curl_includes_stdlib
34572         $curl_includes_time
34573
34574 int main (void)
34575 {
34576
34577         time_t clock = 1170352587;
34578         struct tm *tmp = 0;
34579         struct tm result;
34580         tmp = localtime_r(&clock, &result);
34581         if(tmp)
34582           exit(0);
34583         else
34584           exit(1);
34585
34586  ;
34587  return 0;
34588 }
34589
34590 _ACEOF
34591 if ac_fn_c_try_run "$LINENO"; then :
34592
34593       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34594 $as_echo "yes" >&6; }
34595       tst_works_localtime_r="yes"
34596
34597 else
34598
34599       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34600 $as_echo "no" >&6; }
34601       tst_works_localtime_r="no"
34602
34603 fi
34604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34605   conftest.$ac_objext conftest.beam conftest.$ac_ext
34606 fi
34607
34608   fi
34609   #
34610   if test "$tst_compi_localtime_r" = "yes" &&
34611     test "$tst_works_localtime_r" != "no"; then
34612     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
34613 $as_echo_n "checking if localtime_r usage allowed... " >&6; }
34614     if test "x$curl_disallow_localtime_r" != "xyes"; then
34615       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34616 $as_echo "yes" >&6; }
34617       tst_allow_localtime_r="yes"
34618     else
34619       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34620 $as_echo "no" >&6; }
34621       tst_allow_localtime_r="no"
34622     fi
34623   fi
34624   #
34625   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
34626 $as_echo_n "checking if localtime_r might be used... " >&6; }
34627   if test "$tst_links_localtime_r" = "yes" &&
34628      test "$tst_proto_localtime_r" = "yes" &&
34629      test "$tst_compi_localtime_r" = "yes" &&
34630      test "$tst_allow_localtime_r" = "yes" &&
34631      test "$tst_works_localtime_r" != "no"; then
34632     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34633 $as_echo "yes" >&6; }
34634
34635 cat >>confdefs.h <<_ACEOF
34636 #define HAVE_LOCALTIME_R 1
34637 _ACEOF
34638
34639     ac_cv_func_localtime_r="yes"
34640   else
34641     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34642 $as_echo "no" >&6; }
34643     ac_cv_func_localtime_r="no"
34644   fi
34645
34646
34647     #
34648   tst_links_memrchr="unknown"
34649   tst_macro_memrchr="unknown"
34650   tst_proto_memrchr="unknown"
34651   tst_compi_memrchr="unknown"
34652   tst_allow_memrchr="unknown"
34653   #
34654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
34655 $as_echo_n "checking if memrchr can be linked... " >&6; }
34656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34657 /* end confdefs.h.  */
34658
34659
34660 #define memrchr innocuous_memrchr
34661 #ifdef __STDC__
34662 # include <limits.h>
34663 #else
34664 # include <assert.h>
34665 #endif
34666 #undef memrchr
34667 #ifdef __cplusplus
34668 extern "C"
34669 #endif
34670 char memrchr ();
34671 #if defined __stub_memrchr || defined __stub___memrchr
34672 choke me
34673 #endif
34674
34675 int main (void)
34676 {
34677 return memrchr ();
34678  ;
34679  return 0;
34680 }
34681
34682 _ACEOF
34683 if ac_fn_c_try_link "$LINENO"; then :
34684
34685     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34686 $as_echo "yes" >&6; }
34687     tst_links_memrchr="yes"
34688
34689 else
34690
34691     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34692 $as_echo "no" >&6; }
34693     tst_links_memrchr="no"
34694
34695 fi
34696 rm -f core conftest.err conftest.$ac_objext \
34697     conftest$ac_exeext conftest.$ac_ext
34698   #
34699   if test "$tst_links_memrchr" = "no"; then
34700     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
34701 $as_echo_n "checking if memrchr seems a macro... " >&6; }
34702     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34703 /* end confdefs.h.  */
34704
34705
34706         $curl_includes_string
34707
34708 int main (void)
34709 {
34710
34711         if(0 != memrchr(0, 0, 0))
34712           return 1;
34713
34714  ;
34715  return 0;
34716 }
34717
34718 _ACEOF
34719 if ac_fn_c_try_link "$LINENO"; then :
34720
34721       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34722 $as_echo "yes" >&6; }
34723       tst_macro_memrchr="yes"
34724
34725 else
34726
34727       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34728 $as_echo "no" >&6; }
34729       tst_macro_memrchr="no"
34730
34731 fi
34732 rm -f core conftest.err conftest.$ac_objext \
34733     conftest$ac_exeext conftest.$ac_ext
34734   fi
34735   #
34736   if test "$tst_links_memrchr" = "yes"; then
34737     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
34738 $as_echo_n "checking if memrchr is prototyped... " >&6; }
34739     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34740 /* end confdefs.h.  */
34741
34742       $curl_includes_string
34743
34744 _ACEOF
34745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34746   $EGREP "memrchr" >/dev/null 2>&1; then :
34747
34748       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34749 $as_echo "yes" >&6; }
34750       tst_proto_memrchr="yes"
34751
34752 else
34753
34754       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34755 $as_echo "no" >&6; }
34756       tst_proto_memrchr="no"
34757
34758 fi
34759 rm -f conftest*
34760
34761   fi
34762   #
34763   if test "$tst_proto_memrchr" = "yes" ||
34764      test "$tst_macro_memrchr" = "yes"; then
34765     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
34766 $as_echo_n "checking if memrchr is compilable... " >&6; }
34767     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34768 /* end confdefs.h.  */
34769
34770
34771         $curl_includes_string
34772
34773 int main (void)
34774 {
34775
34776         if(0 != memrchr(0, 0, 0))
34777           return 1;
34778
34779  ;
34780  return 0;
34781 }
34782
34783 _ACEOF
34784 if ac_fn_c_try_compile "$LINENO"; then :
34785
34786       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34787 $as_echo "yes" >&6; }
34788       tst_compi_memrchr="yes"
34789
34790 else
34791
34792       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34793 $as_echo "no" >&6; }
34794       tst_compi_memrchr="no"
34795
34796 fi
34797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34798   fi
34799   #
34800   if test "$tst_compi_memrchr" = "yes"; then
34801     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
34802 $as_echo_n "checking if memrchr usage allowed... " >&6; }
34803     if test "x$curl_disallow_memrchr" != "xyes"; then
34804       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34805 $as_echo "yes" >&6; }
34806       tst_allow_memrchr="yes"
34807     else
34808       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34809 $as_echo "no" >&6; }
34810       tst_allow_memrchr="no"
34811     fi
34812   fi
34813   #
34814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
34815 $as_echo_n "checking if memrchr might be used... " >&6; }
34816   if (test "$tst_proto_memrchr" = "yes" ||
34817       test "$tst_macro_memrchr" = "yes") &&
34818      test "$tst_compi_memrchr" = "yes" &&
34819      test "$tst_allow_memrchr" = "yes"; then
34820     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34821 $as_echo "yes" >&6; }
34822
34823 cat >>confdefs.h <<_ACEOF
34824 #define HAVE_MEMRCHR 1
34825 _ACEOF
34826
34827     ac_cv_func_memrchr="yes"
34828   else
34829     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34830 $as_echo "no" >&6; }
34831     ac_cv_func_memrchr="no"
34832   fi
34833
34834
34835       #
34836   tst_links_poll="unknown"
34837   tst_proto_poll="unknown"
34838   tst_compi_poll="unknown"
34839   tst_works_poll="unknown"
34840   tst_allow_poll="unknown"
34841   #
34842   case $host_os in
34843     darwin[123456789].*|darwin10.*|darwin11.*|darwin12.*|interix*)
34844                               curl_disallow_poll="yes"
34845       ;;
34846   esac
34847   #
34848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
34849 $as_echo_n "checking if poll can be linked... " >&6; }
34850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34851 /* end confdefs.h.  */
34852
34853
34854       $curl_includes_poll
34855
34856 int main (void)
34857 {
34858
34859       if(0 != poll(0, 0, 0))
34860         return 1;
34861
34862  ;
34863  return 0;
34864 }
34865
34866 _ACEOF
34867 if ac_fn_c_try_link "$LINENO"; then :
34868
34869     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34870 $as_echo "yes" >&6; }
34871     tst_links_poll="yes"
34872
34873 else
34874
34875     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34876 $as_echo "no" >&6; }
34877     tst_links_poll="no"
34878
34879 fi
34880 rm -f core conftest.err conftest.$ac_objext \
34881     conftest$ac_exeext conftest.$ac_ext
34882   #
34883   if test "$tst_links_poll" = "yes"; then
34884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
34885 $as_echo_n "checking if poll is prototyped... " >&6; }
34886     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34887 /* end confdefs.h.  */
34888
34889       $curl_includes_poll
34890
34891 _ACEOF
34892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34893   $EGREP "poll" >/dev/null 2>&1; then :
34894
34895       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34896 $as_echo "yes" >&6; }
34897       tst_proto_poll="yes"
34898
34899 else
34900
34901       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34902 $as_echo "no" >&6; }
34903       tst_proto_poll="no"
34904
34905 fi
34906 rm -f conftest*
34907
34908   fi
34909   #
34910   if test "$tst_proto_poll" = "yes"; then
34911     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
34912 $as_echo_n "checking if poll is compilable... " >&6; }
34913     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34914 /* end confdefs.h.  */
34915
34916
34917         $curl_includes_poll
34918
34919 int main (void)
34920 {
34921
34922         if(0 != poll(0, 0, 0))
34923           return 1;
34924
34925  ;
34926  return 0;
34927 }
34928
34929 _ACEOF
34930 if ac_fn_c_try_compile "$LINENO"; then :
34931
34932       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34933 $as_echo "yes" >&6; }
34934       tst_compi_poll="yes"
34935
34936 else
34937
34938       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34939 $as_echo "no" >&6; }
34940       tst_compi_poll="no"
34941
34942 fi
34943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34944   fi
34945   #
34946     if test "x$cross_compiling" != "xyes" &&
34947     test "$tst_compi_poll" = "yes"; then
34948     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
34949 $as_echo_n "checking if poll seems to work... " >&6; }
34950     if test "$cross_compiling" = yes; then :
34951   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34953 as_fn_error $? "cannot run test program while cross compiling
34954 See \`config.log' for more details" "$LINENO" 5; }
34955 else
34956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34957 /* end confdefs.h.  */
34958
34959
34960         $curl_includes_stdlib
34961         $curl_includes_poll
34962
34963 int main (void)
34964 {
34965
34966         if(0 != poll(0, 0, 10))
34967           exit(1); /* fail */
34968         else
34969           exit(0);
34970
34971  ;
34972  return 0;
34973 }
34974
34975 _ACEOF
34976 if ac_fn_c_try_run "$LINENO"; then :
34977
34978       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34979 $as_echo "yes" >&6; }
34980       tst_works_poll="yes"
34981
34982 else
34983
34984       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34985 $as_echo "no" >&6; }
34986       tst_works_poll="no"
34987
34988 fi
34989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34990   conftest.$ac_objext conftest.beam conftest.$ac_ext
34991 fi
34992
34993   fi
34994   #
34995   if test "$tst_compi_poll" = "yes" &&
34996     test "$tst_works_poll" != "no"; then
34997     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
34998 $as_echo_n "checking if poll usage allowed... " >&6; }
34999     if test "x$curl_disallow_poll" != "xyes"; then
35000       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35001 $as_echo "yes" >&6; }
35002       tst_allow_poll="yes"
35003     else
35004       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35005 $as_echo "no" >&6; }
35006       tst_allow_poll="no"
35007     fi
35008   fi
35009   #
35010   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
35011 $as_echo_n "checking if poll might be used... " >&6; }
35012   if test "$tst_links_poll" = "yes" &&
35013      test "$tst_proto_poll" = "yes" &&
35014      test "$tst_compi_poll" = "yes" &&
35015      test "$tst_allow_poll" = "yes" &&
35016      test "$tst_works_poll" != "no"; then
35017     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35018 $as_echo "yes" >&6; }
35019
35020 cat >>confdefs.h <<_ACEOF
35021 #define HAVE_POLL 1
35022 _ACEOF
35023
35024
35025 cat >>confdefs.h <<_ACEOF
35026 #define HAVE_POLL_FINE 1
35027 _ACEOF
35028
35029     ac_cv_func_poll="yes"
35030   else
35031     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35032 $as_echo "no" >&6; }
35033     ac_cv_func_poll="no"
35034   fi
35035
35036
35037       #
35038   tst_links_setsockopt="unknown"
35039   tst_proto_setsockopt="unknown"
35040   tst_compi_setsockopt="unknown"
35041   tst_allow_setsockopt="unknown"
35042   #
35043   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
35044 $as_echo_n "checking if setsockopt can be linked... " >&6; }
35045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35046 /* end confdefs.h.  */
35047
35048
35049       $curl_includes_winsock2
35050       $curl_includes_sys_socket
35051
35052 int main (void)
35053 {
35054
35055       if(0 != setsockopt(0, 0, 0, 0, 0))
35056         return 1;
35057
35058  ;
35059  return 0;
35060 }
35061
35062 _ACEOF
35063 if ac_fn_c_try_link "$LINENO"; then :
35064
35065     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35066 $as_echo "yes" >&6; }
35067     tst_links_setsockopt="yes"
35068
35069 else
35070
35071     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35072 $as_echo "no" >&6; }
35073     tst_links_setsockopt="no"
35074
35075 fi
35076 rm -f core conftest.err conftest.$ac_objext \
35077     conftest$ac_exeext conftest.$ac_ext
35078   #
35079   if test "$tst_links_setsockopt" = "yes"; then
35080     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
35081 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
35082     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35083 /* end confdefs.h.  */
35084
35085       $curl_includes_winsock2
35086       $curl_includes_sys_socket
35087
35088 _ACEOF
35089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35090   $EGREP "setsockopt" >/dev/null 2>&1; then :
35091
35092       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35093 $as_echo "yes" >&6; }
35094       tst_proto_setsockopt="yes"
35095
35096 else
35097
35098       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35099 $as_echo "no" >&6; }
35100       tst_proto_setsockopt="no"
35101
35102 fi
35103 rm -f conftest*
35104
35105   fi
35106   #
35107   if test "$tst_proto_setsockopt" = "yes"; then
35108     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
35109 $as_echo_n "checking if setsockopt is compilable... " >&6; }
35110     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35111 /* end confdefs.h.  */
35112
35113
35114         $curl_includes_winsock2
35115         $curl_includes_sys_socket
35116
35117 int main (void)
35118 {
35119
35120         if(0 != setsockopt(0, 0, 0, 0, 0))
35121           return 1;
35122
35123  ;
35124  return 0;
35125 }
35126
35127 _ACEOF
35128 if ac_fn_c_try_compile "$LINENO"; then :
35129
35130       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35131 $as_echo "yes" >&6; }
35132       tst_compi_setsockopt="yes"
35133
35134 else
35135
35136       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35137 $as_echo "no" >&6; }
35138       tst_compi_setsockopt="no"
35139
35140 fi
35141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35142   fi
35143   #
35144   if test "$tst_compi_setsockopt" = "yes"; then
35145     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
35146 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
35147     if test "x$curl_disallow_setsockopt" != "xyes"; then
35148       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35149 $as_echo "yes" >&6; }
35150       tst_allow_setsockopt="yes"
35151     else
35152       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35153 $as_echo "no" >&6; }
35154       tst_allow_setsockopt="no"
35155     fi
35156   fi
35157   #
35158   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
35159 $as_echo_n "checking if setsockopt might be used... " >&6; }
35160   if test "$tst_links_setsockopt" = "yes" &&
35161      test "$tst_proto_setsockopt" = "yes" &&
35162      test "$tst_compi_setsockopt" = "yes" &&
35163      test "$tst_allow_setsockopt" = "yes"; then
35164     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35165 $as_echo "yes" >&6; }
35166
35167 cat >>confdefs.h <<_ACEOF
35168 #define HAVE_SETSOCKOPT 1
35169 _ACEOF
35170
35171     ac_cv_func_setsockopt="yes"
35172
35173   #
35174   tst_compi_setsockopt_so_nonblock="unknown"
35175   tst_allow_setsockopt_so_nonblock="unknown"
35176   #
35177   if test "$ac_cv_func_setsockopt" = "yes"; then
35178     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
35179 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
35180     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35181 /* end confdefs.h.  */
35182
35183
35184         $curl_includes_winsock2
35185         $curl_includes_sys_socket
35186
35187 int main (void)
35188 {
35189
35190         if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
35191           return 1;
35192
35193  ;
35194  return 0;
35195 }
35196
35197 _ACEOF
35198 if ac_fn_c_try_compile "$LINENO"; then :
35199
35200       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35201 $as_echo "yes" >&6; }
35202       tst_compi_setsockopt_so_nonblock="yes"
35203
35204 else
35205
35206       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35207 $as_echo "no" >&6; }
35208       tst_compi_setsockopt_so_nonblock="no"
35209
35210 fi
35211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35212   fi
35213   #
35214   if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
35215     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
35216 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
35217     if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
35218       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35219 $as_echo "yes" >&6; }
35220       tst_allow_setsockopt_so_nonblock="yes"
35221     else
35222       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35223 $as_echo "no" >&6; }
35224       tst_allow_setsockopt_so_nonblock="no"
35225     fi
35226   fi
35227   #
35228   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
35229 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
35230   if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
35231      test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
35232     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35233 $as_echo "yes" >&6; }
35234
35235 cat >>confdefs.h <<_ACEOF
35236 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
35237 _ACEOF
35238
35239     ac_cv_func_setsockopt_so_nonblock="yes"
35240   else
35241     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35242 $as_echo "no" >&6; }
35243     ac_cv_func_setsockopt_so_nonblock="no"
35244   fi
35245
35246   else
35247     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35248 $as_echo "no" >&6; }
35249     ac_cv_func_setsockopt="no"
35250   fi
35251
35252
35253 curl_includes_signal="\
35254 /* includes start */
35255 #ifdef HAVE_SYS_TYPES_H
35256 #  include <sys/types.h>
35257 #endif
35258 #ifdef HAVE_SIGNAL_H
35259 #  include <signal.h>
35260 #endif
35261 /* includes end */"
35262   for ac_header in sys/types.h signal.h
35263 do :
35264   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35265 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
35266 "
35267 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35268   cat >>confdefs.h <<_ACEOF
35269 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35270 _ACEOF
35271
35272 fi
35273
35274 done
35275
35276
35277
35278     #
35279   tst_links_sigaction="unknown"
35280   tst_proto_sigaction="unknown"
35281   tst_compi_sigaction="unknown"
35282   tst_allow_sigaction="unknown"
35283   #
35284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
35285 $as_echo_n "checking if sigaction can be linked... " >&6; }
35286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35287 /* end confdefs.h.  */
35288
35289
35290 #define sigaction innocuous_sigaction
35291 #ifdef __STDC__
35292 # include <limits.h>
35293 #else
35294 # include <assert.h>
35295 #endif
35296 #undef sigaction
35297 #ifdef __cplusplus
35298 extern "C"
35299 #endif
35300 char sigaction ();
35301 #if defined __stub_sigaction || defined __stub___sigaction
35302 choke me
35303 #endif
35304
35305 int main (void)
35306 {
35307 return sigaction ();
35308  ;
35309  return 0;
35310 }
35311
35312 _ACEOF
35313 if ac_fn_c_try_link "$LINENO"; then :
35314
35315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35316 $as_echo "yes" >&6; }
35317     tst_links_sigaction="yes"
35318
35319 else
35320
35321     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35322 $as_echo "no" >&6; }
35323     tst_links_sigaction="no"
35324
35325 fi
35326 rm -f core conftest.err conftest.$ac_objext \
35327     conftest$ac_exeext conftest.$ac_ext
35328   #
35329   if test "$tst_links_sigaction" = "yes"; then
35330     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
35331 $as_echo_n "checking if sigaction is prototyped... " >&6; }
35332     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35333 /* end confdefs.h.  */
35334
35335       $curl_includes_signal
35336
35337 _ACEOF
35338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35339   $EGREP "sigaction" >/dev/null 2>&1; then :
35340
35341       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35342 $as_echo "yes" >&6; }
35343       tst_proto_sigaction="yes"
35344
35345 else
35346
35347       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35348 $as_echo "no" >&6; }
35349       tst_proto_sigaction="no"
35350
35351 fi
35352 rm -f conftest*
35353
35354   fi
35355   #
35356   if test "$tst_proto_sigaction" = "yes"; then
35357     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
35358 $as_echo_n "checking if sigaction is compilable... " >&6; }
35359     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35360 /* end confdefs.h.  */
35361
35362
35363         $curl_includes_signal
35364
35365 int main (void)
35366 {
35367
35368         if(0 != sigaction(0, 0, 0))
35369           return 1;
35370
35371  ;
35372  return 0;
35373 }
35374
35375 _ACEOF
35376 if ac_fn_c_try_compile "$LINENO"; then :
35377
35378       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35379 $as_echo "yes" >&6; }
35380       tst_compi_sigaction="yes"
35381
35382 else
35383
35384       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35385 $as_echo "no" >&6; }
35386       tst_compi_sigaction="no"
35387
35388 fi
35389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35390   fi
35391   #
35392   if test "$tst_compi_sigaction" = "yes"; then
35393     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
35394 $as_echo_n "checking if sigaction usage allowed... " >&6; }
35395     if test "x$curl_disallow_sigaction" != "xyes"; then
35396       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35397 $as_echo "yes" >&6; }
35398       tst_allow_sigaction="yes"
35399     else
35400       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35401 $as_echo "no" >&6; }
35402       tst_allow_sigaction="no"
35403     fi
35404   fi
35405   #
35406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
35407 $as_echo_n "checking if sigaction might be used... " >&6; }
35408   if test "$tst_links_sigaction" = "yes" &&
35409      test "$tst_proto_sigaction" = "yes" &&
35410      test "$tst_compi_sigaction" = "yes" &&
35411      test "$tst_allow_sigaction" = "yes"; then
35412     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35413 $as_echo "yes" >&6; }
35414
35415 cat >>confdefs.h <<_ACEOF
35416 #define HAVE_SIGACTION 1
35417 _ACEOF
35418
35419     ac_cv_func_sigaction="yes"
35420   else
35421     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35422 $as_echo "no" >&6; }
35423     ac_cv_func_sigaction="no"
35424   fi
35425
35426
35427     #
35428   tst_links_siginterrupt="unknown"
35429   tst_proto_siginterrupt="unknown"
35430   tst_compi_siginterrupt="unknown"
35431   tst_allow_siginterrupt="unknown"
35432   #
35433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
35434 $as_echo_n "checking if siginterrupt can be linked... " >&6; }
35435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35436 /* end confdefs.h.  */
35437
35438
35439 #define siginterrupt innocuous_siginterrupt
35440 #ifdef __STDC__
35441 # include <limits.h>
35442 #else
35443 # include <assert.h>
35444 #endif
35445 #undef siginterrupt
35446 #ifdef __cplusplus
35447 extern "C"
35448 #endif
35449 char siginterrupt ();
35450 #if defined __stub_siginterrupt || defined __stub___siginterrupt
35451 choke me
35452 #endif
35453
35454 int main (void)
35455 {
35456 return siginterrupt ();
35457  ;
35458  return 0;
35459 }
35460
35461 _ACEOF
35462 if ac_fn_c_try_link "$LINENO"; then :
35463
35464     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35465 $as_echo "yes" >&6; }
35466     tst_links_siginterrupt="yes"
35467
35468 else
35469
35470     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35471 $as_echo "no" >&6; }
35472     tst_links_siginterrupt="no"
35473
35474 fi
35475 rm -f core conftest.err conftest.$ac_objext \
35476     conftest$ac_exeext conftest.$ac_ext
35477   #
35478   if test "$tst_links_siginterrupt" = "yes"; then
35479     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
35480 $as_echo_n "checking if siginterrupt is prototyped... " >&6; }
35481     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35482 /* end confdefs.h.  */
35483
35484       $curl_includes_signal
35485
35486 _ACEOF
35487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35488   $EGREP "siginterrupt" >/dev/null 2>&1; then :
35489
35490       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35491 $as_echo "yes" >&6; }
35492       tst_proto_siginterrupt="yes"
35493
35494 else
35495
35496       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35497 $as_echo "no" >&6; }
35498       tst_proto_siginterrupt="no"
35499
35500 fi
35501 rm -f conftest*
35502
35503   fi
35504   #
35505   if test "$tst_proto_siginterrupt" = "yes"; then
35506     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
35507 $as_echo_n "checking if siginterrupt is compilable... " >&6; }
35508     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35509 /* end confdefs.h.  */
35510
35511
35512         $curl_includes_signal
35513
35514 int main (void)
35515 {
35516
35517         if(0 != siginterrupt(0, 0))
35518           return 1;
35519
35520  ;
35521  return 0;
35522 }
35523
35524 _ACEOF
35525 if ac_fn_c_try_compile "$LINENO"; then :
35526
35527       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35528 $as_echo "yes" >&6; }
35529       tst_compi_siginterrupt="yes"
35530
35531 else
35532
35533       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35534 $as_echo "no" >&6; }
35535       tst_compi_siginterrupt="no"
35536
35537 fi
35538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35539   fi
35540   #
35541   if test "$tst_compi_siginterrupt" = "yes"; then
35542     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
35543 $as_echo_n "checking if siginterrupt usage allowed... " >&6; }
35544     if test "x$curl_disallow_siginterrupt" != "xyes"; then
35545       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35546 $as_echo "yes" >&6; }
35547       tst_allow_siginterrupt="yes"
35548     else
35549       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35550 $as_echo "no" >&6; }
35551       tst_allow_siginterrupt="no"
35552     fi
35553   fi
35554   #
35555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
35556 $as_echo_n "checking if siginterrupt might be used... " >&6; }
35557   if test "$tst_links_siginterrupt" = "yes" &&
35558      test "$tst_proto_siginterrupt" = "yes" &&
35559      test "$tst_compi_siginterrupt" = "yes" &&
35560      test "$tst_allow_siginterrupt" = "yes"; then
35561     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35562 $as_echo "yes" >&6; }
35563
35564 cat >>confdefs.h <<_ACEOF
35565 #define HAVE_SIGINTERRUPT 1
35566 _ACEOF
35567
35568     ac_cv_func_siginterrupt="yes"
35569   else
35570     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35571 $as_echo "no" >&6; }
35572     ac_cv_func_siginterrupt="no"
35573   fi
35574
35575
35576     #
35577   tst_links_signal="unknown"
35578   tst_proto_signal="unknown"
35579   tst_compi_signal="unknown"
35580   tst_allow_signal="unknown"
35581   #
35582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
35583 $as_echo_n "checking if signal can be linked... " >&6; }
35584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35585 /* end confdefs.h.  */
35586
35587
35588 #define signal innocuous_signal
35589 #ifdef __STDC__
35590 # include <limits.h>
35591 #else
35592 # include <assert.h>
35593 #endif
35594 #undef signal
35595 #ifdef __cplusplus
35596 extern "C"
35597 #endif
35598 char signal ();
35599 #if defined __stub_signal || defined __stub___signal
35600 choke me
35601 #endif
35602
35603 int main (void)
35604 {
35605 return signal ();
35606  ;
35607  return 0;
35608 }
35609
35610 _ACEOF
35611 if ac_fn_c_try_link "$LINENO"; then :
35612
35613     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35614 $as_echo "yes" >&6; }
35615     tst_links_signal="yes"
35616
35617 else
35618
35619     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35620 $as_echo "no" >&6; }
35621     tst_links_signal="no"
35622
35623 fi
35624 rm -f core conftest.err conftest.$ac_objext \
35625     conftest$ac_exeext conftest.$ac_ext
35626   #
35627   if test "$tst_links_signal" = "yes"; then
35628     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
35629 $as_echo_n "checking if signal is prototyped... " >&6; }
35630     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35631 /* end confdefs.h.  */
35632
35633       $curl_includes_signal
35634
35635 _ACEOF
35636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35637   $EGREP "signal" >/dev/null 2>&1; then :
35638
35639       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35640 $as_echo "yes" >&6; }
35641       tst_proto_signal="yes"
35642
35643 else
35644
35645       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35646 $as_echo "no" >&6; }
35647       tst_proto_signal="no"
35648
35649 fi
35650 rm -f conftest*
35651
35652   fi
35653   #
35654   if test "$tst_proto_signal" = "yes"; then
35655     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
35656 $as_echo_n "checking if signal is compilable... " >&6; }
35657     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35658 /* end confdefs.h.  */
35659
35660
35661         $curl_includes_signal
35662
35663 int main (void)
35664 {
35665
35666         if(0 != signal(0, 0))
35667           return 1;
35668
35669  ;
35670  return 0;
35671 }
35672
35673 _ACEOF
35674 if ac_fn_c_try_compile "$LINENO"; then :
35675
35676       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35677 $as_echo "yes" >&6; }
35678       tst_compi_signal="yes"
35679
35680 else
35681
35682       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35683 $as_echo "no" >&6; }
35684       tst_compi_signal="no"
35685
35686 fi
35687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35688   fi
35689   #
35690   if test "$tst_compi_signal" = "yes"; then
35691     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
35692 $as_echo_n "checking if signal usage allowed... " >&6; }
35693     if test "x$curl_disallow_signal" != "xyes"; then
35694       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35695 $as_echo "yes" >&6; }
35696       tst_allow_signal="yes"
35697     else
35698       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35699 $as_echo "no" >&6; }
35700       tst_allow_signal="no"
35701     fi
35702   fi
35703   #
35704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
35705 $as_echo_n "checking if signal might be used... " >&6; }
35706   if test "$tst_links_signal" = "yes" &&
35707      test "$tst_proto_signal" = "yes" &&
35708      test "$tst_compi_signal" = "yes" &&
35709      test "$tst_allow_signal" = "yes"; then
35710     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35711 $as_echo "yes" >&6; }
35712
35713 cat >>confdefs.h <<_ACEOF
35714 #define HAVE_SIGNAL 1
35715 _ACEOF
35716
35717     ac_cv_func_signal="yes"
35718   else
35719     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35720 $as_echo "no" >&6; }
35721     ac_cv_func_signal="no"
35722   fi
35723
35724
35725 curl_includes_setjmp="\
35726 /* includes start */
35727 #ifdef HAVE_SYS_TYPES_H
35728 #  include <sys/types.h>
35729 #endif
35730 #ifdef HAVE_SETJMP_H
35731 #  include <setjmp.h>
35732 #endif
35733 /* includes end */"
35734   for ac_header in sys/types.h setjmp.h
35735 do :
35736   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35737 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
35738 "
35739 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35740   cat >>confdefs.h <<_ACEOF
35741 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35742 _ACEOF
35743
35744 fi
35745
35746 done
35747
35748
35749
35750     #
35751   tst_links_sigsetjmp="unknown"
35752   tst_macro_sigsetjmp="unknown"
35753   tst_proto_sigsetjmp="unknown"
35754   tst_compi_sigsetjmp="unknown"
35755   tst_allow_sigsetjmp="unknown"
35756   #
35757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
35758 $as_echo_n "checking if sigsetjmp can be linked... " >&6; }
35759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35760 /* end confdefs.h.  */
35761
35762
35763 #define sigsetjmp innocuous_sigsetjmp
35764 #ifdef __STDC__
35765 # include <limits.h>
35766 #else
35767 # include <assert.h>
35768 #endif
35769 #undef sigsetjmp
35770 #ifdef __cplusplus
35771 extern "C"
35772 #endif
35773 char sigsetjmp ();
35774 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
35775 choke me
35776 #endif
35777
35778 int main (void)
35779 {
35780 return sigsetjmp ();
35781  ;
35782  return 0;
35783 }
35784
35785 _ACEOF
35786 if ac_fn_c_try_link "$LINENO"; then :
35787
35788     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35789 $as_echo "yes" >&6; }
35790     tst_links_sigsetjmp="yes"
35791
35792 else
35793
35794     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35795 $as_echo "no" >&6; }
35796     tst_links_sigsetjmp="no"
35797
35798 fi
35799 rm -f core conftest.err conftest.$ac_objext \
35800     conftest$ac_exeext conftest.$ac_ext
35801   #
35802   if test "$tst_links_sigsetjmp" = "no"; then
35803     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
35804 $as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
35805     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35806 /* end confdefs.h.  */
35807
35808
35809         $curl_includes_setjmp
35810
35811 int main (void)
35812 {
35813
35814         sigjmp_buf env;
35815         if(0 != sigsetjmp(env, 0))
35816           return 1;
35817
35818  ;
35819  return 0;
35820 }
35821
35822 _ACEOF
35823 if ac_fn_c_try_link "$LINENO"; then :
35824
35825       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35826 $as_echo "yes" >&6; }
35827       tst_macro_sigsetjmp="yes"
35828
35829 else
35830
35831       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35832 $as_echo "no" >&6; }
35833       tst_macro_sigsetjmp="no"
35834
35835 fi
35836 rm -f core conftest.err conftest.$ac_objext \
35837     conftest$ac_exeext conftest.$ac_ext
35838   fi
35839   #
35840   if test "$tst_links_sigsetjmp" = "yes"; then
35841     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
35842 $as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
35843     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35844 /* end confdefs.h.  */
35845
35846       $curl_includes_setjmp
35847
35848 _ACEOF
35849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35850   $EGREP "sigsetjmp" >/dev/null 2>&1; then :
35851
35852       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35853 $as_echo "yes" >&6; }
35854       tst_proto_sigsetjmp="yes"
35855
35856 else
35857
35858       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35859 $as_echo "no" >&6; }
35860       tst_proto_sigsetjmp="no"
35861
35862 fi
35863 rm -f conftest*
35864
35865   fi
35866   #
35867   if test "$tst_proto_sigsetjmp" = "yes" ||
35868      test "$tst_macro_sigsetjmp" = "yes"; then
35869     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
35870 $as_echo_n "checking if sigsetjmp is compilable... " >&6; }
35871     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35872 /* end confdefs.h.  */
35873
35874
35875         $curl_includes_setjmp
35876
35877 int main (void)
35878 {
35879
35880         sigjmp_buf env;
35881         if(0 != sigsetjmp(env, 0))
35882           return 1;
35883
35884  ;
35885  return 0;
35886 }
35887
35888 _ACEOF
35889 if ac_fn_c_try_compile "$LINENO"; then :
35890
35891       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35892 $as_echo "yes" >&6; }
35893       tst_compi_sigsetjmp="yes"
35894
35895 else
35896
35897       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35898 $as_echo "no" >&6; }
35899       tst_compi_sigsetjmp="no"
35900
35901 fi
35902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35903   fi
35904   #
35905   if test "$tst_compi_sigsetjmp" = "yes"; then
35906     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
35907 $as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
35908     if test "x$curl_disallow_sigsetjmp" != "xyes"; then
35909       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35910 $as_echo "yes" >&6; }
35911       tst_allow_sigsetjmp="yes"
35912     else
35913       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35914 $as_echo "no" >&6; }
35915       tst_allow_sigsetjmp="no"
35916     fi
35917   fi
35918   #
35919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
35920 $as_echo_n "checking if sigsetjmp might be used... " >&6; }
35921   if (test "$tst_proto_sigsetjmp" = "yes" ||
35922       test "$tst_macro_sigsetjmp" = "yes") &&
35923      test "$tst_compi_sigsetjmp" = "yes" &&
35924      test "$tst_allow_sigsetjmp" = "yes"; then
35925     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35926 $as_echo "yes" >&6; }
35927
35928 cat >>confdefs.h <<_ACEOF
35929 #define HAVE_SIGSETJMP 1
35930 _ACEOF
35931
35932     ac_cv_func_sigsetjmp="yes"
35933   else
35934     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35935 $as_echo "no" >&6; }
35936     ac_cv_func_sigsetjmp="no"
35937   fi
35938
35939
35940         #
35941   tst_links_socket="unknown"
35942   tst_proto_socket="unknown"
35943   tst_compi_socket="unknown"
35944   tst_allow_socket="unknown"
35945   #
35946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
35947 $as_echo_n "checking if socket can be linked... " >&6; }
35948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35949 /* end confdefs.h.  */
35950
35951
35952       $curl_includes_winsock2
35953       $curl_includes_sys_socket
35954       $curl_includes_socket
35955
35956 int main (void)
35957 {
35958
35959       if(0 != socket(0, 0, 0))
35960         return 1;
35961
35962  ;
35963  return 0;
35964 }
35965
35966 _ACEOF
35967 if ac_fn_c_try_link "$LINENO"; then :
35968
35969     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35970 $as_echo "yes" >&6; }
35971     tst_links_socket="yes"
35972
35973 else
35974
35975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35976 $as_echo "no" >&6; }
35977     tst_links_socket="no"
35978
35979 fi
35980 rm -f core conftest.err conftest.$ac_objext \
35981     conftest$ac_exeext conftest.$ac_ext
35982   #
35983   if test "$tst_links_socket" = "yes"; then
35984     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
35985 $as_echo_n "checking if socket is prototyped... " >&6; }
35986     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35987 /* end confdefs.h.  */
35988
35989       $curl_includes_winsock2
35990       $curl_includes_sys_socket
35991       $curl_includes_socket
35992
35993 _ACEOF
35994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35995   $EGREP "socket" >/dev/null 2>&1; then :
35996
35997       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35998 $as_echo "yes" >&6; }
35999       tst_proto_socket="yes"
36000
36001 else
36002
36003       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36004 $as_echo "no" >&6; }
36005       tst_proto_socket="no"
36006
36007 fi
36008 rm -f conftest*
36009
36010   fi
36011   #
36012   if test "$tst_proto_socket" = "yes"; then
36013     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
36014 $as_echo_n "checking if socket is compilable... " >&6; }
36015     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36016 /* end confdefs.h.  */
36017
36018
36019         $curl_includes_winsock2
36020         $curl_includes_sys_socket
36021         $curl_includes_socket
36022
36023 int main (void)
36024 {
36025
36026         if(0 != socket(0, 0, 0))
36027           return 1;
36028
36029  ;
36030  return 0;
36031 }
36032
36033 _ACEOF
36034 if ac_fn_c_try_compile "$LINENO"; then :
36035
36036       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36037 $as_echo "yes" >&6; }
36038       tst_compi_socket="yes"
36039
36040 else
36041
36042       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36043 $as_echo "no" >&6; }
36044       tst_compi_socket="no"
36045
36046 fi
36047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36048   fi
36049   #
36050   if test "$tst_compi_socket" = "yes"; then
36051     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
36052 $as_echo_n "checking if socket usage allowed... " >&6; }
36053     if test "x$curl_disallow_socket" != "xyes"; then
36054       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36055 $as_echo "yes" >&6; }
36056       tst_allow_socket="yes"
36057     else
36058       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36059 $as_echo "no" >&6; }
36060       tst_allow_socket="no"
36061     fi
36062   fi
36063   #
36064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
36065 $as_echo_n "checking if socket might be used... " >&6; }
36066   if test "$tst_links_socket" = "yes" &&
36067      test "$tst_proto_socket" = "yes" &&
36068      test "$tst_compi_socket" = "yes" &&
36069      test "$tst_allow_socket" = "yes"; then
36070     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36071 $as_echo "yes" >&6; }
36072
36073 cat >>confdefs.h <<_ACEOF
36074 #define HAVE_SOCKET 1
36075 _ACEOF
36076
36077     ac_cv_func_socket="yes"
36078   else
36079     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36080 $as_echo "no" >&6; }
36081     ac_cv_func_socket="no"
36082   fi
36083
36084
36085       #
36086   tst_links_socketpair="unknown"
36087   tst_proto_socketpair="unknown"
36088   tst_compi_socketpair="unknown"
36089   tst_allow_socketpair="unknown"
36090   #
36091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
36092 $as_echo_n "checking if socketpair can be linked... " >&6; }
36093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36094 /* end confdefs.h.  */
36095
36096
36097 #define socketpair innocuous_socketpair
36098 #ifdef __STDC__
36099 # include <limits.h>
36100 #else
36101 # include <assert.h>
36102 #endif
36103 #undef socketpair
36104 #ifdef __cplusplus
36105 extern "C"
36106 #endif
36107 char socketpair ();
36108 #if defined __stub_socketpair || defined __stub___socketpair
36109 choke me
36110 #endif
36111
36112 int main (void)
36113 {
36114 return socketpair ();
36115  ;
36116  return 0;
36117 }
36118
36119 _ACEOF
36120 if ac_fn_c_try_link "$LINENO"; then :
36121
36122     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36123 $as_echo "yes" >&6; }
36124     tst_links_socketpair="yes"
36125
36126 else
36127
36128     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36129 $as_echo "no" >&6; }
36130     tst_links_socketpair="no"
36131
36132 fi
36133 rm -f core conftest.err conftest.$ac_objext \
36134     conftest$ac_exeext conftest.$ac_ext
36135   #
36136   if test "$tst_links_socketpair" = "yes"; then
36137     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
36138 $as_echo_n "checking if socketpair is prototyped... " >&6; }
36139     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36140 /* end confdefs.h.  */
36141
36142       $curl_includes_sys_socket
36143       $curl_includes_socket
36144
36145 _ACEOF
36146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36147   $EGREP "socketpair" >/dev/null 2>&1; then :
36148
36149       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36150 $as_echo "yes" >&6; }
36151       tst_proto_socketpair="yes"
36152
36153 else
36154
36155       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36156 $as_echo "no" >&6; }
36157       tst_proto_socketpair="no"
36158
36159 fi
36160 rm -f conftest*
36161
36162   fi
36163   #
36164   if test "$tst_proto_socketpair" = "yes"; then
36165     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
36166 $as_echo_n "checking if socketpair is compilable... " >&6; }
36167     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36168 /* end confdefs.h.  */
36169
36170
36171         $curl_includes_sys_socket
36172         $curl_includes_socket
36173
36174 int main (void)
36175 {
36176
36177         int sv[2];
36178         if(0 != socketpair(0, 0, 0, sv))
36179           return 1;
36180
36181  ;
36182  return 0;
36183 }
36184
36185 _ACEOF
36186 if ac_fn_c_try_compile "$LINENO"; then :
36187
36188       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36189 $as_echo "yes" >&6; }
36190       tst_compi_socketpair="yes"
36191
36192 else
36193
36194       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36195 $as_echo "no" >&6; }
36196       tst_compi_socketpair="no"
36197
36198 fi
36199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36200   fi
36201   #
36202   if test "$tst_compi_socketpair" = "yes"; then
36203     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
36204 $as_echo_n "checking if socketpair usage allowed... " >&6; }
36205     if test "x$curl_disallow_socketpair" != "xyes"; then
36206       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36207 $as_echo "yes" >&6; }
36208       tst_allow_socketpair="yes"
36209     else
36210       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36211 $as_echo "no" >&6; }
36212       tst_allow_socketpair="no"
36213     fi
36214   fi
36215   #
36216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
36217 $as_echo_n "checking if socketpair might be used... " >&6; }
36218   if test "$tst_links_socketpair" = "yes" &&
36219      test "$tst_proto_socketpair" = "yes" &&
36220      test "$tst_compi_socketpair" = "yes" &&
36221      test "$tst_allow_socketpair" = "yes"; then
36222     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36223 $as_echo "yes" >&6; }
36224
36225 cat >>confdefs.h <<_ACEOF
36226 #define HAVE_SOCKETPAIR 1
36227 _ACEOF
36228
36229     ac_cv_func_socketpair="yes"
36230   else
36231     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36232 $as_echo "no" >&6; }
36233     ac_cv_func_socketpair="no"
36234   fi
36235
36236
36237     #
36238   tst_links_strcasecmp="unknown"
36239   tst_proto_strcasecmp="unknown"
36240   tst_compi_strcasecmp="unknown"
36241   tst_allow_strcasecmp="unknown"
36242   #
36243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
36244 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
36245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36246 /* end confdefs.h.  */
36247
36248
36249 #define strcasecmp innocuous_strcasecmp
36250 #ifdef __STDC__
36251 # include <limits.h>
36252 #else
36253 # include <assert.h>
36254 #endif
36255 #undef strcasecmp
36256 #ifdef __cplusplus
36257 extern "C"
36258 #endif
36259 char strcasecmp ();
36260 #if defined __stub_strcasecmp || defined __stub___strcasecmp
36261 choke me
36262 #endif
36263
36264 int main (void)
36265 {
36266 return strcasecmp ();
36267  ;
36268  return 0;
36269 }
36270
36271 _ACEOF
36272 if ac_fn_c_try_link "$LINENO"; then :
36273
36274     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36275 $as_echo "yes" >&6; }
36276     tst_links_strcasecmp="yes"
36277
36278 else
36279
36280     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36281 $as_echo "no" >&6; }
36282     tst_links_strcasecmp="no"
36283
36284 fi
36285 rm -f core conftest.err conftest.$ac_objext \
36286     conftest$ac_exeext conftest.$ac_ext
36287   #
36288   if test "$tst_links_strcasecmp" = "yes"; then
36289     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
36290 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
36291     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36292 /* end confdefs.h.  */
36293
36294       $curl_includes_string
36295
36296 _ACEOF
36297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36298   $EGREP "strcasecmp" >/dev/null 2>&1; then :
36299
36300       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36301 $as_echo "yes" >&6; }
36302       tst_proto_strcasecmp="yes"
36303
36304 else
36305
36306       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36307 $as_echo "no" >&6; }
36308       tst_proto_strcasecmp="no"
36309
36310 fi
36311 rm -f conftest*
36312
36313   fi
36314   #
36315   if test "$tst_proto_strcasecmp" = "yes"; then
36316     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
36317 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
36318     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36319 /* end confdefs.h.  */
36320
36321
36322         $curl_includes_string
36323
36324 int main (void)
36325 {
36326
36327         if(0 != strcasecmp(0, 0))
36328           return 1;
36329
36330  ;
36331  return 0;
36332 }
36333
36334 _ACEOF
36335 if ac_fn_c_try_compile "$LINENO"; then :
36336
36337       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36338 $as_echo "yes" >&6; }
36339       tst_compi_strcasecmp="yes"
36340
36341 else
36342
36343       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36344 $as_echo "no" >&6; }
36345       tst_compi_strcasecmp="no"
36346
36347 fi
36348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36349   fi
36350   #
36351   if test "$tst_compi_strcasecmp" = "yes"; then
36352     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
36353 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
36354     if test "x$curl_disallow_strcasecmp" != "xyes"; then
36355       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36356 $as_echo "yes" >&6; }
36357       tst_allow_strcasecmp="yes"
36358     else
36359       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36360 $as_echo "no" >&6; }
36361       tst_allow_strcasecmp="no"
36362     fi
36363   fi
36364   #
36365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
36366 $as_echo_n "checking if strcasecmp might be used... " >&6; }
36367   if test "$tst_links_strcasecmp" = "yes" &&
36368      test "$tst_proto_strcasecmp" = "yes" &&
36369      test "$tst_compi_strcasecmp" = "yes" &&
36370      test "$tst_allow_strcasecmp" = "yes"; then
36371     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36372 $as_echo "yes" >&6; }
36373
36374 cat >>confdefs.h <<_ACEOF
36375 #define HAVE_STRCASECMP 1
36376 _ACEOF
36377
36378     ac_cv_func_strcasecmp="yes"
36379   else
36380     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36381 $as_echo "no" >&6; }
36382     ac_cv_func_strcasecmp="no"
36383   fi
36384
36385
36386     #
36387   tst_links_strcmpi="unknown"
36388   tst_proto_strcmpi="unknown"
36389   tst_compi_strcmpi="unknown"
36390   tst_allow_strcmpi="unknown"
36391   #
36392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
36393 $as_echo_n "checking if strcmpi can be linked... " >&6; }
36394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36395 /* end confdefs.h.  */
36396
36397
36398 #define strcmpi innocuous_strcmpi
36399 #ifdef __STDC__
36400 # include <limits.h>
36401 #else
36402 # include <assert.h>
36403 #endif
36404 #undef strcmpi
36405 #ifdef __cplusplus
36406 extern "C"
36407 #endif
36408 char strcmpi ();
36409 #if defined __stub_strcmpi || defined __stub___strcmpi
36410 choke me
36411 #endif
36412
36413 int main (void)
36414 {
36415 return strcmpi ();
36416  ;
36417  return 0;
36418 }
36419
36420 _ACEOF
36421 if ac_fn_c_try_link "$LINENO"; then :
36422
36423     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36424 $as_echo "yes" >&6; }
36425     tst_links_strcmpi="yes"
36426
36427 else
36428
36429     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36430 $as_echo "no" >&6; }
36431     tst_links_strcmpi="no"
36432
36433 fi
36434 rm -f core conftest.err conftest.$ac_objext \
36435     conftest$ac_exeext conftest.$ac_ext
36436   #
36437   if test "$tst_links_strcmpi" = "yes"; then
36438     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
36439 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
36440     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36441 /* end confdefs.h.  */
36442
36443       $curl_includes_string
36444
36445 _ACEOF
36446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36447   $EGREP "strcmpi" >/dev/null 2>&1; then :
36448
36449       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36450 $as_echo "yes" >&6; }
36451       tst_proto_strcmpi="yes"
36452
36453 else
36454
36455       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36456 $as_echo "no" >&6; }
36457       tst_proto_strcmpi="no"
36458
36459 fi
36460 rm -f conftest*
36461
36462   fi
36463   #
36464   if test "$tst_proto_strcmpi" = "yes"; then
36465     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
36466 $as_echo_n "checking if strcmpi is compilable... " >&6; }
36467     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36468 /* end confdefs.h.  */
36469
36470
36471         $curl_includes_string
36472
36473 int main (void)
36474 {
36475
36476         if(0 != strcmpi(0, 0))
36477           return 1;
36478
36479  ;
36480  return 0;
36481 }
36482
36483 _ACEOF
36484 if ac_fn_c_try_compile "$LINENO"; then :
36485
36486       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36487 $as_echo "yes" >&6; }
36488       tst_compi_strcmpi="yes"
36489
36490 else
36491
36492       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36493 $as_echo "no" >&6; }
36494       tst_compi_strcmpi="no"
36495
36496 fi
36497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36498   fi
36499   #
36500   if test "$tst_compi_strcmpi" = "yes"; then
36501     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
36502 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
36503     if test "x$curl_disallow_strcmpi" != "xyes"; then
36504       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36505 $as_echo "yes" >&6; }
36506       tst_allow_strcmpi="yes"
36507     else
36508       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36509 $as_echo "no" >&6; }
36510       tst_allow_strcmpi="no"
36511     fi
36512   fi
36513   #
36514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
36515 $as_echo_n "checking if strcmpi might be used... " >&6; }
36516   if test "$tst_links_strcmpi" = "yes" &&
36517      test "$tst_proto_strcmpi" = "yes" &&
36518      test "$tst_compi_strcmpi" = "yes" &&
36519      test "$tst_allow_strcmpi" = "yes"; then
36520     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36521 $as_echo "yes" >&6; }
36522
36523 cat >>confdefs.h <<_ACEOF
36524 #define HAVE_STRCMPI 1
36525 _ACEOF
36526
36527     ac_cv_func_strcmpi="yes"
36528   else
36529     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36530 $as_echo "no" >&6; }
36531     ac_cv_func_strcmpi="no"
36532   fi
36533
36534
36535     #
36536   tst_links_strdup="unknown"
36537   tst_proto_strdup="unknown"
36538   tst_compi_strdup="unknown"
36539   tst_allow_strdup="unknown"
36540   #
36541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
36542 $as_echo_n "checking if strdup can be linked... " >&6; }
36543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36544 /* end confdefs.h.  */
36545
36546
36547 #define strdup innocuous_strdup
36548 #ifdef __STDC__
36549 # include <limits.h>
36550 #else
36551 # include <assert.h>
36552 #endif
36553 #undef strdup
36554 #ifdef __cplusplus
36555 extern "C"
36556 #endif
36557 char strdup ();
36558 #if defined __stub_strdup || defined __stub___strdup
36559 choke me
36560 #endif
36561
36562 int main (void)
36563 {
36564 return strdup ();
36565  ;
36566  return 0;
36567 }
36568
36569 _ACEOF
36570 if ac_fn_c_try_link "$LINENO"; then :
36571
36572     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36573 $as_echo "yes" >&6; }
36574     tst_links_strdup="yes"
36575
36576 else
36577
36578     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36579 $as_echo "no" >&6; }
36580     tst_links_strdup="no"
36581
36582 fi
36583 rm -f core conftest.err conftest.$ac_objext \
36584     conftest$ac_exeext conftest.$ac_ext
36585   #
36586   if test "$tst_links_strdup" = "yes"; then
36587     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
36588 $as_echo_n "checking if strdup is prototyped... " >&6; }
36589     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36590 /* end confdefs.h.  */
36591
36592       $curl_includes_string
36593
36594 _ACEOF
36595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36596   $EGREP "strdup" >/dev/null 2>&1; then :
36597
36598       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36599 $as_echo "yes" >&6; }
36600       tst_proto_strdup="yes"
36601
36602 else
36603
36604       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36605 $as_echo "no" >&6; }
36606       tst_proto_strdup="no"
36607
36608 fi
36609 rm -f conftest*
36610
36611   fi
36612   #
36613   if test "$tst_proto_strdup" = "yes"; then
36614     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
36615 $as_echo_n "checking if strdup is compilable... " >&6; }
36616     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36617 /* end confdefs.h.  */
36618
36619
36620         $curl_includes_string
36621
36622 int main (void)
36623 {
36624
36625         if(0 != strdup(0))
36626           return 1;
36627
36628  ;
36629  return 0;
36630 }
36631
36632 _ACEOF
36633 if ac_fn_c_try_compile "$LINENO"; then :
36634
36635       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36636 $as_echo "yes" >&6; }
36637       tst_compi_strdup="yes"
36638
36639 else
36640
36641       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36642 $as_echo "no" >&6; }
36643       tst_compi_strdup="no"
36644
36645 fi
36646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36647   fi
36648   #
36649   if test "$tst_compi_strdup" = "yes"; then
36650     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
36651 $as_echo_n "checking if strdup usage allowed... " >&6; }
36652     if test "x$curl_disallow_strdup" != "xyes"; then
36653       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36654 $as_echo "yes" >&6; }
36655       tst_allow_strdup="yes"
36656     else
36657       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36658 $as_echo "no" >&6; }
36659       tst_allow_strdup="no"
36660     fi
36661   fi
36662   #
36663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
36664 $as_echo_n "checking if strdup might be used... " >&6; }
36665   if test "$tst_links_strdup" = "yes" &&
36666      test "$tst_proto_strdup" = "yes" &&
36667      test "$tst_compi_strdup" = "yes" &&
36668      test "$tst_allow_strdup" = "yes"; then
36669     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36670 $as_echo "yes" >&6; }
36671
36672 cat >>confdefs.h <<_ACEOF
36673 #define HAVE_STRDUP 1
36674 _ACEOF
36675
36676     ac_cv_func_strdup="yes"
36677   else
36678     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36679 $as_echo "no" >&6; }
36680     ac_cv_func_strdup="no"
36681   fi
36682
36683
36684       #
36685   tst_links_strerror_r="unknown"
36686   tst_proto_strerror_r="unknown"
36687   tst_compi_strerror_r="unknown"
36688   tst_glibc_strerror_r="unknown"
36689   tst_posix_strerror_r="unknown"
36690   tst_allow_strerror_r="unknown"
36691   tst_works_glibc_strerror_r="unknown"
36692   tst_works_posix_strerror_r="unknown"
36693   tst_glibc_strerror_r_type_arg3="unknown"
36694   tst_posix_strerror_r_type_arg3="unknown"
36695   #
36696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
36697 $as_echo_n "checking if strerror_r can be linked... " >&6; }
36698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36699 /* end confdefs.h.  */
36700
36701
36702 #define strerror_r innocuous_strerror_r
36703 #ifdef __STDC__
36704 # include <limits.h>
36705 #else
36706 # include <assert.h>
36707 #endif
36708 #undef strerror_r
36709 #ifdef __cplusplus
36710 extern "C"
36711 #endif
36712 char strerror_r ();
36713 #if defined __stub_strerror_r || defined __stub___strerror_r
36714 choke me
36715 #endif
36716
36717 int main (void)
36718 {
36719 return strerror_r ();
36720  ;
36721  return 0;
36722 }
36723
36724 _ACEOF
36725 if ac_fn_c_try_link "$LINENO"; then :
36726
36727     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36728 $as_echo "yes" >&6; }
36729     tst_links_strerror_r="yes"
36730
36731 else
36732
36733     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36734 $as_echo "no" >&6; }
36735     tst_links_strerror_r="no"
36736
36737 fi
36738 rm -f core conftest.err conftest.$ac_objext \
36739     conftest$ac_exeext conftest.$ac_ext
36740   #
36741   if test "$tst_links_strerror_r" = "yes"; then
36742     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
36743 $as_echo_n "checking if strerror_r is prototyped... " >&6; }
36744     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36745 /* end confdefs.h.  */
36746
36747       $curl_includes_string
36748
36749 _ACEOF
36750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36751   $EGREP "strerror_r" >/dev/null 2>&1; then :
36752
36753       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36754 $as_echo "yes" >&6; }
36755       tst_proto_strerror_r="yes"
36756
36757 else
36758
36759       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36760 $as_echo "no" >&6; }
36761       tst_proto_strerror_r="no"
36762
36763 fi
36764 rm -f conftest*
36765
36766   fi
36767   #
36768   if test "$tst_proto_strerror_r" = "yes"; then
36769     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
36770 $as_echo_n "checking if strerror_r is compilable... " >&6; }
36771     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36772 /* end confdefs.h.  */
36773
36774
36775         $curl_includes_string
36776
36777 int main (void)
36778 {
36779
36780         if(0 != strerror_r(0, 0, 0))
36781           return 1;
36782
36783  ;
36784  return 0;
36785 }
36786
36787 _ACEOF
36788 if ac_fn_c_try_compile "$LINENO"; then :
36789
36790       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36791 $as_echo "yes" >&6; }
36792       tst_compi_strerror_r="yes"
36793
36794 else
36795
36796       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36797 $as_echo "no" >&6; }
36798       tst_compi_strerror_r="no"
36799
36800 fi
36801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36802   fi
36803   #
36804   if test "$tst_compi_strerror_r" = "yes"; then
36805     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
36806 $as_echo_n "checking if strerror_r is glibc like... " >&6; }
36807     tst_glibc_strerror_r_type_arg3="unknown"
36808     for arg3 in 'size_t' 'int' 'unsigned int'; do
36809       if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
36810         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36811 /* end confdefs.h.  */
36812
36813
36814             $curl_includes_string
36815             char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
36816
36817 int main (void)
36818 {
36819
36820             if(0 != strerror_r(0, 0, 0))
36821               return 1;
36822
36823  ;
36824  return 0;
36825 }
36826
36827 _ACEOF
36828 if ac_fn_c_try_compile "$LINENO"; then :
36829
36830           tst_glibc_strerror_r_type_arg3="$arg3"
36831
36832 fi
36833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36834       fi
36835     done
36836     case "$tst_glibc_strerror_r_type_arg3" in
36837       unknown)
36838         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36839 $as_echo "no" >&6; }
36840         tst_glibc_strerror_r="no"
36841         ;;
36842       *)
36843         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36844 $as_echo "yes" >&6; }
36845         tst_glibc_strerror_r="yes"
36846         ;;
36847     esac
36848   fi
36849   #
36850     if test "x$cross_compiling" != "xyes" &&
36851     test "$tst_glibc_strerror_r" = "yes"; then
36852     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
36853 $as_echo_n "checking if strerror_r seems to work... " >&6; }
36854     if test "$cross_compiling" = yes; then :
36855   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36857 as_fn_error $? "cannot run test program while cross compiling
36858 See \`config.log' for more details" "$LINENO" 5; }
36859 else
36860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36861 /* end confdefs.h.  */
36862
36863
36864         $curl_includes_stdlib
36865         $curl_includes_string
36866 #       include <errno.h>
36867
36868 int main (void)
36869 {
36870
36871         char buffer[1024];
36872         char *string = 0;
36873         buffer[0] = '\0';
36874         string = strerror_r(EACCES, buffer, sizeof(buffer));
36875         if(!string)
36876           exit(1); /* fail */
36877         if(!string[0])
36878           exit(1); /* fail */
36879         else
36880           exit(0);
36881
36882  ;
36883  return 0;
36884 }
36885
36886 _ACEOF
36887 if ac_fn_c_try_run "$LINENO"; then :
36888
36889       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36890 $as_echo "yes" >&6; }
36891       tst_works_glibc_strerror_r="yes"
36892
36893 else
36894
36895       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36896 $as_echo "no" >&6; }
36897       tst_works_glibc_strerror_r="no"
36898
36899 fi
36900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36901   conftest.$ac_objext conftest.beam conftest.$ac_ext
36902 fi
36903
36904   fi
36905   #
36906   if test "$tst_compi_strerror_r" = "yes" &&
36907     test "$tst_works_glibc_strerror_r" != "yes"; then
36908     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
36909 $as_echo_n "checking if strerror_r is POSIX like... " >&6; }
36910     tst_posix_strerror_r_type_arg3="unknown"
36911     for arg3 in 'size_t' 'int' 'unsigned int'; do
36912       if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
36913         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36914 /* end confdefs.h.  */
36915
36916
36917             $curl_includes_string
36918             int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
36919
36920 int main (void)
36921 {
36922
36923             if(0 != strerror_r(0, 0, 0))
36924               return 1;
36925
36926  ;
36927  return 0;
36928 }
36929
36930 _ACEOF
36931 if ac_fn_c_try_compile "$LINENO"; then :
36932
36933           tst_posix_strerror_r_type_arg3="$arg3"
36934
36935 fi
36936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36937       fi
36938     done
36939     case "$tst_posix_strerror_r_type_arg3" in
36940       unknown)
36941         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36942 $as_echo "no" >&6; }
36943         tst_posix_strerror_r="no"
36944         ;;
36945       *)
36946         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36947 $as_echo "yes" >&6; }
36948         tst_posix_strerror_r="yes"
36949         ;;
36950     esac
36951   fi
36952   #
36953     if test "x$cross_compiling" != "xyes" &&
36954     test "$tst_posix_strerror_r" = "yes"; then
36955     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
36956 $as_echo_n "checking if strerror_r seems to work... " >&6; }
36957     if test "$cross_compiling" = yes; then :
36958   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36960 as_fn_error $? "cannot run test program while cross compiling
36961 See \`config.log' for more details" "$LINENO" 5; }
36962 else
36963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36964 /* end confdefs.h.  */
36965
36966
36967         $curl_includes_stdlib
36968         $curl_includes_string
36969 #       include <errno.h>
36970
36971 int main (void)
36972 {
36973
36974         char buffer[1024];
36975         int error = 1;
36976         buffer[0] = '\0';
36977         error = strerror_r(EACCES, buffer, sizeof(buffer));
36978         if(error)
36979           exit(1); /* fail */
36980         if(buffer[0] == '\0')
36981           exit(1); /* fail */
36982         else
36983           exit(0);
36984
36985  ;
36986  return 0;
36987 }
36988
36989 _ACEOF
36990 if ac_fn_c_try_run "$LINENO"; then :
36991
36992       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36993 $as_echo "yes" >&6; }
36994       tst_works_posix_strerror_r="yes"
36995
36996 else
36997
36998       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36999 $as_echo "no" >&6; }
37000       tst_works_posix_strerror_r="no"
37001
37002 fi
37003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37004   conftest.$ac_objext conftest.beam conftest.$ac_ext
37005 fi
37006
37007   fi
37008   #
37009   if test "$tst_works_glibc_strerror_r" = "yes"; then
37010     tst_posix_strerror_r="no"
37011   fi
37012   if test "$tst_works_posix_strerror_r" = "yes"; then
37013     tst_glibc_strerror_r="no"
37014   fi
37015   if test "$tst_glibc_strerror_r" = "yes" &&
37016     test "$tst_works_glibc_strerror_r" != "no" &&
37017     test "$tst_posix_strerror_r" != "yes"; then
37018     tst_allow_strerror_r="check"
37019   fi
37020   if test "$tst_posix_strerror_r" = "yes" &&
37021     test "$tst_works_posix_strerror_r" != "no" &&
37022     test "$tst_glibc_strerror_r" != "yes"; then
37023     tst_allow_strerror_r="check"
37024   fi
37025   if test "$tst_allow_strerror_r" = "check"; then
37026     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
37027 $as_echo_n "checking if strerror_r usage allowed... " >&6; }
37028     if test "x$curl_disallow_strerror_r" != "xyes"; then
37029       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37030 $as_echo "yes" >&6; }
37031       tst_allow_strerror_r="yes"
37032     else
37033       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37034 $as_echo "no" >&6; }
37035       tst_allow_strerror_r="no"
37036     fi
37037   fi
37038   #
37039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
37040 $as_echo_n "checking if strerror_r might be used... " >&6; }
37041   if test "$tst_links_strerror_r" = "yes" &&
37042      test "$tst_proto_strerror_r" = "yes" &&
37043      test "$tst_compi_strerror_r" = "yes" &&
37044      test "$tst_allow_strerror_r" = "yes"; then
37045     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37046 $as_echo "yes" >&6; }
37047     if test "$tst_glibc_strerror_r" = "yes"; then
37048
37049 cat >>confdefs.h <<_ACEOF
37050 #define HAVE_STRERROR_R 1
37051 _ACEOF
37052
37053
37054 cat >>confdefs.h <<_ACEOF
37055 #define HAVE_GLIBC_STRERROR_R 1
37056 _ACEOF
37057
37058
37059 cat >>confdefs.h <<_ACEOF
37060 #define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
37061 _ACEOF
37062
37063     fi
37064     if test "$tst_posix_strerror_r" = "yes"; then
37065
37066 cat >>confdefs.h <<_ACEOF
37067 #define HAVE_STRERROR_R 1
37068 _ACEOF
37069
37070
37071 cat >>confdefs.h <<_ACEOF
37072 #define HAVE_POSIX_STRERROR_R 1
37073 _ACEOF
37074
37075
37076 cat >>confdefs.h <<_ACEOF
37077 #define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
37078 _ACEOF
37079
37080     fi
37081     ac_cv_func_strerror_r="yes"
37082   else
37083     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37084 $as_echo "no" >&6; }
37085     ac_cv_func_strerror_r="no"
37086   fi
37087   #
37088   if test "$tst_compi_strerror_r" = "yes" &&
37089      test "$tst_allow_strerror_r" = "unknown"; then
37090     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
37091 $as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
37092   fi
37093   #
37094
37095
37096     #
37097   tst_links_stricmp="unknown"
37098   tst_proto_stricmp="unknown"
37099   tst_compi_stricmp="unknown"
37100   tst_allow_stricmp="unknown"
37101   #
37102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
37103 $as_echo_n "checking if stricmp can be linked... " >&6; }
37104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37105 /* end confdefs.h.  */
37106
37107
37108 #define stricmp innocuous_stricmp
37109 #ifdef __STDC__
37110 # include <limits.h>
37111 #else
37112 # include <assert.h>
37113 #endif
37114 #undef stricmp
37115 #ifdef __cplusplus
37116 extern "C"
37117 #endif
37118 char stricmp ();
37119 #if defined __stub_stricmp || defined __stub___stricmp
37120 choke me
37121 #endif
37122
37123 int main (void)
37124 {
37125 return stricmp ();
37126  ;
37127  return 0;
37128 }
37129
37130 _ACEOF
37131 if ac_fn_c_try_link "$LINENO"; then :
37132
37133     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37134 $as_echo "yes" >&6; }
37135     tst_links_stricmp="yes"
37136
37137 else
37138
37139     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37140 $as_echo "no" >&6; }
37141     tst_links_stricmp="no"
37142
37143 fi
37144 rm -f core conftest.err conftest.$ac_objext \
37145     conftest$ac_exeext conftest.$ac_ext
37146   #
37147   if test "$tst_links_stricmp" = "yes"; then
37148     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
37149 $as_echo_n "checking if stricmp is prototyped... " >&6; }
37150     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37151 /* end confdefs.h.  */
37152
37153       $curl_includes_string
37154
37155 _ACEOF
37156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37157   $EGREP "stricmp" >/dev/null 2>&1; then :
37158
37159       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37160 $as_echo "yes" >&6; }
37161       tst_proto_stricmp="yes"
37162
37163 else
37164
37165       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37166 $as_echo "no" >&6; }
37167       tst_proto_stricmp="no"
37168
37169 fi
37170 rm -f conftest*
37171
37172   fi
37173   #
37174   if test "$tst_proto_stricmp" = "yes"; then
37175     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
37176 $as_echo_n "checking if stricmp is compilable... " >&6; }
37177     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37178 /* end confdefs.h.  */
37179
37180
37181         $curl_includes_string
37182
37183 int main (void)
37184 {
37185
37186         if(0 != stricmp(0, 0))
37187           return 1;
37188
37189  ;
37190  return 0;
37191 }
37192
37193 _ACEOF
37194 if ac_fn_c_try_compile "$LINENO"; then :
37195
37196       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37197 $as_echo "yes" >&6; }
37198       tst_compi_stricmp="yes"
37199
37200 else
37201
37202       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37203 $as_echo "no" >&6; }
37204       tst_compi_stricmp="no"
37205
37206 fi
37207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37208   fi
37209   #
37210   if test "$tst_compi_stricmp" = "yes"; then
37211     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
37212 $as_echo_n "checking if stricmp usage allowed... " >&6; }
37213     if test "x$curl_disallow_stricmp" != "xyes"; then
37214       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37215 $as_echo "yes" >&6; }
37216       tst_allow_stricmp="yes"
37217     else
37218       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37219 $as_echo "no" >&6; }
37220       tst_allow_stricmp="no"
37221     fi
37222   fi
37223   #
37224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
37225 $as_echo_n "checking if stricmp might be used... " >&6; }
37226   if test "$tst_links_stricmp" = "yes" &&
37227      test "$tst_proto_stricmp" = "yes" &&
37228      test "$tst_compi_stricmp" = "yes" &&
37229      test "$tst_allow_stricmp" = "yes"; then
37230     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37231 $as_echo "yes" >&6; }
37232
37233 cat >>confdefs.h <<_ACEOF
37234 #define HAVE_STRICMP 1
37235 _ACEOF
37236
37237     ac_cv_func_stricmp="yes"
37238   else
37239     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37240 $as_echo "no" >&6; }
37241     ac_cv_func_stricmp="no"
37242   fi
37243
37244
37245     #
37246   tst_links_strncasecmp="unknown"
37247   tst_proto_strncasecmp="unknown"
37248   tst_compi_strncasecmp="unknown"
37249   tst_allow_strncasecmp="unknown"
37250   #
37251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
37252 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
37253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37254 /* end confdefs.h.  */
37255
37256
37257 #define strncasecmp innocuous_strncasecmp
37258 #ifdef __STDC__
37259 # include <limits.h>
37260 #else
37261 # include <assert.h>
37262 #endif
37263 #undef strncasecmp
37264 #ifdef __cplusplus
37265 extern "C"
37266 #endif
37267 char strncasecmp ();
37268 #if defined __stub_strncasecmp || defined __stub___strncasecmp
37269 choke me
37270 #endif
37271
37272 int main (void)
37273 {
37274 return strncasecmp ();
37275  ;
37276  return 0;
37277 }
37278
37279 _ACEOF
37280 if ac_fn_c_try_link "$LINENO"; then :
37281
37282     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37283 $as_echo "yes" >&6; }
37284     tst_links_strncasecmp="yes"
37285
37286 else
37287
37288     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37289 $as_echo "no" >&6; }
37290     tst_links_strncasecmp="no"
37291
37292 fi
37293 rm -f core conftest.err conftest.$ac_objext \
37294     conftest$ac_exeext conftest.$ac_ext
37295   #
37296   if test "$tst_links_strncasecmp" = "yes"; then
37297     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
37298 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
37299     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37300 /* end confdefs.h.  */
37301
37302       $curl_includes_string
37303
37304 _ACEOF
37305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37306   $EGREP "strncasecmp" >/dev/null 2>&1; then :
37307
37308       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37309 $as_echo "yes" >&6; }
37310       tst_proto_strncasecmp="yes"
37311
37312 else
37313
37314       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37315 $as_echo "no" >&6; }
37316       tst_proto_strncasecmp="no"
37317
37318 fi
37319 rm -f conftest*
37320
37321   fi
37322   #
37323   if test "$tst_proto_strncasecmp" = "yes"; then
37324     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
37325 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
37326     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37327 /* end confdefs.h.  */
37328
37329
37330         $curl_includes_string
37331
37332 int main (void)
37333 {
37334
37335         if(0 != strncasecmp(0, 0, 0))
37336           return 1;
37337
37338  ;
37339  return 0;
37340 }
37341
37342 _ACEOF
37343 if ac_fn_c_try_compile "$LINENO"; then :
37344
37345       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37346 $as_echo "yes" >&6; }
37347       tst_compi_strncasecmp="yes"
37348
37349 else
37350
37351       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37352 $as_echo "no" >&6; }
37353       tst_compi_strncasecmp="no"
37354
37355 fi
37356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37357   fi
37358   #
37359   if test "$tst_compi_strncasecmp" = "yes"; then
37360     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
37361 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
37362     if test "x$curl_disallow_strncasecmp" != "xyes"; then
37363       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37364 $as_echo "yes" >&6; }
37365       tst_allow_strncasecmp="yes"
37366     else
37367       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37368 $as_echo "no" >&6; }
37369       tst_allow_strncasecmp="no"
37370     fi
37371   fi
37372   #
37373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
37374 $as_echo_n "checking if strncasecmp might be used... " >&6; }
37375   if test "$tst_links_strncasecmp" = "yes" &&
37376      test "$tst_proto_strncasecmp" = "yes" &&
37377      test "$tst_compi_strncasecmp" = "yes" &&
37378      test "$tst_allow_strncasecmp" = "yes"; then
37379     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37380 $as_echo "yes" >&6; }
37381
37382 cat >>confdefs.h <<_ACEOF
37383 #define HAVE_STRNCASECMP 1
37384 _ACEOF
37385
37386     ac_cv_func_strncasecmp="yes"
37387   else
37388     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37389 $as_echo "no" >&6; }
37390     ac_cv_func_strncasecmp="no"
37391   fi
37392
37393
37394     #
37395   tst_links_strncmpi="unknown"
37396   tst_proto_strncmpi="unknown"
37397   tst_compi_strncmpi="unknown"
37398   tst_allow_strncmpi="unknown"
37399   #
37400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
37401 $as_echo_n "checking if strncmpi can be linked... " >&6; }
37402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37403 /* end confdefs.h.  */
37404
37405
37406 #define strncmpi innocuous_strncmpi
37407 #ifdef __STDC__
37408 # include <limits.h>
37409 #else
37410 # include <assert.h>
37411 #endif
37412 #undef strncmpi
37413 #ifdef __cplusplus
37414 extern "C"
37415 #endif
37416 char strncmpi ();
37417 #if defined __stub_strncmpi || defined __stub___strncmpi
37418 choke me
37419 #endif
37420
37421 int main (void)
37422 {
37423 return strncmpi ();
37424  ;
37425  return 0;
37426 }
37427
37428 _ACEOF
37429 if ac_fn_c_try_link "$LINENO"; then :
37430
37431     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37432 $as_echo "yes" >&6; }
37433     tst_links_strncmpi="yes"
37434
37435 else
37436
37437     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37438 $as_echo "no" >&6; }
37439     tst_links_strncmpi="no"
37440
37441 fi
37442 rm -f core conftest.err conftest.$ac_objext \
37443     conftest$ac_exeext conftest.$ac_ext
37444   #
37445   if test "$tst_links_strncmpi" = "yes"; then
37446     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
37447 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
37448     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37449 /* end confdefs.h.  */
37450
37451       $curl_includes_string
37452
37453 _ACEOF
37454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37455   $EGREP "strncmpi" >/dev/null 2>&1; then :
37456
37457       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37458 $as_echo "yes" >&6; }
37459       tst_proto_strncmpi="yes"
37460
37461 else
37462
37463       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37464 $as_echo "no" >&6; }
37465       tst_proto_strncmpi="no"
37466
37467 fi
37468 rm -f conftest*
37469
37470   fi
37471   #
37472   if test "$tst_proto_strncmpi" = "yes"; then
37473     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
37474 $as_echo_n "checking if strncmpi is compilable... " >&6; }
37475     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37476 /* end confdefs.h.  */
37477
37478
37479         $curl_includes_string
37480
37481 int main (void)
37482 {
37483
37484         if(0 != strncmpi(0, 0))
37485           return 1;
37486
37487  ;
37488  return 0;
37489 }
37490
37491 _ACEOF
37492 if ac_fn_c_try_compile "$LINENO"; then :
37493
37494       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37495 $as_echo "yes" >&6; }
37496       tst_compi_strncmpi="yes"
37497
37498 else
37499
37500       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37501 $as_echo "no" >&6; }
37502       tst_compi_strncmpi="no"
37503
37504 fi
37505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37506   fi
37507   #
37508   if test "$tst_compi_strncmpi" = "yes"; then
37509     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
37510 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
37511     if test "x$curl_disallow_strncmpi" != "xyes"; then
37512       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37513 $as_echo "yes" >&6; }
37514       tst_allow_strncmpi="yes"
37515     else
37516       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37517 $as_echo "no" >&6; }
37518       tst_allow_strncmpi="no"
37519     fi
37520   fi
37521   #
37522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
37523 $as_echo_n "checking if strncmpi might be used... " >&6; }
37524   if test "$tst_links_strncmpi" = "yes" &&
37525      test "$tst_proto_strncmpi" = "yes" &&
37526      test "$tst_compi_strncmpi" = "yes" &&
37527      test "$tst_allow_strncmpi" = "yes"; then
37528     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37529 $as_echo "yes" >&6; }
37530
37531 cat >>confdefs.h <<_ACEOF
37532 #define HAVE_STRNCMPI 1
37533 _ACEOF
37534
37535     ac_cv_func_strncmpi="yes"
37536   else
37537     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37538 $as_echo "no" >&6; }
37539     ac_cv_func_strncmpi="no"
37540   fi
37541
37542
37543     #
37544   tst_links_strnicmp="unknown"
37545   tst_proto_strnicmp="unknown"
37546   tst_compi_strnicmp="unknown"
37547   tst_allow_strnicmp="unknown"
37548   #
37549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
37550 $as_echo_n "checking if strnicmp can be linked... " >&6; }
37551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37552 /* end confdefs.h.  */
37553
37554
37555 #define strnicmp innocuous_strnicmp
37556 #ifdef __STDC__
37557 # include <limits.h>
37558 #else
37559 # include <assert.h>
37560 #endif
37561 #undef strnicmp
37562 #ifdef __cplusplus
37563 extern "C"
37564 #endif
37565 char strnicmp ();
37566 #if defined __stub_strnicmp || defined __stub___strnicmp
37567 choke me
37568 #endif
37569
37570 int main (void)
37571 {
37572 return strnicmp ();
37573  ;
37574  return 0;
37575 }
37576
37577 _ACEOF
37578 if ac_fn_c_try_link "$LINENO"; then :
37579
37580     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37581 $as_echo "yes" >&6; }
37582     tst_links_strnicmp="yes"
37583
37584 else
37585
37586     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37587 $as_echo "no" >&6; }
37588     tst_links_strnicmp="no"
37589
37590 fi
37591 rm -f core conftest.err conftest.$ac_objext \
37592     conftest$ac_exeext conftest.$ac_ext
37593   #
37594   if test "$tst_links_strnicmp" = "yes"; then
37595     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
37596 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
37597     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37598 /* end confdefs.h.  */
37599
37600       $curl_includes_string
37601
37602 _ACEOF
37603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37604   $EGREP "strnicmp" >/dev/null 2>&1; then :
37605
37606       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37607 $as_echo "yes" >&6; }
37608       tst_proto_strnicmp="yes"
37609
37610 else
37611
37612       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37613 $as_echo "no" >&6; }
37614       tst_proto_strnicmp="no"
37615
37616 fi
37617 rm -f conftest*
37618
37619   fi
37620   #
37621   if test "$tst_proto_strnicmp" = "yes"; then
37622     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
37623 $as_echo_n "checking if strnicmp is compilable... " >&6; }
37624     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37625 /* end confdefs.h.  */
37626
37627
37628         $curl_includes_string
37629
37630 int main (void)
37631 {
37632
37633         if(0 != strnicmp(0, 0))
37634           return 1;
37635
37636  ;
37637  return 0;
37638 }
37639
37640 _ACEOF
37641 if ac_fn_c_try_compile "$LINENO"; then :
37642
37643       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37644 $as_echo "yes" >&6; }
37645       tst_compi_strnicmp="yes"
37646
37647 else
37648
37649       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37650 $as_echo "no" >&6; }
37651       tst_compi_strnicmp="no"
37652
37653 fi
37654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37655   fi
37656   #
37657   if test "$tst_compi_strnicmp" = "yes"; then
37658     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
37659 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
37660     if test "x$curl_disallow_strnicmp" != "xyes"; then
37661       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37662 $as_echo "yes" >&6; }
37663       tst_allow_strnicmp="yes"
37664     else
37665       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37666 $as_echo "no" >&6; }
37667       tst_allow_strnicmp="no"
37668     fi
37669   fi
37670   #
37671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
37672 $as_echo_n "checking if strnicmp might be used... " >&6; }
37673   if test "$tst_links_strnicmp" = "yes" &&
37674      test "$tst_proto_strnicmp" = "yes" &&
37675      test "$tst_compi_strnicmp" = "yes" &&
37676      test "$tst_allow_strnicmp" = "yes"; then
37677     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37678 $as_echo "yes" >&6; }
37679
37680 cat >>confdefs.h <<_ACEOF
37681 #define HAVE_STRNICMP 1
37682 _ACEOF
37683
37684     ac_cv_func_strnicmp="yes"
37685   else
37686     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37687 $as_echo "no" >&6; }
37688     ac_cv_func_strnicmp="no"
37689   fi
37690
37691
37692     #
37693   tst_links_strstr="unknown"
37694   tst_proto_strstr="unknown"
37695   tst_compi_strstr="unknown"
37696   tst_allow_strstr="unknown"
37697   #
37698   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
37699 $as_echo_n "checking if strstr can be linked... " >&6; }
37700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37701 /* end confdefs.h.  */
37702
37703
37704 #define strstr innocuous_strstr
37705 #ifdef __STDC__
37706 # include <limits.h>
37707 #else
37708 # include <assert.h>
37709 #endif
37710 #undef strstr
37711 #ifdef __cplusplus
37712 extern "C"
37713 #endif
37714 char strstr ();
37715 #if defined __stub_strstr || defined __stub___strstr
37716 choke me
37717 #endif
37718
37719 int main (void)
37720 {
37721 return strstr ();
37722  ;
37723  return 0;
37724 }
37725
37726 _ACEOF
37727 if ac_fn_c_try_link "$LINENO"; then :
37728
37729     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37730 $as_echo "yes" >&6; }
37731     tst_links_strstr="yes"
37732
37733 else
37734
37735     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37736 $as_echo "no" >&6; }
37737     tst_links_strstr="no"
37738
37739 fi
37740 rm -f core conftest.err conftest.$ac_objext \
37741     conftest$ac_exeext conftest.$ac_ext
37742   #
37743   if test "$tst_links_strstr" = "yes"; then
37744     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
37745 $as_echo_n "checking if strstr is prototyped... " >&6; }
37746     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37747 /* end confdefs.h.  */
37748
37749       $curl_includes_string
37750
37751 _ACEOF
37752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37753   $EGREP "strstr" >/dev/null 2>&1; then :
37754
37755       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37756 $as_echo "yes" >&6; }
37757       tst_proto_strstr="yes"
37758
37759 else
37760
37761       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37762 $as_echo "no" >&6; }
37763       tst_proto_strstr="no"
37764
37765 fi
37766 rm -f conftest*
37767
37768   fi
37769   #
37770   if test "$tst_proto_strstr" = "yes"; then
37771     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
37772 $as_echo_n "checking if strstr is compilable... " >&6; }
37773     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37774 /* end confdefs.h.  */
37775
37776
37777         $curl_includes_string
37778
37779 int main (void)
37780 {
37781
37782         if(0 != strstr(0, 0))
37783           return 1;
37784
37785  ;
37786  return 0;
37787 }
37788
37789 _ACEOF
37790 if ac_fn_c_try_compile "$LINENO"; then :
37791
37792       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37793 $as_echo "yes" >&6; }
37794       tst_compi_strstr="yes"
37795
37796 else
37797
37798       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37799 $as_echo "no" >&6; }
37800       tst_compi_strstr="no"
37801
37802 fi
37803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37804   fi
37805   #
37806   if test "$tst_compi_strstr" = "yes"; then
37807     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
37808 $as_echo_n "checking if strstr usage allowed... " >&6; }
37809     if test "x$curl_disallow_strstr" != "xyes"; then
37810       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37811 $as_echo "yes" >&6; }
37812       tst_allow_strstr="yes"
37813     else
37814       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37815 $as_echo "no" >&6; }
37816       tst_allow_strstr="no"
37817     fi
37818   fi
37819   #
37820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
37821 $as_echo_n "checking if strstr might be used... " >&6; }
37822   if test "$tst_links_strstr" = "yes" &&
37823      test "$tst_proto_strstr" = "yes" &&
37824      test "$tst_compi_strstr" = "yes" &&
37825      test "$tst_allow_strstr" = "yes"; then
37826     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37827 $as_echo "yes" >&6; }
37828
37829 cat >>confdefs.h <<_ACEOF
37830 #define HAVE_STRSTR 1
37831 _ACEOF
37832
37833     ac_cv_func_strstr="yes"
37834   else
37835     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37836 $as_echo "no" >&6; }
37837     ac_cv_func_strstr="no"
37838   fi
37839
37840
37841     #
37842   tst_links_strtok_r="unknown"
37843   tst_proto_strtok_r="unknown"
37844   tst_compi_strtok_r="unknown"
37845   tst_allow_strtok_r="unknown"
37846   #
37847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
37848 $as_echo_n "checking if strtok_r can be linked... " >&6; }
37849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37850 /* end confdefs.h.  */
37851
37852
37853 #define strtok_r innocuous_strtok_r
37854 #ifdef __STDC__
37855 # include <limits.h>
37856 #else
37857 # include <assert.h>
37858 #endif
37859 #undef strtok_r
37860 #ifdef __cplusplus
37861 extern "C"
37862 #endif
37863 char strtok_r ();
37864 #if defined __stub_strtok_r || defined __stub___strtok_r
37865 choke me
37866 #endif
37867
37868 int main (void)
37869 {
37870 return strtok_r ();
37871  ;
37872  return 0;
37873 }
37874
37875 _ACEOF
37876 if ac_fn_c_try_link "$LINENO"; then :
37877
37878     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37879 $as_echo "yes" >&6; }
37880     tst_links_strtok_r="yes"
37881
37882 else
37883
37884     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37885 $as_echo "no" >&6; }
37886     tst_links_strtok_r="no"
37887
37888 fi
37889 rm -f core conftest.err conftest.$ac_objext \
37890     conftest$ac_exeext conftest.$ac_ext
37891   #
37892   if test "$tst_links_strtok_r" = "yes"; then
37893     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
37894 $as_echo_n "checking if strtok_r is prototyped... " >&6; }
37895     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37896 /* end confdefs.h.  */
37897
37898       $curl_includes_string
37899
37900 _ACEOF
37901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37902   $EGREP "strtok_r" >/dev/null 2>&1; then :
37903
37904       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37905 $as_echo "yes" >&6; }
37906       tst_proto_strtok_r="yes"
37907
37908 else
37909
37910       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37911 $as_echo "no" >&6; }
37912       tst_proto_strtok_r="no"
37913
37914 fi
37915 rm -f conftest*
37916
37917   fi
37918   #
37919   if test "$tst_proto_strtok_r" = "yes"; then
37920     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
37921 $as_echo_n "checking if strtok_r is compilable... " >&6; }
37922     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37923 /* end confdefs.h.  */
37924
37925
37926         $curl_includes_string
37927
37928 int main (void)
37929 {
37930
37931         if(0 != strtok_r(0, 0, 0))
37932           return 1;
37933
37934  ;
37935  return 0;
37936 }
37937
37938 _ACEOF
37939 if ac_fn_c_try_compile "$LINENO"; then :
37940
37941       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37942 $as_echo "yes" >&6; }
37943       tst_compi_strtok_r="yes"
37944
37945 else
37946
37947       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37948 $as_echo "no" >&6; }
37949       tst_compi_strtok_r="no"
37950
37951 fi
37952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37953   fi
37954   #
37955   if test "$tst_compi_strtok_r" = "yes"; then
37956     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
37957 $as_echo_n "checking if strtok_r usage allowed... " >&6; }
37958     if test "x$curl_disallow_strtok_r" != "xyes"; then
37959       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37960 $as_echo "yes" >&6; }
37961       tst_allow_strtok_r="yes"
37962     else
37963       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37964 $as_echo "no" >&6; }
37965       tst_allow_strtok_r="no"
37966     fi
37967   fi
37968   #
37969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
37970 $as_echo_n "checking if strtok_r might be used... " >&6; }
37971   if test "$tst_links_strtok_r" = "yes" &&
37972      test "$tst_proto_strtok_r" = "yes" &&
37973      test "$tst_compi_strtok_r" = "yes" &&
37974      test "$tst_allow_strtok_r" = "yes"; then
37975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37976 $as_echo "yes" >&6; }
37977
37978 cat >>confdefs.h <<_ACEOF
37979 #define HAVE_STRTOK_R 1
37980 _ACEOF
37981
37982     ac_cv_func_strtok_r="yes"
37983   else
37984     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37985 $as_echo "no" >&6; }
37986     ac_cv_func_strtok_r="no"
37987   fi
37988
37989
37990     #
37991   tst_links_strtoll="unknown"
37992   tst_proto_strtoll="unknown"
37993   tst_compi_strtoll="unknown"
37994   tst_allow_strtoll="unknown"
37995   #
37996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
37997 $as_echo_n "checking if strtoll can be linked... " >&6; }
37998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37999 /* end confdefs.h.  */
38000
38001
38002 #define strtoll innocuous_strtoll
38003 #ifdef __STDC__
38004 # include <limits.h>
38005 #else
38006 # include <assert.h>
38007 #endif
38008 #undef strtoll
38009 #ifdef __cplusplus
38010 extern "C"
38011 #endif
38012 char strtoll ();
38013 #if defined __stub_strtoll || defined __stub___strtoll
38014 choke me
38015 #endif
38016
38017 int main (void)
38018 {
38019 return strtoll ();
38020  ;
38021  return 0;
38022 }
38023
38024 _ACEOF
38025 if ac_fn_c_try_link "$LINENO"; then :
38026
38027     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38028 $as_echo "yes" >&6; }
38029     tst_links_strtoll="yes"
38030
38031 else
38032
38033     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38034 $as_echo "no" >&6; }
38035     tst_links_strtoll="no"
38036
38037 fi
38038 rm -f core conftest.err conftest.$ac_objext \
38039     conftest$ac_exeext conftest.$ac_ext
38040   #
38041   if test "$tst_links_strtoll" = "yes"; then
38042     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
38043 $as_echo_n "checking if strtoll is prototyped... " >&6; }
38044     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38045 /* end confdefs.h.  */
38046
38047       $curl_includes_stdlib
38048
38049 _ACEOF
38050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38051   $EGREP "strtoll" >/dev/null 2>&1; then :
38052
38053       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38054 $as_echo "yes" >&6; }
38055       tst_proto_strtoll="yes"
38056
38057 else
38058
38059       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38060 $as_echo "no" >&6; }
38061       tst_proto_strtoll="no"
38062
38063 fi
38064 rm -f conftest*
38065
38066   fi
38067   #
38068   if test "$tst_proto_strtoll" = "yes"; then
38069     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
38070 $as_echo_n "checking if strtoll is compilable... " >&6; }
38071     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38072 /* end confdefs.h.  */
38073
38074
38075         $curl_includes_stdlib
38076
38077 int main (void)
38078 {
38079
38080         if(0 != strtoll(0, 0, 0))
38081           return 1;
38082
38083  ;
38084  return 0;
38085 }
38086
38087 _ACEOF
38088 if ac_fn_c_try_compile "$LINENO"; then :
38089
38090       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38091 $as_echo "yes" >&6; }
38092       tst_compi_strtoll="yes"
38093
38094 else
38095
38096       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38097 $as_echo "no" >&6; }
38098       tst_compi_strtoll="no"
38099
38100 fi
38101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38102   fi
38103   #
38104   if test "$tst_compi_strtoll" = "yes"; then
38105     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
38106 $as_echo_n "checking if strtoll usage allowed... " >&6; }
38107     if test "x$curl_disallow_strtoll" != "xyes"; then
38108       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38109 $as_echo "yes" >&6; }
38110       tst_allow_strtoll="yes"
38111     else
38112       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38113 $as_echo "no" >&6; }
38114       tst_allow_strtoll="no"
38115     fi
38116   fi
38117   #
38118   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
38119 $as_echo_n "checking if strtoll might be used... " >&6; }
38120   if test "$tst_links_strtoll" = "yes" &&
38121      test "$tst_proto_strtoll" = "yes" &&
38122      test "$tst_compi_strtoll" = "yes" &&
38123      test "$tst_allow_strtoll" = "yes"; then
38124     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38125 $as_echo "yes" >&6; }
38126
38127 cat >>confdefs.h <<_ACEOF
38128 #define HAVE_STRTOLL 1
38129 _ACEOF
38130
38131     ac_cv_func_strtoll="yes"
38132   else
38133     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38134 $as_echo "no" >&6; }
38135     ac_cv_func_strtoll="no"
38136   fi
38137
38138
38139 curl_includes_sys_uio="\
38140 /* includes start */
38141 #ifdef HAVE_SYS_TYPES_H
38142 #  include <sys/types.h>
38143 #endif
38144 #ifdef HAVE_SYS_UIO_H
38145 #  include <sys/uio.h>
38146 #endif
38147 /* includes end */"
38148   for ac_header in sys/types.h sys/uio.h
38149 do :
38150   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38151 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
38152 "
38153 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38154   cat >>confdefs.h <<_ACEOF
38155 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38156 _ACEOF
38157
38158 fi
38159
38160 done
38161
38162
38163
38164     #
38165   tst_links_writev="unknown"
38166   tst_proto_writev="unknown"
38167   tst_compi_writev="unknown"
38168   tst_allow_writev="unknown"
38169   #
38170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
38171 $as_echo_n "checking if writev can be linked... " >&6; }
38172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38173 /* end confdefs.h.  */
38174
38175
38176 #define writev innocuous_writev
38177 #ifdef __STDC__
38178 # include <limits.h>
38179 #else
38180 # include <assert.h>
38181 #endif
38182 #undef writev
38183 #ifdef __cplusplus
38184 extern "C"
38185 #endif
38186 char writev ();
38187 #if defined __stub_writev || defined __stub___writev
38188 choke me
38189 #endif
38190
38191 int main (void)
38192 {
38193 return writev ();
38194  ;
38195  return 0;
38196 }
38197
38198 _ACEOF
38199 if ac_fn_c_try_link "$LINENO"; then :
38200
38201     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38202 $as_echo "yes" >&6; }
38203     tst_links_writev="yes"
38204
38205 else
38206
38207     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38208 $as_echo "no" >&6; }
38209     tst_links_writev="no"
38210
38211 fi
38212 rm -f core conftest.err conftest.$ac_objext \
38213     conftest$ac_exeext conftest.$ac_ext
38214   #
38215   if test "$tst_links_writev" = "yes"; then
38216     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
38217 $as_echo_n "checking if writev is prototyped... " >&6; }
38218     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38219 /* end confdefs.h.  */
38220
38221       $curl_includes_sys_uio
38222
38223 _ACEOF
38224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38225   $EGREP "writev" >/dev/null 2>&1; then :
38226
38227       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38228 $as_echo "yes" >&6; }
38229       tst_proto_writev="yes"
38230
38231 else
38232
38233       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38234 $as_echo "no" >&6; }
38235       tst_proto_writev="no"
38236
38237 fi
38238 rm -f conftest*
38239
38240   fi
38241   #
38242   if test "$tst_proto_writev" = "yes"; then
38243     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
38244 $as_echo_n "checking if writev is compilable... " >&6; }
38245     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38246 /* end confdefs.h.  */
38247
38248
38249         $curl_includes_sys_uio
38250
38251 int main (void)
38252 {
38253
38254         if(0 != writev(0, 0, 0))
38255           return 1;
38256
38257  ;
38258  return 0;
38259 }
38260
38261 _ACEOF
38262 if ac_fn_c_try_compile "$LINENO"; then :
38263
38264       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38265 $as_echo "yes" >&6; }
38266       tst_compi_writev="yes"
38267
38268 else
38269
38270       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38271 $as_echo "no" >&6; }
38272       tst_compi_writev="no"
38273
38274 fi
38275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38276   fi
38277   #
38278   if test "$tst_compi_writev" = "yes"; then
38279     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
38280 $as_echo_n "checking if writev usage allowed... " >&6; }
38281     if test "x$curl_disallow_writev" != "xyes"; then
38282       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38283 $as_echo "yes" >&6; }
38284       tst_allow_writev="yes"
38285     else
38286       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38287 $as_echo "no" >&6; }
38288       tst_allow_writev="no"
38289     fi
38290   fi
38291   #
38292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
38293 $as_echo_n "checking if writev might be used... " >&6; }
38294   if test "$tst_links_writev" = "yes" &&
38295      test "$tst_proto_writev" = "yes" &&
38296      test "$tst_compi_writev" = "yes" &&
38297      test "$tst_allow_writev" = "yes"; then
38298     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38299 $as_echo "yes" >&6; }
38300
38301 cat >>confdefs.h <<_ACEOF
38302 #define HAVE_WRITEV 1
38303 _ACEOF
38304
38305     ac_cv_func_writev="yes"
38306   else
38307     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38308 $as_echo "no" >&6; }
38309     ac_cv_func_writev="no"
38310   fi
38311
38312
38313 case $host in
38314   *msdosdjgpp)
38315      ac_cv_func_pipe=no
38316      skipcheck_pipe=yes
38317      { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
38318 $as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
38319     ;;
38320 esac
38321
38322 for ac_func in fork \
38323   geteuid \
38324   getpass_r \
38325   getppid \
38326   getprotobyname \
38327   getpwuid \
38328   getpwuid_r \
38329   getrlimit \
38330   gettimeofday \
38331   if_nametoindex \
38332   inet_addr \
38333   perror \
38334   pipe \
38335   setlocale \
38336   setmode \
38337   setrlimit \
38338   uname \
38339   utime
38340
38341 do :
38342   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38343 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
38344 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
38345   cat >>confdefs.h <<_ACEOF
38346 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38347 _ACEOF
38348
38349
38350 else
38351
38352   func="$ac_func"
38353   eval skipcheck=\$skipcheck_$func
38354   if test "x$skipcheck" != "xyes"; then
38355     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
38356 $as_echo_n "checking deeper for $func... " >&6; }
38357     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38358 /* end confdefs.h.  */
38359
38360
38361
38362 int main (void)
38363 {
38364
38365         $func ();
38366
38367  ;
38368  return 0;
38369 }
38370
38371 _ACEOF
38372 if ac_fn_c_try_link "$LINENO"; then :
38373
38374       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38375 $as_echo "yes" >&6; }
38376       eval "ac_cv_func_$func=yes"
38377
38378 cat >>confdefs.h <<_ACEOF
38379 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
38380 _ACEOF
38381
38382
38383 else
38384
38385       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
38386 $as_echo "but still no" >&6; }
38387
38388 fi
38389 rm -f core conftest.err conftest.$ac_objext \
38390     conftest$ac_exeext conftest.$ac_ext
38391   fi
38392
38393 fi
38394 done
38395
38396
38397
38398     for ac_header in sys/types.h sys/socket.h netdb.h
38399 do :
38400   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38401 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
38402 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38403   cat >>confdefs.h <<_ACEOF
38404 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38405 _ACEOF
38406
38407 fi
38408
38409 done
38410
38411   #
38412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
38413 $as_echo_n "checking for getnameinfo... " >&6; }
38414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38415 /* end confdefs.h.  */
38416
38417
38418 #define getnameinfo innocuous_getnameinfo
38419 #ifdef __STDC__
38420 # include <limits.h>
38421 #else
38422 # include <assert.h>
38423 #endif
38424 #undef getnameinfo
38425 #ifdef __cplusplus
38426 extern "C"
38427 #endif
38428 char getnameinfo ();
38429 #if defined __stub_getnameinfo || defined __stub___getnameinfo
38430 choke me
38431 #endif
38432
38433 int main (void)
38434 {
38435 return getnameinfo ();
38436  ;
38437  return 0;
38438 }
38439
38440 _ACEOF
38441 if ac_fn_c_try_link "$LINENO"; then :
38442
38443     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38444 $as_echo "yes" >&6; }
38445     curl_cv_getnameinfo="yes"
38446
38447 else
38448
38449     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38450 $as_echo "no" >&6; }
38451     curl_cv_getnameinfo="no"
38452
38453 fi
38454 rm -f core conftest.err conftest.$ac_objext \
38455     conftest$ac_exeext conftest.$ac_ext
38456   #
38457   if test "$curl_cv_getnameinfo" != "yes"; then
38458     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
38459 $as_echo_n "checking deeper for getnameinfo... " >&6; }
38460     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38461 /* end confdefs.h.  */
38462
38463
38464
38465 int main (void)
38466 {
38467
38468         getnameinfo();
38469
38470  ;
38471  return 0;
38472 }
38473
38474 _ACEOF
38475 if ac_fn_c_try_link "$LINENO"; then :
38476
38477       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38478 $as_echo "yes" >&6; }
38479       curl_cv_getnameinfo="yes"
38480
38481 else
38482
38483       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
38484 $as_echo "but still no" >&6; }
38485       curl_cv_getnameinfo="no"
38486
38487 fi
38488 rm -f core conftest.err conftest.$ac_objext \
38489     conftest$ac_exeext conftest.$ac_ext
38490   fi
38491   #
38492   if test "$curl_cv_getnameinfo" != "yes"; then
38493     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
38494 $as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
38495     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38496 /* end confdefs.h.  */
38497
38498
38499 #undef inline
38500 #ifdef HAVE_WINDOWS_H
38501 #ifndef WIN32_LEAN_AND_MEAN
38502 #define WIN32_LEAN_AND_MEAN
38503 #endif
38504 #include <windows.h>
38505 #ifdef HAVE_WINSOCK2_H
38506 #include <winsock2.h>
38507 #ifdef HAVE_WS2TCPIP_H
38508 #include <ws2tcpip.h>
38509 #endif
38510 #endif
38511 #else
38512 #ifdef HAVE_SYS_TYPES_H
38513 #include <sys/types.h>
38514 #endif
38515 #ifdef HAVE_SYS_SOCKET_H
38516 #include <sys/socket.h>
38517 #endif
38518 #ifdef HAVE_NETDB_H
38519 #include <netdb.h>
38520 #endif
38521 #endif
38522
38523 int main (void)
38524 {
38525
38526         getnameinfo(0, 0, 0, 0, 0, 0, 0);
38527
38528  ;
38529  return 0;
38530 }
38531
38532 _ACEOF
38533 if ac_fn_c_try_link "$LINENO"; then :
38534
38535       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38536 $as_echo "yes" >&6; }
38537       curl_cv_getnameinfo="yes"
38538
38539 else
38540
38541       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
38542 $as_echo "but still no" >&6; }
38543       curl_cv_getnameinfo="no"
38544
38545 fi
38546 rm -f core conftest.err conftest.$ac_objext \
38547     conftest$ac_exeext conftest.$ac_ext
38548   fi
38549   #
38550   if test "$curl_cv_getnameinfo" = "yes"; then
38551     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
38552 $as_echo_n "checking types of arguments for getnameinfo... " >&6; }
38553 if ${curl_cv_func_getnameinfo_args+:} false; then :
38554   $as_echo_n "(cached) " >&6
38555 else
38556
38557       curl_cv_func_getnameinfo_args="unknown"
38558       for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
38559         for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
38560           for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
38561             for gni_arg7 in 'int' 'unsigned int'; do
38562               if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
38563                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38564 /* end confdefs.h.  */
38565
38566
38567 #undef inline
38568 #ifdef HAVE_WINDOWS_H
38569 #ifndef WIN32_LEAN_AND_MEAN
38570 #define WIN32_LEAN_AND_MEAN
38571 #endif
38572 #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
38573 #undef _WIN32_WINNT
38574 #define _WIN32_WINNT 0x0501
38575 #endif
38576 #include <windows.h>
38577 #ifdef HAVE_WINSOCK2_H
38578 #include <winsock2.h>
38579 #ifdef HAVE_WS2TCPIP_H
38580 #include <ws2tcpip.h>
38581 #endif
38582 #endif
38583 #define GNICALLCONV WSAAPI
38584 #else
38585 #ifdef HAVE_SYS_TYPES_H
38586 #include <sys/types.h>
38587 #endif
38588 #ifdef HAVE_SYS_SOCKET_H
38589 #include <sys/socket.h>
38590 #endif
38591 #ifdef HAVE_NETDB_H
38592 #include <netdb.h>
38593 #endif
38594 #define GNICALLCONV
38595 #endif
38596                     extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
38597                                            char *, $gni_arg46,
38598                                            char *, $gni_arg46,
38599                                            $gni_arg7);
38600
38601 int main (void)
38602 {
38603
38604                     $gni_arg2 salen=0;
38605                     $gni_arg46 hostlen=0;
38606                     $gni_arg46 servlen=0;
38607                     $gni_arg7 flags=0;
38608                     int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
38609
38610  ;
38611  return 0;
38612 }
38613
38614 _ACEOF
38615 if ac_fn_c_try_compile "$LINENO"; then :
38616
38617                   curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
38618
38619 fi
38620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38621               fi
38622             done
38623           done
38624         done
38625       done
38626
38627 fi
38628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
38629 $as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
38630     if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
38631       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
38632 $as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
38633       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
38634 $as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
38635     else
38636       gni_prev_IFS=$IFS; IFS=','
38637       set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
38638       IFS=$gni_prev_IFS
38639       shift
38640       #
38641       gni_qual_type_arg1=$1
38642       #
38643
38644 cat >>confdefs.h <<_ACEOF
38645 #define GETNAMEINFO_TYPE_ARG2 $2
38646 _ACEOF
38647
38648
38649 cat >>confdefs.h <<_ACEOF
38650 #define GETNAMEINFO_TYPE_ARG46 $3
38651 _ACEOF
38652
38653
38654 cat >>confdefs.h <<_ACEOF
38655 #define GETNAMEINFO_TYPE_ARG7 $4
38656 _ACEOF
38657
38658       #
38659       prev_sh_opts=$-
38660       #
38661       case $prev_sh_opts in
38662         *f*)
38663           ;;
38664         *)
38665           set -f
38666           ;;
38667       esac
38668       #
38669       case "$gni_qual_type_arg1" in
38670         const*)
38671           gni_qual_arg1=const
38672           gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
38673         ;;
38674         *)
38675           gni_qual_arg1=
38676           gni_type_arg1=$gni_qual_type_arg1
38677         ;;
38678       esac
38679       #
38680
38681 cat >>confdefs.h <<_ACEOF
38682 #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
38683 _ACEOF
38684
38685
38686 cat >>confdefs.h <<_ACEOF
38687 #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
38688 _ACEOF
38689
38690       #
38691       case $prev_sh_opts in
38692         *f*)
38693           ;;
38694         *)
38695           set +f
38696           ;;
38697       esac
38698       #
38699
38700 cat >>confdefs.h <<_ACEOF
38701 #define HAVE_GETNAMEINFO 1
38702 _ACEOF
38703
38704       ac_cv_func_getnameinfo="yes"
38705     fi
38706   fi
38707
38708
38709 if test "$ipv6" = "yes"; then
38710   if test "$ac_cv_func_getaddrinfo" = "yes"; then
38711
38712 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
38713
38714     IPV6_ENABLED=1
38715
38716   fi
38717
38718       for ac_header in stdio.h sys/types.h sys/socket.h \
38719                    netdb.h netinet/in.h arpa/inet.h
38720 do :
38721   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38722 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
38723 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38724   cat >>confdefs.h <<_ACEOF
38725 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38726 _ACEOF
38727
38728 fi
38729
38730 done
38731
38732   #
38733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working NI_WITHSCOPEID" >&5
38734 $as_echo_n "checking for working NI_WITHSCOPEID... " >&6; }
38735 if ${ac_cv_working_ni_withscopeid+:} false; then :
38736   $as_echo_n "(cached) " >&6
38737 else
38738
38739     if test "$cross_compiling" = yes; then :
38740
38741       # Program is not run when cross-compiling. So we assume
38742       # NI_WITHSCOPEID will work if we are able to compile it.
38743       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38744 /* end confdefs.h.  */
38745
38746
38747 #include <sys/types.h>
38748 #include <sys/socket.h>
38749 #include <netdb.h>
38750
38751 int main (void)
38752 {
38753
38754           unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
38755
38756  ;
38757  return 0;
38758 }
38759
38760 _ACEOF
38761 if ac_fn_c_try_compile "$LINENO"; then :
38762
38763         ac_cv_working_ni_withscopeid="yes"
38764
38765 else
38766
38767         ac_cv_working_ni_withscopeid="no"
38768
38769 fi
38770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE
38771
38772 else
38773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38774 /* end confdefs.h.  */
38775
38776
38777 #ifdef HAVE_STDLIB_H
38778 #include <stdlib.h>
38779 #endif
38780 #ifdef HAVE_STDIO_H
38781 #include <stdio.h>
38782 #endif
38783 #ifdef HAVE_SYS_TYPES_H
38784 #include <sys/types.h>
38785 #endif
38786 #ifdef HAVE_SYS_SOCKET_H
38787 #include <sys/socket.h>
38788 #endif
38789 #ifdef HAVE_NETDB_H
38790 #include <netdb.h>
38791 #endif
38792 #ifdef HAVE_NETINET_IN_H
38793 #include <netinet/in.h>
38794 #endif
38795 #ifdef HAVE_ARPA_INET_H
38796 #include <arpa/inet.h>
38797 #endif
38798
38799 int main (void)
38800 {
38801
38802 #if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
38803 #ifdef HAVE_STRUCT_SOCKADDR_STORAGE
38804         struct sockaddr_storage sa;
38805 #else
38806         unsigned char sa[256];
38807 #endif
38808         char hostbuf[NI_MAXHOST];
38809         int rc;
38810         GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa);
38811         GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf);
38812         GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
38813         int fd = socket(AF_INET6, SOCK_STREAM, 0);
38814         if(fd < 0) {
38815           perror("socket()");
38816           return 1; /* Error creating socket */
38817         }
38818         rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
38819         if(rc) {
38820           perror("getsockname()");
38821           return 2; /* Error retrieving socket name */
38822         }
38823         rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
38824         if(rc) {
38825           printf("rc = %s\n", gai_strerror(rc));
38826           return 3; /* Error translating socket address */
38827         }
38828         return 0; /* Ok, NI_WITHSCOPEID works */
38829 #else
38830         return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
38831 #endif
38832
38833  ;
38834  return 0;
38835 } # AC-LANG-PROGRAM
38836
38837 _ACEOF
38838 if ac_fn_c_try_run "$LINENO"; then :
38839
38840       # Exit code == 0. Program worked.
38841       ac_cv_working_ni_withscopeid="yes"
38842
38843 else
38844
38845       # Exit code != 0. Program failed.
38846       ac_cv_working_ni_withscopeid="no"
38847
38848 fi
38849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38850   conftest.$ac_objext conftest.beam conftest.$ac_ext
38851 fi
38852  # AC-RUN-IFELSE
38853
38854 fi
38855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_ni_withscopeid" >&5
38856 $as_echo "$ac_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK
38857   case "$ac_cv_working_ni_withscopeid" in
38858     yes)
38859
38860 $as_echo "#define HAVE_NI_WITHSCOPEID 1" >>confdefs.h
38861
38862       ;;
38863   esac
38864
38865 fi
38866
38867
38868             #
38869   tst_method="unknown"
38870
38871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
38872 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
38873   if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then
38874     tst_method="fcntl O_NONBLOCK"
38875   elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then
38876     tst_method="ioctl FIONBIO"
38877   elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then
38878     tst_method="ioctlsocket FIONBIO"
38879   elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
38880     tst_method="IoctlSocket FIONBIO"
38881   elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then
38882     tst_method="setsockopt SO_NONBLOCK"
38883   fi
38884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
38885 $as_echo "$tst_method" >&6; }
38886   if test "$tst_method" = "unknown"; then
38887     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
38888 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
38889   fi
38890
38891
38892
38893 # Extract the first word of "perl", so it can be a program name with args.
38894 set dummy perl; ac_word=$2
38895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38896 $as_echo_n "checking for $ac_word... " >&6; }
38897 if ${ac_cv_path_PERL+:} false; then :
38898   $as_echo_n "(cached) " >&6
38899 else
38900   case $PERL in
38901   [\\/]* | ?:[\\/]*)
38902   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
38903   ;;
38904   *)
38905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38906 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
38907 for as_dir in $as_dummy
38908 do
38909   IFS=$as_save_IFS
38910   test -z "$as_dir" && as_dir=.
38911     for ac_exec_ext in '' $ac_executable_extensions; do
38912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38913     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
38914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38915     break 2
38916   fi
38917 done
38918   done
38919 IFS=$as_save_IFS
38920
38921   ;;
38922 esac
38923 fi
38924 PERL=$ac_cv_path_PERL
38925 if test -n "$PERL"; then
38926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
38927 $as_echo "$PERL" >&6; }
38928 else
38929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38930 $as_echo "no" >&6; }
38931 fi
38932
38933
38934
38935
38936 for ac_prog in gnroff nroff
38937 do
38938   # Extract the first word of "$ac_prog", so it can be a program name with args.
38939 set dummy $ac_prog; ac_word=$2
38940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38941 $as_echo_n "checking for $ac_word... " >&6; }
38942 if ${ac_cv_path_NROFF+:} false; then :
38943   $as_echo_n "(cached) " >&6
38944 else
38945   case $NROFF in
38946   [\\/]* | ?:[\\/]*)
38947   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
38948   ;;
38949   *)
38950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38951 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
38952 for as_dir in $as_dummy
38953 do
38954   IFS=$as_save_IFS
38955   test -z "$as_dir" && as_dir=.
38956     for ac_exec_ext in '' $ac_executable_extensions; do
38957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38958     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
38959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38960     break 2
38961   fi
38962 done
38963   done
38964 IFS=$as_save_IFS
38965
38966   ;;
38967 esac
38968 fi
38969 NROFF=$ac_cv_path_NROFF
38970 if test -n "$NROFF"; then
38971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
38972 $as_echo "$NROFF" >&6; }
38973 else
38974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38975 $as_echo "no" >&6; }
38976 fi
38977
38978
38979   test -n "$NROFF" && break
38980 done
38981
38982
38983
38984 if test -n "$NROFF"; then
38985
38986   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
38987 $as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
38988   MANOPT="-man"
38989   mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
38990   if test -z "$mancheck"; then
38991     MANOPT="-mandoc"
38992    mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
38993     if test -z "$mancheck"; then
38994       MANOPT=""
38995       { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
38996 $as_echo "failed" >&6; }
38997       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
38998 $as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
38999     else
39000       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
39001 $as_echo "$MANOPT" >&6; }
39002     fi
39003   else
39004     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
39005 $as_echo "$MANOPT" >&6; }
39006   fi
39007
39008 fi
39009
39010 if test -z "$MANOPT"
39011 then
39012       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
39013 $as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
39014   USE_MANUAL="no";
39015 fi
39016
39017
39018 if test "$USE_MANUAL" = "1"; then
39019
39020 $as_echo "#define USE_MANUAL 1" >>confdefs.h
39021
39022   curl_manual_msg="enabled"
39023 fi
39024
39025  if test x"$USE_MANUAL" = x1; then
39026   USE_MANUAL_TRUE=
39027   USE_MANUAL_FALSE='#'
39028 else
39029   USE_MANUAL_TRUE='#'
39030   USE_MANUAL_FALSE=
39031 fi
39032
39033
39034
39035
39036
39037   #
39038   if test "$want_ares" = "yes"; then
39039         clean_CPPFLAGS="$CPPFLAGS"
39040     clean_LDFLAGS="$LDFLAGS"
39041     clean_LIBS="$LIBS"
39042     embedded_ares="unknown"
39043     configure_runpath=`pwd`
39044     embedded_ares_builddir="$configure_runpath/ares"
39045     if test -n "$want_ares_path"; then
39046             ares_CPPFLAGS="-I$want_ares_path/include"
39047       ares_LDFLAGS="-L$want_ares_path/lib"
39048       ares_LIBS="-lcares"
39049     else
39050             if test -d "$srcdir/ares"; then
39051                 embedded_ares="yes"
39052         subdirs="$subdirs ares"
39053
39054                         ares_CPPFLAGS=""
39055         ares_LDFLAGS="-L$embedded_ares_builddir"
39056         ares_LIBS="-lcares"
39057       else
39058                 ares_CPPFLAGS=""
39059         ares_LDFLAGS=""
39060         ares_LIBS="-lcares"
39061       fi
39062     fi
39063     #
39064     CPPFLAGS="$ares_CPPFLAGS $clean_CPPFLAGS"
39065     LDFLAGS="$ares_LDFLAGS $clean_LDFLAGS"
39066     LIBS="$ares_LIBS $clean_LIBS"
39067     #
39068     if test "$embedded_ares" != "yes"; then
39069                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
39070 $as_echo_n "checking that c-ares is good and recent enough... " >&6; }
39071       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39072 /* end confdefs.h.  */
39073
39074
39075 #include <ares.h>
39076           /* set of dummy functions in case c-ares was built with debug */
39077           void curl_dofree() { }
39078           void curl_sclose() { }
39079           void curl_domalloc() { }
39080           void curl_docalloc() { }
39081           void curl_socket() { }
39082
39083 int main (void)
39084 {
39085
39086           ares_channel channel;
39087           ares_cancel(channel); /* added in 1.2.0 */
39088           ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
39089           ares_dup(&channel, channel); /* added in 1.6.0 */
39090
39091  ;
39092  return 0;
39093 }
39094
39095 _ACEOF
39096 if ac_fn_c_try_link "$LINENO"; then :
39097
39098         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39099 $as_echo "yes" >&6; }
39100
39101 else
39102
39103         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39104 $as_echo "no" >&6; }
39105         as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
39106                 CPPFLAGS="$clean_CPPFLAGS"
39107         LDFLAGS="$clean_LDFLAGS"
39108         LIBS="$clean_LIBS"
39109         # prevent usage
39110         want_ares="no"
39111
39112 fi
39113 rm -f core conftest.err conftest.$ac_objext \
39114     conftest$ac_exeext conftest.$ac_ext
39115     fi
39116     if test "$want_ares" = "yes"; then
39117
39118 $as_echo "#define USE_ARES 1" >>confdefs.h
39119
39120       USE_ARES=1
39121
39122       curl_res_msg="c-ares"
39123     fi
39124   fi
39125
39126  if test x$embedded_ares = xyes; then
39127   USE_EMBEDDED_ARES_TRUE=
39128   USE_EMBEDDED_ARES_FALSE='#'
39129 else
39130   USE_EMBEDDED_ARES_TRUE='#'
39131   USE_EMBEDDED_ARES_FALSE=
39132 fi
39133
39134
39135 if test "x$ac_cv_native_windows" != "xyes" &&
39136    test "x$enable_shared" = "xyes"; then
39137   build_libhostname=yes
39138 else
39139   build_libhostname=no
39140 fi
39141  if test x$build_libhostname = xyes; then
39142   BUILD_LIBHOSTNAME_TRUE=
39143   BUILD_LIBHOSTNAME_FALSE='#'
39144 else
39145   BUILD_LIBHOSTNAME_TRUE='#'
39146   BUILD_LIBHOSTNAME_FALSE=
39147 fi
39148
39149
39150
39151   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
39152 $as_echo_n "checking whether to enable the threaded resolver... " >&6; }
39153   OPT_THRES="default"
39154   # Check whether --enable-threaded_resolver was given.
39155 if test "${enable_threaded_resolver+set}" = set; then :
39156   enableval=$enable_threaded_resolver; OPT_THRES=$enableval
39157 fi
39158
39159   case "$OPT_THRES" in
39160     yes)
39161             want_thres="yes"
39162       ;;
39163     *)
39164             want_thres="no"
39165       ;;
39166   esac
39167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
39168 $as_echo "$want_thres" >&6; }
39169
39170
39171 if test "x$want_thres" = xyes && test "x$want_ares" = xyes; then
39172   as_fn_error $? "Options --enable-threaded-resolver and --enable-ares are mutually exclusive" "$LINENO" 5
39173 fi
39174
39175 if test "$want_thres" = "yes" && test "$dontwant_rt" = "no"; then
39176   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
39177 if test "x$ac_cv_header_pthread_h" = xyes; then :
39178
39179 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
39180
39181       save_CFLAGS="$CFLAGS"
39182
39183             ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
39184 if test "x$ac_cv_func_pthread_create" = xyes; then :
39185   USE_THREADS_POSIX=1
39186 fi
39187
39188
39189             if test "$USE_THREADS_POSIX" != "1"
39190       then
39191         CFLAGS="$CFLAGS -pthread"
39192         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
39193 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
39194 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
39195   $as_echo_n "(cached) " >&6
39196 else
39197   ac_check_lib_save_LIBS=$LIBS
39198 LIBS="-lpthread  $LIBS"
39199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39200 /* end confdefs.h.  */
39201
39202
39203 #ifdef __cplusplus
39204 extern "C"
39205 #endif
39206 char pthread_create ();
39207 int main (void)
39208 {
39209 return pthread_create ();
39210  ;
39211  return 0;
39212 }
39213 _ACEOF
39214 if ac_fn_c_try_link "$LINENO"; then :
39215   ac_cv_lib_pthread_pthread_create=yes
39216 else
39217   ac_cv_lib_pthread_pthread_create=no
39218 fi
39219 rm -f core conftest.err conftest.$ac_objext \
39220     conftest$ac_exeext conftest.$ac_ext
39221 LIBS=$ac_check_lib_save_LIBS
39222 fi
39223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
39224 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
39225 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
39226   USE_THREADS_POSIX=1
39227 else
39228    CFLAGS="$save_CFLAGS"
39229 fi
39230
39231       fi
39232
39233       if test "x$USE_THREADS_POSIX" = "x1"
39234       then
39235
39236 $as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
39237
39238         curl_res_msg="POSIX threaded"
39239       fi
39240
39241
39242
39243 fi
39244
39245
39246 fi
39247
39248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
39249 $as_echo_n "checking whether to enable verbose strings... " >&6; }
39250 # Check whether --enable-verbose was given.
39251 if test "${enable_verbose+set}" = set; then :
39252   enableval=$enable_verbose;  case "$enableval" in
39253   no)
39254        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39255 $as_echo "no" >&6; }
39256
39257 $as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
39258
39259        curl_verbose_msg="no"
39260        ;;
39261   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39262 $as_echo "yes" >&6; }
39263        ;;
39264   esac
39265 else
39266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39267 $as_echo "yes" >&6; }
39268
39269 fi
39270
39271
39272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
39273 $as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
39274 # Check whether --enable-sspi was given.
39275 if test "${enable_sspi+set}" = set; then :
39276   enableval=$enable_sspi;  case "$enableval" in
39277   yes)
39278        if test "$ac_cv_native_windows" = "yes"; then
39279          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39280 $as_echo "yes" >&6; }
39281
39282 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
39283
39284          USE_WINDOWS_SSPI=1
39285
39286          curl_sspi_msg="enabled"
39287        else
39288          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39289 $as_echo "no" >&6; }
39290          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
39291 $as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
39292        fi
39293        ;;
39294   *)
39295        if test "x$WINSSL_ENABLED" = "x1"; then
39296          # --with-winssl implies --enable-sspi
39297          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39298 $as_echo "yes" >&6; }
39299        else
39300          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39301 $as_echo "no" >&6; }
39302        fi
39303        ;;
39304   esac
39305 else
39306   if test "x$WINSSL_ENABLED" = "x1"; then
39307          # --with-winssl implies --enable-sspi
39308          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39309 $as_echo "yes" >&6; }
39310        else
39311          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39312 $as_echo "no" >&6; }
39313        fi
39314
39315 fi
39316
39317
39318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
39319 $as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
39320 # Check whether --enable-crypto-auth was given.
39321 if test "${enable_crypto_auth+set}" = set; then :
39322   enableval=$enable_crypto_auth;  case "$enableval" in
39323   no)
39324        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39325 $as_echo "no" >&6; }
39326
39327 $as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
39328
39329        CURL_DISABLE_CRYPTO_AUTH=1
39330        ;;
39331   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39332 $as_echo "yes" >&6; }
39333        ;;
39334   esac
39335 else
39336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39337 $as_echo "yes" >&6; }
39338
39339 fi
39340
39341
39342
39343     OPT_NTLM_WB="default"
39344   # Check whether --enable-ntlm-wb was given.
39345 if test "${enable_ntlm_wb+set}" = set; then :
39346   enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
39347 fi
39348
39349   want_ntlm_wb_file="/usr/bin/ntlm_auth"
39350   case "$OPT_NTLM_WB" in
39351     no)
39352             want_ntlm_wb="no"
39353       ;;
39354     default)
39355             want_ntlm_wb="yes"
39356       ;;
39357     *)
39358             want_ntlm_wb="yes"
39359       if test -n "$enableval" && test "$enableval" != "yes"; then
39360         want_ntlm_wb_file="$enableval"
39361       fi
39362       ;;
39363   esac
39364
39365
39366
39367       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
39368 $as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
39369   if test "$ac_cv_native_windows" = "yes" ||
39370     test "x$SSL_ENABLED" = "x"; then
39371     want_ntlm_wb_file=""
39372     want_ntlm_wb="no"
39373   fi
39374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
39375 $as_echo "$want_ntlm_wb" >&6; }
39376   if test "$want_ntlm_wb" = "yes"; then
39377
39378 $as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
39379
39380
39381 cat >>confdefs.h <<_ACEOF
39382 #define NTLM_WB_FILE "$want_ntlm_wb_file"
39383 _ACEOF
39384
39385     NTLM_WB_ENABLED=1
39386   fi
39387
39388
39389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
39390 $as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
39391 # Check whether --enable-tls-srp was given.
39392 if test "${enable_tls_srp+set}" = set; then :
39393   enableval=$enable_tls_srp;  case "$enableval" in
39394   no)
39395        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39396 $as_echo "no" >&6; }
39397
39398 $as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
39399
39400        want_tls_srp=no
39401        ;;
39402   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39403 $as_echo "yes" >&6; }
39404        want_tls_srp=yes
39405        ;;
39406   esac
39407 else
39408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39409 $as_echo "yes" >&6; }
39410        want_tls_srp=yes
39411
39412 fi
39413
39414
39415 if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
39416
39417 $as_echo "#define USE_TLS_SRP 1" >>confdefs.h
39418
39419    USE_TLS_SRP=1
39420    curl_tls_srp_msg="enabled"
39421 fi
39422
39423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
39424 $as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
39425 # Check whether --enable-unix-sockets was given.
39426 if test "${enable_unix_sockets+set}" = set; then :
39427   enableval=$enable_unix_sockets;  case "$enableval" in
39428   no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39429 $as_echo "no" >&6; }
39430        want_unix_sockets=no
39431        ;;
39432   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39433 $as_echo "yes" >&6; }
39434        want_unix_sockets=yes
39435        ;;
39436   esac
39437 else
39438
39439        { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
39440 $as_echo "auto" >&6; }
39441        want_unix_sockets=auto
39442
39443
39444 fi
39445
39446 if test "x$want_unix_sockets" != "xno"; then
39447   ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
39448     #include <sys/un.h>
39449
39450 "
39451 if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
39452
39453
39454 $as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
39455
39456     USE_UNIX_SOCKETS=1
39457
39458     curl_unix_sockets_msg="enabled"
39459
39460 else
39461
39462     if test "x$want_unix_sockets" = "xyes"; then
39463       as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
39464     fi
39465
39466 fi
39467
39468 fi
39469
39470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
39471 $as_echo_n "checking whether to enable support for cookies... " >&6; }
39472 # Check whether --enable-cookies was given.
39473 if test "${enable_cookies+set}" = set; then :
39474   enableval=$enable_cookies;  case "$enableval" in
39475   no)
39476        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39477 $as_echo "no" >&6; }
39478
39479 $as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
39480
39481        ;;
39482   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39483 $as_echo "yes" >&6; }
39484        ;;
39485   esac
39486 else
39487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39488 $as_echo "yes" >&6; }
39489
39490 fi
39491
39492
39493
39494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
39495 $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
39496   CFLAG_CURL_SYMBOL_HIDING=""
39497   doing_symbol_hiding="no"
39498   if test x"$ac_cv_native_windows" != "xyes" &&
39499     test "$want_symbol_hiding" = "yes" &&
39500     test "$supports_symbol_hiding" = "yes"; then
39501     doing_symbol_hiding="yes"
39502     CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
39503
39504 cat >>confdefs.h <<_ACEOF
39505 #define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
39506 _ACEOF
39507
39508     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39509 $as_echo "yes" >&6; }
39510   else
39511     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39512 $as_echo "no" >&6; }
39513   fi
39514    if test x$doing_symbol_hiding = xyes; then
39515   DOING_CURL_SYMBOL_HIDING_TRUE=
39516   DOING_CURL_SYMBOL_HIDING_FALSE='#'
39517 else
39518   DOING_CURL_SYMBOL_HIDING_TRUE='#'
39519   DOING_CURL_SYMBOL_HIDING_FALSE=
39520 fi
39521
39522
39523
39524
39525
39526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enforce SONAME bump" >&5
39527 $as_echo_n "checking whether to enforce SONAME bump... " >&6; }
39528 # Check whether --enable-soname-bump was given.
39529 if test "${enable_soname_bump+set}" = set; then :
39530   enableval=$enable_soname_bump;  case "$enableval" in
39531   yes)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39532 $as_echo "yes" >&6; }
39533          soname_bump=yes
39534          ;;
39535   *)
39536          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39537 $as_echo "no" >&6; }
39538          ;;
39539   esac
39540 else
39541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $soname_bump" >&5
39542 $as_echo "$soname_bump" >&6; }
39543
39544 fi
39545
39546  if test x$soname_bump = xyes; then
39547   SONAME_BUMP_TRUE=
39548   SONAME_BUMP_FALSE='#'
39549 else
39550   SONAME_BUMP_TRUE='#'
39551   SONAME_BUMP_FALSE=
39552 fi
39553
39554
39555 LIBCURL_LIBS=$LIBS
39556
39557
39558
39559
39560
39561 BLANK_AT_MAKETIME=
39562
39563
39564  if test x$cross_compiling = xyes; then
39565   CROSSCOMPILING_TRUE=
39566   CROSSCOMPILING_FALSE='#'
39567 else
39568   CROSSCOMPILING_TRUE='#'
39569   CROSSCOMPILING_FALSE=
39570 fi
39571
39572
39573 ENABLE_SHARED="$enable_shared"
39574
39575
39576 ENABLE_STATIC="$enable_static"
39577
39578
39579
39580
39581 if test "x$OPENSSL_ENABLED" = "x1"; then
39582   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
39583 elif test -n "$SSL_ENABLED"; then
39584   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
39585 fi
39586 if test "x$IPV6_ENABLED" = "x1"; then
39587   SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
39588 fi
39589 if test "x$USE_UNIX_SOCKETS" = "x1"; then
39590   SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
39591 fi
39592 if test "x$HAVE_LIBZ" = "x1"; then
39593   SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
39594 fi
39595 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1"; then
39596   SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
39597 fi
39598 if test "x$IDN_ENABLED" = "x1"; then
39599   SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
39600 fi
39601 if test "x$USE_WINDOWS_SSPI" = "x1"; then
39602   SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
39603 fi
39604
39605 if test "x$HAVE_GSSAPI" = "x1"; then
39606   SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
39607 fi
39608
39609 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
39610     \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
39611   SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
39612 fi
39613
39614 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
39615     \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
39616   SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
39617 fi
39618
39619 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
39620   if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
39621       -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \
39622       -o "x$DARWINSSL_ENABLED" = "x1"; then
39623     SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
39624
39625     if test "x$CURL_DISABLE_HTTP" != "x1" -a \
39626         "x$NTLM_WB_ENABLED" = "x1"; then
39627       SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
39628     fi
39629   fi
39630 fi
39631
39632 if test "x$USE_TLS_SRP" = "x1"; then
39633   SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
39634 fi
39635
39636 if test "x$USE_NGHTTP2" = "x1"; then
39637   SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
39638 fi
39639
39640
39641
39642 if test "x$CURL_DISABLE_HTTP" != "x1"; then
39643   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
39644   if test "x$SSL_ENABLED" = "x1"; then
39645     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
39646   fi
39647 fi
39648 if test "x$CURL_DISABLE_FTP" != "x1"; then
39649   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
39650   if test "x$SSL_ENABLED" = "x1"; then
39651     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
39652   fi
39653 fi
39654 if test "x$CURL_DISABLE_FILE" != "x1"; then
39655   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
39656 fi
39657 if test "x$CURL_DISABLE_TELNET" != "x1"; then
39658   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
39659 fi
39660 if test "x$CURL_DISABLE_LDAP" != "x1"; then
39661   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
39662   if test "x$CURL_DISABLE_LDAPS" != "x1"; then
39663     if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
39664       (test "x$USE_OPENLDAP" != "x1"  && test "x$HAVE_LDAP_SSL" = "x1"); then
39665       SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
39666     fi
39667   fi
39668 fi
39669 if test "x$CURL_DISABLE_DICT" != "x1"; then
39670   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
39671 fi
39672 if test "x$CURL_DISABLE_TFTP" != "x1"; then
39673   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
39674 fi
39675 if test "x$CURL_DISABLE_GOPHER" != "x1"; then
39676   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
39677 fi
39678 if test "x$CURL_DISABLE_POP3" != "x1"; then
39679   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
39680   if test "x$SSL_ENABLED" = "x1"; then
39681     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
39682   fi
39683 fi
39684 if test "x$CURL_DISABLE_IMAP" != "x1"; then
39685   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
39686   if test "x$SSL_ENABLED" = "x1"; then
39687     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
39688   fi
39689 fi
39690 if test "x$CURL_DISABLE_SMB" != "x1" \
39691     -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
39692     -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
39693       -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \
39694       -o "x$DARWINSSL_ENABLED" = "x1" \); then
39695   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
39696   if test "x$SSL_ENABLED" = "x1"; then
39697     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
39698   fi
39699 fi
39700 if test "x$CURL_DISABLE_SMTP" != "x1"; then
39701   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
39702   if test "x$SSL_ENABLED" = "x1"; then
39703     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
39704   fi
39705 fi
39706 if test "x$USE_LIBSSH2" = "x1"; then
39707   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
39708   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
39709 fi
39710 if test "x$CURL_DISABLE_RTSP" != "x1"; then
39711   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
39712 fi
39713 if test "x$USE_LIBRTMP" = "x1"; then
39714   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
39715 fi
39716
39717 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
39718
39719
39720
39721
39722 squeeze CFLAGS
39723 squeeze CPPFLAGS
39724 squeeze DEFS
39725 squeeze LDFLAGS
39726 squeeze LIBS
39727
39728 squeeze LIBCURL_LIBS
39729 squeeze CURL_NETWORK_LIBS
39730 squeeze CURL_NETWORK_AND_TIME_LIBS
39731
39732 squeeze SUPPORT_FEATURES
39733 squeeze SUPPORT_PROTOCOLS
39734
39735
39736
39737   xc_bad_var_libs=no
39738   for xc_word in $LIBS; do
39739     case "$xc_word" in
39740       -l* | --library=*)
39741         :
39742         ;;
39743       *)
39744         xc_bad_var_libs=yes
39745         ;;
39746     esac
39747   done
39748   if test $xc_bad_var_libs = yes; then
39749     { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
39750 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
39751     { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
39752 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
39753   fi
39754
39755
39756   xc_bad_var_ldflags=no
39757   for xc_word in $LDFLAGS; do
39758     case "$xc_word" in
39759       -D*)
39760         xc_bad_var_ldflags=yes
39761         ;;
39762       -U*)
39763         xc_bad_var_ldflags=yes
39764         ;;
39765       -I*)
39766         xc_bad_var_ldflags=yes
39767         ;;
39768       -l* | --library=*)
39769         xc_bad_var_ldflags=yes
39770         ;;
39771     esac
39772   done
39773   if test $xc_bad_var_ldflags = yes; then
39774     { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
39775 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
39776     xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
39777     for xc_word in $LDFLAGS; do
39778       case "$xc_word" in
39779         -D*)
39780           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
39781 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
39782           ;;
39783         -U*)
39784           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
39785 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
39786           ;;
39787         -I*)
39788           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
39789 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
39790           ;;
39791         -l* | --library=*)
39792           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
39793 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
39794           ;;
39795       esac
39796     done
39797   fi
39798
39799
39800   xc_bad_var_cppflags=no
39801   for xc_word in $CPPFLAGS; do
39802     case "$xc_word" in
39803       -rpath*)
39804         xc_bad_var_cppflags=yes
39805         ;;
39806       -L* | --library-path=*)
39807         xc_bad_var_cppflags=yes
39808         ;;
39809       -l* | --library=*)
39810         xc_bad_var_cppflags=yes
39811         ;;
39812     esac
39813   done
39814   if test $xc_bad_var_cppflags = yes; then
39815     { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
39816 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
39817     xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
39818     for xc_word in $CPPFLAGS; do
39819       case "$xc_word" in
39820         -rpath*)
39821           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
39822 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
39823           ;;
39824         -L* | --library-path=*)
39825           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
39826 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
39827           ;;
39828         -l* | --library=*)
39829           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
39830 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
39831           ;;
39832       esac
39833     done
39834   fi
39835
39836
39837   xc_bad_var_cflags=no
39838   for xc_word in $CFLAGS; do
39839     case "$xc_word" in
39840       -D*)
39841         xc_bad_var_cflags=yes
39842         ;;
39843       -U*)
39844         xc_bad_var_cflags=yes
39845         ;;
39846       -I*)
39847         xc_bad_var_cflags=yes
39848         ;;
39849       -rpath*)
39850         xc_bad_var_cflags=yes
39851         ;;
39852       -L* | --library-path=*)
39853         xc_bad_var_cflags=yes
39854         ;;
39855       -l* | --library=*)
39856         xc_bad_var_cflags=yes
39857         ;;
39858     esac
39859   done
39860   if test $xc_bad_var_cflags = yes; then
39861     { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
39862 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
39863     xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
39864     for xc_word in $CFLAGS; do
39865       case "$xc_word" in
39866         -D*)
39867           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
39868 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
39869           ;;
39870         -U*)
39871           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
39872 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
39873           ;;
39874         -I*)
39875           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
39876 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
39877           ;;
39878         -rpath*)
39879           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
39880 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
39881           ;;
39882         -L* | --library-path=*)
39883           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
39884 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
39885           ;;
39886         -l* | --library=*)
39887           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
39888 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
39889           ;;
39890       esac
39891     done
39892   fi
39893
39894   if test $xc_bad_var_libs = yes ||
39895      test $xc_bad_var_cflags = yes ||
39896      test $xc_bad_var_ldflags = yes ||
39897      test $xc_bad_var_cppflags = yes; then
39898      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
39899 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
39900   fi
39901
39902
39903 if test "x$want_curldebug_assumed" = "xyes" &&
39904   test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
39905   ac_configure_args="$ac_configure_args --enable-curldebug"
39906 fi
39907
39908 ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile docs/libcurl/opts/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile 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"
39909
39910 cat >confcache <<\_ACEOF
39911 # This file is a shell script that caches the results of configure
39912 # tests run on this system so they can be shared between configure
39913 # scripts and configure runs, see configure's option --config-cache.
39914 # It is not useful on other systems.  If it contains results you don't
39915 # want to keep, you may remove or edit it.
39916 #
39917 # config.status only pays attention to the cache file if you give it
39918 # the --recheck option to rerun configure.
39919 #
39920 # `ac_cv_env_foo' variables (set or unset) will be overridden when
39921 # loading this file, other *unset* `ac_cv_foo' will be assigned the
39922 # following values.
39923
39924 _ACEOF
39925
39926 # The following way of writing the cache mishandles newlines in values,
39927 # but we know of no workaround that is simple, portable, and efficient.
39928 # So, we kill variables containing newlines.
39929 # Ultrix sh set writes to stderr and can't be redirected directly,
39930 # and sets the high bit in the cache file unless we assign to the vars.
39931 (
39932   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
39933     eval ac_val=\$$ac_var
39934     case $ac_val in #(
39935     *${as_nl}*)
39936       case $ac_var in #(
39937       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
39938 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
39939       esac
39940       case $ac_var in #(
39941       _ | IFS | as_nl) ;; #(
39942       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
39943       *) { eval $ac_var=; unset $ac_var;} ;;
39944       esac ;;
39945     esac
39946   done
39947
39948   (set) 2>&1 |
39949     case $as_nl`(ac_space=' '; set) 2>&1` in #(
39950     *${as_nl}ac_space=\ *)
39951       # `set' does not quote correctly, so add quotes: double-quote
39952       # substitution turns \\\\ into \\, and sed turns \\ into \.
39953       sed -n \
39954         "s/'/'\\\\''/g;
39955           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39956       ;; #(
39957     *)
39958       # `set' quotes correctly as required by POSIX, so do not add quotes.
39959       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
39960       ;;
39961     esac |
39962     sort
39963 ) |
39964   sed '
39965      /^ac_cv_env_/b end
39966      t clear
39967      :clear
39968      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39969      t end
39970      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39971      :end' >>confcache
39972 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
39973   if test -w "$cache_file"; then
39974     if test "x$cache_file" != "x/dev/null"; then
39975       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
39976 $as_echo "$as_me: updating cache $cache_file" >&6;}
39977       if test ! -f "$cache_file" || test -h "$cache_file"; then
39978         cat confcache >"$cache_file"
39979       else
39980         case $cache_file in #(
39981         */* | ?:*)
39982           mv -f confcache "$cache_file"$$ &&
39983           mv -f "$cache_file"$$ "$cache_file" ;; #(
39984         *)
39985           mv -f confcache "$cache_file" ;;
39986         esac
39987       fi
39988     fi
39989   else
39990     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
39991 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
39992   fi
39993 fi
39994 rm -f confcache
39995
39996 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39997 # Let make expand exec_prefix.
39998 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39999
40000 DEFS=-DHAVE_CONFIG_H
40001
40002 ac_libobjs=
40003 ac_ltlibobjs=
40004 U=
40005 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40006   # 1. Remove the extension, and $U if already installed.
40007   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
40008   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
40009   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
40010   #    will be set to the directory where LIBOBJS objects are built.
40011   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
40012   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
40013 done
40014 LIBOBJS=$ac_libobjs
40015
40016 LTLIBOBJS=$ac_ltlibobjs
40017
40018
40019 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
40020   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
40021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40022 fi
40023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
40024 $as_echo_n "checking that generated files are newer than configure... " >&6; }
40025    if test -n "$am_sleep_pid"; then
40026      # Hide warnings about reused PIDs.
40027      wait $am_sleep_pid 2>/dev/null
40028    fi
40029    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
40030 $as_echo "done" >&6; }
40031 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40032   as_fn_error $? "conditional \"AMDEP\" was never defined.
40033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40034 fi
40035 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40036   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
40037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40038 fi
40039  if test -n "$EXEEXT"; then
40040   am__EXEEXT_TRUE=
40041   am__EXEEXT_FALSE='#'
40042 else
40043   am__EXEEXT_TRUE='#'
40044   am__EXEEXT_FALSE=
40045 fi
40046
40047 if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
40048   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
40049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40050 fi
40051 if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
40052   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
40053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40054 fi
40055 if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
40056   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
40057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40058 fi
40059 if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
40060   as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
40061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40062 fi
40063 if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
40064   as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
40065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40066 fi
40067 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
40068   as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
40069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40070 fi
40071 if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
40072   as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
40073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40074 fi
40075 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
40076   as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
40077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40078 fi
40079 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
40080   as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
40081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40082 fi
40083 if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
40084   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
40085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40086 fi
40087 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
40088   as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
40089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40090 fi
40091 if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
40092   as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
40093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40094 fi
40095 if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
40096   as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
40097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40098 fi
40099 if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
40100   as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
40101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40102 fi
40103 if test -z "${SONAME_BUMP_TRUE}" && test -z "${SONAME_BUMP_FALSE}"; then
40104   as_fn_error $? "conditional \"SONAME_BUMP\" was never defined.
40105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40106 fi
40107 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
40108   as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
40109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
40110 fi
40111
40112 : "${CONFIG_STATUS=./config.status}"
40113 ac_write_fail=0
40114 ac_clean_files_save=$ac_clean_files
40115 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40116 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
40117 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
40118 as_write_fail=0
40119 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
40120 #! $SHELL
40121 # Generated by $as_me.
40122 # Run this file to recreate the current configuration.
40123 # Compiler output produced by configure, useful for debugging
40124 # configure, is in config.log if it exists.
40125
40126 debug=false
40127 ac_cs_recheck=false
40128 ac_cs_silent=false
40129
40130 SHELL=\${CONFIG_SHELL-$SHELL}
40131 export SHELL
40132 _ASEOF
40133 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
40134 ## -------------------- ##
40135 ## M4sh Initialization. ##
40136 ## -------------------- ##
40137
40138 # Be more Bourne compatible
40139 DUALCASE=1; export DUALCASE # for MKS sh
40140 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
40141   emulate sh
40142   NULLCMD=:
40143   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
40144   # is contrary to our usage.  Disable this feature.
40145   alias -g '${1+"$@"}'='"$@"'
40146   setopt NO_GLOB_SUBST
40147 else
40148   case `(set -o) 2>/dev/null` in #(
40149   *posix*) :
40150     set -o posix ;; #(
40151   *) :
40152      ;;
40153 esac
40154 fi
40155
40156
40157 as_nl='
40158 '
40159 export as_nl
40160 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40161 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40162 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40163 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
40164 # Prefer a ksh shell builtin over an external printf program on Solaris,
40165 # but without wasting forks for bash or zsh.
40166 if test -z "$BASH_VERSION$ZSH_VERSION" \
40167     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
40168   as_echo='print -r --'
40169   as_echo_n='print -rn --'
40170 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
40171   as_echo='printf %s\n'
40172   as_echo_n='printf %s'
40173 else
40174   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
40175     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
40176     as_echo_n='/usr/ucb/echo -n'
40177   else
40178     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
40179     as_echo_n_body='eval
40180       arg=$1;
40181       case $arg in #(
40182       *"$as_nl"*)
40183         expr "X$arg" : "X\\(.*\\)$as_nl";
40184         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
40185       esac;
40186       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
40187     '
40188     export as_echo_n_body
40189     as_echo_n='sh -c $as_echo_n_body as_echo'
40190   fi
40191   export as_echo_body
40192   as_echo='sh -c $as_echo_body as_echo'
40193 fi
40194
40195
40196
40197 # IFS
40198 # We need space, tab and new line, in precisely that order.  Quoting is
40199 # there to prevent editors from complaining about space-tab.
40200 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
40201 # splitting by setting IFS to empty value.)
40202 IFS=" ""        $as_nl"
40203
40204 # Find who we are.  Look in the path if we contain no directory separator.
40205 as_myself=
40206 case $0 in #((
40207   *[\\/]* ) as_myself=$0 ;;
40208   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40209 for as_dir in $PATH
40210 do
40211   IFS=$as_save_IFS
40212   test -z "$as_dir" && as_dir=.
40213     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
40214   done
40215 IFS=$as_save_IFS
40216
40217      ;;
40218 esac
40219 # We did not find ourselves, most probably we were run as `sh COMMAND'
40220 # in which case we are not to be found in the path.
40221 if test "x$as_myself" = x; then
40222   as_myself=$0
40223 fi
40224 if test ! -f "$as_myself"; then
40225   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
40226   exit 1
40227 fi
40228
40229 # Unset variables that we do not need and which cause bugs (e.g. in
40230 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
40231 # suppresses any "Segmentation fault" message there.  '((' could
40232 # trigger a bug in pdksh 5.2.14.
40233 for as_var in BASH_ENV ENV MAIL MAILPATH
40234 do eval test x\${$as_var+set} = xset \
40235   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
40236 done
40237 PS1='$ '
40238 PS2='> '
40239 PS4='+ '
40240
40241 # NLS nuisances.
40242 LC_ALL=C
40243 export LC_ALL
40244 LANGUAGE=C
40245 export LANGUAGE
40246
40247 # CDPATH.
40248 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
40249
40250
40251 # as_fn_error STATUS ERROR [LINENO LOG_FD]
40252 # ----------------------------------------
40253 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
40254 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
40255 # script with STATUS, using 1 if that was 0.
40256 as_fn_error ()
40257 {
40258   as_status=$1; test $as_status -eq 0 && as_status=1
40259   if test "$4"; then
40260     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
40261     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
40262   fi
40263   $as_echo "$as_me: error: $2" >&2
40264   as_fn_exit $as_status
40265 } # as_fn_error
40266
40267
40268 # as_fn_set_status STATUS
40269 # -----------------------
40270 # Set $? to STATUS, without forking.
40271 as_fn_set_status ()
40272 {
40273   return $1
40274 } # as_fn_set_status
40275
40276 # as_fn_exit STATUS
40277 # -----------------
40278 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
40279 as_fn_exit ()
40280 {
40281   set +e
40282   as_fn_set_status $1
40283   exit $1
40284 } # as_fn_exit
40285
40286 # as_fn_unset VAR
40287 # ---------------
40288 # Portably unset VAR.
40289 as_fn_unset ()
40290 {
40291   { eval $1=; unset $1;}
40292 }
40293 as_unset=as_fn_unset
40294 # as_fn_append VAR VALUE
40295 # ----------------------
40296 # Append the text in VALUE to the end of the definition contained in VAR. Take
40297 # advantage of any shell optimizations that allow amortized linear growth over
40298 # repeated appends, instead of the typical quadratic growth present in naive
40299 # implementations.
40300 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
40301   eval 'as_fn_append ()
40302   {
40303     eval $1+=\$2
40304   }'
40305 else
40306   as_fn_append ()
40307   {
40308     eval $1=\$$1\$2
40309   }
40310 fi # as_fn_append
40311
40312 # as_fn_arith ARG...
40313 # ------------------
40314 # Perform arithmetic evaluation on the ARGs, and store the result in the
40315 # global $as_val. Take advantage of shells that can avoid forks. The arguments
40316 # must be portable across $(()) and expr.
40317 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
40318   eval 'as_fn_arith ()
40319   {
40320     as_val=$(( $* ))
40321   }'
40322 else
40323   as_fn_arith ()
40324   {
40325     as_val=`expr "$@" || test $? -eq 1`
40326   }
40327 fi # as_fn_arith
40328
40329
40330 if expr a : '\(a\)' >/dev/null 2>&1 &&
40331    test "X`expr 00001 : '.*\(...\)'`" = X001; then
40332   as_expr=expr
40333 else
40334   as_expr=false
40335 fi
40336
40337 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
40338   as_basename=basename
40339 else
40340   as_basename=false
40341 fi
40342
40343 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
40344   as_dirname=dirname
40345 else
40346   as_dirname=false
40347 fi
40348
40349 as_me=`$as_basename -- "$0" ||
40350 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40351          X"$0" : 'X\(//\)$' \| \
40352          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
40353 $as_echo X/"$0" |
40354     sed '/^.*\/\([^/][^/]*\)\/*$/{
40355             s//\1/
40356             q
40357           }
40358           /^X\/\(\/\/\)$/{
40359             s//\1/
40360             q
40361           }
40362           /^X\/\(\/\).*/{
40363             s//\1/
40364             q
40365           }
40366           s/.*/./; q'`
40367
40368 # Avoid depending upon Character Ranges.
40369 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40370 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40371 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40372 as_cr_digits='0123456789'
40373 as_cr_alnum=$as_cr_Letters$as_cr_digits
40374
40375 ECHO_C= ECHO_N= ECHO_T=
40376 case `echo -n x` in #(((((
40377 -n*)
40378   case `echo 'xy\c'` in
40379   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
40380   xy)  ECHO_C='\c';;
40381   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
40382        ECHO_T=' ';;
40383   esac;;
40384 *)
40385   ECHO_N='-n';;
40386 esac
40387
40388 rm -f conf$$ conf$$.exe conf$$.file
40389 if test -d conf$$.dir; then
40390   rm -f conf$$.dir/conf$$.file
40391 else
40392   rm -f conf$$.dir
40393   mkdir conf$$.dir 2>/dev/null
40394 fi
40395 if (echo >conf$$.file) 2>/dev/null; then
40396   if ln -s conf$$.file conf$$ 2>/dev/null; then
40397     as_ln_s='ln -s'
40398     # ... but there are two gotchas:
40399     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
40400     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
40401     # In both cases, we have to default to `cp -pR'.
40402     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
40403       as_ln_s='cp -pR'
40404   elif ln conf$$.file conf$$ 2>/dev/null; then
40405     as_ln_s=ln
40406   else
40407     as_ln_s='cp -pR'
40408   fi
40409 else
40410   as_ln_s='cp -pR'
40411 fi
40412 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
40413 rmdir conf$$.dir 2>/dev/null
40414
40415
40416 # as_fn_mkdir_p
40417 # -------------
40418 # Create "$as_dir" as a directory, including parents if necessary.
40419 as_fn_mkdir_p ()
40420 {
40421
40422   case $as_dir in #(
40423   -*) as_dir=./$as_dir;;
40424   esac
40425   test -d "$as_dir" || eval $as_mkdir_p || {
40426     as_dirs=
40427     while :; do
40428       case $as_dir in #(
40429       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
40430       *) as_qdir=$as_dir;;
40431       esac
40432       as_dirs="'$as_qdir' $as_dirs"
40433       as_dir=`$as_dirname -- "$as_dir" ||
40434 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40435          X"$as_dir" : 'X\(//\)[^/]' \| \
40436          X"$as_dir" : 'X\(//\)$' \| \
40437          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40438 $as_echo X"$as_dir" |
40439     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40440             s//\1/
40441             q
40442           }
40443           /^X\(\/\/\)[^/].*/{
40444             s//\1/
40445             q
40446           }
40447           /^X\(\/\/\)$/{
40448             s//\1/
40449             q
40450           }
40451           /^X\(\/\).*/{
40452             s//\1/
40453             q
40454           }
40455           s/.*/./; q'`
40456       test -d "$as_dir" && break
40457     done
40458     test -z "$as_dirs" || eval "mkdir $as_dirs"
40459   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
40460
40461
40462 } # as_fn_mkdir_p
40463 if mkdir -p . 2>/dev/null; then
40464   as_mkdir_p='mkdir -p "$as_dir"'
40465 else
40466   test -d ./-p && rmdir ./-p
40467   as_mkdir_p=false
40468 fi
40469
40470
40471 # as_fn_executable_p FILE
40472 # -----------------------
40473 # Test if FILE is an executable regular file.
40474 as_fn_executable_p ()
40475 {
40476   test -f "$1" && test -x "$1"
40477 } # as_fn_executable_p
40478 as_test_x='test -x'
40479 as_executable_p=as_fn_executable_p
40480
40481 # Sed expression to map a string onto a valid CPP name.
40482 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
40483
40484 # Sed expression to map a string onto a valid variable name.
40485 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
40486
40487
40488 exec 6>&1
40489 ## ----------------------------------- ##
40490 ## Main body of $CONFIG_STATUS script. ##
40491 ## ----------------------------------- ##
40492 _ASEOF
40493 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
40494
40495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40496 # Save the log message, to keep $0 and so on meaningful, and to
40497 # report actual input values of CONFIG_FILES etc. instead of their
40498 # values after options handling.
40499 ac_log="
40500 This file was extended by curl $as_me -, which was
40501 generated by GNU Autoconf 2.69.  Invocation command line was
40502
40503   CONFIG_FILES    = $CONFIG_FILES
40504   CONFIG_HEADERS  = $CONFIG_HEADERS
40505   CONFIG_LINKS    = $CONFIG_LINKS
40506   CONFIG_COMMANDS = $CONFIG_COMMANDS
40507   $ $0 $@
40508
40509 on `(hostname || uname -n) 2>/dev/null | sed 1q`
40510 "
40511
40512 _ACEOF
40513
40514 case $ac_config_files in *"
40515 "*) set x $ac_config_files; shift; ac_config_files=$*;;
40516 esac
40517
40518 case $ac_config_headers in *"
40519 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
40520 esac
40521
40522
40523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40524 # Files that config.status was made for.
40525 config_files="$ac_config_files"
40526 config_headers="$ac_config_headers"
40527 config_commands="$ac_config_commands"
40528
40529 _ACEOF
40530
40531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40532 ac_cs_usage="\
40533 \`$as_me' instantiates files and other configuration actions
40534 from templates according to the current configuration.  Unless the files
40535 and actions are specified as TAGs, all are instantiated by default.
40536
40537 Usage: $0 [OPTION]... [TAG]...
40538
40539   -h, --help       print this help, then exit
40540   -V, --version    print version number and configuration settings, then exit
40541       --config     print configuration, then exit
40542   -q, --quiet, --silent
40543                    do not print progress messages
40544   -d, --debug      don't remove temporary files
40545       --recheck    update $as_me by reconfiguring in the same conditions
40546       --file=FILE[:TEMPLATE]
40547                    instantiate the configuration file FILE
40548       --header=FILE[:TEMPLATE]
40549                    instantiate the configuration header FILE
40550
40551 Configuration files:
40552 $config_files
40553
40554 Configuration headers:
40555 $config_headers
40556
40557 Configuration commands:
40558 $config_commands
40559
40560 Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>."
40561
40562 _ACEOF
40563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40564 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40565 ac_cs_version="\\
40566 curl config.status -
40567 configured by $0, generated by GNU Autoconf 2.69,
40568   with options \\"\$ac_cs_config\\"
40569
40570 Copyright (C) 2012 Free Software Foundation, Inc.
40571 This config.status script is free software; the Free Software Foundation
40572 gives unlimited permission to copy, distribute and modify it."
40573
40574 ac_pwd='$ac_pwd'
40575 srcdir='$srcdir'
40576 INSTALL='$INSTALL'
40577 MKDIR_P='$MKDIR_P'
40578 AWK='$AWK'
40579 test -n "\$AWK" || AWK=awk
40580 _ACEOF
40581
40582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40583 # The default lists apply if the user does not specify any file.
40584 ac_need_defaults=:
40585 while test $# != 0
40586 do
40587   case $1 in
40588   --*=?*)
40589     ac_option=`expr "X$1" : 'X\([^=]*\)='`
40590     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
40591     ac_shift=:
40592     ;;
40593   --*=)
40594     ac_option=`expr "X$1" : 'X\([^=]*\)='`
40595     ac_optarg=
40596     ac_shift=:
40597     ;;
40598   *)
40599     ac_option=$1
40600     ac_optarg=$2
40601     ac_shift=shift
40602     ;;
40603   esac
40604
40605   case $ac_option in
40606   # Handling of the options.
40607   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
40608     ac_cs_recheck=: ;;
40609   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
40610     $as_echo "$ac_cs_version"; exit ;;
40611   --config | --confi | --conf | --con | --co | --c )
40612     $as_echo "$ac_cs_config"; exit ;;
40613   --debug | --debu | --deb | --de | --d | -d )
40614     debug=: ;;
40615   --file | --fil | --fi | --f )
40616     $ac_shift
40617     case $ac_optarg in
40618     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
40619     '') as_fn_error $? "missing file argument" ;;
40620     esac
40621     as_fn_append CONFIG_FILES " '$ac_optarg'"
40622     ac_need_defaults=false;;
40623   --header | --heade | --head | --hea )
40624     $ac_shift
40625     case $ac_optarg in
40626     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
40627     esac
40628     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
40629     ac_need_defaults=false;;
40630   --he | --h)
40631     # Conflict between --help and --header
40632     as_fn_error $? "ambiguous option: \`$1'
40633 Try \`$0 --help' for more information.";;
40634   --help | --hel | -h )
40635     $as_echo "$ac_cs_usage"; exit ;;
40636   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
40637   | -silent | --silent | --silen | --sile | --sil | --si | --s)
40638     ac_cs_silent=: ;;
40639
40640   # This is an error.
40641   -*) as_fn_error $? "unrecognized option: \`$1'
40642 Try \`$0 --help' for more information." ;;
40643
40644   *) as_fn_append ac_config_targets " $1"
40645      ac_need_defaults=false ;;
40646
40647   esac
40648   shift
40649 done
40650
40651 ac_configure_extra_args=
40652
40653 if $ac_cs_silent; then
40654   exec 6>/dev/null
40655   ac_configure_extra_args="$ac_configure_extra_args --silent"
40656 fi
40657
40658 _ACEOF
40659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40660 if \$ac_cs_recheck; then
40661   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
40662   shift
40663   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
40664   CONFIG_SHELL='$SHELL'
40665   export CONFIG_SHELL
40666   exec "\$@"
40667 fi
40668
40669 _ACEOF
40670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40671 exec 5>>config.log
40672 {
40673   echo
40674   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40675 ## Running $as_me. ##
40676 _ASBOX
40677   $as_echo "$ac_log"
40678 } >&5
40679
40680 _ACEOF
40681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40682 #
40683 # INIT-COMMANDS
40684 #
40685 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
40686
40687
40688 # The HP-UX ksh and POSIX shell print the target directory to stdout
40689 # if CDPATH is set.
40690 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
40691
40692 sed_quote_subst='$sed_quote_subst'
40693 double_quote_subst='$double_quote_subst'
40694 delay_variable_subst='$delay_variable_subst'
40695 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
40696 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
40697 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
40698 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
40699 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
40700 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
40701 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
40702 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
40703 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
40704 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
40705 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
40706 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
40707 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
40708 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
40709 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
40710 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
40711 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
40712 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
40713 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
40714 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
40715 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
40716 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
40717 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
40718 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
40719 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
40720 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
40721 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
40722 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
40723 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
40724 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
40725 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
40726 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
40727 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
40728 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
40729 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
40730 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
40731 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
40732 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
40733 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
40734 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
40735 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
40736 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
40737 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
40738 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
40739 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
40740 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
40741 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
40742 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
40743 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
40744 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
40745 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
40746 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
40747 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
40748 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
40749 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
40750 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
40751 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
40752 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"`'
40753 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
40754 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
40755 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
40756 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
40757 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
40758 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
40759 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
40760 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
40761 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
40762 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
40763 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
40764 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
40765 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
40766 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
40767 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
40768 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
40769 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
40770 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
40771 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
40772 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
40773 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
40774 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
40775 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
40776 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
40777 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
40778 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
40779 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
40780 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
40781 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
40782 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
40783 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
40784 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
40785 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
40786 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
40787 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
40788 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
40789 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
40790 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
40791 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
40792 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
40793 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
40794 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
40795 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
40796 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
40797 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
40798 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
40799 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
40800 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
40801 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
40802 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
40803 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
40804 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
40805 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
40806 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
40807 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
40808 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
40809 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
40810 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
40811 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
40812 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
40813 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
40814 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
40815 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
40816 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
40817 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
40818 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
40819 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
40820 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
40821 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
40822 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
40823 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
40824 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
40825 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
40826
40827 LTCC='$LTCC'
40828 LTCFLAGS='$LTCFLAGS'
40829 compiler='$compiler_DEFAULT'
40830
40831 # A function that is used when there is no print builtin or printf.
40832 func_fallback_echo ()
40833 {
40834   eval 'cat <<_LTECHO_EOF
40835 \$1
40836 _LTECHO_EOF'
40837 }
40838
40839 # Quote evaled strings.
40840 for var in AS \
40841 DLLTOOL \
40842 OBJDUMP \
40843 SHELL \
40844 ECHO \
40845 PATH_SEPARATOR \
40846 SED \
40847 GREP \
40848 EGREP \
40849 FGREP \
40850 LD \
40851 NM \
40852 LN_S \
40853 lt_SP2NL \
40854 lt_NL2SP \
40855 reload_flag \
40856 deplibs_check_method \
40857 file_magic_cmd \
40858 file_magic_glob \
40859 want_nocaseglob \
40860 sharedlib_from_linklib_cmd \
40861 AR \
40862 AR_FLAGS \
40863 archiver_list_spec \
40864 STRIP \
40865 RANLIB \
40866 CC \
40867 CFLAGS \
40868 compiler \
40869 lt_cv_sys_global_symbol_pipe \
40870 lt_cv_sys_global_symbol_to_cdecl \
40871 lt_cv_sys_global_symbol_to_c_name_address \
40872 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
40873 nm_file_list_spec \
40874 lt_prog_compiler_no_builtin_flag \
40875 lt_prog_compiler_pic \
40876 lt_prog_compiler_wl \
40877 lt_prog_compiler_static \
40878 lt_cv_prog_compiler_c_o \
40879 need_locks \
40880 MANIFEST_TOOL \
40881 DSYMUTIL \
40882 NMEDIT \
40883 LIPO \
40884 OTOOL \
40885 OTOOL64 \
40886 shrext_cmds \
40887 export_dynamic_flag_spec \
40888 whole_archive_flag_spec \
40889 compiler_needs_object \
40890 with_gnu_ld \
40891 allow_undefined_flag \
40892 no_undefined_flag \
40893 hardcode_libdir_flag_spec \
40894 hardcode_libdir_separator \
40895 exclude_expsyms \
40896 include_expsyms \
40897 file_list_spec \
40898 variables_saved_for_relink \
40899 libname_spec \
40900 library_names_spec \
40901 soname_spec \
40902 install_override_mode \
40903 finish_eval \
40904 old_striplib \
40905 striplib; do
40906     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
40907     *[\\\\\\\`\\"\\\$]*)
40908       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
40909       ;;
40910     *)
40911       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
40912       ;;
40913     esac
40914 done
40915
40916 # Double-quote double-evaled strings.
40917 for var in reload_cmds \
40918 old_postinstall_cmds \
40919 old_postuninstall_cmds \
40920 old_archive_cmds \
40921 extract_expsyms_cmds \
40922 old_archive_from_new_cmds \
40923 old_archive_from_expsyms_cmds \
40924 archive_cmds \
40925 archive_expsym_cmds \
40926 module_cmds \
40927 module_expsym_cmds \
40928 export_symbols_cmds \
40929 prelink_cmds \
40930 postlink_cmds \
40931 postinstall_cmds \
40932 postuninstall_cmds \
40933 finish_cmds \
40934 sys_lib_search_path_spec \
40935 sys_lib_dlsearch_path_spec; do
40936     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
40937     *[\\\\\\\`\\"\\\$]*)
40938       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
40939       ;;
40940     *)
40941       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
40942       ;;
40943     esac
40944 done
40945
40946 ac_aux_dir='$ac_aux_dir'
40947 xsi_shell='$xsi_shell'
40948 lt_shell_append='$lt_shell_append'
40949
40950 # See if we are running on zsh, and set the options which allow our
40951 # commands through without removal of \ escapes INIT.
40952 if test -n "\${ZSH_VERSION+set}" ; then
40953    setopt NO_GLOB_SUBST
40954 fi
40955
40956
40957     PACKAGE='$PACKAGE'
40958     VERSION='$VERSION'
40959     TIMESTAMP='$TIMESTAMP'
40960     RM='$RM'
40961     ofile='$ofile'
40962
40963
40964
40965
40966 _ACEOF
40967
40968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40969
40970 # Handling of arguments.
40971 for ac_config_target in $ac_config_targets
40972 do
40973   case $ac_config_target in
40974     "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
40975     "include/curl/curlbuild.h") CONFIG_HEADERS="$CONFIG_HEADERS include/curl/curlbuild.h" ;;
40976     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
40977     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
40978     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
40979     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
40980     "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
40981     "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
40982     "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
40983     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
40984     "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
40985     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
40986     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
40987     "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
40988     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
40989     "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
40990     "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
40991     "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
40992     "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
40993     "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
40994     "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
40995     "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
40996     "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
40997     "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
40998     "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
40999     "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
41000     "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
41001     "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
41002     "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
41003     "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
41004     "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
41005     "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
41006     "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
41007     "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
41008     "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
41009     "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
41010     "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
41011
41012   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
41013   esac
41014 done
41015
41016
41017 # If the user did not use the arguments to specify the items to instantiate,
41018 # then the envvar interface is used.  Set only those that are not.
41019 # We use the long form for the default assignment because of an extremely
41020 # bizarre bug on SunOS 4.1.3.
41021 if $ac_need_defaults; then
41022   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41023   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41024   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41025 fi
41026
41027 # Have a temporary directory for convenience.  Make it in the build tree
41028 # simply because there is no reason against having it here, and in addition,
41029 # creating and moving files from /tmp can sometimes cause problems.
41030 # Hook for its removal unless debugging.
41031 # Note that there is a small window in which the directory will not be cleaned:
41032 # after its creation but before its name has been assigned to `$tmp'.
41033 $debug ||
41034 {
41035   tmp= ac_tmp=
41036   trap 'exit_status=$?
41037   : "${ac_tmp:=$tmp}"
41038   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
41039 ' 0
41040   trap 'as_fn_exit 1' 1 2 13 15
41041 }
41042 # Create a (secure) tmp directory for tmp files.
41043
41044 {
41045   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
41046   test -d "$tmp"
41047 }  ||
41048 {
41049   tmp=./conf$$-$RANDOM
41050   (umask 077 && mkdir "$tmp")
41051 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
41052 ac_tmp=$tmp
41053
41054 # Set up the scripts for CONFIG_FILES section.
41055 # No need to generate them if there are no CONFIG_FILES.
41056 # This happens for instance with `./config.status config.h'.
41057 if test -n "$CONFIG_FILES"; then
41058
41059
41060 ac_cr=`echo X | tr X '\015'`
41061 # On cygwin, bash can eat \r inside `` if the user requested igncr.
41062 # But we know of no other shell where ac_cr would be empty at this
41063 # point, so we can use a bashism as a fallback.
41064 if test "x$ac_cr" = x; then
41065   eval ac_cr=\$\'\\r\'
41066 fi
41067 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
41068 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
41069   ac_cs_awk_cr='\\r'
41070 else
41071   ac_cs_awk_cr=$ac_cr
41072 fi
41073
41074 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
41075 _ACEOF
41076
41077
41078 {
41079   echo "cat >conf$$subs.awk <<_ACEOF" &&
41080   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
41081   echo "_ACEOF"
41082 } >conf$$subs.sh ||
41083   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
41084 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
41085 ac_delim='%!_!# '
41086 for ac_last_try in false false false false false :; do
41087   . ./conf$$subs.sh ||
41088     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
41089
41090   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
41091   if test $ac_delim_n = $ac_delim_num; then
41092     break
41093   elif $ac_last_try; then
41094     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
41095   else
41096     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
41097   fi
41098 done
41099 rm -f conf$$subs.sh
41100
41101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41102 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
41103 _ACEOF
41104 sed -n '
41105 h
41106 s/^/S["/; s/!.*/"]=/
41107 p
41108 g
41109 s/^[^!]*!//
41110 :repl
41111 t repl
41112 s/'"$ac_delim"'$//
41113 t delim
41114 :nl
41115 h
41116 s/\(.\{148\}\)..*/\1/
41117 t more1
41118 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
41119 p
41120 n
41121 b repl
41122 :more1
41123 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
41124 p
41125 g
41126 s/.\{148\}//
41127 t nl
41128 :delim
41129 h
41130 s/\(.\{148\}\)..*/\1/
41131 t more2
41132 s/["\\]/\\&/g; s/^/"/; s/$/"/
41133 p
41134 b
41135 :more2
41136 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
41137 p
41138 g
41139 s/.\{148\}//
41140 t delim
41141 ' <conf$$subs.awk | sed '
41142 /^[^""]/{
41143   N
41144   s/\n//
41145 }
41146 ' >>$CONFIG_STATUS || ac_write_fail=1
41147 rm -f conf$$subs.awk
41148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41149 _ACAWK
41150 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
41151   for (key in S) S_is_set[key] = 1
41152   FS = "\a"
41153
41154 }
41155 {
41156   line = $ 0
41157   nfields = split(line, field, "@")
41158   substed = 0
41159   len = length(field[1])
41160   for (i = 2; i < nfields; i++) {
41161     key = field[i]
41162     keylen = length(key)
41163     if (S_is_set[key]) {
41164       value = S[key]
41165       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
41166       len += length(value) + length(field[++i])
41167       substed = 1
41168     } else
41169       len += 1 + keylen
41170   }
41171
41172   print line
41173 }
41174
41175 _ACAWK
41176 _ACEOF
41177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41178 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
41179   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
41180 else
41181   cat
41182 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
41183   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
41184 _ACEOF
41185
41186 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
41187 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
41188 # trailing colons and then remove the whole line if VPATH becomes empty
41189 # (actually we leave an empty line to preserve line numbers).
41190 if test "x$srcdir" = x.; then
41191   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
41192 h
41193 s///
41194 s/^/:/
41195 s/[      ]*$/:/
41196 s/:\$(srcdir):/:/g
41197 s/:\${srcdir}:/:/g
41198 s/:@srcdir@:/:/g
41199 s/^:*//
41200 s/:*$//
41201 x
41202 s/\(=[   ]*\).*/\1/
41203 G
41204 s/\n//
41205 s/^[^=]*=[       ]*$//
41206 }'
41207 fi
41208
41209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41210 fi # test -n "$CONFIG_FILES"
41211
41212 # Set up the scripts for CONFIG_HEADERS section.
41213 # No need to generate them if there are no CONFIG_HEADERS.
41214 # This happens for instance with `./config.status Makefile'.
41215 if test -n "$CONFIG_HEADERS"; then
41216 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
41217 BEGIN {
41218 _ACEOF
41219
41220 # Transform confdefs.h into an awk script `defines.awk', embedded as
41221 # here-document in config.status, that substitutes the proper values into
41222 # config.h.in to produce config.h.
41223
41224 # Create a delimiter string that does not exist in confdefs.h, to ease
41225 # handling of long lines.
41226 ac_delim='%!_!# '
41227 for ac_last_try in false false :; do
41228   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
41229   if test -z "$ac_tt"; then
41230     break
41231   elif $ac_last_try; then
41232     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
41233   else
41234     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
41235   fi
41236 done
41237
41238 # For the awk script, D is an array of macro values keyed by name,
41239 # likewise P contains macro parameters if any.  Preserve backslash
41240 # newline sequences.
41241
41242 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
41243 sed -n '
41244 s/.\{148\}/&'"$ac_delim"'/g
41245 t rset
41246 :rset
41247 s/^[     ]*#[    ]*define[       ][      ]*/ /
41248 t def
41249 d
41250 :def
41251 s/\\$//
41252 t bsnl
41253 s/["\\]/\\&/g
41254 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
41255 D["\1"]=" \3"/p
41256 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
41257 d
41258 :bsnl
41259 s/["\\]/\\&/g
41260 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
41261 D["\1"]=" \3\\\\\\n"\\/p
41262 t cont
41263 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
41264 t cont
41265 d
41266 :cont
41267 n
41268 s/.\{148\}/&'"$ac_delim"'/g
41269 t clear
41270 :clear
41271 s/\\$//
41272 t bsnlc
41273 s/["\\]/\\&/g; s/^/"/; s/$/"/p
41274 d
41275 :bsnlc
41276 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
41277 b cont
41278 ' <confdefs.h | sed '
41279 s/'"$ac_delim"'/"\\\
41280 "/g' >>$CONFIG_STATUS || ac_write_fail=1
41281
41282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41283   for (key in D) D_is_set[key] = 1
41284   FS = "\a"
41285 }
41286 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
41287   line = \$ 0
41288   split(line, arg, " ")
41289   if (arg[1] == "#") {
41290     defundef = arg[2]
41291     mac1 = arg[3]
41292   } else {
41293     defundef = substr(arg[1], 2)
41294     mac1 = arg[2]
41295   }
41296   split(mac1, mac2, "(") #)
41297   macro = mac2[1]
41298   prefix = substr(line, 1, index(line, defundef) - 1)
41299   if (D_is_set[macro]) {
41300     # Preserve the white space surrounding the "#".
41301     print prefix "define", macro P[macro] D[macro]
41302     next
41303   } else {
41304     # Replace #undef with comments.  This is necessary, for example,
41305     # in the case of _POSIX_SOURCE, which is predefined and required
41306     # on some systems where configure will not decide to define it.
41307     if (defundef == "undef") {
41308       print "/*", prefix defundef, macro, "*/"
41309       next
41310     }
41311   }
41312 }
41313 { print }
41314 _ACAWK
41315 _ACEOF
41316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41317   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
41318 fi # test -n "$CONFIG_HEADERS"
41319
41320
41321 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
41322 shift
41323 for ac_tag
41324 do
41325   case $ac_tag in
41326   :[FHLC]) ac_mode=$ac_tag; continue;;
41327   esac
41328   case $ac_mode$ac_tag in
41329   :[FHL]*:*);;
41330   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
41331   :[FH]-) ac_tag=-:-;;
41332   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
41333   esac
41334   ac_save_IFS=$IFS
41335   IFS=:
41336   set x $ac_tag
41337   IFS=$ac_save_IFS
41338   shift
41339   ac_file=$1
41340   shift
41341
41342   case $ac_mode in
41343   :L) ac_source=$1;;
41344   :[FH])
41345     ac_file_inputs=
41346     for ac_f
41347     do
41348       case $ac_f in
41349       -) ac_f="$ac_tmp/stdin";;
41350       *) # Look for the file first in the build tree, then in the source tree
41351          # (if the path is not absolute).  The absolute path cannot be DOS-style,
41352          # because $ac_f cannot contain `:'.
41353          test -f "$ac_f" ||
41354            case $ac_f in
41355            [\\/$]*) false;;
41356            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
41357            esac ||
41358            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
41359       esac
41360       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
41361       as_fn_append ac_file_inputs " '$ac_f'"
41362     done
41363
41364     # Let's still pretend it is `configure' which instantiates (i.e., don't
41365     # use $as_me), people would be surprised to read:
41366     #    /* config.h.  Generated by config.status.  */
41367     configure_input='Generated from '`
41368           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
41369         `' by configure.'
41370     if test x"$ac_file" != x-; then
41371       configure_input="$ac_file.  $configure_input"
41372       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
41373 $as_echo "$as_me: creating $ac_file" >&6;}
41374     fi
41375     # Neutralize special characters interpreted by sed in replacement strings.
41376     case $configure_input in #(
41377     *\&* | *\|* | *\\* )
41378        ac_sed_conf_input=`$as_echo "$configure_input" |
41379        sed 's/[\\\\&|]/\\\\&/g'`;; #(
41380     *) ac_sed_conf_input=$configure_input;;
41381     esac
41382
41383     case $ac_tag in
41384     *:-:* | *:-) cat >"$ac_tmp/stdin" \
41385       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
41386     esac
41387     ;;
41388   esac
41389
41390   ac_dir=`$as_dirname -- "$ac_file" ||
41391 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41392          X"$ac_file" : 'X\(//\)[^/]' \| \
41393          X"$ac_file" : 'X\(//\)$' \| \
41394          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
41395 $as_echo X"$ac_file" |
41396     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41397             s//\1/
41398             q
41399           }
41400           /^X\(\/\/\)[^/].*/{
41401             s//\1/
41402             q
41403           }
41404           /^X\(\/\/\)$/{
41405             s//\1/
41406             q
41407           }
41408           /^X\(\/\).*/{
41409             s//\1/
41410             q
41411           }
41412           s/.*/./; q'`
41413   as_dir="$ac_dir"; as_fn_mkdir_p
41414   ac_builddir=.
41415
41416 case "$ac_dir" in
41417 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
41418 *)
41419   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
41420   # A ".." for each directory in $ac_dir_suffix.
41421   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
41422   case $ac_top_builddir_sub in
41423   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
41424   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
41425   esac ;;
41426 esac
41427 ac_abs_top_builddir=$ac_pwd
41428 ac_abs_builddir=$ac_pwd$ac_dir_suffix
41429 # for backward compatibility:
41430 ac_top_builddir=$ac_top_build_prefix
41431
41432 case $srcdir in
41433   .)  # We are building in place.
41434     ac_srcdir=.
41435     ac_top_srcdir=$ac_top_builddir_sub
41436     ac_abs_top_srcdir=$ac_pwd ;;
41437   [\\/]* | ?:[\\/]* )  # Absolute name.
41438     ac_srcdir=$srcdir$ac_dir_suffix;
41439     ac_top_srcdir=$srcdir
41440     ac_abs_top_srcdir=$srcdir ;;
41441   *) # Relative name.
41442     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
41443     ac_top_srcdir=$ac_top_build_prefix$srcdir
41444     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
41445 esac
41446 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
41447
41448
41449   case $ac_mode in
41450   :F)
41451   #
41452   # CONFIG_FILE
41453   #
41454
41455   case $INSTALL in
41456   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41457   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
41458   esac
41459   ac_MKDIR_P=$MKDIR_P
41460   case $MKDIR_P in
41461   [\\/$]* | ?:[\\/]* ) ;;
41462   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
41463   esac
41464 _ACEOF
41465
41466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41467 # If the template does not know about datarootdir, expand it.
41468 # FIXME: This hack should be removed a few years after 2.60.
41469 ac_datarootdir_hack=; ac_datarootdir_seen=
41470 ac_sed_dataroot='
41471 /datarootdir/ {
41472   p
41473   q
41474 }
41475 /@datadir@/p
41476 /@docdir@/p
41477 /@infodir@/p
41478 /@localedir@/p
41479 /@mandir@/p'
41480 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
41481 *datarootdir*) ac_datarootdir_seen=yes;;
41482 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
41483   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
41484 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
41485 _ACEOF
41486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41487   ac_datarootdir_hack='
41488   s&@datadir@&$datadir&g
41489   s&@docdir@&$docdir&g
41490   s&@infodir@&$infodir&g
41491   s&@localedir@&$localedir&g
41492   s&@mandir@&$mandir&g
41493   s&\\\${datarootdir}&$datarootdir&g' ;;
41494 esac
41495 _ACEOF
41496
41497 # Neutralize VPATH when `$srcdir' = `.'.
41498 # Shell code in configure.ac might set extrasub.
41499 # FIXME: do we really want to maintain this feature?
41500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41501 ac_sed_extra="$ac_vpsub
41502 $extrasub
41503 _ACEOF
41504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41505 :t
41506 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41507 s|@configure_input@|$ac_sed_conf_input|;t t
41508 s&@top_builddir@&$ac_top_builddir_sub&;t t
41509 s&@top_build_prefix@&$ac_top_build_prefix&;t t
41510 s&@srcdir@&$ac_srcdir&;t t
41511 s&@abs_srcdir@&$ac_abs_srcdir&;t t
41512 s&@top_srcdir@&$ac_top_srcdir&;t t
41513 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
41514 s&@builddir@&$ac_builddir&;t t
41515 s&@abs_builddir@&$ac_abs_builddir&;t t
41516 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
41517 s&@INSTALL@&$ac_INSTALL&;t t
41518 s&@MKDIR_P@&$ac_MKDIR_P&;t t
41519 $ac_datarootdir_hack
41520 "
41521 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
41522   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
41523
41524 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
41525   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
41526   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
41527       "$ac_tmp/out"`; test -z "$ac_out"; } &&
41528   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
41529 which seems to be undefined.  Please make sure it is defined" >&5
41530 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
41531 which seems to be undefined.  Please make sure it is defined" >&2;}
41532
41533   rm -f "$ac_tmp/stdin"
41534   case $ac_file in
41535   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
41536   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
41537   esac \
41538   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
41539  ;;
41540   :H)
41541   #
41542   # CONFIG_HEADER
41543   #
41544   if test x"$ac_file" != x-; then
41545     {
41546       $as_echo "/* $configure_input  */" \
41547       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
41548     } >"$ac_tmp/config.h" \
41549       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
41550     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
41551       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
41552 $as_echo "$as_me: $ac_file is unchanged" >&6;}
41553     else
41554       rm -f "$ac_file"
41555       mv "$ac_tmp/config.h" "$ac_file" \
41556         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
41557     fi
41558   else
41559     $as_echo "/* $configure_input  */" \
41560       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
41561       || as_fn_error $? "could not create -" "$LINENO" 5
41562   fi
41563 # Compute "$ac_file"'s index in $config_headers.
41564 _am_arg="$ac_file"
41565 _am_stamp_count=1
41566 for _am_header in $config_headers :; do
41567   case $_am_header in
41568     $_am_arg | $_am_arg:* )
41569       break ;;
41570     * )
41571       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
41572   esac
41573 done
41574 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
41575 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41576          X"$_am_arg" : 'X\(//\)[^/]' \| \
41577          X"$_am_arg" : 'X\(//\)$' \| \
41578          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
41579 $as_echo X"$_am_arg" |
41580     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41581             s//\1/
41582             q
41583           }
41584           /^X\(\/\/\)[^/].*/{
41585             s//\1/
41586             q
41587           }
41588           /^X\(\/\/\)$/{
41589             s//\1/
41590             q
41591           }
41592           /^X\(\/\).*/{
41593             s//\1/
41594             q
41595           }
41596           s/.*/./; q'`/stamp-h$_am_stamp_count
41597  ;;
41598
41599   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
41600 $as_echo "$as_me: executing $ac_file commands" >&6;}
41601  ;;
41602   esac
41603
41604
41605   case $ac_file$ac_mode in
41606     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
41607   # Older Autoconf quotes --file arguments for eval, but not when files
41608   # are listed without --file.  Let's play safe and only enable the eval
41609   # if we detect the quoting.
41610   case $CONFIG_FILES in
41611   *\'*) eval set x "$CONFIG_FILES" ;;
41612   *)   set x $CONFIG_FILES ;;
41613   esac
41614   shift
41615   for mf
41616   do
41617     # Strip MF so we end up with the name of the file.
41618     mf=`echo "$mf" | sed -e 's/:.*$//'`
41619     # Check whether this is an Automake generated Makefile or not.
41620     # We used to match only the files named 'Makefile.in', but
41621     # some people rename them; so instead we look at the file content.
41622     # Grep'ing the first line is not enough: some people post-process
41623     # each Makefile.in and add a new line on top of each file to say so.
41624     # Grep'ing the whole file is not good either: AIX grep has a line
41625     # limit of 2048, but all sed's we know have understand at least 4000.
41626     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
41627       dirpart=`$as_dirname -- "$mf" ||
41628 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41629          X"$mf" : 'X\(//\)[^/]' \| \
41630          X"$mf" : 'X\(//\)$' \| \
41631          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
41632 $as_echo X"$mf" |
41633     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41634             s//\1/
41635             q
41636           }
41637           /^X\(\/\/\)[^/].*/{
41638             s//\1/
41639             q
41640           }
41641           /^X\(\/\/\)$/{
41642             s//\1/
41643             q
41644           }
41645           /^X\(\/\).*/{
41646             s//\1/
41647             q
41648           }
41649           s/.*/./; q'`
41650     else
41651       continue
41652     fi
41653     # Extract the definition of DEPDIR, am__include, and am__quote
41654     # from the Makefile without running 'make'.
41655     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
41656     test -z "$DEPDIR" && continue
41657     am__include=`sed -n 's/^am__include = //p' < "$mf"`
41658     test -z "$am__include" && continue
41659     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
41660     # Find all dependency output files, they are included files with
41661     # $(DEPDIR) in their names.  We invoke sed twice because it is the
41662     # simplest approach to changing $(DEPDIR) to its actual value in the
41663     # expansion.
41664     for file in `sed -n "
41665       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
41666          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
41667       # Make sure the directory exists.
41668       test -f "$dirpart/$file" && continue
41669       fdir=`$as_dirname -- "$file" ||
41670 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41671          X"$file" : 'X\(//\)[^/]' \| \
41672          X"$file" : 'X\(//\)$' \| \
41673          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
41674 $as_echo X"$file" |
41675     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41676             s//\1/
41677             q
41678           }
41679           /^X\(\/\/\)[^/].*/{
41680             s//\1/
41681             q
41682           }
41683           /^X\(\/\/\)$/{
41684             s//\1/
41685             q
41686           }
41687           /^X\(\/\).*/{
41688             s//\1/
41689             q
41690           }
41691           s/.*/./; q'`
41692       as_dir=$dirpart/$fdir; as_fn_mkdir_p
41693       # echo "creating $dirpart/$file"
41694       echo '# dummy' > "$dirpart/$file"
41695     done
41696   done
41697 }
41698  ;;
41699     "libtool":C)
41700
41701     # See if we are running on zsh, and set the options which allow our
41702     # commands through without removal of \ escapes.
41703     if test -n "${ZSH_VERSION+set}" ; then
41704       setopt NO_GLOB_SUBST
41705     fi
41706
41707     cfgfile="${ofile}T"
41708     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
41709     $RM "$cfgfile"
41710
41711     cat <<_LT_EOF >> "$cfgfile"
41712 #! $SHELL
41713
41714 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
41715 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
41716 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
41717 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
41718 #
41719 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
41720 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
41721 #                 Foundation, Inc.
41722 #   Written by Gordon Matzigkeit, 1996
41723 #
41724 #   This file is part of GNU Libtool.
41725 #
41726 # GNU Libtool is free software; you can redistribute it and/or
41727 # modify it under the terms of the GNU General Public License as
41728 # published by the Free Software Foundation; either version 2 of
41729 # the License, or (at your option) any later version.
41730 #
41731 # As a special exception to the GNU General Public License,
41732 # if you distribute this file as part of a program or library that
41733 # is built using GNU Libtool, you may include this file under the
41734 # same distribution terms that you use for the rest of that program.
41735 #
41736 # GNU Libtool is distributed in the hope that it will be useful,
41737 # but WITHOUT ANY WARRANTY; without even the implied warranty of
41738 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
41739 # GNU General Public License for more details.
41740 #
41741 # You should have received a copy of the GNU General Public License
41742 # along with GNU Libtool; see the file COPYING.  If not, a copy
41743 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
41744 # obtained by writing to the Free Software Foundation, Inc.,
41745 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
41746
41747
41748 # The names of the tagged configurations supported by this script.
41749 available_tags=""
41750
41751 # ### BEGIN LIBTOOL CONFIG
41752
41753 # Which release of libtool.m4 was used?
41754 macro_version=$macro_version
41755 macro_revision=$macro_revision
41756
41757 # Assembler program.
41758 AS=$lt_AS
41759
41760 # DLL creation program.
41761 DLLTOOL=$lt_DLLTOOL
41762
41763 # Object dumper program.
41764 OBJDUMP=$lt_OBJDUMP
41765
41766 # Whether or not to build shared libraries.
41767 build_libtool_libs=$enable_shared
41768
41769 # Whether or not to build static libraries.
41770 build_old_libs=$enable_static
41771
41772 # What type of objects to build.
41773 pic_mode=$pic_mode
41774
41775 # Whether or not to optimize for fast installation.
41776 fast_install=$enable_fast_install
41777
41778 # Shell to use when invoking shell scripts.
41779 SHELL=$lt_SHELL
41780
41781 # An echo program that protects backslashes.
41782 ECHO=$lt_ECHO
41783
41784 # The PATH separator for the build system.
41785 PATH_SEPARATOR=$lt_PATH_SEPARATOR
41786
41787 # The host system.
41788 host_alias=$host_alias
41789 host=$host
41790 host_os=$host_os
41791
41792 # The build system.
41793 build_alias=$build_alias
41794 build=$build
41795 build_os=$build_os
41796
41797 # A sed program that does not truncate output.
41798 SED=$lt_SED
41799
41800 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
41801 Xsed="\$SED -e 1s/^X//"
41802
41803 # A grep program that handles long lines.
41804 GREP=$lt_GREP
41805
41806 # An ERE matcher.
41807 EGREP=$lt_EGREP
41808
41809 # A literal string matcher.
41810 FGREP=$lt_FGREP
41811
41812 # A BSD- or MS-compatible name lister.
41813 NM=$lt_NM
41814
41815 # Whether we need soft or hard links.
41816 LN_S=$lt_LN_S
41817
41818 # What is the maximum length of a command?
41819 max_cmd_len=$max_cmd_len
41820
41821 # Object file suffix (normally "o").
41822 objext=$ac_objext
41823
41824 # Executable file suffix (normally "").
41825 exeext=$exeext
41826
41827 # whether the shell understands "unset".
41828 lt_unset=$lt_unset
41829
41830 # turn spaces into newlines.
41831 SP2NL=$lt_lt_SP2NL
41832
41833 # turn newlines into spaces.
41834 NL2SP=$lt_lt_NL2SP
41835
41836 # convert \$build file names to \$host format.
41837 to_host_file_cmd=$lt_cv_to_host_file_cmd
41838
41839 # convert \$build files to toolchain format.
41840 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
41841
41842 # Method to check whether dependent libraries are shared objects.
41843 deplibs_check_method=$lt_deplibs_check_method
41844
41845 # Command to use when deplibs_check_method = "file_magic".
41846 file_magic_cmd=$lt_file_magic_cmd
41847
41848 # How to find potential files when deplibs_check_method = "file_magic".
41849 file_magic_glob=$lt_file_magic_glob
41850
41851 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
41852 want_nocaseglob=$lt_want_nocaseglob
41853
41854 # Command to associate shared and link libraries.
41855 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
41856
41857 # The archiver.
41858 AR=$lt_AR
41859
41860 # Flags to create an archive.
41861 AR_FLAGS=$lt_AR_FLAGS
41862
41863 # How to feed a file listing to the archiver.
41864 archiver_list_spec=$lt_archiver_list_spec
41865
41866 # A symbol stripping program.
41867 STRIP=$lt_STRIP
41868
41869 # Commands used to install an old-style archive.
41870 RANLIB=$lt_RANLIB
41871 old_postinstall_cmds=$lt_old_postinstall_cmds
41872 old_postuninstall_cmds=$lt_old_postuninstall_cmds
41873
41874 # Whether to use a lock for old archive extraction.
41875 lock_old_archive_extraction=$lock_old_archive_extraction
41876
41877 # A C compiler.
41878 LTCC=$lt_CC
41879
41880 # LTCC compiler flags.
41881 LTCFLAGS=$lt_CFLAGS
41882
41883 # Take the output of nm and produce a listing of raw symbols and C names.
41884 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
41885
41886 # Transform the output of nm in a proper C declaration.
41887 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
41888
41889 # Transform the output of nm in a C name address pair.
41890 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
41891
41892 # Transform the output of nm in a C name address pair when lib prefix is needed.
41893 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
41894
41895 # Specify filename containing input files for \$NM.
41896 nm_file_list_spec=$lt_nm_file_list_spec
41897
41898 # The root where to search for dependent libraries,and in which our libraries should be installed.
41899 lt_sysroot=$lt_sysroot
41900
41901 # The name of the directory that contains temporary libtool files.
41902 objdir=$objdir
41903
41904 # Used to examine libraries when file_magic_cmd begins with "file".
41905 MAGIC_CMD=$MAGIC_CMD
41906
41907 # Must we lock files when doing compilation?
41908 need_locks=$lt_need_locks
41909
41910 # Manifest tool.
41911 MANIFEST_TOOL=$lt_MANIFEST_TOOL
41912
41913 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
41914 DSYMUTIL=$lt_DSYMUTIL
41915
41916 # Tool to change global to local symbols on Mac OS X.
41917 NMEDIT=$lt_NMEDIT
41918
41919 # Tool to manipulate fat objects and archives on Mac OS X.
41920 LIPO=$lt_LIPO
41921
41922 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
41923 OTOOL=$lt_OTOOL
41924
41925 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
41926 OTOOL64=$lt_OTOOL64
41927
41928 # Old archive suffix (normally "a").
41929 libext=$libext
41930
41931 # Shared library suffix (normally ".so").
41932 shrext_cmds=$lt_shrext_cmds
41933
41934 # The commands to extract the exported symbol list from a shared archive.
41935 extract_expsyms_cmds=$lt_extract_expsyms_cmds
41936
41937 # Variables whose values should be saved in libtool wrapper scripts and
41938 # restored at link time.
41939 variables_saved_for_relink=$lt_variables_saved_for_relink
41940
41941 # Do we need the "lib" prefix for modules?
41942 need_lib_prefix=$need_lib_prefix
41943
41944 # Do we need a version for libraries?
41945 need_version=$need_version
41946
41947 # Library versioning type.
41948 version_type=$version_type
41949
41950 # Shared library runtime path variable.
41951 runpath_var=$runpath_var
41952
41953 # Shared library path variable.
41954 shlibpath_var=$shlibpath_var
41955
41956 # Is shlibpath searched before the hard-coded library search path?
41957 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
41958
41959 # Format of library name prefix.
41960 libname_spec=$lt_libname_spec
41961
41962 # List of archive names.  First name is the real one, the rest are links.
41963 # The last name is the one that the linker finds with -lNAME
41964 library_names_spec=$lt_library_names_spec
41965
41966 # The coded name of the library, if different from the real name.
41967 soname_spec=$lt_soname_spec
41968
41969 # Permission mode override for installation of shared libraries.
41970 install_override_mode=$lt_install_override_mode
41971
41972 # Command to use after installation of a shared archive.
41973 postinstall_cmds=$lt_postinstall_cmds
41974
41975 # Command to use after uninstallation of a shared archive.
41976 postuninstall_cmds=$lt_postuninstall_cmds
41977
41978 # Commands used to finish a libtool library installation in a directory.
41979 finish_cmds=$lt_finish_cmds
41980
41981 # As "finish_cmds", except a single script fragment to be evaled but
41982 # not shown.
41983 finish_eval=$lt_finish_eval
41984
41985 # Whether we should hardcode library paths into libraries.
41986 hardcode_into_libs=$hardcode_into_libs
41987
41988 # Compile-time system search path for libraries.
41989 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
41990
41991 # Run-time system search path for libraries.
41992 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
41993
41994 # Whether dlopen is supported.
41995 dlopen_support=$enable_dlopen
41996
41997 # Whether dlopen of programs is supported.
41998 dlopen_self=$enable_dlopen_self
41999
42000 # Whether dlopen of statically linked programs is supported.
42001 dlopen_self_static=$enable_dlopen_self_static
42002
42003 # Commands to strip libraries.
42004 old_striplib=$lt_old_striplib
42005 striplib=$lt_striplib
42006
42007
42008 # The linker used to build libraries.
42009 LD=$lt_LD
42010
42011 # How to create reloadable object files.
42012 reload_flag=$lt_reload_flag
42013 reload_cmds=$lt_reload_cmds
42014
42015 # Commands used to build an old-style archive.
42016 old_archive_cmds=$lt_old_archive_cmds
42017
42018 # A language specific compiler.
42019 CC=$lt_compiler
42020
42021 # Is the compiler the GNU compiler?
42022 with_gcc=$GCC
42023
42024 # Compiler flag to turn off builtin functions.
42025 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
42026
42027 # Additional compiler flags for building library objects.
42028 pic_flag=$lt_lt_prog_compiler_pic
42029
42030 # How to pass a linker flag through the compiler.
42031 wl=$lt_lt_prog_compiler_wl
42032
42033 # Compiler flag to prevent dynamic linking.
42034 link_static_flag=$lt_lt_prog_compiler_static
42035
42036 # Does compiler simultaneously support -c and -o options?
42037 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
42038
42039 # Whether or not to add -lc for building shared libraries.
42040 build_libtool_need_lc=$archive_cmds_need_lc
42041
42042 # Whether or not to disallow shared libs when runtime libs are static.
42043 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
42044
42045 # Compiler flag to allow reflexive dlopens.
42046 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
42047
42048 # Compiler flag to generate shared objects directly from archives.
42049 whole_archive_flag_spec=$lt_whole_archive_flag_spec
42050
42051 # Whether the compiler copes with passing no objects directly.
42052 compiler_needs_object=$lt_compiler_needs_object
42053
42054 # Create an old-style archive from a shared archive.
42055 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
42056
42057 # Create a temporary old-style archive to link instead of a shared archive.
42058 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
42059
42060 # Commands used to build a shared archive.
42061 archive_cmds=$lt_archive_cmds
42062 archive_expsym_cmds=$lt_archive_expsym_cmds
42063
42064 # Commands used to build a loadable module if different from building
42065 # a shared archive.
42066 module_cmds=$lt_module_cmds
42067 module_expsym_cmds=$lt_module_expsym_cmds
42068
42069 # Whether we are building with GNU ld or not.
42070 with_gnu_ld=$lt_with_gnu_ld
42071
42072 # Flag that allows shared libraries with undefined symbols to be built.
42073 allow_undefined_flag=$lt_allow_undefined_flag
42074
42075 # Flag that enforces no undefined symbols.
42076 no_undefined_flag=$lt_no_undefined_flag
42077
42078 # Flag to hardcode \$libdir into a binary during linking.
42079 # This must work even if \$libdir does not exist
42080 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
42081
42082 # Whether we need a single "-rpath" flag with a separated argument.
42083 hardcode_libdir_separator=$lt_hardcode_libdir_separator
42084
42085 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
42086 # DIR into the resulting binary.
42087 hardcode_direct=$hardcode_direct
42088
42089 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
42090 # DIR into the resulting binary and the resulting library dependency is
42091 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
42092 # library is relocated.
42093 hardcode_direct_absolute=$hardcode_direct_absolute
42094
42095 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
42096 # into the resulting binary.
42097 hardcode_minus_L=$hardcode_minus_L
42098
42099 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
42100 # into the resulting binary.
42101 hardcode_shlibpath_var=$hardcode_shlibpath_var
42102
42103 # Set to "yes" if building a shared library automatically hardcodes DIR
42104 # into the library and all subsequent libraries and executables linked
42105 # against it.
42106 hardcode_automatic=$hardcode_automatic
42107
42108 # Set to yes if linker adds runtime paths of dependent libraries
42109 # to runtime path list.
42110 inherit_rpath=$inherit_rpath
42111
42112 # Whether libtool must link a program against all its dependency libraries.
42113 link_all_deplibs=$link_all_deplibs
42114
42115 # Set to "yes" if exported symbols are required.
42116 always_export_symbols=$always_export_symbols
42117
42118 # The commands to list exported symbols.
42119 export_symbols_cmds=$lt_export_symbols_cmds
42120
42121 # Symbols that should not be listed in the preloaded symbols.
42122 exclude_expsyms=$lt_exclude_expsyms
42123
42124 # Symbols that must always be exported.
42125 include_expsyms=$lt_include_expsyms
42126
42127 # Commands necessary for linking programs (against libraries) with templates.
42128 prelink_cmds=$lt_prelink_cmds
42129
42130 # Commands necessary for finishing linking programs.
42131 postlink_cmds=$lt_postlink_cmds
42132
42133 # Specify filename containing input files.
42134 file_list_spec=$lt_file_list_spec
42135
42136 # How to hardcode a shared library path into an executable.
42137 hardcode_action=$hardcode_action
42138
42139 # ### END LIBTOOL CONFIG
42140
42141 _LT_EOF
42142
42143   case $host_os in
42144   aix3*)
42145     cat <<\_LT_EOF >> "$cfgfile"
42146 # AIX sometimes has problems with the GCC collect2 program.  For some
42147 # reason, if we set the COLLECT_NAMES environment variable, the problems
42148 # vanish in a puff of smoke.
42149 if test "X${COLLECT_NAMES+set}" != Xset; then
42150   COLLECT_NAMES=
42151   export COLLECT_NAMES
42152 fi
42153 _LT_EOF
42154     ;;
42155   esac
42156
42157
42158 ltmain="$ac_aux_dir/ltmain.sh"
42159
42160
42161   # We use sed instead of cat because bash on DJGPP gets confused if
42162   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
42163   # text mode, it properly converts lines to CR/LF.  This bash problem
42164   # is reportedly fixed, but why not run on old versions too?
42165   sed '$q' "$ltmain" >> "$cfgfile" \
42166      || (rm -f "$cfgfile"; exit 1)
42167
42168   if test x"$xsi_shell" = xyes; then
42169   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
42170 func_dirname ()\
42171 {\
42172 \    case ${1} in\
42173 \      */*) func_dirname_result="${1%/*}${2}" ;;\
42174 \      *  ) func_dirname_result="${3}" ;;\
42175 \    esac\
42176 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
42177   && mv -f "$cfgfile.tmp" "$cfgfile" \
42178     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42179 test 0 -eq $? || _lt_function_replace_fail=:
42180
42181
42182   sed -e '/^func_basename ()$/,/^} # func_basename /c\
42183 func_basename ()\
42184 {\
42185 \    func_basename_result="${1##*/}"\
42186 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
42187   && mv -f "$cfgfile.tmp" "$cfgfile" \
42188     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42189 test 0 -eq $? || _lt_function_replace_fail=:
42190
42191
42192   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
42193 func_dirname_and_basename ()\
42194 {\
42195 \    case ${1} in\
42196 \      */*) func_dirname_result="${1%/*}${2}" ;;\
42197 \      *  ) func_dirname_result="${3}" ;;\
42198 \    esac\
42199 \    func_basename_result="${1##*/}"\
42200 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
42201   && mv -f "$cfgfile.tmp" "$cfgfile" \
42202     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42203 test 0 -eq $? || _lt_function_replace_fail=:
42204
42205
42206   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
42207 func_stripname ()\
42208 {\
42209 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
42210 \    # positional parameters, so assign one to ordinary parameter first.\
42211 \    func_stripname_result=${3}\
42212 \    func_stripname_result=${func_stripname_result#"${1}"}\
42213 \    func_stripname_result=${func_stripname_result%"${2}"}\
42214 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
42215   && mv -f "$cfgfile.tmp" "$cfgfile" \
42216     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42217 test 0 -eq $? || _lt_function_replace_fail=:
42218
42219
42220   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
42221 func_split_long_opt ()\
42222 {\
42223 \    func_split_long_opt_name=${1%%=*}\
42224 \    func_split_long_opt_arg=${1#*=}\
42225 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
42226   && mv -f "$cfgfile.tmp" "$cfgfile" \
42227     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42228 test 0 -eq $? || _lt_function_replace_fail=:
42229
42230
42231   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
42232 func_split_short_opt ()\
42233 {\
42234 \    func_split_short_opt_arg=${1#??}\
42235 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
42236 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
42237   && mv -f "$cfgfile.tmp" "$cfgfile" \
42238     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42239 test 0 -eq $? || _lt_function_replace_fail=:
42240
42241
42242   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
42243 func_lo2o ()\
42244 {\
42245 \    case ${1} in\
42246 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
42247 \      *)    func_lo2o_result=${1} ;;\
42248 \    esac\
42249 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
42250   && mv -f "$cfgfile.tmp" "$cfgfile" \
42251     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42252 test 0 -eq $? || _lt_function_replace_fail=:
42253
42254
42255   sed -e '/^func_xform ()$/,/^} # func_xform /c\
42256 func_xform ()\
42257 {\
42258     func_xform_result=${1%.*}.lo\
42259 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
42260   && mv -f "$cfgfile.tmp" "$cfgfile" \
42261     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42262 test 0 -eq $? || _lt_function_replace_fail=:
42263
42264
42265   sed -e '/^func_arith ()$/,/^} # func_arith /c\
42266 func_arith ()\
42267 {\
42268     func_arith_result=$(( $* ))\
42269 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
42270   && mv -f "$cfgfile.tmp" "$cfgfile" \
42271     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42272 test 0 -eq $? || _lt_function_replace_fail=:
42273
42274
42275   sed -e '/^func_len ()$/,/^} # func_len /c\
42276 func_len ()\
42277 {\
42278     func_len_result=${#1}\
42279 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
42280   && mv -f "$cfgfile.tmp" "$cfgfile" \
42281     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42282 test 0 -eq $? || _lt_function_replace_fail=:
42283
42284 fi
42285
42286 if test x"$lt_shell_append" = xyes; then
42287   sed -e '/^func_append ()$/,/^} # func_append /c\
42288 func_append ()\
42289 {\
42290     eval "${1}+=\\${2}"\
42291 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
42292   && mv -f "$cfgfile.tmp" "$cfgfile" \
42293     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42294 test 0 -eq $? || _lt_function_replace_fail=:
42295
42296
42297   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
42298 func_append_quoted ()\
42299 {\
42300 \    func_quote_for_eval "${2}"\
42301 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
42302 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
42303   && mv -f "$cfgfile.tmp" "$cfgfile" \
42304     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42305 test 0 -eq $? || _lt_function_replace_fail=:
42306
42307
42308   # Save a `func_append' function call where possible by direct use of '+='
42309   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
42310     && mv -f "$cfgfile.tmp" "$cfgfile" \
42311       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42312   test 0 -eq $? || _lt_function_replace_fail=:
42313 else
42314   # Save a `func_append' function call even when '+=' is not available
42315   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
42316     && mv -f "$cfgfile.tmp" "$cfgfile" \
42317       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
42318   test 0 -eq $? || _lt_function_replace_fail=:
42319 fi
42320
42321 if test x"$_lt_function_replace_fail" = x":"; then
42322   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
42323 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
42324 fi
42325
42326
42327    mv -f "$cfgfile" "$ofile" ||
42328     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
42329   chmod +x "$ofile"
42330
42331  ;;
42332
42333   esac
42334 done # for ac_tag
42335
42336
42337 as_fn_exit 0
42338 _ACEOF
42339 ac_clean_files=$ac_clean_files_save
42340
42341 test $ac_write_fail = 0 ||
42342   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
42343
42344
42345 # configure is writing to config.log, and then calls config.status.
42346 # config.status does its own redirection, appending to config.log.
42347 # Unfortunately, on DOS this fails, as config.log is still kept open
42348 # by configure, so config.status won't be able to write to it; its
42349 # output is simply discarded.  So we exec the FD to /dev/null,
42350 # effectively closing config.log, so it can be properly (re)opened and
42351 # appended to by config.status.  When coming back to configure, we
42352 # need to make the FD available again.
42353 if test "$no_create" != yes; then
42354   ac_cs_success=:
42355   ac_config_status_args=
42356   test "$silent" = yes &&
42357     ac_config_status_args="$ac_config_status_args --quiet"
42358   exec 5>/dev/null
42359   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42360   exec 5>>config.log
42361   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42362   # would make configure fail if this is the last instruction.
42363   $ac_cs_success || as_fn_exit 1
42364 fi
42365
42366 #
42367 # CONFIG_SUBDIRS section.
42368 #
42369 if test "$no_recursion" != yes; then
42370
42371   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
42372   # so they do not pile up.
42373   ac_sub_configure_args=
42374   ac_prev=
42375   eval "set x $ac_configure_args"
42376   shift
42377   for ac_arg
42378   do
42379     if test -n "$ac_prev"; then
42380       ac_prev=
42381       continue
42382     fi
42383     case $ac_arg in
42384     -cache-file | --cache-file | --cache-fil | --cache-fi \
42385     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
42386       ac_prev=cache_file ;;
42387     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
42388     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
42389     | --c=*)
42390       ;;
42391     --config-cache | -C)
42392       ;;
42393     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
42394       ac_prev=srcdir ;;
42395     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42396       ;;
42397     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
42398       ac_prev=prefix ;;
42399     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42400       ;;
42401     --disable-option-checking)
42402       ;;
42403     *)
42404       case $ac_arg in
42405       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42406       esac
42407       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
42408     esac
42409   done
42410
42411   # Always prepend --prefix to ensure using the same prefix
42412   # in subdir configurations.
42413   ac_arg="--prefix=$prefix"
42414   case $ac_arg in
42415   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42416   esac
42417   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
42418
42419   # Pass --silent
42420   if test "$silent" = yes; then
42421     ac_sub_configure_args="--silent $ac_sub_configure_args"
42422   fi
42423
42424   # Always prepend --disable-option-checking to silence warnings, since
42425   # different subdirs can have different --enable and --with options.
42426   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
42427
42428   ac_popdir=`pwd`
42429   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
42430
42431     # Do not complain, so a configure script can configure whichever
42432     # parts of a large source tree are present.
42433     test -d "$srcdir/$ac_dir" || continue
42434
42435     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
42436     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
42437     $as_echo "$ac_msg" >&6
42438     as_dir="$ac_dir"; as_fn_mkdir_p
42439     ac_builddir=.
42440
42441 case "$ac_dir" in
42442 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42443 *)
42444   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
42445   # A ".." for each directory in $ac_dir_suffix.
42446   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
42447   case $ac_top_builddir_sub in
42448   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42449   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42450   esac ;;
42451 esac
42452 ac_abs_top_builddir=$ac_pwd
42453 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42454 # for backward compatibility:
42455 ac_top_builddir=$ac_top_build_prefix
42456
42457 case $srcdir in
42458   .)  # We are building in place.
42459     ac_srcdir=.
42460     ac_top_srcdir=$ac_top_builddir_sub
42461     ac_abs_top_srcdir=$ac_pwd ;;
42462   [\\/]* | ?:[\\/]* )  # Absolute name.
42463     ac_srcdir=$srcdir$ac_dir_suffix;
42464     ac_top_srcdir=$srcdir
42465     ac_abs_top_srcdir=$srcdir ;;
42466   *) # Relative name.
42467     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42468     ac_top_srcdir=$ac_top_build_prefix$srcdir
42469     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42470 esac
42471 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42472
42473
42474     cd "$ac_dir"
42475
42476     # Check for guested configure; otherwise get Cygnus style configure.
42477     if test -f "$ac_srcdir/configure.gnu"; then
42478       ac_sub_configure=$ac_srcdir/configure.gnu
42479     elif test -f "$ac_srcdir/configure"; then
42480       ac_sub_configure=$ac_srcdir/configure
42481     elif test -f "$ac_srcdir/configure.in"; then
42482       # This should be Cygnus configure.
42483       ac_sub_configure=$ac_aux_dir/configure
42484     else
42485       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
42486 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
42487       ac_sub_configure=
42488     fi
42489
42490     # The recursion is here.
42491     if test -n "$ac_sub_configure"; then
42492       # Make the cache file name correct relative to the subdirectory.
42493       case $cache_file in
42494       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
42495       *) # Relative name.
42496         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
42497       esac
42498
42499       { $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
42500 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
42501       # The eval makes quoting arguments work.
42502       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
42503            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
42504         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
42505     fi
42506
42507     cd "$ac_popdir"
42508   done
42509 fi
42510 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
42511   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
42512 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42513 fi
42514
42515
42516
42517     tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
42518   if test -z "$tmp_cpp"; then
42519     tmp_cpp='cpp'
42520   fi
42521   cat >./tests/configurehelp.pm <<_EOF
42522 # This is a generated file.  Do not edit.
42523
42524 package configurehelp;
42525
42526 use strict;
42527 use warnings;
42528 use Exporter;
42529
42530 use vars qw(
42531     @ISA
42532     @EXPORT_OK
42533     \$Cpreprocessor
42534     );
42535
42536 @ISA = qw(Exporter);
42537
42538 @EXPORT_OK = qw(
42539     \$Cpreprocessor
42540     );
42541
42542 \$Cpreprocessor = '$tmp_cpp';
42543
42544 1;
42545 _EOF
42546
42547
42548
42549 ## ---------------------------------- ##
42550 ##  Start of distclean amending code  ##
42551 ## ---------------------------------- ##
42552
42553 for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
42554 do
42555
42556 if test ! -f "$xc_subdir/Makefile"; then
42557   echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
42558   exit 1
42559 fi
42560
42561 # Fetch dependency tracking file list from Makefile include lines.
42562
42563 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
42564 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
42565
42566 # --disable-dependency-tracking might have been used, consequently
42567 # there is nothing to amend without a dependency tracking file list.
42568
42569 if test $xc_cnt_words -gt 0; then
42570
42571 { $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
42572 $as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
42573
42574 # Build Makefile specific patch hunk.
42575
42576 xc_p="$xc_subdir/xc_patch.tmp"
42577
42578 xc_rm_depfiles=`echo "$xc_inc_lines" \
42579   | $SED 's%include%    -rm -f%' 2>/dev/null`
42580
42581 xc_dep_subdirs=`echo "$xc_inc_lines" \
42582   | $SED 's%include[ ][ ]*%%' 2>/dev/null \
42583   | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
42584   | sort | uniq`
42585
42586 echo "$xc_rm_depfiles" >$xc_p
42587
42588 for xc_dep_dir in $xc_dep_subdirs; do
42589   echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\"            >>$xc_p
42590   echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\"      >>$xc_p
42591   echo "${xc_tab}  rm -rf $xc_dep_dir; \\"                                          >>$xc_p
42592   echo "${xc_tab}fi"                                                                >>$xc_p
42593 done
42594
42595 # Build Makefile patching sed scripts.
42596
42597 xc_s1="$xc_subdir/xc_script_1.tmp"
42598 xc_s2="$xc_subdir/xc_script_2.tmp"
42599 xc_s3="$xc_subdir/xc_script_3.tmp"
42600
42601 cat >$xc_s1 <<\_EOT
42602 /^distclean[ ]*:/,/^[^  ][^     ]*:/{
42603   s/^.*(DEPDIR)/___xc_depdir_line___/
42604 }
42605 /^maintainer-clean[ ]*:/,/^[^   ][^     ]*:/{
42606   s/^.*(DEPDIR)/___xc_depdir_line___/
42607 }
42608 _EOT
42609
42610 cat >$xc_s2 <<\_EOT
42611 /___xc_depdir_line___$/{
42612   N
42613   /___xc_depdir_line___$/D
42614 }
42615 _EOT
42616
42617 cat >$xc_s3 <<_EOT
42618 /^___xc_depdir_line___/{
42619   r $xc_p
42620   d
42621 }
42622 _EOT
42623
42624 # Apply patch to Makefile and cleanup.
42625
42626 $SED -f "$xc_s1" "$xc_subdir/Makefile"      >"$xc_subdir/Makefile.tmp1"
42627 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
42628 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
42629
42630 if test -f "$xc_subdir/Makefile.tmp3"; then
42631   mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
42632 fi
42633
42634 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
42635 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
42636 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
42637
42638 test -f "$xc_p"  && rm -f "$xc_p"
42639 test -f "$xc_s1" && rm -f "$xc_s1"
42640 test -f "$xc_s2" && rm -f "$xc_s2"
42641 test -f "$xc_s3" && rm -f "$xc_s3"
42642
42643 fi
42644
42645 done
42646
42647 ## -------------------------------- ##
42648 ##  End of distclean amending code  ##
42649 ## -------------------------------- ##
42650
42651
42652
42653 { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
42654
42655   curl version:     ${CURLVERSION}
42656   Host setup:       ${host}
42657   Install prefix:   ${prefix}
42658   Compiler:         ${CC}
42659   SSL support:      ${curl_ssl_msg}
42660   SSH support:      ${curl_ssh_msg}
42661   zlib support:     ${curl_zlib_msg}
42662   GSS-API support:  ${curl_gss_msg}
42663   TLS-SRP support:  ${curl_tls_srp_msg}
42664   resolver:         ${curl_res_msg}
42665   IPv6 support:     ${curl_ipv6_msg}
42666   Unix sockets support: ${curl_unix_sockets_msg}
42667   IDN support:      ${curl_idn_msg}
42668   Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
42669   Built-in manual:  ${curl_manual_msg}
42670   --libcurl option: ${curl_libcurl_msg}
42671   Verbose errors:   ${curl_verbose_msg}
42672   SSPI support:     ${curl_sspi_msg}
42673   ca cert bundle:   ${ca}
42674   ca cert path:     ${capath}
42675   LDAP support:     ${curl_ldap_msg}
42676   LDAPS support:    ${curl_ldaps_msg}
42677   RTSP support:     ${curl_rtsp_msg}
42678   RTMP support:     ${curl_rtmp_msg}
42679   metalink support: ${curl_mtlnk_msg}
42680   HTTP2 support:    ${curl_h2_msg}
42681   Protocols:        ${SUPPORT_PROTOCOLS}
42682 " >&5
42683 $as_echo "$as_me: Configured to build curl/libcurl:
42684
42685   curl version:     ${CURLVERSION}
42686   Host setup:       ${host}
42687   Install prefix:   ${prefix}
42688   Compiler:         ${CC}
42689   SSL support:      ${curl_ssl_msg}
42690   SSH support:      ${curl_ssh_msg}
42691   zlib support:     ${curl_zlib_msg}
42692   GSS-API support:  ${curl_gss_msg}
42693   TLS-SRP support:  ${curl_tls_srp_msg}
42694   resolver:         ${curl_res_msg}
42695   IPv6 support:     ${curl_ipv6_msg}
42696   Unix sockets support: ${curl_unix_sockets_msg}
42697   IDN support:      ${curl_idn_msg}
42698   Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
42699   Built-in manual:  ${curl_manual_msg}
42700   --libcurl option: ${curl_libcurl_msg}
42701   Verbose errors:   ${curl_verbose_msg}
42702   SSPI support:     ${curl_sspi_msg}
42703   ca cert bundle:   ${ca}
42704   ca cert path:     ${capath}
42705   LDAP support:     ${curl_ldap_msg}
42706   LDAPS support:    ${curl_ldaps_msg}
42707   RTSP support:     ${curl_rtsp_msg}
42708   RTMP support:     ${curl_rtmp_msg}
42709   metalink support: ${curl_mtlnk_msg}
42710   HTTP2 support:    ${curl_h2_msg}
42711   Protocols:        ${SUPPORT_PROTOCOLS}
42712 " >&6;}
42713
42714 if test "x$soname_bump" = "xyes"; then
42715
42716 cat <<EOM
42717   SONAME bump:     yes - WARNING: this library will be built with the SONAME
42718                    number bumped due to (a detected) ABI breakage.
42719                    See lib/README.curl_off_t for details on this.
42720 EOM
42721
42722 fi
42723