bbdf84682d6dfdfac2eaa8177728bac948b7693a
[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_SSLEAY_SRP
927 RANDOM_FILE
928 USE_SSLEAY
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_dependency_tracking
1109 enable_silent_rules
1110 enable_largefile
1111 enable_shared
1112 enable_static
1113 with_pic
1114 enable_fast_install
1115 with_gnu_ld
1116 with_sysroot
1117 enable_libtool_lock
1118 enable_http
1119 enable_ftp
1120 enable_file
1121 enable_ldap
1122 enable_ldaps
1123 enable_rtsp
1124 enable_proxy
1125 enable_dict
1126 enable_telnet
1127 enable_tftp
1128 enable_pop3
1129 enable_imap
1130 enable_smb
1131 enable_smtp
1132 enable_gopher
1133 enable_manual
1134 enable_libcurl_option
1135 enable_libgcc
1136 with_zlib
1137 with_ldap_lib
1138 with_lber_lib
1139 enable_ipv6
1140 with_gssapi_includes
1141 with_gssapi_libs
1142 with_gssapi
1143 with_winssl
1144 with_darwinssl
1145 with_ssl
1146 with_egd_socket
1147 with_random
1148 with_gnutls
1149 with_polarssl
1150 with_cyassl
1151 with_nss
1152 with_axtls
1153 with_ca_bundle
1154 with_ca_path
1155 with_libmetalink
1156 with_libssh2
1157 with_librtmp
1158 enable_versioned_symbols
1159 with_winidn
1160 with_libidn
1161 with_nghttp2
1162 enable_threaded_resolver
1163 enable_verbose
1164 enable_sspi
1165 enable_crypto_auth
1166 enable_ntlm_wb
1167 enable_tls_srp
1168 enable_unix_sockets
1169 enable_cookies
1170 enable_soname_bump
1171 '
1172       ac_precious_vars='build_alias
1173 host_alias
1174 target_alias
1175 CC
1176 CFLAGS
1177 LDFLAGS
1178 LIBS
1179 CPPFLAGS
1180 CPP'
1181 ac_subdirs_all='ares'
1182
1183 # Initialize some variables set by options.
1184 ac_init_help=
1185 ac_init_version=false
1186 ac_unrecognized_opts=
1187 ac_unrecognized_sep=
1188 # The variables have the same names as the options, with
1189 # dashes changed to underlines.
1190 cache_file=/dev/null
1191 exec_prefix=NONE
1192 no_create=
1193 no_recursion=
1194 prefix=NONE
1195 program_prefix=NONE
1196 program_suffix=NONE
1197 program_transform_name=s,x,x,
1198 silent=
1199 site=
1200 srcdir=
1201 verbose=
1202 x_includes=NONE
1203 x_libraries=NONE
1204
1205 # Installation directory options.
1206 # These are left unexpanded so users can "make install exec_prefix=/foo"
1207 # and all the variables that are supposed to be based on exec_prefix
1208 # by default will actually change.
1209 # Use braces instead of parens because sh, perl, etc. also accept them.
1210 # (The list follows the same order as the GNU Coding Standards.)
1211 bindir='${exec_prefix}/bin'
1212 sbindir='${exec_prefix}/sbin'
1213 libexecdir='${exec_prefix}/libexec'
1214 datarootdir='${prefix}/share'
1215 datadir='${datarootdir}'
1216 sysconfdir='${prefix}/etc'
1217 sharedstatedir='${prefix}/com'
1218 localstatedir='${prefix}/var'
1219 includedir='${prefix}/include'
1220 oldincludedir='/usr/include'
1221 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1222 infodir='${datarootdir}/info'
1223 htmldir='${docdir}'
1224 dvidir='${docdir}'
1225 pdfdir='${docdir}'
1226 psdir='${docdir}'
1227 libdir='${exec_prefix}/lib'
1228 localedir='${datarootdir}/locale'
1229 mandir='${datarootdir}/man'
1230
1231 ac_prev=
1232 ac_dashdash=
1233 for ac_option
1234 do
1235   # If the previous option needs an argument, assign it.
1236   if test -n "$ac_prev"; then
1237     eval $ac_prev=\$ac_option
1238     ac_prev=
1239     continue
1240   fi
1241
1242   case $ac_option in
1243   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1244   *=)   ac_optarg= ;;
1245   *)    ac_optarg=yes ;;
1246   esac
1247
1248   # Accept the important Cygnus configure options, so we can diagnose typos.
1249
1250   case $ac_dashdash$ac_option in
1251   --)
1252     ac_dashdash=yes ;;
1253
1254   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1255     ac_prev=bindir ;;
1256   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1257     bindir=$ac_optarg ;;
1258
1259   -build | --build | --buil | --bui | --bu)
1260     ac_prev=build_alias ;;
1261   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1262     build_alias=$ac_optarg ;;
1263
1264   -cache-file | --cache-file | --cache-fil | --cache-fi \
1265   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1266     ac_prev=cache_file ;;
1267   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1268   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1269     cache_file=$ac_optarg ;;
1270
1271   --config-cache | -C)
1272     cache_file=config.cache ;;
1273
1274   -datadir | --datadir | --datadi | --datad)
1275     ac_prev=datadir ;;
1276   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1277     datadir=$ac_optarg ;;
1278
1279   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1280   | --dataroo | --dataro | --datar)
1281     ac_prev=datarootdir ;;
1282   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1283   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1284     datarootdir=$ac_optarg ;;
1285
1286   -disable-* | --disable-*)
1287     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1288     # Reject names that are not valid shell variable names.
1289     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1290       as_fn_error $? "invalid feature name: $ac_useropt"
1291     ac_useropt_orig=$ac_useropt
1292     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1293     case $ac_user_opts in
1294       *"
1295 "enable_$ac_useropt"
1296 "*) ;;
1297       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1298          ac_unrecognized_sep=', ';;
1299     esac
1300     eval enable_$ac_useropt=no ;;
1301
1302   -docdir | --docdir | --docdi | --doc | --do)
1303     ac_prev=docdir ;;
1304   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1305     docdir=$ac_optarg ;;
1306
1307   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1308     ac_prev=dvidir ;;
1309   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1310     dvidir=$ac_optarg ;;
1311
1312   -enable-* | --enable-*)
1313     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1314     # Reject names that are not valid shell variable names.
1315     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1316       as_fn_error $? "invalid feature name: $ac_useropt"
1317     ac_useropt_orig=$ac_useropt
1318     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1319     case $ac_user_opts in
1320       *"
1321 "enable_$ac_useropt"
1322 "*) ;;
1323       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1324          ac_unrecognized_sep=', ';;
1325     esac
1326     eval enable_$ac_useropt=\$ac_optarg ;;
1327
1328   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1329   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1330   | --exec | --exe | --ex)
1331     ac_prev=exec_prefix ;;
1332   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1333   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1334   | --exec=* | --exe=* | --ex=*)
1335     exec_prefix=$ac_optarg ;;
1336
1337   -gas | --gas | --ga | --g)
1338     # Obsolete; use --with-gas.
1339     with_gas=yes ;;
1340
1341   -help | --help | --hel | --he | -h)
1342     ac_init_help=long ;;
1343   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1344     ac_init_help=recursive ;;
1345   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1346     ac_init_help=short ;;
1347
1348   -host | --host | --hos | --ho)
1349     ac_prev=host_alias ;;
1350   -host=* | --host=* | --hos=* | --ho=*)
1351     host_alias=$ac_optarg ;;
1352
1353   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1354     ac_prev=htmldir ;;
1355   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1356   | --ht=*)
1357     htmldir=$ac_optarg ;;
1358
1359   -includedir | --includedir | --includedi | --included | --include \
1360   | --includ | --inclu | --incl | --inc)
1361     ac_prev=includedir ;;
1362   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1363   | --includ=* | --inclu=* | --incl=* | --inc=*)
1364     includedir=$ac_optarg ;;
1365
1366   -infodir | --infodir | --infodi | --infod | --info | --inf)
1367     ac_prev=infodir ;;
1368   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1369     infodir=$ac_optarg ;;
1370
1371   -libdir | --libdir | --libdi | --libd)
1372     ac_prev=libdir ;;
1373   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1374     libdir=$ac_optarg ;;
1375
1376   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1377   | --libexe | --libex | --libe)
1378     ac_prev=libexecdir ;;
1379   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1380   | --libexe=* | --libex=* | --libe=*)
1381     libexecdir=$ac_optarg ;;
1382
1383   -localedir | --localedir | --localedi | --localed | --locale)
1384     ac_prev=localedir ;;
1385   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1386     localedir=$ac_optarg ;;
1387
1388   -localstatedir | --localstatedir | --localstatedi | --localstated \
1389   | --localstate | --localstat | --localsta | --localst | --locals)
1390     ac_prev=localstatedir ;;
1391   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1392   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1393     localstatedir=$ac_optarg ;;
1394
1395   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1396     ac_prev=mandir ;;
1397   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1398     mandir=$ac_optarg ;;
1399
1400   -nfp | --nfp | --nf)
1401     # Obsolete; use --without-fp.
1402     with_fp=no ;;
1403
1404   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1405   | --no-cr | --no-c | -n)
1406     no_create=yes ;;
1407
1408   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1409   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1410     no_recursion=yes ;;
1411
1412   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1413   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1414   | --oldin | --oldi | --old | --ol | --o)
1415     ac_prev=oldincludedir ;;
1416   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1417   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1418   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1419     oldincludedir=$ac_optarg ;;
1420
1421   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1422     ac_prev=prefix ;;
1423   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1424     prefix=$ac_optarg ;;
1425
1426   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1427   | --program-pre | --program-pr | --program-p)
1428     ac_prev=program_prefix ;;
1429   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1430   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1431     program_prefix=$ac_optarg ;;
1432
1433   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1434   | --program-suf | --program-su | --program-s)
1435     ac_prev=program_suffix ;;
1436   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1437   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1438     program_suffix=$ac_optarg ;;
1439
1440   -program-transform-name | --program-transform-name \
1441   | --program-transform-nam | --program-transform-na \
1442   | --program-transform-n | --program-transform- \
1443   | --program-transform | --program-transfor \
1444   | --program-transfo | --program-transf \
1445   | --program-trans | --program-tran \
1446   | --progr-tra | --program-tr | --program-t)
1447     ac_prev=program_transform_name ;;
1448   -program-transform-name=* | --program-transform-name=* \
1449   | --program-transform-nam=* | --program-transform-na=* \
1450   | --program-transform-n=* | --program-transform-=* \
1451   | --program-transform=* | --program-transfor=* \
1452   | --program-transfo=* | --program-transf=* \
1453   | --program-trans=* | --program-tran=* \
1454   | --progr-tra=* | --program-tr=* | --program-t=*)
1455     program_transform_name=$ac_optarg ;;
1456
1457   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1458     ac_prev=pdfdir ;;
1459   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1460     pdfdir=$ac_optarg ;;
1461
1462   -psdir | --psdir | --psdi | --psd | --ps)
1463     ac_prev=psdir ;;
1464   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1465     psdir=$ac_optarg ;;
1466
1467   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1468   | -silent | --silent | --silen | --sile | --sil)
1469     silent=yes ;;
1470
1471   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1472     ac_prev=sbindir ;;
1473   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1474   | --sbi=* | --sb=*)
1475     sbindir=$ac_optarg ;;
1476
1477   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1478   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1479   | --sharedst | --shareds | --shared | --share | --shar \
1480   | --sha | --sh)
1481     ac_prev=sharedstatedir ;;
1482   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1483   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1484   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1485   | --sha=* | --sh=*)
1486     sharedstatedir=$ac_optarg ;;
1487
1488   -site | --site | --sit)
1489     ac_prev=site ;;
1490   -site=* | --site=* | --sit=*)
1491     site=$ac_optarg ;;
1492
1493   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1494     ac_prev=srcdir ;;
1495   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1496     srcdir=$ac_optarg ;;
1497
1498   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1499   | --syscon | --sysco | --sysc | --sys | --sy)
1500     ac_prev=sysconfdir ;;
1501   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1502   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1503     sysconfdir=$ac_optarg ;;
1504
1505   -target | --target | --targe | --targ | --tar | --ta | --t)
1506     ac_prev=target_alias ;;
1507   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1508     target_alias=$ac_optarg ;;
1509
1510   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1511     verbose=yes ;;
1512
1513   -version | --version | --versio | --versi | --vers | -V)
1514     ac_init_version=: ;;
1515
1516   -with-* | --with-*)
1517     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1518     # Reject names that are not valid shell variable names.
1519     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1520       as_fn_error $? "invalid package name: $ac_useropt"
1521     ac_useropt_orig=$ac_useropt
1522     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1523     case $ac_user_opts in
1524       *"
1525 "with_$ac_useropt"
1526 "*) ;;
1527       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1528          ac_unrecognized_sep=', ';;
1529     esac
1530     eval with_$ac_useropt=\$ac_optarg ;;
1531
1532   -without-* | --without-*)
1533     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1534     # Reject names that are not valid shell variable names.
1535     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1536       as_fn_error $? "invalid package name: $ac_useropt"
1537     ac_useropt_orig=$ac_useropt
1538     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1539     case $ac_user_opts in
1540       *"
1541 "with_$ac_useropt"
1542 "*) ;;
1543       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1544          ac_unrecognized_sep=', ';;
1545     esac
1546     eval with_$ac_useropt=no ;;
1547
1548   --x)
1549     # Obsolete; use --with-x.
1550     with_x=yes ;;
1551
1552   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1553   | --x-incl | --x-inc | --x-in | --x-i)
1554     ac_prev=x_includes ;;
1555   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1556   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1557     x_includes=$ac_optarg ;;
1558
1559   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1560   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1561     ac_prev=x_libraries ;;
1562   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1563   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1564     x_libraries=$ac_optarg ;;
1565
1566   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1567 Try \`$0 --help' for more information"
1568     ;;
1569
1570   *=*)
1571     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1572     # Reject names that are not valid shell variable names.
1573     case $ac_envvar in #(
1574       '' | [0-9]* | *[!_$as_cr_alnum]* )
1575       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1576     esac
1577     eval $ac_envvar=\$ac_optarg
1578     export $ac_envvar ;;
1579
1580   *)
1581     # FIXME: should be removed in autoconf 3.0.
1582     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1583     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1584       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1585     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1586     ;;
1587
1588   esac
1589 done
1590
1591 if test -n "$ac_prev"; then
1592   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1593   as_fn_error $? "missing argument to $ac_option"
1594 fi
1595
1596 if test -n "$ac_unrecognized_opts"; then
1597   case $enable_option_checking in
1598     no) ;;
1599     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1600     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1601   esac
1602 fi
1603
1604 # Check all directory arguments for consistency.
1605 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1606                 datadir sysconfdir sharedstatedir localstatedir includedir \
1607                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1608                 libdir localedir mandir
1609 do
1610   eval ac_val=\$$ac_var
1611   # Remove trailing slashes.
1612   case $ac_val in
1613     */ )
1614       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1615       eval $ac_var=\$ac_val;;
1616   esac
1617   # Be sure to have absolute directory names.
1618   case $ac_val in
1619     [\\/$]* | ?:[\\/]* )  continue;;
1620     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1621   esac
1622   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1623 done
1624
1625 # There might be people who depend on the old broken behavior: `$host'
1626 # used to hold the argument of --host etc.
1627 # FIXME: To remove some day.
1628 build=$build_alias
1629 host=$host_alias
1630 target=$target_alias
1631
1632 # FIXME: To remove some day.
1633 if test "x$host_alias" != x; then
1634   if test "x$build_alias" = x; then
1635     cross_compiling=maybe
1636   elif test "x$build_alias" != "x$host_alias"; then
1637     cross_compiling=yes
1638   fi
1639 fi
1640
1641 ac_tool_prefix=
1642 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1643
1644 test "$silent" = yes && exec 6>/dev/null
1645
1646
1647 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1648 ac_ls_di=`ls -di .` &&
1649 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1650   as_fn_error $? "working directory cannot be determined"
1651 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1652   as_fn_error $? "pwd does not report name of working directory"
1653
1654
1655 # Find the source files, if location was not specified.
1656 if test -z "$srcdir"; then
1657   ac_srcdir_defaulted=yes
1658   # Try the directory containing this script, then the parent directory.
1659   ac_confdir=`$as_dirname -- "$as_myself" ||
1660 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1661          X"$as_myself" : 'X\(//\)[^/]' \| \
1662          X"$as_myself" : 'X\(//\)$' \| \
1663          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1664 $as_echo X"$as_myself" |
1665     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1666             s//\1/
1667             q
1668           }
1669           /^X\(\/\/\)[^/].*/{
1670             s//\1/
1671             q
1672           }
1673           /^X\(\/\/\)$/{
1674             s//\1/
1675             q
1676           }
1677           /^X\(\/\).*/{
1678             s//\1/
1679             q
1680           }
1681           s/.*/./; q'`
1682   srcdir=$ac_confdir
1683   if test ! -r "$srcdir/$ac_unique_file"; then
1684     srcdir=..
1685   fi
1686 else
1687   ac_srcdir_defaulted=no
1688 fi
1689 if test ! -r "$srcdir/$ac_unique_file"; then
1690   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1691   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1692 fi
1693 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1694 ac_abs_confdir=`(
1695         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1696         pwd)`
1697 # When building in place, set srcdir=.
1698 if test "$ac_abs_confdir" = "$ac_pwd"; then
1699   srcdir=.
1700 fi
1701 # Remove unnecessary trailing slashes from srcdir.
1702 # Double slashes in file names in object file debugging info
1703 # mess up M-x gdb in Emacs.
1704 case $srcdir in
1705 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1706 esac
1707 for ac_var in $ac_precious_vars; do
1708   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1709   eval ac_env_${ac_var}_value=\$${ac_var}
1710   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1711   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1712 done
1713
1714 #
1715 # Report the --help message.
1716 #
1717 if test "$ac_init_help" = "long"; then
1718   # Omit some internal or obsolete options to make the list less imposing.
1719   # This message is too long to be a string in the A/UX 3.1 sh.
1720   cat <<_ACEOF
1721 \`configure' configures curl - to adapt to many kinds of systems.
1722
1723 Usage: $0 [OPTION]... [VAR=VALUE]...
1724
1725 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1726 VAR=VALUE.  See below for descriptions of some of the useful variables.
1727
1728 Defaults for the options are specified in brackets.
1729
1730 Configuration:
1731   -h, --help              display this help and exit
1732       --help=short        display options specific to this package
1733       --help=recursive    display the short help of all the included packages
1734   -V, --version           display version information and exit
1735   -q, --quiet, --silent   do not print \`checking ...' messages
1736       --cache-file=FILE   cache test results in FILE [disabled]
1737   -C, --config-cache      alias for \`--cache-file=config.cache'
1738   -n, --no-create         do not create output files
1739       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1740
1741 Installation directories:
1742   --prefix=PREFIX         install architecture-independent files in PREFIX
1743                           [$ac_default_prefix]
1744   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1745                           [PREFIX]
1746
1747 By default, \`make install' will install all the files in
1748 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1749 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1750 for instance \`--prefix=\$HOME'.
1751
1752 For better control, use the options below.
1753
1754 Fine tuning of the installation directories:
1755   --bindir=DIR            user executables [EPREFIX/bin]
1756   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1757   --libexecdir=DIR        program executables [EPREFIX/libexec]
1758   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1759   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1760   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1761   --libdir=DIR            object code libraries [EPREFIX/lib]
1762   --includedir=DIR        C header files [PREFIX/include]
1763   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1764   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1765   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1766   --infodir=DIR           info documentation [DATAROOTDIR/info]
1767   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1768   --mandir=DIR            man documentation [DATAROOTDIR/man]
1769   --docdir=DIR            documentation root [DATAROOTDIR/doc/curl]
1770   --htmldir=DIR           html documentation [DOCDIR]
1771   --dvidir=DIR            dvi documentation [DOCDIR]
1772   --pdfdir=DIR            pdf documentation [DOCDIR]
1773   --psdir=DIR             ps documentation [DOCDIR]
1774 _ACEOF
1775
1776   cat <<\_ACEOF
1777
1778 Program names:
1779   --program-prefix=PREFIX            prepend PREFIX to installed program names
1780   --program-suffix=SUFFIX            append SUFFIX to installed program names
1781   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1782
1783 System types:
1784   --build=BUILD     configure for building on BUILD [guessed]
1785   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1786 _ACEOF
1787 fi
1788
1789 if test -n "$ac_init_help"; then
1790   case $ac_init_help in
1791      short | recursive ) echo "Configuration of curl -:";;
1792    esac
1793   cat <<\_ACEOF
1794
1795 Optional Features:
1796   --disable-option-checking  ignore unrecognized --enable/--with options
1797   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1798   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1799   --enable-maintainer-mode
1800                           enable make rules and dependencies not useful (and
1801                           sometimes confusing) to the casual installer
1802   --enable-debug          Enable debug build options
1803   --disable-debug         Disable debug build options
1804   --enable-optimize       Enable compiler optimizations
1805   --disable-optimize      Disable compiler optimizations
1806   --enable-warnings       Enable strict compiler warnings
1807   --disable-warnings      Disable strict compiler warnings
1808   --enable-werror         Enable compiler warnings as errors
1809   --disable-werror        Disable compiler warnings as errors
1810   --enable-curldebug      Enable curl debug memory tracking
1811   --disable-curldebug     Disable curl debug memory tracking
1812   --enable-symbol-hiding  Enable hiding of library internal symbols
1813   --disable-symbol-hiding Disable hiding of library internal symbols
1814   --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1815   --disable-hidden-symbols
1816                           To be deprecated, use --disable-symbol-hiding
1817   --enable-ares[=PATH]    Enable c-ares for DNS lookups
1818   --disable-ares          Disable c-ares for DNS lookups
1819   --enable-dependency-tracking
1820                           do not reject slow dependency extractors
1821   --disable-dependency-tracking
1822                           speeds up one-time build
1823   --enable-silent-rules   less verbose build output (undo: "make V=1")
1824   --disable-silent-rules  verbose build output (undo: "make V=0")
1825   --disable-largefile     omit support for large files
1826   --enable-shared[=PKGS]  build shared libraries [default=yes]
1827   --enable-static[=PKGS]  build static libraries [default=yes]
1828   --enable-fast-install[=PKGS]
1829                           optimize for fast installation [default=yes]
1830   --disable-libtool-lock  avoid locking (might break parallel builds)
1831   --enable-http           Enable HTTP support
1832   --disable-http          Disable HTTP support
1833   --enable-ftp            Enable FTP support
1834   --disable-ftp           Disable FTP support
1835   --enable-file           Enable FILE support
1836   --disable-file          Disable FILE support
1837   --enable-ldap           Enable LDAP support
1838   --disable-ldap          Disable LDAP support
1839   --enable-ldaps          Enable LDAPS support
1840   --disable-ldaps         Disable LDAPS support
1841   --enable-rtsp           Enable RTSP support
1842   --disable-rtsp          Disable RTSP support
1843   --enable-proxy          Enable proxy support
1844   --disable-proxy         Disable proxy support
1845   --enable-dict           Enable DICT support
1846   --disable-dict          Disable DICT support
1847   --enable-telnet         Enable TELNET support
1848   --disable-telnet        Disable TELNET support
1849   --enable-tftp           Enable TFTP support
1850   --disable-tftp          Disable TFTP support
1851   --enable-pop3           Enable POP3 support
1852   --disable-pop3          Disable POP3 support
1853   --enable-imap           Enable IMAP support
1854   --disable-imap          Disable IMAP support
1855   --enable-smb            Enable SMB/CIFS support
1856   --disable-smb           Disable SMB/CIFS support
1857   --enable-smtp           Enable SMTP support
1858   --disable-smtp          Disable SMTP support
1859   --enable-gopher         Enable Gopher support
1860   --disable-gopher        Disable Gopher support
1861   --enable-manual         Enable built-in manual
1862   --disable-manual        Disable built-in manual
1863   --enable-libcurl-option Enable --libcurl C code generation support
1864   --disable-libcurl-option
1865                           Disable --libcurl C code generation support
1866   --enable-libgcc         use libgcc when linking
1867   --enable-ipv6           Enable IPv6 (with IPv4) support
1868   --disable-ipv6          Disable IPv6 support
1869   --enable-versioned-symbols
1870                           Enable versioned symbols in shared library
1871   --disable-versioned-symbols
1872                           Disable versioned symbols in shared library
1873   --enable-threaded-resolver
1874                           Enable threaded resolver
1875   --disable-threaded-resolver
1876                           Disable threaded resolver
1877   --enable-verbose        Enable verbose strings
1878   --disable-verbose       Disable verbose strings
1879   --enable-sspi           Enable SSPI
1880   --disable-sspi          Disable SSPI
1881   --enable-crypto-auth    Enable cryptographic authentication
1882   --disable-crypto-auth   Disable cryptographic authentication
1883   --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1884                           helper, where FILE is ntlm_auth's absolute filename
1885                           (default: /usr/bin/ntlm_auth)
1886   --disable-ntlm-wb       Disable NTLM delegation to winbind's ntlm_auth
1887                           helper
1888   --enable-tls-srp        Enable TLS-SRP authentication
1889   --disable-tls-srp       Disable TLS-SRP authentication
1890   --enable-unix-sockets   Enable Unix domain sockets
1891   --disable-unix-sockets  Disable Unix domain sockets
1892   --enable-cookies        Enable cookies support
1893   --disable-cookies       Disable cookies support
1894   --enable-soname-bump    Enable enforced SONAME bump
1895   --disable-soname-bump   Disable enforced SONAME bump
1896
1897 Optional Packages:
1898   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1899   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1900   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1901                           both]
1902   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1903   --with-sysroot=DIR Search for dependent libraries within DIR
1904                         (or the compiler's sysroot if not specified).
1905   --with-zlib=PATH        search for zlib in PATH
1906   --without-zlib          disable use of zlib
1907   --with-ldap-lib=libname Specify name of ldap lib file
1908   --with-lber-lib=libname Specify name of lber lib file
1909   --with-gssapi-includes=DIR
1910                           Specify location of GSS-API headers
1911   --with-gssapi-libs=DIR  Specify location of GSS-API libs
1912   --with-gssapi=DIR       Where to look for GSS-API
1913   --with-winssl           enable Windows native SSL/TLS
1914   --without-winssl        disable Windows native SSL/TLS
1915   --with-darwinssl        enable iOS/Mac OS X native SSL/TLS
1916   --without-darwinssl     disable iOS/Mac OS X native SSL/TLS
1917   --with-ssl=PATH         Where to look for OpenSSL, PATH points to the SSL
1918                           installation (default: /usr/local/ssl); when
1919                           possible, set the PKG_CONFIG_PATH environment
1920                           variable instead of using this option
1921   --without-ssl           disable OpenSSL
1922   --with-egd-socket=FILE  Entropy Gathering Daemon socket pathname
1923   --with-random=FILE      read randomness from FILE (default=/dev/urandom)
1924   --with-gnutls=PATH      where to look for GnuTLS, PATH points to the
1925                           installation root
1926   --without-gnutls        disable GnuTLS detection
1927   --with-polarssl=PATH    where to look for PolarSSL, PATH points to the
1928                           installation root
1929   --without-polarssl      disable PolarSSL detection
1930   --with-cyassl=PATH      where to look for CyaSSL, PATH points to the
1931                           installation root (default: system lib default)
1932   --without-cyassl        disable CyaSSL detection
1933   --with-nss=PATH         where to look for NSS, PATH points to the
1934                           installation root
1935   --without-nss           disable NSS detection
1936   --with-axtls=PATH       Where to look for axTLS, PATH points to the axTLS
1937                           installation prefix (default: /usr/local). Ignored
1938                           if another SSL engine is selected.
1939   --without-axtls         disable axTLS
1940   --with-ca-bundle=FILE   File name to use as CA bundle
1941   --without-ca-bundle     Don't use a default CA bundle
1942   --with-ca-path=DIRECTORY
1943                           Directory to use as CA path
1944   --without-ca-path       Don't use a default CA path
1945   --with-libmetalink=PATH where to look for libmetalink, PATH points to the
1946                           installation root
1947   --without-libmetalink   disable libmetalink detection
1948   --with-libssh2=PATH     Where to look for libssh2, PATH points to the
1949                           LIBSSH2 installation; when possible, set the
1950                           PKG_CONFIG_PATH environment variable instead of
1951                           using this option
1952   --without-libssh2       disable LIBSSH2
1953   --with-librtmp=PATH     Where to look for librtmp, PATH points to the
1954                           LIBRTMP installation; when possible, set the
1955                           PKG_CONFIG_PATH environment variable instead of
1956                           using this option
1957   --without-librtmp       disable LIBRTMP
1958   --with-winidn=PATH      enable Windows native IDN
1959   --without-winidn        disable Windows native IDN
1960   --with-libidn=PATH      Enable libidn usage
1961   --without-libidn        Disable libidn usage
1962   --with-nghttp2=PATH     Enable nghttp2 usage
1963   --without-nghttp2       Disable nghttp2 usage
1964
1965 Some influential environment variables:
1966   CC          C compiler command
1967   CFLAGS      C compiler flags
1968   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1969               nonstandard directory <lib dir>
1970   LIBS        libraries to pass to the linker, e.g. -l<library>
1971   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1972               you have headers in a nonstandard directory <include dir>
1973   CPP         C preprocessor
1974
1975 Use these variables to override the choices made by `configure' or to help
1976 it to find libraries and programs with nonstandard names/locations.
1977
1978 Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>.
1979 _ACEOF
1980 ac_status=$?
1981 fi
1982
1983 if test "$ac_init_help" = "recursive"; then
1984   # If there are subdirs, report their specific --help.
1985   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1986     test -d "$ac_dir" ||
1987       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1988       continue
1989     ac_builddir=.
1990
1991 case "$ac_dir" in
1992 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1993 *)
1994   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1995   # A ".." for each directory in $ac_dir_suffix.
1996   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1997   case $ac_top_builddir_sub in
1998   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1999   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2000   esac ;;
2001 esac
2002 ac_abs_top_builddir=$ac_pwd
2003 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2004 # for backward compatibility:
2005 ac_top_builddir=$ac_top_build_prefix
2006
2007 case $srcdir in
2008   .)  # We are building in place.
2009     ac_srcdir=.
2010     ac_top_srcdir=$ac_top_builddir_sub
2011     ac_abs_top_srcdir=$ac_pwd ;;
2012   [\\/]* | ?:[\\/]* )  # Absolute name.
2013     ac_srcdir=$srcdir$ac_dir_suffix;
2014     ac_top_srcdir=$srcdir
2015     ac_abs_top_srcdir=$srcdir ;;
2016   *) # Relative name.
2017     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2018     ac_top_srcdir=$ac_top_build_prefix$srcdir
2019     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2020 esac
2021 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2022
2023     cd "$ac_dir" || { ac_status=$?; continue; }
2024     # Check for guested configure.
2025     if test -f "$ac_srcdir/configure.gnu"; then
2026       echo &&
2027       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2028     elif test -f "$ac_srcdir/configure"; then
2029       echo &&
2030       $SHELL "$ac_srcdir/configure" --help=recursive
2031     else
2032       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2033     fi || ac_status=$?
2034     cd "$ac_pwd" || { ac_status=$?; break; }
2035   done
2036 fi
2037
2038 test -n "$ac_init_help" && exit $ac_status
2039 if $ac_init_version; then
2040   cat <<\_ACEOF
2041 curl configure -
2042 generated by GNU Autoconf 2.69
2043
2044 Copyright (C) 2012 Free Software Foundation, Inc.
2045 This configure script is free software; the Free Software Foundation
2046 gives unlimited permission to copy, distribute and modify it.
2047
2048 Copyright (c) 1998 - 2014 Daniel Stenberg, <daniel@haxx.se>
2049 This configure script may be copied, distributed and modified under the
2050 terms of the curl license; see COPYING for more details
2051 _ACEOF
2052   exit
2053 fi
2054
2055 ## ------------------------ ##
2056 ## Autoconf initialization. ##
2057 ## ------------------------ ##
2058
2059 # ac_fn_c_try_compile LINENO
2060 # --------------------------
2061 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2062 ac_fn_c_try_compile ()
2063 {
2064   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065   rm -f conftest.$ac_objext
2066   if { { ac_try="$ac_compile"
2067 case "(($ac_try" in
2068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069   *) ac_try_echo=$ac_try;;
2070 esac
2071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2072 $as_echo "$ac_try_echo"; } >&5
2073   (eval "$ac_compile") 2>conftest.err
2074   ac_status=$?
2075   if test -s conftest.err; then
2076     grep -v '^ *+' conftest.err >conftest.er1
2077     cat conftest.er1 >&5
2078     mv -f conftest.er1 conftest.err
2079   fi
2080   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081   test $ac_status = 0; } && {
2082          test -z "$ac_c_werror_flag" ||
2083          test ! -s conftest.err
2084        } && test -s conftest.$ac_objext; then :
2085   ac_retval=0
2086 else
2087   $as_echo "$as_me: failed program was:" >&5
2088 sed 's/^/| /' conftest.$ac_ext >&5
2089
2090         ac_retval=1
2091 fi
2092   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2093   as_fn_set_status $ac_retval
2094
2095 } # ac_fn_c_try_compile
2096
2097 # ac_fn_c_try_cpp LINENO
2098 # ----------------------
2099 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2100 ac_fn_c_try_cpp ()
2101 {
2102   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103   if { { ac_try="$ac_cpp conftest.$ac_ext"
2104 case "(($ac_try" in
2105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106   *) ac_try_echo=$ac_try;;
2107 esac
2108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2109 $as_echo "$ac_try_echo"; } >&5
2110   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2111   ac_status=$?
2112   if test -s conftest.err; then
2113     grep -v '^ *+' conftest.err >conftest.er1
2114     cat conftest.er1 >&5
2115     mv -f conftest.er1 conftest.err
2116   fi
2117   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2118   test $ac_status = 0; } > conftest.i && {
2119          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2120          test ! -s conftest.err
2121        }; then :
2122   ac_retval=0
2123 else
2124   $as_echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2126
2127     ac_retval=1
2128 fi
2129   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130   as_fn_set_status $ac_retval
2131
2132 } # ac_fn_c_try_cpp
2133
2134 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2135 # -------------------------------------------------------
2136 # Tests whether HEADER exists and can be compiled using the include files in
2137 # INCLUDES, setting the cache variable VAR accordingly.
2138 ac_fn_c_check_header_compile ()
2139 {
2140   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2142 $as_echo_n "checking for $2... " >&6; }
2143 if eval \${$3+:} false; then :
2144   $as_echo_n "(cached) " >&6
2145 else
2146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147 /* end confdefs.h.  */
2148 $4
2149 #include <$2>
2150 _ACEOF
2151 if ac_fn_c_try_compile "$LINENO"; then :
2152   eval "$3=yes"
2153 else
2154   eval "$3=no"
2155 fi
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157 fi
2158 eval ac_res=\$$3
2159                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2160 $as_echo "$ac_res" >&6; }
2161   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2162
2163 } # ac_fn_c_check_header_compile
2164
2165 # ac_fn_c_try_run LINENO
2166 # ----------------------
2167 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2168 # that executables *can* be run.
2169 ac_fn_c_try_run ()
2170 {
2171   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172   if { { ac_try="$ac_link"
2173 case "(($ac_try" in
2174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2175   *) ac_try_echo=$ac_try;;
2176 esac
2177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2178 $as_echo "$ac_try_echo"; } >&5
2179   (eval "$ac_link") 2>&5
2180   ac_status=$?
2181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2182   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2183   { { case "(($ac_try" in
2184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2185   *) ac_try_echo=$ac_try;;
2186 esac
2187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2188 $as_echo "$ac_try_echo"; } >&5
2189   (eval "$ac_try") 2>&5
2190   ac_status=$?
2191   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2192   test $ac_status = 0; }; }; then :
2193   ac_retval=0
2194 else
2195   $as_echo "$as_me: program exited with status $ac_status" >&5
2196        $as_echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2198
2199        ac_retval=$ac_status
2200 fi
2201   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2202   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2203   as_fn_set_status $ac_retval
2204
2205 } # ac_fn_c_try_run
2206
2207 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2208 # --------------------------------------------
2209 # Tries to find the compile-time value of EXPR in a program that includes
2210 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2211 # computed
2212 ac_fn_c_compute_int ()
2213 {
2214   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2215   if test "$cross_compiling" = yes; then
2216     # Depending upon the size, compute the lo and hi bounds.
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h.  */
2219 $4
2220 int main (void)
2221 {
2222 static int test_array [1 - 2 * !(($2) >= 0)];
2223 test_array [0] = 0;
2224 return test_array [0];
2225
2226  ;
2227  return 0;
2228 }
2229 _ACEOF
2230 if ac_fn_c_try_compile "$LINENO"; then :
2231   ac_lo=0 ac_mid=0
2232   while :; do
2233     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234 /* end confdefs.h.  */
2235 $4
2236 int main (void)
2237 {
2238 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2239 test_array [0] = 0;
2240 return test_array [0];
2241
2242  ;
2243  return 0;
2244 }
2245 _ACEOF
2246 if ac_fn_c_try_compile "$LINENO"; then :
2247   ac_hi=$ac_mid; break
2248 else
2249   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2250                         if test $ac_lo -le $ac_mid; then
2251                           ac_lo= ac_hi=
2252                           break
2253                         fi
2254                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2255 fi
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257   done
2258 else
2259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h.  */
2261 $4
2262 int main (void)
2263 {
2264 static int test_array [1 - 2 * !(($2) < 0)];
2265 test_array [0] = 0;
2266 return test_array [0];
2267
2268  ;
2269  return 0;
2270 }
2271 _ACEOF
2272 if ac_fn_c_try_compile "$LINENO"; then :
2273   ac_hi=-1 ac_mid=-1
2274   while :; do
2275     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h.  */
2277 $4
2278 int main (void)
2279 {
2280 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2281 test_array [0] = 0;
2282 return test_array [0];
2283
2284  ;
2285  return 0;
2286 }
2287 _ACEOF
2288 if ac_fn_c_try_compile "$LINENO"; then :
2289   ac_lo=$ac_mid; break
2290 else
2291   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2292                         if test $ac_mid -le $ac_hi; then
2293                           ac_lo= ac_hi=
2294                           break
2295                         fi
2296                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2297 fi
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299   done
2300 else
2301   ac_lo= ac_hi=
2302 fi
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 fi
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 # Binary search between lo and hi bounds.
2307 while test "x$ac_lo" != "x$ac_hi"; do
2308   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h.  */
2311 $4
2312 int main (void)
2313 {
2314 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2315 test_array [0] = 0;
2316 return test_array [0];
2317
2318  ;
2319  return 0;
2320 }
2321 _ACEOF
2322 if ac_fn_c_try_compile "$LINENO"; then :
2323   ac_hi=$ac_mid
2324 else
2325   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2326 fi
2327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2328 done
2329 case $ac_lo in #((
2330 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2331 '') ac_retval=1 ;;
2332 esac
2333   else
2334     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2335 /* end confdefs.h.  */
2336 $4
2337 static long int longval () { return $2; }
2338 static unsigned long int ulongval () { return $2; }
2339 #include <stdio.h>
2340 #include <stdlib.h>
2341 int main (void)
2342 {
2343
2344   FILE *f = fopen ("conftest.val", "w");
2345   if (! f)
2346     return 1;
2347   if (($2) < 0)
2348     {
2349       long int i = longval ();
2350       if (i != ($2))
2351         return 1;
2352       fprintf (f, "%ld", i);
2353     }
2354   else
2355     {
2356       unsigned long int i = ulongval ();
2357       if (i != ($2))
2358         return 1;
2359       fprintf (f, "%lu", i);
2360     }
2361   /* Do not output a trailing newline, as this causes \r\n confusion
2362      on some platforms.  */
2363   return ferror (f) || fclose (f) != 0;
2364
2365  ;
2366  return 0;
2367 }
2368 _ACEOF
2369 if ac_fn_c_try_run "$LINENO"; then :
2370   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2371 else
2372   ac_retval=1
2373 fi
2374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2375   conftest.$ac_objext conftest.beam conftest.$ac_ext
2376 rm -f conftest.val
2377
2378   fi
2379   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2380   as_fn_set_status $ac_retval
2381
2382 } # ac_fn_c_compute_int
2383
2384 # ac_fn_c_try_link LINENO
2385 # -----------------------
2386 # Try to link conftest.$ac_ext, and return whether this succeeded.
2387 ac_fn_c_try_link ()
2388 {
2389   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2390   rm -f conftest.$ac_objext conftest$ac_exeext
2391   if { { ac_try="$ac_link"
2392 case "(($ac_try" in
2393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2394   *) ac_try_echo=$ac_try;;
2395 esac
2396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2397 $as_echo "$ac_try_echo"; } >&5
2398   (eval "$ac_link") 2>conftest.err
2399   ac_status=$?
2400   if test -s conftest.err; then
2401     grep -v '^ *+' conftest.err >conftest.er1
2402     cat conftest.er1 >&5
2403     mv -f conftest.er1 conftest.err
2404   fi
2405   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2406   test $ac_status = 0; } && {
2407          test -z "$ac_c_werror_flag" ||
2408          test ! -s conftest.err
2409        } && test -s conftest$ac_exeext && {
2410          test "$cross_compiling" = yes ||
2411          test -x conftest$ac_exeext
2412        }; then :
2413   ac_retval=0
2414 else
2415   $as_echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2417
2418         ac_retval=1
2419 fi
2420   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2421   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2422   # interfere with the next link command; also delete a directory that is
2423   # left behind by Apple's compiler.  We do this before executing the actions.
2424   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2425   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2426   as_fn_set_status $ac_retval
2427
2428 } # ac_fn_c_try_link
2429
2430 # ac_fn_c_check_func LINENO FUNC VAR
2431 # ----------------------------------
2432 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2433 ac_fn_c_check_func ()
2434 {
2435   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2437 $as_echo_n "checking for $2... " >&6; }
2438 if eval \${$3+:} false; then :
2439   $as_echo_n "(cached) " >&6
2440 else
2441   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442 /* end confdefs.h.  */
2443
2444 #define $2 innocuous_$2
2445 #ifdef __STDC__
2446 # include <limits.h>
2447 #else
2448 # include <assert.h>
2449 #endif
2450 #undef $2
2451 #ifdef __cplusplus
2452 extern "C"
2453 #endif
2454 char $2 ();
2455 #if defined __stub_$2 || defined __stub___$2
2456 choke me
2457 #endif
2458
2459 int main (void)
2460 {
2461 return $2 ();
2462  ;
2463  return 0;
2464 }
2465 _ACEOF
2466 if ac_fn_c_try_link "$LINENO"; then :
2467   eval "$3=yes"
2468 else
2469   eval "$3=no"
2470 fi
2471 rm -f core conftest.err conftest.$ac_objext \
2472     conftest$ac_exeext conftest.$ac_ext
2473 fi
2474 eval ac_res=\$$3
2475                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2476 $as_echo "$ac_res" >&6; }
2477   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2478
2479 } # ac_fn_c_check_func
2480
2481 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2482 # -------------------------------------------------------
2483 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2484 # the include files in INCLUDES and setting the cache variable VAR
2485 # accordingly.
2486 ac_fn_c_check_header_mongrel ()
2487 {
2488   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2489   if eval \${$3+:} false; then :
2490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2491 $as_echo_n "checking for $2... " >&6; }
2492 if eval \${$3+:} false; then :
2493   $as_echo_n "(cached) " >&6
2494 fi
2495 eval ac_res=\$$3
2496                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2497 $as_echo "$ac_res" >&6; }
2498 else
2499   # Is the header compilable?
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2501 $as_echo_n "checking $2 usability... " >&6; }
2502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2503 /* end confdefs.h.  */
2504 $4
2505 #include <$2>
2506 _ACEOF
2507 if ac_fn_c_try_compile "$LINENO"; then :
2508   ac_header_compiler=yes
2509 else
2510   ac_header_compiler=no
2511 fi
2512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2514 $as_echo "$ac_header_compiler" >&6; }
2515
2516 # Is the header present?
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2518 $as_echo_n "checking $2 presence... " >&6; }
2519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520 /* end confdefs.h.  */
2521 #include <$2>
2522 _ACEOF
2523 if ac_fn_c_try_cpp "$LINENO"; then :
2524   ac_header_preproc=yes
2525 else
2526   ac_header_preproc=no
2527 fi
2528 rm -f conftest.err conftest.i conftest.$ac_ext
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2530 $as_echo "$ac_header_preproc" >&6; }
2531
2532 # So?  What about this header?
2533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2534   yes:no: )
2535     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2536 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2537     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2538 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2539     ;;
2540   no:yes:* )
2541     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2542 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2543     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2544 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2545     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2546 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2547     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2548 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2549     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2550 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2551 ( $as_echo "## ---------------------------------------------------------------------- ##
2552 ## Report this to a suitable curl mailing list: http://curl.haxx.se/mail/ ##
2553 ## ---------------------------------------------------------------------- ##"
2554      ) | sed "s/^/$as_me: WARNING:     /" >&2
2555     ;;
2556 esac
2557   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2558 $as_echo_n "checking for $2... " >&6; }
2559 if eval \${$3+:} false; then :
2560   $as_echo_n "(cached) " >&6
2561 else
2562   eval "$3=\$ac_header_compiler"
2563 fi
2564 eval ac_res=\$$3
2565                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2566 $as_echo "$ac_res" >&6; }
2567 fi
2568   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2569
2570 } # ac_fn_c_check_header_mongrel
2571
2572 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2573 # -------------------------------------------
2574 # Tests whether TYPE exists after having included INCLUDES, setting cache
2575 # variable VAR accordingly.
2576 ac_fn_c_check_type ()
2577 {
2578   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2580 $as_echo_n "checking for $2... " >&6; }
2581 if eval \${$3+:} false; then :
2582   $as_echo_n "(cached) " >&6
2583 else
2584   eval "$3=no"
2585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2586 /* end confdefs.h.  */
2587 $4
2588 int main (void)
2589 {
2590 if (sizeof ($2))
2591          return 0;
2592  ;
2593  return 0;
2594 }
2595 _ACEOF
2596 if ac_fn_c_try_compile "$LINENO"; then :
2597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598 /* end confdefs.h.  */
2599 $4
2600 int main (void)
2601 {
2602 if (sizeof (($2)))
2603             return 0;
2604  ;
2605  return 0;
2606 }
2607 _ACEOF
2608 if ac_fn_c_try_compile "$LINENO"; then :
2609
2610 else
2611   eval "$3=yes"
2612 fi
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 fi
2615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616 fi
2617 eval ac_res=\$$3
2618                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2619 $as_echo "$ac_res" >&6; }
2620   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2621
2622 } # ac_fn_c_check_type
2623
2624 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2625 # ----------------------------------------------------
2626 # Tries to find if the field MEMBER exists in type AGGR, after including
2627 # INCLUDES, setting cache variable VAR accordingly.
2628 ac_fn_c_check_member ()
2629 {
2630   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2632 $as_echo_n "checking for $2.$3... " >&6; }
2633 if eval \${$4+:} false; then :
2634   $as_echo_n "(cached) " >&6
2635 else
2636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2637 /* end confdefs.h.  */
2638 $5
2639 int main (void)
2640 {
2641 static $2 ac_aggr;
2642 if (ac_aggr.$3)
2643 return 0;
2644  ;
2645  return 0;
2646 }
2647 _ACEOF
2648 if ac_fn_c_try_compile "$LINENO"; then :
2649   eval "$4=yes"
2650 else
2651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2652 /* end confdefs.h.  */
2653 $5
2654 int main (void)
2655 {
2656 static $2 ac_aggr;
2657 if (sizeof ac_aggr.$3)
2658 return 0;
2659  ;
2660  return 0;
2661 }
2662 _ACEOF
2663 if ac_fn_c_try_compile "$LINENO"; then :
2664   eval "$4=yes"
2665 else
2666   eval "$4=no"
2667 fi
2668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2669 fi
2670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2671 fi
2672 eval ac_res=\$$4
2673                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2674 $as_echo "$ac_res" >&6; }
2675   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2676
2677 } # ac_fn_c_check_member
2678 cat >config.log <<_ACEOF
2679 This file contains any messages produced by compilers while
2680 running configure, to aid debugging if configure makes a mistake.
2681
2682 It was created by curl $as_me -, which was
2683 generated by GNU Autoconf 2.69.  Invocation command line was
2684
2685   $ $0 $@
2686
2687 _ACEOF
2688 exec 5>>config.log
2689 {
2690 cat <<_ASUNAME
2691 ## --------- ##
2692 ## Platform. ##
2693 ## --------- ##
2694
2695 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2696 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2697 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2698 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2699 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2700
2701 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2702 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2703
2704 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2705 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2706 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2707 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2708 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2709 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2710 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2711
2712 _ASUNAME
2713
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH
2716 do
2717   IFS=$as_save_IFS
2718   test -z "$as_dir" && as_dir=.
2719     $as_echo "PATH: $as_dir"
2720   done
2721 IFS=$as_save_IFS
2722
2723 } >&5
2724
2725 cat >&5 <<_ACEOF
2726
2727
2728 ## ----------- ##
2729 ## Core tests. ##
2730 ## ----------- ##
2731
2732 _ACEOF
2733
2734
2735 # Keep a trace of the command line.
2736 # Strip out --no-create and --no-recursion so they do not pile up.
2737 # Strip out --silent because we don't want to record it for future runs.
2738 # Also quote any args containing shell meta-characters.
2739 # Make two passes to allow for proper duplicate-argument suppression.
2740 ac_configure_args=
2741 ac_configure_args0=
2742 ac_configure_args1=
2743 ac_must_keep_next=false
2744 for ac_pass in 1 2
2745 do
2746   for ac_arg
2747   do
2748     case $ac_arg in
2749     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2750     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2751     | -silent | --silent | --silen | --sile | --sil)
2752       continue ;;
2753     *\'*)
2754       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2755     esac
2756     case $ac_pass in
2757     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2758     2)
2759       as_fn_append ac_configure_args1 " '$ac_arg'"
2760       if test $ac_must_keep_next = true; then
2761         ac_must_keep_next=false # Got value, back to normal.
2762       else
2763         case $ac_arg in
2764           *=* | --config-cache | -C | -disable-* | --disable-* \
2765           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2766           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2767           | -with-* | --with-* | -without-* | --without-* | --x)
2768             case "$ac_configure_args0 " in
2769               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2770             esac
2771             ;;
2772           -* ) ac_must_keep_next=true ;;
2773         esac
2774       fi
2775       as_fn_append ac_configure_args " '$ac_arg'"
2776       ;;
2777     esac
2778   done
2779 done
2780 { ac_configure_args0=; unset ac_configure_args0;}
2781 { ac_configure_args1=; unset ac_configure_args1;}
2782
2783 # When interrupted or exit'd, cleanup temporary files, and complete
2784 # config.log.  We remove comments because anyway the quotes in there
2785 # would cause problems or look ugly.
2786 # WARNING: Use '\'' to represent an apostrophe within the trap.
2787 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2788 trap 'exit_status=$?
2789   # Save into config.log some information that might help in debugging.
2790   {
2791     echo
2792
2793     $as_echo "## ---------------- ##
2794 ## Cache variables. ##
2795 ## ---------------- ##"
2796     echo
2797     # The following way of writing the cache mishandles newlines in values,
2798 (
2799   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2800     eval ac_val=\$$ac_var
2801     case $ac_val in #(
2802     *${as_nl}*)
2803       case $ac_var in #(
2804       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2805 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2806       esac
2807       case $ac_var in #(
2808       _ | IFS | as_nl) ;; #(
2809       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2810       *) { eval $ac_var=; unset $ac_var;} ;;
2811       esac ;;
2812     esac
2813   done
2814   (set) 2>&1 |
2815     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2816     *${as_nl}ac_space=\ *)
2817       sed -n \
2818         "s/'\''/'\''\\\\'\'''\''/g;
2819           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2820       ;; #(
2821     *)
2822       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2823       ;;
2824     esac |
2825     sort
2826 )
2827     echo
2828
2829     $as_echo "## ----------------- ##
2830 ## Output variables. ##
2831 ## ----------------- ##"
2832     echo
2833     for ac_var in $ac_subst_vars
2834     do
2835       eval ac_val=\$$ac_var
2836       case $ac_val in
2837       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2838       esac
2839       $as_echo "$ac_var='\''$ac_val'\''"
2840     done | sort
2841     echo
2842
2843     if test -n "$ac_subst_files"; then
2844       $as_echo "## ------------------- ##
2845 ## File substitutions. ##
2846 ## ------------------- ##"
2847       echo
2848       for ac_var in $ac_subst_files
2849       do
2850         eval ac_val=\$$ac_var
2851         case $ac_val in
2852         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2853         esac
2854         $as_echo "$ac_var='\''$ac_val'\''"
2855       done | sort
2856       echo
2857     fi
2858
2859     if test -s confdefs.h; then
2860       $as_echo "## ----------- ##
2861 ## confdefs.h. ##
2862 ## ----------- ##"
2863       echo
2864       cat confdefs.h
2865       echo
2866     fi
2867     test "$ac_signal" != 0 &&
2868       $as_echo "$as_me: caught signal $ac_signal"
2869     $as_echo "$as_me: exit $exit_status"
2870   } >&5
2871   rm -f core *.core core.conftest.* &&
2872     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2873     exit $exit_status
2874 ' 0
2875 for ac_signal in 1 2 13 15; do
2876   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2877 done
2878 ac_signal=0
2879
2880 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2881 rm -f -r conftest* confdefs.h
2882
2883 $as_echo "/* confdefs.h */" > confdefs.h
2884
2885 # Predefined preprocessor variables.
2886
2887 cat >>confdefs.h <<_ACEOF
2888 #define PACKAGE_NAME "$PACKAGE_NAME"
2889 _ACEOF
2890
2891 cat >>confdefs.h <<_ACEOF
2892 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2893 _ACEOF
2894
2895 cat >>confdefs.h <<_ACEOF
2896 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2897 _ACEOF
2898
2899 cat >>confdefs.h <<_ACEOF
2900 #define PACKAGE_STRING "$PACKAGE_STRING"
2901 _ACEOF
2902
2903 cat >>confdefs.h <<_ACEOF
2904 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2905 _ACEOF
2906
2907 cat >>confdefs.h <<_ACEOF
2908 #define PACKAGE_URL "$PACKAGE_URL"
2909 _ACEOF
2910
2911
2912 # Let the site file select an alternate cache file if it wants to.
2913 # Prefer an explicitly selected file to automatically selected ones.
2914 ac_site_file1=NONE
2915 ac_site_file2=NONE
2916 if test -n "$CONFIG_SITE"; then
2917   # We do not want a PATH search for config.site.
2918   case $CONFIG_SITE in #((
2919     -*)  ac_site_file1=./$CONFIG_SITE;;
2920     */*) ac_site_file1=$CONFIG_SITE;;
2921     *)   ac_site_file1=./$CONFIG_SITE;;
2922   esac
2923 elif test "x$prefix" != xNONE; then
2924   ac_site_file1=$prefix/share/config.site
2925   ac_site_file2=$prefix/etc/config.site
2926 else
2927   ac_site_file1=$ac_default_prefix/share/config.site
2928   ac_site_file2=$ac_default_prefix/etc/config.site
2929 fi
2930 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2931 do
2932   test "x$ac_site_file" = xNONE && continue
2933   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2934     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2935 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2936     sed 's/^/| /' "$ac_site_file" >&5
2937     . "$ac_site_file" \
2938       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2940 as_fn_error $? "failed to load site script $ac_site_file
2941 See \`config.log' for more details" "$LINENO" 5; }
2942   fi
2943 done
2944
2945 if test -r "$cache_file"; then
2946   # Some versions of bash will fail to source /dev/null (special files
2947   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2948   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2949     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2950 $as_echo "$as_me: loading cache $cache_file" >&6;}
2951     case $cache_file in
2952       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2953       *)                      . "./$cache_file";;
2954     esac
2955   fi
2956 else
2957   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2958 $as_echo "$as_me: creating cache $cache_file" >&6;}
2959   >$cache_file
2960 fi
2961
2962 # Check that the precious variables saved in the cache have kept the same
2963 # value.
2964 ac_cache_corrupted=false
2965 for ac_var in $ac_precious_vars; do
2966   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2967   eval ac_new_set=\$ac_env_${ac_var}_set
2968   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2969   eval ac_new_val=\$ac_env_${ac_var}_value
2970   case $ac_old_set,$ac_new_set in
2971     set,)
2972       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2973 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2974       ac_cache_corrupted=: ;;
2975     ,set)
2976       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2977 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2978       ac_cache_corrupted=: ;;
2979     ,);;
2980     *)
2981       if test "x$ac_old_val" != "x$ac_new_val"; then
2982         # differences in whitespace do not lead to failure.
2983         ac_old_val_w=`echo x $ac_old_val`
2984         ac_new_val_w=`echo x $ac_new_val`
2985         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2986           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2987 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2988           ac_cache_corrupted=:
2989         else
2990           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2991 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2992           eval $ac_var=\$ac_old_val
2993         fi
2994         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2995 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2996         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2997 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2998       fi;;
2999   esac
3000   # Pass precious variables to config.status.
3001   if test "$ac_new_set" = set; then
3002     case $ac_new_val in
3003     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3004     *) ac_arg=$ac_var=$ac_new_val ;;
3005     esac
3006     case " $ac_configure_args " in
3007       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3008       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3009     esac
3010   fi
3011 done
3012 if $ac_cache_corrupted; then
3013   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3016 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3017   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3018 fi
3019 ## -------------------- ##
3020 ## Main body of script. ##
3021 ## -------------------- ##
3022
3023 ac_ext=c
3024 ac_cpp='$CPP $CPPFLAGS'
3025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3028
3029
3030
3031
3032
3033
3034
3035 # using curl-override.m4
3036
3037
3038
3039
3040
3041 ac_config_headers="$ac_config_headers lib/curl_config.h include/curl/curlbuild.h"
3042
3043
3044
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3046 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3047     # Check whether --enable-maintainer-mode was given.
3048 if test "${enable_maintainer_mode+set}" = set; then :
3049   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3050 else
3051   USE_MAINTAINER_MODE=no
3052 fi
3053
3054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3055 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3056    if test $USE_MAINTAINER_MODE = yes; then
3057   MAINTAINER_MODE_TRUE=
3058   MAINTAINER_MODE_FALSE='#'
3059 else
3060   MAINTAINER_MODE_TRUE='#'
3061   MAINTAINER_MODE_FALSE=
3062 fi
3063
3064   MAINT=$MAINTAINER_MODE_TRUE
3065
3066
3067
3068
3069         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3070 $as_echo_n "checking whether to enable debug build options... " >&6; }
3071   OPT_DEBUG_BUILD="default"
3072   # Check whether --enable-debug was given.
3073 if test "${enable_debug+set}" = set; then :
3074   enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3075 fi
3076
3077   case "$OPT_DEBUG_BUILD" in
3078     no)
3079             want_debug="no"
3080       ;;
3081     default)
3082             want_debug="no"
3083       ;;
3084     *)
3085             want_debug="yes"
3086       ;;
3087   esac
3088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3089 $as_echo "$want_debug" >&6; }
3090
3091
3092       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3093 $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3094   OPT_COMPILER_OPTIMIZE="default"
3095   # Check whether --enable-optimize was given.
3096 if test "${enable_optimize+set}" = set; then :
3097   enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3098 fi
3099
3100   case "$OPT_COMPILER_OPTIMIZE" in
3101     no)
3102                               want_optimize="no"
3103       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3105       ;;
3106     default)
3107                                                                         if test "$want_debug" = "yes"; then
3108         want_optimize="assume_no"
3109         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3110 $as_echo "(assumed) no" >&6; }
3111       else
3112         want_optimize="assume_yes"
3113         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3114 $as_echo "(assumed) yes" >&6; }
3115       fi
3116       ;;
3117     *)
3118                               want_optimize="yes"
3119       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3120 $as_echo "yes" >&6; }
3121       ;;
3122   esac
3123
3124
3125         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3126 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3127   OPT_COMPILER_WARNINGS="default"
3128   # Check whether --enable-warnings was given.
3129 if test "${enable_warnings+set}" = set; then :
3130   enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3131 fi
3132
3133   case "$OPT_COMPILER_WARNINGS" in
3134     no)
3135             want_warnings="no"
3136       ;;
3137     default)
3138                   want_warnings="$want_debug"
3139       ;;
3140     *)
3141             want_warnings="yes"
3142       ;;
3143   esac
3144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3145 $as_echo "$want_warnings" >&6; }
3146
3147
3148     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3149 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3150   OPT_COMPILER_WERROR="default"
3151   # Check whether --enable-werror was given.
3152 if test "${enable_werror+set}" = set; then :
3153   enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3154 fi
3155
3156   case "$OPT_COMPILER_WERROR" in
3157     no)
3158             want_werror="no"
3159       ;;
3160     default)
3161             want_werror="no"
3162       ;;
3163     *)
3164             want_werror="yes"
3165       ;;
3166   esac
3167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3168 $as_echo "$want_werror" >&6; }
3169
3170
3171     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3172 $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3173   OPT_CURLDEBUG_BUILD="default"
3174   # Check whether --enable-curldebug was given.
3175 if test "${enable_curldebug+set}" = set; then :
3176   enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3177 fi
3178
3179   case "$OPT_CURLDEBUG_BUILD" in
3180     no)
3181             want_curldebug="no"
3182       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3184       ;;
3185     default)
3186                                           if test "$want_debug" = "yes"; then
3187         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3188 $as_echo "(assumed) yes" >&6; }
3189       else
3190         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3192       fi
3193       want_curldebug_assumed="yes"
3194       want_curldebug="$want_debug"
3195       ;;
3196     *)
3197                                                       want_curldebug="yes"
3198       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3199 $as_echo "yes" >&6; }
3200       ;;
3201   esac
3202
3203
3204     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3205 $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3206   OPT_SYMBOL_HIDING="default"
3207   # Check whether --enable-symbol-hiding was given.
3208 if test "${enable_symbol_hiding+set}" = set; then :
3209   enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3210 fi
3211
3212   # Check whether --enable-hidden-symbols was given.
3213 if test "${enable_hidden_symbols+set}" = set; then :
3214   enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3215 fi
3216
3217   case "$OPT_SYMBOL_HIDING" in
3218     no)
3219                               want_symbol_hiding="no"
3220       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221 $as_echo "no" >&6; }
3222       ;;
3223     default)
3224                   want_symbol_hiding="yes"
3225       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3226 $as_echo "yes" >&6; }
3227       ;;
3228     *)
3229                         want_symbol_hiding="yes"
3230       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3231 $as_echo "yes" >&6; }
3232       ;;
3233   esac
3234
3235
3236     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3237 $as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3238   OPT_ARES="default"
3239   # Check whether --enable-ares was given.
3240 if test "${enable_ares+set}" = set; then :
3241   enableval=$enable_ares; OPT_ARES=$enableval
3242 fi
3243
3244   case "$OPT_ARES" in
3245     no)
3246             want_ares="no"
3247       ;;
3248     default)
3249             want_ares="no"
3250       ;;
3251     *)
3252             want_ares="yes"
3253       if test -n "$enableval" && test "$enableval" != "yes"; then
3254         want_ares_path="$enableval"
3255       fi
3256       ;;
3257   esac
3258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3259 $as_echo "$want_ares" >&6; }
3260
3261
3262 #
3263 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3264 #
3265
3266 if test -z "$xc_configure_preamble_result"; then
3267   as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3268 fi
3269
3270 #
3271 # Check that 'PATH_SEPARATOR' has already been set.
3272 #
3273
3274 if test -z "$xc_PATH_SEPARATOR"; then
3275   as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3276 fi
3277 if test -z "$PATH_SEPARATOR"; then
3278   as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3279 fi
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3281 $as_echo_n "checking for path separator... " >&6; }
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3283 $as_echo "$PATH_SEPARATOR" >&6; }
3284 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3286 $as_echo_n "checking for initial path separator... " >&6; }
3287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3288 $as_echo "$xc_PATH_SEPARATOR" >&6; }
3289   as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3290 fi
3291
3292
3293 #
3294 # save the configure arguments
3295 #
3296 CONFIGURE_OPTIONS="\"$ac_configure_args\""
3297
3298
3299 CURL_CFLAG_EXTRAS=""
3300 if test X"$want_werror" = Xyes; then
3301   CURL_CFLAG_EXTRAS="-Werror"
3302 fi
3303
3304
3305 if test -z "$SED"; then
3306     # Extract the first word of "sed", so it can be a program name with args.
3307 set dummy sed; ac_word=$2
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3309 $as_echo_n "checking for $ac_word... " >&6; }
3310 if ${ac_cv_path_SED+:} false; then :
3311   $as_echo_n "(cached) " >&6
3312 else
3313   case $SED in
3314   [\\/]* | ?:[\\/]*)
3315   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3316   ;;
3317   *)
3318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3320 for as_dir in $as_dummy
3321 do
3322   IFS=$as_save_IFS
3323   test -z "$as_dir" && as_dir=.
3324     for ac_exec_ext in '' $ac_executable_extensions; do
3325   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3326     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328     break 2
3329   fi
3330 done
3331   done
3332 IFS=$as_save_IFS
3333
3334   test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3335   ;;
3336 esac
3337 fi
3338 SED=$ac_cv_path_SED
3339 if test -n "$SED"; then
3340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3341 $as_echo "$SED" >&6; }
3342 else
3343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3345 fi
3346
3347
3348   if test -z "$SED" || test "$SED" = "not_found"; then
3349     as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3350   fi
3351 fi
3352
3353
3354 if test -z "$GREP"; then
3355     # Extract the first word of "grep", so it can be a program name with args.
3356 set dummy grep; ac_word=$2
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358 $as_echo_n "checking for $ac_word... " >&6; }
3359 if ${ac_cv_path_GREP+:} false; then :
3360   $as_echo_n "(cached) " >&6
3361 else
3362   case $GREP in
3363   [\\/]* | ?:[\\/]*)
3364   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3365   ;;
3366   *)
3367   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3369 for as_dir in $as_dummy
3370 do
3371   IFS=$as_save_IFS
3372   test -z "$as_dir" && as_dir=.
3373     for ac_exec_ext in '' $ac_executable_extensions; do
3374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3375     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3377     break 2
3378   fi
3379 done
3380   done
3381 IFS=$as_save_IFS
3382
3383   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3384   ;;
3385 esac
3386 fi
3387 GREP=$ac_cv_path_GREP
3388 if test -n "$GREP"; then
3389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3390 $as_echo "$GREP" >&6; }
3391 else
3392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3394 fi
3395
3396
3397   if test -z "$GREP" || test "$GREP" = "not_found"; then
3398     as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3399   fi
3400 fi
3401
3402
3403 if test -z "$EGREP"; then
3404     if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3405     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3406 $as_echo_n "checking for egrep... " >&6; }
3407     EGREP="$GREP -E"
3408     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3409 $as_echo "$EGREP" >&6; }
3410   else
3411     # Extract the first word of "egrep", so it can be a program name with args.
3412 set dummy egrep; ac_word=$2
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 $as_echo_n "checking for $ac_word... " >&6; }
3415 if ${ac_cv_path_EGREP+:} false; then :
3416   $as_echo_n "(cached) " >&6
3417 else
3418   case $EGREP in
3419   [\\/]* | ?:[\\/]*)
3420   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3421   ;;
3422   *)
3423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3425 for as_dir in $as_dummy
3426 do
3427   IFS=$as_save_IFS
3428   test -z "$as_dir" && as_dir=.
3429     for ac_exec_ext in '' $ac_executable_extensions; do
3430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3431     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3433     break 2
3434   fi
3435 done
3436   done
3437 IFS=$as_save_IFS
3438
3439   test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3440   ;;
3441 esac
3442 fi
3443 EGREP=$ac_cv_path_EGREP
3444 if test -n "$EGREP"; then
3445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3446 $as_echo "$EGREP" >&6; }
3447 else
3448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449 $as_echo "no" >&6; }
3450 fi
3451
3452
3453   fi
3454 fi
3455 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3456   as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3457 fi
3458
3459
3460 if test -z "$AR"; then
3461     if test -n "$ac_tool_prefix"; then
3462   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3463 set dummy ${ac_tool_prefix}ar; ac_word=$2
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465 $as_echo_n "checking for $ac_word... " >&6; }
3466 if ${ac_cv_path_AR+:} false; then :
3467   $as_echo_n "(cached) " >&6
3468 else
3469   case $AR in
3470   [\\/]* | ?:[\\/]*)
3471   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3472   ;;
3473   *)
3474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3476 for as_dir in $as_dummy
3477 do
3478   IFS=$as_save_IFS
3479   test -z "$as_dir" && as_dir=.
3480     for ac_exec_ext in '' $ac_executable_extensions; do
3481   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3482     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3484     break 2
3485   fi
3486 done
3487   done
3488 IFS=$as_save_IFS
3489
3490   ;;
3491 esac
3492 fi
3493 AR=$ac_cv_path_AR
3494 if test -n "$AR"; then
3495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3496 $as_echo "$AR" >&6; }
3497 else
3498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3499 $as_echo "no" >&6; }
3500 fi
3501
3502
3503 fi
3504 if test -z "$ac_cv_path_AR"; then
3505   ac_pt_AR=$AR
3506   # Extract the first word of "ar", so it can be a program name with args.
3507 set dummy ar; ac_word=$2
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509 $as_echo_n "checking for $ac_word... " >&6; }
3510 if ${ac_cv_path_ac_pt_AR+:} false; then :
3511   $as_echo_n "(cached) " >&6
3512 else
3513   case $ac_pt_AR in
3514   [\\/]* | ?:[\\/]*)
3515   ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3516   ;;
3517   *)
3518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3520 for as_dir in $as_dummy
3521 do
3522   IFS=$as_save_IFS
3523   test -z "$as_dir" && as_dir=.
3524     for ac_exec_ext in '' $ac_executable_extensions; do
3525   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3526     ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3528     break 2
3529   fi
3530 done
3531   done
3532 IFS=$as_save_IFS
3533
3534   ;;
3535 esac
3536 fi
3537 ac_pt_AR=$ac_cv_path_ac_pt_AR
3538 if test -n "$ac_pt_AR"; then
3539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3540 $as_echo "$ac_pt_AR" >&6; }
3541 else
3542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543 $as_echo "no" >&6; }
3544 fi
3545
3546   if test "x$ac_pt_AR" = x; then
3547     AR="not_found"
3548   else
3549     case $cross_compiling:$ac_tool_warned in
3550 yes:)
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3553 ac_tool_warned=yes ;;
3554 esac
3555     AR=$ac_pt_AR
3556   fi
3557 else
3558   AR="$ac_cv_path_AR"
3559 fi
3560
3561   if test -z "$AR" || test "$AR" = "not_found"; then
3562     as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3563   fi
3564 fi
3565
3566
3567
3568
3569 if test -f ${srcdir}/include/curl/curlbuild.h; then
3570   rm -f ${srcdir}/include/curl/curlbuild.h
3571 fi
3572
3573 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h`
3574
3575   xc_prog_cc_prev_IFS=$IFS
3576   xc_prog_cc_prev_LIBS=$LIBS
3577   xc_prog_cc_prev_CFLAGS=$CFLAGS
3578   xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3579   xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3580
3581
3582
3583   xc_bad_var_libs=no
3584   for xc_word in $LIBS; do
3585     case "$xc_word" in
3586       -l* | --library=*)
3587         :
3588         ;;
3589       *)
3590         xc_bad_var_libs=yes
3591         ;;
3592     esac
3593   done
3594   if test $xc_bad_var_libs = yes; then
3595     { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3596 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
3597     { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3598 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3599   fi
3600
3601
3602   xc_bad_var_ldflags=no
3603   for xc_word in $LDFLAGS; do
3604     case "$xc_word" in
3605       -D*)
3606         xc_bad_var_ldflags=yes
3607         ;;
3608       -U*)
3609         xc_bad_var_ldflags=yes
3610         ;;
3611       -I*)
3612         xc_bad_var_ldflags=yes
3613         ;;
3614       -l* | --library=*)
3615         xc_bad_var_ldflags=yes
3616         ;;
3617     esac
3618   done
3619   if test $xc_bad_var_ldflags = yes; then
3620     { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3621 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3622     xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3623     for xc_word in $LDFLAGS; do
3624       case "$xc_word" in
3625         -D*)
3626           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3627 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3628           ;;
3629         -U*)
3630           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3631 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3632           ;;
3633         -I*)
3634           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3635 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3636           ;;
3637         -l* | --library=*)
3638           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3639 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3640           ;;
3641       esac
3642     done
3643   fi
3644
3645
3646   xc_bad_var_cppflags=no
3647   for xc_word in $CPPFLAGS; do
3648     case "$xc_word" in
3649       -rpath*)
3650         xc_bad_var_cppflags=yes
3651         ;;
3652       -L* | --library-path=*)
3653         xc_bad_var_cppflags=yes
3654         ;;
3655       -l* | --library=*)
3656         xc_bad_var_cppflags=yes
3657         ;;
3658     esac
3659   done
3660   if test $xc_bad_var_cppflags = yes; then
3661     { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3662 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3663     xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3664     for xc_word in $CPPFLAGS; do
3665       case "$xc_word" in
3666         -rpath*)
3667           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3668 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3669           ;;
3670         -L* | --library-path=*)
3671           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3672 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3673           ;;
3674         -l* | --library=*)
3675           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3676 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3677           ;;
3678       esac
3679     done
3680   fi
3681
3682
3683   xc_bad_var_cflags=no
3684   for xc_word in $CFLAGS; do
3685     case "$xc_word" in
3686       -D*)
3687         xc_bad_var_cflags=yes
3688         ;;
3689       -U*)
3690         xc_bad_var_cflags=yes
3691         ;;
3692       -I*)
3693         xc_bad_var_cflags=yes
3694         ;;
3695       -rpath*)
3696         xc_bad_var_cflags=yes
3697         ;;
3698       -L* | --library-path=*)
3699         xc_bad_var_cflags=yes
3700         ;;
3701       -l* | --library=*)
3702         xc_bad_var_cflags=yes
3703         ;;
3704     esac
3705   done
3706   if test $xc_bad_var_cflags = yes; then
3707     { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3708 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3709     xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3710     for xc_word in $CFLAGS; do
3711       case "$xc_word" in
3712         -D*)
3713           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3714 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3715           ;;
3716         -U*)
3717           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3718 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3719           ;;
3720         -I*)
3721           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3722 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3723           ;;
3724         -rpath*)
3725           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3726 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3727           ;;
3728         -L* | --library-path=*)
3729           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3730 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3731           ;;
3732         -l* | --library=*)
3733           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3734 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3735           ;;
3736       esac
3737     done
3738   fi
3739
3740   if test $xc_bad_var_libs = yes ||
3741      test $xc_bad_var_cflags = yes ||
3742      test $xc_bad_var_ldflags = yes ||
3743      test $xc_bad_var_cppflags = yes; then
3744      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3745 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3746   fi
3747
3748 ac_aux_dir=
3749 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3750   if test -f "$ac_dir/install-sh"; then
3751     ac_aux_dir=$ac_dir
3752     ac_install_sh="$ac_aux_dir/install-sh -c"
3753     break
3754   elif test -f "$ac_dir/install.sh"; then
3755     ac_aux_dir=$ac_dir
3756     ac_install_sh="$ac_aux_dir/install.sh -c"
3757     break
3758   elif test -f "$ac_dir/shtool"; then
3759     ac_aux_dir=$ac_dir
3760     ac_install_sh="$ac_aux_dir/shtool install -c"
3761     break
3762   fi
3763 done
3764 if test -z "$ac_aux_dir"; then
3765   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3766 fi
3767
3768 # These three variables are undocumented and unsupported,
3769 # and are intended to be withdrawn in a future Autoconf release.
3770 # They can cause serious problems if a builder's source tree is in a directory
3771 # whose full name contains unusual characters.
3772 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3773 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3774 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3775
3776
3777 # Find a good install program.  We prefer a C program (faster),
3778 # so one script is as good as another.  But avoid the broken or
3779 # incompatible versions:
3780 # SysV /etc/install, /usr/sbin/install
3781 # SunOS /usr/etc/install
3782 # IRIX /sbin/install
3783 # AIX /bin/install
3784 # AmigaOS /C/install, which installs bootblocks on floppy discs
3785 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3786 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3787 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3788 # OS/2's system install, which has a completely different semantic
3789 # ./install, which can be erroneously created by make from ./install.sh.
3790 # Reject install programs that cannot install multiple files.
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3792 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3793 if test -z "$INSTALL"; then
3794 if ${ac_cv_path_install+:} false; then :
3795   $as_echo_n "(cached) " >&6
3796 else
3797   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3799 do
3800   IFS=$as_save_IFS
3801   test -z "$as_dir" && as_dir=.
3802     # Account for people who put trailing slashes in PATH elements.
3803 case $as_dir/ in #((
3804   ./ | .// | /[cC]/* | \
3805   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3806   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3807   /usr/ucb/* ) ;;
3808   *)
3809     # OSF1 and SCO ODT 3.0 have their own names for install.
3810     # Don't use installbsd from OSF since it installs stuff as root
3811     # by default.
3812     for ac_prog in ginstall scoinst install; do
3813       for ac_exec_ext in '' $ac_executable_extensions; do
3814         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3815           if test $ac_prog = install &&
3816             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3817             # AIX install.  It has an incompatible calling convention.
3818             :
3819           elif test $ac_prog = install &&
3820             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3821             # program-specific install script used by HP pwplus--don't use.
3822             :
3823           else
3824             rm -rf conftest.one conftest.two conftest.dir
3825             echo one > conftest.one
3826             echo two > conftest.two
3827             mkdir conftest.dir
3828             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3829               test -s conftest.one && test -s conftest.two &&
3830               test -s conftest.dir/conftest.one &&
3831               test -s conftest.dir/conftest.two
3832             then
3833               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3834               break 3
3835             fi
3836           fi
3837         fi
3838       done
3839     done
3840     ;;
3841 esac
3842
3843   done
3844 IFS=$as_save_IFS
3845
3846 rm -rf conftest.one conftest.two conftest.dir
3847
3848 fi
3849   if test "${ac_cv_path_install+set}" = set; then
3850     INSTALL=$ac_cv_path_install
3851   else
3852     # As a last resort, use the slow shell script.  Don't cache a
3853     # value for INSTALL within a source directory, because that will
3854     # break other packages using the cache if that directory is
3855     # removed, or if the value is a relative name.
3856     INSTALL=$ac_install_sh
3857   fi
3858 fi
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3860 $as_echo "$INSTALL" >&6; }
3861
3862 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3863 # It thinks the first close brace ends the variable substitution.
3864 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3865
3866 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3867
3868 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3869
3870 # Expand $ac_aux_dir to an absolute path.
3871 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3872
3873 ac_ext=c
3874 ac_cpp='$CPP $CPPFLAGS'
3875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878 if test -n "$ac_tool_prefix"; then
3879   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3880 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3882 $as_echo_n "checking for $ac_word... " >&6; }
3883 if ${ac_cv_prog_CC+:} false; then :
3884   $as_echo_n "(cached) " >&6
3885 else
3886   if test -n "$CC"; then
3887   ac_cv_prog_CC="$CC" # Let the user override the test.
3888 else
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 for as_dir in $PATH
3891 do
3892   IFS=$as_save_IFS
3893   test -z "$as_dir" && as_dir=.
3894     for ac_exec_ext in '' $ac_executable_extensions; do
3895   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3898     break 2
3899   fi
3900 done
3901   done
3902 IFS=$as_save_IFS
3903
3904 fi
3905 fi
3906 CC=$ac_cv_prog_CC
3907 if test -n "$CC"; then
3908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3909 $as_echo "$CC" >&6; }
3910 else
3911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3912 $as_echo "no" >&6; }
3913 fi
3914
3915
3916 fi
3917 if test -z "$ac_cv_prog_CC"; then
3918   ac_ct_CC=$CC
3919   # Extract the first word of "gcc", so it can be a program name with args.
3920 set dummy gcc; ac_word=$2
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3922 $as_echo_n "checking for $ac_word... " >&6; }
3923 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3924   $as_echo_n "(cached) " >&6
3925 else
3926   if test -n "$ac_ct_CC"; then
3927   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3928 else
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH
3931 do
3932   IFS=$as_save_IFS
3933   test -z "$as_dir" && as_dir=.
3934     for ac_exec_ext in '' $ac_executable_extensions; do
3935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936     ac_cv_prog_ac_ct_CC="gcc"
3937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3938     break 2
3939   fi
3940 done
3941   done
3942 IFS=$as_save_IFS
3943
3944 fi
3945 fi
3946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3947 if test -n "$ac_ct_CC"; then
3948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3949 $as_echo "$ac_ct_CC" >&6; }
3950 else
3951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3952 $as_echo "no" >&6; }
3953 fi
3954
3955   if test "x$ac_ct_CC" = x; then
3956     CC=""
3957   else
3958     case $cross_compiling:$ac_tool_warned in
3959 yes:)
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3962 ac_tool_warned=yes ;;
3963 esac
3964     CC=$ac_ct_CC
3965   fi
3966 else
3967   CC="$ac_cv_prog_CC"
3968 fi
3969
3970 if test -z "$CC"; then
3971           if test -n "$ac_tool_prefix"; then
3972     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3973 set dummy ${ac_tool_prefix}cc; ac_word=$2
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3975 $as_echo_n "checking for $ac_word... " >&6; }
3976 if ${ac_cv_prog_CC+:} false; then :
3977   $as_echo_n "(cached) " >&6
3978 else
3979   if test -n "$CC"; then
3980   ac_cv_prog_CC="$CC" # Let the user override the test.
3981 else
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH
3984 do
3985   IFS=$as_save_IFS
3986   test -z "$as_dir" && as_dir=.
3987     for ac_exec_ext in '' $ac_executable_extensions; do
3988   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3989     ac_cv_prog_CC="${ac_tool_prefix}cc"
3990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3991     break 2
3992   fi
3993 done
3994   done
3995 IFS=$as_save_IFS
3996
3997 fi
3998 fi
3999 CC=$ac_cv_prog_CC
4000 if test -n "$CC"; then
4001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4002 $as_echo "$CC" >&6; }
4003 else
4004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4005 $as_echo "no" >&6; }
4006 fi
4007
4008
4009   fi
4010 fi
4011 if test -z "$CC"; then
4012   # Extract the first word of "cc", so it can be a program name with args.
4013 set dummy cc; ac_word=$2
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4015 $as_echo_n "checking for $ac_word... " >&6; }
4016 if ${ac_cv_prog_CC+:} false; then :
4017   $as_echo_n "(cached) " >&6
4018 else
4019   if test -n "$CC"; then
4020   ac_cv_prog_CC="$CC" # Let the user override the test.
4021 else
4022   ac_prog_rejected=no
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH
4025 do
4026   IFS=$as_save_IFS
4027   test -z "$as_dir" && as_dir=.
4028     for ac_exec_ext in '' $ac_executable_extensions; do
4029   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4030     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4031        ac_prog_rejected=yes
4032        continue
4033      fi
4034     ac_cv_prog_CC="cc"
4035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4036     break 2
4037   fi
4038 done
4039   done
4040 IFS=$as_save_IFS
4041
4042 if test $ac_prog_rejected = yes; then
4043   # We found a bogon in the path, so make sure we never use it.
4044   set dummy $ac_cv_prog_CC
4045   shift
4046   if test $# != 0; then
4047     # We chose a different compiler from the bogus one.
4048     # However, it has the same basename, so the bogon will be chosen
4049     # first if we set CC to just the basename; use the full file name.
4050     shift
4051     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4052   fi
4053 fi
4054 fi
4055 fi
4056 CC=$ac_cv_prog_CC
4057 if test -n "$CC"; then
4058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4059 $as_echo "$CC" >&6; }
4060 else
4061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062 $as_echo "no" >&6; }
4063 fi
4064
4065
4066 fi
4067 if test -z "$CC"; then
4068   if test -n "$ac_tool_prefix"; then
4069   for ac_prog in cl.exe
4070   do
4071     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4072 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4074 $as_echo_n "checking for $ac_word... " >&6; }
4075 if ${ac_cv_prog_CC+:} false; then :
4076   $as_echo_n "(cached) " >&6
4077 else
4078   if test -n "$CC"; then
4079   ac_cv_prog_CC="$CC" # Let the user override the test.
4080 else
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH
4083 do
4084   IFS=$as_save_IFS
4085   test -z "$as_dir" && as_dir=.
4086     for ac_exec_ext in '' $ac_executable_extensions; do
4087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4088     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4090     break 2
4091   fi
4092 done
4093   done
4094 IFS=$as_save_IFS
4095
4096 fi
4097 fi
4098 CC=$ac_cv_prog_CC
4099 if test -n "$CC"; then
4100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4101 $as_echo "$CC" >&6; }
4102 else
4103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4104 $as_echo "no" >&6; }
4105 fi
4106
4107
4108     test -n "$CC" && break
4109   done
4110 fi
4111 if test -z "$CC"; then
4112   ac_ct_CC=$CC
4113   for ac_prog in cl.exe
4114 do
4115   # Extract the first word of "$ac_prog", so it can be a program name with args.
4116 set dummy $ac_prog; ac_word=$2
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4118 $as_echo_n "checking for $ac_word... " >&6; }
4119 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4120   $as_echo_n "(cached) " >&6
4121 else
4122   if test -n "$ac_ct_CC"; then
4123   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4124 else
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in $PATH
4127 do
4128   IFS=$as_save_IFS
4129   test -z "$as_dir" && as_dir=.
4130     for ac_exec_ext in '' $ac_executable_extensions; do
4131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132     ac_cv_prog_ac_ct_CC="$ac_prog"
4133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4134     break 2
4135   fi
4136 done
4137   done
4138 IFS=$as_save_IFS
4139
4140 fi
4141 fi
4142 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4143 if test -n "$ac_ct_CC"; then
4144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4145 $as_echo "$ac_ct_CC" >&6; }
4146 else
4147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148 $as_echo "no" >&6; }
4149 fi
4150
4151
4152   test -n "$ac_ct_CC" && break
4153 done
4154
4155   if test "x$ac_ct_CC" = x; then
4156     CC=""
4157   else
4158     case $cross_compiling:$ac_tool_warned in
4159 yes:)
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4162 ac_tool_warned=yes ;;
4163 esac
4164     CC=$ac_ct_CC
4165   fi
4166 fi
4167
4168 fi
4169
4170
4171 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4173 as_fn_error $? "no acceptable C compiler found in \$PATH
4174 See \`config.log' for more details" "$LINENO" 5; }
4175
4176 # Provide some information about the compiler.
4177 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4178 set X $ac_compile
4179 ac_compiler=$2
4180 for ac_option in --version -v -V -qversion; do
4181   { { ac_try="$ac_compiler $ac_option >&5"
4182 case "(($ac_try" in
4183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184   *) ac_try_echo=$ac_try;;
4185 esac
4186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4187 $as_echo "$ac_try_echo"; } >&5
4188   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4189   ac_status=$?
4190   if test -s conftest.err; then
4191     sed '10a\
4192 ... rest of stderr output deleted ...
4193          10q' conftest.err >conftest.er1
4194     cat conftest.er1 >&5
4195   fi
4196   rm -f conftest.er1 conftest.err
4197   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4198   test $ac_status = 0; }
4199 done
4200
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h.  */
4203
4204 int main (void)
4205 {
4206
4207  ;
4208  return 0;
4209 }
4210 _ACEOF
4211 ac_clean_files_save=$ac_clean_files
4212 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4213 # Try to create an executable without -o first, disregard a.out.
4214 # It will help us diagnose broken compilers, and finding out an intuition
4215 # of exeext.
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4217 $as_echo_n "checking whether the C compiler works... " >&6; }
4218 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4219
4220 # The possible output files:
4221 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4222
4223 ac_rmfiles=
4224 for ac_file in $ac_files
4225 do
4226   case $ac_file in
4227     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4228     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4229   esac
4230 done
4231 rm -f $ac_rmfiles
4232
4233 if { { ac_try="$ac_link_default"
4234 case "(($ac_try" in
4235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236   *) ac_try_echo=$ac_try;;
4237 esac
4238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4239 $as_echo "$ac_try_echo"; } >&5
4240   (eval "$ac_link_default") 2>&5
4241   ac_status=$?
4242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4243   test $ac_status = 0; }; then :
4244   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4245 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4246 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4247 # so that the user can short-circuit this test for compilers unknown to
4248 # Autoconf.
4249 for ac_file in $ac_files ''
4250 do
4251   test -f "$ac_file" || continue
4252   case $ac_file in
4253     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4254         ;;
4255     [ab].out )
4256         # We found the default executable, but exeext='' is most
4257         # certainly right.
4258         break;;
4259     *.* )
4260         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4261         then :; else
4262            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4263         fi
4264         # We set ac_cv_exeext here because the later test for it is not
4265         # safe: cross compilers may not add the suffix if given an `-o'
4266         # argument, so we may need to know it at that point already.
4267         # Even if this section looks crufty: it has the advantage of
4268         # actually working.
4269         break;;
4270     * )
4271         break;;
4272   esac
4273 done
4274 test "$ac_cv_exeext" = no && ac_cv_exeext=
4275
4276 else
4277   ac_file=''
4278 fi
4279 if test -z "$ac_file"; then :
4280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4281 $as_echo "no" >&6; }
4282 $as_echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4284
4285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4287 as_fn_error 77 "C compiler cannot create executables
4288 See \`config.log' for more details" "$LINENO" 5; }
4289 else
4290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4291 $as_echo "yes" >&6; }
4292 fi
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4294 $as_echo_n "checking for C compiler default output file name... " >&6; }
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4296 $as_echo "$ac_file" >&6; }
4297 ac_exeext=$ac_cv_exeext
4298
4299 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4300 ac_clean_files=$ac_clean_files_save
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4302 $as_echo_n "checking for suffix of executables... " >&6; }
4303 if { { ac_try="$ac_link"
4304 case "(($ac_try" in
4305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306   *) ac_try_echo=$ac_try;;
4307 esac
4308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4309 $as_echo "$ac_try_echo"; } >&5
4310   (eval "$ac_link") 2>&5
4311   ac_status=$?
4312   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4313   test $ac_status = 0; }; then :
4314   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4315 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4316 # work properly (i.e., refer to `conftest.exe'), while it won't with
4317 # `rm'.
4318 for ac_file in conftest.exe conftest conftest.*; do
4319   test -f "$ac_file" || continue
4320   case $ac_file in
4321     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4322     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4323           break;;
4324     * ) break;;
4325   esac
4326 done
4327 else
4328   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4330 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4331 See \`config.log' for more details" "$LINENO" 5; }
4332 fi
4333 rm -f conftest conftest$ac_cv_exeext
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4335 $as_echo "$ac_cv_exeext" >&6; }
4336
4337 rm -f conftest.$ac_ext
4338 EXEEXT=$ac_cv_exeext
4339 ac_exeext=$EXEEXT
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h.  */
4342 #include <stdio.h>
4343 int main (void)
4344 {
4345 FILE *f = fopen ("conftest.out", "w");
4346  return ferror (f) || fclose (f) != 0;
4347
4348  ;
4349  return 0;
4350 }
4351 _ACEOF
4352 ac_clean_files="$ac_clean_files conftest.out"
4353 # Check that the compiler produces executables we can run.  If not, either
4354 # the compiler is broken, or we cross compile.
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4356 $as_echo_n "checking whether we are cross compiling... " >&6; }
4357 if test "$cross_compiling" != yes; then
4358   { { ac_try="$ac_link"
4359 case "(($ac_try" in
4360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361   *) ac_try_echo=$ac_try;;
4362 esac
4363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4364 $as_echo "$ac_try_echo"; } >&5
4365   (eval "$ac_link") 2>&5
4366   ac_status=$?
4367   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4368   test $ac_status = 0; }
4369   if { ac_try='./conftest$ac_cv_exeext'
4370   { { case "(($ac_try" in
4371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372   *) ac_try_echo=$ac_try;;
4373 esac
4374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4375 $as_echo "$ac_try_echo"; } >&5
4376   (eval "$ac_try") 2>&5
4377   ac_status=$?
4378   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4379   test $ac_status = 0; }; }; then
4380     cross_compiling=no
4381   else
4382     if test "$cross_compiling" = maybe; then
4383         cross_compiling=yes
4384     else
4385         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4387 as_fn_error $? "cannot run C compiled programs.
4388 If you meant to cross compile, use \`--host'.
4389 See \`config.log' for more details" "$LINENO" 5; }
4390     fi
4391   fi
4392 fi
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4394 $as_echo "$cross_compiling" >&6; }
4395
4396 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4397 ac_clean_files=$ac_clean_files_save
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4399 $as_echo_n "checking for suffix of object files... " >&6; }
4400 if ${ac_cv_objext+:} false; then :
4401   $as_echo_n "(cached) " >&6
4402 else
4403   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h.  */
4405
4406 int main (void)
4407 {
4408
4409  ;
4410  return 0;
4411 }
4412 _ACEOF
4413 rm -f conftest.o conftest.obj
4414 if { { ac_try="$ac_compile"
4415 case "(($ac_try" in
4416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417   *) ac_try_echo=$ac_try;;
4418 esac
4419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4420 $as_echo "$ac_try_echo"; } >&5
4421   (eval "$ac_compile") 2>&5
4422   ac_status=$?
4423   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4424   test $ac_status = 0; }; then :
4425   for ac_file in conftest.o conftest.obj conftest.*; do
4426   test -f "$ac_file" || continue;
4427   case $ac_file in
4428     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4429     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4430        break;;
4431   esac
4432 done
4433 else
4434   $as_echo "$as_me: failed program was:" >&5
4435 sed 's/^/| /' conftest.$ac_ext >&5
4436
4437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4439 as_fn_error $? "cannot compute suffix of object files: cannot compile
4440 See \`config.log' for more details" "$LINENO" 5; }
4441 fi
4442 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4443 fi
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4445 $as_echo "$ac_cv_objext" >&6; }
4446 OBJEXT=$ac_cv_objext
4447 ac_objext=$OBJEXT
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4449 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4450 if ${ac_cv_c_compiler_gnu+:} false; then :
4451   $as_echo_n "(cached) " >&6
4452 else
4453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h.  */
4455
4456 int main (void)
4457 {
4458 #ifndef __GNUC__
4459        choke me
4460 #endif
4461
4462  ;
4463  return 0;
4464 }
4465 _ACEOF
4466 if ac_fn_c_try_compile "$LINENO"; then :
4467   ac_compiler_gnu=yes
4468 else
4469   ac_compiler_gnu=no
4470 fi
4471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4473
4474 fi
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4476 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4477 if test $ac_compiler_gnu = yes; then
4478   GCC=yes
4479 else
4480   GCC=
4481 fi
4482 ac_test_CFLAGS=${CFLAGS+set}
4483 ac_save_CFLAGS=$CFLAGS
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4485 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4486 if ${ac_cv_prog_cc_g+:} false; then :
4487   $as_echo_n "(cached) " >&6
4488 else
4489   ac_save_c_werror_flag=$ac_c_werror_flag
4490    ac_c_werror_flag=yes
4491    ac_cv_prog_cc_g=no
4492    CFLAGS="-g"
4493    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h.  */
4495
4496 int main (void)
4497 {
4498
4499  ;
4500  return 0;
4501 }
4502 _ACEOF
4503 if ac_fn_c_try_compile "$LINENO"; then :
4504   ac_cv_prog_cc_g=yes
4505 else
4506   CFLAGS=""
4507       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h.  */
4509
4510 int main (void)
4511 {
4512
4513  ;
4514  return 0;
4515 }
4516 _ACEOF
4517 if ac_fn_c_try_compile "$LINENO"; then :
4518
4519 else
4520   ac_c_werror_flag=$ac_save_c_werror_flag
4521          CFLAGS="-g"
4522          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h.  */
4524
4525 int main (void)
4526 {
4527
4528  ;
4529  return 0;
4530 }
4531 _ACEOF
4532 if ac_fn_c_try_compile "$LINENO"; then :
4533   ac_cv_prog_cc_g=yes
4534 fi
4535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536 fi
4537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538 fi
4539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4540    ac_c_werror_flag=$ac_save_c_werror_flag
4541 fi
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4543 $as_echo "$ac_cv_prog_cc_g" >&6; }
4544 if test "$ac_test_CFLAGS" = set; then
4545   CFLAGS=$ac_save_CFLAGS
4546 elif test $ac_cv_prog_cc_g = yes; then
4547   if test "$GCC" = yes; then
4548     CFLAGS="-g -O2"
4549   else
4550     CFLAGS="-g"
4551   fi
4552 else
4553   if test "$GCC" = yes; then
4554     CFLAGS="-O2"
4555   else
4556     CFLAGS=
4557   fi
4558 fi
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4560 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4561 if ${ac_cv_prog_cc_c89+:} false; then :
4562   $as_echo_n "(cached) " >&6
4563 else
4564   ac_cv_prog_cc_c89=no
4565 ac_save_CC=$CC
4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h.  */
4568 #include <stdarg.h>
4569 #include <stdio.h>
4570 struct stat;
4571 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4572 struct buf { int x; };
4573 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4574 static char *e (p, i)
4575      char **p;
4576      int i;
4577 {
4578   return p[i];
4579 }
4580 static char *f (char * (*g) (char **, int), char **p, ...)
4581 {
4582   char *s;
4583   va_list v;
4584   va_start (v,p);
4585   s = g (p, va_arg (v,int));
4586   va_end (v);
4587   return s;
4588 }
4589
4590 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4591    function prototypes and stuff, but not '\xHH' hex character constants.
4592    These don't provoke an error unfortunately, instead are silently treated
4593    as 'x'.  The following induces an error, until -std is added to get
4594    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4595    array size at least.  It's necessary to write '\x00'==0 to get something
4596    that's true only with -std.  */
4597 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4598
4599 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4600    inside strings and character constants.  */
4601 #define FOO(x) 'x'
4602 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4603
4604 int test (int i, double x);
4605 struct s1 {int (*f) (int a);};
4606 struct s2 {int (*f) (double a);};
4607 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4608 int argc;
4609 char **argv;
4610 int main (void)
4611 {
4612 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4613  ;
4614  return 0;
4615 }
4616 _ACEOF
4617 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4618         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4619 do
4620   CC="$ac_save_CC $ac_arg"
4621   if ac_fn_c_try_compile "$LINENO"; then :
4622   ac_cv_prog_cc_c89=$ac_arg
4623 fi
4624 rm -f core conftest.err conftest.$ac_objext
4625   test "x$ac_cv_prog_cc_c89" != "xno" && break
4626 done
4627 rm -f conftest.$ac_ext
4628 CC=$ac_save_CC
4629
4630 fi
4631 # AC_CACHE_VAL
4632 case "x$ac_cv_prog_cc_c89" in
4633   x)
4634     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4635 $as_echo "none needed" >&6; } ;;
4636   xno)
4637     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4638 $as_echo "unsupported" >&6; } ;;
4639   *)
4640     CC="$CC $ac_cv_prog_cc_c89"
4641     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4642 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4643 esac
4644 if test "x$ac_cv_prog_cc_c89" != xno; then :
4645
4646 fi
4647
4648 ac_ext=c
4649 ac_cpp='$CPP $CPPFLAGS'
4650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4653
4654 ac_ext=c
4655 ac_cpp='$CPP $CPPFLAGS'
4656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4660 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4661 if ${am_cv_prog_cc_c_o+:} false; then :
4662   $as_echo_n "(cached) " >&6
4663 else
4664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h.  */
4666
4667 int main (void)
4668 {
4669
4670  ;
4671  return 0;
4672 }
4673 _ACEOF
4674   # Make sure it works both with $CC and with simple cc.
4675   # Following AC_PROG_CC_C_O, we do the test twice because some
4676   # compilers refuse to overwrite an existing .o file with -o,
4677   # though they will create one.
4678   am_cv_prog_cc_c_o=yes
4679   for am_i in 1 2; do
4680     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4681    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4682    ac_status=$?
4683    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684    (exit $ac_status); } \
4685          && test -f conftest2.$ac_objext; then
4686       : OK
4687     else
4688       am_cv_prog_cc_c_o=no
4689       break
4690     fi
4691   done
4692   rm -f core conftest*
4693   unset am_i
4694 fi
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4696 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4697 if test "$am_cv_prog_cc_c_o" != yes; then
4698    # Losing compiler, so override with the script.
4699    # FIXME: It is wrong to rewrite CC.
4700    # But if we don't then we get into trouble of one sort or another.
4701    # A longer-term fix would be to have automake use am__CC in this case,
4702    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4703    CC="$am_aux_dir/compile $CC"
4704 fi
4705 ac_ext=c
4706 ac_cpp='$CPP $CPPFLAGS'
4707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4710
4711
4712
4713 ac_ext=c
4714 ac_cpp='$CPP $CPPFLAGS'
4715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4719 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4720 # On Suns, sometimes $CPP names a directory.
4721 if test -n "$CPP" && test -d "$CPP"; then
4722   CPP=
4723 fi
4724 if test -z "$CPP"; then
4725   if ${ac_cv_prog_CPP+:} false; then :
4726   $as_echo_n "(cached) " >&6
4727 else
4728       # Double quotes because CPP needs to be expanded
4729     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4730     do
4731       ac_preproc_ok=false
4732 for ac_c_preproc_warn_flag in '' yes
4733 do
4734   # Use a header file that comes with gcc, so configuring glibc
4735   # with a fresh cross-compiler works.
4736   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4737   # <limits.h> exists even on freestanding compilers.
4738   # On the NeXT, cc -E runs the code through the compiler's parser,
4739   # not just through cpp. "Syntax error" is here to catch this case.
4740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h.  */
4742 #ifdef __STDC__
4743 # include <limits.h>
4744 #else
4745 # include <assert.h>
4746 #endif
4747                      Syntax error
4748 _ACEOF
4749 if ac_fn_c_try_cpp "$LINENO"; then :
4750
4751 else
4752   # Broken: fails on valid input.
4753 continue
4754 fi
4755 rm -f conftest.err conftest.i conftest.$ac_ext
4756
4757   # OK, works on sane cases.  Now check whether nonexistent headers
4758   # can be detected and how.
4759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h.  */
4761 #include <ac_nonexistent.h>
4762 _ACEOF
4763 if ac_fn_c_try_cpp "$LINENO"; then :
4764   # Broken: success on invalid input.
4765 continue
4766 else
4767   # Passes both tests.
4768 ac_preproc_ok=:
4769 break
4770 fi
4771 rm -f conftest.err conftest.i conftest.$ac_ext
4772
4773 done
4774 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4775 rm -f conftest.i conftest.err conftest.$ac_ext
4776 if $ac_preproc_ok; then :
4777   break
4778 fi
4779
4780     done
4781     ac_cv_prog_CPP=$CPP
4782
4783 fi
4784   CPP=$ac_cv_prog_CPP
4785 else
4786   ac_cv_prog_CPP=$CPP
4787 fi
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4789 $as_echo "$CPP" >&6; }
4790 ac_preproc_ok=false
4791 for ac_c_preproc_warn_flag in '' yes
4792 do
4793   # Use a header file that comes with gcc, so configuring glibc
4794   # with a fresh cross-compiler works.
4795   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4796   # <limits.h> exists even on freestanding compilers.
4797   # On the NeXT, cc -E runs the code through the compiler's parser,
4798   # not just through cpp. "Syntax error" is here to catch this case.
4799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4800 /* end confdefs.h.  */
4801 #ifdef __STDC__
4802 # include <limits.h>
4803 #else
4804 # include <assert.h>
4805 #endif
4806                      Syntax error
4807 _ACEOF
4808 if ac_fn_c_try_cpp "$LINENO"; then :
4809
4810 else
4811   # Broken: fails on valid input.
4812 continue
4813 fi
4814 rm -f conftest.err conftest.i conftest.$ac_ext
4815
4816   # OK, works on sane cases.  Now check whether nonexistent headers
4817   # can be detected and how.
4818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h.  */
4820 #include <ac_nonexistent.h>
4821 _ACEOF
4822 if ac_fn_c_try_cpp "$LINENO"; then :
4823   # Broken: success on invalid input.
4824 continue
4825 else
4826   # Passes both tests.
4827 ac_preproc_ok=:
4828 break
4829 fi
4830 rm -f conftest.err conftest.i conftest.$ac_ext
4831
4832 done
4833 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4834 rm -f conftest.i conftest.err conftest.$ac_ext
4835 if $ac_preproc_ok; then :
4836
4837 else
4838   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4840 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4841 See \`config.log' for more details" "$LINENO" 5; }
4842 fi
4843
4844 ac_ext=c
4845 ac_cpp='$CPP $CPPFLAGS'
4846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4849
4850
4851   IFS=$xc_prog_cc_prev_IFS
4852   LIBS=$xc_prog_cc_prev_LIBS
4853   CFLAGS=$xc_prog_cc_prev_CFLAGS
4854   LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4855   CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
4856
4857
4858
4859
4860
4861 am__api_version='1.14'
4862
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4864 $as_echo_n "checking whether build environment is sane... " >&6; }
4865 # Reject unsafe characters in $srcdir or the absolute working directory
4866 # name.  Accept space and tab only in the latter.
4867 am_lf='
4868 '
4869 case `pwd` in
4870   *[\\\"\#\$\&\'\`$am_lf]*)
4871     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4872 esac
4873 case $srcdir in
4874   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4875     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4876 esac
4877
4878 # Do 'set' in a subshell so we don't clobber the current shell's
4879 # arguments.  Must try -L first in case configure is actually a
4880 # symlink; some systems play weird games with the mod time of symlinks
4881 # (eg FreeBSD returns the mod time of the symlink's containing
4882 # directory).
4883 if (
4884    am_has_slept=no
4885    for am_try in 1 2; do
4886      echo "timestamp, slept: $am_has_slept" > conftest.file
4887      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4888      if test "$*" = "X"; then
4889         # -L didn't work.
4890         set X `ls -t "$srcdir/configure" conftest.file`
4891      fi
4892      if test "$*" != "X $srcdir/configure conftest.file" \
4893         && test "$*" != "X conftest.file $srcdir/configure"; then
4894
4895         # If neither matched, then we have a broken ls.  This can happen
4896         # if, for instance, CONFIG_SHELL is bash and it inherits a
4897         # broken ls alias from the environment.  This has actually
4898         # happened.  Such a system could not be considered "sane".
4899         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4900   alias in your environment" "$LINENO" 5
4901      fi
4902      if test "$2" = conftest.file || test $am_try -eq 2; then
4903        break
4904      fi
4905      # Just in case.
4906      sleep 1
4907      am_has_slept=yes
4908    done
4909    test "$2" = conftest.file
4910    )
4911 then
4912    # Ok.
4913    :
4914 else
4915    as_fn_error $? "newly created file is older than distributed files!
4916 Check your system clock" "$LINENO" 5
4917 fi
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4919 $as_echo "yes" >&6; }
4920 # If we didn't sleep, we still need to ensure time stamps of config.status and
4921 # generated files are strictly newer.
4922 am_sleep_pid=
4923 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4924   ( sleep 1 ) &
4925   am_sleep_pid=$!
4926 fi
4927
4928 rm -f conftest.file
4929
4930 test "$program_prefix" != NONE &&
4931   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4932 # Use a double $ so make ignores it.
4933 test "$program_suffix" != NONE &&
4934   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4935 # Double any \ or $.
4936 # By default was `s,x,x', remove it if useless.
4937 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4938 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4939
4940 test x"${MISSING+set}" = xset || MISSING="\${SHELL} \"$am_aux_dir/missing\""
4941 # Use eval to expand $SHELL
4942 if eval "$MISSING --run true"; then
4943   am_missing_run="$MISSING --run "
4944 else
4945   am_missing_run=
4946   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4947 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4948 fi
4949
4950 if test x"${install_sh}" != xset; then
4951   case $am_aux_dir in
4952   *\ * | *\     *)
4953     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4954   *)
4955     install_sh="\${SHELL} $am_aux_dir/install-sh"
4956   esac
4957 fi
4958
4959 # Installed binaries are usually stripped using 'strip' when the user
4960 # run "make install-strip".  However 'strip' might not be the right
4961 # tool to use in cross-compilation environments, therefore Automake
4962 # will honor the 'STRIP' environment variable to overrule this program.
4963 if test "$cross_compiling" != no; then
4964   if test -n "$ac_tool_prefix"; then
4965   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4966 set dummy ${ac_tool_prefix}strip; ac_word=$2
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4968 $as_echo_n "checking for $ac_word... " >&6; }
4969 if ${ac_cv_prog_STRIP+:} false; then :
4970   $as_echo_n "(cached) " >&6
4971 else
4972   if test -n "$STRIP"; then
4973   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4974 else
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 for as_dir in $PATH
4977 do
4978   IFS=$as_save_IFS
4979   test -z "$as_dir" && as_dir=.
4980     for ac_exec_ext in '' $ac_executable_extensions; do
4981   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4982     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4984     break 2
4985   fi
4986 done
4987   done
4988 IFS=$as_save_IFS
4989
4990 fi
4991 fi
4992 STRIP=$ac_cv_prog_STRIP
4993 if test -n "$STRIP"; then
4994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4995 $as_echo "$STRIP" >&6; }
4996 else
4997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998 $as_echo "no" >&6; }
4999 fi
5000
5001
5002 fi
5003 if test -z "$ac_cv_prog_STRIP"; then
5004   ac_ct_STRIP=$STRIP
5005   # Extract the first word of "strip", so it can be a program name with args.
5006 set dummy strip; ac_word=$2
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008 $as_echo_n "checking for $ac_word... " >&6; }
5009 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5010   $as_echo_n "(cached) " >&6
5011 else
5012   if test -n "$ac_ct_STRIP"; then
5013   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5014 else
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5017 do
5018   IFS=$as_save_IFS
5019   test -z "$as_dir" && as_dir=.
5020     for ac_exec_ext in '' $ac_executable_extensions; do
5021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5022     ac_cv_prog_ac_ct_STRIP="strip"
5023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5024     break 2
5025   fi
5026 done
5027   done
5028 IFS=$as_save_IFS
5029
5030 fi
5031 fi
5032 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5033 if test -n "$ac_ct_STRIP"; then
5034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5035 $as_echo "$ac_ct_STRIP" >&6; }
5036 else
5037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5039 fi
5040
5041   if test "x$ac_ct_STRIP" = x; then
5042     STRIP=":"
5043   else
5044     case $cross_compiling:$ac_tool_warned in
5045 yes:)
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5048 ac_tool_warned=yes ;;
5049 esac
5050     STRIP=$ac_ct_STRIP
5051   fi
5052 else
5053   STRIP="$ac_cv_prog_STRIP"
5054 fi
5055
5056 fi
5057 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5058
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5060 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5061 if test -z "$MKDIR_P"; then
5062   if ${ac_cv_path_mkdir+:} false; then :
5063   $as_echo_n "(cached) " >&6
5064 else
5065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5067 do
5068   IFS=$as_save_IFS
5069   test -z "$as_dir" && as_dir=.
5070     for ac_prog in mkdir gmkdir; do
5071          for ac_exec_ext in '' $ac_executable_extensions; do
5072            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5073            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5074              'mkdir (GNU coreutils) '* | \
5075              'mkdir (coreutils) '* | \
5076              'mkdir (fileutils) '4.1*)
5077                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5078                break 3;;
5079            esac
5080          done
5081        done
5082   done
5083 IFS=$as_save_IFS
5084
5085 fi
5086
5087   test -d ./--version && rmdir ./--version
5088   if test "${ac_cv_path_mkdir+set}" = set; then
5089     MKDIR_P="$ac_cv_path_mkdir -p"
5090   else
5091     # As a last resort, use the slow shell script.  Don't cache a
5092     # value for MKDIR_P within a source directory, because that will
5093     # break other packages using the cache if that directory is
5094     # removed, or if the value is a relative name.
5095     MKDIR_P="$ac_install_sh -d"
5096   fi
5097 fi
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5099 $as_echo "$MKDIR_P" >&6; }
5100
5101 for ac_prog in gawk mawk nawk awk
5102 do
5103   # Extract the first word of "$ac_prog", so it can be a program name with args.
5104 set dummy $ac_prog; ac_word=$2
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106 $as_echo_n "checking for $ac_word... " >&6; }
5107 if ${ac_cv_prog_AWK+:} false; then :
5108   $as_echo_n "(cached) " >&6
5109 else
5110   if test -n "$AWK"; then
5111   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5112 else
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 for as_dir in $PATH
5115 do
5116   IFS=$as_save_IFS
5117   test -z "$as_dir" && as_dir=.
5118     for ac_exec_ext in '' $ac_executable_extensions; do
5119   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5120     ac_cv_prog_AWK="$ac_prog"
5121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5122     break 2
5123   fi
5124 done
5125   done
5126 IFS=$as_save_IFS
5127
5128 fi
5129 fi
5130 AWK=$ac_cv_prog_AWK
5131 if test -n "$AWK"; then
5132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5133 $as_echo "$AWK" >&6; }
5134 else
5135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5137 fi
5138
5139
5140   test -n "$AWK" && break
5141 done
5142
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5144 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5145 set x ${MAKE-make}
5146 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5147 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5148   $as_echo_n "(cached) " >&6
5149 else
5150   cat >conftest.make <<\_ACEOF
5151 SHELL = /bin/sh
5152 all:
5153         @echo '@@@%%%=$(MAKE)=@@@%%%'
5154 _ACEOF
5155 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5156 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5157   *@@@%%%=?*=@@@%%%*)
5158     eval ac_cv_prog_make_${ac_make}_set=yes;;
5159   *)
5160     eval ac_cv_prog_make_${ac_make}_set=no;;
5161 esac
5162 rm -f conftest.make
5163 fi
5164 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5166 $as_echo "yes" >&6; }
5167   SET_MAKE=
5168 else
5169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 $as_echo "no" >&6; }
5171   SET_MAKE="MAKE=${MAKE-make}"
5172 fi
5173
5174 rm -rf .tst 2>/dev/null
5175 mkdir .tst 2>/dev/null
5176 if test -d .tst; then
5177   am__leading_dot=.
5178 else
5179   am__leading_dot=_
5180 fi
5181 rmdir .tst 2>/dev/null
5182
5183 DEPDIR="${am__leading_dot}deps"
5184
5185 ac_config_commands="$ac_config_commands depfiles"
5186
5187
5188 am_make=${MAKE-make}
5189 cat > confinc << 'END'
5190 am__doit:
5191         @echo this is the am__doit target
5192 .PHONY: am__doit
5193 END
5194 # If we don't find an include directive, just comment out the code.
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5196 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5197 am__include="#"
5198 am__quote=
5199 _am_result=none
5200 # First try GNU make style include.
5201 echo "include confinc" > confmf
5202 # Ignore all kinds of additional output from 'make'.
5203 case `$am_make -s -f confmf 2> /dev/null` in #(
5204 *the\ am__doit\ target*)
5205   am__include=include
5206   am__quote=
5207   _am_result=GNU
5208   ;;
5209 esac
5210 # Now try BSD make style include.
5211 if test "$am__include" = "#"; then
5212    echo '.include "confinc"' > confmf
5213    case `$am_make -s -f confmf 2> /dev/null` in #(
5214    *the\ am__doit\ target*)
5215      am__include=.include
5216      am__quote="\""
5217      _am_result=BSD
5218      ;;
5219    esac
5220 fi
5221
5222
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5224 $as_echo "$_am_result" >&6; }
5225 rm -f confinc confmf
5226
5227 # Check whether --enable-dependency-tracking was given.
5228 if test "${enable_dependency_tracking+set}" = set; then :
5229   enableval=$enable_dependency_tracking;
5230 fi
5231
5232 if test "x$enable_dependency_tracking" != xno; then
5233   am_depcomp="$ac_aux_dir/depcomp"
5234   AMDEPBACKSLASH='\'
5235   am__nodep='_no'
5236 fi
5237  if test "x$enable_dependency_tracking" != xno; then
5238   AMDEP_TRUE=
5239   AMDEP_FALSE='#'
5240 else
5241   AMDEP_TRUE='#'
5242   AMDEP_FALSE=
5243 fi
5244
5245
5246 # Check whether --enable-silent-rules was given.
5247 if test "${enable_silent_rules+set}" = set; then :
5248   enableval=$enable_silent_rules;
5249 fi
5250
5251 case $enable_silent_rules in # (((
5252   yes) AM_DEFAULT_VERBOSITY=0;;
5253    no) AM_DEFAULT_VERBOSITY=1;;
5254     *) AM_DEFAULT_VERBOSITY=1;;
5255 esac
5256 am_make=${MAKE-make}
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5258 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5259 if ${am_cv_make_support_nested_variables+:} false; then :
5260   $as_echo_n "(cached) " >&6
5261 else
5262   if $as_echo 'TRUE=$(BAR$(V))
5263 BAR0=false
5264 BAR1=true
5265 V=1
5266 am__doit:
5267         @$(TRUE)
5268 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5269   am_cv_make_support_nested_variables=yes
5270 else
5271   am_cv_make_support_nested_variables=no
5272 fi
5273 fi
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5275 $as_echo "$am_cv_make_support_nested_variables" >&6; }
5276 if test $am_cv_make_support_nested_variables = yes; then
5277     AM_V='$(V)'
5278   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5279 else
5280   AM_V=$AM_DEFAULT_VERBOSITY
5281   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5282 fi
5283 AM_BACKSLASH='\'
5284
5285 ## --------------------------------------- ##
5286 ##  Start of automake initialization code  ##
5287 ## --------------------------------------- ##
5288
5289 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5290   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5291   # is not polluted with repeated "-I."
5292   am__isrc=' -I$(srcdir)'
5293   # test to see if srcdir already configured
5294   if test -f $srcdir/config.status; then
5295     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5296   fi
5297 fi
5298
5299 # test whether we have cygpath
5300 if test -z "$CYGPATH_W"; then
5301   if (cygpath --version) >/dev/null 2>/dev/null; then
5302     CYGPATH_W='cygpath -w'
5303   else
5304     CYGPATH_W=echo
5305   fi
5306 fi
5307
5308
5309 # Define the identity of the package.
5310  PACKAGE='curl'
5311  VERSION='-'
5312
5313
5314 cat >>confdefs.h <<_ACEOF
5315 #define PACKAGE "$PACKAGE"
5316 _ACEOF
5317
5318
5319 cat >>confdefs.h <<_ACEOF
5320 #define VERSION "$VERSION"
5321 _ACEOF
5322
5323 # Some tools Automake needs.
5324
5325 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5326
5327
5328 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5329
5330
5331 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5332
5333
5334 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5335
5336
5337 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5338
5339 # For better backward compatibility.  To be removed once Automake 1.9.x
5340 # dies out for good.  For more background, see:
5341 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5342 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5343 mkdir_p='$(MKDIR_P)'
5344
5345 # We need awk for the "check" target.  The system "awk" is bad on
5346 # some platforms.
5347 # Always define AMTAR for backward compatibility.  Yes, it's still used
5348 # in the wild :-(  We should find a proper way to deprecate it ...
5349 AMTAR='$${TAR-tar}'
5350
5351
5352 # We'll loop over all known methods to create a tar archive until one works.
5353 _am_tools='gnutar  pax cpio none'
5354
5355 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5356
5357
5358
5359
5360
5361 depcc="$CC"   am_compiler_list=
5362
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5364 $as_echo_n "checking dependency style of $depcc... " >&6; }
5365 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5366   $as_echo_n "(cached) " >&6
5367 else
5368   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5369   # We make a subdir and do the tests there.  Otherwise we can end up
5370   # making bogus files that we don't know about and never remove.  For
5371   # instance it was reported that on HP-UX the gcc test will end up
5372   # making a dummy file named 'D' -- because '-MD' means "put the output
5373   # in D".
5374   rm -rf conftest.dir
5375   mkdir conftest.dir
5376   # Copy depcomp to subdir because otherwise we won't find it if we're
5377   # using a relative directory.
5378   cp "$am_depcomp" conftest.dir
5379   cd conftest.dir
5380   # We will build objects and dependencies in a subdirectory because
5381   # it helps to detect inapplicable dependency modes.  For instance
5382   # both Tru64's cc and ICC support -MD to output dependencies as a
5383   # side effect of compilation, but ICC will put the dependencies in
5384   # the current directory while Tru64 will put them in the object
5385   # directory.
5386   mkdir sub
5387
5388   am_cv_CC_dependencies_compiler_type=none
5389   if test "$am_compiler_list" = ""; then
5390      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5391   fi
5392   am__universal=false
5393   case " $depcc " in #(
5394      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5395      esac
5396
5397   for depmode in $am_compiler_list; do
5398     # Setup a source with many dependencies, because some compilers
5399     # like to wrap large dependency lists on column 80 (with \), and
5400     # we should not choose a depcomp mode which is confused by this.
5401     #
5402     # We need to recreate these files for each test, as the compiler may
5403     # overwrite some of them when testing with obscure command lines.
5404     # This happens at least with the AIX C compiler.
5405     : > sub/conftest.c
5406     for i in 1 2 3 4 5 6; do
5407       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5408       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5409       # Solaris 10 /bin/sh.
5410       echo '/* dummy */' > sub/conftst$i.h
5411     done
5412     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5413
5414     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5415     # mode.  It turns out that the SunPro C++ compiler does not properly
5416     # handle '-M -o', and we need to detect this.  Also, some Intel
5417     # versions had trouble with output in subdirs.
5418     am__obj=sub/conftest.${OBJEXT-o}
5419     am__minus_obj="-o $am__obj"
5420     case $depmode in
5421     gcc)
5422       # This depmode causes a compiler race in universal mode.
5423       test "$am__universal" = false || continue
5424       ;;
5425     nosideeffect)
5426       # After this tag, mechanisms are not by side-effect, so they'll
5427       # only be used when explicitly requested.
5428       if test "x$enable_dependency_tracking" = xyes; then
5429         continue
5430       else
5431         break
5432       fi
5433       ;;
5434     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5435       # This compiler won't grok '-c -o', but also, the minuso test has
5436       # not run yet.  These depmodes are late enough in the game, and
5437       # so weak that their functioning should not be impacted.
5438       am__obj=conftest.${OBJEXT-o}
5439       am__minus_obj=
5440       ;;
5441     none) break ;;
5442     esac
5443     if depmode=$depmode \
5444        source=sub/conftest.c object=$am__obj \
5445        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5446        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5447          >/dev/null 2>conftest.err &&
5448        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5449        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5450        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5451        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5452       # icc doesn't choke on unknown options, it will just issue warnings
5453       # or remarks (even with -Werror).  So we grep stderr for any message
5454       # that says an option was ignored or not supported.
5455       # When given -MP, icc 7.0 and 7.1 complain thusly:
5456       #   icc: Command line warning: ignoring option '-M'; no argument required
5457       # The diagnosis changed in icc 8.0:
5458       #   icc: Command line remark: option '-MP' not supported
5459       if (grep 'ignoring option' conftest.err ||
5460           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5461         am_cv_CC_dependencies_compiler_type=$depmode
5462         break
5463       fi
5464     fi
5465   done
5466
5467   cd ..
5468   rm -rf conftest.dir
5469 else
5470   am_cv_CC_dependencies_compiler_type=none
5471 fi
5472
5473 fi
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5475 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5476 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5477
5478  if
5479   test "x$enable_dependency_tracking" != xno \
5480   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5481   am__fastdepCC_TRUE=
5482   am__fastdepCC_FALSE='#'
5483 else
5484   am__fastdepCC_TRUE='#'
5485   am__fastdepCC_FALSE=
5486 fi
5487
5488
5489
5490 # POSIX will say in a future version that running "rm -f" with no argument
5491 # is OK; and we want to be able to make that assumption in our Makefile
5492 # recipes.  So use an aggressive probe to check that the usage we want is
5493 # actually supported "in the wild" to an acceptable degree.
5494 # See automake bug#10828.
5495 # To make any issue more visible, cause the running configure to be aborted
5496 # by default if the 'rm' program in use doesn't match our expectations; the
5497 # user can still override this though.
5498 if rm -f && rm -fr && rm -rf; then : OK; else
5499   cat >&2 <<'END'
5500 Oops!
5501
5502 Your 'rm' program seems unable to run without file operands specified
5503 on the command line, even when the '-f' option is present.  This is contrary
5504 to the behaviour of most rm programs out there, and not conforming with
5505 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5506
5507 Please tell bug-automake@gnu.org about your system, including the value
5508 of your $PATH and any error possibly output before this message.  This
5509 can help us improve future automake versions.
5510
5511 END
5512   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5513     echo 'Configuration will proceed anyway, since you have set the' >&2
5514     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5515     echo >&2
5516   else
5517     cat >&2 <<'END'
5518 Aborting the configuration process, to ensure you take notice of the issue.
5519
5520 You can download and install GNU coreutils to get an 'rm' implementation
5521 that behaves properly: <http://www.gnu.org/software/coreutils/>.
5522
5523 If you want to complete the configuration process using your problematic
5524 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5525 to "yes", and re-run configure.
5526
5527 END
5528     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5529   fi
5530 fi
5531
5532 ## ------------------------------------- ##
5533 ##  End of automake initialization code  ##
5534 ## ------------------------------------- ##
5535
5536
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
5538 $as_echo_n "checking curl version... " >&6; }
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
5540 $as_echo "$CURLVERSION" >&6; }
5541
5542
5543
5544 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curlver.h`
5545
5546
5547 PKGADD_PKG="HAXXcurl"
5548 PKGADD_NAME="cURL - a client that groks URLs"
5549 PKGADD_VENDOR="curl.haxx.se"
5550
5551
5552
5553
5554     curl_ssl_msg="no      (--with-{ssl,gnutls,nss,polarssl,cyassl,axtls,winssl,darwinssl} )"
5555     curl_ssh_msg="no      (--with-libssh2)"
5556    curl_zlib_msg="no      (--with-zlib)"
5557     curl_gss_msg="no      (--with-gssapi)"
5558 curl_tls_srp_msg="no      (--enable-tls-srp)"
5559     curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
5560    curl_ipv6_msg="no      (--enable-ipv6)"
5561 curl_unix_sockets_msg="no      (--enable-unix-sockets)"
5562     curl_idn_msg="no      (--with-{libidn,winidn})"
5563  curl_manual_msg="no      (--enable-manual)"
5564 curl_libcurl_msg="enabled (--disable-libcurl-option)"
5565 curl_verbose_msg="enabled (--disable-verbose)"
5566    curl_sspi_msg="no      (--enable-sspi)"
5567    curl_ldap_msg="no      (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
5568   curl_ldaps_msg="no      (--enable-ldaps)"
5569    curl_rtsp_msg="no      (--enable-rtsp)"
5570    curl_rtmp_msg="no      (--with-librtmp)"
5571   curl_mtlnk_msg="no      (--with-libmetalink)"
5572
5573     init_ssl_msg=${curl_ssl_msg}
5574
5575 INITIAL_LDFLAGS=$LDFLAGS
5576 INITIAL_LIBS=$LIBS
5577
5578
5579 # Make sure we can run config.sub.
5580 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5581   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5582
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5584 $as_echo_n "checking build system type... " >&6; }
5585 if ${ac_cv_build+:} false; then :
5586   $as_echo_n "(cached) " >&6
5587 else
5588   ac_build_alias=$build_alias
5589 test "x$ac_build_alias" = x &&
5590   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5591 test "x$ac_build_alias" = x &&
5592   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5593 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5594   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5595
5596 fi
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5598 $as_echo "$ac_cv_build" >&6; }
5599 case $ac_cv_build in
5600 *-*-*) ;;
5601 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5602 esac
5603 build=$ac_cv_build
5604 ac_save_IFS=$IFS; IFS='-'
5605 set x $ac_cv_build
5606 shift
5607 build_cpu=$1
5608 build_vendor=$2
5609 shift; shift
5610 # Remember, the first character of IFS is used to create $*,
5611 # except with old shells:
5612 build_os=$*
5613 IFS=$ac_save_IFS
5614 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5615
5616
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5618 $as_echo_n "checking host system type... " >&6; }
5619 if ${ac_cv_host+:} false; then :
5620   $as_echo_n "(cached) " >&6
5621 else
5622   if test "x$host_alias" = x; then
5623   ac_cv_host=$ac_cv_build
5624 else
5625   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5626     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5627 fi
5628
5629 fi
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5631 $as_echo "$ac_cv_host" >&6; }
5632 case $ac_cv_host in
5633 *-*-*) ;;
5634 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5635 esac
5636 host=$ac_cv_host
5637 ac_save_IFS=$IFS; IFS='-'
5638 set x $ac_cv_host
5639 shift
5640 host_cpu=$1
5641 host_vendor=$2
5642 shift; shift
5643 # Remember, the first character of IFS is used to create $*,
5644 # except with old shells:
5645 host_os=$*
5646 IFS=$ac_save_IFS
5647 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5648
5649
5650
5651 cat >>confdefs.h <<_ACEOF
5652 #define OS "${host}"
5653 _ACEOF
5654
5655
5656
5657
5658
5659 curl_includes_inttypes="\
5660 /* includes start */
5661 #ifdef HAVE_SYS_TYPES_H
5662 # include <sys/types.h>
5663 #endif
5664 #ifdef HAVE_STDINT_H
5665 # include <stdint.h>
5666 #endif
5667 #ifdef HAVE_INTTYPES_H
5668 # include <inttypes.h>
5669 #endif
5670 /* includes end */"
5671   case $host_os in
5672     irix*)
5673       ac_cv_header_stdint_h="no"
5674       ;;
5675   esac
5676   for ac_header in sys/types.h stdint.h inttypes.h
5677 do :
5678   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5679 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_inttypes
5680 "
5681 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5682   cat >>confdefs.h <<_ACEOF
5683 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5684 _ACEOF
5685
5686 fi
5687
5688 done
5689
5690
5691
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5693 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5694 if ${ac_cv_path_GREP+:} false; then :
5695   $as_echo_n "(cached) " >&6
5696 else
5697   if test -z "$GREP"; then
5698   ac_path_GREP_found=false
5699   # Loop through the user's path and test for each of PROGNAME-LIST
5700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5702 do
5703   IFS=$as_save_IFS
5704   test -z "$as_dir" && as_dir=.
5705     for ac_prog in grep ggrep; do
5706     for ac_exec_ext in '' $ac_executable_extensions; do
5707       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5708       as_fn_executable_p "$ac_path_GREP" || continue
5709 # Check for GNU ac_path_GREP and select it if it is found.
5710   # Check for GNU $ac_path_GREP
5711 case `"$ac_path_GREP" --version 2>&1` in
5712 *GNU*)
5713   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5714 *)
5715   ac_count=0
5716   $as_echo_n 0123456789 >"conftest.in"
5717   while :
5718   do
5719     cat "conftest.in" "conftest.in" >"conftest.tmp"
5720     mv "conftest.tmp" "conftest.in"
5721     cp "conftest.in" "conftest.nl"
5722     $as_echo 'GREP' >> "conftest.nl"
5723     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5724     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5725     as_fn_arith $ac_count + 1 && ac_count=$as_val
5726     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5727       # Best one so far, save it but keep looking for a better one
5728       ac_cv_path_GREP="$ac_path_GREP"
5729       ac_path_GREP_max=$ac_count
5730     fi
5731     # 10*(2^10) chars as input seems more than enough
5732     test $ac_count -gt 10 && break
5733   done
5734   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5735 esac
5736
5737       $ac_path_GREP_found && break 3
5738     done
5739   done
5740   done
5741 IFS=$as_save_IFS
5742   if test -z "$ac_cv_path_GREP"; then
5743     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5744   fi
5745 else
5746   ac_cv_path_GREP=$GREP
5747 fi
5748
5749 fi
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5751 $as_echo "$ac_cv_path_GREP" >&6; }
5752  GREP="$ac_cv_path_GREP"
5753
5754
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5756 $as_echo_n "checking for egrep... " >&6; }
5757 if ${ac_cv_path_EGREP+:} false; then :
5758   $as_echo_n "(cached) " >&6
5759 else
5760   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5761    then ac_cv_path_EGREP="$GREP -E"
5762    else
5763      if test -z "$EGREP"; then
5764   ac_path_EGREP_found=false
5765   # Loop through the user's path and test for each of PROGNAME-LIST
5766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5768 do
5769   IFS=$as_save_IFS
5770   test -z "$as_dir" && as_dir=.
5771     for ac_prog in egrep; do
5772     for ac_exec_ext in '' $ac_executable_extensions; do
5773       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5774       as_fn_executable_p "$ac_path_EGREP" || continue
5775 # Check for GNU ac_path_EGREP and select it if it is found.
5776   # Check for GNU $ac_path_EGREP
5777 case `"$ac_path_EGREP" --version 2>&1` in
5778 *GNU*)
5779   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5780 *)
5781   ac_count=0
5782   $as_echo_n 0123456789 >"conftest.in"
5783   while :
5784   do
5785     cat "conftest.in" "conftest.in" >"conftest.tmp"
5786     mv "conftest.tmp" "conftest.in"
5787     cp "conftest.in" "conftest.nl"
5788     $as_echo 'EGREP' >> "conftest.nl"
5789     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5790     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5791     as_fn_arith $ac_count + 1 && ac_count=$as_val
5792     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5793       # Best one so far, save it but keep looking for a better one
5794       ac_cv_path_EGREP="$ac_path_EGREP"
5795       ac_path_EGREP_max=$ac_count
5796     fi
5797     # 10*(2^10) chars as input seems more than enough
5798     test $ac_count -gt 10 && break
5799   done
5800   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5801 esac
5802
5803       $ac_path_EGREP_found && break 3
5804     done
5805   done
5806   done
5807 IFS=$as_save_IFS
5808   if test -z "$ac_cv_path_EGREP"; then
5809     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5810   fi
5811 else
5812   ac_cv_path_EGREP=$EGREP
5813 fi
5814
5815    fi
5816 fi
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5818 $as_echo "$ac_cv_path_EGREP" >&6; }
5819  EGREP="$ac_cv_path_EGREP"
5820
5821
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5823 $as_echo_n "checking for ANSI C header files... " >&6; }
5824 if ${ac_cv_header_stdc+:} false; then :
5825   $as_echo_n "(cached) " >&6
5826 else
5827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h.  */
5829 #include <stdlib.h>
5830 #include <stdarg.h>
5831 #include <string.h>
5832 #include <float.h>
5833
5834 int main (void)
5835 {
5836
5837  ;
5838  return 0;
5839 }
5840 _ACEOF
5841 if ac_fn_c_try_compile "$LINENO"; then :
5842   ac_cv_header_stdc=yes
5843 else
5844   ac_cv_header_stdc=no
5845 fi
5846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5847
5848 if test $ac_cv_header_stdc = yes; then
5849   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5851 /* end confdefs.h.  */
5852 #include <string.h>
5853
5854 _ACEOF
5855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5856   $EGREP "memchr" >/dev/null 2>&1; then :
5857
5858 else
5859   ac_cv_header_stdc=no
5860 fi
5861 rm -f conftest*
5862
5863 fi
5864
5865 if test $ac_cv_header_stdc = yes; then
5866   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h.  */
5869 #include <stdlib.h>
5870
5871 _ACEOF
5872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5873   $EGREP "free" >/dev/null 2>&1; then :
5874
5875 else
5876   ac_cv_header_stdc=no
5877 fi
5878 rm -f conftest*
5879
5880 fi
5881
5882 if test $ac_cv_header_stdc = yes; then
5883   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5884   if test "$cross_compiling" = yes; then :
5885   :
5886 else
5887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h.  */
5889 #include <ctype.h>
5890 #include <stdlib.h>
5891 #if ((' ' & 0x0FF) == 0x020)
5892 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5893 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5894 #else
5895 # define ISLOWER(c) \
5896                    (('a' <= (c) && (c) <= 'i') \
5897                      || ('j' <= (c) && (c) <= 'r') \
5898                      || ('s' <= (c) && (c) <= 'z'))
5899 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5900 #endif
5901
5902 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5903 int
5904 main ()
5905 {
5906   int i;
5907   for (i = 0; i < 256; i++)
5908     if (XOR (islower (i), ISLOWER (i))
5909         || toupper (i) != TOUPPER (i))
5910       return 2;
5911   return 0;
5912 }
5913 _ACEOF
5914 if ac_fn_c_try_run "$LINENO"; then :
5915
5916 else
5917   ac_cv_header_stdc=no
5918 fi
5919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5920   conftest.$ac_objext conftest.beam conftest.$ac_ext
5921 fi
5922
5923 fi
5924 fi
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5926 $as_echo "$ac_cv_header_stdc" >&6; }
5927 if test $ac_cv_header_stdc = yes; then
5928
5929 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5930
5931 fi
5932
5933 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5934 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5935                   inttypes.h stdint.h unistd.h
5936 do :
5937   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5938 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5939 "
5940 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5941   cat >>confdefs.h <<_ACEOF
5942 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5943 _ACEOF
5944
5945 fi
5946
5947 done
5948
5949
5950
5951     #
5952         #
5953   if test -z "$SED"; then
5954     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
5955   fi
5956   #
5957   # The cast to long int works around a bug in the HP C Compiler
5958 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5959 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5960 # This bug is HP SR number 8606223364.
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5962 $as_echo_n "checking size of long... " >&6; }
5963 if ${ac_cv_sizeof_long+:} false; then :
5964   $as_echo_n "(cached) " >&6
5965 else
5966   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5967
5968 else
5969   if test "$ac_cv_type_long" = yes; then
5970      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5972 as_fn_error 77 "cannot compute sizeof (long)
5973 See \`config.log' for more details" "$LINENO" 5; }
5974    else
5975      ac_cv_sizeof_long=0
5976    fi
5977 fi
5978
5979 fi
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5981 $as_echo "$ac_cv_sizeof_long" >&6; }
5982
5983
5984
5985 cat >>confdefs.h <<_ACEOF
5986 #define SIZEOF_LONG $ac_cv_sizeof_long
5987 _ACEOF
5988
5989
5990   # The cast to long int works around a bug in the HP C Compiler
5991 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5992 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5993 # This bug is HP SR number 8606223364.
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
5995 $as_echo_n "checking size of void*... " >&6; }
5996 if ${ac_cv_sizeof_voidp+:} false; then :
5997   $as_echo_n "(cached) " >&6
5998 else
5999   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
6000
6001 else
6002   if test "$ac_cv_type_voidp" = yes; then
6003      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6005 as_fn_error 77 "cannot compute sizeof (void*)
6006 See \`config.log' for more details" "$LINENO" 5; }
6007    else
6008      ac_cv_sizeof_voidp=0
6009    fi
6010 fi
6011
6012 fi
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
6014 $as_echo "$ac_cv_sizeof_voidp" >&6; }
6015
6016
6017
6018 cat >>confdefs.h <<_ACEOF
6019 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
6020 _ACEOF
6021
6022
6023   #
6024   if test -z "$ac_cv_sizeof_long" ||
6025     test "$ac_cv_sizeof_long" -eq "0"; then
6026     as_fn_error $? "cannot find out size of long." "$LINENO" 5
6027   fi
6028   if test -z "$ac_cv_sizeof_voidp" ||
6029      test "$ac_cv_sizeof_voidp" -eq "0"; then
6030     as_fn_error $? "cannot find out size of void*." "$LINENO" 5
6031   fi
6032   #
6033   x_LP64_long=""
6034   x_LP32_long=""
6035   x_LP16_long=""
6036   #
6037   if test "$ac_cv_sizeof_long" -eq "8" &&
6038      test "$ac_cv_sizeof_voidp" -ge "8"; then
6039     x_LP64_long="long"
6040   elif test "$ac_cv_sizeof_long" -eq "4" &&
6041        test "$ac_cv_sizeof_voidp" -ge "4"; then
6042     x_LP32_long="long"
6043   elif test "$ac_cv_sizeof_long" -eq "2" &&
6044        test "$ac_cv_sizeof_voidp" -ge "2"; then
6045     x_LP16_long="long"
6046   fi
6047   #
6048     #
6049   curl_typeof_curl_off_t="unknown"
6050   curl_sizeof_curl_off_t="unknown"
6051   curl_format_curl_off_t="unknown"
6052   curl_format_curl_off_tu="unknown"
6053   #
6054   if test "$curl_typeof_curl_off_t" = "unknown"; then
6055     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit curl_off_t data type" >&5
6056 $as_echo_n "checking for 64-bit curl_off_t data type... " >&6; }
6057     for t8 in          \
6058       "$x_LP64_long"   \
6059       'int64_t'        \
6060       '__int64'        \
6061       'long long'      \
6062       '__longlong'     \
6063       '__longlong_t'   ; do
6064
6065     if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t8"; then
6066     tmp_includes=""
6067     tmp_source=""
6068     tmp_fmt=""
6069     case `echo "$t8" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6070       int64_t)
6071         tmp_includes="$curl_includes_inttypes"
6072         tmp_source="char f[] = PRId64;"
6073         tmp_fmt="PRId64"
6074         ;;
6075       int32_t)
6076         tmp_includes="$curl_includes_inttypes"
6077         tmp_source="char f[] = PRId32;"
6078         tmp_fmt="PRId32"
6079         ;;
6080       int16_t)
6081         tmp_includes="$curl_includes_inttypes"
6082         tmp_source="char f[] = PRId16;"
6083         tmp_fmt="PRId16"
6084         ;;
6085     esac
6086     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h.  */
6088
6089
6090         $tmp_includes
6091         typedef $t8 curl_off_t;
6092         typedef char dummy_arr[sizeof(curl_off_t) == 8 ? 1 : -1];
6093
6094 int main (void)
6095 {
6096
6097         $tmp_source
6098         curl_off_t dummy;
6099
6100  ;
6101  return 0;
6102 }
6103
6104 _ACEOF
6105 if ac_fn_c_try_compile "$LINENO"; then :
6106
6107       if test -z "$tmp_fmt"; then
6108         curl_typeof_curl_off_t="$t8"
6109         curl_sizeof_curl_off_t="8"
6110       else
6111
6112   as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6113   as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6114   if test -z "$SED"; then
6115     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6116   fi
6117   if test -z "$GREP"; then
6118     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6119   fi
6120
6121   tmp_exp=""
6122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123 /* end confdefs.h.  */
6124
6125     $curl_includes_inttypes
6126 #ifdef $tmp_fmt
6127 CURL_DEF_TOKEN $tmp_fmt
6128 #endif
6129
6130
6131 _ACEOF
6132 if ac_fn_c_try_cpp "$LINENO"; then :
6133
6134     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6135       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6136       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6137       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6138     if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6139       tmp_exp=""
6140     fi
6141
6142 fi
6143 rm -f conftest.err conftest.i conftest.$ac_ext
6144   if test -z "$tmp_exp"; then
6145     eval "$as_ac_HaveDef=no"
6146
6147   else
6148     eval "$as_ac_HaveDef=yes"
6149     eval "$as_ac_Def=\$tmp_exp"
6150
6151   fi
6152
6153         as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6154         as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6155         if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6156           curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6157           curl_typeof_curl_off_t="$t8"
6158           curl_sizeof_curl_off_t="8"
6159         fi
6160                       fi
6161
6162 fi
6163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6164   fi
6165
6166     done
6167     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6168 $as_echo "$curl_typeof_curl_off_t" >&6; }
6169   fi
6170   if test "$curl_typeof_curl_off_t" = "unknown"; then
6171     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit curl_off_t data type" >&5
6172 $as_echo_n "checking for 32-bit curl_off_t data type... " >&6; }
6173     for t4 in          \
6174       "$x_LP32_long"   \
6175       'int32_t'        \
6176       '__int32'        \
6177       'int'            ; do
6178
6179     if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t4"; then
6180     tmp_includes=""
6181     tmp_source=""
6182     tmp_fmt=""
6183     case `echo "$t4" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6184       int64_t)
6185         tmp_includes="$curl_includes_inttypes"
6186         tmp_source="char f[] = PRId64;"
6187         tmp_fmt="PRId64"
6188         ;;
6189       int32_t)
6190         tmp_includes="$curl_includes_inttypes"
6191         tmp_source="char f[] = PRId32;"
6192         tmp_fmt="PRId32"
6193         ;;
6194       int16_t)
6195         tmp_includes="$curl_includes_inttypes"
6196         tmp_source="char f[] = PRId16;"
6197         tmp_fmt="PRId16"
6198         ;;
6199     esac
6200     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h.  */
6202
6203
6204         $tmp_includes
6205         typedef $t4 curl_off_t;
6206         typedef char dummy_arr[sizeof(curl_off_t) == 4 ? 1 : -1];
6207
6208 int main (void)
6209 {
6210
6211         $tmp_source
6212         curl_off_t dummy;
6213
6214  ;
6215  return 0;
6216 }
6217
6218 _ACEOF
6219 if ac_fn_c_try_compile "$LINENO"; then :
6220
6221       if test -z "$tmp_fmt"; then
6222         curl_typeof_curl_off_t="$t4"
6223         curl_sizeof_curl_off_t="4"
6224       else
6225
6226   as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6227   as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6228   if test -z "$SED"; then
6229     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6230   fi
6231   if test -z "$GREP"; then
6232     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6233   fi
6234
6235   tmp_exp=""
6236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h.  */
6238
6239     $curl_includes_inttypes
6240 #ifdef $tmp_fmt
6241 CURL_DEF_TOKEN $tmp_fmt
6242 #endif
6243
6244
6245 _ACEOF
6246 if ac_fn_c_try_cpp "$LINENO"; then :
6247
6248     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6249       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6250       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6251       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6252     if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6253       tmp_exp=""
6254     fi
6255
6256 fi
6257 rm -f conftest.err conftest.i conftest.$ac_ext
6258   if test -z "$tmp_exp"; then
6259     eval "$as_ac_HaveDef=no"
6260
6261   else
6262     eval "$as_ac_HaveDef=yes"
6263     eval "$as_ac_Def=\$tmp_exp"
6264
6265   fi
6266
6267         as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6268         as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6269         if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6270           curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6271           curl_typeof_curl_off_t="$t4"
6272           curl_sizeof_curl_off_t="4"
6273         fi
6274                       fi
6275
6276 fi
6277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6278   fi
6279
6280     done
6281     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6282 $as_echo "$curl_typeof_curl_off_t" >&6; }
6283   fi
6284   if test "$curl_typeof_curl_off_t" = "unknown"; then
6285     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16-bit curl_off_t data type" >&5
6286 $as_echo_n "checking for 16-bit curl_off_t data type... " >&6; }
6287     for t2 in          \
6288       "$x_LP16_long"   \
6289       'int16_t'        \
6290       '__int16'        \
6291       'int'            ; do
6292
6293     if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t2"; then
6294     tmp_includes=""
6295     tmp_source=""
6296     tmp_fmt=""
6297     case `echo "$t2" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6298       int64_t)
6299         tmp_includes="$curl_includes_inttypes"
6300         tmp_source="char f[] = PRId64;"
6301         tmp_fmt="PRId64"
6302         ;;
6303       int32_t)
6304         tmp_includes="$curl_includes_inttypes"
6305         tmp_source="char f[] = PRId32;"
6306         tmp_fmt="PRId32"
6307         ;;
6308       int16_t)
6309         tmp_includes="$curl_includes_inttypes"
6310         tmp_source="char f[] = PRId16;"
6311         tmp_fmt="PRId16"
6312         ;;
6313     esac
6314     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315 /* end confdefs.h.  */
6316
6317
6318         $tmp_includes
6319         typedef $t2 curl_off_t;
6320         typedef char dummy_arr[sizeof(curl_off_t) == 2 ? 1 : -1];
6321
6322 int main (void)
6323 {
6324
6325         $tmp_source
6326         curl_off_t dummy;
6327
6328  ;
6329  return 0;
6330 }
6331
6332 _ACEOF
6333 if ac_fn_c_try_compile "$LINENO"; then :
6334
6335       if test -z "$tmp_fmt"; then
6336         curl_typeof_curl_off_t="$t2"
6337         curl_sizeof_curl_off_t="2"
6338       else
6339
6340   as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6341   as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6342   if test -z "$SED"; then
6343     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6344   fi
6345   if test -z "$GREP"; then
6346     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6347   fi
6348
6349   tmp_exp=""
6350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h.  */
6352
6353     $curl_includes_inttypes
6354 #ifdef $tmp_fmt
6355 CURL_DEF_TOKEN $tmp_fmt
6356 #endif
6357
6358
6359 _ACEOF
6360 if ac_fn_c_try_cpp "$LINENO"; then :
6361
6362     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6363       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6364       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6365       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6366     if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6367       tmp_exp=""
6368     fi
6369
6370 fi
6371 rm -f conftest.err conftest.i conftest.$ac_ext
6372   if test -z "$tmp_exp"; then
6373     eval "$as_ac_HaveDef=no"
6374
6375   else
6376     eval "$as_ac_HaveDef=yes"
6377     eval "$as_ac_Def=\$tmp_exp"
6378
6379   fi
6380
6381         as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6382         as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6383         if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6384           curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6385           curl_typeof_curl_off_t="$t2"
6386           curl_sizeof_curl_off_t="2"
6387         fi
6388                       fi
6389
6390 fi
6391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6392   fi
6393
6394     done
6395     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6396 $as_echo "$curl_typeof_curl_off_t" >&6; }
6397   fi
6398   if test "$curl_typeof_curl_off_t" = "unknown"; then
6399     as_fn_error $? "cannot find data type for curl_off_t." "$LINENO" 5
6400   fi
6401   #
6402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
6403 $as_echo_n "checking size of curl_off_t... " >&6; }
6404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_off_t" >&5
6405 $as_echo "$curl_sizeof_curl_off_t" >&6; }
6406   #
6407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for curl_off_t" >&5
6408 $as_echo_n "checking formatting string directive for curl_off_t... " >&6; }
6409   if test "$curl_format_curl_off_t" != "unknown"; then
6410     x_pull_headers="yes"
6411     curl_format_curl_off_t=`echo "$curl_format_curl_off_t" | "$SED" 's/["]//g'`
6412     curl_format_curl_off_tu=`echo "$curl_format_curl_off_t" | "$SED" 's/i$/u/'`
6413     curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/d$/u/'`
6414     curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/D$/U/'`
6415   else
6416     x_pull_headers="no"
6417     case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6418       long_long | __longlong | __longlong_t)
6419         curl_format_curl_off_t="lld"
6420         curl_format_curl_off_tu="llu"
6421         ;;
6422       long)
6423         curl_format_curl_off_t="ld"
6424         curl_format_curl_off_tu="lu"
6425         ;;
6426       int)
6427         curl_format_curl_off_t="d"
6428         curl_format_curl_off_tu="u"
6429         ;;
6430       __int64)
6431         curl_format_curl_off_t="I64d"
6432         curl_format_curl_off_tu="I64u"
6433         ;;
6434       __int32)
6435         curl_format_curl_off_t="I32d"
6436         curl_format_curl_off_tu="I32u"
6437         ;;
6438       __int16)
6439         curl_format_curl_off_t="I16d"
6440         curl_format_curl_off_tu="I16u"
6441         ;;
6442       *)
6443         as_fn_error $? "cannot find print format string for curl_off_t." "$LINENO" 5
6444         ;;
6445     esac
6446   fi
6447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_t\"" >&5
6448 $as_echo "\"$curl_format_curl_off_t\"" >&6; }
6449   #
6450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for unsigned curl_off_t" >&5
6451 $as_echo_n "checking formatting string directive for unsigned curl_off_t... " >&6; }
6452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_tu\"" >&5
6453 $as_echo "\"$curl_format_curl_off_tu\"" >&6; }
6454   #
6455
6456     { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for curl_off_t" >&5
6457 $as_echo_n "checking constant suffix string for curl_off_t... " >&6; }
6458   #
6459   curl_suffix_curl_off_t="unknown"
6460   curl_suffix_curl_off_tu="unknown"
6461   #
6462   case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6463     long_long | __longlong | __longlong_t)
6464       tst_suffixes="LL::"
6465       ;;
6466     long)
6467       tst_suffixes="L::"
6468       ;;
6469     int)
6470       tst_suffixes="::"
6471       ;;
6472     __int64 | int64_t)
6473       tst_suffixes="LL:i64::"
6474       ;;
6475     __int32 | int32_t)
6476       tst_suffixes="L:i32::"
6477       ;;
6478     __int16 | int16_t)
6479       tst_suffixes="L:i16::"
6480       ;;
6481     *)
6482       as_fn_error $? "unexpected data type $curl_typeof_curl_off_t" "$LINENO" 5
6483       ;;
6484   esac
6485   #
6486   old_IFS=$IFS; IFS=':'
6487   for tmp_ssuf in $tst_suffixes ; do
6488     IFS=$old_IFS
6489     if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6490       case $tmp_ssuf in
6491         i64 | i32 | i16)
6492           tmp_usuf="u$tmp_ssuf"
6493           ;;
6494         LL | L)
6495           tmp_usuf="U$tmp_ssuf"
6496           ;;
6497         *)
6498           tmp_usuf=""
6499           ;;
6500       esac
6501       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h.  */
6503
6504
6505           $curl_includes_inttypes
6506           typedef $curl_typeof_curl_off_t new_t;
6507
6508 int main (void)
6509 {
6510
6511           new_t s1;
6512           new_t s2;
6513           s1 = -10$tmp_ssuf ;
6514           s2 =  20$tmp_ssuf ;
6515           if(s1 > s2)
6516             return 1;
6517
6518  ;
6519  return 0;
6520 }
6521
6522 _ACEOF
6523 if ac_fn_c_try_compile "$LINENO"; then :
6524
6525         curl_suffix_curl_off_t="$tmp_ssuf"
6526         curl_suffix_curl_off_tu="$tmp_usuf"
6527
6528 fi
6529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530     fi
6531   done
6532   IFS=$old_IFS
6533   #
6534   if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6535     as_fn_error $? "cannot find constant suffix string for curl_off_t." "$LINENO" 5
6536   else
6537     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_t" >&5
6538 $as_echo "$curl_suffix_curl_off_t" >&6; }
6539     { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for unsigned curl_off_t" >&5
6540 $as_echo_n "checking constant suffix string for unsigned curl_off_t... " >&6; }
6541     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_tu" >&5
6542 $as_echo "$curl_suffix_curl_off_tu" >&6; }
6543   fi
6544   #
6545
6546   #
6547   if test "$x_pull_headers" = "yes"; then
6548     if test "x$ac_cv_header_sys_types_h" = "xyes"; then
6549
6550 cat >>confdefs.h <<_EOF
6551 #define CURL_PULL_SYS_TYPES_H 1
6552 _EOF
6553
6554     fi
6555     if test "x$ac_cv_header_stdint_h" = "xyes"; then
6556
6557 cat >>confdefs.h <<_EOF
6558 #define CURL_PULL_STDINT_H 1
6559 _EOF
6560
6561     fi
6562     if test "x$ac_cv_header_inttypes_h" = "xyes"; then
6563
6564 cat >>confdefs.h <<_EOF
6565 #define CURL_PULL_INTTYPES_H 1
6566 _EOF
6567
6568     fi
6569   fi
6570   #
6571
6572 cat >>confdefs.h <<_EOF
6573 #define CURL_TYPEOF_CURL_OFF_T $curl_typeof_curl_off_t
6574 _EOF
6575
6576
6577 cat >>confdefs.h <<_EOF
6578 #define CURL_FORMAT_CURL_OFF_T "$curl_format_curl_off_t"
6579 _EOF
6580
6581
6582 cat >>confdefs.h <<_EOF
6583 #define CURL_FORMAT_CURL_OFF_TU "$curl_format_curl_off_tu"
6584 _EOF
6585
6586
6587 cat >>confdefs.h <<_EOF
6588 #define CURL_FORMAT_OFF_T "%$curl_format_curl_off_t"
6589 _EOF
6590
6591
6592 cat >>confdefs.h <<_EOF
6593 #define CURL_SIZEOF_CURL_OFF_T $curl_sizeof_curl_off_t
6594 _EOF
6595
6596
6597 cat >>confdefs.h <<_EOF
6598 #define CURL_SUFFIX_CURL_OFF_T $curl_suffix_curl_off_t
6599 _EOF
6600
6601
6602 cat >>confdefs.h <<_EOF
6603 #define CURL_SUFFIX_CURL_OFF_TU $curl_suffix_curl_off_tu
6604 _EOF
6605
6606   #
6607
6608
6609
6610
6611         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6612 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614 /* end confdefs.h.  */
6615
6616 #ifdef _AIX
6617    yes_this_is_aix
6618 #endif
6619
6620 _ACEOF
6621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6622   $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6623
6624     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6625 $as_echo "yes" >&6; }
6626     $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6627
6628
6629 else
6630
6631     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6632 $as_echo "no" >&6; }
6633
6634 fi
6635 rm -f conftest*
6636
6637
6638
6639
6640     #
6641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6642 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644 /* end confdefs.h.  */
6645
6646
6647
6648 int main (void)
6649 {
6650
6651 #ifdef _THREAD_SAFE
6652       int dummy=1;
6653 #else
6654       force compilation error
6655 #endif
6656
6657  ;
6658  return 0;
6659 }
6660
6661 _ACEOF
6662 if ac_fn_c_try_compile "$LINENO"; then :
6663
6664     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6665 $as_echo "yes" >&6; }
6666     tmp_thread_safe_initially_defined="yes"
6667
6668 else
6669
6670     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671 $as_echo "no" >&6; }
6672     tmp_thread_safe_initially_defined="no"
6673
6674 fi
6675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6676   #
6677   if test "$tmp_thread_safe_initially_defined" = "no"; then
6678     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6679 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6680
6681   case $host_os in
6682     aix[123].* | aix4.[012].*)
6683             tmp_need_thread_safe="no"
6684       ;;
6685     aix*)
6686             tmp_need_thread_safe="yes"
6687       ;;
6688     *)
6689       tmp_need_thread_safe="no"
6690       ;;
6691   esac
6692
6693     if test "$tmp_need_thread_safe" = "yes"; then
6694       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6695 $as_echo "yes" >&6; }
6696     else
6697       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 $as_echo "no" >&6; }
6699     fi
6700   fi
6701   #
6702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6703 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6704   if test "$tmp_thread_safe_initially_defined" = "yes" ||
6705     test "$tmp_need_thread_safe" = "yes"; then
6706
6707
6708 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6709
6710 cat >>confdefs.h <<_EOF
6711 #ifndef _THREAD_SAFE
6712 #  define _THREAD_SAFE
6713 #endif
6714 _EOF
6715
6716     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6717 $as_echo "yes" >&6; }
6718   else
6719     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720 $as_echo "no" >&6; }
6721   fi
6722   #
6723
6724
6725     #
6726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6727 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729 /* end confdefs.h.  */
6730
6731
6732
6733 int main (void)
6734 {
6735
6736 #ifdef _REENTRANT
6737       int dummy=1;
6738 #else
6739       force compilation error
6740 #endif
6741
6742  ;
6743  return 0;
6744 }
6745
6746 _ACEOF
6747 if ac_fn_c_try_compile "$LINENO"; then :
6748
6749     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6750 $as_echo "yes" >&6; }
6751     tmp_reentrant_initially_defined="yes"
6752
6753 else
6754
6755     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756 $as_echo "no" >&6; }
6757     tmp_reentrant_initially_defined="no"
6758
6759 fi
6760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6761   #
6762   if test "$tmp_reentrant_initially_defined" = "no"; then
6763     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6764 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6765
6766   case $host_os in
6767     solaris*)
6768       tmp_need_reentrant="yes"
6769       ;;
6770     *)
6771       tmp_need_reentrant="no"
6772       ;;
6773   esac
6774
6775     if test "$tmp_need_reentrant" = "no"; then
6776
6777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h.  */
6779
6780
6781 #include <errno.h>
6782
6783 int main (void)
6784 {
6785
6786       if(0 != errno)
6787         return 1;
6788
6789  ;
6790  return 0;
6791 }
6792
6793 _ACEOF
6794 if ac_fn_c_try_compile "$LINENO"; then :
6795
6796     tmp_errno="yes"
6797
6798 else
6799
6800     tmp_errno="no"
6801
6802 fi
6803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6804   if test "$tmp_errno" = "yes"; then
6805     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806 /* end confdefs.h.  */
6807
6808
6809 #include <errno.h>
6810
6811 int main (void)
6812 {
6813
6814 #ifdef errno
6815         int dummy=1;
6816 #else
6817         force compilation error
6818 #endif
6819
6820  ;
6821  return 0;
6822 }
6823
6824 _ACEOF
6825 if ac_fn_c_try_compile "$LINENO"; then :
6826
6827       tmp_errno="errno_macro_defined"
6828
6829 else
6830
6831       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832 /* end confdefs.h.  */
6833
6834
6835 #define _REENTRANT
6836 #include <errno.h>
6837
6838 int main (void)
6839 {
6840
6841 #ifdef errno
6842           int dummy=1;
6843 #else
6844           force compilation error
6845 #endif
6846
6847  ;
6848  return 0;
6849 }
6850
6851 _ACEOF
6852 if ac_fn_c_try_compile "$LINENO"; then :
6853
6854         tmp_errno="errno_macro_needs_reentrant"
6855         tmp_need_reentrant="yes"
6856
6857 fi
6858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6859
6860 fi
6861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6862   fi
6863
6864     fi
6865     if test "$tmp_need_reentrant" = "no"; then
6866
6867   if test "$tmp_need_reentrant" = "no"; then
6868
6869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6870 /* end confdefs.h.  */
6871
6872
6873 #define gmtime_r innocuous_gmtime_r
6874 #ifdef __STDC__
6875 # include <limits.h>
6876 #else
6877 # include <assert.h>
6878 #endif
6879 #undef gmtime_r
6880 #ifdef __cplusplus
6881 extern "C"
6882 #endif
6883 char gmtime_r ();
6884 #if defined __stub_gmtime_r || defined __stub___gmtime_r
6885 choke me
6886 #endif
6887
6888 int main (void)
6889 {
6890 return gmtime_r ();
6891  ;
6892  return 0;
6893 }
6894
6895 _ACEOF
6896 if ac_fn_c_try_link "$LINENO"; then :
6897
6898     tmp_gmtime_r="yes"
6899
6900 else
6901
6902     tmp_gmtime_r="no"
6903
6904 fi
6905 rm -f core conftest.err conftest.$ac_objext \
6906     conftest$ac_exeext conftest.$ac_ext
6907   if test "$tmp_gmtime_r" = "yes"; then
6908     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6909 /* end confdefs.h.  */
6910
6911 #include <sys/types.h>
6912 #include <time.h>
6913
6914 _ACEOF
6915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6916   $EGREP "gmtime_r" >/dev/null 2>&1; then :
6917
6918       tmp_gmtime_r="proto_declared"
6919
6920 else
6921
6922       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h.  */
6924
6925 #define _REENTRANT
6926 #include <sys/types.h>
6927 #include <time.h>
6928
6929 _ACEOF
6930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6931   $EGREP "gmtime_r" >/dev/null 2>&1; then :
6932
6933         tmp_gmtime_r="proto_needs_reentrant"
6934         tmp_need_reentrant="yes"
6935
6936 fi
6937 rm -f conftest*
6938
6939
6940 fi
6941 rm -f conftest*
6942
6943   fi
6944
6945   fi
6946   if test "$tmp_need_reentrant" = "no"; then
6947
6948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949 /* end confdefs.h.  */
6950
6951
6952 #define localtime_r innocuous_localtime_r
6953 #ifdef __STDC__
6954 # include <limits.h>
6955 #else
6956 # include <assert.h>
6957 #endif
6958 #undef localtime_r
6959 #ifdef __cplusplus
6960 extern "C"
6961 #endif
6962 char localtime_r ();
6963 #if defined __stub_localtime_r || defined __stub___localtime_r
6964 choke me
6965 #endif
6966
6967 int main (void)
6968 {
6969 return localtime_r ();
6970  ;
6971  return 0;
6972 }
6973
6974 _ACEOF
6975 if ac_fn_c_try_link "$LINENO"; then :
6976
6977     tmp_localtime_r="yes"
6978
6979 else
6980
6981     tmp_localtime_r="no"
6982
6983 fi
6984 rm -f core conftest.err conftest.$ac_objext \
6985     conftest$ac_exeext conftest.$ac_ext
6986   if test "$tmp_localtime_r" = "yes"; then
6987     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988 /* end confdefs.h.  */
6989
6990 #include <sys/types.h>
6991 #include <time.h>
6992
6993 _ACEOF
6994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6995   $EGREP "localtime_r" >/dev/null 2>&1; then :
6996
6997       tmp_localtime_r="proto_declared"
6998
6999 else
7000
7001       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h.  */
7003
7004 #define _REENTRANT
7005 #include <sys/types.h>
7006 #include <time.h>
7007
7008 _ACEOF
7009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7010   $EGREP "localtime_r" >/dev/null 2>&1; then :
7011
7012         tmp_localtime_r="proto_needs_reentrant"
7013         tmp_need_reentrant="yes"
7014
7015 fi
7016 rm -f conftest*
7017
7018
7019 fi
7020 rm -f conftest*
7021
7022   fi
7023
7024   fi
7025   if test "$tmp_need_reentrant" = "no"; then
7026
7027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h.  */
7029
7030
7031 #define strerror_r innocuous_strerror_r
7032 #ifdef __STDC__
7033 # include <limits.h>
7034 #else
7035 # include <assert.h>
7036 #endif
7037 #undef strerror_r
7038 #ifdef __cplusplus
7039 extern "C"
7040 #endif
7041 char strerror_r ();
7042 #if defined __stub_strerror_r || defined __stub___strerror_r
7043 choke me
7044 #endif
7045
7046 int main (void)
7047 {
7048 return strerror_r ();
7049  ;
7050  return 0;
7051 }
7052
7053 _ACEOF
7054 if ac_fn_c_try_link "$LINENO"; then :
7055
7056     tmp_strerror_r="yes"
7057
7058 else
7059
7060     tmp_strerror_r="no"
7061
7062 fi
7063 rm -f core conftest.err conftest.$ac_objext \
7064     conftest$ac_exeext conftest.$ac_ext
7065   if test "$tmp_strerror_r" = "yes"; then
7066     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h.  */
7068
7069 #include <sys/types.h>
7070 #include <string.h>
7071
7072 _ACEOF
7073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7074   $EGREP "strerror_r" >/dev/null 2>&1; then :
7075
7076       tmp_strerror_r="proto_declared"
7077
7078 else
7079
7080       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081 /* end confdefs.h.  */
7082
7083 #define _REENTRANT
7084 #include <sys/types.h>
7085 #include <string.h>
7086
7087 _ACEOF
7088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7089   $EGREP "strerror_r" >/dev/null 2>&1; then :
7090
7091         tmp_strerror_r="proto_needs_reentrant"
7092         tmp_need_reentrant="yes"
7093
7094 fi
7095 rm -f conftest*
7096
7097
7098 fi
7099 rm -f conftest*
7100
7101   fi
7102
7103   fi
7104   if test "$tmp_need_reentrant" = "no"; then
7105
7106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107 /* end confdefs.h.  */
7108
7109
7110 #define strtok_r innocuous_strtok_r
7111 #ifdef __STDC__
7112 # include <limits.h>
7113 #else
7114 # include <assert.h>
7115 #endif
7116 #undef strtok_r
7117 #ifdef __cplusplus
7118 extern "C"
7119 #endif
7120 char strtok_r ();
7121 #if defined __stub_strtok_r || defined __stub___strtok_r
7122 choke me
7123 #endif
7124
7125 int main (void)
7126 {
7127 return strtok_r ();
7128  ;
7129  return 0;
7130 }
7131
7132 _ACEOF
7133 if ac_fn_c_try_link "$LINENO"; then :
7134
7135     tmp_strtok_r="yes"
7136
7137 else
7138
7139     tmp_strtok_r="no"
7140
7141 fi
7142 rm -f core conftest.err conftest.$ac_objext \
7143     conftest$ac_exeext conftest.$ac_ext
7144   if test "$tmp_strtok_r" = "yes"; then
7145     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7146 /* end confdefs.h.  */
7147
7148 #include <sys/types.h>
7149 #include <string.h>
7150
7151 _ACEOF
7152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7153   $EGREP "strtok_r" >/dev/null 2>&1; then :
7154
7155       tmp_strtok_r="proto_declared"
7156
7157 else
7158
7159       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160 /* end confdefs.h.  */
7161
7162 #define _REENTRANT
7163 #include <sys/types.h>
7164 #include <string.h>
7165
7166 _ACEOF
7167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7168   $EGREP "strtok_r" >/dev/null 2>&1; then :
7169
7170         tmp_strtok_r="proto_needs_reentrant"
7171         tmp_need_reentrant="yes"
7172
7173 fi
7174 rm -f conftest*
7175
7176
7177 fi
7178 rm -f conftest*
7179
7180   fi
7181
7182   fi
7183   if test "$tmp_need_reentrant" = "no"; then
7184
7185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h.  */
7187
7188
7189 #define inet_ntoa_r innocuous_inet_ntoa_r
7190 #ifdef __STDC__
7191 # include <limits.h>
7192 #else
7193 # include <assert.h>
7194 #endif
7195 #undef inet_ntoa_r
7196 #ifdef __cplusplus
7197 extern "C"
7198 #endif
7199 char inet_ntoa_r ();
7200 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
7201 choke me
7202 #endif
7203
7204 int main (void)
7205 {
7206 return inet_ntoa_r ();
7207  ;
7208  return 0;
7209 }
7210
7211 _ACEOF
7212 if ac_fn_c_try_link "$LINENO"; then :
7213
7214     tmp_inet_ntoa_r="yes"
7215
7216 else
7217
7218     tmp_inet_ntoa_r="no"
7219
7220 fi
7221 rm -f core conftest.err conftest.$ac_objext \
7222     conftest$ac_exeext conftest.$ac_ext
7223   if test "$tmp_inet_ntoa_r" = "yes"; then
7224     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h.  */
7226
7227 #include <sys/types.h>
7228 #include <sys/socket.h>
7229 #include <netinet/in.h>
7230 #include <arpa/inet.h>
7231
7232 _ACEOF
7233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7234   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7235
7236       tmp_inet_ntoa_r="proto_declared"
7237
7238 else
7239
7240       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241 /* end confdefs.h.  */
7242
7243 #define _REENTRANT
7244 #include <sys/types.h>
7245 #include <sys/socket.h>
7246 #include <netinet/in.h>
7247 #include <arpa/inet.h>
7248
7249 _ACEOF
7250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7251   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7252
7253         tmp_inet_ntoa_r="proto_needs_reentrant"
7254         tmp_need_reentrant="yes"
7255
7256 fi
7257 rm -f conftest*
7258
7259
7260 fi
7261 rm -f conftest*
7262
7263   fi
7264
7265   fi
7266   if test "$tmp_need_reentrant" = "no"; then
7267
7268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h.  */
7270
7271
7272 #define gethostbyaddr_r innocuous_gethostbyaddr_r
7273 #ifdef __STDC__
7274 # include <limits.h>
7275 #else
7276 # include <assert.h>
7277 #endif
7278 #undef gethostbyaddr_r
7279 #ifdef __cplusplus
7280 extern "C"
7281 #endif
7282 char gethostbyaddr_r ();
7283 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
7284 choke me
7285 #endif
7286
7287 int main (void)
7288 {
7289 return gethostbyaddr_r ();
7290  ;
7291  return 0;
7292 }
7293
7294 _ACEOF
7295 if ac_fn_c_try_link "$LINENO"; then :
7296
7297     tmp_gethostbyaddr_r="yes"
7298
7299 else
7300
7301     tmp_gethostbyaddr_r="no"
7302
7303 fi
7304 rm -f core conftest.err conftest.$ac_objext \
7305     conftest$ac_exeext conftest.$ac_ext
7306   if test "$tmp_gethostbyaddr_r" = "yes"; then
7307     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h.  */
7309
7310 #include <sys/types.h>
7311 #include <netdb.h>
7312
7313 _ACEOF
7314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7315   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7316
7317       tmp_gethostbyaddr_r="proto_declared"
7318
7319 else
7320
7321       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h.  */
7323
7324 #define _REENTRANT
7325 #include <sys/types.h>
7326 #include <netdb.h>
7327
7328 _ACEOF
7329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7330   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7331
7332         tmp_gethostbyaddr_r="proto_needs_reentrant"
7333         tmp_need_reentrant="yes"
7334
7335 fi
7336 rm -f conftest*
7337
7338
7339 fi
7340 rm -f conftest*
7341
7342   fi
7343
7344   fi
7345   if test "$tmp_need_reentrant" = "no"; then
7346
7347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348 /* end confdefs.h.  */
7349
7350
7351 #define gethostbyname_r innocuous_gethostbyname_r
7352 #ifdef __STDC__
7353 # include <limits.h>
7354 #else
7355 # include <assert.h>
7356 #endif
7357 #undef gethostbyname_r
7358 #ifdef __cplusplus
7359 extern "C"
7360 #endif
7361 char gethostbyname_r ();
7362 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7363 choke me
7364 #endif
7365
7366 int main (void)
7367 {
7368 return gethostbyname_r ();
7369  ;
7370  return 0;
7371 }
7372
7373 _ACEOF
7374 if ac_fn_c_try_link "$LINENO"; then :
7375
7376     tmp_gethostbyname_r="yes"
7377
7378 else
7379
7380     tmp_gethostbyname_r="no"
7381
7382 fi
7383 rm -f core conftest.err conftest.$ac_objext \
7384     conftest$ac_exeext conftest.$ac_ext
7385   if test "$tmp_gethostbyname_r" = "yes"; then
7386     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387 /* end confdefs.h.  */
7388
7389 #include <sys/types.h>
7390 #include <netdb.h>
7391
7392 _ACEOF
7393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7394   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7395
7396       tmp_gethostbyname_r="proto_declared"
7397
7398 else
7399
7400       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401 /* end confdefs.h.  */
7402
7403 #define _REENTRANT
7404 #include <sys/types.h>
7405 #include <netdb.h>
7406
7407 _ACEOF
7408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7409   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7410
7411         tmp_gethostbyname_r="proto_needs_reentrant"
7412         tmp_need_reentrant="yes"
7413
7414 fi
7415 rm -f conftest*
7416
7417
7418 fi
7419 rm -f conftest*
7420
7421   fi
7422
7423   fi
7424   if test "$tmp_need_reentrant" = "no"; then
7425
7426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h.  */
7428
7429
7430 #define getprotobyname_r innocuous_getprotobyname_r
7431 #ifdef __STDC__
7432 # include <limits.h>
7433 #else
7434 # include <assert.h>
7435 #endif
7436 #undef getprotobyname_r
7437 #ifdef __cplusplus
7438 extern "C"
7439 #endif
7440 char getprotobyname_r ();
7441 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7442 choke me
7443 #endif
7444
7445 int main (void)
7446 {
7447 return getprotobyname_r ();
7448  ;
7449  return 0;
7450 }
7451
7452 _ACEOF
7453 if ac_fn_c_try_link "$LINENO"; then :
7454
7455     tmp_getprotobyname_r="yes"
7456
7457 else
7458
7459     tmp_getprotobyname_r="no"
7460
7461 fi
7462 rm -f core conftest.err conftest.$ac_objext \
7463     conftest$ac_exeext conftest.$ac_ext
7464   if test "$tmp_getprotobyname_r" = "yes"; then
7465     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7466 /* end confdefs.h.  */
7467
7468 #include <sys/types.h>
7469 #include <netdb.h>
7470
7471 _ACEOF
7472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7473   $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7474
7475       tmp_getprotobyname_r="proto_declared"
7476
7477 else
7478
7479       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480 /* end confdefs.h.  */
7481
7482 #define _REENTRANT
7483 #include <sys/types.h>
7484 #include <netdb.h>
7485
7486 _ACEOF
7487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7488   $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7489
7490         tmp_getprotobyname_r="proto_needs_reentrant"
7491         tmp_need_reentrant="yes"
7492
7493 fi
7494 rm -f conftest*
7495
7496
7497 fi
7498 rm -f conftest*
7499
7500   fi
7501
7502   fi
7503   if test "$tmp_need_reentrant" = "no"; then
7504
7505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h.  */
7507
7508
7509 #define getservbyport_r innocuous_getservbyport_r
7510 #ifdef __STDC__
7511 # include <limits.h>
7512 #else
7513 # include <assert.h>
7514 #endif
7515 #undef getservbyport_r
7516 #ifdef __cplusplus
7517 extern "C"
7518 #endif
7519 char getservbyport_r ();
7520 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7521 choke me
7522 #endif
7523
7524 int main (void)
7525 {
7526 return getservbyport_r ();
7527  ;
7528  return 0;
7529 }
7530
7531 _ACEOF
7532 if ac_fn_c_try_link "$LINENO"; then :
7533
7534     tmp_getservbyport_r="yes"
7535
7536 else
7537
7538     tmp_getservbyport_r="no"
7539
7540 fi
7541 rm -f core conftest.err conftest.$ac_objext \
7542     conftest$ac_exeext conftest.$ac_ext
7543   if test "$tmp_getservbyport_r" = "yes"; then
7544     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545 /* end confdefs.h.  */
7546
7547 #include <sys/types.h>
7548 #include <netdb.h>
7549
7550 _ACEOF
7551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7552   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7553
7554       tmp_getservbyport_r="proto_declared"
7555
7556 else
7557
7558       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h.  */
7560
7561 #define _REENTRANT
7562 #include <sys/types.h>
7563 #include <netdb.h>
7564
7565 _ACEOF
7566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7567   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7568
7569         tmp_getservbyport_r="proto_needs_reentrant"
7570         tmp_need_reentrant="yes"
7571
7572 fi
7573 rm -f conftest*
7574
7575
7576 fi
7577 rm -f conftest*
7578
7579   fi
7580
7581   fi
7582
7583     fi
7584     if test "$tmp_need_reentrant" = "yes"; then
7585       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7586 $as_echo "yes" >&6; }
7587     else
7588       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589 $as_echo "no" >&6; }
7590     fi
7591   fi
7592   #
7593   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7594 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7595   if test "$tmp_reentrant_initially_defined" = "yes" ||
7596     test "$tmp_need_reentrant" = "yes"; then
7597
7598
7599 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7600
7601 cat >>confdefs.h <<_EOF
7602 #ifndef _REENTRANT
7603 #  define _REENTRANT
7604 #endif
7605 _EOF
7606
7607     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7608 $as_echo "yes" >&6; }
7609   else
7610     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 $as_echo "no" >&6; }
7612   fi
7613   #
7614
7615
7616 # Check whether --enable-largefile was given.
7617 if test "${enable_largefile+set}" = set; then :
7618   enableval=$enable_largefile;
7619 fi
7620
7621 if test "$enable_largefile" != no; then
7622
7623   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7624 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7625 if ${ac_cv_sys_largefile_CC+:} false; then :
7626   $as_echo_n "(cached) " >&6
7627 else
7628   ac_cv_sys_largefile_CC=no
7629      if test "$GCC" != yes; then
7630        ac_save_CC=$CC
7631        while :; do
7632          # IRIX 6.2 and later do not support large files by default,
7633          # so use the C compiler's -n32 option if that helps.
7634          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h.  */
7636 #include <sys/types.h>
7637  /* Check that off_t can represent 2**63 - 1 correctly.
7638     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7639     since some C++ compilers masquerading as C compilers
7640     incorrectly reject 9223372036854775807.  */
7641 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7642   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7643                        && LARGE_OFF_T % 2147483647 == 1)
7644                       ? 1 : -1];
7645 int main (void)
7646 {
7647
7648  ;
7649  return 0;
7650 }
7651 _ACEOF
7652          if ac_fn_c_try_compile "$LINENO"; then :
7653   break
7654 fi
7655 rm -f core conftest.err conftest.$ac_objext
7656          CC="$CC -n32"
7657          if ac_fn_c_try_compile "$LINENO"; then :
7658   ac_cv_sys_largefile_CC=' -n32'; break
7659 fi
7660 rm -f core conftest.err conftest.$ac_objext
7661          break
7662        done
7663        CC=$ac_save_CC
7664        rm -f conftest.$ac_ext
7665     fi
7666 fi
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7668 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7669   if test "$ac_cv_sys_largefile_CC" != no; then
7670     CC=$CC$ac_cv_sys_largefile_CC
7671   fi
7672
7673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7674 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7675 if ${ac_cv_sys_file_offset_bits+:} false; then :
7676   $as_echo_n "(cached) " >&6
7677 else
7678   while :; do
7679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680 /* end confdefs.h.  */
7681 #include <sys/types.h>
7682  /* Check that off_t can represent 2**63 - 1 correctly.
7683     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7684     since some C++ compilers masquerading as C compilers
7685     incorrectly reject 9223372036854775807.  */
7686 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7687   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7688                        && LARGE_OFF_T % 2147483647 == 1)
7689                       ? 1 : -1];
7690 int main (void)
7691 {
7692
7693  ;
7694  return 0;
7695 }
7696 _ACEOF
7697 if ac_fn_c_try_compile "$LINENO"; then :
7698   ac_cv_sys_file_offset_bits=no; break
7699 fi
7700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h.  */
7703 #define _FILE_OFFSET_BITS 64
7704 #include <sys/types.h>
7705  /* Check that off_t can represent 2**63 - 1 correctly.
7706     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7707     since some C++ compilers masquerading as C compilers
7708     incorrectly reject 9223372036854775807.  */
7709 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7710   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7711                        && LARGE_OFF_T % 2147483647 == 1)
7712                       ? 1 : -1];
7713 int main (void)
7714 {
7715
7716  ;
7717  return 0;
7718 }
7719 _ACEOF
7720 if ac_fn_c_try_compile "$LINENO"; then :
7721   ac_cv_sys_file_offset_bits=64; break
7722 fi
7723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7724   ac_cv_sys_file_offset_bits=unknown
7725   break
7726 done
7727 fi
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7729 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7730 case $ac_cv_sys_file_offset_bits in #(
7731   no | unknown) ;;
7732   *)
7733 cat >>confdefs.h <<_ACEOF
7734 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7735 _ACEOF
7736 ;;
7737 esac
7738 rm -rf conftest*
7739   if test $ac_cv_sys_file_offset_bits = unknown; then
7740     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7741 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7742 if ${ac_cv_sys_large_files+:} false; then :
7743   $as_echo_n "(cached) " >&6
7744 else
7745   while :; do
7746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h.  */
7748 #include <sys/types.h>
7749  /* Check that off_t can represent 2**63 - 1 correctly.
7750     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7751     since some C++ compilers masquerading as C compilers
7752     incorrectly reject 9223372036854775807.  */
7753 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7754   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7755                        && LARGE_OFF_T % 2147483647 == 1)
7756                       ? 1 : -1];
7757 int main (void)
7758 {
7759
7760  ;
7761  return 0;
7762 }
7763 _ACEOF
7764 if ac_fn_c_try_compile "$LINENO"; then :
7765   ac_cv_sys_large_files=no; break
7766 fi
7767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7769 /* end confdefs.h.  */
7770 #define _LARGE_FILES 1
7771 #include <sys/types.h>
7772  /* Check that off_t can represent 2**63 - 1 correctly.
7773     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7774     since some C++ compilers masquerading as C compilers
7775     incorrectly reject 9223372036854775807.  */
7776 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7777   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7778                        && LARGE_OFF_T % 2147483647 == 1)
7779                       ? 1 : -1];
7780 int main (void)
7781 {
7782
7783  ;
7784  return 0;
7785 }
7786 _ACEOF
7787 if ac_fn_c_try_compile "$LINENO"; then :
7788   ac_cv_sys_large_files=1; break
7789 fi
7790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7791   ac_cv_sys_large_files=unknown
7792   break
7793 done
7794 fi
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7796 $as_echo "$ac_cv_sys_large_files" >&6; }
7797 case $ac_cv_sys_large_files in #(
7798   no | unknown) ;;
7799   *)
7800 cat >>confdefs.h <<_ACEOF
7801 #define _LARGE_FILES $ac_cv_sys_large_files
7802 _ACEOF
7803 ;;
7804 esac
7805 rm -rf conftest*
7806   fi
7807
7808
7809 fi
7810
7811
7812 case `pwd` in
7813   *\ * | *\     *)
7814     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7815 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7816 esac
7817
7818
7819
7820 macro_version='2.4.2'
7821 macro_revision='1.3337'
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835 ltmain="$ac_aux_dir/ltmain.sh"
7836
7837 # Backslashify metacharacters that are still active within
7838 # double-quoted strings.
7839 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7840
7841 # Same as above, but do not quote variable references.
7842 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7843
7844 # Sed substitution to delay expansion of an escaped shell variable in a
7845 # double_quote_subst'ed string.
7846 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7847
7848 # Sed substitution to delay expansion of an escaped single quote.
7849 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7850
7851 # Sed substitution to avoid accidental globbing in evaled expressions
7852 no_glob_subst='s/\*/\\\*/g'
7853
7854 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7855 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7856 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7857
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7859 $as_echo_n "checking how to print strings... " >&6; }
7860 # Test print first, because it will be a builtin if present.
7861 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7862    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7863   ECHO='print -r --'
7864 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7865   ECHO='printf %s\n'
7866 else
7867   # Use this function as a fallback that always works.
7868   func_fallback_echo ()
7869   {
7870     eval 'cat <<_LTECHO_EOF
7871 $1
7872 _LTECHO_EOF'
7873   }
7874   ECHO='func_fallback_echo'
7875 fi
7876
7877 # func_echo_all arg...
7878 # Invoke $ECHO with all args, space-separated.
7879 func_echo_all ()
7880 {
7881     $ECHO ""
7882 }
7883
7884 case "$ECHO" in
7885   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7886 $as_echo "printf" >&6; } ;;
7887   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7888 $as_echo "print -r" >&6; } ;;
7889   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7890 $as_echo "cat" >&6; } ;;
7891 esac
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7907 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7908 if ${ac_cv_path_SED+:} false; then :
7909   $as_echo_n "(cached) " >&6
7910 else
7911             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7912      for ac_i in 1 2 3 4 5 6 7; do
7913        ac_script="$ac_script$as_nl$ac_script"
7914      done
7915      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7916      { ac_script=; unset ac_script;}
7917      if test -z "$SED"; then
7918   ac_path_SED_found=false
7919   # Loop through the user's path and test for each of PROGNAME-LIST
7920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921 for as_dir in $PATH
7922 do
7923   IFS=$as_save_IFS
7924   test -z "$as_dir" && as_dir=.
7925     for ac_prog in sed gsed; do
7926     for ac_exec_ext in '' $ac_executable_extensions; do
7927       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7928       as_fn_executable_p "$ac_path_SED" || continue
7929 # Check for GNU ac_path_SED and select it if it is found.
7930   # Check for GNU $ac_path_SED
7931 case `"$ac_path_SED" --version 2>&1` in
7932 *GNU*)
7933   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7934 *)
7935   ac_count=0
7936   $as_echo_n 0123456789 >"conftest.in"
7937   while :
7938   do
7939     cat "conftest.in" "conftest.in" >"conftest.tmp"
7940     mv "conftest.tmp" "conftest.in"
7941     cp "conftest.in" "conftest.nl"
7942     $as_echo '' >> "conftest.nl"
7943     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7944     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7945     as_fn_arith $ac_count + 1 && ac_count=$as_val
7946     if test $ac_count -gt ${ac_path_SED_max-0}; then
7947       # Best one so far, save it but keep looking for a better one
7948       ac_cv_path_SED="$ac_path_SED"
7949       ac_path_SED_max=$ac_count
7950     fi
7951     # 10*(2^10) chars as input seems more than enough
7952     test $ac_count -gt 10 && break
7953   done
7954   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7955 esac
7956
7957       $ac_path_SED_found && break 3
7958     done
7959   done
7960   done
7961 IFS=$as_save_IFS
7962   if test -z "$ac_cv_path_SED"; then
7963     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7964   fi
7965 else
7966   ac_cv_path_SED=$SED
7967 fi
7968
7969 fi
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7971 $as_echo "$ac_cv_path_SED" >&6; }
7972  SED="$ac_cv_path_SED"
7973   rm -f conftest.sed
7974
7975 test -z "$SED" && SED=sed
7976 Xsed="$SED -e 1s/^X//"
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7989 $as_echo_n "checking for fgrep... " >&6; }
7990 if ${ac_cv_path_FGREP+:} false; then :
7991   $as_echo_n "(cached) " >&6
7992 else
7993   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7994    then ac_cv_path_FGREP="$GREP -F"
7995    else
7996      if test -z "$FGREP"; then
7997   ac_path_FGREP_found=false
7998   # Loop through the user's path and test for each of PROGNAME-LIST
7999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8001 do
8002   IFS=$as_save_IFS
8003   test -z "$as_dir" && as_dir=.
8004     for ac_prog in fgrep; do
8005     for ac_exec_ext in '' $ac_executable_extensions; do
8006       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8007       as_fn_executable_p "$ac_path_FGREP" || continue
8008 # Check for GNU ac_path_FGREP and select it if it is found.
8009   # Check for GNU $ac_path_FGREP
8010 case `"$ac_path_FGREP" --version 2>&1` in
8011 *GNU*)
8012   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8013 *)
8014   ac_count=0
8015   $as_echo_n 0123456789 >"conftest.in"
8016   while :
8017   do
8018     cat "conftest.in" "conftest.in" >"conftest.tmp"
8019     mv "conftest.tmp" "conftest.in"
8020     cp "conftest.in" "conftest.nl"
8021     $as_echo 'FGREP' >> "conftest.nl"
8022     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8023     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8024     as_fn_arith $ac_count + 1 && ac_count=$as_val
8025     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8026       # Best one so far, save it but keep looking for a better one
8027       ac_cv_path_FGREP="$ac_path_FGREP"
8028       ac_path_FGREP_max=$ac_count
8029     fi
8030     # 10*(2^10) chars as input seems more than enough
8031     test $ac_count -gt 10 && break
8032   done
8033   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8034 esac
8035
8036       $ac_path_FGREP_found && break 3
8037     done
8038   done
8039   done
8040 IFS=$as_save_IFS
8041   if test -z "$ac_cv_path_FGREP"; then
8042     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8043   fi
8044 else
8045   ac_cv_path_FGREP=$FGREP
8046 fi
8047
8048    fi
8049 fi
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8051 $as_echo "$ac_cv_path_FGREP" >&6; }
8052  FGREP="$ac_cv_path_FGREP"
8053
8054
8055 test -z "$GREP" && GREP=grep
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075 # Check whether --with-gnu-ld was given.
8076 if test "${with_gnu_ld+set}" = set; then :
8077   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8078 else
8079   with_gnu_ld=no
8080 fi
8081
8082 ac_prog=ld
8083 if test "$GCC" = yes; then
8084   # Check if gcc -print-prog-name=ld gives a path.
8085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8086 $as_echo_n "checking for ld used by $CC... " >&6; }
8087   case $host in
8088   *-*-mingw*)
8089     # gcc leaves a trailing carriage return which upsets mingw
8090     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8091   *)
8092     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8093   esac
8094   case $ac_prog in
8095     # Accept absolute paths.
8096     [\\/]* | ?:[\\/]*)
8097       re_direlt='/[^/][^/]*/\.\./'
8098       # Canonicalize the pathname of ld
8099       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8100       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8101         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8102       done
8103       test -z "$LD" && LD="$ac_prog"
8104       ;;
8105   "")
8106     # If it fails, then pretend we aren't using GCC.
8107     ac_prog=ld
8108     ;;
8109   *)
8110     # If it is relative, then search for the first ld in PATH.
8111     with_gnu_ld=unknown
8112     ;;
8113   esac
8114 elif test "$with_gnu_ld" = yes; then
8115   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8116 $as_echo_n "checking for GNU ld... " >&6; }
8117 else
8118   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8119 $as_echo_n "checking for non-GNU ld... " >&6; }
8120 fi
8121 if ${lt_cv_path_LD+:} false; then :
8122   $as_echo_n "(cached) " >&6
8123 else
8124   if test -z "$LD"; then
8125   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8126   for ac_dir in $PATH; do
8127     IFS="$lt_save_ifs"
8128     test -z "$ac_dir" && ac_dir=.
8129     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8130       lt_cv_path_LD="$ac_dir/$ac_prog"
8131       # Check to see if the program is GNU ld.  I'd rather use --version,
8132       # but apparently some variants of GNU ld only accept -v.
8133       # Break only if it was the GNU/non-GNU ld that we prefer.
8134       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8135       *GNU* | *'with BFD'*)
8136         test "$with_gnu_ld" != no && break
8137         ;;
8138       *)
8139         test "$with_gnu_ld" != yes && break
8140         ;;
8141       esac
8142     fi
8143   done
8144   IFS="$lt_save_ifs"
8145 else
8146   lt_cv_path_LD="$LD" # Let the user override the test with a path.
8147 fi
8148 fi
8149
8150 LD="$lt_cv_path_LD"
8151 if test -n "$LD"; then
8152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8153 $as_echo "$LD" >&6; }
8154 else
8155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 $as_echo "no" >&6; }
8157 fi
8158 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8160 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8161 if ${lt_cv_prog_gnu_ld+:} false; then :
8162   $as_echo_n "(cached) " >&6
8163 else
8164   # I'd rather use --version here, but apparently some GNU lds only accept -v.
8165 case `$LD -v 2>&1 </dev/null` in
8166 *GNU* | *'with BFD'*)
8167   lt_cv_prog_gnu_ld=yes
8168   ;;
8169 *)
8170   lt_cv_prog_gnu_ld=no
8171   ;;
8172 esac
8173 fi
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8175 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8176 with_gnu_ld=$lt_cv_prog_gnu_ld
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8187 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8188 if ${lt_cv_path_NM+:} false; then :
8189   $as_echo_n "(cached) " >&6
8190 else
8191   if test -n "$NM"; then
8192   # Let the user override the test.
8193   lt_cv_path_NM="$NM"
8194 else
8195   lt_nm_to_check="${ac_tool_prefix}nm"
8196   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8197     lt_nm_to_check="$lt_nm_to_check nm"
8198   fi
8199   for lt_tmp_nm in $lt_nm_to_check; do
8200     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8201     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8202       IFS="$lt_save_ifs"
8203       test -z "$ac_dir" && ac_dir=.
8204       tmp_nm="$ac_dir/$lt_tmp_nm"
8205       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8206         # Check to see if the nm accepts a BSD-compat flag.
8207         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8208         #   nm: unknown option "B" ignored
8209         # Tru64's nm complains that /dev/null is an invalid object file
8210         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8211         */dev/null* | *'Invalid file or object type'*)
8212           lt_cv_path_NM="$tmp_nm -B"
8213           break
8214           ;;
8215         *)
8216           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8217           */dev/null*)
8218             lt_cv_path_NM="$tmp_nm -p"
8219             break
8220             ;;
8221           *)
8222             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8223             continue # so that we can try to find one that supports BSD flags
8224             ;;
8225           esac
8226           ;;
8227         esac
8228       fi
8229     done
8230     IFS="$lt_save_ifs"
8231   done
8232   : ${lt_cv_path_NM=no}
8233 fi
8234 fi
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8236 $as_echo "$lt_cv_path_NM" >&6; }
8237 if test "$lt_cv_path_NM" != "no"; then
8238   NM="$lt_cv_path_NM"
8239 else
8240   # Didn't find any BSD compatible name lister, look for dumpbin.
8241   if test -n "$DUMPBIN"; then :
8242     # Let the user override the test.
8243   else
8244     if test -n "$ac_tool_prefix"; then
8245   for ac_prog in dumpbin "link -dump"
8246   do
8247     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8248 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250 $as_echo_n "checking for $ac_word... " >&6; }
8251 if ${ac_cv_prog_DUMPBIN+:} false; then :
8252   $as_echo_n "(cached) " >&6
8253 else
8254   if test -n "$DUMPBIN"; then
8255   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8256 else
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258 for as_dir in $PATH
8259 do
8260   IFS=$as_save_IFS
8261   test -z "$as_dir" && as_dir=.
8262     for ac_exec_ext in '' $ac_executable_extensions; do
8263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8264     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8266     break 2
8267   fi
8268 done
8269   done
8270 IFS=$as_save_IFS
8271
8272 fi
8273 fi
8274 DUMPBIN=$ac_cv_prog_DUMPBIN
8275 if test -n "$DUMPBIN"; then
8276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8277 $as_echo "$DUMPBIN" >&6; }
8278 else
8279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8281 fi
8282
8283
8284     test -n "$DUMPBIN" && break
8285   done
8286 fi
8287 if test -z "$DUMPBIN"; then
8288   ac_ct_DUMPBIN=$DUMPBIN
8289   for ac_prog in dumpbin "link -dump"
8290 do
8291   # Extract the first word of "$ac_prog", so it can be a program name with args.
8292 set dummy $ac_prog; ac_word=$2
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8294 $as_echo_n "checking for $ac_word... " >&6; }
8295 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8296   $as_echo_n "(cached) " >&6
8297 else
8298   if test -n "$ac_ct_DUMPBIN"; then
8299   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8300 else
8301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8302 for as_dir in $PATH
8303 do
8304   IFS=$as_save_IFS
8305   test -z "$as_dir" && as_dir=.
8306     for ac_exec_ext in '' $ac_executable_extensions; do
8307   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8308     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8310     break 2
8311   fi
8312 done
8313   done
8314 IFS=$as_save_IFS
8315
8316 fi
8317 fi
8318 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8319 if test -n "$ac_ct_DUMPBIN"; then
8320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8321 $as_echo "$ac_ct_DUMPBIN" >&6; }
8322 else
8323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8324 $as_echo "no" >&6; }
8325 fi
8326
8327
8328   test -n "$ac_ct_DUMPBIN" && break
8329 done
8330
8331   if test "x$ac_ct_DUMPBIN" = x; then
8332     DUMPBIN=":"
8333   else
8334     case $cross_compiling:$ac_tool_warned in
8335 yes:)
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8338 ac_tool_warned=yes ;;
8339 esac
8340     DUMPBIN=$ac_ct_DUMPBIN
8341   fi
8342 fi
8343
8344     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8345     *COFF*)
8346       DUMPBIN="$DUMPBIN -symbols"
8347       ;;
8348     *)
8349       DUMPBIN=:
8350       ;;
8351     esac
8352   fi
8353
8354   if test "$DUMPBIN" != ":"; then
8355     NM="$DUMPBIN"
8356   fi
8357 fi
8358 test -z "$NM" && NM=nm
8359
8360
8361
8362
8363
8364
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8366 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8367 if ${lt_cv_nm_interface+:} false; then :
8368   $as_echo_n "(cached) " >&6
8369 else
8370   lt_cv_nm_interface="BSD nm"
8371   echo "int some_variable = 0;" > conftest.$ac_ext
8372   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8373   (eval "$ac_compile" 2>conftest.err)
8374   cat conftest.err >&5
8375   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8376   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8377   cat conftest.err >&5
8378   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8379   cat conftest.out >&5
8380   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8381     lt_cv_nm_interface="MS dumpbin"
8382   fi
8383   rm -f conftest*
8384 fi
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8386 $as_echo "$lt_cv_nm_interface" >&6; }
8387
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8389 $as_echo_n "checking whether ln -s works... " >&6; }
8390 LN_S=$as_ln_s
8391 if test "$LN_S" = "ln -s"; then
8392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8393 $as_echo "yes" >&6; }
8394 else
8395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8396 $as_echo "no, using $LN_S" >&6; }
8397 fi
8398
8399 # find the maximum length of command line arguments
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8401 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8402 if ${lt_cv_sys_max_cmd_len+:} false; then :
8403   $as_echo_n "(cached) " >&6
8404 else
8405     i=0
8406   teststring="ABCD"
8407
8408   case $build_os in
8409   msdosdjgpp*)
8410     # On DJGPP, this test can blow up pretty badly due to problems in libc
8411     # (any single argument exceeding 2000 bytes causes a buffer overrun
8412     # during glob expansion).  Even if it were fixed, the result of this
8413     # check would be larger than it should be.
8414     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8415     ;;
8416
8417   gnu*)
8418     # Under GNU Hurd, this test is not required because there is
8419     # no limit to the length of command line arguments.
8420     # Libtool will interpret -1 as no limit whatsoever
8421     lt_cv_sys_max_cmd_len=-1;
8422     ;;
8423
8424   cygwin* | mingw* | cegcc*)
8425     # On Win9x/ME, this test blows up -- it succeeds, but takes
8426     # about 5 minutes as the teststring grows exponentially.
8427     # Worse, since 9x/ME are not pre-emptively multitasking,
8428     # you end up with a "frozen" computer, even though with patience
8429     # the test eventually succeeds (with a max line length of 256k).
8430     # Instead, let's just punt: use the minimum linelength reported by
8431     # all of the supported platforms: 8192 (on NT/2K/XP).
8432     lt_cv_sys_max_cmd_len=8192;
8433     ;;
8434
8435   mint*)
8436     # On MiNT this can take a long time and run out of memory.
8437     lt_cv_sys_max_cmd_len=8192;
8438     ;;
8439
8440   amigaos*)
8441     # On AmigaOS with pdksh, this test takes hours, literally.
8442     # So we just punt and use a minimum line length of 8192.
8443     lt_cv_sys_max_cmd_len=8192;
8444     ;;
8445
8446   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8447     # This has been around since 386BSD, at least.  Likely further.
8448     if test -x /sbin/sysctl; then
8449       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8450     elif test -x /usr/sbin/sysctl; then
8451       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8452     else
8453       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8454     fi
8455     # And add a safety zone
8456     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8457     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8458     ;;
8459
8460   interix*)
8461     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8462     lt_cv_sys_max_cmd_len=196608
8463     ;;
8464
8465   os2*)
8466     # The test takes a long time on OS/2.
8467     lt_cv_sys_max_cmd_len=8192
8468     ;;
8469
8470   osf*)
8471     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8472     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8473     # nice to cause kernel panics so lets avoid the loop below.
8474     # First set a reasonable default.
8475     lt_cv_sys_max_cmd_len=16384
8476     #
8477     if test -x /sbin/sysconfig; then
8478       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8479         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8480       esac
8481     fi
8482     ;;
8483   sco3.2v5*)
8484     lt_cv_sys_max_cmd_len=102400
8485     ;;
8486   sysv5* | sco5v6* | sysv4.2uw2*)
8487     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8488     if test -n "$kargmax"; then
8489       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
8490     else
8491       lt_cv_sys_max_cmd_len=32768
8492     fi
8493     ;;
8494   *)
8495     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8496     if test -n "$lt_cv_sys_max_cmd_len" && \
8497         test undefined != "$lt_cv_sys_max_cmd_len"; then
8498       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8499       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8500     else
8501       # Make teststring a little bigger before we do anything with it.
8502       # a 1K string should be a reasonable start.
8503       for i in 1 2 3 4 5 6 7 8 ; do
8504         teststring=$teststring$teststring
8505       done
8506       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8507       # If test is not a shell built-in, we'll probably end up computing a
8508       # maximum length that is only half of the actual maximum length, but
8509       # we can't tell.
8510       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
8511                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8512               test $i != 17 # 1/2 MB should be enough
8513       do
8514         i=`expr $i + 1`
8515         teststring=$teststring$teststring
8516       done
8517       # Only check the string length outside the loop.
8518       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8519       teststring=
8520       # Add a significant safety factor because C++ compilers can tack on
8521       # massive amounts of additional arguments before passing them to the
8522       # linker.  It appears as though 1/2 is a usable value.
8523       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8524     fi
8525     ;;
8526   esac
8527
8528 fi
8529
8530 if test -n $lt_cv_sys_max_cmd_len ; then
8531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8532 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8533 else
8534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8535 $as_echo "none" >&6; }
8536 fi
8537 max_cmd_len=$lt_cv_sys_max_cmd_len
8538
8539
8540
8541
8542
8543
8544 : ${CP="cp -f"}
8545 : ${MV="mv -f"}
8546 : ${RM="rm -f"}
8547
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8549 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8550 # Try some XSI features
8551 xsi_shell=no
8552 ( _lt_dummy="a/b/c"
8553   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8554       = c,a/b,b/c, \
8555     && eval 'test $(( 1 + 1 )) -eq 2 \
8556     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8557   && xsi_shell=yes
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8559 $as_echo "$xsi_shell" >&6; }
8560
8561
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8563 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8564 lt_shell_append=no
8565 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8566     >/dev/null 2>&1 \
8567   && lt_shell_append=yes
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8569 $as_echo "$lt_shell_append" >&6; }
8570
8571
8572 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8573   lt_unset=unset
8574 else
8575   lt_unset=false
8576 fi
8577
8578
8579
8580
8581
8582 # test EBCDIC or ASCII
8583 case `echo X|tr X '\101'` in
8584  A) # ASCII based system
8585     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8586   lt_SP2NL='tr \040 \012'
8587   lt_NL2SP='tr \015\012 \040\040'
8588   ;;
8589  *) # EBCDIC based system
8590   lt_SP2NL='tr \100 \n'
8591   lt_NL2SP='tr \r\n \100\100'
8592   ;;
8593 esac
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8604 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8605 if ${lt_cv_to_host_file_cmd+:} false; then :
8606   $as_echo_n "(cached) " >&6
8607 else
8608   case $host in
8609   *-*-mingw* )
8610     case $build in
8611       *-*-mingw* ) # actually msys
8612         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8613         ;;
8614       *-*-cygwin* )
8615         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8616         ;;
8617       * ) # otherwise, assume *nix
8618         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8619         ;;
8620     esac
8621     ;;
8622   *-*-cygwin* )
8623     case $build in
8624       *-*-mingw* ) # actually msys
8625         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8626         ;;
8627       *-*-cygwin* )
8628         lt_cv_to_host_file_cmd=func_convert_file_noop
8629         ;;
8630       * ) # otherwise, assume *nix
8631         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8632         ;;
8633     esac
8634     ;;
8635   * ) # unhandled hosts (and "normal" native builds)
8636     lt_cv_to_host_file_cmd=func_convert_file_noop
8637     ;;
8638 esac
8639
8640 fi
8641
8642 to_host_file_cmd=$lt_cv_to_host_file_cmd
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8644 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8645
8646
8647
8648
8649
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8651 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8652 if ${lt_cv_to_tool_file_cmd+:} false; then :
8653   $as_echo_n "(cached) " >&6
8654 else
8655   #assume ordinary cross tools, or native build.
8656 lt_cv_to_tool_file_cmd=func_convert_file_noop
8657 case $host in
8658   *-*-mingw* )
8659     case $build in
8660       *-*-mingw* ) # actually msys
8661         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8662         ;;
8663     esac
8664     ;;
8665 esac
8666
8667 fi
8668
8669 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8671 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8672
8673
8674
8675
8676
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8678 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8679 if ${lt_cv_ld_reload_flag+:} false; then :
8680   $as_echo_n "(cached) " >&6
8681 else
8682   lt_cv_ld_reload_flag='-r'
8683 fi
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8685 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8686 reload_flag=$lt_cv_ld_reload_flag
8687 case $reload_flag in
8688 "" | " "*) ;;
8689 *) reload_flag=" $reload_flag" ;;
8690 esac
8691 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8692 case $host_os in
8693   cygwin* | mingw* | pw32* | cegcc*)
8694     if test "$GCC" != yes; then
8695       reload_cmds=false
8696     fi
8697     ;;
8698   darwin*)
8699     if test "$GCC" = yes; then
8700       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8701     else
8702       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8703     fi
8704     ;;
8705 esac
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715 if test -n "$ac_tool_prefix"; then
8716   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8717 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8719 $as_echo_n "checking for $ac_word... " >&6; }
8720 if ${ac_cv_prog_OBJDUMP+:} false; then :
8721   $as_echo_n "(cached) " >&6
8722 else
8723   if test -n "$OBJDUMP"; then
8724   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8725 else
8726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8727 for as_dir in $PATH
8728 do
8729   IFS=$as_save_IFS
8730   test -z "$as_dir" && as_dir=.
8731     for ac_exec_ext in '' $ac_executable_extensions; do
8732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8733     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8735     break 2
8736   fi
8737 done
8738   done
8739 IFS=$as_save_IFS
8740
8741 fi
8742 fi
8743 OBJDUMP=$ac_cv_prog_OBJDUMP
8744 if test -n "$OBJDUMP"; then
8745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8746 $as_echo "$OBJDUMP" >&6; }
8747 else
8748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8749 $as_echo "no" >&6; }
8750 fi
8751
8752
8753 fi
8754 if test -z "$ac_cv_prog_OBJDUMP"; then
8755   ac_ct_OBJDUMP=$OBJDUMP
8756   # Extract the first word of "objdump", so it can be a program name with args.
8757 set dummy objdump; ac_word=$2
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8759 $as_echo_n "checking for $ac_word... " >&6; }
8760 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8761   $as_echo_n "(cached) " >&6
8762 else
8763   if test -n "$ac_ct_OBJDUMP"; then
8764   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8765 else
8766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8767 for as_dir in $PATH
8768 do
8769   IFS=$as_save_IFS
8770   test -z "$as_dir" && as_dir=.
8771     for ac_exec_ext in '' $ac_executable_extensions; do
8772   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8773     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8775     break 2
8776   fi
8777 done
8778   done
8779 IFS=$as_save_IFS
8780
8781 fi
8782 fi
8783 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8784 if test -n "$ac_ct_OBJDUMP"; then
8785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8786 $as_echo "$ac_ct_OBJDUMP" >&6; }
8787 else
8788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8789 $as_echo "no" >&6; }
8790 fi
8791
8792   if test "x$ac_ct_OBJDUMP" = x; then
8793     OBJDUMP="false"
8794   else
8795     case $cross_compiling:$ac_tool_warned in
8796 yes:)
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8799 ac_tool_warned=yes ;;
8800 esac
8801     OBJDUMP=$ac_ct_OBJDUMP
8802   fi
8803 else
8804   OBJDUMP="$ac_cv_prog_OBJDUMP"
8805 fi
8806
8807 test -z "$OBJDUMP" && OBJDUMP=objdump
8808
8809
8810
8811
8812
8813
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8815 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8816 if ${lt_cv_deplibs_check_method+:} false; then :
8817   $as_echo_n "(cached) " >&6
8818 else
8819   lt_cv_file_magic_cmd='$MAGIC_CMD'
8820 lt_cv_file_magic_test_file=
8821 lt_cv_deplibs_check_method='unknown'
8822 # Need to set the preceding variable on all platforms that support
8823 # interlibrary dependencies.
8824 # 'none' -- dependencies not supported.
8825 # `unknown' -- same as none, but documents that we really don't know.
8826 # 'pass_all' -- all dependencies passed with no checks.
8827 # 'test_compile' -- check by making test program.
8828 # 'file_magic [[regex]]' -- check by looking for files in library path
8829 # which responds to the $file_magic_cmd with a given extended regex.
8830 # If you have `file' or equivalent on your system and you're not sure
8831 # whether `pass_all' will *always* work, you probably want this one.
8832
8833 case $host_os in
8834 aix[4-9]*)
8835   lt_cv_deplibs_check_method=pass_all
8836   ;;
8837
8838 beos*)
8839   lt_cv_deplibs_check_method=pass_all
8840   ;;
8841
8842 bsdi[45]*)
8843   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8844   lt_cv_file_magic_cmd='/usr/bin/file -L'
8845   lt_cv_file_magic_test_file=/shlib/libc.so
8846   ;;
8847
8848 cygwin*)
8849   # func_win32_libid is a shell function defined in ltmain.sh
8850   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8851   lt_cv_file_magic_cmd='func_win32_libid'
8852   ;;
8853
8854 mingw* | pw32*)
8855   # Base MSYS/MinGW do not provide the 'file' command needed by
8856   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8857   # unless we find 'file', for example because we are cross-compiling.
8858   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8859   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8860     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8861     lt_cv_file_magic_cmd='func_win32_libid'
8862   else
8863     # Keep this pattern in sync with the one in func_win32_libid.
8864     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8865     lt_cv_file_magic_cmd='$OBJDUMP -f'
8866   fi
8867   ;;
8868
8869 cegcc*)
8870   # use the weaker test based on 'objdump'. See mingw*.
8871   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8872   lt_cv_file_magic_cmd='$OBJDUMP -f'
8873   ;;
8874
8875 darwin* | rhapsody*)
8876   lt_cv_deplibs_check_method=pass_all
8877   ;;
8878
8879 freebsd* | dragonfly*)
8880   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8881     case $host_cpu in
8882     i*86 )
8883       # Not sure whether the presence of OpenBSD here was a mistake.
8884       # Let's accept both of them until this is cleared up.
8885       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8886       lt_cv_file_magic_cmd=/usr/bin/file
8887       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8888       ;;
8889     esac
8890   else
8891     lt_cv_deplibs_check_method=pass_all
8892   fi
8893   ;;
8894
8895 haiku*)
8896   lt_cv_deplibs_check_method=pass_all
8897   ;;
8898
8899 hpux10.20* | hpux11*)
8900   lt_cv_file_magic_cmd=/usr/bin/file
8901   case $host_cpu in
8902   ia64*)
8903     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8904     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8905     ;;
8906   hppa*64*)
8907     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]'
8908     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8909     ;;
8910   *)
8911     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8912     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8913     ;;
8914   esac
8915   ;;
8916
8917 interix[3-9]*)
8918   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8919   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8920   ;;
8921
8922 irix5* | irix6* | nonstopux*)
8923   case $LD in
8924   *-32|*"-32 ") libmagic=32-bit;;
8925   *-n32|*"-n32 ") libmagic=N32;;
8926   *-64|*"-64 ") libmagic=64-bit;;
8927   *) libmagic=never-match;;
8928   esac
8929   lt_cv_deplibs_check_method=pass_all
8930   ;;
8931
8932 # This must be glibc/ELF.
8933 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8934   lt_cv_deplibs_check_method=pass_all
8935   ;;
8936
8937 netbsd* | netbsdelf*-gnu)
8938   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8939     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8940   else
8941     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8942   fi
8943   ;;
8944
8945 newos6*)
8946   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8947   lt_cv_file_magic_cmd=/usr/bin/file
8948   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8949   ;;
8950
8951 *nto* | *qnx*)
8952   lt_cv_deplibs_check_method=pass_all
8953   ;;
8954
8955 openbsd*)
8956   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8957     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8958   else
8959     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8960   fi
8961   ;;
8962
8963 osf3* | osf4* | osf5*)
8964   lt_cv_deplibs_check_method=pass_all
8965   ;;
8966
8967 rdos*)
8968   lt_cv_deplibs_check_method=pass_all
8969   ;;
8970
8971 solaris*)
8972   lt_cv_deplibs_check_method=pass_all
8973   ;;
8974
8975 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8976   lt_cv_deplibs_check_method=pass_all
8977   ;;
8978
8979 sysv4 | sysv4.3*)
8980   case $host_vendor in
8981   motorola)
8982     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]'
8983     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8984     ;;
8985   ncr)
8986     lt_cv_deplibs_check_method=pass_all
8987     ;;
8988   sequent)
8989     lt_cv_file_magic_cmd='/bin/file'
8990     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8991     ;;
8992   sni)
8993     lt_cv_file_magic_cmd='/bin/file'
8994     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8995     lt_cv_file_magic_test_file=/lib/libc.so
8996     ;;
8997   siemens)
8998     lt_cv_deplibs_check_method=pass_all
8999     ;;
9000   pc)
9001     lt_cv_deplibs_check_method=pass_all
9002     ;;
9003   esac
9004   ;;
9005
9006 tpf*)
9007   lt_cv_deplibs_check_method=pass_all
9008   ;;
9009 esac
9010
9011 fi
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9013 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9014
9015 file_magic_glob=
9016 want_nocaseglob=no
9017 if test "$build" = "$host"; then
9018   case $host_os in
9019   mingw* | pw32*)
9020     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9021       want_nocaseglob=yes
9022     else
9023       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9024     fi
9025     ;;
9026   esac
9027 fi
9028
9029 file_magic_cmd=$lt_cv_file_magic_cmd
9030 deplibs_check_method=$lt_cv_deplibs_check_method
9031 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054 if test -n "$ac_tool_prefix"; then
9055   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9056 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9058 $as_echo_n "checking for $ac_word... " >&6; }
9059 if ${ac_cv_prog_DLLTOOL+:} false; then :
9060   $as_echo_n "(cached) " >&6
9061 else
9062   if test -n "$DLLTOOL"; then
9063   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9064 else
9065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9066 for as_dir in $PATH
9067 do
9068   IFS=$as_save_IFS
9069   test -z "$as_dir" && as_dir=.
9070     for ac_exec_ext in '' $ac_executable_extensions; do
9071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9072     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9074     break 2
9075   fi
9076 done
9077   done
9078 IFS=$as_save_IFS
9079
9080 fi
9081 fi
9082 DLLTOOL=$ac_cv_prog_DLLTOOL
9083 if test -n "$DLLTOOL"; then
9084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9085 $as_echo "$DLLTOOL" >&6; }
9086 else
9087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088 $as_echo "no" >&6; }
9089 fi
9090
9091
9092 fi
9093 if test -z "$ac_cv_prog_DLLTOOL"; then
9094   ac_ct_DLLTOOL=$DLLTOOL
9095   # Extract the first word of "dlltool", so it can be a program name with args.
9096 set dummy dlltool; ac_word=$2
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9098 $as_echo_n "checking for $ac_word... " >&6; }
9099 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9100   $as_echo_n "(cached) " >&6
9101 else
9102   if test -n "$ac_ct_DLLTOOL"; then
9103   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9104 else
9105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9106 for as_dir in $PATH
9107 do
9108   IFS=$as_save_IFS
9109   test -z "$as_dir" && as_dir=.
9110     for ac_exec_ext in '' $ac_executable_extensions; do
9111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9112     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9114     break 2
9115   fi
9116 done
9117   done
9118 IFS=$as_save_IFS
9119
9120 fi
9121 fi
9122 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9123 if test -n "$ac_ct_DLLTOOL"; then
9124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9125 $as_echo "$ac_ct_DLLTOOL" >&6; }
9126 else
9127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9128 $as_echo "no" >&6; }
9129 fi
9130
9131   if test "x$ac_ct_DLLTOOL" = x; then
9132     DLLTOOL="false"
9133   else
9134     case $cross_compiling:$ac_tool_warned in
9135 yes:)
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9138 ac_tool_warned=yes ;;
9139 esac
9140     DLLTOOL=$ac_ct_DLLTOOL
9141   fi
9142 else
9143   DLLTOOL="$ac_cv_prog_DLLTOOL"
9144 fi
9145
9146 test -z "$DLLTOOL" && DLLTOOL=dlltool
9147
9148
9149
9150
9151
9152
9153
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9155 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9156 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9157   $as_echo_n "(cached) " >&6
9158 else
9159   lt_cv_sharedlib_from_linklib_cmd='unknown'
9160
9161 case $host_os in
9162 cygwin* | mingw* | pw32* | cegcc*)
9163   # two different shell functions defined in ltmain.sh
9164   # decide which to use based on capabilities of $DLLTOOL
9165   case `$DLLTOOL --help 2>&1` in
9166   *--identify-strict*)
9167     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9168     ;;
9169   *)
9170     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9171     ;;
9172   esac
9173   ;;
9174 *)
9175   # fallback: assume linklib IS sharedlib
9176   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
9177   ;;
9178 esac
9179
9180 fi
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9182 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9183 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9184 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9185
9186
9187
9188
9189
9190
9191
9192 if test -n "$ac_tool_prefix"; then
9193   for ac_prog in ar
9194   do
9195     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9196 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9198 $as_echo_n "checking for $ac_word... " >&6; }
9199 if ${ac_cv_prog_AR+:} false; then :
9200   $as_echo_n "(cached) " >&6
9201 else
9202   if test -n "$AR"; then
9203   ac_cv_prog_AR="$AR" # Let the user override the test.
9204 else
9205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9206 for as_dir in $PATH
9207 do
9208   IFS=$as_save_IFS
9209   test -z "$as_dir" && as_dir=.
9210     for ac_exec_ext in '' $ac_executable_extensions; do
9211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9212     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9214     break 2
9215   fi
9216 done
9217   done
9218 IFS=$as_save_IFS
9219
9220 fi
9221 fi
9222 AR=$ac_cv_prog_AR
9223 if test -n "$AR"; then
9224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9225 $as_echo "$AR" >&6; }
9226 else
9227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9228 $as_echo "no" >&6; }
9229 fi
9230
9231
9232     test -n "$AR" && break
9233   done
9234 fi
9235 if test -z "$AR"; then
9236   ac_ct_AR=$AR
9237   for ac_prog in ar
9238 do
9239   # Extract the first word of "$ac_prog", so it can be a program name with args.
9240 set dummy $ac_prog; ac_word=$2
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9242 $as_echo_n "checking for $ac_word... " >&6; }
9243 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9244   $as_echo_n "(cached) " >&6
9245 else
9246   if test -n "$ac_ct_AR"; then
9247   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9248 else
9249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9250 for as_dir in $PATH
9251 do
9252   IFS=$as_save_IFS
9253   test -z "$as_dir" && as_dir=.
9254     for ac_exec_ext in '' $ac_executable_extensions; do
9255   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9256     ac_cv_prog_ac_ct_AR="$ac_prog"
9257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9258     break 2
9259   fi
9260 done
9261   done
9262 IFS=$as_save_IFS
9263
9264 fi
9265 fi
9266 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9267 if test -n "$ac_ct_AR"; then
9268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9269 $as_echo "$ac_ct_AR" >&6; }
9270 else
9271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9272 $as_echo "no" >&6; }
9273 fi
9274
9275
9276   test -n "$ac_ct_AR" && break
9277 done
9278
9279   if test "x$ac_ct_AR" = x; then
9280     AR="false"
9281   else
9282     case $cross_compiling:$ac_tool_warned in
9283 yes:)
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9286 ac_tool_warned=yes ;;
9287 esac
9288     AR=$ac_ct_AR
9289   fi
9290 fi
9291
9292 : ${AR=ar}
9293 : ${AR_FLAGS=cru}
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9306 $as_echo_n "checking for archiver @FILE support... " >&6; }
9307 if ${lt_cv_ar_at_file+:} false; then :
9308   $as_echo_n "(cached) " >&6
9309 else
9310   lt_cv_ar_at_file=no
9311    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9312 /* end confdefs.h.  */
9313
9314 int main (void)
9315 {
9316
9317  ;
9318  return 0;
9319 }
9320 _ACEOF
9321 if ac_fn_c_try_compile "$LINENO"; then :
9322   echo conftest.$ac_objext > conftest.lst
9323       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9324       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9325   (eval $lt_ar_try) 2>&5
9326   ac_status=$?
9327   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9328   test $ac_status = 0; }
9329       if test "$ac_status" -eq 0; then
9330         # Ensure the archiver fails upon bogus file names.
9331         rm -f conftest.$ac_objext libconftest.a
9332         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9333   (eval $lt_ar_try) 2>&5
9334   ac_status=$?
9335   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9336   test $ac_status = 0; }
9337         if test "$ac_status" -ne 0; then
9338           lt_cv_ar_at_file=@
9339         fi
9340       fi
9341       rm -f conftest.* libconftest.a
9342
9343 fi
9344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9345
9346 fi
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9348 $as_echo "$lt_cv_ar_at_file" >&6; }
9349
9350 if test "x$lt_cv_ar_at_file" = xno; then
9351   archiver_list_spec=
9352 else
9353   archiver_list_spec=$lt_cv_ar_at_file
9354 fi
9355
9356
9357
9358
9359
9360
9361
9362 if test -n "$ac_tool_prefix"; then
9363   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9364 set dummy ${ac_tool_prefix}strip; ac_word=$2
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9366 $as_echo_n "checking for $ac_word... " >&6; }
9367 if ${ac_cv_prog_STRIP+:} false; then :
9368   $as_echo_n "(cached) " >&6
9369 else
9370   if test -n "$STRIP"; then
9371   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9372 else
9373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9374 for as_dir in $PATH
9375 do
9376   IFS=$as_save_IFS
9377   test -z "$as_dir" && as_dir=.
9378     for ac_exec_ext in '' $ac_executable_extensions; do
9379   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9380     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9382     break 2
9383   fi
9384 done
9385   done
9386 IFS=$as_save_IFS
9387
9388 fi
9389 fi
9390 STRIP=$ac_cv_prog_STRIP
9391 if test -n "$STRIP"; then
9392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9393 $as_echo "$STRIP" >&6; }
9394 else
9395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9396 $as_echo "no" >&6; }
9397 fi
9398
9399
9400 fi
9401 if test -z "$ac_cv_prog_STRIP"; then
9402   ac_ct_STRIP=$STRIP
9403   # Extract the first word of "strip", so it can be a program name with args.
9404 set dummy strip; ac_word=$2
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9406 $as_echo_n "checking for $ac_word... " >&6; }
9407 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9408   $as_echo_n "(cached) " >&6
9409 else
9410   if test -n "$ac_ct_STRIP"; then
9411   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9412 else
9413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9414 for as_dir in $PATH
9415 do
9416   IFS=$as_save_IFS
9417   test -z "$as_dir" && as_dir=.
9418     for ac_exec_ext in '' $ac_executable_extensions; do
9419   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9420     ac_cv_prog_ac_ct_STRIP="strip"
9421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9422     break 2
9423   fi
9424 done
9425   done
9426 IFS=$as_save_IFS
9427
9428 fi
9429 fi
9430 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9431 if test -n "$ac_ct_STRIP"; then
9432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9433 $as_echo "$ac_ct_STRIP" >&6; }
9434 else
9435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9436 $as_echo "no" >&6; }
9437 fi
9438
9439   if test "x$ac_ct_STRIP" = x; then
9440     STRIP=":"
9441   else
9442     case $cross_compiling:$ac_tool_warned in
9443 yes:)
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9446 ac_tool_warned=yes ;;
9447 esac
9448     STRIP=$ac_ct_STRIP
9449   fi
9450 else
9451   STRIP="$ac_cv_prog_STRIP"
9452 fi
9453
9454 test -z "$STRIP" && STRIP=:
9455
9456
9457
9458
9459
9460
9461 if test -n "$ac_tool_prefix"; then
9462   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9463 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9465 $as_echo_n "checking for $ac_word... " >&6; }
9466 if ${ac_cv_prog_RANLIB+:} false; then :
9467   $as_echo_n "(cached) " >&6
9468 else
9469   if test -n "$RANLIB"; then
9470   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9471 else
9472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9473 for as_dir in $PATH
9474 do
9475   IFS=$as_save_IFS
9476   test -z "$as_dir" && as_dir=.
9477     for ac_exec_ext in '' $ac_executable_extensions; do
9478   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9479     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9481     break 2
9482   fi
9483 done
9484   done
9485 IFS=$as_save_IFS
9486
9487 fi
9488 fi
9489 RANLIB=$ac_cv_prog_RANLIB
9490 if test -n "$RANLIB"; then
9491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9492 $as_echo "$RANLIB" >&6; }
9493 else
9494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9495 $as_echo "no" >&6; }
9496 fi
9497
9498
9499 fi
9500 if test -z "$ac_cv_prog_RANLIB"; then
9501   ac_ct_RANLIB=$RANLIB
9502   # Extract the first word of "ranlib", so it can be a program name with args.
9503 set dummy ranlib; ac_word=$2
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9505 $as_echo_n "checking for $ac_word... " >&6; }
9506 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9507   $as_echo_n "(cached) " >&6
9508 else
9509   if test -n "$ac_ct_RANLIB"; then
9510   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9511 else
9512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9513 for as_dir in $PATH
9514 do
9515   IFS=$as_save_IFS
9516   test -z "$as_dir" && as_dir=.
9517     for ac_exec_ext in '' $ac_executable_extensions; do
9518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9519     ac_cv_prog_ac_ct_RANLIB="ranlib"
9520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9521     break 2
9522   fi
9523 done
9524   done
9525 IFS=$as_save_IFS
9526
9527 fi
9528 fi
9529 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9530 if test -n "$ac_ct_RANLIB"; then
9531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9532 $as_echo "$ac_ct_RANLIB" >&6; }
9533 else
9534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9535 $as_echo "no" >&6; }
9536 fi
9537
9538   if test "x$ac_ct_RANLIB" = x; then
9539     RANLIB=":"
9540   else
9541     case $cross_compiling:$ac_tool_warned in
9542 yes:)
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9545 ac_tool_warned=yes ;;
9546 esac
9547     RANLIB=$ac_ct_RANLIB
9548   fi
9549 else
9550   RANLIB="$ac_cv_prog_RANLIB"
9551 fi
9552
9553 test -z "$RANLIB" && RANLIB=:
9554
9555
9556
9557
9558
9559
9560 # Determine commands to create old-style static archives.
9561 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9562 old_postinstall_cmds='chmod 644 $oldlib'
9563 old_postuninstall_cmds=
9564
9565 if test -n "$RANLIB"; then
9566   case $host_os in
9567   openbsd*)
9568     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9569     ;;
9570   *)
9571     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9572     ;;
9573   esac
9574   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9575 fi
9576
9577 case $host_os in
9578   darwin*)
9579     lock_old_archive_extraction=yes ;;
9580   *)
9581     lock_old_archive_extraction=no ;;
9582 esac
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622 # If no C compiler was specified, use CC.
9623 LTCC=${LTCC-"$CC"}
9624
9625 # If no C compiler flags were specified, use CFLAGS.
9626 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9627
9628 # Allow CC to be a program name with arguments.
9629 compiler=$CC
9630
9631
9632 # Check for command to grab the raw symbol name followed by C symbol from nm.
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9634 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9635 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9636   $as_echo_n "(cached) " >&6
9637 else
9638
9639 # These are sane defaults that work on at least a few old systems.
9640 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9641
9642 # Character class describing NM global symbol codes.
9643 symcode='[BCDEGRST]'
9644
9645 # Regexp to match symbols that can be accessed directly from C.
9646 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9647
9648 # Define system-specific variables.
9649 case $host_os in
9650 aix*)
9651   symcode='[BCDT]'
9652   ;;
9653 cygwin* | mingw* | pw32* | cegcc*)
9654   symcode='[ABCDGISTW]'
9655   ;;
9656 hpux*)
9657   if test "$host_cpu" = ia64; then
9658     symcode='[ABCDEGRST]'
9659   fi
9660   ;;
9661 irix* | nonstopux*)
9662   symcode='[BCDEGRST]'
9663   ;;
9664 osf*)
9665   symcode='[BCDEGQRST]'
9666   ;;
9667 solaris*)
9668   symcode='[BDRT]'
9669   ;;
9670 sco3.2v5*)
9671   symcode='[DT]'
9672   ;;
9673 sysv4.2uw2*)
9674   symcode='[DT]'
9675   ;;
9676 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9677   symcode='[ABDT]'
9678   ;;
9679 sysv4)
9680   symcode='[DFNSTU]'
9681   ;;
9682 esac
9683
9684 # If we're using GNU nm, then use its standard symbol codes.
9685 case `$NM -V 2>&1` in
9686 *GNU* | *'with BFD'*)
9687   symcode='[ABCDGIRSTW]' ;;
9688 esac
9689
9690 # Transform an extracted symbol line into a proper C declaration.
9691 # Some systems (esp. on ia64) link data and code symbols differently,
9692 # so use this general approach.
9693 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9694
9695 # Transform an extracted symbol line into symbol name and symbol address
9696 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
9697 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'"
9698
9699 # Handle CRLF in mingw tool chain
9700 opt_cr=
9701 case $build_os in
9702 mingw*)
9703   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9704   ;;
9705 esac
9706
9707 # Try without a prefix underscore, then with it.
9708 for ac_symprfx in "" "_"; do
9709
9710   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9711   symxfrm="\\1 $ac_symprfx\\2 \\2"
9712
9713   # Write the raw and C identifiers.
9714   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9715     # Fake it for dumpbin and say T for any non-static function
9716     # and D for any global variable.
9717     # Also find C++ and __fastcall symbols from MSVC++,
9718     # which start with @ or ?.
9719     lt_cv_sys_global_symbol_pipe="$AWK '"\
9720 "     {last_section=section; section=\$ 3};"\
9721 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9722 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9723 "     \$ 0!~/External *\|/{next};"\
9724 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9725 "     {if(hide[section]) next};"\
9726 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9727 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9728 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
9729 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9730 "     ' prfx=^$ac_symprfx"
9731   else
9732     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9733   fi
9734   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9735
9736   # Check to see that the pipe works correctly.
9737   pipe_works=no
9738
9739   rm -f conftest*
9740   cat > conftest.$ac_ext <<_LT_EOF
9741 #ifdef __cplusplus
9742 extern "C" {
9743 #endif
9744 char nm_test_var;
9745 void nm_test_func(void);
9746 void nm_test_func(void){}
9747 #ifdef __cplusplus
9748 }
9749 #endif
9750 int main(){nm_test_var='a';nm_test_func();return(0);}
9751 _LT_EOF
9752
9753   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9754   (eval $ac_compile) 2>&5
9755   ac_status=$?
9756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9757   test $ac_status = 0; }; then
9758     # Now try to grab the symbols.
9759     nlist=conftest.nm
9760     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9761   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9762   ac_status=$?
9763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9764   test $ac_status = 0; } && test -s "$nlist"; then
9765       # Try sorting and uniquifying the output.
9766       if sort "$nlist" | uniq > "$nlist"T; then
9767         mv -f "$nlist"T "$nlist"
9768       else
9769         rm -f "$nlist"T
9770       fi
9771
9772       # Make sure that we snagged all the symbols we need.
9773       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9774         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9775           cat <<_LT_EOF > conftest.$ac_ext
9776 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9777 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9778 /* DATA imports from DLLs on WIN32 con't be const, because runtime
9779    relocations are performed -- see ld's documentation on pseudo-relocs.  */
9780 # define LT_DLSYM_CONST
9781 #elif defined(__osf__)
9782 /* This system does not cope well with relocations in const data.  */
9783 # define LT_DLSYM_CONST
9784 #else
9785 # define LT_DLSYM_CONST const
9786 #endif
9787
9788 #ifdef __cplusplus
9789 extern "C" {
9790 #endif
9791
9792 _LT_EOF
9793           # Now generate the symbol file.
9794           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9795
9796           cat <<_LT_EOF >> conftest.$ac_ext
9797
9798 /* The mapping between symbol names and symbols.  */
9799 LT_DLSYM_CONST struct {
9800   const char *name;
9801   void       *address;
9802 }
9803 lt__PROGRAM__LTX_preloaded_symbols[] =
9804 {
9805   { "@PROGRAM@", (void *) 0 },
9806 _LT_EOF
9807           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9808           cat <<\_LT_EOF >> conftest.$ac_ext
9809   {0, (void *) 0}
9810 };
9811
9812 /* This works around a problem in FreeBSD linker */
9813 #ifdef FREEBSD_WORKAROUND
9814 static const void *lt_preloaded_setup() {
9815   return lt__PROGRAM__LTX_preloaded_symbols;
9816 }
9817 #endif
9818
9819 #ifdef __cplusplus
9820 }
9821 #endif
9822 _LT_EOF
9823           # Now try linking the two files.
9824           mv -f conftest.$ac_objext conftstm.$ac_objext
9825           lt_globsym_save_LIBS=$LIBS
9826           lt_globsym_save_CFLAGS=$CFLAGS
9827           LIBS="conftstm.$ac_objext"
9828           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9829           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9830   (eval $ac_link) 2>&5
9831   ac_status=$?
9832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9833   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9834             pipe_works=yes
9835           fi
9836           LIBS=$lt_globsym_save_LIBS
9837           CFLAGS=$lt_globsym_save_CFLAGS
9838         else
9839           echo "cannot find nm_test_func in $nlist" >&5
9840         fi
9841       else
9842         echo "cannot find nm_test_var in $nlist" >&5
9843       fi
9844     else
9845       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9846     fi
9847   else
9848     echo "$progname: failed program was:" >&5
9849     cat conftest.$ac_ext >&5
9850   fi
9851   rm -rf conftest* conftst*
9852
9853   # Do not use the global_symbol_pipe unless it works.
9854   if test "$pipe_works" = yes; then
9855     break
9856   else
9857     lt_cv_sys_global_symbol_pipe=
9858   fi
9859 done
9860
9861 fi
9862
9863 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9864   lt_cv_sys_global_symbol_to_cdecl=
9865 fi
9866 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9868 $as_echo "failed" >&6; }
9869 else
9870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9871 $as_echo "ok" >&6; }
9872 fi
9873
9874 # Response file support.
9875 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9876   nm_file_list_spec='@'
9877 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9878   nm_file_list_spec='@'
9879 fi
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9908 $as_echo_n "checking for sysroot... " >&6; }
9909
9910 # Check whether --with-sysroot was given.
9911 if test "${with_sysroot+set}" = set; then :
9912   withval=$with_sysroot;
9913 else
9914   with_sysroot=no
9915 fi
9916
9917
9918 lt_sysroot=
9919 case ${with_sysroot} in #(
9920  yes)
9921    if test "$GCC" = yes; then
9922      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9923    fi
9924    ;; #(
9925  /*)
9926    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9927    ;; #(
9928  no|'')
9929    ;; #(
9930  *)
9931    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9932 $as_echo "${with_sysroot}" >&6; }
9933    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9934    ;;
9935 esac
9936
9937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9938 $as_echo "${lt_sysroot:-no}" >&6; }
9939
9940
9941
9942
9943
9944 # Check whether --enable-libtool-lock was given.
9945 if test "${enable_libtool_lock+set}" = set; then :
9946   enableval=$enable_libtool_lock;
9947 fi
9948
9949 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9950
9951 # Some flags need to be propagated to the compiler or linker for good
9952 # libtool support.
9953 case $host in
9954 ia64-*-hpux*)
9955   # Find out which ABI we are using.
9956   echo 'int i;' > conftest.$ac_ext
9957   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9958   (eval $ac_compile) 2>&5
9959   ac_status=$?
9960   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9961   test $ac_status = 0; }; then
9962     case `/usr/bin/file conftest.$ac_objext` in
9963       *ELF-32*)
9964         HPUX_IA64_MODE="32"
9965         ;;
9966       *ELF-64*)
9967         HPUX_IA64_MODE="64"
9968         ;;
9969     esac
9970   fi
9971   rm -rf conftest*
9972   ;;
9973 *-*-irix6*)
9974   # Find out which ABI we are using.
9975   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9976   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9977   (eval $ac_compile) 2>&5
9978   ac_status=$?
9979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9980   test $ac_status = 0; }; then
9981     if test "$lt_cv_prog_gnu_ld" = yes; then
9982       case `/usr/bin/file conftest.$ac_objext` in
9983         *32-bit*)
9984           LD="${LD-ld} -melf32bsmip"
9985           ;;
9986         *N32*)
9987           LD="${LD-ld} -melf32bmipn32"
9988           ;;
9989         *64-bit*)
9990           LD="${LD-ld} -melf64bmip"
9991         ;;
9992       esac
9993     else
9994       case `/usr/bin/file conftest.$ac_objext` in
9995         *32-bit*)
9996           LD="${LD-ld} -32"
9997           ;;
9998         *N32*)
9999           LD="${LD-ld} -n32"
10000           ;;
10001         *64-bit*)
10002           LD="${LD-ld} -64"
10003           ;;
10004       esac
10005     fi
10006   fi
10007   rm -rf conftest*
10008   ;;
10009
10010 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10011 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10012   # Find out which ABI we are using.
10013   echo 'int i;' > conftest.$ac_ext
10014   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10015   (eval $ac_compile) 2>&5
10016   ac_status=$?
10017   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10018   test $ac_status = 0; }; then
10019     case `/usr/bin/file conftest.o` in
10020       *32-bit*)
10021         case $host in
10022           x86_64-*kfreebsd*-gnu)
10023             LD="${LD-ld} -m elf_i386_fbsd"
10024             ;;
10025           x86_64-*linux*)
10026             case `/usr/bin/file conftest.o` in
10027               *x86-64*)
10028                 LD="${LD-ld} -m elf32_x86_64"
10029                 ;;
10030               *)
10031                 LD="${LD-ld} -m elf_i386"
10032                 ;;
10033             esac
10034             ;;
10035           powerpc64le-*)
10036             LD="${LD-ld} -m elf32lppclinux"
10037             ;;
10038           powerpc64-*)
10039             LD="${LD-ld} -m elf32ppclinux"
10040             ;;
10041           s390x-*linux*)
10042             LD="${LD-ld} -m elf_s390"
10043             ;;
10044           sparc64-*linux*)
10045             LD="${LD-ld} -m elf32_sparc"
10046             ;;
10047         esac
10048         ;;
10049       *64-bit*)
10050         case $host in
10051           x86_64-*kfreebsd*-gnu)
10052             LD="${LD-ld} -m elf_x86_64_fbsd"
10053             ;;
10054           x86_64-*linux*)
10055             LD="${LD-ld} -m elf_x86_64"
10056             ;;
10057           powerpcle-*)
10058             LD="${LD-ld} -m elf64lppc"
10059             ;;
10060           powerpc-*)
10061             LD="${LD-ld} -m elf64ppc"
10062             ;;
10063           s390*-*linux*|s390*-*tpf*)
10064             LD="${LD-ld} -m elf64_s390"
10065             ;;
10066           sparc*-*linux*)
10067             LD="${LD-ld} -m elf64_sparc"
10068             ;;
10069         esac
10070         ;;
10071     esac
10072   fi
10073   rm -rf conftest*
10074   ;;
10075
10076 *-*-sco3.2v5*)
10077   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10078   SAVE_CFLAGS="$CFLAGS"
10079   CFLAGS="$CFLAGS -belf"
10080   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10081 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10082 if ${lt_cv_cc_needs_belf+:} false; then :
10083   $as_echo_n "(cached) " >&6
10084 else
10085   ac_ext=c
10086 ac_cpp='$CPP $CPPFLAGS'
10087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10090
10091      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10092 /* end confdefs.h.  */
10093
10094 int main (void)
10095 {
10096
10097  ;
10098  return 0;
10099 }
10100 _ACEOF
10101 if ac_fn_c_try_link "$LINENO"; then :
10102   lt_cv_cc_needs_belf=yes
10103 else
10104   lt_cv_cc_needs_belf=no
10105 fi
10106 rm -f core conftest.err conftest.$ac_objext \
10107     conftest$ac_exeext conftest.$ac_ext
10108      ac_ext=c
10109 ac_cpp='$CPP $CPPFLAGS'
10110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10113
10114 fi
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10116 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10117   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10118     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10119     CFLAGS="$SAVE_CFLAGS"
10120   fi
10121   ;;
10122 *-*solaris*)
10123   # Find out which ABI we are using.
10124   echo 'int i;' > conftest.$ac_ext
10125   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10126   (eval $ac_compile) 2>&5
10127   ac_status=$?
10128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10129   test $ac_status = 0; }; then
10130     case `/usr/bin/file conftest.o` in
10131     *64-bit*)
10132       case $lt_cv_prog_gnu_ld in
10133       yes*)
10134         case $host in
10135         i?86-*-solaris*)
10136           LD="${LD-ld} -m elf_x86_64"
10137           ;;
10138         sparc*-*-solaris*)
10139           LD="${LD-ld} -m elf64_sparc"
10140           ;;
10141         esac
10142         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
10143         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10144           LD="${LD-ld}_sol2"
10145         fi
10146         ;;
10147       *)
10148         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10149           LD="${LD-ld} -64"
10150         fi
10151         ;;
10152       esac
10153       ;;
10154     esac
10155   fi
10156   rm -rf conftest*
10157   ;;
10158 esac
10159
10160 need_locks="$enable_libtool_lock"
10161
10162 if test -n "$ac_tool_prefix"; then
10163   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10164 set dummy ${ac_tool_prefix}mt; ac_word=$2
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10166 $as_echo_n "checking for $ac_word... " >&6; }
10167 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10168   $as_echo_n "(cached) " >&6
10169 else
10170   if test -n "$MANIFEST_TOOL"; then
10171   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10172 else
10173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10174 for as_dir in $PATH
10175 do
10176   IFS=$as_save_IFS
10177   test -z "$as_dir" && as_dir=.
10178     for ac_exec_ext in '' $ac_executable_extensions; do
10179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10180     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10182     break 2
10183   fi
10184 done
10185   done
10186 IFS=$as_save_IFS
10187
10188 fi
10189 fi
10190 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10191 if test -n "$MANIFEST_TOOL"; then
10192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10193 $as_echo "$MANIFEST_TOOL" >&6; }
10194 else
10195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10196 $as_echo "no" >&6; }
10197 fi
10198
10199
10200 fi
10201 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10202   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10203   # Extract the first word of "mt", so it can be a program name with args.
10204 set dummy mt; ac_word=$2
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10206 $as_echo_n "checking for $ac_word... " >&6; }
10207 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10208   $as_echo_n "(cached) " >&6
10209 else
10210   if test -n "$ac_ct_MANIFEST_TOOL"; then
10211   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10212 else
10213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10214 for as_dir in $PATH
10215 do
10216   IFS=$as_save_IFS
10217   test -z "$as_dir" && as_dir=.
10218     for ac_exec_ext in '' $ac_executable_extensions; do
10219   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10220     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10222     break 2
10223   fi
10224 done
10225   done
10226 IFS=$as_save_IFS
10227
10228 fi
10229 fi
10230 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10231 if test -n "$ac_ct_MANIFEST_TOOL"; then
10232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10233 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10234 else
10235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10236 $as_echo "no" >&6; }
10237 fi
10238
10239   if test "x$ac_ct_MANIFEST_TOOL" = x; then
10240     MANIFEST_TOOL=":"
10241   else
10242     case $cross_compiling:$ac_tool_warned in
10243 yes:)
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10246 ac_tool_warned=yes ;;
10247 esac
10248     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10249   fi
10250 else
10251   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10252 fi
10253
10254 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10256 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10257 if ${lt_cv_path_mainfest_tool+:} false; then :
10258   $as_echo_n "(cached) " >&6
10259 else
10260   lt_cv_path_mainfest_tool=no
10261   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10262   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10263   cat conftest.err >&5
10264   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10265     lt_cv_path_mainfest_tool=yes
10266   fi
10267   rm -f conftest*
10268 fi
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10270 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10271 if test "x$lt_cv_path_mainfest_tool" != xyes; then
10272   MANIFEST_TOOL=:
10273 fi
10274
10275
10276
10277
10278
10279
10280   case $host_os in
10281     rhapsody* | darwin*)
10282     if test -n "$ac_tool_prefix"; then
10283   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10284 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10286 $as_echo_n "checking for $ac_word... " >&6; }
10287 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10288   $as_echo_n "(cached) " >&6
10289 else
10290   if test -n "$DSYMUTIL"; then
10291   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10292 else
10293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10294 for as_dir in $PATH
10295 do
10296   IFS=$as_save_IFS
10297   test -z "$as_dir" && as_dir=.
10298     for ac_exec_ext in '' $ac_executable_extensions; do
10299   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10300     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10302     break 2
10303   fi
10304 done
10305   done
10306 IFS=$as_save_IFS
10307
10308 fi
10309 fi
10310 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10311 if test -n "$DSYMUTIL"; then
10312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10313 $as_echo "$DSYMUTIL" >&6; }
10314 else
10315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10316 $as_echo "no" >&6; }
10317 fi
10318
10319
10320 fi
10321 if test -z "$ac_cv_prog_DSYMUTIL"; then
10322   ac_ct_DSYMUTIL=$DSYMUTIL
10323   # Extract the first word of "dsymutil", so it can be a program name with args.
10324 set dummy dsymutil; ac_word=$2
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10326 $as_echo_n "checking for $ac_word... " >&6; }
10327 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10328   $as_echo_n "(cached) " >&6
10329 else
10330   if test -n "$ac_ct_DSYMUTIL"; then
10331   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10332 else
10333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10334 for as_dir in $PATH
10335 do
10336   IFS=$as_save_IFS
10337   test -z "$as_dir" && as_dir=.
10338     for ac_exec_ext in '' $ac_executable_extensions; do
10339   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10340     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10342     break 2
10343   fi
10344 done
10345   done
10346 IFS=$as_save_IFS
10347
10348 fi
10349 fi
10350 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10351 if test -n "$ac_ct_DSYMUTIL"; then
10352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10353 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10354 else
10355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10356 $as_echo "no" >&6; }
10357 fi
10358
10359   if test "x$ac_ct_DSYMUTIL" = x; then
10360     DSYMUTIL=":"
10361   else
10362     case $cross_compiling:$ac_tool_warned in
10363 yes:)
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10366 ac_tool_warned=yes ;;
10367 esac
10368     DSYMUTIL=$ac_ct_DSYMUTIL
10369   fi
10370 else
10371   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10372 fi
10373
10374     if test -n "$ac_tool_prefix"; then
10375   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10376 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10378 $as_echo_n "checking for $ac_word... " >&6; }
10379 if ${ac_cv_prog_NMEDIT+:} false; then :
10380   $as_echo_n "(cached) " >&6
10381 else
10382   if test -n "$NMEDIT"; then
10383   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10384 else
10385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10386 for as_dir in $PATH
10387 do
10388   IFS=$as_save_IFS
10389   test -z "$as_dir" && as_dir=.
10390     for ac_exec_ext in '' $ac_executable_extensions; do
10391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10392     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10394     break 2
10395   fi
10396 done
10397   done
10398 IFS=$as_save_IFS
10399
10400 fi
10401 fi
10402 NMEDIT=$ac_cv_prog_NMEDIT
10403 if test -n "$NMEDIT"; then
10404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10405 $as_echo "$NMEDIT" >&6; }
10406 else
10407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10408 $as_echo "no" >&6; }
10409 fi
10410
10411
10412 fi
10413 if test -z "$ac_cv_prog_NMEDIT"; then
10414   ac_ct_NMEDIT=$NMEDIT
10415   # Extract the first word of "nmedit", so it can be a program name with args.
10416 set dummy nmedit; ac_word=$2
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10418 $as_echo_n "checking for $ac_word... " >&6; }
10419 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10420   $as_echo_n "(cached) " >&6
10421 else
10422   if test -n "$ac_ct_NMEDIT"; then
10423   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10424 else
10425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10426 for as_dir in $PATH
10427 do
10428   IFS=$as_save_IFS
10429   test -z "$as_dir" && as_dir=.
10430     for ac_exec_ext in '' $ac_executable_extensions; do
10431   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10432     ac_cv_prog_ac_ct_NMEDIT="nmedit"
10433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10434     break 2
10435   fi
10436 done
10437   done
10438 IFS=$as_save_IFS
10439
10440 fi
10441 fi
10442 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10443 if test -n "$ac_ct_NMEDIT"; then
10444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10445 $as_echo "$ac_ct_NMEDIT" >&6; }
10446 else
10447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10448 $as_echo "no" >&6; }
10449 fi
10450
10451   if test "x$ac_ct_NMEDIT" = x; then
10452     NMEDIT=":"
10453   else
10454     case $cross_compiling:$ac_tool_warned in
10455 yes:)
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10458 ac_tool_warned=yes ;;
10459 esac
10460     NMEDIT=$ac_ct_NMEDIT
10461   fi
10462 else
10463   NMEDIT="$ac_cv_prog_NMEDIT"
10464 fi
10465
10466     if test -n "$ac_tool_prefix"; then
10467   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10468 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10470 $as_echo_n "checking for $ac_word... " >&6; }
10471 if ${ac_cv_prog_LIPO+:} false; then :
10472   $as_echo_n "(cached) " >&6
10473 else
10474   if test -n "$LIPO"; then
10475   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10476 else
10477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10478 for as_dir in $PATH
10479 do
10480   IFS=$as_save_IFS
10481   test -z "$as_dir" && as_dir=.
10482     for ac_exec_ext in '' $ac_executable_extensions; do
10483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10484     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10486     break 2
10487   fi
10488 done
10489   done
10490 IFS=$as_save_IFS
10491
10492 fi
10493 fi
10494 LIPO=$ac_cv_prog_LIPO
10495 if test -n "$LIPO"; then
10496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10497 $as_echo "$LIPO" >&6; }
10498 else
10499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10500 $as_echo "no" >&6; }
10501 fi
10502
10503
10504 fi
10505 if test -z "$ac_cv_prog_LIPO"; then
10506   ac_ct_LIPO=$LIPO
10507   # Extract the first word of "lipo", so it can be a program name with args.
10508 set dummy lipo; ac_word=$2
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10510 $as_echo_n "checking for $ac_word... " >&6; }
10511 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10512   $as_echo_n "(cached) " >&6
10513 else
10514   if test -n "$ac_ct_LIPO"; then
10515   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10516 else
10517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10518 for as_dir in $PATH
10519 do
10520   IFS=$as_save_IFS
10521   test -z "$as_dir" && as_dir=.
10522     for ac_exec_ext in '' $ac_executable_extensions; do
10523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10524     ac_cv_prog_ac_ct_LIPO="lipo"
10525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10526     break 2
10527   fi
10528 done
10529   done
10530 IFS=$as_save_IFS
10531
10532 fi
10533 fi
10534 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10535 if test -n "$ac_ct_LIPO"; then
10536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10537 $as_echo "$ac_ct_LIPO" >&6; }
10538 else
10539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10540 $as_echo "no" >&6; }
10541 fi
10542
10543   if test "x$ac_ct_LIPO" = x; then
10544     LIPO=":"
10545   else
10546     case $cross_compiling:$ac_tool_warned in
10547 yes:)
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10550 ac_tool_warned=yes ;;
10551 esac
10552     LIPO=$ac_ct_LIPO
10553   fi
10554 else
10555   LIPO="$ac_cv_prog_LIPO"
10556 fi
10557
10558     if test -n "$ac_tool_prefix"; then
10559   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10560 set dummy ${ac_tool_prefix}otool; ac_word=$2
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10562 $as_echo_n "checking for $ac_word... " >&6; }
10563 if ${ac_cv_prog_OTOOL+:} false; then :
10564   $as_echo_n "(cached) " >&6
10565 else
10566   if test -n "$OTOOL"; then
10567   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10568 else
10569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10570 for as_dir in $PATH
10571 do
10572   IFS=$as_save_IFS
10573   test -z "$as_dir" && as_dir=.
10574     for ac_exec_ext in '' $ac_executable_extensions; do
10575   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10576     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10578     break 2
10579   fi
10580 done
10581   done
10582 IFS=$as_save_IFS
10583
10584 fi
10585 fi
10586 OTOOL=$ac_cv_prog_OTOOL
10587 if test -n "$OTOOL"; then
10588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10589 $as_echo "$OTOOL" >&6; }
10590 else
10591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10592 $as_echo "no" >&6; }
10593 fi
10594
10595
10596 fi
10597 if test -z "$ac_cv_prog_OTOOL"; then
10598   ac_ct_OTOOL=$OTOOL
10599   # Extract the first word of "otool", so it can be a program name with args.
10600 set dummy otool; ac_word=$2
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10602 $as_echo_n "checking for $ac_word... " >&6; }
10603 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10604   $as_echo_n "(cached) " >&6
10605 else
10606   if test -n "$ac_ct_OTOOL"; then
10607   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10608 else
10609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10610 for as_dir in $PATH
10611 do
10612   IFS=$as_save_IFS
10613   test -z "$as_dir" && as_dir=.
10614     for ac_exec_ext in '' $ac_executable_extensions; do
10615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10616     ac_cv_prog_ac_ct_OTOOL="otool"
10617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10618     break 2
10619   fi
10620 done
10621   done
10622 IFS=$as_save_IFS
10623
10624 fi
10625 fi
10626 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10627 if test -n "$ac_ct_OTOOL"; then
10628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10629 $as_echo "$ac_ct_OTOOL" >&6; }
10630 else
10631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10632 $as_echo "no" >&6; }
10633 fi
10634
10635   if test "x$ac_ct_OTOOL" = x; then
10636     OTOOL=":"
10637   else
10638     case $cross_compiling:$ac_tool_warned in
10639 yes:)
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10642 ac_tool_warned=yes ;;
10643 esac
10644     OTOOL=$ac_ct_OTOOL
10645   fi
10646 else
10647   OTOOL="$ac_cv_prog_OTOOL"
10648 fi
10649
10650     if test -n "$ac_tool_prefix"; then
10651   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10652 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10654 $as_echo_n "checking for $ac_word... " >&6; }
10655 if ${ac_cv_prog_OTOOL64+:} false; then :
10656   $as_echo_n "(cached) " >&6
10657 else
10658   if test -n "$OTOOL64"; then
10659   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10660 else
10661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10662 for as_dir in $PATH
10663 do
10664   IFS=$as_save_IFS
10665   test -z "$as_dir" && as_dir=.
10666     for ac_exec_ext in '' $ac_executable_extensions; do
10667   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10668     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10670     break 2
10671   fi
10672 done
10673   done
10674 IFS=$as_save_IFS
10675
10676 fi
10677 fi
10678 OTOOL64=$ac_cv_prog_OTOOL64
10679 if test -n "$OTOOL64"; then
10680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10681 $as_echo "$OTOOL64" >&6; }
10682 else
10683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10684 $as_echo "no" >&6; }
10685 fi
10686
10687
10688 fi
10689 if test -z "$ac_cv_prog_OTOOL64"; then
10690   ac_ct_OTOOL64=$OTOOL64
10691   # Extract the first word of "otool64", so it can be a program name with args.
10692 set dummy otool64; ac_word=$2
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10694 $as_echo_n "checking for $ac_word... " >&6; }
10695 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10696   $as_echo_n "(cached) " >&6
10697 else
10698   if test -n "$ac_ct_OTOOL64"; then
10699   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10700 else
10701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10702 for as_dir in $PATH
10703 do
10704   IFS=$as_save_IFS
10705   test -z "$as_dir" && as_dir=.
10706     for ac_exec_ext in '' $ac_executable_extensions; do
10707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10708     ac_cv_prog_ac_ct_OTOOL64="otool64"
10709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10710     break 2
10711   fi
10712 done
10713   done
10714 IFS=$as_save_IFS
10715
10716 fi
10717 fi
10718 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10719 if test -n "$ac_ct_OTOOL64"; then
10720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10721 $as_echo "$ac_ct_OTOOL64" >&6; }
10722 else
10723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724 $as_echo "no" >&6; }
10725 fi
10726
10727   if test "x$ac_ct_OTOOL64" = x; then
10728     OTOOL64=":"
10729   else
10730     case $cross_compiling:$ac_tool_warned in
10731 yes:)
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10734 ac_tool_warned=yes ;;
10735 esac
10736     OTOOL64=$ac_ct_OTOOL64
10737   fi
10738 else
10739   OTOOL64="$ac_cv_prog_OTOOL64"
10740 fi
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10769 $as_echo_n "checking for -single_module linker flag... " >&6; }
10770 if ${lt_cv_apple_cc_single_mod+:} false; then :
10771   $as_echo_n "(cached) " >&6
10772 else
10773   lt_cv_apple_cc_single_mod=no
10774       if test -z "${LT_MULTI_MODULE}"; then
10775         # By default we will add the -single_module flag. You can override
10776         # by either setting the environment variable LT_MULTI_MODULE
10777         # non-empty at configure time, or by adding -multi_module to the
10778         # link flags.
10779         rm -rf libconftest.dylib*
10780         echo "int foo(void){return 1;}" > conftest.c
10781         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10782 -dynamiclib -Wl,-single_module conftest.c" >&5
10783         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10784           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10785         _lt_result=$?
10786         # If there is a non-empty error log, and "single_module"
10787         # appears in it, assume the flag caused a linker warning
10788         if test -s conftest.err && $GREP single_module conftest.err; then
10789           cat conftest.err >&5
10790         # Otherwise, if the output was created with a 0 exit code from
10791         # the compiler, it worked.
10792         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
10793           lt_cv_apple_cc_single_mod=yes
10794         else
10795           cat conftest.err >&5
10796         fi
10797         rm -rf libconftest.dylib*
10798         rm -f conftest.*
10799       fi
10800 fi
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10802 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10803
10804     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10805 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10806 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10807   $as_echo_n "(cached) " >&6
10808 else
10809   lt_cv_ld_exported_symbols_list=no
10810       save_LDFLAGS=$LDFLAGS
10811       echo "_main" > conftest.sym
10812       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10813       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814 /* end confdefs.h.  */
10815
10816 int main (void)
10817 {
10818
10819  ;
10820  return 0;
10821 }
10822 _ACEOF
10823 if ac_fn_c_try_link "$LINENO"; then :
10824   lt_cv_ld_exported_symbols_list=yes
10825 else
10826   lt_cv_ld_exported_symbols_list=no
10827 fi
10828 rm -f core conftest.err conftest.$ac_objext \
10829     conftest$ac_exeext conftest.$ac_ext
10830         LDFLAGS="$save_LDFLAGS"
10831
10832 fi
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10834 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10835
10836     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10837 $as_echo_n "checking for -force_load linker flag... " >&6; }
10838 if ${lt_cv_ld_force_load+:} false; then :
10839   $as_echo_n "(cached) " >&6
10840 else
10841   lt_cv_ld_force_load=no
10842       cat > conftest.c << _LT_EOF
10843 int forced_loaded() { return 2;}
10844 _LT_EOF
10845       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10846       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10847       echo "$AR cru libconftest.a conftest.o" >&5
10848       $AR cru libconftest.a conftest.o 2>&5
10849       echo "$RANLIB libconftest.a" >&5
10850       $RANLIB libconftest.a 2>&5
10851       cat > conftest.c << _LT_EOF
10852 int main() { return 0;}
10853 _LT_EOF
10854       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10855       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10856       _lt_result=$?
10857       if test -s conftest.err && $GREP force_load conftest.err; then
10858         cat conftest.err >&5
10859       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
10860         lt_cv_ld_force_load=yes
10861       else
10862         cat conftest.err >&5
10863       fi
10864         rm -f conftest.err libconftest.a conftest conftest.c
10865         rm -rf conftest.dSYM
10866
10867 fi
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10869 $as_echo "$lt_cv_ld_force_load" >&6; }
10870     case $host_os in
10871     rhapsody* | darwin1.[012])
10872       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10873     darwin1.*)
10874       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10875     darwin*) # darwin 5.x on
10876       # if running on 10.5 or later, the deployment target defaults
10877       # to the OS version, if on x86, and 10.4, the deployment
10878       # target defaults to 10.4. Don't you love it?
10879       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10880         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10881           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10882         10.[012]*)
10883           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10884         10.*)
10885           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10886       esac
10887     ;;
10888   esac
10889     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10890       _lt_dar_single_mod='$single_module'
10891     fi
10892     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10893       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10894     else
10895       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10896     fi
10897     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10898       _lt_dsymutil='~$DSYMUTIL $lib || :'
10899     else
10900       _lt_dsymutil=
10901     fi
10902     ;;
10903   esac
10904
10905 for ac_header in dlfcn.h
10906 do :
10907   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10908 "
10909 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10910   cat >>confdefs.h <<_ACEOF
10911 #define HAVE_DLFCN_H 1
10912 _ACEOF
10913
10914 fi
10915
10916 done
10917
10918 # ------------------------------------ #
10919 #  Determine libtool default behavior  #
10920 # ------------------------------------ #
10921
10922 #
10923 # Default behavior is to enable shared and static libraries on systems
10924 # where libtool knows how to build both library versions, and does not
10925 # require separate configuration and build runs for each flavor.
10926 #
10927
10928 xc_lt_want_enable_shared='yes'
10929 xc_lt_want_enable_static='yes'
10930
10931 #
10932 # User may have disabled shared or static libraries.
10933 #
10934 case "x$enable_shared" in # (
10935   xno)
10936     xc_lt_want_enable_shared='no'
10937     ;;
10938 esac
10939 case "x$enable_static" in # (
10940   xno)
10941     xc_lt_want_enable_static='no'
10942     ;;
10943 esac
10944 if test "x$xc_lt_want_enable_shared" = 'xno' &&
10945   test "x$xc_lt_want_enable_static" = 'xno'; then
10946   as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
10947 fi
10948
10949 #
10950 # Default behavior on systems that require independent configuration
10951 # and build runs for shared and static is to enable shared libraries
10952 # and disable static ones. On these systems option '--disable-shared'
10953 # must be used in order to build a proper static library.
10954 #
10955
10956 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
10957   test "x$xc_lt_want_enable_static" = 'xyes'; then
10958   case $host_os in # (
10959     mingw* | pw32* | cegcc* | os2* | aix*)
10960       xc_lt_want_enable_static='no'
10961       ;;
10962   esac
10963 fi
10964
10965 #
10966 # Make libtool aware of current shared and static library preferences
10967 # taking in account that, depending on host characteristics, libtool
10968 # may modify these option preferences later in this configure script.
10969 #
10970
10971 enable_shared=$xc_lt_want_enable_shared
10972 enable_static=$xc_lt_want_enable_static
10973
10974 #
10975 # Default behavior is to build PIC objects for shared libraries and
10976 # non-PIC objects for static libraries.
10977 #
10978
10979 xc_lt_want_with_pic='default'
10980
10981 #
10982 # User may have specified PIC preference.
10983 #
10984
10985 case "x$with_pic" in # ((
10986   xno)
10987     xc_lt_want_with_pic='no'
10988     ;;
10989   xyes)
10990     xc_lt_want_with_pic='yes'
10991     ;;
10992 esac
10993
10994 #
10995 # Default behavior on some systems where building a shared library out
10996 # of non-PIC compiled objects will fail with following linker error
10997 # "relocation R_X86_64_32 can not be used when making a shared object"
10998 # is to build PIC objects even for static libraries. This behavior may
10999 # be overriden using 'configure --disable-shared --without-pic'.
11000 #
11001
11002 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
11003   case $host_cpu in # (
11004     x86_64 | amd64 | ia64)
11005       case $host_os in # (
11006         linux* | freebsd*)
11007           xc_lt_want_with_pic='yes'
11008           ;;
11009       esac
11010       ;;
11011   esac
11012 fi
11013
11014 #
11015 # Make libtool aware of current PIC preference taking in account that,
11016 # depending on host characteristics, libtool may modify PIC default
11017 # behavior to fit host system idiosyncrasies later in this script.
11018 #
11019
11020 with_pic=$xc_lt_want_with_pic
11021
11022 ## ----------------------- ##
11023 ##  Start of libtool code  ##
11024 ## ----------------------- ##
11025
11026
11027
11028
11029 # Set options
11030 enable_win32_dll=yes
11031
11032 case $host in
11033 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11034   if test -n "$ac_tool_prefix"; then
11035   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11036 set dummy ${ac_tool_prefix}as; ac_word=$2
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11038 $as_echo_n "checking for $ac_word... " >&6; }
11039 if ${ac_cv_prog_AS+:} false; then :
11040   $as_echo_n "(cached) " >&6
11041 else
11042   if test -n "$AS"; then
11043   ac_cv_prog_AS="$AS" # Let the user override the test.
11044 else
11045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11046 for as_dir in $PATH
11047 do
11048   IFS=$as_save_IFS
11049   test -z "$as_dir" && as_dir=.
11050     for ac_exec_ext in '' $ac_executable_extensions; do
11051   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11052     ac_cv_prog_AS="${ac_tool_prefix}as"
11053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11054     break 2
11055   fi
11056 done
11057   done
11058 IFS=$as_save_IFS
11059
11060 fi
11061 fi
11062 AS=$ac_cv_prog_AS
11063 if test -n "$AS"; then
11064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11065 $as_echo "$AS" >&6; }
11066 else
11067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11068 $as_echo "no" >&6; }
11069 fi
11070
11071
11072 fi
11073 if test -z "$ac_cv_prog_AS"; then
11074   ac_ct_AS=$AS
11075   # Extract the first word of "as", so it can be a program name with args.
11076 set dummy as; ac_word=$2
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11078 $as_echo_n "checking for $ac_word... " >&6; }
11079 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11080   $as_echo_n "(cached) " >&6
11081 else
11082   if test -n "$ac_ct_AS"; then
11083   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11084 else
11085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11086 for as_dir in $PATH
11087 do
11088   IFS=$as_save_IFS
11089   test -z "$as_dir" && as_dir=.
11090     for ac_exec_ext in '' $ac_executable_extensions; do
11091   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11092     ac_cv_prog_ac_ct_AS="as"
11093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11094     break 2
11095   fi
11096 done
11097   done
11098 IFS=$as_save_IFS
11099
11100 fi
11101 fi
11102 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11103 if test -n "$ac_ct_AS"; then
11104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11105 $as_echo "$ac_ct_AS" >&6; }
11106 else
11107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11108 $as_echo "no" >&6; }
11109 fi
11110
11111   if test "x$ac_ct_AS" = x; then
11112     AS="false"
11113   else
11114     case $cross_compiling:$ac_tool_warned in
11115 yes:)
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11118 ac_tool_warned=yes ;;
11119 esac
11120     AS=$ac_ct_AS
11121   fi
11122 else
11123   AS="$ac_cv_prog_AS"
11124 fi
11125
11126   if test -n "$ac_tool_prefix"; then
11127   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11128 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11130 $as_echo_n "checking for $ac_word... " >&6; }
11131 if ${ac_cv_prog_DLLTOOL+:} false; then :
11132   $as_echo_n "(cached) " >&6
11133 else
11134   if test -n "$DLLTOOL"; then
11135   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11136 else
11137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11138 for as_dir in $PATH
11139 do
11140   IFS=$as_save_IFS
11141   test -z "$as_dir" && as_dir=.
11142     for ac_exec_ext in '' $ac_executable_extensions; do
11143   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11144     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11146     break 2
11147   fi
11148 done
11149   done
11150 IFS=$as_save_IFS
11151
11152 fi
11153 fi
11154 DLLTOOL=$ac_cv_prog_DLLTOOL
11155 if test -n "$DLLTOOL"; then
11156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11157 $as_echo "$DLLTOOL" >&6; }
11158 else
11159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11160 $as_echo "no" >&6; }
11161 fi
11162
11163
11164 fi
11165 if test -z "$ac_cv_prog_DLLTOOL"; then
11166   ac_ct_DLLTOOL=$DLLTOOL
11167   # Extract the first word of "dlltool", so it can be a program name with args.
11168 set dummy dlltool; ac_word=$2
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11170 $as_echo_n "checking for $ac_word... " >&6; }
11171 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11172   $as_echo_n "(cached) " >&6
11173 else
11174   if test -n "$ac_ct_DLLTOOL"; then
11175   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11176 else
11177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11178 for as_dir in $PATH
11179 do
11180   IFS=$as_save_IFS
11181   test -z "$as_dir" && as_dir=.
11182     for ac_exec_ext in '' $ac_executable_extensions; do
11183   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11184     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11186     break 2
11187   fi
11188 done
11189   done
11190 IFS=$as_save_IFS
11191
11192 fi
11193 fi
11194 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11195 if test -n "$ac_ct_DLLTOOL"; then
11196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11197 $as_echo "$ac_ct_DLLTOOL" >&6; }
11198 else
11199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11200 $as_echo "no" >&6; }
11201 fi
11202
11203   if test "x$ac_ct_DLLTOOL" = x; then
11204     DLLTOOL="false"
11205   else
11206     case $cross_compiling:$ac_tool_warned in
11207 yes:)
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11210 ac_tool_warned=yes ;;
11211 esac
11212     DLLTOOL=$ac_ct_DLLTOOL
11213   fi
11214 else
11215   DLLTOOL="$ac_cv_prog_DLLTOOL"
11216 fi
11217
11218   if test -n "$ac_tool_prefix"; then
11219   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11220 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11222 $as_echo_n "checking for $ac_word... " >&6; }
11223 if ${ac_cv_prog_OBJDUMP+:} false; then :
11224   $as_echo_n "(cached) " >&6
11225 else
11226   if test -n "$OBJDUMP"; then
11227   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11228 else
11229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11230 for as_dir in $PATH
11231 do
11232   IFS=$as_save_IFS
11233   test -z "$as_dir" && as_dir=.
11234     for ac_exec_ext in '' $ac_executable_extensions; do
11235   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11236     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11238     break 2
11239   fi
11240 done
11241   done
11242 IFS=$as_save_IFS
11243
11244 fi
11245 fi
11246 OBJDUMP=$ac_cv_prog_OBJDUMP
11247 if test -n "$OBJDUMP"; then
11248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11249 $as_echo "$OBJDUMP" >&6; }
11250 else
11251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11252 $as_echo "no" >&6; }
11253 fi
11254
11255
11256 fi
11257 if test -z "$ac_cv_prog_OBJDUMP"; then
11258   ac_ct_OBJDUMP=$OBJDUMP
11259   # Extract the first word of "objdump", so it can be a program name with args.
11260 set dummy objdump; ac_word=$2
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11262 $as_echo_n "checking for $ac_word... " >&6; }
11263 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11264   $as_echo_n "(cached) " >&6
11265 else
11266   if test -n "$ac_ct_OBJDUMP"; then
11267   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11268 else
11269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270 for as_dir in $PATH
11271 do
11272   IFS=$as_save_IFS
11273   test -z "$as_dir" && as_dir=.
11274     for ac_exec_ext in '' $ac_executable_extensions; do
11275   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11276     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11278     break 2
11279   fi
11280 done
11281   done
11282 IFS=$as_save_IFS
11283
11284 fi
11285 fi
11286 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11287 if test -n "$ac_ct_OBJDUMP"; then
11288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11289 $as_echo "$ac_ct_OBJDUMP" >&6; }
11290 else
11291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11292 $as_echo "no" >&6; }
11293 fi
11294
11295   if test "x$ac_ct_OBJDUMP" = x; then
11296     OBJDUMP="false"
11297   else
11298     case $cross_compiling:$ac_tool_warned in
11299 yes:)
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11302 ac_tool_warned=yes ;;
11303 esac
11304     OBJDUMP=$ac_ct_OBJDUMP
11305   fi
11306 else
11307   OBJDUMP="$ac_cv_prog_OBJDUMP"
11308 fi
11309
11310   ;;
11311 esac
11312
11313 test -z "$AS" && AS=as
11314
11315
11316
11317
11318
11319 test -z "$DLLTOOL" && DLLTOOL=dlltool
11320
11321
11322
11323
11324
11325 test -z "$OBJDUMP" && OBJDUMP=objdump
11326
11327
11328
11329
11330
11331
11332
11333         enable_dlopen=no
11334
11335
11336
11337             # Check whether --enable-shared was given.
11338 if test "${enable_shared+set}" = set; then :
11339   enableval=$enable_shared; p=${PACKAGE-default}
11340     case $enableval in
11341     yes) enable_shared=yes ;;
11342     no) enable_shared=no ;;
11343     *)
11344       enable_shared=no
11345       # Look at the argument we got.  We use all the common list separators.
11346       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11347       for pkg in $enableval; do
11348         IFS="$lt_save_ifs"
11349         if test "X$pkg" = "X$p"; then
11350           enable_shared=yes
11351         fi
11352       done
11353       IFS="$lt_save_ifs"
11354       ;;
11355     esac
11356 else
11357   enable_shared=yes
11358 fi
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368   # Check whether --enable-static was given.
11369 if test "${enable_static+set}" = set; then :
11370   enableval=$enable_static; p=${PACKAGE-default}
11371     case $enableval in
11372     yes) enable_static=yes ;;
11373     no) enable_static=no ;;
11374     *)
11375      enable_static=no
11376       # Look at the argument we got.  We use all the common list separators.
11377       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11378       for pkg in $enableval; do
11379         IFS="$lt_save_ifs"
11380         if test "X$pkg" = "X$p"; then
11381           enable_static=yes
11382         fi
11383       done
11384       IFS="$lt_save_ifs"
11385       ;;
11386     esac
11387 else
11388   enable_static=yes
11389 fi
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400 # Check whether --with-pic was given.
11401 if test "${with_pic+set}" = set; then :
11402   withval=$with_pic; lt_p=${PACKAGE-default}
11403     case $withval in
11404     yes|no) pic_mode=$withval ;;
11405     *)
11406       pic_mode=default
11407       # Look at the argument we got.  We use all the common list separators.
11408       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11409       for lt_pkg in $withval; do
11410         IFS="$lt_save_ifs"
11411         if test "X$lt_pkg" = "X$lt_p"; then
11412           pic_mode=yes
11413         fi
11414       done
11415       IFS="$lt_save_ifs"
11416       ;;
11417     esac
11418 else
11419   pic_mode=default
11420 fi
11421
11422
11423 test -z "$pic_mode" && pic_mode=default
11424
11425
11426
11427
11428
11429
11430
11431   # Check whether --enable-fast-install was given.
11432 if test "${enable_fast_install+set}" = set; then :
11433   enableval=$enable_fast_install; p=${PACKAGE-default}
11434     case $enableval in
11435     yes) enable_fast_install=yes ;;
11436     no) enable_fast_install=no ;;
11437     *)
11438       enable_fast_install=no
11439       # Look at the argument we got.  We use all the common list separators.
11440       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11441       for pkg in $enableval; do
11442         IFS="$lt_save_ifs"
11443         if test "X$pkg" = "X$p"; then
11444           enable_fast_install=yes
11445         fi
11446       done
11447       IFS="$lt_save_ifs"
11448       ;;
11449     esac
11450 else
11451   enable_fast_install=yes
11452 fi
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464 # This can be used to rebuild libtool when needed
11465 LIBTOOL_DEPS="$ltmain"
11466
11467 # Always use our own libtool.
11468 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499 test -z "$LN_S" && LN_S="ln -s"
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514 if test -n "${ZSH_VERSION+set}" ; then
11515    setopt NO_GLOB_SUBST
11516 fi
11517
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11519 $as_echo_n "checking for objdir... " >&6; }
11520 if ${lt_cv_objdir+:} false; then :
11521   $as_echo_n "(cached) " >&6
11522 else
11523   rm -f .libs 2>/dev/null
11524 mkdir .libs 2>/dev/null
11525 if test -d .libs; then
11526   lt_cv_objdir=.libs
11527 else
11528   # MS-DOS does not allow filenames that begin with a dot.
11529   lt_cv_objdir=_libs
11530 fi
11531 rmdir .libs 2>/dev/null
11532 fi
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11534 $as_echo "$lt_cv_objdir" >&6; }
11535 objdir=$lt_cv_objdir
11536
11537
11538
11539
11540
11541 cat >>confdefs.h <<_ACEOF
11542 #define LT_OBJDIR "$lt_cv_objdir/"
11543 _ACEOF
11544
11545
11546
11547
11548 case $host_os in
11549 aix3*)
11550   # AIX sometimes has problems with the GCC collect2 program.  For some
11551   # reason, if we set the COLLECT_NAMES environment variable, the problems
11552   # vanish in a puff of smoke.
11553   if test "X${COLLECT_NAMES+set}" != Xset; then
11554     COLLECT_NAMES=
11555     export COLLECT_NAMES
11556   fi
11557   ;;
11558 esac
11559
11560 # Global variables:
11561 ofile=libtool
11562 can_build_shared=yes
11563
11564 # All known linkers require a `.a' archive for static linking (except MSVC,
11565 # which needs '.lib').
11566 libext=a
11567
11568 with_gnu_ld="$lt_cv_prog_gnu_ld"
11569
11570 old_CC="$CC"
11571 old_CFLAGS="$CFLAGS"
11572
11573 # Set sane defaults for various variables
11574 test -z "$CC" && CC=cc
11575 test -z "$LTCC" && LTCC=$CC
11576 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11577 test -z "$LD" && LD=ld
11578 test -z "$ac_objext" && ac_objext=o
11579
11580 for cc_temp in $compiler""; do
11581   case $cc_temp in
11582     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11583     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11584     \-*) ;;
11585     *) break;;
11586   esac
11587 done
11588 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11589
11590
11591 # Only perform the check for file, if the check method requires it
11592 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11593 case $deplibs_check_method in
11594 file_magic*)
11595   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11596     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11597 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11598 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11599   $as_echo_n "(cached) " >&6
11600 else
11601   case $MAGIC_CMD in
11602 [\\/*] |  ?:[\\/]*)
11603   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11604   ;;
11605 *)
11606   lt_save_MAGIC_CMD="$MAGIC_CMD"
11607   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11608   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11609   for ac_dir in $ac_dummy; do
11610     IFS="$lt_save_ifs"
11611     test -z "$ac_dir" && ac_dir=.
11612     if test -f $ac_dir/${ac_tool_prefix}file; then
11613       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11614       if test -n "$file_magic_test_file"; then
11615         case $deplibs_check_method in
11616         "file_magic "*)
11617           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11618           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11619           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11620             $EGREP "$file_magic_regex" > /dev/null; then
11621             :
11622           else
11623             cat <<_LT_EOF 1>&2
11624
11625 *** Warning: the command libtool uses to detect shared libraries,
11626 *** $file_magic_cmd, produces output that libtool cannot recognize.
11627 *** The result is that libtool may fail to recognize shared libraries
11628 *** as such.  This will affect the creation of libtool libraries that
11629 *** depend on shared libraries, but programs linked with such libtool
11630 *** libraries will work regardless of this problem.  Nevertheless, you
11631 *** may want to report the problem to your system manager and/or to
11632 *** bug-libtool@gnu.org
11633
11634 _LT_EOF
11635           fi ;;
11636         esac
11637       fi
11638       break
11639     fi
11640   done
11641   IFS="$lt_save_ifs"
11642   MAGIC_CMD="$lt_save_MAGIC_CMD"
11643   ;;
11644 esac
11645 fi
11646
11647 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11648 if test -n "$MAGIC_CMD"; then
11649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11650 $as_echo "$MAGIC_CMD" >&6; }
11651 else
11652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11653 $as_echo "no" >&6; }
11654 fi
11655
11656
11657
11658
11659
11660 if test -z "$lt_cv_path_MAGIC_CMD"; then
11661   if test -n "$ac_tool_prefix"; then
11662     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11663 $as_echo_n "checking for file... " >&6; }
11664 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11665   $as_echo_n "(cached) " >&6
11666 else
11667   case $MAGIC_CMD in
11668 [\\/*] |  ?:[\\/]*)
11669   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11670   ;;
11671 *)
11672   lt_save_MAGIC_CMD="$MAGIC_CMD"
11673   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11674   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11675   for ac_dir in $ac_dummy; do
11676     IFS="$lt_save_ifs"
11677     test -z "$ac_dir" && ac_dir=.
11678     if test -f $ac_dir/file; then
11679       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11680       if test -n "$file_magic_test_file"; then
11681         case $deplibs_check_method in
11682         "file_magic "*)
11683           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11684           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11685           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11686             $EGREP "$file_magic_regex" > /dev/null; then
11687             :
11688           else
11689             cat <<_LT_EOF 1>&2
11690
11691 *** Warning: the command libtool uses to detect shared libraries,
11692 *** $file_magic_cmd, produces output that libtool cannot recognize.
11693 *** The result is that libtool may fail to recognize shared libraries
11694 *** as such.  This will affect the creation of libtool libraries that
11695 *** depend on shared libraries, but programs linked with such libtool
11696 *** libraries will work regardless of this problem.  Nevertheless, you
11697 *** may want to report the problem to your system manager and/or to
11698 *** bug-libtool@gnu.org
11699
11700 _LT_EOF
11701           fi ;;
11702         esac
11703       fi
11704       break
11705     fi
11706   done
11707   IFS="$lt_save_ifs"
11708   MAGIC_CMD="$lt_save_MAGIC_CMD"
11709   ;;
11710 esac
11711 fi
11712
11713 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11714 if test -n "$MAGIC_CMD"; then
11715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11716 $as_echo "$MAGIC_CMD" >&6; }
11717 else
11718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11719 $as_echo "no" >&6; }
11720 fi
11721
11722
11723   else
11724     MAGIC_CMD=:
11725   fi
11726 fi
11727
11728   fi
11729   ;;
11730 esac
11731
11732 # Use C for the default configuration in the libtool script
11733
11734 lt_save_CC="$CC"
11735 ac_ext=c
11736 ac_cpp='$CPP $CPPFLAGS'
11737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11740
11741
11742 # Source file extension for C test sources.
11743 ac_ext=c
11744
11745 # Object file extension for compiled C test sources.
11746 objext=o
11747 objext=$objext
11748
11749 # Code to be used in simple compile tests
11750 lt_simple_compile_test_code="int some_variable = 0;"
11751
11752 # Code to be used in simple link tests
11753 lt_simple_link_test_code='int main(){return(0);}'
11754
11755
11756
11757
11758
11759
11760
11761 # If no C compiler was specified, use CC.
11762 LTCC=${LTCC-"$CC"}
11763
11764 # If no C compiler flags were specified, use CFLAGS.
11765 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11766
11767 # Allow CC to be a program name with arguments.
11768 compiler=$CC
11769
11770 # Save the default compiler, since it gets overwritten when the other
11771 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11772 compiler_DEFAULT=$CC
11773
11774 # save warnings/boilerplate of simple test code
11775 ac_outfile=conftest.$ac_objext
11776 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11777 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11778 _lt_compiler_boilerplate=`cat conftest.err`
11779 $RM conftest*
11780
11781 ac_outfile=conftest.$ac_objext
11782 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11783 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11784 _lt_linker_boilerplate=`cat conftest.err`
11785 $RM -r conftest*
11786
11787
11788 ## CAVEAT EMPTOR:
11789 ## There is no encapsulation within the following macros, do not change
11790 ## the running order or otherwise move them around unless you know exactly
11791 ## what you are doing...
11792 if test -n "$compiler"; then
11793
11794 lt_prog_compiler_no_builtin_flag=
11795
11796 if test "$GCC" = yes; then
11797   case $cc_basename in
11798   nvcc*)
11799     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11800   *)
11801     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11802   esac
11803
11804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11805 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11806 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11807   $as_echo_n "(cached) " >&6
11808 else
11809   lt_cv_prog_compiler_rtti_exceptions=no
11810    ac_outfile=conftest.$ac_objext
11811    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11812    lt_compiler_flag="-fno-rtti -fno-exceptions"
11813    # Insert the option either (1) after the last *FLAGS variable, or
11814    # (2) before a word containing "conftest.", or (3) at the end.
11815    # Note that $ac_compile itself does not contain backslashes and begins
11816    # with a dollar sign (not a hyphen), so the echo should work correctly.
11817    # The option is referenced via a variable to avoid confusing sed.
11818    lt_compile=`echo "$ac_compile" | $SED \
11819    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11820    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11821    -e 's:$: $lt_compiler_flag:'`
11822    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11823    (eval "$lt_compile" 2>conftest.err)
11824    ac_status=$?
11825    cat conftest.err >&5
11826    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827    if (exit $ac_status) && test -s "$ac_outfile"; then
11828      # The compiler can only warn and ignore the option if not recognized
11829      # So say no if there are warnings other than the usual output.
11830      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11831      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11832      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11833        lt_cv_prog_compiler_rtti_exceptions=yes
11834      fi
11835    fi
11836    $RM conftest*
11837
11838 fi
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11840 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11841
11842 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11843     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11844 else
11845     :
11846 fi
11847
11848 fi
11849
11850
11851
11852
11853
11854
11855   lt_prog_compiler_wl=
11856 lt_prog_compiler_pic=
11857 lt_prog_compiler_static=
11858
11859
11860   if test "$GCC" = yes; then
11861     lt_prog_compiler_wl='-Wl,'
11862     lt_prog_compiler_static='-static'
11863
11864     case $host_os in
11865       aix*)
11866       # All AIX code is PIC.
11867       if test "$host_cpu" = ia64; then
11868         # AIX 5 now supports IA64 processor
11869         lt_prog_compiler_static='-Bstatic'
11870       fi
11871       ;;
11872
11873     amigaos*)
11874       case $host_cpu in
11875       powerpc)
11876             # see comment about AmigaOS4 .so support
11877             lt_prog_compiler_pic='-fPIC'
11878         ;;
11879       m68k)
11880             # FIXME: we need at least 68020 code to build shared libraries, but
11881             # adding the `-m68020' flag to GCC prevents building anything better,
11882             # like `-m68040'.
11883             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11884         ;;
11885       esac
11886       ;;
11887
11888     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11889       # PIC is the default for these OSes.
11890       ;;
11891
11892     mingw* | cygwin* | pw32* | os2* | cegcc*)
11893       # This hack is so that the source file can tell whether it is being
11894       # built for inclusion in a dll (and should export symbols for example).
11895       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11896       # (--disable-auto-import) libraries
11897       lt_prog_compiler_pic='-DDLL_EXPORT'
11898       ;;
11899
11900     darwin* | rhapsody*)
11901       # PIC is the default on this platform
11902       # Common symbols not allowed in MH_DYLIB files
11903       lt_prog_compiler_pic='-fno-common'
11904       ;;
11905
11906     haiku*)
11907       # PIC is the default for Haiku.
11908       # The "-static" flag exists, but is broken.
11909       lt_prog_compiler_static=
11910       ;;
11911
11912     hpux*)
11913       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11914       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11915       # sets the default TLS model and affects inlining.
11916       case $host_cpu in
11917       hppa*64*)
11918         # +Z the default
11919         ;;
11920       *)
11921         lt_prog_compiler_pic='-fPIC'
11922         ;;
11923       esac
11924       ;;
11925
11926     interix[3-9]*)
11927       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11928       # Instead, we relocate shared libraries at runtime.
11929       ;;
11930
11931     msdosdjgpp*)
11932       # Just because we use GCC doesn't mean we suddenly get shared libraries
11933       # on systems that don't support them.
11934       lt_prog_compiler_can_build_shared=no
11935       enable_shared=no
11936       ;;
11937
11938     *nto* | *qnx*)
11939       # QNX uses GNU C++, but need to define -shared option too, otherwise
11940       # it will coredump.
11941       lt_prog_compiler_pic='-fPIC -shared'
11942       ;;
11943
11944     sysv4*MP*)
11945       if test -d /usr/nec; then
11946         lt_prog_compiler_pic=-Kconform_pic
11947       fi
11948       ;;
11949
11950     *)
11951       lt_prog_compiler_pic='-fPIC'
11952       ;;
11953     esac
11954
11955     case $cc_basename in
11956     nvcc*) # Cuda Compiler Driver 2.2
11957       lt_prog_compiler_wl='-Xlinker '
11958       if test -n "$lt_prog_compiler_pic"; then
11959         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11960       fi
11961       ;;
11962     esac
11963   else
11964     # PORTME Check for flag to pass linker flags through the system compiler.
11965     case $host_os in
11966     aix*)
11967       lt_prog_compiler_wl='-Wl,'
11968       if test "$host_cpu" = ia64; then
11969         # AIX 5 now supports IA64 processor
11970         lt_prog_compiler_static='-Bstatic'
11971       else
11972         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11973       fi
11974       ;;
11975
11976     mingw* | cygwin* | pw32* | os2* | cegcc*)
11977       # This hack is so that the source file can tell whether it is being
11978       # built for inclusion in a dll (and should export symbols for example).
11979       lt_prog_compiler_pic='-DDLL_EXPORT'
11980       ;;
11981
11982     hpux9* | hpux10* | hpux11*)
11983       lt_prog_compiler_wl='-Wl,'
11984       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11985       # not for PA HP-UX.
11986       case $host_cpu in
11987       hppa*64*|ia64*)
11988         # +Z the default
11989         ;;
11990       *)
11991         lt_prog_compiler_pic='+Z'
11992         ;;
11993       esac
11994       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11995       lt_prog_compiler_static='${wl}-a ${wl}archive'
11996       ;;
11997
11998     irix5* | irix6* | nonstopux*)
11999       lt_prog_compiler_wl='-Wl,'
12000       # PIC (with -KPIC) is the default.
12001       lt_prog_compiler_static='-non_shared'
12002       ;;
12003
12004     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12005       case $cc_basename in
12006       # old Intel for x86_64 which still supported -KPIC.
12007       ecc*)
12008         lt_prog_compiler_wl='-Wl,'
12009         lt_prog_compiler_pic='-KPIC'
12010         lt_prog_compiler_static='-static'
12011         ;;
12012       # icc used to be incompatible with GCC.
12013       # ICC 10 doesn't accept -KPIC any more.
12014       icc* | ifort*)
12015         lt_prog_compiler_wl='-Wl,'
12016         lt_prog_compiler_pic='-fPIC'
12017         lt_prog_compiler_static='-static'
12018         ;;
12019       # Lahey Fortran 8.1.
12020       lf95*)
12021         lt_prog_compiler_wl='-Wl,'
12022         lt_prog_compiler_pic='--shared'
12023         lt_prog_compiler_static='--static'
12024         ;;
12025       nagfor*)
12026         # NAG Fortran compiler
12027         lt_prog_compiler_wl='-Wl,-Wl,,'
12028         lt_prog_compiler_pic='-PIC'
12029         lt_prog_compiler_static='-Bstatic'
12030         ;;
12031       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12032         # Portland Group compilers (*not* the Pentium gcc compiler,
12033         # which looks to be a dead project)
12034         lt_prog_compiler_wl='-Wl,'
12035         lt_prog_compiler_pic='-fpic'
12036         lt_prog_compiler_static='-Bstatic'
12037         ;;
12038       ccc*)
12039         lt_prog_compiler_wl='-Wl,'
12040         # All Alpha code is PIC.
12041         lt_prog_compiler_static='-non_shared'
12042         ;;
12043       xl* | bgxl* | bgf* | mpixl*)
12044         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12045         lt_prog_compiler_wl='-Wl,'
12046         lt_prog_compiler_pic='-qpic'
12047         lt_prog_compiler_static='-qstaticlink'
12048         ;;
12049       *)
12050         case `$CC -V 2>&1 | sed 5q` in
12051         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12052           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12053           lt_prog_compiler_pic='-KPIC'
12054           lt_prog_compiler_static='-Bstatic'
12055           lt_prog_compiler_wl=''
12056           ;;
12057         *Sun\ F* | *Sun*Fortran*)
12058           lt_prog_compiler_pic='-KPIC'
12059           lt_prog_compiler_static='-Bstatic'
12060           lt_prog_compiler_wl='-Qoption ld '
12061           ;;
12062         *Sun\ C*)
12063           # Sun C 5.9
12064           lt_prog_compiler_pic='-KPIC'
12065           lt_prog_compiler_static='-Bstatic'
12066           lt_prog_compiler_wl='-Wl,'
12067           ;;
12068         *Intel*\ [CF]*Compiler*)
12069           lt_prog_compiler_wl='-Wl,'
12070           lt_prog_compiler_pic='-fPIC'
12071           lt_prog_compiler_static='-static'
12072           ;;
12073         *Portland\ Group*)
12074           lt_prog_compiler_wl='-Wl,'
12075           lt_prog_compiler_pic='-fpic'
12076           lt_prog_compiler_static='-Bstatic'
12077           ;;
12078         esac
12079         ;;
12080       esac
12081       ;;
12082
12083     newsos6)
12084       lt_prog_compiler_pic='-KPIC'
12085       lt_prog_compiler_static='-Bstatic'
12086       ;;
12087
12088     *nto* | *qnx*)
12089       # QNX uses GNU C++, but need to define -shared option too, otherwise
12090       # it will coredump.
12091       lt_prog_compiler_pic='-fPIC -shared'
12092       ;;
12093
12094     osf3* | osf4* | osf5*)
12095       lt_prog_compiler_wl='-Wl,'
12096       # All OSF/1 code is PIC.
12097       lt_prog_compiler_static='-non_shared'
12098       ;;
12099
12100     rdos*)
12101       lt_prog_compiler_static='-non_shared'
12102       ;;
12103
12104     solaris*)
12105       lt_prog_compiler_pic='-KPIC'
12106       lt_prog_compiler_static='-Bstatic'
12107       case $cc_basename in
12108       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12109         lt_prog_compiler_wl='-Qoption ld ';;
12110       *)
12111         lt_prog_compiler_wl='-Wl,';;
12112       esac
12113       ;;
12114
12115     sunos4*)
12116       lt_prog_compiler_wl='-Qoption ld '
12117       lt_prog_compiler_pic='-PIC'
12118       lt_prog_compiler_static='-Bstatic'
12119       ;;
12120
12121     sysv4 | sysv4.2uw2* | sysv4.3*)
12122       lt_prog_compiler_wl='-Wl,'
12123       lt_prog_compiler_pic='-KPIC'
12124       lt_prog_compiler_static='-Bstatic'
12125       ;;
12126
12127     sysv4*MP*)
12128       if test -d /usr/nec ;then
12129         lt_prog_compiler_pic='-Kconform_pic'
12130         lt_prog_compiler_static='-Bstatic'
12131       fi
12132       ;;
12133
12134     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12135       lt_prog_compiler_wl='-Wl,'
12136       lt_prog_compiler_pic='-KPIC'
12137       lt_prog_compiler_static='-Bstatic'
12138       ;;
12139
12140     unicos*)
12141       lt_prog_compiler_wl='-Wl,'
12142       lt_prog_compiler_can_build_shared=no
12143       ;;
12144
12145     uts4*)
12146       lt_prog_compiler_pic='-pic'
12147       lt_prog_compiler_static='-Bstatic'
12148       ;;
12149
12150     *)
12151       lt_prog_compiler_can_build_shared=no
12152       ;;
12153     esac
12154   fi
12155
12156 case $host_os in
12157   # For platforms which do not support PIC, -DPIC is meaningless:
12158   *djgpp*)
12159     lt_prog_compiler_pic=
12160     ;;
12161   *)
12162     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12163     ;;
12164 esac
12165
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12167 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12168 if ${lt_cv_prog_compiler_pic+:} false; then :
12169   $as_echo_n "(cached) " >&6
12170 else
12171   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12172 fi
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12174 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12175 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12176
12177 #
12178 # Check to make sure the PIC flag actually works.
12179 #
12180 if test -n "$lt_prog_compiler_pic"; then
12181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12182 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12183 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12184   $as_echo_n "(cached) " >&6
12185 else
12186   lt_cv_prog_compiler_pic_works=no
12187    ac_outfile=conftest.$ac_objext
12188    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12189    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12190    # Insert the option either (1) after the last *FLAGS variable, or
12191    # (2) before a word containing "conftest.", or (3) at the end.
12192    # Note that $ac_compile itself does not contain backslashes and begins
12193    # with a dollar sign (not a hyphen), so the echo should work correctly.
12194    # The option is referenced via a variable to avoid confusing sed.
12195    lt_compile=`echo "$ac_compile" | $SED \
12196    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12197    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12198    -e 's:$: $lt_compiler_flag:'`
12199    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12200    (eval "$lt_compile" 2>conftest.err)
12201    ac_status=$?
12202    cat conftest.err >&5
12203    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204    if (exit $ac_status) && test -s "$ac_outfile"; then
12205      # The compiler can only warn and ignore the option if not recognized
12206      # So say no if there are warnings other than the usual output.
12207      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12208      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12209      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12210        lt_cv_prog_compiler_pic_works=yes
12211      fi
12212    fi
12213    $RM conftest*
12214
12215 fi
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12217 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12218
12219 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12220     case $lt_prog_compiler_pic in
12221      "" | " "*) ;;
12222      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12223      esac
12224 else
12225     lt_prog_compiler_pic=
12226      lt_prog_compiler_can_build_shared=no
12227 fi
12228
12229 fi
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241 #
12242 # Check to make sure the static flag actually works.
12243 #
12244 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12246 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12247 if ${lt_cv_prog_compiler_static_works+:} false; then :
12248   $as_echo_n "(cached) " >&6
12249 else
12250   lt_cv_prog_compiler_static_works=no
12251    save_LDFLAGS="$LDFLAGS"
12252    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12253    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12254    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12255      # The linker can only warn and ignore the option if not recognized
12256      # So say no if there are warnings
12257      if test -s conftest.err; then
12258        # Append any errors to the config.log.
12259        cat conftest.err 1>&5
12260        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12261        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12262        if diff conftest.exp conftest.er2 >/dev/null; then
12263          lt_cv_prog_compiler_static_works=yes
12264        fi
12265      else
12266        lt_cv_prog_compiler_static_works=yes
12267      fi
12268    fi
12269    $RM -r conftest*
12270    LDFLAGS="$save_LDFLAGS"
12271
12272 fi
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12274 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12275
12276 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12277     :
12278 else
12279     lt_prog_compiler_static=
12280 fi
12281
12282
12283
12284
12285
12286
12287
12288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12289 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12290 if ${lt_cv_prog_compiler_c_o+:} false; then :
12291   $as_echo_n "(cached) " >&6
12292 else
12293   lt_cv_prog_compiler_c_o=no
12294    $RM -r conftest 2>/dev/null
12295    mkdir conftest
12296    cd conftest
12297    mkdir out
12298    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12299
12300    lt_compiler_flag="-o out/conftest2.$ac_objext"
12301    # Insert the option either (1) after the last *FLAGS variable, or
12302    # (2) before a word containing "conftest.", or (3) at the end.
12303    # Note that $ac_compile itself does not contain backslashes and begins
12304    # with a dollar sign (not a hyphen), so the echo should work correctly.
12305    lt_compile=`echo "$ac_compile" | $SED \
12306    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12307    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12308    -e 's:$: $lt_compiler_flag:'`
12309    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12310    (eval "$lt_compile" 2>out/conftest.err)
12311    ac_status=$?
12312    cat out/conftest.err >&5
12313    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12315    then
12316      # The compiler can only warn and ignore the option if not recognized
12317      # So say no if there are warnings
12318      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12319      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12320      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12321        lt_cv_prog_compiler_c_o=yes
12322      fi
12323    fi
12324    chmod u+w . 2>&5
12325    $RM conftest*
12326    # SGI C++ compiler will create directory out/ii_files/ for
12327    # template instantiation
12328    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12329    $RM out/* && rmdir out
12330    cd ..
12331    $RM -r conftest
12332    $RM conftest*
12333
12334 fi
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12336 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12337
12338
12339
12340
12341
12342
12343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12344 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12345 if ${lt_cv_prog_compiler_c_o+:} false; then :
12346   $as_echo_n "(cached) " >&6
12347 else
12348   lt_cv_prog_compiler_c_o=no
12349    $RM -r conftest 2>/dev/null
12350    mkdir conftest
12351    cd conftest
12352    mkdir out
12353    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12354
12355    lt_compiler_flag="-o out/conftest2.$ac_objext"
12356    # Insert the option either (1) after the last *FLAGS variable, or
12357    # (2) before a word containing "conftest.", or (3) at the end.
12358    # Note that $ac_compile itself does not contain backslashes and begins
12359    # with a dollar sign (not a hyphen), so the echo should work correctly.
12360    lt_compile=`echo "$ac_compile" | $SED \
12361    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12362    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12363    -e 's:$: $lt_compiler_flag:'`
12364    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12365    (eval "$lt_compile" 2>out/conftest.err)
12366    ac_status=$?
12367    cat out/conftest.err >&5
12368    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12370    then
12371      # The compiler can only warn and ignore the option if not recognized
12372      # So say no if there are warnings
12373      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12374      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12375      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12376        lt_cv_prog_compiler_c_o=yes
12377      fi
12378    fi
12379    chmod u+w . 2>&5
12380    $RM conftest*
12381    # SGI C++ compiler will create directory out/ii_files/ for
12382    # template instantiation
12383    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12384    $RM out/* && rmdir out
12385    cd ..
12386    $RM -r conftest
12387    $RM conftest*
12388
12389 fi
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12391 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12392
12393
12394
12395
12396 hard_links="nottested"
12397 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12398   # do not overwrite the value of need_locks provided by the user
12399   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12400 $as_echo_n "checking if we can lock with hard links... " >&6; }
12401   hard_links=yes
12402   $RM conftest*
12403   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12404   touch conftest.a
12405   ln conftest.a conftest.b 2>&5 || hard_links=no
12406   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12408 $as_echo "$hard_links" >&6; }
12409   if test "$hard_links" = no; then
12410     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12411 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12412     need_locks=warn
12413   fi
12414 else
12415   need_locks=no
12416 fi
12417
12418
12419
12420
12421
12422
12423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12424 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12425
12426   runpath_var=
12427   allow_undefined_flag=
12428   always_export_symbols=no
12429   archive_cmds=
12430   archive_expsym_cmds=
12431   compiler_needs_object=no
12432   enable_shared_with_static_runtimes=no
12433   export_dynamic_flag_spec=
12434   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12435   hardcode_automatic=no
12436   hardcode_direct=no
12437   hardcode_direct_absolute=no
12438   hardcode_libdir_flag_spec=
12439   hardcode_libdir_separator=
12440   hardcode_minus_L=no
12441   hardcode_shlibpath_var=unsupported
12442   inherit_rpath=no
12443   link_all_deplibs=unknown
12444   module_cmds=
12445   module_expsym_cmds=
12446   old_archive_from_new_cmds=
12447   old_archive_from_expsyms_cmds=
12448   thread_safe_flag_spec=
12449   whole_archive_flag_spec=
12450   # include_expsyms should be a list of space-separated symbols to be *always*
12451   # included in the symbol list
12452   include_expsyms=
12453   # exclude_expsyms can be an extended regexp of symbols to exclude
12454   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12455   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12456   # as well as any symbol that contains `d'.
12457   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12458   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12459   # platforms (ab)use it in PIC code, but their linkers get confused if
12460   # the symbol is explicitly referenced.  Since portable code cannot
12461   # rely on this symbol name, it's probably fine to never include it in
12462   # preloaded symbol tables.
12463   # Exclude shared library initialization/finalization symbols.
12464   extract_expsyms_cmds=
12465
12466   case $host_os in
12467   cygwin* | mingw* | pw32* | cegcc*)
12468     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12469     # When not using gcc, we currently assume that we are using
12470     # Microsoft Visual C++.
12471     if test "$GCC" != yes; then
12472       with_gnu_ld=no
12473     fi
12474     ;;
12475   interix*)
12476     # we just hope/assume this is gcc and not c89 (= MSVC++)
12477     with_gnu_ld=yes
12478     ;;
12479   openbsd*)
12480     with_gnu_ld=no
12481     ;;
12482   linux* | k*bsd*-gnu | gnu*)
12483     link_all_deplibs=no
12484     ;;
12485   esac
12486
12487   ld_shlibs=yes
12488
12489   # On some targets, GNU ld is compatible enough with the native linker
12490   # that we're better off using the native interface for both.
12491   lt_use_gnu_ld_interface=no
12492   if test "$with_gnu_ld" = yes; then
12493     case $host_os in
12494       aix*)
12495         # The AIX port of GNU ld has always aspired to compatibility
12496         # with the native linker.  However, as the warning in the GNU ld
12497         # block says, versions before 2.19.5* couldn't really create working
12498         # shared libraries, regardless of the interface used.
12499         case `$LD -v 2>&1` in
12500           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12501           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12502           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12503           *)
12504             lt_use_gnu_ld_interface=yes
12505             ;;
12506         esac
12507         ;;
12508       *)
12509         lt_use_gnu_ld_interface=yes
12510         ;;
12511     esac
12512   fi
12513
12514   if test "$lt_use_gnu_ld_interface" = yes; then
12515     # If archive_cmds runs LD, not CC, wlarc should be empty
12516     wlarc='${wl}'
12517
12518     # Set some defaults for GNU ld with shared library support. These
12519     # are reset later if shared libraries are not supported. Putting them
12520     # here allows them to be overridden if necessary.
12521     runpath_var=LD_RUN_PATH
12522     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12523     export_dynamic_flag_spec='${wl}--export-dynamic'
12524     # ancient GNU ld didn't support --whole-archive et. al.
12525     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12526       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12527     else
12528       whole_archive_flag_spec=
12529     fi
12530     supports_anon_versioning=no
12531     case `$LD -v 2>&1` in
12532       *GNU\ gold*) supports_anon_versioning=yes ;;
12533       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12534       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12535       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12536       *\ 2.11.*) ;; # other 2.11 versions
12537       *) supports_anon_versioning=yes ;;
12538     esac
12539
12540     # See if GNU ld supports shared libraries.
12541     case $host_os in
12542     aix[3-9]*)
12543       # On AIX/PPC, the GNU linker is very broken
12544       if test "$host_cpu" != ia64; then
12545         ld_shlibs=no
12546         cat <<_LT_EOF 1>&2
12547
12548 *** Warning: the GNU linker, at least up to release 2.19, is reported
12549 *** to be unable to reliably create shared libraries on AIX.
12550 *** Therefore, libtool is disabling shared libraries support.  If you
12551 *** really care for shared libraries, you may want to install binutils
12552 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12553 *** You will then need to restart the configuration process.
12554
12555 _LT_EOF
12556       fi
12557       ;;
12558
12559     amigaos*)
12560       case $host_cpu in
12561       powerpc)
12562             # see comment about AmigaOS4 .so support
12563             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12564             archive_expsym_cmds=''
12565         ;;
12566       m68k)
12567             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)'
12568             hardcode_libdir_flag_spec='-L$libdir'
12569             hardcode_minus_L=yes
12570         ;;
12571       esac
12572       ;;
12573
12574     beos*)
12575       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12576         allow_undefined_flag=unsupported
12577         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12578         # support --undefined.  This deserves some investigation.  FIXME
12579         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12580       else
12581         ld_shlibs=no
12582       fi
12583       ;;
12584
12585     cygwin* | mingw* | pw32* | cegcc*)
12586       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12587       # as there is no search path for DLLs.
12588       hardcode_libdir_flag_spec='-L$libdir'
12589       export_dynamic_flag_spec='${wl}--export-all-symbols'
12590       allow_undefined_flag=unsupported
12591       always_export_symbols=no
12592       enable_shared_with_static_runtimes=yes
12593       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'
12594       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12595
12596       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12597         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12598         # If the export-symbols file already is a .def file (1st line
12599         # is EXPORTS), use it as is; otherwise, prepend...
12600         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12601           cp $export_symbols $output_objdir/$soname.def;
12602         else
12603           echo EXPORTS > $output_objdir/$soname.def;
12604           cat $export_symbols >> $output_objdir/$soname.def;
12605         fi~
12606         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12607       else
12608         ld_shlibs=no
12609       fi
12610       ;;
12611
12612     haiku*)
12613       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12614       link_all_deplibs=yes
12615       ;;
12616
12617     interix[3-9]*)
12618       hardcode_direct=no
12619       hardcode_shlibpath_var=no
12620       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12621       export_dynamic_flag_spec='${wl}-E'
12622       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12623       # Instead, shared libraries are loaded at an image base (0x10000000 by
12624       # default) and relocated if they conflict, which is a slow very memory
12625       # consuming and fragmenting process.  To avoid this, we pick a random,
12626       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12627       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12628       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12629       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'
12630       ;;
12631
12632     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12633       tmp_diet=no
12634       if test "$host_os" = linux-dietlibc; then
12635         case $cc_basename in
12636           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12637         esac
12638       fi
12639       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12640          && test "$tmp_diet" = no
12641       then
12642         tmp_addflag=' $pic_flag'
12643         tmp_sharedflag='-shared'
12644         case $cc_basename,$host_cpu in
12645         pgcc*)                          # Portland Group C compiler
12646           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'
12647           tmp_addflag=' $pic_flag'
12648           ;;
12649         pgf77* | pgf90* | pgf95* | pgfortran*)
12650                                         # Portland Group f77 and f90 compilers
12651           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'
12652           tmp_addflag=' $pic_flag -Mnomain' ;;
12653         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12654           tmp_addflag=' -i_dynamic' ;;
12655         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12656           tmp_addflag=' -i_dynamic -nofor_main' ;;
12657         ifc* | ifort*)                  # Intel Fortran compiler
12658           tmp_addflag=' -nofor_main' ;;
12659         lf95*)                          # Lahey Fortran 8.1
12660           whole_archive_flag_spec=
12661           tmp_sharedflag='--shared' ;;
12662         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12663           tmp_sharedflag='-qmkshrobj'
12664           tmp_addflag= ;;
12665         nvcc*)  # Cuda Compiler Driver 2.2
12666           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'
12667           compiler_needs_object=yes
12668           ;;
12669         esac
12670         case `$CC -V 2>&1 | sed 5q` in
12671         *Sun\ C*)                       # Sun C 5.9
12672           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'
12673           compiler_needs_object=yes
12674           tmp_sharedflag='-G' ;;
12675         *Sun\ F*)                       # Sun Fortran 8.3
12676           tmp_sharedflag='-G' ;;
12677         esac
12678         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12679
12680         if test "x$supports_anon_versioning" = xyes; then
12681           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12682             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12683             echo "local: *; };" >> $output_objdir/$libname.ver~
12684             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12685         fi
12686
12687         case $cc_basename in
12688         xlf* | bgf* | bgxlf* | mpixlf*)
12689           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12690           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12691           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12692           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12693           if test "x$supports_anon_versioning" = xyes; then
12694             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12695               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12696               echo "local: *; };" >> $output_objdir/$libname.ver~
12697               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12698           fi
12699           ;;
12700         esac
12701       else
12702         ld_shlibs=no
12703       fi
12704       ;;
12705
12706     netbsd* | netbsdelf*-gnu)
12707       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12708         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12709         wlarc=
12710       else
12711         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12712         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12713       fi
12714       ;;
12715
12716     solaris*)
12717       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12718         ld_shlibs=no
12719         cat <<_LT_EOF 1>&2
12720
12721 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12722 *** create shared libraries on Solaris systems.  Therefore, libtool
12723 *** is disabling shared libraries support.  We urge you to upgrade GNU
12724 *** binutils to release 2.9.1 or newer.  Another option is to modify
12725 *** your PATH or compiler configuration so that the native linker is
12726 *** used, and then restart.
12727
12728 _LT_EOF
12729       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12730         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12731         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12732       else
12733         ld_shlibs=no
12734       fi
12735       ;;
12736
12737     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12738       case `$LD -v 2>&1` in
12739         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12740         ld_shlibs=no
12741         cat <<_LT_EOF 1>&2
12742
12743 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12744 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12745 *** is disabling shared libraries support.  We urge you to upgrade GNU
12746 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12747 *** your PATH or compiler configuration so that the native linker is
12748 *** used, and then restart.
12749
12750 _LT_EOF
12751         ;;
12752         *)
12753           # For security reasons, it is highly recommended that you always
12754           # use absolute paths for naming shared libraries, and exclude the
12755           # DT_RUNPATH tag from executables and libraries.  But doing so
12756           # requires that you compile everything twice, which is a pain.
12757           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12758             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12759             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12760             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12761           else
12762             ld_shlibs=no
12763           fi
12764         ;;
12765       esac
12766       ;;
12767
12768     sunos4*)
12769       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12770       wlarc=
12771       hardcode_direct=yes
12772       hardcode_shlibpath_var=no
12773       ;;
12774
12775     *)
12776       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12777         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12778         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12779       else
12780         ld_shlibs=no
12781       fi
12782       ;;
12783     esac
12784
12785     if test "$ld_shlibs" = no; then
12786       runpath_var=
12787       hardcode_libdir_flag_spec=
12788       export_dynamic_flag_spec=
12789       whole_archive_flag_spec=
12790     fi
12791   else
12792     # PORTME fill in a description of your system's linker (not GNU ld)
12793     case $host_os in
12794     aix3*)
12795       allow_undefined_flag=unsupported
12796       always_export_symbols=yes
12797       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'
12798       # Note: this linker hardcodes the directories in LIBPATH if there
12799       # are no directories specified by -L.
12800       hardcode_minus_L=yes
12801       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12802         # Neither direct hardcoding nor static linking is supported with a
12803         # broken collect2.
12804         hardcode_direct=unsupported
12805       fi
12806       ;;
12807
12808     aix[4-9]*)
12809       if test "$host_cpu" = ia64; then
12810         # On IA64, the linker does run time linking by default, so we don't
12811         # have to do anything special.
12812         aix_use_runtimelinking=no
12813         exp_sym_flag='-Bexport'
12814         no_entry_flag=""
12815       else
12816         # If we're using GNU nm, then we don't want the "-C" option.
12817         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12818         # Also, AIX nm treats weak defined symbols like other global
12819         # defined symbols, whereas GNU nm marks them as "W".
12820         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12821           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'
12822         else
12823           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'
12824         fi
12825         aix_use_runtimelinking=no
12826
12827         # Test if we are trying to use run time linking or normal
12828         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12829         # need to do runtime linking.
12830         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12831           for ld_flag in $LDFLAGS; do
12832           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12833             aix_use_runtimelinking=yes
12834             break
12835           fi
12836           done
12837           ;;
12838         esac
12839
12840         exp_sym_flag='-bexport'
12841         no_entry_flag='-bnoentry'
12842       fi
12843
12844       # When large executables or shared objects are built, AIX ld can
12845       # have problems creating the table of contents.  If linking a library
12846       # or program results in "error TOC overflow" add -mminimal-toc to
12847       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12848       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12849
12850       archive_cmds=''
12851       hardcode_direct=yes
12852       hardcode_direct_absolute=yes
12853       hardcode_libdir_separator=':'
12854       link_all_deplibs=yes
12855       file_list_spec='${wl}-f,'
12856
12857       if test "$GCC" = yes; then
12858         case $host_os in aix4.[012]|aix4.[012].*)
12859         # We only want to do this on AIX 4.2 and lower, the check
12860         # below for broken collect2 doesn't work under 4.3+
12861           collect2name=`${CC} -print-prog-name=collect2`
12862           if test -f "$collect2name" &&
12863            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12864           then
12865           # We have reworked collect2
12866           :
12867           else
12868           # We have old collect2
12869           hardcode_direct=unsupported
12870           # It fails to find uninstalled libraries when the uninstalled
12871           # path is not listed in the libpath.  Setting hardcode_minus_L
12872           # to unsupported forces relinking
12873           hardcode_minus_L=yes
12874           hardcode_libdir_flag_spec='-L$libdir'
12875           hardcode_libdir_separator=
12876           fi
12877           ;;
12878         esac
12879         shared_flag='-shared'
12880         if test "$aix_use_runtimelinking" = yes; then
12881           shared_flag="$shared_flag "'${wl}-G'
12882         fi
12883         link_all_deplibs=no
12884       else
12885         # not using gcc
12886         if test "$host_cpu" = ia64; then
12887         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12888         # chokes on -Wl,-G. The following line is correct:
12889           shared_flag='-G'
12890         else
12891           if test "$aix_use_runtimelinking" = yes; then
12892             shared_flag='${wl}-G'
12893           else
12894             shared_flag='${wl}-bM:SRE'
12895           fi
12896         fi
12897       fi
12898
12899       export_dynamic_flag_spec='${wl}-bexpall'
12900       # It seems that -bexpall does not export symbols beginning with
12901       # underscore (_), so it is better to generate a list of symbols to export.
12902       always_export_symbols=yes
12903       if test "$aix_use_runtimelinking" = yes; then
12904         # Warning - without using the other runtime loading flags (-brtl),
12905         # -berok will link without error, but may produce a broken library.
12906         allow_undefined_flag='-berok'
12907         # Determine the default libpath from the value encoded in an
12908         # empty executable.
12909         if test "${lt_cv_aix_libpath+set}" = set; then
12910   aix_libpath=$lt_cv_aix_libpath
12911 else
12912   if ${lt_cv_aix_libpath_+:} false; then :
12913   $as_echo_n "(cached) " >&6
12914 else
12915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916 /* end confdefs.h.  */
12917
12918 int main (void)
12919 {
12920
12921  ;
12922  return 0;
12923 }
12924 _ACEOF
12925 if ac_fn_c_try_link "$LINENO"; then :
12926
12927   lt_aix_libpath_sed='
12928       /Import File Strings/,/^$/ {
12929           /^0/ {
12930               s/^0  *\([^ ]*\) *$/\1/
12931               p
12932           }
12933       }'
12934   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12935   # Check for a 64-bit object if we didn't find anything.
12936   if test -z "$lt_cv_aix_libpath_"; then
12937     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12938   fi
12939 fi
12940 rm -f core conftest.err conftest.$ac_objext \
12941     conftest$ac_exeext conftest.$ac_ext
12942   if test -z "$lt_cv_aix_libpath_"; then
12943     lt_cv_aix_libpath_="/usr/lib:/lib"
12944   fi
12945
12946 fi
12947
12948   aix_libpath=$lt_cv_aix_libpath_
12949 fi
12950
12951         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12952         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"
12953       else
12954         if test "$host_cpu" = ia64; then
12955           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12956           allow_undefined_flag="-z nodefs"
12957           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"
12958         else
12959          # Determine the default libpath from the value encoded in an
12960          # empty executable.
12961          if test "${lt_cv_aix_libpath+set}" = set; then
12962   aix_libpath=$lt_cv_aix_libpath
12963 else
12964   if ${lt_cv_aix_libpath_+:} false; then :
12965   $as_echo_n "(cached) " >&6
12966 else
12967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12968 /* end confdefs.h.  */
12969
12970 int main (void)
12971 {
12972
12973  ;
12974  return 0;
12975 }
12976 _ACEOF
12977 if ac_fn_c_try_link "$LINENO"; then :
12978
12979   lt_aix_libpath_sed='
12980       /Import File Strings/,/^$/ {
12981           /^0/ {
12982               s/^0  *\([^ ]*\) *$/\1/
12983               p
12984           }
12985       }'
12986   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12987   # Check for a 64-bit object if we didn't find anything.
12988   if test -z "$lt_cv_aix_libpath_"; then
12989     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12990   fi
12991 fi
12992 rm -f core conftest.err conftest.$ac_objext \
12993     conftest$ac_exeext conftest.$ac_ext
12994   if test -z "$lt_cv_aix_libpath_"; then
12995     lt_cv_aix_libpath_="/usr/lib:/lib"
12996   fi
12997
12998 fi
12999
13000   aix_libpath=$lt_cv_aix_libpath_
13001 fi
13002
13003          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13004           # Warning - without using the other run time loading flags,
13005           # -berok will link without error, but may produce a broken library.
13006           no_undefined_flag=' ${wl}-bernotok'
13007           allow_undefined_flag=' ${wl}-berok'
13008           if test "$with_gnu_ld" = yes; then
13009             # We only use this code for GNU lds that support --whole-archive.
13010             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13011           else
13012             # Exported symbols can be pulled into shared objects from archives
13013             whole_archive_flag_spec='$convenience'
13014           fi
13015           archive_cmds_need_lc=yes
13016           # This is similar to how AIX traditionally builds its shared libraries.
13017           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'
13018         fi
13019       fi
13020       ;;
13021
13022     amigaos*)
13023       case $host_cpu in
13024       powerpc)
13025             # see comment about AmigaOS4 .so support
13026             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13027             archive_expsym_cmds=''
13028         ;;
13029       m68k)
13030             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)'
13031             hardcode_libdir_flag_spec='-L$libdir'
13032             hardcode_minus_L=yes
13033         ;;
13034       esac
13035       ;;
13036
13037     bsdi[45]*)
13038       export_dynamic_flag_spec=-rdynamic
13039       ;;
13040
13041     cygwin* | mingw* | pw32* | cegcc*)
13042       # When not using gcc, we currently assume that we are using
13043       # Microsoft Visual C++.
13044       # hardcode_libdir_flag_spec is actually meaningless, as there is
13045       # no search path for DLLs.
13046       case $cc_basename in
13047       cl*)
13048         # Native MSVC
13049         hardcode_libdir_flag_spec=' '
13050         allow_undefined_flag=unsupported
13051         always_export_symbols=yes
13052         file_list_spec='@'
13053         # Tell ltmain to make .lib files, not .a files.
13054         libext=lib
13055         # Tell ltmain to make .dll files, not .so files.
13056         shrext_cmds=".dll"
13057         # FIXME: Setting linknames here is a bad hack.
13058         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13059         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13060             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13061           else
13062             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13063           fi~
13064           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13065           linknames='
13066         # The linker will not automatically build a static lib if we build a DLL.
13067         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13068         enable_shared_with_static_runtimes=yes
13069         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13070         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13071         # Don't use ranlib
13072         old_postinstall_cmds='chmod 644 $oldlib'
13073         postlink_cmds='lt_outputfile="@OUTPUT@"~
13074           lt_tool_outputfile="@TOOL_OUTPUT@"~
13075           case $lt_outputfile in
13076             *.exe|*.EXE) ;;
13077             *)
13078               lt_outputfile="$lt_outputfile.exe"
13079               lt_tool_outputfile="$lt_tool_outputfile.exe"
13080               ;;
13081           esac~
13082           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13083             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13084             $RM "$lt_outputfile.manifest";
13085           fi'
13086         ;;
13087       *)
13088         # Assume MSVC wrapper
13089         hardcode_libdir_flag_spec=' '
13090         allow_undefined_flag=unsupported
13091         # Tell ltmain to make .lib files, not .a files.
13092         libext=lib
13093         # Tell ltmain to make .dll files, not .so files.
13094         shrext_cmds=".dll"
13095         # FIXME: Setting linknames here is a bad hack.
13096         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13097         # The linker will automatically build a .lib file if we build a DLL.
13098         old_archive_from_new_cmds='true'
13099         # FIXME: Should let the user specify the lib program.
13100         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13101         enable_shared_with_static_runtimes=yes
13102         ;;
13103       esac
13104       ;;
13105
13106     darwin* | rhapsody*)
13107
13108
13109   archive_cmds_need_lc=no
13110   hardcode_direct=no
13111   hardcode_automatic=yes
13112   hardcode_shlibpath_var=unsupported
13113   if test "$lt_cv_ld_force_load" = "yes"; then
13114     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\"`'
13115
13116   else
13117     whole_archive_flag_spec=''
13118   fi
13119   link_all_deplibs=yes
13120   allow_undefined_flag="$_lt_dar_allow_undefined"
13121   case $cc_basename in
13122      ifort*) _lt_dar_can_shared=yes ;;
13123      *) _lt_dar_can_shared=$GCC ;;
13124   esac
13125   if test "$_lt_dar_can_shared" = "yes"; then
13126     output_verbose_link_cmd=func_echo_all
13127     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13128     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13129     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}"
13130     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}"
13131
13132   else
13133   ld_shlibs=no
13134   fi
13135
13136       ;;
13137
13138     dgux*)
13139       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13140       hardcode_libdir_flag_spec='-L$libdir'
13141       hardcode_shlibpath_var=no
13142       ;;
13143
13144     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13145     # support.  Future versions do this automatically, but an explicit c++rt0.o
13146     # does not break anything, and helps significantly (at the cost of a little
13147     # extra space).
13148     freebsd2.2*)
13149       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13150       hardcode_libdir_flag_spec='-R$libdir'
13151       hardcode_direct=yes
13152       hardcode_shlibpath_var=no
13153       ;;
13154
13155     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13156     freebsd2.*)
13157       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13158       hardcode_direct=yes
13159       hardcode_minus_L=yes
13160       hardcode_shlibpath_var=no
13161       ;;
13162
13163     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13164     freebsd* | dragonfly*)
13165       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13166       hardcode_libdir_flag_spec='-R$libdir'
13167       hardcode_direct=yes
13168       hardcode_shlibpath_var=no
13169       ;;
13170
13171     hpux9*)
13172       if test "$GCC" = yes; then
13173         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'
13174       else
13175         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'
13176       fi
13177       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13178       hardcode_libdir_separator=:
13179       hardcode_direct=yes
13180
13181       # hardcode_minus_L: Not really in the search PATH,
13182       # but as the default location of the library.
13183       hardcode_minus_L=yes
13184       export_dynamic_flag_spec='${wl}-E'
13185       ;;
13186
13187     hpux10*)
13188       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13189         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13190       else
13191         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13192       fi
13193       if test "$with_gnu_ld" = no; then
13194         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13195         hardcode_libdir_separator=:
13196         hardcode_direct=yes
13197         hardcode_direct_absolute=yes
13198         export_dynamic_flag_spec='${wl}-E'
13199         # hardcode_minus_L: Not really in the search PATH,
13200         # but as the default location of the library.
13201         hardcode_minus_L=yes
13202       fi
13203       ;;
13204
13205     hpux11*)
13206       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13207         case $host_cpu in
13208         hppa*64*)
13209           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13210           ;;
13211         ia64*)
13212           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13213           ;;
13214         *)
13215           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13216           ;;
13217         esac
13218       else
13219         case $host_cpu in
13220         hppa*64*)
13221           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13222           ;;
13223         ia64*)
13224           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13225           ;;
13226         *)
13227
13228           # Older versions of the 11.00 compiler do not understand -b yet
13229           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13230           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13231 $as_echo_n "checking if $CC understands -b... " >&6; }
13232 if ${lt_cv_prog_compiler__b+:} false; then :
13233   $as_echo_n "(cached) " >&6
13234 else
13235   lt_cv_prog_compiler__b=no
13236    save_LDFLAGS="$LDFLAGS"
13237    LDFLAGS="$LDFLAGS -b"
13238    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13239    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13240      # The linker can only warn and ignore the option if not recognized
13241      # So say no if there are warnings
13242      if test -s conftest.err; then
13243        # Append any errors to the config.log.
13244        cat conftest.err 1>&5
13245        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13246        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13247        if diff conftest.exp conftest.er2 >/dev/null; then
13248          lt_cv_prog_compiler__b=yes
13249        fi
13250      else
13251        lt_cv_prog_compiler__b=yes
13252      fi
13253    fi
13254    $RM -r conftest*
13255    LDFLAGS="$save_LDFLAGS"
13256
13257 fi
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13259 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13260
13261 if test x"$lt_cv_prog_compiler__b" = xyes; then
13262     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13263 else
13264     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13265 fi
13266
13267           ;;
13268         esac
13269       fi
13270       if test "$with_gnu_ld" = no; then
13271         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13272         hardcode_libdir_separator=:
13273
13274         case $host_cpu in
13275         hppa*64*|ia64*)
13276           hardcode_direct=no
13277           hardcode_shlibpath_var=no
13278           ;;
13279         *)
13280           hardcode_direct=yes
13281           hardcode_direct_absolute=yes
13282           export_dynamic_flag_spec='${wl}-E'
13283
13284           # hardcode_minus_L: Not really in the search PATH,
13285           # but as the default location of the library.
13286           hardcode_minus_L=yes
13287           ;;
13288         esac
13289       fi
13290       ;;
13291
13292     irix5* | irix6* | nonstopux*)
13293       if test "$GCC" = yes; then
13294         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'
13295         # Try to use the -exported_symbol ld option, if it does not
13296         # work, assume that -exports_file does not work either and
13297         # implicitly export all symbols.
13298         # This should be the same for all languages, so no per-tag cache variable.
13299         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13300 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13301 if ${lt_cv_irix_exported_symbol+:} false; then :
13302   $as_echo_n "(cached) " >&6
13303 else
13304   save_LDFLAGS="$LDFLAGS"
13305            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13306            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13307 /* end confdefs.h.  */
13308 int foo (void) { return 0; }
13309 _ACEOF
13310 if ac_fn_c_try_link "$LINENO"; then :
13311   lt_cv_irix_exported_symbol=yes
13312 else
13313   lt_cv_irix_exported_symbol=no
13314 fi
13315 rm -f core conftest.err conftest.$ac_objext \
13316     conftest$ac_exeext conftest.$ac_ext
13317            LDFLAGS="$save_LDFLAGS"
13318 fi
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13320 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13321         if test "$lt_cv_irix_exported_symbol" = yes; then
13322           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'
13323         fi
13324       else
13325         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'
13326         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'
13327       fi
13328       archive_cmds_need_lc='no'
13329       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13330       hardcode_libdir_separator=:
13331       inherit_rpath=yes
13332       link_all_deplibs=yes
13333       ;;
13334
13335     netbsd* | netbsdelf*-gnu)
13336       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13337         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13338       else
13339         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13340       fi
13341       hardcode_libdir_flag_spec='-R$libdir'
13342       hardcode_direct=yes
13343       hardcode_shlibpath_var=no
13344       ;;
13345
13346     newsos6)
13347       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13348       hardcode_direct=yes
13349       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13350       hardcode_libdir_separator=:
13351       hardcode_shlibpath_var=no
13352       ;;
13353
13354     *nto* | *qnx*)
13355       ;;
13356
13357     openbsd*)
13358       if test -f /usr/libexec/ld.so; then
13359         hardcode_direct=yes
13360         hardcode_shlibpath_var=no
13361         hardcode_direct_absolute=yes
13362         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13363           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13364           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13365           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13366           export_dynamic_flag_spec='${wl}-E'
13367         else
13368           case $host_os in
13369            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13370              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13371              hardcode_libdir_flag_spec='-R$libdir'
13372              ;;
13373            *)
13374              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13375              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13376              ;;
13377           esac
13378         fi
13379       else
13380         ld_shlibs=no
13381       fi
13382       ;;
13383
13384     os2*)
13385       hardcode_libdir_flag_spec='-L$libdir'
13386       hardcode_minus_L=yes
13387       allow_undefined_flag=unsupported
13388       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'
13389       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13390       ;;
13391
13392     osf3*)
13393       if test "$GCC" = yes; then
13394         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13395         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'
13396       else
13397         allow_undefined_flag=' -expect_unresolved \*'
13398         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'
13399       fi
13400       archive_cmds_need_lc='no'
13401       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13402       hardcode_libdir_separator=:
13403       ;;
13404
13405     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13406       if test "$GCC" = yes; then
13407         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13408         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'
13409         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13410       else
13411         allow_undefined_flag=' -expect_unresolved \*'
13412         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'
13413         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~
13414         $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'
13415
13416         # Both c and cxx compiler support -rpath directly
13417         hardcode_libdir_flag_spec='-rpath $libdir'
13418       fi
13419       archive_cmds_need_lc='no'
13420       hardcode_libdir_separator=:
13421       ;;
13422
13423     solaris*)
13424       no_undefined_flag=' -z defs'
13425       if test "$GCC" = yes; then
13426         wlarc='${wl}'
13427         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13428         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13429           $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'
13430       else
13431         case `$CC -V 2>&1` in
13432         *"Compilers 5.0"*)
13433           wlarc=''
13434           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13435           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13436           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13437           ;;
13438         *)
13439           wlarc='${wl}'
13440           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13441           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13442           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13443           ;;
13444         esac
13445       fi
13446       hardcode_libdir_flag_spec='-R$libdir'
13447       hardcode_shlibpath_var=no
13448       case $host_os in
13449       solaris2.[0-5] | solaris2.[0-5].*) ;;
13450       *)
13451         # The compiler driver will combine and reorder linker options,
13452         # but understands `-z linker_flag'.  GCC discards it without `$wl',
13453         # but is careful enough not to reorder.
13454         # Supported since Solaris 2.6 (maybe 2.5.1?)
13455         if test "$GCC" = yes; then
13456           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13457         else
13458           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13459         fi
13460         ;;
13461       esac
13462       link_all_deplibs=yes
13463       ;;
13464
13465     sunos4*)
13466       if test "x$host_vendor" = xsequent; then
13467         # Use $CC to link under sequent, because it throws in some extra .o
13468         # files that make .init and .fini sections work.
13469         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13470       else
13471         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13472       fi
13473       hardcode_libdir_flag_spec='-L$libdir'
13474       hardcode_direct=yes
13475       hardcode_minus_L=yes
13476       hardcode_shlibpath_var=no
13477       ;;
13478
13479     sysv4)
13480       case $host_vendor in
13481         sni)
13482           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13483           hardcode_direct=yes # is this really true???
13484         ;;
13485         siemens)
13486           ## LD is ld it makes a PLAMLIB
13487           ## CC just makes a GrossModule.
13488           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13489           reload_cmds='$CC -r -o $output$reload_objs'
13490           hardcode_direct=no
13491         ;;
13492         motorola)
13493           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13494           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13495         ;;
13496       esac
13497       runpath_var='LD_RUN_PATH'
13498       hardcode_shlibpath_var=no
13499       ;;
13500
13501     sysv4.3*)
13502       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13503       hardcode_shlibpath_var=no
13504       export_dynamic_flag_spec='-Bexport'
13505       ;;
13506
13507     sysv4*MP*)
13508       if test -d /usr/nec; then
13509         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13510         hardcode_shlibpath_var=no
13511         runpath_var=LD_RUN_PATH
13512         hardcode_runpath_var=yes
13513         ld_shlibs=yes
13514       fi
13515       ;;
13516
13517     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13518       no_undefined_flag='${wl}-z,text'
13519       archive_cmds_need_lc=no
13520       hardcode_shlibpath_var=no
13521       runpath_var='LD_RUN_PATH'
13522
13523       if test "$GCC" = yes; then
13524         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13525         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13526       else
13527         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13528         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13529       fi
13530       ;;
13531
13532     sysv5* | sco3.2v5* | sco5v6*)
13533       # Note: We can NOT use -z defs as we might desire, because we do not
13534       # link with -lc, and that would cause any symbols used from libc to
13535       # always be unresolved, which means just about no library would
13536       # ever link correctly.  If we're not using GNU ld we use -z text
13537       # though, which does catch some bad symbols but isn't as heavy-handed
13538       # as -z defs.
13539       no_undefined_flag='${wl}-z,text'
13540       allow_undefined_flag='${wl}-z,nodefs'
13541       archive_cmds_need_lc=no
13542       hardcode_shlibpath_var=no
13543       hardcode_libdir_flag_spec='${wl}-R,$libdir'
13544       hardcode_libdir_separator=':'
13545       link_all_deplibs=yes
13546       export_dynamic_flag_spec='${wl}-Bexport'
13547       runpath_var='LD_RUN_PATH'
13548
13549       if test "$GCC" = yes; then
13550         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13551         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13552       else
13553         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13554         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13555       fi
13556       ;;
13557
13558     uts4*)
13559       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13560       hardcode_libdir_flag_spec='-L$libdir'
13561       hardcode_shlibpath_var=no
13562       ;;
13563
13564     *)
13565       ld_shlibs=no
13566       ;;
13567     esac
13568
13569     if test x$host_vendor = xsni; then
13570       case $host in
13571       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13572         export_dynamic_flag_spec='${wl}-Blargedynsym'
13573         ;;
13574       esac
13575     fi
13576   fi
13577
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13579 $as_echo "$ld_shlibs" >&6; }
13580 test "$ld_shlibs" = no && can_build_shared=no
13581
13582 with_gnu_ld=$with_gnu_ld
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598 #
13599 # Do we need to explicitly link libc?
13600 #
13601 case "x$archive_cmds_need_lc" in
13602 x|xyes)
13603   # Assume -lc should be added
13604   archive_cmds_need_lc=yes
13605
13606   if test "$enable_shared" = yes && test "$GCC" = yes; then
13607     case $archive_cmds in
13608     *'~'*)
13609       # FIXME: we may have to deal with multi-command sequences.
13610       ;;
13611     '$CC '*)
13612       # Test whether the compiler implicitly links with -lc since on some
13613       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13614       # to ld, don't add -lc before -lgcc.
13615       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13616 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13617 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13618   $as_echo_n "(cached) " >&6
13619 else
13620   $RM conftest*
13621         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13622
13623         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13624   (eval $ac_compile) 2>&5
13625   ac_status=$?
13626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13627   test $ac_status = 0; } 2>conftest.err; then
13628           soname=conftest
13629           lib=conftest
13630           libobjs=conftest.$ac_objext
13631           deplibs=
13632           wl=$lt_prog_compiler_wl
13633           pic_flag=$lt_prog_compiler_pic
13634           compiler_flags=-v
13635           linker_flags=-v
13636           verstring=
13637           output_objdir=.
13638           libname=conftest
13639           lt_save_allow_undefined_flag=$allow_undefined_flag
13640           allow_undefined_flag=
13641           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13642   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13643   ac_status=$?
13644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13645   test $ac_status = 0; }
13646           then
13647             lt_cv_archive_cmds_need_lc=no
13648           else
13649             lt_cv_archive_cmds_need_lc=yes
13650           fi
13651           allow_undefined_flag=$lt_save_allow_undefined_flag
13652         else
13653           cat conftest.err 1>&5
13654         fi
13655         $RM conftest*
13656
13657 fi
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13659 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13660       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13661       ;;
13662     esac
13663   fi
13664   ;;
13665 esac
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13819 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13820
13821 if test "$GCC" = yes; then
13822   case $host_os in
13823     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13824     *) lt_awk_arg="/^libraries:/" ;;
13825   esac
13826   case $host_os in
13827     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
13828     *) lt_sed_strip_eq="s,=/,/,g" ;;
13829   esac
13830   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13831   case $lt_search_path_spec in
13832   *\;*)
13833     # if the path contains ";" then we assume it to be the separator
13834     # otherwise default to the standard path separator (i.e. ":") - it is
13835     # assumed that no part of a normal pathname contains ";" but that should
13836     # okay in the real world where ";" in dirpaths is itself problematic.
13837     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13838     ;;
13839   *)
13840     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13841     ;;
13842   esac
13843   # Ok, now we have the path, separated by spaces, we can step through it
13844   # and add multilib dir if necessary.
13845   lt_tmp_lt_search_path_spec=
13846   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13847   for lt_sys_path in $lt_search_path_spec; do
13848     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13849       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13850     else
13851       test -d "$lt_sys_path" && \
13852         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13853     fi
13854   done
13855   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13856 BEGIN {RS=" "; FS="/|\n";} {
13857   lt_foo="";
13858   lt_count=0;
13859   for (lt_i = NF; lt_i > 0; lt_i--) {
13860     if ($lt_i != "" && $lt_i != ".") {
13861       if ($lt_i == "..") {
13862         lt_count++;
13863       } else {
13864         if (lt_count == 0) {
13865           lt_foo="/" $lt_i lt_foo;
13866         } else {
13867           lt_count--;
13868         }
13869       }
13870     }
13871   }
13872   if (lt_foo != "") { lt_freq[lt_foo]++; }
13873   if (lt_freq[lt_foo] == 1) { print lt_foo; }
13874 }'`
13875   # AWK program above erroneously prepends '/' to C:/dos/paths
13876   # for these hosts.
13877   case $host_os in
13878     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13879       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13880   esac
13881   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13882 else
13883   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13884 fi
13885 library_names_spec=
13886 libname_spec='lib$name'
13887 soname_spec=
13888 shrext_cmds=".so"
13889 postinstall_cmds=
13890 postuninstall_cmds=
13891 finish_cmds=
13892 finish_eval=
13893 shlibpath_var=
13894 shlibpath_overrides_runpath=unknown
13895 version_type=none
13896 dynamic_linker="$host_os ld.so"
13897 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13898 need_lib_prefix=unknown
13899 hardcode_into_libs=no
13900
13901 # when you set need_version to no, make sure it does not cause -set_version
13902 # flags to be left without arguments
13903 need_version=unknown
13904
13905 case $host_os in
13906 aix3*)
13907   version_type=linux # correct to gnu/linux during the next big refactor
13908   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13909   shlibpath_var=LIBPATH
13910
13911   # AIX 3 has no versioning support, so we append a major version to the name.
13912   soname_spec='${libname}${release}${shared_ext}$major'
13913   ;;
13914
13915 aix[4-9]*)
13916   version_type=linux # correct to gnu/linux during the next big refactor
13917   need_lib_prefix=no
13918   need_version=no
13919   hardcode_into_libs=yes
13920   if test "$host_cpu" = ia64; then
13921     # AIX 5 supports IA64
13922     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13923     shlibpath_var=LD_LIBRARY_PATH
13924   else
13925     # With GCC up to 2.95.x, collect2 would create an import file
13926     # for dependence libraries.  The import file would start with
13927     # the line `#! .'.  This would cause the generated library to
13928     # depend on `.', always an invalid library.  This was fixed in
13929     # development snapshots of GCC prior to 3.0.
13930     case $host_os in
13931       aix4 | aix4.[01] | aix4.[01].*)
13932       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13933            echo ' yes '
13934            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13935         :
13936       else
13937         can_build_shared=no
13938       fi
13939       ;;
13940     esac
13941     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13942     # soname into executable. Probably we can add versioning support to
13943     # collect2, so additional links can be useful in future.
13944     if test "$aix_use_runtimelinking" = yes; then
13945       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13946       # instead of lib<name>.a to let people know that these are not
13947       # typical AIX shared libraries.
13948       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13949     else
13950       # We preserve .a as extension for shared libraries through AIX4.2
13951       # and later when we are not doing run time linking.
13952       library_names_spec='${libname}${release}.a $libname.a'
13953       soname_spec='${libname}${release}${shared_ext}$major'
13954     fi
13955     shlibpath_var=LIBPATH
13956   fi
13957   ;;
13958
13959 amigaos*)
13960   case $host_cpu in
13961   powerpc)
13962     # Since July 2007 AmigaOS4 officially supports .so libraries.
13963     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13964     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13965     ;;
13966   m68k)
13967     library_names_spec='$libname.ixlibrary $libname.a'
13968     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13969     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'
13970     ;;
13971   esac
13972   ;;
13973
13974 beos*)
13975   library_names_spec='${libname}${shared_ext}'
13976   dynamic_linker="$host_os ld.so"
13977   shlibpath_var=LIBRARY_PATH
13978   ;;
13979
13980 bsdi[45]*)
13981   version_type=linux # correct to gnu/linux during the next big refactor
13982   need_version=no
13983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13984   soname_spec='${libname}${release}${shared_ext}$major'
13985   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13986   shlibpath_var=LD_LIBRARY_PATH
13987   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13988   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13989   # the default ld.so.conf also contains /usr/contrib/lib and
13990   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13991   # libtool to hard-code these into programs
13992   ;;
13993
13994 cygwin* | mingw* | pw32* | cegcc*)
13995   version_type=windows
13996   shrext_cmds=".dll"
13997   need_version=no
13998   need_lib_prefix=no
13999
14000   case $GCC,$cc_basename in
14001   yes,*)
14002     # gcc
14003     library_names_spec='$libname.dll.a'
14004     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14005     postinstall_cmds='base_file=`basename \${file}`~
14006       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14007       dldir=$destdir/`dirname \$dlpath`~
14008       test -d \$dldir || mkdir -p \$dldir~
14009       $install_prog $dir/$dlname \$dldir/$dlname~
14010       chmod a+x \$dldir/$dlname~
14011       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14012         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14013       fi'
14014     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14015       dlpath=$dir/\$dldll~
14016        $RM \$dlpath'
14017     shlibpath_overrides_runpath=yes
14018
14019     case $host_os in
14020     cygwin*)
14021       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14022       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14023
14024       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14025       ;;
14026     mingw* | cegcc*)
14027       # MinGW DLLs use traditional 'lib' prefix
14028       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14029       ;;
14030     pw32*)
14031       # pw32 DLLs use 'pw' prefix rather than 'lib'
14032       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14033       ;;
14034     esac
14035     dynamic_linker='Win32 ld.exe'
14036     ;;
14037
14038   *,cl*)
14039     # Native MSVC
14040     libname_spec='$name'
14041     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14042     library_names_spec='${libname}.dll.lib'
14043
14044     case $build_os in
14045     mingw*)
14046       sys_lib_search_path_spec=
14047       lt_save_ifs=$IFS
14048       IFS=';'
14049       for lt_path in $LIB
14050       do
14051         IFS=$lt_save_ifs
14052         # Let DOS variable expansion print the short 8.3 style file name.
14053         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14054         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14055       done
14056       IFS=$lt_save_ifs
14057       # Convert to MSYS style.
14058       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14059       ;;
14060     cygwin*)
14061       # Convert to unix form, then to dos form, then back to unix form
14062       # but this time dos style (no spaces!) so that the unix form looks
14063       # like /cygdrive/c/PROGRA~1:/cygdr...
14064       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14065       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14066       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14067       ;;
14068     *)
14069       sys_lib_search_path_spec="$LIB"
14070       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14071         # It is most probably a Windows format PATH.
14072         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14073       else
14074         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14075       fi
14076       # FIXME: find the short name or the path components, as spaces are
14077       # common. (e.g. "Program Files" -> "PROGRA~1")
14078       ;;
14079     esac
14080
14081     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14082     postinstall_cmds='base_file=`basename \${file}`~
14083       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14084       dldir=$destdir/`dirname \$dlpath`~
14085       test -d \$dldir || mkdir -p \$dldir~
14086       $install_prog $dir/$dlname \$dldir/$dlname'
14087     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14088       dlpath=$dir/\$dldll~
14089        $RM \$dlpath'
14090     shlibpath_overrides_runpath=yes
14091     dynamic_linker='Win32 link.exe'
14092     ;;
14093
14094   *)
14095     # Assume MSVC wrapper
14096     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14097     dynamic_linker='Win32 ld.exe'
14098     ;;
14099   esac
14100   # FIXME: first we should search . and the directory the executable is in
14101   shlibpath_var=PATH
14102   ;;
14103
14104 darwin* | rhapsody*)
14105   dynamic_linker="$host_os dyld"
14106   version_type=darwin
14107   need_lib_prefix=no
14108   need_version=no
14109   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14110   soname_spec='${libname}${release}${major}$shared_ext'
14111   shlibpath_overrides_runpath=yes
14112   shlibpath_var=DYLD_LIBRARY_PATH
14113   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14114
14115   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14116   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14117   ;;
14118
14119 dgux*)
14120   version_type=linux # correct to gnu/linux during the next big refactor
14121   need_lib_prefix=no
14122   need_version=no
14123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14124   soname_spec='${libname}${release}${shared_ext}$major'
14125   shlibpath_var=LD_LIBRARY_PATH
14126   ;;
14127
14128 freebsd* | dragonfly*)
14129   # DragonFly does not have aout.  When/if they implement a new
14130   # versioning mechanism, adjust this.
14131   if test -x /usr/bin/objformat; then
14132     objformat=`/usr/bin/objformat`
14133   else
14134     case $host_os in
14135     freebsd[23].*) objformat=aout ;;
14136     *) objformat=elf ;;
14137     esac
14138   fi
14139   version_type=freebsd-$objformat
14140   case $version_type in
14141     freebsd-elf*)
14142       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14143       need_version=no
14144       need_lib_prefix=no
14145       ;;
14146     freebsd-*)
14147       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14148       need_version=yes
14149       ;;
14150   esac
14151   shlibpath_var=LD_LIBRARY_PATH
14152   case $host_os in
14153   freebsd2.*)
14154     shlibpath_overrides_runpath=yes
14155     ;;
14156   freebsd3.[01]* | freebsdelf3.[01]*)
14157     shlibpath_overrides_runpath=yes
14158     hardcode_into_libs=yes
14159     ;;
14160   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14161   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14162     shlibpath_overrides_runpath=no
14163     hardcode_into_libs=yes
14164     ;;
14165   *) # from 4.6 on, and DragonFly
14166     shlibpath_overrides_runpath=yes
14167     hardcode_into_libs=yes
14168     ;;
14169   esac
14170   ;;
14171
14172 haiku*)
14173   version_type=linux # correct to gnu/linux during the next big refactor
14174   need_lib_prefix=no
14175   need_version=no
14176   dynamic_linker="$host_os runtime_loader"
14177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14178   soname_spec='${libname}${release}${shared_ext}$major'
14179   shlibpath_var=LIBRARY_PATH
14180   shlibpath_overrides_runpath=yes
14181   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14182   hardcode_into_libs=yes
14183   ;;
14184
14185 hpux9* | hpux10* | hpux11*)
14186   # Give a soname corresponding to the major version so that dld.sl refuses to
14187   # link against other versions.
14188   version_type=sunos
14189   need_lib_prefix=no
14190   need_version=no
14191   case $host_cpu in
14192   ia64*)
14193     shrext_cmds='.so'
14194     hardcode_into_libs=yes
14195     dynamic_linker="$host_os dld.so"
14196     shlibpath_var=LD_LIBRARY_PATH
14197     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14198     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14199     soname_spec='${libname}${release}${shared_ext}$major'
14200     if test "X$HPUX_IA64_MODE" = X32; then
14201       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14202     else
14203       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14204     fi
14205     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14206     ;;
14207   hppa*64*)
14208     shrext_cmds='.sl'
14209     hardcode_into_libs=yes
14210     dynamic_linker="$host_os dld.sl"
14211     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14212     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14213     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14214     soname_spec='${libname}${release}${shared_ext}$major'
14215     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14216     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14217     ;;
14218   *)
14219     shrext_cmds='.sl'
14220     dynamic_linker="$host_os dld.sl"
14221     shlibpath_var=SHLIB_PATH
14222     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14223     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14224     soname_spec='${libname}${release}${shared_ext}$major'
14225     ;;
14226   esac
14227   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14228   postinstall_cmds='chmod 555 $lib'
14229   # or fails outright, so override atomically:
14230   install_override_mode=555
14231   ;;
14232
14233 interix[3-9]*)
14234   version_type=linux # correct to gnu/linux during the next big refactor
14235   need_lib_prefix=no
14236   need_version=no
14237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14238   soname_spec='${libname}${release}${shared_ext}$major'
14239   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14240   shlibpath_var=LD_LIBRARY_PATH
14241   shlibpath_overrides_runpath=no
14242   hardcode_into_libs=yes
14243   ;;
14244
14245 irix5* | irix6* | nonstopux*)
14246   case $host_os in
14247     nonstopux*) version_type=nonstopux ;;
14248     *)
14249         if test "$lt_cv_prog_gnu_ld" = yes; then
14250                 version_type=linux # correct to gnu/linux during the next big refactor
14251         else
14252                 version_type=irix
14253         fi ;;
14254   esac
14255   need_lib_prefix=no
14256   need_version=no
14257   soname_spec='${libname}${release}${shared_ext}$major'
14258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14259   case $host_os in
14260   irix5* | nonstopux*)
14261     libsuff= shlibsuff=
14262     ;;
14263   *)
14264     case $LD in # libtool.m4 will add one of these switches to LD
14265     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14266       libsuff= shlibsuff= libmagic=32-bit;;
14267     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14268       libsuff=32 shlibsuff=N32 libmagic=N32;;
14269     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14270       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14271     *) libsuff= shlibsuff= libmagic=never-match;;
14272     esac
14273     ;;
14274   esac
14275   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14276   shlibpath_overrides_runpath=no
14277   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14278   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14279   hardcode_into_libs=yes
14280   ;;
14281
14282 # No shared lib support for Linux oldld, aout, or coff.
14283 linux*oldld* | linux*aout* | linux*coff*)
14284   dynamic_linker=no
14285   ;;
14286
14287 # This must be glibc/ELF.
14288 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14289   version_type=linux # correct to gnu/linux during the next big refactor
14290   need_lib_prefix=no
14291   need_version=no
14292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14293   soname_spec='${libname}${release}${shared_ext}$major'
14294   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14295   shlibpath_var=LD_LIBRARY_PATH
14296   shlibpath_overrides_runpath=no
14297
14298   # Some binutils ld are patched to set DT_RUNPATH
14299   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14300   $as_echo_n "(cached) " >&6
14301 else
14302   lt_cv_shlibpath_overrides_runpath=no
14303     save_LDFLAGS=$LDFLAGS
14304     save_libdir=$libdir
14305     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14306          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14307     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14308 /* end confdefs.h.  */
14309
14310 int main (void)
14311 {
14312
14313  ;
14314  return 0;
14315 }
14316 _ACEOF
14317 if ac_fn_c_try_link "$LINENO"; then :
14318   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14319   lt_cv_shlibpath_overrides_runpath=yes
14320 fi
14321 fi
14322 rm -f core conftest.err conftest.$ac_objext \
14323     conftest$ac_exeext conftest.$ac_ext
14324     LDFLAGS=$save_LDFLAGS
14325     libdir=$save_libdir
14326
14327 fi
14328
14329   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14330
14331   # This implies no fast_install, which is unacceptable.
14332   # Some rework will be needed to allow for fast_install
14333   # before this can be enabled.
14334   hardcode_into_libs=yes
14335
14336   # Append ld.so.conf contents to the search path
14337   if test -f /etc/ld.so.conf; then
14338     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' ' '`
14339     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14340   fi
14341
14342   # We used to test for /lib/ld.so.1 and disable shared libraries on
14343   # powerpc, because MkLinux only supported shared libraries with the
14344   # GNU dynamic linker.  Since this was broken with cross compilers,
14345   # most powerpc-linux boxes support dynamic linking these days and
14346   # people can always --disable-shared, the test was removed, and we
14347   # assume the GNU/Linux dynamic linker is in use.
14348   dynamic_linker='GNU/Linux ld.so'
14349   ;;
14350
14351 netbsdelf*-gnu)
14352   version_type=linux
14353   need_lib_prefix=no
14354   need_version=no
14355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14356   soname_spec='${libname}${release}${shared_ext}$major'
14357   shlibpath_var=LD_LIBRARY_PATH
14358   shlibpath_overrides_runpath=no
14359   hardcode_into_libs=yes
14360   dynamic_linker='NetBSD ld.elf_so'
14361   ;;
14362
14363 netbsd*)
14364   version_type=sunos
14365   need_lib_prefix=no
14366   need_version=no
14367   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14368     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14369     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14370     dynamic_linker='NetBSD (a.out) ld.so'
14371   else
14372     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14373     soname_spec='${libname}${release}${shared_ext}$major'
14374     dynamic_linker='NetBSD ld.elf_so'
14375   fi
14376   shlibpath_var=LD_LIBRARY_PATH
14377   shlibpath_overrides_runpath=yes
14378   hardcode_into_libs=yes
14379   ;;
14380
14381 newsos6)
14382   version_type=linux # correct to gnu/linux during the next big refactor
14383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14384   shlibpath_var=LD_LIBRARY_PATH
14385   shlibpath_overrides_runpath=yes
14386   ;;
14387
14388 *nto* | *qnx*)
14389   version_type=qnx
14390   need_lib_prefix=no
14391   need_version=no
14392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14393   soname_spec='${libname}${release}${shared_ext}$major'
14394   shlibpath_var=LD_LIBRARY_PATH
14395   shlibpath_overrides_runpath=no
14396   hardcode_into_libs=yes
14397   dynamic_linker='ldqnx.so'
14398   ;;
14399
14400 openbsd*)
14401   version_type=sunos
14402   sys_lib_dlsearch_path_spec="/usr/lib"
14403   need_lib_prefix=no
14404   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14405   case $host_os in
14406     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14407     *)                          need_version=no  ;;
14408   esac
14409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14410   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14411   shlibpath_var=LD_LIBRARY_PATH
14412   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14413     case $host_os in
14414       openbsd2.[89] | openbsd2.[89].*)
14415         shlibpath_overrides_runpath=no
14416         ;;
14417       *)
14418         shlibpath_overrides_runpath=yes
14419         ;;
14420       esac
14421   else
14422     shlibpath_overrides_runpath=yes
14423   fi
14424   ;;
14425
14426 os2*)
14427   libname_spec='$name'
14428   shrext_cmds=".dll"
14429   need_lib_prefix=no
14430   library_names_spec='$libname${shared_ext} $libname.a'
14431   dynamic_linker='OS/2 ld.exe'
14432   shlibpath_var=LIBPATH
14433   ;;
14434
14435 osf3* | osf4* | osf5*)
14436   version_type=osf
14437   need_lib_prefix=no
14438   need_version=no
14439   soname_spec='${libname}${release}${shared_ext}$major'
14440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14441   shlibpath_var=LD_LIBRARY_PATH
14442   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14443   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14444   ;;
14445
14446 rdos*)
14447   dynamic_linker=no
14448   ;;
14449
14450 solaris*)
14451   version_type=linux # correct to gnu/linux during the next big refactor
14452   need_lib_prefix=no
14453   need_version=no
14454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14455   soname_spec='${libname}${release}${shared_ext}$major'
14456   shlibpath_var=LD_LIBRARY_PATH
14457   shlibpath_overrides_runpath=yes
14458   hardcode_into_libs=yes
14459   # ldd complains unless libraries are executable
14460   postinstall_cmds='chmod +x $lib'
14461   ;;
14462
14463 sunos4*)
14464   version_type=sunos
14465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14466   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14467   shlibpath_var=LD_LIBRARY_PATH
14468   shlibpath_overrides_runpath=yes
14469   if test "$with_gnu_ld" = yes; then
14470     need_lib_prefix=no
14471   fi
14472   need_version=yes
14473   ;;
14474
14475 sysv4 | sysv4.3*)
14476   version_type=linux # correct to gnu/linux during the next big refactor
14477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14478   soname_spec='${libname}${release}${shared_ext}$major'
14479   shlibpath_var=LD_LIBRARY_PATH
14480   case $host_vendor in
14481     sni)
14482       shlibpath_overrides_runpath=no
14483       need_lib_prefix=no
14484       runpath_var=LD_RUN_PATH
14485       ;;
14486     siemens)
14487       need_lib_prefix=no
14488       ;;
14489     motorola)
14490       need_lib_prefix=no
14491       need_version=no
14492       shlibpath_overrides_runpath=no
14493       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14494       ;;
14495   esac
14496   ;;
14497
14498 sysv4*MP*)
14499   if test -d /usr/nec ;then
14500     version_type=linux # correct to gnu/linux during the next big refactor
14501     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14502     soname_spec='$libname${shared_ext}.$major'
14503     shlibpath_var=LD_LIBRARY_PATH
14504   fi
14505   ;;
14506
14507 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14508   version_type=freebsd-elf
14509   need_lib_prefix=no
14510   need_version=no
14511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14512   soname_spec='${libname}${release}${shared_ext}$major'
14513   shlibpath_var=LD_LIBRARY_PATH
14514   shlibpath_overrides_runpath=yes
14515   hardcode_into_libs=yes
14516   if test "$with_gnu_ld" = yes; then
14517     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14518   else
14519     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14520     case $host_os in
14521       sco3.2v5*)
14522         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14523         ;;
14524     esac
14525   fi
14526   sys_lib_dlsearch_path_spec='/usr/lib'
14527   ;;
14528
14529 tpf*)
14530   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14531   version_type=linux # correct to gnu/linux during the next big refactor
14532   need_lib_prefix=no
14533   need_version=no
14534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14535   shlibpath_var=LD_LIBRARY_PATH
14536   shlibpath_overrides_runpath=no
14537   hardcode_into_libs=yes
14538   ;;
14539
14540 uts4*)
14541   version_type=linux # correct to gnu/linux during the next big refactor
14542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14543   soname_spec='${libname}${release}${shared_ext}$major'
14544   shlibpath_var=LD_LIBRARY_PATH
14545   ;;
14546
14547 *)
14548   dynamic_linker=no
14549   ;;
14550 esac
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14552 $as_echo "$dynamic_linker" >&6; }
14553 test "$dynamic_linker" = no && can_build_shared=no
14554
14555 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14556 if test "$GCC" = yes; then
14557   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14558 fi
14559
14560 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14561   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14562 fi
14563 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14564   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14565 fi
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14659 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14660 hardcode_action=
14661 if test -n "$hardcode_libdir_flag_spec" ||
14662    test -n "$runpath_var" ||
14663    test "X$hardcode_automatic" = "Xyes" ; then
14664
14665   # We can hardcode non-existent directories.
14666   if test "$hardcode_direct" != no &&
14667      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14668      # have to relink, otherwise we might link with an installed library
14669      # when we should be linking with a yet-to-be-installed one
14670      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14671      test "$hardcode_minus_L" != no; then
14672     # Linking always hardcodes the temporary library directory.
14673     hardcode_action=relink
14674   else
14675     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14676     hardcode_action=immediate
14677   fi
14678 else
14679   # We cannot hardcode anything, or else we can only hardcode existing
14680   # directories.
14681   hardcode_action=unsupported
14682 fi
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14684 $as_echo "$hardcode_action" >&6; }
14685
14686 if test "$hardcode_action" = relink ||
14687    test "$inherit_rpath" = yes; then
14688   # Fast installation is not supported
14689   enable_fast_install=no
14690 elif test "$shlibpath_overrides_runpath" = yes ||
14691      test "$enable_shared" = no; then
14692   # Fast installation is not necessary
14693   enable_fast_install=needless
14694 fi
14695
14696
14697
14698
14699
14700
14701   if test "x$enable_dlopen" != xyes; then
14702   enable_dlopen=unknown
14703   enable_dlopen_self=unknown
14704   enable_dlopen_self_static=unknown
14705 else
14706   lt_cv_dlopen=no
14707   lt_cv_dlopen_libs=
14708
14709   case $host_os in
14710   beos*)
14711     lt_cv_dlopen="load_add_on"
14712     lt_cv_dlopen_libs=
14713     lt_cv_dlopen_self=yes
14714     ;;
14715
14716   mingw* | pw32* | cegcc*)
14717     lt_cv_dlopen="LoadLibrary"
14718     lt_cv_dlopen_libs=
14719     ;;
14720
14721   cygwin*)
14722     lt_cv_dlopen="dlopen"
14723     lt_cv_dlopen_libs=
14724     ;;
14725
14726   darwin*)
14727   # if libdl is installed we need to link against it
14728     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14729 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14730 if ${ac_cv_lib_dl_dlopen+:} false; then :
14731   $as_echo_n "(cached) " >&6
14732 else
14733   ac_check_lib_save_LIBS=$LIBS
14734 LIBS="-ldl  $LIBS"
14735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14736 /* end confdefs.h.  */
14737
14738
14739 #ifdef __cplusplus
14740 extern "C"
14741 #endif
14742 char dlopen ();
14743 int main (void)
14744 {
14745 return dlopen ();
14746  ;
14747  return 0;
14748 }
14749 _ACEOF
14750 if ac_fn_c_try_link "$LINENO"; then :
14751   ac_cv_lib_dl_dlopen=yes
14752 else
14753   ac_cv_lib_dl_dlopen=no
14754 fi
14755 rm -f core conftest.err conftest.$ac_objext \
14756     conftest$ac_exeext conftest.$ac_ext
14757 LIBS=$ac_check_lib_save_LIBS
14758 fi
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14760 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14761 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14762   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14763 else
14764
14765     lt_cv_dlopen="dyld"
14766     lt_cv_dlopen_libs=
14767     lt_cv_dlopen_self=yes
14768
14769 fi
14770
14771     ;;
14772
14773   *)
14774     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14775 if test "x$ac_cv_func_shl_load" = xyes; then :
14776   lt_cv_dlopen="shl_load"
14777 else
14778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14779 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14780 if ${ac_cv_lib_dld_shl_load+:} false; then :
14781   $as_echo_n "(cached) " >&6
14782 else
14783   ac_check_lib_save_LIBS=$LIBS
14784 LIBS="-ldld  $LIBS"
14785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14786 /* end confdefs.h.  */
14787
14788
14789 #ifdef __cplusplus
14790 extern "C"
14791 #endif
14792 char shl_load ();
14793 int main (void)
14794 {
14795 return shl_load ();
14796  ;
14797  return 0;
14798 }
14799 _ACEOF
14800 if ac_fn_c_try_link "$LINENO"; then :
14801   ac_cv_lib_dld_shl_load=yes
14802 else
14803   ac_cv_lib_dld_shl_load=no
14804 fi
14805 rm -f core conftest.err conftest.$ac_objext \
14806     conftest$ac_exeext conftest.$ac_ext
14807 LIBS=$ac_check_lib_save_LIBS
14808 fi
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14810 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14811 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14812   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14813 else
14814   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14815 if test "x$ac_cv_func_dlopen" = xyes; then :
14816   lt_cv_dlopen="dlopen"
14817 else
14818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14819 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14820 if ${ac_cv_lib_dl_dlopen+:} false; then :
14821   $as_echo_n "(cached) " >&6
14822 else
14823   ac_check_lib_save_LIBS=$LIBS
14824 LIBS="-ldl  $LIBS"
14825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14826 /* end confdefs.h.  */
14827
14828
14829 #ifdef __cplusplus
14830 extern "C"
14831 #endif
14832 char dlopen ();
14833 int main (void)
14834 {
14835 return dlopen ();
14836  ;
14837  return 0;
14838 }
14839 _ACEOF
14840 if ac_fn_c_try_link "$LINENO"; then :
14841   ac_cv_lib_dl_dlopen=yes
14842 else
14843   ac_cv_lib_dl_dlopen=no
14844 fi
14845 rm -f core conftest.err conftest.$ac_objext \
14846     conftest$ac_exeext conftest.$ac_ext
14847 LIBS=$ac_check_lib_save_LIBS
14848 fi
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14850 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14851 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14852   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14853 else
14854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14855 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14856 if ${ac_cv_lib_svld_dlopen+:} false; then :
14857   $as_echo_n "(cached) " >&6
14858 else
14859   ac_check_lib_save_LIBS=$LIBS
14860 LIBS="-lsvld  $LIBS"
14861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14862 /* end confdefs.h.  */
14863
14864
14865 #ifdef __cplusplus
14866 extern "C"
14867 #endif
14868 char dlopen ();
14869 int main (void)
14870 {
14871 return dlopen ();
14872  ;
14873  return 0;
14874 }
14875 _ACEOF
14876 if ac_fn_c_try_link "$LINENO"; then :
14877   ac_cv_lib_svld_dlopen=yes
14878 else
14879   ac_cv_lib_svld_dlopen=no
14880 fi
14881 rm -f core conftest.err conftest.$ac_objext \
14882     conftest$ac_exeext conftest.$ac_ext
14883 LIBS=$ac_check_lib_save_LIBS
14884 fi
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14886 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14887 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14888   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14889 else
14890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14891 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14892 if ${ac_cv_lib_dld_dld_link+:} false; then :
14893   $as_echo_n "(cached) " >&6
14894 else
14895   ac_check_lib_save_LIBS=$LIBS
14896 LIBS="-ldld  $LIBS"
14897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14898 /* end confdefs.h.  */
14899
14900
14901 #ifdef __cplusplus
14902 extern "C"
14903 #endif
14904 char dld_link ();
14905 int main (void)
14906 {
14907 return dld_link ();
14908  ;
14909  return 0;
14910 }
14911 _ACEOF
14912 if ac_fn_c_try_link "$LINENO"; then :
14913   ac_cv_lib_dld_dld_link=yes
14914 else
14915   ac_cv_lib_dld_dld_link=no
14916 fi
14917 rm -f core conftest.err conftest.$ac_objext \
14918     conftest$ac_exeext conftest.$ac_ext
14919 LIBS=$ac_check_lib_save_LIBS
14920 fi
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14922 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14923 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14924   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14925 fi
14926
14927
14928 fi
14929
14930
14931 fi
14932
14933
14934 fi
14935
14936
14937 fi
14938
14939
14940 fi
14941
14942     ;;
14943   esac
14944
14945   if test "x$lt_cv_dlopen" != xno; then
14946     enable_dlopen=yes
14947   else
14948     enable_dlopen=no
14949   fi
14950
14951   case $lt_cv_dlopen in
14952   dlopen)
14953     save_CPPFLAGS="$CPPFLAGS"
14954     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14955
14956     save_LDFLAGS="$LDFLAGS"
14957     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14958
14959     save_LIBS="$LIBS"
14960     LIBS="$lt_cv_dlopen_libs $LIBS"
14961
14962     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14963 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14964 if ${lt_cv_dlopen_self+:} false; then :
14965   $as_echo_n "(cached) " >&6
14966 else
14967           if test "$cross_compiling" = yes; then :
14968   lt_cv_dlopen_self=cross
14969 else
14970   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14971   lt_status=$lt_dlunknown
14972   cat > conftest.$ac_ext <<_LT_EOF
14973 #line $LINENO "configure"
14974 #include "confdefs.h"
14975
14976 #if HAVE_DLFCN_H
14977 #include <dlfcn.h>
14978 #endif
14979
14980 #include <stdio.h>
14981
14982 #ifdef RTLD_GLOBAL
14983 #  define LT_DLGLOBAL           RTLD_GLOBAL
14984 #else
14985 #  ifdef DL_GLOBAL
14986 #    define LT_DLGLOBAL         DL_GLOBAL
14987 #  else
14988 #    define LT_DLGLOBAL         0
14989 #  endif
14990 #endif
14991
14992 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14993    find out it does not work in some platform. */
14994 #ifndef LT_DLLAZY_OR_NOW
14995 #  ifdef RTLD_LAZY
14996 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14997 #  else
14998 #    ifdef DL_LAZY
14999 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15000 #    else
15001 #      ifdef RTLD_NOW
15002 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15003 #      else
15004 #        ifdef DL_NOW
15005 #          define LT_DLLAZY_OR_NOW      DL_NOW
15006 #        else
15007 #          define LT_DLLAZY_OR_NOW      0
15008 #        endif
15009 #      endif
15010 #    endif
15011 #  endif
15012 #endif
15013
15014 /* When -fvisbility=hidden is used, assume the code has been annotated
15015    correspondingly for the symbols needed.  */
15016 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15017 int fnord () __attribute__((visibility("default")));
15018 #endif
15019
15020 int fnord () { return 42; }
15021 int main ()
15022 {
15023   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15024   int status = $lt_dlunknown;
15025
15026   if (self)
15027     {
15028       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15029       else
15030         {
15031           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15032           else puts (dlerror ());
15033         }
15034       /* dlclose (self); */
15035     }
15036   else
15037     puts (dlerror ());
15038
15039   return status;
15040 }
15041 _LT_EOF
15042   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15043   (eval $ac_link) 2>&5
15044   ac_status=$?
15045   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15046   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15047     (./conftest; exit; ) >&5 2>/dev/null
15048     lt_status=$?
15049     case x$lt_status in
15050       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15051       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15052       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15053     esac
15054   else :
15055     # compilation failed
15056     lt_cv_dlopen_self=no
15057   fi
15058 fi
15059 rm -fr conftest*
15060
15061
15062 fi
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15064 $as_echo "$lt_cv_dlopen_self" >&6; }
15065
15066     if test "x$lt_cv_dlopen_self" = xyes; then
15067       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15068       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15069 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15070 if ${lt_cv_dlopen_self_static+:} false; then :
15071   $as_echo_n "(cached) " >&6
15072 else
15073           if test "$cross_compiling" = yes; then :
15074   lt_cv_dlopen_self_static=cross
15075 else
15076   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15077   lt_status=$lt_dlunknown
15078   cat > conftest.$ac_ext <<_LT_EOF
15079 #line $LINENO "configure"
15080 #include "confdefs.h"
15081
15082 #if HAVE_DLFCN_H
15083 #include <dlfcn.h>
15084 #endif
15085
15086 #include <stdio.h>
15087
15088 #ifdef RTLD_GLOBAL
15089 #  define LT_DLGLOBAL           RTLD_GLOBAL
15090 #else
15091 #  ifdef DL_GLOBAL
15092 #    define LT_DLGLOBAL         DL_GLOBAL
15093 #  else
15094 #    define LT_DLGLOBAL         0
15095 #  endif
15096 #endif
15097
15098 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15099    find out it does not work in some platform. */
15100 #ifndef LT_DLLAZY_OR_NOW
15101 #  ifdef RTLD_LAZY
15102 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15103 #  else
15104 #    ifdef DL_LAZY
15105 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15106 #    else
15107 #      ifdef RTLD_NOW
15108 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15109 #      else
15110 #        ifdef DL_NOW
15111 #          define LT_DLLAZY_OR_NOW      DL_NOW
15112 #        else
15113 #          define LT_DLLAZY_OR_NOW      0
15114 #        endif
15115 #      endif
15116 #    endif
15117 #  endif
15118 #endif
15119
15120 /* When -fvisbility=hidden is used, assume the code has been annotated
15121    correspondingly for the symbols needed.  */
15122 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15123 int fnord () __attribute__((visibility("default")));
15124 #endif
15125
15126 int fnord () { return 42; }
15127 int main ()
15128 {
15129   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15130   int status = $lt_dlunknown;
15131
15132   if (self)
15133     {
15134       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15135       else
15136         {
15137           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15138           else puts (dlerror ());
15139         }
15140       /* dlclose (self); */
15141     }
15142   else
15143     puts (dlerror ());
15144
15145   return status;
15146 }
15147 _LT_EOF
15148   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15149   (eval $ac_link) 2>&5
15150   ac_status=$?
15151   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15152   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15153     (./conftest; exit; ) >&5 2>/dev/null
15154     lt_status=$?
15155     case x$lt_status in
15156       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15157       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15158       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15159     esac
15160   else :
15161     # compilation failed
15162     lt_cv_dlopen_self_static=no
15163   fi
15164 fi
15165 rm -fr conftest*
15166
15167
15168 fi
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15170 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15171     fi
15172
15173     CPPFLAGS="$save_CPPFLAGS"
15174     LDFLAGS="$save_LDFLAGS"
15175     LIBS="$save_LIBS"
15176     ;;
15177   esac
15178
15179   case $lt_cv_dlopen_self in
15180   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15181   *) enable_dlopen_self=unknown ;;
15182   esac
15183
15184   case $lt_cv_dlopen_self_static in
15185   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15186   *) enable_dlopen_self_static=unknown ;;
15187   esac
15188 fi
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206 striplib=
15207 old_striplib=
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15209 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15210 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15211   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15212   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15214 $as_echo "yes" >&6; }
15215 else
15216 # FIXME - insert some real tests, host_os isn't really good enough
15217   case $host_os in
15218   darwin*)
15219     if test -n "$STRIP" ; then
15220       striplib="$STRIP -x"
15221       old_striplib="$STRIP -S"
15222       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15223 $as_echo "yes" >&6; }
15224     else
15225       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15226 $as_echo "no" >&6; }
15227     fi
15228     ;;
15229   *)
15230     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15231 $as_echo "no" >&6; }
15232     ;;
15233   esac
15234 fi
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247   # Report which library types will actually be built
15248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15249 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15251 $as_echo "$can_build_shared" >&6; }
15252
15253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15254 $as_echo_n "checking whether to build shared libraries... " >&6; }
15255   test "$can_build_shared" = "no" && enable_shared=no
15256
15257   # On AIX, shared libraries and static libraries use the same namespace, and
15258   # are all built from PIC.
15259   case $host_os in
15260   aix3*)
15261     test "$enable_shared" = yes && enable_static=no
15262     if test -n "$RANLIB"; then
15263       archive_cmds="$archive_cmds~\$RANLIB \$lib"
15264       postinstall_cmds='$RANLIB $lib'
15265     fi
15266     ;;
15267
15268   aix[4-9]*)
15269     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15270       test "$enable_shared" = yes && enable_static=no
15271     fi
15272     ;;
15273   esac
15274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15275 $as_echo "$enable_shared" >&6; }
15276
15277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15278 $as_echo_n "checking whether to build static libraries... " >&6; }
15279   # Make sure either enable_shared or enable_static is yes.
15280   test "$enable_shared" = yes || enable_static=yes
15281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15282 $as_echo "$enable_static" >&6; }
15283
15284
15285
15286
15287 fi
15288 ac_ext=c
15289 ac_cpp='$CPP $CPPFLAGS'
15290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15293
15294 CC="$lt_save_CC"
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310         ac_config_commands="$ac_config_commands libtool"
15311
15312
15313
15314
15315 # Only expand once:
15316
15317
15318 ## --------------------- ##
15319 ##  End of libtool code  ##
15320 ## --------------------- ##
15321
15322 #
15323 # Verify if finally libtool shared libraries will be built
15324 #
15325
15326 case "x$enable_shared" in # ((
15327   xyes | xno)
15328     xc_lt_build_shared=$enable_shared
15329     ;;
15330   *)
15331     as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15332     ;;
15333 esac
15334
15335 #
15336 # Verify if finally libtool static libraries will be built
15337 #
15338
15339 case "x$enable_static" in # ((
15340   xyes | xno)
15341     xc_lt_build_static=$enable_static
15342     ;;
15343   *)
15344     as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15345     ;;
15346 esac
15347
15348 #
15349 # Verify if libtool shared libraries should be linked using flag -version-info
15350 #
15351
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15353 $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15354 xc_lt_shlib_use_version_info='yes'
15355 if test "x$version_type" = 'xnone'; then
15356   xc_lt_shlib_use_version_info='no'
15357 fi
15358 case $host_os in # (
15359   amigaos*)
15360     xc_lt_shlib_use_version_info='yes'
15361     ;;
15362 esac
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15364 $as_echo "$xc_lt_shlib_use_version_info" >&6; }
15365
15366 #
15367 # Verify if libtool shared libraries should be linked using flag -no-undefined
15368 #
15369
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15371 $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15372 xc_lt_shlib_use_no_undefined='no'
15373 if test "x$allow_undefined" = 'xno'; then
15374   xc_lt_shlib_use_no_undefined='yes'
15375 elif test "x$allow_undefined_flag" = 'xunsupported'; then
15376   xc_lt_shlib_use_no_undefined='yes'
15377 fi
15378 case $host_os in # (
15379   cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15380     xc_lt_shlib_use_no_undefined='yes'
15381     ;;
15382 esac
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15384 $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15385
15386 #
15387 # Verify if libtool shared libraries should be linked using flag -mimpure-text
15388 #
15389
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15391 $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15392 xc_lt_shlib_use_mimpure_text='no'
15393 case $host_os in # (
15394   solaris2*)
15395     if test "x$GCC" = 'xyes'; then
15396       xc_lt_shlib_use_mimpure_text='yes'
15397     fi
15398     ;;
15399 esac
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15401 $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15402
15403 #
15404 # Find out wether libtool libraries would be built wit PIC
15405 #
15406
15407 case "x$pic_mode" in # ((((
15408   xdefault)
15409     xc_lt_build_shared_with_pic='yes'
15410     xc_lt_build_static_with_pic='no'
15411     ;;
15412   xyes)
15413     xc_lt_build_shared_with_pic='yes'
15414     xc_lt_build_static_with_pic='yes'
15415     ;;
15416   xno)
15417     xc_lt_build_shared_with_pic='no'
15418     xc_lt_build_static_with_pic='no'
15419     ;;
15420   *)
15421     xc_lt_build_shared_with_pic='unknown'
15422     xc_lt_build_static_with_pic='unknown'
15423     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15424 $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15425     ;;
15426 esac
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15428 $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15430 $as_echo "$xc_lt_build_shared_with_pic" >&6; }
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15432 $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15434 $as_echo "$xc_lt_build_static_with_pic" >&6; }
15435
15436 #
15437 # Verify if libtool shared libraries will be built while static not built
15438 #
15439
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15441 $as_echo_n "checking whether to build shared libraries only... " >&6; }
15442 if test "$xc_lt_build_shared" = 'yes' &&
15443   test "$xc_lt_build_static" = 'no'; then
15444   xc_lt_build_shared_only='yes'
15445 else
15446   xc_lt_build_shared_only='no'
15447 fi
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15449 $as_echo "$xc_lt_build_shared_only" >&6; }
15450
15451 #
15452 # Verify if libtool static libraries will be built while shared not built
15453 #
15454
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15456 $as_echo_n "checking whether to build static libraries only... " >&6; }
15457 if test "$xc_lt_build_static" = 'yes' &&
15458   test "$xc_lt_build_shared" = 'no'; then
15459   xc_lt_build_static_only='yes'
15460 else
15461   xc_lt_build_static_only='no'
15462 fi
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15464 $as_echo "$xc_lt_build_static_only" >&6; }
15465
15466
15467
15468
15469 #
15470 # Automake conditionals based on libtool related checks
15471 #
15472
15473  if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15474   CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15475   CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15476 else
15477   CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15478   CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15479 fi
15480
15481  if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15482   CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15483   CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15484 else
15485   CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15486   CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15487 fi
15488
15489  if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15490   CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15491   CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15492 else
15493   CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15494   CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15495 fi
15496
15497
15498 #
15499 # Due to libtool and automake machinery limitations of not allowing
15500 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
15501 # inclusion of these in shared or static libraries, we are forced to
15502 # build using separate configure runs for shared and static libraries
15503 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
15504 # to compile objects for each kind of library. Notice that relying on
15505 # the '-DPIC' CFLAG that libtool provides is not valid given that the
15506 # user might for example choose to build static libraries with PIC.
15507 #
15508
15509 #
15510 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15511 # targeting a static library and not building its shared counterpart.
15512 #
15513
15514  if test "x$xc_lt_build_static_only" = 'xyes'; then
15515   USE_CPPFLAG_CURL_STATICLIB_TRUE=
15516   USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
15517 else
15518   USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
15519   USE_CPPFLAG_CURL_STATICLIB_FALSE=
15520 fi
15521
15522
15523 #
15524 # Make staticlib CPPFLAG variable and its definition visible in output
15525 # files unconditionally, providing an empty definition unless strictly
15526 # targeting a static library and not building its shared counterpart.
15527 #
15528
15529 CPPFLAG_CURL_STATICLIB=
15530 if test "x$xc_lt_build_static_only" = 'xyes'; then
15531   CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
15532 fi
15533
15534
15535
15536 # Determine whether all dependent libraries must be specified when linking
15537 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
15538 then
15539     REQUIRE_LIB_DEPS=no
15540 else
15541     REQUIRE_LIB_DEPS=yes
15542 fi
15543
15544  if test x$REQUIRE_LIB_DEPS = xyes; then
15545   USE_EXPLICIT_LIB_DEPS_TRUE=
15546   USE_EXPLICIT_LIB_DEPS_FALSE='#'
15547 else
15548   USE_EXPLICIT_LIB_DEPS_TRUE='#'
15549   USE_EXPLICIT_LIB_DEPS_FALSE=
15550 fi
15551
15552
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15554 $as_echo_n "checking for inline... " >&6; }
15555 if ${ac_cv_c_inline+:} false; then :
15556   $as_echo_n "(cached) " >&6
15557 else
15558   ac_cv_c_inline=no
15559 for ac_kw in inline __inline__ __inline; do
15560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15561 /* end confdefs.h.  */
15562 #ifndef __cplusplus
15563 typedef int foo_t;
15564 static $ac_kw foo_t static_foo () {return 0; }
15565 $ac_kw foo_t foo () {return 0; }
15566 #endif
15567
15568 _ACEOF
15569 if ac_fn_c_try_compile "$LINENO"; then :
15570   ac_cv_c_inline=$ac_kw
15571 fi
15572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15573   test "$ac_cv_c_inline" != no && break
15574 done
15575
15576 fi
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15578 $as_echo "$ac_cv_c_inline" >&6; }
15579
15580 case $ac_cv_c_inline in
15581   inline | yes) ;;
15582   *)
15583     case $ac_cv_c_inline in
15584       no) ac_val=;;
15585       *) ac_val=$ac_cv_c_inline;;
15586     esac
15587     cat >>confdefs.h <<_ACEOF
15588 #ifndef __cplusplus
15589 #define inline $ac_val
15590 #endif
15591 _ACEOF
15592     ;;
15593 esac
15594
15595
15596
15597
15598   #
15599   compiler_id="unknown"
15600   compiler_num="0"
15601   #
15602   flags_dbg_all="unknown"
15603   flags_dbg_yes="unknown"
15604   flags_dbg_off="unknown"
15605   flags_opt_all="unknown"
15606   flags_opt_yes="unknown"
15607   flags_opt_off="unknown"
15608   #
15609   flags_prefer_cppflags="no"
15610   #
15611
15612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
15613 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
15614
15615       if test -z "$SED"; then
15616     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15617   fi
15618   if test -z "$GREP"; then
15619     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15620   fi
15621
15622   tmp_exp=""
15623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15624 /* end confdefs.h.  */
15625
15626
15627 #ifdef __DECC
15628 CURL_DEF_TOKEN __DECC
15629 #endif
15630
15631
15632 _ACEOF
15633 if ac_fn_c_try_cpp "$LINENO"; then :
15634
15635     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15636       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15637       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15638       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15639     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
15640       tmp_exp=""
15641     fi
15642
15643 fi
15644 rm -f conftest.err conftest.i conftest.$ac_ext
15645   if test -z "$tmp_exp"; then
15646     curl_cv_have_def___DECC=no
15647
15648   else
15649     curl_cv_have_def___DECC=yes
15650     curl_cv_def___DECC=$tmp_exp
15651
15652   fi
15653
15654
15655       if test -z "$SED"; then
15656     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15657   fi
15658   if test -z "$GREP"; then
15659     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15660   fi
15661
15662   tmp_exp=""
15663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15664 /* end confdefs.h.  */
15665
15666
15667 #ifdef __DECC_VER
15668 CURL_DEF_TOKEN __DECC_VER
15669 #endif
15670
15671
15672 _ACEOF
15673 if ac_fn_c_try_cpp "$LINENO"; then :
15674
15675     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15676       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15677       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15678       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15679     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
15680       tmp_exp=""
15681     fi
15682
15683 fi
15684 rm -f conftest.err conftest.i conftest.$ac_ext
15685   if test -z "$tmp_exp"; then
15686     curl_cv_have_def___DECC_VER=no
15687
15688   else
15689     curl_cv_have_def___DECC_VER=yes
15690     curl_cv_def___DECC_VER=$tmp_exp
15691
15692   fi
15693
15694   if test "$curl_cv_have_def___DECC" = "yes" &&
15695     test "$curl_cv_have_def___DECC_VER" = "yes"; then
15696     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15697 $as_echo "yes" >&6; }
15698     compiler_id="DEC_C"
15699     flags_dbg_all="-g -g0 -g1 -g2 -g3"
15700     flags_dbg_yes="-g2"
15701     flags_dbg_off=""
15702     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
15703     flags_opt_yes="-O1"
15704     flags_opt_off="-O0"
15705   else
15706     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15707 $as_echo "no" >&6; }
15708   fi
15709
15710
15711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
15712 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
15713
15714       if test -z "$SED"; then
15715     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15716   fi
15717   if test -z "$GREP"; then
15718     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15719   fi
15720
15721   tmp_exp=""
15722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15723 /* end confdefs.h.  */
15724
15725
15726 #ifdef __HP_cc
15727 CURL_DEF_TOKEN __HP_cc
15728 #endif
15729
15730
15731 _ACEOF
15732 if ac_fn_c_try_cpp "$LINENO"; then :
15733
15734     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15735       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15736       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15737       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15738     if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
15739       tmp_exp=""
15740     fi
15741
15742 fi
15743 rm -f conftest.err conftest.i conftest.$ac_ext
15744   if test -z "$tmp_exp"; then
15745     curl_cv_have_def___HP_cc=no
15746
15747   else
15748     curl_cv_have_def___HP_cc=yes
15749     curl_cv_def___HP_cc=$tmp_exp
15750
15751   fi
15752
15753   if test "$curl_cv_have_def___HP_cc" = "yes"; then
15754     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15755 $as_echo "yes" >&6; }
15756     compiler_id="HP_UX_C"
15757     flags_dbg_all="-g -s"
15758     flags_dbg_yes="-g"
15759     flags_dbg_off="-s"
15760     flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
15761     flags_opt_yes="+O2"
15762     flags_opt_off="+O0"
15763   else
15764     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15765 $as_echo "no" >&6; }
15766   fi
15767
15768
15769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
15770 $as_echo_n "checking if compiler is IBM C... " >&6; }
15771
15772       if test -z "$SED"; then
15773     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15774   fi
15775   if test -z "$GREP"; then
15776     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15777   fi
15778
15779   tmp_exp=""
15780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15781 /* end confdefs.h.  */
15782
15783
15784 #ifdef __IBMC__
15785 CURL_DEF_TOKEN __IBMC__
15786 #endif
15787
15788
15789 _ACEOF
15790 if ac_fn_c_try_cpp "$LINENO"; then :
15791
15792     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15793       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15794       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15795       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15796     if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
15797       tmp_exp=""
15798     fi
15799
15800 fi
15801 rm -f conftest.err conftest.i conftest.$ac_ext
15802   if test -z "$tmp_exp"; then
15803     curl_cv_have_def___IBMC__=no
15804
15805   else
15806     curl_cv_have_def___IBMC__=yes
15807     curl_cv_def___IBMC__=$tmp_exp
15808
15809   fi
15810
15811   if test "$curl_cv_have_def___IBMC__" = "yes"; then
15812     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15813 $as_echo "yes" >&6; }
15814     compiler_id="IBM_C"
15815     flags_dbg_all="-g -g0 -g1 -g2 -g3"
15816     flags_dbg_yes="-g"
15817     flags_dbg_off=""
15818     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
15819     flags_opt_all="$flags_opt_all -qnooptimize"
15820     flags_opt_all="$flags_opt_all -qoptimize=0"
15821     flags_opt_all="$flags_opt_all -qoptimize=1"
15822     flags_opt_all="$flags_opt_all -qoptimize=2"
15823     flags_opt_all="$flags_opt_all -qoptimize=3"
15824     flags_opt_all="$flags_opt_all -qoptimize=4"
15825     flags_opt_all="$flags_opt_all -qoptimize=5"
15826     flags_opt_yes="-O2"
15827     flags_opt_off="-qnooptimize"
15828     flags_prefer_cppflags="yes"
15829   else
15830     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15831 $as_echo "no" >&6; }
15832   fi
15833
15834
15835     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
15836 $as_echo_n "checking if compiler is Intel C... " >&6; }
15837
15838       if test -z "$SED"; then
15839     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15840   fi
15841   if test -z "$GREP"; then
15842     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15843   fi
15844
15845   tmp_exp=""
15846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15847 /* end confdefs.h.  */
15848
15849
15850 #ifdef __INTEL_COMPILER
15851 CURL_DEF_TOKEN __INTEL_COMPILER
15852 #endif
15853
15854
15855 _ACEOF
15856 if ac_fn_c_try_cpp "$LINENO"; then :
15857
15858     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15859       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15860       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15861       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15862     if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
15863       tmp_exp=""
15864     fi
15865
15866 fi
15867 rm -f conftest.err conftest.i conftest.$ac_ext
15868   if test -z "$tmp_exp"; then
15869     curl_cv_have_def___INTEL_COMPILER=no
15870
15871   else
15872     curl_cv_have_def___INTEL_COMPILER=yes
15873     curl_cv_def___INTEL_COMPILER=$tmp_exp
15874
15875   fi
15876
15877   if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
15878     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15879 $as_echo "yes" >&6; }
15880     compiler_num="$curl_cv_def___INTEL_COMPILER"
15881
15882       if test -z "$SED"; then
15883     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15884   fi
15885   if test -z "$GREP"; then
15886     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15887   fi
15888
15889   tmp_exp=""
15890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15891 /* end confdefs.h.  */
15892
15893
15894 #ifdef __unix__
15895 CURL_DEF_TOKEN __unix__
15896 #endif
15897
15898
15899 _ACEOF
15900 if ac_fn_c_try_cpp "$LINENO"; then :
15901
15902     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15903       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15904       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15905       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15906     if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
15907       tmp_exp=""
15908     fi
15909
15910 fi
15911 rm -f conftest.err conftest.i conftest.$ac_ext
15912   if test -z "$tmp_exp"; then
15913     curl_cv_have_def___unix__=no
15914
15915   else
15916     curl_cv_have_def___unix__=yes
15917     curl_cv_def___unix__=$tmp_exp
15918
15919   fi
15920
15921     if test "$curl_cv_have_def___unix__" = "yes"; then
15922       compiler_id="INTEL_UNIX_C"
15923       flags_dbg_all="-g -g0"
15924       flags_dbg_yes="-g"
15925       flags_dbg_off=""
15926       flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
15927       flags_opt_yes="-O2"
15928       flags_opt_off="-O0"
15929     else
15930       compiler_id="INTEL_WINDOWS_C"
15931       flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
15932       flags_dbg_all="$flags_dbg_all /debug"
15933       flags_dbg_all="$flags_dbg_all /debug:none"
15934       flags_dbg_all="$flags_dbg_all /debug:minimal"
15935       flags_dbg_all="$flags_dbg_all /debug:partial"
15936       flags_dbg_all="$flags_dbg_all /debug:full"
15937       flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
15938       flags_dbg_all="$flags_dbg_all /debug:extended"
15939       flags_dbg_yes="/Zi /Oy-"
15940       flags_dbg_off="/debug:none /Oy-"
15941       flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
15942       flags_opt_yes="/O2"
15943       flags_opt_off="/Od"
15944     fi
15945   else
15946     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15947 $as_echo "no" >&6; }
15948   fi
15949
15950
15951     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
15952 $as_echo_n "checking if compiler is clang... " >&6; }
15953
15954       if test -z "$SED"; then
15955     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15956   fi
15957   if test -z "$GREP"; then
15958     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15959   fi
15960
15961   tmp_exp=""
15962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15963 /* end confdefs.h.  */
15964
15965
15966 #ifdef __clang__
15967 CURL_DEF_TOKEN __clang__
15968 #endif
15969
15970
15971 _ACEOF
15972 if ac_fn_c_try_cpp "$LINENO"; then :
15973
15974     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15975       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15976       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15977       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15978     if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
15979       tmp_exp=""
15980     fi
15981
15982 fi
15983 rm -f conftest.err conftest.i conftest.$ac_ext
15984   if test -z "$tmp_exp"; then
15985     curl_cv_have_def___clang__=no
15986
15987   else
15988     curl_cv_have_def___clang__=yes
15989     curl_cv_def___clang__=$tmp_exp
15990
15991   fi
15992
15993   if test "$curl_cv_have_def___clang__" = "yes"; then
15994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15995 $as_echo "yes" >&6; }
15996     compiler_id="CLANG"
15997     clangver=`$CC -dumpversion`
15998     clangvhi=`echo $clangver | cut -d . -f1`
15999     clangvlo=`echo $clangver | cut -d . -f2`
16000     compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16001     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16002     flags_dbg_all="$flags_dbg_all -ggdb"
16003     flags_dbg_all="$flags_dbg_all -gstabs"
16004     flags_dbg_all="$flags_dbg_all -gstabs+"
16005     flags_dbg_all="$flags_dbg_all -gcoff"
16006     flags_dbg_all="$flags_dbg_all -gxcoff"
16007     flags_dbg_all="$flags_dbg_all -gdwarf-2"
16008     flags_dbg_all="$flags_dbg_all -gvms"
16009     flags_dbg_yes="-g"
16010     flags_dbg_off=""
16011     flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16012     flags_opt_yes="-Os"
16013     flags_opt_off="-O0"
16014   else
16015     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16016 $as_echo "no" >&6; }
16017   fi
16018
16019
16020       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16021 $as_echo_n "checking if compiler is GNU C... " >&6; }
16022
16023       if test -z "$SED"; then
16024     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16025   fi
16026   if test -z "$GREP"; then
16027     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16028   fi
16029
16030   tmp_exp=""
16031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16032 /* end confdefs.h.  */
16033
16034
16035 #ifdef __GNUC__
16036 CURL_DEF_TOKEN __GNUC__
16037 #endif
16038
16039
16040 _ACEOF
16041 if ac_fn_c_try_cpp "$LINENO"; then :
16042
16043     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16044       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16045       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16046       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16047     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16048       tmp_exp=""
16049     fi
16050
16051 fi
16052 rm -f conftest.err conftest.i conftest.$ac_ext
16053   if test -z "$tmp_exp"; then
16054     curl_cv_have_def___GNUC__=no
16055
16056   else
16057     curl_cv_have_def___GNUC__=yes
16058     curl_cv_def___GNUC__=$tmp_exp
16059
16060   fi
16061
16062   if test "$curl_cv_have_def___GNUC__" = "yes" &&
16063     test "$compiler_id" = "unknown"; then
16064     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16065 $as_echo "yes" >&6; }
16066     compiler_id="GNU_C"
16067     gccver=`$CC -dumpversion`
16068     gccvhi=`echo $gccver | cut -d . -f1`
16069     gccvlo=`echo $gccver | cut -d . -f2`
16070     compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16071     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16072     flags_dbg_all="$flags_dbg_all -ggdb"
16073     flags_dbg_all="$flags_dbg_all -gstabs"
16074     flags_dbg_all="$flags_dbg_all -gstabs+"
16075     flags_dbg_all="$flags_dbg_all -gcoff"
16076     flags_dbg_all="$flags_dbg_all -gxcoff"
16077     flags_dbg_all="$flags_dbg_all -gdwarf-2"
16078     flags_dbg_all="$flags_dbg_all -gvms"
16079     flags_dbg_yes="-g"
16080     flags_dbg_off=""
16081     flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16082     flags_opt_yes="-O2"
16083     flags_opt_off="-O0"
16084
16085       if test -z "$SED"; then
16086     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16087   fi
16088   if test -z "$GREP"; then
16089     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16090   fi
16091
16092   tmp_exp=""
16093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16094 /* end confdefs.h.  */
16095
16096
16097 #ifdef _WIN32
16098 CURL_DEF_TOKEN _WIN32
16099 #endif
16100
16101
16102 _ACEOF
16103 if ac_fn_c_try_cpp "$LINENO"; then :
16104
16105     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16106       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16107       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16108       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16109     if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16110       tmp_exp=""
16111     fi
16112
16113 fi
16114 rm -f conftest.err conftest.i conftest.$ac_ext
16115   if test -z "$tmp_exp"; then
16116     curl_cv_have_def__WIN32=no
16117
16118   else
16119     curl_cv_have_def__WIN32=yes
16120     curl_cv_def__WIN32=$tmp_exp
16121
16122   fi
16123
16124   else
16125     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16126 $as_echo "no" >&6; }
16127   fi
16128
16129
16130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16131 $as_echo_n "checking if compiler is LCC... " >&6; }
16132
16133       if test -z "$SED"; then
16134     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16135   fi
16136   if test -z "$GREP"; then
16137     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16138   fi
16139
16140   tmp_exp=""
16141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16142 /* end confdefs.h.  */
16143
16144
16145 #ifdef __LCC__
16146 CURL_DEF_TOKEN __LCC__
16147 #endif
16148
16149
16150 _ACEOF
16151 if ac_fn_c_try_cpp "$LINENO"; then :
16152
16153     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16154       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16155       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16156       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16157     if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16158       tmp_exp=""
16159     fi
16160
16161 fi
16162 rm -f conftest.err conftest.i conftest.$ac_ext
16163   if test -z "$tmp_exp"; then
16164     curl_cv_have_def___LCC__=no
16165
16166   else
16167     curl_cv_have_def___LCC__=yes
16168     curl_cv_def___LCC__=$tmp_exp
16169
16170   fi
16171
16172   if test "$curl_cv_have_def___LCC__" = "yes"; then
16173     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16174 $as_echo "yes" >&6; }
16175     compiler_id="LCC"
16176     flags_dbg_all="-g"
16177     flags_dbg_yes="-g"
16178     flags_dbg_off=""
16179     flags_opt_all=""
16180     flags_opt_yes=""
16181     flags_opt_off=""
16182   else
16183     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16184 $as_echo "no" >&6; }
16185   fi
16186
16187
16188     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16189 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16190
16191       if test -z "$SED"; then
16192     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16193   fi
16194   if test -z "$GREP"; then
16195     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16196   fi
16197
16198   tmp_exp=""
16199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16200 /* end confdefs.h.  */
16201
16202
16203 #ifdef __GNUC__
16204 CURL_DEF_TOKEN __GNUC__
16205 #endif
16206
16207
16208 _ACEOF
16209 if ac_fn_c_try_cpp "$LINENO"; then :
16210
16211     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16212       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16213       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16214       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16215     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16216       tmp_exp=""
16217     fi
16218
16219 fi
16220 rm -f conftest.err conftest.i conftest.$ac_ext
16221   if test -z "$tmp_exp"; then
16222     curl_cv_have_def___GNUC__=no
16223
16224   else
16225     curl_cv_have_def___GNUC__=yes
16226     curl_cv_def___GNUC__=$tmp_exp
16227
16228   fi
16229
16230
16231       if test -z "$SED"; then
16232     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16233   fi
16234   if test -z "$GREP"; then
16235     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16236   fi
16237
16238   tmp_exp=""
16239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16240 /* end confdefs.h.  */
16241
16242
16243 #ifdef _COMPILER_VERSION
16244 CURL_DEF_TOKEN _COMPILER_VERSION
16245 #endif
16246
16247
16248 _ACEOF
16249 if ac_fn_c_try_cpp "$LINENO"; then :
16250
16251     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16252       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16253       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16254       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16255     if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16256       tmp_exp=""
16257     fi
16258
16259 fi
16260 rm -f conftest.err conftest.i conftest.$ac_ext
16261   if test -z "$tmp_exp"; then
16262     curl_cv_have_def__COMPILER_VERSION=no
16263
16264   else
16265     curl_cv_have_def__COMPILER_VERSION=yes
16266     curl_cv_def__COMPILER_VERSION=$tmp_exp
16267
16268   fi
16269
16270
16271       if test -z "$SED"; then
16272     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16273   fi
16274   if test -z "$GREP"; then
16275     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16276   fi
16277
16278   tmp_exp=""
16279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16280 /* end confdefs.h.  */
16281
16282
16283 #ifdef _SGI_COMPILER_VERSION
16284 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16285 #endif
16286
16287
16288 _ACEOF
16289 if ac_fn_c_try_cpp "$LINENO"; then :
16290
16291     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16292       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16293       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16294       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16295     if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16296       tmp_exp=""
16297     fi
16298
16299 fi
16300 rm -f conftest.err conftest.i conftest.$ac_ext
16301   if test -z "$tmp_exp"; then
16302     curl_cv_have_def__SGI_COMPILER_VERSION=no
16303
16304   else
16305     curl_cv_have_def__SGI_COMPILER_VERSION=yes
16306     curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16307
16308   fi
16309
16310   if test "$curl_cv_have_def___GNUC__" = "no" &&
16311     (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16312      test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16313     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16314 $as_echo "yes" >&6; }
16315     compiler_id="SGI_MIPSPRO_C"
16316     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16317     flags_dbg_yes="-g"
16318     flags_dbg_off=""
16319     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16320     flags_opt_yes="-O2"
16321     flags_opt_off="-O0"
16322   else
16323     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16324 $as_echo "no" >&6; }
16325   fi
16326
16327
16328     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16329 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16330
16331       if test -z "$SED"; then
16332     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16333   fi
16334   if test -z "$GREP"; then
16335     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16336   fi
16337
16338   tmp_exp=""
16339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16340 /* end confdefs.h.  */
16341
16342
16343 #ifdef __GNUC__
16344 CURL_DEF_TOKEN __GNUC__
16345 #endif
16346
16347
16348 _ACEOF
16349 if ac_fn_c_try_cpp "$LINENO"; then :
16350
16351     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16352       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16353       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16354       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16355     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16356       tmp_exp=""
16357     fi
16358
16359 fi
16360 rm -f conftest.err conftest.i conftest.$ac_ext
16361   if test -z "$tmp_exp"; then
16362     curl_cv_have_def___GNUC__=no
16363
16364   else
16365     curl_cv_have_def___GNUC__=yes
16366     curl_cv_def___GNUC__=$tmp_exp
16367
16368   fi
16369
16370
16371       if test -z "$SED"; then
16372     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16373   fi
16374   if test -z "$GREP"; then
16375     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16376   fi
16377
16378   tmp_exp=""
16379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16380 /* end confdefs.h.  */
16381
16382
16383 #ifdef __sgi
16384 CURL_DEF_TOKEN __sgi
16385 #endif
16386
16387
16388 _ACEOF
16389 if ac_fn_c_try_cpp "$LINENO"; then :
16390
16391     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16392       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16393       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16394       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16395     if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16396       tmp_exp=""
16397     fi
16398
16399 fi
16400 rm -f conftest.err conftest.i conftest.$ac_ext
16401   if test -z "$tmp_exp"; then
16402     curl_cv_have_def___sgi=no
16403
16404   else
16405     curl_cv_have_def___sgi=yes
16406     curl_cv_def___sgi=$tmp_exp
16407
16408   fi
16409
16410   if test "$curl_cv_have_def___GNUC__" = "no" &&
16411     test "$curl_cv_have_def___sgi" = "yes" &&
16412     test "$compiler_id" = "unknown"; then
16413     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16414 $as_echo "yes" >&6; }
16415     compiler_id="SGI_MIPS_C"
16416     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16417     flags_dbg_yes="-g"
16418     flags_dbg_off=""
16419     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16420     flags_opt_yes="-O2"
16421     flags_opt_off="-O0"
16422   else
16423     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16424 $as_echo "no" >&6; }
16425   fi
16426
16427
16428   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16429 $as_echo_n "checking if compiler is SunPro C... " >&6; }
16430
16431       if test -z "$SED"; then
16432     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16433   fi
16434   if test -z "$GREP"; then
16435     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16436   fi
16437
16438   tmp_exp=""
16439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16440 /* end confdefs.h.  */
16441
16442
16443 #ifdef __SUNPRO_C
16444 CURL_DEF_TOKEN __SUNPRO_C
16445 #endif
16446
16447
16448 _ACEOF
16449 if ac_fn_c_try_cpp "$LINENO"; then :
16450
16451     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16452       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16453       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16454       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16455     if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16456       tmp_exp=""
16457     fi
16458
16459 fi
16460 rm -f conftest.err conftest.i conftest.$ac_ext
16461   if test -z "$tmp_exp"; then
16462     curl_cv_have_def___SUNPRO_C=no
16463
16464   else
16465     curl_cv_have_def___SUNPRO_C=yes
16466     curl_cv_def___SUNPRO_C=$tmp_exp
16467
16468   fi
16469
16470   if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16471     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16472 $as_echo "yes" >&6; }
16473     compiler_id="SUNPRO_C"
16474     flags_dbg_all="-g -s"
16475     flags_dbg_yes="-g"
16476     flags_dbg_off="-s"
16477     flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16478     flags_opt_yes="-xO2"
16479     flags_opt_off=""
16480   else
16481     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16482 $as_echo "no" >&6; }
16483   fi
16484
16485
16486   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16487 $as_echo_n "checking if compiler is Tiny C... " >&6; }
16488
16489       if test -z "$SED"; then
16490     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16491   fi
16492   if test -z "$GREP"; then
16493     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16494   fi
16495
16496   tmp_exp=""
16497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16498 /* end confdefs.h.  */
16499
16500
16501 #ifdef __TINYC__
16502 CURL_DEF_TOKEN __TINYC__
16503 #endif
16504
16505
16506 _ACEOF
16507 if ac_fn_c_try_cpp "$LINENO"; then :
16508
16509     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16510       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16511       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16512       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16513     if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
16514       tmp_exp=""
16515     fi
16516
16517 fi
16518 rm -f conftest.err conftest.i conftest.$ac_ext
16519   if test -z "$tmp_exp"; then
16520     curl_cv_have_def___TINYC__=no
16521
16522   else
16523     curl_cv_have_def___TINYC__=yes
16524     curl_cv_def___TINYC__=$tmp_exp
16525
16526   fi
16527
16528   if test "$curl_cv_have_def___TINYC__" = "yes"; then
16529     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16530 $as_echo "yes" >&6; }
16531     compiler_id="TINY_C"
16532     flags_dbg_all="-g -b"
16533     flags_dbg_yes="-g"
16534     flags_dbg_off=""
16535     flags_opt_all=""
16536     flags_opt_yes=""
16537     flags_opt_off=""
16538   else
16539     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16540 $as_echo "no" >&6; }
16541   fi
16542
16543
16544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
16545 $as_echo_n "checking if compiler is Watcom C... " >&6; }
16546
16547       if test -z "$SED"; then
16548     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16549   fi
16550   if test -z "$GREP"; then
16551     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16552   fi
16553
16554   tmp_exp=""
16555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16556 /* end confdefs.h.  */
16557
16558
16559 #ifdef __WATCOMC__
16560 CURL_DEF_TOKEN __WATCOMC__
16561 #endif
16562
16563
16564 _ACEOF
16565 if ac_fn_c_try_cpp "$LINENO"; then :
16566
16567     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16568       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16569       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16570       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16571     if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
16572       tmp_exp=""
16573     fi
16574
16575 fi
16576 rm -f conftest.err conftest.i conftest.$ac_ext
16577   if test -z "$tmp_exp"; then
16578     curl_cv_have_def___WATCOMC__=no
16579
16580   else
16581     curl_cv_have_def___WATCOMC__=yes
16582     curl_cv_def___WATCOMC__=$tmp_exp
16583
16584   fi
16585
16586   if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
16587     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16588 $as_echo "yes" >&6; }
16589
16590       if test -z "$SED"; then
16591     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16592   fi
16593   if test -z "$GREP"; then
16594     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16595   fi
16596
16597   tmp_exp=""
16598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16599 /* end confdefs.h.  */
16600
16601
16602 #ifdef __UNIX__
16603 CURL_DEF_TOKEN __UNIX__
16604 #endif
16605
16606
16607 _ACEOF
16608 if ac_fn_c_try_cpp "$LINENO"; then :
16609
16610     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16611       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16612       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16613       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16614     if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
16615       tmp_exp=""
16616     fi
16617
16618 fi
16619 rm -f conftest.err conftest.i conftest.$ac_ext
16620   if test -z "$tmp_exp"; then
16621     curl_cv_have_def___UNIX__=no
16622
16623   else
16624     curl_cv_have_def___UNIX__=yes
16625     curl_cv_def___UNIX__=$tmp_exp
16626
16627   fi
16628
16629     if test "$curl_cv_have_def___UNIX__" = "yes"; then
16630       compiler_id="WATCOM_UNIX_C"
16631       flags_dbg_all="-g1 -g1+ -g2 -g3"
16632       flags_dbg_yes="-g2"
16633       flags_dbg_off=""
16634       flags_opt_all="-O0 -O1 -O2 -O3"
16635       flags_opt_yes="-O2"
16636       flags_opt_off="-O0"
16637     else
16638       compiler_id="WATCOM_WINDOWS_C"
16639       flags_dbg_all=""
16640       flags_dbg_yes=""
16641       flags_dbg_off=""
16642       flags_opt_all=""
16643       flags_opt_yes=""
16644       flags_opt_off=""
16645     fi
16646   else
16647     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16648 $as_echo "no" >&6; }
16649   fi
16650
16651   #
16652   if test "$compiler_id" = "unknown"; then
16653   cat <<_EOF 1>&2
16654 ***
16655 *** Warning: This configure script does not have information about the
16656 *** compiler you are using, relative to the flags required to enable or
16657 *** disable generation of debug info, optimization options or warnings.
16658 ***
16659 *** Whatever settings are present in CFLAGS will be used for this run.
16660 ***
16661 *** If you wish to help the cURL project to better support your compiler
16662 *** you can report this and the required info on the libcurl development
16663 *** mailing list: http://cool.haxx.se/mailman/listinfo/curl-library/
16664 ***
16665 _EOF
16666   fi
16667
16668
16669 squeeze() {
16670   _sqz_result=""
16671   eval _sqz_input=\$$1
16672   for _sqz_token in $_sqz_input; do
16673     if test -z "$_sqz_result"; then
16674       _sqz_result="$_sqz_token"
16675     else
16676       _sqz_result="$_sqz_result $_sqz_token"
16677     fi
16678   done
16679   eval $1=\$_sqz_result
16680   return 0
16681 }
16682
16683
16684       #
16685   if test "$compiler_id" != "unknown"; then
16686     #
16687     if test "$compiler_id" = "GNU_C" ||
16688       test "$compiler_id" = "CLANG"; then
16689
16690       if test "$compiler_id" = "GNU_C" ||
16691     test "$compiler_id" = "CLANG"; then
16692     tmp_has_include="no"
16693     tmp_chg_FLAGS="$CFLAGS"
16694     for word1 in $tmp_chg_FLAGS; do
16695       case "$word1" in
16696         -I*)
16697           tmp_has_include="yes"
16698           ;;
16699       esac
16700     done
16701     if test "$tmp_has_include" = "yes"; then
16702       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
16703       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
16704       CFLAGS="$tmp_chg_FLAGS"
16705       squeeze CFLAGS
16706     fi
16707     tmp_has_include="no"
16708     tmp_chg_FLAGS="$CPPFLAGS"
16709     for word1 in $tmp_chg_FLAGS; do
16710       case "$word1" in
16711         -I*)
16712           tmp_has_include="yes"
16713           ;;
16714       esac
16715     done
16716     if test "$tmp_has_include" = "yes"; then
16717       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
16718       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
16719       CPPFLAGS="$tmp_chg_FLAGS"
16720       squeeze CPPFLAGS
16721     fi
16722   fi
16723
16724     fi
16725     #
16726     tmp_save_CPPFLAGS="$CPPFLAGS"
16727     tmp_save_CFLAGS="$CFLAGS"
16728     tmp_CPPFLAGS=""
16729     tmp_CFLAGS=""
16730     #
16731     case "$compiler_id" in
16732         #
16733       CLANG)
16734         #
16735                                 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
16736         ;;
16737         #
16738       DEC_C)
16739         #
16740                 tmp_CFLAGS="$tmp_CFLAGS -std1"
16741                 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
16742                 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
16743                 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
16744         ;;
16745         #
16746       GNU_C)
16747         #
16748                 tmp_CFLAGS="$tmp_CFLAGS"
16749         ;;
16750         #
16751       HP_UX_C)
16752         #
16753                 tmp_CFLAGS="$tmp_CFLAGS -z"
16754                                 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
16755         ;;
16756         #
16757       IBM_C)
16758         #
16759                 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
16760                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
16761                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
16762         ;;
16763         #
16764       INTEL_UNIX_C)
16765         #
16766                         tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
16767                                                 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
16768                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
16769         ;;
16770         #
16771       INTEL_WINDOWS_C)
16772         #
16773                 tmp_CFLAGS="$tmp_CFLAGS"
16774         ;;
16775         #
16776       LCC)
16777         #
16778                 tmp_CFLAGS="$tmp_CFLAGS -n"
16779         ;;
16780         #
16781       SGI_MIPS_C)
16782         #
16783                 tmp_CFLAGS="$tmp_CFLAGS"
16784         ;;
16785         #
16786       SGI_MIPSPRO_C)
16787         #
16788                 tmp_CFLAGS="$tmp_CFLAGS"
16789         ;;
16790         #
16791       SUNPRO_C)
16792         #
16793                 tmp_CFLAGS="$tmp_CFLAGS"
16794         ;;
16795         #
16796       TINY_C)
16797         #
16798                 tmp_CFLAGS="$tmp_CFLAGS"
16799         ;;
16800         #
16801       WATCOM_UNIX_C)
16802         #
16803                 tmp_CFLAGS="$tmp_CFLAGS"
16804         ;;
16805         #
16806       WATCOM_WINDOWS_C)
16807         #
16808                 tmp_CFLAGS="$tmp_CFLAGS"
16809         ;;
16810         #
16811     esac
16812     #
16813     squeeze tmp_CPPFLAGS
16814     squeeze tmp_CFLAGS
16815     #
16816     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
16817       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
16818 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
16819       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
16820       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
16821       squeeze CPPFLAGS
16822       squeeze CFLAGS
16823
16824     tmp_compiler_works="unknown"
16825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16826 /* end confdefs.h.  */
16827
16828
16829
16830 int main (void)
16831 {
16832
16833       int i = 1;
16834       return i;
16835
16836  ;
16837  return 0;
16838 }
16839
16840 _ACEOF
16841 if ac_fn_c_try_compile "$LINENO"; then :
16842
16843     tmp_compiler_works="yes"
16844
16845 else
16846
16847     tmp_compiler_works="no"
16848     echo " " >&6
16849     sed 's/^/cc-fail: /' conftest.err >&6
16850     echo " " >&6
16851
16852 fi
16853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16854     if test "$tmp_compiler_works" = "yes"; then
16855     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16856 /* end confdefs.h.  */
16857
16858
16859
16860 int main (void)
16861 {
16862
16863         int i = 1;
16864         return i;
16865
16866  ;
16867  return 0;
16868 }
16869
16870 _ACEOF
16871 if ac_fn_c_try_link "$LINENO"; then :
16872
16873       tmp_compiler_works="yes"
16874
16875 else
16876
16877       tmp_compiler_works="no"
16878       echo " " >&6
16879       sed 's/^/link-fail: /' conftest.err >&6
16880       echo " " >&6
16881
16882 fi
16883 rm -f core conftest.err conftest.$ac_objext \
16884     conftest$ac_exeext conftest.$ac_ext
16885   fi
16886     if test "x$cross_compiling" != "xyes" &&
16887     test "$tmp_compiler_works" = "yes"; then
16888     if test "$cross_compiling" = yes; then :
16889   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16891 as_fn_error $? "cannot run test program while cross compiling
16892 See \`config.log' for more details" "$LINENO" 5; }
16893 else
16894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16895 /* end confdefs.h.  */
16896
16897
16898 #       ifdef __STDC__
16899 #         include <stdlib.h>
16900 #       endif
16901
16902 int main (void)
16903 {
16904
16905         int i = 0;
16906         exit(i);
16907
16908  ;
16909  return 0;
16910 }
16911
16912 _ACEOF
16913 if ac_fn_c_try_run "$LINENO"; then :
16914
16915       tmp_compiler_works="yes"
16916
16917 else
16918
16919       tmp_compiler_works="no"
16920       echo " " >&6
16921       echo "run-fail: test program exited with status $ac_status" >&6
16922       echo " " >&6
16923
16924 fi
16925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16926   conftest.$ac_objext conftest.beam conftest.$ac_ext
16927 fi
16928
16929   fi
16930     if test "$tmp_compiler_works" = "yes"; then
16931
16932         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16933 $as_echo "yes" >&6; }
16934         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
16935 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
16936
16937   else
16938
16939         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16940 $as_echo "no" >&6; }
16941         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
16942 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
16943                 CPPFLAGS="$tmp_save_CPPFLAGS"
16944         CFLAGS="$tmp_save_CFLAGS"
16945
16946   fi
16947
16948     fi
16949     #
16950   fi
16951
16952
16953         #
16954   if test "$compiler_id" != "unknown"; then
16955     #
16956     tmp_save_CFLAGS="$CFLAGS"
16957     tmp_save_CPPFLAGS="$CPPFLAGS"
16958     #
16959     tmp_options=""
16960     tmp_CFLAGS="$CFLAGS"
16961     tmp_CPPFLAGS="$CPPFLAGS"
16962
16963     ac_var_stripped=""
16964   for word1 in $tmp_CFLAGS; do
16965     ac_var_strip_word="no"
16966     for word2 in $flags_dbg_all; do
16967       if test "$word1" = "$word2"; then
16968         ac_var_strip_word="yes"
16969       fi
16970     done
16971     if test "$ac_var_strip_word" = "no"; then
16972       ac_var_stripped="$ac_var_stripped $word1"
16973     fi
16974   done
16975     tmp_CFLAGS="$ac_var_stripped"
16976   squeeze tmp_CFLAGS
16977
16978
16979     ac_var_stripped=""
16980   for word1 in $tmp_CPPFLAGS; do
16981     ac_var_strip_word="no"
16982     for word2 in $flags_dbg_all; do
16983       if test "$word1" = "$word2"; then
16984         ac_var_strip_word="yes"
16985       fi
16986     done
16987     if test "$ac_var_strip_word" = "no"; then
16988       ac_var_stripped="$ac_var_stripped $word1"
16989     fi
16990   done
16991     tmp_CPPFLAGS="$ac_var_stripped"
16992   squeeze tmp_CPPFLAGS
16993
16994     #
16995     if test "$want_debug" = "yes"; then
16996       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
16997 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
16998       tmp_options="$flags_dbg_yes"
16999     fi
17000     if test "$want_debug" = "no"; then
17001       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17002 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17003       tmp_options="$flags_dbg_off"
17004     fi
17005     #
17006     if test "$flags_prefer_cppflags" = "yes"; then
17007       CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17008       CFLAGS="$tmp_CFLAGS"
17009     else
17010       CPPFLAGS="$tmp_CPPFLAGS"
17011       CFLAGS="$tmp_CFLAGS $tmp_options"
17012     fi
17013     squeeze CPPFLAGS
17014     squeeze CFLAGS
17015
17016     tmp_compiler_works="unknown"
17017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17018 /* end confdefs.h.  */
17019
17020
17021
17022 int main (void)
17023 {
17024
17025       int i = 1;
17026       return i;
17027
17028  ;
17029  return 0;
17030 }
17031
17032 _ACEOF
17033 if ac_fn_c_try_compile "$LINENO"; then :
17034
17035     tmp_compiler_works="yes"
17036
17037 else
17038
17039     tmp_compiler_works="no"
17040     echo " " >&6
17041     sed 's/^/cc-fail: /' conftest.err >&6
17042     echo " " >&6
17043
17044 fi
17045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17046     if test "$tmp_compiler_works" = "yes"; then
17047     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17048 /* end confdefs.h.  */
17049
17050
17051
17052 int main (void)
17053 {
17054
17055         int i = 1;
17056         return i;
17057
17058  ;
17059  return 0;
17060 }
17061
17062 _ACEOF
17063 if ac_fn_c_try_link "$LINENO"; then :
17064
17065       tmp_compiler_works="yes"
17066
17067 else
17068
17069       tmp_compiler_works="no"
17070       echo " " >&6
17071       sed 's/^/link-fail: /' conftest.err >&6
17072       echo " " >&6
17073
17074 fi
17075 rm -f core conftest.err conftest.$ac_objext \
17076     conftest$ac_exeext conftest.$ac_ext
17077   fi
17078     if test "x$cross_compiling" != "xyes" &&
17079     test "$tmp_compiler_works" = "yes"; then
17080     if test "$cross_compiling" = yes; then :
17081   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17083 as_fn_error $? "cannot run test program while cross compiling
17084 See \`config.log' for more details" "$LINENO" 5; }
17085 else
17086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17087 /* end confdefs.h.  */
17088
17089
17090 #       ifdef __STDC__
17091 #         include <stdlib.h>
17092 #       endif
17093
17094 int main (void)
17095 {
17096
17097         int i = 0;
17098         exit(i);
17099
17100  ;
17101  return 0;
17102 }
17103
17104 _ACEOF
17105 if ac_fn_c_try_run "$LINENO"; then :
17106
17107       tmp_compiler_works="yes"
17108
17109 else
17110
17111       tmp_compiler_works="no"
17112       echo " " >&6
17113       echo "run-fail: test program exited with status $ac_status" >&6
17114       echo " " >&6
17115
17116 fi
17117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17118   conftest.$ac_objext conftest.beam conftest.$ac_ext
17119 fi
17120
17121   fi
17122     if test "$tmp_compiler_works" = "yes"; then
17123
17124       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17125 $as_echo "yes" >&6; }
17126       { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17127 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17128
17129   else
17130
17131       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17132 $as_echo "no" >&6; }
17133       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17134 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17135             CPPFLAGS="$tmp_save_CPPFLAGS"
17136       CFLAGS="$tmp_save_CFLAGS"
17137
17138   fi
17139
17140     #
17141   fi
17142
17143
17144         #
17145   if test "$compiler_id" != "unknown"; then
17146     #
17147     tmp_save_CFLAGS="$CFLAGS"
17148     tmp_save_CPPFLAGS="$CPPFLAGS"
17149     #
17150     tmp_options=""
17151     tmp_CFLAGS="$CFLAGS"
17152     tmp_CPPFLAGS="$CPPFLAGS"
17153     honor_optimize_option="yes"
17154     #
17155                         #
17156     if test "$want_optimize" = "assume_no" ||
17157        test "$want_optimize" = "assume_yes"; then
17158       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17159 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17160
17161
17162   ac_var_match_word="no"
17163   for word1 in $tmp_CFLAGS; do
17164     for word2 in $flags_opt_all; do
17165       if test "$word1" = "$word2"; then
17166         ac_var_match_word="yes"
17167       fi
17168     done
17169   done
17170
17171   if test "$ac_var_match_word" = "yes"; then
17172
17173         honor_optimize_option="no"
17174
17175
17176   fi
17177
17178
17179
17180   ac_var_match_word="no"
17181   for word1 in $tmp_CPPFLAGS; do
17182     for word2 in $flags_opt_all; do
17183       if test "$word1" = "$word2"; then
17184         ac_var_match_word="yes"
17185       fi
17186     done
17187   done
17188
17189   if test "$ac_var_match_word" = "yes"; then
17190
17191         honor_optimize_option="no"
17192
17193
17194   fi
17195
17196       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17197 $as_echo "$honor_optimize_option" >&6; }
17198       if test "$honor_optimize_option" = "yes"; then
17199         if test "$want_optimize" = "assume_yes"; then
17200           want_optimize="yes"
17201         fi
17202         if test "$want_optimize" = "assume_no"; then
17203           want_optimize="no"
17204         fi
17205       fi
17206     fi
17207     #
17208     if test "$honor_optimize_option" = "yes"; then
17209
17210     ac_var_stripped=""
17211   for word1 in $tmp_CFLAGS; do
17212     ac_var_strip_word="no"
17213     for word2 in $flags_opt_all; do
17214       if test "$word1" = "$word2"; then
17215         ac_var_strip_word="yes"
17216       fi
17217     done
17218     if test "$ac_var_strip_word" = "no"; then
17219       ac_var_stripped="$ac_var_stripped $word1"
17220     fi
17221   done
17222     tmp_CFLAGS="$ac_var_stripped"
17223   squeeze tmp_CFLAGS
17224
17225
17226     ac_var_stripped=""
17227   for word1 in $tmp_CPPFLAGS; do
17228     ac_var_strip_word="no"
17229     for word2 in $flags_opt_all; do
17230       if test "$word1" = "$word2"; then
17231         ac_var_strip_word="yes"
17232       fi
17233     done
17234     if test "$ac_var_strip_word" = "no"; then
17235       ac_var_stripped="$ac_var_stripped $word1"
17236     fi
17237   done
17238     tmp_CPPFLAGS="$ac_var_stripped"
17239   squeeze tmp_CPPFLAGS
17240
17241       if test "$want_optimize" = "yes"; then
17242         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17243 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17244         tmp_options="$flags_opt_yes"
17245       fi
17246       if test "$want_optimize" = "no"; then
17247         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17248 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17249         tmp_options="$flags_opt_off"
17250       fi
17251       if test "$flags_prefer_cppflags" = "yes"; then
17252         CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17253         CFLAGS="$tmp_CFLAGS"
17254       else
17255         CPPFLAGS="$tmp_CPPFLAGS"
17256         CFLAGS="$tmp_CFLAGS $tmp_options"
17257       fi
17258       squeeze CPPFLAGS
17259       squeeze CFLAGS
17260
17261     tmp_compiler_works="unknown"
17262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17263 /* end confdefs.h.  */
17264
17265
17266
17267 int main (void)
17268 {
17269
17270       int i = 1;
17271       return i;
17272
17273  ;
17274  return 0;
17275 }
17276
17277 _ACEOF
17278 if ac_fn_c_try_compile "$LINENO"; then :
17279
17280     tmp_compiler_works="yes"
17281
17282 else
17283
17284     tmp_compiler_works="no"
17285     echo " " >&6
17286     sed 's/^/cc-fail: /' conftest.err >&6
17287     echo " " >&6
17288
17289 fi
17290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17291     if test "$tmp_compiler_works" = "yes"; then
17292     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17293 /* end confdefs.h.  */
17294
17295
17296
17297 int main (void)
17298 {
17299
17300         int i = 1;
17301         return i;
17302
17303  ;
17304  return 0;
17305 }
17306
17307 _ACEOF
17308 if ac_fn_c_try_link "$LINENO"; then :
17309
17310       tmp_compiler_works="yes"
17311
17312 else
17313
17314       tmp_compiler_works="no"
17315       echo " " >&6
17316       sed 's/^/link-fail: /' conftest.err >&6
17317       echo " " >&6
17318
17319 fi
17320 rm -f core conftest.err conftest.$ac_objext \
17321     conftest$ac_exeext conftest.$ac_ext
17322   fi
17323     if test "x$cross_compiling" != "xyes" &&
17324     test "$tmp_compiler_works" = "yes"; then
17325     if test "$cross_compiling" = yes; then :
17326   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17328 as_fn_error $? "cannot run test program while cross compiling
17329 See \`config.log' for more details" "$LINENO" 5; }
17330 else
17331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17332 /* end confdefs.h.  */
17333
17334
17335 #       ifdef __STDC__
17336 #         include <stdlib.h>
17337 #       endif
17338
17339 int main (void)
17340 {
17341
17342         int i = 0;
17343         exit(i);
17344
17345  ;
17346  return 0;
17347 }
17348
17349 _ACEOF
17350 if ac_fn_c_try_run "$LINENO"; then :
17351
17352       tmp_compiler_works="yes"
17353
17354 else
17355
17356       tmp_compiler_works="no"
17357       echo " " >&6
17358       echo "run-fail: test program exited with status $ac_status" >&6
17359       echo " " >&6
17360
17361 fi
17362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17363   conftest.$ac_objext conftest.beam conftest.$ac_ext
17364 fi
17365
17366   fi
17367     if test "$tmp_compiler_works" = "yes"; then
17368
17369         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17370 $as_echo "yes" >&6; }
17371         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17372 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17373
17374   else
17375
17376         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17377 $as_echo "no" >&6; }
17378         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17379 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17380                 CPPFLAGS="$tmp_save_CPPFLAGS"
17381         CFLAGS="$tmp_save_CFLAGS"
17382
17383   fi
17384
17385     fi
17386     #
17387   fi
17388
17389
17390         #
17391   if test "$compiler_id" != "unknown"; then
17392     #
17393     tmp_save_CPPFLAGS="$CPPFLAGS"
17394     tmp_save_CFLAGS="$CFLAGS"
17395     tmp_CPPFLAGS=""
17396     tmp_CFLAGS=""
17397     #
17398     case "$compiler_id" in
17399         #
17400       CLANG)
17401         #
17402         if test "$want_warnings" = "yes"; then
17403           tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17404           tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17405           tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17406           tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
17407           tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17408           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17409           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17410           tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17411           tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17412           tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17413           tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17414           tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17415           tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17416           tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17417           tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17418           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17419           tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
17420           #
17421                     if test "$compiler_num" -ge "101"; then
17422             tmp_CFLAGS="$tmp_CFLAGS -Wunused"
17423           fi
17424         fi
17425         ;;
17426         #
17427       DEC_C)
17428         #
17429         if test "$want_warnings" = "yes"; then
17430                     tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
17431         fi
17432         ;;
17433         #
17434       GNU_C)
17435         #
17436         if test "$want_warnings" = "yes"; then
17437           #
17438                               if test "x$cross_compiling" != "xyes" ||
17439             test "$compiler_num" -ge "300"; then
17440             tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17441           fi
17442           #
17443                     tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
17444           #
17445                     if test "$compiler_num" -ge "104"; then
17446             tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17447                         if test "x$cross_compiling" != "xyes" ||
17448               test "$compiler_num" -ge "300"; then
17449               tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
17450             fi
17451           fi
17452           #
17453                     if test "$compiler_num" -ge "207"; then
17454             tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17455                         if test "x$cross_compiling" != "xyes" ||
17456               test "$compiler_num" -ge "300"; then
17457               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17458               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17459             fi
17460           fi
17461           #
17462                     if test "$compiler_num" -ge "295"; then
17463             tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17464           fi
17465           #
17466                     if test "$compiler_num" -ge "296"; then
17467             tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17468             tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17469                                                 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17470           fi
17471           #
17472                     if test "$compiler_num" -ge "297"; then
17473             tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17474           fi
17475           #
17476                     if test "$compiler_num" -ge "300"; then
17477                                                             tmp_CFLAGS="$tmp_CFLAGS"
17478           fi
17479           #
17480                     if test "$compiler_num" -ge "303"; then
17481             tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17482           fi
17483           #
17484                     if test "$compiler_num" -ge "304"; then
17485             tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17486           fi
17487           #
17488                     if test "$compiler_num" -ge "400"; then
17489             tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
17490           fi
17491           #
17492                     if test "$compiler_num" -ge "402"; then
17493             tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17494           fi
17495           #
17496                     if test "$compiler_num" -ge "403"; then
17497             tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
17498             tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
17499             tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
17500             tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
17501           fi
17502           #
17503                     if test "$compiler_num" -ge "405"; then
17504                         if test "$curl_cv_have_def__WIN32" = "yes"; then
17505               tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
17506             fi
17507           fi
17508           #
17509         fi
17510         #
17511                 if test "$compiler_num" -ge "300"; then
17512           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17513         else
17514                               if test "x$cross_compiling" = "xyes"; then
17515             if test "$compiler_num" -ge "104"; then
17516                             tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
17517             fi
17518             if test "$compiler_num" -ge "207"; then
17519                             tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
17520               tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
17521             fi
17522           fi
17523         fi
17524         ;;
17525         #
17526       HP_UX_C)
17527         #
17528         if test "$want_warnings" = "yes"; then
17529                     tmp_CFLAGS="$tmp_CFLAGS +w1"
17530         fi
17531         ;;
17532         #
17533       IBM_C)
17534         #
17535                 tmp_CFLAGS="$tmp_CFLAGS"
17536         ;;
17537         #
17538       INTEL_UNIX_C)
17539         #
17540         if test "$want_warnings" = "yes"; then
17541           if test "$compiler_num" -gt "600"; then
17542                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
17543                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
17544                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
17545                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
17546                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
17547                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
17548                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
17549                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
17550                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
17551                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
17552                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
17553           fi
17554         fi
17555                 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
17556                 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
17557                 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
17558                 if test "$compiler_num" -ge "1000"; then
17559                     tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
17560         fi
17561         ;;
17562         #
17563       INTEL_WINDOWS_C)
17564         #
17565                 tmp_CFLAGS="$tmp_CFLAGS"
17566         ;;
17567         #
17568       LCC)
17569         #
17570         if test "$want_warnings" = "yes"; then
17571                                                   tmp_CFLAGS="$tmp_CFLAGS"
17572         fi
17573         ;;
17574         #
17575       SGI_MIPS_C)
17576         #
17577         if test "$want_warnings" = "yes"; then
17578                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17579         fi
17580         ;;
17581         #
17582       SGI_MIPSPRO_C)
17583         #
17584         if test "$want_warnings" = "yes"; then
17585                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17586                               tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
17587         fi
17588         ;;
17589         #
17590       SUNPRO_C)
17591         #
17592         if test "$want_warnings" = "yes"; then
17593                     tmp_CFLAGS="$tmp_CFLAGS -v"
17594         fi
17595         ;;
17596         #
17597       TINY_C)
17598         #
17599         if test "$want_warnings" = "yes"; then
17600                     tmp_CFLAGS="$tmp_CFLAGS -Wall"
17601                     tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
17602                     tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
17603         fi
17604         ;;
17605         #
17606       WATCOM_UNIX_C)
17607         #
17608         if test "$want_warnings" = "yes"; then
17609                     tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17610         fi
17611         ;;
17612         #
17613       WATCOM_WINDOWS_C)
17614         #
17615                 tmp_CFLAGS="$tmp_CFLAGS"
17616         ;;
17617         #
17618     esac
17619     #
17620     squeeze tmp_CPPFLAGS
17621     squeeze tmp_CFLAGS
17622     #
17623     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17624       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
17625 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
17626       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17627       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17628       squeeze CPPFLAGS
17629       squeeze CFLAGS
17630
17631     tmp_compiler_works="unknown"
17632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17633 /* end confdefs.h.  */
17634
17635
17636
17637 int main (void)
17638 {
17639
17640       int i = 1;
17641       return i;
17642
17643  ;
17644  return 0;
17645 }
17646
17647 _ACEOF
17648 if ac_fn_c_try_compile "$LINENO"; then :
17649
17650     tmp_compiler_works="yes"
17651
17652 else
17653
17654     tmp_compiler_works="no"
17655     echo " " >&6
17656     sed 's/^/cc-fail: /' conftest.err >&6
17657     echo " " >&6
17658
17659 fi
17660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17661     if test "$tmp_compiler_works" = "yes"; then
17662     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17663 /* end confdefs.h.  */
17664
17665
17666
17667 int main (void)
17668 {
17669
17670         int i = 1;
17671         return i;
17672
17673  ;
17674  return 0;
17675 }
17676
17677 _ACEOF
17678 if ac_fn_c_try_link "$LINENO"; then :
17679
17680       tmp_compiler_works="yes"
17681
17682 else
17683
17684       tmp_compiler_works="no"
17685       echo " " >&6
17686       sed 's/^/link-fail: /' conftest.err >&6
17687       echo " " >&6
17688
17689 fi
17690 rm -f core conftest.err conftest.$ac_objext \
17691     conftest$ac_exeext conftest.$ac_ext
17692   fi
17693     if test "x$cross_compiling" != "xyes" &&
17694     test "$tmp_compiler_works" = "yes"; then
17695     if test "$cross_compiling" = yes; then :
17696   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17698 as_fn_error $? "cannot run test program while cross compiling
17699 See \`config.log' for more details" "$LINENO" 5; }
17700 else
17701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17702 /* end confdefs.h.  */
17703
17704
17705 #       ifdef __STDC__
17706 #         include <stdlib.h>
17707 #       endif
17708
17709 int main (void)
17710 {
17711
17712         int i = 0;
17713         exit(i);
17714
17715  ;
17716  return 0;
17717 }
17718
17719 _ACEOF
17720 if ac_fn_c_try_run "$LINENO"; then :
17721
17722       tmp_compiler_works="yes"
17723
17724 else
17725
17726       tmp_compiler_works="no"
17727       echo " " >&6
17728       echo "run-fail: test program exited with status $ac_status" >&6
17729       echo " " >&6
17730
17731 fi
17732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17733   conftest.$ac_objext conftest.beam conftest.$ac_ext
17734 fi
17735
17736   fi
17737     if test "$tmp_compiler_works" = "yes"; then
17738
17739         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17740 $as_echo "yes" >&6; }
17741         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17742 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17743
17744   else
17745
17746         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17747 $as_echo "no" >&6; }
17748         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17749 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17750                 CPPFLAGS="$tmp_save_CPPFLAGS"
17751         CFLAGS="$tmp_save_CFLAGS"
17752
17753   fi
17754
17755     fi
17756     #
17757   fi
17758
17759
17760 if test "$compiler_id" = "INTEL_UNIX_C"; then
17761   #
17762   if test "$compiler_num" -ge "1000"; then
17763         CFLAGS="$CFLAGS -shared-intel"
17764   elif test "$compiler_num" -ge "900"; then
17765         CFLAGS="$CFLAGS -i-dynamic"
17766   fi
17767   #
17768 fi
17769
17770
17771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
17772 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
17773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17774 /* end confdefs.h.  */
17775
17776
17777
17778 int main (void)
17779 {
17780
17781       force compilation error
17782
17783  ;
17784  return 0;
17785 }
17786
17787 _ACEOF
17788 if ac_fn_c_try_compile "$LINENO"; then :
17789
17790     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17791 $as_echo "no" >&6; }
17792     as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
17793
17794 else
17795
17796     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17797 $as_echo "yes" >&6; }
17798
17799 fi
17800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17801
17802
17803     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
17804 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
17805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17806 /* end confdefs.h.  */
17807
17808
17809       typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
17810
17811 int main (void)
17812 {
17813
17814       bad_t dummy;
17815
17816  ;
17817  return 0;
17818 }
17819
17820 _ACEOF
17821 if ac_fn_c_try_compile "$LINENO"; then :
17822
17823     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17824 $as_echo "no" >&6; }
17825     as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
17826
17827 else
17828
17829     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17830 $as_echo "yes" >&6; }
17831
17832 fi
17833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17834
17835
17836     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
17837 $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
17838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17839 /* end confdefs.h.  */
17840
17841
17842 #     include <stdlib.h>
17843       int rand(int n);
17844       int rand(int n)
17845       {
17846         if(n)
17847           return ++n;
17848         else
17849           return n;
17850       }
17851
17852 int main (void)
17853 {
17854
17855       int i[2]={0,0};
17856       int j = rand(i[0]);
17857       if(j)
17858         return j;
17859
17860  ;
17861  return 0;
17862 }
17863
17864 _ACEOF
17865 if ac_fn_c_try_compile "$LINENO"; then :
17866
17867     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17868 $as_echo "no" >&6; }
17869     as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
17870
17871 else
17872
17873     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17874 $as_echo "yes" >&6; }
17875
17876 fi
17877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17878
17879
17880       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
17881 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
17882   supports_symbol_hiding="no"
17883   symbol_hiding_CFLAGS=""
17884   symbol_hiding_EXTERN=""
17885   tmp_CFLAGS=""
17886   tmp_EXTERN=""
17887   case "$compiler_id" in
17888     CLANG)
17889             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
17890       tmp_CFLAGS="-fvisibility=hidden"
17891       supports_symbol_hiding="yes"
17892       ;;
17893     GNU_C)
17894             if test "$compiler_num" -ge "304"; then
17895         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
17896           tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
17897           tmp_CFLAGS="-fvisibility=hidden"
17898           supports_symbol_hiding="yes"
17899         fi
17900       fi
17901       ;;
17902     INTEL_UNIX_C)
17903             if test "$compiler_num" -ge "900"; then
17904         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
17905           tmp_save_CFLAGS="$CFLAGS"
17906           CFLAGS="$CFLAGS -fvisibility=hidden"
17907           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17908 /* end confdefs.h.  */
17909
17910
17911 #             include <stdio.h>
17912
17913 int main (void)
17914 {
17915
17916               printf("icc fvisibility bug test");
17917
17918  ;
17919  return 0;
17920 }
17921
17922 _ACEOF
17923 if ac_fn_c_try_link "$LINENO"; then :
17924
17925             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
17926             tmp_CFLAGS="-fvisibility=hidden"
17927             supports_symbol_hiding="yes"
17928
17929 fi
17930 rm -f core conftest.err conftest.$ac_objext \
17931     conftest$ac_exeext conftest.$ac_ext
17932           CFLAGS="$tmp_save_CFLAGS"
17933         fi
17934       fi
17935       ;;
17936     SUNPRO_C)
17937       if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
17938         tmp_EXTERN="__global"
17939         tmp_CFLAGS="-xldscope=hidden"
17940         supports_symbol_hiding="yes"
17941       fi
17942       ;;
17943   esac
17944   if test "$supports_symbol_hiding" = "yes"; then
17945     tmp_save_CFLAGS="$CFLAGS"
17946     CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17947     squeeze CFLAGS
17948     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17949 /* end confdefs.h.  */
17950
17951
17952         $tmp_EXTERN char *dummy(char *buff);
17953         char *dummy(char *buff)
17954         {
17955          if(buff)
17956            return ++buff;
17957          else
17958            return buff;
17959         }
17960
17961 int main (void)
17962 {
17963
17964         char b[16];
17965         char *r = dummy(&b[0]);
17966         if(r)
17967           return (int)*r;
17968
17969  ;
17970  return 0;
17971 }
17972
17973 _ACEOF
17974 if ac_fn_c_try_compile "$LINENO"; then :
17975
17976       supports_symbol_hiding="yes"
17977       if test -f conftest.err; then
17978         grep 'visibility' conftest.err >/dev/null
17979         if test "$?" -eq "0"; then
17980           supports_symbol_hiding="no"
17981         fi
17982       fi
17983
17984 else
17985
17986       supports_symbol_hiding="no"
17987       echo " " >&6
17988       sed 's/^/cc-src: /' conftest.$ac_ext >&6
17989       sed 's/^/cc-err: /' conftest.err >&6
17990       echo " " >&6
17991
17992 fi
17993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17994     CFLAGS="$tmp_save_CFLAGS"
17995   fi
17996   if test "$supports_symbol_hiding" = "yes"; then
17997     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17998 $as_echo "yes" >&6; }
17999     symbol_hiding_CFLAGS="$tmp_CFLAGS"
18000     symbol_hiding_EXTERN="$tmp_EXTERN"
18001   else
18002     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18003 $as_echo "no" >&6; }
18004   fi
18005
18006
18007
18008       supports_curldebug="unknown"
18009   if test "$want_curldebug" = "yes"; then
18010     if test "x$enable_shared" != "xno" &&
18011       test "x$enable_shared" != "xyes"; then
18012       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
18013 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
18014       supports_curldebug="no"
18015     fi
18016     if test "x$enable_static" != "xno" &&
18017       test "x$enable_static" != "xyes"; then
18018       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
18019 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
18020       supports_curldebug="no"
18021     fi
18022     if test "$supports_curldebug" != "no"; then
18023       if test "$enable_shared" = "yes" &&
18024         test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
18025         supports_curldebug="no"
18026         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
18027 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
18028       fi
18029     fi
18030   fi
18031   #
18032   if test "$want_curldebug" = "yes"; then
18033     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
18034 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
18035     test "$supports_curldebug" = "no" || supports_curldebug="yes"
18036     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
18037 $as_echo "$supports_curldebug" >&6; }
18038     if test "$supports_curldebug" = "no"; then
18039       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18040 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18041       want_curldebug="no"
18042     fi
18043   fi
18044   #
18045   if test "$want_curldebug" = "yes"; then
18046     CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
18047     squeeze CPPFLAGS
18048   fi
18049   if test "$want_debug" = "yes"; then
18050     CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
18051     squeeze CPPFLAGS
18052   fi
18053
18054  if test x$want_curldebug = xyes; then
18055   CURLDEBUG_TRUE=
18056   CURLDEBUG_FALSE='#'
18057 else
18058   CURLDEBUG_TRUE='#'
18059   CURLDEBUG_FALSE=
18060 fi
18061
18062
18063 supports_unittests=yes
18064 # cross-compilation of unit tests static library/programs fails when
18065 # libcurl shared library is built. This might be due to a libtool or
18066 # automake issue. In this case we disable unit tests.
18067 if test "x$cross_compiling" != "xno" &&
18068    test "x$enable_shared" != "xno"; then
18069   supports_unittests=no
18070 fi
18071
18072 # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18073 # a problem related with OpenSSL headers and library versions not matching.
18074 # Disable unit tests while time to further investigate this is found.
18075 case $host in
18076   mips-sgi-irix6.5)
18077     if test "$compiler_id" = "GNU_C"; then
18078       supports_unittests=no
18079     fi
18080     ;;
18081 esac
18082
18083 # All AIX autobuilds fails unit tests linking against unittests library
18084 # due to unittests library being built with no symbols or members. Libtool ?
18085 # Disable unit tests while time to further investigate this is found.
18086 case $host_os in
18087   aix*)
18088     supports_unittests=no
18089     ;;
18090 esac
18091
18092 if test "x$want_debug" = "xyes" &&
18093    test "x$supports_unittests" = "xyes"; then
18094   want_unittests=yes
18095 else
18096   want_unittests=no
18097 fi
18098  if test x$want_unittests = xyes; then
18099   BUILD_UNITTESTS_TRUE=
18100   BUILD_UNITTESTS_FALSE='#'
18101 else
18102   BUILD_UNITTESTS_TRUE='#'
18103   BUILD_UNITTESTS_FALSE=
18104 fi
18105
18106
18107
18108
18109
18110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18111 $as_echo_n "checking for windows.h... " >&6; }
18112 if ${ac_cv_header_windows_h+:} false; then :
18113   $as_echo_n "(cached) " >&6
18114 else
18115
18116     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18117 /* end confdefs.h.  */
18118
18119
18120 #undef inline
18121 #ifndef WIN32_LEAN_AND_MEAN
18122 #define WIN32_LEAN_AND_MEAN
18123 #endif
18124 #include <windows.h>
18125
18126 int main (void)
18127 {
18128
18129 #if defined(__CYGWIN__) || defined(__CEGCC__)
18130         HAVE_WINDOWS_H shall not be defined.
18131 #else
18132         int dummy=2*WINVER;
18133 #endif
18134
18135  ;
18136  return 0;
18137 }
18138
18139 _ACEOF
18140 if ac_fn_c_try_compile "$LINENO"; then :
18141
18142       ac_cv_header_windows_h="yes"
18143
18144 else
18145
18146       ac_cv_header_windows_h="no"
18147
18148 fi
18149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18150
18151 fi
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
18153 $as_echo "$ac_cv_header_windows_h" >&6; }
18154   case "$ac_cv_header_windows_h" in
18155     yes)
18156
18157 cat >>confdefs.h <<_ACEOF
18158 #define HAVE_WINDOWS_H 1
18159 _ACEOF
18160
18161
18162 cat >>confdefs.h <<_ACEOF
18163 #define WIN32_LEAN_AND_MEAN 1
18164 _ACEOF
18165
18166       ;;
18167   esac
18168
18169
18170     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18171 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
18172 if ${ac_cv_native_windows+:} false; then :
18173   $as_echo_n "(cached) " >&6
18174 else
18175
18176     if test "$ac_cv_header_windows_h" = "no"; then
18177       ac_cv_native_windows="no"
18178     else
18179       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18180 /* end confdefs.h.  */
18181
18182
18183
18184 int main (void)
18185 {
18186
18187 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18188    (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18189           int dummy=1;
18190 #else
18191           Not a native Windows build target.
18192 #endif
18193
18194  ;
18195  return 0;
18196 }
18197
18198 _ACEOF
18199 if ac_fn_c_try_compile "$LINENO"; then :
18200
18201         ac_cv_native_windows="yes"
18202
18203 else
18204
18205         ac_cv_native_windows="no"
18206
18207 fi
18208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18209     fi
18210
18211 fi
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5
18213 $as_echo "$ac_cv_native_windows" >&6; }
18214    if test "x$ac_cv_native_windows" = xyes; then
18215   DOING_NATIVE_WINDOWS_TRUE=
18216   DOING_NATIVE_WINDOWS_FALSE='#'
18217 else
18218   DOING_NATIVE_WINDOWS_TRUE='#'
18219   DOING_NATIVE_WINDOWS_FALSE=
18220 fi
18221
18222
18223 case X-"$ac_cv_native_windows" in
18224   X-yes)
18225
18226     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18227 $as_echo_n "checking for winsock.h... " >&6; }
18228 if ${ac_cv_header_winsock_h+:} false; then :
18229   $as_echo_n "(cached) " >&6
18230 else
18231
18232     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18233 /* end confdefs.h.  */
18234
18235
18236 #undef inline
18237 #ifndef WIN32_LEAN_AND_MEAN
18238 #define WIN32_LEAN_AND_MEAN
18239 #endif
18240 #include <windows.h>
18241 #include <winsock.h>
18242
18243 int main (void)
18244 {
18245
18246 #if defined(__CYGWIN__) || defined(__CEGCC__)
18247         HAVE_WINSOCK_H shall not be defined.
18248 #else
18249         int dummy=WSACleanup();
18250 #endif
18251
18252  ;
18253  return 0;
18254 }
18255
18256 _ACEOF
18257 if ac_fn_c_try_compile "$LINENO"; then :
18258
18259       ac_cv_header_winsock_h="yes"
18260
18261 else
18262
18263       ac_cv_header_winsock_h="no"
18264
18265 fi
18266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18267
18268 fi
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
18270 $as_echo "$ac_cv_header_winsock_h" >&6; }
18271   case "$ac_cv_header_winsock_h" in
18272     yes)
18273
18274 cat >>confdefs.h <<_ACEOF
18275 #define HAVE_WINSOCK_H 1
18276 _ACEOF
18277
18278       ;;
18279   esac
18280
18281
18282     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18283 $as_echo_n "checking for winsock2.h... " >&6; }
18284 if ${ac_cv_header_winsock2_h+:} false; then :
18285   $as_echo_n "(cached) " >&6
18286 else
18287
18288     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18289 /* end confdefs.h.  */
18290
18291
18292 #undef inline
18293 #ifndef WIN32_LEAN_AND_MEAN
18294 #define WIN32_LEAN_AND_MEAN
18295 #endif
18296 #include <windows.h>
18297 #include <winsock2.h>
18298
18299 int main (void)
18300 {
18301
18302 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18303         HAVE_WINSOCK2_H shall not be defined.
18304 #else
18305         int dummy=2*IPPROTO_ESP;
18306 #endif
18307
18308  ;
18309  return 0;
18310 }
18311
18312 _ACEOF
18313 if ac_fn_c_try_compile "$LINENO"; then :
18314
18315       ac_cv_header_winsock2_h="yes"
18316
18317 else
18318
18319       ac_cv_header_winsock2_h="no"
18320
18321 fi
18322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18323
18324 fi
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
18326 $as_echo "$ac_cv_header_winsock2_h" >&6; }
18327   case "$ac_cv_header_winsock2_h" in
18328     yes)
18329
18330 cat >>confdefs.h <<_ACEOF
18331 #define HAVE_WINSOCK2_H 1
18332 _ACEOF
18333
18334       ;;
18335   esac
18336
18337
18338     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18339 $as_echo_n "checking for ws2tcpip.h... " >&6; }
18340 if ${ac_cv_header_ws2tcpip_h+:} false; then :
18341   $as_echo_n "(cached) " >&6
18342 else
18343
18344     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18345 /* end confdefs.h.  */
18346
18347
18348 #undef inline
18349 #ifndef WIN32_LEAN_AND_MEAN
18350 #define WIN32_LEAN_AND_MEAN
18351 #endif
18352 #include <windows.h>
18353 #include <winsock2.h>
18354 #include <ws2tcpip.h>
18355
18356 int main (void)
18357 {
18358
18359 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18360         HAVE_WS2TCPIP_H shall not be defined.
18361 #else
18362         int dummy=2*IP_PKTINFO;
18363 #endif
18364
18365  ;
18366  return 0;
18367 }
18368
18369 _ACEOF
18370 if ac_fn_c_try_compile "$LINENO"; then :
18371
18372       ac_cv_header_ws2tcpip_h="yes"
18373
18374 else
18375
18376       ac_cv_header_ws2tcpip_h="no"
18377
18378 fi
18379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18380
18381 fi
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
18383 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
18384   case "$ac_cv_header_ws2tcpip_h" in
18385     yes)
18386
18387 cat >>confdefs.h <<_ACEOF
18388 #define HAVE_WS2TCPIP_H 1
18389 _ACEOF
18390
18391       ;;
18392   esac
18393
18394
18395     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18396 $as_echo_n "checking for winldap.h... " >&6; }
18397 if ${ac_cv_header_winldap_h+:} false; then :
18398   $as_echo_n "(cached) " >&6
18399 else
18400
18401     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18402 /* end confdefs.h.  */
18403
18404
18405 #undef inline
18406 #ifdef HAVE_WINDOWS_H
18407 #ifndef WIN32_LEAN_AND_MEAN
18408 #define WIN32_LEAN_AND_MEAN
18409 #endif
18410 #include <windows.h>
18411 #endif
18412 #include <winldap.h>
18413
18414 int main (void)
18415 {
18416
18417 #if defined(__CYGWIN__) || defined(__CEGCC__)
18418         HAVE_WINLDAP_H shall not be defined.
18419 #else
18420         LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18421         ULONG res = ldap_unbind(ldp);
18422 #endif
18423
18424  ;
18425  return 0;
18426 }
18427
18428 _ACEOF
18429 if ac_fn_c_try_compile "$LINENO"; then :
18430
18431       ac_cv_header_winldap_h="yes"
18432
18433 else
18434
18435       ac_cv_header_winldap_h="no"
18436
18437 fi
18438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18439
18440 fi
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winldap_h" >&5
18442 $as_echo "$ac_cv_header_winldap_h" >&6; }
18443   case "$ac_cv_header_winldap_h" in
18444     yes)
18445
18446 cat >>confdefs.h <<_ACEOF
18447 #define HAVE_WINLDAP_H 1
18448 _ACEOF
18449
18450       ;;
18451   esac
18452
18453
18454     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
18455 $as_echo_n "checking for winber.h... " >&6; }
18456 if ${ac_cv_header_winber_h+:} false; then :
18457   $as_echo_n "(cached) " >&6
18458 else
18459
18460     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18461 /* end confdefs.h.  */
18462
18463
18464 #undef inline
18465 #ifdef HAVE_WINDOWS_H
18466 #ifndef WIN32_LEAN_AND_MEAN
18467 #define WIN32_LEAN_AND_MEAN
18468 #endif
18469 #include <windows.h>
18470 #endif
18471 #include <winldap.h>
18472 #include <winber.h>
18473
18474 int main (void)
18475 {
18476
18477 #if defined(__CYGWIN__) || defined(__CEGCC__)
18478         HAVE_WINBER_H shall not be defined.
18479 #else
18480         BERVAL *bvp = NULL;
18481         BerElement *bep = ber_init(bvp);
18482         ber_free(bep, 1);
18483 #endif
18484
18485  ;
18486  return 0;
18487 }
18488
18489 _ACEOF
18490 if ac_fn_c_try_compile "$LINENO"; then :
18491
18492       ac_cv_header_winber_h="yes"
18493
18494 else
18495
18496       ac_cv_header_winber_h="no"
18497
18498 fi
18499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18500
18501 fi
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winber_h" >&5
18503 $as_echo "$ac_cv_header_winber_h" >&6; }
18504   case "$ac_cv_header_winber_h" in
18505     yes)
18506
18507 cat >>confdefs.h <<_ACEOF
18508 #define HAVE_WINBER_H 1
18509 _ACEOF
18510
18511       ;;
18512   esac
18513
18514     ;;
18515   *)
18516     ac_cv_header_winsock_h="no"
18517     ac_cv_header_winsock2_h="no"
18518     ac_cv_header_ws2tcpip_h="no"
18519     ac_cv_header_winldap_h="no"
18520     ac_cv_header_winber_h="no"
18521     ;;
18522 esac
18523
18524     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
18525 $as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
18526   curl_win32_file_api="no"
18527   if test "$ac_cv_header_windows_h" = "yes"; then
18528     if test x"$enable_largefile" != "xno"; then
18529       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18530 /* end confdefs.h.  */
18531
18532
18533
18534 int main (void)
18535 {
18536
18537 #if !defined(_WIN32_WCE) && \
18538     (defined(__MINGW32__) || \
18539     (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
18540           int dummy=1;
18541 #else
18542           WIN32 large file API not supported.
18543 #endif
18544
18545  ;
18546  return 0;
18547 }
18548
18549 _ACEOF
18550 if ac_fn_c_try_compile "$LINENO"; then :
18551
18552         curl_win32_file_api="win32_large_files"
18553
18554 fi
18555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18556     fi
18557     if test "$curl_win32_file_api" = "no"; then
18558       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18559 /* end confdefs.h.  */
18560
18561
18562
18563 int main (void)
18564 {
18565
18566 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
18567           int dummy=1;
18568 #else
18569           WIN32 small file API not supported.
18570 #endif
18571
18572  ;
18573  return 0;
18574 }
18575
18576 _ACEOF
18577 if ac_fn_c_try_compile "$LINENO"; then :
18578
18579         curl_win32_file_api="win32_small_files"
18580
18581 fi
18582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18583     fi
18584   fi
18585   case "$curl_win32_file_api" in
18586     win32_large_files)
18587       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
18588 $as_echo "yes (large file enabled)" >&6; }
18589
18590 cat >>confdefs.h <<_ACEOF
18591 #define USE_WIN32_LARGE_FILES 1
18592 _ACEOF
18593
18594       ;;
18595     win32_small_files)
18596       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
18597 $as_echo "yes (large file disabled)" >&6; }
18598
18599 cat >>confdefs.h <<_ACEOF
18600 #define USE_WIN32_SMALL_FILES 1
18601 _ACEOF
18602
18603       ;;
18604     *)
18605       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18606 $as_echo "no" >&6; }
18607       ;;
18608   esac
18609
18610
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
18612 $as_echo_n "checking whether to support http... " >&6; }
18613 # Check whether --enable-http was given.
18614 if test "${enable_http+set}" = set; then :
18615   enableval=$enable_http;  case "$enableval" in
18616   no)
18617        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18618 $as_echo "no" >&6; }
18619
18620 $as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
18621
18622        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
18623 $as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
18624        CURL_DISABLE_HTTP=1
18625
18626
18627 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
18628
18629        CURL_DISABLE_RTSP=1
18630
18631        ;;
18632   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18633 $as_echo "yes" >&6; }
18634        ;;
18635   esac
18636 else
18637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18638 $as_echo "yes" >&6; }
18639
18640 fi
18641
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
18643 $as_echo_n "checking whether to support ftp... " >&6; }
18644 # Check whether --enable-ftp was given.
18645 if test "${enable_ftp+set}" = set; then :
18646   enableval=$enable_ftp;  case "$enableval" in
18647   no)
18648        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18649 $as_echo "no" >&6; }
18650
18651 $as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
18652
18653        CURL_DISABLE_FTP=1
18654
18655        ;;
18656   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18657 $as_echo "yes" >&6; }
18658        ;;
18659   esac
18660 else
18661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18662 $as_echo "yes" >&6; }
18663
18664 fi
18665
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
18667 $as_echo_n "checking whether to support file... " >&6; }
18668 # Check whether --enable-file was given.
18669 if test "${enable_file+set}" = set; then :
18670   enableval=$enable_file;  case "$enableval" in
18671   no)
18672        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18673 $as_echo "no" >&6; }
18674
18675 $as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
18676
18677        CURL_DISABLE_FILE=1
18678
18679        ;;
18680   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18681 $as_echo "yes" >&6; }
18682        ;;
18683   esac
18684 else
18685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18686 $as_echo "yes" >&6; }
18687
18688 fi
18689
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
18691 $as_echo_n "checking whether to support ldap... " >&6; }
18692 # Check whether --enable-ldap was given.
18693 if test "${enable_ldap+set}" = set; then :
18694   enableval=$enable_ldap;  case "$enableval" in
18695   no)
18696        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18697 $as_echo "no" >&6; }
18698
18699 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
18700
18701        CURL_DISABLE_LDAP=1
18702
18703        ;;
18704   *)
18705        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18706 $as_echo "yes" >&6; }
18707        ;;
18708   esac
18709 else
18710
18711        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18712 $as_echo "yes" >&6; }
18713
18714 fi
18715
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
18717 $as_echo_n "checking whether to support ldaps... " >&6; }
18718 # Check whether --enable-ldaps was given.
18719 if test "${enable_ldaps+set}" = set; then :
18720   enableval=$enable_ldaps;  case "$enableval" in
18721   no)
18722        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18723 $as_echo "no" >&6; }
18724
18725 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
18726
18727        CURL_DISABLE_LDAPS=1
18728
18729        ;;
18730   *)   if test "x$CURL_DISABLE_LDAP" = "x1" ; then
18731          { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
18732 $as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
18733
18734 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
18735
18736          CURL_DISABLE_LDAPS=1
18737
18738        else
18739          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18740 $as_echo "yes" >&6; }
18741
18742 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
18743
18744          HAVE_LDAP_SSL=1
18745
18746        fi
18747        ;;
18748   esac
18749 else
18750
18751        if test "x$CURL_DISABLE_LDAP" = "x1" ; then
18752          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18753 $as_echo "no" >&6; }
18754
18755 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
18756
18757          CURL_DISABLE_LDAPS=1
18758
18759        else
18760          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18761 $as_echo "yes" >&6; }
18762
18763 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
18764
18765          HAVE_LDAP_SSL=1
18766
18767        fi
18768
18769 fi
18770
18771
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
18773 $as_echo_n "checking whether to support rtsp... " >&6; }
18774 # Check whether --enable-rtsp was given.
18775 if test "${enable_rtsp+set}" = set; then :
18776   enableval=$enable_rtsp;  case "$enableval" in
18777   no)
18778        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18779 $as_echo "no" >&6; }
18780
18781 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
18782
18783        CURL_DISABLE_RTSP=1
18784
18785        ;;
18786   *)   if test x$CURL_DISABLE_HTTP = x1 ; then
18787           as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
18788        else
18789           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18790 $as_echo "yes" >&6; }
18791           curl_rtsp_msg="enabled"
18792        fi
18793        ;;
18794   esac
18795 else
18796   if test "x$CURL_DISABLE_HTTP" != "x1"; then
18797           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18798 $as_echo "yes" >&6; }
18799           curl_rtsp_msg="enabled"
18800        else
18801           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18802 $as_echo "no" >&6; }
18803        fi
18804
18805 fi
18806
18807
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
18809 $as_echo_n "checking whether to support proxies... " >&6; }
18810 # Check whether --enable-proxy was given.
18811 if test "${enable_proxy+set}" = set; then :
18812   enableval=$enable_proxy;  case "$enableval" in
18813   no)
18814        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18815 $as_echo "no" >&6; }
18816
18817 $as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
18818
18819        CURL_DISABLE_PROXY=1
18820
18821        ;;
18822   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18823 $as_echo "yes" >&6; }
18824        ;;
18825   esac
18826 else
18827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18828 $as_echo "yes" >&6; }
18829
18830 fi
18831
18832
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
18834 $as_echo_n "checking whether to support dict... " >&6; }
18835 # Check whether --enable-dict was given.
18836 if test "${enable_dict+set}" = set; then :
18837   enableval=$enable_dict;  case "$enableval" in
18838   no)
18839        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18840 $as_echo "no" >&6; }
18841
18842 $as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
18843
18844        CURL_DISABLE_DICT=1
18845
18846        ;;
18847   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18848 $as_echo "yes" >&6; }
18849        ;;
18850   esac
18851 else
18852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18853 $as_echo "yes" >&6; }
18854
18855 fi
18856
18857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
18858 $as_echo_n "checking whether to support telnet... " >&6; }
18859 # Check whether --enable-telnet was given.
18860 if test "${enable_telnet+set}" = set; then :
18861   enableval=$enable_telnet;  case "$enableval" in
18862   no)
18863        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18864 $as_echo "no" >&6; }
18865
18866 $as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
18867
18868        CURL_DISABLE_TELNET=1
18869
18870        ;;
18871   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18872 $as_echo "yes" >&6; }
18873        ;;
18874   esac
18875 else
18876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18877 $as_echo "yes" >&6; }
18878
18879 fi
18880
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
18882 $as_echo_n "checking whether to support tftp... " >&6; }
18883 # Check whether --enable-tftp was given.
18884 if test "${enable_tftp+set}" = set; then :
18885   enableval=$enable_tftp;  case "$enableval" in
18886   no)
18887        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18888 $as_echo "no" >&6; }
18889
18890 $as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
18891
18892        CURL_DISABLE_TFTP=1
18893
18894        ;;
18895   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18896 $as_echo "yes" >&6; }
18897        ;;
18898   esac
18899 else
18900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18901 $as_echo "yes" >&6; }
18902
18903 fi
18904
18905
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
18907 $as_echo_n "checking whether to support pop3... " >&6; }
18908 # Check whether --enable-pop3 was given.
18909 if test "${enable_pop3+set}" = set; then :
18910   enableval=$enable_pop3;  case "$enableval" in
18911   no)
18912        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18913 $as_echo "no" >&6; }
18914
18915 $as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
18916
18917        CURL_DISABLE_POP3=1
18918
18919        ;;
18920   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18921 $as_echo "yes" >&6; }
18922        ;;
18923   esac
18924 else
18925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18926 $as_echo "yes" >&6; }
18927
18928 fi
18929
18930
18931
18932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
18933 $as_echo_n "checking whether to support imap... " >&6; }
18934 # Check whether --enable-imap was given.
18935 if test "${enable_imap+set}" = set; then :
18936   enableval=$enable_imap;  case "$enableval" in
18937   no)
18938        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18939 $as_echo "no" >&6; }
18940
18941 $as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
18942
18943        CURL_DISABLE_IMAP=1
18944
18945        ;;
18946   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18947 $as_echo "yes" >&6; }
18948        ;;
18949   esac
18950 else
18951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18952 $as_echo "yes" >&6; }
18953
18954 fi
18955
18956
18957
18958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
18959 $as_echo_n "checking whether to support smb... " >&6; }
18960 # Check whether --enable-smb was given.
18961 if test "${enable_smb+set}" = set; then :
18962   enableval=$enable_smb;  case "$enableval" in
18963   no)
18964        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18965 $as_echo "no" >&6; }
18966
18967 $as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
18968
18969        CURL_DISABLE_SMB=1
18970
18971        ;;
18972   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18973 $as_echo "yes" >&6; }
18974        ;;
18975   esac
18976 else
18977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18978 $as_echo "yes" >&6; }
18979
18980 fi
18981
18982
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
18984 $as_echo_n "checking whether to support smtp... " >&6; }
18985 # Check whether --enable-smtp was given.
18986 if test "${enable_smtp+set}" = set; then :
18987   enableval=$enable_smtp;  case "$enableval" in
18988   no)
18989        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18990 $as_echo "no" >&6; }
18991
18992 $as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
18993
18994        CURL_DISABLE_SMTP=1
18995
18996        ;;
18997   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18998 $as_echo "yes" >&6; }
18999        ;;
19000   esac
19001 else
19002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19003 $as_echo "yes" >&6; }
19004
19005 fi
19006
19007
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
19009 $as_echo_n "checking whether to support gopher... " >&6; }
19010 # Check whether --enable-gopher was given.
19011 if test "${enable_gopher+set}" = set; then :
19012   enableval=$enable_gopher;  case "$enableval" in
19013   no)
19014        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19015 $as_echo "no" >&6; }
19016
19017 $as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
19018
19019        CURL_DISABLE_GOPHER=1
19020
19021        ;;
19022   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19023 $as_echo "yes" >&6; }
19024        ;;
19025   esac
19026 else
19027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19028 $as_echo "yes" >&6; }
19029
19030 fi
19031
19032
19033
19034
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
19036 $as_echo_n "checking whether to provide built-in manual... " >&6; }
19037 # Check whether --enable-manual was given.
19038 if test "${enable_manual+set}" = set; then :
19039   enableval=$enable_manual;  case "$enableval" in
19040   no)
19041        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19042 $as_echo "no" >&6; }
19043        ;;
19044   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19045 $as_echo "yes" >&6; }
19046        USE_MANUAL="1"
19047        ;;
19048   esac
19049 else
19050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19051 $as_echo "yes" >&6; }
19052        USE_MANUAL="1"
19053
19054 fi
19055
19056
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
19058 $as_echo_n "checking whether to enable generation of C code... " >&6; }
19059 # Check whether --enable-libcurl_option was given.
19060 if test "${enable_libcurl_option+set}" = set; then :
19061   enableval=$enable_libcurl_option;  case "$enableval" in
19062   no)
19063        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19064 $as_echo "no" >&6; }
19065
19066 $as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19067
19068        curl_libcurl_msg="no"
19069        ;;
19070   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19071 $as_echo "yes" >&6; }
19072        ;;
19073   esac
19074 else
19075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19076 $as_echo "yes" >&6; }
19077
19078 fi
19079
19080
19081
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19083 $as_echo_n "checking whether to use libgcc... " >&6; }
19084 # Check whether --enable-libgcc was given.
19085 if test "${enable_libgcc+set}" = set; then :
19086   enableval=$enable_libgcc;  case "$enableval" in
19087   yes)
19088        LIBS="-lgcc $LIBS"
19089        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19090 $as_echo "yes" >&6; }
19091        ;;
19092   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19093 $as_echo "no" >&6; }
19094        ;;
19095   esac
19096 else
19097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19098 $as_echo "no" >&6; }
19099
19100 fi
19101
19102
19103
19104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19105 $as_echo_n "checking if X/Open network library is required... " >&6; }
19106   tst_lib_xnet_required="no"
19107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19108 /* end confdefs.h.  */
19109
19110
19111 int main (void)
19112 {
19113 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19114   return 0;
19115 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19116   return 0;
19117 #else
19118   force compilation error
19119 #endif
19120 }
19121
19122
19123 _ACEOF
19124 if ac_fn_c_try_compile "$LINENO"; then :
19125
19126     tst_lib_xnet_required="yes"
19127     LIBS="-lxnet $LIBS"
19128
19129 fi
19130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19132 $as_echo "$tst_lib_xnet_required" >&6; }
19133
19134
19135 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19136 if test "x$ac_cv_func_gethostbyname" = xyes; then :
19137   HAVE_GETHOSTBYNAME="1"
19138
19139 else
19140    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19141 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19142 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19143   $as_echo_n "(cached) " >&6
19144 else
19145   ac_check_lib_save_LIBS=$LIBS
19146 LIBS="-lnsl  $LIBS"
19147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19148 /* end confdefs.h.  */
19149
19150
19151 #ifdef __cplusplus
19152 extern "C"
19153 #endif
19154 char gethostbyname ();
19155 int main (void)
19156 {
19157 return gethostbyname ();
19158  ;
19159  return 0;
19160 }
19161 _ACEOF
19162 if ac_fn_c_try_link "$LINENO"; then :
19163   ac_cv_lib_nsl_gethostbyname=yes
19164 else
19165   ac_cv_lib_nsl_gethostbyname=no
19166 fi
19167 rm -f core conftest.err conftest.$ac_objext \
19168     conftest$ac_exeext conftest.$ac_ext
19169 LIBS=$ac_check_lib_save_LIBS
19170 fi
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19172 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19173 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19174   HAVE_GETHOSTBYNAME="1"
19175                              LIBS="-lnsl $LIBS"
19176
19177 fi
19178
19179
19180 fi
19181
19182
19183 if test "$HAVE_GETHOSTBYNAME" != "1"
19184 then
19185     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19186 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19187 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19188   $as_echo_n "(cached) " >&6
19189 else
19190   ac_check_lib_save_LIBS=$LIBS
19191 LIBS="-lsocket  $LIBS"
19192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19193 /* end confdefs.h.  */
19194
19195
19196 #ifdef __cplusplus
19197 extern "C"
19198 #endif
19199 char gethostbyname ();
19200 int main (void)
19201 {
19202 return gethostbyname ();
19203  ;
19204  return 0;
19205 }
19206 _ACEOF
19207 if ac_fn_c_try_link "$LINENO"; then :
19208   ac_cv_lib_socket_gethostbyname=yes
19209 else
19210   ac_cv_lib_socket_gethostbyname=no
19211 fi
19212 rm -f core conftest.err conftest.$ac_objext \
19213     conftest$ac_exeext conftest.$ac_ext
19214 LIBS=$ac_check_lib_save_LIBS
19215 fi
19216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19217 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19218 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19219   HAVE_GETHOSTBYNAME="1"
19220                LIBS="-lsocket $LIBS"
19221
19222 fi
19223
19224 fi
19225
19226 if test "$HAVE_GETHOSTBYNAME" != "1"
19227 then
19228     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19229 $as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19230 if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19231   $as_echo_n "(cached) " >&6
19232 else
19233   ac_check_lib_save_LIBS=$LIBS
19234 LIBS="-lwatt  $LIBS"
19235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19236 /* end confdefs.h.  */
19237
19238
19239 #ifdef __cplusplus
19240 extern "C"
19241 #endif
19242 char gethostbyname ();
19243 int main (void)
19244 {
19245 return gethostbyname ();
19246  ;
19247  return 0;
19248 }
19249 _ACEOF
19250 if ac_fn_c_try_link "$LINENO"; then :
19251   ac_cv_lib_watt_gethostbyname=yes
19252 else
19253   ac_cv_lib_watt_gethostbyname=no
19254 fi
19255 rm -f core conftest.err conftest.$ac_objext \
19256     conftest$ac_exeext conftest.$ac_ext
19257 LIBS=$ac_check_lib_save_LIBS
19258 fi
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19260 $as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19261 if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19262   HAVE_GETHOSTBYNAME="1"
19263                CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19264                LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19265                LIBS="-lwatt $LIBS"
19266
19267 fi
19268
19269 fi
19270
19271 if test "$HAVE_GETHOSTBYNAME" != "1"
19272 then
19273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19274 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19275   my_ac_save_LIBS=$LIBS
19276   LIBS="-lnsl -lsocket $LIBS"
19277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19278 /* end confdefs.h.  */
19279
19280
19281
19282 int main (void)
19283 {
19284
19285       gethostbyname();
19286
19287  ;
19288  return 0;
19289 }
19290
19291 _ACEOF
19292 if ac_fn_c_try_link "$LINENO"; then :
19293
19294     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19295 $as_echo "yes" >&6; }
19296     HAVE_GETHOSTBYNAME="1"
19297
19298 else
19299
19300     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19301 $as_echo "no" >&6; }
19302     LIBS=$my_ac_save_LIBS
19303
19304 fi
19305 rm -f core conftest.err conftest.$ac_objext \
19306     conftest$ac_exeext conftest.$ac_ext
19307 fi
19308
19309 if test "$HAVE_GETHOSTBYNAME" != "1"
19310 then
19311     if test "$ac_cv_header_windows_h" = "yes"; then
19312     if test "$ac_cv_header_winsock_h" = "yes"; then
19313       case $host in
19314         *-*-mingw32ce*)
19315           winsock_LIB="-lwinsock"
19316           ;;
19317         *)
19318           winsock_LIB="-lwsock32"
19319           ;;
19320       esac
19321     fi
19322     if test "$ac_cv_header_winsock2_h" = "yes"; then
19323       winsock_LIB="-lws2_32"
19324     fi
19325     if test ! -z "$winsock_LIB"; then
19326       my_ac_save_LIBS=$LIBS
19327       LIBS="$winsock_LIB $LIBS"
19328       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19329 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19330       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19331 /* end confdefs.h.  */
19332
19333
19334 #ifdef HAVE_WINDOWS_H
19335 #ifndef WIN32_LEAN_AND_MEAN
19336 #define WIN32_LEAN_AND_MEAN
19337 #endif
19338 #include <windows.h>
19339 #ifdef HAVE_WINSOCK2_H
19340 #include <winsock2.h>
19341 #else
19342 #ifdef HAVE_WINSOCK_H
19343 #include <winsock.h>
19344 #endif
19345 #endif
19346 #endif
19347
19348 int main (void)
19349 {
19350
19351           gethostbyname("www.dummysite.com");
19352
19353  ;
19354  return 0;
19355 }
19356
19357 _ACEOF
19358 if ac_fn_c_try_link "$LINENO"; then :
19359
19360         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19361 $as_echo "yes" >&6; }
19362         HAVE_GETHOSTBYNAME="1"
19363
19364 else
19365
19366         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19367 $as_echo "no" >&6; }
19368         winsock_LIB=""
19369         LIBS=$my_ac_save_LIBS
19370
19371 fi
19372 rm -f core conftest.err conftest.$ac_objext \
19373     conftest$ac_exeext conftest.$ac_ext
19374     fi
19375   fi
19376 fi
19377
19378 if test "$HAVE_GETHOSTBYNAME" != "1"
19379 then
19380     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
19381 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
19382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19383 /* end confdefs.h.  */
19384
19385
19386 /* Older Minix versions may need <net/gen/netdb.h> here instead */
19387 #include <netdb.h>
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
19410 fi
19411 rm -f core conftest.err conftest.$ac_objext \
19412     conftest$ac_exeext conftest.$ac_ext
19413 fi
19414
19415 if test "$HAVE_GETHOSTBYNAME" != "1"
19416 then
19417     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
19418 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
19419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19420 /* end confdefs.h.  */
19421
19422
19423 #include <stdio.h>
19424 #include <netdb.h>
19425
19426 int main (void)
19427 {
19428
19429       gethostbyname("www.dummysite.com");
19430
19431  ;
19432  return 0;
19433 }
19434
19435 _ACEOF
19436 if ac_fn_c_try_link "$LINENO"; then :
19437
19438     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19439 $as_echo "yes" >&6; }
19440     HAVE_GETHOSTBYNAME="1"
19441
19442 else
19443
19444     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19445 $as_echo "no" >&6; }
19446
19447 fi
19448 rm -f core conftest.err conftest.$ac_objext \
19449     conftest$ac_exeext conftest.$ac_ext
19450 fi
19451
19452 if test "$HAVE_GETHOSTBYNAME" != "1"
19453 then
19454     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
19455 $as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
19456 if ${ac_cv_lib_network_gethostbyname+:} false; then :
19457   $as_echo_n "(cached) " >&6
19458 else
19459   ac_check_lib_save_LIBS=$LIBS
19460 LIBS="-lnetwork  $LIBS"
19461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19462 /* end confdefs.h.  */
19463
19464
19465 #ifdef __cplusplus
19466 extern "C"
19467 #endif
19468 char gethostbyname ();
19469 int main (void)
19470 {
19471 return gethostbyname ();
19472  ;
19473  return 0;
19474 }
19475 _ACEOF
19476 if ac_fn_c_try_link "$LINENO"; then :
19477   ac_cv_lib_network_gethostbyname=yes
19478 else
19479   ac_cv_lib_network_gethostbyname=no
19480 fi
19481 rm -f core conftest.err conftest.$ac_objext \
19482     conftest$ac_exeext conftest.$ac_ext
19483 LIBS=$ac_check_lib_save_LIBS
19484 fi
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
19486 $as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
19487 if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
19488   HAVE_GETHOSTBYNAME="1"
19489                LIBS="-lnetwork $LIBS"
19490
19491 fi
19492
19493 fi
19494
19495 if test "$HAVE_GETHOSTBYNAME" != "1"
19496 then
19497     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
19498 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
19499 if ${ac_cv_lib_net_gethostbyname+:} false; then :
19500   $as_echo_n "(cached) " >&6
19501 else
19502   ac_check_lib_save_LIBS=$LIBS
19503 LIBS="-lnet  $LIBS"
19504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19505 /* end confdefs.h.  */
19506
19507
19508 #ifdef __cplusplus
19509 extern "C"
19510 #endif
19511 char gethostbyname ();
19512 int main (void)
19513 {
19514 return gethostbyname ();
19515  ;
19516  return 0;
19517 }
19518 _ACEOF
19519 if ac_fn_c_try_link "$LINENO"; then :
19520   ac_cv_lib_net_gethostbyname=yes
19521 else
19522   ac_cv_lib_net_gethostbyname=no
19523 fi
19524 rm -f core conftest.err conftest.$ac_objext \
19525     conftest$ac_exeext conftest.$ac_ext
19526 LIBS=$ac_check_lib_save_LIBS
19527 fi
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
19529 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
19530 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
19531   HAVE_GETHOSTBYNAME="1"
19532                LIBS="-lnet $LIBS"
19533
19534 fi
19535
19536 fi
19537
19538
19539 if test "$HAVE_GETHOSTBYNAME" != "1"; then
19540   as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
19541 fi
19542
19543 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
19544 if test "x$ac_cv_func_strcasecmp" = xyes; then :
19545
19546 else
19547    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
19548 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
19549 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
19550   $as_echo_n "(cached) " >&6
19551 else
19552   ac_check_lib_save_LIBS=$LIBS
19553 LIBS="-lresolve  $LIBS"
19554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19555 /* end confdefs.h.  */
19556
19557
19558 #ifdef __cplusplus
19559 extern "C"
19560 #endif
19561 char strcasecmp ();
19562 int main (void)
19563 {
19564 return strcasecmp ();
19565  ;
19566  return 0;
19567 }
19568 _ACEOF
19569 if ac_fn_c_try_link "$LINENO"; then :
19570   ac_cv_lib_resolve_strcasecmp=yes
19571 else
19572   ac_cv_lib_resolve_strcasecmp=no
19573 fi
19574 rm -f core conftest.err conftest.$ac_objext \
19575     conftest$ac_exeext conftest.$ac_ext
19576 LIBS=$ac_check_lib_save_LIBS
19577 fi
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
19579 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
19580 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
19581   cat >>confdefs.h <<_ACEOF
19582 #define HAVE_LIBRESOLVE 1
19583 _ACEOF
19584
19585   LIBS="-lresolve $LIBS"
19586
19587 fi
19588
19589 fi
19590
19591
19592 if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
19593   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
19594 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
19595 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
19596   $as_echo_n "(cached) " >&6
19597 else
19598   ac_check_lib_save_LIBS=$LIBS
19599 LIBS="-lresolve -lnsl $LIBS"
19600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19601 /* end confdefs.h.  */
19602
19603
19604 #ifdef __cplusplus
19605 extern "C"
19606 #endif
19607 char strcasecmp ();
19608 int main (void)
19609 {
19610 return strcasecmp ();
19611  ;
19612  return 0;
19613 }
19614 _ACEOF
19615 if ac_fn_c_try_link "$LINENO"; then :
19616   ac_cv_lib_resolve_strcasecmp=yes
19617 else
19618   ac_cv_lib_resolve_strcasecmp=no
19619 fi
19620 rm -f core conftest.err conftest.$ac_objext \
19621     conftest$ac_exeext conftest.$ac_ext
19622 LIBS=$ac_check_lib_save_LIBS
19623 fi
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
19625 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
19626 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
19627   LIBS="-lresolve $LIBS"
19628 fi
19629
19630 fi
19631 ac_cv_func_strcasecmp="no"
19632
19633
19634 curl_includes_winsock2="\
19635 /* includes start */
19636 #ifdef HAVE_WINDOWS_H
19637 #  ifndef WIN32_LEAN_AND_MEAN
19638 #    define WIN32_LEAN_AND_MEAN
19639 #  endif
19640 #  include <windows.h>
19641 #  ifdef HAVE_WINSOCK2_H
19642 #    include <winsock2.h>
19643 #  else
19644 #    ifdef HAVE_WINSOCK_H
19645 #      include <winsock.h>
19646 #    endif
19647 #  endif
19648 #endif
19649 /* includes end */"
19650
19651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
19652 $as_echo_n "checking for windows.h... " >&6; }
19653 if ${ac_cv_header_windows_h+:} false; then :
19654   $as_echo_n "(cached) " >&6
19655 else
19656
19657     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19658 /* end confdefs.h.  */
19659
19660
19661 #undef inline
19662 #ifndef WIN32_LEAN_AND_MEAN
19663 #define WIN32_LEAN_AND_MEAN
19664 #endif
19665 #include <windows.h>
19666
19667 int main (void)
19668 {
19669
19670 #if defined(__CYGWIN__) || defined(__CEGCC__)
19671         HAVE_WINDOWS_H shall not be defined.
19672 #else
19673         int dummy=2*WINVER;
19674 #endif
19675
19676  ;
19677  return 0;
19678 }
19679
19680 _ACEOF
19681 if ac_fn_c_try_compile "$LINENO"; then :
19682
19683       ac_cv_header_windows_h="yes"
19684
19685 else
19686
19687       ac_cv_header_windows_h="no"
19688
19689 fi
19690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19691
19692 fi
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
19694 $as_echo "$ac_cv_header_windows_h" >&6; }
19695   case "$ac_cv_header_windows_h" in
19696     yes)
19697
19698 cat >>confdefs.h <<_ACEOF
19699 #define HAVE_WINDOWS_H 1
19700 _ACEOF
19701
19702
19703 cat >>confdefs.h <<_ACEOF
19704 #define WIN32_LEAN_AND_MEAN 1
19705 _ACEOF
19706
19707       ;;
19708   esac
19709
19710
19711     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
19712 $as_echo_n "checking for winsock.h... " >&6; }
19713 if ${ac_cv_header_winsock_h+:} false; then :
19714   $as_echo_n "(cached) " >&6
19715 else
19716
19717     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19718 /* end confdefs.h.  */
19719
19720
19721 #undef inline
19722 #ifndef WIN32_LEAN_AND_MEAN
19723 #define WIN32_LEAN_AND_MEAN
19724 #endif
19725 #include <windows.h>
19726 #include <winsock.h>
19727
19728 int main (void)
19729 {
19730
19731 #if defined(__CYGWIN__) || defined(__CEGCC__)
19732         HAVE_WINSOCK_H shall not be defined.
19733 #else
19734         int dummy=WSACleanup();
19735 #endif
19736
19737  ;
19738  return 0;
19739 }
19740
19741 _ACEOF
19742 if ac_fn_c_try_compile "$LINENO"; then :
19743
19744       ac_cv_header_winsock_h="yes"
19745
19746 else
19747
19748       ac_cv_header_winsock_h="no"
19749
19750 fi
19751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19752
19753 fi
19754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
19755 $as_echo "$ac_cv_header_winsock_h" >&6; }
19756   case "$ac_cv_header_winsock_h" in
19757     yes)
19758
19759 cat >>confdefs.h <<_ACEOF
19760 #define HAVE_WINSOCK_H 1
19761 _ACEOF
19762
19763       ;;
19764   esac
19765
19766
19767     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
19768 $as_echo_n "checking for winsock2.h... " >&6; }
19769 if ${ac_cv_header_winsock2_h+:} false; then :
19770   $as_echo_n "(cached) " >&6
19771 else
19772
19773     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19774 /* end confdefs.h.  */
19775
19776
19777 #undef inline
19778 #ifndef WIN32_LEAN_AND_MEAN
19779 #define WIN32_LEAN_AND_MEAN
19780 #endif
19781 #include <windows.h>
19782 #include <winsock2.h>
19783
19784 int main (void)
19785 {
19786
19787 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
19788         HAVE_WINSOCK2_H shall not be defined.
19789 #else
19790         int dummy=2*IPPROTO_ESP;
19791 #endif
19792
19793  ;
19794  return 0;
19795 }
19796
19797 _ACEOF
19798 if ac_fn_c_try_compile "$LINENO"; then :
19799
19800       ac_cv_header_winsock2_h="yes"
19801
19802 else
19803
19804       ac_cv_header_winsock2_h="no"
19805
19806 fi
19807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19808
19809 fi
19810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
19811 $as_echo "$ac_cv_header_winsock2_h" >&6; }
19812   case "$ac_cv_header_winsock2_h" in
19813     yes)
19814
19815 cat >>confdefs.h <<_ACEOF
19816 #define HAVE_WINSOCK2_H 1
19817 _ACEOF
19818
19819       ;;
19820   esac
19821
19822
19823
19824     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
19825 $as_echo_n "checking for connect in libraries... " >&6; }
19826   tst_connect_save_LIBS="$LIBS"
19827   tst_connect_need_LIBS="unknown"
19828   for tst_lib in '' '-lsocket' ; do
19829     if test "$tst_connect_need_LIBS" = "unknown"; then
19830       LIBS="$tst_lib $tst_connect_save_LIBS"
19831       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19832 /* end confdefs.h.  */
19833
19834
19835           $curl_includes_winsock2
19836           #ifndef HAVE_WINDOWS_H
19837             int connect(int, void*, int);
19838           #endif
19839
19840 int main (void)
19841 {
19842
19843           if(0 != connect(0, 0, 0))
19844             return 1;
19845
19846  ;
19847  return 0;
19848 }
19849
19850 _ACEOF
19851 if ac_fn_c_try_link "$LINENO"; then :
19852
19853         tst_connect_need_LIBS="$tst_lib"
19854
19855 fi
19856 rm -f core conftest.err conftest.$ac_objext \
19857     conftest$ac_exeext conftest.$ac_ext
19858     fi
19859   done
19860   LIBS="$tst_connect_save_LIBS"
19861   #
19862   case X-"$tst_connect_need_LIBS" in
19863     X-unknown)
19864       { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
19865 $as_echo "cannot find connect" >&6; }
19866       as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
19867       ;;
19868     X-)
19869       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19870 $as_echo "yes" >&6; }
19871       ;;
19872     *)
19873       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
19874 $as_echo "$tst_connect_need_LIBS" >&6; }
19875       LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
19876       ;;
19877   esac
19878
19879
19880 CURL_NETWORK_LIBS=$LIBS
19881
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19883 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19884 if ${ac_cv_header_time+:} false; then :
19885   $as_echo_n "(cached) " >&6
19886 else
19887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19888 /* end confdefs.h.  */
19889 #include <sys/types.h>
19890 #include <sys/time.h>
19891 #include <time.h>
19892
19893 int main (void)
19894 {
19895 if ((struct tm *) 0)
19896 return 0;
19897  ;
19898  return 0;
19899 }
19900 _ACEOF
19901 if ac_fn_c_try_compile "$LINENO"; then :
19902   ac_cv_header_time=yes
19903 else
19904   ac_cv_header_time=no
19905 fi
19906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19907 fi
19908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19909 $as_echo "$ac_cv_header_time" >&6; }
19910 if test $ac_cv_header_time = yes; then
19911
19912 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19913
19914 fi
19915
19916
19917     for ac_header in sys/types.h sys/time.h time.h
19918 do :
19919   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19920 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19921 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19922   cat >>confdefs.h <<_ACEOF
19923 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19924 _ACEOF
19925
19926 fi
19927
19928 done
19929
19930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
19931 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
19932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19933 /* end confdefs.h.  */
19934
19935
19936 #ifdef HAVE_SYS_TYPES_H
19937 #include <sys/types.h>
19938 #endif
19939 #ifdef HAVE_SYS_TIME_H
19940 #include <sys/time.h>
19941 #ifdef TIME_WITH_SYS_TIME
19942 #include <time.h>
19943 #endif
19944 #else
19945 #ifdef HAVE_TIME_H
19946 #include <time.h>
19947 #endif
19948 #endif
19949
19950 int main (void)
19951 {
19952
19953       struct timespec ts;
19954       (void)clock_gettime(CLOCK_MONOTONIC, &ts);
19955
19956  ;
19957  return 0;
19958 }
19959
19960 _ACEOF
19961 if ac_fn_c_try_compile "$LINENO"; then :
19962
19963     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19964 $as_echo "yes" >&6; }
19965     ac_cv_func_clock_gettime="yes"
19966
19967 else
19968
19969     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19970 $as_echo "no" >&6; }
19971     ac_cv_func_clock_gettime="no"
19972
19973 fi
19974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19975
19976
19977     #
19978   if test "$ac_cv_func_clock_gettime" = "yes"; then
19979     #
19980     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
19981 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
19982     #
19983     curl_cv_save_LIBS="$LIBS"
19984     curl_cv_gclk_LIBS="unknown"
19985     #
19986     for x_xlibs in '' '-lrt' '-lposix4' ; do
19987       if test "$curl_cv_gclk_LIBS" = "unknown"; then
19988         if test -z "$x_xlibs"; then
19989           LIBS="$curl_cv_save_LIBS"
19990         else
19991           LIBS="$x_xlibs $curl_cv_save_LIBS"
19992         fi
19993         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19994 /* end confdefs.h.  */
19995
19996
19997 #ifdef HAVE_SYS_TYPES_H
19998 #include <sys/types.h>
19999 #endif
20000 #ifdef HAVE_SYS_TIME_H
20001 #include <sys/time.h>
20002 #ifdef TIME_WITH_SYS_TIME
20003 #include <time.h>
20004 #endif
20005 #else
20006 #ifdef HAVE_TIME_H
20007 #include <time.h>
20008 #endif
20009 #endif
20010
20011 int main (void)
20012 {
20013
20014             struct timespec ts;
20015             (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20016
20017  ;
20018  return 0;
20019 }
20020
20021 _ACEOF
20022 if ac_fn_c_try_link "$LINENO"; then :
20023
20024           curl_cv_gclk_LIBS="$x_xlibs"
20025
20026 fi
20027 rm -f core conftest.err conftest.$ac_objext \
20028     conftest$ac_exeext conftest.$ac_ext
20029       fi
20030     done
20031     #
20032     LIBS="$curl_cv_save_LIBS"
20033     #
20034     case X-"$curl_cv_gclk_LIBS" in
20035       X-unknown)
20036         { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
20037 $as_echo "cannot find clock_gettime" >&6; }
20038         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20039 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20040         ac_cv_func_clock_gettime="no"
20041         ;;
20042       X-)
20043         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20044 $as_echo "no additional lib required" >&6; }
20045         ac_cv_func_clock_gettime="yes"
20046         ;;
20047       *)
20048         if test -z "$curl_cv_save_LIBS"; then
20049           LIBS="$curl_cv_gclk_LIBS"
20050         else
20051           LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
20052         fi
20053         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
20054 $as_echo "$curl_cv_gclk_LIBS" >&6; }
20055         ac_cv_func_clock_gettime="yes"
20056         ;;
20057     esac
20058     #
20059         if test "x$cross_compiling" != "xyes" &&
20060       test "$ac_cv_func_clock_gettime" = "yes"; then
20061       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
20062 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
20063       if test "$cross_compiling" = yes; then :
20064   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20066 as_fn_error $? "cannot run test program while cross compiling
20067 See \`config.log' for more details" "$LINENO" 5; }
20068 else
20069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20070 /* end confdefs.h.  */
20071
20072
20073 #ifdef HAVE_STDLIB_H
20074 #include <stdlib.h>
20075 #endif
20076 #ifdef HAVE_SYS_TYPES_H
20077 #include <sys/types.h>
20078 #endif
20079 #ifdef HAVE_SYS_TIME_H
20080 #include <sys/time.h>
20081 #ifdef TIME_WITH_SYS_TIME
20082 #include <time.h>
20083 #endif
20084 #else
20085 #ifdef HAVE_TIME_H
20086 #include <time.h>
20087 #endif
20088 #endif
20089
20090 int main (void)
20091 {
20092
20093           struct timespec ts;
20094           if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20095             exit(0);
20096           else
20097             exit(1);
20098
20099  ;
20100  return 0;
20101 }
20102
20103 _ACEOF
20104 if ac_fn_c_try_run "$LINENO"; then :
20105
20106         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20107 $as_echo "yes" >&6; }
20108
20109 else
20110
20111         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20112 $as_echo "no" >&6; }
20113         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20114 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20115         ac_cv_func_clock_gettime="no"
20116         LIBS="$curl_cv_save_LIBS"
20117
20118 fi
20119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20120   conftest.$ac_objext conftest.beam conftest.$ac_ext
20121 fi
20122
20123     fi
20124     #
20125     case "$ac_cv_func_clock_gettime" in
20126       yes)
20127
20128 cat >>confdefs.h <<_ACEOF
20129 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
20130 _ACEOF
20131
20132         ;;
20133     esac
20134     #
20135   fi
20136   #
20137
20138
20139 CURL_NETWORK_AND_TIME_LIBS=$LIBS
20140
20141
20142
20143 clean_CPPFLAGS=$CPPFLAGS
20144 clean_LDFLAGS=$LDFLAGS
20145 clean_LIBS=$LIBS
20146 ZLIB_LIBS=""
20147
20148 # Check whether --with-zlib was given.
20149 if test "${with_zlib+set}" = set; then :
20150   withval=$with_zlib; OPT_ZLIB="$withval"
20151 fi
20152
20153
20154 if test "$OPT_ZLIB" = "no" ; then
20155     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20156 $as_echo "$as_me: WARNING: zlib disabled" >&2;}
20157 else
20158   if test "$OPT_ZLIB" = "yes" ; then
20159     OPT_ZLIB=""
20160   fi
20161
20162   if test -z "$OPT_ZLIB" ; then
20163
20164     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20165 $as_echo_n "checking for inflateEnd in -lz... " >&6; }
20166 if ${ac_cv_lib_z_inflateEnd+:} false; then :
20167   $as_echo_n "(cached) " >&6
20168 else
20169   ac_check_lib_save_LIBS=$LIBS
20170 LIBS="-lz  $LIBS"
20171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20172 /* end confdefs.h.  */
20173
20174
20175 #ifdef __cplusplus
20176 extern "C"
20177 #endif
20178 char inflateEnd ();
20179 int main (void)
20180 {
20181 return inflateEnd ();
20182  ;
20183  return 0;
20184 }
20185 _ACEOF
20186 if ac_fn_c_try_link "$LINENO"; then :
20187   ac_cv_lib_z_inflateEnd=yes
20188 else
20189   ac_cv_lib_z_inflateEnd=no
20190 fi
20191 rm -f core conftest.err conftest.$ac_objext \
20192     conftest$ac_exeext conftest.$ac_ext
20193 LIBS=$ac_check_lib_save_LIBS
20194 fi
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20196 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20197 if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20198                      HAVE_LIBZ="1"
20199                     LIBS="-lz $LIBS"
20200 else
20201                      OPT_ZLIB="/usr/local"
20202 fi
20203
20204
20205   fi
20206
20207     if test -n "$OPT_ZLIB"; then
20208      CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20209      LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20210   fi
20211
20212   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20213 if test "x$ac_cv_header_zlib_h" = xyes; then :
20214
20215         HAVE_ZLIB_H="1"
20216         if test "$HAVE_LIBZ" != "1"; then
20217       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20218 $as_echo_n "checking for gzread in -lz... " >&6; }
20219 if ${ac_cv_lib_z_gzread+:} false; then :
20220   $as_echo_n "(cached) " >&6
20221 else
20222   ac_check_lib_save_LIBS=$LIBS
20223 LIBS="-lz  $LIBS"
20224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20225 /* end confdefs.h.  */
20226
20227
20228 #ifdef __cplusplus
20229 extern "C"
20230 #endif
20231 char gzread ();
20232 int main (void)
20233 {
20234 return gzread ();
20235  ;
20236  return 0;
20237 }
20238 _ACEOF
20239 if ac_fn_c_try_link "$LINENO"; then :
20240   ac_cv_lib_z_gzread=yes
20241 else
20242   ac_cv_lib_z_gzread=no
20243 fi
20244 rm -f core conftest.err conftest.$ac_objext \
20245     conftest$ac_exeext conftest.$ac_ext
20246 LIBS=$ac_check_lib_save_LIBS
20247 fi
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20249 $as_echo "$ac_cv_lib_z_gzread" >&6; }
20250 if test "x$ac_cv_lib_z_gzread" = xyes; then :
20251
20252                                       HAVE_LIBZ="1"
20253                    LIBS="-lz $LIBS"
20254
20255 else
20256    CPPFLAGS=$clean_CPPFLAGS
20257                    LDFLAGS=$clean_LDFLAGS
20258 fi
20259
20260     fi
20261
20262 else
20263
20264             CPPFLAGS=$clean_CPPFLAGS
20265       LDFLAGS=$clean_LDFLAGS
20266
20267 fi
20268
20269
20270
20271   if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20272   then
20273     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20274 $as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20275     HAVE_LIBZ=""
20276     CPPFLAGS=$clean_CPPFLAGS
20277     LDFLAGS=$clean_LDFLAGS
20278     LIBS=$clean_LIBS
20279   elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20280   then
20281     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20282 $as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20283     CPPFLAGS=$clean_CPPFLAGS
20284     LDFLAGS=$clean_LDFLAGS
20285     LIBS=$clean_LIBS
20286   elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20287   then
20288
20289
20290 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20291
20292
20293 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20294
20295
20296     ZLIB_LIBS="-lz"
20297     LIBS="-lz $clean_LIBS"
20298
20299         AMFIXLIB="1"
20300     { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20301 $as_echo "$as_me: found both libz and libz.h header" >&6;}
20302     curl_zlib_msg="enabled"
20303   fi
20304 fi
20305
20306  if test x"$AMFIXLIB" = x1; then
20307   HAVE_LIBZ_TRUE=
20308   HAVE_LIBZ_FALSE='#'
20309 else
20310   HAVE_LIBZ_TRUE='#'
20311   HAVE_LIBZ_FALSE=
20312 fi
20313
20314
20315
20316
20317 LDAPLIBNAME=""
20318
20319 # Check whether --with-ldap-lib was given.
20320 if test "${with_ldap_lib+set}" = set; then :
20321   withval=$with_ldap_lib; LDAPLIBNAME="$withval"
20322 fi
20323
20324
20325 LBERLIBNAME=""
20326
20327 # Check whether --with-lber-lib was given.
20328 if test "${with_lber_lib+set}" = set; then :
20329   withval=$with_lber_lib; LBERLIBNAME="$withval"
20330 fi
20331
20332
20333 if test x$CURL_DISABLE_LDAP != x1 ; then
20334
20335
20336     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
20337 $as_echo_n "checking for lber.h... " >&6; }
20338 if ${ac_cv_header_lber_h+:} false; then :
20339   $as_echo_n "(cached) " >&6
20340 else
20341
20342     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20343 /* end confdefs.h.  */
20344
20345
20346 #undef inline
20347 #ifdef HAVE_WINDOWS_H
20348 #ifndef WIN32_LEAN_AND_MEAN
20349 #define WIN32_LEAN_AND_MEAN
20350 #endif
20351 #include <windows.h>
20352 #else
20353 #ifdef HAVE_SYS_TYPES_H
20354 #include <sys/types.h>
20355 #endif
20356 #endif
20357 #ifndef NULL
20358 #define NULL (void *)0
20359 #endif
20360 #include <lber.h>
20361
20362 int main (void)
20363 {
20364
20365         BerValue *bvp = NULL;
20366         BerElement *bep = ber_init(bvp);
20367         ber_free(bep, 1);
20368
20369  ;
20370  return 0;
20371 }
20372
20373 _ACEOF
20374 if ac_fn_c_try_compile "$LINENO"; then :
20375
20376       ac_cv_header_lber_h="yes"
20377
20378 else
20379
20380       ac_cv_header_lber_h="no"
20381
20382 fi
20383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20384
20385 fi
20386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_lber_h" >&5
20387 $as_echo "$ac_cv_header_lber_h" >&6; }
20388   if test "$ac_cv_header_lber_h" = "yes"; then
20389
20390 cat >>confdefs.h <<_ACEOF
20391 #define HAVE_LBER_H 1
20392 _ACEOF
20393
20394     #
20395     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20396 /* end confdefs.h.  */
20397
20398
20399 #undef inline
20400 #ifdef HAVE_WINDOWS_H
20401 #ifndef WIN32_LEAN_AND_MEAN
20402 #define WIN32_LEAN_AND_MEAN
20403 #endif
20404 #include <windows.h>
20405 #else
20406 #ifdef HAVE_SYS_TYPES_H
20407 #include <sys/types.h>
20408 #endif
20409 #endif
20410 #ifndef NULL
20411 #define NULL (void *)0
20412 #endif
20413 #ifndef LDAP_DEPRECATED
20414 #define LDAP_DEPRECATED 1
20415 #endif
20416 #include <ldap.h>
20417
20418 int main (void)
20419 {
20420
20421         BerValue *bvp = NULL;
20422         BerElement *bep = ber_init(bvp);
20423         ber_free(bep, 1);
20424
20425  ;
20426  return 0;
20427 }
20428
20429 _ACEOF
20430 if ac_fn_c_try_compile "$LINENO"; then :
20431
20432       curl_cv_need_header_lber_h="no"
20433
20434 else
20435
20436       curl_cv_need_header_lber_h="yes"
20437
20438 fi
20439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20440     #
20441     case "$curl_cv_need_header_lber_h" in
20442       yes)
20443
20444 cat >>confdefs.h <<_ACEOF
20445 #define NEED_LBER_H 1
20446 _ACEOF
20447
20448         ;;
20449     esac
20450   fi
20451
20452
20453     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
20454 $as_echo_n "checking for ldap.h... " >&6; }
20455 if ${ac_cv_header_ldap_h+:} false; then :
20456   $as_echo_n "(cached) " >&6
20457 else
20458
20459     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20460 /* end confdefs.h.  */
20461
20462
20463 #undef inline
20464 #ifdef HAVE_WINDOWS_H
20465 #ifndef WIN32_LEAN_AND_MEAN
20466 #define WIN32_LEAN_AND_MEAN
20467 #endif
20468 #include <windows.h>
20469 #else
20470 #ifdef HAVE_SYS_TYPES_H
20471 #include <sys/types.h>
20472 #endif
20473 #endif
20474 #ifndef LDAP_DEPRECATED
20475 #define LDAP_DEPRECATED 1
20476 #endif
20477 #ifdef NEED_LBER_H
20478 #include <lber.h>
20479 #endif
20480 #include <ldap.h>
20481
20482 int main (void)
20483 {
20484
20485         LDAP *ldp = ldap_init("dummy", LDAP_PORT);
20486         int res = ldap_unbind(ldp);
20487
20488  ;
20489  return 0;
20490 }
20491
20492 _ACEOF
20493 if ac_fn_c_try_compile "$LINENO"; then :
20494
20495       ac_cv_header_ldap_h="yes"
20496
20497 else
20498
20499       ac_cv_header_ldap_h="no"
20500
20501 fi
20502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20503
20504 fi
20505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldap_h" >&5
20506 $as_echo "$ac_cv_header_ldap_h" >&6; }
20507   case "$ac_cv_header_ldap_h" in
20508     yes)
20509
20510 cat >>confdefs.h <<_ACEOF
20511 #define HAVE_LDAP_H 1
20512 _ACEOF
20513
20514       ;;
20515   esac
20516
20517
20518     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
20519 $as_echo_n "checking for ldapssl.h... " >&6; }
20520 if ${ac_cv_header_ldapssl_h+:} false; then :
20521   $as_echo_n "(cached) " >&6
20522 else
20523
20524     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20525 /* end confdefs.h.  */
20526
20527
20528 #undef inline
20529 #ifdef HAVE_WINDOWS_H
20530 #ifndef WIN32_LEAN_AND_MEAN
20531 #define WIN32_LEAN_AND_MEAN
20532 #endif
20533 #include <windows.h>
20534 #else
20535 #ifdef HAVE_SYS_TYPES_H
20536 #include <sys/types.h>
20537 #endif
20538 #endif
20539 #ifndef NULL
20540 #define NULL (void *)0
20541 #endif
20542 #ifndef LDAP_DEPRECATED
20543 #define LDAP_DEPRECATED 1
20544 #endif
20545 #ifdef NEED_LBER_H
20546 #include <lber.h>
20547 #endif
20548 #ifdef HAVE_LDAP_H
20549 #include <ldap.h>
20550 #endif
20551 #include <ldapssl.h>
20552
20553 int main (void)
20554 {
20555
20556         char *cert_label = NULL;
20557         LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
20558
20559  ;
20560  return 0;
20561 }
20562
20563 _ACEOF
20564 if ac_fn_c_try_compile "$LINENO"; then :
20565
20566       ac_cv_header_ldapssl_h="yes"
20567
20568 else
20569
20570       ac_cv_header_ldapssl_h="no"
20571
20572 fi
20573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20574
20575 fi
20576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldapssl_h" >&5
20577 $as_echo "$ac_cv_header_ldapssl_h" >&6; }
20578   case "$ac_cv_header_ldapssl_h" in
20579     yes)
20580
20581 cat >>confdefs.h <<_ACEOF
20582 #define HAVE_LDAPSSL_H 1
20583 _ACEOF
20584
20585       ;;
20586   esac
20587
20588
20589     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
20590 $as_echo_n "checking for ldap_ssl.h... " >&6; }
20591 if ${ac_cv_header_ldap_ssl_h+:} false; then :
20592   $as_echo_n "(cached) " >&6
20593 else
20594
20595     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20596 /* end confdefs.h.  */
20597
20598
20599 #undef inline
20600 #ifdef HAVE_WINDOWS_H
20601 #ifndef WIN32_LEAN_AND_MEAN
20602 #define WIN32_LEAN_AND_MEAN
20603 #endif
20604 #include <windows.h>
20605 #else
20606 #ifdef HAVE_SYS_TYPES_H
20607 #include <sys/types.h>
20608 #endif
20609 #endif
20610 #ifndef LDAP_DEPRECATED
20611 #define LDAP_DEPRECATED 1
20612 #endif
20613 #ifdef NEED_LBER_H
20614 #include <lber.h>
20615 #endif
20616 #ifdef HAVE_LDAP_H
20617 #include <ldap.h>
20618 #endif
20619 #include <ldap_ssl.h>
20620
20621 int main (void)
20622 {
20623
20624         LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
20625
20626  ;
20627  return 0;
20628 }
20629
20630 _ACEOF
20631 if ac_fn_c_try_compile "$LINENO"; then :
20632
20633       ac_cv_header_ldap_ssl_h="yes"
20634
20635 else
20636
20637       ac_cv_header_ldap_ssl_h="no"
20638
20639 fi
20640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20641
20642 fi
20643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldap_ssl_h" >&5
20644 $as_echo "$ac_cv_header_ldap_ssl_h" >&6; }
20645   case "$ac_cv_header_ldap_ssl_h" in
20646     yes)
20647
20648 cat >>confdefs.h <<_ACEOF
20649 #define HAVE_LDAP_SSL_H 1
20650 _ACEOF
20651
20652       ;;
20653   esac
20654
20655
20656   if test -z "$LDAPLIBNAME" ; then
20657     if test "$ac_cv_native_windows" = "yes"; then
20658             LDAPLIBNAME="wldap32"
20659       LBERLIBNAME="no"
20660     fi
20661   fi
20662
20663   if test "$LDAPLIBNAME" ; then
20664     as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
20665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
20666 $as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
20667 if eval \${$as_ac_Lib+:} false; then :
20668   $as_echo_n "(cached) " >&6
20669 else
20670   ac_check_lib_save_LIBS=$LIBS
20671 LIBS="-l"$LDAPLIBNAME"  $LIBS"
20672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20673 /* end confdefs.h.  */
20674
20675
20676 #ifdef __cplusplus
20677 extern "C"
20678 #endif
20679 char ldap_init ();
20680 int main (void)
20681 {
20682 return ldap_init ();
20683  ;
20684  return 0;
20685 }
20686 _ACEOF
20687 if ac_fn_c_try_link "$LINENO"; then :
20688   eval "$as_ac_Lib=yes"
20689 else
20690   eval "$as_ac_Lib=no"
20691 fi
20692 rm -f core conftest.err conftest.$ac_objext \
20693     conftest$ac_exeext conftest.$ac_ext
20694 LIBS=$ac_check_lib_save_LIBS
20695 fi
20696 eval ac_res=\$$as_ac_Lib
20697                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20698 $as_echo "$ac_res" >&6; }
20699 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20700   cat >>confdefs.h <<_ACEOF
20701 #define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
20702 _ACEOF
20703
20704   LIBS="-l"$LDAPLIBNAME" $LIBS"
20705
20706 else
20707
20708       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
20709 $as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
20710
20711 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
20712
20713       CURL_DISABLE_LDAP=1
20714
20715
20716 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20717
20718       CURL_DISABLE_LDAPS=1
20719
20720 fi
20721
20722   else
20723
20724     #
20725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
20726 $as_echo_n "checking for LDAP libraries... " >&6; }
20727   #
20728   u_libs=""
20729   #
20730
20731   #
20732   curl_cv_save_LIBS="$LIBS"
20733   curl_cv_ldap_LIBS="unknown"
20734   #
20735   for x_nlibs in '' "$u_libs" \
20736     '-lldap' \
20737     '-llber -lldap' \
20738     '-lldap -llber' \
20739     '-lldapssl -lldapx -lldapsdk' \
20740     '-lldapsdk -lldapx -lldapssl' ; do
20741     if test "$curl_cv_ldap_LIBS" = "unknown"; then
20742       if test -z "$x_nlibs"; then
20743         LIBS="$curl_cv_save_LIBS"
20744       else
20745         LIBS="$x_nlibs $curl_cv_save_LIBS"
20746       fi
20747       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20748 /* end confdefs.h.  */
20749
20750
20751 #undef inline
20752 #ifdef HAVE_WINDOWS_H
20753 #ifndef WIN32_LEAN_AND_MEAN
20754 #define WIN32_LEAN_AND_MEAN
20755 #endif
20756 #include <windows.h>
20757 #else
20758 #ifdef HAVE_SYS_TYPES_H
20759 #include <sys/types.h>
20760 #endif
20761 #endif
20762 #ifndef NULL
20763 #define NULL (void *)0
20764 #endif
20765 #ifndef LDAP_DEPRECATED
20766 #define LDAP_DEPRECATED 1
20767 #endif
20768 #ifdef NEED_LBER_H
20769 #include <lber.h>
20770 #endif
20771 #ifdef HAVE_LDAP_H
20772 #include <ldap.h>
20773 #endif
20774
20775 int main (void)
20776 {
20777
20778           BerValue *bvp = NULL;
20779           BerElement *bep = ber_init(bvp);
20780           LDAP *ldp = ldap_init("dummy", LDAP_PORT);
20781           int res = ldap_unbind(ldp);
20782           ber_free(bep, 1);
20783
20784  ;
20785  return 0;
20786 }
20787
20788 _ACEOF
20789 if ac_fn_c_try_link "$LINENO"; then :
20790
20791         curl_cv_ldap_LIBS="$x_nlibs"
20792
20793 fi
20794 rm -f core conftest.err conftest.$ac_objext \
20795     conftest$ac_exeext conftest.$ac_ext
20796     fi
20797   done
20798   #
20799   LIBS="$curl_cv_save_LIBS"
20800   #
20801   case X-"$curl_cv_ldap_LIBS" in
20802     X-unknown)
20803       { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
20804 $as_echo "cannot find LDAP libraries" >&6; }
20805       ;;
20806     X-)
20807       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20808 $as_echo "no additional lib required" >&6; }
20809       ;;
20810     *)
20811       if test -z "$curl_cv_save_LIBS"; then
20812         LIBS="$curl_cv_ldap_LIBS"
20813       else
20814         LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
20815       fi
20816       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
20817 $as_echo "$curl_cv_ldap_LIBS" >&6; }
20818       ;;
20819   esac
20820   #
20821
20822     case X-"$curl_cv_ldap_LIBS" in
20823       X-unknown)
20824         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
20825 $as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
20826
20827 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
20828
20829         CURL_DISABLE_LDAP=1
20830
20831
20832 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20833
20834         CURL_DISABLE_LDAPS=1
20835
20836         ;;
20837     esac
20838   fi
20839 fi
20840
20841 if test x$CURL_DISABLE_LDAP != x1 ; then
20842
20843   if test "$LBERLIBNAME" ; then
20844             if test "$LBERLIBNAME" != "no" ; then
20845       as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
20846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
20847 $as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
20848 if eval \${$as_ac_Lib+:} false; then :
20849   $as_echo_n "(cached) " >&6
20850 else
20851   ac_check_lib_save_LIBS=$LIBS
20852 LIBS="-l"$LBERLIBNAME"  $LIBS"
20853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20854 /* end confdefs.h.  */
20855
20856
20857 #ifdef __cplusplus
20858 extern "C"
20859 #endif
20860 char ber_free ();
20861 int main (void)
20862 {
20863 return ber_free ();
20864  ;
20865  return 0;
20866 }
20867 _ACEOF
20868 if ac_fn_c_try_link "$LINENO"; then :
20869   eval "$as_ac_Lib=yes"
20870 else
20871   eval "$as_ac_Lib=no"
20872 fi
20873 rm -f core conftest.err conftest.$ac_objext \
20874     conftest$ac_exeext conftest.$ac_ext
20875 LIBS=$ac_check_lib_save_LIBS
20876 fi
20877 eval ac_res=\$$as_ac_Lib
20878                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20879 $as_echo "$ac_res" >&6; }
20880 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20881   cat >>confdefs.h <<_ACEOF
20882 #define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
20883 _ACEOF
20884
20885   LIBS="-l"$LBERLIBNAME" $LIBS"
20886
20887 else
20888
20889         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
20890 $as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
20891
20892 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
20893
20894         CURL_DISABLE_LDAP=1
20895
20896
20897 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20898
20899         CURL_DISABLE_LDAPS=1
20900
20901 fi
20902
20903     fi
20904   fi
20905 fi
20906
20907 if test x$CURL_DISABLE_LDAP != x1 ; then
20908   for ac_func in ldap_url_parse ldap_init_fd
20909 do :
20910   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20911 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20912 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20913   cat >>confdefs.h <<_ACEOF
20914 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20915 _ACEOF
20916
20917 fi
20918 done
20919
20920
20921   if test "$LDAPLIBNAME" = "wldap32"; then
20922     curl_ldap_msg="enabled (winldap)"
20923
20924 $as_echo "#define CURL_LDAP_WIN 1" >>confdefs.h
20925
20926   else
20927     curl_ldap_msg="enabled (OpenLDAP)"
20928     if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
20929
20930 $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
20931
20932       USE_OPENLDAP=1
20933
20934     fi
20935   fi
20936 fi
20937
20938 if test x$CURL_DISABLE_LDAPS != x1 ; then
20939     curl_ldaps_msg="enabled"
20940 fi
20941
20942
20943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
20944 $as_echo_n "checking whether to enable IPv6... " >&6; }
20945 # Check whether --enable-ipv6 was given.
20946 if test "${enable_ipv6+set}" = set; then :
20947   enableval=$enable_ipv6;  case "$enableval" in
20948   no)
20949        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20950 $as_echo "no" >&6; }
20951        ipv6=no
20952        ;;
20953   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20954 $as_echo "yes" >&6; }
20955        ipv6=yes
20956        ;;
20957   esac
20958 else
20959   if test "$cross_compiling" = yes; then :
20960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20961 $as_echo "no" >&6; }
20962   ipv6=no
20963
20964 else
20965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20966 /* end confdefs.h.  */
20967  /* is AF_INET6 available? */
20968 #include <sys/types.h>
20969 #include <sys/socket.h>
20970 #include <stdlib.h> /* for exit() */
20971 main()
20972 {
20973  if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
20974    exit(1);
20975  else
20976    exit(0);
20977 }
20978
20979 _ACEOF
20980 if ac_fn_c_try_run "$LINENO"; then :
20981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20982 $as_echo "yes" >&6; }
20983   ipv6=yes
20984 else
20985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20986 $as_echo "no" >&6; }
20987   ipv6=no
20988 fi
20989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20990   conftest.$ac_objext conftest.beam conftest.$ac_ext
20991 fi
20992
20993 fi
20994
20995
20996 if test "$ipv6" = "yes"; then
20997   curl_ipv6_msg="enabled"
20998 fi
20999
21000 # Check if struct sockaddr_in6 have sin6_scope_id member
21001 if test "$ipv6" = yes; then
21002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
21003 $as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
21004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21005 /* end confdefs.h.  */
21006
21007 #include <sys/types.h>
21008 #include <netinet/in.h>
21009 int main (void)
21010 {
21011 struct sockaddr_in6 s; s.sin6_scope_id = 0;
21012  ;
21013  return 0;
21014 }
21015 _ACEOF
21016 if ac_fn_c_try_compile "$LINENO"; then :
21017   have_sin6_scope_id=yes
21018 fi
21019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21020   if test "$have_sin6_scope_id" = yes; then
21021     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21022 $as_echo "yes" >&6; }
21023
21024 $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
21025
21026   else
21027     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21028 $as_echo "no" >&6; }
21029   fi
21030 fi
21031
21032
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
21034 $as_echo_n "checking if argv can be written to... " >&6; }
21035 if test "$cross_compiling" = yes; then :
21036
21037   curl_cv_writable_argv=cross
21038
21039 else
21040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21041 /* end confdefs.h.  */
21042
21043
21044 int main(int argc, char ** argv) {
21045     argv[0][0] = ' ';
21046     return (argv[0][0] == ' ')?0:1;
21047 }
21048
21049
21050 _ACEOF
21051 if ac_fn_c_try_run "$LINENO"; then :
21052
21053   curl_cv_writable_argv=yes
21054
21055 else
21056
21057   curl_cv_writable_argv=no
21058
21059 fi
21060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21061   conftest.$ac_objext conftest.beam conftest.$ac_ext
21062 fi
21063
21064 case $curl_cv_writable_argv in
21065 yes)
21066
21067 $as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
21068
21069         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21070 $as_echo "yes" >&6; }
21071         ;;
21072 no)
21073         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21074 $as_echo "no" >&6; }
21075         ;;
21076 *)
21077         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21078 $as_echo "no" >&6; }
21079         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
21080 $as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
21081         ;;
21082 esac
21083
21084
21085
21086 GSSAPI_ROOT="/usr"
21087
21088 # Check whether --with-gssapi-includes was given.
21089 if test "${with_gssapi_includes+set}" = set; then :
21090   withval=$with_gssapi_includes;  GSSAPI_INCS="-I$withval"
21091     want_gss="yes"
21092
21093 fi
21094
21095
21096
21097 # Check whether --with-gssapi-libs was given.
21098 if test "${with_gssapi_libs+set}" = set; then :
21099   withval=$with_gssapi_libs;  GSSAPI_LIB_DIR="-L$withval"
21100     want_gss="yes"
21101
21102 fi
21103
21104
21105
21106 # Check whether --with-gssapi was given.
21107 if test "${with_gssapi+set}" = set; then :
21108   withval=$with_gssapi;
21109   GSSAPI_ROOT="$withval"
21110   if test x"$GSSAPI_ROOT" != xno; then
21111     want_gss="yes"
21112     if test x"$GSSAPI_ROOT" = xyes; then
21113             GSSAPI_ROOT="/usr"
21114     fi
21115   fi
21116
21117 fi
21118
21119
21120 save_CPPFLAGS="$CPPFLAGS"
21121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
21122 $as_echo_n "checking if GSS-API support is requested... " >&6; }
21123 if test x"$want_gss" = xyes; then
21124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21125 $as_echo "yes" >&6; }
21126
21127   if test -z "$GSSAPI_INCS"; then
21128      if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21129         GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
21130      elif test -f "$GSSAPI_ROOT/bin/krb5-config"; then
21131         GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi`
21132      elif test "$GSSAPI_ROOT" != "yes"; then
21133         GSSAPI_INCS="-I$GSSAPI_ROOT/include"
21134      fi
21135   fi
21136
21137   CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
21138
21139   ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
21140 if test "x$ac_cv_header_gss_h" = xyes; then :
21141
21142
21143 $as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
21144
21145       gnu_gss=yes
21146
21147 else
21148
21149             for ac_header in gssapi/gssapi.h
21150 do :
21151   ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
21152 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
21153   cat >>confdefs.h <<_ACEOF
21154 #define HAVE_GSSAPI_GSSAPI_H 1
21155 _ACEOF
21156
21157 else
21158   not_mit=1
21159 fi
21160
21161 done
21162
21163       for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
21164 do :
21165   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21166 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
21167 $ac_includes_default
21168 #ifdef HAVE_GSSAPI_GSSAPI_H
21169 #include <gssapi/gssapi.h>
21170 #endif
21171
21172 "
21173 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21174   cat >>confdefs.h <<_ACEOF
21175 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21176 _ACEOF
21177
21178 else
21179   not_mit=1
21180 fi
21181
21182 done
21183
21184       if test "x$not_mit" = "x1"; then
21185                 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
21186 if test "x$ac_cv_header_gssapi_h" = xyes; then :
21187
21188
21189 $as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
21190
21191
21192 else
21193
21194                             want_gss=no
21195               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
21196 $as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
21197
21198
21199 fi
21200
21201
21202       else
21203
21204 $as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
21205
21206                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
21207 $as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
21208         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21209 /* end confdefs.h.  */
21210
21211
21212 #include <gssapi/gssapi.h>
21213 #include <gssapi/gssapi_generic.h>
21214 #include <gssapi/gssapi_krb5.h>
21215
21216 int main (void)
21217 {
21218
21219             gss_import_name(
21220                             (OM_uint32 *)0,
21221                             (gss_buffer_t)0,
21222                             GSS_C_NT_HOSTBASED_SERVICE,
21223                             (gss_name_t *)0);
21224
21225  ;
21226  return 0;
21227 }
21228
21229 _ACEOF
21230 if ac_fn_c_try_compile "$LINENO"; then :
21231
21232           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21233 $as_echo "yes" >&6; }
21234
21235 else
21236
21237           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21238 $as_echo "no" >&6; }
21239
21240 $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
21241
21242
21243 fi
21244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21245       fi
21246
21247
21248 fi
21249
21250
21251 else
21252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21253 $as_echo "no" >&6; }
21254 fi
21255 if test x"$want_gss" = xyes; then
21256
21257 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
21258
21259   HAVE_GSSAPI=1
21260   curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
21261
21262   if test -n "$gnu_gss"; then
21263     curl_gss_msg="enabled (GNU GSS)"
21264     LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
21265     LIBS="-lgss $LIBS"
21266   elif test -z "$GSSAPI_LIB_DIR"; then
21267      case $host in
21268      *-*-darwin*)
21269         LIBS="-lgssapi_krb5 -lresolv $LIBS"
21270         ;;
21271      *)
21272         if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21273                                  gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
21274            LIBS="$gss_libs $LIBS"
21275         elif test -f "$GSSAPI_ROOT/bin/krb5-config"; then
21276                                  gss_libs=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
21277            LIBS="$gss_libs $LIBS"
21278         else
21279            case $host in
21280            *-hp-hpux*)
21281               gss_libname="gss"
21282               ;;
21283            *)
21284               gss_libname="gssapi"
21285               ;;
21286            esac
21287
21288            if test "$GSSAPI_ROOT" != "yes"; then
21289               LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
21290               LIBS="-l$gss_libname $LIBS"
21291            else
21292               LIBS="-l$gss_libname $LIBS"
21293            fi
21294         fi
21295         ;;
21296      esac
21297   else
21298      LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
21299      case $host in
21300      *-hp-hpux*)
21301         LIBS="-lgss $LIBS"
21302         ;;
21303      *)
21304         LIBS="-lgssapi $LIBS"
21305         ;;
21306      esac
21307   fi
21308 else
21309   CPPFLAGS="$save_CPPFLAGS"
21310 fi
21311
21312
21313 OPT_WINSSL=no
21314
21315 # Check whether --with-winssl was given.
21316 if test "${with_winssl+set}" = set; then :
21317   withval=$with_winssl; OPT_WINSSL=$withval
21318 fi
21319
21320
21321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
21322 $as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
21323 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
21324   if test "x$OPT_WINSSL" != "xno"  &&
21325      test "x$ac_cv_native_windows" = "xyes"; then
21326     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21327 $as_echo "yes" >&6; }
21328
21329 $as_echo "#define USE_SCHANNEL 1" >>confdefs.h
21330
21331     USE_SCHANNEL=1
21332
21333     curl_ssl_msg="enabled (Windows-native)"
21334     WINSSL_ENABLED=1
21335     # --with-winssl implies --enable-sspi
21336
21337 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
21338
21339     USE_WINDOWS_SSPI=1
21340
21341     curl_sspi_msg="enabled"
21342   else
21343     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21344 $as_echo "no" >&6; }
21345   fi
21346 else
21347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21348 $as_echo "no" >&6; }
21349 fi
21350
21351 OPT_DARWINSSL=no
21352
21353 # Check whether --with-darwinssl was given.
21354 if test "${with_darwinssl+set}" = set; then :
21355   withval=$with_darwinssl; OPT_DARWINSSL=$withval
21356 fi
21357
21358
21359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable iOS/Mac OS X native SSL/TLS" >&5
21360 $as_echo_n "checking whether to enable iOS/Mac OS X native SSL/TLS... " >&6; }
21361 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
21362   if test "x$OPT_DARWINSSL" != "xno" &&
21363      test -d "/System/Library/Frameworks/Security.framework"; then
21364     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21365 $as_echo "yes" >&6; }
21366
21367 $as_echo "#define USE_DARWINSSL 1" >>confdefs.h
21368
21369     USE_DARWINSSL=1
21370
21371     curl_ssl_msg="enabled (iOS/Mac OS X-native)"
21372     DARWINSSL_ENABLED=1
21373     LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
21374   else
21375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21376 $as_echo "no" >&6; }
21377   fi
21378 else
21379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21380 $as_echo "no" >&6; }
21381 fi
21382
21383
21384 OPT_SSL=off
21385 ca="no"
21386
21387 # Check whether --with-ssl was given.
21388 if test "${with_ssl+set}" = set; then :
21389   withval=$with_ssl; OPT_SSL=$withval
21390 fi
21391
21392
21393 if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then
21394     CLEANLDFLAGS="$LDFLAGS"
21395   CLEANCPPFLAGS="$CPPFLAGS"
21396   CLEANLIBS="$LIBS"
21397
21398   case "$OPT_SSL" in
21399   yes)
21400         if test x$cross_compiling != xyes; then
21401             PKGTEST="yes"
21402     fi
21403     PREFIX_OPENSSL=/usr/local/ssl
21404     LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
21405     ;;
21406   off)
21407         if test x$cross_compiling != xyes; then
21408             PKGTEST="yes"
21409     fi
21410     PREFIX_OPENSSL=
21411     ;;
21412   *)
21413         PKGTEST="no"
21414     PREFIX_OPENSSL=$OPT_SSL
21415
21416                 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
21417     { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
21418 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
21419     if test -f "$OPENSSL_PCDIR/openssl.pc"; then
21420       PKGTEST="yes"
21421     fi
21422
21423             LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
21424     if test "$PREFIX_OPENSSL" != "/usr" ; then
21425       SSL_LDFLAGS="-L$LIB_OPENSSL"
21426       SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
21427     fi
21428     SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
21429     ;;
21430   esac
21431
21432   if test "$PKGTEST" = "yes"; then
21433
21434
21435
21436     PKGCONFIG="no"
21437
21438     if test -n "$ac_tool_prefix"; then
21439   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21440 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21442 $as_echo_n "checking for $ac_word... " >&6; }
21443 if ${ac_cv_path_PKGCONFIG+:} false; then :
21444   $as_echo_n "(cached) " >&6
21445 else
21446   case $PKGCONFIG in
21447   [\\/]* | ?:[\\/]*)
21448   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21449   ;;
21450   *)
21451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21452 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21453 for as_dir in $as_dummy
21454 do
21455   IFS=$as_save_IFS
21456   test -z "$as_dir" && as_dir=.
21457     for ac_exec_ext in '' $ac_executable_extensions; do
21458   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21459     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21461     break 2
21462   fi
21463 done
21464   done
21465 IFS=$as_save_IFS
21466
21467   ;;
21468 esac
21469 fi
21470 PKGCONFIG=$ac_cv_path_PKGCONFIG
21471 if test -n "$PKGCONFIG"; then
21472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21473 $as_echo "$PKGCONFIG" >&6; }
21474 else
21475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21476 $as_echo "no" >&6; }
21477 fi
21478
21479
21480 fi
21481 if test -z "$ac_cv_path_PKGCONFIG"; then
21482   ac_pt_PKGCONFIG=$PKGCONFIG
21483   # Extract the first word of "pkg-config", so it can be a program name with args.
21484 set dummy pkg-config; ac_word=$2
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21486 $as_echo_n "checking for $ac_word... " >&6; }
21487 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
21488   $as_echo_n "(cached) " >&6
21489 else
21490   case $ac_pt_PKGCONFIG in
21491   [\\/]* | ?:[\\/]*)
21492   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
21493   ;;
21494   *)
21495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21496 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21497 for as_dir in $as_dummy
21498 do
21499   IFS=$as_save_IFS
21500   test -z "$as_dir" && as_dir=.
21501     for ac_exec_ext in '' $ac_executable_extensions; do
21502   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21503     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21505     break 2
21506   fi
21507 done
21508   done
21509 IFS=$as_save_IFS
21510
21511   ;;
21512 esac
21513 fi
21514 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21515 if test -n "$ac_pt_PKGCONFIG"; then
21516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21517 $as_echo "$ac_pt_PKGCONFIG" >&6; }
21518 else
21519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21520 $as_echo "no" >&6; }
21521 fi
21522
21523   if test "x$ac_pt_PKGCONFIG" = x; then
21524     PKGCONFIG="no"
21525   else
21526     case $cross_compiling:$ac_tool_warned in
21527 yes:)
21528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21530 ac_tool_warned=yes ;;
21531 esac
21532     PKGCONFIG=$ac_pt_PKGCONFIG
21533   fi
21534 else
21535   PKGCONFIG="$ac_cv_path_PKGCONFIG"
21536 fi
21537
21538
21539     if test x$PKGCONFIG != xno; then
21540       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
21541 $as_echo_n "checking for openssl options with pkg-config... " >&6; }
21542             itexists=`
21543     if test -n "$OPENSSL_PCDIR"; then
21544       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
21545       export PKG_CONFIG_LIBDIR
21546     fi
21547          $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
21548
21549       if test -z "$itexists"; then
21550                         PKGCONFIG="no"
21551         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21552 $as_echo "no" >&6; }
21553       else
21554         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
21555 $as_echo "found" >&6; }
21556       fi
21557     fi
21558
21559
21560     if test "$PKGCONFIG" != "no" ; then
21561       SSL_LIBS=`
21562     if test -n "$OPENSSL_PCDIR"; then
21563       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
21564       export PKG_CONFIG_LIBDIR
21565     fi
21566          $PKGCONFIG --libs-only-l openssl 2>/dev/null`
21567
21568       SSL_LDFLAGS=`
21569     if test -n "$OPENSSL_PCDIR"; then
21570       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
21571       export PKG_CONFIG_LIBDIR
21572     fi
21573          $PKGCONFIG --libs-only-L openssl 2>/dev/null`
21574
21575       SSL_CPPFLAGS=`
21576     if test -n "$OPENSSL_PCDIR"; then
21577       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
21578       export PKG_CONFIG_LIBDIR
21579     fi
21580          $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
21581
21582       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
21583 $as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
21584       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
21585 $as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
21586       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
21587 $as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
21588
21589       LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
21590
21591                                           LIBS="$SSL_LIBS $LIBS"
21592     fi
21593   fi
21594
21595     CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
21596   LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
21597
21598     case $host in
21599     *-*-msys* | *-*-mingw*)
21600       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
21601 $as_echo_n "checking for gdi32... " >&6; }
21602       my_ac_save_LIBS=$LIBS
21603       LIBS="-lgdi32 $LIBS"
21604       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21605 /* end confdefs.h.  */
21606 #include <windef.h>
21607                    #include <wingdi.h>
21608 int main (void)
21609 {
21610 GdiFlush();
21611  ;
21612  return 0;
21613 }
21614 _ACEOF
21615 if ac_fn_c_try_link "$LINENO"; then :
21616                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21617 $as_echo "yes" >&6; }
21618 else
21619                       LIBS=$my_ac_save_LIBS
21620                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21621 $as_echo "no" >&6; }
21622
21623 fi
21624 rm -f core conftest.err conftest.$ac_objext \
21625     conftest$ac_exeext conftest.$ac_ext
21626       ;;
21627   esac
21628
21629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_lock in -lcrypto" >&5
21630 $as_echo_n "checking for CRYPTO_lock in -lcrypto... " >&6; }
21631 if ${ac_cv_lib_crypto_CRYPTO_lock+:} false; then :
21632   $as_echo_n "(cached) " >&6
21633 else
21634   ac_check_lib_save_LIBS=$LIBS
21635 LIBS="-lcrypto  $LIBS"
21636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21637 /* end confdefs.h.  */
21638
21639
21640 #ifdef __cplusplus
21641 extern "C"
21642 #endif
21643 char CRYPTO_lock ();
21644 int main (void)
21645 {
21646 return CRYPTO_lock ();
21647  ;
21648  return 0;
21649 }
21650 _ACEOF
21651 if ac_fn_c_try_link "$LINENO"; then :
21652   ac_cv_lib_crypto_CRYPTO_lock=yes
21653 else
21654   ac_cv_lib_crypto_CRYPTO_lock=no
21655 fi
21656 rm -f core conftest.err conftest.$ac_objext \
21657     conftest$ac_exeext conftest.$ac_ext
21658 LIBS=$ac_check_lib_save_LIBS
21659 fi
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5
21661 $as_echo "$ac_cv_lib_crypto_CRYPTO_lock" >&6; }
21662 if test "x$ac_cv_lib_crypto_CRYPTO_lock" = xyes; then :
21663
21664      HAVECRYPTO="yes"
21665      LIBS="-lcrypto $LIBS"
21666
21667 else
21668
21669      LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
21670      CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
21671      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_add_lock in -lcrypto" >&5
21672 $as_echo_n "checking for CRYPTO_add_lock in -lcrypto... " >&6; }
21673 if ${ac_cv_lib_crypto_CRYPTO_add_lock+:} false; then :
21674   $as_echo_n "(cached) " >&6
21675 else
21676   ac_check_lib_save_LIBS=$LIBS
21677 LIBS="-lcrypto  $LIBS"
21678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21679 /* end confdefs.h.  */
21680
21681
21682 #ifdef __cplusplus
21683 extern "C"
21684 #endif
21685 char CRYPTO_add_lock ();
21686 int main (void)
21687 {
21688 return CRYPTO_add_lock ();
21689  ;
21690  return 0;
21691 }
21692 _ACEOF
21693 if ac_fn_c_try_link "$LINENO"; then :
21694   ac_cv_lib_crypto_CRYPTO_add_lock=yes
21695 else
21696   ac_cv_lib_crypto_CRYPTO_add_lock=no
21697 fi
21698 rm -f core conftest.err conftest.$ac_objext \
21699     conftest$ac_exeext conftest.$ac_ext
21700 LIBS=$ac_check_lib_save_LIBS
21701 fi
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_add_lock" >&5
21703 $as_echo "$ac_cv_lib_crypto_CRYPTO_add_lock" >&6; }
21704 if test "x$ac_cv_lib_crypto_CRYPTO_add_lock" = xyes; then :
21705
21706        HAVECRYPTO="yes"
21707        LIBS="-lcrypto $LIBS"
21708 else
21709
21710        LDFLAGS="$CLEANLDFLAGS"
21711        CPPFLAGS="$CLEANCPPFLAGS"
21712        LIBS="$CLEANLIBS"
21713
21714 fi
21715
21716
21717 fi
21718
21719
21720
21721   if test X"$HAVECRYPTO" = X"yes"; then
21722
21723     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
21724 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
21725 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
21726   $as_echo_n "(cached) " >&6
21727 else
21728   ac_check_lib_save_LIBS=$LIBS
21729 LIBS="-lssl  $LIBS"
21730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21731 /* end confdefs.h.  */
21732
21733
21734 #ifdef __cplusplus
21735 extern "C"
21736 #endif
21737 char SSL_connect ();
21738 int main (void)
21739 {
21740 return SSL_connect ();
21741  ;
21742  return 0;
21743 }
21744 _ACEOF
21745 if ac_fn_c_try_link "$LINENO"; then :
21746   ac_cv_lib_ssl_SSL_connect=yes
21747 else
21748   ac_cv_lib_ssl_SSL_connect=no
21749 fi
21750 rm -f core conftest.err conftest.$ac_objext \
21751     conftest$ac_exeext conftest.$ac_ext
21752 LIBS=$ac_check_lib_save_LIBS
21753 fi
21754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
21755 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
21756 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
21757   cat >>confdefs.h <<_ACEOF
21758 #define HAVE_LIBSSL 1
21759 _ACEOF
21760
21761   LIBS="-lssl $LIBS"
21762
21763 fi
21764
21765
21766     if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
21767                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
21768 $as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
21769         OLIBS=$LIBS
21770         LIBS="-lRSAglue -lrsaref $LIBS"
21771         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
21772 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
21773 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
21774   $as_echo_n "(cached) " >&6
21775 else
21776   ac_check_lib_save_LIBS=$LIBS
21777 LIBS="-lssl  $LIBS"
21778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21779 /* end confdefs.h.  */
21780
21781
21782 #ifdef __cplusplus
21783 extern "C"
21784 #endif
21785 char SSL_connect ();
21786 int main (void)
21787 {
21788 return SSL_connect ();
21789  ;
21790  return 0;
21791 }
21792 _ACEOF
21793 if ac_fn_c_try_link "$LINENO"; then :
21794   ac_cv_lib_ssl_SSL_connect=yes
21795 else
21796   ac_cv_lib_ssl_SSL_connect=no
21797 fi
21798 rm -f core conftest.err conftest.$ac_objext \
21799     conftest$ac_exeext conftest.$ac_ext
21800 LIBS=$ac_check_lib_save_LIBS
21801 fi
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
21803 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
21804 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
21805   cat >>confdefs.h <<_ACEOF
21806 #define HAVE_LIBSSL 1
21807 _ACEOF
21808
21809   LIBS="-lssl $LIBS"
21810
21811 fi
21812
21813         if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
21814                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21815 $as_echo "no" >&6; }
21816             LIBS=$OLIBS
21817         else
21818             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21819 $as_echo "yes" >&6; }
21820         fi
21821
21822     else
21823
21824             for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
21825                        openssl/pem.h openssl/ssl.h openssl/err.h
21826 do :
21827   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21828 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21829 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21830   cat >>confdefs.h <<_ACEOF
21831 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21832 _ACEOF
21833  curl_ssl_msg="enabled (OpenSSL)"
21834         OPENSSL_ENABLED=1
21835
21836 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
21837
21838 fi
21839
21840 done
21841
21842
21843       if test $ac_cv_header_openssl_x509_h = no; then
21844                                 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
21845 do :
21846   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21847 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21848 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21849   cat >>confdefs.h <<_ACEOF
21850 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21851 _ACEOF
21852
21853 fi
21854
21855 done
21856
21857
21858         if test $ac_cv_header_x509_h = yes &&
21859            test $ac_cv_header_crypto_h = yes &&
21860            test $ac_cv_header_ssl_h = yes; then
21861                     curl_ssl_msg="enabled (OpenSSL)"
21862           OPENSSL_ENABLED=1
21863         fi
21864       fi
21865     fi
21866
21867     if test X"$OPENSSL_ENABLED" = X"1"; then
21868
21869 $as_echo "#define USE_SSLEAY 1" >>confdefs.h
21870
21871
21872               for ac_header in openssl/pkcs12.h
21873 do :
21874   ac_fn_c_check_header_mongrel "$LINENO" "openssl/pkcs12.h" "ac_cv_header_openssl_pkcs12_h" "$ac_includes_default"
21875 if test "x$ac_cv_header_openssl_pkcs12_h" = xyes; then :
21876   cat >>confdefs.h <<_ACEOF
21877 #define HAVE_OPENSSL_PKCS12_H 1
21878 _ACEOF
21879
21880 fi
21881
21882 done
21883
21884     else
21885        LIBS="$CLEANLIBS"
21886     fi
21887             USE_SSLEAY="$OPENSSL_ENABLED"
21888
21889
21890     if test X"$OPT_SSL" != Xoff &&
21891        test "$OPENSSL_ENABLED" != "1"; then
21892       as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
21893     fi
21894   fi
21895
21896   if test X"$OPENSSL_ENABLED" = X"1"; then
21897             ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init"
21898 if test "x$ac_cv_func_ENGINE_init" = xyes; then :
21899
21900                 for ac_header in openssl/engine.h
21901 do :
21902   ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
21903 if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
21904   cat >>confdefs.h <<_ACEOF
21905 #define HAVE_OPENSSL_ENGINE_H 1
21906 _ACEOF
21907
21908 fi
21909
21910 done
21911
21912                 for ac_func in ENGINE_load_builtin_engines
21913 do :
21914   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21915 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21916 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21917   cat >>confdefs.h <<_ACEOF
21918 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21919 _ACEOF
21920
21921 fi
21922 done
21923
21924
21925 fi
21926
21927
21928
21929     for ac_func in RAND_status \
21930                     RAND_screen \
21931                     RAND_egd \
21932                     ENGINE_cleanup \
21933                     CRYPTO_cleanup_all_ex_data \
21934                     SSL_get_shutdown \
21935                     SSLv2_client_method
21936 do :
21937   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21938 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21939 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21940   cat >>confdefs.h <<_ACEOF
21941 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21942 _ACEOF
21943
21944 fi
21945 done
21946
21947
21948
21949     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yaSSL using OpenSSL compatibility mode" >&5
21950 $as_echo_n "checking for yaSSL using OpenSSL compatibility mode... " >&6; }
21951     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21952 /* end confdefs.h.  */
21953
21954
21955 #include <openssl/ssl.h>
21956
21957 int main (void)
21958 {
21959
21960 #if defined(YASSL_VERSION) && defined(OPENSSL_VERSION_NUMBER)
21961         int dummy = SSL_ERROR_NONE;
21962 #else
21963         Not the yaSSL OpenSSL compatibility header.
21964 #endif
21965
21966  ;
21967  return 0;
21968 }
21969
21970 _ACEOF
21971 if ac_fn_c_try_compile "$LINENO"; then :
21972
21973       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21974 $as_echo "yes" >&6; }
21975
21976 cat >>confdefs.h <<_ACEOF
21977 #define USE_YASSLEMUL 1
21978 _ACEOF
21979
21980       curl_ssl_msg="enabled (OpenSSL emulation by yaSSL)"
21981
21982 else
21983
21984       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21985 $as_echo "no" >&6; }
21986
21987 fi
21988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21989   fi
21990
21991   if test "$OPENSSL_ENABLED" = "1"; then
21992     if test -n "$LIB_OPENSSL"; then
21993                             if test "x$cross_compiling" != "xyes"; then
21994          LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
21995          export LD_LIBRARY_PATH
21996          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5
21997 $as_echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;}
21998        fi
21999     fi
22000
22001   #
22002
22003   #
22004   tst_api="unknown"
22005   #
22006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
22007 $as_echo_n "checking for OpenSSL headers version... " >&6; }
22008
22009       if test -z "$SED"; then
22010     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
22011   fi
22012   if test -z "$GREP"; then
22013     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
22014   fi
22015
22016   tmp_exp=""
22017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22018 /* end confdefs.h.  */
22019
22020
22021 #   ifdef USE_OPENSSL
22022 #     include <openssl/crypto.h>
22023 #   else
22024 #     include <crypto.h>
22025 #   endif
22026
22027 #ifdef OPENSSL_VERSION_NUMBER
22028 CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
22029 #endif
22030
22031
22032 _ACEOF
22033 if ac_fn_c_try_cpp "$LINENO"; then :
22034
22035     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
22036       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
22037       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
22038       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
22039     if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
22040       tmp_exp=""
22041     fi
22042
22043 fi
22044 rm -f conftest.err conftest.i conftest.$ac_ext
22045   if test -z "$tmp_exp"; then
22046     curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
22047
22048   else
22049     curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
22050     curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
22051
22052   fi
22053
22054   if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
22055     tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
22056     case "x$tst_verlen" in
22057       x6)
22058         tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22059         tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
22060         tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22061         tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22062         ;;
22063       x11|x10)
22064         tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22065         tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22066         tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
22067         tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22068         ;;
22069       *)
22070         tst_api="unknown"
22071         ;;
22072     esac
22073     case $tst_api in
22074       0x110) tst_show="1.1.0" ;;
22075       0x101) tst_show="1.0.1" ;;
22076       0x100) tst_show="1.0.0" ;;
22077       0x099) tst_show="0.9.9" ;;
22078       0x098) tst_show="0.9.8" ;;
22079       0x097) tst_show="0.9.7" ;;
22080       0x096) tst_show="0.9.6" ;;
22081       0x095) tst_show="0.9.5" ;;
22082       0x094) tst_show="0.9.4" ;;
22083       0x093) tst_show="0.9.3" ;;
22084       0x092) tst_show="0.9.2" ;;
22085       0x091) tst_show="0.9.1" ;;
22086       *)     tst_show="unknown" ;;
22087     esac
22088     tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
22089   else
22090     tst_show="unknown"
22091   fi
22092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
22093 $as_echo "$tst_show" >&6; }
22094   #
22095   curl_openssl_api_headers=$tst_api
22096
22097
22098   #
22099   tst_api="unknown"
22100   #
22101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
22102 $as_echo_n "checking for OpenSSL library version... " >&6; }
22103   if test "$tst_api" = "unknown"; then
22104     case $host in
22105       *-*-vms*)
22106         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22107 /* end confdefs.h.  */
22108
22109
22110 #define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
22111 #ifdef __STDC__
22112 # include <limits.h>
22113 #else
22114 # include <assert.h>
22115 #endif
22116 #undef SSL_CTX_set_not_resumbl_sess_cb
22117 #ifdef __cplusplus
22118 extern "C"
22119 #endif
22120 char SSL_CTX_set_not_resumbl_sess_cb ();
22121 #if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
22122 choke me
22123 #endif
22124
22125 int main (void)
22126 {
22127 return SSL_CTX_set_not_resumbl_sess_cb ();
22128  ;
22129  return 0;
22130 }
22131
22132 _ACEOF
22133 if ac_fn_c_try_link "$LINENO"; then :
22134
22135           tst_api="0x110"
22136
22137 fi
22138 rm -f core conftest.err conftest.$ac_objext \
22139     conftest$ac_exeext conftest.$ac_ext
22140         ;;
22141       *)
22142         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22143 /* end confdefs.h.  */
22144
22145
22146 #define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
22147 #ifdef __STDC__
22148 # include <limits.h>
22149 #else
22150 # include <assert.h>
22151 #endif
22152 #undef SSL_CTX_set_not_resumable_session_callback
22153 #ifdef __cplusplus
22154 extern "C"
22155 #endif
22156 char SSL_CTX_set_not_resumable_session_callback ();
22157 #if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
22158 choke me
22159 #endif
22160
22161 int main (void)
22162 {
22163 return SSL_CTX_set_not_resumable_session_callback ();
22164  ;
22165  return 0;
22166 }
22167
22168 _ACEOF
22169 if ac_fn_c_try_link "$LINENO"; then :
22170
22171           tst_api="0x110"
22172
22173 fi
22174 rm -f core conftest.err conftest.$ac_objext \
22175     conftest$ac_exeext conftest.$ac_ext
22176         ;;
22177     esac
22178   fi
22179   if test "$tst_api" = "unknown"; then
22180     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22181 /* end confdefs.h.  */
22182
22183
22184 #define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
22185 #ifdef __STDC__
22186 # include <limits.h>
22187 #else
22188 # include <assert.h>
22189 #endif
22190 #undef SSL_renegotiate_abbreviated
22191 #ifdef __cplusplus
22192 extern "C"
22193 #endif
22194 char SSL_renegotiate_abbreviated ();
22195 #if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
22196 choke me
22197 #endif
22198
22199 int main (void)
22200 {
22201 return SSL_renegotiate_abbreviated ();
22202  ;
22203  return 0;
22204 }
22205
22206 _ACEOF
22207 if ac_fn_c_try_link "$LINENO"; then :
22208
22209       tst_api="0x101"
22210
22211 fi
22212 rm -f core conftest.err conftest.$ac_objext \
22213     conftest$ac_exeext conftest.$ac_ext
22214   fi
22215   if test "$tst_api" = "unknown"; then
22216     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22217 /* end confdefs.h.  */
22218
22219
22220 #define OBJ_add_sigid innocuous_OBJ_add_sigid
22221 #ifdef __STDC__
22222 # include <limits.h>
22223 #else
22224 # include <assert.h>
22225 #endif
22226 #undef OBJ_add_sigid
22227 #ifdef __cplusplus
22228 extern "C"
22229 #endif
22230 char OBJ_add_sigid ();
22231 #if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
22232 choke me
22233 #endif
22234
22235 int main (void)
22236 {
22237 return OBJ_add_sigid ();
22238  ;
22239  return 0;
22240 }
22241
22242 _ACEOF
22243 if ac_fn_c_try_link "$LINENO"; then :
22244
22245       tst_api="0x100"
22246
22247 fi
22248 rm -f core conftest.err conftest.$ac_objext \
22249     conftest$ac_exeext conftest.$ac_ext
22250   fi
22251   if test "$tst_api" = "unknown"; then
22252     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22253 /* end confdefs.h.  */
22254
22255
22256 #define ERR_set_mark innocuous_ERR_set_mark
22257 #ifdef __STDC__
22258 # include <limits.h>
22259 #else
22260 # include <assert.h>
22261 #endif
22262 #undef ERR_set_mark
22263 #ifdef __cplusplus
22264 extern "C"
22265 #endif
22266 char ERR_set_mark ();
22267 #if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
22268 choke me
22269 #endif
22270
22271 int main (void)
22272 {
22273 return ERR_set_mark ();
22274  ;
22275  return 0;
22276 }
22277
22278 _ACEOF
22279 if ac_fn_c_try_link "$LINENO"; then :
22280
22281       tst_api="0x098"
22282
22283 fi
22284 rm -f core conftest.err conftest.$ac_objext \
22285     conftest$ac_exeext conftest.$ac_ext
22286   fi
22287   if test "$tst_api" = "unknown"; then
22288     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22289 /* end confdefs.h.  */
22290
22291
22292 #define ERR_peek_last_error innocuous_ERR_peek_last_error
22293 #ifdef __STDC__
22294 # include <limits.h>
22295 #else
22296 # include <assert.h>
22297 #endif
22298 #undef ERR_peek_last_error
22299 #ifdef __cplusplus
22300 extern "C"
22301 #endif
22302 char ERR_peek_last_error ();
22303 #if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
22304 choke me
22305 #endif
22306
22307 int main (void)
22308 {
22309 return ERR_peek_last_error ();
22310  ;
22311  return 0;
22312 }
22313
22314 _ACEOF
22315 if ac_fn_c_try_link "$LINENO"; then :
22316
22317       tst_api="0x097"
22318
22319 fi
22320 rm -f core conftest.err conftest.$ac_objext \
22321     conftest$ac_exeext conftest.$ac_ext
22322   fi
22323   if test "$tst_api" = "unknown"; then
22324     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22325 /* end confdefs.h.  */
22326
22327
22328 #define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
22329 #ifdef __STDC__
22330 # include <limits.h>
22331 #else
22332 # include <assert.h>
22333 #endif
22334 #undef c2i_ASN1_OBJECT
22335 #ifdef __cplusplus
22336 extern "C"
22337 #endif
22338 char c2i_ASN1_OBJECT ();
22339 #if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
22340 choke me
22341 #endif
22342
22343 int main (void)
22344 {
22345 return c2i_ASN1_OBJECT ();
22346  ;
22347  return 0;
22348 }
22349
22350 _ACEOF
22351 if ac_fn_c_try_link "$LINENO"; then :
22352
22353       tst_api="0x096"
22354
22355 fi
22356 rm -f core conftest.err conftest.$ac_objext \
22357     conftest$ac_exeext conftest.$ac_ext
22358   fi
22359   if test "$tst_api" = "unknown"; then
22360     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22361 /* end confdefs.h.  */
22362
22363
22364 #define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
22365 #ifdef __STDC__
22366 # include <limits.h>
22367 #else
22368 # include <assert.h>
22369 #endif
22370 #undef SSL_CTX_set_purpose
22371 #ifdef __cplusplus
22372 extern "C"
22373 #endif
22374 char SSL_CTX_set_purpose ();
22375 #if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
22376 choke me
22377 #endif
22378
22379 int main (void)
22380 {
22381 return SSL_CTX_set_purpose ();
22382  ;
22383  return 0;
22384 }
22385
22386 _ACEOF
22387 if ac_fn_c_try_link "$LINENO"; then :
22388
22389       tst_api="0x095"
22390
22391 fi
22392 rm -f core conftest.err conftest.$ac_objext \
22393     conftest$ac_exeext conftest.$ac_ext
22394   fi
22395   if test "$tst_api" = "unknown"; then
22396     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22397 /* end confdefs.h.  */
22398
22399
22400 #define OBJ_obj2txt innocuous_OBJ_obj2txt
22401 #ifdef __STDC__
22402 # include <limits.h>
22403 #else
22404 # include <assert.h>
22405 #endif
22406 #undef OBJ_obj2txt
22407 #ifdef __cplusplus
22408 extern "C"
22409 #endif
22410 char OBJ_obj2txt ();
22411 #if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
22412 choke me
22413 #endif
22414
22415 int main (void)
22416 {
22417 return OBJ_obj2txt ();
22418  ;
22419  return 0;
22420 }
22421
22422 _ACEOF
22423 if ac_fn_c_try_link "$LINENO"; then :
22424
22425       tst_api="0x094"
22426
22427 fi
22428 rm -f core conftest.err conftest.$ac_objext \
22429     conftest$ac_exeext conftest.$ac_ext
22430   fi
22431   if test "$tst_api" = "unknown"; then
22432     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22433 /* end confdefs.h.  */
22434
22435
22436 #define SSL_get_verify_depth innocuous_SSL_get_verify_depth
22437 #ifdef __STDC__
22438 # include <limits.h>
22439 #else
22440 # include <assert.h>
22441 #endif
22442 #undef SSL_get_verify_depth
22443 #ifdef __cplusplus
22444 extern "C"
22445 #endif
22446 char SSL_get_verify_depth ();
22447 #if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
22448 choke me
22449 #endif
22450
22451 int main (void)
22452 {
22453 return SSL_get_verify_depth ();
22454  ;
22455  return 0;
22456 }
22457
22458 _ACEOF
22459 if ac_fn_c_try_link "$LINENO"; then :
22460
22461       tst_api="0x093"
22462
22463 fi
22464 rm -f core conftest.err conftest.$ac_objext \
22465     conftest$ac_exeext conftest.$ac_ext
22466   fi
22467   if test "$tst_api" = "unknown"; then
22468     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22469 /* end confdefs.h.  */
22470
22471
22472 #define SSL_library_init innocuous_SSL_library_init
22473 #ifdef __STDC__
22474 # include <limits.h>
22475 #else
22476 # include <assert.h>
22477 #endif
22478 #undef SSL_library_init
22479 #ifdef __cplusplus
22480 extern "C"
22481 #endif
22482 char SSL_library_init ();
22483 #if defined __stub_SSL_library_init || defined __stub___SSL_library_init
22484 choke me
22485 #endif
22486
22487 int main (void)
22488 {
22489 return SSL_library_init ();
22490  ;
22491  return 0;
22492 }
22493
22494 _ACEOF
22495 if ac_fn_c_try_link "$LINENO"; then :
22496
22497       tst_api="0x092"
22498
22499 fi
22500 rm -f core conftest.err conftest.$ac_objext \
22501     conftest$ac_exeext conftest.$ac_ext
22502   fi
22503   if test "$tst_api" = "unknown"; then
22504     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22505 /* end confdefs.h.  */
22506
22507
22508 #define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
22509 #ifdef __STDC__
22510 # include <limits.h>
22511 #else
22512 # include <assert.h>
22513 #endif
22514 #undef SSL_CTX_set_cipher_list
22515 #ifdef __cplusplus
22516 extern "C"
22517 #endif
22518 char SSL_CTX_set_cipher_list ();
22519 #if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
22520 choke me
22521 #endif
22522
22523 int main (void)
22524 {
22525 return SSL_CTX_set_cipher_list ();
22526  ;
22527  return 0;
22528 }
22529
22530 _ACEOF
22531 if ac_fn_c_try_link "$LINENO"; then :
22532
22533       tst_api="0x091"
22534
22535 fi
22536 rm -f core conftest.err conftest.$ac_objext \
22537     conftest$ac_exeext conftest.$ac_ext
22538   fi
22539   case $tst_api in
22540     0x110) tst_show="1.1.0" ;;
22541     0x101) tst_show="1.0.1" ;;
22542     0x100) tst_show="1.0.0" ;;
22543     0x099) tst_show="0.9.9" ;;
22544     0x098) tst_show="0.9.8" ;;
22545     0x097) tst_show="0.9.7" ;;
22546     0x096) tst_show="0.9.6" ;;
22547     0x095) tst_show="0.9.5" ;;
22548     0x094) tst_show="0.9.4" ;;
22549     0x093) tst_show="0.9.3" ;;
22550     0x092) tst_show="0.9.2" ;;
22551     0x091) tst_show="0.9.1" ;;
22552     *)     tst_show="unknown" ;;
22553   esac
22554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
22555 $as_echo "$tst_show" >&6; }
22556   #
22557   curl_openssl_api_library=$tst_api
22558
22559   #
22560   tst_match="yes"
22561   #
22562   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
22563 $as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
22564   if test "$curl_openssl_api_headers" = "unknown" ||
22565     test "$curl_openssl_api_library" = "unknown"; then
22566     tst_match="fail"
22567     tst_warns="Can not compare OpenSSL headers and library versions."
22568   elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
22569     tst_match="no"
22570     tst_warns="OpenSSL headers and library versions do not match."
22571   fi
22572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
22573 $as_echo "$tst_match" >&6; }
22574   if test "$tst_match" != "yes"; then
22575     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
22576 $as_echo "$as_me: WARNING: $tst_warns" >&2;}
22577   fi
22578
22579   fi
22580
22581 fi
22582
22583
22584 if test X"$OPENSSL_ENABLED" = X"1"; then
22585
22586 # Check whether --with-egd-socket was given.
22587 if test "${with_egd_socket+set}" = set; then :
22588   withval=$with_egd_socket;  EGD_SOCKET="$withval"
22589
22590 fi
22591
22592   if test -n "$EGD_SOCKET" ; then
22593
22594 cat >>confdefs.h <<_ACEOF
22595 #define EGD_SOCKET "$EGD_SOCKET"
22596 _ACEOF
22597
22598   fi
22599
22600
22601 # Check whether --with-random was given.
22602 if test "${with_random+set}" = set; then :
22603   withval=$with_random;  RANDOM_FILE="$withval"
22604 else
22605
22606           if test x$cross_compiling != xyes; then
22607                         as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
22608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
22609 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
22610 if eval \${$as_ac_File+:} false; then :
22611   $as_echo_n "(cached) " >&6
22612 else
22613   test "$cross_compiling" = yes &&
22614   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
22615 if test -r ""/dev/urandom""; then
22616   eval "$as_ac_File=yes"
22617 else
22618   eval "$as_ac_File=no"
22619 fi
22620 fi
22621 eval ac_res=\$$as_ac_File
22622                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22623 $as_echo "$ac_res" >&6; }
22624 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
22625    RANDOM_FILE="/dev/urandom"
22626 fi
22627
22628           else
22629             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
22630 $as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
22631           fi
22632
22633
22634 fi
22635
22636   if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
22637
22638
22639 cat >>confdefs.h <<_ACEOF
22640 #define RANDOM_FILE "$RANDOM_FILE"
22641 _ACEOF
22642
22643   fi
22644 fi
22645
22646 if test "$OPENSSL_ENABLED" = "1"; then
22647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
22648 $as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
22649 if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
22650   $as_echo_n "(cached) " >&6
22651 else
22652   ac_check_lib_save_LIBS=$LIBS
22653 LIBS="-lcrypto  $LIBS"
22654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22655 /* end confdefs.h.  */
22656
22657
22658 #ifdef __cplusplus
22659 extern "C"
22660 #endif
22661 char SRP_Calc_client_key ();
22662 int main (void)
22663 {
22664 return SRP_Calc_client_key ();
22665  ;
22666  return 0;
22667 }
22668 _ACEOF
22669 if ac_fn_c_try_link "$LINENO"; then :
22670   ac_cv_lib_crypto_SRP_Calc_client_key=yes
22671 else
22672   ac_cv_lib_crypto_SRP_Calc_client_key=no
22673 fi
22674 rm -f core conftest.err conftest.$ac_objext \
22675     conftest$ac_exeext conftest.$ac_ext
22676 LIBS=$ac_check_lib_save_LIBS
22677 fi
22678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
22679 $as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
22680 if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
22681
22682
22683 $as_echo "#define HAVE_SSLEAY_SRP 1" >>confdefs.h
22684
22685      HAVE_SSLEAY_SRP=1
22686
22687
22688 fi
22689
22690 fi
22691
22692
22693 OPT_GNUTLS=no
22694
22695
22696 # Check whether --with-gnutls was given.
22697 if test "${with_gnutls+set}" = set; then :
22698   withval=$with_gnutls; OPT_GNUTLS=$withval
22699 fi
22700
22701
22702 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
22703
22704   if test X"$OPT_GNUTLS" != Xno; then
22705
22706     addld=""
22707     addlib=""
22708     gtlslib=""
22709     version=""
22710     addcflags=""
22711
22712     if test "x$OPT_GNUTLS" = "xyes"; then
22713
22714
22715     PKGCONFIG="no"
22716
22717     if test -n "$ac_tool_prefix"; then
22718   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22719 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22721 $as_echo_n "checking for $ac_word... " >&6; }
22722 if ${ac_cv_path_PKGCONFIG+:} false; then :
22723   $as_echo_n "(cached) " >&6
22724 else
22725   case $PKGCONFIG in
22726   [\\/]* | ?:[\\/]*)
22727   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22728   ;;
22729   *)
22730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22731 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22732 for as_dir in $as_dummy
22733 do
22734   IFS=$as_save_IFS
22735   test -z "$as_dir" && as_dir=.
22736     for ac_exec_ext in '' $ac_executable_extensions; do
22737   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22738     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22740     break 2
22741   fi
22742 done
22743   done
22744 IFS=$as_save_IFS
22745
22746   ;;
22747 esac
22748 fi
22749 PKGCONFIG=$ac_cv_path_PKGCONFIG
22750 if test -n "$PKGCONFIG"; then
22751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22752 $as_echo "$PKGCONFIG" >&6; }
22753 else
22754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22755 $as_echo "no" >&6; }
22756 fi
22757
22758
22759 fi
22760 if test -z "$ac_cv_path_PKGCONFIG"; then
22761   ac_pt_PKGCONFIG=$PKGCONFIG
22762   # Extract the first word of "pkg-config", so it can be a program name with args.
22763 set dummy pkg-config; ac_word=$2
22764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22765 $as_echo_n "checking for $ac_word... " >&6; }
22766 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22767   $as_echo_n "(cached) " >&6
22768 else
22769   case $ac_pt_PKGCONFIG in
22770   [\\/]* | ?:[\\/]*)
22771   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22772   ;;
22773   *)
22774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22775 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22776 for as_dir in $as_dummy
22777 do
22778   IFS=$as_save_IFS
22779   test -z "$as_dir" && as_dir=.
22780     for ac_exec_ext in '' $ac_executable_extensions; do
22781   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22782     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22784     break 2
22785   fi
22786 done
22787   done
22788 IFS=$as_save_IFS
22789
22790   ;;
22791 esac
22792 fi
22793 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22794 if test -n "$ac_pt_PKGCONFIG"; then
22795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22796 $as_echo "$ac_pt_PKGCONFIG" >&6; }
22797 else
22798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22799 $as_echo "no" >&6; }
22800 fi
22801
22802   if test "x$ac_pt_PKGCONFIG" = x; then
22803     PKGCONFIG="no"
22804   else
22805     case $cross_compiling:$ac_tool_warned in
22806 yes:)
22807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22809 ac_tool_warned=yes ;;
22810 esac
22811     PKGCONFIG=$ac_pt_PKGCONFIG
22812   fi
22813 else
22814   PKGCONFIG="$ac_cv_path_PKGCONFIG"
22815 fi
22816
22817
22818     if test x$PKGCONFIG != xno; then
22819       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
22820 $as_echo_n "checking for gnutls options with pkg-config... " >&6; }
22821             itexists=`
22822     if test -n ""; then
22823       PKG_CONFIG_LIBDIR=""
22824       export PKG_CONFIG_LIBDIR
22825     fi
22826          $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
22827
22828       if test -z "$itexists"; then
22829                         PKGCONFIG="no"
22830         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22831 $as_echo "no" >&6; }
22832       else
22833         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22834 $as_echo "found" >&6; }
22835       fi
22836     fi
22837
22838
22839       if test "$PKGCONFIG" != "no" ; then
22840         addlib=`$PKGCONFIG --libs-only-l gnutls`
22841         addld=`$PKGCONFIG --libs-only-L gnutls`
22842         addcflags=`$PKGCONFIG --cflags-only-I gnutls`
22843         version=`$PKGCONFIG --modversion gnutls`
22844         gtlslib=`echo $addld | $SED -e 's/-L//'`
22845       else
22846                         check=`libgnutls-config --version 2>/dev/null`
22847         if test -n "$check"; then
22848           addlib=`libgnutls-config --libs`
22849           addcflags=`libgnutls-config --cflags`
22850           version=`libgnutls-config --version`
22851           gtlslib=`libgnutls-config --prefix`/lib$libsuff
22852         fi
22853       fi
22854     else
22855                   cfg=$OPT_GNUTLS/bin/libgnutls-config
22856       check=`$cfg --version 2>/dev/null`
22857       if test -n "$check"; then
22858         addlib=`$cfg --libs`
22859         addcflags=`$cfg --cflags`
22860         version=`$cfg --version`
22861         gtlslib=`$cfg --prefix`/lib$libsuff
22862       else
22863                 addlib=-lgnutls
22864         addld=-L$OPT_GNUTLS/lib$libsuff
22865         addcflags=-I$OPT_GNUTLS/include
22866         version="" # we just don't know
22867         gtlslib=$OPT_GNUTLS/lib$libsuff
22868       fi
22869     fi
22870
22871     if test -z "$version"; then
22872             version="unknown"
22873     fi
22874
22875     if test -n "$addlib"; then
22876
22877       CLEANLIBS="$LIBS"
22878       CLEANCPPFLAGS="$CPPFLAGS"
22879       CLEANLDFLAGS="$LDFLAGS"
22880
22881       LIBS="$addlib $LIBS"
22882       LDFLAGS="$LDFLAGS $addld"
22883       if test "$addcflags" != "-I/usr/include"; then
22884          CPPFLAGS="$CPPFLAGS $addcflags"
22885       fi
22886
22887       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
22888 $as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
22889 if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
22890   $as_echo_n "(cached) " >&6
22891 else
22892   ac_check_lib_save_LIBS=$LIBS
22893 LIBS="-lgnutls  $LIBS"
22894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22895 /* end confdefs.h.  */
22896
22897
22898 #ifdef __cplusplus
22899 extern "C"
22900 #endif
22901 char gnutls_check_version ();
22902 int main (void)
22903 {
22904 return gnutls_check_version ();
22905  ;
22906  return 0;
22907 }
22908 _ACEOF
22909 if ac_fn_c_try_link "$LINENO"; then :
22910   ac_cv_lib_gnutls_gnutls_check_version=yes
22911 else
22912   ac_cv_lib_gnutls_gnutls_check_version=no
22913 fi
22914 rm -f core conftest.err conftest.$ac_objext \
22915     conftest$ac_exeext conftest.$ac_ext
22916 LIBS=$ac_check_lib_save_LIBS
22917 fi
22918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
22919 $as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
22920 if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
22921
22922
22923 $as_echo "#define USE_GNUTLS 1" >>confdefs.h
22924
22925        USE_GNUTLS=1
22926
22927        GNUTLS_ENABLED=1
22928        USE_GNUTLS="yes"
22929        curl_ssl_msg="enabled (GnuTLS)"
22930
22931 else
22932
22933          LIBS="$CLEANLIBS"
22934          CPPFLAGS="$CLEANCPPFLAGS"
22935
22936 fi
22937
22938
22939       if test "x$USE_GNUTLS" = "xyes"; then
22940         { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
22941 $as_echo "$as_me: detected GnuTLS version $version" >&6;}
22942
22943         if test -n "$gtlslib"; then
22944                                                   if test "x$cross_compiling" != "xyes"; then
22945             LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib"
22946             export LD_LIBRARY_PATH
22947             { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to LD_LIBRARY_PATH" >&5
22948 $as_echo "$as_me: Added $gtlslib to LD_LIBRARY_PATH" >&6;}
22949           fi
22950         fi
22951       fi
22952
22953     fi
22954
22955   fi
22956 fi
22957
22958
22959 if test "$GNUTLS_ENABLED" = "1"; then
22960   USE_GNUTLS_NETTLE=
22961   # First check if we can detect either crypto library via transitive linking
22962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
22963 $as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
22964 if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
22965   $as_echo_n "(cached) " >&6
22966 else
22967   ac_check_lib_save_LIBS=$LIBS
22968 LIBS="-lgnutls  $LIBS"
22969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22970 /* end confdefs.h.  */
22971
22972
22973 #ifdef __cplusplus
22974 extern "C"
22975 #endif
22976 char nettle_MD5Init ();
22977 int main (void)
22978 {
22979 return nettle_MD5Init ();
22980  ;
22981  return 0;
22982 }
22983 _ACEOF
22984 if ac_fn_c_try_link "$LINENO"; then :
22985   ac_cv_lib_gnutls_nettle_MD5Init=yes
22986 else
22987   ac_cv_lib_gnutls_nettle_MD5Init=no
22988 fi
22989 rm -f core conftest.err conftest.$ac_objext \
22990     conftest$ac_exeext conftest.$ac_ext
22991 LIBS=$ac_check_lib_save_LIBS
22992 fi
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
22994 $as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
22995 if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
22996    USE_GNUTLS_NETTLE=1
22997 fi
22998
22999   if test "$USE_GNUTLS_NETTLE" = ""; then
23000     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
23001 $as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
23002 if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
23003   $as_echo_n "(cached) " >&6
23004 else
23005   ac_check_lib_save_LIBS=$LIBS
23006 LIBS="-lgnutls  $LIBS"
23007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23008 /* end confdefs.h.  */
23009
23010
23011 #ifdef __cplusplus
23012 extern "C"
23013 #endif
23014 char gcry_control ();
23015 int main (void)
23016 {
23017 return gcry_control ();
23018  ;
23019  return 0;
23020 }
23021 _ACEOF
23022 if ac_fn_c_try_link "$LINENO"; then :
23023   ac_cv_lib_gnutls_gcry_control=yes
23024 else
23025   ac_cv_lib_gnutls_gcry_control=no
23026 fi
23027 rm -f core conftest.err conftest.$ac_objext \
23028     conftest$ac_exeext conftest.$ac_ext
23029 LIBS=$ac_check_lib_save_LIBS
23030 fi
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
23032 $as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
23033 if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
23034    USE_GNUTLS_NETTLE=0
23035 fi
23036
23037   fi
23038   # If not, try linking directly to both of them to see if they are available
23039   if test "$USE_GNUTLS_NETTLE" = ""; then
23040     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
23041 $as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
23042 if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
23043   $as_echo_n "(cached) " >&6
23044 else
23045   ac_check_lib_save_LIBS=$LIBS
23046 LIBS="-lnettle  $LIBS"
23047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23048 /* end confdefs.h.  */
23049
23050
23051 #ifdef __cplusplus
23052 extern "C"
23053 #endif
23054 char nettle_MD5Init ();
23055 int main (void)
23056 {
23057 return nettle_MD5Init ();
23058  ;
23059  return 0;
23060 }
23061 _ACEOF
23062 if ac_fn_c_try_link "$LINENO"; then :
23063   ac_cv_lib_nettle_nettle_MD5Init=yes
23064 else
23065   ac_cv_lib_nettle_nettle_MD5Init=no
23066 fi
23067 rm -f core conftest.err conftest.$ac_objext \
23068     conftest$ac_exeext conftest.$ac_ext
23069 LIBS=$ac_check_lib_save_LIBS
23070 fi
23071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
23072 $as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
23073 if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
23074    USE_GNUTLS_NETTLE=1
23075 fi
23076
23077   fi
23078   if test "$USE_GNUTLS_NETTLE" = ""; then
23079     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
23080 $as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
23081 if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
23082   $as_echo_n "(cached) " >&6
23083 else
23084   ac_check_lib_save_LIBS=$LIBS
23085 LIBS="-lgcrypt  $LIBS"
23086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23087 /* end confdefs.h.  */
23088
23089
23090 #ifdef __cplusplus
23091 extern "C"
23092 #endif
23093 char gcry_control ();
23094 int main (void)
23095 {
23096 return gcry_control ();
23097  ;
23098  return 0;
23099 }
23100 _ACEOF
23101 if ac_fn_c_try_link "$LINENO"; then :
23102   ac_cv_lib_gcrypt_gcry_control=yes
23103 else
23104   ac_cv_lib_gcrypt_gcry_control=no
23105 fi
23106 rm -f core conftest.err conftest.$ac_objext \
23107     conftest$ac_exeext conftest.$ac_ext
23108 LIBS=$ac_check_lib_save_LIBS
23109 fi
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
23111 $as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
23112 if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
23113    USE_GNUTLS_NETTLE=0
23114 fi
23115
23116   fi
23117   if test "$USE_GNUTLS_NETTLE" = ""; then
23118     as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
23119   fi
23120   if test "$USE_GNUTLS_NETTLE" = "1"; then
23121
23122 $as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
23123
23124     USE_GNUTLS_NETTLE=1
23125
23126     LIBS="-lnettle $LIBS"
23127   else
23128     LIBS="-lgcrypt $LIBS"
23129   fi
23130 fi
23131
23132 if test "$GNUTLS_ENABLED" = "1"; then
23133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
23134 $as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
23135 if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
23136   $as_echo_n "(cached) " >&6
23137 else
23138   ac_check_lib_save_LIBS=$LIBS
23139 LIBS="-lgnutls  $LIBS"
23140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23141 /* end confdefs.h.  */
23142
23143
23144 #ifdef __cplusplus
23145 extern "C"
23146 #endif
23147 char gnutls_srp_verifier ();
23148 int main (void)
23149 {
23150 return gnutls_srp_verifier ();
23151  ;
23152  return 0;
23153 }
23154 _ACEOF
23155 if ac_fn_c_try_link "$LINENO"; then :
23156   ac_cv_lib_gnutls_gnutls_srp_verifier=yes
23157 else
23158   ac_cv_lib_gnutls_gnutls_srp_verifier=no
23159 fi
23160 rm -f core conftest.err conftest.$ac_objext \
23161     conftest$ac_exeext conftest.$ac_ext
23162 LIBS=$ac_check_lib_save_LIBS
23163 fi
23164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
23165 $as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
23166 if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
23167
23168
23169 $as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
23170
23171      HAVE_GNUTLS_SRP=1
23172
23173
23174 fi
23175
23176 fi
23177
23178
23179 OPT_POLARSSL=no
23180
23181 _cppflags=$CPPFLAGS
23182 _ldflags=$LDFLAGS
23183
23184 # Check whether --with-polarssl was given.
23185 if test "${with_polarssl+set}" = set; then :
23186   withval=$with_polarssl; OPT_POLARSSL=$withval
23187 fi
23188
23189
23190 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23191
23192   if test X"$OPT_POLARSSL" != Xno; then
23193
23194     if test "$OPT_POLARSSL" = "yes"; then
23195       OPT_POLARSSL=""
23196     fi
23197
23198     if test -z "$OPT_POLARSSL" ; then
23199
23200       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
23201 $as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
23202 if ${ac_cv_lib_polarssl_havege_init+:} false; then :
23203   $as_echo_n "(cached) " >&6
23204 else
23205   ac_check_lib_save_LIBS=$LIBS
23206 LIBS="-lpolarssl  $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 havege_init ();
23215 int main (void)
23216 {
23217 return havege_init ();
23218  ;
23219  return 0;
23220 }
23221 _ACEOF
23222 if ac_fn_c_try_link "$LINENO"; then :
23223   ac_cv_lib_polarssl_havege_init=yes
23224 else
23225   ac_cv_lib_polarssl_havege_init=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_polarssl_havege_init" >&5
23232 $as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
23233 if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
23234
23235
23236 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
23237
23238          USE_POLARSSL=1
23239
23240          POLARSSL_ENABLED=1
23241          USE_POLARSSL="yes"
23242          curl_ssl_msg="enabled (PolarSSL)"
23243
23244 fi
23245
23246     fi
23247
23248     addld=""
23249     addlib=""
23250     addcflags=""
23251     polarssllib=""
23252
23253     if test "x$USE_POLARSSL" != "xyes"; then
23254             addld=-L$OPT_POLARSSL/lib$libsuff
23255       addcflags=-I$OPT_POLARSSL/include
23256       polarssllib=$OPT_POLARSSL/lib$libsuff
23257
23258       LDFLAGS="$LDFLAGS $addld"
23259       if test "$addcflags" != "-I/usr/include"; then
23260          CPPFLAGS="$CPPFLAGS $addcflags"
23261       fi
23262
23263       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
23264 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
23265 if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
23266   $as_echo_n "(cached) " >&6
23267 else
23268   ac_check_lib_save_LIBS=$LIBS
23269 LIBS="-lpolarssl  $LIBS"
23270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23271 /* end confdefs.h.  */
23272
23273
23274 #ifdef __cplusplus
23275 extern "C"
23276 #endif
23277 char ssl_init ();
23278 int main (void)
23279 {
23280 return ssl_init ();
23281  ;
23282  return 0;
23283 }
23284 _ACEOF
23285 if ac_fn_c_try_link "$LINENO"; then :
23286   ac_cv_lib_polarssl_ssl_init=yes
23287 else
23288   ac_cv_lib_polarssl_ssl_init=no
23289 fi
23290 rm -f core conftest.err conftest.$ac_objext \
23291     conftest$ac_exeext conftest.$ac_ext
23292 LIBS=$ac_check_lib_save_LIBS
23293 fi
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
23295 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
23296 if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
23297
23298
23299 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
23300
23301        USE_POLARSSL=1
23302
23303        POLARSSL_ENABLED=1
23304        USE_POLARSSL="yes"
23305        curl_ssl_msg="enabled (PolarSSL)"
23306
23307 else
23308
23309          CPPFLAGS=$_cppflags
23310          LDFLAGS=$_ldflags
23311
23312 fi
23313
23314     fi
23315
23316     if test "x$USE_POLARSSL" = "xyes"; then
23317       { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
23318 $as_echo "$as_me: detected PolarSSL" >&6;}
23319
23320       LIBS="-lpolarssl $LIBS"
23321
23322       if test -n "$polarssllib"; then
23323                                         if test "x$cross_compiling" != "xyes"; then
23324           LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$polarssllib"
23325           export LD_LIBRARY_PATH
23326           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to LD_LIBRARY_PATH" >&5
23327 $as_echo "$as_me: Added $polarssllib to LD_LIBRARY_PATH" >&6;}
23328         fi
23329       fi
23330     fi
23331
23332   fi
23333 fi
23334
23335
23336 OPT_CYASSL=no
23337
23338 _cppflags=$CPPFLAGS
23339 _ldflags=$LDFLAGS
23340
23341 # Check whether --with-cyassl was given.
23342 if test "${with_cyassl+set}" = set; then :
23343   withval=$with_cyassl; OPT_CYASSL=$withval
23344 fi
23345
23346
23347 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23348
23349   if test X"$OPT_CYASSL" != Xno; then
23350
23351     if test "$OPT_CYASSL" = "yes"; then
23352       OPT_CYASSL=""
23353     fi
23354
23355     if test -z "$OPT_CYASSL" ; then
23356
23357       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
23358 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
23359 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
23360   $as_echo_n "(cached) " >&6
23361 else
23362   ac_check_lib_save_LIBS=$LIBS
23363 LIBS="-lcyassl  $LIBS"
23364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23365 /* end confdefs.h.  */
23366
23367
23368 #ifdef __cplusplus
23369 extern "C"
23370 #endif
23371 char CyaSSL_Init ();
23372 int main (void)
23373 {
23374 return CyaSSL_Init ();
23375  ;
23376  return 0;
23377 }
23378 _ACEOF
23379 if ac_fn_c_try_link "$LINENO"; then :
23380   ac_cv_lib_cyassl_CyaSSL_Init=yes
23381 else
23382   ac_cv_lib_cyassl_CyaSSL_Init=no
23383 fi
23384 rm -f core conftest.err conftest.$ac_objext \
23385     conftest$ac_exeext conftest.$ac_ext
23386 LIBS=$ac_check_lib_save_LIBS
23387 fi
23388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
23389 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
23390 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
23391
23392
23393 $as_echo "#define USE_CYASSL 1" >>confdefs.h
23394
23395          USE_CYASSL=1
23396
23397          CYASSL_ENABLED=1
23398          USE_CYASSL="yes"
23399          curl_ssl_msg="enabled (CyaSSL)"
23400
23401 fi
23402
23403     fi
23404
23405     addld=""
23406     addlib=""
23407     addcflags=""
23408     cyassllib=""
23409
23410     if test "x$USE_CYASSL" != "xyes"; then
23411             addld=-L$OPT_CYASSL/lib$libsuff
23412       addcflags=-I$OPT_CYASSL/include
23413       cyassllib=$OPT_CYASSL/lib$libsuff
23414
23415       LDFLAGS="$LDFLAGS $addld"
23416       if test "$addcflags" != "-I/usr/include"; then
23417          CPPFLAGS="$CPPFLAGS $addcflags"
23418       fi
23419
23420       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
23421 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
23422 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
23423   $as_echo_n "(cached) " >&6
23424 else
23425   ac_check_lib_save_LIBS=$LIBS
23426 LIBS="-lcyassl  $LIBS"
23427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23428 /* end confdefs.h.  */
23429
23430
23431 #ifdef __cplusplus
23432 extern "C"
23433 #endif
23434 char CyaSSL_Init ();
23435 int main (void)
23436 {
23437 return CyaSSL_Init ();
23438  ;
23439  return 0;
23440 }
23441 _ACEOF
23442 if ac_fn_c_try_link "$LINENO"; then :
23443   ac_cv_lib_cyassl_CyaSSL_Init=yes
23444 else
23445   ac_cv_lib_cyassl_CyaSSL_Init=no
23446 fi
23447 rm -f core conftest.err conftest.$ac_objext \
23448     conftest$ac_exeext conftest.$ac_ext
23449 LIBS=$ac_check_lib_save_LIBS
23450 fi
23451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
23452 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
23453 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
23454
23455
23456 $as_echo "#define USE_CYASSL 1" >>confdefs.h
23457
23458        USE_CYASSL=1
23459
23460        CYASSL_ENABLED=1
23461        USE_CYASSL="yes"
23462        curl_ssl_msg="enabled (CyaSSL)"
23463
23464 else
23465
23466          CPPFLAGS=$_cppflags
23467          LDFLAGS=$_ldflags
23468
23469 fi
23470
23471     fi
23472
23473     if test "x$USE_CYASSL" = "xyes"; then
23474       { $as_echo "$as_me:${as_lineno-$LINENO}: detected CyaSSL" >&5
23475 $as_echo "$as_me: detected CyaSSL" >&6;}
23476
23477             # The cast to long int works around a bug in the HP C Compiler
23478 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23479 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23480 # This bug is HP SR number 8606223364.
23481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
23482 $as_echo_n "checking size of long long... " >&6; }
23483 if ${ac_cv_sizeof_long_long+:} false; then :
23484   $as_echo_n "(cached) " >&6
23485 else
23486   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
23487
23488 else
23489   if test "$ac_cv_type_long_long" = yes; then
23490      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23492 as_fn_error 77 "cannot compute sizeof (long long)
23493 See \`config.log' for more details" "$LINENO" 5; }
23494    else
23495      ac_cv_sizeof_long_long=0
23496    fi
23497 fi
23498
23499 fi
23500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
23501 $as_echo "$ac_cv_sizeof_long_long" >&6; }
23502
23503
23504
23505 cat >>confdefs.h <<_ACEOF
23506 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23507 _ACEOF
23508
23509
23510
23511             for ac_header in cyassl/error-ssl.h
23512 do :
23513   ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
23514 if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
23515   cat >>confdefs.h <<_ACEOF
23516 #define HAVE_CYASSL_ERROR_SSL_H 1
23517 _ACEOF
23518
23519 fi
23520
23521 done
23522
23523
23524       LIBS="-lcyassl -lm $LIBS"
23525
23526       if test -n "$cyassllib"; then
23527                                         if test "x$cross_compiling" != "xyes"; then
23528           LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$cyassllib"
23529           export LD_LIBRARY_PATH
23530           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to LD_LIBRARY_PATH" >&5
23531 $as_echo "$as_me: Added $cyassllib to LD_LIBRARY_PATH" >&6;}
23532         fi
23533       fi
23534
23535     fi
23536
23537   fi
23538 fi
23539
23540
23541 OPT_NSS=no
23542
23543
23544 # Check whether --with-nss was given.
23545 if test "${with_nss+set}" = set; then :
23546   withval=$with_nss; OPT_NSS=$withval
23547 fi
23548
23549
23550 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23551
23552   if test X"$OPT_NSS" != Xno; then
23553
23554     addld=""
23555     addlib=""
23556     addcflags=""
23557     nssprefix=""
23558     version=""
23559
23560     if test "x$OPT_NSS" = "xyes"; then
23561
23562
23563
23564     PKGCONFIG="no"
23565
23566     if test -n "$ac_tool_prefix"; then
23567   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23568 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23570 $as_echo_n "checking for $ac_word... " >&6; }
23571 if ${ac_cv_path_PKGCONFIG+:} false; then :
23572   $as_echo_n "(cached) " >&6
23573 else
23574   case $PKGCONFIG in
23575   [\\/]* | ?:[\\/]*)
23576   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23577   ;;
23578   *)
23579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23580 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23581 for as_dir in $as_dummy
23582 do
23583   IFS=$as_save_IFS
23584   test -z "$as_dir" && as_dir=.
23585     for ac_exec_ext in '' $ac_executable_extensions; do
23586   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23587     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23589     break 2
23590   fi
23591 done
23592   done
23593 IFS=$as_save_IFS
23594
23595   ;;
23596 esac
23597 fi
23598 PKGCONFIG=$ac_cv_path_PKGCONFIG
23599 if test -n "$PKGCONFIG"; then
23600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23601 $as_echo "$PKGCONFIG" >&6; }
23602 else
23603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23604 $as_echo "no" >&6; }
23605 fi
23606
23607
23608 fi
23609 if test -z "$ac_cv_path_PKGCONFIG"; then
23610   ac_pt_PKGCONFIG=$PKGCONFIG
23611   # Extract the first word of "pkg-config", so it can be a program name with args.
23612 set dummy pkg-config; ac_word=$2
23613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23614 $as_echo_n "checking for $ac_word... " >&6; }
23615 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23616   $as_echo_n "(cached) " >&6
23617 else
23618   case $ac_pt_PKGCONFIG in
23619   [\\/]* | ?:[\\/]*)
23620   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23621   ;;
23622   *)
23623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23624 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23625 for as_dir in $as_dummy
23626 do
23627   IFS=$as_save_IFS
23628   test -z "$as_dir" && as_dir=.
23629     for ac_exec_ext in '' $ac_executable_extensions; do
23630   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23631     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23633     break 2
23634   fi
23635 done
23636   done
23637 IFS=$as_save_IFS
23638
23639   ;;
23640 esac
23641 fi
23642 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23643 if test -n "$ac_pt_PKGCONFIG"; then
23644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23645 $as_echo "$ac_pt_PKGCONFIG" >&6; }
23646 else
23647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23648 $as_echo "no" >&6; }
23649 fi
23650
23651   if test "x$ac_pt_PKGCONFIG" = x; then
23652     PKGCONFIG="no"
23653   else
23654     case $cross_compiling:$ac_tool_warned in
23655 yes:)
23656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23658 ac_tool_warned=yes ;;
23659 esac
23660     PKGCONFIG=$ac_pt_PKGCONFIG
23661   fi
23662 else
23663   PKGCONFIG="$ac_cv_path_PKGCONFIG"
23664 fi
23665
23666
23667     if test x$PKGCONFIG != xno; then
23668       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
23669 $as_echo_n "checking for nss options with pkg-config... " >&6; }
23670             itexists=`
23671     if test -n ""; then
23672       PKG_CONFIG_LIBDIR=""
23673       export PKG_CONFIG_LIBDIR
23674     fi
23675          $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
23676
23677       if test -z "$itexists"; then
23678                         PKGCONFIG="no"
23679         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23680 $as_echo "no" >&6; }
23681       else
23682         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23683 $as_echo "found" >&6; }
23684       fi
23685     fi
23686
23687
23688       if test "$PKGCONFIG" != "no" ; then
23689         addlib=`$PKGCONFIG --libs nss`
23690         addcflags=`$PKGCONFIG --cflags nss`
23691         version=`$PKGCONFIG --modversion nss`
23692         nssprefix=`$PKGCONFIG --variable=prefix nss`
23693       else
23694
23695         check=`nss-config --version 2>/dev/null`
23696         if test -n "$check"; then
23697           addlib=`nss-config --libs`
23698           addcflags=`nss-config --cflags`
23699           version=`nss-config --version`
23700           nssprefix=`nss-config --prefix`
23701         else
23702           addlib="-lnss3"
23703           addcflags=""
23704           version="unknown"
23705         fi
23706       fi
23707     else
23708         # Without pkg-config, we'll kludge in some defaults
23709         addlib="-L$OPT_NSS/lib -lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl"
23710         addcflags="-I$OPT_NSS/include"
23711         version="unknown"
23712         nssprefix=$OPT_NSS
23713     fi
23714
23715     if test -n "$addlib"; then
23716
23717       CLEANLIBS="$LIBS"
23718       CLEANCPPFLAGS="$CPPFLAGS"
23719
23720       LIBS="$addlib $LIBS"
23721       if test "$addcflags" != "-I/usr/include"; then
23722          CPPFLAGS="$CPPFLAGS $addcflags"
23723       fi
23724
23725             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
23726 $as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
23727 if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
23728   $as_echo_n "(cached) " >&6
23729 else
23730   ac_check_lib_save_LIBS=$LIBS
23731 LIBS="-lnss3  $LIBS"
23732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23733 /* end confdefs.h.  */
23734
23735
23736 #ifdef __cplusplus
23737 extern "C"
23738 #endif
23739 char SSL_VersionRangeSet ();
23740 int main (void)
23741 {
23742 return SSL_VersionRangeSet ();
23743  ;
23744  return 0;
23745 }
23746 _ACEOF
23747 if ac_fn_c_try_link "$LINENO"; then :
23748   ac_cv_lib_nss3_SSL_VersionRangeSet=yes
23749 else
23750   ac_cv_lib_nss3_SSL_VersionRangeSet=no
23751 fi
23752 rm -f core conftest.err conftest.$ac_objext \
23753     conftest$ac_exeext conftest.$ac_ext
23754 LIBS=$ac_check_lib_save_LIBS
23755 fi
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
23757 $as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
23758 if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
23759
23760
23761 $as_echo "#define USE_NSS 1" >>confdefs.h
23762
23763        USE_NSS=1
23764
23765        USE_NSS="yes"
23766        NSS_ENABLED=1
23767        curl_ssl_msg="enabled (NSS)"
23768
23769 else
23770
23771          LIBS="$CLEANLIBS"
23772          CPPFLAGS="$CLEANCPPFLAGS"
23773
23774 fi
23775
23776
23777       if test "x$USE_NSS" = "xyes"; then
23778         { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
23779 $as_echo "$as_me: detected NSS version $version" >&6;}
23780
23781                 NSS_LIBS=$addlib
23782
23783
23784                                         if test "x$cross_compiling" != "xyes"; then
23785           LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff"
23786           export LD_LIBRARY_PATH
23787           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
23788 $as_echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
23789         fi
23790       fi
23791
23792     fi
23793
23794   fi
23795 fi
23796 OPT_AXTLS=off
23797
23798
23799 # Check whether --with-axtls was given.
23800 if test "${with_axtls+set}" = set; then :
23801   withval=$with_axtls; OPT_AXTLS=$withval
23802 fi
23803
23804
23805 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23806   if test X"$OPT_AXTLS" != Xno; then
23807         CLEANLDFLAGS="$LDFLAGS"
23808     CLEANCPPFLAGS="$CPPFLAGS"
23809     CLEANLIBS="$LIBS"
23810
23811     case "$OPT_AXTLS" in
23812     yes)
23813             PREFIX_AXTLS=/usr/local
23814       LIB_AXTLS="$PREFIX_AXTLS/lib"
23815       LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
23816       CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
23817       ;;
23818     off)
23819             PREFIX_AXTLS=
23820       ;;
23821     *)
23822             PREFIX_AXTLS=$OPT_AXTLS
23823       LIB_AXTLS="$PREFIX_AXTLS/lib"
23824       LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
23825       CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
23826       ;;
23827     esac
23828
23829     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5
23830 $as_echo_n "checking for ssl_version in -laxtls... " >&6; }
23831 if ${ac_cv_lib_axtls_ssl_version+:} false; then :
23832   $as_echo_n "(cached) " >&6
23833 else
23834   ac_check_lib_save_LIBS=$LIBS
23835 LIBS="-laxtls  $LIBS"
23836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23837 /* end confdefs.h.  */
23838
23839
23840 #ifdef __cplusplus
23841 extern "C"
23842 #endif
23843 char ssl_version ();
23844 int main (void)
23845 {
23846 return ssl_version ();
23847  ;
23848  return 0;
23849 }
23850 _ACEOF
23851 if ac_fn_c_try_link "$LINENO"; then :
23852   ac_cv_lib_axtls_ssl_version=yes
23853 else
23854   ac_cv_lib_axtls_ssl_version=no
23855 fi
23856 rm -f core conftest.err conftest.$ac_objext \
23857     conftest$ac_exeext conftest.$ac_ext
23858 LIBS=$ac_check_lib_save_LIBS
23859 fi
23860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5
23861 $as_echo "$ac_cv_lib_axtls_ssl_version" >&6; }
23862 if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then :
23863
23864       LIBS="-laxtls $LIBS"
23865
23866 $as_echo "#define USE_AXTLS 1" >>confdefs.h
23867
23868       USE_AXTLS=1
23869
23870       AXTLS_ENABLED=1
23871       USE_AXTLS="yes"
23872       curl_ssl_msg="enabled (axTLS)"
23873
23874       if test "x$cross_compiling" != "xyes"; then
23875         LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_AXTLS"
23876         export LD_LIBRARY_PATH
23877         { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&5
23878 $as_echo "$as_me: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&6;}
23879       fi
23880
23881 else
23882
23883       LDFLAGS="$CLEANLDFLAGS"
23884       CPPFLAGS="$CLEANCPPFLAGS"
23885       LIBS="$CLEANLIBS"
23886
23887 fi
23888
23889   fi
23890 fi
23891
23892 if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" = "x"; then
23893   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
23894 $as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
23895   { $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
23896 $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;}
23897 else
23898   # SSL is enabled, genericly
23899
23900   SSL_ENABLED="1"
23901 fi
23902
23903
23904
23905
23906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
23907 $as_echo_n "checking default CA cert bundle/path... " >&6; }
23908
23909
23910 # Check whether --with-ca-bundle was given.
23911 if test "${with_ca_bundle+set}" = set; then :
23912   withval=$with_ca_bundle;
23913     want_ca="$withval"
23914     if test "x$want_ca" = "xyes"; then
23915       as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
23916     fi
23917
23918 else
23919    want_ca="unset"
23920 fi
23921
23922
23923 # Check whether --with-ca-path was given.
23924 if test "${with_ca_path+set}" = set; then :
23925   withval=$with_ca_path;
23926     want_capath="$withval"
23927     if test "x$want_capath" = "xyes"; then
23928       as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
23929     fi
23930
23931 else
23932    want_capath="unset"
23933 fi
23934
23935
23936   if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
23937           "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
23938         as_fn_error $? "Can't specify both --with-ca-bundle and --with-ca-path." "$LINENO" 5
23939   elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
23940         ca="$want_ca"
23941     capath="no"
23942   elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
23943         if test "x$OPENSSL_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
23944       as_fn_error $? "--with-ca-path only works with openSSL or PolarSSL" "$LINENO" 5
23945     fi
23946     capath="$want_capath"
23947     ca="no"
23948   else
23949             ca="no"
23950     capath="no"
23951     if test "x$cross_compiling" != "xyes"; then
23952                   if test "x$want_ca" = "xunset"; then
23953                                 if test "x$prefix" != xNONE; then
23954           cac="${prefix}/share/curl/curl-ca-bundle.crt"
23955         else
23956           cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
23957         fi
23958
23959         for a in /etc/ssl/certs/ca-certificates.crt \
23960                  /etc/pki/tls/certs/ca-bundle.crt \
23961                  /usr/share/ssl/certs/ca-bundle.crt \
23962                  /usr/local/share/certs/ca-root.crt \
23963                  /etc/ssl/cert.pem \
23964                  "$cac"; do
23965           if test -f "$a"; then
23966             ca="$a"
23967             break
23968           fi
23969         done
23970       fi
23971       if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
23972               "x$OPENSSL_ENABLED" = "x1"; then
23973         for a in /etc/ssl/certs/; do
23974           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
23975             capath="$a"
23976             break
23977           fi
23978         done
23979       fi
23980     else
23981             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
23982 $as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
23983     fi
23984   fi
23985
23986   if test "x$ca" != "xno"; then
23987     CURL_CA_BUNDLE='"'$ca'"'
23988
23989 cat >>confdefs.h <<_ACEOF
23990 #define CURL_CA_BUNDLE "$ca"
23991 _ACEOF
23992
23993
23994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
23995 $as_echo "$ca" >&6; }
23996   elif test "x$capath" != "xno"; then
23997     CURL_CA_PATH="\"$capath\""
23998
23999 cat >>confdefs.h <<_ACEOF
24000 #define CURL_CA_PATH "$capath"
24001 _ACEOF
24002
24003     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
24004 $as_echo "$capath (capath)" >&6; }
24005   else
24006     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24007 $as_echo "no" >&6; }
24008   fi
24009
24010
24011
24012 OPT_LIBMETALINK=no
24013
24014
24015 # Check whether --with-libmetalink was given.
24016 if test "${with_libmetalink+set}" = set; then :
24017   withval=$with_libmetalink; OPT_LIBMETALINK=$withval
24018 fi
24019
24020
24021 if test X"$OPT_LIBMETALINK" != Xno; then
24022
24023   addld=""
24024   addlib=""
24025   addcflags=""
24026   version=""
24027   libmetalinklib=""
24028
24029   PKGTEST="no"
24030   if test "x$OPT_LIBMETALINK" = "xyes"; then
24031         PKGTEST="yes"
24032
24033
24034     PKGCONFIG="no"
24035
24036     if test -n "$ac_tool_prefix"; then
24037   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24038 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24040 $as_echo_n "checking for $ac_word... " >&6; }
24041 if ${ac_cv_path_PKGCONFIG+:} false; then :
24042   $as_echo_n "(cached) " >&6
24043 else
24044   case $PKGCONFIG in
24045   [\\/]* | ?:[\\/]*)
24046   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24047   ;;
24048   *)
24049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24050 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24051 for as_dir in $as_dummy
24052 do
24053   IFS=$as_save_IFS
24054   test -z "$as_dir" && as_dir=.
24055     for ac_exec_ext in '' $ac_executable_extensions; do
24056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24057     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24059     break 2
24060   fi
24061 done
24062   done
24063 IFS=$as_save_IFS
24064
24065   ;;
24066 esac
24067 fi
24068 PKGCONFIG=$ac_cv_path_PKGCONFIG
24069 if test -n "$PKGCONFIG"; then
24070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24071 $as_echo "$PKGCONFIG" >&6; }
24072 else
24073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24074 $as_echo "no" >&6; }
24075 fi
24076
24077
24078 fi
24079 if test -z "$ac_cv_path_PKGCONFIG"; then
24080   ac_pt_PKGCONFIG=$PKGCONFIG
24081   # Extract the first word of "pkg-config", so it can be a program name with args.
24082 set dummy pkg-config; ac_word=$2
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24084 $as_echo_n "checking for $ac_word... " >&6; }
24085 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24086   $as_echo_n "(cached) " >&6
24087 else
24088   case $ac_pt_PKGCONFIG in
24089   [\\/]* | ?:[\\/]*)
24090   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24091   ;;
24092   *)
24093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24094 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24095 for as_dir in $as_dummy
24096 do
24097   IFS=$as_save_IFS
24098   test -z "$as_dir" && as_dir=.
24099     for ac_exec_ext in '' $ac_executable_extensions; do
24100   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24101     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24103     break 2
24104   fi
24105 done
24106   done
24107 IFS=$as_save_IFS
24108
24109   ;;
24110 esac
24111 fi
24112 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24113 if test -n "$ac_pt_PKGCONFIG"; then
24114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24115 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24116 else
24117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24118 $as_echo "no" >&6; }
24119 fi
24120
24121   if test "x$ac_pt_PKGCONFIG" = x; then
24122     PKGCONFIG="no"
24123   else
24124     case $cross_compiling:$ac_tool_warned in
24125 yes:)
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24128 ac_tool_warned=yes ;;
24129 esac
24130     PKGCONFIG=$ac_pt_PKGCONFIG
24131   fi
24132 else
24133   PKGCONFIG="$ac_cv_path_PKGCONFIG"
24134 fi
24135
24136
24137     if test x$PKGCONFIG != xno; then
24138       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
24139 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
24140             itexists=`
24141     if test -n ""; then
24142       PKG_CONFIG_LIBDIR=""
24143       export PKG_CONFIG_LIBDIR
24144     fi
24145          $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
24146
24147       if test -z "$itexists"; then
24148                         PKGCONFIG="no"
24149         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24150 $as_echo "no" >&6; }
24151       else
24152         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24153 $as_echo "found" >&6; }
24154       fi
24155     fi
24156
24157   else
24158         LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
24159     { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
24160 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
24161     if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
24162       PKGTEST="yes"
24163     fi
24164     if test "$PKGTEST" = "yes"; then
24165
24166
24167     PKGCONFIG="no"
24168
24169     if test -n "$ac_tool_prefix"; then
24170   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24171 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24173 $as_echo_n "checking for $ac_word... " >&6; }
24174 if ${ac_cv_path_PKGCONFIG+:} false; then :
24175   $as_echo_n "(cached) " >&6
24176 else
24177   case $PKGCONFIG in
24178   [\\/]* | ?:[\\/]*)
24179   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24180   ;;
24181   *)
24182   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24183 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24184 for as_dir in $as_dummy
24185 do
24186   IFS=$as_save_IFS
24187   test -z "$as_dir" && as_dir=.
24188     for ac_exec_ext in '' $ac_executable_extensions; do
24189   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24190     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24192     break 2
24193   fi
24194 done
24195   done
24196 IFS=$as_save_IFS
24197
24198   ;;
24199 esac
24200 fi
24201 PKGCONFIG=$ac_cv_path_PKGCONFIG
24202 if test -n "$PKGCONFIG"; then
24203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24204 $as_echo "$PKGCONFIG" >&6; }
24205 else
24206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24207 $as_echo "no" >&6; }
24208 fi
24209
24210
24211 fi
24212 if test -z "$ac_cv_path_PKGCONFIG"; then
24213   ac_pt_PKGCONFIG=$PKGCONFIG
24214   # Extract the first word of "pkg-config", so it can be a program name with args.
24215 set dummy pkg-config; ac_word=$2
24216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24217 $as_echo_n "checking for $ac_word... " >&6; }
24218 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24219   $as_echo_n "(cached) " >&6
24220 else
24221   case $ac_pt_PKGCONFIG in
24222   [\\/]* | ?:[\\/]*)
24223   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24224   ;;
24225   *)
24226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24227 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24228 for as_dir in $as_dummy
24229 do
24230   IFS=$as_save_IFS
24231   test -z "$as_dir" && as_dir=.
24232     for ac_exec_ext in '' $ac_executable_extensions; do
24233   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24234     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24236     break 2
24237   fi
24238 done
24239   done
24240 IFS=$as_save_IFS
24241
24242   ;;
24243 esac
24244 fi
24245 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24246 if test -n "$ac_pt_PKGCONFIG"; then
24247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24248 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24249 else
24250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24251 $as_echo "no" >&6; }
24252 fi
24253
24254   if test "x$ac_pt_PKGCONFIG" = x; then
24255     PKGCONFIG="no"
24256   else
24257     case $cross_compiling:$ac_tool_warned in
24258 yes:)
24259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24261 ac_tool_warned=yes ;;
24262 esac
24263     PKGCONFIG=$ac_pt_PKGCONFIG
24264   fi
24265 else
24266   PKGCONFIG="$ac_cv_path_PKGCONFIG"
24267 fi
24268
24269
24270     if test x$PKGCONFIG != xno; then
24271       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
24272 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
24273             itexists=`
24274     if test -n "$LIBMETALINK_PCDIR"; then
24275       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24276       export PKG_CONFIG_LIBDIR
24277     fi
24278          $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
24279
24280       if test -z "$itexists"; then
24281                         PKGCONFIG="no"
24282         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24283 $as_echo "no" >&6; }
24284       else
24285         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24286 $as_echo "found" >&6; }
24287       fi
24288     fi
24289
24290     fi
24291   fi
24292   if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
24293     addlib=`
24294     if test -n "$LIBMETALINK_PCDIR"; then
24295       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24296       export PKG_CONFIG_LIBDIR
24297     fi
24298        $PKGCONFIG --libs-only-l libmetalink`
24299     addld=`
24300     if test -n "$LIBMETALINK_PCDIR"; then
24301       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24302       export PKG_CONFIG_LIBDIR
24303     fi
24304        $PKGCONFIG --libs-only-L libmetalink`
24305     addcflags=`
24306     if test -n "$LIBMETALINK_PCDIR"; then
24307       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24308       export PKG_CONFIG_LIBDIR
24309     fi
24310        $PKGCONFIG --cflags-only-I libmetalink`
24311     version=`
24312     if test -n "$LIBMETALINK_PCDIR"; then
24313       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24314       export PKG_CONFIG_LIBDIR
24315     fi
24316        $PKGCONFIG --modversion libmetalink`
24317     libmetalinklib=`echo $addld | $SED -e 's/-L//'`
24318   fi
24319   if test -n "$addlib"; then
24320
24321     clean_CPPFLAGS="$CPPFLAGS"
24322     clean_LDFLAGS="$LDFLAGS"
24323     clean_LIBS="$LIBS"
24324     CPPFLAGS="$addcflags $clean_CPPFLAGS"
24325     LDFLAGS="$addld $clean_LDFLAGS"
24326     LIBS="$addlib $clean_LIBS"
24327     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
24328 $as_echo_n "checking if libmetalink is recent enough... " >&6; }
24329     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24330 /* end confdefs.h.  */
24331
24332
24333 #       include <metalink/metalink.h>
24334
24335 int main (void)
24336 {
24337
24338         if(0 != metalink_strerror(0)) /* added in 0.1.0 */
24339           return 1;
24340
24341  ;
24342  return 0;
24343 }
24344
24345 _ACEOF
24346 if ac_fn_c_try_link "$LINENO"; then :
24347
24348       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
24349 $as_echo "yes ($version)" >&6; }
24350       want_metalink="yes"
24351
24352 else
24353
24354       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
24355 $as_echo "no ($version)" >&6; }
24356       { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
24357 $as_echo "$as_me: libmetalink library defective or too old" >&6;}
24358       want_metalink="no"
24359
24360 fi
24361 rm -f core conftest.err conftest.$ac_objext \
24362     conftest$ac_exeext conftest.$ac_ext
24363     CPPFLAGS="$clean_CPPFLAGS"
24364     LDFLAGS="$clean_LDFLAGS"
24365     LIBS="$clean_LIBS"
24366     if test "$want_metalink" = "yes"; then
24367
24368 $as_echo "#define USE_METALINK 1" >>confdefs.h
24369
24370       LIBMETALINK_LIBS=$addlib
24371       LIBMETALINK_LDFLAGS=$addld
24372       LIBMETALINK_CPPFLAGS=$addcflags
24373
24374
24375
24376       curl_mtlnk_msg="enabled"
24377     fi
24378
24379   fi
24380 fi
24381
24382
24383 OPT_LIBSSH2=off
24384
24385 # Check whether --with-libssh2 was given.
24386 if test "${with_libssh2+set}" = set; then :
24387   withval=$with_libssh2; OPT_LIBSSH2=$withval
24388 fi
24389
24390
24391 if test X"$OPT_LIBSSH2" != Xno; then
24392     CLEANLDFLAGS="$LDFLAGS"
24393   CLEANCPPFLAGS="$CPPFLAGS"
24394   CLEANLIBS="$LIBS"
24395
24396   case "$OPT_LIBSSH2" in
24397   yes)
24398
24399
24400     PKGCONFIG="no"
24401
24402     if test -n "$ac_tool_prefix"; then
24403   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24404 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24406 $as_echo_n "checking for $ac_word... " >&6; }
24407 if ${ac_cv_path_PKGCONFIG+:} false; then :
24408   $as_echo_n "(cached) " >&6
24409 else
24410   case $PKGCONFIG in
24411   [\\/]* | ?:[\\/]*)
24412   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24413   ;;
24414   *)
24415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24416 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24417 for as_dir in $as_dummy
24418 do
24419   IFS=$as_save_IFS
24420   test -z "$as_dir" && as_dir=.
24421     for ac_exec_ext in '' $ac_executable_extensions; do
24422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24423     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24425     break 2
24426   fi
24427 done
24428   done
24429 IFS=$as_save_IFS
24430
24431   ;;
24432 esac
24433 fi
24434 PKGCONFIG=$ac_cv_path_PKGCONFIG
24435 if test -n "$PKGCONFIG"; then
24436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24437 $as_echo "$PKGCONFIG" >&6; }
24438 else
24439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24440 $as_echo "no" >&6; }
24441 fi
24442
24443
24444 fi
24445 if test -z "$ac_cv_path_PKGCONFIG"; then
24446   ac_pt_PKGCONFIG=$PKGCONFIG
24447   # Extract the first word of "pkg-config", so it can be a program name with args.
24448 set dummy pkg-config; ac_word=$2
24449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24450 $as_echo_n "checking for $ac_word... " >&6; }
24451 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24452   $as_echo_n "(cached) " >&6
24453 else
24454   case $ac_pt_PKGCONFIG in
24455   [\\/]* | ?:[\\/]*)
24456   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24457   ;;
24458   *)
24459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24460 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24461 for as_dir in $as_dummy
24462 do
24463   IFS=$as_save_IFS
24464   test -z "$as_dir" && as_dir=.
24465     for ac_exec_ext in '' $ac_executable_extensions; do
24466   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24467     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24469     break 2
24470   fi
24471 done
24472   done
24473 IFS=$as_save_IFS
24474
24475   ;;
24476 esac
24477 fi
24478 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24479 if test -n "$ac_pt_PKGCONFIG"; then
24480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24481 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24482 else
24483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24484 $as_echo "no" >&6; }
24485 fi
24486
24487   if test "x$ac_pt_PKGCONFIG" = x; then
24488     PKGCONFIG="no"
24489   else
24490     case $cross_compiling:$ac_tool_warned in
24491 yes:)
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24494 ac_tool_warned=yes ;;
24495 esac
24496     PKGCONFIG=$ac_pt_PKGCONFIG
24497   fi
24498 else
24499   PKGCONFIG="$ac_cv_path_PKGCONFIG"
24500 fi
24501
24502
24503     if test x$PKGCONFIG != xno; then
24504       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
24505 $as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
24506             itexists=`
24507     if test -n ""; then
24508       PKG_CONFIG_LIBDIR=""
24509       export PKG_CONFIG_LIBDIR
24510     fi
24511          $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
24512
24513       if test -z "$itexists"; then
24514                         PKGCONFIG="no"
24515         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24516 $as_echo "no" >&6; }
24517       else
24518         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24519 $as_echo "found" >&6; }
24520       fi
24521     fi
24522
24523
24524     if test "$PKGCONFIG" != "no" ; then
24525       LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
24526       LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
24527       CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
24528       version=`$PKGCONFIG --modversion libssh2`
24529       DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
24530     fi
24531
24532     ;;
24533   off)
24534         ;;
24535   *)
24536         PREFIX_SSH2=$OPT_LIBSSH2
24537     ;;
24538   esac
24539
24540     if test -n "$PREFIX_SSH2"; then
24541     LIB_SSH2="-lssh2"
24542     LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
24543     CPP_SSH2=-I${PREFIX_SSH2}/include
24544     DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
24545   fi
24546
24547   LDFLAGS="$LDFLAGS $LD_SSH2"
24548   CPPFLAGS="$CPPFLAGS $CPP_SSH2"
24549   LIBS="$LIB_SSH2 $LIBS"
24550
24551   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
24552 $as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
24553 if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
24554   $as_echo_n "(cached) " >&6
24555 else
24556   ac_check_lib_save_LIBS=$LIBS
24557 LIBS="-lssh2  $LIBS"
24558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24559 /* end confdefs.h.  */
24560
24561
24562 #ifdef __cplusplus
24563 extern "C"
24564 #endif
24565 char libssh2_channel_open_ex ();
24566 int main (void)
24567 {
24568 return libssh2_channel_open_ex ();
24569  ;
24570  return 0;
24571 }
24572 _ACEOF
24573 if ac_fn_c_try_link "$LINENO"; then :
24574   ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
24575 else
24576   ac_cv_lib_ssh2_libssh2_channel_open_ex=no
24577 fi
24578 rm -f core conftest.err conftest.$ac_objext \
24579     conftest$ac_exeext conftest.$ac_ext
24580 LIBS=$ac_check_lib_save_LIBS
24581 fi
24582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
24583 $as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
24584 if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
24585   cat >>confdefs.h <<_ACEOF
24586 #define HAVE_LIBSSH2 1
24587 _ACEOF
24588
24589   LIBS="-lssh2 $LIBS"
24590
24591 fi
24592
24593
24594   for ac_header in libssh2.h
24595 do :
24596   ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
24597 if test "x$ac_cv_header_libssh2_h" = xyes; then :
24598   cat >>confdefs.h <<_ACEOF
24599 #define HAVE_LIBSSH2_H 1
24600 _ACEOF
24601  curl_ssh_msg="enabled (libSSH2)"
24602     LIBSSH2_ENABLED=1
24603
24604 $as_echo "#define USE_LIBSSH2 1" >>confdefs.h
24605
24606     USE_LIBSSH2=1
24607
24608
24609 fi
24610
24611 done
24612
24613
24614   if test X"$OPT_LIBSSH2" != Xoff &&
24615      test "$LIBSSH2_ENABLED" != "1"; then
24616     as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
24617   fi
24618
24619   if test "$LIBSSH2_ENABLED" = "1"; then
24620     if test -n "$DIR_SSH2"; then
24621
24622        if test "x$cross_compiling" != "xyes"; then
24623          LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
24624          export LD_LIBRARY_PATH
24625          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&5
24626 $as_echo "$as_me: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&6;}
24627        fi
24628     fi
24629   else
24630         LDFLAGS=$CLEANLDFLAGS
24631     CPPFLAGS=$CLEANCPPFLAGS
24632     LIBS=$CLEANLIBS
24633   fi
24634 fi
24635
24636
24637 OPT_LIBRTMP=off
24638
24639 # Check whether --with-librtmp was given.
24640 if test "${with_librtmp+set}" = set; then :
24641   withval=$with_librtmp; OPT_LIBRTMP=$withval
24642 fi
24643
24644
24645 if test X"$OPT_LIBRTMP" != Xno; then
24646     CLEANLDFLAGS="$LDFLAGS"
24647   CLEANCPPFLAGS="$CPPFLAGS"
24648   CLEANLIBS="$LIBS"
24649
24650   case "$OPT_LIBRTMP" in
24651   yes)
24652
24653
24654     PKGCONFIG="no"
24655
24656     if test -n "$ac_tool_prefix"; then
24657   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24658 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24660 $as_echo_n "checking for $ac_word... " >&6; }
24661 if ${ac_cv_path_PKGCONFIG+:} false; then :
24662   $as_echo_n "(cached) " >&6
24663 else
24664   case $PKGCONFIG in
24665   [\\/]* | ?:[\\/]*)
24666   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24667   ;;
24668   *)
24669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24670 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24671 for as_dir in $as_dummy
24672 do
24673   IFS=$as_save_IFS
24674   test -z "$as_dir" && as_dir=.
24675     for ac_exec_ext in '' $ac_executable_extensions; do
24676   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24677     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24679     break 2
24680   fi
24681 done
24682   done
24683 IFS=$as_save_IFS
24684
24685   ;;
24686 esac
24687 fi
24688 PKGCONFIG=$ac_cv_path_PKGCONFIG
24689 if test -n "$PKGCONFIG"; then
24690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24691 $as_echo "$PKGCONFIG" >&6; }
24692 else
24693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24694 $as_echo "no" >&6; }
24695 fi
24696
24697
24698 fi
24699 if test -z "$ac_cv_path_PKGCONFIG"; then
24700   ac_pt_PKGCONFIG=$PKGCONFIG
24701   # Extract the first word of "pkg-config", so it can be a program name with args.
24702 set dummy pkg-config; ac_word=$2
24703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24704 $as_echo_n "checking for $ac_word... " >&6; }
24705 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24706   $as_echo_n "(cached) " >&6
24707 else
24708   case $ac_pt_PKGCONFIG in
24709   [\\/]* | ?:[\\/]*)
24710   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24711   ;;
24712   *)
24713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24714 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24715 for as_dir in $as_dummy
24716 do
24717   IFS=$as_save_IFS
24718   test -z "$as_dir" && as_dir=.
24719     for ac_exec_ext in '' $ac_executable_extensions; do
24720   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24721     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24723     break 2
24724   fi
24725 done
24726   done
24727 IFS=$as_save_IFS
24728
24729   ;;
24730 esac
24731 fi
24732 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24733 if test -n "$ac_pt_PKGCONFIG"; then
24734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24735 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24736 else
24737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24738 $as_echo "no" >&6; }
24739 fi
24740
24741   if test "x$ac_pt_PKGCONFIG" = x; then
24742     PKGCONFIG="no"
24743   else
24744     case $cross_compiling:$ac_tool_warned in
24745 yes:)
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24748 ac_tool_warned=yes ;;
24749 esac
24750     PKGCONFIG=$ac_pt_PKGCONFIG
24751   fi
24752 else
24753   PKGCONFIG="$ac_cv_path_PKGCONFIG"
24754 fi
24755
24756
24757     if test x$PKGCONFIG != xno; then
24758       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
24759 $as_echo_n "checking for librtmp options with pkg-config... " >&6; }
24760             itexists=`
24761     if test -n ""; then
24762       PKG_CONFIG_LIBDIR=""
24763       export PKG_CONFIG_LIBDIR
24764     fi
24765          $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
24766
24767       if test -z "$itexists"; then
24768                         PKGCONFIG="no"
24769         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24770 $as_echo "no" >&6; }
24771       else
24772         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24773 $as_echo "found" >&6; }
24774       fi
24775     fi
24776
24777
24778     if test "$PKGCONFIG" != "no" ; then
24779       LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
24780       LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
24781       CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
24782       version=`$PKGCONFIG --modversion librtmp`
24783       DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
24784     else
24785                   as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
24786     fi
24787
24788     ;;
24789   off)
24790         LIB_RTMP="-lrtmp"
24791     ;;
24792   *)
24793         PREFIX_RTMP=$OPT_LIBRTMP
24794     ;;
24795   esac
24796
24797     if test -n "$PREFIX_RTMP"; then
24798     LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
24799     CPP_RTMP=-I${PREFIX_RTMP}/include
24800     DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
24801   fi
24802
24803   LDFLAGS="$LDFLAGS $LD_RTMP"
24804   CPPFLAGS="$CPPFLAGS $CPP_RTMP"
24805   LIBS="$LIB_RTMP $LIBS"
24806
24807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
24808 $as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
24809 if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
24810   $as_echo_n "(cached) " >&6
24811 else
24812   ac_check_lib_save_LIBS=$LIBS
24813 LIBS="-lrtmp  $LIBS"
24814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24815 /* end confdefs.h.  */
24816
24817
24818 #ifdef __cplusplus
24819 extern "C"
24820 #endif
24821 char RTMP_Init ();
24822 int main (void)
24823 {
24824 return RTMP_Init ();
24825  ;
24826  return 0;
24827 }
24828 _ACEOF
24829 if ac_fn_c_try_link "$LINENO"; then :
24830   ac_cv_lib_rtmp_RTMP_Init=yes
24831 else
24832   ac_cv_lib_rtmp_RTMP_Init=no
24833 fi
24834 rm -f core conftest.err conftest.$ac_objext \
24835     conftest$ac_exeext conftest.$ac_ext
24836 LIBS=$ac_check_lib_save_LIBS
24837 fi
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
24839 $as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
24840 if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
24841
24842      for ac_header in librtmp/rtmp.h
24843 do :
24844   ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
24845 if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
24846   cat >>confdefs.h <<_ACEOF
24847 #define HAVE_LIBRTMP_RTMP_H 1
24848 _ACEOF
24849  curl_rtmp_msg="enabled (librtmp)"
24850         LIBRTMP_ENABLED=1
24851
24852 $as_echo "#define USE_LIBRTMP 1" >>confdefs.h
24853
24854         USE_LIBRTMP=1
24855
24856
24857 fi
24858
24859 done
24860
24861
24862 else
24863         LDFLAGS=$CLEANLDFLAGS
24864       CPPFLAGS=$CLEANCPPFLAGS
24865       LIBS=$CLEANLIBS
24866
24867 fi
24868
24869
24870   if test X"$OPT_LIBRTMP" != Xoff &&
24871      test "$LIBRTMP_ENABLED" != "1"; then
24872     as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
24873   fi
24874
24875 fi
24876
24877
24878 versioned_symbols_flavour=
24879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
24880 $as_echo_n "checking whether versioned symbols are wanted... " >&6; }
24881 # Check whether --enable-versioned-symbols was given.
24882 if test "${enable_versioned_symbols+set}" = set; then :
24883   enableval=$enable_versioned_symbols;  case "$enableval" in
24884   yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24885 $as_echo "yes" >&6; }
24886     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
24887 $as_echo_n "checking if libraries can be versioned... " >&6; }
24888     GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
24889     if test -z "$GLD"; then
24890         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24891 $as_echo "no" >&6; }
24892         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
24893 $as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
24894     else
24895         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24896 $as_echo "yes" >&6; }
24897         if test "x$OPENSSL_ENABLED" = "x1"; then
24898           versioned_symbols_flavour="OPENSSL_"
24899         elif test "x$GNUTLS_ENABLED" = "x1"; then
24900           versioned_symbols_flavour="GNUTLS_"
24901         elif test "x$NSS_ENABLED" = "x1"; then
24902           versioned_symbols_flavour="NSS_"
24903         elif test "x$POLARSSL_ENABLED" = "x1"; then
24904           versioned_symbols_flavour="POLARSSL_"
24905         elif test "x$CYASSL_ENABLED" = "x1"; then
24906           versioned_symbols_flavour="CYASSL_"
24907         elif test "x$AXTLS_ENABLED" = "x1"; then
24908           versioned_symbols_flavour="AXTLS_"
24909         elif test "x$WINSSL_ENABLED" = "x1"; then
24910           versioned_symbols_flavour="WINSSL_"
24911         elif test "x$DARWINSSL_ENABLED" = "x1"; then
24912           versioned_symbols_flavour="DARWINSSL_"
24913         else
24914           versioned_symbols_flavour=""
24915         fi
24916         versioned_symbols="yes"
24917     fi
24918     ;;
24919
24920   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24921 $as_echo "no" >&6; }
24922     ;;
24923   esac
24924
24925 else
24926
24927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24928 $as_echo "no" >&6; }
24929
24930
24931 fi
24932
24933
24934 CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
24935
24936  if test "x$versioned_symbols" = 'xyes'; then
24937   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
24938   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
24939 else
24940   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
24941   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
24942 fi
24943
24944
24945
24946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
24947 $as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
24948 OPT_WINIDN="default"
24949
24950 # Check whether --with-winidn was given.
24951 if test "${with_winidn+set}" = set; then :
24952   withval=$with_winidn; OPT_WINIDN=$withval
24953 fi
24954
24955 case "$OPT_WINIDN" in
24956   no|default)
24957         want_winidn="no"
24958     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24959 $as_echo "no" >&6; }
24960     ;;
24961   yes)
24962         want_winidn="yes"
24963     want_winidn_path="default"
24964     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24965 $as_echo "yes" >&6; }
24966     ;;
24967   *)
24968         want_winidn="yes"
24969     want_winidn_path="$withval"
24970     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
24971 $as_echo "yes ($withval)" >&6; }
24972     ;;
24973 esac
24974
24975 if test "$want_winidn" = "yes"; then
24976     clean_CPPFLAGS="$CPPFLAGS"
24977   clean_LDFLAGS="$LDFLAGS"
24978   clean_LIBS="$LIBS"
24979   WINIDN_LIBS="-lnormaliz"
24980   #
24981   if test "$want_winidn_path" != "default"; then
24982             WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
24983     WINIDN_CPPFLAGS="-I$want_winidn_path/include"
24984     WINIDN_DIR="$want_winidn_path/lib$libsuff"
24985   fi
24986   #
24987   CPPFLAGS="$WINIDN_CPPFLAGS $CPPFLAGS"
24988   LDFLAGS="$WINIDN_LDFLAGS $LDFLAGS"
24989   LIBS="$WINIDN_LIBS $LIBS"
24990   #
24991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
24992 $as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
24993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24994 /* end confdefs.h.  */
24995
24996
24997 #define IdnToUnicode innocuous_IdnToUnicode
24998 #ifdef __STDC__
24999 # include <limits.h>
25000 #else
25001 # include <assert.h>
25002 #endif
25003 #undef IdnToUnicode
25004 #ifdef __cplusplus
25005 extern "C"
25006 #endif
25007 char IdnToUnicode ();
25008 #if defined __stub_IdnToUnicode || defined __stub___IdnToUnicode
25009 choke me
25010 #endif
25011
25012 int main (void)
25013 {
25014 return IdnToUnicode ();
25015  ;
25016  return 0;
25017 }
25018
25019 _ACEOF
25020 if ac_fn_c_try_link "$LINENO"; then :
25021
25022     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25023 $as_echo "yes" >&6; }
25024     tst_links_winidn="yes"
25025
25026 else
25027
25028     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25029 $as_echo "no" >&6; }
25030     tst_links_winidn="no"
25031
25032 fi
25033 rm -f core conftest.err conftest.$ac_objext \
25034     conftest$ac_exeext conftest.$ac_ext
25035   #
25036   if test "$tst_links_winidn" = "yes"; then
25037
25038 $as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
25039
25040
25041 $as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
25042
25043     IDN_ENABLED=1
25044
25045     curl_idn_msg="enabled (Windows-native)"
25046   else
25047     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
25048 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
25049     CPPFLAGS="$clean_CPPFLAGS"
25050     LDFLAGS="$clean_LDFLAGS"
25051     LIBS="$clean_LIBS"
25052   fi
25053 fi
25054
25055
25056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn" >&5
25057 $as_echo_n "checking whether to build with libidn... " >&6; }
25058 OPT_IDN="default"
25059
25060 # Check whether --with-libidn was given.
25061 if test "${with_libidn+set}" = set; then :
25062   withval=$with_libidn; OPT_IDN=$withval
25063 fi
25064
25065 case "$OPT_IDN" in
25066   no)
25067         want_idn="no"
25068     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25069 $as_echo "no" >&6; }
25070     ;;
25071   default)
25072         want_idn="yes"
25073     want_idn_path="default"
25074     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
25075 $as_echo "(assumed) yes" >&6; }
25076     ;;
25077   yes)
25078         want_idn="yes"
25079     want_idn_path="default"
25080     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25081 $as_echo "yes" >&6; }
25082     ;;
25083   *)
25084         want_idn="yes"
25085     want_idn_path="$withval"
25086     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
25087 $as_echo "yes ($withval)" >&6; }
25088     ;;
25089 esac
25090
25091 if test "$want_idn" = "yes"; then
25092     clean_CPPFLAGS="$CPPFLAGS"
25093   clean_LDFLAGS="$LDFLAGS"
25094   clean_LIBS="$LIBS"
25095   PKGCONFIG="no"
25096   #
25097   if test "$want_idn_path" != "default"; then
25098         IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
25099
25100
25101     PKGCONFIG="no"
25102
25103     if test -n "$ac_tool_prefix"; then
25104   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25105 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25107 $as_echo_n "checking for $ac_word... " >&6; }
25108 if ${ac_cv_path_PKGCONFIG+:} false; then :
25109   $as_echo_n "(cached) " >&6
25110 else
25111   case $PKGCONFIG in
25112   [\\/]* | ?:[\\/]*)
25113   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25114   ;;
25115   *)
25116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25117 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25118 for as_dir in $as_dummy
25119 do
25120   IFS=$as_save_IFS
25121   test -z "$as_dir" && as_dir=.
25122     for ac_exec_ext in '' $ac_executable_extensions; do
25123   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25124     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25126     break 2
25127   fi
25128 done
25129   done
25130 IFS=$as_save_IFS
25131
25132   ;;
25133 esac
25134 fi
25135 PKGCONFIG=$ac_cv_path_PKGCONFIG
25136 if test -n "$PKGCONFIG"; then
25137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25138 $as_echo "$PKGCONFIG" >&6; }
25139 else
25140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25141 $as_echo "no" >&6; }
25142 fi
25143
25144
25145 fi
25146 if test -z "$ac_cv_path_PKGCONFIG"; then
25147   ac_pt_PKGCONFIG=$PKGCONFIG
25148   # Extract the first word of "pkg-config", so it can be a program name with args.
25149 set dummy pkg-config; ac_word=$2
25150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25151 $as_echo_n "checking for $ac_word... " >&6; }
25152 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25153   $as_echo_n "(cached) " >&6
25154 else
25155   case $ac_pt_PKGCONFIG in
25156   [\\/]* | ?:[\\/]*)
25157   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25158   ;;
25159   *)
25160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25161 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25162 for as_dir in $as_dummy
25163 do
25164   IFS=$as_save_IFS
25165   test -z "$as_dir" && as_dir=.
25166     for ac_exec_ext in '' $ac_executable_extensions; do
25167   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25168     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25170     break 2
25171   fi
25172 done
25173   done
25174 IFS=$as_save_IFS
25175
25176   ;;
25177 esac
25178 fi
25179 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25180 if test -n "$ac_pt_PKGCONFIG"; then
25181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25182 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25183 else
25184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25185 $as_echo "no" >&6; }
25186 fi
25187
25188   if test "x$ac_pt_PKGCONFIG" = x; then
25189     PKGCONFIG="no"
25190   else
25191     case $cross_compiling:$ac_tool_warned in
25192 yes:)
25193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25195 ac_tool_warned=yes ;;
25196 esac
25197     PKGCONFIG=$ac_pt_PKGCONFIG
25198   fi
25199 else
25200   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25201 fi
25202
25203
25204     if test x$PKGCONFIG != xno; then
25205       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn options with pkg-config" >&5
25206 $as_echo_n "checking for libidn options with pkg-config... " >&6; }
25207             itexists=`
25208     if test -n "$IDN_PCDIR"; then
25209       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
25210       export PKG_CONFIG_LIBDIR
25211     fi
25212          $PKGCONFIG --exists libidn >/dev/null 2>&1 && echo 1`
25213
25214       if test -z "$itexists"; then
25215                         PKGCONFIG="no"
25216         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25217 $as_echo "no" >&6; }
25218       else
25219         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25220 $as_echo "found" >&6; }
25221       fi
25222     fi
25223
25224     if test "$PKGCONFIG" != "no"; then
25225       IDN_LIBS=`
25226     if test -n "$IDN_PCDIR"; then
25227       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
25228       export PKG_CONFIG_LIBDIR
25229     fi
25230          $PKGCONFIG --libs-only-l libidn 2>/dev/null`
25231       IDN_LDFLAGS=`
25232     if test -n "$IDN_PCDIR"; then
25233       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
25234       export PKG_CONFIG_LIBDIR
25235     fi
25236          $PKGCONFIG --libs-only-L libidn 2>/dev/null`
25237       IDN_CPPFLAGS=`
25238     if test -n "$IDN_PCDIR"; then
25239       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
25240       export PKG_CONFIG_LIBDIR
25241     fi
25242          $PKGCONFIG --cflags-only-I libidn 2>/dev/null`
25243       IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
25244     else
25245             IDN_LIBS="-lidn"
25246       IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
25247       IDN_CPPFLAGS="-I$want_idn_path/include"
25248       IDN_DIR="$want_idn_path/lib$libsuff"
25249     fi
25250   else
25251
25252
25253     PKGCONFIG="no"
25254
25255     if test -n "$ac_tool_prefix"; then
25256   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25257 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25259 $as_echo_n "checking for $ac_word... " >&6; }
25260 if ${ac_cv_path_PKGCONFIG+:} false; then :
25261   $as_echo_n "(cached) " >&6
25262 else
25263   case $PKGCONFIG in
25264   [\\/]* | ?:[\\/]*)
25265   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25266   ;;
25267   *)
25268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25269 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25270 for as_dir in $as_dummy
25271 do
25272   IFS=$as_save_IFS
25273   test -z "$as_dir" && as_dir=.
25274     for ac_exec_ext in '' $ac_executable_extensions; do
25275   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25276     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25278     break 2
25279   fi
25280 done
25281   done
25282 IFS=$as_save_IFS
25283
25284   ;;
25285 esac
25286 fi
25287 PKGCONFIG=$ac_cv_path_PKGCONFIG
25288 if test -n "$PKGCONFIG"; then
25289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25290 $as_echo "$PKGCONFIG" >&6; }
25291 else
25292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25293 $as_echo "no" >&6; }
25294 fi
25295
25296
25297 fi
25298 if test -z "$ac_cv_path_PKGCONFIG"; then
25299   ac_pt_PKGCONFIG=$PKGCONFIG
25300   # Extract the first word of "pkg-config", so it can be a program name with args.
25301 set dummy pkg-config; ac_word=$2
25302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25303 $as_echo_n "checking for $ac_word... " >&6; }
25304 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25305   $as_echo_n "(cached) " >&6
25306 else
25307   case $ac_pt_PKGCONFIG in
25308   [\\/]* | ?:[\\/]*)
25309   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25310   ;;
25311   *)
25312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25313 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25314 for as_dir in $as_dummy
25315 do
25316   IFS=$as_save_IFS
25317   test -z "$as_dir" && as_dir=.
25318     for ac_exec_ext in '' $ac_executable_extensions; do
25319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25320     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25322     break 2
25323   fi
25324 done
25325   done
25326 IFS=$as_save_IFS
25327
25328   ;;
25329 esac
25330 fi
25331 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25332 if test -n "$ac_pt_PKGCONFIG"; then
25333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25334 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25335 else
25336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25337 $as_echo "no" >&6; }
25338 fi
25339
25340   if test "x$ac_pt_PKGCONFIG" = x; then
25341     PKGCONFIG="no"
25342   else
25343     case $cross_compiling:$ac_tool_warned in
25344 yes:)
25345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25347 ac_tool_warned=yes ;;
25348 esac
25349     PKGCONFIG=$ac_pt_PKGCONFIG
25350   fi
25351 else
25352   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25353 fi
25354
25355
25356     if test x$PKGCONFIG != xno; then
25357       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn options with pkg-config" >&5
25358 $as_echo_n "checking for libidn options with pkg-config... " >&6; }
25359             itexists=`
25360     if test -n ""; then
25361       PKG_CONFIG_LIBDIR=""
25362       export PKG_CONFIG_LIBDIR
25363     fi
25364          $PKGCONFIG --exists libidn >/dev/null 2>&1 && echo 1`
25365
25366       if test -z "$itexists"; then
25367                         PKGCONFIG="no"
25368         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25369 $as_echo "no" >&6; }
25370       else
25371         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25372 $as_echo "found" >&6; }
25373       fi
25374     fi
25375
25376     if test "$PKGCONFIG" != "no"; then
25377       IDN_LIBS=`$PKGCONFIG --libs-only-l libidn 2>/dev/null`
25378       IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn 2>/dev/null`
25379       IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn 2>/dev/null`
25380       IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
25381     else
25382             IDN_LIBS="-lidn"
25383     fi
25384   fi
25385   #
25386   if test "$PKGCONFIG" != "no"; then
25387     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
25388 $as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
25389     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
25390 $as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
25391     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
25392 $as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
25393     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
25394 $as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
25395   else
25396     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
25397 $as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
25398     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
25399 $as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
25400     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
25401 $as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
25402     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
25403 $as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
25404   fi
25405   #
25406   CPPFLAGS="$IDN_CPPFLAGS $CPPFLAGS"
25407   LDFLAGS="$IDN_LDFLAGS $LDFLAGS"
25408   LIBS="$IDN_LIBS $LIBS"
25409   #
25410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idna_to_ascii_4i can be linked" >&5
25411 $as_echo_n "checking if idna_to_ascii_4i can be linked... " >&6; }
25412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25413 /* end confdefs.h.  */
25414
25415
25416 #define idna_to_ascii_4i innocuous_idna_to_ascii_4i
25417 #ifdef __STDC__
25418 # include <limits.h>
25419 #else
25420 # include <assert.h>
25421 #endif
25422 #undef idna_to_ascii_4i
25423 #ifdef __cplusplus
25424 extern "C"
25425 #endif
25426 char idna_to_ascii_4i ();
25427 #if defined __stub_idna_to_ascii_4i || defined __stub___idna_to_ascii_4i
25428 choke me
25429 #endif
25430
25431 int main (void)
25432 {
25433 return idna_to_ascii_4i ();
25434  ;
25435  return 0;
25436 }
25437
25438 _ACEOF
25439 if ac_fn_c_try_link "$LINENO"; then :
25440
25441     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25442 $as_echo "yes" >&6; }
25443     tst_links_libidn="yes"
25444
25445 else
25446
25447     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25448 $as_echo "no" >&6; }
25449     tst_links_libidn="no"
25450
25451 fi
25452 rm -f core conftest.err conftest.$ac_objext \
25453     conftest$ac_exeext conftest.$ac_ext
25454   if test "$tst_links_libidn" = "no"; then
25455     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idna_to_ascii_lz can be linked" >&5
25456 $as_echo_n "checking if idna_to_ascii_lz can be linked... " >&6; }
25457     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25458 /* end confdefs.h.  */
25459
25460
25461 #define idna_to_ascii_lz innocuous_idna_to_ascii_lz
25462 #ifdef __STDC__
25463 # include <limits.h>
25464 #else
25465 # include <assert.h>
25466 #endif
25467 #undef idna_to_ascii_lz
25468 #ifdef __cplusplus
25469 extern "C"
25470 #endif
25471 char idna_to_ascii_lz ();
25472 #if defined __stub_idna_to_ascii_lz || defined __stub___idna_to_ascii_lz
25473 choke me
25474 #endif
25475
25476 int main (void)
25477 {
25478 return idna_to_ascii_lz ();
25479  ;
25480  return 0;
25481 }
25482
25483 _ACEOF
25484 if ac_fn_c_try_link "$LINENO"; then :
25485
25486       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25487 $as_echo "yes" >&6; }
25488       tst_links_libidn="yes"
25489
25490 else
25491
25492       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25493 $as_echo "no" >&6; }
25494       tst_links_libidn="no"
25495
25496 fi
25497 rm -f core conftest.err conftest.$ac_objext \
25498     conftest$ac_exeext conftest.$ac_ext
25499   fi
25500   #
25501   if test "$tst_links_libidn" = "yes"; then
25502
25503 $as_echo "#define HAVE_LIBIDN 1" >>confdefs.h
25504
25505         for ac_func in idn_free idna_strerror tld_strerror
25506 do :
25507   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25508 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25509 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25510   cat >>confdefs.h <<_ACEOF
25511 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25512 _ACEOF
25513
25514 fi
25515 done
25516
25517     for ac_header in idn-free.h tld.h
25518 do :
25519   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25520 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25521 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25522   cat >>confdefs.h <<_ACEOF
25523 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25524 _ACEOF
25525
25526 fi
25527
25528 done
25529
25530     if test "x$ac_cv_header_tld_h" = "xyes"; then
25531       IDN_ENABLED=1
25532
25533       curl_idn_msg="enabled"
25534       if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
25535         LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$IDN_DIR"
25536         export LD_LIBRARY_PATH
25537         { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to LD_LIBRARY_PATH" >&5
25538 $as_echo "$as_me: Added $IDN_DIR to LD_LIBRARY_PATH" >&6;}
25539       fi
25540     else
25541       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libraries for IDN support too old: IDN disabled" >&5
25542 $as_echo "$as_me: WARNING: Libraries for IDN support too old: IDN disabled" >&2;}
25543       CPPFLAGS="$clean_CPPFLAGS"
25544       LDFLAGS="$clean_LDFLAGS"
25545       LIBS="$clean_LIBS"
25546     fi
25547   else
25548     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
25549 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
25550     CPPFLAGS="$clean_CPPFLAGS"
25551     LDFLAGS="$clean_LDFLAGS"
25552     LIBS="$clean_LIBS"
25553   fi
25554 fi
25555
25556
25557
25558
25559
25560 OPT_H2="yes"
25561
25562 # Check whether --with-nghttp2 was given.
25563 if test "${with_nghttp2+set}" = set; then :
25564   withval=$with_nghttp2; OPT_H2=$withval
25565 fi
25566
25567 case "$OPT_H2" in
25568   no)
25569         want_h2="no"
25570     ;;
25571   yes)
25572         want_h2="default"
25573     want_h2_path=""
25574     ;;
25575   *)
25576         want_h2="yes"
25577     want_h2_path="$withval/lib/pkgconfig"
25578     ;;
25579 esac
25580
25581 curl_h2_msg="disabled (--with-nghttp2)"
25582 if test X"$want_h2" != Xno; then
25583     CLEANLDFLAGS="$LDFLAGS"
25584   CLEANCPPFLAGS="$CPPFLAGS"
25585   CLEANLIBS="$LIBS"
25586
25587
25588
25589     PKGCONFIG="no"
25590
25591     if test -n "$ac_tool_prefix"; then
25592   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25593 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25595 $as_echo_n "checking for $ac_word... " >&6; }
25596 if ${ac_cv_path_PKGCONFIG+:} false; then :
25597   $as_echo_n "(cached) " >&6
25598 else
25599   case $PKGCONFIG in
25600   [\\/]* | ?:[\\/]*)
25601   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25602   ;;
25603   *)
25604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25605 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25606 for as_dir in $as_dummy
25607 do
25608   IFS=$as_save_IFS
25609   test -z "$as_dir" && as_dir=.
25610     for ac_exec_ext in '' $ac_executable_extensions; do
25611   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25612     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25614     break 2
25615   fi
25616 done
25617   done
25618 IFS=$as_save_IFS
25619
25620   ;;
25621 esac
25622 fi
25623 PKGCONFIG=$ac_cv_path_PKGCONFIG
25624 if test -n "$PKGCONFIG"; then
25625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25626 $as_echo "$PKGCONFIG" >&6; }
25627 else
25628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25629 $as_echo "no" >&6; }
25630 fi
25631
25632
25633 fi
25634 if test -z "$ac_cv_path_PKGCONFIG"; then
25635   ac_pt_PKGCONFIG=$PKGCONFIG
25636   # Extract the first word of "pkg-config", so it can be a program name with args.
25637 set dummy pkg-config; ac_word=$2
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25639 $as_echo_n "checking for $ac_word... " >&6; }
25640 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25641   $as_echo_n "(cached) " >&6
25642 else
25643   case $ac_pt_PKGCONFIG in
25644   [\\/]* | ?:[\\/]*)
25645   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25646   ;;
25647   *)
25648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25649 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25650 for as_dir in $as_dummy
25651 do
25652   IFS=$as_save_IFS
25653   test -z "$as_dir" && as_dir=.
25654     for ac_exec_ext in '' $ac_executable_extensions; do
25655   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25656     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25658     break 2
25659   fi
25660 done
25661   done
25662 IFS=$as_save_IFS
25663
25664   ;;
25665 esac
25666 fi
25667 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25668 if test -n "$ac_pt_PKGCONFIG"; then
25669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25670 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25671 else
25672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25673 $as_echo "no" >&6; }
25674 fi
25675
25676   if test "x$ac_pt_PKGCONFIG" = x; then
25677     PKGCONFIG="no"
25678   else
25679     case $cross_compiling:$ac_tool_warned in
25680 yes:)
25681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25683 ac_tool_warned=yes ;;
25684 esac
25685     PKGCONFIG=$ac_pt_PKGCONFIG
25686   fi
25687 else
25688   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25689 fi
25690
25691
25692     if test x$PKGCONFIG != xno; then
25693       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
25694 $as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
25695             itexists=`
25696     if test -n "$want_h2_path"; then
25697       PKG_CONFIG_LIBDIR="$want_h2_path"
25698       export PKG_CONFIG_LIBDIR
25699     fi
25700          $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
25701
25702       if test -z "$itexists"; then
25703                         PKGCONFIG="no"
25704         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25705 $as_echo "no" >&6; }
25706       else
25707         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25708 $as_echo "found" >&6; }
25709       fi
25710     fi
25711
25712
25713   if test "$PKGCONFIG" != "no" ; then
25714     LIB_H2=`
25715     if test -n "$want_h2_path"; then
25716       PKG_CONFIG_LIBDIR="$want_h2_path"
25717       export PKG_CONFIG_LIBDIR
25718     fi
25719
25720       $PKGCONFIG --libs-only-l libnghttp2`
25721     { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
25722 $as_echo "$as_me: -l is $LIB_H2" >&6;}
25723
25724     CPP_H2=`
25725     if test -n "$want_h2_path"; then
25726       PKG_CONFIG_LIBDIR="$want_h2_path"
25727       export PKG_CONFIG_LIBDIR
25728     fi
25729        $PKGCONFIG --cflags-only-I libnghttp2`
25730     { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
25731 $as_echo "$as_me: -I is $CPP_H2" >&6;}
25732
25733     LD_H2=`
25734     if test -n "$want_h2_path"; then
25735       PKG_CONFIG_LIBDIR="$want_h2_path"
25736       export PKG_CONFIG_LIBDIR
25737     fi
25738
25739       $PKGCONFIG --libs-only-L libnghttp2`
25740     { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
25741 $as_echo "$as_me: -L is $LD_H2" >&6;}
25742
25743     LDFLAGS="$LDFLAGS $LD_H2"
25744     CPPFLAGS="$CPPFLAGS $CPP_H2"
25745     LIBS="$LIB_H2 $LIBS"
25746
25747     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_session_callbacks_set_send_callback in -lnghttp2" >&5
25748 $as_echo_n "checking for nghttp2_session_callbacks_set_send_callback in -lnghttp2... " >&6; }
25749 if ${ac_cv_lib_nghttp2_nghttp2_session_callbacks_set_send_callback+:} false; then :
25750   $as_echo_n "(cached) " >&6
25751 else
25752   ac_check_lib_save_LIBS=$LIBS
25753 LIBS="-lnghttp2  $LIBS"
25754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25755 /* end confdefs.h.  */
25756
25757
25758 #ifdef __cplusplus
25759 extern "C"
25760 #endif
25761 char nghttp2_session_callbacks_set_send_callback ();
25762 int main (void)
25763 {
25764 return nghttp2_session_callbacks_set_send_callback ();
25765  ;
25766  return 0;
25767 }
25768 _ACEOF
25769 if ac_fn_c_try_link "$LINENO"; then :
25770   ac_cv_lib_nghttp2_nghttp2_session_callbacks_set_send_callback=yes
25771 else
25772   ac_cv_lib_nghttp2_nghttp2_session_callbacks_set_send_callback=no
25773 fi
25774 rm -f core conftest.err conftest.$ac_objext \
25775     conftest$ac_exeext conftest.$ac_ext
25776 LIBS=$ac_check_lib_save_LIBS
25777 fi
25778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_session_callbacks_set_send_callback" >&5
25779 $as_echo "$ac_cv_lib_nghttp2_nghttp2_session_callbacks_set_send_callback" >&6; }
25780 if test "x$ac_cv_lib_nghttp2_nghttp2_session_callbacks_set_send_callback" = xyes; then :
25781
25782        for ac_header in nghttp2/nghttp2.h
25783 do :
25784   ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
25785 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
25786   cat >>confdefs.h <<_ACEOF
25787 #define HAVE_NGHTTP2_NGHTTP2_H 1
25788 _ACEOF
25789  curl_h2_msg="enabled (nghttp2)"
25790           NGHTTP2_ENABLED=1
25791
25792 $as_echo "#define USE_NGHTTP2 1" >>confdefs.h
25793
25794           USE_NGHTTP2=1
25795
25796
25797 fi
25798
25799 done
25800
25801
25802 else
25803           LDFLAGS=$CLEANLDFLAGS
25804         CPPFLAGS=$CLEANCPPFLAGS
25805         LIBS=$CLEANLIBS
25806
25807 fi
25808
25809
25810   else
25811         if test X"$want_h2" != Xdefault; then
25812                   as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
25813     fi
25814   fi
25815
25816 fi
25817
25818
25819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25820 $as_echo_n "checking for ANSI C header files... " >&6; }
25821 if ${ac_cv_header_stdc+:} false; then :
25822   $as_echo_n "(cached) " >&6
25823 else
25824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25825 /* end confdefs.h.  */
25826 #include <stdlib.h>
25827 #include <stdarg.h>
25828 #include <string.h>
25829 #include <float.h>
25830
25831 int main (void)
25832 {
25833
25834  ;
25835  return 0;
25836 }
25837 _ACEOF
25838 if ac_fn_c_try_compile "$LINENO"; then :
25839   ac_cv_header_stdc=yes
25840 else
25841   ac_cv_header_stdc=no
25842 fi
25843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25844
25845 if test $ac_cv_header_stdc = yes; then
25846   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25848 /* end confdefs.h.  */
25849 #include <string.h>
25850
25851 _ACEOF
25852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25853   $EGREP "memchr" >/dev/null 2>&1; then :
25854
25855 else
25856   ac_cv_header_stdc=no
25857 fi
25858 rm -f conftest*
25859
25860 fi
25861
25862 if test $ac_cv_header_stdc = yes; then
25863   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25865 /* end confdefs.h.  */
25866 #include <stdlib.h>
25867
25868 _ACEOF
25869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25870   $EGREP "free" >/dev/null 2>&1; then :
25871
25872 else
25873   ac_cv_header_stdc=no
25874 fi
25875 rm -f conftest*
25876
25877 fi
25878
25879 if test $ac_cv_header_stdc = yes; then
25880   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25881   if test "$cross_compiling" = yes; then :
25882   :
25883 else
25884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25885 /* end confdefs.h.  */
25886 #include <ctype.h>
25887 #include <stdlib.h>
25888 #if ((' ' & 0x0FF) == 0x020)
25889 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25890 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25891 #else
25892 # define ISLOWER(c) \
25893                    (('a' <= (c) && (c) <= 'i') \
25894                      || ('j' <= (c) && (c) <= 'r') \
25895                      || ('s' <= (c) && (c) <= 'z'))
25896 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25897 #endif
25898
25899 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25900 int
25901 main ()
25902 {
25903   int i;
25904   for (i = 0; i < 256; i++)
25905     if (XOR (islower (i), ISLOWER (i))
25906         || toupper (i) != TOUPPER (i))
25907       return 2;
25908   return 0;
25909 }
25910 _ACEOF
25911 if ac_fn_c_try_run "$LINENO"; then :
25912
25913 else
25914   ac_cv_header_stdc=no
25915 fi
25916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25917   conftest.$ac_objext conftest.beam conftest.$ac_ext
25918 fi
25919
25920 fi
25921 fi
25922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25923 $as_echo "$ac_cv_header_stdc" >&6; }
25924 if test $ac_cv_header_stdc = yes; then
25925
25926 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25927
25928 fi
25929
25930
25931
25932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
25933 $as_echo_n "checking for malloc.h... " >&6; }
25934 if ${ac_cv_header_malloc_h+:} false; then :
25935   $as_echo_n "(cached) " >&6
25936 else
25937
25938     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25939 /* end confdefs.h.  */
25940
25941
25942 #include <malloc.h>
25943
25944 int main (void)
25945 {
25946
25947         void *p = malloc(10);
25948         void *q = calloc(10,10);
25949         free(p);
25950         free(q);
25951
25952  ;
25953  return 0;
25954 }
25955
25956 _ACEOF
25957 if ac_fn_c_try_compile "$LINENO"; then :
25958
25959       ac_cv_header_malloc_h="yes"
25960
25961 else
25962
25963       ac_cv_header_malloc_h="no"
25964
25965 fi
25966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25967
25968 fi
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_malloc_h" >&5
25970 $as_echo "$ac_cv_header_malloc_h" >&6; }
25971   if test "$ac_cv_header_malloc_h" = "yes"; then
25972
25973 cat >>confdefs.h <<_ACEOF
25974 #define HAVE_MALLOC_H 1
25975 _ACEOF
25976
25977     #
25978     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25979 /* end confdefs.h.  */
25980
25981
25982 #include <stdlib.h>
25983
25984 int main (void)
25985 {
25986
25987         void *p = malloc(10);
25988         void *q = calloc(10,10);
25989         free(p);
25990         free(q);
25991
25992  ;
25993  return 0;
25994 }
25995
25996 _ACEOF
25997 if ac_fn_c_try_compile "$LINENO"; then :
25998
25999       curl_cv_need_header_malloc_h="no"
26000
26001 else
26002
26003       curl_cv_need_header_malloc_h="yes"
26004
26005 fi
26006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26007     #
26008     case "$curl_cv_need_header_malloc_h" in
26009       yes)
26010
26011 cat >>confdefs.h <<_ACEOF
26012 #define NEED_MALLOC_H 1
26013 _ACEOF
26014
26015         ;;
26016     esac
26017   fi
26018
26019
26020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
26021 $as_echo_n "checking for memory.h... " >&6; }
26022 if ${ac_cv_header_memory_h+:} false; then :
26023   $as_echo_n "(cached) " >&6
26024 else
26025
26026     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26027 /* end confdefs.h.  */
26028
26029
26030 #include <memory.h>
26031
26032 int main (void)
26033 {
26034
26035         void *p = malloc(10);
26036         void *q = calloc(10,10);
26037         free(p);
26038         free(q);
26039
26040  ;
26041  return 0;
26042 }
26043
26044 _ACEOF
26045 if ac_fn_c_try_compile "$LINENO"; then :
26046
26047       ac_cv_header_memory_h="yes"
26048
26049 else
26050
26051       ac_cv_header_memory_h="no"
26052
26053 fi
26054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26055
26056 fi
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_memory_h" >&5
26058 $as_echo "$ac_cv_header_memory_h" >&6; }
26059   if test "$ac_cv_header_memory_h" = "yes"; then
26060
26061 cat >>confdefs.h <<_ACEOF
26062 #define HAVE_MEMORY_H 1
26063 _ACEOF
26064
26065     #
26066     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26067 /* end confdefs.h.  */
26068
26069
26070 #include <stdlib.h>
26071
26072 int main (void)
26073 {
26074
26075         void *p = malloc(10);
26076         void *q = calloc(10,10);
26077         free(p);
26078         free(q);
26079
26080  ;
26081  return 0;
26082 }
26083
26084 _ACEOF
26085 if ac_fn_c_try_compile "$LINENO"; then :
26086
26087       curl_cv_need_header_memory_h="no"
26088
26089 else
26090
26091       curl_cv_need_header_memory_h="yes"
26092
26093 fi
26094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26095     #
26096     case "$curl_cv_need_header_memory_h" in
26097       yes)
26098
26099 cat >>confdefs.h <<_ACEOF
26100 #define NEED_MEMORY_H 1
26101 _ACEOF
26102
26103         ;;
26104     esac
26105   fi
26106
26107
26108 for ac_header in sys/types.h \
26109         sys/time.h \
26110         sys/select.h \
26111         sys/socket.h \
26112         sys/ioctl.h \
26113         sys/uio.h \
26114         assert.h \
26115         unistd.h \
26116         stdlib.h \
26117         limits.h \
26118         arpa/inet.h \
26119         net/if.h \
26120         netinet/in.h \
26121         sys/un.h \
26122         netinet/tcp.h \
26123         netdb.h \
26124         sys/sockio.h \
26125         sys/stat.h \
26126         sys/param.h \
26127         termios.h \
26128         termio.h \
26129         sgtty.h \
26130         fcntl.h \
26131         alloca.h \
26132         time.h \
26133         io.h \
26134         pwd.h \
26135         utime.h \
26136         sys/utime.h \
26137         sys/poll.h \
26138         poll.h \
26139         socket.h \
26140         sys/resource.h \
26141         libgen.h \
26142         locale.h \
26143         errno.h \
26144         stdbool.h \
26145         arpa/tftp.h \
26146         sys/filio.h \
26147         sys/wait.h \
26148         setjmp.h
26149 do :
26150   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26151 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
26152 #ifdef HAVE_SYS_TYPES_H
26153 #include <sys/types.h>
26154 #endif
26155 #ifdef HAVE_SYS_TIME_H
26156 #include <sys/time.h>
26157 #endif
26158 #ifdef HAVE_SYS_SELECT_H
26159 #include <sys/select.h>
26160 #endif
26161 #ifdef HAVE_SYS_SOCKET_H
26162 #include <sys/socket.h>
26163 #endif
26164 #ifdef HAVE_NETINET_IN_H
26165 #include <netinet/in.h>
26166 #endif
26167 #ifdef HAVE_SYS_UN_H
26168 #include <sys/un.h>
26169 #endif
26170
26171
26172 "
26173 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26174   cat >>confdefs.h <<_ACEOF
26175 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26176 _ACEOF
26177
26178 fi
26179
26180 done
26181
26182
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26184 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26185 if ${ac_cv_c_const+:} false; then :
26186   $as_echo_n "(cached) " >&6
26187 else
26188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26189 /* end confdefs.h.  */
26190
26191 int main (void)
26192 {
26193
26194 #ifndef __cplusplus
26195   /* Ultrix mips cc rejects this sort of thing.  */
26196   typedef int charset[2];
26197   const charset cs = { 0, 0 };
26198   /* SunOS 4.1.1 cc rejects this.  */
26199   char const *const *pcpcc;
26200   char **ppc;
26201   /* NEC SVR4.0.2 mips cc rejects this.  */
26202   struct point {int x, y;};
26203   static struct point const zero = {0,0};
26204   /* AIX XL C 1.02.0.0 rejects this.
26205      It does not let you subtract one const X* pointer from another in
26206      an arm of an if-expression whose if-part is not a constant
26207      expression */
26208   const char *g = "string";
26209   pcpcc = &g + (g ? g-g : 0);
26210   /* HPUX 7.0 cc rejects these. */
26211   ++pcpcc;
26212   ppc = (char**) pcpcc;
26213   pcpcc = (char const *const *) ppc;
26214   { /* SCO 3.2v4 cc rejects this sort of thing.  */
26215     char tx;
26216     char *t = &tx;
26217     char const *s = 0 ? (char *) 0 : (char const *) 0;
26218
26219     *t++ = 0;
26220     if (s) return 0;
26221   }
26222   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26223     int x[] = {25, 17};
26224     const int *foo = &x[0];
26225     ++foo;
26226   }
26227   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26228     typedef const int *iptr;
26229     iptr p = 0;
26230     ++p;
26231   }
26232   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26233        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26234     struct s { int j; const int *ap[3]; } bx;
26235     struct s *b = &bx; b->j = 5;
26236   }
26237   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26238     const int foo = 10;
26239     if (!foo) return 0;
26240   }
26241   return !cs[0] && !zero.x;
26242 #endif
26243
26244  ;
26245  return 0;
26246 }
26247 _ACEOF
26248 if ac_fn_c_try_compile "$LINENO"; then :
26249   ac_cv_c_const=yes
26250 else
26251   ac_cv_c_const=no
26252 fi
26253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26254 fi
26255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26256 $as_echo "$ac_cv_c_const" >&6; }
26257 if test $ac_cv_c_const = no; then
26258
26259 $as_echo "#define const /**/" >>confdefs.h
26260
26261 fi
26262
26263
26264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
26265 $as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
26266 if ${curl_cv_variadic_macros_c99+:} false; then :
26267   $as_echo_n "(cached) " >&6
26268 else
26269
26270     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26271 /* end confdefs.h.  */
26272
26273
26274 #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
26275 #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
26276         int fun3(int arg1, int arg2, int arg3);
26277         int fun2(int arg1, int arg2);
26278         int fun3(int arg1, int arg2, int arg3)
26279         { return arg1 + arg2 + arg3; }
26280         int fun2(int arg1, int arg2)
26281         { return arg1 + arg2; }
26282
26283 int main (void)
26284 {
26285
26286         int res3 = c99_vmacro3(1, 2, 3);
26287         int res2 = c99_vmacro2(1, 2);
26288
26289  ;
26290  return 0;
26291 }
26292
26293 _ACEOF
26294 if ac_fn_c_try_compile "$LINENO"; then :
26295
26296       curl_cv_variadic_macros_c99="yes"
26297
26298 else
26299
26300       curl_cv_variadic_macros_c99="no"
26301
26302 fi
26303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26304
26305 fi
26306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
26307 $as_echo "$curl_cv_variadic_macros_c99" >&6; }
26308   case "$curl_cv_variadic_macros_c99" in
26309     yes)
26310
26311 cat >>confdefs.h <<_ACEOF
26312 #define HAVE_VARIADIC_MACROS_C99 1
26313 _ACEOF
26314
26315       ;;
26316   esac
26317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
26318 $as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
26319 if ${curl_cv_variadic_macros_gcc+:} false; then :
26320   $as_echo_n "(cached) " >&6
26321 else
26322
26323     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26324 /* end confdefs.h.  */
26325
26326
26327 #define gcc_vmacro3(first, args...) fun3(first, args)
26328 #define gcc_vmacro2(first, args...) fun2(first, args)
26329         int fun3(int arg1, int arg2, int arg3);
26330         int fun2(int arg1, int arg2);
26331         int fun3(int arg1, int arg2, int arg3)
26332         { return arg1 + arg2 + arg3; }
26333         int fun2(int arg1, int arg2)
26334         { return arg1 + arg2; }
26335
26336 int main (void)
26337 {
26338
26339         int res3 = gcc_vmacro3(1, 2, 3);
26340         int res2 = gcc_vmacro2(1, 2);
26341
26342  ;
26343  return 0;
26344 }
26345
26346 _ACEOF
26347 if ac_fn_c_try_compile "$LINENO"; then :
26348
26349       curl_cv_variadic_macros_gcc="yes"
26350
26351 else
26352
26353       curl_cv_variadic_macros_gcc="no"
26354
26355 fi
26356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26357
26358 fi
26359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
26360 $as_echo "$curl_cv_variadic_macros_gcc" >&6; }
26361   case "$curl_cv_variadic_macros_gcc" in
26362     yes)
26363
26364 cat >>confdefs.h <<_ACEOF
26365 #define HAVE_VARIADIC_MACROS_GCC 1
26366 _ACEOF
26367
26368       ;;
26369   esac
26370
26371 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26372 if test "x$ac_cv_type_size_t" = xyes; then :
26373
26374 else
26375
26376 cat >>confdefs.h <<_ACEOF
26377 #define size_t unsigned int
26378 _ACEOF
26379
26380 fi
26381
26382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26383 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26384 if ${ac_cv_header_time+:} false; then :
26385   $as_echo_n "(cached) " >&6
26386 else
26387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26388 /* end confdefs.h.  */
26389 #include <sys/types.h>
26390 #include <sys/time.h>
26391 #include <time.h>
26392
26393 int main (void)
26394 {
26395 if ((struct tm *) 0)
26396 return 0;
26397  ;
26398  return 0;
26399 }
26400 _ACEOF
26401 if ac_fn_c_try_compile "$LINENO"; then :
26402   ac_cv_header_time=yes
26403 else
26404   ac_cv_header_time=no
26405 fi
26406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26407 fi
26408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26409 $as_echo "$ac_cv_header_time" >&6; }
26410 if test $ac_cv_header_time = yes; then
26411
26412 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26413
26414 fi
26415
26416
26417         for ac_header in sys/types.h sys/time.h time.h sys/socket.h
26418 do :
26419   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26420 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26421 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26422   cat >>confdefs.h <<_ACEOF
26423 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26424 _ACEOF
26425
26426 fi
26427
26428 done
26429
26430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
26431 $as_echo_n "checking for struct timeval... " >&6; }
26432 if ${ac_cv_struct_timeval+:} false; then :
26433   $as_echo_n "(cached) " >&6
26434 else
26435
26436     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26437 /* end confdefs.h.  */
26438
26439
26440 #undef inline
26441 #ifdef HAVE_WINDOWS_H
26442 #ifndef WIN32_LEAN_AND_MEAN
26443 #define WIN32_LEAN_AND_MEAN
26444 #endif
26445 #include <windows.h>
26446 #ifdef HAVE_WINSOCK2_H
26447 #include <winsock2.h>
26448 #else
26449 #ifdef HAVE_WINSOCK_H
26450 #include <winsock.h>
26451 #endif
26452 #endif
26453 #endif
26454 #ifdef HAVE_SYS_TYPES_H
26455 #include <sys/types.h>
26456 #endif
26457 #ifdef HAVE_SYS_TIME_H
26458 #include <sys/time.h>
26459 #ifdef TIME_WITH_SYS_TIME
26460 #include <time.h>
26461 #endif
26462 #else
26463 #ifdef HAVE_TIME_H
26464 #include <time.h>
26465 #endif
26466 #endif
26467 #ifdef HAVE_SYS_SOCKET_H
26468 #include <sys/socket.h>
26469 #endif
26470
26471 int main (void)
26472 {
26473
26474         struct timeval ts;
26475         ts.tv_sec  = 0;
26476         ts.tv_usec = 0;
26477
26478  ;
26479  return 0;
26480 }
26481
26482 _ACEOF
26483 if ac_fn_c_try_compile "$LINENO"; then :
26484
26485       ac_cv_struct_timeval="yes"
26486
26487 else
26488
26489       ac_cv_struct_timeval="no"
26490
26491 fi
26492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26493
26494 fi
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timeval" >&5
26496 $as_echo "$ac_cv_struct_timeval" >&6; }
26497   case "$ac_cv_struct_timeval" in
26498     yes)
26499
26500 cat >>confdefs.h <<_ACEOF
26501 #define HAVE_STRUCT_TIMEVAL 1
26502 _ACEOF
26503
26504       ;;
26505   esac
26506
26507
26508
26509     if test "x$cross_compiling" != xyes; then
26510
26511             { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
26512 $as_echo_n "checking run-time libs availability... " >&6; }
26513     if test "$cross_compiling" = yes; then :
26514   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26516 as_fn_error $? "cannot run test program while cross compiling
26517 See \`config.log' for more details" "$LINENO" 5; }
26518 else
26519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26520 /* end confdefs.h.  */
26521
26522 main()
26523 {
26524   return 0;
26525 }
26526
26527 _ACEOF
26528 if ac_fn_c_try_run "$LINENO"; then :
26529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
26530 $as_echo "fine" >&6; }
26531 else
26532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
26533 $as_echo "failed" >&6; }
26534     as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
26535
26536 fi
26537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26538   conftest.$ac_objext conftest.beam conftest.$ac_ext
26539 fi
26540
26541
26542       fi
26543
26544
26545 # The cast to long int works around a bug in the HP C Compiler
26546 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26547 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26548 # This bug is HP SR number 8606223364.
26549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
26550 $as_echo_n "checking size of size_t... " >&6; }
26551 if ${ac_cv_sizeof_size_t+:} false; then :
26552   $as_echo_n "(cached) " >&6
26553 else
26554   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
26555
26556 else
26557   if test "$ac_cv_type_size_t" = yes; then
26558      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26560 as_fn_error 77 "cannot compute sizeof (size_t)
26561 See \`config.log' for more details" "$LINENO" 5; }
26562    else
26563      ac_cv_sizeof_size_t=0
26564    fi
26565 fi
26566
26567 fi
26568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
26569 $as_echo "$ac_cv_sizeof_size_t" >&6; }
26570
26571
26572
26573 cat >>confdefs.h <<_ACEOF
26574 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
26575 _ACEOF
26576
26577
26578 # The cast to long int works around a bug in the HP C Compiler
26579 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26580 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26581 # This bug is HP SR number 8606223364.
26582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
26583 $as_echo_n "checking size of long... " >&6; }
26584 if ${ac_cv_sizeof_long+:} false; then :
26585   $as_echo_n "(cached) " >&6
26586 else
26587   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
26588
26589 else
26590   if test "$ac_cv_type_long" = yes; then
26591      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26593 as_fn_error 77 "cannot compute sizeof (long)
26594 See \`config.log' for more details" "$LINENO" 5; }
26595    else
26596      ac_cv_sizeof_long=0
26597    fi
26598 fi
26599
26600 fi
26601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
26602 $as_echo "$ac_cv_sizeof_long" >&6; }
26603
26604
26605
26606 cat >>confdefs.h <<_ACEOF
26607 #define SIZEOF_LONG $ac_cv_sizeof_long
26608 _ACEOF
26609
26610
26611 # The cast to long int works around a bug in the HP C Compiler
26612 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26613 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26614 # This bug is HP SR number 8606223364.
26615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26616 $as_echo_n "checking size of int... " >&6; }
26617 if ${ac_cv_sizeof_int+:} false; then :
26618   $as_echo_n "(cached) " >&6
26619 else
26620   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
26621
26622 else
26623   if test "$ac_cv_type_int" = yes; then
26624      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26626 as_fn_error 77 "cannot compute sizeof (int)
26627 See \`config.log' for more details" "$LINENO" 5; }
26628    else
26629      ac_cv_sizeof_int=0
26630    fi
26631 fi
26632
26633 fi
26634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26635 $as_echo "$ac_cv_sizeof_int" >&6; }
26636
26637
26638
26639 cat >>confdefs.h <<_ACEOF
26640 #define SIZEOF_INT $ac_cv_sizeof_int
26641 _ACEOF
26642
26643
26644 # The cast to long int works around a bug in the HP C Compiler
26645 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26646 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26647 # This bug is HP SR number 8606223364.
26648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
26649 $as_echo_n "checking size of short... " >&6; }
26650 if ${ac_cv_sizeof_short+:} false; then :
26651   $as_echo_n "(cached) " >&6
26652 else
26653   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
26654
26655 else
26656   if test "$ac_cv_type_short" = yes; then
26657      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26659 as_fn_error 77 "cannot compute sizeof (short)
26660 See \`config.log' for more details" "$LINENO" 5; }
26661    else
26662      ac_cv_sizeof_short=0
26663    fi
26664 fi
26665
26666 fi
26667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
26668 $as_echo "$ac_cv_sizeof_short" >&6; }
26669
26670
26671
26672 cat >>confdefs.h <<_ACEOF
26673 #define SIZEOF_SHORT $ac_cv_sizeof_short
26674 _ACEOF
26675
26676
26677
26678   if test -z "$ac_cv_sizeof_long" ||
26679     test "$ac_cv_sizeof_long" -eq "0"; then
26680     as_fn_error $? "cannot find out size of long." "$LINENO" 5
26681   fi
26682
26683 cat >>confdefs.h <<_EOF
26684 #define CURL_SIZEOF_LONG $ac_cv_sizeof_long
26685 _EOF
26686
26687
26688 # The cast to long int works around a bug in the HP C Compiler
26689 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26690 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26691 # This bug is HP SR number 8606223364.
26692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
26693 $as_echo_n "checking size of time_t... " >&6; }
26694 if ${ac_cv_sizeof_time_t+:} false; then :
26695   $as_echo_n "(cached) " >&6
26696 else
26697   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
26698
26699 else
26700   if test "$ac_cv_type_time_t" = yes; then
26701      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26703 as_fn_error 77 "cannot compute sizeof (time_t)
26704 See \`config.log' for more details" "$LINENO" 5; }
26705    else
26706      ac_cv_sizeof_time_t=0
26707    fi
26708 fi
26709
26710 fi
26711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
26712 $as_echo "$ac_cv_sizeof_time_t" >&6; }
26713
26714
26715
26716 cat >>confdefs.h <<_ACEOF
26717 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
26718 _ACEOF
26719
26720
26721 # The cast to long int works around a bug in the HP C Compiler
26722 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26723 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26724 # This bug is HP SR number 8606223364.
26725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
26726 $as_echo_n "checking size of off_t... " >&6; }
26727 if ${ac_cv_sizeof_off_t+:} false; then :
26728   $as_echo_n "(cached) " >&6
26729 else
26730   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
26731
26732 else
26733   if test "$ac_cv_type_off_t" = yes; then
26734      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26736 as_fn_error 77 "cannot compute sizeof (off_t)
26737 See \`config.log' for more details" "$LINENO" 5; }
26738    else
26739      ac_cv_sizeof_off_t=0
26740    fi
26741 fi
26742
26743 fi
26744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
26745 $as_echo "$ac_cv_sizeof_off_t" >&6; }
26746
26747
26748
26749 cat >>confdefs.h <<_ACEOF
26750 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
26751 _ACEOF
26752
26753
26754
26755 soname_bump=no
26756 if test x"$ac_cv_native_windows" != "xyes" &&
26757    test $ac_cv_sizeof_off_t -ne $curl_sizeof_curl_off_t; then
26758   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This libcurl built is probably not ABI compatible with previous" >&5
26759 $as_echo "$as_me: WARNING: This libcurl built is probably not ABI compatible with previous" >&2;}
26760   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&5
26761 $as_echo "$as_me: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&2;}
26762   soname_bump=yes
26763 fi
26764
26765
26766 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
26767 if test "x$ac_cv_type_long_long" = xyes; then :
26768
26769 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
26770
26771    longlong="yes"
26772
26773 fi
26774
26775
26776 if test "xyes" = "x$longlong"; then
26777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
26778 $as_echo_n "checking if numberLL works... " >&6; }
26779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26780 /* end confdefs.h.  */
26781
26782
26783
26784 int main (void)
26785 {
26786
26787       long long val = 1000LL;
26788
26789  ;
26790  return 0;
26791 }
26792
26793 _ACEOF
26794 if ac_fn_c_try_compile "$LINENO"; then :
26795
26796     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26797 $as_echo "yes" >&6; }
26798
26799 $as_echo "#define HAVE_LL 1" >>confdefs.h
26800
26801
26802 else
26803
26804     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26805 $as_echo "no" >&6; }
26806
26807 fi
26808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26809 fi
26810
26811
26812 # check for ssize_t
26813 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26814 if test "x$ac_cv_type_ssize_t" = xyes; then :
26815
26816 else
26817
26818 $as_echo "#define ssize_t int" >>confdefs.h
26819
26820 fi
26821
26822
26823 # check for bool type
26824 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
26825 #ifdef HAVE_SYS_TYPES_H
26826 #include <sys/types.h>
26827 #endif
26828 #ifdef HAVE_STDBOOL_H
26829 #include <stdbool.h>
26830 #endif
26831
26832 "
26833 if test "x$ac_cv_type_bool" = xyes; then :
26834
26835
26836 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
26837
26838
26839 fi
26840
26841
26842
26843 curl_includes_ws2tcpip="\
26844 /* includes start */
26845 #ifdef HAVE_WINDOWS_H
26846 #  ifndef WIN32_LEAN_AND_MEAN
26847 #    define WIN32_LEAN_AND_MEAN
26848 #  endif
26849 #  include <windows.h>
26850 #  ifdef HAVE_WINSOCK2_H
26851 #    include <winsock2.h>
26852 #    ifdef HAVE_WS2TCPIP_H
26853 #       include <ws2tcpip.h>
26854 #    endif
26855 #  endif
26856 #endif
26857 /* includes end */"
26858
26859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
26860 $as_echo_n "checking for windows.h... " >&6; }
26861 if ${ac_cv_header_windows_h+:} false; then :
26862   $as_echo_n "(cached) " >&6
26863 else
26864
26865     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26866 /* end confdefs.h.  */
26867
26868
26869 #undef inline
26870 #ifndef WIN32_LEAN_AND_MEAN
26871 #define WIN32_LEAN_AND_MEAN
26872 #endif
26873 #include <windows.h>
26874
26875 int main (void)
26876 {
26877
26878 #if defined(__CYGWIN__) || defined(__CEGCC__)
26879         HAVE_WINDOWS_H shall not be defined.
26880 #else
26881         int dummy=2*WINVER;
26882 #endif
26883
26884  ;
26885  return 0;
26886 }
26887
26888 _ACEOF
26889 if ac_fn_c_try_compile "$LINENO"; then :
26890
26891       ac_cv_header_windows_h="yes"
26892
26893 else
26894
26895       ac_cv_header_windows_h="no"
26896
26897 fi
26898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26899
26900 fi
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
26902 $as_echo "$ac_cv_header_windows_h" >&6; }
26903   case "$ac_cv_header_windows_h" in
26904     yes)
26905
26906 cat >>confdefs.h <<_ACEOF
26907 #define HAVE_WINDOWS_H 1
26908 _ACEOF
26909
26910
26911 cat >>confdefs.h <<_ACEOF
26912 #define WIN32_LEAN_AND_MEAN 1
26913 _ACEOF
26914
26915       ;;
26916   esac
26917
26918
26919     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
26920 $as_echo_n "checking for winsock2.h... " >&6; }
26921 if ${ac_cv_header_winsock2_h+:} false; then :
26922   $as_echo_n "(cached) " >&6
26923 else
26924
26925     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26926 /* end confdefs.h.  */
26927
26928
26929 #undef inline
26930 #ifndef WIN32_LEAN_AND_MEAN
26931 #define WIN32_LEAN_AND_MEAN
26932 #endif
26933 #include <windows.h>
26934 #include <winsock2.h>
26935
26936 int main (void)
26937 {
26938
26939 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
26940         HAVE_WINSOCK2_H shall not be defined.
26941 #else
26942         int dummy=2*IPPROTO_ESP;
26943 #endif
26944
26945  ;
26946  return 0;
26947 }
26948
26949 _ACEOF
26950 if ac_fn_c_try_compile "$LINENO"; then :
26951
26952       ac_cv_header_winsock2_h="yes"
26953
26954 else
26955
26956       ac_cv_header_winsock2_h="no"
26957
26958 fi
26959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26960
26961 fi
26962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
26963 $as_echo "$ac_cv_header_winsock2_h" >&6; }
26964   case "$ac_cv_header_winsock2_h" in
26965     yes)
26966
26967 cat >>confdefs.h <<_ACEOF
26968 #define HAVE_WINSOCK2_H 1
26969 _ACEOF
26970
26971       ;;
26972   esac
26973
26974
26975     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
26976 $as_echo_n "checking for ws2tcpip.h... " >&6; }
26977 if ${ac_cv_header_ws2tcpip_h+:} false; then :
26978   $as_echo_n "(cached) " >&6
26979 else
26980
26981     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26982 /* end confdefs.h.  */
26983
26984
26985 #undef inline
26986 #ifndef WIN32_LEAN_AND_MEAN
26987 #define WIN32_LEAN_AND_MEAN
26988 #endif
26989 #include <windows.h>
26990 #include <winsock2.h>
26991 #include <ws2tcpip.h>
26992
26993 int main (void)
26994 {
26995
26996 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
26997         HAVE_WS2TCPIP_H shall not be defined.
26998 #else
26999         int dummy=2*IP_PKTINFO;
27000 #endif
27001
27002  ;
27003  return 0;
27004 }
27005
27006 _ACEOF
27007 if ac_fn_c_try_compile "$LINENO"; then :
27008
27009       ac_cv_header_ws2tcpip_h="yes"
27010
27011 else
27012
27013       ac_cv_header_ws2tcpip_h="no"
27014
27015 fi
27016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27017
27018 fi
27019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
27020 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
27021   case "$ac_cv_header_ws2tcpip_h" in
27022     yes)
27023
27024 cat >>confdefs.h <<_ACEOF
27025 #define HAVE_WS2TCPIP_H 1
27026 _ACEOF
27027
27028       ;;
27029   esac
27030
27031
27032
27033 curl_includes_sys_socket="\
27034 /* includes start */
27035 #ifdef HAVE_SYS_TYPES_H
27036 #  include <sys/types.h>
27037 #endif
27038 #ifdef HAVE_SYS_SOCKET_H
27039 #  include <sys/socket.h>
27040 #endif
27041 /* includes end */"
27042   for ac_header in sys/types.h sys/socket.h
27043 do :
27044   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27045 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
27046 "
27047 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27048   cat >>confdefs.h <<_ACEOF
27049 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27050 _ACEOF
27051
27052 fi
27053
27054 done
27055
27056
27057
27058 curl_preprocess_callconv="\
27059 /* preprocess start */
27060 #ifdef HAVE_WINDOWS_H
27061 #  define FUNCALLCONV __stdcall
27062 #else
27063 #  define FUNCALLCONV
27064 #endif
27065 /* preprocess end */"
27066
27067
27068         #
27069     #
27070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5
27071 $as_echo_n "checking for curl_socklen_t data type... " >&6; }
27072   curl_typeof_curl_socklen_t="unknown"
27073   for arg1 in int SOCKET; do
27074     for arg2 in 'struct sockaddr' void; do
27075       for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
27076         if test "$curl_typeof_curl_socklen_t" = "unknown"; then
27077           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27078 /* end confdefs.h.  */
27079
27080
27081               $curl_includes_ws2tcpip
27082               $curl_includes_sys_socket
27083               $curl_preprocess_callconv
27084               extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
27085
27086 int main (void)
27087 {
27088
27089               $t *lenptr = 0;
27090               if(0 != getpeername(0, 0, lenptr))
27091                 return 1;
27092
27093  ;
27094  return 0;
27095 }
27096
27097 _ACEOF
27098 if ac_fn_c_try_compile "$LINENO"; then :
27099
27100             curl_typeof_curl_socklen_t="$t"
27101
27102 fi
27103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27104         fi
27105       done
27106     done
27107   done
27108   for t in socklen_t int; do
27109     if test "$curl_typeof_curl_socklen_t" = "void"; then
27110       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27111 /* end confdefs.h.  */
27112
27113
27114           $curl_includes_sys_socket
27115           typedef $t curl_socklen_t;
27116
27117 int main (void)
27118 {
27119
27120           curl_socklen_t dummy;
27121
27122  ;
27123  return 0;
27124 }
27125
27126 _ACEOF
27127 if ac_fn_c_try_compile "$LINENO"; then :
27128
27129         curl_typeof_curl_socklen_t="$t"
27130
27131 fi
27132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27133     fi
27134   done
27135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5
27136 $as_echo "$curl_typeof_curl_socklen_t" >&6; }
27137   if test "$curl_typeof_curl_socklen_t" = "void" ||
27138     test "$curl_typeof_curl_socklen_t" = "unknown"; then
27139     as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5
27140   fi
27141   #
27142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5
27143 $as_echo_n "checking size of curl_socklen_t... " >&6; }
27144   curl_sizeof_curl_socklen_t="unknown"
27145   curl_pull_headers_socklen_t="unknown"
27146   if test "$ac_cv_header_ws2tcpip_h" = "yes"; then
27147     tst_pull_header_checks='none ws2tcpip'
27148     tst_size_checks='4'
27149   else
27150     tst_pull_header_checks='none systypes syssocket'
27151     tst_size_checks='4 8 2'
27152   fi
27153   for tst_size in $tst_size_checks; do
27154     for tst_pull_headers in $tst_pull_header_checks; do
27155       if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
27156         case $tst_pull_headers in
27157           ws2tcpip)
27158             tmp_includes="$curl_includes_ws2tcpip"
27159             ;;
27160           systypes)
27161             tmp_includes="$curl_includes_sys_types"
27162             ;;
27163           syssocket)
27164             tmp_includes="$curl_includes_sys_socket"
27165             ;;
27166           *)
27167             tmp_includes=""
27168             ;;
27169         esac
27170         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27171 /* end confdefs.h.  */
27172
27173
27174             $tmp_includes
27175             typedef $curl_typeof_curl_socklen_t curl_socklen_t;
27176             typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1];
27177
27178 int main (void)
27179 {
27180
27181             curl_socklen_t dummy;
27182
27183  ;
27184  return 0;
27185 }
27186
27187 _ACEOF
27188 if ac_fn_c_try_compile "$LINENO"; then :
27189
27190           curl_sizeof_curl_socklen_t="$tst_size"
27191           curl_pull_headers_socklen_t="$tst_pull_headers"
27192
27193 fi
27194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27195       fi
27196     done
27197   done
27198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5
27199 $as_echo "$curl_sizeof_curl_socklen_t" >&6; }
27200   if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
27201     as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5
27202   fi
27203   #
27204   case $curl_pull_headers_socklen_t in
27205     ws2tcpip)
27206
27207 cat >>confdefs.h <<_EOF
27208 #define CURL_PULL_WS2TCPIP_H 1
27209 _EOF
27210
27211       ;;
27212     systypes)
27213
27214 cat >>confdefs.h <<_EOF
27215 #define CURL_PULL_SYS_TYPES_H 1
27216 _EOF
27217
27218       ;;
27219     syssocket)
27220
27221 cat >>confdefs.h <<_EOF
27222 #define CURL_PULL_SYS_TYPES_H 1
27223 _EOF
27224
27225
27226 cat >>confdefs.h <<_EOF
27227 #define CURL_PULL_SYS_SOCKET_H 1
27228 _EOF
27229
27230       ;;
27231   esac
27232
27233 cat >>confdefs.h <<_EOF
27234 #define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t
27235 _EOF
27236
27237
27238 cat >>confdefs.h <<_EOF
27239 #define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t
27240 _EOF
27241
27242
27243
27244
27245 curl_includes_poll="\
27246 /* includes start */
27247 #ifdef HAVE_SYS_TYPES_H
27248 #  include <sys/types.h>
27249 #endif
27250 #ifdef HAVE_POLL_H
27251 #  include <poll.h>
27252 #endif
27253 #ifdef HAVE_SYS_POLL_H
27254 #  include <sys/poll.h>
27255 #endif
27256 /* includes end */"
27257   for ac_header in sys/types.h poll.h sys/poll.h
27258 do :
27259   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27260 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
27261 "
27262 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27263   cat >>confdefs.h <<_ACEOF
27264 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27265 _ACEOF
27266
27267 fi
27268
27269 done
27270
27271
27272
27273     #
27274   tst_poll_events_macro_defined="unknown"
27275   #
27276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27277 /* end confdefs.h.  */
27278
27279
27280       $curl_includes_poll
27281
27282 int main (void)
27283 {
27284
27285 #if defined(events) || defined(revents)
27286       return 0;
27287 #else
27288       force compilation error
27289 #endif
27290
27291  ;
27292  return 0;
27293 }
27294
27295 _ACEOF
27296 if ac_fn_c_try_compile "$LINENO"; then :
27297
27298     tst_poll_events_macro_defined="yes"
27299
27300 else
27301
27302     tst_poll_events_macro_defined="no"
27303
27304 fi
27305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27306   #
27307   if test "$tst_poll_events_macro_defined" = "yes"; then
27308     if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
27309
27310 cat >>confdefs.h <<_EOF
27311 #define CURL_PULL_SYS_POLL_H 1
27312 _EOF
27313
27314     fi
27315   fi
27316   #
27317
27318
27319
27320   ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
27321 #undef inline
27322 #ifdef HAVE_WINDOWS_H
27323 #ifndef WIN32_LEAN_AND_MEAN
27324 #define WIN32_LEAN_AND_MEAN
27325 #endif
27326 #include <windows.h>
27327 #ifdef HAVE_WINSOCK2_H
27328 #include <winsock2.h>
27329 #else
27330 #ifdef HAVE_WINSOCK_H
27331 #include <winsock.h>
27332 #endif
27333 #endif
27334 #else
27335 #ifdef HAVE_SYS_TYPES_H
27336 #include <sys/types.h>
27337 #endif
27338 #ifdef HAVE_SYS_SOCKET_H
27339 #include <sys/socket.h>
27340 #endif
27341 #ifdef HAVE_NETINET_IN_H
27342 #include <netinet/in.h>
27343 #endif
27344 #ifdef HAVE_ARPA_INET_H
27345 #include <arpa/inet.h>
27346 #endif
27347 #endif
27348
27349 "
27350 if test "x$ac_cv_type_in_addr_t" = xyes; then :
27351
27352 else
27353
27354         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
27355 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
27356 if ${curl_cv_in_addr_t_equiv+:} false; then :
27357   $as_echo_n "(cached) " >&6
27358 else
27359
27360       curl_cv_in_addr_t_equiv="unknown"
27361       for t in "unsigned long" int size_t unsigned long; do
27362         if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
27363           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27364 /* end confdefs.h.  */
27365
27366
27367 #undef inline
27368 #ifdef HAVE_WINDOWS_H
27369 #ifndef WIN32_LEAN_AND_MEAN
27370 #define WIN32_LEAN_AND_MEAN
27371 #endif
27372 #include <windows.h>
27373 #ifdef HAVE_WINSOCK2_H
27374 #include <winsock2.h>
27375 #else
27376 #ifdef HAVE_WINSOCK_H
27377 #include <winsock.h>
27378 #endif
27379 #endif
27380 #else
27381 #ifdef HAVE_SYS_TYPES_H
27382 #include <sys/types.h>
27383 #endif
27384 #ifdef HAVE_SYS_SOCKET_H
27385 #include <sys/socket.h>
27386 #endif
27387 #ifdef HAVE_NETINET_IN_H
27388 #include <netinet/in.h>
27389 #endif
27390 #ifdef HAVE_ARPA_INET_H
27391 #include <arpa/inet.h>
27392 #endif
27393 #endif
27394
27395 int main (void)
27396 {
27397
27398               $t data = inet_addr ("1.2.3.4");
27399
27400  ;
27401  return 0;
27402 }
27403
27404 _ACEOF
27405 if ac_fn_c_try_link "$LINENO"; then :
27406
27407             curl_cv_in_addr_t_equiv="$t"
27408
27409 fi
27410 rm -f core conftest.err conftest.$ac_objext \
27411     conftest$ac_exeext conftest.$ac_ext
27412         fi
27413       done
27414
27415 fi
27416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
27417 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
27418     case "$curl_cv_in_addr_t_equiv" in
27419       unknown)
27420         as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
27421         ;;
27422       *)
27423
27424 cat >>confdefs.h <<_ACEOF
27425 #define in_addr_t $curl_cv_in_addr_t_equiv
27426 _ACEOF
27427
27428         ;;
27429     esac
27430
27431 fi
27432
27433
27434
27435
27436    ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
27437 #undef inline
27438 #ifdef HAVE_WINDOWS_H
27439 #ifndef WIN32_LEAN_AND_MEAN
27440 #define WIN32_LEAN_AND_MEAN
27441 #endif
27442 #include <windows.h>
27443 #ifdef HAVE_WINSOCK2_H
27444 #include <winsock2.h>
27445 #endif
27446 #else
27447 #ifdef HAVE_SYS_TYPES_H
27448 #include <sys/types.h>
27449 #endif
27450 #ifdef HAVE_SYS_SOCKET_H
27451 #include <sys/socket.h>
27452 #endif
27453 #ifdef HAVE_NETINET_IN_H
27454 #include <netinet/in.h>
27455 #endif
27456 #ifdef HAVE_ARPA_INET_H
27457 #include <arpa/inet.h>
27458 #endif
27459 #endif
27460
27461 "
27462 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
27463
27464 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
27465
27466 fi
27467
27468
27469
27470
27471   for ac_header in signal.h
27472 do :
27473   ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
27474 if test "x$ac_cv_header_signal_h" = xyes; then :
27475   cat >>confdefs.h <<_ACEOF
27476 #define HAVE_SIGNAL_H 1
27477 _ACEOF
27478
27479 fi
27480
27481 done
27482
27483   ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
27484 #ifdef HAVE_SIGNAL_H
27485 #include <signal.h>
27486 #endif
27487
27488 "
27489 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
27490
27491
27492 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
27493
27494
27495 fi
27496
27497   case "$ac_cv_type_sig_atomic_t" in
27498     yes)
27499       #
27500       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
27501 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
27502       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27503 /* end confdefs.h.  */
27504
27505
27506 #ifdef HAVE_SIGNAL_H
27507 #include <signal.h>
27508 #endif
27509
27510 int main (void)
27511 {
27512
27513           static volatile sig_atomic_t dummy = 0;
27514
27515  ;
27516  return 0;
27517 }
27518
27519 _ACEOF
27520 if ac_fn_c_try_link "$LINENO"; then :
27521
27522         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27523 $as_echo "no" >&6; }
27524         ac_cv_sig_atomic_t_volatile="no"
27525
27526 else
27527
27528         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27529 $as_echo "yes" >&6; }
27530         ac_cv_sig_atomic_t_volatile="yes"
27531
27532 fi
27533 rm -f core conftest.err conftest.$ac_objext \
27534     conftest$ac_exeext conftest.$ac_ext
27535       #
27536       if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then
27537
27538 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
27539
27540       fi
27541       ;;
27542   esac
27543
27544
27545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
27546 $as_echo_n "checking return type of signal handlers... " >&6; }
27547 if ${ac_cv_type_signal+:} false; then :
27548   $as_echo_n "(cached) " >&6
27549 else
27550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27551 /* end confdefs.h.  */
27552 #include <sys/types.h>
27553 #include <signal.h>
27554
27555 int main (void)
27556 {
27557 return *(signal (0, 0)) (0) == 1;
27558  ;
27559  return 0;
27560 }
27561 _ACEOF
27562 if ac_fn_c_try_compile "$LINENO"; then :
27563   ac_cv_type_signal=int
27564 else
27565   ac_cv_type_signal=void
27566 fi
27567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27568 fi
27569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27570 $as_echo "$ac_cv_type_signal" >&6; }
27571
27572 cat >>confdefs.h <<_ACEOF
27573 #define RETSIGTYPE $ac_cv_type_signal
27574 _ACEOF
27575
27576
27577
27578
27579     for ac_header in sys/select.h sys/socket.h
27580 do :
27581   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27582 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27583 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27584   cat >>confdefs.h <<_ACEOF
27585 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27586 _ACEOF
27587
27588 fi
27589
27590 done
27591
27592   #
27593   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
27594 $as_echo_n "checking for select... " >&6; }
27595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27596 /* end confdefs.h.  */
27597
27598
27599 #undef inline
27600 #ifdef HAVE_WINDOWS_H
27601 #ifndef WIN32_LEAN_AND_MEAN
27602 #define WIN32_LEAN_AND_MEAN
27603 #endif
27604 #include <windows.h>
27605 #ifdef HAVE_WINSOCK2_H
27606 #include <winsock2.h>
27607 #else
27608 #ifdef HAVE_WINSOCK_H
27609 #include <winsock.h>
27610 #endif
27611 #endif
27612 #endif
27613 #ifdef HAVE_SYS_TYPES_H
27614 #include <sys/types.h>
27615 #endif
27616 #ifdef HAVE_SYS_TIME_H
27617 #include <sys/time.h>
27618 #ifdef TIME_WITH_SYS_TIME
27619 #include <time.h>
27620 #endif
27621 #else
27622 #ifdef HAVE_TIME_H
27623 #include <time.h>
27624 #endif
27625 #endif
27626 #ifndef HAVE_WINDOWS_H
27627 #ifdef HAVE_SYS_SELECT_H
27628 #include <sys/select.h>
27629 #endif
27630 #ifdef HAVE_SYS_SOCKET_H
27631 #include <sys/socket.h>
27632 #endif
27633 #endif
27634
27635 int main (void)
27636 {
27637
27638       select(0, 0, 0, 0, 0);
27639
27640  ;
27641  return 0;
27642 }
27643
27644 _ACEOF
27645 if ac_fn_c_try_link "$LINENO"; then :
27646
27647     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27648 $as_echo "yes" >&6; }
27649     curl_cv_select="yes"
27650
27651 else
27652
27653     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27654 $as_echo "no" >&6; }
27655     curl_cv_select="no"
27656
27657 fi
27658 rm -f core conftest.err conftest.$ac_objext \
27659     conftest$ac_exeext conftest.$ac_ext
27660   #
27661   if test "$curl_cv_select" = "yes"; then
27662     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
27663 $as_echo_n "checking types of args and return type for select... " >&6; }
27664 if ${curl_cv_func_select_args+:} false; then :
27665   $as_echo_n "(cached) " >&6
27666 else
27667
27668       curl_cv_func_select_args="unknown"
27669       for sel_retv in 'int' 'ssize_t'; do
27670         for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
27671           for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
27672             for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
27673               if test "$curl_cv_func_select_args" = "unknown"; then
27674                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27675 /* end confdefs.h.  */
27676
27677
27678 #undef inline
27679 #ifdef HAVE_WINDOWS_H
27680 #ifndef WIN32_LEAN_AND_MEAN
27681 #define WIN32_LEAN_AND_MEAN
27682 #endif
27683 #include <windows.h>
27684 #ifdef HAVE_WINSOCK2_H
27685 #include <winsock2.h>
27686 #else
27687 #ifdef HAVE_WINSOCK_H
27688 #include <winsock.h>
27689 #endif
27690 #endif
27691 #define SELECTCALLCONV PASCAL
27692 #endif
27693 #ifdef HAVE_SYS_TYPES_H
27694 #include <sys/types.h>
27695 #endif
27696 #ifdef HAVE_SYS_TIME_H
27697 #include <sys/time.h>
27698 #ifdef TIME_WITH_SYS_TIME
27699 #include <time.h>
27700 #endif
27701 #else
27702 #ifdef HAVE_TIME_H
27703 #include <time.h>
27704 #endif
27705 #endif
27706 #ifndef HAVE_WINDOWS_H
27707 #ifdef HAVE_SYS_SELECT_H
27708 #include <sys/select.h>
27709 #endif
27710 #ifdef HAVE_SYS_SOCKET_H
27711 #include <sys/socket.h>
27712 #endif
27713 #define SELECTCALLCONV
27714 #endif
27715 #ifndef HAVE_STRUCT_TIMEVAL
27716                     struct timeval {
27717                       long tv_sec;
27718                       long tv_usec;
27719                     };
27720 #endif
27721                     extern $sel_retv SELECTCALLCONV select($sel_arg1,
27722                                                            $sel_arg234,
27723                                                            $sel_arg234,
27724                                                            $sel_arg234,
27725                                                            $sel_arg5);
27726
27727 int main (void)
27728 {
27729
27730                     $sel_arg1   nfds=0;
27731                     $sel_arg234 rfds=0;
27732                     $sel_arg234 wfds=0;
27733                     $sel_arg234 efds=0;
27734                     $sel_retv res = select(nfds, rfds, wfds, efds, 0);
27735
27736  ;
27737  return 0;
27738 }
27739
27740 _ACEOF
27741 if ac_fn_c_try_compile "$LINENO"; then :
27742
27743                   curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
27744
27745 fi
27746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27747               fi
27748             done
27749           done
27750         done
27751       done
27752
27753 fi
27754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
27755 $as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
27756     if test "$curl_cv_func_select_args" = "unknown"; then
27757       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
27758 $as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
27759       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
27760 $as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
27761     else
27762       select_prev_IFS=$IFS; IFS=','
27763       set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
27764       IFS=$select_prev_IFS
27765       shift
27766       #
27767       sel_qual_type_arg5=$3
27768       #
27769
27770 cat >>confdefs.h <<_ACEOF
27771 #define SELECT_TYPE_ARG1 $1
27772 _ACEOF
27773
27774
27775 cat >>confdefs.h <<_ACEOF
27776 #define SELECT_TYPE_ARG234 $2
27777 _ACEOF
27778
27779
27780 cat >>confdefs.h <<_ACEOF
27781 #define SELECT_TYPE_RETV $4
27782 _ACEOF
27783
27784       #
27785       prev_sh_opts=$-
27786       #
27787       case $prev_sh_opts in
27788         *f*)
27789           ;;
27790         *)
27791           set -f
27792           ;;
27793       esac
27794       #
27795       case "$sel_qual_type_arg5" in
27796         const*)
27797           sel_qual_arg5=const
27798           sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
27799         ;;
27800         *)
27801           sel_qual_arg5=
27802           sel_type_arg5=$sel_qual_type_arg5
27803         ;;
27804       esac
27805       #
27806
27807 cat >>confdefs.h <<_ACEOF
27808 #define SELECT_QUAL_ARG5 $sel_qual_arg5
27809 _ACEOF
27810
27811
27812 cat >>confdefs.h <<_ACEOF
27813 #define SELECT_TYPE_ARG5 $sel_type_arg5
27814 _ACEOF
27815
27816       #
27817       case $prev_sh_opts in
27818         *f*)
27819           ;;
27820         *)
27821           set +f
27822           ;;
27823       esac
27824       #
27825
27826 cat >>confdefs.h <<_ACEOF
27827 #define HAVE_SELECT 1
27828 _ACEOF
27829
27830       ac_cv_func_select="yes"
27831     fi
27832   fi
27833
27834
27835
27836       for ac_header in sys/types.h sys/socket.h
27837 do :
27838   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27839 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27840 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27841   cat >>confdefs.h <<_ACEOF
27842 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27843 _ACEOF
27844
27845 fi
27846
27847 done
27848
27849   #
27850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
27851 $as_echo_n "checking for recv... " >&6; }
27852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27853 /* end confdefs.h.  */
27854
27855
27856 #undef inline
27857 #ifdef HAVE_WINDOWS_H
27858 #ifndef WIN32_LEAN_AND_MEAN
27859 #define WIN32_LEAN_AND_MEAN
27860 #endif
27861 #include <windows.h>
27862 #ifdef HAVE_WINSOCK2_H
27863 #include <winsock2.h>
27864 #else
27865 #ifdef HAVE_WINSOCK_H
27866 #include <winsock.h>
27867 #endif
27868 #endif
27869 #else
27870 #ifdef HAVE_SYS_TYPES_H
27871 #include <sys/types.h>
27872 #endif
27873 #ifdef HAVE_SYS_SOCKET_H
27874 #include <sys/socket.h>
27875 #endif
27876 #endif
27877
27878 int main (void)
27879 {
27880
27881       recv(0, 0, 0, 0);
27882
27883  ;
27884  return 0;
27885 }
27886
27887 _ACEOF
27888 if ac_fn_c_try_link "$LINENO"; then :
27889
27890     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27891 $as_echo "yes" >&6; }
27892     curl_cv_recv="yes"
27893
27894 else
27895
27896     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27897 $as_echo "no" >&6; }
27898     curl_cv_recv="no"
27899
27900 fi
27901 rm -f core conftest.err conftest.$ac_objext \
27902     conftest$ac_exeext conftest.$ac_ext
27903   #
27904   if test "$curl_cv_recv" = "yes"; then
27905     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
27906 $as_echo_n "checking types of args and return type for recv... " >&6; }
27907 if ${curl_cv_func_recv_args+:} false; then :
27908   $as_echo_n "(cached) " >&6
27909 else
27910
27911       curl_cv_func_recv_args="unknown"
27912       for recv_retv in 'int' 'ssize_t'; do
27913         for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
27914           for recv_arg2 in 'char *' 'void *'; do
27915             for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
27916               for recv_arg4 in 'int' 'unsigned int'; do
27917                 if test "$curl_cv_func_recv_args" = "unknown"; then
27918                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27919 /* end confdefs.h.  */
27920
27921
27922 #undef inline
27923 #ifdef HAVE_WINDOWS_H
27924 #ifndef WIN32_LEAN_AND_MEAN
27925 #define WIN32_LEAN_AND_MEAN
27926 #endif
27927 #include <windows.h>
27928 #ifdef HAVE_WINSOCK2_H
27929 #include <winsock2.h>
27930 #else
27931 #ifdef HAVE_WINSOCK_H
27932 #include <winsock.h>
27933 #endif
27934 #endif
27935 #define RECVCALLCONV PASCAL
27936 #else
27937 #ifdef HAVE_SYS_TYPES_H
27938 #include <sys/types.h>
27939 #endif
27940 #ifdef HAVE_SYS_SOCKET_H
27941 #include <sys/socket.h>
27942 #endif
27943 #define RECVCALLCONV
27944 #endif
27945                       extern $recv_retv RECVCALLCONV
27946                       recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
27947
27948 int main (void)
27949 {
27950
27951                       $recv_arg1 s=0;
27952                       $recv_arg2 buf=0;
27953                       $recv_arg3 len=0;
27954                       $recv_arg4 flags=0;
27955                       $recv_retv res = recv(s, buf, len, flags);
27956
27957  ;
27958  return 0;
27959 }
27960
27961 _ACEOF
27962 if ac_fn_c_try_compile "$LINENO"; then :
27963
27964                     curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
27965
27966 fi
27967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27968                 fi
27969               done
27970             done
27971           done
27972         done
27973       done
27974
27975 fi
27976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
27977 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
27978     if test "$curl_cv_func_recv_args" = "unknown"; then
27979       as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
27980     else
27981       recv_prev_IFS=$IFS; IFS=','
27982       set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
27983       IFS=$recv_prev_IFS
27984       shift
27985       #
27986
27987 cat >>confdefs.h <<_ACEOF
27988 #define RECV_TYPE_ARG1 $1
27989 _ACEOF
27990
27991
27992 cat >>confdefs.h <<_ACEOF
27993 #define RECV_TYPE_ARG2 $2
27994 _ACEOF
27995
27996
27997 cat >>confdefs.h <<_ACEOF
27998 #define RECV_TYPE_ARG3 $3
27999 _ACEOF
28000
28001
28002 cat >>confdefs.h <<_ACEOF
28003 #define RECV_TYPE_ARG4 $4
28004 _ACEOF
28005
28006
28007 cat >>confdefs.h <<_ACEOF
28008 #define RECV_TYPE_RETV $5
28009 _ACEOF
28010
28011       #
28012
28013 cat >>confdefs.h <<_ACEOF
28014 #define HAVE_RECV 1
28015 _ACEOF
28016
28017       ac_cv_func_recv="yes"
28018     fi
28019   else
28020     as_fn_error $? "Unable to link function recv" "$LINENO" 5
28021   fi
28022
28023
28024       for ac_header in sys/types.h sys/socket.h
28025 do :
28026   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28027 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28028 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28029   cat >>confdefs.h <<_ACEOF
28030 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28031 _ACEOF
28032
28033 fi
28034
28035 done
28036
28037   #
28038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
28039 $as_echo_n "checking for send... " >&6; }
28040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28041 /* end confdefs.h.  */
28042
28043
28044 #undef inline
28045 #ifdef HAVE_WINDOWS_H
28046 #ifndef WIN32_LEAN_AND_MEAN
28047 #define WIN32_LEAN_AND_MEAN
28048 #endif
28049 #include <windows.h>
28050 #ifdef HAVE_WINSOCK2_H
28051 #include <winsock2.h>
28052 #else
28053 #ifdef HAVE_WINSOCK_H
28054 #include <winsock.h>
28055 #endif
28056 #endif
28057 #else
28058 #ifdef HAVE_SYS_TYPES_H
28059 #include <sys/types.h>
28060 #endif
28061 #ifdef HAVE_SYS_SOCKET_H
28062 #include <sys/socket.h>
28063 #endif
28064 #endif
28065
28066 int main (void)
28067 {
28068
28069       send(0, 0, 0, 0);
28070
28071  ;
28072  return 0;
28073 }
28074
28075 _ACEOF
28076 if ac_fn_c_try_link "$LINENO"; then :
28077
28078     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28079 $as_echo "yes" >&6; }
28080     curl_cv_send="yes"
28081
28082 else
28083
28084     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28085 $as_echo "no" >&6; }
28086     curl_cv_send="no"
28087
28088 fi
28089 rm -f core conftest.err conftest.$ac_objext \
28090     conftest$ac_exeext conftest.$ac_ext
28091   #
28092   if test "$curl_cv_send" = "yes"; then
28093     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
28094 $as_echo_n "checking types of args and return type for send... " >&6; }
28095 if ${curl_cv_func_send_args+:} false; then :
28096   $as_echo_n "(cached) " >&6
28097 else
28098
28099       curl_cv_func_send_args="unknown"
28100       for send_retv in 'int' 'ssize_t'; do
28101         for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
28102           for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
28103             for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
28104               for send_arg4 in 'int' 'unsigned int'; do
28105                 if test "$curl_cv_func_send_args" = "unknown"; then
28106                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28107 /* end confdefs.h.  */
28108
28109
28110 #undef inline
28111 #ifdef HAVE_WINDOWS_H
28112 #ifndef WIN32_LEAN_AND_MEAN
28113 #define WIN32_LEAN_AND_MEAN
28114 #endif
28115 #include <windows.h>
28116 #ifdef HAVE_WINSOCK2_H
28117 #include <winsock2.h>
28118 #else
28119 #ifdef HAVE_WINSOCK_H
28120 #include <winsock.h>
28121 #endif
28122 #endif
28123 #define SENDCALLCONV PASCAL
28124 #else
28125 #ifdef HAVE_SYS_TYPES_H
28126 #include <sys/types.h>
28127 #endif
28128 #ifdef HAVE_SYS_SOCKET_H
28129 #include <sys/socket.h>
28130 #endif
28131 #define SENDCALLCONV
28132 #endif
28133                       extern $send_retv SENDCALLCONV
28134                       send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
28135
28136 int main (void)
28137 {
28138
28139                       $send_arg1 s=0;
28140                       $send_arg3 len=0;
28141                       $send_arg4 flags=0;
28142                       $send_retv res = send(s, 0, len, flags);
28143
28144  ;
28145  return 0;
28146 }
28147
28148 _ACEOF
28149 if ac_fn_c_try_compile "$LINENO"; then :
28150
28151                     curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
28152
28153 fi
28154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28155                 fi
28156               done
28157             done
28158           done
28159         done
28160       done
28161
28162 fi
28163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
28164 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
28165     if test "$curl_cv_func_send_args" = "unknown"; then
28166       as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
28167     else
28168       send_prev_IFS=$IFS; IFS=','
28169       set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
28170       IFS=$send_prev_IFS
28171       shift
28172       #
28173       send_qual_type_arg2=$2
28174       #
28175
28176 cat >>confdefs.h <<_ACEOF
28177 #define SEND_TYPE_ARG1 $1
28178 _ACEOF
28179
28180
28181 cat >>confdefs.h <<_ACEOF
28182 #define SEND_TYPE_ARG3 $3
28183 _ACEOF
28184
28185
28186 cat >>confdefs.h <<_ACEOF
28187 #define SEND_TYPE_ARG4 $4
28188 _ACEOF
28189
28190
28191 cat >>confdefs.h <<_ACEOF
28192 #define SEND_TYPE_RETV $5
28193 _ACEOF
28194
28195       #
28196       prev_sh_opts=$-
28197       #
28198       case $prev_sh_opts in
28199         *f*)
28200           ;;
28201         *)
28202           set -f
28203           ;;
28204       esac
28205       #
28206       case "$send_qual_type_arg2" in
28207         const*)
28208           send_qual_arg2=const
28209           send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
28210         ;;
28211         *)
28212           send_qual_arg2=
28213           send_type_arg2=$send_qual_type_arg2
28214         ;;
28215       esac
28216       #
28217
28218 cat >>confdefs.h <<_ACEOF
28219 #define SEND_QUAL_ARG2 $send_qual_arg2
28220 _ACEOF
28221
28222
28223 cat >>confdefs.h <<_ACEOF
28224 #define SEND_TYPE_ARG2 $send_type_arg2
28225 _ACEOF
28226
28227       #
28228       case $prev_sh_opts in
28229         *f*)
28230           ;;
28231         *)
28232           set +f
28233           ;;
28234       esac
28235       #
28236
28237 cat >>confdefs.h <<_ACEOF
28238 #define HAVE_SEND 1
28239 _ACEOF
28240
28241       ac_cv_func_send="yes"
28242     fi
28243   else
28244     as_fn_error $? "Unable to link function send" "$LINENO" 5
28245   fi
28246
28247
28248   for ac_header in sys/types.h sys/socket.h
28249 do :
28250   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28251 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28252 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28253   cat >>confdefs.h <<_ACEOF
28254 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28255 _ACEOF
28256
28257 fi
28258
28259 done
28260
28261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
28262 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
28263 if ${ac_cv_msg_nosignal+:} false; then :
28264   $as_echo_n "(cached) " >&6
28265 else
28266
28267     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28268 /* end confdefs.h.  */
28269
28270
28271 #undef inline
28272 #ifdef HAVE_WINDOWS_H
28273 #ifndef WIN32_LEAN_AND_MEAN
28274 #define WIN32_LEAN_AND_MEAN
28275 #endif
28276 #include <windows.h>
28277 #ifdef HAVE_WINSOCK2_H
28278 #include <winsock2.h>
28279 #else
28280 #ifdef HAVE_WINSOCK_H
28281 #include <winsock.h>
28282 #endif
28283 #endif
28284 #else
28285 #ifdef HAVE_SYS_TYPES_H
28286 #include <sys/types.h>
28287 #endif
28288 #ifdef HAVE_SYS_SOCKET_H
28289 #include <sys/socket.h>
28290 #endif
28291 #endif
28292
28293 int main (void)
28294 {
28295
28296         int flag=MSG_NOSIGNAL;
28297
28298  ;
28299  return 0;
28300 }
28301
28302 _ACEOF
28303 if ac_fn_c_try_compile "$LINENO"; then :
28304
28305       ac_cv_msg_nosignal="yes"
28306
28307 else
28308
28309       ac_cv_msg_nosignal="no"
28310
28311 fi
28312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28313
28314 fi
28315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5
28316 $as_echo "$ac_cv_msg_nosignal" >&6; }
28317   case "$ac_cv_msg_nosignal" in
28318     yes)
28319
28320 cat >>confdefs.h <<_ACEOF
28321 #define HAVE_MSG_NOSIGNAL 1
28322 _ACEOF
28323
28324       ;;
28325   esac
28326
28327
28328
28329 curl_includes_unistd="\
28330 /* includes start */
28331 #ifdef HAVE_SYS_TYPES_H
28332 #  include <sys/types.h>
28333 #endif
28334 #ifdef HAVE_UNISTD_H
28335 #  include <unistd.h>
28336 #endif
28337 /* includes end */"
28338   for ac_header in sys/types.h unistd.h
28339 do :
28340   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28341 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
28342 "
28343 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28344   cat >>confdefs.h <<_ACEOF
28345 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28346 _ACEOF
28347
28348 fi
28349
28350 done
28351
28352
28353
28354     #
28355   tst_links_alarm="unknown"
28356   tst_proto_alarm="unknown"
28357   tst_compi_alarm="unknown"
28358   tst_allow_alarm="unknown"
28359   #
28360   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
28361 $as_echo_n "checking if alarm can be linked... " >&6; }
28362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28363 /* end confdefs.h.  */
28364
28365
28366 #define alarm innocuous_alarm
28367 #ifdef __STDC__
28368 # include <limits.h>
28369 #else
28370 # include <assert.h>
28371 #endif
28372 #undef alarm
28373 #ifdef __cplusplus
28374 extern "C"
28375 #endif
28376 char alarm ();
28377 #if defined __stub_alarm || defined __stub___alarm
28378 choke me
28379 #endif
28380
28381 int main (void)
28382 {
28383 return alarm ();
28384  ;
28385  return 0;
28386 }
28387
28388 _ACEOF
28389 if ac_fn_c_try_link "$LINENO"; then :
28390
28391     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28392 $as_echo "yes" >&6; }
28393     tst_links_alarm="yes"
28394
28395 else
28396
28397     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28398 $as_echo "no" >&6; }
28399     tst_links_alarm="no"
28400
28401 fi
28402 rm -f core conftest.err conftest.$ac_objext \
28403     conftest$ac_exeext conftest.$ac_ext
28404   #
28405   if test "$tst_links_alarm" = "yes"; then
28406     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
28407 $as_echo_n "checking if alarm is prototyped... " >&6; }
28408     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28409 /* end confdefs.h.  */
28410
28411       $curl_includes_unistd
28412
28413 _ACEOF
28414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28415   $EGREP "alarm" >/dev/null 2>&1; then :
28416
28417       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28418 $as_echo "yes" >&6; }
28419       tst_proto_alarm="yes"
28420
28421 else
28422
28423       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28424 $as_echo "no" >&6; }
28425       tst_proto_alarm="no"
28426
28427 fi
28428 rm -f conftest*
28429
28430   fi
28431   #
28432   if test "$tst_proto_alarm" = "yes"; then
28433     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
28434 $as_echo_n "checking if alarm is compilable... " >&6; }
28435     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28436 /* end confdefs.h.  */
28437
28438
28439         $curl_includes_unistd
28440
28441 int main (void)
28442 {
28443
28444         if(0 != alarm(0))
28445           return 1;
28446
28447  ;
28448  return 0;
28449 }
28450
28451 _ACEOF
28452 if ac_fn_c_try_compile "$LINENO"; then :
28453
28454       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28455 $as_echo "yes" >&6; }
28456       tst_compi_alarm="yes"
28457
28458 else
28459
28460       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28461 $as_echo "no" >&6; }
28462       tst_compi_alarm="no"
28463
28464 fi
28465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28466   fi
28467   #
28468   if test "$tst_compi_alarm" = "yes"; then
28469     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
28470 $as_echo_n "checking if alarm usage allowed... " >&6; }
28471     if test "x$curl_disallow_alarm" != "xyes"; then
28472       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28473 $as_echo "yes" >&6; }
28474       tst_allow_alarm="yes"
28475     else
28476       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28477 $as_echo "no" >&6; }
28478       tst_allow_alarm="no"
28479     fi
28480   fi
28481   #
28482   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
28483 $as_echo_n "checking if alarm might be used... " >&6; }
28484   if test "$tst_links_alarm" = "yes" &&
28485      test "$tst_proto_alarm" = "yes" &&
28486      test "$tst_compi_alarm" = "yes" &&
28487      test "$tst_allow_alarm" = "yes"; then
28488     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28489 $as_echo "yes" >&6; }
28490
28491 cat >>confdefs.h <<_ACEOF
28492 #define HAVE_ALARM 1
28493 _ACEOF
28494
28495     ac_cv_func_alarm="yes"
28496   else
28497     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28498 $as_echo "no" >&6; }
28499     ac_cv_func_alarm="no"
28500   fi
28501
28502
28503 curl_includes_string="\
28504 /* includes start */
28505 #ifdef HAVE_SYS_TYPES_H
28506 #  include <sys/types.h>
28507 #endif
28508 #ifdef HAVE_STRING_H
28509 #  include <string.h>
28510 #endif
28511 #ifdef HAVE_STRINGS_H
28512 #  include <strings.h>
28513 #endif
28514 /* includes end */"
28515   for ac_header in sys/types.h string.h strings.h
28516 do :
28517   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28518 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
28519 "
28520 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28521   cat >>confdefs.h <<_ACEOF
28522 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28523 _ACEOF
28524
28525 fi
28526
28527 done
28528
28529
28530
28531 curl_includes_libgen="\
28532 /* includes start */
28533 #ifdef HAVE_SYS_TYPES_H
28534 #  include <sys/types.h>
28535 #endif
28536 #ifdef HAVE_LIBGEN_H
28537 #  include <libgen.h>
28538 #endif
28539 /* includes end */"
28540   for ac_header in sys/types.h libgen.h
28541 do :
28542   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28543 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
28544 "
28545 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28546   cat >>confdefs.h <<_ACEOF
28547 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28548 _ACEOF
28549
28550 fi
28551
28552 done
28553
28554
28555
28556         #
28557   tst_links_basename="unknown"
28558   tst_proto_basename="unknown"
28559   tst_compi_basename="unknown"
28560   tst_allow_basename="unknown"
28561   #
28562   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
28563 $as_echo_n "checking if basename can be linked... " >&6; }
28564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28565 /* end confdefs.h.  */
28566
28567
28568 #define basename innocuous_basename
28569 #ifdef __STDC__
28570 # include <limits.h>
28571 #else
28572 # include <assert.h>
28573 #endif
28574 #undef basename
28575 #ifdef __cplusplus
28576 extern "C"
28577 #endif
28578 char basename ();
28579 #if defined __stub_basename || defined __stub___basename
28580 choke me
28581 #endif
28582
28583 int main (void)
28584 {
28585 return basename ();
28586  ;
28587  return 0;
28588 }
28589
28590 _ACEOF
28591 if ac_fn_c_try_link "$LINENO"; then :
28592
28593     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28594 $as_echo "yes" >&6; }
28595     tst_links_basename="yes"
28596
28597 else
28598
28599     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28600 $as_echo "no" >&6; }
28601     tst_links_basename="no"
28602
28603 fi
28604 rm -f core conftest.err conftest.$ac_objext \
28605     conftest$ac_exeext conftest.$ac_ext
28606   #
28607   if test "$tst_links_basename" = "yes"; then
28608     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
28609 $as_echo_n "checking if basename is prototyped... " >&6; }
28610     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28611 /* end confdefs.h.  */
28612
28613       $curl_includes_string
28614       $curl_includes_libgen
28615       $curl_includes_unistd
28616
28617 _ACEOF
28618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28619   $EGREP "basename" >/dev/null 2>&1; then :
28620
28621       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28622 $as_echo "yes" >&6; }
28623       tst_proto_basename="yes"
28624
28625 else
28626
28627       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28628 $as_echo "no" >&6; }
28629       tst_proto_basename="no"
28630
28631 fi
28632 rm -f conftest*
28633
28634   fi
28635   #
28636   if test "$tst_proto_basename" = "yes"; then
28637     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
28638 $as_echo_n "checking if basename is compilable... " >&6; }
28639     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28640 /* end confdefs.h.  */
28641
28642
28643         $curl_includes_string
28644         $curl_includes_libgen
28645         $curl_includes_unistd
28646
28647 int main (void)
28648 {
28649
28650         if(0 != basename(0))
28651           return 1;
28652
28653  ;
28654  return 0;
28655 }
28656
28657 _ACEOF
28658 if ac_fn_c_try_compile "$LINENO"; then :
28659
28660       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28661 $as_echo "yes" >&6; }
28662       tst_compi_basename="yes"
28663
28664 else
28665
28666       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28667 $as_echo "no" >&6; }
28668       tst_compi_basename="no"
28669
28670 fi
28671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28672   fi
28673   #
28674   if test "$tst_compi_basename" = "yes"; then
28675     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
28676 $as_echo_n "checking if basename usage allowed... " >&6; }
28677     if test "x$curl_disallow_basename" != "xyes"; then
28678       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28679 $as_echo "yes" >&6; }
28680       tst_allow_basename="yes"
28681     else
28682       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28683 $as_echo "no" >&6; }
28684       tst_allow_basename="no"
28685     fi
28686   fi
28687   #
28688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
28689 $as_echo_n "checking if basename might be used... " >&6; }
28690   if test "$tst_links_basename" = "yes" &&
28691      test "$tst_proto_basename" = "yes" &&
28692      test "$tst_compi_basename" = "yes" &&
28693      test "$tst_allow_basename" = "yes"; then
28694     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28695 $as_echo "yes" >&6; }
28696
28697 cat >>confdefs.h <<_ACEOF
28698 #define HAVE_BASENAME 1
28699 _ACEOF
28700
28701     ac_cv_func_basename="yes"
28702   else
28703     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28704 $as_echo "no" >&6; }
28705     ac_cv_func_basename="no"
28706   fi
28707
28708
28709 curl_includes_socket="\
28710 /* includes start */
28711 #ifdef HAVE_SYS_TYPES_H
28712 #  include <sys/types.h>
28713 #endif
28714 #ifdef HAVE_SOCKET_H
28715 #  include <socket.h>
28716 #endif
28717 /* includes end */"
28718   for ac_header in sys/types.h socket.h
28719 do :
28720   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28721 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
28722 "
28723 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28724   cat >>confdefs.h <<_ACEOF
28725 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28726 _ACEOF
28727
28728 fi
28729
28730 done
28731
28732
28733
28734       #
28735   tst_links_closesocket="unknown"
28736   tst_proto_closesocket="unknown"
28737   tst_compi_closesocket="unknown"
28738   tst_allow_closesocket="unknown"
28739   #
28740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
28741 $as_echo_n "checking if closesocket can be linked... " >&6; }
28742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28743 /* end confdefs.h.  */
28744
28745
28746       $curl_includes_winsock2
28747       $curl_includes_socket
28748
28749 int main (void)
28750 {
28751
28752       if(0 != closesocket(0))
28753         return 1;
28754
28755  ;
28756  return 0;
28757 }
28758
28759 _ACEOF
28760 if ac_fn_c_try_link "$LINENO"; then :
28761
28762     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28763 $as_echo "yes" >&6; }
28764     tst_links_closesocket="yes"
28765
28766 else
28767
28768     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28769 $as_echo "no" >&6; }
28770     tst_links_closesocket="no"
28771
28772 fi
28773 rm -f core conftest.err conftest.$ac_objext \
28774     conftest$ac_exeext conftest.$ac_ext
28775   #
28776   if test "$tst_links_closesocket" = "yes"; then
28777     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
28778 $as_echo_n "checking if closesocket is prototyped... " >&6; }
28779     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28780 /* end confdefs.h.  */
28781
28782       $curl_includes_winsock2
28783       $curl_includes_socket
28784
28785 _ACEOF
28786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28787   $EGREP "closesocket" >/dev/null 2>&1; then :
28788
28789       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28790 $as_echo "yes" >&6; }
28791       tst_proto_closesocket="yes"
28792
28793 else
28794
28795       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28796 $as_echo "no" >&6; }
28797       tst_proto_closesocket="no"
28798
28799 fi
28800 rm -f conftest*
28801
28802   fi
28803   #
28804   if test "$tst_proto_closesocket" = "yes"; then
28805     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
28806 $as_echo_n "checking if closesocket is compilable... " >&6; }
28807     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28808 /* end confdefs.h.  */
28809
28810
28811         $curl_includes_winsock2
28812         $curl_includes_socket
28813
28814 int main (void)
28815 {
28816
28817         if(0 != closesocket(0))
28818           return 1;
28819
28820  ;
28821  return 0;
28822 }
28823
28824 _ACEOF
28825 if ac_fn_c_try_compile "$LINENO"; then :
28826
28827       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28828 $as_echo "yes" >&6; }
28829       tst_compi_closesocket="yes"
28830
28831 else
28832
28833       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28834 $as_echo "no" >&6; }
28835       tst_compi_closesocket="no"
28836
28837 fi
28838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28839   fi
28840   #
28841   if test "$tst_compi_closesocket" = "yes"; then
28842     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
28843 $as_echo_n "checking if closesocket usage allowed... " >&6; }
28844     if test "x$curl_disallow_closesocket" != "xyes"; then
28845       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28846 $as_echo "yes" >&6; }
28847       tst_allow_closesocket="yes"
28848     else
28849       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28850 $as_echo "no" >&6; }
28851       tst_allow_closesocket="no"
28852     fi
28853   fi
28854   #
28855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
28856 $as_echo_n "checking if closesocket might be used... " >&6; }
28857   if test "$tst_links_closesocket" = "yes" &&
28858      test "$tst_proto_closesocket" = "yes" &&
28859      test "$tst_compi_closesocket" = "yes" &&
28860      test "$tst_allow_closesocket" = "yes"; then
28861     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28862 $as_echo "yes" >&6; }
28863
28864 cat >>confdefs.h <<_ACEOF
28865 #define HAVE_CLOSESOCKET 1
28866 _ACEOF
28867
28868     ac_cv_func_closesocket="yes"
28869   else
28870     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28871 $as_echo "no" >&6; }
28872     ac_cv_func_closesocket="no"
28873   fi
28874
28875
28876     #
28877   tst_links_closesocket_camel="unknown"
28878   tst_proto_closesocket_camel="unknown"
28879   tst_compi_closesocket_camel="unknown"
28880   tst_allow_closesocket_camel="unknown"
28881   #
28882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
28883 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
28884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28885 /* end confdefs.h.  */
28886
28887
28888       $curl_includes_sys_socket
28889
28890 int main (void)
28891 {
28892
28893       if(0 != CloseSocket(0))
28894         return 1;
28895
28896  ;
28897  return 0;
28898 }
28899
28900 _ACEOF
28901 if ac_fn_c_try_link "$LINENO"; then :
28902
28903     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28904 $as_echo "yes" >&6; }
28905     tst_links_closesocket_camel="yes"
28906
28907 else
28908
28909     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28910 $as_echo "no" >&6; }
28911     tst_links_closesocket_camel="no"
28912
28913 fi
28914 rm -f core conftest.err conftest.$ac_objext \
28915     conftest$ac_exeext conftest.$ac_ext
28916   #
28917   if test "$tst_links_closesocket_camel" = "yes"; then
28918     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
28919 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
28920     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28921 /* end confdefs.h.  */
28922
28923       $curl_includes_sys_socket
28924
28925 _ACEOF
28926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28927   $EGREP "CloseSocket" >/dev/null 2>&1; then :
28928
28929       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28930 $as_echo "yes" >&6; }
28931       tst_proto_closesocket_camel="yes"
28932
28933 else
28934
28935       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28936 $as_echo "no" >&6; }
28937       tst_proto_closesocket_camel="no"
28938
28939 fi
28940 rm -f conftest*
28941
28942   fi
28943   #
28944   if test "$tst_proto_closesocket_camel" = "yes"; then
28945     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
28946 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
28947     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28948 /* end confdefs.h.  */
28949
28950
28951         $curl_includes_sys_socket
28952
28953 int main (void)
28954 {
28955
28956         if(0 != CloseSocket(0))
28957           return 1;
28958
28959  ;
28960  return 0;
28961 }
28962
28963 _ACEOF
28964 if ac_fn_c_try_compile "$LINENO"; then :
28965
28966       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28967 $as_echo "yes" >&6; }
28968       tst_compi_closesocket_camel="yes"
28969
28970 else
28971
28972       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28973 $as_echo "no" >&6; }
28974       tst_compi_closesocket_camel="no"
28975
28976 fi
28977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28978   fi
28979   #
28980   if test "$tst_compi_closesocket_camel" = "yes"; then
28981     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
28982 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
28983     if test "x$curl_disallow_closesocket_camel" != "xyes"; then
28984       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28985 $as_echo "yes" >&6; }
28986       tst_allow_closesocket_camel="yes"
28987     else
28988       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28989 $as_echo "no" >&6; }
28990       tst_allow_closesocket_camel="no"
28991     fi
28992   fi
28993   #
28994   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
28995 $as_echo_n "checking if CloseSocket might be used... " >&6; }
28996   if test "$tst_links_closesocket_camel" = "yes" &&
28997      test "$tst_proto_closesocket_camel" = "yes" &&
28998      test "$tst_compi_closesocket_camel" = "yes" &&
28999      test "$tst_allow_closesocket_camel" = "yes"; then
29000     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29001 $as_echo "yes" >&6; }
29002
29003 cat >>confdefs.h <<_ACEOF
29004 #define HAVE_CLOSESOCKET_CAMEL 1
29005 _ACEOF
29006
29007     ac_cv_func_closesocket_camel="yes"
29008   else
29009     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29010 $as_echo "no" >&6; }
29011     ac_cv_func_closesocket_camel="no"
29012   fi
29013
29014
29015         #
29016   tst_links_connect="unknown"
29017   tst_proto_connect="unknown"
29018   tst_compi_connect="unknown"
29019   tst_allow_connect="unknown"
29020   #
29021   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
29022 $as_echo_n "checking if connect can be linked... " >&6; }
29023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29024 /* end confdefs.h.  */
29025
29026
29027       $curl_includes_winsock2
29028       $curl_includes_sys_socket
29029       $curl_includes_socket
29030
29031 int main (void)
29032 {
29033
29034       if(0 != connect(0, 0, 0))
29035         return 1;
29036
29037  ;
29038  return 0;
29039 }
29040
29041 _ACEOF
29042 if ac_fn_c_try_link "$LINENO"; then :
29043
29044     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29045 $as_echo "yes" >&6; }
29046     tst_links_connect="yes"
29047
29048 else
29049
29050     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29051 $as_echo "no" >&6; }
29052     tst_links_connect="no"
29053
29054 fi
29055 rm -f core conftest.err conftest.$ac_objext \
29056     conftest$ac_exeext conftest.$ac_ext
29057   #
29058   if test "$tst_links_connect" = "yes"; then
29059     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
29060 $as_echo_n "checking if connect is prototyped... " >&6; }
29061     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29062 /* end confdefs.h.  */
29063
29064       $curl_includes_winsock2
29065       $curl_includes_sys_socket
29066       $curl_includes_socket
29067
29068 _ACEOF
29069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29070   $EGREP "connect" >/dev/null 2>&1; then :
29071
29072       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29073 $as_echo "yes" >&6; }
29074       tst_proto_connect="yes"
29075
29076 else
29077
29078       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29079 $as_echo "no" >&6; }
29080       tst_proto_connect="no"
29081
29082 fi
29083 rm -f conftest*
29084
29085   fi
29086   #
29087   if test "$tst_proto_connect" = "yes"; then
29088     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
29089 $as_echo_n "checking if connect is compilable... " >&6; }
29090     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29091 /* end confdefs.h.  */
29092
29093
29094         $curl_includes_winsock2
29095         $curl_includes_sys_socket
29096         $curl_includes_socket
29097
29098 int main (void)
29099 {
29100
29101         if(0 != connect(0, 0, 0))
29102           return 1;
29103
29104  ;
29105  return 0;
29106 }
29107
29108 _ACEOF
29109 if ac_fn_c_try_compile "$LINENO"; then :
29110
29111       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29112 $as_echo "yes" >&6; }
29113       tst_compi_connect="yes"
29114
29115 else
29116
29117       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29118 $as_echo "no" >&6; }
29119       tst_compi_connect="no"
29120
29121 fi
29122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29123   fi
29124   #
29125   if test "$tst_compi_connect" = "yes"; then
29126     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
29127 $as_echo_n "checking if connect usage allowed... " >&6; }
29128     if test "x$curl_disallow_connect" != "xyes"; then
29129       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29130 $as_echo "yes" >&6; }
29131       tst_allow_connect="yes"
29132     else
29133       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29134 $as_echo "no" >&6; }
29135       tst_allow_connect="no"
29136     fi
29137   fi
29138   #
29139   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
29140 $as_echo_n "checking if connect might be used... " >&6; }
29141   if test "$tst_links_connect" = "yes" &&
29142      test "$tst_proto_connect" = "yes" &&
29143      test "$tst_compi_connect" = "yes" &&
29144      test "$tst_allow_connect" = "yes"; then
29145     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29146 $as_echo "yes" >&6; }
29147
29148 cat >>confdefs.h <<_ACEOF
29149 #define HAVE_CONNECT 1
29150 _ACEOF
29151
29152     ac_cv_func_connect="yes"
29153   else
29154     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29155 $as_echo "no" >&6; }
29156     ac_cv_func_connect="no"
29157   fi
29158
29159
29160 curl_includes_fcntl="\
29161 /* includes start */
29162 #ifdef HAVE_SYS_TYPES_H
29163 #  include <sys/types.h>
29164 #endif
29165 #ifdef HAVE_UNISTD_H
29166 #  include <unistd.h>
29167 #endif
29168 #ifdef HAVE_FCNTL_H
29169 #  include <fcntl.h>
29170 #endif
29171 /* includes end */"
29172   for ac_header in sys/types.h unistd.h fcntl.h
29173 do :
29174   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29175 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
29176 "
29177 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29178   cat >>confdefs.h <<_ACEOF
29179 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29180 _ACEOF
29181
29182 fi
29183
29184 done
29185
29186
29187
29188     #
29189   tst_links_fcntl="unknown"
29190   tst_proto_fcntl="unknown"
29191   tst_compi_fcntl="unknown"
29192   tst_allow_fcntl="unknown"
29193   #
29194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
29195 $as_echo_n "checking if fcntl can be linked... " >&6; }
29196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29197 /* end confdefs.h.  */
29198
29199
29200 #define fcntl innocuous_fcntl
29201 #ifdef __STDC__
29202 # include <limits.h>
29203 #else
29204 # include <assert.h>
29205 #endif
29206 #undef fcntl
29207 #ifdef __cplusplus
29208 extern "C"
29209 #endif
29210 char fcntl ();
29211 #if defined __stub_fcntl || defined __stub___fcntl
29212 choke me
29213 #endif
29214
29215 int main (void)
29216 {
29217 return fcntl ();
29218  ;
29219  return 0;
29220 }
29221
29222 _ACEOF
29223 if ac_fn_c_try_link "$LINENO"; then :
29224
29225     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29226 $as_echo "yes" >&6; }
29227     tst_links_fcntl="yes"
29228
29229 else
29230
29231     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29232 $as_echo "no" >&6; }
29233     tst_links_fcntl="no"
29234
29235 fi
29236 rm -f core conftest.err conftest.$ac_objext \
29237     conftest$ac_exeext conftest.$ac_ext
29238   #
29239   if test "$tst_links_fcntl" = "yes"; then
29240     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
29241 $as_echo_n "checking if fcntl is prototyped... " >&6; }
29242     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29243 /* end confdefs.h.  */
29244
29245       $curl_includes_fcntl
29246
29247 _ACEOF
29248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29249   $EGREP "fcntl" >/dev/null 2>&1; then :
29250
29251       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29252 $as_echo "yes" >&6; }
29253       tst_proto_fcntl="yes"
29254
29255 else
29256
29257       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29258 $as_echo "no" >&6; }
29259       tst_proto_fcntl="no"
29260
29261 fi
29262 rm -f conftest*
29263
29264   fi
29265   #
29266   if test "$tst_proto_fcntl" = "yes"; then
29267     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
29268 $as_echo_n "checking if fcntl is compilable... " >&6; }
29269     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29270 /* end confdefs.h.  */
29271
29272
29273         $curl_includes_fcntl
29274
29275 int main (void)
29276 {
29277
29278         if(0 != fcntl(0, 0, 0))
29279           return 1;
29280
29281  ;
29282  return 0;
29283 }
29284
29285 _ACEOF
29286 if ac_fn_c_try_compile "$LINENO"; then :
29287
29288       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29289 $as_echo "yes" >&6; }
29290       tst_compi_fcntl="yes"
29291
29292 else
29293
29294       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29295 $as_echo "no" >&6; }
29296       tst_compi_fcntl="no"
29297
29298 fi
29299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29300   fi
29301   #
29302   if test "$tst_compi_fcntl" = "yes"; then
29303     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
29304 $as_echo_n "checking if fcntl usage allowed... " >&6; }
29305     if test "x$curl_disallow_fcntl" != "xyes"; then
29306       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29307 $as_echo "yes" >&6; }
29308       tst_allow_fcntl="yes"
29309     else
29310       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29311 $as_echo "no" >&6; }
29312       tst_allow_fcntl="no"
29313     fi
29314   fi
29315   #
29316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
29317 $as_echo_n "checking if fcntl might be used... " >&6; }
29318   if test "$tst_links_fcntl" = "yes" &&
29319      test "$tst_proto_fcntl" = "yes" &&
29320      test "$tst_compi_fcntl" = "yes" &&
29321      test "$tst_allow_fcntl" = "yes"; then
29322     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29323 $as_echo "yes" >&6; }
29324
29325 cat >>confdefs.h <<_ACEOF
29326 #define HAVE_FCNTL 1
29327 _ACEOF
29328
29329     ac_cv_func_fcntl="yes"
29330
29331   #
29332   tst_compi_fcntl_o_nonblock="unknown"
29333   tst_allow_fcntl_o_nonblock="unknown"
29334   #
29335   case $host_os in
29336     sunos4* | aix3* | beos*)
29337             curl_disallow_fcntl_o_nonblock="yes"
29338       ;;
29339   esac
29340   #
29341   if test "$ac_cv_func_fcntl" = "yes"; then
29342     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
29343 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
29344     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29345 /* end confdefs.h.  */
29346
29347
29348         $curl_includes_fcntl
29349
29350 int main (void)
29351 {
29352
29353         int flags = 0;
29354         if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
29355           return 1;
29356
29357  ;
29358  return 0;
29359 }
29360
29361 _ACEOF
29362 if ac_fn_c_try_compile "$LINENO"; then :
29363
29364       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29365 $as_echo "yes" >&6; }
29366       tst_compi_fcntl_o_nonblock="yes"
29367
29368 else
29369
29370       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29371 $as_echo "no" >&6; }
29372       tst_compi_fcntl_o_nonblock="no"
29373
29374 fi
29375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29376   fi
29377   #
29378   if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
29379     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
29380 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
29381     if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
29382       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29383 $as_echo "yes" >&6; }
29384       tst_allow_fcntl_o_nonblock="yes"
29385     else
29386       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29387 $as_echo "no" >&6; }
29388       tst_allow_fcntl_o_nonblock="no"
29389     fi
29390   fi
29391   #
29392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
29393 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
29394   if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
29395      test "$tst_allow_fcntl_o_nonblock" = "yes"; then
29396     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29397 $as_echo "yes" >&6; }
29398
29399 cat >>confdefs.h <<_ACEOF
29400 #define HAVE_FCNTL_O_NONBLOCK 1
29401 _ACEOF
29402
29403     ac_cv_func_fcntl_o_nonblock="yes"
29404   else
29405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29406 $as_echo "no" >&6; }
29407     ac_cv_func_fcntl_o_nonblock="no"
29408   fi
29409
29410   else
29411     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29412 $as_echo "no" >&6; }
29413     ac_cv_func_fcntl="no"
29414   fi
29415
29416
29417 curl_includes_stdio="\
29418 /* includes start */
29419 #ifdef HAVE_SYS_TYPES_H
29420 #  include <sys/types.h>
29421 #endif
29422 #ifdef HAVE_STDIO_H
29423 #  include <stdio.h>
29424 #endif
29425 /* includes end */"
29426   for ac_header in sys/types.h stdio.h
29427 do :
29428   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29429 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
29430 "
29431 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29432   cat >>confdefs.h <<_ACEOF
29433 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29434 _ACEOF
29435
29436 fi
29437
29438 done
29439
29440
29441
29442     #
29443   tst_links_fdopen="unknown"
29444   tst_proto_fdopen="unknown"
29445   tst_compi_fdopen="unknown"
29446   tst_allow_fdopen="unknown"
29447   #
29448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
29449 $as_echo_n "checking if fdopen can be linked... " >&6; }
29450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29451 /* end confdefs.h.  */
29452
29453
29454 #define fdopen innocuous_fdopen
29455 #ifdef __STDC__
29456 # include <limits.h>
29457 #else
29458 # include <assert.h>
29459 #endif
29460 #undef fdopen
29461 #ifdef __cplusplus
29462 extern "C"
29463 #endif
29464 char fdopen ();
29465 #if defined __stub_fdopen || defined __stub___fdopen
29466 choke me
29467 #endif
29468
29469 int main (void)
29470 {
29471 return fdopen ();
29472  ;
29473  return 0;
29474 }
29475
29476 _ACEOF
29477 if ac_fn_c_try_link "$LINENO"; then :
29478
29479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29480 $as_echo "yes" >&6; }
29481     tst_links_fdopen="yes"
29482
29483 else
29484
29485     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29486 $as_echo "no" >&6; }
29487     tst_links_fdopen="no"
29488
29489 fi
29490 rm -f core conftest.err conftest.$ac_objext \
29491     conftest$ac_exeext conftest.$ac_ext
29492   #
29493   if test "$tst_links_fdopen" = "yes"; then
29494     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
29495 $as_echo_n "checking if fdopen is prototyped... " >&6; }
29496     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29497 /* end confdefs.h.  */
29498
29499       $curl_includes_stdio
29500
29501 _ACEOF
29502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29503   $EGREP "fdopen" >/dev/null 2>&1; then :
29504
29505       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29506 $as_echo "yes" >&6; }
29507       tst_proto_fdopen="yes"
29508
29509 else
29510
29511       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29512 $as_echo "no" >&6; }
29513       tst_proto_fdopen="no"
29514
29515 fi
29516 rm -f conftest*
29517
29518   fi
29519   #
29520   if test "$tst_proto_fdopen" = "yes"; then
29521     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
29522 $as_echo_n "checking if fdopen is compilable... " >&6; }
29523     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29524 /* end confdefs.h.  */
29525
29526
29527         $curl_includes_stdio
29528
29529 int main (void)
29530 {
29531
29532         if(0 != fdopen(0, 0))
29533           return 1;
29534
29535  ;
29536  return 0;
29537 }
29538
29539 _ACEOF
29540 if ac_fn_c_try_compile "$LINENO"; then :
29541
29542       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29543 $as_echo "yes" >&6; }
29544       tst_compi_fdopen="yes"
29545
29546 else
29547
29548       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29549 $as_echo "no" >&6; }
29550       tst_compi_fdopen="no"
29551
29552 fi
29553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29554   fi
29555   #
29556   if test "$tst_compi_fdopen" = "yes"; then
29557     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
29558 $as_echo_n "checking if fdopen usage allowed... " >&6; }
29559     if test "x$curl_disallow_fdopen" != "xyes"; then
29560       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29561 $as_echo "yes" >&6; }
29562       tst_allow_fdopen="yes"
29563     else
29564       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29565 $as_echo "no" >&6; }
29566       tst_allow_fdopen="no"
29567     fi
29568   fi
29569   #
29570   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
29571 $as_echo_n "checking if fdopen might be used... " >&6; }
29572   if test "$tst_links_fdopen" = "yes" &&
29573      test "$tst_proto_fdopen" = "yes" &&
29574      test "$tst_compi_fdopen" = "yes" &&
29575      test "$tst_allow_fdopen" = "yes"; then
29576     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29577 $as_echo "yes" >&6; }
29578
29579 cat >>confdefs.h <<_ACEOF
29580 #define HAVE_FDOPEN 1
29581 _ACEOF
29582
29583     ac_cv_func_fdopen="yes"
29584   else
29585     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29586 $as_echo "no" >&6; }
29587     ac_cv_func_fdopen="no"
29588   fi
29589
29590
29591 curl_includes_netdb="\
29592 /* includes start */
29593 #ifdef HAVE_SYS_TYPES_H
29594 #  include <sys/types.h>
29595 #endif
29596 #ifdef HAVE_NETDB_H
29597 #  include <netdb.h>
29598 #endif
29599 /* includes end */"
29600   for ac_header in sys/types.h netdb.h
29601 do :
29602   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29603 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
29604 "
29605 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29606   cat >>confdefs.h <<_ACEOF
29607 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29608 _ACEOF
29609
29610 fi
29611
29612 done
29613
29614
29615
29616         #
29617   tst_links_freeaddrinfo="unknown"
29618   tst_proto_freeaddrinfo="unknown"
29619   tst_compi_freeaddrinfo="unknown"
29620   tst_allow_freeaddrinfo="unknown"
29621   #
29622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
29623 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
29624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29625 /* end confdefs.h.  */
29626
29627
29628       $curl_includes_ws2tcpip
29629       $curl_includes_sys_socket
29630       $curl_includes_netdb
29631
29632 int main (void)
29633 {
29634
29635       freeaddrinfo(0);
29636
29637  ;
29638  return 0;
29639 }
29640
29641 _ACEOF
29642 if ac_fn_c_try_link "$LINENO"; then :
29643
29644     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29645 $as_echo "yes" >&6; }
29646     tst_links_freeaddrinfo="yes"
29647
29648 else
29649
29650     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29651 $as_echo "no" >&6; }
29652     tst_links_freeaddrinfo="no"
29653
29654 fi
29655 rm -f core conftest.err conftest.$ac_objext \
29656     conftest$ac_exeext conftest.$ac_ext
29657   #
29658   if test "$tst_links_freeaddrinfo" = "yes"; then
29659     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
29660 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
29661     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29662 /* end confdefs.h.  */
29663
29664       $curl_includes_ws2tcpip
29665       $curl_includes_sys_socket
29666       $curl_includes_netdb
29667
29668 _ACEOF
29669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29670   $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
29671
29672       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29673 $as_echo "yes" >&6; }
29674       tst_proto_freeaddrinfo="yes"
29675
29676 else
29677
29678       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29679 $as_echo "no" >&6; }
29680       tst_proto_freeaddrinfo="no"
29681
29682 fi
29683 rm -f conftest*
29684
29685   fi
29686   #
29687   if test "$tst_proto_freeaddrinfo" = "yes"; then
29688     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
29689 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
29690     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29691 /* end confdefs.h.  */
29692
29693
29694         $curl_includes_ws2tcpip
29695         $curl_includes_sys_socket
29696         $curl_includes_netdb
29697
29698 int main (void)
29699 {
29700
29701         freeaddrinfo(0);
29702
29703  ;
29704  return 0;
29705 }
29706
29707 _ACEOF
29708 if ac_fn_c_try_compile "$LINENO"; then :
29709
29710       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29711 $as_echo "yes" >&6; }
29712       tst_compi_freeaddrinfo="yes"
29713
29714 else
29715
29716       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29717 $as_echo "no" >&6; }
29718       tst_compi_freeaddrinfo="no"
29719
29720 fi
29721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29722   fi
29723   #
29724   if test "$tst_compi_freeaddrinfo" = "yes"; then
29725     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
29726 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
29727     if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
29728       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29729 $as_echo "yes" >&6; }
29730       tst_allow_freeaddrinfo="yes"
29731     else
29732       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29733 $as_echo "no" >&6; }
29734       tst_allow_freeaddrinfo="no"
29735     fi
29736   fi
29737   #
29738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
29739 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
29740   if test "$tst_links_freeaddrinfo" = "yes" &&
29741      test "$tst_proto_freeaddrinfo" = "yes" &&
29742      test "$tst_compi_freeaddrinfo" = "yes" &&
29743      test "$tst_allow_freeaddrinfo" = "yes"; then
29744     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29745 $as_echo "yes" >&6; }
29746
29747 cat >>confdefs.h <<_ACEOF
29748 #define HAVE_FREEADDRINFO 1
29749 _ACEOF
29750
29751     ac_cv_func_freeaddrinfo="yes"
29752   else
29753     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29754 $as_echo "no" >&6; }
29755     ac_cv_func_freeaddrinfo="no"
29756   fi
29757
29758
29759 curl_includes_ifaddrs="\
29760 /* includes start */
29761 #ifdef HAVE_SYS_TYPES_H
29762 #  include <sys/types.h>
29763 #endif
29764 #ifdef HAVE_SYS_SOCKET_H
29765 #  include <sys/socket.h>
29766 #endif
29767 #ifdef HAVE_NETINET_IN_H
29768 #  include <netinet/in.h>
29769 #endif
29770 #ifdef HAVE_IFADDRS_H
29771 #  include <ifaddrs.h>
29772 #endif
29773 /* includes end */"
29774   for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
29775 do :
29776   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29777 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
29778 "
29779 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29780   cat >>confdefs.h <<_ACEOF
29781 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29782 _ACEOF
29783
29784 fi
29785
29786 done
29787
29788
29789
29790     #
29791   tst_links_freeifaddrs="unknown"
29792   tst_proto_freeifaddrs="unknown"
29793   tst_compi_freeifaddrs="unknown"
29794   tst_allow_freeifaddrs="unknown"
29795   #
29796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
29797 $as_echo_n "checking if freeifaddrs can be linked... " >&6; }
29798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29799 /* end confdefs.h.  */
29800
29801
29802 #define freeifaddrs innocuous_freeifaddrs
29803 #ifdef __STDC__
29804 # include <limits.h>
29805 #else
29806 # include <assert.h>
29807 #endif
29808 #undef freeifaddrs
29809 #ifdef __cplusplus
29810 extern "C"
29811 #endif
29812 char freeifaddrs ();
29813 #if defined __stub_freeifaddrs || defined __stub___freeifaddrs
29814 choke me
29815 #endif
29816
29817 int main (void)
29818 {
29819 return freeifaddrs ();
29820  ;
29821  return 0;
29822 }
29823
29824 _ACEOF
29825 if ac_fn_c_try_link "$LINENO"; then :
29826
29827     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29828 $as_echo "yes" >&6; }
29829     tst_links_freeifaddrs="yes"
29830
29831 else
29832
29833     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29834 $as_echo "no" >&6; }
29835     tst_links_freeifaddrs="no"
29836
29837 fi
29838 rm -f core conftest.err conftest.$ac_objext \
29839     conftest$ac_exeext conftest.$ac_ext
29840   #
29841   if test "$tst_links_freeifaddrs" = "yes"; then
29842     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
29843 $as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
29844     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29845 /* end confdefs.h.  */
29846
29847       $curl_includes_ifaddrs
29848
29849 _ACEOF
29850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29851   $EGREP "freeifaddrs" >/dev/null 2>&1; then :
29852
29853       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29854 $as_echo "yes" >&6; }
29855       tst_proto_freeifaddrs="yes"
29856
29857 else
29858
29859       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29860 $as_echo "no" >&6; }
29861       tst_proto_freeifaddrs="no"
29862
29863 fi
29864 rm -f conftest*
29865
29866   fi
29867   #
29868   if test "$tst_proto_freeifaddrs" = "yes"; then
29869     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
29870 $as_echo_n "checking if freeifaddrs is compilable... " >&6; }
29871     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29872 /* end confdefs.h.  */
29873
29874
29875         $curl_includes_ifaddrs
29876
29877 int main (void)
29878 {
29879
29880         freeifaddrs(0);
29881
29882  ;
29883  return 0;
29884 }
29885
29886 _ACEOF
29887 if ac_fn_c_try_compile "$LINENO"; then :
29888
29889       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29890 $as_echo "yes" >&6; }
29891       tst_compi_freeifaddrs="yes"
29892
29893 else
29894
29895       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29896 $as_echo "no" >&6; }
29897       tst_compi_freeifaddrs="no"
29898
29899 fi
29900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29901   fi
29902   #
29903   if test "$tst_compi_freeifaddrs" = "yes"; then
29904     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
29905 $as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
29906     if test "x$curl_disallow_freeifaddrs" != "xyes"; then
29907       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29908 $as_echo "yes" >&6; }
29909       tst_allow_freeifaddrs="yes"
29910     else
29911       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29912 $as_echo "no" >&6; }
29913       tst_allow_freeifaddrs="no"
29914     fi
29915   fi
29916   #
29917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
29918 $as_echo_n "checking if freeifaddrs might be used... " >&6; }
29919   if test "$tst_links_freeifaddrs" = "yes" &&
29920      test "$tst_proto_freeifaddrs" = "yes" &&
29921      test "$tst_compi_freeifaddrs" = "yes" &&
29922      test "$tst_allow_freeifaddrs" = "yes"; then
29923     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29924 $as_echo "yes" >&6; }
29925
29926 cat >>confdefs.h <<_ACEOF
29927 #define HAVE_FREEIFADDRS 1
29928 _ACEOF
29929
29930     ac_cv_func_freeifaddrs="yes"
29931   else
29932     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29933 $as_echo "no" >&6; }
29934     ac_cv_func_freeifaddrs="no"
29935   fi
29936
29937
29938 curl_includes_sys_xattr="\
29939 /* includes start */
29940 #ifdef HAVE_SYS_TYPES_H
29941 #  include <sys/types.h>
29942 #endif
29943 #ifdef HAVE_SYS_XATTR_H
29944 #  include <sys/xattr.h>
29945 #endif
29946 /* includes end */"
29947   for ac_header in sys/types.h sys/xattr.h
29948 do :
29949   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29950 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
29951 "
29952 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29953   cat >>confdefs.h <<_ACEOF
29954 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29955 _ACEOF
29956
29957 fi
29958
29959 done
29960
29961
29962
29963     #
29964   tst_links_fsetxattr="unknown"
29965   tst_proto_fsetxattr="unknown"
29966   tst_compi_fsetxattr="unknown"
29967   tst_allow_fsetxattr="unknown"
29968   tst_nargs_fsetxattr="unknown"
29969   #
29970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
29971 $as_echo_n "checking if fsetxattr can be linked... " >&6; }
29972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29973 /* end confdefs.h.  */
29974
29975
29976 #define fsetxattr innocuous_fsetxattr
29977 #ifdef __STDC__
29978 # include <limits.h>
29979 #else
29980 # include <assert.h>
29981 #endif
29982 #undef fsetxattr
29983 #ifdef __cplusplus
29984 extern "C"
29985 #endif
29986 char fsetxattr ();
29987 #if defined __stub_fsetxattr || defined __stub___fsetxattr
29988 choke me
29989 #endif
29990
29991 int main (void)
29992 {
29993 return fsetxattr ();
29994  ;
29995  return 0;
29996 }
29997
29998 _ACEOF
29999 if ac_fn_c_try_link "$LINENO"; then :
30000
30001     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30002 $as_echo "yes" >&6; }
30003     tst_links_fsetxattr="yes"
30004
30005 else
30006
30007     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30008 $as_echo "no" >&6; }
30009     tst_links_fsetxattr="no"
30010
30011 fi
30012 rm -f core conftest.err conftest.$ac_objext \
30013     conftest$ac_exeext conftest.$ac_ext
30014   #
30015   if test "$tst_links_fsetxattr" = "yes"; then
30016     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
30017 $as_echo_n "checking if fsetxattr is prototyped... " >&6; }
30018     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30019 /* end confdefs.h.  */
30020
30021       $curl_includes_sys_xattr
30022
30023 _ACEOF
30024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30025   $EGREP "fsetxattr" >/dev/null 2>&1; then :
30026
30027       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30028 $as_echo "yes" >&6; }
30029       tst_proto_fsetxattr="yes"
30030
30031 else
30032
30033       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30034 $as_echo "no" >&6; }
30035       tst_proto_fsetxattr="no"
30036
30037 fi
30038 rm -f conftest*
30039
30040   fi
30041   #
30042   if test "$tst_proto_fsetxattr" = "yes"; then
30043     if test "$tst_nargs_fsetxattr" = "unknown"; then
30044       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
30045 $as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
30046       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30047 /* end confdefs.h.  */
30048
30049
30050           $curl_includes_sys_xattr
30051
30052 int main (void)
30053 {
30054
30055           if(0 != fsetxattr(0, 0, 0, 0, 0))
30056             return 1;
30057
30058  ;
30059  return 0;
30060 }
30061
30062 _ACEOF
30063 if ac_fn_c_try_compile "$LINENO"; then :
30064
30065         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30066 $as_echo "yes" >&6; }
30067         tst_compi_fsetxattr="yes"
30068         tst_nargs_fsetxattr="5"
30069
30070 else
30071
30072         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30073 $as_echo "no" >&6; }
30074         tst_compi_fsetxattr="no"
30075
30076 fi
30077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30078     fi
30079     if test "$tst_nargs_fsetxattr" = "unknown"; then
30080       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
30081 $as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
30082       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30083 /* end confdefs.h.  */
30084
30085
30086           $curl_includes_sys_xattr
30087
30088 int main (void)
30089 {
30090
30091           if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
30092             return 1;
30093
30094  ;
30095  return 0;
30096 }
30097
30098 _ACEOF
30099 if ac_fn_c_try_compile "$LINENO"; then :
30100
30101         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30102 $as_echo "yes" >&6; }
30103         tst_compi_fsetxattr="yes"
30104         tst_nargs_fsetxattr="6"
30105
30106 else
30107
30108         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30109 $as_echo "no" >&6; }
30110         tst_compi_fsetxattr="no"
30111
30112 fi
30113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30114     fi
30115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
30116 $as_echo_n "checking if fsetxattr is compilable... " >&6; }
30117     if test "$tst_compi_fsetxattr" = "yes"; then
30118       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30119 $as_echo "yes" >&6; }
30120     else
30121       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30122 $as_echo "no" >&6; }
30123     fi
30124   fi
30125   #
30126   if test "$tst_compi_fsetxattr" = "yes"; then
30127     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
30128 $as_echo_n "checking if fsetxattr usage allowed... " >&6; }
30129     if test "x$curl_disallow_fsetxattr" != "xyes"; then
30130       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30131 $as_echo "yes" >&6; }
30132       tst_allow_fsetxattr="yes"
30133     else
30134       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30135 $as_echo "no" >&6; }
30136       tst_allow_fsetxattr="no"
30137     fi
30138   fi
30139   #
30140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
30141 $as_echo_n "checking if fsetxattr might be used... " >&6; }
30142   if test "$tst_links_fsetxattr" = "yes" &&
30143      test "$tst_proto_fsetxattr" = "yes" &&
30144      test "$tst_compi_fsetxattr" = "yes" &&
30145      test "$tst_allow_fsetxattr" = "yes"; then
30146     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30147 $as_echo "yes" >&6; }
30148
30149 cat >>confdefs.h <<_ACEOF
30150 #define HAVE_FSETXATTR 1
30151 _ACEOF
30152
30153             #
30154     if test "$tst_nargs_fsetxattr" -eq "5"; then
30155
30156 $as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
30157
30158     elif test "$tst_nargs_fsetxattr" -eq "6"; then
30159
30160 $as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
30161
30162     fi
30163     #
30164     ac_cv_func_fsetxattr="yes"
30165   else
30166     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30167 $as_echo "no" >&6; }
30168     ac_cv_func_fsetxattr="no"
30169   fi
30170
30171
30172     #
30173   tst_links_ftruncate="unknown"
30174   tst_proto_ftruncate="unknown"
30175   tst_compi_ftruncate="unknown"
30176   tst_allow_ftruncate="unknown"
30177   #
30178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
30179 $as_echo_n "checking if ftruncate can be linked... " >&6; }
30180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30181 /* end confdefs.h.  */
30182
30183
30184 #define ftruncate innocuous_ftruncate
30185 #ifdef __STDC__
30186 # include <limits.h>
30187 #else
30188 # include <assert.h>
30189 #endif
30190 #undef ftruncate
30191 #ifdef __cplusplus
30192 extern "C"
30193 #endif
30194 char ftruncate ();
30195 #if defined __stub_ftruncate || defined __stub___ftruncate
30196 choke me
30197 #endif
30198
30199 int main (void)
30200 {
30201 return ftruncate ();
30202  ;
30203  return 0;
30204 }
30205
30206 _ACEOF
30207 if ac_fn_c_try_link "$LINENO"; then :
30208
30209     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30210 $as_echo "yes" >&6; }
30211     tst_links_ftruncate="yes"
30212
30213 else
30214
30215     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30216 $as_echo "no" >&6; }
30217     tst_links_ftruncate="no"
30218
30219 fi
30220 rm -f core conftest.err conftest.$ac_objext \
30221     conftest$ac_exeext conftest.$ac_ext
30222   #
30223   if test "$tst_links_ftruncate" = "yes"; then
30224     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
30225 $as_echo_n "checking if ftruncate is prototyped... " >&6; }
30226     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30227 /* end confdefs.h.  */
30228
30229       $curl_includes_unistd
30230
30231 _ACEOF
30232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30233   $EGREP "ftruncate" >/dev/null 2>&1; then :
30234
30235       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30236 $as_echo "yes" >&6; }
30237       tst_proto_ftruncate="yes"
30238
30239 else
30240
30241       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30242 $as_echo "no" >&6; }
30243       tst_proto_ftruncate="no"
30244
30245 fi
30246 rm -f conftest*
30247
30248   fi
30249   #
30250   if test "$tst_proto_ftruncate" = "yes"; then
30251     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
30252 $as_echo_n "checking if ftruncate is compilable... " >&6; }
30253     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30254 /* end confdefs.h.  */
30255
30256
30257         $curl_includes_unistd
30258
30259 int main (void)
30260 {
30261
30262         if(0 != ftruncate(0, 0))
30263           return 1;
30264
30265  ;
30266  return 0;
30267 }
30268
30269 _ACEOF
30270 if ac_fn_c_try_compile "$LINENO"; then :
30271
30272       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30273 $as_echo "yes" >&6; }
30274       tst_compi_ftruncate="yes"
30275
30276 else
30277
30278       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30279 $as_echo "no" >&6; }
30280       tst_compi_ftruncate="no"
30281
30282 fi
30283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30284   fi
30285   #
30286   if test "$tst_compi_ftruncate" = "yes"; then
30287     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
30288 $as_echo_n "checking if ftruncate usage allowed... " >&6; }
30289     if test "x$curl_disallow_ftruncate" != "xyes"; then
30290       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30291 $as_echo "yes" >&6; }
30292       tst_allow_ftruncate="yes"
30293     else
30294       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30295 $as_echo "no" >&6; }
30296       tst_allow_ftruncate="no"
30297     fi
30298   fi
30299   #
30300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
30301 $as_echo_n "checking if ftruncate might be used... " >&6; }
30302   if test "$tst_links_ftruncate" = "yes" &&
30303      test "$tst_proto_ftruncate" = "yes" &&
30304      test "$tst_compi_ftruncate" = "yes" &&
30305      test "$tst_allow_ftruncate" = "yes"; then
30306     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30307 $as_echo "yes" >&6; }
30308
30309 cat >>confdefs.h <<_ACEOF
30310 #define HAVE_FTRUNCATE 1
30311 _ACEOF
30312
30313     ac_cv_func_ftruncate="yes"
30314   else
30315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30316 $as_echo "no" >&6; }
30317     ac_cv_func_ftruncate="no"
30318   fi
30319
30320
30321 curl_includes_stdlib="\
30322 /* includes start */
30323 #ifdef HAVE_SYS_TYPES_H
30324 #  include <sys/types.h>
30325 #endif
30326 #ifdef HAVE_STDLIB_H
30327 #  include <stdlib.h>
30328 #endif
30329 /* includes end */"
30330   for ac_header in sys/types.h stdlib.h
30331 do :
30332   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30333 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
30334 "
30335 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30336   cat >>confdefs.h <<_ACEOF
30337 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30338 _ACEOF
30339
30340 fi
30341
30342 done
30343
30344
30345
30346               #
30347   tst_links_getaddrinfo="unknown"
30348   tst_proto_getaddrinfo="unknown"
30349   tst_compi_getaddrinfo="unknown"
30350   tst_works_getaddrinfo="unknown"
30351   tst_allow_getaddrinfo="unknown"
30352   tst_tsafe_getaddrinfo="unknown"
30353   #
30354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
30355 $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
30356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30357 /* end confdefs.h.  */
30358
30359
30360       $curl_includes_ws2tcpip
30361       $curl_includes_sys_socket
30362       $curl_includes_netdb
30363
30364 int main (void)
30365 {
30366
30367       if(0 != getaddrinfo(0, 0, 0, 0))
30368         return 1;
30369
30370  ;
30371  return 0;
30372 }
30373
30374 _ACEOF
30375 if ac_fn_c_try_link "$LINENO"; then :
30376
30377     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30378 $as_echo "yes" >&6; }
30379     tst_links_getaddrinfo="yes"
30380
30381 else
30382
30383     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30384 $as_echo "no" >&6; }
30385     tst_links_getaddrinfo="no"
30386
30387 fi
30388 rm -f core conftest.err conftest.$ac_objext \
30389     conftest$ac_exeext conftest.$ac_ext
30390   #
30391   if test "$tst_links_getaddrinfo" = "yes"; then
30392     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
30393 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
30394     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30395 /* end confdefs.h.  */
30396
30397       $curl_includes_ws2tcpip
30398       $curl_includes_sys_socket
30399       $curl_includes_netdb
30400
30401 _ACEOF
30402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30403   $EGREP "getaddrinfo" >/dev/null 2>&1; then :
30404
30405       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30406 $as_echo "yes" >&6; }
30407       tst_proto_getaddrinfo="yes"
30408
30409 else
30410
30411       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30412 $as_echo "no" >&6; }
30413       tst_proto_getaddrinfo="no"
30414
30415 fi
30416 rm -f conftest*
30417
30418   fi
30419   #
30420   if test "$tst_proto_getaddrinfo" = "yes"; then
30421     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
30422 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
30423     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30424 /* end confdefs.h.  */
30425
30426
30427         $curl_includes_ws2tcpip
30428         $curl_includes_sys_socket
30429         $curl_includes_netdb
30430
30431 int main (void)
30432 {
30433
30434         if(0 != getaddrinfo(0, 0, 0, 0))
30435           return 1;
30436
30437  ;
30438  return 0;
30439 }
30440
30441 _ACEOF
30442 if ac_fn_c_try_compile "$LINENO"; then :
30443
30444       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30445 $as_echo "yes" >&6; }
30446       tst_compi_getaddrinfo="yes"
30447
30448 else
30449
30450       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30451 $as_echo "no" >&6; }
30452       tst_compi_getaddrinfo="no"
30453
30454 fi
30455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30456   fi
30457   #
30458     if test "x$cross_compiling" != "xyes" &&
30459     test "$tst_compi_getaddrinfo" = "yes"; then
30460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
30461 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
30462     if test "$cross_compiling" = yes; then :
30463   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30465 as_fn_error $? "cannot run test program while cross compiling
30466 See \`config.log' for more details" "$LINENO" 5; }
30467 else
30468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30469 /* end confdefs.h.  */
30470
30471
30472         $curl_includes_ws2tcpip
30473         $curl_includes_stdlib
30474         $curl_includes_string
30475         $curl_includes_sys_socket
30476         $curl_includes_netdb
30477
30478 int main (void)
30479 {
30480
30481         struct addrinfo hints;
30482         struct addrinfo *ai = 0;
30483         int error;
30484
30485         memset(&hints, 0, sizeof(hints));
30486         hints.ai_flags = AI_NUMERICHOST;
30487         hints.ai_family = AF_UNSPEC;
30488         hints.ai_socktype = SOCK_STREAM;
30489         error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
30490         if(error || !ai)
30491           exit(1); /* fail */
30492         else
30493           exit(0);
30494
30495  ;
30496  return 0;
30497 }
30498
30499 _ACEOF
30500 if ac_fn_c_try_run "$LINENO"; then :
30501
30502       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30503 $as_echo "yes" >&6; }
30504       tst_works_getaddrinfo="yes"
30505
30506 else
30507
30508       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30509 $as_echo "no" >&6; }
30510       tst_works_getaddrinfo="no"
30511
30512 fi
30513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30514   conftest.$ac_objext conftest.beam conftest.$ac_ext
30515 fi
30516
30517   fi
30518   #
30519   if test "$tst_compi_getaddrinfo" = "yes" &&
30520     test "$tst_works_getaddrinfo" != "no"; then
30521     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
30522 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
30523     if test "x$curl_disallow_getaddrinfo" != "xyes"; then
30524       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30525 $as_echo "yes" >&6; }
30526       tst_allow_getaddrinfo="yes"
30527     else
30528       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30529 $as_echo "no" >&6; }
30530       tst_allow_getaddrinfo="no"
30531     fi
30532   fi
30533   #
30534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
30535 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
30536   if test "$tst_links_getaddrinfo" = "yes" &&
30537      test "$tst_proto_getaddrinfo" = "yes" &&
30538      test "$tst_compi_getaddrinfo" = "yes" &&
30539      test "$tst_allow_getaddrinfo" = "yes" &&
30540      test "$tst_works_getaddrinfo" != "no"; then
30541     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30542 $as_echo "yes" >&6; }
30543
30544 cat >>confdefs.h <<_ACEOF
30545 #define HAVE_GETADDRINFO 1
30546 _ACEOF
30547
30548     ac_cv_func_getaddrinfo="yes"
30549   else
30550     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30551 $as_echo "no" >&6; }
30552     ac_cv_func_getaddrinfo="no"
30553     ac_cv_func_getaddrinfo_threadsafe="no"
30554   fi
30555   #
30556   if test "$ac_cv_func_getaddrinfo" = "yes"; then
30557     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
30558 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
30559     case $host_os in
30560       aix[1234].* | aix5.[01].*)
30561                 tst_tsafe_getaddrinfo="no"
30562         ;;
30563       aix*)
30564                 tst_tsafe_getaddrinfo="yes"
30565         ;;
30566       darwin[12345].*)
30567                 tst_tsafe_getaddrinfo="no"
30568         ;;
30569       darwin*)
30570                 tst_tsafe_getaddrinfo="yes"
30571         ;;
30572       freebsd[1234].* | freebsd5.[1234]*)
30573                 tst_tsafe_getaddrinfo="no"
30574         ;;
30575       freebsd*)
30576                 tst_tsafe_getaddrinfo="yes"
30577         ;;
30578       hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
30579                 tst_tsafe_getaddrinfo="no"
30580         ;;
30581       hpux*)
30582                 tst_tsafe_getaddrinfo="yes"
30583         ;;
30584       netbsd[123].*)
30585                 tst_tsafe_getaddrinfo="no"
30586         ;;
30587       netbsd*)
30588                 tst_tsafe_getaddrinfo="yes"
30589         ;;
30590       *bsd*)
30591                 tst_tsafe_getaddrinfo="no"
30592         ;;
30593       solaris2*)
30594                 tst_tsafe_getaddrinfo="yes"
30595         ;;
30596     esac
30597     if test "$tst_tsafe_getaddrinfo" = "unknown" &&
30598        test "$ac_cv_native_windows" = "yes"; then
30599       tst_tsafe_getaddrinfo="yes"
30600     fi
30601     if test "$tst_tsafe_getaddrinfo" = "unknown"; then
30602
30603
30604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30605 /* end confdefs.h.  */
30606
30607
30608         $curl_includes_sys_socket
30609         $curl_includes_netdb
30610
30611 int main (void)
30612 {
30613 #ifdef h_errno
30614   return 0;
30615 #else
30616   force compilation error
30617 #endif
30618 }
30619
30620
30621 _ACEOF
30622 if ac_fn_c_try_compile "$LINENO"; then :
30623
30624     tst_symbol_defined="yes"
30625
30626 else
30627
30628     tst_symbol_defined="no"
30629
30630 fi
30631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30632   if test "$tst_symbol_defined" = "yes"; then
30633     curl_cv_have_def_h_errno=yes
30634
30635   else
30636     curl_cv_have_def_h_errno=no
30637
30638   fi
30639
30640       if test "$curl_cv_have_def_h_errno" = "yes"; then
30641         tst_h_errno_macro="yes"
30642       else
30643         tst_h_errno_macro="no"
30644       fi
30645       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30646 /* end confdefs.h.  */
30647
30648
30649           $curl_includes_sys_socket
30650           $curl_includes_netdb
30651
30652 int main (void)
30653 {
30654
30655           h_errno = 2;
30656           if(0 != h_errno)
30657             return 1;
30658
30659  ;
30660  return 0;
30661 }
30662
30663 _ACEOF
30664 if ac_fn_c_try_compile "$LINENO"; then :
30665
30666         tst_h_errno_modifiable_lvalue="yes"
30667
30668 else
30669
30670         tst_h_errno_modifiable_lvalue="no"
30671
30672 fi
30673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30674       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30675 /* end confdefs.h.  */
30676
30677
30678
30679 int main (void)
30680 {
30681
30682 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
30683           return 0;
30684 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
30685           return 0;
30686 #else
30687           force compilation error
30688 #endif
30689
30690  ;
30691  return 0;
30692 }
30693
30694 _ACEOF
30695 if ac_fn_c_try_compile "$LINENO"; then :
30696
30697         tst_h_errno_sbs_issue_7="yes"
30698
30699 else
30700
30701         tst_h_errno_sbs_issue_7="no"
30702
30703 fi
30704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30705       if test "$tst_h_errno_macro" = "no" &&
30706          test "$tst_h_errno_modifiable_lvalue" = "no" &&
30707          test "$tst_h_errno_sbs_issue_7" = "no"; then
30708         tst_tsafe_getaddrinfo="no"
30709       else
30710         tst_tsafe_getaddrinfo="yes"
30711       fi
30712     fi
30713     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
30714 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
30715     if test "$tst_tsafe_getaddrinfo" = "yes"; then
30716
30717 cat >>confdefs.h <<_ACEOF
30718 #define HAVE_GETADDRINFO_THREADSAFE 1
30719 _ACEOF
30720
30721       ac_cv_func_getaddrinfo_threadsafe="yes"
30722     else
30723       ac_cv_func_getaddrinfo_threadsafe="no"
30724     fi
30725   fi
30726
30727
30728       #
30729   tst_links_gai_strerror="unknown"
30730   tst_proto_gai_strerror="unknown"
30731   tst_compi_gai_strerror="unknown"
30732   tst_allow_gai_strerror="unknown"
30733   #
30734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
30735 $as_echo_n "checking if gai_strerror can be linked... " >&6; }
30736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30737 /* end confdefs.h.  */
30738
30739
30740       $curl_includes_winsock2
30741       $curl_includes_netdb
30742
30743 int main (void)
30744 {
30745
30746       if(0 != gai_strerror(0))
30747         return 1;
30748
30749  ;
30750  return 0;
30751 }
30752
30753 _ACEOF
30754 if ac_fn_c_try_link "$LINENO"; then :
30755
30756     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30757 $as_echo "yes" >&6; }
30758     tst_links_gai_strerror="yes"
30759
30760 else
30761
30762     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30763 $as_echo "no" >&6; }
30764     tst_links_gai_strerror="no"
30765
30766 fi
30767 rm -f core conftest.err conftest.$ac_objext \
30768     conftest$ac_exeext conftest.$ac_ext
30769   #
30770   if test "$tst_links_gai_strerror" = "yes"; then
30771     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
30772 $as_echo_n "checking if gai_strerror is prototyped... " >&6; }
30773     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30774 /* end confdefs.h.  */
30775
30776       $curl_includes_winsock2
30777       $curl_includes_netdb
30778
30779 _ACEOF
30780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30781   $EGREP "gai_strerror" >/dev/null 2>&1; then :
30782
30783       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30784 $as_echo "yes" >&6; }
30785       tst_proto_gai_strerror="yes"
30786
30787 else
30788
30789       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30790 $as_echo "no" >&6; }
30791       tst_proto_gai_strerror="no"
30792
30793 fi
30794 rm -f conftest*
30795
30796   fi
30797   #
30798   if test "$tst_proto_gai_strerror" = "yes"; then
30799     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
30800 $as_echo_n "checking if gai_strerror is compilable... " >&6; }
30801     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30802 /* end confdefs.h.  */
30803
30804
30805         $curl_includes_winsock2
30806         $curl_includes_netdb
30807
30808 int main (void)
30809 {
30810
30811         if(0 != gai_strerror(0))
30812           return 1;
30813
30814  ;
30815  return 0;
30816 }
30817
30818 _ACEOF
30819 if ac_fn_c_try_compile "$LINENO"; then :
30820
30821       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30822 $as_echo "yes" >&6; }
30823       tst_compi_gai_strerror="yes"
30824
30825 else
30826
30827       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30828 $as_echo "no" >&6; }
30829       tst_compi_gai_strerror="no"
30830
30831 fi
30832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30833   fi
30834   #
30835   if test "$tst_compi_gai_strerror" = "yes"; then
30836     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
30837 $as_echo_n "checking if gai_strerror usage allowed... " >&6; }
30838     if test "x$curl_disallow_gai_strerror" != "xyes"; then
30839       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30840 $as_echo "yes" >&6; }
30841       tst_allow_gai_strerror="yes"
30842     else
30843       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30844 $as_echo "no" >&6; }
30845       tst_allow_gai_strerror="no"
30846     fi
30847   fi
30848   #
30849   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
30850 $as_echo_n "checking if gai_strerror might be used... " >&6; }
30851   if test "$tst_links_gai_strerror" = "yes" &&
30852      test "$tst_proto_gai_strerror" = "yes" &&
30853      test "$tst_compi_gai_strerror" = "yes" &&
30854      test "$tst_allow_gai_strerror" = "yes"; then
30855     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30856 $as_echo "yes" >&6; }
30857
30858 cat >>confdefs.h <<_ACEOF
30859 #define HAVE_GAI_STRERROR 1
30860 _ACEOF
30861
30862     ac_cv_func_gai_strerror="yes"
30863   else
30864     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30865 $as_echo "no" >&6; }
30866     ac_cv_func_gai_strerror="no"
30867   fi
30868
30869
30870       #
30871   tst_links_gethostbyaddr="unknown"
30872   tst_proto_gethostbyaddr="unknown"
30873   tst_compi_gethostbyaddr="unknown"
30874   tst_allow_gethostbyaddr="unknown"
30875   #
30876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
30877 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
30878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30879 /* end confdefs.h.  */
30880
30881
30882       $curl_includes_winsock2
30883       $curl_includes_netdb
30884
30885 int main (void)
30886 {
30887
30888       if(0 != gethostbyaddr(0, 0, 0))
30889         return 1;
30890
30891  ;
30892  return 0;
30893 }
30894
30895 _ACEOF
30896 if ac_fn_c_try_link "$LINENO"; then :
30897
30898     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30899 $as_echo "yes" >&6; }
30900     tst_links_gethostbyaddr="yes"
30901
30902 else
30903
30904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30905 $as_echo "no" >&6; }
30906     tst_links_gethostbyaddr="no"
30907
30908 fi
30909 rm -f core conftest.err conftest.$ac_objext \
30910     conftest$ac_exeext conftest.$ac_ext
30911   #
30912   if test "$tst_links_gethostbyaddr" = "yes"; then
30913     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
30914 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
30915     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30916 /* end confdefs.h.  */
30917
30918       $curl_includes_winsock2
30919       $curl_includes_netdb
30920
30921 _ACEOF
30922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30923   $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
30924
30925       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30926 $as_echo "yes" >&6; }
30927       tst_proto_gethostbyaddr="yes"
30928
30929 else
30930
30931       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30932 $as_echo "no" >&6; }
30933       tst_proto_gethostbyaddr="no"
30934
30935 fi
30936 rm -f conftest*
30937
30938   fi
30939   #
30940   if test "$tst_proto_gethostbyaddr" = "yes"; then
30941     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
30942 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
30943     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30944 /* end confdefs.h.  */
30945
30946
30947         $curl_includes_winsock2
30948         $curl_includes_netdb
30949
30950 int main (void)
30951 {
30952
30953         if(0 != gethostbyaddr(0, 0, 0))
30954           return 1;
30955
30956  ;
30957  return 0;
30958 }
30959
30960 _ACEOF
30961 if ac_fn_c_try_compile "$LINENO"; then :
30962
30963       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30964 $as_echo "yes" >&6; }
30965       tst_compi_gethostbyaddr="yes"
30966
30967 else
30968
30969       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30970 $as_echo "no" >&6; }
30971       tst_compi_gethostbyaddr="no"
30972
30973 fi
30974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30975   fi
30976   #
30977   if test "$tst_compi_gethostbyaddr" = "yes"; then
30978     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
30979 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
30980     if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
30981       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30982 $as_echo "yes" >&6; }
30983       tst_allow_gethostbyaddr="yes"
30984     else
30985       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30986 $as_echo "no" >&6; }
30987       tst_allow_gethostbyaddr="no"
30988     fi
30989   fi
30990   #
30991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
30992 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
30993   if test "$tst_links_gethostbyaddr" = "yes" &&
30994      test "$tst_proto_gethostbyaddr" = "yes" &&
30995      test "$tst_compi_gethostbyaddr" = "yes" &&
30996      test "$tst_allow_gethostbyaddr" = "yes"; then
30997     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30998 $as_echo "yes" >&6; }
30999
31000 cat >>confdefs.h <<_ACEOF
31001 #define HAVE_GETHOSTBYADDR 1
31002 _ACEOF
31003
31004     ac_cv_func_gethostbyaddr="yes"
31005   else
31006     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31007 $as_echo "no" >&6; }
31008     ac_cv_func_gethostbyaddr="no"
31009   fi
31010
31011
31012     #
31013   tst_links_gethostbyaddr_r="unknown"
31014   tst_proto_gethostbyaddr_r="unknown"
31015   tst_compi_gethostbyaddr_r="unknown"
31016   tst_allow_gethostbyaddr_r="unknown"
31017   tst_nargs_gethostbyaddr_r="unknown"
31018   #
31019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
31020 $as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
31021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31022 /* end confdefs.h.  */
31023
31024
31025 #define gethostbyaddr_r innocuous_gethostbyaddr_r
31026 #ifdef __STDC__
31027 # include <limits.h>
31028 #else
31029 # include <assert.h>
31030 #endif
31031 #undef gethostbyaddr_r
31032 #ifdef __cplusplus
31033 extern "C"
31034 #endif
31035 char gethostbyaddr_r ();
31036 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
31037 choke me
31038 #endif
31039
31040 int main (void)
31041 {
31042 return gethostbyaddr_r ();
31043  ;
31044  return 0;
31045 }
31046
31047 _ACEOF
31048 if ac_fn_c_try_link "$LINENO"; then :
31049
31050     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31051 $as_echo "yes" >&6; }
31052     tst_links_gethostbyaddr_r="yes"
31053
31054 else
31055
31056     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31057 $as_echo "no" >&6; }
31058     tst_links_gethostbyaddr_r="no"
31059
31060 fi
31061 rm -f core conftest.err conftest.$ac_objext \
31062     conftest$ac_exeext conftest.$ac_ext
31063   #
31064   if test "$tst_links_gethostbyaddr_r" = "yes"; then
31065     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
31066 $as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
31067     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31068 /* end confdefs.h.  */
31069
31070       $curl_includes_netdb
31071
31072 _ACEOF
31073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31074   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
31075
31076       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31077 $as_echo "yes" >&6; }
31078       tst_proto_gethostbyaddr_r="yes"
31079
31080 else
31081
31082       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31083 $as_echo "no" >&6; }
31084       tst_proto_gethostbyaddr_r="no"
31085
31086 fi
31087 rm -f conftest*
31088
31089   fi
31090   #
31091   if test "$tst_proto_gethostbyaddr_r" = "yes"; then
31092     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
31093       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
31094 $as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
31095       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31096 /* end confdefs.h.  */
31097
31098
31099           $curl_includes_netdb
31100
31101 int main (void)
31102 {
31103
31104           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
31105             return 1;
31106
31107  ;
31108  return 0;
31109 }
31110
31111 _ACEOF
31112 if ac_fn_c_try_compile "$LINENO"; then :
31113
31114         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31115 $as_echo "yes" >&6; }
31116         tst_compi_gethostbyaddr_r="yes"
31117         tst_nargs_gethostbyaddr_r="5"
31118
31119 else
31120
31121         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31122 $as_echo "no" >&6; }
31123         tst_compi_gethostbyaddr_r="no"
31124
31125 fi
31126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31127     fi
31128     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
31129       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
31130 $as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
31131       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31132 /* end confdefs.h.  */
31133
31134
31135           $curl_includes_netdb
31136
31137 int main (void)
31138 {
31139
31140           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
31141             return 1;
31142
31143  ;
31144  return 0;
31145 }
31146
31147 _ACEOF
31148 if ac_fn_c_try_compile "$LINENO"; then :
31149
31150         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31151 $as_echo "yes" >&6; }
31152         tst_compi_gethostbyaddr_r="yes"
31153         tst_nargs_gethostbyaddr_r="7"
31154
31155 else
31156
31157         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31158 $as_echo "no" >&6; }
31159         tst_compi_gethostbyaddr_r="no"
31160
31161 fi
31162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31163     fi
31164     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
31165       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
31166 $as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
31167       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31168 /* end confdefs.h.  */
31169
31170
31171           $curl_includes_netdb
31172
31173 int main (void)
31174 {
31175
31176           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
31177             return 1;
31178
31179  ;
31180  return 0;
31181 }
31182
31183 _ACEOF
31184 if ac_fn_c_try_compile "$LINENO"; then :
31185
31186         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31187 $as_echo "yes" >&6; }
31188         tst_compi_gethostbyaddr_r="yes"
31189         tst_nargs_gethostbyaddr_r="8"
31190
31191 else
31192
31193         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31194 $as_echo "no" >&6; }
31195         tst_compi_gethostbyaddr_r="no"
31196
31197 fi
31198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31199     fi
31200     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
31201 $as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
31202     if test "$tst_compi_gethostbyaddr_r" = "yes"; then
31203       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31204 $as_echo "yes" >&6; }
31205     else
31206       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31207 $as_echo "no" >&6; }
31208     fi
31209   fi
31210   #
31211   if test "$tst_compi_gethostbyaddr_r" = "yes"; then
31212     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
31213 $as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
31214     if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
31215       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31216 $as_echo "yes" >&6; }
31217       tst_allow_gethostbyaddr_r="yes"
31218     else
31219       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31220 $as_echo "no" >&6; }
31221       tst_allow_gethostbyaddr_r="no"
31222     fi
31223   fi
31224   #
31225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
31226 $as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
31227   if test "$tst_links_gethostbyaddr_r" = "yes" &&
31228      test "$tst_proto_gethostbyaddr_r" = "yes" &&
31229      test "$tst_compi_gethostbyaddr_r" = "yes" &&
31230      test "$tst_allow_gethostbyaddr_r" = "yes"; then
31231     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31232 $as_echo "yes" >&6; }
31233
31234 cat >>confdefs.h <<_ACEOF
31235 #define HAVE_GETHOSTBYADDR_R 1
31236 _ACEOF
31237
31238             #
31239     if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
31240
31241 $as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
31242
31243     elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
31244
31245 $as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
31246
31247     elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
31248
31249 $as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
31250
31251     fi
31252     #
31253     ac_cv_func_gethostbyaddr_r="yes"
31254   else
31255     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31256 $as_echo "no" >&6; }
31257     ac_cv_func_gethostbyaddr_r="no"
31258   fi
31259
31260
31261       #
31262   tst_links_gethostbyname="unknown"
31263   tst_proto_gethostbyname="unknown"
31264   tst_compi_gethostbyname="unknown"
31265   tst_allow_gethostbyname="unknown"
31266   #
31267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
31268 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
31269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31270 /* end confdefs.h.  */
31271
31272
31273       $curl_includes_winsock2
31274       $curl_includes_netdb
31275
31276 int main (void)
31277 {
31278
31279       if(0 != gethostbyname(0))
31280         return 1;
31281
31282  ;
31283  return 0;
31284 }
31285
31286 _ACEOF
31287 if ac_fn_c_try_link "$LINENO"; then :
31288
31289     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31290 $as_echo "yes" >&6; }
31291     tst_links_gethostbyname="yes"
31292
31293 else
31294
31295     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31296 $as_echo "no" >&6; }
31297     tst_links_gethostbyname="no"
31298
31299 fi
31300 rm -f core conftest.err conftest.$ac_objext \
31301     conftest$ac_exeext conftest.$ac_ext
31302   #
31303   if test "$tst_links_gethostbyname" = "yes"; then
31304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
31305 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
31306     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31307 /* end confdefs.h.  */
31308
31309       $curl_includes_winsock2
31310       $curl_includes_netdb
31311
31312 _ACEOF
31313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31314   $EGREP "gethostbyname" >/dev/null 2>&1; then :
31315
31316       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31317 $as_echo "yes" >&6; }
31318       tst_proto_gethostbyname="yes"
31319
31320 else
31321
31322       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31323 $as_echo "no" >&6; }
31324       tst_proto_gethostbyname="no"
31325
31326 fi
31327 rm -f conftest*
31328
31329   fi
31330   #
31331   if test "$tst_proto_gethostbyname" = "yes"; then
31332     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
31333 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
31334     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31335 /* end confdefs.h.  */
31336
31337
31338         $curl_includes_winsock2
31339         $curl_includes_netdb
31340
31341 int main (void)
31342 {
31343
31344         if(0 != gethostbyname(0))
31345           return 1;
31346
31347  ;
31348  return 0;
31349 }
31350
31351 _ACEOF
31352 if ac_fn_c_try_compile "$LINENO"; then :
31353
31354       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31355 $as_echo "yes" >&6; }
31356       tst_compi_gethostbyname="yes"
31357
31358 else
31359
31360       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31361 $as_echo "no" >&6; }
31362       tst_compi_gethostbyname="no"
31363
31364 fi
31365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31366   fi
31367   #
31368   if test "$tst_compi_gethostbyname" = "yes"; then
31369     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
31370 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
31371     if test "x$curl_disallow_gethostbyname" != "xyes"; then
31372       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31373 $as_echo "yes" >&6; }
31374       tst_allow_gethostbyname="yes"
31375     else
31376       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31377 $as_echo "no" >&6; }
31378       tst_allow_gethostbyname="no"
31379     fi
31380   fi
31381   #
31382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
31383 $as_echo_n "checking if gethostbyname might be used... " >&6; }
31384   if test "$tst_links_gethostbyname" = "yes" &&
31385      test "$tst_proto_gethostbyname" = "yes" &&
31386      test "$tst_compi_gethostbyname" = "yes" &&
31387      test "$tst_allow_gethostbyname" = "yes"; then
31388     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31389 $as_echo "yes" >&6; }
31390
31391 cat >>confdefs.h <<_ACEOF
31392 #define HAVE_GETHOSTBYNAME 1
31393 _ACEOF
31394
31395     ac_cv_func_gethostbyname="yes"
31396   else
31397     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31398 $as_echo "no" >&6; }
31399     ac_cv_func_gethostbyname="no"
31400   fi
31401
31402
31403     #
31404   tst_links_gethostbyname_r="unknown"
31405   tst_proto_gethostbyname_r="unknown"
31406   tst_compi_gethostbyname_r="unknown"
31407   tst_allow_gethostbyname_r="unknown"
31408   tst_nargs_gethostbyname_r="unknown"
31409   #
31410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
31411 $as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
31412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31413 /* end confdefs.h.  */
31414
31415
31416 #define gethostbyname_r innocuous_gethostbyname_r
31417 #ifdef __STDC__
31418 # include <limits.h>
31419 #else
31420 # include <assert.h>
31421 #endif
31422 #undef gethostbyname_r
31423 #ifdef __cplusplus
31424 extern "C"
31425 #endif
31426 char gethostbyname_r ();
31427 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
31428 choke me
31429 #endif
31430
31431 int main (void)
31432 {
31433 return gethostbyname_r ();
31434  ;
31435  return 0;
31436 }
31437
31438 _ACEOF
31439 if ac_fn_c_try_link "$LINENO"; then :
31440
31441     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31442 $as_echo "yes" >&6; }
31443     tst_links_gethostbyname_r="yes"
31444
31445 else
31446
31447     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31448 $as_echo "no" >&6; }
31449     tst_links_gethostbyname_r="no"
31450
31451 fi
31452 rm -f core conftest.err conftest.$ac_objext \
31453     conftest$ac_exeext conftest.$ac_ext
31454   #
31455   if test "$tst_links_gethostbyname_r" = "yes"; then
31456     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
31457 $as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
31458     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31459 /* end confdefs.h.  */
31460
31461       $curl_includes_netdb
31462
31463 _ACEOF
31464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31465   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
31466
31467       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31468 $as_echo "yes" >&6; }
31469       tst_proto_gethostbyname_r="yes"
31470
31471 else
31472
31473       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31474 $as_echo "no" >&6; }
31475       tst_proto_gethostbyname_r="no"
31476
31477 fi
31478 rm -f conftest*
31479
31480   fi
31481   #
31482   if test "$tst_proto_gethostbyname_r" = "yes"; then
31483     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
31484       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
31485 $as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
31486       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31487 /* end confdefs.h.  */
31488
31489
31490           $curl_includes_netdb
31491
31492 int main (void)
31493 {
31494
31495           if(0 != gethostbyname_r(0, 0, 0))
31496             return 1;
31497
31498  ;
31499  return 0;
31500 }
31501
31502 _ACEOF
31503 if ac_fn_c_try_compile "$LINENO"; then :
31504
31505         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31506 $as_echo "yes" >&6; }
31507         tst_compi_gethostbyname_r="yes"
31508         tst_nargs_gethostbyname_r="3"
31509
31510 else
31511
31512         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31513 $as_echo "no" >&6; }
31514         tst_compi_gethostbyname_r="no"
31515
31516 fi
31517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31518     fi
31519     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
31520       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
31521 $as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
31522       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31523 /* end confdefs.h.  */
31524
31525
31526           $curl_includes_netdb
31527
31528 int main (void)
31529 {
31530
31531           if(0 != gethostbyname_r(0, 0, 0, 0, 0))
31532             return 1;
31533
31534  ;
31535  return 0;
31536 }
31537
31538 _ACEOF
31539 if ac_fn_c_try_compile "$LINENO"; then :
31540
31541         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31542 $as_echo "yes" >&6; }
31543         tst_compi_gethostbyname_r="yes"
31544         tst_nargs_gethostbyname_r="5"
31545
31546 else
31547
31548         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31549 $as_echo "no" >&6; }
31550         tst_compi_gethostbyname_r="no"
31551
31552 fi
31553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31554     fi
31555     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
31556       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
31557 $as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
31558       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31559 /* end confdefs.h.  */
31560
31561
31562           $curl_includes_netdb
31563
31564 int main (void)
31565 {
31566
31567           if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
31568             return 1;
31569
31570  ;
31571  return 0;
31572 }
31573
31574 _ACEOF
31575 if ac_fn_c_try_compile "$LINENO"; then :
31576
31577         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31578 $as_echo "yes" >&6; }
31579         tst_compi_gethostbyname_r="yes"
31580         tst_nargs_gethostbyname_r="6"
31581
31582 else
31583
31584         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31585 $as_echo "no" >&6; }
31586         tst_compi_gethostbyname_r="no"
31587
31588 fi
31589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31590     fi
31591     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
31592 $as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
31593     if test "$tst_compi_gethostbyname_r" = "yes"; then
31594       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31595 $as_echo "yes" >&6; }
31596     else
31597       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31598 $as_echo "no" >&6; }
31599     fi
31600   fi
31601   #
31602   if test "$tst_compi_gethostbyname_r" = "yes"; then
31603     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
31604 $as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
31605     if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
31606       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31607 $as_echo "yes" >&6; }
31608       tst_allow_gethostbyname_r="yes"
31609     else
31610       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31611 $as_echo "no" >&6; }
31612       tst_allow_gethostbyname_r="no"
31613     fi
31614   fi
31615   #
31616   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
31617 $as_echo_n "checking if gethostbyname_r might be used... " >&6; }
31618   if test "$tst_links_gethostbyname_r" = "yes" &&
31619      test "$tst_proto_gethostbyname_r" = "yes" &&
31620      test "$tst_compi_gethostbyname_r" = "yes" &&
31621      test "$tst_allow_gethostbyname_r" = "yes"; then
31622     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31623 $as_echo "yes" >&6; }
31624
31625 cat >>confdefs.h <<_ACEOF
31626 #define HAVE_GETHOSTBYNAME_R 1
31627 _ACEOF
31628
31629             #
31630     if test "$tst_nargs_gethostbyname_r" -eq "3"; then
31631
31632 $as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
31633
31634     elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
31635
31636 $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
31637
31638     elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
31639
31640 $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
31641
31642     fi
31643     #
31644     ac_cv_func_gethostbyname_r="yes"
31645   else
31646     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31647 $as_echo "no" >&6; }
31648     ac_cv_func_gethostbyname_r="no"
31649   fi
31650
31651
31652         #
31653   tst_links_gethostname="unknown"
31654   tst_proto_gethostname="unknown"
31655   tst_compi_gethostname="unknown"
31656   tst_allow_gethostname="unknown"
31657   #
31658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
31659 $as_echo_n "checking if gethostname can be linked... " >&6; }
31660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31661 /* end confdefs.h.  */
31662
31663
31664       $curl_includes_winsock2
31665       $curl_includes_unistd
31666
31667 int main (void)
31668 {
31669
31670       if(0 != gethostname(0, 0))
31671         return 1;
31672
31673  ;
31674  return 0;
31675 }
31676
31677 _ACEOF
31678 if ac_fn_c_try_link "$LINENO"; then :
31679
31680     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31681 $as_echo "yes" >&6; }
31682     tst_links_gethostname="yes"
31683
31684 else
31685
31686     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31687 $as_echo "no" >&6; }
31688     tst_links_gethostname="no"
31689
31690 fi
31691 rm -f core conftest.err conftest.$ac_objext \
31692     conftest$ac_exeext conftest.$ac_ext
31693   #
31694   if test "$tst_links_gethostname" = "yes"; then
31695     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
31696 $as_echo_n "checking if gethostname is prototyped... " >&6; }
31697     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31698 /* end confdefs.h.  */
31699
31700       $curl_includes_winsock2
31701       $curl_includes_unistd
31702
31703 _ACEOF
31704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31705   $EGREP "gethostname" >/dev/null 2>&1; then :
31706
31707       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31708 $as_echo "yes" >&6; }
31709       tst_proto_gethostname="yes"
31710
31711 else
31712
31713       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31714 $as_echo "no" >&6; }
31715       tst_proto_gethostname="no"
31716
31717 fi
31718 rm -f conftest*
31719
31720   fi
31721   #
31722   if test "$tst_proto_gethostname" = "yes"; then
31723     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
31724 $as_echo_n "checking if gethostname is compilable... " >&6; }
31725     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31726 /* end confdefs.h.  */
31727
31728
31729         $curl_includes_winsock2
31730         $curl_includes_unistd
31731
31732 int main (void)
31733 {
31734
31735         if(0 != gethostname(0, 0))
31736           return 1;
31737
31738  ;
31739  return 0;
31740 }
31741
31742 _ACEOF
31743 if ac_fn_c_try_compile "$LINENO"; then :
31744
31745       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31746 $as_echo "yes" >&6; }
31747       tst_compi_gethostname="yes"
31748
31749 else
31750
31751       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31752 $as_echo "no" >&6; }
31753       tst_compi_gethostname="no"
31754
31755 fi
31756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31757   fi
31758   #
31759   if test "$tst_compi_gethostname" = "yes"; then
31760     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
31761 $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
31762     tst_gethostname_type_arg2="unknown"
31763     for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
31764       for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
31765         if test "$tst_gethostname_type_arg2" = "unknown"; then
31766           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31767 /* end confdefs.h.  */
31768
31769
31770               $curl_includes_winsock2
31771               $curl_includes_unistd
31772               $curl_preprocess_callconv
31773               extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
31774
31775 int main (void)
31776 {
31777
31778               if(0 != gethostname(0, 0))
31779                 return 1;
31780
31781  ;
31782  return 0;
31783 }
31784
31785 _ACEOF
31786 if ac_fn_c_try_compile "$LINENO"; then :
31787
31788             tst_gethostname_type_arg2="$tst_arg2"
31789
31790 fi
31791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31792         fi
31793       done
31794     done
31795     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
31796 $as_echo "$tst_gethostname_type_arg2" >&6; }
31797     if test "$tst_gethostname_type_arg2" != "unknown"; then
31798
31799 cat >>confdefs.h <<_ACEOF
31800 #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
31801 _ACEOF
31802
31803     fi
31804   fi
31805   #
31806   if test "$tst_compi_gethostname" = "yes"; then
31807     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
31808 $as_echo_n "checking if gethostname usage allowed... " >&6; }
31809     if test "x$curl_disallow_gethostname" != "xyes"; then
31810       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31811 $as_echo "yes" >&6; }
31812       tst_allow_gethostname="yes"
31813     else
31814       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31815 $as_echo "no" >&6; }
31816       tst_allow_gethostname="no"
31817     fi
31818   fi
31819   #
31820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
31821 $as_echo_n "checking if gethostname might be used... " >&6; }
31822   if test "$tst_links_gethostname" = "yes" &&
31823      test "$tst_proto_gethostname" = "yes" &&
31824      test "$tst_compi_gethostname" = "yes" &&
31825      test "$tst_allow_gethostname" = "yes"; then
31826     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31827 $as_echo "yes" >&6; }
31828
31829 cat >>confdefs.h <<_ACEOF
31830 #define HAVE_GETHOSTNAME 1
31831 _ACEOF
31832
31833     ac_cv_func_gethostname="yes"
31834   else
31835     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31836 $as_echo "no" >&6; }
31837     ac_cv_func_gethostname="no"
31838   fi
31839
31840
31841       #
31842   tst_links_getifaddrs="unknown"
31843   tst_proto_getifaddrs="unknown"
31844   tst_compi_getifaddrs="unknown"
31845   tst_works_getifaddrs="unknown"
31846   tst_allow_getifaddrs="unknown"
31847   #
31848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
31849 $as_echo_n "checking if getifaddrs can be linked... " >&6; }
31850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31851 /* end confdefs.h.  */
31852
31853
31854 #define getifaddrs innocuous_getifaddrs
31855 #ifdef __STDC__
31856 # include <limits.h>
31857 #else
31858 # include <assert.h>
31859 #endif
31860 #undef getifaddrs
31861 #ifdef __cplusplus
31862 extern "C"
31863 #endif
31864 char getifaddrs ();
31865 #if defined __stub_getifaddrs || defined __stub___getifaddrs
31866 choke me
31867 #endif
31868
31869 int main (void)
31870 {
31871 return getifaddrs ();
31872  ;
31873  return 0;
31874 }
31875
31876 _ACEOF
31877 if ac_fn_c_try_link "$LINENO"; then :
31878
31879     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31880 $as_echo "yes" >&6; }
31881     tst_links_getifaddrs="yes"
31882
31883 else
31884
31885     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31886 $as_echo "no" >&6; }
31887     tst_links_getifaddrs="no"
31888
31889 fi
31890 rm -f core conftest.err conftest.$ac_objext \
31891     conftest$ac_exeext conftest.$ac_ext
31892   #
31893   if test "$tst_links_getifaddrs" = "yes"; then
31894     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
31895 $as_echo_n "checking if getifaddrs is prototyped... " >&6; }
31896     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31897 /* end confdefs.h.  */
31898
31899       $curl_includes_ifaddrs
31900
31901 _ACEOF
31902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31903   $EGREP "getifaddrs" >/dev/null 2>&1; then :
31904
31905       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31906 $as_echo "yes" >&6; }
31907       tst_proto_getifaddrs="yes"
31908
31909 else
31910
31911       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31912 $as_echo "no" >&6; }
31913       tst_proto_getifaddrs="no"
31914
31915 fi
31916 rm -f conftest*
31917
31918   fi
31919   #
31920   if test "$tst_proto_getifaddrs" = "yes"; then
31921     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
31922 $as_echo_n "checking if getifaddrs is compilable... " >&6; }
31923     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31924 /* end confdefs.h.  */
31925
31926
31927         $curl_includes_ifaddrs
31928
31929 int main (void)
31930 {
31931
31932         if(0 != getifaddrs(0))
31933           return 1;
31934
31935  ;
31936  return 0;
31937 }
31938
31939 _ACEOF
31940 if ac_fn_c_try_compile "$LINENO"; then :
31941
31942       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31943 $as_echo "yes" >&6; }
31944       tst_compi_getifaddrs="yes"
31945
31946 else
31947
31948       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31949 $as_echo "no" >&6; }
31950       tst_compi_getifaddrs="no"
31951
31952 fi
31953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31954   fi
31955   #
31956     if test "x$cross_compiling" != "xyes" &&
31957     test "$tst_compi_getifaddrs" = "yes"; then
31958     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
31959 $as_echo_n "checking if getifaddrs seems to work... " >&6; }
31960     if test "$cross_compiling" = yes; then :
31961   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31963 as_fn_error $? "cannot run test program while cross compiling
31964 See \`config.log' for more details" "$LINENO" 5; }
31965 else
31966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31967 /* end confdefs.h.  */
31968
31969
31970         $curl_includes_stdlib
31971         $curl_includes_ifaddrs
31972
31973 int main (void)
31974 {
31975
31976         struct ifaddrs *ifa = 0;
31977         int error;
31978
31979         error = getifaddrs(&ifa);
31980         if(error || !ifa)
31981           exit(1); /* fail */
31982         else
31983           exit(0);
31984
31985  ;
31986  return 0;
31987 }
31988
31989 _ACEOF
31990 if ac_fn_c_try_run "$LINENO"; then :
31991
31992       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31993 $as_echo "yes" >&6; }
31994       tst_works_getifaddrs="yes"
31995
31996 else
31997
31998       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31999 $as_echo "no" >&6; }
32000       tst_works_getifaddrs="no"
32001
32002 fi
32003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32004   conftest.$ac_objext conftest.beam conftest.$ac_ext
32005 fi
32006
32007   fi
32008   #
32009   if test "$tst_compi_getifaddrs" = "yes" &&
32010     test "$tst_works_getifaddrs" != "no"; then
32011     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
32012 $as_echo_n "checking if getifaddrs usage allowed... " >&6; }
32013     if test "x$curl_disallow_getifaddrs" != "xyes"; then
32014       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32015 $as_echo "yes" >&6; }
32016       tst_allow_getifaddrs="yes"
32017     else
32018       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32019 $as_echo "no" >&6; }
32020       tst_allow_getifaddrs="no"
32021     fi
32022   fi
32023   #
32024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
32025 $as_echo_n "checking if getifaddrs might be used... " >&6; }
32026   if test "$tst_links_getifaddrs" = "yes" &&
32027      test "$tst_proto_getifaddrs" = "yes" &&
32028      test "$tst_compi_getifaddrs" = "yes" &&
32029      test "$tst_allow_getifaddrs" = "yes" &&
32030      test "$tst_works_getifaddrs" != "no"; then
32031     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32032 $as_echo "yes" >&6; }
32033
32034 cat >>confdefs.h <<_ACEOF
32035 #define HAVE_GETIFADDRS 1
32036 _ACEOF
32037
32038     ac_cv_func_getifaddrs="yes"
32039   else
32040     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32041 $as_echo "no" >&6; }
32042     ac_cv_func_getifaddrs="no"
32043   fi
32044
32045
32046     #
32047   tst_links_getservbyport_r="unknown"
32048   tst_proto_getservbyport_r="unknown"
32049   tst_compi_getservbyport_r="unknown"
32050   tst_allow_getservbyport_r="unknown"
32051   tst_nargs_getservbyport_r="unknown"
32052   #
32053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
32054 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
32055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32056 /* end confdefs.h.  */
32057
32058
32059 #define getservbyport_r innocuous_getservbyport_r
32060 #ifdef __STDC__
32061 # include <limits.h>
32062 #else
32063 # include <assert.h>
32064 #endif
32065 #undef getservbyport_r
32066 #ifdef __cplusplus
32067 extern "C"
32068 #endif
32069 char getservbyport_r ();
32070 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
32071 choke me
32072 #endif
32073
32074 int main (void)
32075 {
32076 return getservbyport_r ();
32077  ;
32078  return 0;
32079 }
32080
32081 _ACEOF
32082 if ac_fn_c_try_link "$LINENO"; then :
32083
32084     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32085 $as_echo "yes" >&6; }
32086     tst_links_getservbyport_r="yes"
32087
32088 else
32089
32090     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32091 $as_echo "no" >&6; }
32092     tst_links_getservbyport_r="no"
32093
32094 fi
32095 rm -f core conftest.err conftest.$ac_objext \
32096     conftest$ac_exeext conftest.$ac_ext
32097   #
32098   if test "$tst_links_getservbyport_r" = "yes"; then
32099     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
32100 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
32101     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32102 /* end confdefs.h.  */
32103
32104       $curl_includes_netdb
32105
32106 _ACEOF
32107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32108   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
32109
32110       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32111 $as_echo "yes" >&6; }
32112       tst_proto_getservbyport_r="yes"
32113
32114 else
32115
32116       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32117 $as_echo "no" >&6; }
32118       tst_proto_getservbyport_r="no"
32119
32120 fi
32121 rm -f conftest*
32122
32123   fi
32124   #
32125   if test "$tst_proto_getservbyport_r" = "yes"; then
32126     if test "$tst_nargs_getservbyport_r" = "unknown"; then
32127       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
32128 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
32129       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32130 /* end confdefs.h.  */
32131
32132
32133           $curl_includes_netdb
32134
32135 int main (void)
32136 {
32137
32138           if(0 != getservbyport_r(0, 0, 0, 0))
32139             return 1;
32140
32141  ;
32142  return 0;
32143 }
32144
32145 _ACEOF
32146 if ac_fn_c_try_compile "$LINENO"; then :
32147
32148         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32149 $as_echo "yes" >&6; }
32150         tst_compi_getservbyport_r="yes"
32151         tst_nargs_getservbyport_r="4"
32152
32153 else
32154
32155         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32156 $as_echo "no" >&6; }
32157         tst_compi_getservbyport_r="no"
32158
32159 fi
32160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32161     fi
32162     if test "$tst_nargs_getservbyport_r" = "unknown"; then
32163       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
32164 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
32165       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32166 /* end confdefs.h.  */
32167
32168
32169           $curl_includes_netdb
32170
32171 int main (void)
32172 {
32173
32174           if(0 != getservbyport_r(0, 0, 0, 0, 0))
32175             return 1;
32176
32177  ;
32178  return 0;
32179 }
32180
32181 _ACEOF
32182 if ac_fn_c_try_compile "$LINENO"; then :
32183
32184         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32185 $as_echo "yes" >&6; }
32186         tst_compi_getservbyport_r="yes"
32187         tst_nargs_getservbyport_r="5"
32188
32189 else
32190
32191         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32192 $as_echo "no" >&6; }
32193         tst_compi_getservbyport_r="no"
32194
32195 fi
32196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32197     fi
32198     if test "$tst_nargs_getservbyport_r" = "unknown"; then
32199       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
32200 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
32201       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32202 /* end confdefs.h.  */
32203
32204
32205           $curl_includes_netdb
32206
32207 int main (void)
32208 {
32209
32210           if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
32211             return 1;
32212
32213  ;
32214  return 0;
32215 }
32216
32217 _ACEOF
32218 if ac_fn_c_try_compile "$LINENO"; then :
32219
32220         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32221 $as_echo "yes" >&6; }
32222         tst_compi_getservbyport_r="yes"
32223         tst_nargs_getservbyport_r="6"
32224
32225 else
32226
32227         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32228 $as_echo "no" >&6; }
32229         tst_compi_getservbyport_r="no"
32230
32231 fi
32232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32233     fi
32234     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
32235 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
32236     if test "$tst_compi_getservbyport_r" = "yes"; then
32237       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32238 $as_echo "yes" >&6; }
32239     else
32240       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32241 $as_echo "no" >&6; }
32242     fi
32243   fi
32244   #
32245   if test "$tst_compi_getservbyport_r" = "yes"; then
32246     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
32247 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
32248     if test "x$curl_disallow_getservbyport_r" != "xyes"; then
32249       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32250 $as_echo "yes" >&6; }
32251       tst_allow_getservbyport_r="yes"
32252     else
32253       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32254 $as_echo "no" >&6; }
32255       tst_allow_getservbyport_r="no"
32256     fi
32257   fi
32258   #
32259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
32260 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
32261   if test "$tst_links_getservbyport_r" = "yes" &&
32262      test "$tst_proto_getservbyport_r" = "yes" &&
32263      test "$tst_compi_getservbyport_r" = "yes" &&
32264      test "$tst_allow_getservbyport_r" = "yes"; then
32265     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32266 $as_echo "yes" >&6; }
32267
32268 cat >>confdefs.h <<_ACEOF
32269 #define HAVE_GETSERVBYPORT_R 1
32270 _ACEOF
32271
32272
32273 cat >>confdefs.h <<_ACEOF
32274 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
32275 _ACEOF
32276
32277     if test "$tst_nargs_getservbyport_r" -eq "4"; then
32278
32279 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
32280
32281     else
32282
32283 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
32284
32285     fi
32286     ac_cv_func_getservbyport_r="yes"
32287   else
32288     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32289 $as_echo "no" >&6; }
32290     ac_cv_func_getservbyport_r="no"
32291   fi
32292
32293
32294 curl_includes_time="\
32295 /* includes start */
32296 #ifdef HAVE_SYS_TYPES_H
32297 #  include <sys/types.h>
32298 #endif
32299 #ifdef HAVE_SYS_TIME_H
32300 #  include <sys/time.h>
32301 #  ifdef TIME_WITH_SYS_TIME
32302 #    include <time.h>
32303 #  endif
32304 #else
32305 #  ifdef HAVE_TIME_H
32306 #    include <time.h>
32307 #  endif
32308 #endif
32309 /* includes end */"
32310   for ac_header in sys/types.h sys/time.h time.h
32311 do :
32312   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32313 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
32314 "
32315 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32316   cat >>confdefs.h <<_ACEOF
32317 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32318 _ACEOF
32319
32320 fi
32321
32322 done
32323
32324
32325
32326       #
32327   tst_links_gmtime_r="unknown"
32328   tst_proto_gmtime_r="unknown"
32329   tst_compi_gmtime_r="unknown"
32330   tst_works_gmtime_r="unknown"
32331   tst_allow_gmtime_r="unknown"
32332   #
32333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
32334 $as_echo_n "checking if gmtime_r can be linked... " >&6; }
32335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32336 /* end confdefs.h.  */
32337
32338
32339 #define gmtime_r innocuous_gmtime_r
32340 #ifdef __STDC__
32341 # include <limits.h>
32342 #else
32343 # include <assert.h>
32344 #endif
32345 #undef gmtime_r
32346 #ifdef __cplusplus
32347 extern "C"
32348 #endif
32349 char gmtime_r ();
32350 #if defined __stub_gmtime_r || defined __stub___gmtime_r
32351 choke me
32352 #endif
32353
32354 int main (void)
32355 {
32356 return gmtime_r ();
32357  ;
32358  return 0;
32359 }
32360
32361 _ACEOF
32362 if ac_fn_c_try_link "$LINENO"; then :
32363
32364     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32365 $as_echo "yes" >&6; }
32366     tst_links_gmtime_r="yes"
32367
32368 else
32369
32370     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32371 $as_echo "no" >&6; }
32372     tst_links_gmtime_r="no"
32373
32374 fi
32375 rm -f core conftest.err conftest.$ac_objext \
32376     conftest$ac_exeext conftest.$ac_ext
32377   #
32378   if test "$tst_links_gmtime_r" = "yes"; then
32379     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
32380 $as_echo_n "checking if gmtime_r is prototyped... " >&6; }
32381     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32382 /* end confdefs.h.  */
32383
32384       $curl_includes_time
32385
32386 _ACEOF
32387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32388   $EGREP "gmtime_r" >/dev/null 2>&1; then :
32389
32390       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32391 $as_echo "yes" >&6; }
32392       tst_proto_gmtime_r="yes"
32393
32394 else
32395
32396       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32397 $as_echo "no" >&6; }
32398       tst_proto_gmtime_r="no"
32399
32400 fi
32401 rm -f conftest*
32402
32403   fi
32404   #
32405   if test "$tst_proto_gmtime_r" = "yes"; then
32406     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
32407 $as_echo_n "checking if gmtime_r is compilable... " >&6; }
32408     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32409 /* end confdefs.h.  */
32410
32411
32412         $curl_includes_time
32413
32414 int main (void)
32415 {
32416
32417         if(0 != gmtime_r(0, 0))
32418           return 1;
32419
32420  ;
32421  return 0;
32422 }
32423
32424 _ACEOF
32425 if ac_fn_c_try_compile "$LINENO"; then :
32426
32427       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32428 $as_echo "yes" >&6; }
32429       tst_compi_gmtime_r="yes"
32430
32431 else
32432
32433       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32434 $as_echo "no" >&6; }
32435       tst_compi_gmtime_r="no"
32436
32437 fi
32438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32439   fi
32440   #
32441     if test "x$cross_compiling" != "xyes" &&
32442     test "$tst_compi_gmtime_r" = "yes"; then
32443     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
32444 $as_echo_n "checking if gmtime_r seems to work... " >&6; }
32445     if test "$cross_compiling" = yes; then :
32446   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32448 as_fn_error $? "cannot run test program while cross compiling
32449 See \`config.log' for more details" "$LINENO" 5; }
32450 else
32451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32452 /* end confdefs.h.  */
32453
32454
32455         $curl_includes_stdlib
32456         $curl_includes_time
32457
32458 int main (void)
32459 {
32460
32461         time_t local = 1170352587;
32462         struct tm *gmt = 0;
32463         struct tm result;
32464         gmt = gmtime_r(&local, &result);
32465         if(gmt)
32466           exit(0);
32467         else
32468           exit(1);
32469
32470  ;
32471  return 0;
32472 }
32473
32474 _ACEOF
32475 if ac_fn_c_try_run "$LINENO"; then :
32476
32477       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32478 $as_echo "yes" >&6; }
32479       tst_works_gmtime_r="yes"
32480
32481 else
32482
32483       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32484 $as_echo "no" >&6; }
32485       tst_works_gmtime_r="no"
32486
32487 fi
32488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32489   conftest.$ac_objext conftest.beam conftest.$ac_ext
32490 fi
32491
32492   fi
32493   #
32494   if test "$tst_compi_gmtime_r" = "yes" &&
32495     test "$tst_works_gmtime_r" != "no"; then
32496     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
32497 $as_echo_n "checking if gmtime_r usage allowed... " >&6; }
32498     if test "x$curl_disallow_gmtime_r" != "xyes"; then
32499       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32500 $as_echo "yes" >&6; }
32501       tst_allow_gmtime_r="yes"
32502     else
32503       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32504 $as_echo "no" >&6; }
32505       tst_allow_gmtime_r="no"
32506     fi
32507   fi
32508   #
32509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
32510 $as_echo_n "checking if gmtime_r might be used... " >&6; }
32511   if test "$tst_links_gmtime_r" = "yes" &&
32512      test "$tst_proto_gmtime_r" = "yes" &&
32513      test "$tst_compi_gmtime_r" = "yes" &&
32514      test "$tst_allow_gmtime_r" = "yes" &&
32515      test "$tst_works_gmtime_r" != "no"; then
32516     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32517 $as_echo "yes" >&6; }
32518
32519 cat >>confdefs.h <<_ACEOF
32520 #define HAVE_GMTIME_R 1
32521 _ACEOF
32522
32523     ac_cv_func_gmtime_r="yes"
32524   else
32525     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32526 $as_echo "no" >&6; }
32527     ac_cv_func_gmtime_r="no"
32528   fi
32529
32530
32531 curl_includes_arpa_inet="\
32532 /* includes start */
32533 #ifdef HAVE_SYS_TYPES_H
32534 #  include <sys/types.h>
32535 #endif
32536 #ifdef HAVE_SYS_SOCKET_H
32537 #  include <sys/socket.h>
32538 #endif
32539 #ifdef HAVE_NETINET_IN_H
32540 #  include <netinet/in.h>
32541 #endif
32542 #ifdef HAVE_ARPA_INET_H
32543 #  include <arpa/inet.h>
32544 #endif
32545 /* includes end */"
32546   for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
32547 do :
32548   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32549 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
32550 "
32551 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32552   cat >>confdefs.h <<_ACEOF
32553 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32554 _ACEOF
32555
32556 fi
32557
32558 done
32559
32560
32561
32562     #
32563   tst_links_inet_ntoa_r="unknown"
32564   tst_proto_inet_ntoa_r="unknown"
32565   tst_compi_inet_ntoa_r="unknown"
32566   tst_allow_inet_ntoa_r="unknown"
32567   tst_nargs_inet_ntoa_r="unknown"
32568   #
32569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
32570 $as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
32571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32572 /* end confdefs.h.  */
32573
32574
32575 #define inet_ntoa_r innocuous_inet_ntoa_r
32576 #ifdef __STDC__
32577 # include <limits.h>
32578 #else
32579 # include <assert.h>
32580 #endif
32581 #undef inet_ntoa_r
32582 #ifdef __cplusplus
32583 extern "C"
32584 #endif
32585 char inet_ntoa_r ();
32586 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
32587 choke me
32588 #endif
32589
32590 int main (void)
32591 {
32592 return inet_ntoa_r ();
32593  ;
32594  return 0;
32595 }
32596
32597 _ACEOF
32598 if ac_fn_c_try_link "$LINENO"; then :
32599
32600     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32601 $as_echo "yes" >&6; }
32602     tst_links_inet_ntoa_r="yes"
32603
32604 else
32605
32606     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32607 $as_echo "no" >&6; }
32608     tst_links_inet_ntoa_r="no"
32609
32610 fi
32611 rm -f core conftest.err conftest.$ac_objext \
32612     conftest$ac_exeext conftest.$ac_ext
32613   #
32614   if test "$tst_links_inet_ntoa_r" = "yes"; then
32615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
32616 $as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
32617     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32618 /* end confdefs.h.  */
32619
32620       $curl_includes_arpa_inet
32621
32622 _ACEOF
32623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32624   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
32625
32626       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32627 $as_echo "yes" >&6; }
32628       tst_proto_inet_ntoa_r="yes"
32629
32630 else
32631
32632       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32633 $as_echo "no" >&6; }
32634       tst_proto_inet_ntoa_r="no"
32635
32636 fi
32637 rm -f conftest*
32638
32639   fi
32640   #
32641   if test "$tst_proto_inet_ntoa_r" = "yes"; then
32642     if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
32643       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
32644 $as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
32645       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32646 /* end confdefs.h.  */
32647
32648
32649           $curl_includes_arpa_inet
32650
32651 int main (void)
32652 {
32653
32654           struct in_addr addr;
32655           if(0 != inet_ntoa_r(addr, 0))
32656             return 1;
32657
32658  ;
32659  return 0;
32660 }
32661
32662 _ACEOF
32663 if ac_fn_c_try_compile "$LINENO"; then :
32664
32665         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32666 $as_echo "yes" >&6; }
32667         tst_compi_inet_ntoa_r="yes"
32668         tst_nargs_inet_ntoa_r="2"
32669
32670 else
32671
32672         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32673 $as_echo "no" >&6; }
32674         tst_compi_inet_ntoa_r="no"
32675
32676 fi
32677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32678     fi
32679     if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
32680       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
32681 $as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
32682       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32683 /* end confdefs.h.  */
32684
32685
32686           $curl_includes_arpa_inet
32687
32688 int main (void)
32689 {
32690
32691           struct in_addr addr;
32692           if(0 != inet_ntoa_r(addr, 0, 0))
32693             return 1;
32694
32695  ;
32696  return 0;
32697 }
32698
32699 _ACEOF
32700 if ac_fn_c_try_compile "$LINENO"; then :
32701
32702         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32703 $as_echo "yes" >&6; }
32704         tst_compi_inet_ntoa_r="yes"
32705         tst_nargs_inet_ntoa_r="3"
32706
32707 else
32708
32709         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32710 $as_echo "no" >&6; }
32711         tst_compi_inet_ntoa_r="no"
32712
32713 fi
32714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32715     fi
32716     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
32717 $as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
32718     if test "$tst_compi_inet_ntoa_r" = "yes"; then
32719       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32720 $as_echo "yes" >&6; }
32721     else
32722       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32723 $as_echo "no" >&6; }
32724     fi
32725   fi
32726   #
32727   if test "$tst_compi_inet_ntoa_r" = "yes"; then
32728     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
32729 $as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
32730     if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
32731       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32732 $as_echo "yes" >&6; }
32733       tst_allow_inet_ntoa_r="yes"
32734     else
32735       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32736 $as_echo "no" >&6; }
32737       tst_allow_inet_ntoa_r="no"
32738     fi
32739   fi
32740   #
32741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
32742 $as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
32743   if test "$tst_links_inet_ntoa_r" = "yes" &&
32744      test "$tst_proto_inet_ntoa_r" = "yes" &&
32745      test "$tst_compi_inet_ntoa_r" = "yes" &&
32746      test "$tst_allow_inet_ntoa_r" = "yes"; then
32747     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32748 $as_echo "yes" >&6; }
32749
32750 cat >>confdefs.h <<_ACEOF
32751 #define HAVE_INET_NTOA_R 1
32752 _ACEOF
32753
32754             #
32755     if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
32756
32757 $as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
32758
32759     elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
32760
32761 $as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
32762
32763     fi
32764     #
32765     ac_cv_func_inet_ntoa_r="yes"
32766   else
32767     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32768 $as_echo "no" >&6; }
32769     ac_cv_func_inet_ntoa_r="no"
32770   fi
32771
32772
32773         #
32774   tst_links_inet_ntop="unknown"
32775   tst_proto_inet_ntop="unknown"
32776   tst_compi_inet_ntop="unknown"
32777   tst_works_inet_ntop="unknown"
32778   tst_allow_inet_ntop="unknown"
32779   #
32780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
32781 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
32782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32783 /* end confdefs.h.  */
32784
32785
32786 #define inet_ntop innocuous_inet_ntop
32787 #ifdef __STDC__
32788 # include <limits.h>
32789 #else
32790 # include <assert.h>
32791 #endif
32792 #undef inet_ntop
32793 #ifdef __cplusplus
32794 extern "C"
32795 #endif
32796 char inet_ntop ();
32797 #if defined __stub_inet_ntop || defined __stub___inet_ntop
32798 choke me
32799 #endif
32800
32801 int main (void)
32802 {
32803 return inet_ntop ();
32804  ;
32805  return 0;
32806 }
32807
32808 _ACEOF
32809 if ac_fn_c_try_link "$LINENO"; then :
32810
32811     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32812 $as_echo "yes" >&6; }
32813     tst_links_inet_ntop="yes"
32814
32815 else
32816
32817     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32818 $as_echo "no" >&6; }
32819     tst_links_inet_ntop="no"
32820
32821 fi
32822 rm -f core conftest.err conftest.$ac_objext \
32823     conftest$ac_exeext conftest.$ac_ext
32824   #
32825   if test "$tst_links_inet_ntop" = "yes"; then
32826     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
32827 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
32828     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32829 /* end confdefs.h.  */
32830
32831       $curl_includes_arpa_inet
32832
32833 _ACEOF
32834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32835   $EGREP "inet_ntop" >/dev/null 2>&1; then :
32836
32837       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32838 $as_echo "yes" >&6; }
32839       tst_proto_inet_ntop="yes"
32840
32841 else
32842
32843       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32844 $as_echo "no" >&6; }
32845       tst_proto_inet_ntop="no"
32846
32847 fi
32848 rm -f conftest*
32849
32850   fi
32851   #
32852   if test "$tst_proto_inet_ntop" = "yes"; then
32853     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
32854 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
32855     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32856 /* end confdefs.h.  */
32857
32858
32859         $curl_includes_arpa_inet
32860
32861 int main (void)
32862 {
32863
32864         if(0 != inet_ntop(0, 0, 0, 0))
32865           return 1;
32866
32867  ;
32868  return 0;
32869 }
32870
32871 _ACEOF
32872 if ac_fn_c_try_compile "$LINENO"; then :
32873
32874       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32875 $as_echo "yes" >&6; }
32876       tst_compi_inet_ntop="yes"
32877
32878 else
32879
32880       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32881 $as_echo "no" >&6; }
32882       tst_compi_inet_ntop="no"
32883
32884 fi
32885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32886   fi
32887   #
32888     if test "x$cross_compiling" != "xyes" &&
32889     test "$tst_compi_inet_ntop" = "yes"; then
32890     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
32891 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
32892     if test "$cross_compiling" = yes; then :
32893   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32895 as_fn_error $? "cannot run test program while cross compiling
32896 See \`config.log' for more details" "$LINENO" 5; }
32897 else
32898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32899 /* end confdefs.h.  */
32900
32901
32902         $curl_includes_stdlib
32903         $curl_includes_arpa_inet
32904         $curl_includes_string
32905
32906 int main (void)
32907 {
32908
32909         char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
32910         char ipv4res[sizeof "255.255.255.255"];
32911         unsigned char ipv6a[26];
32912         unsigned char ipv4a[5];
32913         char *ipv6ptr = 0;
32914         char *ipv4ptr = 0;
32915         /* - */
32916         ipv4res[0] = '\0';
32917         ipv4a[0] = 0xc0;
32918         ipv4a[1] = 0xa8;
32919         ipv4a[2] = 0x64;
32920         ipv4a[3] = 0x01;
32921         ipv4a[4] = 0x01;
32922         /* - */
32923         ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
32924         if(!ipv4ptr)
32925           exit(1); /* fail */
32926         if(ipv4ptr != ipv4res)
32927           exit(1); /* fail */
32928         if(!ipv4ptr[0])
32929           exit(1); /* fail */
32930         if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
32931           exit(1); /* fail */
32932         /* - */
32933         ipv6res[0] = '\0';
32934         memset(ipv6a, 0, sizeof(ipv6a));
32935         ipv6a[0] = 0xfe;
32936         ipv6a[1] = 0x80;
32937         ipv6a[8] = 0x02;
32938         ipv6a[9] = 0x14;
32939         ipv6a[10] = 0x4f;
32940         ipv6a[11] = 0xff;
32941         ipv6a[12] = 0xfe;
32942         ipv6a[13] = 0x0b;
32943         ipv6a[14] = 0x76;
32944         ipv6a[15] = 0xc8;
32945         ipv6a[25] = 0x01;
32946         /* - */
32947         ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
32948         if(!ipv6ptr)
32949           exit(1); /* fail */
32950         if(ipv6ptr != ipv6res)
32951           exit(1); /* fail */
32952         if(!ipv6ptr[0])
32953           exit(1); /* fail */
32954         if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
32955           exit(1); /* fail */
32956         /* - */
32957         exit(0);
32958
32959  ;
32960  return 0;
32961 }
32962
32963 _ACEOF
32964 if ac_fn_c_try_run "$LINENO"; then :
32965
32966       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32967 $as_echo "yes" >&6; }
32968       tst_works_inet_ntop="yes"
32969
32970 else
32971
32972       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32973 $as_echo "no" >&6; }
32974       tst_works_inet_ntop="no"
32975
32976 fi
32977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32978   conftest.$ac_objext conftest.beam conftest.$ac_ext
32979 fi
32980
32981   fi
32982   #
32983   if test "$tst_compi_inet_ntop" = "yes" &&
32984     test "$tst_works_inet_ntop" != "no"; then
32985     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
32986 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
32987     if test "x$curl_disallow_inet_ntop" != "xyes"; then
32988       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32989 $as_echo "yes" >&6; }
32990       tst_allow_inet_ntop="yes"
32991     else
32992       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32993 $as_echo "no" >&6; }
32994       tst_allow_inet_ntop="no"
32995     fi
32996   fi
32997   #
32998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
32999 $as_echo_n "checking if inet_ntop might be used... " >&6; }
33000   if test "$tst_links_inet_ntop" = "yes" &&
33001      test "$tst_proto_inet_ntop" = "yes" &&
33002      test "$tst_compi_inet_ntop" = "yes" &&
33003      test "$tst_allow_inet_ntop" = "yes" &&
33004      test "$tst_works_inet_ntop" != "no"; then
33005     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33006 $as_echo "yes" >&6; }
33007
33008 cat >>confdefs.h <<_ACEOF
33009 #define HAVE_INET_NTOP 1
33010 _ACEOF
33011
33012     ac_cv_func_inet_ntop="yes"
33013   else
33014     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33015 $as_echo "no" >&6; }
33016     ac_cv_func_inet_ntop="no"
33017   fi
33018
33019
33020         #
33021   tst_links_inet_pton="unknown"
33022   tst_proto_inet_pton="unknown"
33023   tst_compi_inet_pton="unknown"
33024   tst_works_inet_pton="unknown"
33025   tst_allow_inet_pton="unknown"
33026   #
33027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
33028 $as_echo_n "checking if inet_pton can be linked... " >&6; }
33029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33030 /* end confdefs.h.  */
33031
33032
33033 #define inet_pton innocuous_inet_pton
33034 #ifdef __STDC__
33035 # include <limits.h>
33036 #else
33037 # include <assert.h>
33038 #endif
33039 #undef inet_pton
33040 #ifdef __cplusplus
33041 extern "C"
33042 #endif
33043 char inet_pton ();
33044 #if defined __stub_inet_pton || defined __stub___inet_pton
33045 choke me
33046 #endif
33047
33048 int main (void)
33049 {
33050 return inet_pton ();
33051  ;
33052  return 0;
33053 }
33054
33055 _ACEOF
33056 if ac_fn_c_try_link "$LINENO"; then :
33057
33058     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33059 $as_echo "yes" >&6; }
33060     tst_links_inet_pton="yes"
33061
33062 else
33063
33064     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33065 $as_echo "no" >&6; }
33066     tst_links_inet_pton="no"
33067
33068 fi
33069 rm -f core conftest.err conftest.$ac_objext \
33070     conftest$ac_exeext conftest.$ac_ext
33071   #
33072   if test "$tst_links_inet_pton" = "yes"; then
33073     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
33074 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
33075     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33076 /* end confdefs.h.  */
33077
33078       $curl_includes_arpa_inet
33079
33080 _ACEOF
33081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33082   $EGREP "inet_pton" >/dev/null 2>&1; then :
33083
33084       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33085 $as_echo "yes" >&6; }
33086       tst_proto_inet_pton="yes"
33087
33088 else
33089
33090       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33091 $as_echo "no" >&6; }
33092       tst_proto_inet_pton="no"
33093
33094 fi
33095 rm -f conftest*
33096
33097   fi
33098   #
33099   if test "$tst_proto_inet_pton" = "yes"; then
33100     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
33101 $as_echo_n "checking if inet_pton is compilable... " >&6; }
33102     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33103 /* end confdefs.h.  */
33104
33105
33106         $curl_includes_arpa_inet
33107
33108 int main (void)
33109 {
33110
33111         if(0 != inet_pton(0, 0, 0))
33112           return 1;
33113
33114  ;
33115  return 0;
33116 }
33117
33118 _ACEOF
33119 if ac_fn_c_try_compile "$LINENO"; then :
33120
33121       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33122 $as_echo "yes" >&6; }
33123       tst_compi_inet_pton="yes"
33124
33125 else
33126
33127       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33128 $as_echo "no" >&6; }
33129       tst_compi_inet_pton="no"
33130
33131 fi
33132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33133   fi
33134   #
33135     if test "x$cross_compiling" != "xyes" &&
33136     test "$tst_compi_inet_pton" = "yes"; then
33137     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
33138 $as_echo_n "checking if inet_pton seems to work... " >&6; }
33139     if test "$cross_compiling" = yes; then :
33140   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33142 as_fn_error $? "cannot run test program while cross compiling
33143 See \`config.log' for more details" "$LINENO" 5; }
33144 else
33145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33146 /* end confdefs.h.  */
33147
33148
33149         $curl_includes_stdlib
33150         $curl_includes_arpa_inet
33151         $curl_includes_string
33152
33153 int main (void)
33154 {
33155
33156         unsigned char ipv6a[16+1];
33157         unsigned char ipv4a[4+1];
33158         const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
33159         const char *ipv4src = "192.168.100.1";
33160         /* - */
33161         memset(ipv4a, 1, sizeof(ipv4a));
33162         if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
33163           exit(1); /* fail */
33164         /* - */
33165         if( (ipv4a[0] != 0xc0) ||
33166             (ipv4a[1] != 0xa8) ||
33167             (ipv4a[2] != 0x64) ||
33168             (ipv4a[3] != 0x01) ||
33169             (ipv4a[4] != 0x01) )
33170           exit(1); /* fail */
33171         /* - */
33172         memset(ipv6a, 1, sizeof(ipv6a));
33173         if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
33174           exit(1); /* fail */
33175         /* - */
33176         if( (ipv6a[0]  != 0xfe) ||
33177             (ipv6a[1]  != 0x80) ||
33178             (ipv6a[8]  != 0x02) ||
33179             (ipv6a[9]  != 0x14) ||
33180             (ipv6a[10] != 0x4f) ||
33181             (ipv6a[11] != 0xff) ||
33182             (ipv6a[12] != 0xfe) ||
33183             (ipv6a[13] != 0x0b) ||
33184             (ipv6a[14] != 0x76) ||
33185             (ipv6a[15] != 0xc8) ||
33186             (ipv6a[16] != 0x01) )
33187           exit(1); /* fail */
33188         /* - */
33189         if( (ipv6a[2]  != 0x0) ||
33190             (ipv6a[3]  != 0x0) ||
33191             (ipv6a[4]  != 0x0) ||
33192             (ipv6a[5]  != 0x0) ||
33193             (ipv6a[6]  != 0x0) ||
33194             (ipv6a[7]  != 0x0) )
33195           exit(1); /* fail */
33196         /* - */
33197         exit(0);
33198
33199  ;
33200  return 0;
33201 }
33202
33203 _ACEOF
33204 if ac_fn_c_try_run "$LINENO"; then :
33205
33206       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33207 $as_echo "yes" >&6; }
33208       tst_works_inet_pton="yes"
33209
33210 else
33211
33212       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33213 $as_echo "no" >&6; }
33214       tst_works_inet_pton="no"
33215
33216 fi
33217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33218   conftest.$ac_objext conftest.beam conftest.$ac_ext
33219 fi
33220
33221   fi
33222   #
33223   if test "$tst_compi_inet_pton" = "yes" &&
33224     test "$tst_works_inet_pton" != "no"; then
33225     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
33226 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
33227     if test "x$curl_disallow_inet_pton" != "xyes"; then
33228       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33229 $as_echo "yes" >&6; }
33230       tst_allow_inet_pton="yes"
33231     else
33232       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33233 $as_echo "no" >&6; }
33234       tst_allow_inet_pton="no"
33235     fi
33236   fi
33237   #
33238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
33239 $as_echo_n "checking if inet_pton might be used... " >&6; }
33240   if test "$tst_links_inet_pton" = "yes" &&
33241      test "$tst_proto_inet_pton" = "yes" &&
33242      test "$tst_compi_inet_pton" = "yes" &&
33243      test "$tst_allow_inet_pton" = "yes" &&
33244      test "$tst_works_inet_pton" != "no"; then
33245     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33246 $as_echo "yes" >&6; }
33247
33248 cat >>confdefs.h <<_ACEOF
33249 #define HAVE_INET_PTON 1
33250 _ACEOF
33251
33252     ac_cv_func_inet_pton="yes"
33253   else
33254     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33255 $as_echo "no" >&6; }
33256     ac_cv_func_inet_pton="no"
33257   fi
33258
33259
33260 curl_includes_stropts="\
33261 /* includes start */
33262 #ifdef HAVE_SYS_TYPES_H
33263 #  include <sys/types.h>
33264 #endif
33265 #ifdef HAVE_UNISTD_H
33266 #  include <unistd.h>
33267 #endif
33268 #ifdef HAVE_SYS_SOCKET_H
33269 #  include <sys/socket.h>
33270 #endif
33271 #ifdef HAVE_SYS_IOCTL_H
33272 #  include <sys/ioctl.h>
33273 #endif
33274 #ifdef HAVE_STROPTS_H
33275 #  include <stropts.h>
33276 #endif
33277 /* includes end */"
33278   for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
33279 do :
33280   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33281 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
33282 "
33283 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33284   cat >>confdefs.h <<_ACEOF
33285 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33286 _ACEOF
33287
33288 fi
33289
33290 done
33291
33292
33293
33294     #
33295   tst_links_ioctl="unknown"
33296   tst_proto_ioctl="unknown"
33297   tst_compi_ioctl="unknown"
33298   tst_allow_ioctl="unknown"
33299   #
33300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
33301 $as_echo_n "checking if ioctl can be linked... " >&6; }
33302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33303 /* end confdefs.h.  */
33304
33305
33306 #define ioctl innocuous_ioctl
33307 #ifdef __STDC__
33308 # include <limits.h>
33309 #else
33310 # include <assert.h>
33311 #endif
33312 #undef ioctl
33313 #ifdef __cplusplus
33314 extern "C"
33315 #endif
33316 char ioctl ();
33317 #if defined __stub_ioctl || defined __stub___ioctl
33318 choke me
33319 #endif
33320
33321 int main (void)
33322 {
33323 return ioctl ();
33324  ;
33325  return 0;
33326 }
33327
33328 _ACEOF
33329 if ac_fn_c_try_link "$LINENO"; then :
33330
33331     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33332 $as_echo "yes" >&6; }
33333     tst_links_ioctl="yes"
33334
33335 else
33336
33337     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33338 $as_echo "no" >&6; }
33339     tst_links_ioctl="no"
33340
33341 fi
33342 rm -f core conftest.err conftest.$ac_objext \
33343     conftest$ac_exeext conftest.$ac_ext
33344   #
33345   if test "$tst_links_ioctl" = "yes"; then
33346     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
33347 $as_echo_n "checking if ioctl is prototyped... " >&6; }
33348     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33349 /* end confdefs.h.  */
33350
33351       $curl_includes_stropts
33352
33353 _ACEOF
33354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33355   $EGREP "ioctl" >/dev/null 2>&1; then :
33356
33357       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33358 $as_echo "yes" >&6; }
33359       tst_proto_ioctl="yes"
33360
33361 else
33362
33363       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33364 $as_echo "no" >&6; }
33365       tst_proto_ioctl="no"
33366
33367 fi
33368 rm -f conftest*
33369
33370   fi
33371   #
33372   if test "$tst_proto_ioctl" = "yes"; then
33373     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
33374 $as_echo_n "checking if ioctl is compilable... " >&6; }
33375     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33376 /* end confdefs.h.  */
33377
33378
33379         $curl_includes_stropts
33380
33381 int main (void)
33382 {
33383
33384         if(0 != ioctl(0, 0, 0))
33385           return 1;
33386
33387  ;
33388  return 0;
33389 }
33390
33391 _ACEOF
33392 if ac_fn_c_try_compile "$LINENO"; then :
33393
33394       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33395 $as_echo "yes" >&6; }
33396       tst_compi_ioctl="yes"
33397
33398 else
33399
33400       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33401 $as_echo "no" >&6; }
33402       tst_compi_ioctl="no"
33403
33404 fi
33405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33406   fi
33407   #
33408   if test "$tst_compi_ioctl" = "yes"; then
33409     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
33410 $as_echo_n "checking if ioctl usage allowed... " >&6; }
33411     if test "x$curl_disallow_ioctl" != "xyes"; then
33412       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33413 $as_echo "yes" >&6; }
33414       tst_allow_ioctl="yes"
33415     else
33416       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33417 $as_echo "no" >&6; }
33418       tst_allow_ioctl="no"
33419     fi
33420   fi
33421   #
33422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
33423 $as_echo_n "checking if ioctl might be used... " >&6; }
33424   if test "$tst_links_ioctl" = "yes" &&
33425      test "$tst_proto_ioctl" = "yes" &&
33426      test "$tst_compi_ioctl" = "yes" &&
33427      test "$tst_allow_ioctl" = "yes"; then
33428     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33429 $as_echo "yes" >&6; }
33430
33431 cat >>confdefs.h <<_ACEOF
33432 #define HAVE_IOCTL 1
33433 _ACEOF
33434
33435     ac_cv_func_ioctl="yes"
33436
33437   #
33438   tst_compi_ioctl_fionbio="unknown"
33439   tst_allow_ioctl_fionbio="unknown"
33440   #
33441   if test "$ac_cv_func_ioctl" = "yes"; then
33442     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
33443 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
33444     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33445 /* end confdefs.h.  */
33446
33447
33448         $curl_includes_stropts
33449
33450 int main (void)
33451 {
33452
33453         int flags = 0;
33454         if(0 != ioctl(0, FIONBIO, &flags))
33455           return 1;
33456
33457  ;
33458  return 0;
33459 }
33460
33461 _ACEOF
33462 if ac_fn_c_try_compile "$LINENO"; then :
33463
33464       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33465 $as_echo "yes" >&6; }
33466       tst_compi_ioctl_fionbio="yes"
33467
33468 else
33469
33470       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33471 $as_echo "no" >&6; }
33472       tst_compi_ioctl_fionbio="no"
33473
33474 fi
33475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33476   fi
33477   #
33478   if test "$tst_compi_ioctl_fionbio" = "yes"; then
33479     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
33480 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
33481     if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
33482       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33483 $as_echo "yes" >&6; }
33484       tst_allow_ioctl_fionbio="yes"
33485     else
33486       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33487 $as_echo "no" >&6; }
33488       tst_allow_ioctl_fionbio="no"
33489     fi
33490   fi
33491   #
33492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
33493 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
33494   if test "$tst_compi_ioctl_fionbio" = "yes" &&
33495      test "$tst_allow_ioctl_fionbio" = "yes"; then
33496     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33497 $as_echo "yes" >&6; }
33498
33499 cat >>confdefs.h <<_ACEOF
33500 #define HAVE_IOCTL_FIONBIO 1
33501 _ACEOF
33502
33503     ac_cv_func_ioctl_fionbio="yes"
33504   else
33505     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33506 $as_echo "no" >&6; }
33507     ac_cv_func_ioctl_fionbio="no"
33508   fi
33509
33510
33511   #
33512   tst_compi_ioctl_siocgifaddr="unknown"
33513   tst_allow_ioctl_siocgifaddr="unknown"
33514   #
33515   if test "$ac_cv_func_ioctl" = "yes"; then
33516     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
33517 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
33518     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33519 /* end confdefs.h.  */
33520
33521
33522         $curl_includes_stropts
33523         #include <net/if.h>
33524
33525 int main (void)
33526 {
33527
33528         struct ifreq ifr;
33529         if(0 != ioctl(0, SIOCGIFADDR, &ifr))
33530           return 1;
33531
33532  ;
33533  return 0;
33534 }
33535
33536 _ACEOF
33537 if ac_fn_c_try_compile "$LINENO"; then :
33538
33539       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33540 $as_echo "yes" >&6; }
33541       tst_compi_ioctl_siocgifaddr="yes"
33542
33543 else
33544
33545       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33546 $as_echo "no" >&6; }
33547       tst_compi_ioctl_siocgifaddr="no"
33548
33549 fi
33550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33551   fi
33552   #
33553   if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
33554     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
33555 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
33556     if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
33557       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33558 $as_echo "yes" >&6; }
33559       tst_allow_ioctl_siocgifaddr="yes"
33560     else
33561       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33562 $as_echo "no" >&6; }
33563       tst_allow_ioctl_siocgifaddr="no"
33564     fi
33565   fi
33566   #
33567   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
33568 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
33569   if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
33570      test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
33571     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33572 $as_echo "yes" >&6; }
33573
33574 cat >>confdefs.h <<_ACEOF
33575 #define HAVE_IOCTL_SIOCGIFADDR 1
33576 _ACEOF
33577
33578     ac_cv_func_ioctl_siocgifaddr="yes"
33579   else
33580     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33581 $as_echo "no" >&6; }
33582     ac_cv_func_ioctl_siocgifaddr="no"
33583   fi
33584
33585   else
33586     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33587 $as_echo "no" >&6; }
33588     ac_cv_func_ioctl="no"
33589   fi
33590
33591
33592     #
33593   tst_links_ioctlsocket="unknown"
33594   tst_proto_ioctlsocket="unknown"
33595   tst_compi_ioctlsocket="unknown"
33596   tst_allow_ioctlsocket="unknown"
33597   #
33598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
33599 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
33600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33601 /* end confdefs.h.  */
33602
33603
33604       $curl_includes_winsock2
33605
33606 int main (void)
33607 {
33608
33609       if(0 != ioctlsocket(0, 0, 0))
33610         return 1;
33611
33612  ;
33613  return 0;
33614 }
33615
33616 _ACEOF
33617 if ac_fn_c_try_link "$LINENO"; then :
33618
33619     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33620 $as_echo "yes" >&6; }
33621     tst_links_ioctlsocket="yes"
33622
33623 else
33624
33625     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33626 $as_echo "no" >&6; }
33627     tst_links_ioctlsocket="no"
33628
33629 fi
33630 rm -f core conftest.err conftest.$ac_objext \
33631     conftest$ac_exeext conftest.$ac_ext
33632   #
33633   if test "$tst_links_ioctlsocket" = "yes"; then
33634     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
33635 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
33636     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33637 /* end confdefs.h.  */
33638
33639       $curl_includes_winsock2
33640
33641 _ACEOF
33642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33643   $EGREP "ioctlsocket" >/dev/null 2>&1; then :
33644
33645       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33646 $as_echo "yes" >&6; }
33647       tst_proto_ioctlsocket="yes"
33648
33649 else
33650
33651       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33652 $as_echo "no" >&6; }
33653       tst_proto_ioctlsocket="no"
33654
33655 fi
33656 rm -f conftest*
33657
33658   fi
33659   #
33660   if test "$tst_proto_ioctlsocket" = "yes"; then
33661     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
33662 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
33663     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33664 /* end confdefs.h.  */
33665
33666
33667         $curl_includes_winsock2
33668
33669 int main (void)
33670 {
33671
33672         if(0 != ioctlsocket(0, 0, 0))
33673           return 1;
33674
33675  ;
33676  return 0;
33677 }
33678
33679 _ACEOF
33680 if ac_fn_c_try_compile "$LINENO"; then :
33681
33682       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33683 $as_echo "yes" >&6; }
33684       tst_compi_ioctlsocket="yes"
33685
33686 else
33687
33688       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33689 $as_echo "no" >&6; }
33690       tst_compi_ioctlsocket="no"
33691
33692 fi
33693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33694   fi
33695   #
33696   if test "$tst_compi_ioctlsocket" = "yes"; then
33697     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
33698 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
33699     if test "x$curl_disallow_ioctlsocket" != "xyes"; then
33700       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33701 $as_echo "yes" >&6; }
33702       tst_allow_ioctlsocket="yes"
33703     else
33704       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33705 $as_echo "no" >&6; }
33706       tst_allow_ioctlsocket="no"
33707     fi
33708   fi
33709   #
33710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
33711 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
33712   if test "$tst_links_ioctlsocket" = "yes" &&
33713      test "$tst_proto_ioctlsocket" = "yes" &&
33714      test "$tst_compi_ioctlsocket" = "yes" &&
33715      test "$tst_allow_ioctlsocket" = "yes"; then
33716     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33717 $as_echo "yes" >&6; }
33718
33719 cat >>confdefs.h <<_ACEOF
33720 #define HAVE_IOCTLSOCKET 1
33721 _ACEOF
33722
33723     ac_cv_func_ioctlsocket="yes"
33724
33725   #
33726   tst_compi_ioctlsocket_fionbio="unknown"
33727   tst_allow_ioctlsocket_fionbio="unknown"
33728   #
33729   if test "$ac_cv_func_ioctlsocket" = "yes"; then
33730     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
33731 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
33732     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33733 /* end confdefs.h.  */
33734
33735
33736         $curl_includes_winsock2
33737
33738 int main (void)
33739 {
33740
33741         int flags = 0;
33742         if(0 != ioctlsocket(0, FIONBIO, &flags))
33743           return 1;
33744
33745  ;
33746  return 0;
33747 }
33748
33749 _ACEOF
33750 if ac_fn_c_try_compile "$LINENO"; then :
33751
33752       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33753 $as_echo "yes" >&6; }
33754       tst_compi_ioctlsocket_fionbio="yes"
33755
33756 else
33757
33758       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33759 $as_echo "no" >&6; }
33760       tst_compi_ioctlsocket_fionbio="no"
33761
33762 fi
33763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33764   fi
33765   #
33766   if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
33767     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
33768 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
33769     if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
33770       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33771 $as_echo "yes" >&6; }
33772       tst_allow_ioctlsocket_fionbio="yes"
33773     else
33774       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33775 $as_echo "no" >&6; }
33776       tst_allow_ioctlsocket_fionbio="no"
33777     fi
33778   fi
33779   #
33780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
33781 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
33782   if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
33783      test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
33784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33785 $as_echo "yes" >&6; }
33786
33787 cat >>confdefs.h <<_ACEOF
33788 #define HAVE_IOCTLSOCKET_FIONBIO 1
33789 _ACEOF
33790
33791     ac_cv_func_ioctlsocket_fionbio="yes"
33792   else
33793     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33794 $as_echo "no" >&6; }
33795     ac_cv_func_ioctlsocket_fionbio="no"
33796   fi
33797
33798   else
33799     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33800 $as_echo "no" >&6; }
33801     ac_cv_func_ioctlsocket="no"
33802   fi
33803
33804
33805     #
33806   tst_links_ioctlsocket_camel="unknown"
33807   tst_proto_ioctlsocket_camel="unknown"
33808   tst_compi_ioctlsocket_camel="unknown"
33809   tst_allow_ioctlsocket_camel="unknown"
33810   #
33811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
33812 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
33813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33814 /* end confdefs.h.  */
33815
33816
33817 #define IoctlSocket innocuous_IoctlSocket
33818 #ifdef __STDC__
33819 # include <limits.h>
33820 #else
33821 # include <assert.h>
33822 #endif
33823 #undef IoctlSocket
33824 #ifdef __cplusplus
33825 extern "C"
33826 #endif
33827 char IoctlSocket ();
33828 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
33829 choke me
33830 #endif
33831
33832 int main (void)
33833 {
33834 return IoctlSocket ();
33835  ;
33836  return 0;
33837 }
33838
33839 _ACEOF
33840 if ac_fn_c_try_link "$LINENO"; then :
33841
33842     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33843 $as_echo "yes" >&6; }
33844     tst_links_ioctlsocket_camel="yes"
33845
33846 else
33847
33848     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33849 $as_echo "no" >&6; }
33850     tst_links_ioctlsocket_camel="no"
33851
33852 fi
33853 rm -f core conftest.err conftest.$ac_objext \
33854     conftest$ac_exeext conftest.$ac_ext
33855   #
33856   if test "$tst_links_ioctlsocket_camel" = "yes"; then
33857     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
33858 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
33859     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33860 /* end confdefs.h.  */
33861
33862       $curl_includes_stropts
33863
33864 _ACEOF
33865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33866   $EGREP "IoctlSocket" >/dev/null 2>&1; then :
33867
33868       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33869 $as_echo "yes" >&6; }
33870       tst_proto_ioctlsocket_camel="yes"
33871
33872 else
33873
33874       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33875 $as_echo "no" >&6; }
33876       tst_proto_ioctlsocket_camel="no"
33877
33878 fi
33879 rm -f conftest*
33880
33881   fi
33882   #
33883   if test "$tst_proto_ioctlsocket_camel" = "yes"; then
33884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
33885 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
33886     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33887 /* end confdefs.h.  */
33888
33889
33890         $curl_includes_stropts
33891
33892 int main (void)
33893 {
33894
33895         if(0 != IoctlSocket(0, 0, 0))
33896           return 1;
33897
33898  ;
33899  return 0;
33900 }
33901
33902 _ACEOF
33903 if ac_fn_c_try_compile "$LINENO"; then :
33904
33905       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33906 $as_echo "yes" >&6; }
33907       tst_compi_ioctlsocket_camel="yes"
33908
33909 else
33910
33911       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33912 $as_echo "no" >&6; }
33913       tst_compi_ioctlsocket_camel="no"
33914
33915 fi
33916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33917   fi
33918   #
33919   if test "$tst_compi_ioctlsocket_camel" = "yes"; then
33920     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
33921 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
33922     if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
33923       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33924 $as_echo "yes" >&6; }
33925       tst_allow_ioctlsocket_camel="yes"
33926     else
33927       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33928 $as_echo "no" >&6; }
33929       tst_allow_ioctlsocket_camel="no"
33930     fi
33931   fi
33932   #
33933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
33934 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
33935   if test "$tst_links_ioctlsocket_camel" = "yes" &&
33936      test "$tst_proto_ioctlsocket_camel" = "yes" &&
33937      test "$tst_compi_ioctlsocket_camel" = "yes" &&
33938      test "$tst_allow_ioctlsocket_camel" = "yes"; then
33939     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33940 $as_echo "yes" >&6; }
33941
33942 cat >>confdefs.h <<_ACEOF
33943 #define HAVE_IOCTLSOCKET_CAMEL 1
33944 _ACEOF
33945
33946     ac_cv_func_ioctlsocket_camel="yes"
33947
33948   #
33949   tst_compi_ioctlsocket_camel_fionbio="unknown"
33950   tst_allow_ioctlsocket_camel_fionbio="unknown"
33951   #
33952   if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then
33953     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
33954 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
33955     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33956 /* end confdefs.h.  */
33957
33958
33959         $curl_includes_stropts
33960
33961 int main (void)
33962 {
33963
33964         long flags = 0;
33965         if(0 != ioctlsocket(0, FIONBIO, &flags))
33966           return 1;
33967
33968  ;
33969  return 0;
33970 }
33971
33972 _ACEOF
33973 if ac_fn_c_try_compile "$LINENO"; then :
33974
33975       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33976 $as_echo "yes" >&6; }
33977       tst_compi_ioctlsocket_camel_fionbio="yes"
33978
33979 else
33980
33981       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33982 $as_echo "no" >&6; }
33983       tst_compi_ioctlsocket_camel_fionbio="no"
33984
33985 fi
33986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33987   fi
33988   #
33989   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
33990     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
33991 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
33992     if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
33993       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33994 $as_echo "yes" >&6; }
33995       tst_allow_ioctlsocket_camel_fionbio="yes"
33996     else
33997       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33998 $as_echo "no" >&6; }
33999       tst_allow_ioctlsocket_camel_fionbio="no"
34000     fi
34001   fi
34002   #
34003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
34004 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
34005   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
34006      test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
34007     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34008 $as_echo "yes" >&6; }
34009
34010 cat >>confdefs.h <<_ACEOF
34011 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
34012 _ACEOF
34013
34014     ac_cv_func_ioctlsocket_camel_fionbio="yes"
34015   else
34016     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34017 $as_echo "no" >&6; }
34018     ac_cv_func_ioctlsocket_camel_fionbio="no"
34019   fi
34020
34021   else
34022     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34023 $as_echo "no" >&6; }
34024     ac_cv_func_ioctlsocket_camel="no"
34025   fi
34026
34027
34028       #
34029   tst_links_localtime_r="unknown"
34030   tst_proto_localtime_r="unknown"
34031   tst_compi_localtime_r="unknown"
34032   tst_works_localtime_r="unknown"
34033   tst_allow_localtime_r="unknown"
34034   #
34035   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
34036 $as_echo_n "checking if localtime_r can be linked... " >&6; }
34037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34038 /* end confdefs.h.  */
34039
34040
34041 #define localtime_r innocuous_localtime_r
34042 #ifdef __STDC__
34043 # include <limits.h>
34044 #else
34045 # include <assert.h>
34046 #endif
34047 #undef localtime_r
34048 #ifdef __cplusplus
34049 extern "C"
34050 #endif
34051 char localtime_r ();
34052 #if defined __stub_localtime_r || defined __stub___localtime_r
34053 choke me
34054 #endif
34055
34056 int main (void)
34057 {
34058 return localtime_r ();
34059  ;
34060  return 0;
34061 }
34062
34063 _ACEOF
34064 if ac_fn_c_try_link "$LINENO"; then :
34065
34066     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34067 $as_echo "yes" >&6; }
34068     tst_links_localtime_r="yes"
34069
34070 else
34071
34072     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34073 $as_echo "no" >&6; }
34074     tst_links_localtime_r="no"
34075
34076 fi
34077 rm -f core conftest.err conftest.$ac_objext \
34078     conftest$ac_exeext conftest.$ac_ext
34079   #
34080   if test "$tst_links_localtime_r" = "yes"; then
34081     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
34082 $as_echo_n "checking if localtime_r is prototyped... " >&6; }
34083     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34084 /* end confdefs.h.  */
34085
34086       $curl_includes_time
34087
34088 _ACEOF
34089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34090   $EGREP "localtime_r" >/dev/null 2>&1; then :
34091
34092       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34093 $as_echo "yes" >&6; }
34094       tst_proto_localtime_r="yes"
34095
34096 else
34097
34098       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34099 $as_echo "no" >&6; }
34100       tst_proto_localtime_r="no"
34101
34102 fi
34103 rm -f conftest*
34104
34105   fi
34106   #
34107   if test "$tst_proto_localtime_r" = "yes"; then
34108     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
34109 $as_echo_n "checking if localtime_r is compilable... " >&6; }
34110     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34111 /* end confdefs.h.  */
34112
34113
34114         $curl_includes_time
34115
34116 int main (void)
34117 {
34118
34119         if(0 != localtime_r(0, 0))
34120           return 1;
34121
34122  ;
34123  return 0;
34124 }
34125
34126 _ACEOF
34127 if ac_fn_c_try_compile "$LINENO"; then :
34128
34129       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34130 $as_echo "yes" >&6; }
34131       tst_compi_localtime_r="yes"
34132
34133 else
34134
34135       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34136 $as_echo "no" >&6; }
34137       tst_compi_localtime_r="no"
34138
34139 fi
34140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34141   fi
34142   #
34143     if test "x$cross_compiling" != "xyes" &&
34144     test "$tst_compi_localtime_r" = "yes"; then
34145     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
34146 $as_echo_n "checking if localtime_r seems to work... " >&6; }
34147     if test "$cross_compiling" = yes; then :
34148   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34150 as_fn_error $? "cannot run test program while cross compiling
34151 See \`config.log' for more details" "$LINENO" 5; }
34152 else
34153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34154 /* end confdefs.h.  */
34155
34156
34157         $curl_includes_stdlib
34158         $curl_includes_time
34159
34160 int main (void)
34161 {
34162
34163         time_t clock = 1170352587;
34164         struct tm *tmp = 0;
34165         struct tm result;
34166         tmp = localtime_r(&clock, &result);
34167         if(tmp)
34168           exit(0);
34169         else
34170           exit(1);
34171
34172  ;
34173  return 0;
34174 }
34175
34176 _ACEOF
34177 if ac_fn_c_try_run "$LINENO"; then :
34178
34179       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34180 $as_echo "yes" >&6; }
34181       tst_works_localtime_r="yes"
34182
34183 else
34184
34185       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34186 $as_echo "no" >&6; }
34187       tst_works_localtime_r="no"
34188
34189 fi
34190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34191   conftest.$ac_objext conftest.beam conftest.$ac_ext
34192 fi
34193
34194   fi
34195   #
34196   if test "$tst_compi_localtime_r" = "yes" &&
34197     test "$tst_works_localtime_r" != "no"; then
34198     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
34199 $as_echo_n "checking if localtime_r usage allowed... " >&6; }
34200     if test "x$curl_disallow_localtime_r" != "xyes"; then
34201       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34202 $as_echo "yes" >&6; }
34203       tst_allow_localtime_r="yes"
34204     else
34205       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34206 $as_echo "no" >&6; }
34207       tst_allow_localtime_r="no"
34208     fi
34209   fi
34210   #
34211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
34212 $as_echo_n "checking if localtime_r might be used... " >&6; }
34213   if test "$tst_links_localtime_r" = "yes" &&
34214      test "$tst_proto_localtime_r" = "yes" &&
34215      test "$tst_compi_localtime_r" = "yes" &&
34216      test "$tst_allow_localtime_r" = "yes" &&
34217      test "$tst_works_localtime_r" != "no"; then
34218     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34219 $as_echo "yes" >&6; }
34220
34221 cat >>confdefs.h <<_ACEOF
34222 #define HAVE_LOCALTIME_R 1
34223 _ACEOF
34224
34225     ac_cv_func_localtime_r="yes"
34226   else
34227     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34228 $as_echo "no" >&6; }
34229     ac_cv_func_localtime_r="no"
34230   fi
34231
34232
34233     #
34234   tst_links_memrchr="unknown"
34235   tst_macro_memrchr="unknown"
34236   tst_proto_memrchr="unknown"
34237   tst_compi_memrchr="unknown"
34238   tst_allow_memrchr="unknown"
34239   #
34240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
34241 $as_echo_n "checking if memrchr can be linked... " >&6; }
34242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34243 /* end confdefs.h.  */
34244
34245
34246 #define memrchr innocuous_memrchr
34247 #ifdef __STDC__
34248 # include <limits.h>
34249 #else
34250 # include <assert.h>
34251 #endif
34252 #undef memrchr
34253 #ifdef __cplusplus
34254 extern "C"
34255 #endif
34256 char memrchr ();
34257 #if defined __stub_memrchr || defined __stub___memrchr
34258 choke me
34259 #endif
34260
34261 int main (void)
34262 {
34263 return memrchr ();
34264  ;
34265  return 0;
34266 }
34267
34268 _ACEOF
34269 if ac_fn_c_try_link "$LINENO"; then :
34270
34271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34272 $as_echo "yes" >&6; }
34273     tst_links_memrchr="yes"
34274
34275 else
34276
34277     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34278 $as_echo "no" >&6; }
34279     tst_links_memrchr="no"
34280
34281 fi
34282 rm -f core conftest.err conftest.$ac_objext \
34283     conftest$ac_exeext conftest.$ac_ext
34284   #
34285   if test "$tst_links_memrchr" = "no"; then
34286     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
34287 $as_echo_n "checking if memrchr seems a macro... " >&6; }
34288     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34289 /* end confdefs.h.  */
34290
34291
34292         $curl_includes_string
34293
34294 int main (void)
34295 {
34296
34297         if(0 != memrchr(0, 0, 0))
34298           return 1;
34299
34300  ;
34301  return 0;
34302 }
34303
34304 _ACEOF
34305 if ac_fn_c_try_link "$LINENO"; then :
34306
34307       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34308 $as_echo "yes" >&6; }
34309       tst_macro_memrchr="yes"
34310
34311 else
34312
34313       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34314 $as_echo "no" >&6; }
34315       tst_macro_memrchr="no"
34316
34317 fi
34318 rm -f core conftest.err conftest.$ac_objext \
34319     conftest$ac_exeext conftest.$ac_ext
34320   fi
34321   #
34322   if test "$tst_links_memrchr" = "yes"; then
34323     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
34324 $as_echo_n "checking if memrchr is prototyped... " >&6; }
34325     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34326 /* end confdefs.h.  */
34327
34328       $curl_includes_string
34329
34330 _ACEOF
34331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34332   $EGREP "memrchr" >/dev/null 2>&1; then :
34333
34334       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34335 $as_echo "yes" >&6; }
34336       tst_proto_memrchr="yes"
34337
34338 else
34339
34340       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34341 $as_echo "no" >&6; }
34342       tst_proto_memrchr="no"
34343
34344 fi
34345 rm -f conftest*
34346
34347   fi
34348   #
34349   if test "$tst_proto_memrchr" = "yes" ||
34350      test "$tst_macro_memrchr" = "yes"; then
34351     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
34352 $as_echo_n "checking if memrchr is compilable... " >&6; }
34353     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34354 /* end confdefs.h.  */
34355
34356
34357         $curl_includes_string
34358
34359 int main (void)
34360 {
34361
34362         if(0 != memrchr(0, 0, 0))
34363           return 1;
34364
34365  ;
34366  return 0;
34367 }
34368
34369 _ACEOF
34370 if ac_fn_c_try_compile "$LINENO"; then :
34371
34372       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34373 $as_echo "yes" >&6; }
34374       tst_compi_memrchr="yes"
34375
34376 else
34377
34378       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34379 $as_echo "no" >&6; }
34380       tst_compi_memrchr="no"
34381
34382 fi
34383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34384   fi
34385   #
34386   if test "$tst_compi_memrchr" = "yes"; then
34387     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
34388 $as_echo_n "checking if memrchr usage allowed... " >&6; }
34389     if test "x$curl_disallow_memrchr" != "xyes"; then
34390       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34391 $as_echo "yes" >&6; }
34392       tst_allow_memrchr="yes"
34393     else
34394       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34395 $as_echo "no" >&6; }
34396       tst_allow_memrchr="no"
34397     fi
34398   fi
34399   #
34400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
34401 $as_echo_n "checking if memrchr might be used... " >&6; }
34402   if (test "$tst_proto_memrchr" = "yes" ||
34403       test "$tst_macro_memrchr" = "yes") &&
34404      test "$tst_compi_memrchr" = "yes" &&
34405      test "$tst_allow_memrchr" = "yes"; then
34406     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34407 $as_echo "yes" >&6; }
34408
34409 cat >>confdefs.h <<_ACEOF
34410 #define HAVE_MEMRCHR 1
34411 _ACEOF
34412
34413     ac_cv_func_memrchr="yes"
34414   else
34415     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34416 $as_echo "no" >&6; }
34417     ac_cv_func_memrchr="no"
34418   fi
34419
34420
34421       #
34422   tst_links_poll="unknown"
34423   tst_proto_poll="unknown"
34424   tst_compi_poll="unknown"
34425   tst_works_poll="unknown"
34426   tst_allow_poll="unknown"
34427   #
34428   case $host_os in
34429     darwin[123456789].*|darwin10.*|darwin11.*|darwin12.*|interix*)
34430                               curl_disallow_poll="yes"
34431       ;;
34432   esac
34433   #
34434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
34435 $as_echo_n "checking if poll can be linked... " >&6; }
34436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34437 /* end confdefs.h.  */
34438
34439
34440       $curl_includes_poll
34441
34442 int main (void)
34443 {
34444
34445       if(0 != poll(0, 0, 0))
34446         return 1;
34447
34448  ;
34449  return 0;
34450 }
34451
34452 _ACEOF
34453 if ac_fn_c_try_link "$LINENO"; then :
34454
34455     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34456 $as_echo "yes" >&6; }
34457     tst_links_poll="yes"
34458
34459 else
34460
34461     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34462 $as_echo "no" >&6; }
34463     tst_links_poll="no"
34464
34465 fi
34466 rm -f core conftest.err conftest.$ac_objext \
34467     conftest$ac_exeext conftest.$ac_ext
34468   #
34469   if test "$tst_links_poll" = "yes"; then
34470     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
34471 $as_echo_n "checking if poll is prototyped... " >&6; }
34472     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34473 /* end confdefs.h.  */
34474
34475       $curl_includes_poll
34476
34477 _ACEOF
34478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34479   $EGREP "poll" >/dev/null 2>&1; then :
34480
34481       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34482 $as_echo "yes" >&6; }
34483       tst_proto_poll="yes"
34484
34485 else
34486
34487       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34488 $as_echo "no" >&6; }
34489       tst_proto_poll="no"
34490
34491 fi
34492 rm -f conftest*
34493
34494   fi
34495   #
34496   if test "$tst_proto_poll" = "yes"; then
34497     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
34498 $as_echo_n "checking if poll is compilable... " >&6; }
34499     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34500 /* end confdefs.h.  */
34501
34502
34503         $curl_includes_poll
34504
34505 int main (void)
34506 {
34507
34508         if(0 != poll(0, 0, 0))
34509           return 1;
34510
34511  ;
34512  return 0;
34513 }
34514
34515 _ACEOF
34516 if ac_fn_c_try_compile "$LINENO"; then :
34517
34518       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34519 $as_echo "yes" >&6; }
34520       tst_compi_poll="yes"
34521
34522 else
34523
34524       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34525 $as_echo "no" >&6; }
34526       tst_compi_poll="no"
34527
34528 fi
34529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34530   fi
34531   #
34532     if test "x$cross_compiling" != "xyes" &&
34533     test "$tst_compi_poll" = "yes"; then
34534     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
34535 $as_echo_n "checking if poll seems to work... " >&6; }
34536     if test "$cross_compiling" = yes; then :
34537   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34539 as_fn_error $? "cannot run test program while cross compiling
34540 See \`config.log' for more details" "$LINENO" 5; }
34541 else
34542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34543 /* end confdefs.h.  */
34544
34545
34546         $curl_includes_stdlib
34547         $curl_includes_poll
34548
34549 int main (void)
34550 {
34551
34552         if(0 != poll(0, 0, 10))
34553           exit(1); /* fail */
34554         else
34555           exit(0);
34556
34557  ;
34558  return 0;
34559 }
34560
34561 _ACEOF
34562 if ac_fn_c_try_run "$LINENO"; then :
34563
34564       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34565 $as_echo "yes" >&6; }
34566       tst_works_poll="yes"
34567
34568 else
34569
34570       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34571 $as_echo "no" >&6; }
34572       tst_works_poll="no"
34573
34574 fi
34575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34576   conftest.$ac_objext conftest.beam conftest.$ac_ext
34577 fi
34578
34579   fi
34580   #
34581   if test "$tst_compi_poll" = "yes" &&
34582     test "$tst_works_poll" != "no"; then
34583     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
34584 $as_echo_n "checking if poll usage allowed... " >&6; }
34585     if test "x$curl_disallow_poll" != "xyes"; then
34586       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34587 $as_echo "yes" >&6; }
34588       tst_allow_poll="yes"
34589     else
34590       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34591 $as_echo "no" >&6; }
34592       tst_allow_poll="no"
34593     fi
34594   fi
34595   #
34596   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
34597 $as_echo_n "checking if poll might be used... " >&6; }
34598   if test "$tst_links_poll" = "yes" &&
34599      test "$tst_proto_poll" = "yes" &&
34600      test "$tst_compi_poll" = "yes" &&
34601      test "$tst_allow_poll" = "yes" &&
34602      test "$tst_works_poll" != "no"; then
34603     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34604 $as_echo "yes" >&6; }
34605
34606 cat >>confdefs.h <<_ACEOF
34607 #define HAVE_POLL 1
34608 _ACEOF
34609
34610
34611 cat >>confdefs.h <<_ACEOF
34612 #define HAVE_POLL_FINE 1
34613 _ACEOF
34614
34615     ac_cv_func_poll="yes"
34616   else
34617     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34618 $as_echo "no" >&6; }
34619     ac_cv_func_poll="no"
34620   fi
34621
34622
34623       #
34624   tst_links_setsockopt="unknown"
34625   tst_proto_setsockopt="unknown"
34626   tst_compi_setsockopt="unknown"
34627   tst_allow_setsockopt="unknown"
34628   #
34629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
34630 $as_echo_n "checking if setsockopt can be linked... " >&6; }
34631   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34632 /* end confdefs.h.  */
34633
34634
34635       $curl_includes_winsock2
34636       $curl_includes_sys_socket
34637
34638 int main (void)
34639 {
34640
34641       if(0 != setsockopt(0, 0, 0, 0, 0))
34642         return 1;
34643
34644  ;
34645  return 0;
34646 }
34647
34648 _ACEOF
34649 if ac_fn_c_try_link "$LINENO"; then :
34650
34651     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34652 $as_echo "yes" >&6; }
34653     tst_links_setsockopt="yes"
34654
34655 else
34656
34657     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34658 $as_echo "no" >&6; }
34659     tst_links_setsockopt="no"
34660
34661 fi
34662 rm -f core conftest.err conftest.$ac_objext \
34663     conftest$ac_exeext conftest.$ac_ext
34664   #
34665   if test "$tst_links_setsockopt" = "yes"; then
34666     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
34667 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
34668     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34669 /* end confdefs.h.  */
34670
34671       $curl_includes_winsock2
34672       $curl_includes_sys_socket
34673
34674 _ACEOF
34675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34676   $EGREP "setsockopt" >/dev/null 2>&1; then :
34677
34678       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34679 $as_echo "yes" >&6; }
34680       tst_proto_setsockopt="yes"
34681
34682 else
34683
34684       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34685 $as_echo "no" >&6; }
34686       tst_proto_setsockopt="no"
34687
34688 fi
34689 rm -f conftest*
34690
34691   fi
34692   #
34693   if test "$tst_proto_setsockopt" = "yes"; then
34694     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
34695 $as_echo_n "checking if setsockopt is compilable... " >&6; }
34696     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34697 /* end confdefs.h.  */
34698
34699
34700         $curl_includes_winsock2
34701         $curl_includes_sys_socket
34702
34703 int main (void)
34704 {
34705
34706         if(0 != setsockopt(0, 0, 0, 0, 0))
34707           return 1;
34708
34709  ;
34710  return 0;
34711 }
34712
34713 _ACEOF
34714 if ac_fn_c_try_compile "$LINENO"; then :
34715
34716       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34717 $as_echo "yes" >&6; }
34718       tst_compi_setsockopt="yes"
34719
34720 else
34721
34722       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34723 $as_echo "no" >&6; }
34724       tst_compi_setsockopt="no"
34725
34726 fi
34727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34728   fi
34729   #
34730   if test "$tst_compi_setsockopt" = "yes"; then
34731     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
34732 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
34733     if test "x$curl_disallow_setsockopt" != "xyes"; then
34734       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34735 $as_echo "yes" >&6; }
34736       tst_allow_setsockopt="yes"
34737     else
34738       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34739 $as_echo "no" >&6; }
34740       tst_allow_setsockopt="no"
34741     fi
34742   fi
34743   #
34744   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
34745 $as_echo_n "checking if setsockopt might be used... " >&6; }
34746   if test "$tst_links_setsockopt" = "yes" &&
34747      test "$tst_proto_setsockopt" = "yes" &&
34748      test "$tst_compi_setsockopt" = "yes" &&
34749      test "$tst_allow_setsockopt" = "yes"; then
34750     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34751 $as_echo "yes" >&6; }
34752
34753 cat >>confdefs.h <<_ACEOF
34754 #define HAVE_SETSOCKOPT 1
34755 _ACEOF
34756
34757     ac_cv_func_setsockopt="yes"
34758
34759   #
34760   tst_compi_setsockopt_so_nonblock="unknown"
34761   tst_allow_setsockopt_so_nonblock="unknown"
34762   #
34763   if test "$ac_cv_func_setsockopt" = "yes"; then
34764     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
34765 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
34766     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34767 /* end confdefs.h.  */
34768
34769
34770         $curl_includes_winsock2
34771         $curl_includes_sys_socket
34772
34773 int main (void)
34774 {
34775
34776         if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 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_setsockopt_so_nonblock="yes"
34789
34790 else
34791
34792       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34793 $as_echo "no" >&6; }
34794       tst_compi_setsockopt_so_nonblock="no"
34795
34796 fi
34797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34798   fi
34799   #
34800   if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
34801     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
34802 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
34803     if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
34804       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34805 $as_echo "yes" >&6; }
34806       tst_allow_setsockopt_so_nonblock="yes"
34807     else
34808       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34809 $as_echo "no" >&6; }
34810       tst_allow_setsockopt_so_nonblock="no"
34811     fi
34812   fi
34813   #
34814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
34815 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
34816   if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
34817      test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
34818     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34819 $as_echo "yes" >&6; }
34820
34821 cat >>confdefs.h <<_ACEOF
34822 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
34823 _ACEOF
34824
34825     ac_cv_func_setsockopt_so_nonblock="yes"
34826   else
34827     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34828 $as_echo "no" >&6; }
34829     ac_cv_func_setsockopt_so_nonblock="no"
34830   fi
34831
34832   else
34833     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34834 $as_echo "no" >&6; }
34835     ac_cv_func_setsockopt="no"
34836   fi
34837
34838
34839 curl_includes_signal="\
34840 /* includes start */
34841 #ifdef HAVE_SYS_TYPES_H
34842 #  include <sys/types.h>
34843 #endif
34844 #ifdef HAVE_SIGNAL_H
34845 #  include <signal.h>
34846 #endif
34847 /* includes end */"
34848   for ac_header in sys/types.h signal.h
34849 do :
34850   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34851 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
34852 "
34853 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34854   cat >>confdefs.h <<_ACEOF
34855 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34856 _ACEOF
34857
34858 fi
34859
34860 done
34861
34862
34863
34864     #
34865   tst_links_sigaction="unknown"
34866   tst_proto_sigaction="unknown"
34867   tst_compi_sigaction="unknown"
34868   tst_allow_sigaction="unknown"
34869   #
34870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
34871 $as_echo_n "checking if sigaction can be linked... " >&6; }
34872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34873 /* end confdefs.h.  */
34874
34875
34876 #define sigaction innocuous_sigaction
34877 #ifdef __STDC__
34878 # include <limits.h>
34879 #else
34880 # include <assert.h>
34881 #endif
34882 #undef sigaction
34883 #ifdef __cplusplus
34884 extern "C"
34885 #endif
34886 char sigaction ();
34887 #if defined __stub_sigaction || defined __stub___sigaction
34888 choke me
34889 #endif
34890
34891 int main (void)
34892 {
34893 return sigaction ();
34894  ;
34895  return 0;
34896 }
34897
34898 _ACEOF
34899 if ac_fn_c_try_link "$LINENO"; then :
34900
34901     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34902 $as_echo "yes" >&6; }
34903     tst_links_sigaction="yes"
34904
34905 else
34906
34907     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34908 $as_echo "no" >&6; }
34909     tst_links_sigaction="no"
34910
34911 fi
34912 rm -f core conftest.err conftest.$ac_objext \
34913     conftest$ac_exeext conftest.$ac_ext
34914   #
34915   if test "$tst_links_sigaction" = "yes"; then
34916     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
34917 $as_echo_n "checking if sigaction is prototyped... " >&6; }
34918     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34919 /* end confdefs.h.  */
34920
34921       $curl_includes_signal
34922
34923 _ACEOF
34924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34925   $EGREP "sigaction" >/dev/null 2>&1; then :
34926
34927       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34928 $as_echo "yes" >&6; }
34929       tst_proto_sigaction="yes"
34930
34931 else
34932
34933       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34934 $as_echo "no" >&6; }
34935       tst_proto_sigaction="no"
34936
34937 fi
34938 rm -f conftest*
34939
34940   fi
34941   #
34942   if test "$tst_proto_sigaction" = "yes"; then
34943     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
34944 $as_echo_n "checking if sigaction is compilable... " >&6; }
34945     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34946 /* end confdefs.h.  */
34947
34948
34949         $curl_includes_signal
34950
34951 int main (void)
34952 {
34953
34954         if(0 != sigaction(0, 0, 0))
34955           return 1;
34956
34957  ;
34958  return 0;
34959 }
34960
34961 _ACEOF
34962 if ac_fn_c_try_compile "$LINENO"; then :
34963
34964       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34965 $as_echo "yes" >&6; }
34966       tst_compi_sigaction="yes"
34967
34968 else
34969
34970       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34971 $as_echo "no" >&6; }
34972       tst_compi_sigaction="no"
34973
34974 fi
34975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34976   fi
34977   #
34978   if test "$tst_compi_sigaction" = "yes"; then
34979     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
34980 $as_echo_n "checking if sigaction usage allowed... " >&6; }
34981     if test "x$curl_disallow_sigaction" != "xyes"; then
34982       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34983 $as_echo "yes" >&6; }
34984       tst_allow_sigaction="yes"
34985     else
34986       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34987 $as_echo "no" >&6; }
34988       tst_allow_sigaction="no"
34989     fi
34990   fi
34991   #
34992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
34993 $as_echo_n "checking if sigaction might be used... " >&6; }
34994   if test "$tst_links_sigaction" = "yes" &&
34995      test "$tst_proto_sigaction" = "yes" &&
34996      test "$tst_compi_sigaction" = "yes" &&
34997      test "$tst_allow_sigaction" = "yes"; then
34998     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34999 $as_echo "yes" >&6; }
35000
35001 cat >>confdefs.h <<_ACEOF
35002 #define HAVE_SIGACTION 1
35003 _ACEOF
35004
35005     ac_cv_func_sigaction="yes"
35006   else
35007     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35008 $as_echo "no" >&6; }
35009     ac_cv_func_sigaction="no"
35010   fi
35011
35012
35013     #
35014   tst_links_siginterrupt="unknown"
35015   tst_proto_siginterrupt="unknown"
35016   tst_compi_siginterrupt="unknown"
35017   tst_allow_siginterrupt="unknown"
35018   #
35019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
35020 $as_echo_n "checking if siginterrupt can be linked... " >&6; }
35021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35022 /* end confdefs.h.  */
35023
35024
35025 #define siginterrupt innocuous_siginterrupt
35026 #ifdef __STDC__
35027 # include <limits.h>
35028 #else
35029 # include <assert.h>
35030 #endif
35031 #undef siginterrupt
35032 #ifdef __cplusplus
35033 extern "C"
35034 #endif
35035 char siginterrupt ();
35036 #if defined __stub_siginterrupt || defined __stub___siginterrupt
35037 choke me
35038 #endif
35039
35040 int main (void)
35041 {
35042 return siginterrupt ();
35043  ;
35044  return 0;
35045 }
35046
35047 _ACEOF
35048 if ac_fn_c_try_link "$LINENO"; then :
35049
35050     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35051 $as_echo "yes" >&6; }
35052     tst_links_siginterrupt="yes"
35053
35054 else
35055
35056     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35057 $as_echo "no" >&6; }
35058     tst_links_siginterrupt="no"
35059
35060 fi
35061 rm -f core conftest.err conftest.$ac_objext \
35062     conftest$ac_exeext conftest.$ac_ext
35063   #
35064   if test "$tst_links_siginterrupt" = "yes"; then
35065     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
35066 $as_echo_n "checking if siginterrupt is prototyped... " >&6; }
35067     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35068 /* end confdefs.h.  */
35069
35070       $curl_includes_signal
35071
35072 _ACEOF
35073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35074   $EGREP "siginterrupt" >/dev/null 2>&1; then :
35075
35076       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35077 $as_echo "yes" >&6; }
35078       tst_proto_siginterrupt="yes"
35079
35080 else
35081
35082       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35083 $as_echo "no" >&6; }
35084       tst_proto_siginterrupt="no"
35085
35086 fi
35087 rm -f conftest*
35088
35089   fi
35090   #
35091   if test "$tst_proto_siginterrupt" = "yes"; then
35092     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
35093 $as_echo_n "checking if siginterrupt is compilable... " >&6; }
35094     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35095 /* end confdefs.h.  */
35096
35097
35098         $curl_includes_signal
35099
35100 int main (void)
35101 {
35102
35103         if(0 != siginterrupt(0, 0))
35104           return 1;
35105
35106  ;
35107  return 0;
35108 }
35109
35110 _ACEOF
35111 if ac_fn_c_try_compile "$LINENO"; then :
35112
35113       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35114 $as_echo "yes" >&6; }
35115       tst_compi_siginterrupt="yes"
35116
35117 else
35118
35119       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35120 $as_echo "no" >&6; }
35121       tst_compi_siginterrupt="no"
35122
35123 fi
35124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35125   fi
35126   #
35127   if test "$tst_compi_siginterrupt" = "yes"; then
35128     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
35129 $as_echo_n "checking if siginterrupt usage allowed... " >&6; }
35130     if test "x$curl_disallow_siginterrupt" != "xyes"; then
35131       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35132 $as_echo "yes" >&6; }
35133       tst_allow_siginterrupt="yes"
35134     else
35135       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35136 $as_echo "no" >&6; }
35137       tst_allow_siginterrupt="no"
35138     fi
35139   fi
35140   #
35141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
35142 $as_echo_n "checking if siginterrupt might be used... " >&6; }
35143   if test "$tst_links_siginterrupt" = "yes" &&
35144      test "$tst_proto_siginterrupt" = "yes" &&
35145      test "$tst_compi_siginterrupt" = "yes" &&
35146      test "$tst_allow_siginterrupt" = "yes"; then
35147     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35148 $as_echo "yes" >&6; }
35149
35150 cat >>confdefs.h <<_ACEOF
35151 #define HAVE_SIGINTERRUPT 1
35152 _ACEOF
35153
35154     ac_cv_func_siginterrupt="yes"
35155   else
35156     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35157 $as_echo "no" >&6; }
35158     ac_cv_func_siginterrupt="no"
35159   fi
35160
35161
35162     #
35163   tst_links_signal="unknown"
35164   tst_proto_signal="unknown"
35165   tst_compi_signal="unknown"
35166   tst_allow_signal="unknown"
35167   #
35168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
35169 $as_echo_n "checking if signal can be linked... " >&6; }
35170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35171 /* end confdefs.h.  */
35172
35173
35174 #define signal innocuous_signal
35175 #ifdef __STDC__
35176 # include <limits.h>
35177 #else
35178 # include <assert.h>
35179 #endif
35180 #undef signal
35181 #ifdef __cplusplus
35182 extern "C"
35183 #endif
35184 char signal ();
35185 #if defined __stub_signal || defined __stub___signal
35186 choke me
35187 #endif
35188
35189 int main (void)
35190 {
35191 return signal ();
35192  ;
35193  return 0;
35194 }
35195
35196 _ACEOF
35197 if ac_fn_c_try_link "$LINENO"; then :
35198
35199     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35200 $as_echo "yes" >&6; }
35201     tst_links_signal="yes"
35202
35203 else
35204
35205     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35206 $as_echo "no" >&6; }
35207     tst_links_signal="no"
35208
35209 fi
35210 rm -f core conftest.err conftest.$ac_objext \
35211     conftest$ac_exeext conftest.$ac_ext
35212   #
35213   if test "$tst_links_signal" = "yes"; then
35214     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
35215 $as_echo_n "checking if signal is prototyped... " >&6; }
35216     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35217 /* end confdefs.h.  */
35218
35219       $curl_includes_signal
35220
35221 _ACEOF
35222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35223   $EGREP "signal" >/dev/null 2>&1; then :
35224
35225       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35226 $as_echo "yes" >&6; }
35227       tst_proto_signal="yes"
35228
35229 else
35230
35231       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35232 $as_echo "no" >&6; }
35233       tst_proto_signal="no"
35234
35235 fi
35236 rm -f conftest*
35237
35238   fi
35239   #
35240   if test "$tst_proto_signal" = "yes"; then
35241     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
35242 $as_echo_n "checking if signal is compilable... " >&6; }
35243     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35244 /* end confdefs.h.  */
35245
35246
35247         $curl_includes_signal
35248
35249 int main (void)
35250 {
35251
35252         if(0 != signal(0, 0))
35253           return 1;
35254
35255  ;
35256  return 0;
35257 }
35258
35259 _ACEOF
35260 if ac_fn_c_try_compile "$LINENO"; then :
35261
35262       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35263 $as_echo "yes" >&6; }
35264       tst_compi_signal="yes"
35265
35266 else
35267
35268       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35269 $as_echo "no" >&6; }
35270       tst_compi_signal="no"
35271
35272 fi
35273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35274   fi
35275   #
35276   if test "$tst_compi_signal" = "yes"; then
35277     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
35278 $as_echo_n "checking if signal usage allowed... " >&6; }
35279     if test "x$curl_disallow_signal" != "xyes"; then
35280       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35281 $as_echo "yes" >&6; }
35282       tst_allow_signal="yes"
35283     else
35284       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35285 $as_echo "no" >&6; }
35286       tst_allow_signal="no"
35287     fi
35288   fi
35289   #
35290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
35291 $as_echo_n "checking if signal might be used... " >&6; }
35292   if test "$tst_links_signal" = "yes" &&
35293      test "$tst_proto_signal" = "yes" &&
35294      test "$tst_compi_signal" = "yes" &&
35295      test "$tst_allow_signal" = "yes"; then
35296     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35297 $as_echo "yes" >&6; }
35298
35299 cat >>confdefs.h <<_ACEOF
35300 #define HAVE_SIGNAL 1
35301 _ACEOF
35302
35303     ac_cv_func_signal="yes"
35304   else
35305     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35306 $as_echo "no" >&6; }
35307     ac_cv_func_signal="no"
35308   fi
35309
35310
35311 curl_includes_setjmp="\
35312 /* includes start */
35313 #ifdef HAVE_SYS_TYPES_H
35314 #  include <sys/types.h>
35315 #endif
35316 #ifdef HAVE_SETJMP_H
35317 #  include <setjmp.h>
35318 #endif
35319 /* includes end */"
35320   for ac_header in sys/types.h setjmp.h
35321 do :
35322   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35323 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
35324 "
35325 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35326   cat >>confdefs.h <<_ACEOF
35327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35328 _ACEOF
35329
35330 fi
35331
35332 done
35333
35334
35335
35336     #
35337   tst_links_sigsetjmp="unknown"
35338   tst_macro_sigsetjmp="unknown"
35339   tst_proto_sigsetjmp="unknown"
35340   tst_compi_sigsetjmp="unknown"
35341   tst_allow_sigsetjmp="unknown"
35342   #
35343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
35344 $as_echo_n "checking if sigsetjmp can be linked... " >&6; }
35345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35346 /* end confdefs.h.  */
35347
35348
35349 #define sigsetjmp innocuous_sigsetjmp
35350 #ifdef __STDC__
35351 # include <limits.h>
35352 #else
35353 # include <assert.h>
35354 #endif
35355 #undef sigsetjmp
35356 #ifdef __cplusplus
35357 extern "C"
35358 #endif
35359 char sigsetjmp ();
35360 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
35361 choke me
35362 #endif
35363
35364 int main (void)
35365 {
35366 return sigsetjmp ();
35367  ;
35368  return 0;
35369 }
35370
35371 _ACEOF
35372 if ac_fn_c_try_link "$LINENO"; then :
35373
35374     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35375 $as_echo "yes" >&6; }
35376     tst_links_sigsetjmp="yes"
35377
35378 else
35379
35380     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35381 $as_echo "no" >&6; }
35382     tst_links_sigsetjmp="no"
35383
35384 fi
35385 rm -f core conftest.err conftest.$ac_objext \
35386     conftest$ac_exeext conftest.$ac_ext
35387   #
35388   if test "$tst_links_sigsetjmp" = "no"; then
35389     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
35390 $as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
35391     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35392 /* end confdefs.h.  */
35393
35394
35395         $curl_includes_setjmp
35396
35397 int main (void)
35398 {
35399
35400         sigjmp_buf env;
35401         if(0 != sigsetjmp(env, 0))
35402           return 1;
35403
35404  ;
35405  return 0;
35406 }
35407
35408 _ACEOF
35409 if ac_fn_c_try_link "$LINENO"; then :
35410
35411       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35412 $as_echo "yes" >&6; }
35413       tst_macro_sigsetjmp="yes"
35414
35415 else
35416
35417       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35418 $as_echo "no" >&6; }
35419       tst_macro_sigsetjmp="no"
35420
35421 fi
35422 rm -f core conftest.err conftest.$ac_objext \
35423     conftest$ac_exeext conftest.$ac_ext
35424   fi
35425   #
35426   if test "$tst_links_sigsetjmp" = "yes"; then
35427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
35428 $as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
35429     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35430 /* end confdefs.h.  */
35431
35432       $curl_includes_setjmp
35433
35434 _ACEOF
35435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35436   $EGREP "sigsetjmp" >/dev/null 2>&1; then :
35437
35438       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35439 $as_echo "yes" >&6; }
35440       tst_proto_sigsetjmp="yes"
35441
35442 else
35443
35444       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35445 $as_echo "no" >&6; }
35446       tst_proto_sigsetjmp="no"
35447
35448 fi
35449 rm -f conftest*
35450
35451   fi
35452   #
35453   if test "$tst_proto_sigsetjmp" = "yes" ||
35454      test "$tst_macro_sigsetjmp" = "yes"; then
35455     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
35456 $as_echo_n "checking if sigsetjmp is compilable... " >&6; }
35457     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35458 /* end confdefs.h.  */
35459
35460
35461         $curl_includes_setjmp
35462
35463 int main (void)
35464 {
35465
35466         sigjmp_buf env;
35467         if(0 != sigsetjmp(env, 0))
35468           return 1;
35469
35470  ;
35471  return 0;
35472 }
35473
35474 _ACEOF
35475 if ac_fn_c_try_compile "$LINENO"; then :
35476
35477       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35478 $as_echo "yes" >&6; }
35479       tst_compi_sigsetjmp="yes"
35480
35481 else
35482
35483       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35484 $as_echo "no" >&6; }
35485       tst_compi_sigsetjmp="no"
35486
35487 fi
35488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35489   fi
35490   #
35491   if test "$tst_compi_sigsetjmp" = "yes"; then
35492     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
35493 $as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
35494     if test "x$curl_disallow_sigsetjmp" != "xyes"; then
35495       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35496 $as_echo "yes" >&6; }
35497       tst_allow_sigsetjmp="yes"
35498     else
35499       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35500 $as_echo "no" >&6; }
35501       tst_allow_sigsetjmp="no"
35502     fi
35503   fi
35504   #
35505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
35506 $as_echo_n "checking if sigsetjmp might be used... " >&6; }
35507   if (test "$tst_proto_sigsetjmp" = "yes" ||
35508       test "$tst_macro_sigsetjmp" = "yes") &&
35509      test "$tst_compi_sigsetjmp" = "yes" &&
35510      test "$tst_allow_sigsetjmp" = "yes"; then
35511     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35512 $as_echo "yes" >&6; }
35513
35514 cat >>confdefs.h <<_ACEOF
35515 #define HAVE_SIGSETJMP 1
35516 _ACEOF
35517
35518     ac_cv_func_sigsetjmp="yes"
35519   else
35520     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35521 $as_echo "no" >&6; }
35522     ac_cv_func_sigsetjmp="no"
35523   fi
35524
35525
35526         #
35527   tst_links_socket="unknown"
35528   tst_proto_socket="unknown"
35529   tst_compi_socket="unknown"
35530   tst_allow_socket="unknown"
35531   #
35532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
35533 $as_echo_n "checking if socket can be linked... " >&6; }
35534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35535 /* end confdefs.h.  */
35536
35537
35538       $curl_includes_winsock2
35539       $curl_includes_sys_socket
35540       $curl_includes_socket
35541
35542 int main (void)
35543 {
35544
35545       if(0 != socket(0, 0, 0))
35546         return 1;
35547
35548  ;
35549  return 0;
35550 }
35551
35552 _ACEOF
35553 if ac_fn_c_try_link "$LINENO"; then :
35554
35555     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35556 $as_echo "yes" >&6; }
35557     tst_links_socket="yes"
35558
35559 else
35560
35561     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35562 $as_echo "no" >&6; }
35563     tst_links_socket="no"
35564
35565 fi
35566 rm -f core conftest.err conftest.$ac_objext \
35567     conftest$ac_exeext conftest.$ac_ext
35568   #
35569   if test "$tst_links_socket" = "yes"; then
35570     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
35571 $as_echo_n "checking if socket is prototyped... " >&6; }
35572     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35573 /* end confdefs.h.  */
35574
35575       $curl_includes_winsock2
35576       $curl_includes_sys_socket
35577       $curl_includes_socket
35578
35579 _ACEOF
35580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35581   $EGREP "socket" >/dev/null 2>&1; then :
35582
35583       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35584 $as_echo "yes" >&6; }
35585       tst_proto_socket="yes"
35586
35587 else
35588
35589       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35590 $as_echo "no" >&6; }
35591       tst_proto_socket="no"
35592
35593 fi
35594 rm -f conftest*
35595
35596   fi
35597   #
35598   if test "$tst_proto_socket" = "yes"; then
35599     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
35600 $as_echo_n "checking if socket is compilable... " >&6; }
35601     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35602 /* end confdefs.h.  */
35603
35604
35605         $curl_includes_winsock2
35606         $curl_includes_sys_socket
35607         $curl_includes_socket
35608
35609 int main (void)
35610 {
35611
35612         if(0 != socket(0, 0, 0))
35613           return 1;
35614
35615  ;
35616  return 0;
35617 }
35618
35619 _ACEOF
35620 if ac_fn_c_try_compile "$LINENO"; then :
35621
35622       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35623 $as_echo "yes" >&6; }
35624       tst_compi_socket="yes"
35625
35626 else
35627
35628       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35629 $as_echo "no" >&6; }
35630       tst_compi_socket="no"
35631
35632 fi
35633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35634   fi
35635   #
35636   if test "$tst_compi_socket" = "yes"; then
35637     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
35638 $as_echo_n "checking if socket usage allowed... " >&6; }
35639     if test "x$curl_disallow_socket" != "xyes"; then
35640       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35641 $as_echo "yes" >&6; }
35642       tst_allow_socket="yes"
35643     else
35644       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35645 $as_echo "no" >&6; }
35646       tst_allow_socket="no"
35647     fi
35648   fi
35649   #
35650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
35651 $as_echo_n "checking if socket might be used... " >&6; }
35652   if test "$tst_links_socket" = "yes" &&
35653      test "$tst_proto_socket" = "yes" &&
35654      test "$tst_compi_socket" = "yes" &&
35655      test "$tst_allow_socket" = "yes"; then
35656     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35657 $as_echo "yes" >&6; }
35658
35659 cat >>confdefs.h <<_ACEOF
35660 #define HAVE_SOCKET 1
35661 _ACEOF
35662
35663     ac_cv_func_socket="yes"
35664   else
35665     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35666 $as_echo "no" >&6; }
35667     ac_cv_func_socket="no"
35668   fi
35669
35670
35671       #
35672   tst_links_socketpair="unknown"
35673   tst_proto_socketpair="unknown"
35674   tst_compi_socketpair="unknown"
35675   tst_allow_socketpair="unknown"
35676   #
35677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
35678 $as_echo_n "checking if socketpair can be linked... " >&6; }
35679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35680 /* end confdefs.h.  */
35681
35682
35683 #define socketpair innocuous_socketpair
35684 #ifdef __STDC__
35685 # include <limits.h>
35686 #else
35687 # include <assert.h>
35688 #endif
35689 #undef socketpair
35690 #ifdef __cplusplus
35691 extern "C"
35692 #endif
35693 char socketpair ();
35694 #if defined __stub_socketpair || defined __stub___socketpair
35695 choke me
35696 #endif
35697
35698 int main (void)
35699 {
35700 return socketpair ();
35701  ;
35702  return 0;
35703 }
35704
35705 _ACEOF
35706 if ac_fn_c_try_link "$LINENO"; then :
35707
35708     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35709 $as_echo "yes" >&6; }
35710     tst_links_socketpair="yes"
35711
35712 else
35713
35714     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35715 $as_echo "no" >&6; }
35716     tst_links_socketpair="no"
35717
35718 fi
35719 rm -f core conftest.err conftest.$ac_objext \
35720     conftest$ac_exeext conftest.$ac_ext
35721   #
35722   if test "$tst_links_socketpair" = "yes"; then
35723     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
35724 $as_echo_n "checking if socketpair is prototyped... " >&6; }
35725     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35726 /* end confdefs.h.  */
35727
35728       $curl_includes_sys_socket
35729       $curl_includes_socket
35730
35731 _ACEOF
35732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35733   $EGREP "socketpair" >/dev/null 2>&1; then :
35734
35735       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35736 $as_echo "yes" >&6; }
35737       tst_proto_socketpair="yes"
35738
35739 else
35740
35741       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35742 $as_echo "no" >&6; }
35743       tst_proto_socketpair="no"
35744
35745 fi
35746 rm -f conftest*
35747
35748   fi
35749   #
35750   if test "$tst_proto_socketpair" = "yes"; then
35751     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
35752 $as_echo_n "checking if socketpair is compilable... " >&6; }
35753     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35754 /* end confdefs.h.  */
35755
35756
35757         $curl_includes_sys_socket
35758         $curl_includes_socket
35759
35760 int main (void)
35761 {
35762
35763         int sv[2];
35764         if(0 != socketpair(0, 0, 0, sv))
35765           return 1;
35766
35767  ;
35768  return 0;
35769 }
35770
35771 _ACEOF
35772 if ac_fn_c_try_compile "$LINENO"; then :
35773
35774       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35775 $as_echo "yes" >&6; }
35776       tst_compi_socketpair="yes"
35777
35778 else
35779
35780       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35781 $as_echo "no" >&6; }
35782       tst_compi_socketpair="no"
35783
35784 fi
35785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35786   fi
35787   #
35788   if test "$tst_compi_socketpair" = "yes"; then
35789     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
35790 $as_echo_n "checking if socketpair usage allowed... " >&6; }
35791     if test "x$curl_disallow_socketpair" != "xyes"; then
35792       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35793 $as_echo "yes" >&6; }
35794       tst_allow_socketpair="yes"
35795     else
35796       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35797 $as_echo "no" >&6; }
35798       tst_allow_socketpair="no"
35799     fi
35800   fi
35801   #
35802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
35803 $as_echo_n "checking if socketpair might be used... " >&6; }
35804   if test "$tst_links_socketpair" = "yes" &&
35805      test "$tst_proto_socketpair" = "yes" &&
35806      test "$tst_compi_socketpair" = "yes" &&
35807      test "$tst_allow_socketpair" = "yes"; then
35808     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35809 $as_echo "yes" >&6; }
35810
35811 cat >>confdefs.h <<_ACEOF
35812 #define HAVE_SOCKETPAIR 1
35813 _ACEOF
35814
35815     ac_cv_func_socketpair="yes"
35816   else
35817     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35818 $as_echo "no" >&6; }
35819     ac_cv_func_socketpair="no"
35820   fi
35821
35822
35823     #
35824   tst_links_strcasecmp="unknown"
35825   tst_proto_strcasecmp="unknown"
35826   tst_compi_strcasecmp="unknown"
35827   tst_allow_strcasecmp="unknown"
35828   #
35829   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
35830 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
35831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35832 /* end confdefs.h.  */
35833
35834
35835 #define strcasecmp innocuous_strcasecmp
35836 #ifdef __STDC__
35837 # include <limits.h>
35838 #else
35839 # include <assert.h>
35840 #endif
35841 #undef strcasecmp
35842 #ifdef __cplusplus
35843 extern "C"
35844 #endif
35845 char strcasecmp ();
35846 #if defined __stub_strcasecmp || defined __stub___strcasecmp
35847 choke me
35848 #endif
35849
35850 int main (void)
35851 {
35852 return strcasecmp ();
35853  ;
35854  return 0;
35855 }
35856
35857 _ACEOF
35858 if ac_fn_c_try_link "$LINENO"; then :
35859
35860     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35861 $as_echo "yes" >&6; }
35862     tst_links_strcasecmp="yes"
35863
35864 else
35865
35866     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35867 $as_echo "no" >&6; }
35868     tst_links_strcasecmp="no"
35869
35870 fi
35871 rm -f core conftest.err conftest.$ac_objext \
35872     conftest$ac_exeext conftest.$ac_ext
35873   #
35874   if test "$tst_links_strcasecmp" = "yes"; then
35875     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
35876 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
35877     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35878 /* end confdefs.h.  */
35879
35880       $curl_includes_string
35881
35882 _ACEOF
35883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35884   $EGREP "strcasecmp" >/dev/null 2>&1; then :
35885
35886       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35887 $as_echo "yes" >&6; }
35888       tst_proto_strcasecmp="yes"
35889
35890 else
35891
35892       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35893 $as_echo "no" >&6; }
35894       tst_proto_strcasecmp="no"
35895
35896 fi
35897 rm -f conftest*
35898
35899   fi
35900   #
35901   if test "$tst_proto_strcasecmp" = "yes"; then
35902     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
35903 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
35904     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35905 /* end confdefs.h.  */
35906
35907
35908         $curl_includes_string
35909
35910 int main (void)
35911 {
35912
35913         if(0 != strcasecmp(0, 0))
35914           return 1;
35915
35916  ;
35917  return 0;
35918 }
35919
35920 _ACEOF
35921 if ac_fn_c_try_compile "$LINENO"; then :
35922
35923       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35924 $as_echo "yes" >&6; }
35925       tst_compi_strcasecmp="yes"
35926
35927 else
35928
35929       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35930 $as_echo "no" >&6; }
35931       tst_compi_strcasecmp="no"
35932
35933 fi
35934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35935   fi
35936   #
35937   if test "$tst_compi_strcasecmp" = "yes"; then
35938     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
35939 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
35940     if test "x$curl_disallow_strcasecmp" != "xyes"; then
35941       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35942 $as_echo "yes" >&6; }
35943       tst_allow_strcasecmp="yes"
35944     else
35945       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35946 $as_echo "no" >&6; }
35947       tst_allow_strcasecmp="no"
35948     fi
35949   fi
35950   #
35951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
35952 $as_echo_n "checking if strcasecmp might be used... " >&6; }
35953   if test "$tst_links_strcasecmp" = "yes" &&
35954      test "$tst_proto_strcasecmp" = "yes" &&
35955      test "$tst_compi_strcasecmp" = "yes" &&
35956      test "$tst_allow_strcasecmp" = "yes"; then
35957     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35958 $as_echo "yes" >&6; }
35959
35960 cat >>confdefs.h <<_ACEOF
35961 #define HAVE_STRCASECMP 1
35962 _ACEOF
35963
35964     ac_cv_func_strcasecmp="yes"
35965   else
35966     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35967 $as_echo "no" >&6; }
35968     ac_cv_func_strcasecmp="no"
35969   fi
35970
35971
35972     #
35973   tst_links_strcmpi="unknown"
35974   tst_proto_strcmpi="unknown"
35975   tst_compi_strcmpi="unknown"
35976   tst_allow_strcmpi="unknown"
35977   #
35978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
35979 $as_echo_n "checking if strcmpi can be linked... " >&6; }
35980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35981 /* end confdefs.h.  */
35982
35983
35984 #define strcmpi innocuous_strcmpi
35985 #ifdef __STDC__
35986 # include <limits.h>
35987 #else
35988 # include <assert.h>
35989 #endif
35990 #undef strcmpi
35991 #ifdef __cplusplus
35992 extern "C"
35993 #endif
35994 char strcmpi ();
35995 #if defined __stub_strcmpi || defined __stub___strcmpi
35996 choke me
35997 #endif
35998
35999 int main (void)
36000 {
36001 return strcmpi ();
36002  ;
36003  return 0;
36004 }
36005
36006 _ACEOF
36007 if ac_fn_c_try_link "$LINENO"; then :
36008
36009     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36010 $as_echo "yes" >&6; }
36011     tst_links_strcmpi="yes"
36012
36013 else
36014
36015     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36016 $as_echo "no" >&6; }
36017     tst_links_strcmpi="no"
36018
36019 fi
36020 rm -f core conftest.err conftest.$ac_objext \
36021     conftest$ac_exeext conftest.$ac_ext
36022   #
36023   if test "$tst_links_strcmpi" = "yes"; then
36024     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
36025 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
36026     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36027 /* end confdefs.h.  */
36028
36029       $curl_includes_string
36030
36031 _ACEOF
36032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36033   $EGREP "strcmpi" >/dev/null 2>&1; then :
36034
36035       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36036 $as_echo "yes" >&6; }
36037       tst_proto_strcmpi="yes"
36038
36039 else
36040
36041       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36042 $as_echo "no" >&6; }
36043       tst_proto_strcmpi="no"
36044
36045 fi
36046 rm -f conftest*
36047
36048   fi
36049   #
36050   if test "$tst_proto_strcmpi" = "yes"; then
36051     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
36052 $as_echo_n "checking if strcmpi is compilable... " >&6; }
36053     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36054 /* end confdefs.h.  */
36055
36056
36057         $curl_includes_string
36058
36059 int main (void)
36060 {
36061
36062         if(0 != strcmpi(0, 0))
36063           return 1;
36064
36065  ;
36066  return 0;
36067 }
36068
36069 _ACEOF
36070 if ac_fn_c_try_compile "$LINENO"; then :
36071
36072       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36073 $as_echo "yes" >&6; }
36074       tst_compi_strcmpi="yes"
36075
36076 else
36077
36078       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36079 $as_echo "no" >&6; }
36080       tst_compi_strcmpi="no"
36081
36082 fi
36083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36084   fi
36085   #
36086   if test "$tst_compi_strcmpi" = "yes"; then
36087     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
36088 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
36089     if test "x$curl_disallow_strcmpi" != "xyes"; then
36090       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36091 $as_echo "yes" >&6; }
36092       tst_allow_strcmpi="yes"
36093     else
36094       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36095 $as_echo "no" >&6; }
36096       tst_allow_strcmpi="no"
36097     fi
36098   fi
36099   #
36100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
36101 $as_echo_n "checking if strcmpi might be used... " >&6; }
36102   if test "$tst_links_strcmpi" = "yes" &&
36103      test "$tst_proto_strcmpi" = "yes" &&
36104      test "$tst_compi_strcmpi" = "yes" &&
36105      test "$tst_allow_strcmpi" = "yes"; then
36106     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36107 $as_echo "yes" >&6; }
36108
36109 cat >>confdefs.h <<_ACEOF
36110 #define HAVE_STRCMPI 1
36111 _ACEOF
36112
36113     ac_cv_func_strcmpi="yes"
36114   else
36115     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36116 $as_echo "no" >&6; }
36117     ac_cv_func_strcmpi="no"
36118   fi
36119
36120
36121     #
36122   tst_links_strdup="unknown"
36123   tst_proto_strdup="unknown"
36124   tst_compi_strdup="unknown"
36125   tst_allow_strdup="unknown"
36126   #
36127   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
36128 $as_echo_n "checking if strdup can be linked... " >&6; }
36129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36130 /* end confdefs.h.  */
36131
36132
36133 #define strdup innocuous_strdup
36134 #ifdef __STDC__
36135 # include <limits.h>
36136 #else
36137 # include <assert.h>
36138 #endif
36139 #undef strdup
36140 #ifdef __cplusplus
36141 extern "C"
36142 #endif
36143 char strdup ();
36144 #if defined __stub_strdup || defined __stub___strdup
36145 choke me
36146 #endif
36147
36148 int main (void)
36149 {
36150 return strdup ();
36151  ;
36152  return 0;
36153 }
36154
36155 _ACEOF
36156 if ac_fn_c_try_link "$LINENO"; then :
36157
36158     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36159 $as_echo "yes" >&6; }
36160     tst_links_strdup="yes"
36161
36162 else
36163
36164     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36165 $as_echo "no" >&6; }
36166     tst_links_strdup="no"
36167
36168 fi
36169 rm -f core conftest.err conftest.$ac_objext \
36170     conftest$ac_exeext conftest.$ac_ext
36171   #
36172   if test "$tst_links_strdup" = "yes"; then
36173     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
36174 $as_echo_n "checking if strdup is prototyped... " >&6; }
36175     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36176 /* end confdefs.h.  */
36177
36178       $curl_includes_string
36179
36180 _ACEOF
36181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36182   $EGREP "strdup" >/dev/null 2>&1; then :
36183
36184       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36185 $as_echo "yes" >&6; }
36186       tst_proto_strdup="yes"
36187
36188 else
36189
36190       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36191 $as_echo "no" >&6; }
36192       tst_proto_strdup="no"
36193
36194 fi
36195 rm -f conftest*
36196
36197   fi
36198   #
36199   if test "$tst_proto_strdup" = "yes"; then
36200     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
36201 $as_echo_n "checking if strdup is compilable... " >&6; }
36202     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36203 /* end confdefs.h.  */
36204
36205
36206         $curl_includes_string
36207
36208 int main (void)
36209 {
36210
36211         if(0 != strdup(0))
36212           return 1;
36213
36214  ;
36215  return 0;
36216 }
36217
36218 _ACEOF
36219 if ac_fn_c_try_compile "$LINENO"; then :
36220
36221       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36222 $as_echo "yes" >&6; }
36223       tst_compi_strdup="yes"
36224
36225 else
36226
36227       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36228 $as_echo "no" >&6; }
36229       tst_compi_strdup="no"
36230
36231 fi
36232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36233   fi
36234   #
36235   if test "$tst_compi_strdup" = "yes"; then
36236     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
36237 $as_echo_n "checking if strdup usage allowed... " >&6; }
36238     if test "x$curl_disallow_strdup" != "xyes"; then
36239       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36240 $as_echo "yes" >&6; }
36241       tst_allow_strdup="yes"
36242     else
36243       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36244 $as_echo "no" >&6; }
36245       tst_allow_strdup="no"
36246     fi
36247   fi
36248   #
36249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
36250 $as_echo_n "checking if strdup might be used... " >&6; }
36251   if test "$tst_links_strdup" = "yes" &&
36252      test "$tst_proto_strdup" = "yes" &&
36253      test "$tst_compi_strdup" = "yes" &&
36254      test "$tst_allow_strdup" = "yes"; then
36255     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36256 $as_echo "yes" >&6; }
36257
36258 cat >>confdefs.h <<_ACEOF
36259 #define HAVE_STRDUP 1
36260 _ACEOF
36261
36262     ac_cv_func_strdup="yes"
36263   else
36264     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36265 $as_echo "no" >&6; }
36266     ac_cv_func_strdup="no"
36267   fi
36268
36269
36270       #
36271   tst_links_strerror_r="unknown"
36272   tst_proto_strerror_r="unknown"
36273   tst_compi_strerror_r="unknown"
36274   tst_glibc_strerror_r="unknown"
36275   tst_posix_strerror_r="unknown"
36276   tst_allow_strerror_r="unknown"
36277   tst_works_glibc_strerror_r="unknown"
36278   tst_works_posix_strerror_r="unknown"
36279   tst_glibc_strerror_r_type_arg3="unknown"
36280   tst_posix_strerror_r_type_arg3="unknown"
36281   #
36282   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
36283 $as_echo_n "checking if strerror_r can be linked... " >&6; }
36284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36285 /* end confdefs.h.  */
36286
36287
36288 #define strerror_r innocuous_strerror_r
36289 #ifdef __STDC__
36290 # include <limits.h>
36291 #else
36292 # include <assert.h>
36293 #endif
36294 #undef strerror_r
36295 #ifdef __cplusplus
36296 extern "C"
36297 #endif
36298 char strerror_r ();
36299 #if defined __stub_strerror_r || defined __stub___strerror_r
36300 choke me
36301 #endif
36302
36303 int main (void)
36304 {
36305 return strerror_r ();
36306  ;
36307  return 0;
36308 }
36309
36310 _ACEOF
36311 if ac_fn_c_try_link "$LINENO"; then :
36312
36313     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36314 $as_echo "yes" >&6; }
36315     tst_links_strerror_r="yes"
36316
36317 else
36318
36319     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36320 $as_echo "no" >&6; }
36321     tst_links_strerror_r="no"
36322
36323 fi
36324 rm -f core conftest.err conftest.$ac_objext \
36325     conftest$ac_exeext conftest.$ac_ext
36326   #
36327   if test "$tst_links_strerror_r" = "yes"; then
36328     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
36329 $as_echo_n "checking if strerror_r is prototyped... " >&6; }
36330     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36331 /* end confdefs.h.  */
36332
36333       $curl_includes_string
36334
36335 _ACEOF
36336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36337   $EGREP "strerror_r" >/dev/null 2>&1; then :
36338
36339       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36340 $as_echo "yes" >&6; }
36341       tst_proto_strerror_r="yes"
36342
36343 else
36344
36345       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36346 $as_echo "no" >&6; }
36347       tst_proto_strerror_r="no"
36348
36349 fi
36350 rm -f conftest*
36351
36352   fi
36353   #
36354   if test "$tst_proto_strerror_r" = "yes"; then
36355     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
36356 $as_echo_n "checking if strerror_r is compilable... " >&6; }
36357     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36358 /* end confdefs.h.  */
36359
36360
36361         $curl_includes_string
36362
36363 int main (void)
36364 {
36365
36366         if(0 != strerror_r(0, 0, 0))
36367           return 1;
36368
36369  ;
36370  return 0;
36371 }
36372
36373 _ACEOF
36374 if ac_fn_c_try_compile "$LINENO"; then :
36375
36376       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36377 $as_echo "yes" >&6; }
36378       tst_compi_strerror_r="yes"
36379
36380 else
36381
36382       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36383 $as_echo "no" >&6; }
36384       tst_compi_strerror_r="no"
36385
36386 fi
36387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36388   fi
36389   #
36390   if test "$tst_compi_strerror_r" = "yes"; then
36391     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
36392 $as_echo_n "checking if strerror_r is glibc like... " >&6; }
36393     tst_glibc_strerror_r_type_arg3="unknown"
36394     for arg3 in 'size_t' 'int' 'unsigned int'; do
36395       if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
36396         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36397 /* end confdefs.h.  */
36398
36399
36400             $curl_includes_string
36401             char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
36402
36403 int main (void)
36404 {
36405
36406             if(0 != strerror_r(0, 0, 0))
36407               return 1;
36408
36409  ;
36410  return 0;
36411 }
36412
36413 _ACEOF
36414 if ac_fn_c_try_compile "$LINENO"; then :
36415
36416           tst_glibc_strerror_r_type_arg3="$arg3"
36417
36418 fi
36419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36420       fi
36421     done
36422     case "$tst_glibc_strerror_r_type_arg3" in
36423       unknown)
36424         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36425 $as_echo "no" >&6; }
36426         tst_glibc_strerror_r="no"
36427         ;;
36428       *)
36429         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36430 $as_echo "yes" >&6; }
36431         tst_glibc_strerror_r="yes"
36432         ;;
36433     esac
36434   fi
36435   #
36436     if test "x$cross_compiling" != "xyes" &&
36437     test "$tst_glibc_strerror_r" = "yes"; then
36438     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
36439 $as_echo_n "checking if strerror_r seems to work... " >&6; }
36440     if test "$cross_compiling" = yes; then :
36441   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36443 as_fn_error $? "cannot run test program while cross compiling
36444 See \`config.log' for more details" "$LINENO" 5; }
36445 else
36446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36447 /* end confdefs.h.  */
36448
36449
36450         $curl_includes_stdlib
36451         $curl_includes_string
36452 #       include <errno.h>
36453
36454 int main (void)
36455 {
36456
36457         char buffer[1024];
36458         char *string = 0;
36459         buffer[0] = '\0';
36460         string = strerror_r(EACCES, buffer, sizeof(buffer));
36461         if(!string)
36462           exit(1); /* fail */
36463         if(!string[0])
36464           exit(1); /* fail */
36465         else
36466           exit(0);
36467
36468  ;
36469  return 0;
36470 }
36471
36472 _ACEOF
36473 if ac_fn_c_try_run "$LINENO"; then :
36474
36475       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36476 $as_echo "yes" >&6; }
36477       tst_works_glibc_strerror_r="yes"
36478
36479 else
36480
36481       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36482 $as_echo "no" >&6; }
36483       tst_works_glibc_strerror_r="no"
36484
36485 fi
36486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36487   conftest.$ac_objext conftest.beam conftest.$ac_ext
36488 fi
36489
36490   fi
36491   #
36492   if test "$tst_compi_strerror_r" = "yes" &&
36493     test "$tst_works_glibc_strerror_r" != "yes"; then
36494     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
36495 $as_echo_n "checking if strerror_r is POSIX like... " >&6; }
36496     tst_posix_strerror_r_type_arg3="unknown"
36497     for arg3 in 'size_t' 'int' 'unsigned int'; do
36498       if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
36499         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36500 /* end confdefs.h.  */
36501
36502
36503             $curl_includes_string
36504             int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
36505
36506 int main (void)
36507 {
36508
36509             if(0 != strerror_r(0, 0, 0))
36510               return 1;
36511
36512  ;
36513  return 0;
36514 }
36515
36516 _ACEOF
36517 if ac_fn_c_try_compile "$LINENO"; then :
36518
36519           tst_posix_strerror_r_type_arg3="$arg3"
36520
36521 fi
36522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36523       fi
36524     done
36525     case "$tst_posix_strerror_r_type_arg3" in
36526       unknown)
36527         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36528 $as_echo "no" >&6; }
36529         tst_posix_strerror_r="no"
36530         ;;
36531       *)
36532         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36533 $as_echo "yes" >&6; }
36534         tst_posix_strerror_r="yes"
36535         ;;
36536     esac
36537   fi
36538   #
36539     if test "x$cross_compiling" != "xyes" &&
36540     test "$tst_posix_strerror_r" = "yes"; then
36541     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
36542 $as_echo_n "checking if strerror_r seems to work... " >&6; }
36543     if test "$cross_compiling" = yes; then :
36544   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36546 as_fn_error $? "cannot run test program while cross compiling
36547 See \`config.log' for more details" "$LINENO" 5; }
36548 else
36549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36550 /* end confdefs.h.  */
36551
36552
36553         $curl_includes_stdlib
36554         $curl_includes_string
36555 #       include <errno.h>
36556
36557 int main (void)
36558 {
36559
36560         char buffer[1024];
36561         int error = 1;
36562         buffer[0] = '\0';
36563         error = strerror_r(EACCES, buffer, sizeof(buffer));
36564         if(error)
36565           exit(1); /* fail */
36566         if(buffer[0] == '\0')
36567           exit(1); /* fail */
36568         else
36569           exit(0);
36570
36571  ;
36572  return 0;
36573 }
36574
36575 _ACEOF
36576 if ac_fn_c_try_run "$LINENO"; then :
36577
36578       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36579 $as_echo "yes" >&6; }
36580       tst_works_posix_strerror_r="yes"
36581
36582 else
36583
36584       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36585 $as_echo "no" >&6; }
36586       tst_works_posix_strerror_r="no"
36587
36588 fi
36589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36590   conftest.$ac_objext conftest.beam conftest.$ac_ext
36591 fi
36592
36593   fi
36594   #
36595   if test "$tst_works_glibc_strerror_r" = "yes"; then
36596     tst_posix_strerror_r="no"
36597   fi
36598   if test "$tst_works_posix_strerror_r" = "yes"; then
36599     tst_glibc_strerror_r="no"
36600   fi
36601   if test "$tst_glibc_strerror_r" = "yes" &&
36602     test "$tst_works_glibc_strerror_r" != "no" &&
36603     test "$tst_posix_strerror_r" != "yes"; then
36604     tst_allow_strerror_r="check"
36605   fi
36606   if test "$tst_posix_strerror_r" = "yes" &&
36607     test "$tst_works_posix_strerror_r" != "no" &&
36608     test "$tst_glibc_strerror_r" != "yes"; then
36609     tst_allow_strerror_r="check"
36610   fi
36611   if test "$tst_allow_strerror_r" = "check"; then
36612     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
36613 $as_echo_n "checking if strerror_r usage allowed... " >&6; }
36614     if test "x$curl_disallow_strerror_r" != "xyes"; then
36615       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36616 $as_echo "yes" >&6; }
36617       tst_allow_strerror_r="yes"
36618     else
36619       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36620 $as_echo "no" >&6; }
36621       tst_allow_strerror_r="no"
36622     fi
36623   fi
36624   #
36625   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
36626 $as_echo_n "checking if strerror_r might be used... " >&6; }
36627   if test "$tst_links_strerror_r" = "yes" &&
36628      test "$tst_proto_strerror_r" = "yes" &&
36629      test "$tst_compi_strerror_r" = "yes" &&
36630      test "$tst_allow_strerror_r" = "yes"; then
36631     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36632 $as_echo "yes" >&6; }
36633     if test "$tst_glibc_strerror_r" = "yes"; then
36634
36635 cat >>confdefs.h <<_ACEOF
36636 #define HAVE_STRERROR_R 1
36637 _ACEOF
36638
36639
36640 cat >>confdefs.h <<_ACEOF
36641 #define HAVE_GLIBC_STRERROR_R 1
36642 _ACEOF
36643
36644
36645 cat >>confdefs.h <<_ACEOF
36646 #define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
36647 _ACEOF
36648
36649     fi
36650     if test "$tst_posix_strerror_r" = "yes"; then
36651
36652 cat >>confdefs.h <<_ACEOF
36653 #define HAVE_STRERROR_R 1
36654 _ACEOF
36655
36656
36657 cat >>confdefs.h <<_ACEOF
36658 #define HAVE_POSIX_STRERROR_R 1
36659 _ACEOF
36660
36661
36662 cat >>confdefs.h <<_ACEOF
36663 #define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
36664 _ACEOF
36665
36666     fi
36667     ac_cv_func_strerror_r="yes"
36668   else
36669     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36670 $as_echo "no" >&6; }
36671     ac_cv_func_strerror_r="no"
36672   fi
36673   #
36674   if test "$tst_compi_strerror_r" = "yes" &&
36675      test "$tst_allow_strerror_r" = "unknown"; then
36676     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
36677 $as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
36678   fi
36679   #
36680
36681
36682     #
36683   tst_links_stricmp="unknown"
36684   tst_proto_stricmp="unknown"
36685   tst_compi_stricmp="unknown"
36686   tst_allow_stricmp="unknown"
36687   #
36688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
36689 $as_echo_n "checking if stricmp can be linked... " >&6; }
36690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36691 /* end confdefs.h.  */
36692
36693
36694 #define stricmp innocuous_stricmp
36695 #ifdef __STDC__
36696 # include <limits.h>
36697 #else
36698 # include <assert.h>
36699 #endif
36700 #undef stricmp
36701 #ifdef __cplusplus
36702 extern "C"
36703 #endif
36704 char stricmp ();
36705 #if defined __stub_stricmp || defined __stub___stricmp
36706 choke me
36707 #endif
36708
36709 int main (void)
36710 {
36711 return stricmp ();
36712  ;
36713  return 0;
36714 }
36715
36716 _ACEOF
36717 if ac_fn_c_try_link "$LINENO"; then :
36718
36719     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36720 $as_echo "yes" >&6; }
36721     tst_links_stricmp="yes"
36722
36723 else
36724
36725     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36726 $as_echo "no" >&6; }
36727     tst_links_stricmp="no"
36728
36729 fi
36730 rm -f core conftest.err conftest.$ac_objext \
36731     conftest$ac_exeext conftest.$ac_ext
36732   #
36733   if test "$tst_links_stricmp" = "yes"; then
36734     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
36735 $as_echo_n "checking if stricmp is prototyped... " >&6; }
36736     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36737 /* end confdefs.h.  */
36738
36739       $curl_includes_string
36740
36741 _ACEOF
36742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36743   $EGREP "stricmp" >/dev/null 2>&1; then :
36744
36745       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36746 $as_echo "yes" >&6; }
36747       tst_proto_stricmp="yes"
36748
36749 else
36750
36751       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36752 $as_echo "no" >&6; }
36753       tst_proto_stricmp="no"
36754
36755 fi
36756 rm -f conftest*
36757
36758   fi
36759   #
36760   if test "$tst_proto_stricmp" = "yes"; then
36761     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
36762 $as_echo_n "checking if stricmp is compilable... " >&6; }
36763     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36764 /* end confdefs.h.  */
36765
36766
36767         $curl_includes_string
36768
36769 int main (void)
36770 {
36771
36772         if(0 != stricmp(0, 0))
36773           return 1;
36774
36775  ;
36776  return 0;
36777 }
36778
36779 _ACEOF
36780 if ac_fn_c_try_compile "$LINENO"; then :
36781
36782       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36783 $as_echo "yes" >&6; }
36784       tst_compi_stricmp="yes"
36785
36786 else
36787
36788       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36789 $as_echo "no" >&6; }
36790       tst_compi_stricmp="no"
36791
36792 fi
36793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36794   fi
36795   #
36796   if test "$tst_compi_stricmp" = "yes"; then
36797     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
36798 $as_echo_n "checking if stricmp usage allowed... " >&6; }
36799     if test "x$curl_disallow_stricmp" != "xyes"; then
36800       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36801 $as_echo "yes" >&6; }
36802       tst_allow_stricmp="yes"
36803     else
36804       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36805 $as_echo "no" >&6; }
36806       tst_allow_stricmp="no"
36807     fi
36808   fi
36809   #
36810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
36811 $as_echo_n "checking if stricmp might be used... " >&6; }
36812   if test "$tst_links_stricmp" = "yes" &&
36813      test "$tst_proto_stricmp" = "yes" &&
36814      test "$tst_compi_stricmp" = "yes" &&
36815      test "$tst_allow_stricmp" = "yes"; then
36816     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36817 $as_echo "yes" >&6; }
36818
36819 cat >>confdefs.h <<_ACEOF
36820 #define HAVE_STRICMP 1
36821 _ACEOF
36822
36823     ac_cv_func_stricmp="yes"
36824   else
36825     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36826 $as_echo "no" >&6; }
36827     ac_cv_func_stricmp="no"
36828   fi
36829
36830
36831     #
36832   tst_links_strncasecmp="unknown"
36833   tst_proto_strncasecmp="unknown"
36834   tst_compi_strncasecmp="unknown"
36835   tst_allow_strncasecmp="unknown"
36836   #
36837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
36838 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
36839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36840 /* end confdefs.h.  */
36841
36842
36843 #define strncasecmp innocuous_strncasecmp
36844 #ifdef __STDC__
36845 # include <limits.h>
36846 #else
36847 # include <assert.h>
36848 #endif
36849 #undef strncasecmp
36850 #ifdef __cplusplus
36851 extern "C"
36852 #endif
36853 char strncasecmp ();
36854 #if defined __stub_strncasecmp || defined __stub___strncasecmp
36855 choke me
36856 #endif
36857
36858 int main (void)
36859 {
36860 return strncasecmp ();
36861  ;
36862  return 0;
36863 }
36864
36865 _ACEOF
36866 if ac_fn_c_try_link "$LINENO"; then :
36867
36868     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36869 $as_echo "yes" >&6; }
36870     tst_links_strncasecmp="yes"
36871
36872 else
36873
36874     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36875 $as_echo "no" >&6; }
36876     tst_links_strncasecmp="no"
36877
36878 fi
36879 rm -f core conftest.err conftest.$ac_objext \
36880     conftest$ac_exeext conftest.$ac_ext
36881   #
36882   if test "$tst_links_strncasecmp" = "yes"; then
36883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
36884 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
36885     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36886 /* end confdefs.h.  */
36887
36888       $curl_includes_string
36889
36890 _ACEOF
36891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36892   $EGREP "strncasecmp" >/dev/null 2>&1; then :
36893
36894       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36895 $as_echo "yes" >&6; }
36896       tst_proto_strncasecmp="yes"
36897
36898 else
36899
36900       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36901 $as_echo "no" >&6; }
36902       tst_proto_strncasecmp="no"
36903
36904 fi
36905 rm -f conftest*
36906
36907   fi
36908   #
36909   if test "$tst_proto_strncasecmp" = "yes"; then
36910     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
36911 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
36912     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36913 /* end confdefs.h.  */
36914
36915
36916         $curl_includes_string
36917
36918 int main (void)
36919 {
36920
36921         if(0 != strncasecmp(0, 0, 0))
36922           return 1;
36923
36924  ;
36925  return 0;
36926 }
36927
36928 _ACEOF
36929 if ac_fn_c_try_compile "$LINENO"; then :
36930
36931       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36932 $as_echo "yes" >&6; }
36933       tst_compi_strncasecmp="yes"
36934
36935 else
36936
36937       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36938 $as_echo "no" >&6; }
36939       tst_compi_strncasecmp="no"
36940
36941 fi
36942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36943   fi
36944   #
36945   if test "$tst_compi_strncasecmp" = "yes"; then
36946     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
36947 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
36948     if test "x$curl_disallow_strncasecmp" != "xyes"; then
36949       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36950 $as_echo "yes" >&6; }
36951       tst_allow_strncasecmp="yes"
36952     else
36953       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36954 $as_echo "no" >&6; }
36955       tst_allow_strncasecmp="no"
36956     fi
36957   fi
36958   #
36959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
36960 $as_echo_n "checking if strncasecmp might be used... " >&6; }
36961   if test "$tst_links_strncasecmp" = "yes" &&
36962      test "$tst_proto_strncasecmp" = "yes" &&
36963      test "$tst_compi_strncasecmp" = "yes" &&
36964      test "$tst_allow_strncasecmp" = "yes"; then
36965     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36966 $as_echo "yes" >&6; }
36967
36968 cat >>confdefs.h <<_ACEOF
36969 #define HAVE_STRNCASECMP 1
36970 _ACEOF
36971
36972     ac_cv_func_strncasecmp="yes"
36973   else
36974     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36975 $as_echo "no" >&6; }
36976     ac_cv_func_strncasecmp="no"
36977   fi
36978
36979
36980     #
36981   tst_links_strncmpi="unknown"
36982   tst_proto_strncmpi="unknown"
36983   tst_compi_strncmpi="unknown"
36984   tst_allow_strncmpi="unknown"
36985   #
36986   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
36987 $as_echo_n "checking if strncmpi can be linked... " >&6; }
36988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36989 /* end confdefs.h.  */
36990
36991
36992 #define strncmpi innocuous_strncmpi
36993 #ifdef __STDC__
36994 # include <limits.h>
36995 #else
36996 # include <assert.h>
36997 #endif
36998 #undef strncmpi
36999 #ifdef __cplusplus
37000 extern "C"
37001 #endif
37002 char strncmpi ();
37003 #if defined __stub_strncmpi || defined __stub___strncmpi
37004 choke me
37005 #endif
37006
37007 int main (void)
37008 {
37009 return strncmpi ();
37010  ;
37011  return 0;
37012 }
37013
37014 _ACEOF
37015 if ac_fn_c_try_link "$LINENO"; then :
37016
37017     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37018 $as_echo "yes" >&6; }
37019     tst_links_strncmpi="yes"
37020
37021 else
37022
37023     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37024 $as_echo "no" >&6; }
37025     tst_links_strncmpi="no"
37026
37027 fi
37028 rm -f core conftest.err conftest.$ac_objext \
37029     conftest$ac_exeext conftest.$ac_ext
37030   #
37031   if test "$tst_links_strncmpi" = "yes"; then
37032     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
37033 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
37034     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37035 /* end confdefs.h.  */
37036
37037       $curl_includes_string
37038
37039 _ACEOF
37040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37041   $EGREP "strncmpi" >/dev/null 2>&1; then :
37042
37043       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37044 $as_echo "yes" >&6; }
37045       tst_proto_strncmpi="yes"
37046
37047 else
37048
37049       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37050 $as_echo "no" >&6; }
37051       tst_proto_strncmpi="no"
37052
37053 fi
37054 rm -f conftest*
37055
37056   fi
37057   #
37058   if test "$tst_proto_strncmpi" = "yes"; then
37059     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
37060 $as_echo_n "checking if strncmpi is compilable... " >&6; }
37061     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37062 /* end confdefs.h.  */
37063
37064
37065         $curl_includes_string
37066
37067 int main (void)
37068 {
37069
37070         if(0 != strncmpi(0, 0))
37071           return 1;
37072
37073  ;
37074  return 0;
37075 }
37076
37077 _ACEOF
37078 if ac_fn_c_try_compile "$LINENO"; then :
37079
37080       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37081 $as_echo "yes" >&6; }
37082       tst_compi_strncmpi="yes"
37083
37084 else
37085
37086       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37087 $as_echo "no" >&6; }
37088       tst_compi_strncmpi="no"
37089
37090 fi
37091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37092   fi
37093   #
37094   if test "$tst_compi_strncmpi" = "yes"; then
37095     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
37096 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
37097     if test "x$curl_disallow_strncmpi" != "xyes"; then
37098       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37099 $as_echo "yes" >&6; }
37100       tst_allow_strncmpi="yes"
37101     else
37102       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37103 $as_echo "no" >&6; }
37104       tst_allow_strncmpi="no"
37105     fi
37106   fi
37107   #
37108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
37109 $as_echo_n "checking if strncmpi might be used... " >&6; }
37110   if test "$tst_links_strncmpi" = "yes" &&
37111      test "$tst_proto_strncmpi" = "yes" &&
37112      test "$tst_compi_strncmpi" = "yes" &&
37113      test "$tst_allow_strncmpi" = "yes"; then
37114     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37115 $as_echo "yes" >&6; }
37116
37117 cat >>confdefs.h <<_ACEOF
37118 #define HAVE_STRNCMPI 1
37119 _ACEOF
37120
37121     ac_cv_func_strncmpi="yes"
37122   else
37123     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37124 $as_echo "no" >&6; }
37125     ac_cv_func_strncmpi="no"
37126   fi
37127
37128
37129     #
37130   tst_links_strnicmp="unknown"
37131   tst_proto_strnicmp="unknown"
37132   tst_compi_strnicmp="unknown"
37133   tst_allow_strnicmp="unknown"
37134   #
37135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
37136 $as_echo_n "checking if strnicmp can be linked... " >&6; }
37137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37138 /* end confdefs.h.  */
37139
37140
37141 #define strnicmp innocuous_strnicmp
37142 #ifdef __STDC__
37143 # include <limits.h>
37144 #else
37145 # include <assert.h>
37146 #endif
37147 #undef strnicmp
37148 #ifdef __cplusplus
37149 extern "C"
37150 #endif
37151 char strnicmp ();
37152 #if defined __stub_strnicmp || defined __stub___strnicmp
37153 choke me
37154 #endif
37155
37156 int main (void)
37157 {
37158 return strnicmp ();
37159  ;
37160  return 0;
37161 }
37162
37163 _ACEOF
37164 if ac_fn_c_try_link "$LINENO"; then :
37165
37166     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37167 $as_echo "yes" >&6; }
37168     tst_links_strnicmp="yes"
37169
37170 else
37171
37172     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37173 $as_echo "no" >&6; }
37174     tst_links_strnicmp="no"
37175
37176 fi
37177 rm -f core conftest.err conftest.$ac_objext \
37178     conftest$ac_exeext conftest.$ac_ext
37179   #
37180   if test "$tst_links_strnicmp" = "yes"; then
37181     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
37182 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
37183     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37184 /* end confdefs.h.  */
37185
37186       $curl_includes_string
37187
37188 _ACEOF
37189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37190   $EGREP "strnicmp" >/dev/null 2>&1; then :
37191
37192       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37193 $as_echo "yes" >&6; }
37194       tst_proto_strnicmp="yes"
37195
37196 else
37197
37198       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37199 $as_echo "no" >&6; }
37200       tst_proto_strnicmp="no"
37201
37202 fi
37203 rm -f conftest*
37204
37205   fi
37206   #
37207   if test "$tst_proto_strnicmp" = "yes"; then
37208     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
37209 $as_echo_n "checking if strnicmp is compilable... " >&6; }
37210     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37211 /* end confdefs.h.  */
37212
37213
37214         $curl_includes_string
37215
37216 int main (void)
37217 {
37218
37219         if(0 != strnicmp(0, 0))
37220           return 1;
37221
37222  ;
37223  return 0;
37224 }
37225
37226 _ACEOF
37227 if ac_fn_c_try_compile "$LINENO"; then :
37228
37229       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37230 $as_echo "yes" >&6; }
37231       tst_compi_strnicmp="yes"
37232
37233 else
37234
37235       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37236 $as_echo "no" >&6; }
37237       tst_compi_strnicmp="no"
37238
37239 fi
37240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37241   fi
37242   #
37243   if test "$tst_compi_strnicmp" = "yes"; then
37244     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
37245 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
37246     if test "x$curl_disallow_strnicmp" != "xyes"; then
37247       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37248 $as_echo "yes" >&6; }
37249       tst_allow_strnicmp="yes"
37250     else
37251       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37252 $as_echo "no" >&6; }
37253       tst_allow_strnicmp="no"
37254     fi
37255   fi
37256   #
37257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
37258 $as_echo_n "checking if strnicmp might be used... " >&6; }
37259   if test "$tst_links_strnicmp" = "yes" &&
37260      test "$tst_proto_strnicmp" = "yes" &&
37261      test "$tst_compi_strnicmp" = "yes" &&
37262      test "$tst_allow_strnicmp" = "yes"; then
37263     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37264 $as_echo "yes" >&6; }
37265
37266 cat >>confdefs.h <<_ACEOF
37267 #define HAVE_STRNICMP 1
37268 _ACEOF
37269
37270     ac_cv_func_strnicmp="yes"
37271   else
37272     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37273 $as_echo "no" >&6; }
37274     ac_cv_func_strnicmp="no"
37275   fi
37276
37277
37278     #
37279   tst_links_strstr="unknown"
37280   tst_proto_strstr="unknown"
37281   tst_compi_strstr="unknown"
37282   tst_allow_strstr="unknown"
37283   #
37284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
37285 $as_echo_n "checking if strstr can be linked... " >&6; }
37286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37287 /* end confdefs.h.  */
37288
37289
37290 #define strstr innocuous_strstr
37291 #ifdef __STDC__
37292 # include <limits.h>
37293 #else
37294 # include <assert.h>
37295 #endif
37296 #undef strstr
37297 #ifdef __cplusplus
37298 extern "C"
37299 #endif
37300 char strstr ();
37301 #if defined __stub_strstr || defined __stub___strstr
37302 choke me
37303 #endif
37304
37305 int main (void)
37306 {
37307 return strstr ();
37308  ;
37309  return 0;
37310 }
37311
37312 _ACEOF
37313 if ac_fn_c_try_link "$LINENO"; then :
37314
37315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37316 $as_echo "yes" >&6; }
37317     tst_links_strstr="yes"
37318
37319 else
37320
37321     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37322 $as_echo "no" >&6; }
37323     tst_links_strstr="no"
37324
37325 fi
37326 rm -f core conftest.err conftest.$ac_objext \
37327     conftest$ac_exeext conftest.$ac_ext
37328   #
37329   if test "$tst_links_strstr" = "yes"; then
37330     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
37331 $as_echo_n "checking if strstr is prototyped... " >&6; }
37332     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37333 /* end confdefs.h.  */
37334
37335       $curl_includes_string
37336
37337 _ACEOF
37338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37339   $EGREP "strstr" >/dev/null 2>&1; then :
37340
37341       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37342 $as_echo "yes" >&6; }
37343       tst_proto_strstr="yes"
37344
37345 else
37346
37347       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37348 $as_echo "no" >&6; }
37349       tst_proto_strstr="no"
37350
37351 fi
37352 rm -f conftest*
37353
37354   fi
37355   #
37356   if test "$tst_proto_strstr" = "yes"; then
37357     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
37358 $as_echo_n "checking if strstr is compilable... " >&6; }
37359     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37360 /* end confdefs.h.  */
37361
37362
37363         $curl_includes_string
37364
37365 int main (void)
37366 {
37367
37368         if(0 != strstr(0, 0))
37369           return 1;
37370
37371  ;
37372  return 0;
37373 }
37374
37375 _ACEOF
37376 if ac_fn_c_try_compile "$LINENO"; then :
37377
37378       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37379 $as_echo "yes" >&6; }
37380       tst_compi_strstr="yes"
37381
37382 else
37383
37384       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37385 $as_echo "no" >&6; }
37386       tst_compi_strstr="no"
37387
37388 fi
37389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37390   fi
37391   #
37392   if test "$tst_compi_strstr" = "yes"; then
37393     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
37394 $as_echo_n "checking if strstr usage allowed... " >&6; }
37395     if test "x$curl_disallow_strstr" != "xyes"; then
37396       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37397 $as_echo "yes" >&6; }
37398       tst_allow_strstr="yes"
37399     else
37400       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37401 $as_echo "no" >&6; }
37402       tst_allow_strstr="no"
37403     fi
37404   fi
37405   #
37406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
37407 $as_echo_n "checking if strstr might be used... " >&6; }
37408   if test "$tst_links_strstr" = "yes" &&
37409      test "$tst_proto_strstr" = "yes" &&
37410      test "$tst_compi_strstr" = "yes" &&
37411      test "$tst_allow_strstr" = "yes"; then
37412     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37413 $as_echo "yes" >&6; }
37414
37415 cat >>confdefs.h <<_ACEOF
37416 #define HAVE_STRSTR 1
37417 _ACEOF
37418
37419     ac_cv_func_strstr="yes"
37420   else
37421     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37422 $as_echo "no" >&6; }
37423     ac_cv_func_strstr="no"
37424   fi
37425
37426
37427     #
37428   tst_links_strtok_r="unknown"
37429   tst_proto_strtok_r="unknown"
37430   tst_compi_strtok_r="unknown"
37431   tst_allow_strtok_r="unknown"
37432   #
37433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
37434 $as_echo_n "checking if strtok_r can be linked... " >&6; }
37435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37436 /* end confdefs.h.  */
37437
37438
37439 #define strtok_r innocuous_strtok_r
37440 #ifdef __STDC__
37441 # include <limits.h>
37442 #else
37443 # include <assert.h>
37444 #endif
37445 #undef strtok_r
37446 #ifdef __cplusplus
37447 extern "C"
37448 #endif
37449 char strtok_r ();
37450 #if defined __stub_strtok_r || defined __stub___strtok_r
37451 choke me
37452 #endif
37453
37454 int main (void)
37455 {
37456 return strtok_r ();
37457  ;
37458  return 0;
37459 }
37460
37461 _ACEOF
37462 if ac_fn_c_try_link "$LINENO"; then :
37463
37464     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37465 $as_echo "yes" >&6; }
37466     tst_links_strtok_r="yes"
37467
37468 else
37469
37470     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37471 $as_echo "no" >&6; }
37472     tst_links_strtok_r="no"
37473
37474 fi
37475 rm -f core conftest.err conftest.$ac_objext \
37476     conftest$ac_exeext conftest.$ac_ext
37477   #
37478   if test "$tst_links_strtok_r" = "yes"; then
37479     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
37480 $as_echo_n "checking if strtok_r is prototyped... " >&6; }
37481     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37482 /* end confdefs.h.  */
37483
37484       $curl_includes_string
37485
37486 _ACEOF
37487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37488   $EGREP "strtok_r" >/dev/null 2>&1; then :
37489
37490       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37491 $as_echo "yes" >&6; }
37492       tst_proto_strtok_r="yes"
37493
37494 else
37495
37496       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37497 $as_echo "no" >&6; }
37498       tst_proto_strtok_r="no"
37499
37500 fi
37501 rm -f conftest*
37502
37503   fi
37504   #
37505   if test "$tst_proto_strtok_r" = "yes"; then
37506     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
37507 $as_echo_n "checking if strtok_r is compilable... " >&6; }
37508     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37509 /* end confdefs.h.  */
37510
37511
37512         $curl_includes_string
37513
37514 int main (void)
37515 {
37516
37517         if(0 != strtok_r(0, 0, 0))
37518           return 1;
37519
37520  ;
37521  return 0;
37522 }
37523
37524 _ACEOF
37525 if ac_fn_c_try_compile "$LINENO"; then :
37526
37527       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37528 $as_echo "yes" >&6; }
37529       tst_compi_strtok_r="yes"
37530
37531 else
37532
37533       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37534 $as_echo "no" >&6; }
37535       tst_compi_strtok_r="no"
37536
37537 fi
37538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37539   fi
37540   #
37541   if test "$tst_compi_strtok_r" = "yes"; then
37542     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
37543 $as_echo_n "checking if strtok_r usage allowed... " >&6; }
37544     if test "x$curl_disallow_strtok_r" != "xyes"; then
37545       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37546 $as_echo "yes" >&6; }
37547       tst_allow_strtok_r="yes"
37548     else
37549       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37550 $as_echo "no" >&6; }
37551       tst_allow_strtok_r="no"
37552     fi
37553   fi
37554   #
37555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
37556 $as_echo_n "checking if strtok_r might be used... " >&6; }
37557   if test "$tst_links_strtok_r" = "yes" &&
37558      test "$tst_proto_strtok_r" = "yes" &&
37559      test "$tst_compi_strtok_r" = "yes" &&
37560      test "$tst_allow_strtok_r" = "yes"; then
37561     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37562 $as_echo "yes" >&6; }
37563
37564 cat >>confdefs.h <<_ACEOF
37565 #define HAVE_STRTOK_R 1
37566 _ACEOF
37567
37568     ac_cv_func_strtok_r="yes"
37569   else
37570     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37571 $as_echo "no" >&6; }
37572     ac_cv_func_strtok_r="no"
37573   fi
37574
37575
37576     #
37577   tst_links_strtoll="unknown"
37578   tst_proto_strtoll="unknown"
37579   tst_compi_strtoll="unknown"
37580   tst_allow_strtoll="unknown"
37581   #
37582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
37583 $as_echo_n "checking if strtoll can be linked... " >&6; }
37584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37585 /* end confdefs.h.  */
37586
37587
37588 #define strtoll innocuous_strtoll
37589 #ifdef __STDC__
37590 # include <limits.h>
37591 #else
37592 # include <assert.h>
37593 #endif
37594 #undef strtoll
37595 #ifdef __cplusplus
37596 extern "C"
37597 #endif
37598 char strtoll ();
37599 #if defined __stub_strtoll || defined __stub___strtoll
37600 choke me
37601 #endif
37602
37603 int main (void)
37604 {
37605 return strtoll ();
37606  ;
37607  return 0;
37608 }
37609
37610 _ACEOF
37611 if ac_fn_c_try_link "$LINENO"; then :
37612
37613     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37614 $as_echo "yes" >&6; }
37615     tst_links_strtoll="yes"
37616
37617 else
37618
37619     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37620 $as_echo "no" >&6; }
37621     tst_links_strtoll="no"
37622
37623 fi
37624 rm -f core conftest.err conftest.$ac_objext \
37625     conftest$ac_exeext conftest.$ac_ext
37626   #
37627   if test "$tst_links_strtoll" = "yes"; then
37628     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
37629 $as_echo_n "checking if strtoll is prototyped... " >&6; }
37630     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37631 /* end confdefs.h.  */
37632
37633       $curl_includes_stdlib
37634
37635 _ACEOF
37636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37637   $EGREP "strtoll" >/dev/null 2>&1; then :
37638
37639       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37640 $as_echo "yes" >&6; }
37641       tst_proto_strtoll="yes"
37642
37643 else
37644
37645       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37646 $as_echo "no" >&6; }
37647       tst_proto_strtoll="no"
37648
37649 fi
37650 rm -f conftest*
37651
37652   fi
37653   #
37654   if test "$tst_proto_strtoll" = "yes"; then
37655     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
37656 $as_echo_n "checking if strtoll is compilable... " >&6; }
37657     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37658 /* end confdefs.h.  */
37659
37660
37661         $curl_includes_stdlib
37662
37663 int main (void)
37664 {
37665
37666         if(0 != strtoll(0, 0, 0))
37667           return 1;
37668
37669  ;
37670  return 0;
37671 }
37672
37673 _ACEOF
37674 if ac_fn_c_try_compile "$LINENO"; then :
37675
37676       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37677 $as_echo "yes" >&6; }
37678       tst_compi_strtoll="yes"
37679
37680 else
37681
37682       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37683 $as_echo "no" >&6; }
37684       tst_compi_strtoll="no"
37685
37686 fi
37687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37688   fi
37689   #
37690   if test "$tst_compi_strtoll" = "yes"; then
37691     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
37692 $as_echo_n "checking if strtoll usage allowed... " >&6; }
37693     if test "x$curl_disallow_strtoll" != "xyes"; then
37694       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37695 $as_echo "yes" >&6; }
37696       tst_allow_strtoll="yes"
37697     else
37698       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37699 $as_echo "no" >&6; }
37700       tst_allow_strtoll="no"
37701     fi
37702   fi
37703   #
37704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
37705 $as_echo_n "checking if strtoll might be used... " >&6; }
37706   if test "$tst_links_strtoll" = "yes" &&
37707      test "$tst_proto_strtoll" = "yes" &&
37708      test "$tst_compi_strtoll" = "yes" &&
37709      test "$tst_allow_strtoll" = "yes"; then
37710     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37711 $as_echo "yes" >&6; }
37712
37713 cat >>confdefs.h <<_ACEOF
37714 #define HAVE_STRTOLL 1
37715 _ACEOF
37716
37717     ac_cv_func_strtoll="yes"
37718   else
37719     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37720 $as_echo "no" >&6; }
37721     ac_cv_func_strtoll="no"
37722   fi
37723
37724
37725 curl_includes_sys_uio="\
37726 /* includes start */
37727 #ifdef HAVE_SYS_TYPES_H
37728 #  include <sys/types.h>
37729 #endif
37730 #ifdef HAVE_SYS_UIO_H
37731 #  include <sys/uio.h>
37732 #endif
37733 /* includes end */"
37734   for ac_header in sys/types.h sys/uio.h
37735 do :
37736   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37737 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
37738 "
37739 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37740   cat >>confdefs.h <<_ACEOF
37741 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37742 _ACEOF
37743
37744 fi
37745
37746 done
37747
37748
37749
37750     #
37751   tst_links_writev="unknown"
37752   tst_proto_writev="unknown"
37753   tst_compi_writev="unknown"
37754   tst_allow_writev="unknown"
37755   #
37756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
37757 $as_echo_n "checking if writev can be linked... " >&6; }
37758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37759 /* end confdefs.h.  */
37760
37761
37762 #define writev innocuous_writev
37763 #ifdef __STDC__
37764 # include <limits.h>
37765 #else
37766 # include <assert.h>
37767 #endif
37768 #undef writev
37769 #ifdef __cplusplus
37770 extern "C"
37771 #endif
37772 char writev ();
37773 #if defined __stub_writev || defined __stub___writev
37774 choke me
37775 #endif
37776
37777 int main (void)
37778 {
37779 return writev ();
37780  ;
37781  return 0;
37782 }
37783
37784 _ACEOF
37785 if ac_fn_c_try_link "$LINENO"; then :
37786
37787     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37788 $as_echo "yes" >&6; }
37789     tst_links_writev="yes"
37790
37791 else
37792
37793     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37794 $as_echo "no" >&6; }
37795     tst_links_writev="no"
37796
37797 fi
37798 rm -f core conftest.err conftest.$ac_objext \
37799     conftest$ac_exeext conftest.$ac_ext
37800   #
37801   if test "$tst_links_writev" = "yes"; then
37802     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
37803 $as_echo_n "checking if writev is prototyped... " >&6; }
37804     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37805 /* end confdefs.h.  */
37806
37807       $curl_includes_sys_uio
37808
37809 _ACEOF
37810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37811   $EGREP "writev" >/dev/null 2>&1; then :
37812
37813       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37814 $as_echo "yes" >&6; }
37815       tst_proto_writev="yes"
37816
37817 else
37818
37819       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37820 $as_echo "no" >&6; }
37821       tst_proto_writev="no"
37822
37823 fi
37824 rm -f conftest*
37825
37826   fi
37827   #
37828   if test "$tst_proto_writev" = "yes"; then
37829     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
37830 $as_echo_n "checking if writev is compilable... " >&6; }
37831     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37832 /* end confdefs.h.  */
37833
37834
37835         $curl_includes_sys_uio
37836
37837 int main (void)
37838 {
37839
37840         if(0 != writev(0, 0, 0))
37841           return 1;
37842
37843  ;
37844  return 0;
37845 }
37846
37847 _ACEOF
37848 if ac_fn_c_try_compile "$LINENO"; then :
37849
37850       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37851 $as_echo "yes" >&6; }
37852       tst_compi_writev="yes"
37853
37854 else
37855
37856       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37857 $as_echo "no" >&6; }
37858       tst_compi_writev="no"
37859
37860 fi
37861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37862   fi
37863   #
37864   if test "$tst_compi_writev" = "yes"; then
37865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
37866 $as_echo_n "checking if writev usage allowed... " >&6; }
37867     if test "x$curl_disallow_writev" != "xyes"; then
37868       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37869 $as_echo "yes" >&6; }
37870       tst_allow_writev="yes"
37871     else
37872       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37873 $as_echo "no" >&6; }
37874       tst_allow_writev="no"
37875     fi
37876   fi
37877   #
37878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
37879 $as_echo_n "checking if writev might be used... " >&6; }
37880   if test "$tst_links_writev" = "yes" &&
37881      test "$tst_proto_writev" = "yes" &&
37882      test "$tst_compi_writev" = "yes" &&
37883      test "$tst_allow_writev" = "yes"; then
37884     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37885 $as_echo "yes" >&6; }
37886
37887 cat >>confdefs.h <<_ACEOF
37888 #define HAVE_WRITEV 1
37889 _ACEOF
37890
37891     ac_cv_func_writev="yes"
37892   else
37893     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37894 $as_echo "no" >&6; }
37895     ac_cv_func_writev="no"
37896   fi
37897
37898
37899 case $host in
37900   *msdosdjgpp)
37901      ac_cv_func_pipe=no
37902      skipcheck_pipe=yes
37903      { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
37904 $as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
37905     ;;
37906 esac
37907
37908 for ac_func in fork \
37909   geteuid \
37910   getpass_r \
37911   getppid \
37912   getprotobyname \
37913   getpwuid \
37914   getpwuid_r \
37915   getrlimit \
37916   gettimeofday \
37917   if_nametoindex \
37918   inet_addr \
37919   perror \
37920   pipe \
37921   setlocale \
37922   setmode \
37923   setrlimit \
37924   uname \
37925   utime
37926
37927 do :
37928   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37929 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
37930 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
37931   cat >>confdefs.h <<_ACEOF
37932 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37933 _ACEOF
37934
37935
37936 else
37937
37938   func="$ac_func"
37939   eval skipcheck=\$skipcheck_$func
37940   if test "x$skipcheck" != "xyes"; then
37941     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
37942 $as_echo_n "checking deeper for $func... " >&6; }
37943     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37944 /* end confdefs.h.  */
37945
37946
37947
37948 int main (void)
37949 {
37950
37951         $func ();
37952
37953  ;
37954  return 0;
37955 }
37956
37957 _ACEOF
37958 if ac_fn_c_try_link "$LINENO"; then :
37959
37960       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37961 $as_echo "yes" >&6; }
37962       eval "ac_cv_func_$func=yes"
37963
37964 cat >>confdefs.h <<_ACEOF
37965 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
37966 _ACEOF
37967
37968
37969 else
37970
37971       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
37972 $as_echo "but still no" >&6; }
37973
37974 fi
37975 rm -f core conftest.err conftest.$ac_objext \
37976     conftest$ac_exeext conftest.$ac_ext
37977   fi
37978
37979 fi
37980 done
37981
37982
37983
37984     for ac_header in sys/types.h sys/socket.h netdb.h
37985 do :
37986   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37987 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
37988 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37989   cat >>confdefs.h <<_ACEOF
37990 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37991 _ACEOF
37992
37993 fi
37994
37995 done
37996
37997   #
37998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
37999 $as_echo_n "checking for getnameinfo... " >&6; }
38000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38001 /* end confdefs.h.  */
38002
38003
38004 #define getnameinfo innocuous_getnameinfo
38005 #ifdef __STDC__
38006 # include <limits.h>
38007 #else
38008 # include <assert.h>
38009 #endif
38010 #undef getnameinfo
38011 #ifdef __cplusplus
38012 extern "C"
38013 #endif
38014 char getnameinfo ();
38015 #if defined __stub_getnameinfo || defined __stub___getnameinfo
38016 choke me
38017 #endif
38018
38019 int main (void)
38020 {
38021 return getnameinfo ();
38022  ;
38023  return 0;
38024 }
38025
38026 _ACEOF
38027 if ac_fn_c_try_link "$LINENO"; then :
38028
38029     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38030 $as_echo "yes" >&6; }
38031     curl_cv_getnameinfo="yes"
38032
38033 else
38034
38035     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38036 $as_echo "no" >&6; }
38037     curl_cv_getnameinfo="no"
38038
38039 fi
38040 rm -f core conftest.err conftest.$ac_objext \
38041     conftest$ac_exeext conftest.$ac_ext
38042   #
38043   if test "$curl_cv_getnameinfo" != "yes"; then
38044     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
38045 $as_echo_n "checking deeper for getnameinfo... " >&6; }
38046     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38047 /* end confdefs.h.  */
38048
38049
38050
38051 int main (void)
38052 {
38053
38054         getnameinfo();
38055
38056  ;
38057  return 0;
38058 }
38059
38060 _ACEOF
38061 if ac_fn_c_try_link "$LINENO"; then :
38062
38063       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38064 $as_echo "yes" >&6; }
38065       curl_cv_getnameinfo="yes"
38066
38067 else
38068
38069       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
38070 $as_echo "but still no" >&6; }
38071       curl_cv_getnameinfo="no"
38072
38073 fi
38074 rm -f core conftest.err conftest.$ac_objext \
38075     conftest$ac_exeext conftest.$ac_ext
38076   fi
38077   #
38078   if test "$curl_cv_getnameinfo" != "yes"; then
38079     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
38080 $as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
38081     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38082 /* end confdefs.h.  */
38083
38084
38085 #undef inline
38086 #ifdef HAVE_WINDOWS_H
38087 #ifndef WIN32_LEAN_AND_MEAN
38088 #define WIN32_LEAN_AND_MEAN
38089 #endif
38090 #include <windows.h>
38091 #ifdef HAVE_WINSOCK2_H
38092 #include <winsock2.h>
38093 #ifdef HAVE_WS2TCPIP_H
38094 #include <ws2tcpip.h>
38095 #endif
38096 #endif
38097 #else
38098 #ifdef HAVE_SYS_TYPES_H
38099 #include <sys/types.h>
38100 #endif
38101 #ifdef HAVE_SYS_SOCKET_H
38102 #include <sys/socket.h>
38103 #endif
38104 #ifdef HAVE_NETDB_H
38105 #include <netdb.h>
38106 #endif
38107 #endif
38108
38109 int main (void)
38110 {
38111
38112         getnameinfo(0, 0, 0, 0, 0, 0, 0);
38113
38114  ;
38115  return 0;
38116 }
38117
38118 _ACEOF
38119 if ac_fn_c_try_link "$LINENO"; then :
38120
38121       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38122 $as_echo "yes" >&6; }
38123       curl_cv_getnameinfo="yes"
38124
38125 else
38126
38127       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
38128 $as_echo "but still no" >&6; }
38129       curl_cv_getnameinfo="no"
38130
38131 fi
38132 rm -f core conftest.err conftest.$ac_objext \
38133     conftest$ac_exeext conftest.$ac_ext
38134   fi
38135   #
38136   if test "$curl_cv_getnameinfo" = "yes"; then
38137     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
38138 $as_echo_n "checking types of arguments for getnameinfo... " >&6; }
38139 if ${curl_cv_func_getnameinfo_args+:} false; then :
38140   $as_echo_n "(cached) " >&6
38141 else
38142
38143       curl_cv_func_getnameinfo_args="unknown"
38144       for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
38145         for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
38146           for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
38147             for gni_arg7 in 'int' 'unsigned int'; do
38148               if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
38149                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38150 /* end confdefs.h.  */
38151
38152
38153 #undef inline
38154 #ifdef HAVE_WINDOWS_H
38155 #ifndef WIN32_LEAN_AND_MEAN
38156 #define WIN32_LEAN_AND_MEAN
38157 #endif
38158 #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
38159 #undef _WIN32_WINNT
38160 #define _WIN32_WINNT 0x0501
38161 #endif
38162 #include <windows.h>
38163 #ifdef HAVE_WINSOCK2_H
38164 #include <winsock2.h>
38165 #ifdef HAVE_WS2TCPIP_H
38166 #include <ws2tcpip.h>
38167 #endif
38168 #endif
38169 #define GNICALLCONV WSAAPI
38170 #else
38171 #ifdef HAVE_SYS_TYPES_H
38172 #include <sys/types.h>
38173 #endif
38174 #ifdef HAVE_SYS_SOCKET_H
38175 #include <sys/socket.h>
38176 #endif
38177 #ifdef HAVE_NETDB_H
38178 #include <netdb.h>
38179 #endif
38180 #define GNICALLCONV
38181 #endif
38182                     extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
38183                                            char *, $gni_arg46,
38184                                            char *, $gni_arg46,
38185                                            $gni_arg7);
38186
38187 int main (void)
38188 {
38189
38190                     $gni_arg2 salen=0;
38191                     $gni_arg46 hostlen=0;
38192                     $gni_arg46 servlen=0;
38193                     $gni_arg7 flags=0;
38194                     int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
38195
38196  ;
38197  return 0;
38198 }
38199
38200 _ACEOF
38201 if ac_fn_c_try_compile "$LINENO"; then :
38202
38203                   curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
38204
38205 fi
38206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38207               fi
38208             done
38209           done
38210         done
38211       done
38212
38213 fi
38214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
38215 $as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
38216     if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
38217       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
38218 $as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
38219       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
38220 $as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
38221     else
38222       gni_prev_IFS=$IFS; IFS=','
38223       set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
38224       IFS=$gni_prev_IFS
38225       shift
38226       #
38227       gni_qual_type_arg1=$1
38228       #
38229
38230 cat >>confdefs.h <<_ACEOF
38231 #define GETNAMEINFO_TYPE_ARG2 $2
38232 _ACEOF
38233
38234
38235 cat >>confdefs.h <<_ACEOF
38236 #define GETNAMEINFO_TYPE_ARG46 $3
38237 _ACEOF
38238
38239
38240 cat >>confdefs.h <<_ACEOF
38241 #define GETNAMEINFO_TYPE_ARG7 $4
38242 _ACEOF
38243
38244       #
38245       prev_sh_opts=$-
38246       #
38247       case $prev_sh_opts in
38248         *f*)
38249           ;;
38250         *)
38251           set -f
38252           ;;
38253       esac
38254       #
38255       case "$gni_qual_type_arg1" in
38256         const*)
38257           gni_qual_arg1=const
38258           gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
38259         ;;
38260         *)
38261           gni_qual_arg1=
38262           gni_type_arg1=$gni_qual_type_arg1
38263         ;;
38264       esac
38265       #
38266
38267 cat >>confdefs.h <<_ACEOF
38268 #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
38269 _ACEOF
38270
38271
38272 cat >>confdefs.h <<_ACEOF
38273 #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
38274 _ACEOF
38275
38276       #
38277       case $prev_sh_opts in
38278         *f*)
38279           ;;
38280         *)
38281           set +f
38282           ;;
38283       esac
38284       #
38285
38286 cat >>confdefs.h <<_ACEOF
38287 #define HAVE_GETNAMEINFO 1
38288 _ACEOF
38289
38290       ac_cv_func_getnameinfo="yes"
38291     fi
38292   fi
38293
38294
38295 if test "$ipv6" = "yes"; then
38296   if test "$ac_cv_func_getaddrinfo" = "yes"; then
38297
38298 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
38299
38300     IPV6_ENABLED=1
38301
38302   fi
38303
38304       for ac_header in stdio.h sys/types.h sys/socket.h \
38305                    netdb.h netinet/in.h arpa/inet.h
38306 do :
38307   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38308 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
38309 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38310   cat >>confdefs.h <<_ACEOF
38311 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38312 _ACEOF
38313
38314 fi
38315
38316 done
38317
38318   #
38319   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working NI_WITHSCOPEID" >&5
38320 $as_echo_n "checking for working NI_WITHSCOPEID... " >&6; }
38321 if ${ac_cv_working_ni_withscopeid+:} false; then :
38322   $as_echo_n "(cached) " >&6
38323 else
38324
38325     if test "$cross_compiling" = yes; then :
38326
38327       # Program is not run when cross-compiling. So we assume
38328       # NI_WITHSCOPEID will work if we are able to compile it.
38329       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38330 /* end confdefs.h.  */
38331
38332
38333 #include <sys/types.h>
38334 #include <sys/socket.h>
38335 #include <netdb.h>
38336
38337 int main (void)
38338 {
38339
38340           unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
38341
38342  ;
38343  return 0;
38344 }
38345
38346 _ACEOF
38347 if ac_fn_c_try_compile "$LINENO"; then :
38348
38349         ac_cv_working_ni_withscopeid="yes"
38350
38351 else
38352
38353         ac_cv_working_ni_withscopeid="no"
38354
38355 fi
38356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE
38357
38358 else
38359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38360 /* end confdefs.h.  */
38361
38362
38363 #ifdef HAVE_STDLIB_H
38364 #include <stdlib.h>
38365 #endif
38366 #ifdef HAVE_STDIO_H
38367 #include <stdio.h>
38368 #endif
38369 #ifdef HAVE_SYS_TYPES_H
38370 #include <sys/types.h>
38371 #endif
38372 #ifdef HAVE_SYS_SOCKET_H
38373 #include <sys/socket.h>
38374 #endif
38375 #ifdef HAVE_NETDB_H
38376 #include <netdb.h>
38377 #endif
38378 #ifdef HAVE_NETINET_IN_H
38379 #include <netinet/in.h>
38380 #endif
38381 #ifdef HAVE_ARPA_INET_H
38382 #include <arpa/inet.h>
38383 #endif
38384
38385 int main (void)
38386 {
38387
38388 #if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
38389 #ifdef HAVE_STRUCT_SOCKADDR_STORAGE
38390         struct sockaddr_storage sa;
38391 #else
38392         unsigned char sa[256];
38393 #endif
38394         char hostbuf[NI_MAXHOST];
38395         int rc;
38396         GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa);
38397         GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf);
38398         GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
38399         int fd = socket(AF_INET6, SOCK_STREAM, 0);
38400         if(fd < 0) {
38401           perror("socket()");
38402           return 1; /* Error creating socket */
38403         }
38404         rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
38405         if(rc) {
38406           perror("getsockname()");
38407           return 2; /* Error retrieving socket name */
38408         }
38409         rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
38410         if(rc) {
38411           printf("rc = %s\n", gai_strerror(rc));
38412           return 3; /* Error translating socket address */
38413         }
38414         return 0; /* Ok, NI_WITHSCOPEID works */
38415 #else
38416         return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
38417 #endif
38418
38419  ;
38420  return 0;
38421 } # AC-LANG-PROGRAM
38422
38423 _ACEOF
38424 if ac_fn_c_try_run "$LINENO"; then :
38425
38426       # Exit code == 0. Program worked.
38427       ac_cv_working_ni_withscopeid="yes"
38428
38429 else
38430
38431       # Exit code != 0. Program failed.
38432       ac_cv_working_ni_withscopeid="no"
38433
38434 fi
38435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38436   conftest.$ac_objext conftest.beam conftest.$ac_ext
38437 fi
38438  # AC-RUN-IFELSE
38439
38440 fi
38441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_ni_withscopeid" >&5
38442 $as_echo "$ac_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK
38443   case "$ac_cv_working_ni_withscopeid" in
38444     yes)
38445
38446 $as_echo "#define HAVE_NI_WITHSCOPEID 1" >>confdefs.h
38447
38448       ;;
38449   esac
38450
38451 fi
38452
38453
38454             #
38455   tst_method="unknown"
38456
38457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
38458 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
38459   if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then
38460     tst_method="fcntl O_NONBLOCK"
38461   elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then
38462     tst_method="ioctl FIONBIO"
38463   elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then
38464     tst_method="ioctlsocket FIONBIO"
38465   elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
38466     tst_method="IoctlSocket FIONBIO"
38467   elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then
38468     tst_method="setsockopt SO_NONBLOCK"
38469   fi
38470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
38471 $as_echo "$tst_method" >&6; }
38472   if test "$tst_method" = "unknown"; then
38473     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
38474 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
38475   fi
38476
38477
38478
38479 # Extract the first word of "perl", so it can be a program name with args.
38480 set dummy perl; ac_word=$2
38481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38482 $as_echo_n "checking for $ac_word... " >&6; }
38483 if ${ac_cv_path_PERL+:} false; then :
38484   $as_echo_n "(cached) " >&6
38485 else
38486   case $PERL in
38487   [\\/]* | ?:[\\/]*)
38488   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
38489   ;;
38490   *)
38491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38492 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
38493 for as_dir in $as_dummy
38494 do
38495   IFS=$as_save_IFS
38496   test -z "$as_dir" && as_dir=.
38497     for ac_exec_ext in '' $ac_executable_extensions; do
38498   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38499     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
38500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38501     break 2
38502   fi
38503 done
38504   done
38505 IFS=$as_save_IFS
38506
38507   ;;
38508 esac
38509 fi
38510 PERL=$ac_cv_path_PERL
38511 if test -n "$PERL"; then
38512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
38513 $as_echo "$PERL" >&6; }
38514 else
38515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38516 $as_echo "no" >&6; }
38517 fi
38518
38519
38520
38521
38522 for ac_prog in gnroff nroff
38523 do
38524   # Extract the first word of "$ac_prog", so it can be a program name with args.
38525 set dummy $ac_prog; ac_word=$2
38526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38527 $as_echo_n "checking for $ac_word... " >&6; }
38528 if ${ac_cv_path_NROFF+:} false; then :
38529   $as_echo_n "(cached) " >&6
38530 else
38531   case $NROFF in
38532   [\\/]* | ?:[\\/]*)
38533   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
38534   ;;
38535   *)
38536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38537 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
38538 for as_dir in $as_dummy
38539 do
38540   IFS=$as_save_IFS
38541   test -z "$as_dir" && as_dir=.
38542     for ac_exec_ext in '' $ac_executable_extensions; do
38543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38544     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
38545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38546     break 2
38547   fi
38548 done
38549   done
38550 IFS=$as_save_IFS
38551
38552   ;;
38553 esac
38554 fi
38555 NROFF=$ac_cv_path_NROFF
38556 if test -n "$NROFF"; then
38557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
38558 $as_echo "$NROFF" >&6; }
38559 else
38560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38561 $as_echo "no" >&6; }
38562 fi
38563
38564
38565   test -n "$NROFF" && break
38566 done
38567
38568
38569
38570 if test -n "$NROFF"; then
38571
38572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
38573 $as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
38574   MANOPT="-man"
38575   mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
38576   if test -z "$mancheck"; then
38577     MANOPT="-mandoc"
38578    mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
38579     if test -z "$mancheck"; then
38580       MANOPT=""
38581       { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
38582 $as_echo "failed" >&6; }
38583       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
38584 $as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
38585     else
38586       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
38587 $as_echo "$MANOPT" >&6; }
38588     fi
38589   else
38590     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
38591 $as_echo "$MANOPT" >&6; }
38592   fi
38593
38594 fi
38595
38596 if test -z "$MANOPT"
38597 then
38598       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
38599 $as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
38600   USE_MANUAL="no";
38601 fi
38602
38603
38604 if test "$USE_MANUAL" = "1"; then
38605
38606 $as_echo "#define USE_MANUAL 1" >>confdefs.h
38607
38608   curl_manual_msg="enabled"
38609 fi
38610
38611  if test x"$USE_MANUAL" = x1; then
38612   USE_MANUAL_TRUE=
38613   USE_MANUAL_FALSE='#'
38614 else
38615   USE_MANUAL_TRUE='#'
38616   USE_MANUAL_FALSE=
38617 fi
38618
38619
38620
38621
38622
38623   #
38624   if test "$want_ares" = "yes"; then
38625         clean_CPPFLAGS="$CPPFLAGS"
38626     clean_LDFLAGS="$LDFLAGS"
38627     clean_LIBS="$LIBS"
38628     embedded_ares="unknown"
38629     configure_runpath=`pwd`
38630     embedded_ares_builddir="$configure_runpath/ares"
38631     if test -n "$want_ares_path"; then
38632             ares_CPPFLAGS="-I$want_ares_path/include"
38633       ares_LDFLAGS="-L$want_ares_path/lib"
38634       ares_LIBS="-lcares"
38635     else
38636             if test -d "$srcdir/ares"; then
38637                 embedded_ares="yes"
38638         subdirs="$subdirs ares"
38639
38640                         ares_CPPFLAGS=""
38641         ares_LDFLAGS="-L$embedded_ares_builddir"
38642         ares_LIBS="-lcares"
38643       else
38644                 ares_CPPFLAGS=""
38645         ares_LDFLAGS=""
38646         ares_LIBS="-lcares"
38647       fi
38648     fi
38649     #
38650     CPPFLAGS="$ares_CPPFLAGS $clean_CPPFLAGS"
38651     LDFLAGS="$ares_LDFLAGS $clean_LDFLAGS"
38652     LIBS="$ares_LIBS $clean_LIBS"
38653     #
38654     if test "$embedded_ares" != "yes"; then
38655                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
38656 $as_echo_n "checking that c-ares is good and recent enough... " >&6; }
38657       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38658 /* end confdefs.h.  */
38659
38660
38661 #include <ares.h>
38662           /* set of dummy functions in case c-ares was built with debug */
38663           void curl_dofree() { }
38664           void curl_sclose() { }
38665           void curl_domalloc() { }
38666           void curl_docalloc() { }
38667           void curl_socket() { }
38668
38669 int main (void)
38670 {
38671
38672           ares_channel channel;
38673           ares_cancel(channel); /* added in 1.2.0 */
38674           ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
38675           ares_dup(&channel, channel); /* added in 1.6.0 */
38676
38677  ;
38678  return 0;
38679 }
38680
38681 _ACEOF
38682 if ac_fn_c_try_link "$LINENO"; then :
38683
38684         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38685 $as_echo "yes" >&6; }
38686
38687 else
38688
38689         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38690 $as_echo "no" >&6; }
38691         as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
38692                 CPPFLAGS="$clean_CPPFLAGS"
38693         LDFLAGS="$clean_LDFLAGS"
38694         LIBS="$clean_LIBS"
38695         # prevent usage
38696         want_ares="no"
38697
38698 fi
38699 rm -f core conftest.err conftest.$ac_objext \
38700     conftest$ac_exeext conftest.$ac_ext
38701     fi
38702     if test "$want_ares" = "yes"; then
38703
38704 $as_echo "#define USE_ARES 1" >>confdefs.h
38705
38706       USE_ARES=1
38707
38708       curl_res_msg="c-ares"
38709     fi
38710   fi
38711
38712  if test x$embedded_ares = xyes; then
38713   USE_EMBEDDED_ARES_TRUE=
38714   USE_EMBEDDED_ARES_FALSE='#'
38715 else
38716   USE_EMBEDDED_ARES_TRUE='#'
38717   USE_EMBEDDED_ARES_FALSE=
38718 fi
38719
38720
38721 if test "x$ac_cv_native_windows" != "xyes" &&
38722    test "x$enable_shared" = "xyes"; then
38723   build_libhostname=yes
38724 else
38725   build_libhostname=no
38726 fi
38727  if test x$build_libhostname = xyes; then
38728   BUILD_LIBHOSTNAME_TRUE=
38729   BUILD_LIBHOSTNAME_FALSE='#'
38730 else
38731   BUILD_LIBHOSTNAME_TRUE='#'
38732   BUILD_LIBHOSTNAME_FALSE=
38733 fi
38734
38735
38736
38737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
38738 $as_echo_n "checking whether to enable the threaded resolver... " >&6; }
38739   OPT_THRES="default"
38740   # Check whether --enable-threaded_resolver was given.
38741 if test "${enable_threaded_resolver+set}" = set; then :
38742   enableval=$enable_threaded_resolver; OPT_THRES=$enableval
38743 fi
38744
38745   case "$OPT_THRES" in
38746     yes)
38747             want_thres="yes"
38748       ;;
38749     *)
38750             want_thres="no"
38751       ;;
38752   esac
38753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
38754 $as_echo "$want_thres" >&6; }
38755
38756
38757 if test "x$want_thres" = xyes && test "x$want_ares" = xyes; then
38758   as_fn_error $? "Options --enable-threaded-resolver and --enable-ares are mutually exclusive" "$LINENO" 5
38759 fi
38760
38761 if test "$want_thres" = "yes"; then
38762   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
38763 if test "x$ac_cv_header_pthread_h" = xyes; then :
38764
38765 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
38766
38767       save_CFLAGS="$CFLAGS"
38768
38769             ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
38770 if test "x$ac_cv_func_pthread_create" = xyes; then :
38771   USE_THREADS_POSIX=1
38772 fi
38773
38774
38775             if test "$USE_THREADS_POSIX" != "1"
38776       then
38777         CFLAGS="$CFLAGS -pthread"
38778         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
38779 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
38780 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
38781   $as_echo_n "(cached) " >&6
38782 else
38783   ac_check_lib_save_LIBS=$LIBS
38784 LIBS="-lpthread  $LIBS"
38785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38786 /* end confdefs.h.  */
38787
38788
38789 #ifdef __cplusplus
38790 extern "C"
38791 #endif
38792 char pthread_create ();
38793 int main (void)
38794 {
38795 return pthread_create ();
38796  ;
38797  return 0;
38798 }
38799 _ACEOF
38800 if ac_fn_c_try_link "$LINENO"; then :
38801   ac_cv_lib_pthread_pthread_create=yes
38802 else
38803   ac_cv_lib_pthread_pthread_create=no
38804 fi
38805 rm -f core conftest.err conftest.$ac_objext \
38806     conftest$ac_exeext conftest.$ac_ext
38807 LIBS=$ac_check_lib_save_LIBS
38808 fi
38809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
38810 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
38811 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
38812   USE_THREADS_POSIX=1
38813 else
38814    CFLAGS="$save_CFLAGS"
38815 fi
38816
38817       fi
38818
38819       if test "x$USE_THREADS_POSIX" = "x1"
38820       then
38821
38822 $as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
38823
38824         curl_res_msg="POSIX threaded"
38825       fi
38826
38827
38828
38829 fi
38830
38831
38832 fi
38833
38834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
38835 $as_echo_n "checking whether to enable verbose strings... " >&6; }
38836 # Check whether --enable-verbose was given.
38837 if test "${enable_verbose+set}" = set; then :
38838   enableval=$enable_verbose;  case "$enableval" in
38839   no)
38840        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38841 $as_echo "no" >&6; }
38842
38843 $as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
38844
38845        curl_verbose_msg="no"
38846        ;;
38847   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38848 $as_echo "yes" >&6; }
38849        ;;
38850   esac
38851 else
38852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38853 $as_echo "yes" >&6; }
38854
38855 fi
38856
38857
38858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
38859 $as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
38860 # Check whether --enable-sspi was given.
38861 if test "${enable_sspi+set}" = set; then :
38862   enableval=$enable_sspi;  case "$enableval" in
38863   yes)
38864        if test "$ac_cv_native_windows" = "yes"; then
38865          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38866 $as_echo "yes" >&6; }
38867
38868 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
38869
38870          USE_WINDOWS_SSPI=1
38871
38872          curl_sspi_msg="enabled"
38873        else
38874          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38875 $as_echo "no" >&6; }
38876          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
38877 $as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
38878        fi
38879        ;;
38880   *)
38881        if test "x$WINSSL_ENABLED" = "x1"; then
38882          # --with-winssl implies --enable-sspi
38883          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38884 $as_echo "yes" >&6; }
38885        else
38886          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38887 $as_echo "no" >&6; }
38888        fi
38889        ;;
38890   esac
38891 else
38892   if test "x$WINSSL_ENABLED" = "x1"; then
38893          # --with-winssl implies --enable-sspi
38894          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38895 $as_echo "yes" >&6; }
38896        else
38897          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38898 $as_echo "no" >&6; }
38899        fi
38900
38901 fi
38902
38903
38904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
38905 $as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
38906 # Check whether --enable-crypto-auth was given.
38907 if test "${enable_crypto_auth+set}" = set; then :
38908   enableval=$enable_crypto_auth;  case "$enableval" in
38909   no)
38910        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38911 $as_echo "no" >&6; }
38912
38913 $as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
38914
38915        CURL_DISABLE_CRYPTO_AUTH=1
38916        ;;
38917   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38918 $as_echo "yes" >&6; }
38919        ;;
38920   esac
38921 else
38922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38923 $as_echo "yes" >&6; }
38924
38925 fi
38926
38927
38928
38929     OPT_NTLM_WB="default"
38930   # Check whether --enable-ntlm-wb was given.
38931 if test "${enable_ntlm_wb+set}" = set; then :
38932   enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
38933 fi
38934
38935   want_ntlm_wb_file="/usr/bin/ntlm_auth"
38936   case "$OPT_NTLM_WB" in
38937     no)
38938             want_ntlm_wb="no"
38939       ;;
38940     default)
38941             want_ntlm_wb="yes"
38942       ;;
38943     *)
38944             want_ntlm_wb="yes"
38945       if test -n "$enableval" && test "$enableval" != "yes"; then
38946         want_ntlm_wb_file="$enableval"
38947       fi
38948       ;;
38949   esac
38950
38951
38952
38953       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
38954 $as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
38955   if test "$ac_cv_native_windows" = "yes" ||
38956     test "x$SSL_ENABLED" = "x"; then
38957     want_ntlm_wb_file=""
38958     want_ntlm_wb="no"
38959   fi
38960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
38961 $as_echo "$want_ntlm_wb" >&6; }
38962   if test "$want_ntlm_wb" = "yes"; then
38963
38964 $as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
38965
38966
38967 cat >>confdefs.h <<_ACEOF
38968 #define NTLM_WB_FILE "$want_ntlm_wb_file"
38969 _ACEOF
38970
38971     NTLM_WB_ENABLED=1
38972   fi
38973
38974
38975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
38976 $as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
38977 # Check whether --enable-tls-srp was given.
38978 if test "${enable_tls_srp+set}" = set; then :
38979   enableval=$enable_tls_srp;  case "$enableval" in
38980   no)
38981        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38982 $as_echo "no" >&6; }
38983
38984 $as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
38985
38986        want_tls_srp=no
38987        ;;
38988   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38989 $as_echo "yes" >&6; }
38990        want_tls_srp=yes
38991        ;;
38992   esac
38993 else
38994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38995 $as_echo "yes" >&6; }
38996        want_tls_srp=yes
38997
38998 fi
38999
39000
39001 if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_SSLEAY_SRP" = "x1") ; then
39002
39003 $as_echo "#define USE_TLS_SRP 1" >>confdefs.h
39004
39005    USE_TLS_SRP=1
39006    curl_tls_srp_msg="enabled"
39007 fi
39008
39009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
39010 $as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
39011 # Check whether --enable-unix-sockets was given.
39012 if test "${enable_unix_sockets+set}" = set; then :
39013   enableval=$enable_unix_sockets;  case "$enableval" in
39014   no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39015 $as_echo "no" >&6; }
39016        want_unix_sockets=no
39017        ;;
39018   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39019 $as_echo "yes" >&6; }
39020        want_unix_sockets=yes
39021        ;;
39022   esac
39023 else
39024
39025        { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
39026 $as_echo "auto" >&6; }
39027        want_unix_sockets=auto
39028
39029
39030 fi
39031
39032 if test "x$want_unix_sockets" != "xno"; then
39033   ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
39034     #include <sys/un.h>
39035
39036 "
39037 if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
39038
39039
39040 $as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
39041
39042     USE_UNIX_SOCKETS=1
39043
39044     curl_unix_sockets_msg="enabled"
39045
39046 else
39047
39048     if test "x$want_unix_sockets" = "xyes"; then
39049       as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
39050     fi
39051
39052 fi
39053
39054 fi
39055
39056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
39057 $as_echo_n "checking whether to enable support for cookies... " >&6; }
39058 # Check whether --enable-cookies was given.
39059 if test "${enable_cookies+set}" = set; then :
39060   enableval=$enable_cookies;  case "$enableval" in
39061   no)
39062        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39063 $as_echo "no" >&6; }
39064
39065 $as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
39066
39067        ;;
39068   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39069 $as_echo "yes" >&6; }
39070        ;;
39071   esac
39072 else
39073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39074 $as_echo "yes" >&6; }
39075
39076 fi
39077
39078
39079
39080   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
39081 $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
39082   CFLAG_CURL_SYMBOL_HIDING=""
39083   doing_symbol_hiding="no"
39084   if test x"$ac_cv_native_windows" != "xyes" &&
39085     test "$want_symbol_hiding" = "yes" &&
39086     test "$supports_symbol_hiding" = "yes"; then
39087     doing_symbol_hiding="yes"
39088     CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
39089
39090 cat >>confdefs.h <<_ACEOF
39091 #define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
39092 _ACEOF
39093
39094     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39095 $as_echo "yes" >&6; }
39096   else
39097     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39098 $as_echo "no" >&6; }
39099   fi
39100    if test x$doing_symbol_hiding = xyes; then
39101   DOING_CURL_SYMBOL_HIDING_TRUE=
39102   DOING_CURL_SYMBOL_HIDING_FALSE='#'
39103 else
39104   DOING_CURL_SYMBOL_HIDING_TRUE='#'
39105   DOING_CURL_SYMBOL_HIDING_FALSE=
39106 fi
39107
39108
39109
39110
39111
39112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enforce SONAME bump" >&5
39113 $as_echo_n "checking whether to enforce SONAME bump... " >&6; }
39114 # Check whether --enable-soname-bump was given.
39115 if test "${enable_soname_bump+set}" = set; then :
39116   enableval=$enable_soname_bump;  case "$enableval" in
39117   yes)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39118 $as_echo "yes" >&6; }
39119          soname_bump=yes
39120          ;;
39121   *)
39122          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39123 $as_echo "no" >&6; }
39124          ;;
39125   esac
39126 else
39127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $soname_bump" >&5
39128 $as_echo "$soname_bump" >&6; }
39129
39130 fi
39131
39132  if test x$soname_bump = xyes; then
39133   SONAME_BUMP_TRUE=
39134   SONAME_BUMP_FALSE='#'
39135 else
39136   SONAME_BUMP_TRUE='#'
39137   SONAME_BUMP_FALSE=
39138 fi
39139
39140
39141 LIBCURL_LIBS=$LIBS
39142
39143
39144
39145
39146
39147 BLANK_AT_MAKETIME=
39148
39149
39150  if test x$cross_compiling = xyes; then
39151   CROSSCOMPILING_TRUE=
39152   CROSSCOMPILING_FALSE='#'
39153 else
39154   CROSSCOMPILING_TRUE='#'
39155   CROSSCOMPILING_FALSE=
39156 fi
39157
39158
39159 ENABLE_SHARED="$enable_shared"
39160
39161
39162 ENABLE_STATIC="$enable_static"
39163
39164
39165
39166
39167 if test "x$USE_SSLEAY" = "x1"; then
39168   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
39169 elif test -n "$SSL_ENABLED"; then
39170   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
39171 fi
39172 if test "x$IPV6_ENABLED" = "x1"; then
39173   SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
39174 fi
39175 if test "x$USE_UNIX_SOCKETS" = "x1"; then
39176   SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
39177 fi
39178 if test "x$HAVE_LIBZ" = "x1"; then
39179   SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
39180 fi
39181 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1"; then
39182   SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
39183 fi
39184 if test "x$IDN_ENABLED" = "x1"; then
39185   SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
39186 fi
39187 if test "x$USE_WINDOWS_SSPI" = "x1"; then
39188   SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
39189 fi
39190
39191 if test "x$HAVE_GSSAPI" = "x1"; then
39192   SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
39193 fi
39194
39195 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
39196     \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
39197   SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
39198 fi
39199
39200 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
39201     \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
39202   SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
39203 fi
39204
39205 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
39206   if test "x$USE_SSLEAY" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
39207       -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \
39208       -o "x$DARWINSSL_ENABLED" = "x1"; then
39209     SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
39210
39211     if test "x$CURL_DISABLE_HTTP" != "x1" -a \
39212         "x$NTLM_WB_ENABLED" = "x1"; then
39213       SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
39214     fi
39215   fi
39216 fi
39217
39218 if test "x$USE_TLS_SRP" = "x1"; then
39219   SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
39220 fi
39221
39222 if test "x$USE_NGHTTP2" = "x1"; then
39223   SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
39224 fi
39225
39226
39227
39228 if test "x$CURL_DISABLE_HTTP" != "x1"; then
39229   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
39230   if test "x$SSL_ENABLED" = "x1"; then
39231     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
39232   fi
39233 fi
39234 if test "x$CURL_DISABLE_FTP" != "x1"; then
39235   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
39236   if test "x$SSL_ENABLED" = "x1"; then
39237     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
39238   fi
39239 fi
39240 if test "x$CURL_DISABLE_FILE" != "x1"; then
39241   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
39242 fi
39243 if test "x$CURL_DISABLE_TELNET" != "x1"; then
39244   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
39245 fi
39246 if test "x$CURL_DISABLE_LDAP" != "x1"; then
39247   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
39248   if test "x$CURL_DISABLE_LDAPS" != "x1"; then
39249     if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
39250       (test "x$USE_OPENLDAP" != "x1"  && test "x$HAVE_LDAP_SSL" = "x1"); then
39251       SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
39252     fi
39253   fi
39254 fi
39255 if test "x$CURL_DISABLE_DICT" != "x1"; then
39256   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
39257 fi
39258 if test "x$CURL_DISABLE_TFTP" != "x1"; then
39259   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
39260 fi
39261 if test "x$CURL_DISABLE_GOPHER" != "x1"; then
39262   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
39263 fi
39264 if test "x$CURL_DISABLE_POP3" != "x1"; then
39265   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
39266   if test "x$SSL_ENABLED" = "x1"; then
39267     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
39268   fi
39269 fi
39270 if test "x$CURL_DISABLE_IMAP" != "x1"; then
39271   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
39272   if test "x$SSL_ENABLED" = "x1"; then
39273     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
39274   fi
39275 fi
39276 if test "x$CURL_DISABLE_SMB" != "x1" \
39277     -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
39278     -a \( "x$USE_SSLEAY" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
39279       -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \
39280       -o "x$DARWINSSL_ENABLED" = "x1" \); then
39281   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
39282   if test "x$SSL_ENABLED" = "x1"; then
39283     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
39284   fi
39285 fi
39286 if test "x$CURL_DISABLE_SMTP" != "x1"; then
39287   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
39288   if test "x$SSL_ENABLED" = "x1"; then
39289     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
39290   fi
39291 fi
39292 if test "x$USE_LIBSSH2" = "x1"; then
39293   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
39294   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
39295 fi
39296 if test "x$CURL_DISABLE_RTSP" != "x1"; then
39297   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
39298 fi
39299 if test "x$USE_LIBRTMP" = "x1"; then
39300   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
39301 fi
39302
39303 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
39304
39305
39306
39307
39308 squeeze CFLAGS
39309 squeeze CPPFLAGS
39310 squeeze DEFS
39311 squeeze LDFLAGS
39312 squeeze LIBS
39313
39314 squeeze LIBCURL_LIBS
39315 squeeze CURL_NETWORK_LIBS
39316 squeeze CURL_NETWORK_AND_TIME_LIBS
39317
39318 squeeze SUPPORT_FEATURES
39319 squeeze SUPPORT_PROTOCOLS
39320
39321
39322
39323   xc_bad_var_libs=no
39324   for xc_word in $LIBS; do
39325     case "$xc_word" in
39326       -l* | --library=*)
39327         :
39328         ;;
39329       *)
39330         xc_bad_var_libs=yes
39331         ;;
39332     esac
39333   done
39334   if test $xc_bad_var_libs = yes; then
39335     { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
39336 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
39337     { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
39338 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
39339   fi
39340
39341
39342   xc_bad_var_ldflags=no
39343   for xc_word in $LDFLAGS; do
39344     case "$xc_word" in
39345       -D*)
39346         xc_bad_var_ldflags=yes
39347         ;;
39348       -U*)
39349         xc_bad_var_ldflags=yes
39350         ;;
39351       -I*)
39352         xc_bad_var_ldflags=yes
39353         ;;
39354       -l* | --library=*)
39355         xc_bad_var_ldflags=yes
39356         ;;
39357     esac
39358   done
39359   if test $xc_bad_var_ldflags = yes; then
39360     { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
39361 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
39362     xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
39363     for xc_word in $LDFLAGS; do
39364       case "$xc_word" in
39365         -D*)
39366           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
39367 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
39368           ;;
39369         -U*)
39370           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
39371 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
39372           ;;
39373         -I*)
39374           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
39375 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
39376           ;;
39377         -l* | --library=*)
39378           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
39379 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
39380           ;;
39381       esac
39382     done
39383   fi
39384
39385
39386   xc_bad_var_cppflags=no
39387   for xc_word in $CPPFLAGS; do
39388     case "$xc_word" in
39389       -rpath*)
39390         xc_bad_var_cppflags=yes
39391         ;;
39392       -L* | --library-path=*)
39393         xc_bad_var_cppflags=yes
39394         ;;
39395       -l* | --library=*)
39396         xc_bad_var_cppflags=yes
39397         ;;
39398     esac
39399   done
39400   if test $xc_bad_var_cppflags = yes; then
39401     { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
39402 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
39403     xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
39404     for xc_word in $CPPFLAGS; do
39405       case "$xc_word" in
39406         -rpath*)
39407           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
39408 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
39409           ;;
39410         -L* | --library-path=*)
39411           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
39412 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
39413           ;;
39414         -l* | --library=*)
39415           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
39416 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
39417           ;;
39418       esac
39419     done
39420   fi
39421
39422
39423   xc_bad_var_cflags=no
39424   for xc_word in $CFLAGS; do
39425     case "$xc_word" in
39426       -D*)
39427         xc_bad_var_cflags=yes
39428         ;;
39429       -U*)
39430         xc_bad_var_cflags=yes
39431         ;;
39432       -I*)
39433         xc_bad_var_cflags=yes
39434         ;;
39435       -rpath*)
39436         xc_bad_var_cflags=yes
39437         ;;
39438       -L* | --library-path=*)
39439         xc_bad_var_cflags=yes
39440         ;;
39441       -l* | --library=*)
39442         xc_bad_var_cflags=yes
39443         ;;
39444     esac
39445   done
39446   if test $xc_bad_var_cflags = yes; then
39447     { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
39448 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
39449     xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
39450     for xc_word in $CFLAGS; do
39451       case "$xc_word" in
39452         -D*)
39453           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
39454 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
39455           ;;
39456         -U*)
39457           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
39458 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
39459           ;;
39460         -I*)
39461           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
39462 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
39463           ;;
39464         -rpath*)
39465           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
39466 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
39467           ;;
39468         -L* | --library-path=*)
39469           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
39470 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
39471           ;;
39472         -l* | --library=*)
39473           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
39474 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
39475           ;;
39476       esac
39477     done
39478   fi
39479
39480   if test $xc_bad_var_libs = yes ||
39481      test $xc_bad_var_cflags = yes ||
39482      test $xc_bad_var_ldflags = yes ||
39483      test $xc_bad_var_cppflags = yes; then
39484      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
39485 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
39486   fi
39487
39488
39489 if test "x$want_curldebug_assumed" = "xyes" &&
39490   test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
39491   ac_configure_args="$ac_configure_args --enable-curldebug"
39492 fi
39493
39494 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"
39495
39496 cat >confcache <<\_ACEOF
39497 # This file is a shell script that caches the results of configure
39498 # tests run on this system so they can be shared between configure
39499 # scripts and configure runs, see configure's option --config-cache.
39500 # It is not useful on other systems.  If it contains results you don't
39501 # want to keep, you may remove or edit it.
39502 #
39503 # config.status only pays attention to the cache file if you give it
39504 # the --recheck option to rerun configure.
39505 #
39506 # `ac_cv_env_foo' variables (set or unset) will be overridden when
39507 # loading this file, other *unset* `ac_cv_foo' will be assigned the
39508 # following values.
39509
39510 _ACEOF
39511
39512 # The following way of writing the cache mishandles newlines in values,
39513 # but we know of no workaround that is simple, portable, and efficient.
39514 # So, we kill variables containing newlines.
39515 # Ultrix sh set writes to stderr and can't be redirected directly,
39516 # and sets the high bit in the cache file unless we assign to the vars.
39517 (
39518   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
39519     eval ac_val=\$$ac_var
39520     case $ac_val in #(
39521     *${as_nl}*)
39522       case $ac_var in #(
39523       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
39524 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
39525       esac
39526       case $ac_var in #(
39527       _ | IFS | as_nl) ;; #(
39528       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
39529       *) { eval $ac_var=; unset $ac_var;} ;;
39530       esac ;;
39531     esac
39532   done
39533
39534   (set) 2>&1 |
39535     case $as_nl`(ac_space=' '; set) 2>&1` in #(
39536     *${as_nl}ac_space=\ *)
39537       # `set' does not quote correctly, so add quotes: double-quote
39538       # substitution turns \\\\ into \\, and sed turns \\ into \.
39539       sed -n \
39540         "s/'/'\\\\''/g;
39541           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39542       ;; #(
39543     *)
39544       # `set' quotes correctly as required by POSIX, so do not add quotes.
39545       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
39546       ;;
39547     esac |
39548     sort
39549 ) |
39550   sed '
39551      /^ac_cv_env_/b end
39552      t clear
39553      :clear
39554      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39555      t end
39556      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39557      :end' >>confcache
39558 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
39559   if test -w "$cache_file"; then
39560     if test "x$cache_file" != "x/dev/null"; then
39561       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
39562 $as_echo "$as_me: updating cache $cache_file" >&6;}
39563       if test ! -f "$cache_file" || test -h "$cache_file"; then
39564         cat confcache >"$cache_file"
39565       else
39566         case $cache_file in #(
39567         */* | ?:*)
39568           mv -f confcache "$cache_file"$$ &&
39569           mv -f "$cache_file"$$ "$cache_file" ;; #(
39570         *)
39571           mv -f confcache "$cache_file" ;;
39572         esac
39573       fi
39574     fi
39575   else
39576     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
39577 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
39578   fi
39579 fi
39580 rm -f confcache
39581
39582 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39583 # Let make expand exec_prefix.
39584 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39585
39586 DEFS=-DHAVE_CONFIG_H
39587
39588 ac_libobjs=
39589 ac_ltlibobjs=
39590 U=
39591 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39592   # 1. Remove the extension, and $U if already installed.
39593   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39594   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
39595   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
39596   #    will be set to the directory where LIBOBJS objects are built.
39597   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
39598   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
39599 done
39600 LIBOBJS=$ac_libobjs
39601
39602 LTLIBOBJS=$ac_ltlibobjs
39603
39604
39605 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
39606   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
39607 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39608 fi
39609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
39610 $as_echo_n "checking that generated files are newer than configure... " >&6; }
39611    if test -n "$am_sleep_pid"; then
39612      # Hide warnings about reused PIDs.
39613      wait $am_sleep_pid 2>/dev/null
39614    fi
39615    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
39616 $as_echo "done" >&6; }
39617 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39618   as_fn_error $? "conditional \"AMDEP\" was never defined.
39619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39620 fi
39621 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39622   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
39623 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39624 fi
39625  if test -n "$EXEEXT"; then
39626   am__EXEEXT_TRUE=
39627   am__EXEEXT_FALSE='#'
39628 else
39629   am__EXEEXT_TRUE='#'
39630   am__EXEEXT_FALSE=
39631 fi
39632
39633 if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
39634   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
39635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39636 fi
39637 if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
39638   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
39639 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39640 fi
39641 if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
39642   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
39643 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39644 fi
39645 if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
39646   as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
39647 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39648 fi
39649 if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
39650   as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
39651 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39652 fi
39653 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
39654   as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
39655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39656 fi
39657 if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
39658   as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
39659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39660 fi
39661 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
39662   as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
39663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39664 fi
39665 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
39666   as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
39667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39668 fi
39669 if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
39670   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
39671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39672 fi
39673 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
39674   as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
39675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39676 fi
39677 if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
39678   as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
39679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39680 fi
39681 if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
39682   as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
39683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39684 fi
39685 if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
39686   as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
39687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39688 fi
39689 if test -z "${SONAME_BUMP_TRUE}" && test -z "${SONAME_BUMP_FALSE}"; then
39690   as_fn_error $? "conditional \"SONAME_BUMP\" was never defined.
39691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39692 fi
39693 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
39694   as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
39695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39696 fi
39697
39698 : "${CONFIG_STATUS=./config.status}"
39699 ac_write_fail=0
39700 ac_clean_files_save=$ac_clean_files
39701 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39702 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
39703 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
39704 as_write_fail=0
39705 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
39706 #! $SHELL
39707 # Generated by $as_me.
39708 # Run this file to recreate the current configuration.
39709 # Compiler output produced by configure, useful for debugging
39710 # configure, is in config.log if it exists.
39711
39712 debug=false
39713 ac_cs_recheck=false
39714 ac_cs_silent=false
39715
39716 SHELL=\${CONFIG_SHELL-$SHELL}
39717 export SHELL
39718 _ASEOF
39719 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
39720 ## -------------------- ##
39721 ## M4sh Initialization. ##
39722 ## -------------------- ##
39723
39724 # Be more Bourne compatible
39725 DUALCASE=1; export DUALCASE # for MKS sh
39726 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
39727   emulate sh
39728   NULLCMD=:
39729   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
39730   # is contrary to our usage.  Disable this feature.
39731   alias -g '${1+"$@"}'='"$@"'
39732   setopt NO_GLOB_SUBST
39733 else
39734   case `(set -o) 2>/dev/null` in #(
39735   *posix*) :
39736     set -o posix ;; #(
39737   *) :
39738      ;;
39739 esac
39740 fi
39741
39742
39743 as_nl='
39744 '
39745 export as_nl
39746 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39747 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39748 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
39749 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
39750 # Prefer a ksh shell builtin over an external printf program on Solaris,
39751 # but without wasting forks for bash or zsh.
39752 if test -z "$BASH_VERSION$ZSH_VERSION" \
39753     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
39754   as_echo='print -r --'
39755   as_echo_n='print -rn --'
39756 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
39757   as_echo='printf %s\n'
39758   as_echo_n='printf %s'
39759 else
39760   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
39761     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
39762     as_echo_n='/usr/ucb/echo -n'
39763   else
39764     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
39765     as_echo_n_body='eval
39766       arg=$1;
39767       case $arg in #(
39768       *"$as_nl"*)
39769         expr "X$arg" : "X\\(.*\\)$as_nl";
39770         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
39771       esac;
39772       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
39773     '
39774     export as_echo_n_body
39775     as_echo_n='sh -c $as_echo_n_body as_echo'
39776   fi
39777   export as_echo_body
39778   as_echo='sh -c $as_echo_body as_echo'
39779 fi
39780
39781
39782
39783 # IFS
39784 # We need space, tab and new line, in precisely that order.  Quoting is
39785 # there to prevent editors from complaining about space-tab.
39786 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
39787 # splitting by setting IFS to empty value.)
39788 IFS=" ""        $as_nl"
39789
39790 # Find who we are.  Look in the path if we contain no directory separator.
39791 as_myself=
39792 case $0 in #((
39793   *[\\/]* ) as_myself=$0 ;;
39794   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39795 for as_dir in $PATH
39796 do
39797   IFS=$as_save_IFS
39798   test -z "$as_dir" && as_dir=.
39799     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39800   done
39801 IFS=$as_save_IFS
39802
39803      ;;
39804 esac
39805 # We did not find ourselves, most probably we were run as `sh COMMAND'
39806 # in which case we are not to be found in the path.
39807 if test "x$as_myself" = x; then
39808   as_myself=$0
39809 fi
39810 if test ! -f "$as_myself"; then
39811   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
39812   exit 1
39813 fi
39814
39815 # Unset variables that we do not need and which cause bugs (e.g. in
39816 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
39817 # suppresses any "Segmentation fault" message there.  '((' could
39818 # trigger a bug in pdksh 5.2.14.
39819 for as_var in BASH_ENV ENV MAIL MAILPATH
39820 do eval test x\${$as_var+set} = xset \
39821   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
39822 done
39823 PS1='$ '
39824 PS2='> '
39825 PS4='+ '
39826
39827 # NLS nuisances.
39828 LC_ALL=C
39829 export LC_ALL
39830 LANGUAGE=C
39831 export LANGUAGE
39832
39833 # CDPATH.
39834 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
39835
39836
39837 # as_fn_error STATUS ERROR [LINENO LOG_FD]
39838 # ----------------------------------------
39839 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
39840 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
39841 # script with STATUS, using 1 if that was 0.
39842 as_fn_error ()
39843 {
39844   as_status=$1; test $as_status -eq 0 && as_status=1
39845   if test "$4"; then
39846     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
39847     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
39848   fi
39849   $as_echo "$as_me: error: $2" >&2
39850   as_fn_exit $as_status
39851 } # as_fn_error
39852
39853
39854 # as_fn_set_status STATUS
39855 # -----------------------
39856 # Set $? to STATUS, without forking.
39857 as_fn_set_status ()
39858 {
39859   return $1
39860 } # as_fn_set_status
39861
39862 # as_fn_exit STATUS
39863 # -----------------
39864 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
39865 as_fn_exit ()
39866 {
39867   set +e
39868   as_fn_set_status $1
39869   exit $1
39870 } # as_fn_exit
39871
39872 # as_fn_unset VAR
39873 # ---------------
39874 # Portably unset VAR.
39875 as_fn_unset ()
39876 {
39877   { eval $1=; unset $1;}
39878 }
39879 as_unset=as_fn_unset
39880 # as_fn_append VAR VALUE
39881 # ----------------------
39882 # Append the text in VALUE to the end of the definition contained in VAR. Take
39883 # advantage of any shell optimizations that allow amortized linear growth over
39884 # repeated appends, instead of the typical quadratic growth present in naive
39885 # implementations.
39886 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
39887   eval 'as_fn_append ()
39888   {
39889     eval $1+=\$2
39890   }'
39891 else
39892   as_fn_append ()
39893   {
39894     eval $1=\$$1\$2
39895   }
39896 fi # as_fn_append
39897
39898 # as_fn_arith ARG...
39899 # ------------------
39900 # Perform arithmetic evaluation on the ARGs, and store the result in the
39901 # global $as_val. Take advantage of shells that can avoid forks. The arguments
39902 # must be portable across $(()) and expr.
39903 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
39904   eval 'as_fn_arith ()
39905   {
39906     as_val=$(( $* ))
39907   }'
39908 else
39909   as_fn_arith ()
39910   {
39911     as_val=`expr "$@" || test $? -eq 1`
39912   }
39913 fi # as_fn_arith
39914
39915
39916 if expr a : '\(a\)' >/dev/null 2>&1 &&
39917    test "X`expr 00001 : '.*\(...\)'`" = X001; then
39918   as_expr=expr
39919 else
39920   as_expr=false
39921 fi
39922
39923 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39924   as_basename=basename
39925 else
39926   as_basename=false
39927 fi
39928
39929 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39930   as_dirname=dirname
39931 else
39932   as_dirname=false
39933 fi
39934
39935 as_me=`$as_basename -- "$0" ||
39936 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39937          X"$0" : 'X\(//\)$' \| \
39938          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39939 $as_echo X/"$0" |
39940     sed '/^.*\/\([^/][^/]*\)\/*$/{
39941             s//\1/
39942             q
39943           }
39944           /^X\/\(\/\/\)$/{
39945             s//\1/
39946             q
39947           }
39948           /^X\/\(\/\).*/{
39949             s//\1/
39950             q
39951           }
39952           s/.*/./; q'`
39953
39954 # Avoid depending upon Character Ranges.
39955 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39956 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39957 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39958 as_cr_digits='0123456789'
39959 as_cr_alnum=$as_cr_Letters$as_cr_digits
39960
39961 ECHO_C= ECHO_N= ECHO_T=
39962 case `echo -n x` in #(((((
39963 -n*)
39964   case `echo 'xy\c'` in
39965   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
39966   xy)  ECHO_C='\c';;
39967   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
39968        ECHO_T=' ';;
39969   esac;;
39970 *)
39971   ECHO_N='-n';;
39972 esac
39973
39974 rm -f conf$$ conf$$.exe conf$$.file
39975 if test -d conf$$.dir; then
39976   rm -f conf$$.dir/conf$$.file
39977 else
39978   rm -f conf$$.dir
39979   mkdir conf$$.dir 2>/dev/null
39980 fi
39981 if (echo >conf$$.file) 2>/dev/null; then
39982   if ln -s conf$$.file conf$$ 2>/dev/null; then
39983     as_ln_s='ln -s'
39984     # ... but there are two gotchas:
39985     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
39986     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
39987     # In both cases, we have to default to `cp -pR'.
39988     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
39989       as_ln_s='cp -pR'
39990   elif ln conf$$.file conf$$ 2>/dev/null; then
39991     as_ln_s=ln
39992   else
39993     as_ln_s='cp -pR'
39994   fi
39995 else
39996   as_ln_s='cp -pR'
39997 fi
39998 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39999 rmdir conf$$.dir 2>/dev/null
40000
40001
40002 # as_fn_mkdir_p
40003 # -------------
40004 # Create "$as_dir" as a directory, including parents if necessary.
40005 as_fn_mkdir_p ()
40006 {
40007
40008   case $as_dir in #(
40009   -*) as_dir=./$as_dir;;
40010   esac
40011   test -d "$as_dir" || eval $as_mkdir_p || {
40012     as_dirs=
40013     while :; do
40014       case $as_dir in #(
40015       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
40016       *) as_qdir=$as_dir;;
40017       esac
40018       as_dirs="'$as_qdir' $as_dirs"
40019       as_dir=`$as_dirname -- "$as_dir" ||
40020 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40021          X"$as_dir" : 'X\(//\)[^/]' \| \
40022          X"$as_dir" : 'X\(//\)$' \| \
40023          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40024 $as_echo X"$as_dir" |
40025     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40026             s//\1/
40027             q
40028           }
40029           /^X\(\/\/\)[^/].*/{
40030             s//\1/
40031             q
40032           }
40033           /^X\(\/\/\)$/{
40034             s//\1/
40035             q
40036           }
40037           /^X\(\/\).*/{
40038             s//\1/
40039             q
40040           }
40041           s/.*/./; q'`
40042       test -d "$as_dir" && break
40043     done
40044     test -z "$as_dirs" || eval "mkdir $as_dirs"
40045   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
40046
40047
40048 } # as_fn_mkdir_p
40049 if mkdir -p . 2>/dev/null; then
40050   as_mkdir_p='mkdir -p "$as_dir"'
40051 else
40052   test -d ./-p && rmdir ./-p
40053   as_mkdir_p=false
40054 fi
40055
40056
40057 # as_fn_executable_p FILE
40058 # -----------------------
40059 # Test if FILE is an executable regular file.
40060 as_fn_executable_p ()
40061 {
40062   test -f "$1" && test -x "$1"
40063 } # as_fn_executable_p
40064 as_test_x='test -x'
40065 as_executable_p=as_fn_executable_p
40066
40067 # Sed expression to map a string onto a valid CPP name.
40068 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
40069
40070 # Sed expression to map a string onto a valid variable name.
40071 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
40072
40073
40074 exec 6>&1
40075 ## ----------------------------------- ##
40076 ## Main body of $CONFIG_STATUS script. ##
40077 ## ----------------------------------- ##
40078 _ASEOF
40079 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
40080
40081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40082 # Save the log message, to keep $0 and so on meaningful, and to
40083 # report actual input values of CONFIG_FILES etc. instead of their
40084 # values after options handling.
40085 ac_log="
40086 This file was extended by curl $as_me -, which was
40087 generated by GNU Autoconf 2.69.  Invocation command line was
40088
40089   CONFIG_FILES    = $CONFIG_FILES
40090   CONFIG_HEADERS  = $CONFIG_HEADERS
40091   CONFIG_LINKS    = $CONFIG_LINKS
40092   CONFIG_COMMANDS = $CONFIG_COMMANDS
40093   $ $0 $@
40094
40095 on `(hostname || uname -n) 2>/dev/null | sed 1q`
40096 "
40097
40098 _ACEOF
40099
40100 case $ac_config_files in *"
40101 "*) set x $ac_config_files; shift; ac_config_files=$*;;
40102 esac
40103
40104 case $ac_config_headers in *"
40105 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
40106 esac
40107
40108
40109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40110 # Files that config.status was made for.
40111 config_files="$ac_config_files"
40112 config_headers="$ac_config_headers"
40113 config_commands="$ac_config_commands"
40114
40115 _ACEOF
40116
40117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40118 ac_cs_usage="\
40119 \`$as_me' instantiates files and other configuration actions
40120 from templates according to the current configuration.  Unless the files
40121 and actions are specified as TAGs, all are instantiated by default.
40122
40123 Usage: $0 [OPTION]... [TAG]...
40124
40125   -h, --help       print this help, then exit
40126   -V, --version    print version number and configuration settings, then exit
40127       --config     print configuration, then exit
40128   -q, --quiet, --silent
40129                    do not print progress messages
40130   -d, --debug      don't remove temporary files
40131       --recheck    update $as_me by reconfiguring in the same conditions
40132       --file=FILE[:TEMPLATE]
40133                    instantiate the configuration file FILE
40134       --header=FILE[:TEMPLATE]
40135                    instantiate the configuration header FILE
40136
40137 Configuration files:
40138 $config_files
40139
40140 Configuration headers:
40141 $config_headers
40142
40143 Configuration commands:
40144 $config_commands
40145
40146 Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>."
40147
40148 _ACEOF
40149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40150 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40151 ac_cs_version="\\
40152 curl config.status -
40153 configured by $0, generated by GNU Autoconf 2.69,
40154   with options \\"\$ac_cs_config\\"
40155
40156 Copyright (C) 2012 Free Software Foundation, Inc.
40157 This config.status script is free software; the Free Software Foundation
40158 gives unlimited permission to copy, distribute and modify it."
40159
40160 ac_pwd='$ac_pwd'
40161 srcdir='$srcdir'
40162 INSTALL='$INSTALL'
40163 MKDIR_P='$MKDIR_P'
40164 AWK='$AWK'
40165 test -n "\$AWK" || AWK=awk
40166 _ACEOF
40167
40168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40169 # The default lists apply if the user does not specify any file.
40170 ac_need_defaults=:
40171 while test $# != 0
40172 do
40173   case $1 in
40174   --*=?*)
40175     ac_option=`expr "X$1" : 'X\([^=]*\)='`
40176     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
40177     ac_shift=:
40178     ;;
40179   --*=)
40180     ac_option=`expr "X$1" : 'X\([^=]*\)='`
40181     ac_optarg=
40182     ac_shift=:
40183     ;;
40184   *)
40185     ac_option=$1
40186     ac_optarg=$2
40187     ac_shift=shift
40188     ;;
40189   esac
40190
40191   case $ac_option in
40192   # Handling of the options.
40193   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
40194     ac_cs_recheck=: ;;
40195   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
40196     $as_echo "$ac_cs_version"; exit ;;
40197   --config | --confi | --conf | --con | --co | --c )
40198     $as_echo "$ac_cs_config"; exit ;;
40199   --debug | --debu | --deb | --de | --d | -d )
40200     debug=: ;;
40201   --file | --fil | --fi | --f )
40202     $ac_shift
40203     case $ac_optarg in
40204     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
40205     '') as_fn_error $? "missing file argument" ;;
40206     esac
40207     as_fn_append CONFIG_FILES " '$ac_optarg'"
40208     ac_need_defaults=false;;
40209   --header | --heade | --head | --hea )
40210     $ac_shift
40211     case $ac_optarg in
40212     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
40213     esac
40214     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
40215     ac_need_defaults=false;;
40216   --he | --h)
40217     # Conflict between --help and --header
40218     as_fn_error $? "ambiguous option: \`$1'
40219 Try \`$0 --help' for more information.";;
40220   --help | --hel | -h )
40221     $as_echo "$ac_cs_usage"; exit ;;
40222   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
40223   | -silent | --silent | --silen | --sile | --sil | --si | --s)
40224     ac_cs_silent=: ;;
40225
40226   # This is an error.
40227   -*) as_fn_error $? "unrecognized option: \`$1'
40228 Try \`$0 --help' for more information." ;;
40229
40230   *) as_fn_append ac_config_targets " $1"
40231      ac_need_defaults=false ;;
40232
40233   esac
40234   shift
40235 done
40236
40237 ac_configure_extra_args=
40238
40239 if $ac_cs_silent; then
40240   exec 6>/dev/null
40241   ac_configure_extra_args="$ac_configure_extra_args --silent"
40242 fi
40243
40244 _ACEOF
40245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40246 if \$ac_cs_recheck; then
40247   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
40248   shift
40249   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
40250   CONFIG_SHELL='$SHELL'
40251   export CONFIG_SHELL
40252   exec "\$@"
40253 fi
40254
40255 _ACEOF
40256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40257 exec 5>>config.log
40258 {
40259   echo
40260   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40261 ## Running $as_me. ##
40262 _ASBOX
40263   $as_echo "$ac_log"
40264 } >&5
40265
40266 _ACEOF
40267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40268 #
40269 # INIT-COMMANDS
40270 #
40271 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
40272
40273
40274 # The HP-UX ksh and POSIX shell print the target directory to stdout
40275 # if CDPATH is set.
40276 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
40277
40278 sed_quote_subst='$sed_quote_subst'
40279 double_quote_subst='$double_quote_subst'
40280 delay_variable_subst='$delay_variable_subst'
40281 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
40282 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
40283 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
40284 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
40285 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
40286 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
40287 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
40288 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
40289 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
40290 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
40291 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
40292 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
40293 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
40294 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
40295 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
40296 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
40297 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
40298 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
40299 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
40300 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
40301 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
40302 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
40303 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
40304 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
40305 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
40306 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
40307 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
40308 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
40309 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
40310 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
40311 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
40312 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
40313 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
40314 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
40315 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
40316 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
40317 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
40318 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
40319 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
40320 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
40321 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
40322 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
40323 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
40324 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
40325 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
40326 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
40327 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
40328 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
40329 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
40330 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
40331 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
40332 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
40333 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
40334 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
40335 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
40336 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
40337 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
40338 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"`'
40339 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
40340 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
40341 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
40342 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
40343 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
40344 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
40345 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
40346 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
40347 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
40348 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
40349 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
40350 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
40351 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
40352 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
40353 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
40354 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
40355 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
40356 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
40357 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
40358 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
40359 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
40360 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
40361 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
40362 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
40363 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
40364 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
40365 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
40366 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
40367 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
40368 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
40369 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
40370 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
40371 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
40372 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
40373 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
40374 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
40375 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
40376 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
40377 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
40378 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
40379 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
40380 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
40381 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
40382 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
40383 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
40384 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
40385 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
40386 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
40387 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
40388 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
40389 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
40390 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
40391 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
40392 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
40393 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
40394 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
40395 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
40396 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
40397 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
40398 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
40399 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
40400 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
40401 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
40402 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
40403 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
40404 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
40405 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
40406 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
40407 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
40408 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
40409 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
40410 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
40411 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
40412
40413 LTCC='$LTCC'
40414 LTCFLAGS='$LTCFLAGS'
40415 compiler='$compiler_DEFAULT'
40416
40417 # A function that is used when there is no print builtin or printf.
40418 func_fallback_echo ()
40419 {
40420   eval 'cat <<_LTECHO_EOF
40421 \$1
40422 _LTECHO_EOF'
40423 }
40424
40425 # Quote evaled strings.
40426 for var in AS \
40427 DLLTOOL \
40428 OBJDUMP \
40429 SHELL \
40430 ECHO \
40431 PATH_SEPARATOR \
40432 SED \
40433 GREP \
40434 EGREP \
40435 FGREP \
40436 LD \
40437 NM \
40438 LN_S \
40439 lt_SP2NL \
40440 lt_NL2SP \
40441 reload_flag \
40442 deplibs_check_method \
40443 file_magic_cmd \
40444 file_magic_glob \
40445 want_nocaseglob \
40446 sharedlib_from_linklib_cmd \
40447 AR \
40448 AR_FLAGS \
40449 archiver_list_spec \
40450 STRIP \
40451 RANLIB \
40452 CC \
40453 CFLAGS \
40454 compiler \
40455 lt_cv_sys_global_symbol_pipe \
40456 lt_cv_sys_global_symbol_to_cdecl \
40457 lt_cv_sys_global_symbol_to_c_name_address \
40458 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
40459 nm_file_list_spec \
40460 lt_prog_compiler_no_builtin_flag \
40461 lt_prog_compiler_pic \
40462 lt_prog_compiler_wl \
40463 lt_prog_compiler_static \
40464 lt_cv_prog_compiler_c_o \
40465 need_locks \
40466 MANIFEST_TOOL \
40467 DSYMUTIL \
40468 NMEDIT \
40469 LIPO \
40470 OTOOL \
40471 OTOOL64 \
40472 shrext_cmds \
40473 export_dynamic_flag_spec \
40474 whole_archive_flag_spec \
40475 compiler_needs_object \
40476 with_gnu_ld \
40477 allow_undefined_flag \
40478 no_undefined_flag \
40479 hardcode_libdir_flag_spec \
40480 hardcode_libdir_separator \
40481 exclude_expsyms \
40482 include_expsyms \
40483 file_list_spec \
40484 variables_saved_for_relink \
40485 libname_spec \
40486 library_names_spec \
40487 soname_spec \
40488 install_override_mode \
40489 finish_eval \
40490 old_striplib \
40491 striplib; do
40492     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
40493     *[\\\\\\\`\\"\\\$]*)
40494       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
40495       ;;
40496     *)
40497       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
40498       ;;
40499     esac
40500 done
40501
40502 # Double-quote double-evaled strings.
40503 for var in reload_cmds \
40504 old_postinstall_cmds \
40505 old_postuninstall_cmds \
40506 old_archive_cmds \
40507 extract_expsyms_cmds \
40508 old_archive_from_new_cmds \
40509 old_archive_from_expsyms_cmds \
40510 archive_cmds \
40511 archive_expsym_cmds \
40512 module_cmds \
40513 module_expsym_cmds \
40514 export_symbols_cmds \
40515 prelink_cmds \
40516 postlink_cmds \
40517 postinstall_cmds \
40518 postuninstall_cmds \
40519 finish_cmds \
40520 sys_lib_search_path_spec \
40521 sys_lib_dlsearch_path_spec; do
40522     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
40523     *[\\\\\\\`\\"\\\$]*)
40524       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
40525       ;;
40526     *)
40527       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
40528       ;;
40529     esac
40530 done
40531
40532 ac_aux_dir='$ac_aux_dir'
40533 xsi_shell='$xsi_shell'
40534 lt_shell_append='$lt_shell_append'
40535
40536 # See if we are running on zsh, and set the options which allow our
40537 # commands through without removal of \ escapes INIT.
40538 if test -n "\${ZSH_VERSION+set}" ; then
40539    setopt NO_GLOB_SUBST
40540 fi
40541
40542
40543     PACKAGE='$PACKAGE'
40544     VERSION='$VERSION'
40545     TIMESTAMP='$TIMESTAMP'
40546     RM='$RM'
40547     ofile='$ofile'
40548
40549
40550
40551
40552 _ACEOF
40553
40554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40555
40556 # Handling of arguments.
40557 for ac_config_target in $ac_config_targets
40558 do
40559   case $ac_config_target in
40560     "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
40561     "include/curl/curlbuild.h") CONFIG_HEADERS="$CONFIG_HEADERS include/curl/curlbuild.h" ;;
40562     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
40563     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
40564     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
40565     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
40566     "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
40567     "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
40568     "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
40569     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
40570     "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
40571     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
40572     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
40573     "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
40574     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
40575     "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
40576     "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
40577     "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
40578     "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
40579     "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
40580     "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
40581     "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
40582     "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
40583     "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
40584     "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
40585     "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
40586     "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
40587     "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
40588     "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
40589     "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
40590     "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
40591     "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
40592     "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
40593     "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
40594     "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
40595     "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
40596     "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
40597
40598   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
40599   esac
40600 done
40601
40602
40603 # If the user did not use the arguments to specify the items to instantiate,
40604 # then the envvar interface is used.  Set only those that are not.
40605 # We use the long form for the default assignment because of an extremely
40606 # bizarre bug on SunOS 4.1.3.
40607 if $ac_need_defaults; then
40608   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
40609   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
40610   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
40611 fi
40612
40613 # Have a temporary directory for convenience.  Make it in the build tree
40614 # simply because there is no reason against having it here, and in addition,
40615 # creating and moving files from /tmp can sometimes cause problems.
40616 # Hook for its removal unless debugging.
40617 # Note that there is a small window in which the directory will not be cleaned:
40618 # after its creation but before its name has been assigned to `$tmp'.
40619 $debug ||
40620 {
40621   tmp= ac_tmp=
40622   trap 'exit_status=$?
40623   : "${ac_tmp:=$tmp}"
40624   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
40625 ' 0
40626   trap 'as_fn_exit 1' 1 2 13 15
40627 }
40628 # Create a (secure) tmp directory for tmp files.
40629
40630 {
40631   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
40632   test -d "$tmp"
40633 }  ||
40634 {
40635   tmp=./conf$$-$RANDOM
40636   (umask 077 && mkdir "$tmp")
40637 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
40638 ac_tmp=$tmp
40639
40640 # Set up the scripts for CONFIG_FILES section.
40641 # No need to generate them if there are no CONFIG_FILES.
40642 # This happens for instance with `./config.status config.h'.
40643 if test -n "$CONFIG_FILES"; then
40644
40645
40646 ac_cr=`echo X | tr X '\015'`
40647 # On cygwin, bash can eat \r inside `` if the user requested igncr.
40648 # But we know of no other shell where ac_cr would be empty at this
40649 # point, so we can use a bashism as a fallback.
40650 if test "x$ac_cr" = x; then
40651   eval ac_cr=\$\'\\r\'
40652 fi
40653 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
40654 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
40655   ac_cs_awk_cr='\\r'
40656 else
40657   ac_cs_awk_cr=$ac_cr
40658 fi
40659
40660 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
40661 _ACEOF
40662
40663
40664 {
40665   echo "cat >conf$$subs.awk <<_ACEOF" &&
40666   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
40667   echo "_ACEOF"
40668 } >conf$$subs.sh ||
40669   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
40670 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
40671 ac_delim='%!_!# '
40672 for ac_last_try in false false false false false :; do
40673   . ./conf$$subs.sh ||
40674     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
40675
40676   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
40677   if test $ac_delim_n = $ac_delim_num; then
40678     break
40679   elif $ac_last_try; then
40680     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
40681   else
40682     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40683   fi
40684 done
40685 rm -f conf$$subs.sh
40686
40687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40688 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
40689 _ACEOF
40690 sed -n '
40691 h
40692 s/^/S["/; s/!.*/"]=/
40693 p
40694 g
40695 s/^[^!]*!//
40696 :repl
40697 t repl
40698 s/'"$ac_delim"'$//
40699 t delim
40700 :nl
40701 h
40702 s/\(.\{148\}\)..*/\1/
40703 t more1
40704 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
40705 p
40706 n
40707 b repl
40708 :more1
40709 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
40710 p
40711 g
40712 s/.\{148\}//
40713 t nl
40714 :delim
40715 h
40716 s/\(.\{148\}\)..*/\1/
40717 t more2
40718 s/["\\]/\\&/g; s/^/"/; s/$/"/
40719 p
40720 b
40721 :more2
40722 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
40723 p
40724 g
40725 s/.\{148\}//
40726 t delim
40727 ' <conf$$subs.awk | sed '
40728 /^[^""]/{
40729   N
40730   s/\n//
40731 }
40732 ' >>$CONFIG_STATUS || ac_write_fail=1
40733 rm -f conf$$subs.awk
40734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40735 _ACAWK
40736 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
40737   for (key in S) S_is_set[key] = 1
40738   FS = "\a"
40739
40740 }
40741 {
40742   line = $ 0
40743   nfields = split(line, field, "@")
40744   substed = 0
40745   len = length(field[1])
40746   for (i = 2; i < nfields; i++) {
40747     key = field[i]
40748     keylen = length(key)
40749     if (S_is_set[key]) {
40750       value = S[key]
40751       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
40752       len += length(value) + length(field[++i])
40753       substed = 1
40754     } else
40755       len += 1 + keylen
40756   }
40757
40758   print line
40759 }
40760
40761 _ACAWK
40762 _ACEOF
40763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40764 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
40765   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
40766 else
40767   cat
40768 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
40769   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
40770 _ACEOF
40771
40772 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
40773 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
40774 # trailing colons and then remove the whole line if VPATH becomes empty
40775 # (actually we leave an empty line to preserve line numbers).
40776 if test "x$srcdir" = x.; then
40777   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
40778 h
40779 s///
40780 s/^/:/
40781 s/[      ]*$/:/
40782 s/:\$(srcdir):/:/g
40783 s/:\${srcdir}:/:/g
40784 s/:@srcdir@:/:/g
40785 s/^:*//
40786 s/:*$//
40787 x
40788 s/\(=[   ]*\).*/\1/
40789 G
40790 s/\n//
40791 s/^[^=]*=[       ]*$//
40792 }'
40793 fi
40794
40795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40796 fi # test -n "$CONFIG_FILES"
40797
40798 # Set up the scripts for CONFIG_HEADERS section.
40799 # No need to generate them if there are no CONFIG_HEADERS.
40800 # This happens for instance with `./config.status Makefile'.
40801 if test -n "$CONFIG_HEADERS"; then
40802 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
40803 BEGIN {
40804 _ACEOF
40805
40806 # Transform confdefs.h into an awk script `defines.awk', embedded as
40807 # here-document in config.status, that substitutes the proper values into
40808 # config.h.in to produce config.h.
40809
40810 # Create a delimiter string that does not exist in confdefs.h, to ease
40811 # handling of long lines.
40812 ac_delim='%!_!# '
40813 for ac_last_try in false false :; do
40814   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
40815   if test -z "$ac_tt"; then
40816     break
40817   elif $ac_last_try; then
40818     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
40819   else
40820     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40821   fi
40822 done
40823
40824 # For the awk script, D is an array of macro values keyed by name,
40825 # likewise P contains macro parameters if any.  Preserve backslash
40826 # newline sequences.
40827
40828 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
40829 sed -n '
40830 s/.\{148\}/&'"$ac_delim"'/g
40831 t rset
40832 :rset
40833 s/^[     ]*#[    ]*define[       ][      ]*/ /
40834 t def
40835 d
40836 :def
40837 s/\\$//
40838 t bsnl
40839 s/["\\]/\\&/g
40840 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
40841 D["\1"]=" \3"/p
40842 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
40843 d
40844 :bsnl
40845 s/["\\]/\\&/g
40846 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
40847 D["\1"]=" \3\\\\\\n"\\/p
40848 t cont
40849 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
40850 t cont
40851 d
40852 :cont
40853 n
40854 s/.\{148\}/&'"$ac_delim"'/g
40855 t clear
40856 :clear
40857 s/\\$//
40858 t bsnlc
40859 s/["\\]/\\&/g; s/^/"/; s/$/"/p
40860 d
40861 :bsnlc
40862 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
40863 b cont
40864 ' <confdefs.h | sed '
40865 s/'"$ac_delim"'/"\\\
40866 "/g' >>$CONFIG_STATUS || ac_write_fail=1
40867
40868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40869   for (key in D) D_is_set[key] = 1
40870   FS = "\a"
40871 }
40872 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
40873   line = \$ 0
40874   split(line, arg, " ")
40875   if (arg[1] == "#") {
40876     defundef = arg[2]
40877     mac1 = arg[3]
40878   } else {
40879     defundef = substr(arg[1], 2)
40880     mac1 = arg[2]
40881   }
40882   split(mac1, mac2, "(") #)
40883   macro = mac2[1]
40884   prefix = substr(line, 1, index(line, defundef) - 1)
40885   if (D_is_set[macro]) {
40886     # Preserve the white space surrounding the "#".
40887     print prefix "define", macro P[macro] D[macro]
40888     next
40889   } else {
40890     # Replace #undef with comments.  This is necessary, for example,
40891     # in the case of _POSIX_SOURCE, which is predefined and required
40892     # on some systems where configure will not decide to define it.
40893     if (defundef == "undef") {
40894       print "/*", prefix defundef, macro, "*/"
40895       next
40896     }
40897   }
40898 }
40899 { print }
40900 _ACAWK
40901 _ACEOF
40902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40903   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
40904 fi # test -n "$CONFIG_HEADERS"
40905
40906
40907 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
40908 shift
40909 for ac_tag
40910 do
40911   case $ac_tag in
40912   :[FHLC]) ac_mode=$ac_tag; continue;;
40913   esac
40914   case $ac_mode$ac_tag in
40915   :[FHL]*:*);;
40916   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
40917   :[FH]-) ac_tag=-:-;;
40918   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
40919   esac
40920   ac_save_IFS=$IFS
40921   IFS=:
40922   set x $ac_tag
40923   IFS=$ac_save_IFS
40924   shift
40925   ac_file=$1
40926   shift
40927
40928   case $ac_mode in
40929   :L) ac_source=$1;;
40930   :[FH])
40931     ac_file_inputs=
40932     for ac_f
40933     do
40934       case $ac_f in
40935       -) ac_f="$ac_tmp/stdin";;
40936       *) # Look for the file first in the build tree, then in the source tree
40937          # (if the path is not absolute).  The absolute path cannot be DOS-style,
40938          # because $ac_f cannot contain `:'.
40939          test -f "$ac_f" ||
40940            case $ac_f in
40941            [\\/$]*) false;;
40942            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
40943            esac ||
40944            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
40945       esac
40946       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
40947       as_fn_append ac_file_inputs " '$ac_f'"
40948     done
40949
40950     # Let's still pretend it is `configure' which instantiates (i.e., don't
40951     # use $as_me), people would be surprised to read:
40952     #    /* config.h.  Generated by config.status.  */
40953     configure_input='Generated from '`
40954           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
40955         `' by configure.'
40956     if test x"$ac_file" != x-; then
40957       configure_input="$ac_file.  $configure_input"
40958       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
40959 $as_echo "$as_me: creating $ac_file" >&6;}
40960     fi
40961     # Neutralize special characters interpreted by sed in replacement strings.
40962     case $configure_input in #(
40963     *\&* | *\|* | *\\* )
40964        ac_sed_conf_input=`$as_echo "$configure_input" |
40965        sed 's/[\\\\&|]/\\\\&/g'`;; #(
40966     *) ac_sed_conf_input=$configure_input;;
40967     esac
40968
40969     case $ac_tag in
40970     *:-:* | *:-) cat >"$ac_tmp/stdin" \
40971       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
40972     esac
40973     ;;
40974   esac
40975
40976   ac_dir=`$as_dirname -- "$ac_file" ||
40977 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40978          X"$ac_file" : 'X\(//\)[^/]' \| \
40979          X"$ac_file" : 'X\(//\)$' \| \
40980          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
40981 $as_echo X"$ac_file" |
40982     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40983             s//\1/
40984             q
40985           }
40986           /^X\(\/\/\)[^/].*/{
40987             s//\1/
40988             q
40989           }
40990           /^X\(\/\/\)$/{
40991             s//\1/
40992             q
40993           }
40994           /^X\(\/\).*/{
40995             s//\1/
40996             q
40997           }
40998           s/.*/./; q'`
40999   as_dir="$ac_dir"; as_fn_mkdir_p
41000   ac_builddir=.
41001
41002 case "$ac_dir" in
41003 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
41004 *)
41005   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
41006   # A ".." for each directory in $ac_dir_suffix.
41007   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
41008   case $ac_top_builddir_sub in
41009   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
41010   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
41011   esac ;;
41012 esac
41013 ac_abs_top_builddir=$ac_pwd
41014 ac_abs_builddir=$ac_pwd$ac_dir_suffix
41015 # for backward compatibility:
41016 ac_top_builddir=$ac_top_build_prefix
41017
41018 case $srcdir in
41019   .)  # We are building in place.
41020     ac_srcdir=.
41021     ac_top_srcdir=$ac_top_builddir_sub
41022     ac_abs_top_srcdir=$ac_pwd ;;
41023   [\\/]* | ?:[\\/]* )  # Absolute name.
41024     ac_srcdir=$srcdir$ac_dir_suffix;
41025     ac_top_srcdir=$srcdir
41026     ac_abs_top_srcdir=$srcdir ;;
41027   *) # Relative name.
41028     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
41029     ac_top_srcdir=$ac_top_build_prefix$srcdir
41030     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
41031 esac
41032 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
41033
41034
41035   case $ac_mode in
41036   :F)
41037   #
41038   # CONFIG_FILE
41039   #
41040
41041   case $INSTALL in
41042   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41043   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
41044   esac
41045   ac_MKDIR_P=$MKDIR_P
41046   case $MKDIR_P in
41047   [\\/$]* | ?:[\\/]* ) ;;
41048   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
41049   esac
41050 _ACEOF
41051
41052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41053 # If the template does not know about datarootdir, expand it.
41054 # FIXME: This hack should be removed a few years after 2.60.
41055 ac_datarootdir_hack=; ac_datarootdir_seen=
41056 ac_sed_dataroot='
41057 /datarootdir/ {
41058   p
41059   q
41060 }
41061 /@datadir@/p
41062 /@docdir@/p
41063 /@infodir@/p
41064 /@localedir@/p
41065 /@mandir@/p'
41066 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
41067 *datarootdir*) ac_datarootdir_seen=yes;;
41068 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
41069   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
41070 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
41071 _ACEOF
41072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41073   ac_datarootdir_hack='
41074   s&@datadir@&$datadir&g
41075   s&@docdir@&$docdir&g
41076   s&@infodir@&$infodir&g
41077   s&@localedir@&$localedir&g
41078   s&@mandir@&$mandir&g
41079   s&\\\${datarootdir}&$datarootdir&g' ;;
41080 esac
41081 _ACEOF
41082
41083 # Neutralize VPATH when `$srcdir' = `.'.
41084 # Shell code in configure.ac might set extrasub.
41085 # FIXME: do we really want to maintain this feature?
41086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41087 ac_sed_extra="$ac_vpsub
41088 $extrasub
41089 _ACEOF
41090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41091 :t
41092 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41093 s|@configure_input@|$ac_sed_conf_input|;t t
41094 s&@top_builddir@&$ac_top_builddir_sub&;t t
41095 s&@top_build_prefix@&$ac_top_build_prefix&;t t
41096 s&@srcdir@&$ac_srcdir&;t t
41097 s&@abs_srcdir@&$ac_abs_srcdir&;t t
41098 s&@top_srcdir@&$ac_top_srcdir&;t t
41099 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
41100 s&@builddir@&$ac_builddir&;t t
41101 s&@abs_builddir@&$ac_abs_builddir&;t t
41102 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
41103 s&@INSTALL@&$ac_INSTALL&;t t
41104 s&@MKDIR_P@&$ac_MKDIR_P&;t t
41105 $ac_datarootdir_hack
41106 "
41107 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
41108   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
41109
41110 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
41111   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
41112   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
41113       "$ac_tmp/out"`; test -z "$ac_out"; } &&
41114   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
41115 which seems to be undefined.  Please make sure it is defined" >&5
41116 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
41117 which seems to be undefined.  Please make sure it is defined" >&2;}
41118
41119   rm -f "$ac_tmp/stdin"
41120   case $ac_file in
41121   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
41122   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
41123   esac \
41124   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
41125  ;;
41126   :H)
41127   #
41128   # CONFIG_HEADER
41129   #
41130   if test x"$ac_file" != x-; then
41131     {
41132       $as_echo "/* $configure_input  */" \
41133       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
41134     } >"$ac_tmp/config.h" \
41135       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
41136     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
41137       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
41138 $as_echo "$as_me: $ac_file is unchanged" >&6;}
41139     else
41140       rm -f "$ac_file"
41141       mv "$ac_tmp/config.h" "$ac_file" \
41142         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
41143     fi
41144   else
41145     $as_echo "/* $configure_input  */" \
41146       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
41147       || as_fn_error $? "could not create -" "$LINENO" 5
41148   fi
41149 # Compute "$ac_file"'s index in $config_headers.
41150 _am_arg="$ac_file"
41151 _am_stamp_count=1
41152 for _am_header in $config_headers :; do
41153   case $_am_header in
41154     $_am_arg | $_am_arg:* )
41155       break ;;
41156     * )
41157       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
41158   esac
41159 done
41160 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
41161 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41162          X"$_am_arg" : 'X\(//\)[^/]' \| \
41163          X"$_am_arg" : 'X\(//\)$' \| \
41164          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
41165 $as_echo X"$_am_arg" |
41166     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41167             s//\1/
41168             q
41169           }
41170           /^X\(\/\/\)[^/].*/{
41171             s//\1/
41172             q
41173           }
41174           /^X\(\/\/\)$/{
41175             s//\1/
41176             q
41177           }
41178           /^X\(\/\).*/{
41179             s//\1/
41180             q
41181           }
41182           s/.*/./; q'`/stamp-h$_am_stamp_count
41183  ;;
41184
41185   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
41186 $as_echo "$as_me: executing $ac_file commands" >&6;}
41187  ;;
41188   esac
41189
41190
41191   case $ac_file$ac_mode in
41192     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
41193   # Older Autoconf quotes --file arguments for eval, but not when files
41194   # are listed without --file.  Let's play safe and only enable the eval
41195   # if we detect the quoting.
41196   case $CONFIG_FILES in
41197   *\'*) eval set x "$CONFIG_FILES" ;;
41198   *)   set x $CONFIG_FILES ;;
41199   esac
41200   shift
41201   for mf
41202   do
41203     # Strip MF so we end up with the name of the file.
41204     mf=`echo "$mf" | sed -e 's/:.*$//'`
41205     # Check whether this is an Automake generated Makefile or not.
41206     # We used to match only the files named 'Makefile.in', but
41207     # some people rename them; so instead we look at the file content.
41208     # Grep'ing the first line is not enough: some people post-process
41209     # each Makefile.in and add a new line on top of each file to say so.
41210     # Grep'ing the whole file is not good either: AIX grep has a line
41211     # limit of 2048, but all sed's we know have understand at least 4000.
41212     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
41213       dirpart=`$as_dirname -- "$mf" ||
41214 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41215          X"$mf" : 'X\(//\)[^/]' \| \
41216          X"$mf" : 'X\(//\)$' \| \
41217          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
41218 $as_echo X"$mf" |
41219     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41220             s//\1/
41221             q
41222           }
41223           /^X\(\/\/\)[^/].*/{
41224             s//\1/
41225             q
41226           }
41227           /^X\(\/\/\)$/{
41228             s//\1/
41229             q
41230           }
41231           /^X\(\/\).*/{
41232             s//\1/
41233             q
41234           }
41235           s/.*/./; q'`
41236     else
41237       continue
41238     fi
41239     # Extract the definition of DEPDIR, am__include, and am__quote
41240     # from the Makefile without running 'make'.
41241     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
41242     test -z "$DEPDIR" && continue
41243     am__include=`sed -n 's/^am__include = //p' < "$mf"`
41244     test -z "$am__include" && continue
41245     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
41246     # Find all dependency output files, they are included files with
41247     # $(DEPDIR) in their names.  We invoke sed twice because it is the
41248     # simplest approach to changing $(DEPDIR) to its actual value in the
41249     # expansion.
41250     for file in `sed -n "
41251       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
41252          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
41253       # Make sure the directory exists.
41254       test -f "$dirpart/$file" && continue
41255       fdir=`$as_dirname -- "$file" ||
41256 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41257          X"$file" : 'X\(//\)[^/]' \| \
41258          X"$file" : 'X\(//\)$' \| \
41259          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
41260 $as_echo X"$file" |
41261     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41262             s//\1/
41263             q
41264           }
41265           /^X\(\/\/\)[^/].*/{
41266             s//\1/
41267             q
41268           }
41269           /^X\(\/\/\)$/{
41270             s//\1/
41271             q
41272           }
41273           /^X\(\/\).*/{
41274             s//\1/
41275             q
41276           }
41277           s/.*/./; q'`
41278       as_dir=$dirpart/$fdir; as_fn_mkdir_p
41279       # echo "creating $dirpart/$file"
41280       echo '# dummy' > "$dirpart/$file"
41281     done
41282   done
41283 }
41284  ;;
41285     "libtool":C)
41286
41287     # See if we are running on zsh, and set the options which allow our
41288     # commands through without removal of \ escapes.
41289     if test -n "${ZSH_VERSION+set}" ; then
41290       setopt NO_GLOB_SUBST
41291     fi
41292
41293     cfgfile="${ofile}T"
41294     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
41295     $RM "$cfgfile"
41296
41297     cat <<_LT_EOF >> "$cfgfile"
41298 #! $SHELL
41299
41300 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
41301 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
41302 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
41303 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
41304 #
41305 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
41306 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
41307 #                 Foundation, Inc.
41308 #   Written by Gordon Matzigkeit, 1996
41309 #
41310 #   This file is part of GNU Libtool.
41311 #
41312 # GNU Libtool is free software; you can redistribute it and/or
41313 # modify it under the terms of the GNU General Public License as
41314 # published by the Free Software Foundation; either version 2 of
41315 # the License, or (at your option) any later version.
41316 #
41317 # As a special exception to the GNU General Public License,
41318 # if you distribute this file as part of a program or library that
41319 # is built using GNU Libtool, you may include this file under the
41320 # same distribution terms that you use for the rest of that program.
41321 #
41322 # GNU Libtool is distributed in the hope that it will be useful,
41323 # but WITHOUT ANY WARRANTY; without even the implied warranty of
41324 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
41325 # GNU General Public License for more details.
41326 #
41327 # You should have received a copy of the GNU General Public License
41328 # along with GNU Libtool; see the file COPYING.  If not, a copy
41329 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
41330 # obtained by writing to the Free Software Foundation, Inc.,
41331 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
41332
41333
41334 # The names of the tagged configurations supported by this script.
41335 available_tags=""
41336
41337 # ### BEGIN LIBTOOL CONFIG
41338
41339 # Which release of libtool.m4 was used?
41340 macro_version=$macro_version
41341 macro_revision=$macro_revision
41342
41343 # Assembler program.
41344 AS=$lt_AS
41345
41346 # DLL creation program.
41347 DLLTOOL=$lt_DLLTOOL
41348
41349 # Object dumper program.
41350 OBJDUMP=$lt_OBJDUMP
41351
41352 # Whether or not to build shared libraries.
41353 build_libtool_libs=$enable_shared
41354
41355 # Whether or not to build static libraries.
41356 build_old_libs=$enable_static
41357
41358 # What type of objects to build.
41359 pic_mode=$pic_mode
41360
41361 # Whether or not to optimize for fast installation.
41362 fast_install=$enable_fast_install
41363
41364 # Shell to use when invoking shell scripts.
41365 SHELL=$lt_SHELL
41366
41367 # An echo program that protects backslashes.
41368 ECHO=$lt_ECHO
41369
41370 # The PATH separator for the build system.
41371 PATH_SEPARATOR=$lt_PATH_SEPARATOR
41372
41373 # The host system.
41374 host_alias=$host_alias
41375 host=$host
41376 host_os=$host_os
41377
41378 # The build system.
41379 build_alias=$build_alias
41380 build=$build
41381 build_os=$build_os
41382
41383 # A sed program that does not truncate output.
41384 SED=$lt_SED
41385
41386 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
41387 Xsed="\$SED -e 1s/^X//"
41388
41389 # A grep program that handles long lines.
41390 GREP=$lt_GREP
41391
41392 # An ERE matcher.
41393 EGREP=$lt_EGREP
41394
41395 # A literal string matcher.
41396 FGREP=$lt_FGREP
41397
41398 # A BSD- or MS-compatible name lister.
41399 NM=$lt_NM
41400
41401 # Whether we need soft or hard links.
41402 LN_S=$lt_LN_S
41403
41404 # What is the maximum length of a command?
41405 max_cmd_len=$max_cmd_len
41406
41407 # Object file suffix (normally "o").
41408 objext=$ac_objext
41409
41410 # Executable file suffix (normally "").
41411 exeext=$exeext
41412
41413 # whether the shell understands "unset".
41414 lt_unset=$lt_unset
41415
41416 # turn spaces into newlines.
41417 SP2NL=$lt_lt_SP2NL
41418
41419 # turn newlines into spaces.
41420 NL2SP=$lt_lt_NL2SP
41421
41422 # convert \$build file names to \$host format.
41423 to_host_file_cmd=$lt_cv_to_host_file_cmd
41424
41425 # convert \$build files to toolchain format.
41426 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
41427
41428 # Method to check whether dependent libraries are shared objects.
41429 deplibs_check_method=$lt_deplibs_check_method
41430
41431 # Command to use when deplibs_check_method = "file_magic".
41432 file_magic_cmd=$lt_file_magic_cmd
41433
41434 # How to find potential files when deplibs_check_method = "file_magic".
41435 file_magic_glob=$lt_file_magic_glob
41436
41437 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
41438 want_nocaseglob=$lt_want_nocaseglob
41439
41440 # Command to associate shared and link libraries.
41441 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
41442
41443 # The archiver.
41444 AR=$lt_AR
41445
41446 # Flags to create an archive.
41447 AR_FLAGS=$lt_AR_FLAGS
41448
41449 # How to feed a file listing to the archiver.
41450 archiver_list_spec=$lt_archiver_list_spec
41451
41452 # A symbol stripping program.
41453 STRIP=$lt_STRIP
41454
41455 # Commands used to install an old-style archive.
41456 RANLIB=$lt_RANLIB
41457 old_postinstall_cmds=$lt_old_postinstall_cmds
41458 old_postuninstall_cmds=$lt_old_postuninstall_cmds
41459
41460 # Whether to use a lock for old archive extraction.
41461 lock_old_archive_extraction=$lock_old_archive_extraction
41462
41463 # A C compiler.
41464 LTCC=$lt_CC
41465
41466 # LTCC compiler flags.
41467 LTCFLAGS=$lt_CFLAGS
41468
41469 # Take the output of nm and produce a listing of raw symbols and C names.
41470 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
41471
41472 # Transform the output of nm in a proper C declaration.
41473 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
41474
41475 # Transform the output of nm in a C name address pair.
41476 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
41477
41478 # Transform the output of nm in a C name address pair when lib prefix is needed.
41479 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
41480
41481 # Specify filename containing input files for \$NM.
41482 nm_file_list_spec=$lt_nm_file_list_spec
41483
41484 # The root where to search for dependent libraries,and in which our libraries should be installed.
41485 lt_sysroot=$lt_sysroot
41486
41487 # The name of the directory that contains temporary libtool files.
41488 objdir=$objdir
41489
41490 # Used to examine libraries when file_magic_cmd begins with "file".
41491 MAGIC_CMD=$MAGIC_CMD
41492
41493 # Must we lock files when doing compilation?
41494 need_locks=$lt_need_locks
41495
41496 # Manifest tool.
41497 MANIFEST_TOOL=$lt_MANIFEST_TOOL
41498
41499 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
41500 DSYMUTIL=$lt_DSYMUTIL
41501
41502 # Tool to change global to local symbols on Mac OS X.
41503 NMEDIT=$lt_NMEDIT
41504
41505 # Tool to manipulate fat objects and archives on Mac OS X.
41506 LIPO=$lt_LIPO
41507
41508 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
41509 OTOOL=$lt_OTOOL
41510
41511 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
41512 OTOOL64=$lt_OTOOL64
41513
41514 # Old archive suffix (normally "a").
41515 libext=$libext
41516
41517 # Shared library suffix (normally ".so").
41518 shrext_cmds=$lt_shrext_cmds
41519
41520 # The commands to extract the exported symbol list from a shared archive.
41521 extract_expsyms_cmds=$lt_extract_expsyms_cmds
41522
41523 # Variables whose values should be saved in libtool wrapper scripts and
41524 # restored at link time.
41525 variables_saved_for_relink=$lt_variables_saved_for_relink
41526
41527 # Do we need the "lib" prefix for modules?
41528 need_lib_prefix=$need_lib_prefix
41529
41530 # Do we need a version for libraries?
41531 need_version=$need_version
41532
41533 # Library versioning type.
41534 version_type=$version_type
41535
41536 # Shared library runtime path variable.
41537 runpath_var=$runpath_var
41538
41539 # Shared library path variable.
41540 shlibpath_var=$shlibpath_var
41541
41542 # Is shlibpath searched before the hard-coded library search path?
41543 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
41544
41545 # Format of library name prefix.
41546 libname_spec=$lt_libname_spec
41547
41548 # List of archive names.  First name is the real one, the rest are links.
41549 # The last name is the one that the linker finds with -lNAME
41550 library_names_spec=$lt_library_names_spec
41551
41552 # The coded name of the library, if different from the real name.
41553 soname_spec=$lt_soname_spec
41554
41555 # Permission mode override for installation of shared libraries.
41556 install_override_mode=$lt_install_override_mode
41557
41558 # Command to use after installation of a shared archive.
41559 postinstall_cmds=$lt_postinstall_cmds
41560
41561 # Command to use after uninstallation of a shared archive.
41562 postuninstall_cmds=$lt_postuninstall_cmds
41563
41564 # Commands used to finish a libtool library installation in a directory.
41565 finish_cmds=$lt_finish_cmds
41566
41567 # As "finish_cmds", except a single script fragment to be evaled but
41568 # not shown.
41569 finish_eval=$lt_finish_eval
41570
41571 # Whether we should hardcode library paths into libraries.
41572 hardcode_into_libs=$hardcode_into_libs
41573
41574 # Compile-time system search path for libraries.
41575 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
41576
41577 # Run-time system search path for libraries.
41578 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
41579
41580 # Whether dlopen is supported.
41581 dlopen_support=$enable_dlopen
41582
41583 # Whether dlopen of programs is supported.
41584 dlopen_self=$enable_dlopen_self
41585
41586 # Whether dlopen of statically linked programs is supported.
41587 dlopen_self_static=$enable_dlopen_self_static
41588
41589 # Commands to strip libraries.
41590 old_striplib=$lt_old_striplib
41591 striplib=$lt_striplib
41592
41593
41594 # The linker used to build libraries.
41595 LD=$lt_LD
41596
41597 # How to create reloadable object files.
41598 reload_flag=$lt_reload_flag
41599 reload_cmds=$lt_reload_cmds
41600
41601 # Commands used to build an old-style archive.
41602 old_archive_cmds=$lt_old_archive_cmds
41603
41604 # A language specific compiler.
41605 CC=$lt_compiler
41606
41607 # Is the compiler the GNU compiler?
41608 with_gcc=$GCC
41609
41610 # Compiler flag to turn off builtin functions.
41611 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
41612
41613 # Additional compiler flags for building library objects.
41614 pic_flag=$lt_lt_prog_compiler_pic
41615
41616 # How to pass a linker flag through the compiler.
41617 wl=$lt_lt_prog_compiler_wl
41618
41619 # Compiler flag to prevent dynamic linking.
41620 link_static_flag=$lt_lt_prog_compiler_static
41621
41622 # Does compiler simultaneously support -c and -o options?
41623 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
41624
41625 # Whether or not to add -lc for building shared libraries.
41626 build_libtool_need_lc=$archive_cmds_need_lc
41627
41628 # Whether or not to disallow shared libs when runtime libs are static.
41629 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
41630
41631 # Compiler flag to allow reflexive dlopens.
41632 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
41633
41634 # Compiler flag to generate shared objects directly from archives.
41635 whole_archive_flag_spec=$lt_whole_archive_flag_spec
41636
41637 # Whether the compiler copes with passing no objects directly.
41638 compiler_needs_object=$lt_compiler_needs_object
41639
41640 # Create an old-style archive from a shared archive.
41641 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
41642
41643 # Create a temporary old-style archive to link instead of a shared archive.
41644 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
41645
41646 # Commands used to build a shared archive.
41647 archive_cmds=$lt_archive_cmds
41648 archive_expsym_cmds=$lt_archive_expsym_cmds
41649
41650 # Commands used to build a loadable module if different from building
41651 # a shared archive.
41652 module_cmds=$lt_module_cmds
41653 module_expsym_cmds=$lt_module_expsym_cmds
41654
41655 # Whether we are building with GNU ld or not.
41656 with_gnu_ld=$lt_with_gnu_ld
41657
41658 # Flag that allows shared libraries with undefined symbols to be built.
41659 allow_undefined_flag=$lt_allow_undefined_flag
41660
41661 # Flag that enforces no undefined symbols.
41662 no_undefined_flag=$lt_no_undefined_flag
41663
41664 # Flag to hardcode \$libdir into a binary during linking.
41665 # This must work even if \$libdir does not exist
41666 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
41667
41668 # Whether we need a single "-rpath" flag with a separated argument.
41669 hardcode_libdir_separator=$lt_hardcode_libdir_separator
41670
41671 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
41672 # DIR into the resulting binary.
41673 hardcode_direct=$hardcode_direct
41674
41675 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
41676 # DIR into the resulting binary and the resulting library dependency is
41677 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
41678 # library is relocated.
41679 hardcode_direct_absolute=$hardcode_direct_absolute
41680
41681 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
41682 # into the resulting binary.
41683 hardcode_minus_L=$hardcode_minus_L
41684
41685 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
41686 # into the resulting binary.
41687 hardcode_shlibpath_var=$hardcode_shlibpath_var
41688
41689 # Set to "yes" if building a shared library automatically hardcodes DIR
41690 # into the library and all subsequent libraries and executables linked
41691 # against it.
41692 hardcode_automatic=$hardcode_automatic
41693
41694 # Set to yes if linker adds runtime paths of dependent libraries
41695 # to runtime path list.
41696 inherit_rpath=$inherit_rpath
41697
41698 # Whether libtool must link a program against all its dependency libraries.
41699 link_all_deplibs=$link_all_deplibs
41700
41701 # Set to "yes" if exported symbols are required.
41702 always_export_symbols=$always_export_symbols
41703
41704 # The commands to list exported symbols.
41705 export_symbols_cmds=$lt_export_symbols_cmds
41706
41707 # Symbols that should not be listed in the preloaded symbols.
41708 exclude_expsyms=$lt_exclude_expsyms
41709
41710 # Symbols that must always be exported.
41711 include_expsyms=$lt_include_expsyms
41712
41713 # Commands necessary for linking programs (against libraries) with templates.
41714 prelink_cmds=$lt_prelink_cmds
41715
41716 # Commands necessary for finishing linking programs.
41717 postlink_cmds=$lt_postlink_cmds
41718
41719 # Specify filename containing input files.
41720 file_list_spec=$lt_file_list_spec
41721
41722 # How to hardcode a shared library path into an executable.
41723 hardcode_action=$hardcode_action
41724
41725 # ### END LIBTOOL CONFIG
41726
41727 _LT_EOF
41728
41729   case $host_os in
41730   aix3*)
41731     cat <<\_LT_EOF >> "$cfgfile"
41732 # AIX sometimes has problems with the GCC collect2 program.  For some
41733 # reason, if we set the COLLECT_NAMES environment variable, the problems
41734 # vanish in a puff of smoke.
41735 if test "X${COLLECT_NAMES+set}" != Xset; then
41736   COLLECT_NAMES=
41737   export COLLECT_NAMES
41738 fi
41739 _LT_EOF
41740     ;;
41741   esac
41742
41743
41744 ltmain="$ac_aux_dir/ltmain.sh"
41745
41746
41747   # We use sed instead of cat because bash on DJGPP gets confused if
41748   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
41749   # text mode, it properly converts lines to CR/LF.  This bash problem
41750   # is reportedly fixed, but why not run on old versions too?
41751   sed '$q' "$ltmain" >> "$cfgfile" \
41752      || (rm -f "$cfgfile"; exit 1)
41753
41754   if test x"$xsi_shell" = xyes; then
41755   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
41756 func_dirname ()\
41757 {\
41758 \    case ${1} in\
41759 \      */*) func_dirname_result="${1%/*}${2}" ;;\
41760 \      *  ) func_dirname_result="${3}" ;;\
41761 \    esac\
41762 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
41763   && mv -f "$cfgfile.tmp" "$cfgfile" \
41764     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41765 test 0 -eq $? || _lt_function_replace_fail=:
41766
41767
41768   sed -e '/^func_basename ()$/,/^} # func_basename /c\
41769 func_basename ()\
41770 {\
41771 \    func_basename_result="${1##*/}"\
41772 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
41773   && mv -f "$cfgfile.tmp" "$cfgfile" \
41774     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41775 test 0 -eq $? || _lt_function_replace_fail=:
41776
41777
41778   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
41779 func_dirname_and_basename ()\
41780 {\
41781 \    case ${1} in\
41782 \      */*) func_dirname_result="${1%/*}${2}" ;;\
41783 \      *  ) func_dirname_result="${3}" ;;\
41784 \    esac\
41785 \    func_basename_result="${1##*/}"\
41786 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
41787   && mv -f "$cfgfile.tmp" "$cfgfile" \
41788     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41789 test 0 -eq $? || _lt_function_replace_fail=:
41790
41791
41792   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
41793 func_stripname ()\
41794 {\
41795 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
41796 \    # positional parameters, so assign one to ordinary parameter first.\
41797 \    func_stripname_result=${3}\
41798 \    func_stripname_result=${func_stripname_result#"${1}"}\
41799 \    func_stripname_result=${func_stripname_result%"${2}"}\
41800 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
41801   && mv -f "$cfgfile.tmp" "$cfgfile" \
41802     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41803 test 0 -eq $? || _lt_function_replace_fail=:
41804
41805
41806   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
41807 func_split_long_opt ()\
41808 {\
41809 \    func_split_long_opt_name=${1%%=*}\
41810 \    func_split_long_opt_arg=${1#*=}\
41811 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
41812   && mv -f "$cfgfile.tmp" "$cfgfile" \
41813     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41814 test 0 -eq $? || _lt_function_replace_fail=:
41815
41816
41817   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
41818 func_split_short_opt ()\
41819 {\
41820 \    func_split_short_opt_arg=${1#??}\
41821 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
41822 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
41823   && mv -f "$cfgfile.tmp" "$cfgfile" \
41824     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41825 test 0 -eq $? || _lt_function_replace_fail=:
41826
41827
41828   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
41829 func_lo2o ()\
41830 {\
41831 \    case ${1} in\
41832 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
41833 \      *)    func_lo2o_result=${1} ;;\
41834 \    esac\
41835 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
41836   && mv -f "$cfgfile.tmp" "$cfgfile" \
41837     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41838 test 0 -eq $? || _lt_function_replace_fail=:
41839
41840
41841   sed -e '/^func_xform ()$/,/^} # func_xform /c\
41842 func_xform ()\
41843 {\
41844     func_xform_result=${1%.*}.lo\
41845 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
41846   && mv -f "$cfgfile.tmp" "$cfgfile" \
41847     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41848 test 0 -eq $? || _lt_function_replace_fail=:
41849
41850
41851   sed -e '/^func_arith ()$/,/^} # func_arith /c\
41852 func_arith ()\
41853 {\
41854     func_arith_result=$(( $* ))\
41855 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
41856   && mv -f "$cfgfile.tmp" "$cfgfile" \
41857     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41858 test 0 -eq $? || _lt_function_replace_fail=:
41859
41860
41861   sed -e '/^func_len ()$/,/^} # func_len /c\
41862 func_len ()\
41863 {\
41864     func_len_result=${#1}\
41865 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
41866   && mv -f "$cfgfile.tmp" "$cfgfile" \
41867     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41868 test 0 -eq $? || _lt_function_replace_fail=:
41869
41870 fi
41871
41872 if test x"$lt_shell_append" = xyes; then
41873   sed -e '/^func_append ()$/,/^} # func_append /c\
41874 func_append ()\
41875 {\
41876     eval "${1}+=\\${2}"\
41877 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
41878   && mv -f "$cfgfile.tmp" "$cfgfile" \
41879     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41880 test 0 -eq $? || _lt_function_replace_fail=:
41881
41882
41883   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
41884 func_append_quoted ()\
41885 {\
41886 \    func_quote_for_eval "${2}"\
41887 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
41888 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
41889   && mv -f "$cfgfile.tmp" "$cfgfile" \
41890     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41891 test 0 -eq $? || _lt_function_replace_fail=:
41892
41893
41894   # Save a `func_append' function call where possible by direct use of '+='
41895   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
41896     && mv -f "$cfgfile.tmp" "$cfgfile" \
41897       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41898   test 0 -eq $? || _lt_function_replace_fail=:
41899 else
41900   # Save a `func_append' function call even when '+=' is not available
41901   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
41902     && mv -f "$cfgfile.tmp" "$cfgfile" \
41903       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41904   test 0 -eq $? || _lt_function_replace_fail=:
41905 fi
41906
41907 if test x"$_lt_function_replace_fail" = x":"; then
41908   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
41909 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
41910 fi
41911
41912
41913    mv -f "$cfgfile" "$ofile" ||
41914     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
41915   chmod +x "$ofile"
41916
41917  ;;
41918
41919   esac
41920 done # for ac_tag
41921
41922
41923 as_fn_exit 0
41924 _ACEOF
41925 ac_clean_files=$ac_clean_files_save
41926
41927 test $ac_write_fail = 0 ||
41928   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
41929
41930
41931 # configure is writing to config.log, and then calls config.status.
41932 # config.status does its own redirection, appending to config.log.
41933 # Unfortunately, on DOS this fails, as config.log is still kept open
41934 # by configure, so config.status won't be able to write to it; its
41935 # output is simply discarded.  So we exec the FD to /dev/null,
41936 # effectively closing config.log, so it can be properly (re)opened and
41937 # appended to by config.status.  When coming back to configure, we
41938 # need to make the FD available again.
41939 if test "$no_create" != yes; then
41940   ac_cs_success=:
41941   ac_config_status_args=
41942   test "$silent" = yes &&
41943     ac_config_status_args="$ac_config_status_args --quiet"
41944   exec 5>/dev/null
41945   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
41946   exec 5>>config.log
41947   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
41948   # would make configure fail if this is the last instruction.
41949   $ac_cs_success || as_fn_exit 1
41950 fi
41951
41952 #
41953 # CONFIG_SUBDIRS section.
41954 #
41955 if test "$no_recursion" != yes; then
41956
41957   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
41958   # so they do not pile up.
41959   ac_sub_configure_args=
41960   ac_prev=
41961   eval "set x $ac_configure_args"
41962   shift
41963   for ac_arg
41964   do
41965     if test -n "$ac_prev"; then
41966       ac_prev=
41967       continue
41968     fi
41969     case $ac_arg in
41970     -cache-file | --cache-file | --cache-fil | --cache-fi \
41971     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
41972       ac_prev=cache_file ;;
41973     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
41974     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
41975     | --c=*)
41976       ;;
41977     --config-cache | -C)
41978       ;;
41979     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
41980       ac_prev=srcdir ;;
41981     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
41982       ;;
41983     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
41984       ac_prev=prefix ;;
41985     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
41986       ;;
41987     --disable-option-checking)
41988       ;;
41989     *)
41990       case $ac_arg in
41991       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
41992       esac
41993       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
41994     esac
41995   done
41996
41997   # Always prepend --prefix to ensure using the same prefix
41998   # in subdir configurations.
41999   ac_arg="--prefix=$prefix"
42000   case $ac_arg in
42001   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42002   esac
42003   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
42004
42005   # Pass --silent
42006   if test "$silent" = yes; then
42007     ac_sub_configure_args="--silent $ac_sub_configure_args"
42008   fi
42009
42010   # Always prepend --disable-option-checking to silence warnings, since
42011   # different subdirs can have different --enable and --with options.
42012   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
42013
42014   ac_popdir=`pwd`
42015   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
42016
42017     # Do not complain, so a configure script can configure whichever
42018     # parts of a large source tree are present.
42019     test -d "$srcdir/$ac_dir" || continue
42020
42021     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
42022     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
42023     $as_echo "$ac_msg" >&6
42024     as_dir="$ac_dir"; as_fn_mkdir_p
42025     ac_builddir=.
42026
42027 case "$ac_dir" in
42028 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42029 *)
42030   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
42031   # A ".." for each directory in $ac_dir_suffix.
42032   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
42033   case $ac_top_builddir_sub in
42034   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42035   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42036   esac ;;
42037 esac
42038 ac_abs_top_builddir=$ac_pwd
42039 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42040 # for backward compatibility:
42041 ac_top_builddir=$ac_top_build_prefix
42042
42043 case $srcdir in
42044   .)  # We are building in place.
42045     ac_srcdir=.
42046     ac_top_srcdir=$ac_top_builddir_sub
42047     ac_abs_top_srcdir=$ac_pwd ;;
42048   [\\/]* | ?:[\\/]* )  # Absolute name.
42049     ac_srcdir=$srcdir$ac_dir_suffix;
42050     ac_top_srcdir=$srcdir
42051     ac_abs_top_srcdir=$srcdir ;;
42052   *) # Relative name.
42053     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42054     ac_top_srcdir=$ac_top_build_prefix$srcdir
42055     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42056 esac
42057 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42058
42059
42060     cd "$ac_dir"
42061
42062     # Check for guested configure; otherwise get Cygnus style configure.
42063     if test -f "$ac_srcdir/configure.gnu"; then
42064       ac_sub_configure=$ac_srcdir/configure.gnu
42065     elif test -f "$ac_srcdir/configure"; then
42066       ac_sub_configure=$ac_srcdir/configure
42067     elif test -f "$ac_srcdir/configure.in"; then
42068       # This should be Cygnus configure.
42069       ac_sub_configure=$ac_aux_dir/configure
42070     else
42071       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
42072 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
42073       ac_sub_configure=
42074     fi
42075
42076     # The recursion is here.
42077     if test -n "$ac_sub_configure"; then
42078       # Make the cache file name correct relative to the subdirectory.
42079       case $cache_file in
42080       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
42081       *) # Relative name.
42082         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
42083       esac
42084
42085       { $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
42086 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
42087       # The eval makes quoting arguments work.
42088       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
42089            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
42090         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
42091     fi
42092
42093     cd "$ac_popdir"
42094   done
42095 fi
42096 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
42097   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
42098 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42099 fi
42100
42101
42102
42103     tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
42104   if test -z "$tmp_cpp"; then
42105     tmp_cpp='cpp'
42106   fi
42107   cat >./tests/configurehelp.pm <<_EOF
42108 # This is a generated file.  Do not edit.
42109
42110 package configurehelp;
42111
42112 use strict;
42113 use warnings;
42114 use Exporter;
42115
42116 use vars qw(
42117     @ISA
42118     @EXPORT_OK
42119     \$Cpreprocessor
42120     );
42121
42122 @ISA = qw(Exporter);
42123
42124 @EXPORT_OK = qw(
42125     \$Cpreprocessor
42126     );
42127
42128 \$Cpreprocessor = '$tmp_cpp';
42129
42130 1;
42131 _EOF
42132
42133
42134
42135 ## ---------------------------------- ##
42136 ##  Start of distclean amending code  ##
42137 ## ---------------------------------- ##
42138
42139 for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
42140 do
42141
42142 if test ! -f "$xc_subdir/Makefile"; then
42143   echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
42144   exit 1
42145 fi
42146
42147 # Fetch dependency tracking file list from Makefile include lines.
42148
42149 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
42150 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
42151
42152 # --disable-dependency-tracking might have been used, consequently
42153 # there is nothing to amend without a dependency tracking file list.
42154
42155 if test $xc_cnt_words -gt 0; then
42156
42157 { $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
42158 $as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
42159
42160 # Build Makefile specific patch hunk.
42161
42162 xc_p="$xc_subdir/xc_patch.tmp"
42163
42164 xc_rm_depfiles=`echo "$xc_inc_lines" \
42165   | $SED 's%include%    -rm -f%' 2>/dev/null`
42166
42167 xc_dep_subdirs=`echo "$xc_inc_lines" \
42168   | $SED 's%include[ ][ ]*%%' 2>/dev/null \
42169   | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
42170   | sort | uniq`
42171
42172 echo "$xc_rm_depfiles" >$xc_p
42173
42174 for xc_dep_dir in $xc_dep_subdirs; do
42175   echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\"            >>$xc_p
42176   echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\"      >>$xc_p
42177   echo "${xc_tab}  rm -rf $xc_dep_dir; \\"                                          >>$xc_p
42178   echo "${xc_tab}fi"                                                                >>$xc_p
42179 done
42180
42181 # Build Makefile patching sed scripts.
42182
42183 xc_s1="$xc_subdir/xc_script_1.tmp"
42184 xc_s2="$xc_subdir/xc_script_2.tmp"
42185 xc_s3="$xc_subdir/xc_script_3.tmp"
42186
42187 cat >$xc_s1 <<\_EOT
42188 /^distclean[ ]*:/,/^[^  ][^     ]*:/{
42189   s/^.*(DEPDIR)/___xc_depdir_line___/
42190 }
42191 /^maintainer-clean[ ]*:/,/^[^   ][^     ]*:/{
42192   s/^.*(DEPDIR)/___xc_depdir_line___/
42193 }
42194 _EOT
42195
42196 cat >$xc_s2 <<\_EOT
42197 /___xc_depdir_line___$/{
42198   N
42199   /___xc_depdir_line___$/D
42200 }
42201 _EOT
42202
42203 cat >$xc_s3 <<_EOT
42204 /^___xc_depdir_line___/{
42205   r $xc_p
42206   d
42207 }
42208 _EOT
42209
42210 # Apply patch to Makefile and cleanup.
42211
42212 $SED -f "$xc_s1" "$xc_subdir/Makefile"      >"$xc_subdir/Makefile.tmp1"
42213 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
42214 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
42215
42216 if test -f "$xc_subdir/Makefile.tmp3"; then
42217   mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
42218 fi
42219
42220 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
42221 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
42222 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
42223
42224 test -f "$xc_p"  && rm -f "$xc_p"
42225 test -f "$xc_s1" && rm -f "$xc_s1"
42226 test -f "$xc_s2" && rm -f "$xc_s2"
42227 test -f "$xc_s3" && rm -f "$xc_s3"
42228
42229 fi
42230
42231 done
42232
42233 ## -------------------------------- ##
42234 ##  End of distclean amending code  ##
42235 ## -------------------------------- ##
42236
42237
42238
42239 { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
42240
42241   curl version:     ${CURLVERSION}
42242   Host setup:       ${host}
42243   Install prefix:   ${prefix}
42244   Compiler:         ${CC}
42245   SSL support:      ${curl_ssl_msg}
42246   SSH support:      ${curl_ssh_msg}
42247   zlib support:     ${curl_zlib_msg}
42248   GSS-API support:  ${curl_gss_msg}
42249   TLS-SRP support:  ${curl_tls_srp_msg}
42250   resolver:         ${curl_res_msg}
42251   IPv6 support:     ${curl_ipv6_msg}
42252   Unix sockets support: ${curl_unix_sockets_msg}
42253   IDN support:      ${curl_idn_msg}
42254   Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
42255   Built-in manual:  ${curl_manual_msg}
42256   --libcurl option: ${curl_libcurl_msg}
42257   Verbose errors:   ${curl_verbose_msg}
42258   SSPI support:     ${curl_sspi_msg}
42259   ca cert bundle:   ${ca}
42260   ca cert path:     ${capath}
42261   LDAP support:     ${curl_ldap_msg}
42262   LDAPS support:    ${curl_ldaps_msg}
42263   RTSP support:     ${curl_rtsp_msg}
42264   RTMP support:     ${curl_rtmp_msg}
42265   metalink support: ${curl_mtlnk_msg}
42266   HTTP2 support:    ${curl_h2_msg}
42267   Protocols:        ${SUPPORT_PROTOCOLS}
42268 " >&5
42269 $as_echo "$as_me: Configured to build curl/libcurl:
42270
42271   curl version:     ${CURLVERSION}
42272   Host setup:       ${host}
42273   Install prefix:   ${prefix}
42274   Compiler:         ${CC}
42275   SSL support:      ${curl_ssl_msg}
42276   SSH support:      ${curl_ssh_msg}
42277   zlib support:     ${curl_zlib_msg}
42278   GSS-API support:  ${curl_gss_msg}
42279   TLS-SRP support:  ${curl_tls_srp_msg}
42280   resolver:         ${curl_res_msg}
42281   IPv6 support:     ${curl_ipv6_msg}
42282   Unix sockets support: ${curl_unix_sockets_msg}
42283   IDN support:      ${curl_idn_msg}
42284   Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
42285   Built-in manual:  ${curl_manual_msg}
42286   --libcurl option: ${curl_libcurl_msg}
42287   Verbose errors:   ${curl_verbose_msg}
42288   SSPI support:     ${curl_sspi_msg}
42289   ca cert bundle:   ${ca}
42290   ca cert path:     ${capath}
42291   LDAP support:     ${curl_ldap_msg}
42292   LDAPS support:    ${curl_ldaps_msg}
42293   RTSP support:     ${curl_rtsp_msg}
42294   RTMP support:     ${curl_rtmp_msg}
42295   metalink support: ${curl_mtlnk_msg}
42296   HTTP2 support:    ${curl_h2_msg}
42297   Protocols:        ${SUPPORT_PROTOCOLS}
42298 " >&6;}
42299
42300 if test "x$soname_bump" = "xyes"; then
42301
42302 cat <<EOM
42303   SONAME bump:     yes - WARNING: this library will be built with the SONAME
42304                    number bumped due to (a detected) ABI breakage.
42305                    See lib/README.curl_off_t for details on this.
42306 EOM
42307
42308 fi
42309