Update version to 7.53.1
[platform/upstream/curl.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for curl -.
4 #
5 # Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 #
14 # Copyright (c) 1998 - 2016 Daniel Stenberg, <daniel@haxx.se>
15 # This configure script may be copied, distributed and modified under the
16 # terms of the curl license; see COPYING for more details
17
18 ## -------------------------------- ##
19 ##  XC_CONFIGURE_PREAMBLE ver: 1.0  ##
20 ## -------------------------------- ##
21
22 xc_configure_preamble_ver_major='1'
23 xc_configure_preamble_ver_minor='0'
24
25 #
26 # Set IFS to space, tab and newline.
27 #
28
29 xc_space=' '
30 xc_tab='        '
31 xc_newline='
32 '
33 IFS="$xc_space$xc_tab$xc_newline"
34
35 #
36 # Set internationalization behavior variables.
37 #
38
39 LANG='C'
40 LC_ALL='C'
41 LANGUAGE='C'
42 export LANG
43 export LC_ALL
44 export LANGUAGE
45
46 #
47 # Some useful variables.
48 #
49
50 xc_msg_warn='configure: WARNING:'
51 xc_msg_abrt='Can not continue.'
52 xc_msg_err='configure: error:'
53
54 #
55 # Verify that 'echo' command is available, otherwise abort.
56 #
57
58 xc_tst_str='unknown'
59 (`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
60 case "x$xc_tst_str" in # ((
61   xsuccess)
62     :
63     ;;
64   *)
65     # Try built-in echo, and fail.
66     echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
67     exit 1
68     ;;
69 esac
70
71 #
72 # Verify that 'test' command is available, otherwise abort.
73 #
74
75 xc_tst_str='unknown'
76 (`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
77 case "x$xc_tst_str" in # ((
78   xsuccess)
79     :
80     ;;
81   *)
82     echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
83     exit 1
84     ;;
85 esac
86
87 #
88 # Verify that 'PATH' variable is set, otherwise abort.
89 #
90
91 xc_tst_str='unknown'
92 (`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
93 case "x$xc_tst_str" in # ((
94   xsuccess)
95     :
96     ;;
97   *)
98     echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
99     exit 1
100     ;;
101 esac
102
103 #
104 # Verify that 'expr' command is available, otherwise abort.
105 #
106
107 xc_tst_str='unknown'
108 xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
109 case "x$xc_tst_str" in # ((
110   x7)
111     :
112     ;;
113   *)
114     echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
115     exit 1
116     ;;
117 esac
118
119 #
120 # Verify that 'sed' utility is found within 'PATH', otherwise abort.
121 #
122
123 xc_tst_str='unknown'
124 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
125   | sed -e 's:unknown:success:' 2>/dev/null`
126 case "x$xc_tst_str" in # ((
127   xsuccess)
128     :
129     ;;
130   *)
131     echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
132     exit 1
133     ;;
134 esac
135
136 #
137 # Verify that 'grep' utility is found within 'PATH', otherwise abort.
138 #
139
140 xc_tst_str='unknown'
141 (`echo "$xc_tst_str" 2>/dev/null \
142   | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
143 case "x$xc_tst_str" in # ((
144   xsuccess)
145     :
146     ;;
147   *)
148     echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
149     exit 1
150     ;;
151 esac
152
153 #
154 # Verify that 'tr' utility is found within 'PATH', otherwise abort.
155 #
156
157 xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
158 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
159   | tr -d "0123456789$xc_tab" 2>/dev/null`
160 case "x$xc_tst_str" in # ((
161   xsuccess)
162     :
163     ;;
164   *)
165     echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
166     exit 1
167     ;;
168 esac
169
170 #
171 # Verify that 'wc' utility is found within 'PATH', otherwise abort.
172 #
173
174 xc_tst_str='unknown unknown unknown unknown'
175 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
176   | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
177 case "x$xc_tst_str" in # ((
178   x4)
179     :
180     ;;
181   *)
182     echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
183     exit 1
184     ;;
185 esac
186
187 #
188 # Verify that 'cat' utility is found within 'PATH', otherwise abort.
189 #
190
191 xc_tst_str='unknown'
192 xc_tst_str=`cat <<_EOT 2>/dev/null \
193   | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
194 unknown
195 unknown
196 unknown
197 _EOT`
198 case "x$xc_tst_str" in # ((
199   x3)
200     :
201     ;;
202   *)
203     echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
204     exit 1
205     ;;
206 esac
207
208 #
209 # Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
210 #
211
212 # Directory count in 'PATH' when using a colon separator.
213 xc_tst_dirs_col='x'
214 xc_tst_prev_IFS=$IFS; IFS=':'
215 for xc_tst_dir in $PATH; do
216   IFS=$xc_tst_prev_IFS
217   xc_tst_dirs_col="x$xc_tst_dirs_col"
218 done
219 IFS=$xc_tst_prev_IFS
220 xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
221
222 # Directory count in 'PATH' when using a semicolon separator.
223 xc_tst_dirs_sem='x'
224 xc_tst_prev_IFS=$IFS; IFS=';'
225 for xc_tst_dir in $PATH; do
226   IFS=$xc_tst_prev_IFS
227   xc_tst_dirs_sem="x$xc_tst_dirs_sem"
228 done
229 IFS=$xc_tst_prev_IFS
230 xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
231
232 if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
233   # When both counting methods give the same result we do not want to
234   # chose one over the other, and consider auto-detection not possible.
235   if test -z "$PATH_SEPARATOR"; then
236     # Stop dead until user provides 'PATH_SEPARATOR' definition.
237     echo "$xc_msg_err 'PATH_SEPARATOR' variable not set. $xc_msg_abrt" >&2
238     exit 1
239   fi
240 else
241   # Separator with the greater directory count is the auto-detected one.
242   if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
243     xc_tst_auto_separator=';'
244   else
245     xc_tst_auto_separator=':'
246   fi
247   if test -z "$PATH_SEPARATOR"; then
248     # Simply use the auto-detected one when not already set.
249     PATH_SEPARATOR=$xc_tst_auto_separator
250   elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
251     echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
252   fi
253 fi
254 xc_PATH_SEPARATOR=$PATH_SEPARATOR
255
256 xc_configure_preamble_result='yes'
257
258
259 ## -------------------- ##
260 ## M4sh Initialization. ##
261 ## -------------------- ##
262
263 # Be more Bourne compatible
264 DUALCASE=1; export DUALCASE # for MKS sh
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
266   emulate sh
267   NULLCMD=:
268   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
269   # is contrary to our usage.  Disable this feature.
270   alias -g '${1+"$@"}'='"$@"'
271   setopt NO_GLOB_SUBST
272 else
273   case `(set -o) 2>/dev/null` in #(
274   *posix*) :
275     set -o posix ;; #(
276   *) :
277      ;;
278 esac
279 fi
280
281
282 as_nl='
283 '
284 export as_nl
285 # Printing a long string crashes Solaris 7 /usr/bin/printf.
286 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
287 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
288 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
289 # Prefer a ksh shell builtin over an external printf program on Solaris,
290 # but without wasting forks for bash or zsh.
291 if test -z "$BASH_VERSION$ZSH_VERSION" \
292     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
293   as_echo='print -r --'
294   as_echo_n='print -rn --'
295 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
296   as_echo='printf %s\n'
297   as_echo_n='printf %s'
298 else
299   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
300     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
301     as_echo_n='/usr/ucb/echo -n'
302   else
303     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
304     as_echo_n_body='eval
305       arg=$1;
306       case $arg in #(
307       *"$as_nl"*)
308         expr "X$arg" : "X\\(.*\\)$as_nl";
309         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
310       esac;
311       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
312     '
313     export as_echo_n_body
314     as_echo_n='sh -c $as_echo_n_body as_echo'
315   fi
316   export as_echo_body
317   as_echo='sh -c $as_echo_body as_echo'
318 fi
319
320
321
322 # IFS
323 # We need space, tab and new line, in precisely that order.  Quoting is
324 # there to prevent editors from complaining about space-tab.
325 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
326 # splitting by setting IFS to empty value.)
327 IFS=" ""        $as_nl"
328
329 # Find who we are.  Look in the path if we contain no directory separator.
330 as_myself=
331 case $0 in #((
332   *[\\/]* ) as_myself=$0 ;;
333   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
334 for as_dir in $PATH
335 do
336   IFS=$as_save_IFS
337   test -z "$as_dir" && as_dir=.
338     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
339   done
340 IFS=$as_save_IFS
341
342      ;;
343 esac
344 # We did not find ourselves, most probably we were run as `sh COMMAND'
345 # in which case we are not to be found in the path.
346 if test "x$as_myself" = x; then
347   as_myself=$0
348 fi
349 if test ! -f "$as_myself"; then
350   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
351   exit 1
352 fi
353
354 # Unset variables that we do not need and which cause bugs (e.g. in
355 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
356 # suppresses any "Segmentation fault" message there.  '((' could
357 # trigger a bug in pdksh 5.2.14.
358 for as_var in BASH_ENV ENV MAIL MAILPATH
359 do eval test x\${$as_var+set} = xset \
360   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
361 done
362 PS1='$ '
363 PS2='> '
364 PS4='+ '
365
366 # NLS nuisances.
367 LC_ALL=C
368 export LC_ALL
369 LANGUAGE=C
370 export LANGUAGE
371
372 # CDPATH.
373 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
374
375 # Use a proper internal environment variable to ensure we don't fall
376   # into an infinite loop, continuously re-executing ourselves.
377   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
378     _as_can_reexec=no; export _as_can_reexec;
379     # We cannot yet assume a decent shell, so we have to provide a
380 # neutralization value for shells without unset; and this also
381 # works around shells that cannot unset nonexistent variables.
382 # Preserve -v and -x to the replacement shell.
383 BASH_ENV=/dev/null
384 ENV=/dev/null
385 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
386 case $- in # ((((
387   *v*x* | *x*v* ) as_opts=-vx ;;
388   *v* ) as_opts=-v ;;
389   *x* ) as_opts=-x ;;
390   * ) as_opts= ;;
391 esac
392 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
393 # Admittedly, this is quite paranoid, since all the known shells bail
394 # out after a failed `exec'.
395 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
396 as_fn_exit 255
397   fi
398   # We don't want this to propagate to other subprocesses.
399           { _as_can_reexec=; unset _as_can_reexec;}
400 if test "x$CONFIG_SHELL" = x; then
401   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
402   emulate sh
403   NULLCMD=:
404   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
405   # is contrary to our usage.  Disable this feature.
406   alias -g '\${1+\"\$@\"}'='\"\$@\"'
407   setopt NO_GLOB_SUBST
408 else
409   case \`(set -o) 2>/dev/null\` in #(
410   *posix*) :
411     set -o posix ;; #(
412   *) :
413      ;;
414 esac
415 fi
416 "
417   as_required="as_fn_return () { (exit \$1); }
418 as_fn_success () { as_fn_return 0; }
419 as_fn_failure () { as_fn_return 1; }
420 as_fn_ret_success () { return 0; }
421 as_fn_ret_failure () { return 1; }
422
423 exitcode=0
424 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
425 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
426 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
427 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
428 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
429
430 else
431   exitcode=1; echo positional parameters were not saved.
432 fi
433 test x\$exitcode = x0 || exit 1
434 test -x / || exit 1"
435   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
436   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
437   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
438   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
439 test \$(( 1 + 1 )) = 2 || exit 1
440
441   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
442     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
443     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
444     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
445     PATH=/empty FPATH=/empty; export PATH FPATH
446     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
447       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
448   if (eval "$as_required") 2>/dev/null; then :
449   as_have_required=yes
450 else
451   as_have_required=no
452 fi
453   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
454
455 else
456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
457 as_found=false
458 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
459 do
460   IFS=$as_save_IFS
461   test -z "$as_dir" && as_dir=.
462   as_found=:
463   case $as_dir in #(
464          /*)
465            for as_base in sh bash ksh sh5; do
466              # Try only shells that exist, to save several forks.
467              as_shell=$as_dir/$as_base
468              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
469                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
470   CONFIG_SHELL=$as_shell as_have_required=yes
471                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
472   break 2
473 fi
474 fi
475            done;;
476        esac
477   as_found=false
478 done
479 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
480               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
481   CONFIG_SHELL=$SHELL as_have_required=yes
482 fi; }
483 IFS=$as_save_IFS
484
485
486       if test "x$CONFIG_SHELL" != x; then :
487   export CONFIG_SHELL
488              # We cannot yet assume a decent shell, so we have to provide a
489 # neutralization value for shells without unset; and this also
490 # works around shells that cannot unset nonexistent variables.
491 # Preserve -v and -x to the replacement shell.
492 BASH_ENV=/dev/null
493 ENV=/dev/null
494 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
495 case $- in # ((((
496   *v*x* | *x*v* ) as_opts=-vx ;;
497   *v* ) as_opts=-v ;;
498   *x* ) as_opts=-x ;;
499   * ) as_opts= ;;
500 esac
501 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
502 # Admittedly, this is quite paranoid, since all the known shells bail
503 # out after a failed `exec'.
504 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
505 exit 255
506 fi
507
508     if test x$as_have_required = xno; then :
509   $as_echo "$0: This script requires a shell more modern than all"
510   $as_echo "$0: the shells that I found on your system."
511   if test x${ZSH_VERSION+set} = xset ; then
512     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
513     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
514   else
515     $as_echo "$0: Please tell bug-autoconf@gnu.org and a suitable curl
516 $0: mailing list: https://curl.haxx.se/mail/ about your
517 $0: system, including any error possibly output before this
518 $0: message. Then install a modern shell, or manually run
519 $0: the script under such a shell if you do have one."
520   fi
521   exit 1
522 fi
523 fi
524 fi
525 SHELL=${CONFIG_SHELL-/bin/sh}
526 export SHELL
527 # Unset more variables known to interfere with behavior of common tools.
528 CLICOLOR_FORCE= GREP_OPTIONS=
529 unset CLICOLOR_FORCE GREP_OPTIONS
530
531 ## --------------------- ##
532 ## M4sh Shell Functions. ##
533 ## --------------------- ##
534 # as_fn_unset VAR
535 # ---------------
536 # Portably unset VAR.
537 as_fn_unset ()
538 {
539   { eval $1=; unset $1;}
540 }
541 as_unset=as_fn_unset
542
543 # as_fn_set_status STATUS
544 # -----------------------
545 # Set $? to STATUS, without forking.
546 as_fn_set_status ()
547 {
548   return $1
549 } # as_fn_set_status
550
551 # as_fn_exit STATUS
552 # -----------------
553 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
554 as_fn_exit ()
555 {
556   set +e
557   as_fn_set_status $1
558   exit $1
559 } # as_fn_exit
560
561 # as_fn_mkdir_p
562 # -------------
563 # Create "$as_dir" as a directory, including parents if necessary.
564 as_fn_mkdir_p ()
565 {
566
567   case $as_dir in #(
568   -*) as_dir=./$as_dir;;
569   esac
570   test -d "$as_dir" || eval $as_mkdir_p || {
571     as_dirs=
572     while :; do
573       case $as_dir in #(
574       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
575       *) as_qdir=$as_dir;;
576       esac
577       as_dirs="'$as_qdir' $as_dirs"
578       as_dir=`$as_dirname -- "$as_dir" ||
579 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
580          X"$as_dir" : 'X\(//\)[^/]' \| \
581          X"$as_dir" : 'X\(//\)$' \| \
582          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
583 $as_echo X"$as_dir" |
584     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
585             s//\1/
586             q
587           }
588           /^X\(\/\/\)[^/].*/{
589             s//\1/
590             q
591           }
592           /^X\(\/\/\)$/{
593             s//\1/
594             q
595           }
596           /^X\(\/\).*/{
597             s//\1/
598             q
599           }
600           s/.*/./; q'`
601       test -d "$as_dir" && break
602     done
603     test -z "$as_dirs" || eval "mkdir $as_dirs"
604   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
605
606
607 } # as_fn_mkdir_p
608
609 # as_fn_executable_p FILE
610 # -----------------------
611 # Test if FILE is an executable regular file.
612 as_fn_executable_p ()
613 {
614   test -f "$1" && test -x "$1"
615 } # as_fn_executable_p
616 # as_fn_append VAR VALUE
617 # ----------------------
618 # Append the text in VALUE to the end of the definition contained in VAR. Take
619 # advantage of any shell optimizations that allow amortized linear growth over
620 # repeated appends, instead of the typical quadratic growth present in naive
621 # implementations.
622 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
623   eval 'as_fn_append ()
624   {
625     eval $1+=\$2
626   }'
627 else
628   as_fn_append ()
629   {
630     eval $1=\$$1\$2
631   }
632 fi # as_fn_append
633
634 # as_fn_arith ARG...
635 # ------------------
636 # Perform arithmetic evaluation on the ARGs, and store the result in the
637 # global $as_val. Take advantage of shells that can avoid forks. The arguments
638 # must be portable across $(()) and expr.
639 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
640   eval 'as_fn_arith ()
641   {
642     as_val=$(( $* ))
643   }'
644 else
645   as_fn_arith ()
646   {
647     as_val=`expr "$@" || test $? -eq 1`
648   }
649 fi # as_fn_arith
650
651
652 # as_fn_error STATUS ERROR [LINENO LOG_FD]
653 # ----------------------------------------
654 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
655 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
656 # script with STATUS, using 1 if that was 0.
657 as_fn_error ()
658 {
659   as_status=$1; test $as_status -eq 0 && as_status=1
660   if test "$4"; then
661     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
662     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
663   fi
664   $as_echo "$as_me: error: $2" >&2
665   as_fn_exit $as_status
666 } # as_fn_error
667
668 if expr a : '\(a\)' >/dev/null 2>&1 &&
669    test "X`expr 00001 : '.*\(...\)'`" = X001; then
670   as_expr=expr
671 else
672   as_expr=false
673 fi
674
675 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
676   as_basename=basename
677 else
678   as_basename=false
679 fi
680
681 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
682   as_dirname=dirname
683 else
684   as_dirname=false
685 fi
686
687 as_me=`$as_basename -- "$0" ||
688 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
689          X"$0" : 'X\(//\)$' \| \
690          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
691 $as_echo X/"$0" |
692     sed '/^.*\/\([^/][^/]*\)\/*$/{
693             s//\1/
694             q
695           }
696           /^X\/\(\/\/\)$/{
697             s//\1/
698             q
699           }
700           /^X\/\(\/\).*/{
701             s//\1/
702             q
703           }
704           s/.*/./; q'`
705
706 # Avoid depending upon Character Ranges.
707 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
708 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
709 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
710 as_cr_digits='0123456789'
711 as_cr_alnum=$as_cr_Letters$as_cr_digits
712
713
714   as_lineno_1=$LINENO as_lineno_1a=$LINENO
715   as_lineno_2=$LINENO as_lineno_2a=$LINENO
716   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
717   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
718   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
719   sed -n '
720     p
721     /[$]LINENO/=
722   ' <$as_myself |
723     sed '
724       s/[$]LINENO.*/&-/
725       t lineno
726       b
727       :lineno
728       N
729       :loop
730       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
731       t loop
732       s/-\n.*//
733     ' >$as_me.lineno &&
734   chmod +x "$as_me.lineno" ||
735     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
736
737   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
738   # already done that, so ensure we don't try to do so again and fall
739   # in an infinite loop.  This has already happened in practice.
740   _as_can_reexec=no; export _as_can_reexec
741   # Don't try to exec as it changes $[0], causing all sort of problems
742   # (the dirname of $[0] is not the place where we might find the
743   # original and so on.  Autoconf is especially sensitive to this).
744   . "./$as_me.lineno"
745   # Exit status is that of the last command.
746   exit
747 }
748
749 ECHO_C= ECHO_N= ECHO_T=
750 case `echo -n x` in #(((((
751 -n*)
752   case `echo 'xy\c'` in
753   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
754   xy)  ECHO_C='\c';;
755   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
756        ECHO_T=' ';;
757   esac;;
758 *)
759   ECHO_N='-n';;
760 esac
761
762 rm -f conf$$ conf$$.exe conf$$.file
763 if test -d conf$$.dir; then
764   rm -f conf$$.dir/conf$$.file
765 else
766   rm -f conf$$.dir
767   mkdir conf$$.dir 2>/dev/null
768 fi
769 if (echo >conf$$.file) 2>/dev/null; then
770   if ln -s conf$$.file conf$$ 2>/dev/null; then
771     as_ln_s='ln -s'
772     # ... but there are two gotchas:
773     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
774     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
775     # In both cases, we have to default to `cp -pR'.
776     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
777       as_ln_s='cp -pR'
778   elif ln conf$$.file conf$$ 2>/dev/null; then
779     as_ln_s=ln
780   else
781     as_ln_s='cp -pR'
782   fi
783 else
784   as_ln_s='cp -pR'
785 fi
786 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
787 rmdir conf$$.dir 2>/dev/null
788
789 if mkdir -p . 2>/dev/null; then
790   as_mkdir_p='mkdir -p "$as_dir"'
791 else
792   test -d ./-p && rmdir ./-p
793   as_mkdir_p=false
794 fi
795
796 as_test_x='test -x'
797 as_executable_p=as_fn_executable_p
798
799 # Sed expression to map a string onto a valid CPP name.
800 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
801
802 # Sed expression to map a string onto a valid variable name.
803 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
804
805 SHELL=${CONFIG_SHELL-/bin/sh}
806
807
808 test -n "$DJDIR" || exec 7<&0 </dev/null
809 exec 6>&1
810
811 # Name of the host.
812 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
813 # so uname gets run too.
814 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
815
816 #
817 # Initializations.
818 #
819 ac_default_prefix=/usr/local
820 ac_clean_files=
821 ac_config_libobj_dir=.
822 LIBOBJS=
823 cross_compiling=no
824 subdirs=
825 MFLAGS=
826 MAKEFLAGS=
827
828 # Identity of this package.
829 PACKAGE_NAME='curl'
830 PACKAGE_TARNAME='curl'
831 PACKAGE_VERSION='-'
832 PACKAGE_STRING='curl -'
833 PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.haxx.se/mail/'
834 PACKAGE_URL=''
835
836 ac_unique_file="lib/urldata.h"
837 # Factoring default headers for most tests.
838 ac_includes_default="\
839 #include <stdio.h>
840 #ifdef HAVE_SYS_TYPES_H
841 # include <sys/types.h>
842 #endif
843 #ifdef HAVE_SYS_STAT_H
844 # include <sys/stat.h>
845 #endif
846 #ifdef STDC_HEADERS
847 # include <stdlib.h>
848 # include <stddef.h>
849 #else
850 # ifdef HAVE_STDLIB_H
851 #  include <stdlib.h>
852 # endif
853 #endif
854 #ifdef HAVE_STRING_H
855 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
856 #  include <memory.h>
857 # endif
858 # include <string.h>
859 #endif
860 #ifdef HAVE_STRINGS_H
861 # include <strings.h>
862 #endif
863 #ifdef HAVE_INTTYPES_H
864 # include <inttypes.h>
865 #endif
866 #ifdef HAVE_STDINT_H
867 # include <stdint.h>
868 #endif
869 #ifdef HAVE_UNISTD_H
870 # include <unistd.h>
871 #endif"
872
873 enable_option_checking=no
874 ac_subst_vars='am__EXEEXT_FALSE
875 am__EXEEXT_TRUE
876 LTLIBOBJS
877 LIBOBJS
878 SUPPORT_PROTOCOLS
879 SUPPORT_FEATURES
880 ENABLE_STATIC
881 ENABLE_SHARED
882 CROSSCOMPILING_FALSE
883 CROSSCOMPILING_TRUE
884 BLANK_AT_MAKETIME
885 CURL_NETWORK_AND_TIME_LIBS
886 CURL_NETWORK_LIBS
887 LIBCURL_LIBS
888 SONAME_BUMP_FALSE
889 SONAME_BUMP_TRUE
890 CFLAG_CURL_SYMBOL_HIDING
891 DOING_CURL_SYMBOL_HIDING_FALSE
892 DOING_CURL_SYMBOL_HIDING_TRUE
893 USE_UNIX_SOCKETS
894 BUILD_LIBHOSTNAME_FALSE
895 BUILD_LIBHOSTNAME_TRUE
896 USE_EMBEDDED_ARES_FALSE
897 USE_EMBEDDED_ARES_TRUE
898 USE_ARES
899 subdirs
900 USE_MANUAL_FALSE
901 USE_MANUAL_TRUE
902 MANOPT
903 NROFF
904 PERL
905 IPV6_ENABLED
906 ZSH_FUNCTIONS_DIR
907 USE_NGHTTP2
908 IDN_ENABLED
909 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
910 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
911 CURL_LT_SHLIB_VERSIONED_FLAVOUR
912 USE_LIBRTMP
913 USE_LIBSSH2
914 LIBMETALINK_CPPFLAGS
915 LIBMETALINK_LDFLAGS
916 LIBMETALINK_LIBS
917 USE_LIBPSL_FALSE
918 USE_LIBPSL_TRUE
919 CURL_CA_BUNDLE
920 SSL_ENABLED
921 USE_AXTLS
922 NSS_LIBS
923 USE_NSS
924 USE_CYASSL
925 USE_MBEDTLS
926 USE_POLARSSL
927 HAVE_GNUTLS_SRP
928 USE_GNUTLS_NETTLE
929 USE_GNUTLS
930 HAVE_OPENSSL_SRP
931 RANDOM_FILE
932 SSL_LIBS
933 USE_DARWINSSL
934 USE_WINDOWS_SSPI
935 USE_SCHANNEL
936 USE_OPENLDAP
937 ZLIB_LIBS
938 HAVE_LIBZ_FALSE
939 HAVE_LIBZ_TRUE
940 HAVE_LIBZ
941 PKGCONFIG
942 CURL_DISABLE_GOPHER
943 CURL_DISABLE_SMTP
944 CURL_DISABLE_SMB
945 CURL_DISABLE_IMAP
946 CURL_DISABLE_POP3
947 CURL_DISABLE_TFTP
948 CURL_DISABLE_TELNET
949 CURL_DISABLE_DICT
950 CURL_DISABLE_PROXY
951 HAVE_LDAP_SSL
952 CURL_DISABLE_LDAPS
953 CURL_DISABLE_LDAP
954 CURL_DISABLE_FILE
955 CURL_DISABLE_FTP
956 CURL_DISABLE_RTSP
957 CURL_DISABLE_HTTP
958 DOING_NATIVE_WINDOWS_FALSE
959 DOING_NATIVE_WINDOWS_TRUE
960 BUILD_UNITTESTS_FALSE
961 BUILD_UNITTESTS_TRUE
962 CURLDEBUG_FALSE
963 CURLDEBUG_TRUE
964 USE_EXPLICIT_LIB_DEPS_FALSE
965 USE_EXPLICIT_LIB_DEPS_TRUE
966 REQUIRE_LIB_DEPS
967 CPPFLAG_CURL_STATICLIB
968 USE_CPPFLAG_CURL_STATICLIB_FALSE
969 USE_CPPFLAG_CURL_STATICLIB_TRUE
970 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
971 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
972 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
973 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
974 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
975 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
976 LT_SYS_LIBRARY_PATH
977 OTOOL64
978 OTOOL
979 LIPO
980 NMEDIT
981 DSYMUTIL
982 MANIFEST_TOOL
983 RANLIB
984 ac_ct_AR
985 LN_S
986 NM
987 ac_ct_DUMPBIN
988 DUMPBIN
989 LD
990 FGREP
991 LIBTOOL
992 OBJDUMP
993 DLLTOOL
994 AS
995 host_os
996 host_vendor
997 host_cpu
998 host
999 build_os
1000 build_vendor
1001 build_cpu
1002 build
1003 PKGADD_VENDOR
1004 PKGADD_NAME
1005 PKGADD_PKG
1006 VERSIONNUM
1007 CURLVERSION
1008 am__fastdepCC_FALSE
1009 am__fastdepCC_TRUE
1010 CCDEPMODE
1011 am__nodep
1012 AMDEPBACKSLASH
1013 AMDEP_FALSE
1014 AMDEP_TRUE
1015 am__quote
1016 am__include
1017 DEPDIR
1018 am__untar
1019 am__tar
1020 AMTAR
1021 am__leading_dot
1022 SET_MAKE
1023 AWK
1024 mkdir_p
1025 MKDIR_P
1026 INSTALL_STRIP_PROGRAM
1027 STRIP
1028 install_sh
1029 MAKEINFO
1030 AUTOHEADER
1031 AUTOMAKE
1032 AUTOCONF
1033 ACLOCAL
1034 VERSION
1035 PACKAGE
1036 CYGPATH_W
1037 am__isrc
1038 CPP
1039 OBJEXT
1040 EXEEXT
1041 ac_ct_CC
1042 CPPFLAGS
1043 LDFLAGS
1044 CFLAGS
1045 CC
1046 INSTALL_DATA
1047 INSTALL_SCRIPT
1048 INSTALL_PROGRAM
1049 libext
1050 AR
1051 EGREP
1052 GREP
1053 SED
1054 CURL_CFLAG_EXTRAS
1055 CONFIGURE_OPTIONS
1056 AM_BACKSLASH
1057 AM_DEFAULT_VERBOSITY
1058 AM_DEFAULT_V
1059 AM_V
1060 MAINT
1061 MAINTAINER_MODE_FALSE
1062 MAINTAINER_MODE_TRUE
1063 target_alias
1064 host_alias
1065 build_alias
1066 LIBS
1067 ECHO_T
1068 ECHO_N
1069 ECHO_C
1070 DEFS
1071 mandir
1072 localedir
1073 libdir
1074 psdir
1075 pdfdir
1076 dvidir
1077 htmldir
1078 infodir
1079 docdir
1080 oldincludedir
1081 includedir
1082 runstatedir
1083 localstatedir
1084 sharedstatedir
1085 sysconfdir
1086 datadir
1087 datarootdir
1088 libexecdir
1089 sbindir
1090 bindir
1091 program_transform_name
1092 prefix
1093 exec_prefix
1094 PACKAGE_URL
1095 PACKAGE_BUGREPORT
1096 PACKAGE_STRING
1097 PACKAGE_VERSION
1098 PACKAGE_TARNAME
1099 PACKAGE_NAME
1100 SHELL
1101 PATH_SEPARATOR'
1102 ac_subst_files=''
1103 ac_user_opts='
1104 enable_option_checking
1105 enable_maintainer_mode
1106 enable_silent_rules
1107 enable_debug
1108 enable_optimize
1109 enable_warnings
1110 enable_werror
1111 enable_curldebug
1112 enable_symbol_hiding
1113 enable_hidden_symbols
1114 enable_ares
1115 enable_rt
1116 enable_dependency_tracking
1117 enable_largefile
1118 enable_shared
1119 enable_static
1120 with_pic
1121 enable_fast_install
1122 with_aix_soname
1123 with_gnu_ld
1124 with_sysroot
1125 enable_libtool_lock
1126 enable_http
1127 enable_ftp
1128 enable_file
1129 enable_ldap
1130 enable_ldaps
1131 enable_rtsp
1132 enable_proxy
1133 enable_dict
1134 enable_telnet
1135 enable_tftp
1136 enable_pop3
1137 enable_imap
1138 enable_smb
1139 enable_smtp
1140 enable_gopher
1141 enable_manual
1142 enable_libcurl_option
1143 enable_libgcc
1144 with_zlib
1145 with_ldap_lib
1146 with_lber_lib
1147 enable_ipv6
1148 with_gssapi_includes
1149 with_gssapi_libs
1150 with_gssapi
1151 with_winssl
1152 with_darwinssl
1153 with_ssl
1154 with_egd_socket
1155 with_random
1156 with_gnutls
1157 with_polarssl
1158 with_mbedtls
1159 with_cyassl
1160 with_nss
1161 with_axtls
1162 with_ca_bundle
1163 with_ca_path
1164 with_ca_fallback
1165 with_libpsl
1166 with_libmetalink
1167 with_libssh2
1168 with_librtmp
1169 enable_versioned_symbols
1170 with_winidn
1171 with_libidn2
1172 with_nghttp2
1173 with_zsh_functions_dir
1174 enable_threaded_resolver
1175 enable_pthreads
1176 enable_verbose
1177 enable_sspi
1178 enable_crypto_auth
1179 enable_ntlm_wb
1180 enable_tls_srp
1181 enable_unix_sockets
1182 enable_cookies
1183 enable_soname_bump
1184 '
1185       ac_precious_vars='build_alias
1186 host_alias
1187 target_alias
1188 CC
1189 CFLAGS
1190 LDFLAGS
1191 LIBS
1192 CPPFLAGS
1193 CPP
1194 LT_SYS_LIBRARY_PATH'
1195 ac_subdirs_all='ares'
1196
1197 # Initialize some variables set by options.
1198 ac_init_help=
1199 ac_init_version=false
1200 ac_unrecognized_opts=
1201 ac_unrecognized_sep=
1202 # The variables have the same names as the options, with
1203 # dashes changed to underlines.
1204 cache_file=/dev/null
1205 exec_prefix=NONE
1206 no_create=
1207 no_recursion=
1208 prefix=NONE
1209 program_prefix=NONE
1210 program_suffix=NONE
1211 program_transform_name=s,x,x,
1212 silent=
1213 site=
1214 srcdir=
1215 verbose=
1216 x_includes=NONE
1217 x_libraries=NONE
1218
1219 # Installation directory options.
1220 # These are left unexpanded so users can "make install exec_prefix=/foo"
1221 # and all the variables that are supposed to be based on exec_prefix
1222 # by default will actually change.
1223 # Use braces instead of parens because sh, perl, etc. also accept them.
1224 # (The list follows the same order as the GNU Coding Standards.)
1225 bindir='${exec_prefix}/bin'
1226 sbindir='${exec_prefix}/sbin'
1227 libexecdir='${exec_prefix}/libexec'
1228 datarootdir='${prefix}/share'
1229 datadir='${datarootdir}'
1230 sysconfdir='${prefix}/etc'
1231 sharedstatedir='${prefix}/com'
1232 localstatedir='${prefix}/var'
1233 runstatedir='${localstatedir}/run'
1234 includedir='${prefix}/include'
1235 oldincludedir='/usr/include'
1236 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1237 infodir='${datarootdir}/info'
1238 htmldir='${docdir}'
1239 dvidir='${docdir}'
1240 pdfdir='${docdir}'
1241 psdir='${docdir}'
1242 libdir='${exec_prefix}/lib'
1243 localedir='${datarootdir}/locale'
1244 mandir='${datarootdir}/man'
1245
1246 ac_prev=
1247 ac_dashdash=
1248 for ac_option
1249 do
1250   # If the previous option needs an argument, assign it.
1251   if test -n "$ac_prev"; then
1252     eval $ac_prev=\$ac_option
1253     ac_prev=
1254     continue
1255   fi
1256
1257   case $ac_option in
1258   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1259   *=)   ac_optarg= ;;
1260   *)    ac_optarg=yes ;;
1261   esac
1262
1263   # Accept the important Cygnus configure options, so we can diagnose typos.
1264
1265   case $ac_dashdash$ac_option in
1266   --)
1267     ac_dashdash=yes ;;
1268
1269   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1270     ac_prev=bindir ;;
1271   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1272     bindir=$ac_optarg ;;
1273
1274   -build | --build | --buil | --bui | --bu)
1275     ac_prev=build_alias ;;
1276   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1277     build_alias=$ac_optarg ;;
1278
1279   -cache-file | --cache-file | --cache-fil | --cache-fi \
1280   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1281     ac_prev=cache_file ;;
1282   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1283   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1284     cache_file=$ac_optarg ;;
1285
1286   --config-cache | -C)
1287     cache_file=config.cache ;;
1288
1289   -datadir | --datadir | --datadi | --datad)
1290     ac_prev=datadir ;;
1291   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1292     datadir=$ac_optarg ;;
1293
1294   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1295   | --dataroo | --dataro | --datar)
1296     ac_prev=datarootdir ;;
1297   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1298   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1299     datarootdir=$ac_optarg ;;
1300
1301   -disable-* | --disable-*)
1302     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1303     # Reject names that are not valid shell variable names.
1304     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1305       as_fn_error $? "invalid feature name: $ac_useropt"
1306     ac_useropt_orig=$ac_useropt
1307     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308     case $ac_user_opts in
1309       *"
1310 "enable_$ac_useropt"
1311 "*) ;;
1312       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1313          ac_unrecognized_sep=', ';;
1314     esac
1315     eval enable_$ac_useropt=no ;;
1316
1317   -docdir | --docdir | --docdi | --doc | --do)
1318     ac_prev=docdir ;;
1319   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1320     docdir=$ac_optarg ;;
1321
1322   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1323     ac_prev=dvidir ;;
1324   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1325     dvidir=$ac_optarg ;;
1326
1327   -enable-* | --enable-*)
1328     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1329     # Reject names that are not valid shell variable names.
1330     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1331       as_fn_error $? "invalid feature name: $ac_useropt"
1332     ac_useropt_orig=$ac_useropt
1333     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1334     case $ac_user_opts in
1335       *"
1336 "enable_$ac_useropt"
1337 "*) ;;
1338       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1339          ac_unrecognized_sep=', ';;
1340     esac
1341     eval enable_$ac_useropt=\$ac_optarg ;;
1342
1343   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1344   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1345   | --exec | --exe | --ex)
1346     ac_prev=exec_prefix ;;
1347   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1348   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1349   | --exec=* | --exe=* | --ex=*)
1350     exec_prefix=$ac_optarg ;;
1351
1352   -gas | --gas | --ga | --g)
1353     # Obsolete; use --with-gas.
1354     with_gas=yes ;;
1355
1356   -help | --help | --hel | --he | -h)
1357     ac_init_help=long ;;
1358   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1359     ac_init_help=recursive ;;
1360   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1361     ac_init_help=short ;;
1362
1363   -host | --host | --hos | --ho)
1364     ac_prev=host_alias ;;
1365   -host=* | --host=* | --hos=* | --ho=*)
1366     host_alias=$ac_optarg ;;
1367
1368   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1369     ac_prev=htmldir ;;
1370   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1371   | --ht=*)
1372     htmldir=$ac_optarg ;;
1373
1374   -includedir | --includedir | --includedi | --included | --include \
1375   | --includ | --inclu | --incl | --inc)
1376     ac_prev=includedir ;;
1377   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1378   | --includ=* | --inclu=* | --incl=* | --inc=*)
1379     includedir=$ac_optarg ;;
1380
1381   -infodir | --infodir | --infodi | --infod | --info | --inf)
1382     ac_prev=infodir ;;
1383   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1384     infodir=$ac_optarg ;;
1385
1386   -libdir | --libdir | --libdi | --libd)
1387     ac_prev=libdir ;;
1388   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1389     libdir=$ac_optarg ;;
1390
1391   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1392   | --libexe | --libex | --libe)
1393     ac_prev=libexecdir ;;
1394   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1395   | --libexe=* | --libex=* | --libe=*)
1396     libexecdir=$ac_optarg ;;
1397
1398   -localedir | --localedir | --localedi | --localed | --locale)
1399     ac_prev=localedir ;;
1400   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1401     localedir=$ac_optarg ;;
1402
1403   -localstatedir | --localstatedir | --localstatedi | --localstated \
1404   | --localstate | --localstat | --localsta | --localst | --locals)
1405     ac_prev=localstatedir ;;
1406   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1407   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1408     localstatedir=$ac_optarg ;;
1409
1410   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1411     ac_prev=mandir ;;
1412   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1413     mandir=$ac_optarg ;;
1414
1415   -nfp | --nfp | --nf)
1416     # Obsolete; use --without-fp.
1417     with_fp=no ;;
1418
1419   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1420   | --no-cr | --no-c | -n)
1421     no_create=yes ;;
1422
1423   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1424   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1425     no_recursion=yes ;;
1426
1427   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1428   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1429   | --oldin | --oldi | --old | --ol | --o)
1430     ac_prev=oldincludedir ;;
1431   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1432   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1433   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1434     oldincludedir=$ac_optarg ;;
1435
1436   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1437     ac_prev=prefix ;;
1438   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1439     prefix=$ac_optarg ;;
1440
1441   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1442   | --program-pre | --program-pr | --program-p)
1443     ac_prev=program_prefix ;;
1444   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1445   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1446     program_prefix=$ac_optarg ;;
1447
1448   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1449   | --program-suf | --program-su | --program-s)
1450     ac_prev=program_suffix ;;
1451   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1452   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1453     program_suffix=$ac_optarg ;;
1454
1455   -program-transform-name | --program-transform-name \
1456   | --program-transform-nam | --program-transform-na \
1457   | --program-transform-n | --program-transform- \
1458   | --program-transform | --program-transfor \
1459   | --program-transfo | --program-transf \
1460   | --program-trans | --program-tran \
1461   | --progr-tra | --program-tr | --program-t)
1462     ac_prev=program_transform_name ;;
1463   -program-transform-name=* | --program-transform-name=* \
1464   | --program-transform-nam=* | --program-transform-na=* \
1465   | --program-transform-n=* | --program-transform-=* \
1466   | --program-transform=* | --program-transfor=* \
1467   | --program-transfo=* | --program-transf=* \
1468   | --program-trans=* | --program-tran=* \
1469   | --progr-tra=* | --program-tr=* | --program-t=*)
1470     program_transform_name=$ac_optarg ;;
1471
1472   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1473     ac_prev=pdfdir ;;
1474   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1475     pdfdir=$ac_optarg ;;
1476
1477   -psdir | --psdir | --psdi | --psd | --ps)
1478     ac_prev=psdir ;;
1479   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1480     psdir=$ac_optarg ;;
1481
1482   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1483   | -silent | --silent | --silen | --sile | --sil)
1484     silent=yes ;;
1485
1486   -runstatedir | --runstatedir | --runstatedi | --runstated \
1487   | --runstate | --runstat | --runsta | --runst | --runs \
1488   | --run | --ru | --r)
1489     ac_prev=runstatedir ;;
1490   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1491   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1492   | --run=* | --ru=* | --r=*)
1493     runstatedir=$ac_optarg ;;
1494
1495   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1496     ac_prev=sbindir ;;
1497   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1498   | --sbi=* | --sb=*)
1499     sbindir=$ac_optarg ;;
1500
1501   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1502   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1503   | --sharedst | --shareds | --shared | --share | --shar \
1504   | --sha | --sh)
1505     ac_prev=sharedstatedir ;;
1506   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1507   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1508   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1509   | --sha=* | --sh=*)
1510     sharedstatedir=$ac_optarg ;;
1511
1512   -site | --site | --sit)
1513     ac_prev=site ;;
1514   -site=* | --site=* | --sit=*)
1515     site=$ac_optarg ;;
1516
1517   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1518     ac_prev=srcdir ;;
1519   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1520     srcdir=$ac_optarg ;;
1521
1522   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1523   | --syscon | --sysco | --sysc | --sys | --sy)
1524     ac_prev=sysconfdir ;;
1525   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1526   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1527     sysconfdir=$ac_optarg ;;
1528
1529   -target | --target | --targe | --targ | --tar | --ta | --t)
1530     ac_prev=target_alias ;;
1531   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1532     target_alias=$ac_optarg ;;
1533
1534   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1535     verbose=yes ;;
1536
1537   -version | --version | --versio | --versi | --vers | -V)
1538     ac_init_version=: ;;
1539
1540   -with-* | --with-*)
1541     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1542     # Reject names that are not valid shell variable names.
1543     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1544       as_fn_error $? "invalid package name: $ac_useropt"
1545     ac_useropt_orig=$ac_useropt
1546     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1547     case $ac_user_opts in
1548       *"
1549 "with_$ac_useropt"
1550 "*) ;;
1551       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1552          ac_unrecognized_sep=', ';;
1553     esac
1554     eval with_$ac_useropt=\$ac_optarg ;;
1555
1556   -without-* | --without-*)
1557     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1558     # Reject names that are not valid shell variable names.
1559     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1560       as_fn_error $? "invalid package name: $ac_useropt"
1561     ac_useropt_orig=$ac_useropt
1562     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1563     case $ac_user_opts in
1564       *"
1565 "with_$ac_useropt"
1566 "*) ;;
1567       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1568          ac_unrecognized_sep=', ';;
1569     esac
1570     eval with_$ac_useropt=no ;;
1571
1572   --x)
1573     # Obsolete; use --with-x.
1574     with_x=yes ;;
1575
1576   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1577   | --x-incl | --x-inc | --x-in | --x-i)
1578     ac_prev=x_includes ;;
1579   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1580   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1581     x_includes=$ac_optarg ;;
1582
1583   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1584   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1585     ac_prev=x_libraries ;;
1586   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1587   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1588     x_libraries=$ac_optarg ;;
1589
1590   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1591 Try \`$0 --help' for more information"
1592     ;;
1593
1594   *=*)
1595     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1596     # Reject names that are not valid shell variable names.
1597     case $ac_envvar in #(
1598       '' | [0-9]* | *[!_$as_cr_alnum]* )
1599       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1600     esac
1601     eval $ac_envvar=\$ac_optarg
1602     export $ac_envvar ;;
1603
1604   *)
1605     # FIXME: should be removed in autoconf 3.0.
1606     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1607     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1608       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1609     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1610     ;;
1611
1612   esac
1613 done
1614
1615 if test -n "$ac_prev"; then
1616   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1617   as_fn_error $? "missing argument to $ac_option"
1618 fi
1619
1620 if test -n "$ac_unrecognized_opts"; then
1621   case $enable_option_checking in
1622     no) ;;
1623     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1624     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1625   esac
1626 fi
1627
1628 # Check all directory arguments for consistency.
1629 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1630                 datadir sysconfdir sharedstatedir localstatedir includedir \
1631                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1632                 libdir localedir mandir runstatedir
1633 do
1634   eval ac_val=\$$ac_var
1635   # Remove trailing slashes.
1636   case $ac_val in
1637     */ )
1638       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1639       eval $ac_var=\$ac_val;;
1640   esac
1641   # Be sure to have absolute directory names.
1642   case $ac_val in
1643     [\\/$]* | ?:[\\/]* )  continue;;
1644     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1645   esac
1646   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1647 done
1648
1649 # There might be people who depend on the old broken behavior: `$host'
1650 # used to hold the argument of --host etc.
1651 # FIXME: To remove some day.
1652 build=$build_alias
1653 host=$host_alias
1654 target=$target_alias
1655
1656 # FIXME: To remove some day.
1657 if test "x$host_alias" != x; then
1658   if test "x$build_alias" = x; then
1659     cross_compiling=maybe
1660   elif test "x$build_alias" != "x$host_alias"; then
1661     cross_compiling=yes
1662   fi
1663 fi
1664
1665 ac_tool_prefix=
1666 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1667
1668 test "$silent" = yes && exec 6>/dev/null
1669
1670
1671 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1672 ac_ls_di=`ls -di .` &&
1673 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1674   as_fn_error $? "working directory cannot be determined"
1675 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1676   as_fn_error $? "pwd does not report name of working directory"
1677
1678
1679 # Find the source files, if location was not specified.
1680 if test -z "$srcdir"; then
1681   ac_srcdir_defaulted=yes
1682   # Try the directory containing this script, then the parent directory.
1683   ac_confdir=`$as_dirname -- "$as_myself" ||
1684 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1685          X"$as_myself" : 'X\(//\)[^/]' \| \
1686          X"$as_myself" : 'X\(//\)$' \| \
1687          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1688 $as_echo X"$as_myself" |
1689     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1690             s//\1/
1691             q
1692           }
1693           /^X\(\/\/\)[^/].*/{
1694             s//\1/
1695             q
1696           }
1697           /^X\(\/\/\)$/{
1698             s//\1/
1699             q
1700           }
1701           /^X\(\/\).*/{
1702             s//\1/
1703             q
1704           }
1705           s/.*/./; q'`
1706   srcdir=$ac_confdir
1707   if test ! -r "$srcdir/$ac_unique_file"; then
1708     srcdir=..
1709   fi
1710 else
1711   ac_srcdir_defaulted=no
1712 fi
1713 if test ! -r "$srcdir/$ac_unique_file"; then
1714   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1715   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1716 fi
1717 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1718 ac_abs_confdir=`(
1719         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1720         pwd)`
1721 # When building in place, set srcdir=.
1722 if test "$ac_abs_confdir" = "$ac_pwd"; then
1723   srcdir=.
1724 fi
1725 # Remove unnecessary trailing slashes from srcdir.
1726 # Double slashes in file names in object file debugging info
1727 # mess up M-x gdb in Emacs.
1728 case $srcdir in
1729 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1730 esac
1731 for ac_var in $ac_precious_vars; do
1732   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1733   eval ac_env_${ac_var}_value=\$${ac_var}
1734   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1735   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1736 done
1737
1738 #
1739 # Report the --help message.
1740 #
1741 if test "$ac_init_help" = "long"; then
1742   # Omit some internal or obsolete options to make the list less imposing.
1743   # This message is too long to be a string in the A/UX 3.1 sh.
1744   cat <<_ACEOF
1745 \`configure' configures curl - to adapt to many kinds of systems.
1746
1747 Usage: $0 [OPTION]... [VAR=VALUE]...
1748
1749 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1750 VAR=VALUE.  See below for descriptions of some of the useful variables.
1751
1752 Defaults for the options are specified in brackets.
1753
1754 Configuration:
1755   -h, --help              display this help and exit
1756       --help=short        display options specific to this package
1757       --help=recursive    display the short help of all the included packages
1758   -V, --version           display version information and exit
1759   -q, --quiet, --silent   do not print \`checking ...' messages
1760       --cache-file=FILE   cache test results in FILE [disabled]
1761   -C, --config-cache      alias for \`--cache-file=config.cache'
1762   -n, --no-create         do not create output files
1763       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1764
1765 Installation directories:
1766   --prefix=PREFIX         install architecture-independent files in PREFIX
1767                           [$ac_default_prefix]
1768   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1769                           [PREFIX]
1770
1771 By default, \`make install' will install all the files in
1772 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1773 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1774 for instance \`--prefix=\$HOME'.
1775
1776 For better control, use the options below.
1777
1778 Fine tuning of the installation directories:
1779   --bindir=DIR            user executables [EPREFIX/bin]
1780   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1781   --libexecdir=DIR        program executables [EPREFIX/libexec]
1782   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1783   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1784   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1785   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1786   --libdir=DIR            object code libraries [EPREFIX/lib]
1787   --includedir=DIR        C header files [PREFIX/include]
1788   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1789   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1790   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1791   --infodir=DIR           info documentation [DATAROOTDIR/info]
1792   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1793   --mandir=DIR            man documentation [DATAROOTDIR/man]
1794   --docdir=DIR            documentation root [DATAROOTDIR/doc/curl]
1795   --htmldir=DIR           html documentation [DOCDIR]
1796   --dvidir=DIR            dvi documentation [DOCDIR]
1797   --pdfdir=DIR            pdf documentation [DOCDIR]
1798   --psdir=DIR             ps documentation [DOCDIR]
1799 _ACEOF
1800
1801   cat <<\_ACEOF
1802
1803 Program names:
1804   --program-prefix=PREFIX            prepend PREFIX to installed program names
1805   --program-suffix=SUFFIX            append SUFFIX to installed program names
1806   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1807
1808 System types:
1809   --build=BUILD     configure for building on BUILD [guessed]
1810   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1811 _ACEOF
1812 fi
1813
1814 if test -n "$ac_init_help"; then
1815   case $ac_init_help in
1816      short | recursive ) echo "Configuration of curl -:";;
1817    esac
1818   cat <<\_ACEOF
1819
1820 Optional Features:
1821   --disable-option-checking  ignore unrecognized --enable/--with options
1822   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1823   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1824   --enable-maintainer-mode
1825                           enable make rules and dependencies not useful (and
1826                           sometimes confusing) to the casual installer
1827   --enable-silent-rules   less verbose build output (undo: "make V=1")
1828   --disable-silent-rules  verbose build output (undo: "make V=0")
1829   --enable-debug          Enable debug build options
1830   --disable-debug         Disable debug build options
1831   --enable-optimize       Enable compiler optimizations
1832   --disable-optimize      Disable compiler optimizations
1833   --enable-warnings       Enable strict compiler warnings
1834   --disable-warnings      Disable strict compiler warnings
1835   --enable-werror         Enable compiler warnings as errors
1836   --disable-werror        Disable compiler warnings as errors
1837   --enable-curldebug      Enable curl debug memory tracking
1838   --disable-curldebug     Disable curl debug memory tracking
1839   --enable-symbol-hiding  Enable hiding of library internal symbols
1840   --disable-symbol-hiding Disable hiding of library internal symbols
1841   --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1842   --disable-hidden-symbols
1843                           To be deprecated, use --disable-symbol-hiding
1844   --enable-ares[=PATH]    Enable c-ares for DNS lookups
1845   --disable-ares          Disable c-ares for DNS lookups
1846   --disable-rt            disable dependency on -lrt
1847   --enable-dependency-tracking
1848                           do not reject slow dependency extractors
1849   --disable-dependency-tracking
1850                           speeds up one-time build
1851   --disable-largefile     omit support for large files
1852   --enable-shared[=PKGS]  build shared libraries [default=yes]
1853   --enable-static[=PKGS]  build static libraries [default=yes]
1854   --enable-fast-install[=PKGS]
1855                           optimize for fast installation [default=yes]
1856   --disable-libtool-lock  avoid locking (might break parallel builds)
1857   --enable-http           Enable HTTP support
1858   --disable-http          Disable HTTP support
1859   --enable-ftp            Enable FTP support
1860   --disable-ftp           Disable FTP support
1861   --enable-file           Enable FILE support
1862   --disable-file          Disable FILE support
1863   --enable-ldap           Enable LDAP support
1864   --disable-ldap          Disable LDAP support
1865   --enable-ldaps          Enable LDAPS support
1866   --disable-ldaps         Disable LDAPS support
1867   --enable-rtsp           Enable RTSP support
1868   --disable-rtsp          Disable RTSP support
1869   --enable-proxy          Enable proxy support
1870   --disable-proxy         Disable proxy support
1871   --enable-dict           Enable DICT support
1872   --disable-dict          Disable DICT support
1873   --enable-telnet         Enable TELNET support
1874   --disable-telnet        Disable TELNET support
1875   --enable-tftp           Enable TFTP support
1876   --disable-tftp          Disable TFTP support
1877   --enable-pop3           Enable POP3 support
1878   --disable-pop3          Disable POP3 support
1879   --enable-imap           Enable IMAP support
1880   --disable-imap          Disable IMAP support
1881   --enable-smb            Enable SMB/CIFS support
1882   --disable-smb           Disable SMB/CIFS support
1883   --enable-smtp           Enable SMTP support
1884   --disable-smtp          Disable SMTP support
1885   --enable-gopher         Enable Gopher support
1886   --disable-gopher        Disable Gopher support
1887   --enable-manual         Enable built-in manual
1888   --disable-manual        Disable built-in manual
1889   --enable-libcurl-option Enable --libcurl C code generation support
1890   --disable-libcurl-option
1891                           Disable --libcurl C code generation support
1892   --enable-libgcc         use libgcc when linking
1893   --enable-ipv6           Enable IPv6 (with IPv4) support
1894   --disable-ipv6          Disable IPv6 support
1895   --enable-versioned-symbols
1896                           Enable versioned symbols in shared library
1897   --disable-versioned-symbols
1898                           Disable versioned symbols in shared library
1899   --enable-threaded-resolver
1900                           Enable threaded resolver
1901   --disable-threaded-resolver
1902                           Disable threaded resolver
1903   --enable-pthreads       Enable POSIX threads (default for threaded resolver)
1904   --disable-pthreads      Disable POSIX threads
1905   --enable-verbose        Enable verbose strings
1906   --disable-verbose       Disable verbose strings
1907   --enable-sspi           Enable SSPI
1908   --disable-sspi          Disable SSPI
1909   --enable-crypto-auth    Enable cryptographic authentication
1910   --disable-crypto-auth   Disable cryptographic authentication
1911   --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1912                           helper, where FILE is ntlm_auth's absolute filename
1913                           (default: /usr/bin/ntlm_auth)
1914   --disable-ntlm-wb       Disable NTLM delegation to winbind's ntlm_auth
1915                           helper
1916   --enable-tls-srp        Enable TLS-SRP authentication
1917   --disable-tls-srp       Disable TLS-SRP authentication
1918   --enable-unix-sockets   Enable Unix domain sockets
1919   --disable-unix-sockets  Disable Unix domain sockets
1920   --enable-cookies        Enable cookies support
1921   --disable-cookies       Disable cookies support
1922   --enable-soname-bump    Enable enforced SONAME bump
1923   --disable-soname-bump   Disable enforced SONAME bump
1924
1925 Optional Packages:
1926   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1927   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1928   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1929                           both]
1930   --with-aix-soname=aix|svr4|both
1931                           shared library versioning (aka "SONAME") variant to
1932                           provide on AIX, [default=aix].
1933   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1934   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1935                           compiler's sysroot if not specified).
1936   --with-zlib=PATH        search for zlib in PATH
1937   --without-zlib          disable use of zlib
1938   --with-ldap-lib=libname Specify name of ldap lib file
1939   --with-lber-lib=libname Specify name of lber lib file
1940   --with-gssapi-includes=DIR
1941                           Specify location of GSS-API headers
1942   --with-gssapi-libs=DIR  Specify location of GSS-API libs
1943   --with-gssapi=DIR       Where to look for GSS-API
1944   --with-winssl           enable Windows native SSL/TLS
1945   --without-winssl        disable Windows native SSL/TLS
1946   --with-darwinssl        enable Apple OS native SSL/TLS
1947   --without-darwinssl     disable Apple OS native SSL/TLS
1948   --with-ssl=PATH         Where to look for OpenSSL, PATH points to the SSL
1949                           installation (default: /usr/local/ssl); when
1950                           possible, set the PKG_CONFIG_PATH environment
1951                           variable instead of using this option
1952   --without-ssl           disable OpenSSL
1953   --with-egd-socket=FILE  Entropy Gathering Daemon socket pathname
1954   --with-random=FILE      read randomness from FILE (default=/dev/urandom)
1955   --with-gnutls=PATH      where to look for GnuTLS, PATH points to the
1956                           installation root
1957   --without-gnutls        disable GnuTLS detection
1958   --with-polarssl=PATH    where to look for PolarSSL, PATH points to the
1959                           installation root
1960   --without-polarssl      disable PolarSSL detection
1961   --with-mbedtls=PATH     where to look for mbedTLS, PATH points to the
1962                           installation root
1963   --without-mbedtls       disable mbedTLS detection
1964   --with-cyassl=PATH      where to look for CyaSSL, PATH points to the
1965                           installation root (default: system lib default)
1966   --without-cyassl        disable CyaSSL detection
1967   --with-nss=PATH         where to look for NSS, PATH points to the
1968                           installation root
1969   --without-nss           disable NSS detection
1970   --with-axtls=PATH       Where to look for axTLS, PATH points to the axTLS
1971                           installation prefix (default: /usr/local). Ignored
1972                           if another SSL engine is selected.
1973   --without-axtls         disable axTLS
1974   --with-ca-bundle=FILE   Path to a file containing CA certificates (example:
1975                           /etc/ca-bundle.crt)
1976   --without-ca-bundle     Don't use a default CA bundle
1977   --with-ca-path=DIRECTORY
1978                           Path to a directory containing CA certificates
1979                           stored individually, with their filenames in a hash
1980                           format. This option can be used with OpenSSL, GnuTLS
1981                           and PolarSSL backends. Refer to OpenSSL c_rehash for
1982                           details. (example: /etc/certificates)
1983   --without-ca-path       Don't use a default CA path
1984   --with-ca-fallback      Use the built in CA store of the SSL library
1985   --without-ca-fallback   Don't use the built in CA store of the SSL library
1986   --without-libpsl        disable support for libpsl cookie checking
1987   --with-libmetalink=PATH where to look for libmetalink, PATH points to the
1988                           installation root
1989   --without-libmetalink   disable libmetalink detection
1990   --with-libssh2=PATH     Where to look for libssh2, PATH points to the
1991                           LIBSSH2 installation; when possible, set the
1992                           PKG_CONFIG_PATH environment variable instead of
1993                           using this option
1994   --without-libssh2       disable LIBSSH2
1995   --with-librtmp=PATH     Where to look for librtmp, PATH points to the
1996                           LIBRTMP installation; when possible, set the
1997                           PKG_CONFIG_PATH environment variable instead of
1998                           using this option
1999   --without-librtmp       disable LIBRTMP
2000   --with-winidn=PATH      enable Windows native IDN
2001   --without-winidn        disable Windows native IDN
2002   --with-libidn2=PATH     Enable libidn2 usage
2003   --without-libidn2       Disable libidn2 usage
2004   --with-nghttp2=PATH     Enable nghttp2 usage
2005   --without-nghttp2       Disable nghttp2 usage
2006   --with-zsh-functions-dir=PATH
2007                           Install zsh completions to PATH
2008   --without-zsh-functions-dir
2009                           Do not install zsh completions
2010
2011 Some influential environment variables:
2012   CC          C compiler command
2013   CFLAGS      C compiler flags
2014   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2015               nonstandard directory <lib dir>
2016   LIBS        libraries to pass to the linker, e.g. -l<library>
2017   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2018               you have headers in a nonstandard directory <include dir>
2019   CPP         C preprocessor
2020   LT_SYS_LIBRARY_PATH
2021               User-defined run-time library search path.
2022
2023 Use these variables to override the choices made by `configure' or to help
2024 it to find libraries and programs with nonstandard names/locations.
2025
2026 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
2027 _ACEOF
2028 ac_status=$?
2029 fi
2030
2031 if test "$ac_init_help" = "recursive"; then
2032   # If there are subdirs, report their specific --help.
2033   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2034     test -d "$ac_dir" ||
2035       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2036       continue
2037     ac_builddir=.
2038
2039 case "$ac_dir" in
2040 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2041 *)
2042   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2043   # A ".." for each directory in $ac_dir_suffix.
2044   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2045   case $ac_top_builddir_sub in
2046   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2047   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2048   esac ;;
2049 esac
2050 ac_abs_top_builddir=$ac_pwd
2051 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2052 # for backward compatibility:
2053 ac_top_builddir=$ac_top_build_prefix
2054
2055 case $srcdir in
2056   .)  # We are building in place.
2057     ac_srcdir=.
2058     ac_top_srcdir=$ac_top_builddir_sub
2059     ac_abs_top_srcdir=$ac_pwd ;;
2060   [\\/]* | ?:[\\/]* )  # Absolute name.
2061     ac_srcdir=$srcdir$ac_dir_suffix;
2062     ac_top_srcdir=$srcdir
2063     ac_abs_top_srcdir=$srcdir ;;
2064   *) # Relative name.
2065     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2066     ac_top_srcdir=$ac_top_build_prefix$srcdir
2067     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2068 esac
2069 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2070
2071     cd "$ac_dir" || { ac_status=$?; continue; }
2072     # Check for guested configure.
2073     if test -f "$ac_srcdir/configure.gnu"; then
2074       echo &&
2075       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2076     elif test -f "$ac_srcdir/configure"; then
2077       echo &&
2078       $SHELL "$ac_srcdir/configure" --help=recursive
2079     else
2080       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2081     fi || ac_status=$?
2082     cd "$ac_pwd" || { ac_status=$?; break; }
2083   done
2084 fi
2085
2086 test -n "$ac_init_help" && exit $ac_status
2087 if $ac_init_version; then
2088   cat <<\_ACEOF
2089 curl configure -
2090 generated by GNU Autoconf 2.69
2091
2092 Copyright (C) 2012 Free Software Foundation, Inc.
2093 This configure script is free software; the Free Software Foundation
2094 gives unlimited permission to copy, distribute and modify it.
2095
2096 Copyright (c) 1998 - 2016 Daniel Stenberg, <daniel@haxx.se>
2097 This configure script may be copied, distributed and modified under the
2098 terms of the curl license; see COPYING for more details
2099 _ACEOF
2100   exit
2101 fi
2102
2103 ## ------------------------ ##
2104 ## Autoconf initialization. ##
2105 ## ------------------------ ##
2106
2107 # ac_fn_c_try_compile LINENO
2108 # --------------------------
2109 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2110 ac_fn_c_try_compile ()
2111 {
2112   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113   rm -f conftest.$ac_objext
2114   if { { ac_try="$ac_compile"
2115 case "(($ac_try" in
2116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117   *) ac_try_echo=$ac_try;;
2118 esac
2119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2120 $as_echo "$ac_try_echo"; } >&5
2121   (eval "$ac_compile") 2>conftest.err
2122   ac_status=$?
2123   if test -s conftest.err; then
2124     grep -v '^ *+' conftest.err >conftest.er1
2125     cat conftest.er1 >&5
2126     mv -f conftest.er1 conftest.err
2127   fi
2128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2129   test $ac_status = 0; } && {
2130          test -z "$ac_c_werror_flag" ||
2131          test ! -s conftest.err
2132        } && test -s conftest.$ac_objext; then :
2133   ac_retval=0
2134 else
2135   $as_echo "$as_me: failed program was:" >&5
2136 sed 's/^/| /' conftest.$ac_ext >&5
2137
2138         ac_retval=1
2139 fi
2140   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2141   as_fn_set_status $ac_retval
2142
2143 } # ac_fn_c_try_compile
2144
2145 # ac_fn_c_try_cpp LINENO
2146 # ----------------------
2147 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2148 ac_fn_c_try_cpp ()
2149 {
2150   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2151   if { { ac_try="$ac_cpp conftest.$ac_ext"
2152 case "(($ac_try" in
2153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2154   *) ac_try_echo=$ac_try;;
2155 esac
2156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2157 $as_echo "$ac_try_echo"; } >&5
2158   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2159   ac_status=$?
2160   if test -s conftest.err; then
2161     grep -v '^ *+' conftest.err >conftest.er1
2162     cat conftest.er1 >&5
2163     mv -f conftest.er1 conftest.err
2164   fi
2165   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2166   test $ac_status = 0; } > conftest.i && {
2167          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2168          test ! -s conftest.err
2169        }; then :
2170   ac_retval=0
2171 else
2172   $as_echo "$as_me: failed program was:" >&5
2173 sed 's/^/| /' conftest.$ac_ext >&5
2174
2175     ac_retval=1
2176 fi
2177   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2178   as_fn_set_status $ac_retval
2179
2180 } # ac_fn_c_try_cpp
2181
2182 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2183 # -------------------------------------------------------
2184 # Tests whether HEADER exists and can be compiled using the include files in
2185 # INCLUDES, setting the cache variable VAR accordingly.
2186 ac_fn_c_check_header_compile ()
2187 {
2188   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2190 $as_echo_n "checking for $2... " >&6; }
2191 if eval \${$3+:} false; then :
2192   $as_echo_n "(cached) " >&6
2193 else
2194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h.  */
2196 $4
2197 #include <$2>
2198 _ACEOF
2199 if ac_fn_c_try_compile "$LINENO"; then :
2200   eval "$3=yes"
2201 else
2202   eval "$3=no"
2203 fi
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205 fi
2206 eval ac_res=\$$3
2207                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2208 $as_echo "$ac_res" >&6; }
2209   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2210
2211 } # ac_fn_c_check_header_compile
2212
2213 # ac_fn_c_try_run LINENO
2214 # ----------------------
2215 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2216 # that executables *can* be run.
2217 ac_fn_c_try_run ()
2218 {
2219   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2220   if { { ac_try="$ac_link"
2221 case "(($ac_try" in
2222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2223   *) ac_try_echo=$ac_try;;
2224 esac
2225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2226 $as_echo "$ac_try_echo"; } >&5
2227   (eval "$ac_link") 2>&5
2228   ac_status=$?
2229   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2230   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2231   { { case "(($ac_try" in
2232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233   *) ac_try_echo=$ac_try;;
2234 esac
2235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2236 $as_echo "$ac_try_echo"; } >&5
2237   (eval "$ac_try") 2>&5
2238   ac_status=$?
2239   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2240   test $ac_status = 0; }; }; then :
2241   ac_retval=0
2242 else
2243   $as_echo "$as_me: program exited with status $ac_status" >&5
2244        $as_echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2246
2247        ac_retval=$ac_status
2248 fi
2249   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2250   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2251   as_fn_set_status $ac_retval
2252
2253 } # ac_fn_c_try_run
2254
2255 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2256 # --------------------------------------------
2257 # Tries to find the compile-time value of EXPR in a program that includes
2258 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2259 # computed
2260 ac_fn_c_compute_int ()
2261 {
2262   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2263   if test "$cross_compiling" = yes; then
2264     # Depending upon the size, compute the lo and hi bounds.
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h.  */
2267 $4
2268 int main (void)
2269 {
2270 static int test_array [1 - 2 * !(($2) >= 0)];
2271 test_array [0] = 0;
2272 return test_array [0];
2273
2274  ;
2275  return 0;
2276 }
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279   ac_lo=0 ac_mid=0
2280   while :; do
2281     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h.  */
2283 $4
2284 int main (void)
2285 {
2286 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2287 test_array [0] = 0;
2288 return test_array [0];
2289
2290  ;
2291  return 0;
2292 }
2293 _ACEOF
2294 if ac_fn_c_try_compile "$LINENO"; then :
2295   ac_hi=$ac_mid; break
2296 else
2297   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2298                         if test $ac_lo -le $ac_mid; then
2299                           ac_lo= ac_hi=
2300                           break
2301                         fi
2302                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2303 fi
2304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305   done
2306 else
2307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h.  */
2309 $4
2310 int main (void)
2311 {
2312 static int test_array [1 - 2 * !(($2) < 0)];
2313 test_array [0] = 0;
2314 return test_array [0];
2315
2316  ;
2317  return 0;
2318 }
2319 _ACEOF
2320 if ac_fn_c_try_compile "$LINENO"; then :
2321   ac_hi=-1 ac_mid=-1
2322   while :; do
2323     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h.  */
2325 $4
2326 int main (void)
2327 {
2328 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2329 test_array [0] = 0;
2330 return test_array [0];
2331
2332  ;
2333  return 0;
2334 }
2335 _ACEOF
2336 if ac_fn_c_try_compile "$LINENO"; then :
2337   ac_lo=$ac_mid; break
2338 else
2339   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2340                         if test $ac_mid -le $ac_hi; then
2341                           ac_lo= ac_hi=
2342                           break
2343                         fi
2344                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2345 fi
2346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347   done
2348 else
2349   ac_lo= ac_hi=
2350 fi
2351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2352 fi
2353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2354 # Binary search between lo and hi bounds.
2355 while test "x$ac_lo" != "x$ac_hi"; do
2356   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2358 /* end confdefs.h.  */
2359 $4
2360 int main (void)
2361 {
2362 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2363 test_array [0] = 0;
2364 return test_array [0];
2365
2366  ;
2367  return 0;
2368 }
2369 _ACEOF
2370 if ac_fn_c_try_compile "$LINENO"; then :
2371   ac_hi=$ac_mid
2372 else
2373   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2374 fi
2375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2376 done
2377 case $ac_lo in #((
2378 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2379 '') ac_retval=1 ;;
2380 esac
2381   else
2382     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2383 /* end confdefs.h.  */
2384 $4
2385 static long int longval () { return $2; }
2386 static unsigned long int ulongval () { return $2; }
2387 #include <stdio.h>
2388 #include <stdlib.h>
2389 int main (void)
2390 {
2391
2392   FILE *f = fopen ("conftest.val", "w");
2393   if (! f)
2394     return 1;
2395   if (($2) < 0)
2396     {
2397       long int i = longval ();
2398       if (i != ($2))
2399         return 1;
2400       fprintf (f, "%ld", i);
2401     }
2402   else
2403     {
2404       unsigned long int i = ulongval ();
2405       if (i != ($2))
2406         return 1;
2407       fprintf (f, "%lu", i);
2408     }
2409   /* Do not output a trailing newline, as this causes \r\n confusion
2410      on some platforms.  */
2411   return ferror (f) || fclose (f) != 0;
2412
2413  ;
2414  return 0;
2415 }
2416 _ACEOF
2417 if ac_fn_c_try_run "$LINENO"; then :
2418   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2419 else
2420   ac_retval=1
2421 fi
2422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2423   conftest.$ac_objext conftest.beam conftest.$ac_ext
2424 rm -f conftest.val
2425
2426   fi
2427   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2428   as_fn_set_status $ac_retval
2429
2430 } # ac_fn_c_compute_int
2431
2432 # ac_fn_c_try_link LINENO
2433 # -----------------------
2434 # Try to link conftest.$ac_ext, and return whether this succeeded.
2435 ac_fn_c_try_link ()
2436 {
2437   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2438   rm -f conftest.$ac_objext conftest$ac_exeext
2439   if { { ac_try="$ac_link"
2440 case "(($ac_try" in
2441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442   *) ac_try_echo=$ac_try;;
2443 esac
2444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2445 $as_echo "$ac_try_echo"; } >&5
2446   (eval "$ac_link") 2>conftest.err
2447   ac_status=$?
2448   if test -s conftest.err; then
2449     grep -v '^ *+' conftest.err >conftest.er1
2450     cat conftest.er1 >&5
2451     mv -f conftest.er1 conftest.err
2452   fi
2453   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2454   test $ac_status = 0; } && {
2455          test -z "$ac_c_werror_flag" ||
2456          test ! -s conftest.err
2457        } && test -s conftest$ac_exeext && {
2458          test "$cross_compiling" = yes ||
2459          test -x conftest$ac_exeext
2460        }; then :
2461   ac_retval=0
2462 else
2463   $as_echo "$as_me: failed program was:" >&5
2464 sed 's/^/| /' conftest.$ac_ext >&5
2465
2466         ac_retval=1
2467 fi
2468   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2469   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2470   # interfere with the next link command; also delete a directory that is
2471   # left behind by Apple's compiler.  We do this before executing the actions.
2472   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2473   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2474   as_fn_set_status $ac_retval
2475
2476 } # ac_fn_c_try_link
2477
2478 # ac_fn_c_check_func LINENO FUNC VAR
2479 # ----------------------------------
2480 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2481 ac_fn_c_check_func ()
2482 {
2483   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2485 $as_echo_n "checking for $2... " >&6; }
2486 if eval \${$3+:} false; then :
2487   $as_echo_n "(cached) " >&6
2488 else
2489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2490 /* end confdefs.h.  */
2491
2492 #define $2 innocuous_$2
2493 #ifdef __STDC__
2494 # include <limits.h>
2495 #else
2496 # include <assert.h>
2497 #endif
2498 #undef $2
2499 #ifdef __cplusplus
2500 extern "C"
2501 #endif
2502 char $2 ();
2503 #if defined __stub_$2 || defined __stub___$2
2504 choke me
2505 #endif
2506
2507 int main (void)
2508 {
2509 return $2 ();
2510  ;
2511  return 0;
2512 }
2513 _ACEOF
2514 if ac_fn_c_try_link "$LINENO"; then :
2515   eval "$3=yes"
2516 else
2517   eval "$3=no"
2518 fi
2519 rm -f core conftest.err conftest.$ac_objext \
2520     conftest$ac_exeext conftest.$ac_ext
2521 fi
2522 eval ac_res=\$$3
2523                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2524 $as_echo "$ac_res" >&6; }
2525   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2526
2527 } # ac_fn_c_check_func
2528
2529 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2530 # -------------------------------------------------------
2531 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2532 # the include files in INCLUDES and setting the cache variable VAR
2533 # accordingly.
2534 ac_fn_c_check_header_mongrel ()
2535 {
2536   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2537   if eval \${$3+:} false; then :
2538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2539 $as_echo_n "checking for $2... " >&6; }
2540 if eval \${$3+:} false; then :
2541   $as_echo_n "(cached) " >&6
2542 fi
2543 eval ac_res=\$$3
2544                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2545 $as_echo "$ac_res" >&6; }
2546 else
2547   # Is the header compilable?
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2549 $as_echo_n "checking $2 usability... " >&6; }
2550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551 /* end confdefs.h.  */
2552 $4
2553 #include <$2>
2554 _ACEOF
2555 if ac_fn_c_try_compile "$LINENO"; then :
2556   ac_header_compiler=yes
2557 else
2558   ac_header_compiler=no
2559 fi
2560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2562 $as_echo "$ac_header_compiler" >&6; }
2563
2564 # Is the header present?
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2566 $as_echo_n "checking $2 presence... " >&6; }
2567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2568 /* end confdefs.h.  */
2569 #include <$2>
2570 _ACEOF
2571 if ac_fn_c_try_cpp "$LINENO"; then :
2572   ac_header_preproc=yes
2573 else
2574   ac_header_preproc=no
2575 fi
2576 rm -f conftest.err conftest.i conftest.$ac_ext
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2578 $as_echo "$ac_header_preproc" >&6; }
2579
2580 # So?  What about this header?
2581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2582   yes:no: )
2583     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2584 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2585     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2586 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2587     ;;
2588   no:yes:* )
2589     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2590 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2591     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2592 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2593     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2594 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2595     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2596 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2597     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2598 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2599 ( $as_echo "## ----------------------------------------------------------------------- ##
2600 ## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ##
2601 ## ----------------------------------------------------------------------- ##"
2602      ) | sed "s/^/$as_me: WARNING:     /" >&2
2603     ;;
2604 esac
2605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2606 $as_echo_n "checking for $2... " >&6; }
2607 if eval \${$3+:} false; then :
2608   $as_echo_n "(cached) " >&6
2609 else
2610   eval "$3=\$ac_header_compiler"
2611 fi
2612 eval ac_res=\$$3
2613                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2614 $as_echo "$ac_res" >&6; }
2615 fi
2616   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2617
2618 } # ac_fn_c_check_header_mongrel
2619
2620 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2621 # -------------------------------------------
2622 # Tests whether TYPE exists after having included INCLUDES, setting cache
2623 # variable VAR accordingly.
2624 ac_fn_c_check_type ()
2625 {
2626   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2628 $as_echo_n "checking for $2... " >&6; }
2629 if eval \${$3+:} false; then :
2630   $as_echo_n "(cached) " >&6
2631 else
2632   eval "$3=no"
2633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h.  */
2635 $4
2636 int main (void)
2637 {
2638 if (sizeof ($2))
2639          return 0;
2640  ;
2641  return 0;
2642 }
2643 _ACEOF
2644 if ac_fn_c_try_compile "$LINENO"; then :
2645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2646 /* end confdefs.h.  */
2647 $4
2648 int main (void)
2649 {
2650 if (sizeof (($2)))
2651             return 0;
2652  ;
2653  return 0;
2654 }
2655 _ACEOF
2656 if ac_fn_c_try_compile "$LINENO"; then :
2657
2658 else
2659   eval "$3=yes"
2660 fi
2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2662 fi
2663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2664 fi
2665 eval ac_res=\$$3
2666                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2667 $as_echo "$ac_res" >&6; }
2668   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2669
2670 } # ac_fn_c_check_type
2671
2672 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2673 # ----------------------------------------------------
2674 # Tries to find if the field MEMBER exists in type AGGR, after including
2675 # INCLUDES, setting cache variable VAR accordingly.
2676 ac_fn_c_check_member ()
2677 {
2678   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2680 $as_echo_n "checking for $2.$3... " >&6; }
2681 if eval \${$4+:} false; then :
2682   $as_echo_n "(cached) " >&6
2683 else
2684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2685 /* end confdefs.h.  */
2686 $5
2687 int main (void)
2688 {
2689 static $2 ac_aggr;
2690 if (ac_aggr.$3)
2691 return 0;
2692  ;
2693  return 0;
2694 }
2695 _ACEOF
2696 if ac_fn_c_try_compile "$LINENO"; then :
2697   eval "$4=yes"
2698 else
2699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2700 /* end confdefs.h.  */
2701 $5
2702 int main (void)
2703 {
2704 static $2 ac_aggr;
2705 if (sizeof ac_aggr.$3)
2706 return 0;
2707  ;
2708  return 0;
2709 }
2710 _ACEOF
2711 if ac_fn_c_try_compile "$LINENO"; then :
2712   eval "$4=yes"
2713 else
2714   eval "$4=no"
2715 fi
2716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2717 fi
2718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2719 fi
2720 eval ac_res=\$$4
2721                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2722 $as_echo "$ac_res" >&6; }
2723   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2724
2725 } # ac_fn_c_check_member
2726 cat >config.log <<_ACEOF
2727 This file contains any messages produced by compilers while
2728 running configure, to aid debugging if configure makes a mistake.
2729
2730 It was created by curl $as_me -, which was
2731 generated by GNU Autoconf 2.69.  Invocation command line was
2732
2733   $ $0 $@
2734
2735 _ACEOF
2736 exec 5>>config.log
2737 {
2738 cat <<_ASUNAME
2739 ## --------- ##
2740 ## Platform. ##
2741 ## --------- ##
2742
2743 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2744 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2745 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2746 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2747 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2748
2749 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2750 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2751
2752 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2753 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2754 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2755 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2756 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2757 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2758 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2759
2760 _ASUNAME
2761
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH
2764 do
2765   IFS=$as_save_IFS
2766   test -z "$as_dir" && as_dir=.
2767     $as_echo "PATH: $as_dir"
2768   done
2769 IFS=$as_save_IFS
2770
2771 } >&5
2772
2773 cat >&5 <<_ACEOF
2774
2775
2776 ## ----------- ##
2777 ## Core tests. ##
2778 ## ----------- ##
2779
2780 _ACEOF
2781
2782
2783 # Keep a trace of the command line.
2784 # Strip out --no-create and --no-recursion so they do not pile up.
2785 # Strip out --silent because we don't want to record it for future runs.
2786 # Also quote any args containing shell meta-characters.
2787 # Make two passes to allow for proper duplicate-argument suppression.
2788 ac_configure_args=
2789 ac_configure_args0=
2790 ac_configure_args1=
2791 ac_must_keep_next=false
2792 for ac_pass in 1 2
2793 do
2794   for ac_arg
2795   do
2796     case $ac_arg in
2797     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2798     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2799     | -silent | --silent | --silen | --sile | --sil)
2800       continue ;;
2801     *\'*)
2802       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2803     esac
2804     case $ac_pass in
2805     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2806     2)
2807       as_fn_append ac_configure_args1 " '$ac_arg'"
2808       if test $ac_must_keep_next = true; then
2809         ac_must_keep_next=false # Got value, back to normal.
2810       else
2811         case $ac_arg in
2812           *=* | --config-cache | -C | -disable-* | --disable-* \
2813           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2814           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2815           | -with-* | --with-* | -without-* | --without-* | --x)
2816             case "$ac_configure_args0 " in
2817               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2818             esac
2819             ;;
2820           -* ) ac_must_keep_next=true ;;
2821         esac
2822       fi
2823       as_fn_append ac_configure_args " '$ac_arg'"
2824       ;;
2825     esac
2826   done
2827 done
2828 { ac_configure_args0=; unset ac_configure_args0;}
2829 { ac_configure_args1=; unset ac_configure_args1;}
2830
2831 # When interrupted or exit'd, cleanup temporary files, and complete
2832 # config.log.  We remove comments because anyway the quotes in there
2833 # would cause problems or look ugly.
2834 # WARNING: Use '\'' to represent an apostrophe within the trap.
2835 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2836 trap 'exit_status=$?
2837   # Save into config.log some information that might help in debugging.
2838   {
2839     echo
2840
2841     $as_echo "## ---------------- ##
2842 ## Cache variables. ##
2843 ## ---------------- ##"
2844     echo
2845     # The following way of writing the cache mishandles newlines in values,
2846 (
2847   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2848     eval ac_val=\$$ac_var
2849     case $ac_val in #(
2850     *${as_nl}*)
2851       case $ac_var in #(
2852       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2853 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2854       esac
2855       case $ac_var in #(
2856       _ | IFS | as_nl) ;; #(
2857       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2858       *) { eval $ac_var=; unset $ac_var;} ;;
2859       esac ;;
2860     esac
2861   done
2862   (set) 2>&1 |
2863     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2864     *${as_nl}ac_space=\ *)
2865       sed -n \
2866         "s/'\''/'\''\\\\'\'''\''/g;
2867           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2868       ;; #(
2869     *)
2870       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2871       ;;
2872     esac |
2873     sort
2874 )
2875     echo
2876
2877     $as_echo "## ----------------- ##
2878 ## Output variables. ##
2879 ## ----------------- ##"
2880     echo
2881     for ac_var in $ac_subst_vars
2882     do
2883       eval ac_val=\$$ac_var
2884       case $ac_val in
2885       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2886       esac
2887       $as_echo "$ac_var='\''$ac_val'\''"
2888     done | sort
2889     echo
2890
2891     if test -n "$ac_subst_files"; then
2892       $as_echo "## ------------------- ##
2893 ## File substitutions. ##
2894 ## ------------------- ##"
2895       echo
2896       for ac_var in $ac_subst_files
2897       do
2898         eval ac_val=\$$ac_var
2899         case $ac_val in
2900         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2901         esac
2902         $as_echo "$ac_var='\''$ac_val'\''"
2903       done | sort
2904       echo
2905     fi
2906
2907     if test -s confdefs.h; then
2908       $as_echo "## ----------- ##
2909 ## confdefs.h. ##
2910 ## ----------- ##"
2911       echo
2912       cat confdefs.h
2913       echo
2914     fi
2915     test "$ac_signal" != 0 &&
2916       $as_echo "$as_me: caught signal $ac_signal"
2917     $as_echo "$as_me: exit $exit_status"
2918   } >&5
2919   rm -f core *.core core.conftest.* &&
2920     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2921     exit $exit_status
2922 ' 0
2923 for ac_signal in 1 2 13 15; do
2924   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2925 done
2926 ac_signal=0
2927
2928 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2929 rm -f -r conftest* confdefs.h
2930
2931 $as_echo "/* confdefs.h */" > confdefs.h
2932
2933 # Predefined preprocessor variables.
2934
2935 cat >>confdefs.h <<_ACEOF
2936 #define PACKAGE_NAME "$PACKAGE_NAME"
2937 _ACEOF
2938
2939 cat >>confdefs.h <<_ACEOF
2940 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2941 _ACEOF
2942
2943 cat >>confdefs.h <<_ACEOF
2944 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2945 _ACEOF
2946
2947 cat >>confdefs.h <<_ACEOF
2948 #define PACKAGE_STRING "$PACKAGE_STRING"
2949 _ACEOF
2950
2951 cat >>confdefs.h <<_ACEOF
2952 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2953 _ACEOF
2954
2955 cat >>confdefs.h <<_ACEOF
2956 #define PACKAGE_URL "$PACKAGE_URL"
2957 _ACEOF
2958
2959
2960 # Let the site file select an alternate cache file if it wants to.
2961 # Prefer an explicitly selected file to automatically selected ones.
2962 ac_site_file1=NONE
2963 ac_site_file2=NONE
2964 if test -n "$CONFIG_SITE"; then
2965   # We do not want a PATH search for config.site.
2966   case $CONFIG_SITE in #((
2967     -*)  ac_site_file1=./$CONFIG_SITE;;
2968     */*) ac_site_file1=$CONFIG_SITE;;
2969     *)   ac_site_file1=./$CONFIG_SITE;;
2970   esac
2971 elif test "x$prefix" != xNONE; then
2972   ac_site_file1=$prefix/share/config.site
2973   ac_site_file2=$prefix/etc/config.site
2974 else
2975   ac_site_file1=$ac_default_prefix/share/config.site
2976   ac_site_file2=$ac_default_prefix/etc/config.site
2977 fi
2978 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2979 do
2980   test "x$ac_site_file" = xNONE && continue
2981   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2982     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2983 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2984     sed 's/^/| /' "$ac_site_file" >&5
2985     . "$ac_site_file" \
2986       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2988 as_fn_error $? "failed to load site script $ac_site_file
2989 See \`config.log' for more details" "$LINENO" 5; }
2990   fi
2991 done
2992
2993 if test -r "$cache_file"; then
2994   # Some versions of bash will fail to source /dev/null (special files
2995   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2996   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2997     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2998 $as_echo "$as_me: loading cache $cache_file" >&6;}
2999     case $cache_file in
3000       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3001       *)                      . "./$cache_file";;
3002     esac
3003   fi
3004 else
3005   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3006 $as_echo "$as_me: creating cache $cache_file" >&6;}
3007   >$cache_file
3008 fi
3009
3010 # Check that the precious variables saved in the cache have kept the same
3011 # value.
3012 ac_cache_corrupted=false
3013 for ac_var in $ac_precious_vars; do
3014   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3015   eval ac_new_set=\$ac_env_${ac_var}_set
3016   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3017   eval ac_new_val=\$ac_env_${ac_var}_value
3018   case $ac_old_set,$ac_new_set in
3019     set,)
3020       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3021 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3022       ac_cache_corrupted=: ;;
3023     ,set)
3024       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3025 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3026       ac_cache_corrupted=: ;;
3027     ,);;
3028     *)
3029       if test "x$ac_old_val" != "x$ac_new_val"; then
3030         # differences in whitespace do not lead to failure.
3031         ac_old_val_w=`echo x $ac_old_val`
3032         ac_new_val_w=`echo x $ac_new_val`
3033         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3034           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3035 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3036           ac_cache_corrupted=:
3037         else
3038           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3039 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3040           eval $ac_var=\$ac_old_val
3041         fi
3042         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3043 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3044         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3045 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3046       fi;;
3047   esac
3048   # Pass precious variables to config.status.
3049   if test "$ac_new_set" = set; then
3050     case $ac_new_val in
3051     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3052     *) ac_arg=$ac_var=$ac_new_val ;;
3053     esac
3054     case " $ac_configure_args " in
3055       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3056       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3057     esac
3058   fi
3059 done
3060 if $ac_cache_corrupted; then
3061   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3063   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3064 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3065   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3066 fi
3067 ## -------------------- ##
3068 ## Main body of script. ##
3069 ## -------------------- ##
3070
3071 ac_ext=c
3072 ac_cpp='$CPP $CPPFLAGS'
3073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3076
3077
3078
3079
3080
3081
3082
3083 # using curl-override.m4
3084
3085
3086
3087
3088
3089 ac_config_headers="$ac_config_headers lib/curl_config.h include/curl/curlbuild.h"
3090
3091
3092
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3094 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3095     # Check whether --enable-maintainer-mode was given.
3096 if test "${enable_maintainer_mode+set}" = set; then :
3097   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3098 else
3099   USE_MAINTAINER_MODE=no
3100 fi
3101
3102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3103 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3104    if test $USE_MAINTAINER_MODE = yes; then
3105   MAINTAINER_MODE_TRUE=
3106   MAINTAINER_MODE_FALSE='#'
3107 else
3108   MAINTAINER_MODE_TRUE='#'
3109   MAINTAINER_MODE_FALSE=
3110 fi
3111
3112   MAINT=$MAINTAINER_MODE_TRUE
3113
3114
3115 # Check whether --enable-silent-rules was given.
3116 if test "${enable_silent_rules+set}" = set; then :
3117   enableval=$enable_silent_rules;
3118 fi
3119
3120 case $enable_silent_rules in # (((
3121   yes) AM_DEFAULT_VERBOSITY=0;;
3122    no) AM_DEFAULT_VERBOSITY=1;;
3123     *) AM_DEFAULT_VERBOSITY=0;;
3124 esac
3125 am_make=${MAKE-make}
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3127 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3128 if ${am_cv_make_support_nested_variables+:} false; then :
3129   $as_echo_n "(cached) " >&6
3130 else
3131   if $as_echo 'TRUE=$(BAR$(V))
3132 BAR0=false
3133 BAR1=true
3134 V=1
3135 am__doit:
3136         @$(TRUE)
3137 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3138   am_cv_make_support_nested_variables=yes
3139 else
3140   am_cv_make_support_nested_variables=no
3141 fi
3142 fi
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3144 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3145 if test $am_cv_make_support_nested_variables = yes; then
3146     AM_V='$(V)'
3147   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3148 else
3149   AM_V=$AM_DEFAULT_VERBOSITY
3150   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3151 fi
3152 AM_BACKSLASH='\'
3153
3154
3155
3156         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3157 $as_echo_n "checking whether to enable debug build options... " >&6; }
3158   OPT_DEBUG_BUILD="default"
3159   # Check whether --enable-debug was given.
3160 if test "${enable_debug+set}" = set; then :
3161   enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3162 fi
3163
3164   case "$OPT_DEBUG_BUILD" in
3165     no)
3166             want_debug="no"
3167       ;;
3168     default)
3169             want_debug="no"
3170       ;;
3171     *)
3172             want_debug="yes"
3173       ;;
3174   esac
3175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3176 $as_echo "$want_debug" >&6; }
3177
3178
3179       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3180 $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3181   OPT_COMPILER_OPTIMIZE="default"
3182   # Check whether --enable-optimize was given.
3183 if test "${enable_optimize+set}" = set; then :
3184   enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3185 fi
3186
3187   case "$OPT_COMPILER_OPTIMIZE" in
3188     no)
3189                               want_optimize="no"
3190       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3192       ;;
3193     default)
3194                                                                         if test "$want_debug" = "yes"; then
3195         want_optimize="assume_no"
3196         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3197 $as_echo "(assumed) no" >&6; }
3198       else
3199         want_optimize="assume_yes"
3200         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3201 $as_echo "(assumed) yes" >&6; }
3202       fi
3203       ;;
3204     *)
3205                               want_optimize="yes"
3206       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3207 $as_echo "yes" >&6; }
3208       ;;
3209   esac
3210
3211
3212         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3213 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3214   OPT_COMPILER_WARNINGS="default"
3215   # Check whether --enable-warnings was given.
3216 if test "${enable_warnings+set}" = set; then :
3217   enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3218 fi
3219
3220   case "$OPT_COMPILER_WARNINGS" in
3221     no)
3222             want_warnings="no"
3223       ;;
3224     default)
3225                   want_warnings="$want_debug"
3226       ;;
3227     *)
3228             want_warnings="yes"
3229       ;;
3230   esac
3231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3232 $as_echo "$want_warnings" >&6; }
3233
3234
3235     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3236 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3237   OPT_COMPILER_WERROR="default"
3238   # Check whether --enable-werror was given.
3239 if test "${enable_werror+set}" = set; then :
3240   enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3241 fi
3242
3243   case "$OPT_COMPILER_WERROR" in
3244     no)
3245             want_werror="no"
3246       ;;
3247     default)
3248             want_werror="no"
3249       ;;
3250     *)
3251             want_werror="yes"
3252       ;;
3253   esac
3254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3255 $as_echo "$want_werror" >&6; }
3256
3257
3258     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3259 $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3260   OPT_CURLDEBUG_BUILD="default"
3261   # Check whether --enable-curldebug was given.
3262 if test "${enable_curldebug+set}" = set; then :
3263   enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3264 fi
3265
3266   case "$OPT_CURLDEBUG_BUILD" in
3267     no)
3268             want_curldebug="no"
3269       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3271       ;;
3272     default)
3273                                           if test "$want_debug" = "yes"; then
3274         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3275 $as_echo "(assumed) yes" >&6; }
3276       else
3277         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3279       fi
3280       want_curldebug_assumed="yes"
3281       want_curldebug="$want_debug"
3282       ;;
3283     *)
3284                                                       want_curldebug="yes"
3285       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3286 $as_echo "yes" >&6; }
3287       ;;
3288   esac
3289
3290
3291     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3292 $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3293   OPT_SYMBOL_HIDING="default"
3294   # Check whether --enable-symbol-hiding was given.
3295 if test "${enable_symbol_hiding+set}" = set; then :
3296   enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3297 fi
3298
3299   # Check whether --enable-hidden-symbols was given.
3300 if test "${enable_hidden_symbols+set}" = set; then :
3301   enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3302 fi
3303
3304   case "$OPT_SYMBOL_HIDING" in
3305     no)
3306                               want_symbol_hiding="no"
3307       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308 $as_echo "no" >&6; }
3309       ;;
3310     default)
3311                   want_symbol_hiding="yes"
3312       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3313 $as_echo "yes" >&6; }
3314       ;;
3315     *)
3316                         want_symbol_hiding="yes"
3317       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3318 $as_echo "yes" >&6; }
3319       ;;
3320   esac
3321
3322
3323     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3324 $as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3325   OPT_ARES="default"
3326   # Check whether --enable-ares was given.
3327 if test "${enable_ares+set}" = set; then :
3328   enableval=$enable_ares; OPT_ARES=$enableval
3329 fi
3330
3331   case "$OPT_ARES" in
3332     no)
3333             want_ares="no"
3334       ;;
3335     default)
3336             want_ares="no"
3337       ;;
3338     *)
3339             want_ares="yes"
3340       if test -n "$enableval" && test "$enableval" != "yes"; then
3341         want_ares_path="$enableval"
3342       fi
3343       ;;
3344   esac
3345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3346 $as_echo "$want_ares" >&6; }
3347
3348
3349     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3350 $as_echo_n "checking whether to disable dependency on -lrt... " >&6; }
3351   OPT_RT="default"
3352   # Check whether --enable-rt was given.
3353 if test "${enable_rt+set}" = set; then :
3354   enableval=$enable_rt; OPT_RT=$enableval
3355 fi
3356
3357   case "$OPT_RT" in
3358     no)
3359             dontwant_rt="yes"
3360       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3361 $as_echo "yes" >&6; }
3362       ;;
3363     default)
3364             dontwant_rt="no"
3365       { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3366 $as_echo "(assumed no)" >&6; }
3367       ;;
3368     *)
3369             dontwant_rt="no"
3370       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3372       ;;
3373   esac
3374     if test "$dontwant_rt" = "yes" && test "$want_thres" = "yes" ; then
3375     as_fn_error $? "options --disable-rt and --enable-thread-resolver are mutually exclusive, at most one can be selected." "$LINENO" 5
3376   fi
3377
3378
3379 #
3380 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3381 #
3382
3383 if test -z "$xc_configure_preamble_result"; then
3384   as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3385 fi
3386
3387 #
3388 # Check that 'PATH_SEPARATOR' has already been set.
3389 #
3390
3391 if test -z "$xc_PATH_SEPARATOR"; then
3392   as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3393 fi
3394 if test -z "$PATH_SEPARATOR"; then
3395   as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3396 fi
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3398 $as_echo_n "checking for path separator... " >&6; }
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3400 $as_echo "$PATH_SEPARATOR" >&6; }
3401 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3403 $as_echo_n "checking for initial path separator... " >&6; }
3404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3405 $as_echo "$xc_PATH_SEPARATOR" >&6; }
3406   as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3407 fi
3408
3409
3410 #
3411 # save the configure arguments
3412 #
3413 CONFIGURE_OPTIONS="\"$ac_configure_args\""
3414
3415
3416 CURL_CFLAG_EXTRAS=""
3417 if test X"$want_werror" = Xyes; then
3418   CURL_CFLAG_EXTRAS="-Werror"
3419 fi
3420
3421
3422 if test -z "$SED"; then
3423     # Extract the first word of "sed", so it can be a program name with args.
3424 set dummy sed; ac_word=$2
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3426 $as_echo_n "checking for $ac_word... " >&6; }
3427 if ${ac_cv_path_SED+:} false; then :
3428   $as_echo_n "(cached) " >&6
3429 else
3430   case $SED in
3431   [\\/]* | ?:[\\/]*)
3432   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3433   ;;
3434   *)
3435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3437 for as_dir in $as_dummy
3438 do
3439   IFS=$as_save_IFS
3440   test -z "$as_dir" && as_dir=.
3441     for ac_exec_ext in '' $ac_executable_extensions; do
3442   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3443     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3445     break 2
3446   fi
3447 done
3448   done
3449 IFS=$as_save_IFS
3450
3451   test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3452   ;;
3453 esac
3454 fi
3455 SED=$ac_cv_path_SED
3456 if test -n "$SED"; then
3457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3458 $as_echo "$SED" >&6; }
3459 else
3460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3462 fi
3463
3464
3465   if test -z "$SED" || test "$SED" = "not_found"; then
3466     as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3467   fi
3468 fi
3469
3470
3471 if test -z "$GREP"; then
3472     # Extract the first word of "grep", so it can be a program name with args.
3473 set dummy grep; ac_word=$2
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475 $as_echo_n "checking for $ac_word... " >&6; }
3476 if ${ac_cv_path_GREP+:} false; then :
3477   $as_echo_n "(cached) " >&6
3478 else
3479   case $GREP in
3480   [\\/]* | ?:[\\/]*)
3481   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3482   ;;
3483   *)
3484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3486 for as_dir in $as_dummy
3487 do
3488   IFS=$as_save_IFS
3489   test -z "$as_dir" && as_dir=.
3490     for ac_exec_ext in '' $ac_executable_extensions; do
3491   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3492     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3494     break 2
3495   fi
3496 done
3497   done
3498 IFS=$as_save_IFS
3499
3500   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3501   ;;
3502 esac
3503 fi
3504 GREP=$ac_cv_path_GREP
3505 if test -n "$GREP"; then
3506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3507 $as_echo "$GREP" >&6; }
3508 else
3509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3511 fi
3512
3513
3514   if test -z "$GREP" || test "$GREP" = "not_found"; then
3515     as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3516   fi
3517 fi
3518
3519
3520 if test -z "$EGREP"; then
3521     if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3522     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3523 $as_echo_n "checking for egrep... " >&6; }
3524     EGREP="$GREP -E"
3525     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3526 $as_echo "$EGREP" >&6; }
3527   else
3528     # Extract the first word of "egrep", so it can be a program name with args.
3529 set dummy egrep; ac_word=$2
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 $as_echo_n "checking for $ac_word... " >&6; }
3532 if ${ac_cv_path_EGREP+:} false; then :
3533   $as_echo_n "(cached) " >&6
3534 else
3535   case $EGREP in
3536   [\\/]* | ?:[\\/]*)
3537   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3538   ;;
3539   *)
3540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3542 for as_dir in $as_dummy
3543 do
3544   IFS=$as_save_IFS
3545   test -z "$as_dir" && as_dir=.
3546     for ac_exec_ext in '' $ac_executable_extensions; do
3547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3548     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3550     break 2
3551   fi
3552 done
3553   done
3554 IFS=$as_save_IFS
3555
3556   test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3557   ;;
3558 esac
3559 fi
3560 EGREP=$ac_cv_path_EGREP
3561 if test -n "$EGREP"; then
3562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3563 $as_echo "$EGREP" >&6; }
3564 else
3565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3567 fi
3568
3569
3570   fi
3571 fi
3572 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3573   as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3574 fi
3575
3576
3577 if test -z "$AR"; then
3578     if test -n "$ac_tool_prefix"; then
3579   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3580 set dummy ${ac_tool_prefix}ar; ac_word=$2
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3582 $as_echo_n "checking for $ac_word... " >&6; }
3583 if ${ac_cv_path_AR+:} false; then :
3584   $as_echo_n "(cached) " >&6
3585 else
3586   case $AR in
3587   [\\/]* | ?:[\\/]*)
3588   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3589   ;;
3590   *)
3591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3593 for as_dir in $as_dummy
3594 do
3595   IFS=$as_save_IFS
3596   test -z "$as_dir" && as_dir=.
3597     for ac_exec_ext in '' $ac_executable_extensions; do
3598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3599     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3601     break 2
3602   fi
3603 done
3604   done
3605 IFS=$as_save_IFS
3606
3607   ;;
3608 esac
3609 fi
3610 AR=$ac_cv_path_AR
3611 if test -n "$AR"; then
3612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3613 $as_echo "$AR" >&6; }
3614 else
3615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616 $as_echo "no" >&6; }
3617 fi
3618
3619
3620 fi
3621 if test -z "$ac_cv_path_AR"; then
3622   ac_pt_AR=$AR
3623   # Extract the first word of "ar", so it can be a program name with args.
3624 set dummy ar; ac_word=$2
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626 $as_echo_n "checking for $ac_word... " >&6; }
3627 if ${ac_cv_path_ac_pt_AR+:} false; then :
3628   $as_echo_n "(cached) " >&6
3629 else
3630   case $ac_pt_AR in
3631   [\\/]* | ?:[\\/]*)
3632   ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3633   ;;
3634   *)
3635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3637 for as_dir in $as_dummy
3638 do
3639   IFS=$as_save_IFS
3640   test -z "$as_dir" && as_dir=.
3641     for ac_exec_ext in '' $ac_executable_extensions; do
3642   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3643     ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3645     break 2
3646   fi
3647 done
3648   done
3649 IFS=$as_save_IFS
3650
3651   ;;
3652 esac
3653 fi
3654 ac_pt_AR=$ac_cv_path_ac_pt_AR
3655 if test -n "$ac_pt_AR"; then
3656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3657 $as_echo "$ac_pt_AR" >&6; }
3658 else
3659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 $as_echo "no" >&6; }
3661 fi
3662
3663   if test "x$ac_pt_AR" = x; then
3664     AR="not_found"
3665   else
3666     case $cross_compiling:$ac_tool_warned in
3667 yes:)
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3670 ac_tool_warned=yes ;;
3671 esac
3672     AR=$ac_pt_AR
3673   fi
3674 else
3675   AR="$ac_cv_path_AR"
3676 fi
3677
3678   if test -z "$AR" || test "$AR" = "not_found"; then
3679     as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3680   fi
3681 fi
3682
3683
3684
3685
3686 if test -f ${srcdir}/include/curl/curlbuild.h; then
3687   rm -f ${srcdir}/include/curl/curlbuild.h
3688 fi
3689
3690 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h`
3691
3692   xc_prog_cc_prev_IFS=$IFS
3693   xc_prog_cc_prev_LIBS=$LIBS
3694   xc_prog_cc_prev_CFLAGS=$CFLAGS
3695   xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3696   xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3697
3698
3699
3700   xc_bad_var_libs=no
3701   for xc_word in $LIBS; do
3702     case "$xc_word" in
3703       -l* | --library=*)
3704         :
3705         ;;
3706       *)
3707         xc_bad_var_libs=yes
3708         ;;
3709     esac
3710   done
3711   if test $xc_bad_var_libs = yes; then
3712     { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3713 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
3714     { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3715 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3716   fi
3717
3718
3719   xc_bad_var_ldflags=no
3720   for xc_word in $LDFLAGS; do
3721     case "$xc_word" in
3722       -D*)
3723         xc_bad_var_ldflags=yes
3724         ;;
3725       -U*)
3726         xc_bad_var_ldflags=yes
3727         ;;
3728       -I*)
3729         xc_bad_var_ldflags=yes
3730         ;;
3731       -l* | --library=*)
3732         xc_bad_var_ldflags=yes
3733         ;;
3734     esac
3735   done
3736   if test $xc_bad_var_ldflags = yes; then
3737     { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3738 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3739     xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3740     for xc_word in $LDFLAGS; do
3741       case "$xc_word" in
3742         -D*)
3743           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3744 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3745           ;;
3746         -U*)
3747           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3748 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3749           ;;
3750         -I*)
3751           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3752 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3753           ;;
3754         -l* | --library=*)
3755           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3756 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3757           ;;
3758       esac
3759     done
3760   fi
3761
3762
3763   xc_bad_var_cppflags=no
3764   for xc_word in $CPPFLAGS; do
3765     case "$xc_word" in
3766       -rpath*)
3767         xc_bad_var_cppflags=yes
3768         ;;
3769       -L* | --library-path=*)
3770         xc_bad_var_cppflags=yes
3771         ;;
3772       -l* | --library=*)
3773         xc_bad_var_cppflags=yes
3774         ;;
3775     esac
3776   done
3777   if test $xc_bad_var_cppflags = yes; then
3778     { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3779 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3780     xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3781     for xc_word in $CPPFLAGS; do
3782       case "$xc_word" in
3783         -rpath*)
3784           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3785 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3786           ;;
3787         -L* | --library-path=*)
3788           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3789 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3790           ;;
3791         -l* | --library=*)
3792           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3793 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3794           ;;
3795       esac
3796     done
3797   fi
3798
3799
3800   xc_bad_var_cflags=no
3801   for xc_word in $CFLAGS; do
3802     case "$xc_word" in
3803       -D*)
3804         xc_bad_var_cflags=yes
3805         ;;
3806       -U*)
3807         xc_bad_var_cflags=yes
3808         ;;
3809       -I*)
3810         xc_bad_var_cflags=yes
3811         ;;
3812       -rpath*)
3813         xc_bad_var_cflags=yes
3814         ;;
3815       -L* | --library-path=*)
3816         xc_bad_var_cflags=yes
3817         ;;
3818       -l* | --library=*)
3819         xc_bad_var_cflags=yes
3820         ;;
3821     esac
3822   done
3823   if test $xc_bad_var_cflags = yes; then
3824     { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3825 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3826     xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3827     for xc_word in $CFLAGS; do
3828       case "$xc_word" in
3829         -D*)
3830           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3831 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3832           ;;
3833         -U*)
3834           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3835 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3836           ;;
3837         -I*)
3838           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3839 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3840           ;;
3841         -rpath*)
3842           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3843 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3844           ;;
3845         -L* | --library-path=*)
3846           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3847 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3848           ;;
3849         -l* | --library=*)
3850           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3851 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3852           ;;
3853       esac
3854     done
3855   fi
3856
3857   if test $xc_bad_var_libs = yes ||
3858      test $xc_bad_var_cflags = yes ||
3859      test $xc_bad_var_ldflags = yes ||
3860      test $xc_bad_var_cppflags = yes; then
3861      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3862 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3863   fi
3864
3865 ac_aux_dir=
3866 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3867   if test -f "$ac_dir/install-sh"; then
3868     ac_aux_dir=$ac_dir
3869     ac_install_sh="$ac_aux_dir/install-sh -c"
3870     break
3871   elif test -f "$ac_dir/install.sh"; then
3872     ac_aux_dir=$ac_dir
3873     ac_install_sh="$ac_aux_dir/install.sh -c"
3874     break
3875   elif test -f "$ac_dir/shtool"; then
3876     ac_aux_dir=$ac_dir
3877     ac_install_sh="$ac_aux_dir/shtool install -c"
3878     break
3879   fi
3880 done
3881 if test -z "$ac_aux_dir"; then
3882   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3883 fi
3884
3885 # These three variables are undocumented and unsupported,
3886 # and are intended to be withdrawn in a future Autoconf release.
3887 # They can cause serious problems if a builder's source tree is in a directory
3888 # whose full name contains unusual characters.
3889 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3890 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3891 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3892
3893
3894 # Find a good install program.  We prefer a C program (faster),
3895 # so one script is as good as another.  But avoid the broken or
3896 # incompatible versions:
3897 # SysV /etc/install, /usr/sbin/install
3898 # SunOS /usr/etc/install
3899 # IRIX /sbin/install
3900 # AIX /bin/install
3901 # AmigaOS /C/install, which installs bootblocks on floppy discs
3902 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3903 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3904 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3905 # OS/2's system install, which has a completely different semantic
3906 # ./install, which can be erroneously created by make from ./install.sh.
3907 # Reject install programs that cannot install multiple files.
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3909 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3910 if test -z "$INSTALL"; then
3911 if ${ac_cv_path_install+:} false; then :
3912   $as_echo_n "(cached) " >&6
3913 else
3914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3916 do
3917   IFS=$as_save_IFS
3918   test -z "$as_dir" && as_dir=.
3919     # Account for people who put trailing slashes in PATH elements.
3920 case $as_dir/ in #((
3921   ./ | .// | /[cC]/* | \
3922   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3923   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3924   /usr/ucb/* ) ;;
3925   *)
3926     # OSF1 and SCO ODT 3.0 have their own names for install.
3927     # Don't use installbsd from OSF since it installs stuff as root
3928     # by default.
3929     for ac_prog in ginstall scoinst install; do
3930       for ac_exec_ext in '' $ac_executable_extensions; do
3931         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3932           if test $ac_prog = install &&
3933             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3934             # AIX install.  It has an incompatible calling convention.
3935             :
3936           elif test $ac_prog = install &&
3937             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3938             # program-specific install script used by HP pwplus--don't use.
3939             :
3940           else
3941             rm -rf conftest.one conftest.two conftest.dir
3942             echo one > conftest.one
3943             echo two > conftest.two
3944             mkdir conftest.dir
3945             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3946               test -s conftest.one && test -s conftest.two &&
3947               test -s conftest.dir/conftest.one &&
3948               test -s conftest.dir/conftest.two
3949             then
3950               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3951               break 3
3952             fi
3953           fi
3954         fi
3955       done
3956     done
3957     ;;
3958 esac
3959
3960   done
3961 IFS=$as_save_IFS
3962
3963 rm -rf conftest.one conftest.two conftest.dir
3964
3965 fi
3966   if test "${ac_cv_path_install+set}" = set; then
3967     INSTALL=$ac_cv_path_install
3968   else
3969     # As a last resort, use the slow shell script.  Don't cache a
3970     # value for INSTALL within a source directory, because that will
3971     # break other packages using the cache if that directory is
3972     # removed, or if the value is a relative name.
3973     INSTALL=$ac_install_sh
3974   fi
3975 fi
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3977 $as_echo "$INSTALL" >&6; }
3978
3979 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3980 # It thinks the first close brace ends the variable substitution.
3981 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3982
3983 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3984
3985 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3986
3987 # Expand $ac_aux_dir to an absolute path.
3988 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3989
3990 ac_ext=c
3991 ac_cpp='$CPP $CPPFLAGS'
3992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3995 if test -n "$ac_tool_prefix"; then
3996   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3997 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3999 $as_echo_n "checking for $ac_word... " >&6; }
4000 if ${ac_cv_prog_CC+:} false; then :
4001   $as_echo_n "(cached) " >&6
4002 else
4003   if test -n "$CC"; then
4004   ac_cv_prog_CC="$CC" # Let the user override the test.
4005 else
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 for as_dir in $PATH
4008 do
4009   IFS=$as_save_IFS
4010   test -z "$as_dir" && as_dir=.
4011     for ac_exec_ext in '' $ac_executable_extensions; do
4012   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4013     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4015     break 2
4016   fi
4017 done
4018   done
4019 IFS=$as_save_IFS
4020
4021 fi
4022 fi
4023 CC=$ac_cv_prog_CC
4024 if test -n "$CC"; then
4025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4026 $as_echo "$CC" >&6; }
4027 else
4028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4029 $as_echo "no" >&6; }
4030 fi
4031
4032
4033 fi
4034 if test -z "$ac_cv_prog_CC"; then
4035   ac_ct_CC=$CC
4036   # Extract the first word of "gcc", so it can be a program name with args.
4037 set dummy gcc; ac_word=$2
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4039 $as_echo_n "checking for $ac_word... " >&6; }
4040 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4041   $as_echo_n "(cached) " >&6
4042 else
4043   if test -n "$ac_ct_CC"; then
4044   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4045 else
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047 for as_dir in $PATH
4048 do
4049   IFS=$as_save_IFS
4050   test -z "$as_dir" && as_dir=.
4051     for ac_exec_ext in '' $ac_executable_extensions; do
4052   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4053     ac_cv_prog_ac_ct_CC="gcc"
4054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4055     break 2
4056   fi
4057 done
4058   done
4059 IFS=$as_save_IFS
4060
4061 fi
4062 fi
4063 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4064 if test -n "$ac_ct_CC"; then
4065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4066 $as_echo "$ac_ct_CC" >&6; }
4067 else
4068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069 $as_echo "no" >&6; }
4070 fi
4071
4072   if test "x$ac_ct_CC" = x; then
4073     CC=""
4074   else
4075     case $cross_compiling:$ac_tool_warned in
4076 yes:)
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4079 ac_tool_warned=yes ;;
4080 esac
4081     CC=$ac_ct_CC
4082   fi
4083 else
4084   CC="$ac_cv_prog_CC"
4085 fi
4086
4087 if test -z "$CC"; then
4088           if test -n "$ac_tool_prefix"; then
4089     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4090 set dummy ${ac_tool_prefix}cc; ac_word=$2
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4092 $as_echo_n "checking for $ac_word... " >&6; }
4093 if ${ac_cv_prog_CC+:} false; then :
4094   $as_echo_n "(cached) " >&6
4095 else
4096   if test -n "$CC"; then
4097   ac_cv_prog_CC="$CC" # Let the user override the test.
4098 else
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH
4101 do
4102   IFS=$as_save_IFS
4103   test -z "$as_dir" && as_dir=.
4104     for ac_exec_ext in '' $ac_executable_extensions; do
4105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4106     ac_cv_prog_CC="${ac_tool_prefix}cc"
4107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4108     break 2
4109   fi
4110 done
4111   done
4112 IFS=$as_save_IFS
4113
4114 fi
4115 fi
4116 CC=$ac_cv_prog_CC
4117 if test -n "$CC"; then
4118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4119 $as_echo "$CC" >&6; }
4120 else
4121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4123 fi
4124
4125
4126   fi
4127 fi
4128 if test -z "$CC"; then
4129   # Extract the first word of "cc", so it can be a program name with args.
4130 set dummy cc; ac_word=$2
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132 $as_echo_n "checking for $ac_word... " >&6; }
4133 if ${ac_cv_prog_CC+:} false; then :
4134   $as_echo_n "(cached) " >&6
4135 else
4136   if test -n "$CC"; then
4137   ac_cv_prog_CC="$CC" # Let the user override the test.
4138 else
4139   ac_prog_rejected=no
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 for as_dir in $PATH
4142 do
4143   IFS=$as_save_IFS
4144   test -z "$as_dir" && as_dir=.
4145     for ac_exec_ext in '' $ac_executable_extensions; do
4146   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4147     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4148        ac_prog_rejected=yes
4149        continue
4150      fi
4151     ac_cv_prog_CC="cc"
4152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4153     break 2
4154   fi
4155 done
4156   done
4157 IFS=$as_save_IFS
4158
4159 if test $ac_prog_rejected = yes; then
4160   # We found a bogon in the path, so make sure we never use it.
4161   set dummy $ac_cv_prog_CC
4162   shift
4163   if test $# != 0; then
4164     # We chose a different compiler from the bogus one.
4165     # However, it has the same basename, so the bogon will be chosen
4166     # first if we set CC to just the basename; use the full file name.
4167     shift
4168     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4169   fi
4170 fi
4171 fi
4172 fi
4173 CC=$ac_cv_prog_CC
4174 if test -n "$CC"; then
4175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4176 $as_echo "$CC" >&6; }
4177 else
4178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4179 $as_echo "no" >&6; }
4180 fi
4181
4182
4183 fi
4184 if test -z "$CC"; then
4185   if test -n "$ac_tool_prefix"; then
4186   for ac_prog in cl.exe
4187   do
4188     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4189 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4191 $as_echo_n "checking for $ac_word... " >&6; }
4192 if ${ac_cv_prog_CC+:} false; then :
4193   $as_echo_n "(cached) " >&6
4194 else
4195   if test -n "$CC"; then
4196   ac_cv_prog_CC="$CC" # Let the user override the test.
4197 else
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 for as_dir in $PATH
4200 do
4201   IFS=$as_save_IFS
4202   test -z "$as_dir" && as_dir=.
4203     for ac_exec_ext in '' $ac_executable_extensions; do
4204   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4205     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4207     break 2
4208   fi
4209 done
4210   done
4211 IFS=$as_save_IFS
4212
4213 fi
4214 fi
4215 CC=$ac_cv_prog_CC
4216 if test -n "$CC"; then
4217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4218 $as_echo "$CC" >&6; }
4219 else
4220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221 $as_echo "no" >&6; }
4222 fi
4223
4224
4225     test -n "$CC" && break
4226   done
4227 fi
4228 if test -z "$CC"; then
4229   ac_ct_CC=$CC
4230   for ac_prog in cl.exe
4231 do
4232   # Extract the first word of "$ac_prog", so it can be a program name with args.
4233 set dummy $ac_prog; ac_word=$2
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4235 $as_echo_n "checking for $ac_word... " >&6; }
4236 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4237   $as_echo_n "(cached) " >&6
4238 else
4239   if test -n "$ac_ct_CC"; then
4240   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4241 else
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 for as_dir in $PATH
4244 do
4245   IFS=$as_save_IFS
4246   test -z "$as_dir" && as_dir=.
4247     for ac_exec_ext in '' $ac_executable_extensions; do
4248   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4249     ac_cv_prog_ac_ct_CC="$ac_prog"
4250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4251     break 2
4252   fi
4253 done
4254   done
4255 IFS=$as_save_IFS
4256
4257 fi
4258 fi
4259 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4260 if test -n "$ac_ct_CC"; then
4261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4262 $as_echo "$ac_ct_CC" >&6; }
4263 else
4264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265 $as_echo "no" >&6; }
4266 fi
4267
4268
4269   test -n "$ac_ct_CC" && break
4270 done
4271
4272   if test "x$ac_ct_CC" = x; then
4273     CC=""
4274   else
4275     case $cross_compiling:$ac_tool_warned in
4276 yes:)
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4279 ac_tool_warned=yes ;;
4280 esac
4281     CC=$ac_ct_CC
4282   fi
4283 fi
4284
4285 fi
4286
4287
4288 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4290 as_fn_error $? "no acceptable C compiler found in \$PATH
4291 See \`config.log' for more details" "$LINENO" 5; }
4292
4293 # Provide some information about the compiler.
4294 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4295 set X $ac_compile
4296 ac_compiler=$2
4297 for ac_option in --version -v -V -qversion; do
4298   { { ac_try="$ac_compiler $ac_option >&5"
4299 case "(($ac_try" in
4300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301   *) ac_try_echo=$ac_try;;
4302 esac
4303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4304 $as_echo "$ac_try_echo"; } >&5
4305   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4306   ac_status=$?
4307   if test -s conftest.err; then
4308     sed '10a\
4309 ... rest of stderr output deleted ...
4310          10q' conftest.err >conftest.er1
4311     cat conftest.er1 >&5
4312   fi
4313   rm -f conftest.er1 conftest.err
4314   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315   test $ac_status = 0; }
4316 done
4317
4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h.  */
4320
4321 int main (void)
4322 {
4323
4324  ;
4325  return 0;
4326 }
4327 _ACEOF
4328 ac_clean_files_save=$ac_clean_files
4329 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4330 # Try to create an executable without -o first, disregard a.out.
4331 # It will help us diagnose broken compilers, and finding out an intuition
4332 # of exeext.
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4334 $as_echo_n "checking whether the C compiler works... " >&6; }
4335 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4336
4337 # The possible output files:
4338 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4339
4340 ac_rmfiles=
4341 for ac_file in $ac_files
4342 do
4343   case $ac_file in
4344     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4345     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4346   esac
4347 done
4348 rm -f $ac_rmfiles
4349
4350 if { { ac_try="$ac_link_default"
4351 case "(($ac_try" in
4352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353   *) ac_try_echo=$ac_try;;
4354 esac
4355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4356 $as_echo "$ac_try_echo"; } >&5
4357   (eval "$ac_link_default") 2>&5
4358   ac_status=$?
4359   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4360   test $ac_status = 0; }; then :
4361   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4362 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4363 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4364 # so that the user can short-circuit this test for compilers unknown to
4365 # Autoconf.
4366 for ac_file in $ac_files ''
4367 do
4368   test -f "$ac_file" || continue
4369   case $ac_file in
4370     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4371         ;;
4372     [ab].out )
4373         # We found the default executable, but exeext='' is most
4374         # certainly right.
4375         break;;
4376     *.* )
4377         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4378         then :; else
4379            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4380         fi
4381         # We set ac_cv_exeext here because the later test for it is not
4382         # safe: cross compilers may not add the suffix if given an `-o'
4383         # argument, so we may need to know it at that point already.
4384         # Even if this section looks crufty: it has the advantage of
4385         # actually working.
4386         break;;
4387     * )
4388         break;;
4389   esac
4390 done
4391 test "$ac_cv_exeext" = no && ac_cv_exeext=
4392
4393 else
4394   ac_file=''
4395 fi
4396 if test -z "$ac_file"; then :
4397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398 $as_echo "no" >&6; }
4399 $as_echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4401
4402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4404 as_fn_error 77 "C compiler cannot create executables
4405 See \`config.log' for more details" "$LINENO" 5; }
4406 else
4407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4408 $as_echo "yes" >&6; }
4409 fi
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4411 $as_echo_n "checking for C compiler default output file name... " >&6; }
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4413 $as_echo "$ac_file" >&6; }
4414 ac_exeext=$ac_cv_exeext
4415
4416 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4417 ac_clean_files=$ac_clean_files_save
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4419 $as_echo_n "checking for suffix of executables... " >&6; }
4420 if { { ac_try="$ac_link"
4421 case "(($ac_try" in
4422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423   *) ac_try_echo=$ac_try;;
4424 esac
4425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4426 $as_echo "$ac_try_echo"; } >&5
4427   (eval "$ac_link") 2>&5
4428   ac_status=$?
4429   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4430   test $ac_status = 0; }; then :
4431   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4432 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4433 # work properly (i.e., refer to `conftest.exe'), while it won't with
4434 # `rm'.
4435 for ac_file in conftest.exe conftest conftest.*; do
4436   test -f "$ac_file" || continue
4437   case $ac_file in
4438     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4439     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4440           break;;
4441     * ) break;;
4442   esac
4443 done
4444 else
4445   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4447 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4448 See \`config.log' for more details" "$LINENO" 5; }
4449 fi
4450 rm -f conftest conftest$ac_cv_exeext
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4452 $as_echo "$ac_cv_exeext" >&6; }
4453
4454 rm -f conftest.$ac_ext
4455 EXEEXT=$ac_cv_exeext
4456 ac_exeext=$EXEEXT
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h.  */
4459 #include <stdio.h>
4460 int main (void)
4461 {
4462 FILE *f = fopen ("conftest.out", "w");
4463  return ferror (f) || fclose (f) != 0;
4464
4465  ;
4466  return 0;
4467 }
4468 _ACEOF
4469 ac_clean_files="$ac_clean_files conftest.out"
4470 # Check that the compiler produces executables we can run.  If not, either
4471 # the compiler is broken, or we cross compile.
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4473 $as_echo_n "checking whether we are cross compiling... " >&6; }
4474 if test "$cross_compiling" != yes; then
4475   { { ac_try="$ac_link"
4476 case "(($ac_try" in
4477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478   *) ac_try_echo=$ac_try;;
4479 esac
4480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4481 $as_echo "$ac_try_echo"; } >&5
4482   (eval "$ac_link") 2>&5
4483   ac_status=$?
4484   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4485   test $ac_status = 0; }
4486   if { ac_try='./conftest$ac_cv_exeext'
4487   { { case "(($ac_try" in
4488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489   *) ac_try_echo=$ac_try;;
4490 esac
4491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4492 $as_echo "$ac_try_echo"; } >&5
4493   (eval "$ac_try") 2>&5
4494   ac_status=$?
4495   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4496   test $ac_status = 0; }; }; then
4497     cross_compiling=no
4498   else
4499     if test "$cross_compiling" = maybe; then
4500         cross_compiling=yes
4501     else
4502         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4504 as_fn_error $? "cannot run C compiled programs.
4505 If you meant to cross compile, use \`--host'.
4506 See \`config.log' for more details" "$LINENO" 5; }
4507     fi
4508   fi
4509 fi
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4511 $as_echo "$cross_compiling" >&6; }
4512
4513 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4514 ac_clean_files=$ac_clean_files_save
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4516 $as_echo_n "checking for suffix of object files... " >&6; }
4517 if ${ac_cv_objext+:} false; then :
4518   $as_echo_n "(cached) " >&6
4519 else
4520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h.  */
4522
4523 int main (void)
4524 {
4525
4526  ;
4527  return 0;
4528 }
4529 _ACEOF
4530 rm -f conftest.o conftest.obj
4531 if { { ac_try="$ac_compile"
4532 case "(($ac_try" in
4533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534   *) ac_try_echo=$ac_try;;
4535 esac
4536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4537 $as_echo "$ac_try_echo"; } >&5
4538   (eval "$ac_compile") 2>&5
4539   ac_status=$?
4540   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4541   test $ac_status = 0; }; then :
4542   for ac_file in conftest.o conftest.obj conftest.*; do
4543   test -f "$ac_file" || continue;
4544   case $ac_file in
4545     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4546     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4547        break;;
4548   esac
4549 done
4550 else
4551   $as_echo "$as_me: failed program was:" >&5
4552 sed 's/^/| /' conftest.$ac_ext >&5
4553
4554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4556 as_fn_error $? "cannot compute suffix of object files: cannot compile
4557 See \`config.log' for more details" "$LINENO" 5; }
4558 fi
4559 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4560 fi
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4562 $as_echo "$ac_cv_objext" >&6; }
4563 OBJEXT=$ac_cv_objext
4564 ac_objext=$OBJEXT
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4566 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4567 if ${ac_cv_c_compiler_gnu+:} false; then :
4568   $as_echo_n "(cached) " >&6
4569 else
4570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571 /* end confdefs.h.  */
4572
4573 int main (void)
4574 {
4575 #ifndef __GNUC__
4576        choke me
4577 #endif
4578
4579  ;
4580  return 0;
4581 }
4582 _ACEOF
4583 if ac_fn_c_try_compile "$LINENO"; then :
4584   ac_compiler_gnu=yes
4585 else
4586   ac_compiler_gnu=no
4587 fi
4588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4590
4591 fi
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4593 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4594 if test $ac_compiler_gnu = yes; then
4595   GCC=yes
4596 else
4597   GCC=
4598 fi
4599 ac_test_CFLAGS=${CFLAGS+set}
4600 ac_save_CFLAGS=$CFLAGS
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4602 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4603 if ${ac_cv_prog_cc_g+:} false; then :
4604   $as_echo_n "(cached) " >&6
4605 else
4606   ac_save_c_werror_flag=$ac_c_werror_flag
4607    ac_c_werror_flag=yes
4608    ac_cv_prog_cc_g=no
4609    CFLAGS="-g"
4610    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h.  */
4612
4613 int main (void)
4614 {
4615
4616  ;
4617  return 0;
4618 }
4619 _ACEOF
4620 if ac_fn_c_try_compile "$LINENO"; then :
4621   ac_cv_prog_cc_g=yes
4622 else
4623   CFLAGS=""
4624       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h.  */
4626
4627 int main (void)
4628 {
4629
4630  ;
4631  return 0;
4632 }
4633 _ACEOF
4634 if ac_fn_c_try_compile "$LINENO"; then :
4635
4636 else
4637   ac_c_werror_flag=$ac_save_c_werror_flag
4638          CFLAGS="-g"
4639          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640 /* end confdefs.h.  */
4641
4642 int main (void)
4643 {
4644
4645  ;
4646  return 0;
4647 }
4648 _ACEOF
4649 if ac_fn_c_try_compile "$LINENO"; then :
4650   ac_cv_prog_cc_g=yes
4651 fi
4652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4653 fi
4654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4655 fi
4656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4657    ac_c_werror_flag=$ac_save_c_werror_flag
4658 fi
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4660 $as_echo "$ac_cv_prog_cc_g" >&6; }
4661 if test "$ac_test_CFLAGS" = set; then
4662   CFLAGS=$ac_save_CFLAGS
4663 elif test $ac_cv_prog_cc_g = yes; then
4664   if test "$GCC" = yes; then
4665     CFLAGS="-g -O2"
4666   else
4667     CFLAGS="-g"
4668   fi
4669 else
4670   if test "$GCC" = yes; then
4671     CFLAGS="-O2"
4672   else
4673     CFLAGS=
4674   fi
4675 fi
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4677 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4678 if ${ac_cv_prog_cc_c89+:} false; then :
4679   $as_echo_n "(cached) " >&6
4680 else
4681   ac_cv_prog_cc_c89=no
4682 ac_save_CC=$CC
4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h.  */
4685 #include <stdarg.h>
4686 #include <stdio.h>
4687 struct stat;
4688 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4689 struct buf { int x; };
4690 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4691 static char *e (p, i)
4692      char **p;
4693      int i;
4694 {
4695   return p[i];
4696 }
4697 static char *f (char * (*g) (char **, int), char **p, ...)
4698 {
4699   char *s;
4700   va_list v;
4701   va_start (v,p);
4702   s = g (p, va_arg (v,int));
4703   va_end (v);
4704   return s;
4705 }
4706
4707 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4708    function prototypes and stuff, but not '\xHH' hex character constants.
4709    These don't provoke an error unfortunately, instead are silently treated
4710    as 'x'.  The following induces an error, until -std is added to get
4711    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4712    array size at least.  It's necessary to write '\x00'==0 to get something
4713    that's true only with -std.  */
4714 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4715
4716 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4717    inside strings and character constants.  */
4718 #define FOO(x) 'x'
4719 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4720
4721 int test (int i, double x);
4722 struct s1 {int (*f) (int a);};
4723 struct s2 {int (*f) (double a);};
4724 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4725 int argc;
4726 char **argv;
4727 int main (void)
4728 {
4729 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4730  ;
4731  return 0;
4732 }
4733 _ACEOF
4734 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4735         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4736 do
4737   CC="$ac_save_CC $ac_arg"
4738   if ac_fn_c_try_compile "$LINENO"; then :
4739   ac_cv_prog_cc_c89=$ac_arg
4740 fi
4741 rm -f core conftest.err conftest.$ac_objext
4742   test "x$ac_cv_prog_cc_c89" != "xno" && break
4743 done
4744 rm -f conftest.$ac_ext
4745 CC=$ac_save_CC
4746
4747 fi
4748 # AC_CACHE_VAL
4749 case "x$ac_cv_prog_cc_c89" in
4750   x)
4751     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4752 $as_echo "none needed" >&6; } ;;
4753   xno)
4754     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4755 $as_echo "unsupported" >&6; } ;;
4756   *)
4757     CC="$CC $ac_cv_prog_cc_c89"
4758     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4759 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4760 esac
4761 if test "x$ac_cv_prog_cc_c89" != xno; then :
4762
4763 fi
4764
4765 ac_ext=c
4766 ac_cpp='$CPP $CPPFLAGS'
4767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4770
4771 ac_ext=c
4772 ac_cpp='$CPP $CPPFLAGS'
4773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4777 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4778 if ${am_cv_prog_cc_c_o+:} false; then :
4779   $as_echo_n "(cached) " >&6
4780 else
4781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h.  */
4783
4784 int main (void)
4785 {
4786
4787  ;
4788  return 0;
4789 }
4790 _ACEOF
4791   # Make sure it works both with $CC and with simple cc.
4792   # Following AC_PROG_CC_C_O, we do the test twice because some
4793   # compilers refuse to overwrite an existing .o file with -o,
4794   # though they will create one.
4795   am_cv_prog_cc_c_o=yes
4796   for am_i in 1 2; do
4797     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4798    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4799    ac_status=$?
4800    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801    (exit $ac_status); } \
4802          && test -f conftest2.$ac_objext; then
4803       : OK
4804     else
4805       am_cv_prog_cc_c_o=no
4806       break
4807     fi
4808   done
4809   rm -f core conftest*
4810   unset am_i
4811 fi
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4813 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4814 if test "$am_cv_prog_cc_c_o" != yes; then
4815    # Losing compiler, so override with the script.
4816    # FIXME: It is wrong to rewrite CC.
4817    # But if we don't then we get into trouble of one sort or another.
4818    # A longer-term fix would be to have automake use am__CC in this case,
4819    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4820    CC="$am_aux_dir/compile $CC"
4821 fi
4822 ac_ext=c
4823 ac_cpp='$CPP $CPPFLAGS'
4824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4827
4828
4829
4830 ac_ext=c
4831 ac_cpp='$CPP $CPPFLAGS'
4832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4836 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4837 # On Suns, sometimes $CPP names a directory.
4838 if test -n "$CPP" && test -d "$CPP"; then
4839   CPP=
4840 fi
4841 if test -z "$CPP"; then
4842   if ${ac_cv_prog_CPP+:} false; then :
4843   $as_echo_n "(cached) " >&6
4844 else
4845       # Double quotes because CPP needs to be expanded
4846     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4847     do
4848       ac_preproc_ok=false
4849 for ac_c_preproc_warn_flag in '' yes
4850 do
4851   # Use a header file that comes with gcc, so configuring glibc
4852   # with a fresh cross-compiler works.
4853   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4854   # <limits.h> exists even on freestanding compilers.
4855   # On the NeXT, cc -E runs the code through the compiler's parser,
4856   # not just through cpp. "Syntax error" is here to catch this case.
4857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4858 /* end confdefs.h.  */
4859 #ifdef __STDC__
4860 # include <limits.h>
4861 #else
4862 # include <assert.h>
4863 #endif
4864                      Syntax error
4865 _ACEOF
4866 if ac_fn_c_try_cpp "$LINENO"; then :
4867
4868 else
4869   # Broken: fails on valid input.
4870 continue
4871 fi
4872 rm -f conftest.err conftest.i conftest.$ac_ext
4873
4874   # OK, works on sane cases.  Now check whether nonexistent headers
4875   # can be detected and how.
4876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877 /* end confdefs.h.  */
4878 #include <ac_nonexistent.h>
4879 _ACEOF
4880 if ac_fn_c_try_cpp "$LINENO"; then :
4881   # Broken: success on invalid input.
4882 continue
4883 else
4884   # Passes both tests.
4885 ac_preproc_ok=:
4886 break
4887 fi
4888 rm -f conftest.err conftest.i conftest.$ac_ext
4889
4890 done
4891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4892 rm -f conftest.i conftest.err conftest.$ac_ext
4893 if $ac_preproc_ok; then :
4894   break
4895 fi
4896
4897     done
4898     ac_cv_prog_CPP=$CPP
4899
4900 fi
4901   CPP=$ac_cv_prog_CPP
4902 else
4903   ac_cv_prog_CPP=$CPP
4904 fi
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4906 $as_echo "$CPP" >&6; }
4907 ac_preproc_ok=false
4908 for ac_c_preproc_warn_flag in '' yes
4909 do
4910   # Use a header file that comes with gcc, so configuring glibc
4911   # with a fresh cross-compiler works.
4912   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4913   # <limits.h> exists even on freestanding compilers.
4914   # On the NeXT, cc -E runs the code through the compiler's parser,
4915   # not just through cpp. "Syntax error" is here to catch this case.
4916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917 /* end confdefs.h.  */
4918 #ifdef __STDC__
4919 # include <limits.h>
4920 #else
4921 # include <assert.h>
4922 #endif
4923                      Syntax error
4924 _ACEOF
4925 if ac_fn_c_try_cpp "$LINENO"; then :
4926
4927 else
4928   # Broken: fails on valid input.
4929 continue
4930 fi
4931 rm -f conftest.err conftest.i conftest.$ac_ext
4932
4933   # OK, works on sane cases.  Now check whether nonexistent headers
4934   # can be detected and how.
4935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4936 /* end confdefs.h.  */
4937 #include <ac_nonexistent.h>
4938 _ACEOF
4939 if ac_fn_c_try_cpp "$LINENO"; then :
4940   # Broken: success on invalid input.
4941 continue
4942 else
4943   # Passes both tests.
4944 ac_preproc_ok=:
4945 break
4946 fi
4947 rm -f conftest.err conftest.i conftest.$ac_ext
4948
4949 done
4950 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4951 rm -f conftest.i conftest.err conftest.$ac_ext
4952 if $ac_preproc_ok; then :
4953
4954 else
4955   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4957 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4958 See \`config.log' for more details" "$LINENO" 5; }
4959 fi
4960
4961 ac_ext=c
4962 ac_cpp='$CPP $CPPFLAGS'
4963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4966
4967
4968   IFS=$xc_prog_cc_prev_IFS
4969   LIBS=$xc_prog_cc_prev_LIBS
4970   CFLAGS=$xc_prog_cc_prev_CFLAGS
4971   LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4972   CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
4973
4974
4975
4976
4977
4978 am__api_version='1.15'
4979
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4981 $as_echo_n "checking whether build environment is sane... " >&6; }
4982 # Reject unsafe characters in $srcdir or the absolute working directory
4983 # name.  Accept space and tab only in the latter.
4984 am_lf='
4985 '
4986 case `pwd` in
4987   *[\\\"\#\$\&\'\`$am_lf]*)
4988     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4989 esac
4990 case $srcdir in
4991   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4992     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4993 esac
4994
4995 # Do 'set' in a subshell so we don't clobber the current shell's
4996 # arguments.  Must try -L first in case configure is actually a
4997 # symlink; some systems play weird games with the mod time of symlinks
4998 # (eg FreeBSD returns the mod time of the symlink's containing
4999 # directory).
5000 if (
5001    am_has_slept=no
5002    for am_try in 1 2; do
5003      echo "timestamp, slept: $am_has_slept" > conftest.file
5004      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5005      if test "$*" = "X"; then
5006         # -L didn't work.
5007         set X `ls -t "$srcdir/configure" conftest.file`
5008      fi
5009      if test "$*" != "X $srcdir/configure conftest.file" \
5010         && test "$*" != "X conftest.file $srcdir/configure"; then
5011
5012         # If neither matched, then we have a broken ls.  This can happen
5013         # if, for instance, CONFIG_SHELL is bash and it inherits a
5014         # broken ls alias from the environment.  This has actually
5015         # happened.  Such a system could not be considered "sane".
5016         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
5017   alias in your environment" "$LINENO" 5
5018      fi
5019      if test "$2" = conftest.file || test $am_try -eq 2; then
5020        break
5021      fi
5022      # Just in case.
5023      sleep 1
5024      am_has_slept=yes
5025    done
5026    test "$2" = conftest.file
5027    )
5028 then
5029    # Ok.
5030    :
5031 else
5032    as_fn_error $? "newly created file is older than distributed files!
5033 Check your system clock" "$LINENO" 5
5034 fi
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5036 $as_echo "yes" >&6; }
5037 # If we didn't sleep, we still need to ensure time stamps of config.status and
5038 # generated files are strictly newer.
5039 am_sleep_pid=
5040 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5041   ( sleep 1 ) &
5042   am_sleep_pid=$!
5043 fi
5044
5045 rm -f conftest.file
5046
5047 test "$program_prefix" != NONE &&
5048   program_transform_name="s&^&$program_prefix&;$program_transform_name"
5049 # Use a double $ so make ignores it.
5050 test "$program_suffix" != NONE &&
5051   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5052 # Double any \ or $.
5053 # By default was `s,x,x', remove it if useless.
5054 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5055 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5056
5057 if test x"${MISSING+set}" != xset; then
5058   case $am_aux_dir in
5059   *\ * | *\     *)
5060     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5061   *)
5062     MISSING="\${SHELL} $am_aux_dir/missing" ;;
5063   esac
5064 fi
5065 # Use eval to expand $SHELL
5066 if eval "$MISSING --is-lightweight"; then
5067   am_missing_run="$MISSING "
5068 else
5069   am_missing_run=
5070   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5071 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5072 fi
5073
5074 if test x"${install_sh+set}" != xset; then
5075   case $am_aux_dir in
5076   *\ * | *\     *)
5077     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5078   *)
5079     install_sh="\${SHELL} $am_aux_dir/install-sh"
5080   esac
5081 fi
5082
5083 # Installed binaries are usually stripped using 'strip' when the user
5084 # run "make install-strip".  However 'strip' might not be the right
5085 # tool to use in cross-compilation environments, therefore Automake
5086 # will honor the 'STRIP' environment variable to overrule this program.
5087 if test "$cross_compiling" != no; then
5088   if test -n "$ac_tool_prefix"; then
5089   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5090 set dummy ${ac_tool_prefix}strip; ac_word=$2
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5092 $as_echo_n "checking for $ac_word... " >&6; }
5093 if ${ac_cv_prog_STRIP+:} false; then :
5094   $as_echo_n "(cached) " >&6
5095 else
5096   if test -n "$STRIP"; then
5097   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5098 else
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH
5101 do
5102   IFS=$as_save_IFS
5103   test -z "$as_dir" && as_dir=.
5104     for ac_exec_ext in '' $ac_executable_extensions; do
5105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5106     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5108     break 2
5109   fi
5110 done
5111   done
5112 IFS=$as_save_IFS
5113
5114 fi
5115 fi
5116 STRIP=$ac_cv_prog_STRIP
5117 if test -n "$STRIP"; then
5118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5119 $as_echo "$STRIP" >&6; }
5120 else
5121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5123 fi
5124
5125
5126 fi
5127 if test -z "$ac_cv_prog_STRIP"; then
5128   ac_ct_STRIP=$STRIP
5129   # Extract the first word of "strip", so it can be a program name with args.
5130 set dummy strip; ac_word=$2
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132 $as_echo_n "checking for $ac_word... " >&6; }
5133 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5134   $as_echo_n "(cached) " >&6
5135 else
5136   if test -n "$ac_ct_STRIP"; then
5137   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5138 else
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5141 do
5142   IFS=$as_save_IFS
5143   test -z "$as_dir" && as_dir=.
5144     for ac_exec_ext in '' $ac_executable_extensions; do
5145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146     ac_cv_prog_ac_ct_STRIP="strip"
5147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5148     break 2
5149   fi
5150 done
5151   done
5152 IFS=$as_save_IFS
5153
5154 fi
5155 fi
5156 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5157 if test -n "$ac_ct_STRIP"; then
5158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5159 $as_echo "$ac_ct_STRIP" >&6; }
5160 else
5161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5163 fi
5164
5165   if test "x$ac_ct_STRIP" = x; then
5166     STRIP=":"
5167   else
5168     case $cross_compiling:$ac_tool_warned in
5169 yes:)
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5172 ac_tool_warned=yes ;;
5173 esac
5174     STRIP=$ac_ct_STRIP
5175   fi
5176 else
5177   STRIP="$ac_cv_prog_STRIP"
5178 fi
5179
5180 fi
5181 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5182
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5184 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5185 if test -z "$MKDIR_P"; then
5186   if ${ac_cv_path_mkdir+:} false; then :
5187   $as_echo_n "(cached) " >&6
5188 else
5189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5191 do
5192   IFS=$as_save_IFS
5193   test -z "$as_dir" && as_dir=.
5194     for ac_prog in mkdir gmkdir; do
5195          for ac_exec_ext in '' $ac_executable_extensions; do
5196            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5197            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5198              'mkdir (GNU coreutils) '* | \
5199              'mkdir (coreutils) '* | \
5200              'mkdir (fileutils) '4.1*)
5201                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5202                break 3;;
5203            esac
5204          done
5205        done
5206   done
5207 IFS=$as_save_IFS
5208
5209 fi
5210
5211   test -d ./--version && rmdir ./--version
5212   if test "${ac_cv_path_mkdir+set}" = set; then
5213     MKDIR_P="$ac_cv_path_mkdir -p"
5214   else
5215     # As a last resort, use the slow shell script.  Don't cache a
5216     # value for MKDIR_P within a source directory, because that will
5217     # break other packages using the cache if that directory is
5218     # removed, or if the value is a relative name.
5219     MKDIR_P="$ac_install_sh -d"
5220   fi
5221 fi
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5223 $as_echo "$MKDIR_P" >&6; }
5224
5225 for ac_prog in gawk mawk nawk awk
5226 do
5227   # Extract the first word of "$ac_prog", so it can be a program name with args.
5228 set dummy $ac_prog; ac_word=$2
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230 $as_echo_n "checking for $ac_word... " >&6; }
5231 if ${ac_cv_prog_AWK+:} false; then :
5232   $as_echo_n "(cached) " >&6
5233 else
5234   if test -n "$AWK"; then
5235   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5236 else
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 for as_dir in $PATH
5239 do
5240   IFS=$as_save_IFS
5241   test -z "$as_dir" && as_dir=.
5242     for ac_exec_ext in '' $ac_executable_extensions; do
5243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5244     ac_cv_prog_AWK="$ac_prog"
5245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5246     break 2
5247   fi
5248 done
5249   done
5250 IFS=$as_save_IFS
5251
5252 fi
5253 fi
5254 AWK=$ac_cv_prog_AWK
5255 if test -n "$AWK"; then
5256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5257 $as_echo "$AWK" >&6; }
5258 else
5259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260 $as_echo "no" >&6; }
5261 fi
5262
5263
5264   test -n "$AWK" && break
5265 done
5266
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5268 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5269 set x ${MAKE-make}
5270 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5271 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5272   $as_echo_n "(cached) " >&6
5273 else
5274   cat >conftest.make <<\_ACEOF
5275 SHELL = /bin/sh
5276 all:
5277         @echo '@@@%%%=$(MAKE)=@@@%%%'
5278 _ACEOF
5279 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5280 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5281   *@@@%%%=?*=@@@%%%*)
5282     eval ac_cv_prog_make_${ac_make}_set=yes;;
5283   *)
5284     eval ac_cv_prog_make_${ac_make}_set=no;;
5285 esac
5286 rm -f conftest.make
5287 fi
5288 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5290 $as_echo "yes" >&6; }
5291   SET_MAKE=
5292 else
5293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294 $as_echo "no" >&6; }
5295   SET_MAKE="MAKE=${MAKE-make}"
5296 fi
5297
5298 rm -rf .tst 2>/dev/null
5299 mkdir .tst 2>/dev/null
5300 if test -d .tst; then
5301   am__leading_dot=.
5302 else
5303   am__leading_dot=_
5304 fi
5305 rmdir .tst 2>/dev/null
5306
5307 DEPDIR="${am__leading_dot}deps"
5308
5309 ac_config_commands="$ac_config_commands depfiles"
5310
5311
5312 am_make=${MAKE-make}
5313 cat > confinc << 'END'
5314 am__doit:
5315         @echo this is the am__doit target
5316 .PHONY: am__doit
5317 END
5318 # If we don't find an include directive, just comment out the code.
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5320 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5321 am__include="#"
5322 am__quote=
5323 _am_result=none
5324 # First try GNU make style include.
5325 echo "include confinc" > confmf
5326 # Ignore all kinds of additional output from 'make'.
5327 case `$am_make -s -f confmf 2> /dev/null` in #(
5328 *the\ am__doit\ target*)
5329   am__include=include
5330   am__quote=
5331   _am_result=GNU
5332   ;;
5333 esac
5334 # Now try BSD make style include.
5335 if test "$am__include" = "#"; then
5336    echo '.include "confinc"' > confmf
5337    case `$am_make -s -f confmf 2> /dev/null` in #(
5338    *the\ am__doit\ target*)
5339      am__include=.include
5340      am__quote="\""
5341      _am_result=BSD
5342      ;;
5343    esac
5344 fi
5345
5346
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5348 $as_echo "$_am_result" >&6; }
5349 rm -f confinc confmf
5350
5351 # Check whether --enable-dependency-tracking was given.
5352 if test "${enable_dependency_tracking+set}" = set; then :
5353   enableval=$enable_dependency_tracking;
5354 fi
5355
5356 if test "x$enable_dependency_tracking" != xno; then
5357   am_depcomp="$ac_aux_dir/depcomp"
5358   AMDEPBACKSLASH='\'
5359   am__nodep='_no'
5360 fi
5361  if test "x$enable_dependency_tracking" != xno; then
5362   AMDEP_TRUE=
5363   AMDEP_FALSE='#'
5364 else
5365   AMDEP_TRUE='#'
5366   AMDEP_FALSE=
5367 fi
5368
5369
5370 ## --------------------------------------- ##
5371 ##  Start of automake initialization code  ##
5372 ## --------------------------------------- ##
5373
5374 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5375   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5376   # is not polluted with repeated "-I."
5377   am__isrc=' -I$(srcdir)'
5378   # test to see if srcdir already configured
5379   if test -f $srcdir/config.status; then
5380     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5381   fi
5382 fi
5383
5384 # test whether we have cygpath
5385 if test -z "$CYGPATH_W"; then
5386   if (cygpath --version) >/dev/null 2>/dev/null; then
5387     CYGPATH_W='cygpath -w'
5388   else
5389     CYGPATH_W=echo
5390   fi
5391 fi
5392
5393
5394 # Define the identity of the package.
5395  PACKAGE='curl'
5396  VERSION='-'
5397
5398
5399 cat >>confdefs.h <<_ACEOF
5400 #define PACKAGE "$PACKAGE"
5401 _ACEOF
5402
5403
5404 cat >>confdefs.h <<_ACEOF
5405 #define VERSION "$VERSION"
5406 _ACEOF
5407
5408 # Some tools Automake needs.
5409
5410 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5411
5412
5413 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5414
5415
5416 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5417
5418
5419 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5420
5421
5422 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5423
5424 # For better backward compatibility.  To be removed once Automake 1.9.x
5425 # dies out for good.  For more background, see:
5426 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5427 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5428 mkdir_p='$(MKDIR_P)'
5429
5430 # We need awk for the "check" target (and possibly the TAP driver).  The
5431 # system "awk" is bad on some platforms.
5432 # Always define AMTAR for backward compatibility.  Yes, it's still used
5433 # in the wild :-(  We should find a proper way to deprecate it ...
5434 AMTAR='$${TAR-tar}'
5435
5436
5437 # We'll loop over all known methods to create a tar archive until one works.
5438 _am_tools='gnutar  pax cpio none'
5439
5440 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5441
5442
5443
5444
5445
5446 depcc="$CC"   am_compiler_list=
5447
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5449 $as_echo_n "checking dependency style of $depcc... " >&6; }
5450 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5451   $as_echo_n "(cached) " >&6
5452 else
5453   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5454   # We make a subdir and do the tests there.  Otherwise we can end up
5455   # making bogus files that we don't know about and never remove.  For
5456   # instance it was reported that on HP-UX the gcc test will end up
5457   # making a dummy file named 'D' -- because '-MD' means "put the output
5458   # in D".
5459   rm -rf conftest.dir
5460   mkdir conftest.dir
5461   # Copy depcomp to subdir because otherwise we won't find it if we're
5462   # using a relative directory.
5463   cp "$am_depcomp" conftest.dir
5464   cd conftest.dir
5465   # We will build objects and dependencies in a subdirectory because
5466   # it helps to detect inapplicable dependency modes.  For instance
5467   # both Tru64's cc and ICC support -MD to output dependencies as a
5468   # side effect of compilation, but ICC will put the dependencies in
5469   # the current directory while Tru64 will put them in the object
5470   # directory.
5471   mkdir sub
5472
5473   am_cv_CC_dependencies_compiler_type=none
5474   if test "$am_compiler_list" = ""; then
5475      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5476   fi
5477   am__universal=false
5478   case " $depcc " in #(
5479      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5480      esac
5481
5482   for depmode in $am_compiler_list; do
5483     # Setup a source with many dependencies, because some compilers
5484     # like to wrap large dependency lists on column 80 (with \), and
5485     # we should not choose a depcomp mode which is confused by this.
5486     #
5487     # We need to recreate these files for each test, as the compiler may
5488     # overwrite some of them when testing with obscure command lines.
5489     # This happens at least with the AIX C compiler.
5490     : > sub/conftest.c
5491     for i in 1 2 3 4 5 6; do
5492       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5493       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5494       # Solaris 10 /bin/sh.
5495       echo '/* dummy */' > sub/conftst$i.h
5496     done
5497     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5498
5499     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5500     # mode.  It turns out that the SunPro C++ compiler does not properly
5501     # handle '-M -o', and we need to detect this.  Also, some Intel
5502     # versions had trouble with output in subdirs.
5503     am__obj=sub/conftest.${OBJEXT-o}
5504     am__minus_obj="-o $am__obj"
5505     case $depmode in
5506     gcc)
5507       # This depmode causes a compiler race in universal mode.
5508       test "$am__universal" = false || continue
5509       ;;
5510     nosideeffect)
5511       # After this tag, mechanisms are not by side-effect, so they'll
5512       # only be used when explicitly requested.
5513       if test "x$enable_dependency_tracking" = xyes; then
5514         continue
5515       else
5516         break
5517       fi
5518       ;;
5519     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5520       # This compiler won't grok '-c -o', but also, the minuso test has
5521       # not run yet.  These depmodes are late enough in the game, and
5522       # so weak that their functioning should not be impacted.
5523       am__obj=conftest.${OBJEXT-o}
5524       am__minus_obj=
5525       ;;
5526     none) break ;;
5527     esac
5528     if depmode=$depmode \
5529        source=sub/conftest.c object=$am__obj \
5530        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5531        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5532          >/dev/null 2>conftest.err &&
5533        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5534        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5535        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5536        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5537       # icc doesn't choke on unknown options, it will just issue warnings
5538       # or remarks (even with -Werror).  So we grep stderr for any message
5539       # that says an option was ignored or not supported.
5540       # When given -MP, icc 7.0 and 7.1 complain thusly:
5541       #   icc: Command line warning: ignoring option '-M'; no argument required
5542       # The diagnosis changed in icc 8.0:
5543       #   icc: Command line remark: option '-MP' not supported
5544       if (grep 'ignoring option' conftest.err ||
5545           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5546         am_cv_CC_dependencies_compiler_type=$depmode
5547         break
5548       fi
5549     fi
5550   done
5551
5552   cd ..
5553   rm -rf conftest.dir
5554 else
5555   am_cv_CC_dependencies_compiler_type=none
5556 fi
5557
5558 fi
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5560 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5561 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5562
5563  if
5564   test "x$enable_dependency_tracking" != xno \
5565   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5566   am__fastdepCC_TRUE=
5567   am__fastdepCC_FALSE='#'
5568 else
5569   am__fastdepCC_TRUE='#'
5570   am__fastdepCC_FALSE=
5571 fi
5572
5573
5574
5575 # POSIX will say in a future version that running "rm -f" with no argument
5576 # is OK; and we want to be able to make that assumption in our Makefile
5577 # recipes.  So use an aggressive probe to check that the usage we want is
5578 # actually supported "in the wild" to an acceptable degree.
5579 # See automake bug#10828.
5580 # To make any issue more visible, cause the running configure to be aborted
5581 # by default if the 'rm' program in use doesn't match our expectations; the
5582 # user can still override this though.
5583 if rm -f && rm -fr && rm -rf; then : OK; else
5584   cat >&2 <<'END'
5585 Oops!
5586
5587 Your 'rm' program seems unable to run without file operands specified
5588 on the command line, even when the '-f' option is present.  This is contrary
5589 to the behaviour of most rm programs out there, and not conforming with
5590 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5591
5592 Please tell bug-automake@gnu.org about your system, including the value
5593 of your $PATH and any error possibly output before this message.  This
5594 can help us improve future automake versions.
5595
5596 END
5597   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5598     echo 'Configuration will proceed anyway, since you have set the' >&2
5599     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5600     echo >&2
5601   else
5602     cat >&2 <<'END'
5603 Aborting the configuration process, to ensure you take notice of the issue.
5604
5605 You can download and install GNU coreutils to get an 'rm' implementation
5606 that behaves properly: <http://www.gnu.org/software/coreutils/>.
5607
5608 If you want to complete the configuration process using your problematic
5609 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5610 to "yes", and re-run configure.
5611
5612 END
5613     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5614   fi
5615 fi
5616
5617 ## ------------------------------------- ##
5618 ##  End of automake initialization code  ##
5619 ## ------------------------------------- ##
5620
5621
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
5623 $as_echo_n "checking curl version... " >&6; }
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
5625 $as_echo "$CURLVERSION" >&6; }
5626
5627
5628
5629 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curlver.h`
5630
5631
5632 PKGADD_PKG="HAXXcurl"
5633 PKGADD_NAME="curl - a client that groks URLs"
5634 PKGADD_VENDOR="curl.haxx.se"
5635
5636
5637
5638
5639     curl_ssl_msg="no      (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,axtls,winssl,darwinssl} )"
5640     curl_ssh_msg="no      (--with-libssh2)"
5641    curl_zlib_msg="no      (--with-zlib)"
5642     curl_gss_msg="no      (--with-gssapi)"
5643 curl_tls_srp_msg="no      (--enable-tls-srp)"
5644     curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
5645    curl_ipv6_msg="no      (--enable-ipv6)"
5646 curl_unix_sockets_msg="no      (--enable-unix-sockets)"
5647     curl_idn_msg="no      (--with-{libidn2,winidn})"
5648  curl_manual_msg="no      (--enable-manual)"
5649 curl_libcurl_msg="enabled (--disable-libcurl-option)"
5650 curl_verbose_msg="enabled (--disable-verbose)"
5651    curl_sspi_msg="no      (--enable-sspi)"
5652    curl_ldap_msg="no      (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
5653   curl_ldaps_msg="no      (--enable-ldaps)"
5654    curl_rtsp_msg="no      (--enable-rtsp)"
5655    curl_rtmp_msg="no      (--with-librtmp)"
5656   curl_mtlnk_msg="no      (--with-libmetalink)"
5657     curl_psl_msg="no      (--with-libpsl)"
5658
5659     init_ssl_msg=${curl_ssl_msg}
5660
5661 INITIAL_LDFLAGS=$LDFLAGS
5662 INITIAL_LIBS=$LIBS
5663
5664
5665 # Make sure we can run config.sub.
5666 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5667   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5668
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5670 $as_echo_n "checking build system type... " >&6; }
5671 if ${ac_cv_build+:} false; then :
5672   $as_echo_n "(cached) " >&6
5673 else
5674   ac_build_alias=$build_alias
5675 test "x$ac_build_alias" = x &&
5676   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5677 test "x$ac_build_alias" = x &&
5678   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5679 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5680   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5681
5682 fi
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5684 $as_echo "$ac_cv_build" >&6; }
5685 case $ac_cv_build in
5686 *-*-*) ;;
5687 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5688 esac
5689 build=$ac_cv_build
5690 ac_save_IFS=$IFS; IFS='-'
5691 set x $ac_cv_build
5692 shift
5693 build_cpu=$1
5694 build_vendor=$2
5695 shift; shift
5696 # Remember, the first character of IFS is used to create $*,
5697 # except with old shells:
5698 build_os=$*
5699 IFS=$ac_save_IFS
5700 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5701
5702
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5704 $as_echo_n "checking host system type... " >&6; }
5705 if ${ac_cv_host+:} false; then :
5706   $as_echo_n "(cached) " >&6
5707 else
5708   if test "x$host_alias" = x; then
5709   ac_cv_host=$ac_cv_build
5710 else
5711   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5712     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5713 fi
5714
5715 fi
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5717 $as_echo "$ac_cv_host" >&6; }
5718 case $ac_cv_host in
5719 *-*-*) ;;
5720 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5721 esac
5722 host=$ac_cv_host
5723 ac_save_IFS=$IFS; IFS='-'
5724 set x $ac_cv_host
5725 shift
5726 host_cpu=$1
5727 host_vendor=$2
5728 shift; shift
5729 # Remember, the first character of IFS is used to create $*,
5730 # except with old shells:
5731 host_os=$*
5732 IFS=$ac_save_IFS
5733 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5734
5735
5736
5737 cat >>confdefs.h <<_ACEOF
5738 #define OS "${host}"
5739 _ACEOF
5740
5741
5742
5743
5744
5745 curl_includes_inttypes="\
5746 /* includes start */
5747 #ifdef HAVE_SYS_TYPES_H
5748 # include <sys/types.h>
5749 #endif
5750 #ifdef HAVE_STDINT_H
5751 # include <stdint.h>
5752 #endif
5753 #ifdef HAVE_INTTYPES_H
5754 # include <inttypes.h>
5755 #endif
5756 /* includes end */"
5757   case $host_os in
5758     irix*)
5759       ac_cv_header_stdint_h="no"
5760       ;;
5761   esac
5762   for ac_header in sys/types.h stdint.h inttypes.h
5763 do :
5764   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5765 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_inttypes
5766 "
5767 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5768   cat >>confdefs.h <<_ACEOF
5769 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5770 _ACEOF
5771
5772 fi
5773
5774 done
5775
5776
5777
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5779 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5780 if ${ac_cv_path_GREP+:} false; then :
5781   $as_echo_n "(cached) " >&6
5782 else
5783   if test -z "$GREP"; then
5784   ac_path_GREP_found=false
5785   # Loop through the user's path and test for each of PROGNAME-LIST
5786   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5788 do
5789   IFS=$as_save_IFS
5790   test -z "$as_dir" && as_dir=.
5791     for ac_prog in grep ggrep; do
5792     for ac_exec_ext in '' $ac_executable_extensions; do
5793       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5794       as_fn_executable_p "$ac_path_GREP" || continue
5795 # Check for GNU ac_path_GREP and select it if it is found.
5796   # Check for GNU $ac_path_GREP
5797 case `"$ac_path_GREP" --version 2>&1` in
5798 *GNU*)
5799   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5800 *)
5801   ac_count=0
5802   $as_echo_n 0123456789 >"conftest.in"
5803   while :
5804   do
5805     cat "conftest.in" "conftest.in" >"conftest.tmp"
5806     mv "conftest.tmp" "conftest.in"
5807     cp "conftest.in" "conftest.nl"
5808     $as_echo 'GREP' >> "conftest.nl"
5809     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5810     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5811     as_fn_arith $ac_count + 1 && ac_count=$as_val
5812     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5813       # Best one so far, save it but keep looking for a better one
5814       ac_cv_path_GREP="$ac_path_GREP"
5815       ac_path_GREP_max=$ac_count
5816     fi
5817     # 10*(2^10) chars as input seems more than enough
5818     test $ac_count -gt 10 && break
5819   done
5820   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5821 esac
5822
5823       $ac_path_GREP_found && break 3
5824     done
5825   done
5826   done
5827 IFS=$as_save_IFS
5828   if test -z "$ac_cv_path_GREP"; then
5829     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5830   fi
5831 else
5832   ac_cv_path_GREP=$GREP
5833 fi
5834
5835 fi
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5837 $as_echo "$ac_cv_path_GREP" >&6; }
5838  GREP="$ac_cv_path_GREP"
5839
5840
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5842 $as_echo_n "checking for egrep... " >&6; }
5843 if ${ac_cv_path_EGREP+:} false; then :
5844   $as_echo_n "(cached) " >&6
5845 else
5846   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5847    then ac_cv_path_EGREP="$GREP -E"
5848    else
5849      if test -z "$EGREP"; then
5850   ac_path_EGREP_found=false
5851   # Loop through the user's path and test for each of PROGNAME-LIST
5852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5854 do
5855   IFS=$as_save_IFS
5856   test -z "$as_dir" && as_dir=.
5857     for ac_prog in egrep; do
5858     for ac_exec_ext in '' $ac_executable_extensions; do
5859       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5860       as_fn_executable_p "$ac_path_EGREP" || continue
5861 # Check for GNU ac_path_EGREP and select it if it is found.
5862   # Check for GNU $ac_path_EGREP
5863 case `"$ac_path_EGREP" --version 2>&1` in
5864 *GNU*)
5865   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5866 *)
5867   ac_count=0
5868   $as_echo_n 0123456789 >"conftest.in"
5869   while :
5870   do
5871     cat "conftest.in" "conftest.in" >"conftest.tmp"
5872     mv "conftest.tmp" "conftest.in"
5873     cp "conftest.in" "conftest.nl"
5874     $as_echo 'EGREP' >> "conftest.nl"
5875     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5876     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5877     as_fn_arith $ac_count + 1 && ac_count=$as_val
5878     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5879       # Best one so far, save it but keep looking for a better one
5880       ac_cv_path_EGREP="$ac_path_EGREP"
5881       ac_path_EGREP_max=$ac_count
5882     fi
5883     # 10*(2^10) chars as input seems more than enough
5884     test $ac_count -gt 10 && break
5885   done
5886   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5887 esac
5888
5889       $ac_path_EGREP_found && break 3
5890     done
5891   done
5892   done
5893 IFS=$as_save_IFS
5894   if test -z "$ac_cv_path_EGREP"; then
5895     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5896   fi
5897 else
5898   ac_cv_path_EGREP=$EGREP
5899 fi
5900
5901    fi
5902 fi
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5904 $as_echo "$ac_cv_path_EGREP" >&6; }
5905  EGREP="$ac_cv_path_EGREP"
5906
5907
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5909 $as_echo_n "checking for ANSI C header files... " >&6; }
5910 if ${ac_cv_header_stdc+:} false; then :
5911   $as_echo_n "(cached) " >&6
5912 else
5913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5914 /* end confdefs.h.  */
5915 #include <stdlib.h>
5916 #include <stdarg.h>
5917 #include <string.h>
5918 #include <float.h>
5919
5920 int main (void)
5921 {
5922
5923  ;
5924  return 0;
5925 }
5926 _ACEOF
5927 if ac_fn_c_try_compile "$LINENO"; then :
5928   ac_cv_header_stdc=yes
5929 else
5930   ac_cv_header_stdc=no
5931 fi
5932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5933
5934 if test $ac_cv_header_stdc = yes; then
5935   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5937 /* end confdefs.h.  */
5938 #include <string.h>
5939
5940 _ACEOF
5941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5942   $EGREP "memchr" >/dev/null 2>&1; then :
5943
5944 else
5945   ac_cv_header_stdc=no
5946 fi
5947 rm -f conftest*
5948
5949 fi
5950
5951 if test $ac_cv_header_stdc = yes; then
5952   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954 /* end confdefs.h.  */
5955 #include <stdlib.h>
5956
5957 _ACEOF
5958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5959   $EGREP "free" >/dev/null 2>&1; then :
5960
5961 else
5962   ac_cv_header_stdc=no
5963 fi
5964 rm -f conftest*
5965
5966 fi
5967
5968 if test $ac_cv_header_stdc = yes; then
5969   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5970   if test "$cross_compiling" = yes; then :
5971   :
5972 else
5973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974 /* end confdefs.h.  */
5975 #include <ctype.h>
5976 #include <stdlib.h>
5977 #if ((' ' & 0x0FF) == 0x020)
5978 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5979 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5980 #else
5981 # define ISLOWER(c) \
5982                    (('a' <= (c) && (c) <= 'i') \
5983                      || ('j' <= (c) && (c) <= 'r') \
5984                      || ('s' <= (c) && (c) <= 'z'))
5985 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5986 #endif
5987
5988 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5989 int
5990 main ()
5991 {
5992   int i;
5993   for (i = 0; i < 256; i++)
5994     if (XOR (islower (i), ISLOWER (i))
5995         || toupper (i) != TOUPPER (i))
5996       return 2;
5997   return 0;
5998 }
5999 _ACEOF
6000 if ac_fn_c_try_run "$LINENO"; then :
6001
6002 else
6003   ac_cv_header_stdc=no
6004 fi
6005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6006   conftest.$ac_objext conftest.beam conftest.$ac_ext
6007 fi
6008
6009 fi
6010 fi
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6012 $as_echo "$ac_cv_header_stdc" >&6; }
6013 if test $ac_cv_header_stdc = yes; then
6014
6015 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6016
6017 fi
6018
6019 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6020 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6021                   inttypes.h stdint.h unistd.h
6022 do :
6023   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6024 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6025 "
6026 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6027   cat >>confdefs.h <<_ACEOF
6028 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6029 _ACEOF
6030
6031 fi
6032
6033 done
6034
6035
6036
6037   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
6038 $as_echo_n "checking if cpp -P is needed... " >&6; }
6039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040 /* end confdefs.h.  */
6041
6042  #include <errno.h>
6043 TEST EINVAL TEST
6044
6045 _ACEOF
6046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6047   $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
6048   cpp=no
6049 else
6050   cpp=yes
6051 fi
6052 rm -f conftest*
6053
6054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
6055 $as_echo "$cpp" >&6; }
6056
6057     if test "x$cpp" = "xyes"; then
6058     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
6059 $as_echo_n "checking if cpp -P works... " >&6; }
6060     OLDCPPFLAGS=$CPPFLAGS
6061     CPPFLAGS="$CPPFLAGS -P"
6062     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063 /* end confdefs.h.  */
6064
6065  #include <errno.h>
6066 TEST EINVAL TEST
6067
6068 _ACEOF
6069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6070   $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
6071   cpp_p=yes
6072 else
6073   cpp_p=no
6074 fi
6075 rm -f conftest*
6076
6077     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
6078 $as_echo "$cpp_p" >&6; }
6079
6080     if test "x$cpp_p" = "xno"; then
6081       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
6082 $as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
6083       # without -P
6084       CPPPFLAG=""
6085     else
6086       # with -P
6087       CPPPFLAG="-P"
6088     fi
6089         CPPFLAGS=$OLDCPPFLAGS
6090   else
6091     # without -P
6092     CPPPFLAG=""
6093   fi
6094
6095
6096     #
6097         #
6098   if test -z "$SED"; then
6099     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6100   fi
6101   #
6102   # The cast to long int works around a bug in the HP C Compiler
6103 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6104 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6105 # This bug is HP SR number 8606223364.
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6107 $as_echo_n "checking size of long... " >&6; }
6108 if ${ac_cv_sizeof_long+:} false; then :
6109   $as_echo_n "(cached) " >&6
6110 else
6111   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
6112
6113 else
6114   if test "$ac_cv_type_long" = yes; then
6115      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6117 as_fn_error 77 "cannot compute sizeof (long)
6118 See \`config.log' for more details" "$LINENO" 5; }
6119    else
6120      ac_cv_sizeof_long=0
6121    fi
6122 fi
6123
6124 fi
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6126 $as_echo "$ac_cv_sizeof_long" >&6; }
6127
6128
6129
6130 cat >>confdefs.h <<_ACEOF
6131 #define SIZEOF_LONG $ac_cv_sizeof_long
6132 _ACEOF
6133
6134
6135   # The cast to long int works around a bug in the HP C Compiler
6136 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6137 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6138 # This bug is HP SR number 8606223364.
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
6140 $as_echo_n "checking size of void*... " >&6; }
6141 if ${ac_cv_sizeof_voidp+:} false; then :
6142   $as_echo_n "(cached) " >&6
6143 else
6144   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
6145
6146 else
6147   if test "$ac_cv_type_voidp" = yes; then
6148      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6150 as_fn_error 77 "cannot compute sizeof (void*)
6151 See \`config.log' for more details" "$LINENO" 5; }
6152    else
6153      ac_cv_sizeof_voidp=0
6154    fi
6155 fi
6156
6157 fi
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
6159 $as_echo "$ac_cv_sizeof_voidp" >&6; }
6160
6161
6162
6163 cat >>confdefs.h <<_ACEOF
6164 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
6165 _ACEOF
6166
6167
6168   #
6169   if test -z "$ac_cv_sizeof_long" ||
6170     test "$ac_cv_sizeof_long" -eq "0"; then
6171     as_fn_error $? "cannot find out size of long." "$LINENO" 5
6172   fi
6173   if test -z "$ac_cv_sizeof_voidp" ||
6174      test "$ac_cv_sizeof_voidp" -eq "0"; then
6175     as_fn_error $? "cannot find out size of void*." "$LINENO" 5
6176   fi
6177   #
6178   x_LP64_long=""
6179   x_LP32_long=""
6180   #
6181   if test "$ac_cv_sizeof_long" -eq "8" &&
6182      test "$ac_cv_sizeof_voidp" -ge "8"; then
6183     x_LP64_long="long"
6184   elif test "$ac_cv_sizeof_long" -eq "4" &&
6185        test "$ac_cv_sizeof_voidp" -ge "4"; then
6186     x_LP32_long="long"
6187   fi
6188   #
6189     #
6190   curl_typeof_curl_off_t="unknown"
6191   curl_sizeof_curl_off_t="unknown"
6192   curl_format_curl_off_t="unknown"
6193   curl_format_curl_off_tu="unknown"
6194   #
6195   if test "$curl_typeof_curl_off_t" = "unknown"; then
6196     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit curl_off_t data type" >&5
6197 $as_echo_n "checking for 64-bit curl_off_t data type... " >&6; }
6198     for t8 in          \
6199       "$x_LP64_long"   \
6200       'int64_t'        \
6201       '__int64'        \
6202       'long long'      \
6203       '__longlong'     \
6204       '__longlong_t'   ; do
6205
6206     if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t8"; then
6207     tmp_includes=""
6208     tmp_source=""
6209     tmp_fmt=""
6210     case `echo "$t8" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6211       int64_t)
6212         tmp_includes="$curl_includes_inttypes"
6213         tmp_source="char f[] = PRId64;"
6214         tmp_fmt="PRId64"
6215         ;;
6216       int32_t)
6217         tmp_includes="$curl_includes_inttypes"
6218         tmp_source="char f[] = PRId32;"
6219         tmp_fmt="PRId32"
6220         ;;
6221       int16_t)
6222         tmp_includes="$curl_includes_inttypes"
6223         tmp_source="char f[] = PRId16;"
6224         tmp_fmt="PRId16"
6225         ;;
6226     esac
6227     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228 /* end confdefs.h.  */
6229
6230
6231         $tmp_includes
6232         typedef $t8 curl_off_t;
6233         typedef char dummy_arr[sizeof(curl_off_t) == 8 ? 1 : -1];
6234
6235 int main (void)
6236 {
6237
6238         $tmp_source
6239         curl_off_t dummy;
6240
6241  ;
6242  return 0;
6243 }
6244
6245 _ACEOF
6246 if ac_fn_c_try_compile "$LINENO"; then :
6247
6248       if test -z "$tmp_fmt"; then
6249         curl_typeof_curl_off_t="$t8"
6250         curl_sizeof_curl_off_t="8"
6251       else
6252
6253     OLDCPPFLAGS=$CPPFLAGS
6254   # CPPPFLAG comes from CURL_CPP_P
6255   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
6256   as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6257   as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6258   if test -z "$SED"; then
6259     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6260   fi
6261   if test -z "$GREP"; then
6262     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6263   fi
6264
6265   tmp_exp=""
6266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h.  */
6268
6269     $curl_includes_inttypes
6270 #ifdef $tmp_fmt
6271 CURL_DEF_TOKEN $tmp_fmt
6272 #endif
6273
6274
6275 _ACEOF
6276 if ac_fn_c_try_cpp "$LINENO"; then :
6277
6278     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6279       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6280       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6281       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6282     if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6283       tmp_exp=""
6284     fi
6285
6286 fi
6287 rm -f conftest.err conftest.i conftest.$ac_ext
6288   if test -z "$tmp_exp"; then
6289     eval "$as_ac_HaveDef=no"
6290
6291   else
6292     eval "$as_ac_HaveDef=yes"
6293     eval "$as_ac_Def=\$tmp_exp"
6294
6295   fi
6296       CPPFLAGS=$OLDCPPFLAGS
6297
6298         as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6299         as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6300         if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6301           curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6302           curl_typeof_curl_off_t="$t8"
6303           curl_sizeof_curl_off_t="8"
6304         fi
6305                       fi
6306
6307 fi
6308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6309   fi
6310
6311     done
6312     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6313 $as_echo "$curl_typeof_curl_off_t" >&6; }
6314   fi
6315   if test "$curl_typeof_curl_off_t" = "unknown"; then
6316     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit curl_off_t data type" >&5
6317 $as_echo_n "checking for 32-bit curl_off_t data type... " >&6; }
6318     for t4 in          \
6319       "$x_LP32_long"   \
6320       'int32_t'        \
6321       '__int32'        \
6322       'int'            ; do
6323
6324     if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t4"; then
6325     tmp_includes=""
6326     tmp_source=""
6327     tmp_fmt=""
6328     case `echo "$t4" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6329       int64_t)
6330         tmp_includes="$curl_includes_inttypes"
6331         tmp_source="char f[] = PRId64;"
6332         tmp_fmt="PRId64"
6333         ;;
6334       int32_t)
6335         tmp_includes="$curl_includes_inttypes"
6336         tmp_source="char f[] = PRId32;"
6337         tmp_fmt="PRId32"
6338         ;;
6339       int16_t)
6340         tmp_includes="$curl_includes_inttypes"
6341         tmp_source="char f[] = PRId16;"
6342         tmp_fmt="PRId16"
6343         ;;
6344     esac
6345     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h.  */
6347
6348
6349         $tmp_includes
6350         typedef $t4 curl_off_t;
6351         typedef char dummy_arr[sizeof(curl_off_t) == 4 ? 1 : -1];
6352
6353 int main (void)
6354 {
6355
6356         $tmp_source
6357         curl_off_t dummy;
6358
6359  ;
6360  return 0;
6361 }
6362
6363 _ACEOF
6364 if ac_fn_c_try_compile "$LINENO"; then :
6365
6366       if test -z "$tmp_fmt"; then
6367         curl_typeof_curl_off_t="$t4"
6368         curl_sizeof_curl_off_t="4"
6369       else
6370
6371     OLDCPPFLAGS=$CPPFLAGS
6372   # CPPPFLAG comes from CURL_CPP_P
6373   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
6374   as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6375   as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6376   if test -z "$SED"; then
6377     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6378   fi
6379   if test -z "$GREP"; then
6380     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6381   fi
6382
6383   tmp_exp=""
6384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h.  */
6386
6387     $curl_includes_inttypes
6388 #ifdef $tmp_fmt
6389 CURL_DEF_TOKEN $tmp_fmt
6390 #endif
6391
6392
6393 _ACEOF
6394 if ac_fn_c_try_cpp "$LINENO"; then :
6395
6396     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6397       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6398       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6399       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6400     if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6401       tmp_exp=""
6402     fi
6403
6404 fi
6405 rm -f conftest.err conftest.i conftest.$ac_ext
6406   if test -z "$tmp_exp"; then
6407     eval "$as_ac_HaveDef=no"
6408
6409   else
6410     eval "$as_ac_HaveDef=yes"
6411     eval "$as_ac_Def=\$tmp_exp"
6412
6413   fi
6414       CPPFLAGS=$OLDCPPFLAGS
6415
6416         as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6417         as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6418         if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6419           curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6420           curl_typeof_curl_off_t="$t4"
6421           curl_sizeof_curl_off_t="4"
6422         fi
6423                       fi
6424
6425 fi
6426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6427   fi
6428
6429     done
6430     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6431 $as_echo "$curl_typeof_curl_off_t" >&6; }
6432   fi
6433   if test "$curl_typeof_curl_off_t" = "unknown"; then
6434     as_fn_error $? "cannot find data type for curl_off_t." "$LINENO" 5
6435   fi
6436   #
6437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
6438 $as_echo_n "checking size of curl_off_t... " >&6; }
6439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_off_t" >&5
6440 $as_echo "$curl_sizeof_curl_off_t" >&6; }
6441   #
6442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for curl_off_t" >&5
6443 $as_echo_n "checking formatting string directive for curl_off_t... " >&6; }
6444   if test "$curl_format_curl_off_t" != "unknown"; then
6445     x_pull_headers="yes"
6446     curl_format_curl_off_t=`echo "$curl_format_curl_off_t" | "$SED" 's/["]//g'`
6447     curl_format_curl_off_tu=`echo "$curl_format_curl_off_t" | "$SED" 's/i$/u/'`
6448     curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/d$/u/'`
6449     curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/D$/U/'`
6450   else
6451     x_pull_headers="no"
6452     case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6453       long_long | __longlong | __longlong_t)
6454         curl_format_curl_off_t="lld"
6455         curl_format_curl_off_tu="llu"
6456         ;;
6457       long)
6458         curl_format_curl_off_t="ld"
6459         curl_format_curl_off_tu="lu"
6460         ;;
6461       int)
6462         curl_format_curl_off_t="d"
6463         curl_format_curl_off_tu="u"
6464         ;;
6465       __int64)
6466         curl_format_curl_off_t="I64d"
6467         curl_format_curl_off_tu="I64u"
6468         ;;
6469       __int32)
6470         curl_format_curl_off_t="I32d"
6471         curl_format_curl_off_tu="I32u"
6472         ;;
6473       __int16)
6474         curl_format_curl_off_t="I16d"
6475         curl_format_curl_off_tu="I16u"
6476         ;;
6477       *)
6478         as_fn_error $? "cannot find print format string for curl_off_t." "$LINENO" 5
6479         ;;
6480     esac
6481   fi
6482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_t\"" >&5
6483 $as_echo "\"$curl_format_curl_off_t\"" >&6; }
6484   #
6485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for unsigned curl_off_t" >&5
6486 $as_echo_n "checking formatting string directive for unsigned curl_off_t... " >&6; }
6487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_tu\"" >&5
6488 $as_echo "\"$curl_format_curl_off_tu\"" >&6; }
6489   #
6490
6491     { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for curl_off_t" >&5
6492 $as_echo_n "checking constant suffix string for curl_off_t... " >&6; }
6493   #
6494   curl_suffix_curl_off_t="unknown"
6495   curl_suffix_curl_off_tu="unknown"
6496   #
6497   case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6498     long_long | __longlong | __longlong_t)
6499       tst_suffixes="LL::"
6500       ;;
6501     long)
6502       tst_suffixes="L::"
6503       ;;
6504     int)
6505       tst_suffixes="::"
6506       ;;
6507     __int64 | int64_t)
6508       tst_suffixes="LL:i64::"
6509       ;;
6510     __int32 | int32_t)
6511       tst_suffixes="L:i32::"
6512       ;;
6513     __int16 | int16_t)
6514       tst_suffixes="L:i16::"
6515       ;;
6516     *)
6517       as_fn_error $? "unexpected data type $curl_typeof_curl_off_t" "$LINENO" 5
6518       ;;
6519   esac
6520   #
6521   old_IFS=$IFS; IFS=':'
6522   for tmp_ssuf in $tst_suffixes ; do
6523     IFS=$old_IFS
6524     if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6525       case $tmp_ssuf in
6526         i64 | i32 | i16)
6527           tmp_usuf="u$tmp_ssuf"
6528           ;;
6529         LL | L)
6530           tmp_usuf="U$tmp_ssuf"
6531           ;;
6532         *)
6533           tmp_usuf=""
6534           ;;
6535       esac
6536       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h.  */
6538
6539
6540           $curl_includes_inttypes
6541           typedef $curl_typeof_curl_off_t new_t;
6542
6543 int main (void)
6544 {
6545
6546           new_t s1;
6547           new_t s2;
6548           s1 = -10$tmp_ssuf ;
6549           s2 =  20$tmp_ssuf ;
6550           if(s1 > s2)
6551             return 1;
6552
6553  ;
6554  return 0;
6555 }
6556
6557 _ACEOF
6558 if ac_fn_c_try_compile "$LINENO"; then :
6559
6560         curl_suffix_curl_off_t="$tmp_ssuf"
6561         curl_suffix_curl_off_tu="$tmp_usuf"
6562
6563 fi
6564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6565     fi
6566   done
6567   IFS=$old_IFS
6568   #
6569   if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6570     as_fn_error $? "cannot find constant suffix string for curl_off_t." "$LINENO" 5
6571   else
6572     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_t" >&5
6573 $as_echo "$curl_suffix_curl_off_t" >&6; }
6574     { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for unsigned curl_off_t" >&5
6575 $as_echo_n "checking constant suffix string for unsigned curl_off_t... " >&6; }
6576     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_tu" >&5
6577 $as_echo "$curl_suffix_curl_off_tu" >&6; }
6578   fi
6579   #
6580
6581   #
6582   if test "$x_pull_headers" = "yes"; then
6583     if test "x$ac_cv_header_sys_types_h" = "xyes"; then
6584
6585 cat >>confdefs.h <<_EOF
6586 #define CURL_PULL_SYS_TYPES_H 1
6587 _EOF
6588
6589     fi
6590     if test "x$ac_cv_header_stdint_h" = "xyes"; then
6591
6592 cat >>confdefs.h <<_EOF
6593 #define CURL_PULL_STDINT_H 1
6594 _EOF
6595
6596     fi
6597     if test "x$ac_cv_header_inttypes_h" = "xyes"; then
6598
6599 cat >>confdefs.h <<_EOF
6600 #define CURL_PULL_INTTYPES_H 1
6601 _EOF
6602
6603     fi
6604   fi
6605   #
6606
6607 cat >>confdefs.h <<_EOF
6608 #define CURL_TYPEOF_CURL_OFF_T $curl_typeof_curl_off_t
6609 _EOF
6610
6611
6612 cat >>confdefs.h <<_EOF
6613 #define CURL_FORMAT_CURL_OFF_T "$curl_format_curl_off_t"
6614 _EOF
6615
6616
6617 cat >>confdefs.h <<_EOF
6618 #define CURL_FORMAT_CURL_OFF_TU "$curl_format_curl_off_tu"
6619 _EOF
6620
6621
6622 cat >>confdefs.h <<_EOF
6623 #define CURL_FORMAT_OFF_T "%$curl_format_curl_off_t"
6624 _EOF
6625
6626
6627 cat >>confdefs.h <<_EOF
6628 #define CURL_SIZEOF_CURL_OFF_T $curl_sizeof_curl_off_t
6629 _EOF
6630
6631
6632 cat >>confdefs.h <<_EOF
6633 #define CURL_SUFFIX_CURL_OFF_T $curl_suffix_curl_off_t
6634 _EOF
6635
6636
6637 cat >>confdefs.h <<_EOF
6638 #define CURL_SUFFIX_CURL_OFF_TU $curl_suffix_curl_off_tu
6639 _EOF
6640
6641   #
6642
6643
6644
6645
6646         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6647 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6649 /* end confdefs.h.  */
6650
6651 #ifdef _AIX
6652    yes_this_is_aix
6653 #endif
6654
6655 _ACEOF
6656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6657   $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6658
6659     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6660 $as_echo "yes" >&6; }
6661     $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6662
6663
6664 else
6665
6666     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667 $as_echo "no" >&6; }
6668
6669 fi
6670 rm -f conftest*
6671
6672
6673
6674
6675     #
6676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6677 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h.  */
6680
6681
6682
6683 int main (void)
6684 {
6685
6686 #ifdef _THREAD_SAFE
6687       int dummy=1;
6688 #else
6689       force compilation error
6690 #endif
6691
6692  ;
6693  return 0;
6694 }
6695
6696 _ACEOF
6697 if ac_fn_c_try_compile "$LINENO"; then :
6698
6699     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6700 $as_echo "yes" >&6; }
6701     tmp_thread_safe_initially_defined="yes"
6702
6703 else
6704
6705     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 $as_echo "no" >&6; }
6707     tmp_thread_safe_initially_defined="no"
6708
6709 fi
6710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6711   #
6712   if test "$tmp_thread_safe_initially_defined" = "no"; then
6713     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6714 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6715
6716   case $host_os in
6717     aix[123].* | aix4.[012].*)
6718             tmp_need_thread_safe="no"
6719       ;;
6720     aix*)
6721             tmp_need_thread_safe="yes"
6722       ;;
6723     *)
6724       tmp_need_thread_safe="no"
6725       ;;
6726   esac
6727
6728     if test "$tmp_need_thread_safe" = "yes"; then
6729       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6730 $as_echo "yes" >&6; }
6731     else
6732       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6733 $as_echo "no" >&6; }
6734     fi
6735   fi
6736   #
6737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6738 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6739   if test "$tmp_thread_safe_initially_defined" = "yes" ||
6740     test "$tmp_need_thread_safe" = "yes"; then
6741
6742
6743 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6744
6745 cat >>confdefs.h <<_EOF
6746 #ifndef _THREAD_SAFE
6747 #  define _THREAD_SAFE
6748 #endif
6749 _EOF
6750
6751     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6752 $as_echo "yes" >&6; }
6753   else
6754     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755 $as_echo "no" >&6; }
6756   fi
6757   #
6758
6759
6760     #
6761   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6762 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h.  */
6765
6766
6767
6768 int main (void)
6769 {
6770
6771 #ifdef _REENTRANT
6772       int dummy=1;
6773 #else
6774       force compilation error
6775 #endif
6776
6777  ;
6778  return 0;
6779 }
6780
6781 _ACEOF
6782 if ac_fn_c_try_compile "$LINENO"; then :
6783
6784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6785 $as_echo "yes" >&6; }
6786     tmp_reentrant_initially_defined="yes"
6787
6788 else
6789
6790     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 $as_echo "no" >&6; }
6792     tmp_reentrant_initially_defined="no"
6793
6794 fi
6795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6796   #
6797   if test "$tmp_reentrant_initially_defined" = "no"; then
6798     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6799 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6800
6801   case $host_os in
6802     solaris*)
6803       tmp_need_reentrant="yes"
6804       ;;
6805     *)
6806       tmp_need_reentrant="no"
6807       ;;
6808   esac
6809
6810     if test "$tmp_need_reentrant" = "no"; then
6811
6812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813 /* end confdefs.h.  */
6814
6815
6816 #include <errno.h>
6817
6818 int main (void)
6819 {
6820
6821       if(0 != errno)
6822         return 1;
6823
6824  ;
6825  return 0;
6826 }
6827
6828 _ACEOF
6829 if ac_fn_c_try_compile "$LINENO"; then :
6830
6831     tmp_errno="yes"
6832
6833 else
6834
6835     tmp_errno="no"
6836
6837 fi
6838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6839   if test "$tmp_errno" = "yes"; then
6840     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h.  */
6842
6843
6844 #include <errno.h>
6845
6846 int main (void)
6847 {
6848
6849 #ifdef errno
6850         int dummy=1;
6851 #else
6852         force compilation error
6853 #endif
6854
6855  ;
6856  return 0;
6857 }
6858
6859 _ACEOF
6860 if ac_fn_c_try_compile "$LINENO"; then :
6861
6862       tmp_errno="errno_macro_defined"
6863
6864 else
6865
6866       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6867 /* end confdefs.h.  */
6868
6869
6870 #define _REENTRANT
6871 #include <errno.h>
6872
6873 int main (void)
6874 {
6875
6876 #ifdef errno
6877           int dummy=1;
6878 #else
6879           force compilation error
6880 #endif
6881
6882  ;
6883  return 0;
6884 }
6885
6886 _ACEOF
6887 if ac_fn_c_try_compile "$LINENO"; then :
6888
6889         tmp_errno="errno_macro_needs_reentrant"
6890         tmp_need_reentrant="yes"
6891
6892 fi
6893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6894
6895 fi
6896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6897   fi
6898
6899     fi
6900     if test "$tmp_need_reentrant" = "no"; then
6901
6902   if test "$tmp_need_reentrant" = "no"; then
6903
6904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6905 /* end confdefs.h.  */
6906
6907
6908 #define gmtime_r innocuous_gmtime_r
6909 #ifdef __STDC__
6910 # include <limits.h>
6911 #else
6912 # include <assert.h>
6913 #endif
6914 #undef gmtime_r
6915 #ifdef __cplusplus
6916 extern "C"
6917 #endif
6918 char gmtime_r ();
6919 #if defined __stub_gmtime_r || defined __stub___gmtime_r
6920 choke me
6921 #endif
6922
6923 int main (void)
6924 {
6925 return gmtime_r ();
6926  ;
6927  return 0;
6928 }
6929
6930 _ACEOF
6931 if ac_fn_c_try_link "$LINENO"; then :
6932
6933     tmp_gmtime_r="yes"
6934
6935 else
6936
6937     tmp_gmtime_r="no"
6938
6939 fi
6940 rm -f core conftest.err conftest.$ac_objext \
6941     conftest$ac_exeext conftest.$ac_ext
6942   if test "$tmp_gmtime_r" = "yes"; then
6943     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6944 /* end confdefs.h.  */
6945
6946 #include <sys/types.h>
6947 #include <time.h>
6948
6949 _ACEOF
6950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6951   $EGREP "gmtime_r" >/dev/null 2>&1; then :
6952
6953       tmp_gmtime_r="proto_declared"
6954
6955 else
6956
6957       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6958 /* end confdefs.h.  */
6959
6960 #define _REENTRANT
6961 #include <sys/types.h>
6962 #include <time.h>
6963
6964 _ACEOF
6965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6966   $EGREP "gmtime_r" >/dev/null 2>&1; then :
6967
6968         tmp_gmtime_r="proto_needs_reentrant"
6969         tmp_need_reentrant="yes"
6970
6971 fi
6972 rm -f conftest*
6973
6974
6975 fi
6976 rm -f conftest*
6977
6978   fi
6979
6980   fi
6981   if test "$tmp_need_reentrant" = "no"; then
6982
6983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h.  */
6985
6986
6987 #define localtime_r innocuous_localtime_r
6988 #ifdef __STDC__
6989 # include <limits.h>
6990 #else
6991 # include <assert.h>
6992 #endif
6993 #undef localtime_r
6994 #ifdef __cplusplus
6995 extern "C"
6996 #endif
6997 char localtime_r ();
6998 #if defined __stub_localtime_r || defined __stub___localtime_r
6999 choke me
7000 #endif
7001
7002 int main (void)
7003 {
7004 return localtime_r ();
7005  ;
7006  return 0;
7007 }
7008
7009 _ACEOF
7010 if ac_fn_c_try_link "$LINENO"; then :
7011
7012     tmp_localtime_r="yes"
7013
7014 else
7015
7016     tmp_localtime_r="no"
7017
7018 fi
7019 rm -f core conftest.err conftest.$ac_objext \
7020     conftest$ac_exeext conftest.$ac_ext
7021   if test "$tmp_localtime_r" = "yes"; then
7022     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h.  */
7024
7025 #include <sys/types.h>
7026 #include <time.h>
7027
7028 _ACEOF
7029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7030   $EGREP "localtime_r" >/dev/null 2>&1; then :
7031
7032       tmp_localtime_r="proto_declared"
7033
7034 else
7035
7036       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h.  */
7038
7039 #define _REENTRANT
7040 #include <sys/types.h>
7041 #include <time.h>
7042
7043 _ACEOF
7044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7045   $EGREP "localtime_r" >/dev/null 2>&1; then :
7046
7047         tmp_localtime_r="proto_needs_reentrant"
7048         tmp_need_reentrant="yes"
7049
7050 fi
7051 rm -f conftest*
7052
7053
7054 fi
7055 rm -f conftest*
7056
7057   fi
7058
7059   fi
7060   if test "$tmp_need_reentrant" = "no"; then
7061
7062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h.  */
7064
7065
7066 #define strerror_r innocuous_strerror_r
7067 #ifdef __STDC__
7068 # include <limits.h>
7069 #else
7070 # include <assert.h>
7071 #endif
7072 #undef strerror_r
7073 #ifdef __cplusplus
7074 extern "C"
7075 #endif
7076 char strerror_r ();
7077 #if defined __stub_strerror_r || defined __stub___strerror_r
7078 choke me
7079 #endif
7080
7081 int main (void)
7082 {
7083 return strerror_r ();
7084  ;
7085  return 0;
7086 }
7087
7088 _ACEOF
7089 if ac_fn_c_try_link "$LINENO"; then :
7090
7091     tmp_strerror_r="yes"
7092
7093 else
7094
7095     tmp_strerror_r="no"
7096
7097 fi
7098 rm -f core conftest.err conftest.$ac_objext \
7099     conftest$ac_exeext conftest.$ac_ext
7100   if test "$tmp_strerror_r" = "yes"; then
7101     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102 /* end confdefs.h.  */
7103
7104 #include <sys/types.h>
7105 #include <string.h>
7106
7107 _ACEOF
7108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7109   $EGREP "strerror_r" >/dev/null 2>&1; then :
7110
7111       tmp_strerror_r="proto_declared"
7112
7113 else
7114
7115       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h.  */
7117
7118 #define _REENTRANT
7119 #include <sys/types.h>
7120 #include <string.h>
7121
7122 _ACEOF
7123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7124   $EGREP "strerror_r" >/dev/null 2>&1; then :
7125
7126         tmp_strerror_r="proto_needs_reentrant"
7127         tmp_need_reentrant="yes"
7128
7129 fi
7130 rm -f conftest*
7131
7132
7133 fi
7134 rm -f conftest*
7135
7136   fi
7137
7138   fi
7139   if test "$tmp_need_reentrant" = "no"; then
7140
7141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h.  */
7143
7144
7145 #define strtok_r innocuous_strtok_r
7146 #ifdef __STDC__
7147 # include <limits.h>
7148 #else
7149 # include <assert.h>
7150 #endif
7151 #undef strtok_r
7152 #ifdef __cplusplus
7153 extern "C"
7154 #endif
7155 char strtok_r ();
7156 #if defined __stub_strtok_r || defined __stub___strtok_r
7157 choke me
7158 #endif
7159
7160 int main (void)
7161 {
7162 return strtok_r ();
7163  ;
7164  return 0;
7165 }
7166
7167 _ACEOF
7168 if ac_fn_c_try_link "$LINENO"; then :
7169
7170     tmp_strtok_r="yes"
7171
7172 else
7173
7174     tmp_strtok_r="no"
7175
7176 fi
7177 rm -f core conftest.err conftest.$ac_objext \
7178     conftest$ac_exeext conftest.$ac_ext
7179   if test "$tmp_strtok_r" = "yes"; then
7180     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181 /* end confdefs.h.  */
7182
7183 #include <sys/types.h>
7184 #include <string.h>
7185
7186 _ACEOF
7187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7188   $EGREP "strtok_r" >/dev/null 2>&1; then :
7189
7190       tmp_strtok_r="proto_declared"
7191
7192 else
7193
7194       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195 /* end confdefs.h.  */
7196
7197 #define _REENTRANT
7198 #include <sys/types.h>
7199 #include <string.h>
7200
7201 _ACEOF
7202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7203   $EGREP "strtok_r" >/dev/null 2>&1; then :
7204
7205         tmp_strtok_r="proto_needs_reentrant"
7206         tmp_need_reentrant="yes"
7207
7208 fi
7209 rm -f conftest*
7210
7211
7212 fi
7213 rm -f conftest*
7214
7215   fi
7216
7217   fi
7218   if test "$tmp_need_reentrant" = "no"; then
7219
7220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h.  */
7222
7223
7224 #define inet_ntoa_r innocuous_inet_ntoa_r
7225 #ifdef __STDC__
7226 # include <limits.h>
7227 #else
7228 # include <assert.h>
7229 #endif
7230 #undef inet_ntoa_r
7231 #ifdef __cplusplus
7232 extern "C"
7233 #endif
7234 char inet_ntoa_r ();
7235 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
7236 choke me
7237 #endif
7238
7239 int main (void)
7240 {
7241 return inet_ntoa_r ();
7242  ;
7243  return 0;
7244 }
7245
7246 _ACEOF
7247 if ac_fn_c_try_link "$LINENO"; then :
7248
7249     tmp_inet_ntoa_r="yes"
7250
7251 else
7252
7253     tmp_inet_ntoa_r="no"
7254
7255 fi
7256 rm -f core conftest.err conftest.$ac_objext \
7257     conftest$ac_exeext conftest.$ac_ext
7258   if test "$tmp_inet_ntoa_r" = "yes"; then
7259     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h.  */
7261
7262 #include <sys/types.h>
7263 #include <sys/socket.h>
7264 #include <netinet/in.h>
7265 #include <arpa/inet.h>
7266
7267 _ACEOF
7268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7269   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7270
7271       tmp_inet_ntoa_r="proto_declared"
7272
7273 else
7274
7275       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h.  */
7277
7278 #define _REENTRANT
7279 #include <sys/types.h>
7280 #include <sys/socket.h>
7281 #include <netinet/in.h>
7282 #include <arpa/inet.h>
7283
7284 _ACEOF
7285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7286   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7287
7288         tmp_inet_ntoa_r="proto_needs_reentrant"
7289         tmp_need_reentrant="yes"
7290
7291 fi
7292 rm -f conftest*
7293
7294
7295 fi
7296 rm -f conftest*
7297
7298   fi
7299
7300   fi
7301   if test "$tmp_need_reentrant" = "no"; then
7302
7303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h.  */
7305
7306
7307 #define gethostbyaddr_r innocuous_gethostbyaddr_r
7308 #ifdef __STDC__
7309 # include <limits.h>
7310 #else
7311 # include <assert.h>
7312 #endif
7313 #undef gethostbyaddr_r
7314 #ifdef __cplusplus
7315 extern "C"
7316 #endif
7317 char gethostbyaddr_r ();
7318 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
7319 choke me
7320 #endif
7321
7322 int main (void)
7323 {
7324 return gethostbyaddr_r ();
7325  ;
7326  return 0;
7327 }
7328
7329 _ACEOF
7330 if ac_fn_c_try_link "$LINENO"; then :
7331
7332     tmp_gethostbyaddr_r="yes"
7333
7334 else
7335
7336     tmp_gethostbyaddr_r="no"
7337
7338 fi
7339 rm -f core conftest.err conftest.$ac_objext \
7340     conftest$ac_exeext conftest.$ac_ext
7341   if test "$tmp_gethostbyaddr_r" = "yes"; then
7342     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343 /* end confdefs.h.  */
7344
7345 #include <sys/types.h>
7346 #include <netdb.h>
7347
7348 _ACEOF
7349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7350   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7351
7352       tmp_gethostbyaddr_r="proto_declared"
7353
7354 else
7355
7356       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357 /* end confdefs.h.  */
7358
7359 #define _REENTRANT
7360 #include <sys/types.h>
7361 #include <netdb.h>
7362
7363 _ACEOF
7364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7365   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7366
7367         tmp_gethostbyaddr_r="proto_needs_reentrant"
7368         tmp_need_reentrant="yes"
7369
7370 fi
7371 rm -f conftest*
7372
7373
7374 fi
7375 rm -f conftest*
7376
7377   fi
7378
7379   fi
7380   if test "$tmp_need_reentrant" = "no"; then
7381
7382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7383 /* end confdefs.h.  */
7384
7385
7386 #define gethostbyname_r innocuous_gethostbyname_r
7387 #ifdef __STDC__
7388 # include <limits.h>
7389 #else
7390 # include <assert.h>
7391 #endif
7392 #undef gethostbyname_r
7393 #ifdef __cplusplus
7394 extern "C"
7395 #endif
7396 char gethostbyname_r ();
7397 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7398 choke me
7399 #endif
7400
7401 int main (void)
7402 {
7403 return gethostbyname_r ();
7404  ;
7405  return 0;
7406 }
7407
7408 _ACEOF
7409 if ac_fn_c_try_link "$LINENO"; then :
7410
7411     tmp_gethostbyname_r="yes"
7412
7413 else
7414
7415     tmp_gethostbyname_r="no"
7416
7417 fi
7418 rm -f core conftest.err conftest.$ac_objext \
7419     conftest$ac_exeext conftest.$ac_ext
7420   if test "$tmp_gethostbyname_r" = "yes"; then
7421     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422 /* end confdefs.h.  */
7423
7424 #include <sys/types.h>
7425 #include <netdb.h>
7426
7427 _ACEOF
7428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7429   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7430
7431       tmp_gethostbyname_r="proto_declared"
7432
7433 else
7434
7435       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h.  */
7437
7438 #define _REENTRANT
7439 #include <sys/types.h>
7440 #include <netdb.h>
7441
7442 _ACEOF
7443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7444   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7445
7446         tmp_gethostbyname_r="proto_needs_reentrant"
7447         tmp_need_reentrant="yes"
7448
7449 fi
7450 rm -f conftest*
7451
7452
7453 fi
7454 rm -f conftest*
7455
7456   fi
7457
7458   fi
7459   if test "$tmp_need_reentrant" = "no"; then
7460
7461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h.  */
7463
7464
7465 #define getprotobyname_r innocuous_getprotobyname_r
7466 #ifdef __STDC__
7467 # include <limits.h>
7468 #else
7469 # include <assert.h>
7470 #endif
7471 #undef getprotobyname_r
7472 #ifdef __cplusplus
7473 extern "C"
7474 #endif
7475 char getprotobyname_r ();
7476 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7477 choke me
7478 #endif
7479
7480 int main (void)
7481 {
7482 return getprotobyname_r ();
7483  ;
7484  return 0;
7485 }
7486
7487 _ACEOF
7488 if ac_fn_c_try_link "$LINENO"; then :
7489
7490     tmp_getprotobyname_r="yes"
7491
7492 else
7493
7494     tmp_getprotobyname_r="no"
7495
7496 fi
7497 rm -f core conftest.err conftest.$ac_objext \
7498     conftest$ac_exeext conftest.$ac_ext
7499   if test "$tmp_getprotobyname_r" = "yes"; then
7500     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501 /* end confdefs.h.  */
7502
7503 #include <sys/types.h>
7504 #include <netdb.h>
7505
7506 _ACEOF
7507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7508   $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7509
7510       tmp_getprotobyname_r="proto_declared"
7511
7512 else
7513
7514       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515 /* end confdefs.h.  */
7516
7517 #define _REENTRANT
7518 #include <sys/types.h>
7519 #include <netdb.h>
7520
7521 _ACEOF
7522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7523   $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7524
7525         tmp_getprotobyname_r="proto_needs_reentrant"
7526         tmp_need_reentrant="yes"
7527
7528 fi
7529 rm -f conftest*
7530
7531
7532 fi
7533 rm -f conftest*
7534
7535   fi
7536
7537   fi
7538   if test "$tmp_need_reentrant" = "no"; then
7539
7540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7541 /* end confdefs.h.  */
7542
7543
7544 #define getservbyport_r innocuous_getservbyport_r
7545 #ifdef __STDC__
7546 # include <limits.h>
7547 #else
7548 # include <assert.h>
7549 #endif
7550 #undef getservbyport_r
7551 #ifdef __cplusplus
7552 extern "C"
7553 #endif
7554 char getservbyport_r ();
7555 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7556 choke me
7557 #endif
7558
7559 int main (void)
7560 {
7561 return getservbyport_r ();
7562  ;
7563  return 0;
7564 }
7565
7566 _ACEOF
7567 if ac_fn_c_try_link "$LINENO"; then :
7568
7569     tmp_getservbyport_r="yes"
7570
7571 else
7572
7573     tmp_getservbyport_r="no"
7574
7575 fi
7576 rm -f core conftest.err conftest.$ac_objext \
7577     conftest$ac_exeext conftest.$ac_ext
7578   if test "$tmp_getservbyport_r" = "yes"; then
7579     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580 /* end confdefs.h.  */
7581
7582 #include <sys/types.h>
7583 #include <netdb.h>
7584
7585 _ACEOF
7586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7587   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7588
7589       tmp_getservbyport_r="proto_declared"
7590
7591 else
7592
7593       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h.  */
7595
7596 #define _REENTRANT
7597 #include <sys/types.h>
7598 #include <netdb.h>
7599
7600 _ACEOF
7601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7602   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7603
7604         tmp_getservbyport_r="proto_needs_reentrant"
7605         tmp_need_reentrant="yes"
7606
7607 fi
7608 rm -f conftest*
7609
7610
7611 fi
7612 rm -f conftest*
7613
7614   fi
7615
7616   fi
7617
7618     fi
7619     if test "$tmp_need_reentrant" = "yes"; then
7620       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7621 $as_echo "yes" >&6; }
7622     else
7623       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624 $as_echo "no" >&6; }
7625     fi
7626   fi
7627   #
7628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7629 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7630   if test "$tmp_reentrant_initially_defined" = "yes" ||
7631     test "$tmp_need_reentrant" = "yes"; then
7632
7633
7634 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7635
7636 cat >>confdefs.h <<_EOF
7637 #ifndef _REENTRANT
7638 #  define _REENTRANT
7639 #endif
7640 _EOF
7641
7642     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7643 $as_echo "yes" >&6; }
7644   else
7645     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7647   fi
7648   #
7649
7650
7651 # Check whether --enable-largefile was given.
7652 if test "${enable_largefile+set}" = set; then :
7653   enableval=$enable_largefile;
7654 fi
7655
7656 if test "$enable_largefile" != no; then
7657
7658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7659 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7660 if ${ac_cv_sys_largefile_CC+:} false; then :
7661   $as_echo_n "(cached) " >&6
7662 else
7663   ac_cv_sys_largefile_CC=no
7664      if test "$GCC" != yes; then
7665        ac_save_CC=$CC
7666        while :; do
7667          # IRIX 6.2 and later do not support large files by default,
7668          # so use the C compiler's -n32 option if that helps.
7669          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670 /* end confdefs.h.  */
7671 #include <sys/types.h>
7672  /* Check that off_t can represent 2**63 - 1 correctly.
7673     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7674     since some C++ compilers masquerading as C compilers
7675     incorrectly reject 9223372036854775807.  */
7676 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7677   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7678                        && LARGE_OFF_T % 2147483647 == 1)
7679                       ? 1 : -1];
7680 int main (void)
7681 {
7682
7683  ;
7684  return 0;
7685 }
7686 _ACEOF
7687          if ac_fn_c_try_compile "$LINENO"; then :
7688   break
7689 fi
7690 rm -f core conftest.err conftest.$ac_objext
7691          CC="$CC -n32"
7692          if ac_fn_c_try_compile "$LINENO"; then :
7693   ac_cv_sys_largefile_CC=' -n32'; break
7694 fi
7695 rm -f core conftest.err conftest.$ac_objext
7696          break
7697        done
7698        CC=$ac_save_CC
7699        rm -f conftest.$ac_ext
7700     fi
7701 fi
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7703 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7704   if test "$ac_cv_sys_largefile_CC" != no; then
7705     CC=$CC$ac_cv_sys_largefile_CC
7706   fi
7707
7708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7709 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7710 if ${ac_cv_sys_file_offset_bits+:} false; then :
7711   $as_echo_n "(cached) " >&6
7712 else
7713   while :; do
7714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715 /* end confdefs.h.  */
7716 #include <sys/types.h>
7717  /* Check that off_t can represent 2**63 - 1 correctly.
7718     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7719     since some C++ compilers masquerading as C compilers
7720     incorrectly reject 9223372036854775807.  */
7721 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7722   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7723                        && LARGE_OFF_T % 2147483647 == 1)
7724                       ? 1 : -1];
7725 int main (void)
7726 {
7727
7728  ;
7729  return 0;
7730 }
7731 _ACEOF
7732 if ac_fn_c_try_compile "$LINENO"; then :
7733   ac_cv_sys_file_offset_bits=no; break
7734 fi
7735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737 /* end confdefs.h.  */
7738 #define _FILE_OFFSET_BITS 64
7739 #include <sys/types.h>
7740  /* Check that off_t can represent 2**63 - 1 correctly.
7741     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7742     since some C++ compilers masquerading as C compilers
7743     incorrectly reject 9223372036854775807.  */
7744 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7745   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7746                        && LARGE_OFF_T % 2147483647 == 1)
7747                       ? 1 : -1];
7748 int main (void)
7749 {
7750
7751  ;
7752  return 0;
7753 }
7754 _ACEOF
7755 if ac_fn_c_try_compile "$LINENO"; then :
7756   ac_cv_sys_file_offset_bits=64; break
7757 fi
7758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7759   ac_cv_sys_file_offset_bits=unknown
7760   break
7761 done
7762 fi
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7764 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7765 case $ac_cv_sys_file_offset_bits in #(
7766   no | unknown) ;;
7767   *)
7768 cat >>confdefs.h <<_ACEOF
7769 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7770 _ACEOF
7771 ;;
7772 esac
7773 rm -rf conftest*
7774   if test $ac_cv_sys_file_offset_bits = unknown; then
7775     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7776 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7777 if ${ac_cv_sys_large_files+:} false; then :
7778   $as_echo_n "(cached) " >&6
7779 else
7780   while :; do
7781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h.  */
7783 #include <sys/types.h>
7784  /* Check that off_t can represent 2**63 - 1 correctly.
7785     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7786     since some C++ compilers masquerading as C compilers
7787     incorrectly reject 9223372036854775807.  */
7788 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7789   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7790                        && LARGE_OFF_T % 2147483647 == 1)
7791                       ? 1 : -1];
7792 int main (void)
7793 {
7794
7795  ;
7796  return 0;
7797 }
7798 _ACEOF
7799 if ac_fn_c_try_compile "$LINENO"; then :
7800   ac_cv_sys_large_files=no; break
7801 fi
7802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h.  */
7805 #define _LARGE_FILES 1
7806 #include <sys/types.h>
7807  /* Check that off_t can represent 2**63 - 1 correctly.
7808     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7809     since some C++ compilers masquerading as C compilers
7810     incorrectly reject 9223372036854775807.  */
7811 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7812   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7813                        && LARGE_OFF_T % 2147483647 == 1)
7814                       ? 1 : -1];
7815 int main (void)
7816 {
7817
7818  ;
7819  return 0;
7820 }
7821 _ACEOF
7822 if ac_fn_c_try_compile "$LINENO"; then :
7823   ac_cv_sys_large_files=1; break
7824 fi
7825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7826   ac_cv_sys_large_files=unknown
7827   break
7828 done
7829 fi
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7831 $as_echo "$ac_cv_sys_large_files" >&6; }
7832 case $ac_cv_sys_large_files in #(
7833   no | unknown) ;;
7834   *)
7835 cat >>confdefs.h <<_ACEOF
7836 #define _LARGE_FILES $ac_cv_sys_large_files
7837 _ACEOF
7838 ;;
7839 esac
7840 rm -rf conftest*
7841   fi
7842
7843
7844 fi
7845
7846
7847 case `pwd` in
7848   *\ * | *\     *)
7849     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7850 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7851 esac
7852
7853
7854
7855 macro_version='2.4.6'
7856 macro_revision='2.4.6'
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870 ltmain=$ac_aux_dir/ltmain.sh
7871
7872 # Backslashify metacharacters that are still active within
7873 # double-quoted strings.
7874 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7875
7876 # Same as above, but do not quote variable references.
7877 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7878
7879 # Sed substitution to delay expansion of an escaped shell variable in a
7880 # double_quote_subst'ed string.
7881 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7882
7883 # Sed substitution to delay expansion of an escaped single quote.
7884 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7885
7886 # Sed substitution to avoid accidental globbing in evaled expressions
7887 no_glob_subst='s/\*/\\\*/g'
7888
7889 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7890 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7891 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7892
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7894 $as_echo_n "checking how to print strings... " >&6; }
7895 # Test print first, because it will be a builtin if present.
7896 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7897    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7898   ECHO='print -r --'
7899 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7900   ECHO='printf %s\n'
7901 else
7902   # Use this function as a fallback that always works.
7903   func_fallback_echo ()
7904   {
7905     eval 'cat <<_LTECHO_EOF
7906 $1
7907 _LTECHO_EOF'
7908   }
7909   ECHO='func_fallback_echo'
7910 fi
7911
7912 # func_echo_all arg...
7913 # Invoke $ECHO with all args, space-separated.
7914 func_echo_all ()
7915 {
7916     $ECHO ""
7917 }
7918
7919 case $ECHO in
7920   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7921 $as_echo "printf" >&6; } ;;
7922   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7923 $as_echo "print -r" >&6; } ;;
7924   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7925 $as_echo "cat" >&6; } ;;
7926 esac
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7942 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7943 if ${ac_cv_path_SED+:} false; then :
7944   $as_echo_n "(cached) " >&6
7945 else
7946             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7947      for ac_i in 1 2 3 4 5 6 7; do
7948        ac_script="$ac_script$as_nl$ac_script"
7949      done
7950      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7951      { ac_script=; unset ac_script;}
7952      if test -z "$SED"; then
7953   ac_path_SED_found=false
7954   # Loop through the user's path and test for each of PROGNAME-LIST
7955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 for as_dir in $PATH
7957 do
7958   IFS=$as_save_IFS
7959   test -z "$as_dir" && as_dir=.
7960     for ac_prog in sed gsed; do
7961     for ac_exec_ext in '' $ac_executable_extensions; do
7962       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7963       as_fn_executable_p "$ac_path_SED" || continue
7964 # Check for GNU ac_path_SED and select it if it is found.
7965   # Check for GNU $ac_path_SED
7966 case `"$ac_path_SED" --version 2>&1` in
7967 *GNU*)
7968   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7969 *)
7970   ac_count=0
7971   $as_echo_n 0123456789 >"conftest.in"
7972   while :
7973   do
7974     cat "conftest.in" "conftest.in" >"conftest.tmp"
7975     mv "conftest.tmp" "conftest.in"
7976     cp "conftest.in" "conftest.nl"
7977     $as_echo '' >> "conftest.nl"
7978     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7979     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7980     as_fn_arith $ac_count + 1 && ac_count=$as_val
7981     if test $ac_count -gt ${ac_path_SED_max-0}; then
7982       # Best one so far, save it but keep looking for a better one
7983       ac_cv_path_SED="$ac_path_SED"
7984       ac_path_SED_max=$ac_count
7985     fi
7986     # 10*(2^10) chars as input seems more than enough
7987     test $ac_count -gt 10 && break
7988   done
7989   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7990 esac
7991
7992       $ac_path_SED_found && break 3
7993     done
7994   done
7995   done
7996 IFS=$as_save_IFS
7997   if test -z "$ac_cv_path_SED"; then
7998     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7999   fi
8000 else
8001   ac_cv_path_SED=$SED
8002 fi
8003
8004 fi
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8006 $as_echo "$ac_cv_path_SED" >&6; }
8007  SED="$ac_cv_path_SED"
8008   rm -f conftest.sed
8009
8010 test -z "$SED" && SED=sed
8011 Xsed="$SED -e 1s/^X//"
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8024 $as_echo_n "checking for fgrep... " >&6; }
8025 if ${ac_cv_path_FGREP+:} false; then :
8026   $as_echo_n "(cached) " >&6
8027 else
8028   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8029    then ac_cv_path_FGREP="$GREP -F"
8030    else
8031      if test -z "$FGREP"; then
8032   ac_path_FGREP_found=false
8033   # Loop through the user's path and test for each of PROGNAME-LIST
8034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8035 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8036 do
8037   IFS=$as_save_IFS
8038   test -z "$as_dir" && as_dir=.
8039     for ac_prog in fgrep; do
8040     for ac_exec_ext in '' $ac_executable_extensions; do
8041       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8042       as_fn_executable_p "$ac_path_FGREP" || continue
8043 # Check for GNU ac_path_FGREP and select it if it is found.
8044   # Check for GNU $ac_path_FGREP
8045 case `"$ac_path_FGREP" --version 2>&1` in
8046 *GNU*)
8047   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8048 *)
8049   ac_count=0
8050   $as_echo_n 0123456789 >"conftest.in"
8051   while :
8052   do
8053     cat "conftest.in" "conftest.in" >"conftest.tmp"
8054     mv "conftest.tmp" "conftest.in"
8055     cp "conftest.in" "conftest.nl"
8056     $as_echo 'FGREP' >> "conftest.nl"
8057     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8058     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8059     as_fn_arith $ac_count + 1 && ac_count=$as_val
8060     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8061       # Best one so far, save it but keep looking for a better one
8062       ac_cv_path_FGREP="$ac_path_FGREP"
8063       ac_path_FGREP_max=$ac_count
8064     fi
8065     # 10*(2^10) chars as input seems more than enough
8066     test $ac_count -gt 10 && break
8067   done
8068   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8069 esac
8070
8071       $ac_path_FGREP_found && break 3
8072     done
8073   done
8074   done
8075 IFS=$as_save_IFS
8076   if test -z "$ac_cv_path_FGREP"; then
8077     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8078   fi
8079 else
8080   ac_cv_path_FGREP=$FGREP
8081 fi
8082
8083    fi
8084 fi
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8086 $as_echo "$ac_cv_path_FGREP" >&6; }
8087  FGREP="$ac_cv_path_FGREP"
8088
8089
8090 test -z "$GREP" && GREP=grep
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110 # Check whether --with-gnu-ld was given.
8111 if test "${with_gnu_ld+set}" = set; then :
8112   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8113 else
8114   with_gnu_ld=no
8115 fi
8116
8117 ac_prog=ld
8118 if test yes = "$GCC"; then
8119   # Check if gcc -print-prog-name=ld gives a path.
8120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8121 $as_echo_n "checking for ld used by $CC... " >&6; }
8122   case $host in
8123   *-*-mingw*)
8124     # gcc leaves a trailing carriage return, which upsets mingw
8125     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8126   *)
8127     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8128   esac
8129   case $ac_prog in
8130     # Accept absolute paths.
8131     [\\/]* | ?:[\\/]*)
8132       re_direlt='/[^/][^/]*/\.\./'
8133       # Canonicalize the pathname of ld
8134       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8135       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8136         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8137       done
8138       test -z "$LD" && LD=$ac_prog
8139       ;;
8140   "")
8141     # If it fails, then pretend we aren't using GCC.
8142     ac_prog=ld
8143     ;;
8144   *)
8145     # If it is relative, then search for the first ld in PATH.
8146     with_gnu_ld=unknown
8147     ;;
8148   esac
8149 elif test yes = "$with_gnu_ld"; then
8150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8151 $as_echo_n "checking for GNU ld... " >&6; }
8152 else
8153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8154 $as_echo_n "checking for non-GNU ld... " >&6; }
8155 fi
8156 if ${lt_cv_path_LD+:} false; then :
8157   $as_echo_n "(cached) " >&6
8158 else
8159   if test -z "$LD"; then
8160   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8161   for ac_dir in $PATH; do
8162     IFS=$lt_save_ifs
8163     test -z "$ac_dir" && ac_dir=.
8164     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8165       lt_cv_path_LD=$ac_dir/$ac_prog
8166       # Check to see if the program is GNU ld.  I'd rather use --version,
8167       # but apparently some variants of GNU ld only accept -v.
8168       # Break only if it was the GNU/non-GNU ld that we prefer.
8169       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8170       *GNU* | *'with BFD'*)
8171         test no != "$with_gnu_ld" && break
8172         ;;
8173       *)
8174         test yes != "$with_gnu_ld" && break
8175         ;;
8176       esac
8177     fi
8178   done
8179   IFS=$lt_save_ifs
8180 else
8181   lt_cv_path_LD=$LD # Let the user override the test with a path.
8182 fi
8183 fi
8184
8185 LD=$lt_cv_path_LD
8186 if test -n "$LD"; then
8187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8188 $as_echo "$LD" >&6; }
8189 else
8190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8191 $as_echo "no" >&6; }
8192 fi
8193 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8195 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8196 if ${lt_cv_prog_gnu_ld+:} false; then :
8197   $as_echo_n "(cached) " >&6
8198 else
8199   # I'd rather use --version here, but apparently some GNU lds only accept -v.
8200 case `$LD -v 2>&1 </dev/null` in
8201 *GNU* | *'with BFD'*)
8202   lt_cv_prog_gnu_ld=yes
8203   ;;
8204 *)
8205   lt_cv_prog_gnu_ld=no
8206   ;;
8207 esac
8208 fi
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8210 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8211 with_gnu_ld=$lt_cv_prog_gnu_ld
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8222 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8223 if ${lt_cv_path_NM+:} false; then :
8224   $as_echo_n "(cached) " >&6
8225 else
8226   if test -n "$NM"; then
8227   # Let the user override the test.
8228   lt_cv_path_NM=$NM
8229 else
8230   lt_nm_to_check=${ac_tool_prefix}nm
8231   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8232     lt_nm_to_check="$lt_nm_to_check nm"
8233   fi
8234   for lt_tmp_nm in $lt_nm_to_check; do
8235     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8236     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8237       IFS=$lt_save_ifs
8238       test -z "$ac_dir" && ac_dir=.
8239       tmp_nm=$ac_dir/$lt_tmp_nm
8240       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8241         # Check to see if the nm accepts a BSD-compat flag.
8242         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8243         #   nm: unknown option "B" ignored
8244         # Tru64's nm complains that /dev/null is an invalid object file
8245         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8246         case $build_os in
8247         mingw*) lt_bad_file=conftest.nm/nofile ;;
8248         *) lt_bad_file=/dev/null ;;
8249         esac
8250         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8251         *$lt_bad_file* | *'Invalid file or object type'*)
8252           lt_cv_path_NM="$tmp_nm -B"
8253           break 2
8254           ;;
8255         *)
8256           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8257           */dev/null*)
8258             lt_cv_path_NM="$tmp_nm -p"
8259             break 2
8260             ;;
8261           *)
8262             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8263             continue # so that we can try to find one that supports BSD flags
8264             ;;
8265           esac
8266           ;;
8267         esac
8268       fi
8269     done
8270     IFS=$lt_save_ifs
8271   done
8272   : ${lt_cv_path_NM=no}
8273 fi
8274 fi
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8276 $as_echo "$lt_cv_path_NM" >&6; }
8277 if test no != "$lt_cv_path_NM"; then
8278   NM=$lt_cv_path_NM
8279 else
8280   # Didn't find any BSD compatible name lister, look for dumpbin.
8281   if test -n "$DUMPBIN"; then :
8282     # Let the user override the test.
8283   else
8284     if test -n "$ac_tool_prefix"; then
8285   for ac_prog in dumpbin "link -dump"
8286   do
8287     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8288 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8290 $as_echo_n "checking for $ac_word... " >&6; }
8291 if ${ac_cv_prog_DUMPBIN+:} false; then :
8292   $as_echo_n "(cached) " >&6
8293 else
8294   if test -n "$DUMPBIN"; then
8295   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8296 else
8297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8298 for as_dir in $PATH
8299 do
8300   IFS=$as_save_IFS
8301   test -z "$as_dir" && as_dir=.
8302     for ac_exec_ext in '' $ac_executable_extensions; do
8303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8304     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8306     break 2
8307   fi
8308 done
8309   done
8310 IFS=$as_save_IFS
8311
8312 fi
8313 fi
8314 DUMPBIN=$ac_cv_prog_DUMPBIN
8315 if test -n "$DUMPBIN"; then
8316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8317 $as_echo "$DUMPBIN" >&6; }
8318 else
8319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8320 $as_echo "no" >&6; }
8321 fi
8322
8323
8324     test -n "$DUMPBIN" && break
8325   done
8326 fi
8327 if test -z "$DUMPBIN"; then
8328   ac_ct_DUMPBIN=$DUMPBIN
8329   for ac_prog in dumpbin "link -dump"
8330 do
8331   # Extract the first word of "$ac_prog", so it can be a program name with args.
8332 set dummy $ac_prog; ac_word=$2
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334 $as_echo_n "checking for $ac_word... " >&6; }
8335 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8336   $as_echo_n "(cached) " >&6
8337 else
8338   if test -n "$ac_ct_DUMPBIN"; then
8339   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8340 else
8341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342 for as_dir in $PATH
8343 do
8344   IFS=$as_save_IFS
8345   test -z "$as_dir" && as_dir=.
8346     for ac_exec_ext in '' $ac_executable_extensions; do
8347   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8348     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8350     break 2
8351   fi
8352 done
8353   done
8354 IFS=$as_save_IFS
8355
8356 fi
8357 fi
8358 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8359 if test -n "$ac_ct_DUMPBIN"; then
8360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8361 $as_echo "$ac_ct_DUMPBIN" >&6; }
8362 else
8363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364 $as_echo "no" >&6; }
8365 fi
8366
8367
8368   test -n "$ac_ct_DUMPBIN" && break
8369 done
8370
8371   if test "x$ac_ct_DUMPBIN" = x; then
8372     DUMPBIN=":"
8373   else
8374     case $cross_compiling:$ac_tool_warned in
8375 yes:)
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8378 ac_tool_warned=yes ;;
8379 esac
8380     DUMPBIN=$ac_ct_DUMPBIN
8381   fi
8382 fi
8383
8384     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8385     *COFF*)
8386       DUMPBIN="$DUMPBIN -symbols -headers"
8387       ;;
8388     *)
8389       DUMPBIN=:
8390       ;;
8391     esac
8392   fi
8393
8394   if test : != "$DUMPBIN"; then
8395     NM=$DUMPBIN
8396   fi
8397 fi
8398 test -z "$NM" && NM=nm
8399
8400
8401
8402
8403
8404
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8406 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8407 if ${lt_cv_nm_interface+:} false; then :
8408   $as_echo_n "(cached) " >&6
8409 else
8410   lt_cv_nm_interface="BSD nm"
8411   echo "int some_variable = 0;" > conftest.$ac_ext
8412   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8413   (eval "$ac_compile" 2>conftest.err)
8414   cat conftest.err >&5
8415   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8416   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8417   cat conftest.err >&5
8418   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8419   cat conftest.out >&5
8420   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8421     lt_cv_nm_interface="MS dumpbin"
8422   fi
8423   rm -f conftest*
8424 fi
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8426 $as_echo "$lt_cv_nm_interface" >&6; }
8427
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8429 $as_echo_n "checking whether ln -s works... " >&6; }
8430 LN_S=$as_ln_s
8431 if test "$LN_S" = "ln -s"; then
8432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8433 $as_echo "yes" >&6; }
8434 else
8435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8436 $as_echo "no, using $LN_S" >&6; }
8437 fi
8438
8439 # find the maximum length of command line arguments
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8441 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8442 if ${lt_cv_sys_max_cmd_len+:} false; then :
8443   $as_echo_n "(cached) " >&6
8444 else
8445     i=0
8446   teststring=ABCD
8447
8448   case $build_os in
8449   msdosdjgpp*)
8450     # On DJGPP, this test can blow up pretty badly due to problems in libc
8451     # (any single argument exceeding 2000 bytes causes a buffer overrun
8452     # during glob expansion).  Even if it were fixed, the result of this
8453     # check would be larger than it should be.
8454     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8455     ;;
8456
8457   gnu*)
8458     # Under GNU Hurd, this test is not required because there is
8459     # no limit to the length of command line arguments.
8460     # Libtool will interpret -1 as no limit whatsoever
8461     lt_cv_sys_max_cmd_len=-1;
8462     ;;
8463
8464   cygwin* | mingw* | cegcc*)
8465     # On Win9x/ME, this test blows up -- it succeeds, but takes
8466     # about 5 minutes as the teststring grows exponentially.
8467     # Worse, since 9x/ME are not pre-emptively multitasking,
8468     # you end up with a "frozen" computer, even though with patience
8469     # the test eventually succeeds (with a max line length of 256k).
8470     # Instead, let's just punt: use the minimum linelength reported by
8471     # all of the supported platforms: 8192 (on NT/2K/XP).
8472     lt_cv_sys_max_cmd_len=8192;
8473     ;;
8474
8475   mint*)
8476     # On MiNT this can take a long time and run out of memory.
8477     lt_cv_sys_max_cmd_len=8192;
8478     ;;
8479
8480   amigaos*)
8481     # On AmigaOS with pdksh, this test takes hours, literally.
8482     # So we just punt and use a minimum line length of 8192.
8483     lt_cv_sys_max_cmd_len=8192;
8484     ;;
8485
8486   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8487     # This has been around since 386BSD, at least.  Likely further.
8488     if test -x /sbin/sysctl; then
8489       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8490     elif test -x /usr/sbin/sysctl; then
8491       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8492     else
8493       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8494     fi
8495     # And add a safety zone
8496     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8497     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8498     ;;
8499
8500   interix*)
8501     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8502     lt_cv_sys_max_cmd_len=196608
8503     ;;
8504
8505   os2*)
8506     # The test takes a long time on OS/2.
8507     lt_cv_sys_max_cmd_len=8192
8508     ;;
8509
8510   osf*)
8511     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8512     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8513     # nice to cause kernel panics so lets avoid the loop below.
8514     # First set a reasonable default.
8515     lt_cv_sys_max_cmd_len=16384
8516     #
8517     if test -x /sbin/sysconfig; then
8518       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8519         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8520       esac
8521     fi
8522     ;;
8523   sco3.2v5*)
8524     lt_cv_sys_max_cmd_len=102400
8525     ;;
8526   sysv5* | sco5v6* | sysv4.2uw2*)
8527     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8528     if test -n "$kargmax"; then
8529       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
8530     else
8531       lt_cv_sys_max_cmd_len=32768
8532     fi
8533     ;;
8534   *)
8535     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8536     if test -n "$lt_cv_sys_max_cmd_len" && \
8537        test undefined != "$lt_cv_sys_max_cmd_len"; then
8538       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8539       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8540     else
8541       # Make teststring a little bigger before we do anything with it.
8542       # a 1K string should be a reasonable start.
8543       for i in 1 2 3 4 5 6 7 8; do
8544         teststring=$teststring$teststring
8545       done
8546       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8547       # If test is not a shell built-in, we'll probably end up computing a
8548       # maximum length that is only half of the actual maximum length, but
8549       # we can't tell.
8550       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8551                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8552               test 17 != "$i" # 1/2 MB should be enough
8553       do
8554         i=`expr $i + 1`
8555         teststring=$teststring$teststring
8556       done
8557       # Only check the string length outside the loop.
8558       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8559       teststring=
8560       # Add a significant safety factor because C++ compilers can tack on
8561       # massive amounts of additional arguments before passing them to the
8562       # linker.  It appears as though 1/2 is a usable value.
8563       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8564     fi
8565     ;;
8566   esac
8567
8568 fi
8569
8570 if test -n "$lt_cv_sys_max_cmd_len"; then
8571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8572 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8573 else
8574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8575 $as_echo "none" >&6; }
8576 fi
8577 max_cmd_len=$lt_cv_sys_max_cmd_len
8578
8579
8580
8581
8582
8583
8584 : ${CP="cp -f"}
8585 : ${MV="mv -f"}
8586 : ${RM="rm -f"}
8587
8588 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8589   lt_unset=unset
8590 else
8591   lt_unset=false
8592 fi
8593
8594
8595
8596
8597
8598 # test EBCDIC or ASCII
8599 case `echo X|tr X '\101'` in
8600  A) # ASCII based system
8601     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8602   lt_SP2NL='tr \040 \012'
8603   lt_NL2SP='tr \015\012 \040\040'
8604   ;;
8605  *) # EBCDIC based system
8606   lt_SP2NL='tr \100 \n'
8607   lt_NL2SP='tr \r\n \100\100'
8608   ;;
8609 esac
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8620 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8621 if ${lt_cv_to_host_file_cmd+:} false; then :
8622   $as_echo_n "(cached) " >&6
8623 else
8624   case $host in
8625   *-*-mingw* )
8626     case $build in
8627       *-*-mingw* ) # actually msys
8628         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8629         ;;
8630       *-*-cygwin* )
8631         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8632         ;;
8633       * ) # otherwise, assume *nix
8634         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8635         ;;
8636     esac
8637     ;;
8638   *-*-cygwin* )
8639     case $build in
8640       *-*-mingw* ) # actually msys
8641         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8642         ;;
8643       *-*-cygwin* )
8644         lt_cv_to_host_file_cmd=func_convert_file_noop
8645         ;;
8646       * ) # otherwise, assume *nix
8647         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8648         ;;
8649     esac
8650     ;;
8651   * ) # unhandled hosts (and "normal" native builds)
8652     lt_cv_to_host_file_cmd=func_convert_file_noop
8653     ;;
8654 esac
8655
8656 fi
8657
8658 to_host_file_cmd=$lt_cv_to_host_file_cmd
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8660 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8661
8662
8663
8664
8665
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8667 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8668 if ${lt_cv_to_tool_file_cmd+:} false; then :
8669   $as_echo_n "(cached) " >&6
8670 else
8671   #assume ordinary cross tools, or native build.
8672 lt_cv_to_tool_file_cmd=func_convert_file_noop
8673 case $host in
8674   *-*-mingw* )
8675     case $build in
8676       *-*-mingw* ) # actually msys
8677         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8678         ;;
8679     esac
8680     ;;
8681 esac
8682
8683 fi
8684
8685 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8687 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8688
8689
8690
8691
8692
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8694 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8695 if ${lt_cv_ld_reload_flag+:} false; then :
8696   $as_echo_n "(cached) " >&6
8697 else
8698   lt_cv_ld_reload_flag='-r'
8699 fi
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8701 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8702 reload_flag=$lt_cv_ld_reload_flag
8703 case $reload_flag in
8704 "" | " "*) ;;
8705 *) reload_flag=" $reload_flag" ;;
8706 esac
8707 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8708 case $host_os in
8709   cygwin* | mingw* | pw32* | cegcc*)
8710     if test yes != "$GCC"; then
8711       reload_cmds=false
8712     fi
8713     ;;
8714   darwin*)
8715     if test yes = "$GCC"; then
8716       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8717     else
8718       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8719     fi
8720     ;;
8721 esac
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731 if test -n "$ac_tool_prefix"; then
8732   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8733 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8735 $as_echo_n "checking for $ac_word... " >&6; }
8736 if ${ac_cv_prog_OBJDUMP+:} false; then :
8737   $as_echo_n "(cached) " >&6
8738 else
8739   if test -n "$OBJDUMP"; then
8740   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8741 else
8742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743 for as_dir in $PATH
8744 do
8745   IFS=$as_save_IFS
8746   test -z "$as_dir" && as_dir=.
8747     for ac_exec_ext in '' $ac_executable_extensions; do
8748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8749     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8751     break 2
8752   fi
8753 done
8754   done
8755 IFS=$as_save_IFS
8756
8757 fi
8758 fi
8759 OBJDUMP=$ac_cv_prog_OBJDUMP
8760 if test -n "$OBJDUMP"; then
8761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8762 $as_echo "$OBJDUMP" >&6; }
8763 else
8764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765 $as_echo "no" >&6; }
8766 fi
8767
8768
8769 fi
8770 if test -z "$ac_cv_prog_OBJDUMP"; then
8771   ac_ct_OBJDUMP=$OBJDUMP
8772   # Extract the first word of "objdump", so it can be a program name with args.
8773 set dummy objdump; ac_word=$2
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8775 $as_echo_n "checking for $ac_word... " >&6; }
8776 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8777   $as_echo_n "(cached) " >&6
8778 else
8779   if test -n "$ac_ct_OBJDUMP"; then
8780   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8781 else
8782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8783 for as_dir in $PATH
8784 do
8785   IFS=$as_save_IFS
8786   test -z "$as_dir" && as_dir=.
8787     for ac_exec_ext in '' $ac_executable_extensions; do
8788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8789     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8791     break 2
8792   fi
8793 done
8794   done
8795 IFS=$as_save_IFS
8796
8797 fi
8798 fi
8799 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8800 if test -n "$ac_ct_OBJDUMP"; then
8801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8802 $as_echo "$ac_ct_OBJDUMP" >&6; }
8803 else
8804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8805 $as_echo "no" >&6; }
8806 fi
8807
8808   if test "x$ac_ct_OBJDUMP" = x; then
8809     OBJDUMP="false"
8810   else
8811     case $cross_compiling:$ac_tool_warned in
8812 yes:)
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8815 ac_tool_warned=yes ;;
8816 esac
8817     OBJDUMP=$ac_ct_OBJDUMP
8818   fi
8819 else
8820   OBJDUMP="$ac_cv_prog_OBJDUMP"
8821 fi
8822
8823 test -z "$OBJDUMP" && OBJDUMP=objdump
8824
8825
8826
8827
8828
8829
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8831 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8832 if ${lt_cv_deplibs_check_method+:} false; then :
8833   $as_echo_n "(cached) " >&6
8834 else
8835   lt_cv_file_magic_cmd='$MAGIC_CMD'
8836 lt_cv_file_magic_test_file=
8837 lt_cv_deplibs_check_method='unknown'
8838 # Need to set the preceding variable on all platforms that support
8839 # interlibrary dependencies.
8840 # 'none' -- dependencies not supported.
8841 # 'unknown' -- same as none, but documents that we really don't know.
8842 # 'pass_all' -- all dependencies passed with no checks.
8843 # 'test_compile' -- check by making test program.
8844 # 'file_magic [[regex]]' -- check by looking for files in library path
8845 # that responds to the $file_magic_cmd with a given extended regex.
8846 # If you have 'file' or equivalent on your system and you're not sure
8847 # whether 'pass_all' will *always* work, you probably want this one.
8848
8849 case $host_os in
8850 aix[4-9]*)
8851   lt_cv_deplibs_check_method=pass_all
8852   ;;
8853
8854 beos*)
8855   lt_cv_deplibs_check_method=pass_all
8856   ;;
8857
8858 bsdi[45]*)
8859   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8860   lt_cv_file_magic_cmd='/usr/bin/file -L'
8861   lt_cv_file_magic_test_file=/shlib/libc.so
8862   ;;
8863
8864 cygwin*)
8865   # func_win32_libid is a shell function defined in ltmain.sh
8866   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8867   lt_cv_file_magic_cmd='func_win32_libid'
8868   ;;
8869
8870 mingw* | pw32*)
8871   # Base MSYS/MinGW do not provide the 'file' command needed by
8872   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8873   # unless we find 'file', for example because we are cross-compiling.
8874   if ( file / ) >/dev/null 2>&1; then
8875     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8876     lt_cv_file_magic_cmd='func_win32_libid'
8877   else
8878     # Keep this pattern in sync with the one in func_win32_libid.
8879     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8880     lt_cv_file_magic_cmd='$OBJDUMP -f'
8881   fi
8882   ;;
8883
8884 cegcc*)
8885   # use the weaker test based on 'objdump'. See mingw*.
8886   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8887   lt_cv_file_magic_cmd='$OBJDUMP -f'
8888   ;;
8889
8890 darwin* | rhapsody*)
8891   lt_cv_deplibs_check_method=pass_all
8892   ;;
8893
8894 freebsd* | dragonfly*)
8895   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8896     case $host_cpu in
8897     i*86 )
8898       # Not sure whether the presence of OpenBSD here was a mistake.
8899       # Let's accept both of them until this is cleared up.
8900       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8901       lt_cv_file_magic_cmd=/usr/bin/file
8902       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8903       ;;
8904     esac
8905   else
8906     lt_cv_deplibs_check_method=pass_all
8907   fi
8908   ;;
8909
8910 haiku*)
8911   lt_cv_deplibs_check_method=pass_all
8912   ;;
8913
8914 hpux10.20* | hpux11*)
8915   lt_cv_file_magic_cmd=/usr/bin/file
8916   case $host_cpu in
8917   ia64*)
8918     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8919     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8920     ;;
8921   hppa*64*)
8922     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]'
8923     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8924     ;;
8925   *)
8926     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8927     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8928     ;;
8929   esac
8930   ;;
8931
8932 interix[3-9]*)
8933   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8934   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8935   ;;
8936
8937 irix5* | irix6* | nonstopux*)
8938   case $LD in
8939   *-32|*"-32 ") libmagic=32-bit;;
8940   *-n32|*"-n32 ") libmagic=N32;;
8941   *-64|*"-64 ") libmagic=64-bit;;
8942   *) libmagic=never-match;;
8943   esac
8944   lt_cv_deplibs_check_method=pass_all
8945   ;;
8946
8947 # This must be glibc/ELF.
8948 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8949   lt_cv_deplibs_check_method=pass_all
8950   ;;
8951
8952 netbsd* | netbsdelf*-gnu)
8953   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8954     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8955   else
8956     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8957   fi
8958   ;;
8959
8960 newos6*)
8961   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8962   lt_cv_file_magic_cmd=/usr/bin/file
8963   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8964   ;;
8965
8966 *nto* | *qnx*)
8967   lt_cv_deplibs_check_method=pass_all
8968   ;;
8969
8970 openbsd* | bitrig*)
8971   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8972     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8973   else
8974     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8975   fi
8976   ;;
8977
8978 osf3* | osf4* | osf5*)
8979   lt_cv_deplibs_check_method=pass_all
8980   ;;
8981
8982 rdos*)
8983   lt_cv_deplibs_check_method=pass_all
8984   ;;
8985
8986 solaris*)
8987   lt_cv_deplibs_check_method=pass_all
8988   ;;
8989
8990 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8991   lt_cv_deplibs_check_method=pass_all
8992   ;;
8993
8994 sysv4 | sysv4.3*)
8995   case $host_vendor in
8996   motorola)
8997     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]'
8998     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8999     ;;
9000   ncr)
9001     lt_cv_deplibs_check_method=pass_all
9002     ;;
9003   sequent)
9004     lt_cv_file_magic_cmd='/bin/file'
9005     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9006     ;;
9007   sni)
9008     lt_cv_file_magic_cmd='/bin/file'
9009     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9010     lt_cv_file_magic_test_file=/lib/libc.so
9011     ;;
9012   siemens)
9013     lt_cv_deplibs_check_method=pass_all
9014     ;;
9015   pc)
9016     lt_cv_deplibs_check_method=pass_all
9017     ;;
9018   esac
9019   ;;
9020
9021 tpf*)
9022   lt_cv_deplibs_check_method=pass_all
9023   ;;
9024 os2*)
9025   lt_cv_deplibs_check_method=pass_all
9026   ;;
9027 esac
9028
9029 fi
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9031 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9032
9033 file_magic_glob=
9034 want_nocaseglob=no
9035 if test "$build" = "$host"; then
9036   case $host_os in
9037   mingw* | pw32*)
9038     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9039       want_nocaseglob=yes
9040     else
9041       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9042     fi
9043     ;;
9044   esac
9045 fi
9046
9047 file_magic_cmd=$lt_cv_file_magic_cmd
9048 deplibs_check_method=$lt_cv_deplibs_check_method
9049 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072 if test -n "$ac_tool_prefix"; then
9073   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9074 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9076 $as_echo_n "checking for $ac_word... " >&6; }
9077 if ${ac_cv_prog_DLLTOOL+:} false; then :
9078   $as_echo_n "(cached) " >&6
9079 else
9080   if test -n "$DLLTOOL"; then
9081   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9082 else
9083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9084 for as_dir in $PATH
9085 do
9086   IFS=$as_save_IFS
9087   test -z "$as_dir" && as_dir=.
9088     for ac_exec_ext in '' $ac_executable_extensions; do
9089   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9090     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9092     break 2
9093   fi
9094 done
9095   done
9096 IFS=$as_save_IFS
9097
9098 fi
9099 fi
9100 DLLTOOL=$ac_cv_prog_DLLTOOL
9101 if test -n "$DLLTOOL"; then
9102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9103 $as_echo "$DLLTOOL" >&6; }
9104 else
9105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9106 $as_echo "no" >&6; }
9107 fi
9108
9109
9110 fi
9111 if test -z "$ac_cv_prog_DLLTOOL"; then
9112   ac_ct_DLLTOOL=$DLLTOOL
9113   # Extract the first word of "dlltool", so it can be a program name with args.
9114 set dummy dlltool; ac_word=$2
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9116 $as_echo_n "checking for $ac_word... " >&6; }
9117 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9118   $as_echo_n "(cached) " >&6
9119 else
9120   if test -n "$ac_ct_DLLTOOL"; then
9121   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9122 else
9123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9124 for as_dir in $PATH
9125 do
9126   IFS=$as_save_IFS
9127   test -z "$as_dir" && as_dir=.
9128     for ac_exec_ext in '' $ac_executable_extensions; do
9129   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9130     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9132     break 2
9133   fi
9134 done
9135   done
9136 IFS=$as_save_IFS
9137
9138 fi
9139 fi
9140 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9141 if test -n "$ac_ct_DLLTOOL"; then
9142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9143 $as_echo "$ac_ct_DLLTOOL" >&6; }
9144 else
9145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9146 $as_echo "no" >&6; }
9147 fi
9148
9149   if test "x$ac_ct_DLLTOOL" = x; then
9150     DLLTOOL="false"
9151   else
9152     case $cross_compiling:$ac_tool_warned in
9153 yes:)
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9156 ac_tool_warned=yes ;;
9157 esac
9158     DLLTOOL=$ac_ct_DLLTOOL
9159   fi
9160 else
9161   DLLTOOL="$ac_cv_prog_DLLTOOL"
9162 fi
9163
9164 test -z "$DLLTOOL" && DLLTOOL=dlltool
9165
9166
9167
9168
9169
9170
9171
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9173 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9174 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9175   $as_echo_n "(cached) " >&6
9176 else
9177   lt_cv_sharedlib_from_linklib_cmd='unknown'
9178
9179 case $host_os in
9180 cygwin* | mingw* | pw32* | cegcc*)
9181   # two different shell functions defined in ltmain.sh;
9182   # decide which one to use based on capabilities of $DLLTOOL
9183   case `$DLLTOOL --help 2>&1` in
9184   *--identify-strict*)
9185     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9186     ;;
9187   *)
9188     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9189     ;;
9190   esac
9191   ;;
9192 *)
9193   # fallback: assume linklib IS sharedlib
9194   lt_cv_sharedlib_from_linklib_cmd=$ECHO
9195   ;;
9196 esac
9197
9198 fi
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9200 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9201 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9202 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9203
9204
9205
9206
9207
9208
9209
9210 if test -n "$ac_tool_prefix"; then
9211   for ac_prog in ar
9212   do
9213     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9214 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9216 $as_echo_n "checking for $ac_word... " >&6; }
9217 if ${ac_cv_prog_AR+:} false; then :
9218   $as_echo_n "(cached) " >&6
9219 else
9220   if test -n "$AR"; then
9221   ac_cv_prog_AR="$AR" # Let the user override the test.
9222 else
9223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9224 for as_dir in $PATH
9225 do
9226   IFS=$as_save_IFS
9227   test -z "$as_dir" && as_dir=.
9228     for ac_exec_ext in '' $ac_executable_extensions; do
9229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9230     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9232     break 2
9233   fi
9234 done
9235   done
9236 IFS=$as_save_IFS
9237
9238 fi
9239 fi
9240 AR=$ac_cv_prog_AR
9241 if test -n "$AR"; then
9242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9243 $as_echo "$AR" >&6; }
9244 else
9245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9246 $as_echo "no" >&6; }
9247 fi
9248
9249
9250     test -n "$AR" && break
9251   done
9252 fi
9253 if test -z "$AR"; then
9254   ac_ct_AR=$AR
9255   for ac_prog in ar
9256 do
9257   # Extract the first word of "$ac_prog", so it can be a program name with args.
9258 set dummy $ac_prog; ac_word=$2
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9260 $as_echo_n "checking for $ac_word... " >&6; }
9261 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9262   $as_echo_n "(cached) " >&6
9263 else
9264   if test -n "$ac_ct_AR"; then
9265   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9266 else
9267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9268 for as_dir in $PATH
9269 do
9270   IFS=$as_save_IFS
9271   test -z "$as_dir" && as_dir=.
9272     for ac_exec_ext in '' $ac_executable_extensions; do
9273   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9274     ac_cv_prog_ac_ct_AR="$ac_prog"
9275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9276     break 2
9277   fi
9278 done
9279   done
9280 IFS=$as_save_IFS
9281
9282 fi
9283 fi
9284 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9285 if test -n "$ac_ct_AR"; then
9286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9287 $as_echo "$ac_ct_AR" >&6; }
9288 else
9289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9290 $as_echo "no" >&6; }
9291 fi
9292
9293
9294   test -n "$ac_ct_AR" && break
9295 done
9296
9297   if test "x$ac_ct_AR" = x; then
9298     AR="false"
9299   else
9300     case $cross_compiling:$ac_tool_warned in
9301 yes:)
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9304 ac_tool_warned=yes ;;
9305 esac
9306     AR=$ac_ct_AR
9307   fi
9308 fi
9309
9310 : ${AR=ar}
9311 : ${AR_FLAGS=cru}
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9324 $as_echo_n "checking for archiver @FILE support... " >&6; }
9325 if ${lt_cv_ar_at_file+:} false; then :
9326   $as_echo_n "(cached) " >&6
9327 else
9328   lt_cv_ar_at_file=no
9329    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9330 /* end confdefs.h.  */
9331
9332 int main (void)
9333 {
9334
9335  ;
9336  return 0;
9337 }
9338 _ACEOF
9339 if ac_fn_c_try_compile "$LINENO"; then :
9340   echo conftest.$ac_objext > conftest.lst
9341       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9342       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9343   (eval $lt_ar_try) 2>&5
9344   ac_status=$?
9345   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9346   test $ac_status = 0; }
9347       if test 0 -eq "$ac_status"; then
9348         # Ensure the archiver fails upon bogus file names.
9349         rm -f conftest.$ac_objext libconftest.a
9350         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9351   (eval $lt_ar_try) 2>&5
9352   ac_status=$?
9353   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9354   test $ac_status = 0; }
9355         if test 0 -ne "$ac_status"; then
9356           lt_cv_ar_at_file=@
9357         fi
9358       fi
9359       rm -f conftest.* libconftest.a
9360
9361 fi
9362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9363
9364 fi
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9366 $as_echo "$lt_cv_ar_at_file" >&6; }
9367
9368 if test no = "$lt_cv_ar_at_file"; then
9369   archiver_list_spec=
9370 else
9371   archiver_list_spec=$lt_cv_ar_at_file
9372 fi
9373
9374
9375
9376
9377
9378
9379
9380 if test -n "$ac_tool_prefix"; then
9381   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9382 set dummy ${ac_tool_prefix}strip; ac_word=$2
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9384 $as_echo_n "checking for $ac_word... " >&6; }
9385 if ${ac_cv_prog_STRIP+:} false; then :
9386   $as_echo_n "(cached) " >&6
9387 else
9388   if test -n "$STRIP"; then
9389   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9390 else
9391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9392 for as_dir in $PATH
9393 do
9394   IFS=$as_save_IFS
9395   test -z "$as_dir" && as_dir=.
9396     for ac_exec_ext in '' $ac_executable_extensions; do
9397   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9398     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9400     break 2
9401   fi
9402 done
9403   done
9404 IFS=$as_save_IFS
9405
9406 fi
9407 fi
9408 STRIP=$ac_cv_prog_STRIP
9409 if test -n "$STRIP"; then
9410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9411 $as_echo "$STRIP" >&6; }
9412 else
9413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9414 $as_echo "no" >&6; }
9415 fi
9416
9417
9418 fi
9419 if test -z "$ac_cv_prog_STRIP"; then
9420   ac_ct_STRIP=$STRIP
9421   # Extract the first word of "strip", so it can be a program name with args.
9422 set dummy strip; ac_word=$2
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9424 $as_echo_n "checking for $ac_word... " >&6; }
9425 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9426   $as_echo_n "(cached) " >&6
9427 else
9428   if test -n "$ac_ct_STRIP"; then
9429   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9430 else
9431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9432 for as_dir in $PATH
9433 do
9434   IFS=$as_save_IFS
9435   test -z "$as_dir" && as_dir=.
9436     for ac_exec_ext in '' $ac_executable_extensions; do
9437   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9438     ac_cv_prog_ac_ct_STRIP="strip"
9439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9440     break 2
9441   fi
9442 done
9443   done
9444 IFS=$as_save_IFS
9445
9446 fi
9447 fi
9448 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9449 if test -n "$ac_ct_STRIP"; then
9450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9451 $as_echo "$ac_ct_STRIP" >&6; }
9452 else
9453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9454 $as_echo "no" >&6; }
9455 fi
9456
9457   if test "x$ac_ct_STRIP" = x; then
9458     STRIP=":"
9459   else
9460     case $cross_compiling:$ac_tool_warned in
9461 yes:)
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9464 ac_tool_warned=yes ;;
9465 esac
9466     STRIP=$ac_ct_STRIP
9467   fi
9468 else
9469   STRIP="$ac_cv_prog_STRIP"
9470 fi
9471
9472 test -z "$STRIP" && STRIP=:
9473
9474
9475
9476
9477
9478
9479 if test -n "$ac_tool_prefix"; then
9480   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9481 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9483 $as_echo_n "checking for $ac_word... " >&6; }
9484 if ${ac_cv_prog_RANLIB+:} false; then :
9485   $as_echo_n "(cached) " >&6
9486 else
9487   if test -n "$RANLIB"; then
9488   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9489 else
9490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9491 for as_dir in $PATH
9492 do
9493   IFS=$as_save_IFS
9494   test -z "$as_dir" && as_dir=.
9495     for ac_exec_ext in '' $ac_executable_extensions; do
9496   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9497     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9499     break 2
9500   fi
9501 done
9502   done
9503 IFS=$as_save_IFS
9504
9505 fi
9506 fi
9507 RANLIB=$ac_cv_prog_RANLIB
9508 if test -n "$RANLIB"; then
9509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9510 $as_echo "$RANLIB" >&6; }
9511 else
9512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9513 $as_echo "no" >&6; }
9514 fi
9515
9516
9517 fi
9518 if test -z "$ac_cv_prog_RANLIB"; then
9519   ac_ct_RANLIB=$RANLIB
9520   # Extract the first word of "ranlib", so it can be a program name with args.
9521 set dummy ranlib; ac_word=$2
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9523 $as_echo_n "checking for $ac_word... " >&6; }
9524 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9525   $as_echo_n "(cached) " >&6
9526 else
9527   if test -n "$ac_ct_RANLIB"; then
9528   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9529 else
9530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9531 for as_dir in $PATH
9532 do
9533   IFS=$as_save_IFS
9534   test -z "$as_dir" && as_dir=.
9535     for ac_exec_ext in '' $ac_executable_extensions; do
9536   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9537     ac_cv_prog_ac_ct_RANLIB="ranlib"
9538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9539     break 2
9540   fi
9541 done
9542   done
9543 IFS=$as_save_IFS
9544
9545 fi
9546 fi
9547 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9548 if test -n "$ac_ct_RANLIB"; then
9549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9550 $as_echo "$ac_ct_RANLIB" >&6; }
9551 else
9552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553 $as_echo "no" >&6; }
9554 fi
9555
9556   if test "x$ac_ct_RANLIB" = x; then
9557     RANLIB=":"
9558   else
9559     case $cross_compiling:$ac_tool_warned in
9560 yes:)
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9563 ac_tool_warned=yes ;;
9564 esac
9565     RANLIB=$ac_ct_RANLIB
9566   fi
9567 else
9568   RANLIB="$ac_cv_prog_RANLIB"
9569 fi
9570
9571 test -z "$RANLIB" && RANLIB=:
9572
9573
9574
9575
9576
9577
9578 # Determine commands to create old-style static archives.
9579 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9580 old_postinstall_cmds='chmod 644 $oldlib'
9581 old_postuninstall_cmds=
9582
9583 if test -n "$RANLIB"; then
9584   case $host_os in
9585   bitrig* | openbsd*)
9586     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9587     ;;
9588   *)
9589     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9590     ;;
9591   esac
9592   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9593 fi
9594
9595 case $host_os in
9596   darwin*)
9597     lock_old_archive_extraction=yes ;;
9598   *)
9599     lock_old_archive_extraction=no ;;
9600 esac
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640 # If no C compiler was specified, use CC.
9641 LTCC=${LTCC-"$CC"}
9642
9643 # If no C compiler flags were specified, use CFLAGS.
9644 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9645
9646 # Allow CC to be a program name with arguments.
9647 compiler=$CC
9648
9649
9650 # Check for command to grab the raw symbol name followed by C symbol from nm.
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9652 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9653 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9654   $as_echo_n "(cached) " >&6
9655 else
9656
9657 # These are sane defaults that work on at least a few old systems.
9658 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9659
9660 # Character class describing NM global symbol codes.
9661 symcode='[BCDEGRST]'
9662
9663 # Regexp to match symbols that can be accessed directly from C.
9664 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9665
9666 # Define system-specific variables.
9667 case $host_os in
9668 aix*)
9669   symcode='[BCDT]'
9670   ;;
9671 cygwin* | mingw* | pw32* | cegcc*)
9672   symcode='[ABCDGISTW]'
9673   ;;
9674 hpux*)
9675   if test ia64 = "$host_cpu"; then
9676     symcode='[ABCDEGRST]'
9677   fi
9678   ;;
9679 irix* | nonstopux*)
9680   symcode='[BCDEGRST]'
9681   ;;
9682 osf*)
9683   symcode='[BCDEGQRST]'
9684   ;;
9685 solaris*)
9686   symcode='[BDRT]'
9687   ;;
9688 sco3.2v5*)
9689   symcode='[DT]'
9690   ;;
9691 sysv4.2uw2*)
9692   symcode='[DT]'
9693   ;;
9694 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9695   symcode='[ABDT]'
9696   ;;
9697 sysv4)
9698   symcode='[DFNSTU]'
9699   ;;
9700 esac
9701
9702 # If we're using GNU nm, then use its standard symbol codes.
9703 case `$NM -V 2>&1` in
9704 *GNU* | *'with BFD'*)
9705   symcode='[ABCDGIRSTW]' ;;
9706 esac
9707
9708 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9709   # Gets list of data symbols to import.
9710   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9711   # Adjust the below global symbol transforms to fixup imported variables.
9712   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9713   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9714   lt_c_name_lib_hook="\
9715   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9716   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9717 else
9718   # Disable hooks by default.
9719   lt_cv_sys_global_symbol_to_import=
9720   lt_cdecl_hook=
9721   lt_c_name_hook=
9722   lt_c_name_lib_hook=
9723 fi
9724
9725 # Transform an extracted symbol line into a proper C declaration.
9726 # Some systems (esp. on ia64) link data and code symbols differently,
9727 # so use this general approach.
9728 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9729 $lt_cdecl_hook\
9730 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9731 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9732
9733 # Transform an extracted symbol line into symbol name and symbol address
9734 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9735 $lt_c_name_hook\
9736 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9737 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9738
9739 # Transform an extracted symbol line into symbol name with lib prefix and
9740 # symbol address.
9741 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9742 $lt_c_name_lib_hook\
9743 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9744 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9745 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9746
9747 # Handle CRLF in mingw tool chain
9748 opt_cr=
9749 case $build_os in
9750 mingw*)
9751   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9752   ;;
9753 esac
9754
9755 # Try without a prefix underscore, then with it.
9756 for ac_symprfx in "" "_"; do
9757
9758   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9759   symxfrm="\\1 $ac_symprfx\\2 \\2"
9760
9761   # Write the raw and C identifiers.
9762   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9763     # Fake it for dumpbin and say T for any non-static function,
9764     # D for any global variable and I for any imported variable.
9765     # Also find C++ and __fastcall symbols from MSVC++,
9766     # which start with @ or ?.
9767     lt_cv_sys_global_symbol_pipe="$AWK '"\
9768 "     {last_section=section; section=\$ 3};"\
9769 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9770 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9771 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9772 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9773 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9774 "     \$ 0!~/External *\|/{next};"\
9775 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9776 "     {if(hide[section]) next};"\
9777 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9778 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9779 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9780 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9781 "     ' prfx=^$ac_symprfx"
9782   else
9783     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9784   fi
9785   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9786
9787   # Check to see that the pipe works correctly.
9788   pipe_works=no
9789
9790   rm -f conftest*
9791   cat > conftest.$ac_ext <<_LT_EOF
9792 #ifdef __cplusplus
9793 extern "C" {
9794 #endif
9795 char nm_test_var;
9796 void nm_test_func(void);
9797 void nm_test_func(void){}
9798 #ifdef __cplusplus
9799 }
9800 #endif
9801 int main(){nm_test_var='a';nm_test_func();return(0);}
9802 _LT_EOF
9803
9804   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9805   (eval $ac_compile) 2>&5
9806   ac_status=$?
9807   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9808   test $ac_status = 0; }; then
9809     # Now try to grab the symbols.
9810     nlist=conftest.nm
9811     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9812   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9813   ac_status=$?
9814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9815   test $ac_status = 0; } && test -s "$nlist"; then
9816       # Try sorting and uniquifying the output.
9817       if sort "$nlist" | uniq > "$nlist"T; then
9818         mv -f "$nlist"T "$nlist"
9819       else
9820         rm -f "$nlist"T
9821       fi
9822
9823       # Make sure that we snagged all the symbols we need.
9824       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9825         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9826           cat <<_LT_EOF > conftest.$ac_ext
9827 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9828 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9829 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9830    relocations are performed -- see ld's documentation on pseudo-relocs.  */
9831 # define LT_DLSYM_CONST
9832 #elif defined __osf__
9833 /* This system does not cope well with relocations in const data.  */
9834 # define LT_DLSYM_CONST
9835 #else
9836 # define LT_DLSYM_CONST const
9837 #endif
9838
9839 #ifdef __cplusplus
9840 extern "C" {
9841 #endif
9842
9843 _LT_EOF
9844           # Now generate the symbol file.
9845           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9846
9847           cat <<_LT_EOF >> conftest.$ac_ext
9848
9849 /* The mapping between symbol names and symbols.  */
9850 LT_DLSYM_CONST struct {
9851   const char *name;
9852   void       *address;
9853 }
9854 lt__PROGRAM__LTX_preloaded_symbols[] =
9855 {
9856   { "@PROGRAM@", (void *) 0 },
9857 _LT_EOF
9858           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9859           cat <<\_LT_EOF >> conftest.$ac_ext
9860   {0, (void *) 0}
9861 };
9862
9863 /* This works around a problem in FreeBSD linker */
9864 #ifdef FREEBSD_WORKAROUND
9865 static const void *lt_preloaded_setup() {
9866   return lt__PROGRAM__LTX_preloaded_symbols;
9867 }
9868 #endif
9869
9870 #ifdef __cplusplus
9871 }
9872 #endif
9873 _LT_EOF
9874           # Now try linking the two files.
9875           mv -f conftest.$ac_objext conftstm.$ac_objext
9876           lt_globsym_save_LIBS=$LIBS
9877           lt_globsym_save_CFLAGS=$CFLAGS
9878           LIBS=conftstm.$ac_objext
9879           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9880           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9881   (eval $ac_link) 2>&5
9882   ac_status=$?
9883   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9884   test $ac_status = 0; } && test -s conftest$ac_exeext; then
9885             pipe_works=yes
9886           fi
9887           LIBS=$lt_globsym_save_LIBS
9888           CFLAGS=$lt_globsym_save_CFLAGS
9889         else
9890           echo "cannot find nm_test_func in $nlist" >&5
9891         fi
9892       else
9893         echo "cannot find nm_test_var in $nlist" >&5
9894       fi
9895     else
9896       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9897     fi
9898   else
9899     echo "$progname: failed program was:" >&5
9900     cat conftest.$ac_ext >&5
9901   fi
9902   rm -rf conftest* conftst*
9903
9904   # Do not use the global_symbol_pipe unless it works.
9905   if test yes = "$pipe_works"; then
9906     break
9907   else
9908     lt_cv_sys_global_symbol_pipe=
9909   fi
9910 done
9911
9912 fi
9913
9914 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9915   lt_cv_sys_global_symbol_to_cdecl=
9916 fi
9917 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9919 $as_echo "failed" >&6; }
9920 else
9921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9922 $as_echo "ok" >&6; }
9923 fi
9924
9925 # Response file support.
9926 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9927   nm_file_list_spec='@'
9928 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9929   nm_file_list_spec='@'
9930 fi
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9969 $as_echo_n "checking for sysroot... " >&6; }
9970
9971 # Check whether --with-sysroot was given.
9972 if test "${with_sysroot+set}" = set; then :
9973   withval=$with_sysroot;
9974 else
9975   with_sysroot=no
9976 fi
9977
9978
9979 lt_sysroot=
9980 case $with_sysroot in #(
9981  yes)
9982    if test yes = "$GCC"; then
9983      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9984    fi
9985    ;; #(
9986  /*)
9987    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9988    ;; #(
9989  no|'')
9990    ;; #(
9991  *)
9992    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9993 $as_echo "$with_sysroot" >&6; }
9994    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9995    ;;
9996 esac
9997
9998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9999 $as_echo "${lt_sysroot:-no}" >&6; }
10000
10001
10002
10003
10004
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10006 $as_echo_n "checking for a working dd... " >&6; }
10007 if ${ac_cv_path_lt_DD+:} false; then :
10008   $as_echo_n "(cached) " >&6
10009 else
10010   printf 0123456789abcdef0123456789abcdef >conftest.i
10011 cat conftest.i conftest.i >conftest2.i
10012 : ${lt_DD:=$DD}
10013 if test -z "$lt_DD"; then
10014   ac_path_lt_DD_found=false
10015   # Loop through the user's path and test for each of PROGNAME-LIST
10016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10017 for as_dir in $PATH
10018 do
10019   IFS=$as_save_IFS
10020   test -z "$as_dir" && as_dir=.
10021     for ac_prog in dd; do
10022     for ac_exec_ext in '' $ac_executable_extensions; do
10023       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
10024       as_fn_executable_p "$ac_path_lt_DD" || continue
10025 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10026   cmp -s conftest.i conftest.out \
10027   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10028 fi
10029       $ac_path_lt_DD_found && break 3
10030     done
10031   done
10032   done
10033 IFS=$as_save_IFS
10034   if test -z "$ac_cv_path_lt_DD"; then
10035     :
10036   fi
10037 else
10038   ac_cv_path_lt_DD=$lt_DD
10039 fi
10040
10041 rm -f conftest.i conftest2.i conftest.out
10042 fi
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10044 $as_echo "$ac_cv_path_lt_DD" >&6; }
10045
10046
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10048 $as_echo_n "checking how to truncate binary pipes... " >&6; }
10049 if ${lt_cv_truncate_bin+:} false; then :
10050   $as_echo_n "(cached) " >&6
10051 else
10052   printf 0123456789abcdef0123456789abcdef >conftest.i
10053 cat conftest.i conftest.i >conftest2.i
10054 lt_cv_truncate_bin=
10055 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10056   cmp -s conftest.i conftest.out \
10057   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10058 fi
10059 rm -f conftest.i conftest2.i conftest.out
10060 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10061 fi
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10063 $as_echo "$lt_cv_truncate_bin" >&6; }
10064
10065
10066
10067
10068
10069
10070
10071 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
10072 func_cc_basename ()
10073 {
10074     for cc_temp in $*""; do
10075       case $cc_temp in
10076         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10077         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10078         \-*) ;;
10079         *) break;;
10080       esac
10081     done
10082     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10083 }
10084
10085 # Check whether --enable-libtool-lock was given.
10086 if test "${enable_libtool_lock+set}" = set; then :
10087   enableval=$enable_libtool_lock;
10088 fi
10089
10090 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10091
10092 # Some flags need to be propagated to the compiler or linker for good
10093 # libtool support.
10094 case $host in
10095 ia64-*-hpux*)
10096   # Find out what ABI is being produced by ac_compile, and set mode
10097   # options accordingly.
10098   echo 'int i;' > conftest.$ac_ext
10099   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10100   (eval $ac_compile) 2>&5
10101   ac_status=$?
10102   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10103   test $ac_status = 0; }; then
10104     case `/usr/bin/file conftest.$ac_objext` in
10105       *ELF-32*)
10106         HPUX_IA64_MODE=32
10107         ;;
10108       *ELF-64*)
10109         HPUX_IA64_MODE=64
10110         ;;
10111     esac
10112   fi
10113   rm -rf conftest*
10114   ;;
10115 *-*-irix6*)
10116   # Find out what ABI is being produced by ac_compile, and set linker
10117   # options accordingly.
10118   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10119   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10120   (eval $ac_compile) 2>&5
10121   ac_status=$?
10122   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10123   test $ac_status = 0; }; then
10124     if test yes = "$lt_cv_prog_gnu_ld"; then
10125       case `/usr/bin/file conftest.$ac_objext` in
10126         *32-bit*)
10127           LD="${LD-ld} -melf32bsmip"
10128           ;;
10129         *N32*)
10130           LD="${LD-ld} -melf32bmipn32"
10131           ;;
10132         *64-bit*)
10133           LD="${LD-ld} -melf64bmip"
10134         ;;
10135       esac
10136     else
10137       case `/usr/bin/file conftest.$ac_objext` in
10138         *32-bit*)
10139           LD="${LD-ld} -32"
10140           ;;
10141         *N32*)
10142           LD="${LD-ld} -n32"
10143           ;;
10144         *64-bit*)
10145           LD="${LD-ld} -64"
10146           ;;
10147       esac
10148     fi
10149   fi
10150   rm -rf conftest*
10151   ;;
10152
10153 mips64*-*linux*)
10154   # Find out what ABI is being produced by ac_compile, and set linker
10155   # options accordingly.
10156   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10157   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10158   (eval $ac_compile) 2>&5
10159   ac_status=$?
10160   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10161   test $ac_status = 0; }; then
10162     emul=elf
10163     case `/usr/bin/file conftest.$ac_objext` in
10164       *32-bit*)
10165         emul="${emul}32"
10166         ;;
10167       *64-bit*)
10168         emul="${emul}64"
10169         ;;
10170     esac
10171     case `/usr/bin/file conftest.$ac_objext` in
10172       *MSB*)
10173         emul="${emul}btsmip"
10174         ;;
10175       *LSB*)
10176         emul="${emul}ltsmip"
10177         ;;
10178     esac
10179     case `/usr/bin/file conftest.$ac_objext` in
10180       *N32*)
10181         emul="${emul}n32"
10182         ;;
10183     esac
10184     LD="${LD-ld} -m $emul"
10185   fi
10186   rm -rf conftest*
10187   ;;
10188
10189 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10190 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10191   # Find out what ABI is being produced by ac_compile, and set linker
10192   # options accordingly.  Note that the listed cases only cover the
10193   # situations where additional linker options are needed (such as when
10194   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10195   # vice versa); the common cases where no linker options are needed do
10196   # not appear in the list.
10197   echo 'int i;' > conftest.$ac_ext
10198   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10199   (eval $ac_compile) 2>&5
10200   ac_status=$?
10201   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10202   test $ac_status = 0; }; then
10203     case `/usr/bin/file conftest.o` in
10204       *32-bit*)
10205         case $host in
10206           x86_64-*kfreebsd*-gnu)
10207             LD="${LD-ld} -m elf_i386_fbsd"
10208             ;;
10209           x86_64-*linux*)
10210             case `/usr/bin/file conftest.o` in
10211               *x86-64*)
10212                 LD="${LD-ld} -m elf32_x86_64"
10213                 ;;
10214               *)
10215                 LD="${LD-ld} -m elf_i386"
10216                 ;;
10217             esac
10218             ;;
10219           powerpc64le-*linux*)
10220             LD="${LD-ld} -m elf32lppclinux"
10221             ;;
10222           powerpc64-*linux*)
10223             LD="${LD-ld} -m elf32ppclinux"
10224             ;;
10225           s390x-*linux*)
10226             LD="${LD-ld} -m elf_s390"
10227             ;;
10228           sparc64-*linux*)
10229             LD="${LD-ld} -m elf32_sparc"
10230             ;;
10231         esac
10232         ;;
10233       *64-bit*)
10234         case $host in
10235           x86_64-*kfreebsd*-gnu)
10236             LD="${LD-ld} -m elf_x86_64_fbsd"
10237             ;;
10238           x86_64-*linux*)
10239             LD="${LD-ld} -m elf_x86_64"
10240             ;;
10241           powerpcle-*linux*)
10242             LD="${LD-ld} -m elf64lppc"
10243             ;;
10244           powerpc-*linux*)
10245             LD="${LD-ld} -m elf64ppc"
10246             ;;
10247           s390*-*linux*|s390*-*tpf*)
10248             LD="${LD-ld} -m elf64_s390"
10249             ;;
10250           sparc*-*linux*)
10251             LD="${LD-ld} -m elf64_sparc"
10252             ;;
10253         esac
10254         ;;
10255     esac
10256   fi
10257   rm -rf conftest*
10258   ;;
10259
10260 *-*-sco3.2v5*)
10261   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10262   SAVE_CFLAGS=$CFLAGS
10263   CFLAGS="$CFLAGS -belf"
10264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10265 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10266 if ${lt_cv_cc_needs_belf+:} false; then :
10267   $as_echo_n "(cached) " >&6
10268 else
10269   ac_ext=c
10270 ac_cpp='$CPP $CPPFLAGS'
10271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10274
10275      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10276 /* end confdefs.h.  */
10277
10278 int main (void)
10279 {
10280
10281  ;
10282  return 0;
10283 }
10284 _ACEOF
10285 if ac_fn_c_try_link "$LINENO"; then :
10286   lt_cv_cc_needs_belf=yes
10287 else
10288   lt_cv_cc_needs_belf=no
10289 fi
10290 rm -f core conftest.err conftest.$ac_objext \
10291     conftest$ac_exeext conftest.$ac_ext
10292      ac_ext=c
10293 ac_cpp='$CPP $CPPFLAGS'
10294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10297
10298 fi
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10300 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10301   if test yes != "$lt_cv_cc_needs_belf"; then
10302     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10303     CFLAGS=$SAVE_CFLAGS
10304   fi
10305   ;;
10306 *-*solaris*)
10307   # Find out what ABI is being produced by ac_compile, and set linker
10308   # options accordingly.
10309   echo 'int i;' > conftest.$ac_ext
10310   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10311   (eval $ac_compile) 2>&5
10312   ac_status=$?
10313   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10314   test $ac_status = 0; }; then
10315     case `/usr/bin/file conftest.o` in
10316     *64-bit*)
10317       case $lt_cv_prog_gnu_ld in
10318       yes*)
10319         case $host in
10320         i?86-*-solaris*|x86_64-*-solaris*)
10321           LD="${LD-ld} -m elf_x86_64"
10322           ;;
10323         sparc*-*-solaris*)
10324           LD="${LD-ld} -m elf64_sparc"
10325           ;;
10326         esac
10327         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
10328         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10329           LD=${LD-ld}_sol2
10330         fi
10331         ;;
10332       *)
10333         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10334           LD="${LD-ld} -64"
10335         fi
10336         ;;
10337       esac
10338       ;;
10339     esac
10340   fi
10341   rm -rf conftest*
10342   ;;
10343 esac
10344
10345 need_locks=$enable_libtool_lock
10346
10347 if test -n "$ac_tool_prefix"; then
10348   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10349 set dummy ${ac_tool_prefix}mt; ac_word=$2
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10351 $as_echo_n "checking for $ac_word... " >&6; }
10352 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10353   $as_echo_n "(cached) " >&6
10354 else
10355   if test -n "$MANIFEST_TOOL"; then
10356   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10357 else
10358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10359 for as_dir in $PATH
10360 do
10361   IFS=$as_save_IFS
10362   test -z "$as_dir" && as_dir=.
10363     for ac_exec_ext in '' $ac_executable_extensions; do
10364   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10365     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10367     break 2
10368   fi
10369 done
10370   done
10371 IFS=$as_save_IFS
10372
10373 fi
10374 fi
10375 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10376 if test -n "$MANIFEST_TOOL"; then
10377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10378 $as_echo "$MANIFEST_TOOL" >&6; }
10379 else
10380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10381 $as_echo "no" >&6; }
10382 fi
10383
10384
10385 fi
10386 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10387   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10388   # Extract the first word of "mt", so it can be a program name with args.
10389 set dummy mt; ac_word=$2
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10391 $as_echo_n "checking for $ac_word... " >&6; }
10392 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10393   $as_echo_n "(cached) " >&6
10394 else
10395   if test -n "$ac_ct_MANIFEST_TOOL"; then
10396   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10397 else
10398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10399 for as_dir in $PATH
10400 do
10401   IFS=$as_save_IFS
10402   test -z "$as_dir" && as_dir=.
10403     for ac_exec_ext in '' $ac_executable_extensions; do
10404   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10405     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10407     break 2
10408   fi
10409 done
10410   done
10411 IFS=$as_save_IFS
10412
10413 fi
10414 fi
10415 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10416 if test -n "$ac_ct_MANIFEST_TOOL"; then
10417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10418 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10419 else
10420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10421 $as_echo "no" >&6; }
10422 fi
10423
10424   if test "x$ac_ct_MANIFEST_TOOL" = x; then
10425     MANIFEST_TOOL=":"
10426   else
10427     case $cross_compiling:$ac_tool_warned in
10428 yes:)
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10431 ac_tool_warned=yes ;;
10432 esac
10433     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10434   fi
10435 else
10436   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10437 fi
10438
10439 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10441 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10442 if ${lt_cv_path_mainfest_tool+:} false; then :
10443   $as_echo_n "(cached) " >&6
10444 else
10445   lt_cv_path_mainfest_tool=no
10446   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10447   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10448   cat conftest.err >&5
10449   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10450     lt_cv_path_mainfest_tool=yes
10451   fi
10452   rm -f conftest*
10453 fi
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10455 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10456 if test yes != "$lt_cv_path_mainfest_tool"; then
10457   MANIFEST_TOOL=:
10458 fi
10459
10460
10461
10462
10463
10464
10465   case $host_os in
10466     rhapsody* | darwin*)
10467     if test -n "$ac_tool_prefix"; then
10468   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10469 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10471 $as_echo_n "checking for $ac_word... " >&6; }
10472 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10473   $as_echo_n "(cached) " >&6
10474 else
10475   if test -n "$DSYMUTIL"; then
10476   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10477 else
10478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10479 for as_dir in $PATH
10480 do
10481   IFS=$as_save_IFS
10482   test -z "$as_dir" && as_dir=.
10483     for ac_exec_ext in '' $ac_executable_extensions; do
10484   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10485     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10487     break 2
10488   fi
10489 done
10490   done
10491 IFS=$as_save_IFS
10492
10493 fi
10494 fi
10495 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10496 if test -n "$DSYMUTIL"; then
10497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10498 $as_echo "$DSYMUTIL" >&6; }
10499 else
10500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10501 $as_echo "no" >&6; }
10502 fi
10503
10504
10505 fi
10506 if test -z "$ac_cv_prog_DSYMUTIL"; then
10507   ac_ct_DSYMUTIL=$DSYMUTIL
10508   # Extract the first word of "dsymutil", so it can be a program name with args.
10509 set dummy dsymutil; ac_word=$2
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10511 $as_echo_n "checking for $ac_word... " >&6; }
10512 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10513   $as_echo_n "(cached) " >&6
10514 else
10515   if test -n "$ac_ct_DSYMUTIL"; then
10516   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10517 else
10518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10519 for as_dir in $PATH
10520 do
10521   IFS=$as_save_IFS
10522   test -z "$as_dir" && as_dir=.
10523     for ac_exec_ext in '' $ac_executable_extensions; do
10524   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10525     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10527     break 2
10528   fi
10529 done
10530   done
10531 IFS=$as_save_IFS
10532
10533 fi
10534 fi
10535 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10536 if test -n "$ac_ct_DSYMUTIL"; then
10537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10538 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10539 else
10540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10541 $as_echo "no" >&6; }
10542 fi
10543
10544   if test "x$ac_ct_DSYMUTIL" = x; then
10545     DSYMUTIL=":"
10546   else
10547     case $cross_compiling:$ac_tool_warned in
10548 yes:)
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10551 ac_tool_warned=yes ;;
10552 esac
10553     DSYMUTIL=$ac_ct_DSYMUTIL
10554   fi
10555 else
10556   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10557 fi
10558
10559     if test -n "$ac_tool_prefix"; then
10560   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10561 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10563 $as_echo_n "checking for $ac_word... " >&6; }
10564 if ${ac_cv_prog_NMEDIT+:} false; then :
10565   $as_echo_n "(cached) " >&6
10566 else
10567   if test -n "$NMEDIT"; then
10568   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10569 else
10570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10571 for as_dir in $PATH
10572 do
10573   IFS=$as_save_IFS
10574   test -z "$as_dir" && as_dir=.
10575     for ac_exec_ext in '' $ac_executable_extensions; do
10576   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10577     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10579     break 2
10580   fi
10581 done
10582   done
10583 IFS=$as_save_IFS
10584
10585 fi
10586 fi
10587 NMEDIT=$ac_cv_prog_NMEDIT
10588 if test -n "$NMEDIT"; then
10589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10590 $as_echo "$NMEDIT" >&6; }
10591 else
10592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10593 $as_echo "no" >&6; }
10594 fi
10595
10596
10597 fi
10598 if test -z "$ac_cv_prog_NMEDIT"; then
10599   ac_ct_NMEDIT=$NMEDIT
10600   # Extract the first word of "nmedit", so it can be a program name with args.
10601 set dummy nmedit; ac_word=$2
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10603 $as_echo_n "checking for $ac_word... " >&6; }
10604 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10605   $as_echo_n "(cached) " >&6
10606 else
10607   if test -n "$ac_ct_NMEDIT"; then
10608   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10609 else
10610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10611 for as_dir in $PATH
10612 do
10613   IFS=$as_save_IFS
10614   test -z "$as_dir" && as_dir=.
10615     for ac_exec_ext in '' $ac_executable_extensions; do
10616   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10617     ac_cv_prog_ac_ct_NMEDIT="nmedit"
10618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10619     break 2
10620   fi
10621 done
10622   done
10623 IFS=$as_save_IFS
10624
10625 fi
10626 fi
10627 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10628 if test -n "$ac_ct_NMEDIT"; then
10629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10630 $as_echo "$ac_ct_NMEDIT" >&6; }
10631 else
10632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10633 $as_echo "no" >&6; }
10634 fi
10635
10636   if test "x$ac_ct_NMEDIT" = x; then
10637     NMEDIT=":"
10638   else
10639     case $cross_compiling:$ac_tool_warned in
10640 yes:)
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10643 ac_tool_warned=yes ;;
10644 esac
10645     NMEDIT=$ac_ct_NMEDIT
10646   fi
10647 else
10648   NMEDIT="$ac_cv_prog_NMEDIT"
10649 fi
10650
10651     if test -n "$ac_tool_prefix"; then
10652   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10653 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10655 $as_echo_n "checking for $ac_word... " >&6; }
10656 if ${ac_cv_prog_LIPO+:} false; then :
10657   $as_echo_n "(cached) " >&6
10658 else
10659   if test -n "$LIPO"; then
10660   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10661 else
10662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10663 for as_dir in $PATH
10664 do
10665   IFS=$as_save_IFS
10666   test -z "$as_dir" && as_dir=.
10667     for ac_exec_ext in '' $ac_executable_extensions; do
10668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10669     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10671     break 2
10672   fi
10673 done
10674   done
10675 IFS=$as_save_IFS
10676
10677 fi
10678 fi
10679 LIPO=$ac_cv_prog_LIPO
10680 if test -n "$LIPO"; then
10681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10682 $as_echo "$LIPO" >&6; }
10683 else
10684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685 $as_echo "no" >&6; }
10686 fi
10687
10688
10689 fi
10690 if test -z "$ac_cv_prog_LIPO"; then
10691   ac_ct_LIPO=$LIPO
10692   # Extract the first word of "lipo", so it can be a program name with args.
10693 set dummy lipo; ac_word=$2
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10695 $as_echo_n "checking for $ac_word... " >&6; }
10696 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10697   $as_echo_n "(cached) " >&6
10698 else
10699   if test -n "$ac_ct_LIPO"; then
10700   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10701 else
10702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10703 for as_dir in $PATH
10704 do
10705   IFS=$as_save_IFS
10706   test -z "$as_dir" && as_dir=.
10707     for ac_exec_ext in '' $ac_executable_extensions; do
10708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10709     ac_cv_prog_ac_ct_LIPO="lipo"
10710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10711     break 2
10712   fi
10713 done
10714   done
10715 IFS=$as_save_IFS
10716
10717 fi
10718 fi
10719 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10720 if test -n "$ac_ct_LIPO"; then
10721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10722 $as_echo "$ac_ct_LIPO" >&6; }
10723 else
10724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10725 $as_echo "no" >&6; }
10726 fi
10727
10728   if test "x$ac_ct_LIPO" = x; then
10729     LIPO=":"
10730   else
10731     case $cross_compiling:$ac_tool_warned in
10732 yes:)
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10735 ac_tool_warned=yes ;;
10736 esac
10737     LIPO=$ac_ct_LIPO
10738   fi
10739 else
10740   LIPO="$ac_cv_prog_LIPO"
10741 fi
10742
10743     if test -n "$ac_tool_prefix"; then
10744   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10745 set dummy ${ac_tool_prefix}otool; ac_word=$2
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10747 $as_echo_n "checking for $ac_word... " >&6; }
10748 if ${ac_cv_prog_OTOOL+:} false; then :
10749   $as_echo_n "(cached) " >&6
10750 else
10751   if test -n "$OTOOL"; then
10752   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10753 else
10754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755 for as_dir in $PATH
10756 do
10757   IFS=$as_save_IFS
10758   test -z "$as_dir" && as_dir=.
10759     for ac_exec_ext in '' $ac_executable_extensions; do
10760   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10761     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10763     break 2
10764   fi
10765 done
10766   done
10767 IFS=$as_save_IFS
10768
10769 fi
10770 fi
10771 OTOOL=$ac_cv_prog_OTOOL
10772 if test -n "$OTOOL"; then
10773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10774 $as_echo "$OTOOL" >&6; }
10775 else
10776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777 $as_echo "no" >&6; }
10778 fi
10779
10780
10781 fi
10782 if test -z "$ac_cv_prog_OTOOL"; then
10783   ac_ct_OTOOL=$OTOOL
10784   # Extract the first word of "otool", so it can be a program name with args.
10785 set dummy otool; ac_word=$2
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10787 $as_echo_n "checking for $ac_word... " >&6; }
10788 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10789   $as_echo_n "(cached) " >&6
10790 else
10791   if test -n "$ac_ct_OTOOL"; then
10792   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10793 else
10794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10795 for as_dir in $PATH
10796 do
10797   IFS=$as_save_IFS
10798   test -z "$as_dir" && as_dir=.
10799     for ac_exec_ext in '' $ac_executable_extensions; do
10800   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10801     ac_cv_prog_ac_ct_OTOOL="otool"
10802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10803     break 2
10804   fi
10805 done
10806   done
10807 IFS=$as_save_IFS
10808
10809 fi
10810 fi
10811 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10812 if test -n "$ac_ct_OTOOL"; then
10813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10814 $as_echo "$ac_ct_OTOOL" >&6; }
10815 else
10816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10817 $as_echo "no" >&6; }
10818 fi
10819
10820   if test "x$ac_ct_OTOOL" = x; then
10821     OTOOL=":"
10822   else
10823     case $cross_compiling:$ac_tool_warned in
10824 yes:)
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10827 ac_tool_warned=yes ;;
10828 esac
10829     OTOOL=$ac_ct_OTOOL
10830   fi
10831 else
10832   OTOOL="$ac_cv_prog_OTOOL"
10833 fi
10834
10835     if test -n "$ac_tool_prefix"; then
10836   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10837 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10839 $as_echo_n "checking for $ac_word... " >&6; }
10840 if ${ac_cv_prog_OTOOL64+:} false; then :
10841   $as_echo_n "(cached) " >&6
10842 else
10843   if test -n "$OTOOL64"; then
10844   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10845 else
10846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10847 for as_dir in $PATH
10848 do
10849   IFS=$as_save_IFS
10850   test -z "$as_dir" && as_dir=.
10851     for ac_exec_ext in '' $ac_executable_extensions; do
10852   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10853     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10855     break 2
10856   fi
10857 done
10858   done
10859 IFS=$as_save_IFS
10860
10861 fi
10862 fi
10863 OTOOL64=$ac_cv_prog_OTOOL64
10864 if test -n "$OTOOL64"; then
10865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10866 $as_echo "$OTOOL64" >&6; }
10867 else
10868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10869 $as_echo "no" >&6; }
10870 fi
10871
10872
10873 fi
10874 if test -z "$ac_cv_prog_OTOOL64"; then
10875   ac_ct_OTOOL64=$OTOOL64
10876   # Extract the first word of "otool64", so it can be a program name with args.
10877 set dummy otool64; ac_word=$2
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10879 $as_echo_n "checking for $ac_word... " >&6; }
10880 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10881   $as_echo_n "(cached) " >&6
10882 else
10883   if test -n "$ac_ct_OTOOL64"; then
10884   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10885 else
10886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10887 for as_dir in $PATH
10888 do
10889   IFS=$as_save_IFS
10890   test -z "$as_dir" && as_dir=.
10891     for ac_exec_ext in '' $ac_executable_extensions; do
10892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10893     ac_cv_prog_ac_ct_OTOOL64="otool64"
10894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10895     break 2
10896   fi
10897 done
10898   done
10899 IFS=$as_save_IFS
10900
10901 fi
10902 fi
10903 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10904 if test -n "$ac_ct_OTOOL64"; then
10905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10906 $as_echo "$ac_ct_OTOOL64" >&6; }
10907 else
10908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10909 $as_echo "no" >&6; }
10910 fi
10911
10912   if test "x$ac_ct_OTOOL64" = x; then
10913     OTOOL64=":"
10914   else
10915     case $cross_compiling:$ac_tool_warned in
10916 yes:)
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10919 ac_tool_warned=yes ;;
10920 esac
10921     OTOOL64=$ac_ct_OTOOL64
10922   fi
10923 else
10924   OTOOL64="$ac_cv_prog_OTOOL64"
10925 fi
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10954 $as_echo_n "checking for -single_module linker flag... " >&6; }
10955 if ${lt_cv_apple_cc_single_mod+:} false; then :
10956   $as_echo_n "(cached) " >&6
10957 else
10958   lt_cv_apple_cc_single_mod=no
10959       if test -z "$LT_MULTI_MODULE"; then
10960         # By default we will add the -single_module flag. You can override
10961         # by either setting the environment variable LT_MULTI_MODULE
10962         # non-empty at configure time, or by adding -multi_module to the
10963         # link flags.
10964         rm -rf libconftest.dylib*
10965         echo "int foo(void){return 1;}" > conftest.c
10966         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10967 -dynamiclib -Wl,-single_module conftest.c" >&5
10968         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10969           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10970         _lt_result=$?
10971         # If there is a non-empty error log, and "single_module"
10972         # appears in it, assume the flag caused a linker warning
10973         if test -s conftest.err && $GREP single_module conftest.err; then
10974           cat conftest.err >&5
10975         # Otherwise, if the output was created with a 0 exit code from
10976         # the compiler, it worked.
10977         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10978           lt_cv_apple_cc_single_mod=yes
10979         else
10980           cat conftest.err >&5
10981         fi
10982         rm -rf libconftest.dylib*
10983         rm -f conftest.*
10984       fi
10985 fi
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10987 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10988
10989     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10990 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10991 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10992   $as_echo_n "(cached) " >&6
10993 else
10994   lt_cv_ld_exported_symbols_list=no
10995       save_LDFLAGS=$LDFLAGS
10996       echo "_main" > conftest.sym
10997       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10998       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h.  */
11000
11001 int main (void)
11002 {
11003
11004  ;
11005  return 0;
11006 }
11007 _ACEOF
11008 if ac_fn_c_try_link "$LINENO"; then :
11009   lt_cv_ld_exported_symbols_list=yes
11010 else
11011   lt_cv_ld_exported_symbols_list=no
11012 fi
11013 rm -f core conftest.err conftest.$ac_objext \
11014     conftest$ac_exeext conftest.$ac_ext
11015         LDFLAGS=$save_LDFLAGS
11016
11017 fi
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11019 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11020
11021     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11022 $as_echo_n "checking for -force_load linker flag... " >&6; }
11023 if ${lt_cv_ld_force_load+:} false; then :
11024   $as_echo_n "(cached) " >&6
11025 else
11026   lt_cv_ld_force_load=no
11027       cat > conftest.c << _LT_EOF
11028 int forced_loaded() { return 2;}
11029 _LT_EOF
11030       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11031       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11032       echo "$AR cru libconftest.a conftest.o" >&5
11033       $AR cru libconftest.a conftest.o 2>&5
11034       echo "$RANLIB libconftest.a" >&5
11035       $RANLIB libconftest.a 2>&5
11036       cat > conftest.c << _LT_EOF
11037 int main() { return 0;}
11038 _LT_EOF
11039       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11040       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11041       _lt_result=$?
11042       if test -s conftest.err && $GREP force_load conftest.err; then
11043         cat conftest.err >&5
11044       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11045         lt_cv_ld_force_load=yes
11046       else
11047         cat conftest.err >&5
11048       fi
11049         rm -f conftest.err libconftest.a conftest conftest.c
11050         rm -rf conftest.dSYM
11051
11052 fi
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11054 $as_echo "$lt_cv_ld_force_load" >&6; }
11055     case $host_os in
11056     rhapsody* | darwin1.[012])
11057       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11058     darwin1.*)
11059       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11060     darwin*) # darwin 5.x on
11061       # if running on 10.5 or later, the deployment target defaults
11062       # to the OS version, if on x86, and 10.4, the deployment
11063       # target defaults to 10.4. Don't you love it?
11064       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11065         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11066           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11067         10.[012][,.]*)
11068           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11069         10.*)
11070           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11071       esac
11072     ;;
11073   esac
11074     if test yes = "$lt_cv_apple_cc_single_mod"; then
11075       _lt_dar_single_mod='$single_module'
11076     fi
11077     if test yes = "$lt_cv_ld_exported_symbols_list"; then
11078       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11079     else
11080       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11081     fi
11082     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11083       _lt_dsymutil='~$DSYMUTIL $lib || :'
11084     else
11085       _lt_dsymutil=
11086     fi
11087     ;;
11088   esac
11089
11090 # func_munge_path_list VARIABLE PATH
11091 # -----------------------------------
11092 # VARIABLE is name of variable containing _space_ separated list of
11093 # directories to be munged by the contents of PATH, which is string
11094 # having a format:
11095 # "DIR[:DIR]:"
11096 #       string "DIR[ DIR]" will be prepended to VARIABLE
11097 # ":DIR[:DIR]"
11098 #       string "DIR[ DIR]" will be appended to VARIABLE
11099 # "DIRP[:DIRP]::[DIRA:]DIRA"
11100 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11101 #       "DIRA[ DIRA]" will be appended to VARIABLE
11102 # "DIR[:DIR]"
11103 #       VARIABLE will be replaced by "DIR[ DIR]"
11104 func_munge_path_list ()
11105 {
11106     case x$2 in
11107     x)
11108         ;;
11109     *:)
11110         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11111         ;;
11112     x:*)
11113         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11114         ;;
11115     *::*)
11116         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11117         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11118         ;;
11119     *)
11120         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11121         ;;
11122     esac
11123 }
11124
11125 for ac_header in dlfcn.h
11126 do :
11127   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11128 "
11129 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11130   cat >>confdefs.h <<_ACEOF
11131 #define HAVE_DLFCN_H 1
11132 _ACEOF
11133
11134 fi
11135
11136 done
11137
11138 # ------------------------------------ #
11139 #  Determine libtool default behavior  #
11140 # ------------------------------------ #
11141
11142 #
11143 # Default behavior is to enable shared and static libraries on systems
11144 # where libtool knows how to build both library versions, and does not
11145 # require separate configuration and build runs for each flavor.
11146 #
11147
11148 xc_lt_want_enable_shared='yes'
11149 xc_lt_want_enable_static='yes'
11150
11151 #
11152 # User may have disabled shared or static libraries.
11153 #
11154 case "x$enable_shared" in # (
11155   xno)
11156     xc_lt_want_enable_shared='no'
11157     ;;
11158 esac
11159 case "x$enable_static" in # (
11160   xno)
11161     xc_lt_want_enable_static='no'
11162     ;;
11163 esac
11164 if test "x$xc_lt_want_enable_shared" = 'xno' &&
11165   test "x$xc_lt_want_enable_static" = 'xno'; then
11166   as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
11167 fi
11168
11169 #
11170 # Default behavior on systems that require independent configuration
11171 # and build runs for shared and static is to enable shared libraries
11172 # and disable static ones. On these systems option '--disable-shared'
11173 # must be used in order to build a proper static library.
11174 #
11175
11176 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
11177   test "x$xc_lt_want_enable_static" = 'xyes'; then
11178   case $host_os in # (
11179     pw32* | cegcc* | os2* | aix*)
11180       xc_lt_want_enable_static='no'
11181       ;;
11182   esac
11183 fi
11184
11185 #
11186 # Make libtool aware of current shared and static library preferences
11187 # taking in account that, depending on host characteristics, libtool
11188 # may modify these option preferences later in this configure script.
11189 #
11190
11191 enable_shared=$xc_lt_want_enable_shared
11192 enable_static=$xc_lt_want_enable_static
11193
11194 #
11195 # Default behavior is to build PIC objects for shared libraries and
11196 # non-PIC objects for static libraries.
11197 #
11198
11199 xc_lt_want_with_pic='default'
11200
11201 #
11202 # User may have specified PIC preference.
11203 #
11204
11205 case "x$with_pic" in # ((
11206   xno)
11207     xc_lt_want_with_pic='no'
11208     ;;
11209   xyes)
11210     xc_lt_want_with_pic='yes'
11211     ;;
11212 esac
11213
11214 #
11215 # Default behavior on some systems where building a shared library out
11216 # of non-PIC compiled objects will fail with following linker error
11217 # "relocation R_X86_64_32 can not be used when making a shared object"
11218 # is to build PIC objects even for static libraries. This behavior may
11219 # be overriden using 'configure --disable-shared --without-pic'.
11220 #
11221
11222 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
11223   case $host_cpu in # (
11224     x86_64 | amd64 | ia64)
11225       case $host_os in # (
11226         linux* | freebsd*)
11227           xc_lt_want_with_pic='yes'
11228           ;;
11229       esac
11230       ;;
11231   esac
11232 fi
11233
11234 #
11235 # Make libtool aware of current PIC preference taking in account that,
11236 # depending on host characteristics, libtool may modify PIC default
11237 # behavior to fit host system idiosyncrasies later in this script.
11238 #
11239
11240 with_pic=$xc_lt_want_with_pic
11241
11242 ## ----------------------- ##
11243 ##  Start of libtool code  ##
11244 ## ----------------------- ##
11245
11246
11247
11248
11249 # Set options
11250 enable_win32_dll=yes
11251
11252 case $host in
11253 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11254   if test -n "$ac_tool_prefix"; then
11255   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11256 set dummy ${ac_tool_prefix}as; ac_word=$2
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11258 $as_echo_n "checking for $ac_word... " >&6; }
11259 if ${ac_cv_prog_AS+:} false; then :
11260   $as_echo_n "(cached) " >&6
11261 else
11262   if test -n "$AS"; then
11263   ac_cv_prog_AS="$AS" # Let the user override the test.
11264 else
11265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11266 for as_dir in $PATH
11267 do
11268   IFS=$as_save_IFS
11269   test -z "$as_dir" && as_dir=.
11270     for ac_exec_ext in '' $ac_executable_extensions; do
11271   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11272     ac_cv_prog_AS="${ac_tool_prefix}as"
11273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11274     break 2
11275   fi
11276 done
11277   done
11278 IFS=$as_save_IFS
11279
11280 fi
11281 fi
11282 AS=$ac_cv_prog_AS
11283 if test -n "$AS"; then
11284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11285 $as_echo "$AS" >&6; }
11286 else
11287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11288 $as_echo "no" >&6; }
11289 fi
11290
11291
11292 fi
11293 if test -z "$ac_cv_prog_AS"; then
11294   ac_ct_AS=$AS
11295   # Extract the first word of "as", so it can be a program name with args.
11296 set dummy as; ac_word=$2
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11298 $as_echo_n "checking for $ac_word... " >&6; }
11299 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11300   $as_echo_n "(cached) " >&6
11301 else
11302   if test -n "$ac_ct_AS"; then
11303   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11304 else
11305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11306 for as_dir in $PATH
11307 do
11308   IFS=$as_save_IFS
11309   test -z "$as_dir" && as_dir=.
11310     for ac_exec_ext in '' $ac_executable_extensions; do
11311   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11312     ac_cv_prog_ac_ct_AS="as"
11313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11314     break 2
11315   fi
11316 done
11317   done
11318 IFS=$as_save_IFS
11319
11320 fi
11321 fi
11322 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11323 if test -n "$ac_ct_AS"; then
11324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11325 $as_echo "$ac_ct_AS" >&6; }
11326 else
11327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328 $as_echo "no" >&6; }
11329 fi
11330
11331   if test "x$ac_ct_AS" = x; then
11332     AS="false"
11333   else
11334     case $cross_compiling:$ac_tool_warned in
11335 yes:)
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11338 ac_tool_warned=yes ;;
11339 esac
11340     AS=$ac_ct_AS
11341   fi
11342 else
11343   AS="$ac_cv_prog_AS"
11344 fi
11345
11346   if test -n "$ac_tool_prefix"; then
11347   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11348 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11350 $as_echo_n "checking for $ac_word... " >&6; }
11351 if ${ac_cv_prog_DLLTOOL+:} false; then :
11352   $as_echo_n "(cached) " >&6
11353 else
11354   if test -n "$DLLTOOL"; then
11355   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11356 else
11357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11358 for as_dir in $PATH
11359 do
11360   IFS=$as_save_IFS
11361   test -z "$as_dir" && as_dir=.
11362     for ac_exec_ext in '' $ac_executable_extensions; do
11363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11364     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11366     break 2
11367   fi
11368 done
11369   done
11370 IFS=$as_save_IFS
11371
11372 fi
11373 fi
11374 DLLTOOL=$ac_cv_prog_DLLTOOL
11375 if test -n "$DLLTOOL"; then
11376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11377 $as_echo "$DLLTOOL" >&6; }
11378 else
11379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11380 $as_echo "no" >&6; }
11381 fi
11382
11383
11384 fi
11385 if test -z "$ac_cv_prog_DLLTOOL"; then
11386   ac_ct_DLLTOOL=$DLLTOOL
11387   # Extract the first word of "dlltool", so it can be a program name with args.
11388 set dummy dlltool; ac_word=$2
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11390 $as_echo_n "checking for $ac_word... " >&6; }
11391 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11392   $as_echo_n "(cached) " >&6
11393 else
11394   if test -n "$ac_ct_DLLTOOL"; then
11395   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11396 else
11397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11398 for as_dir in $PATH
11399 do
11400   IFS=$as_save_IFS
11401   test -z "$as_dir" && as_dir=.
11402     for ac_exec_ext in '' $ac_executable_extensions; do
11403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11404     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11406     break 2
11407   fi
11408 done
11409   done
11410 IFS=$as_save_IFS
11411
11412 fi
11413 fi
11414 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11415 if test -n "$ac_ct_DLLTOOL"; then
11416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11417 $as_echo "$ac_ct_DLLTOOL" >&6; }
11418 else
11419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11420 $as_echo "no" >&6; }
11421 fi
11422
11423   if test "x$ac_ct_DLLTOOL" = x; then
11424     DLLTOOL="false"
11425   else
11426     case $cross_compiling:$ac_tool_warned in
11427 yes:)
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11430 ac_tool_warned=yes ;;
11431 esac
11432     DLLTOOL=$ac_ct_DLLTOOL
11433   fi
11434 else
11435   DLLTOOL="$ac_cv_prog_DLLTOOL"
11436 fi
11437
11438   if test -n "$ac_tool_prefix"; then
11439   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11440 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11442 $as_echo_n "checking for $ac_word... " >&6; }
11443 if ${ac_cv_prog_OBJDUMP+:} false; then :
11444   $as_echo_n "(cached) " >&6
11445 else
11446   if test -n "$OBJDUMP"; then
11447   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11448 else
11449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11450 for as_dir in $PATH
11451 do
11452   IFS=$as_save_IFS
11453   test -z "$as_dir" && as_dir=.
11454     for ac_exec_ext in '' $ac_executable_extensions; do
11455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11456     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11458     break 2
11459   fi
11460 done
11461   done
11462 IFS=$as_save_IFS
11463
11464 fi
11465 fi
11466 OBJDUMP=$ac_cv_prog_OBJDUMP
11467 if test -n "$OBJDUMP"; then
11468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11469 $as_echo "$OBJDUMP" >&6; }
11470 else
11471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472 $as_echo "no" >&6; }
11473 fi
11474
11475
11476 fi
11477 if test -z "$ac_cv_prog_OBJDUMP"; then
11478   ac_ct_OBJDUMP=$OBJDUMP
11479   # Extract the first word of "objdump", so it can be a program name with args.
11480 set dummy objdump; ac_word=$2
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11482 $as_echo_n "checking for $ac_word... " >&6; }
11483 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11484   $as_echo_n "(cached) " >&6
11485 else
11486   if test -n "$ac_ct_OBJDUMP"; then
11487   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11488 else
11489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490 for as_dir in $PATH
11491 do
11492   IFS=$as_save_IFS
11493   test -z "$as_dir" && as_dir=.
11494     for ac_exec_ext in '' $ac_executable_extensions; do
11495   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11496     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11498     break 2
11499   fi
11500 done
11501   done
11502 IFS=$as_save_IFS
11503
11504 fi
11505 fi
11506 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11507 if test -n "$ac_ct_OBJDUMP"; then
11508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11509 $as_echo "$ac_ct_OBJDUMP" >&6; }
11510 else
11511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512 $as_echo "no" >&6; }
11513 fi
11514
11515   if test "x$ac_ct_OBJDUMP" = x; then
11516     OBJDUMP="false"
11517   else
11518     case $cross_compiling:$ac_tool_warned in
11519 yes:)
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11522 ac_tool_warned=yes ;;
11523 esac
11524     OBJDUMP=$ac_ct_OBJDUMP
11525   fi
11526 else
11527   OBJDUMP="$ac_cv_prog_OBJDUMP"
11528 fi
11529
11530   ;;
11531 esac
11532
11533 test -z "$AS" && AS=as
11534
11535
11536
11537
11538
11539 test -z "$DLLTOOL" && DLLTOOL=dlltool
11540
11541
11542
11543
11544
11545 test -z "$OBJDUMP" && OBJDUMP=objdump
11546
11547
11548
11549
11550
11551
11552
11553         enable_dlopen=no
11554
11555
11556
11557             # Check whether --enable-shared was given.
11558 if test "${enable_shared+set}" = set; then :
11559   enableval=$enable_shared; p=${PACKAGE-default}
11560     case $enableval in
11561     yes) enable_shared=yes ;;
11562     no) enable_shared=no ;;
11563     *)
11564       enable_shared=no
11565       # Look at the argument we got.  We use all the common list separators.
11566       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11567       for pkg in $enableval; do
11568         IFS=$lt_save_ifs
11569         if test "X$pkg" = "X$p"; then
11570           enable_shared=yes
11571         fi
11572       done
11573       IFS=$lt_save_ifs
11574       ;;
11575     esac
11576 else
11577   enable_shared=yes
11578 fi
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588   # Check whether --enable-static was given.
11589 if test "${enable_static+set}" = set; then :
11590   enableval=$enable_static; p=${PACKAGE-default}
11591     case $enableval in
11592     yes) enable_static=yes ;;
11593     no) enable_static=no ;;
11594     *)
11595      enable_static=no
11596       # Look at the argument we got.  We use all the common list separators.
11597       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11598       for pkg in $enableval; do
11599         IFS=$lt_save_ifs
11600         if test "X$pkg" = "X$p"; then
11601           enable_static=yes
11602         fi
11603       done
11604       IFS=$lt_save_ifs
11605       ;;
11606     esac
11607 else
11608   enable_static=yes
11609 fi
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620 # Check whether --with-pic was given.
11621 if test "${with_pic+set}" = set; then :
11622   withval=$with_pic; lt_p=${PACKAGE-default}
11623     case $withval in
11624     yes|no) pic_mode=$withval ;;
11625     *)
11626       pic_mode=default
11627       # Look at the argument we got.  We use all the common list separators.
11628       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11629       for lt_pkg in $withval; do
11630         IFS=$lt_save_ifs
11631         if test "X$lt_pkg" = "X$lt_p"; then
11632           pic_mode=yes
11633         fi
11634       done
11635       IFS=$lt_save_ifs
11636       ;;
11637     esac
11638 else
11639   pic_mode=default
11640 fi
11641
11642
11643
11644
11645
11646
11647
11648
11649   # Check whether --enable-fast-install was given.
11650 if test "${enable_fast_install+set}" = set; then :
11651   enableval=$enable_fast_install; p=${PACKAGE-default}
11652     case $enableval in
11653     yes) enable_fast_install=yes ;;
11654     no) enable_fast_install=no ;;
11655     *)
11656       enable_fast_install=no
11657       # Look at the argument we got.  We use all the common list separators.
11658       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11659       for pkg in $enableval; do
11660         IFS=$lt_save_ifs
11661         if test "X$pkg" = "X$p"; then
11662           enable_fast_install=yes
11663         fi
11664       done
11665       IFS=$lt_save_ifs
11666       ;;
11667     esac
11668 else
11669   enable_fast_install=yes
11670 fi
11671
11672
11673
11674
11675
11676
11677
11678
11679   shared_archive_member_spec=
11680 case $host,$enable_shared in
11681 power*-*-aix[5-9]*,yes)
11682   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11683 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11684
11685 # Check whether --with-aix-soname was given.
11686 if test "${with_aix_soname+set}" = set; then :
11687   withval=$with_aix_soname; case $withval in
11688     aix|svr4|both)
11689       ;;
11690     *)
11691       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11692       ;;
11693     esac
11694     lt_cv_with_aix_soname=$with_aix_soname
11695 else
11696   if ${lt_cv_with_aix_soname+:} false; then :
11697   $as_echo_n "(cached) " >&6
11698 else
11699   lt_cv_with_aix_soname=aix
11700 fi
11701
11702     with_aix_soname=$lt_cv_with_aix_soname
11703 fi
11704
11705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11706 $as_echo "$with_aix_soname" >&6; }
11707   if test aix != "$with_aix_soname"; then
11708     # For the AIX way of multilib, we name the shared archive member
11709     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11710     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11711     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11712     # the AIX toolchain works better with OBJECT_MODE set (default 32).
11713     if test 64 = "${OBJECT_MODE-32}"; then
11714       shared_archive_member_spec=shr_64
11715     else
11716       shared_archive_member_spec=shr
11717     fi
11718   fi
11719   ;;
11720 *)
11721   with_aix_soname=aix
11722   ;;
11723 esac
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734 # This can be used to rebuild libtool when needed
11735 LIBTOOL_DEPS=$ltmain
11736
11737 # Always use our own libtool.
11738 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769 test -z "$LN_S" && LN_S="ln -s"
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784 if test -n "${ZSH_VERSION+set}"; then
11785    setopt NO_GLOB_SUBST
11786 fi
11787
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11789 $as_echo_n "checking for objdir... " >&6; }
11790 if ${lt_cv_objdir+:} false; then :
11791   $as_echo_n "(cached) " >&6
11792 else
11793   rm -f .libs 2>/dev/null
11794 mkdir .libs 2>/dev/null
11795 if test -d .libs; then
11796   lt_cv_objdir=.libs
11797 else
11798   # MS-DOS does not allow filenames that begin with a dot.
11799   lt_cv_objdir=_libs
11800 fi
11801 rmdir .libs 2>/dev/null
11802 fi
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11804 $as_echo "$lt_cv_objdir" >&6; }
11805 objdir=$lt_cv_objdir
11806
11807
11808
11809
11810
11811 cat >>confdefs.h <<_ACEOF
11812 #define LT_OBJDIR "$lt_cv_objdir/"
11813 _ACEOF
11814
11815
11816
11817
11818 case $host_os in
11819 aix3*)
11820   # AIX sometimes has problems with the GCC collect2 program.  For some
11821   # reason, if we set the COLLECT_NAMES environment variable, the problems
11822   # vanish in a puff of smoke.
11823   if test set != "${COLLECT_NAMES+set}"; then
11824     COLLECT_NAMES=
11825     export COLLECT_NAMES
11826   fi
11827   ;;
11828 esac
11829
11830 # Global variables:
11831 ofile=libtool
11832 can_build_shared=yes
11833
11834 # All known linkers require a '.a' archive for static linking (except MSVC,
11835 # which needs '.lib').
11836 libext=a
11837
11838 with_gnu_ld=$lt_cv_prog_gnu_ld
11839
11840 old_CC=$CC
11841 old_CFLAGS=$CFLAGS
11842
11843 # Set sane defaults for various variables
11844 test -z "$CC" && CC=cc
11845 test -z "$LTCC" && LTCC=$CC
11846 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11847 test -z "$LD" && LD=ld
11848 test -z "$ac_objext" && ac_objext=o
11849
11850 func_cc_basename $compiler
11851 cc_basename=$func_cc_basename_result
11852
11853
11854 # Only perform the check for file, if the check method requires it
11855 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11856 case $deplibs_check_method in
11857 file_magic*)
11858   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11859     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11860 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11861 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11862   $as_echo_n "(cached) " >&6
11863 else
11864   case $MAGIC_CMD in
11865 [\\/*] |  ?:[\\/]*)
11866   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11867   ;;
11868 *)
11869   lt_save_MAGIC_CMD=$MAGIC_CMD
11870   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11871   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11872   for ac_dir in $ac_dummy; do
11873     IFS=$lt_save_ifs
11874     test -z "$ac_dir" && ac_dir=.
11875     if test -f "$ac_dir/${ac_tool_prefix}file"; then
11876       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11877       if test -n "$file_magic_test_file"; then
11878         case $deplibs_check_method in
11879         "file_magic "*)
11880           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11881           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11882           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11883             $EGREP "$file_magic_regex" > /dev/null; then
11884             :
11885           else
11886             cat <<_LT_EOF 1>&2
11887
11888 *** Warning: the command libtool uses to detect shared libraries,
11889 *** $file_magic_cmd, produces output that libtool cannot recognize.
11890 *** The result is that libtool may fail to recognize shared libraries
11891 *** as such.  This will affect the creation of libtool libraries that
11892 *** depend on shared libraries, but programs linked with such libtool
11893 *** libraries will work regardless of this problem.  Nevertheless, you
11894 *** may want to report the problem to your system manager and/or to
11895 *** bug-libtool@gnu.org
11896
11897 _LT_EOF
11898           fi ;;
11899         esac
11900       fi
11901       break
11902     fi
11903   done
11904   IFS=$lt_save_ifs
11905   MAGIC_CMD=$lt_save_MAGIC_CMD
11906   ;;
11907 esac
11908 fi
11909
11910 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11911 if test -n "$MAGIC_CMD"; then
11912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11913 $as_echo "$MAGIC_CMD" >&6; }
11914 else
11915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916 $as_echo "no" >&6; }
11917 fi
11918
11919
11920
11921
11922
11923 if test -z "$lt_cv_path_MAGIC_CMD"; then
11924   if test -n "$ac_tool_prefix"; then
11925     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11926 $as_echo_n "checking for file... " >&6; }
11927 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11928   $as_echo_n "(cached) " >&6
11929 else
11930   case $MAGIC_CMD in
11931 [\\/*] |  ?:[\\/]*)
11932   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11933   ;;
11934 *)
11935   lt_save_MAGIC_CMD=$MAGIC_CMD
11936   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11937   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11938   for ac_dir in $ac_dummy; do
11939     IFS=$lt_save_ifs
11940     test -z "$ac_dir" && ac_dir=.
11941     if test -f "$ac_dir/file"; then
11942       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11943       if test -n "$file_magic_test_file"; then
11944         case $deplibs_check_method in
11945         "file_magic "*)
11946           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11947           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11948           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11949             $EGREP "$file_magic_regex" > /dev/null; then
11950             :
11951           else
11952             cat <<_LT_EOF 1>&2
11953
11954 *** Warning: the command libtool uses to detect shared libraries,
11955 *** $file_magic_cmd, produces output that libtool cannot recognize.
11956 *** The result is that libtool may fail to recognize shared libraries
11957 *** as such.  This will affect the creation of libtool libraries that
11958 *** depend on shared libraries, but programs linked with such libtool
11959 *** libraries will work regardless of this problem.  Nevertheless, you
11960 *** may want to report the problem to your system manager and/or to
11961 *** bug-libtool@gnu.org
11962
11963 _LT_EOF
11964           fi ;;
11965         esac
11966       fi
11967       break
11968     fi
11969   done
11970   IFS=$lt_save_ifs
11971   MAGIC_CMD=$lt_save_MAGIC_CMD
11972   ;;
11973 esac
11974 fi
11975
11976 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11977 if test -n "$MAGIC_CMD"; then
11978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11979 $as_echo "$MAGIC_CMD" >&6; }
11980 else
11981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11982 $as_echo "no" >&6; }
11983 fi
11984
11985
11986   else
11987     MAGIC_CMD=:
11988   fi
11989 fi
11990
11991   fi
11992   ;;
11993 esac
11994
11995 # Use C for the default configuration in the libtool script
11996
11997 lt_save_CC=$CC
11998 ac_ext=c
11999 ac_cpp='$CPP $CPPFLAGS'
12000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12003
12004
12005 # Source file extension for C test sources.
12006 ac_ext=c
12007
12008 # Object file extension for compiled C test sources.
12009 objext=o
12010 objext=$objext
12011
12012 # Code to be used in simple compile tests
12013 lt_simple_compile_test_code="int some_variable = 0;"
12014
12015 # Code to be used in simple link tests
12016 lt_simple_link_test_code='int main(){return(0);}'
12017
12018
12019
12020
12021
12022
12023
12024 # If no C compiler was specified, use CC.
12025 LTCC=${LTCC-"$CC"}
12026
12027 # If no C compiler flags were specified, use CFLAGS.
12028 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12029
12030 # Allow CC to be a program name with arguments.
12031 compiler=$CC
12032
12033 # Save the default compiler, since it gets overwritten when the other
12034 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12035 compiler_DEFAULT=$CC
12036
12037 # save warnings/boilerplate of simple test code
12038 ac_outfile=conftest.$ac_objext
12039 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12040 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12041 _lt_compiler_boilerplate=`cat conftest.err`
12042 $RM conftest*
12043
12044 ac_outfile=conftest.$ac_objext
12045 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12046 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12047 _lt_linker_boilerplate=`cat conftest.err`
12048 $RM -r conftest*
12049
12050
12051 ## CAVEAT EMPTOR:
12052 ## There is no encapsulation within the following macros, do not change
12053 ## the running order or otherwise move them around unless you know exactly
12054 ## what you are doing...
12055 if test -n "$compiler"; then
12056
12057 lt_prog_compiler_no_builtin_flag=
12058
12059 if test yes = "$GCC"; then
12060   case $cc_basename in
12061   nvcc*)
12062     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12063   *)
12064     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12065   esac
12066
12067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12068 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12069 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12070   $as_echo_n "(cached) " >&6
12071 else
12072   lt_cv_prog_compiler_rtti_exceptions=no
12073    ac_outfile=conftest.$ac_objext
12074    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12075    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
12076    # Insert the option either (1) after the last *FLAGS variable, or
12077    # (2) before a word containing "conftest.", or (3) at the end.
12078    # Note that $ac_compile itself does not contain backslashes and begins
12079    # with a dollar sign (not a hyphen), so the echo should work correctly.
12080    # The option is referenced via a variable to avoid confusing sed.
12081    lt_compile=`echo "$ac_compile" | $SED \
12082    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12083    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12084    -e 's:$: $lt_compiler_flag:'`
12085    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12086    (eval "$lt_compile" 2>conftest.err)
12087    ac_status=$?
12088    cat conftest.err >&5
12089    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090    if (exit $ac_status) && test -s "$ac_outfile"; then
12091      # The compiler can only warn and ignore the option if not recognized
12092      # So say no if there are warnings other than the usual output.
12093      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12094      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12095      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12096        lt_cv_prog_compiler_rtti_exceptions=yes
12097      fi
12098    fi
12099    $RM conftest*
12100
12101 fi
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12103 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12104
12105 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12106     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12107 else
12108     :
12109 fi
12110
12111 fi
12112
12113
12114
12115
12116
12117
12118   lt_prog_compiler_wl=
12119 lt_prog_compiler_pic=
12120 lt_prog_compiler_static=
12121
12122
12123   if test yes = "$GCC"; then
12124     lt_prog_compiler_wl='-Wl,'
12125     lt_prog_compiler_static='-static'
12126
12127     case $host_os in
12128       aix*)
12129       # All AIX code is PIC.
12130       if test ia64 = "$host_cpu"; then
12131         # AIX 5 now supports IA64 processor
12132         lt_prog_compiler_static='-Bstatic'
12133       fi
12134       lt_prog_compiler_pic='-fPIC'
12135       ;;
12136
12137     amigaos*)
12138       case $host_cpu in
12139       powerpc)
12140             # see comment about AmigaOS4 .so support
12141             lt_prog_compiler_pic='-fPIC'
12142         ;;
12143       m68k)
12144             # FIXME: we need at least 68020 code to build shared libraries, but
12145             # adding the '-m68020' flag to GCC prevents building anything better,
12146             # like '-m68040'.
12147             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12148         ;;
12149       esac
12150       ;;
12151
12152     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12153       # PIC is the default for these OSes.
12154       ;;
12155
12156     mingw* | cygwin* | pw32* | os2* | cegcc*)
12157       # This hack is so that the source file can tell whether it is being
12158       # built for inclusion in a dll (and should export symbols for example).
12159       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12160       # (--disable-auto-import) libraries
12161       lt_prog_compiler_pic='-DDLL_EXPORT'
12162       case $host_os in
12163       os2*)
12164         lt_prog_compiler_static='$wl-static'
12165         ;;
12166       esac
12167       ;;
12168
12169     darwin* | rhapsody*)
12170       # PIC is the default on this platform
12171       # Common symbols not allowed in MH_DYLIB files
12172       lt_prog_compiler_pic='-fno-common'
12173       ;;
12174
12175     haiku*)
12176       # PIC is the default for Haiku.
12177       # The "-static" flag exists, but is broken.
12178       lt_prog_compiler_static=
12179       ;;
12180
12181     hpux*)
12182       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12183       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12184       # sets the default TLS model and affects inlining.
12185       case $host_cpu in
12186       hppa*64*)
12187         # +Z the default
12188         ;;
12189       *)
12190         lt_prog_compiler_pic='-fPIC'
12191         ;;
12192       esac
12193       ;;
12194
12195     interix[3-9]*)
12196       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12197       # Instead, we relocate shared libraries at runtime.
12198       ;;
12199
12200     msdosdjgpp*)
12201       # Just because we use GCC doesn't mean we suddenly get shared libraries
12202       # on systems that don't support them.
12203       lt_prog_compiler_can_build_shared=no
12204       enable_shared=no
12205       ;;
12206
12207     *nto* | *qnx*)
12208       # QNX uses GNU C++, but need to define -shared option too, otherwise
12209       # it will coredump.
12210       lt_prog_compiler_pic='-fPIC -shared'
12211       ;;
12212
12213     sysv4*MP*)
12214       if test -d /usr/nec; then
12215         lt_prog_compiler_pic=-Kconform_pic
12216       fi
12217       ;;
12218
12219     *)
12220       lt_prog_compiler_pic='-fPIC'
12221       ;;
12222     esac
12223
12224     case $cc_basename in
12225     nvcc*) # Cuda Compiler Driver 2.2
12226       lt_prog_compiler_wl='-Xlinker '
12227       if test -n "$lt_prog_compiler_pic"; then
12228         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12229       fi
12230       ;;
12231     esac
12232   else
12233     # PORTME Check for flag to pass linker flags through the system compiler.
12234     case $host_os in
12235     aix*)
12236       lt_prog_compiler_wl='-Wl,'
12237       if test ia64 = "$host_cpu"; then
12238         # AIX 5 now supports IA64 processor
12239         lt_prog_compiler_static='-Bstatic'
12240       else
12241         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12242       fi
12243       ;;
12244
12245     darwin* | rhapsody*)
12246       # PIC is the default on this platform
12247       # Common symbols not allowed in MH_DYLIB files
12248       lt_prog_compiler_pic='-fno-common'
12249       case $cc_basename in
12250       nagfor*)
12251         # NAG Fortran compiler
12252         lt_prog_compiler_wl='-Wl,-Wl,,'
12253         lt_prog_compiler_pic='-PIC'
12254         lt_prog_compiler_static='-Bstatic'
12255         ;;
12256       esac
12257       ;;
12258
12259     mingw* | cygwin* | pw32* | os2* | cegcc*)
12260       # This hack is so that the source file can tell whether it is being
12261       # built for inclusion in a dll (and should export symbols for example).
12262       lt_prog_compiler_pic='-DDLL_EXPORT'
12263       case $host_os in
12264       os2*)
12265         lt_prog_compiler_static='$wl-static'
12266         ;;
12267       esac
12268       ;;
12269
12270     hpux9* | hpux10* | hpux11*)
12271       lt_prog_compiler_wl='-Wl,'
12272       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12273       # not for PA HP-UX.
12274       case $host_cpu in
12275       hppa*64*|ia64*)
12276         # +Z the default
12277         ;;
12278       *)
12279         lt_prog_compiler_pic='+Z'
12280         ;;
12281       esac
12282       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12283       lt_prog_compiler_static='$wl-a ${wl}archive'
12284       ;;
12285
12286     irix5* | irix6* | nonstopux*)
12287       lt_prog_compiler_wl='-Wl,'
12288       # PIC (with -KPIC) is the default.
12289       lt_prog_compiler_static='-non_shared'
12290       ;;
12291
12292     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12293       case $cc_basename in
12294       # old Intel for x86_64, which still supported -KPIC.
12295       ecc*)
12296         lt_prog_compiler_wl='-Wl,'
12297         lt_prog_compiler_pic='-KPIC'
12298         lt_prog_compiler_static='-static'
12299         ;;
12300       # icc used to be incompatible with GCC.
12301       # ICC 10 doesn't accept -KPIC any more.
12302       icc* | ifort*)
12303         lt_prog_compiler_wl='-Wl,'
12304         lt_prog_compiler_pic='-fPIC'
12305         lt_prog_compiler_static='-static'
12306         ;;
12307       # Lahey Fortran 8.1.
12308       lf95*)
12309         lt_prog_compiler_wl='-Wl,'
12310         lt_prog_compiler_pic='--shared'
12311         lt_prog_compiler_static='--static'
12312         ;;
12313       nagfor*)
12314         # NAG Fortran compiler
12315         lt_prog_compiler_wl='-Wl,-Wl,,'
12316         lt_prog_compiler_pic='-PIC'
12317         lt_prog_compiler_static='-Bstatic'
12318         ;;
12319       tcc*)
12320         # Fabrice Bellard et al's Tiny C Compiler
12321         lt_prog_compiler_wl='-Wl,'
12322         lt_prog_compiler_pic='-fPIC'
12323         lt_prog_compiler_static='-static'
12324         ;;
12325       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12326         # Portland Group compilers (*not* the Pentium gcc compiler,
12327         # which looks to be a dead project)
12328         lt_prog_compiler_wl='-Wl,'
12329         lt_prog_compiler_pic='-fpic'
12330         lt_prog_compiler_static='-Bstatic'
12331         ;;
12332       ccc*)
12333         lt_prog_compiler_wl='-Wl,'
12334         # All Alpha code is PIC.
12335         lt_prog_compiler_static='-non_shared'
12336         ;;
12337       xl* | bgxl* | bgf* | mpixl*)
12338         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12339         lt_prog_compiler_wl='-Wl,'
12340         lt_prog_compiler_pic='-qpic'
12341         lt_prog_compiler_static='-qstaticlink'
12342         ;;
12343       *)
12344         case `$CC -V 2>&1 | sed 5q` in
12345         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12346           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12347           lt_prog_compiler_pic='-KPIC'
12348           lt_prog_compiler_static='-Bstatic'
12349           lt_prog_compiler_wl=''
12350           ;;
12351         *Sun\ F* | *Sun*Fortran*)
12352           lt_prog_compiler_pic='-KPIC'
12353           lt_prog_compiler_static='-Bstatic'
12354           lt_prog_compiler_wl='-Qoption ld '
12355           ;;
12356         *Sun\ C*)
12357           # Sun C 5.9
12358           lt_prog_compiler_pic='-KPIC'
12359           lt_prog_compiler_static='-Bstatic'
12360           lt_prog_compiler_wl='-Wl,'
12361           ;;
12362         *Intel*\ [CF]*Compiler*)
12363           lt_prog_compiler_wl='-Wl,'
12364           lt_prog_compiler_pic='-fPIC'
12365           lt_prog_compiler_static='-static'
12366           ;;
12367         *Portland\ Group*)
12368           lt_prog_compiler_wl='-Wl,'
12369           lt_prog_compiler_pic='-fpic'
12370           lt_prog_compiler_static='-Bstatic'
12371           ;;
12372         esac
12373         ;;
12374       esac
12375       ;;
12376
12377     newsos6)
12378       lt_prog_compiler_pic='-KPIC'
12379       lt_prog_compiler_static='-Bstatic'
12380       ;;
12381
12382     *nto* | *qnx*)
12383       # QNX uses GNU C++, but need to define -shared option too, otherwise
12384       # it will coredump.
12385       lt_prog_compiler_pic='-fPIC -shared'
12386       ;;
12387
12388     osf3* | osf4* | osf5*)
12389       lt_prog_compiler_wl='-Wl,'
12390       # All OSF/1 code is PIC.
12391       lt_prog_compiler_static='-non_shared'
12392       ;;
12393
12394     rdos*)
12395       lt_prog_compiler_static='-non_shared'
12396       ;;
12397
12398     solaris*)
12399       lt_prog_compiler_pic='-KPIC'
12400       lt_prog_compiler_static='-Bstatic'
12401       case $cc_basename in
12402       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12403         lt_prog_compiler_wl='-Qoption ld ';;
12404       *)
12405         lt_prog_compiler_wl='-Wl,';;
12406       esac
12407       ;;
12408
12409     sunos4*)
12410       lt_prog_compiler_wl='-Qoption ld '
12411       lt_prog_compiler_pic='-PIC'
12412       lt_prog_compiler_static='-Bstatic'
12413       ;;
12414
12415     sysv4 | sysv4.2uw2* | sysv4.3*)
12416       lt_prog_compiler_wl='-Wl,'
12417       lt_prog_compiler_pic='-KPIC'
12418       lt_prog_compiler_static='-Bstatic'
12419       ;;
12420
12421     sysv4*MP*)
12422       if test -d /usr/nec; then
12423         lt_prog_compiler_pic='-Kconform_pic'
12424         lt_prog_compiler_static='-Bstatic'
12425       fi
12426       ;;
12427
12428     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12429       lt_prog_compiler_wl='-Wl,'
12430       lt_prog_compiler_pic='-KPIC'
12431       lt_prog_compiler_static='-Bstatic'
12432       ;;
12433
12434     unicos*)
12435       lt_prog_compiler_wl='-Wl,'
12436       lt_prog_compiler_can_build_shared=no
12437       ;;
12438
12439     uts4*)
12440       lt_prog_compiler_pic='-pic'
12441       lt_prog_compiler_static='-Bstatic'
12442       ;;
12443
12444     *)
12445       lt_prog_compiler_can_build_shared=no
12446       ;;
12447     esac
12448   fi
12449
12450 case $host_os in
12451   # For platforms that do not support PIC, -DPIC is meaningless:
12452   *djgpp*)
12453     lt_prog_compiler_pic=
12454     ;;
12455   *)
12456     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12457     ;;
12458 esac
12459
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12461 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12462 if ${lt_cv_prog_compiler_pic+:} false; then :
12463   $as_echo_n "(cached) " >&6
12464 else
12465   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12466 fi
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12468 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12469 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12470
12471 #
12472 # Check to make sure the PIC flag actually works.
12473 #
12474 if test -n "$lt_prog_compiler_pic"; then
12475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12476 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12477 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12478   $as_echo_n "(cached) " >&6
12479 else
12480   lt_cv_prog_compiler_pic_works=no
12481    ac_outfile=conftest.$ac_objext
12482    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12483    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
12484    # Insert the option either (1) after the last *FLAGS variable, or
12485    # (2) before a word containing "conftest.", or (3) at the end.
12486    # Note that $ac_compile itself does not contain backslashes and begins
12487    # with a dollar sign (not a hyphen), so the echo should work correctly.
12488    # The option is referenced via a variable to avoid confusing sed.
12489    lt_compile=`echo "$ac_compile" | $SED \
12490    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12491    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12492    -e 's:$: $lt_compiler_flag:'`
12493    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12494    (eval "$lt_compile" 2>conftest.err)
12495    ac_status=$?
12496    cat conftest.err >&5
12497    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498    if (exit $ac_status) && test -s "$ac_outfile"; then
12499      # The compiler can only warn and ignore the option if not recognized
12500      # So say no if there are warnings other than the usual output.
12501      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12502      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12503      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12504        lt_cv_prog_compiler_pic_works=yes
12505      fi
12506    fi
12507    $RM conftest*
12508
12509 fi
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12511 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12512
12513 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12514     case $lt_prog_compiler_pic in
12515      "" | " "*) ;;
12516      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12517      esac
12518 else
12519     lt_prog_compiler_pic=
12520      lt_prog_compiler_can_build_shared=no
12521 fi
12522
12523 fi
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535 #
12536 # Check to make sure the static flag actually works.
12537 #
12538 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12540 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12541 if ${lt_cv_prog_compiler_static_works+:} false; then :
12542   $as_echo_n "(cached) " >&6
12543 else
12544   lt_cv_prog_compiler_static_works=no
12545    save_LDFLAGS=$LDFLAGS
12546    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12547    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12548    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12549      # The linker can only warn and ignore the option if not recognized
12550      # So say no if there are warnings
12551      if test -s conftest.err; then
12552        # Append any errors to the config.log.
12553        cat conftest.err 1>&5
12554        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12555        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12556        if diff conftest.exp conftest.er2 >/dev/null; then
12557          lt_cv_prog_compiler_static_works=yes
12558        fi
12559      else
12560        lt_cv_prog_compiler_static_works=yes
12561      fi
12562    fi
12563    $RM -r conftest*
12564    LDFLAGS=$save_LDFLAGS
12565
12566 fi
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12568 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12569
12570 if test yes = "$lt_cv_prog_compiler_static_works"; then
12571     :
12572 else
12573     lt_prog_compiler_static=
12574 fi
12575
12576
12577
12578
12579
12580
12581
12582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12583 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12584 if ${lt_cv_prog_compiler_c_o+:} false; then :
12585   $as_echo_n "(cached) " >&6
12586 else
12587   lt_cv_prog_compiler_c_o=no
12588    $RM -r conftest 2>/dev/null
12589    mkdir conftest
12590    cd conftest
12591    mkdir out
12592    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12593
12594    lt_compiler_flag="-o out/conftest2.$ac_objext"
12595    # Insert the option either (1) after the last *FLAGS variable, or
12596    # (2) before a word containing "conftest.", or (3) at the end.
12597    # Note that $ac_compile itself does not contain backslashes and begins
12598    # with a dollar sign (not a hyphen), so the echo should work correctly.
12599    lt_compile=`echo "$ac_compile" | $SED \
12600    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12601    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12602    -e 's:$: $lt_compiler_flag:'`
12603    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12604    (eval "$lt_compile" 2>out/conftest.err)
12605    ac_status=$?
12606    cat out/conftest.err >&5
12607    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12609    then
12610      # The compiler can only warn and ignore the option if not recognized
12611      # So say no if there are warnings
12612      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12613      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12614      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12615        lt_cv_prog_compiler_c_o=yes
12616      fi
12617    fi
12618    chmod u+w . 2>&5
12619    $RM conftest*
12620    # SGI C++ compiler will create directory out/ii_files/ for
12621    # template instantiation
12622    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12623    $RM out/* && rmdir out
12624    cd ..
12625    $RM -r conftest
12626    $RM conftest*
12627
12628 fi
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12630 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12631
12632
12633
12634
12635
12636
12637   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12638 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12639 if ${lt_cv_prog_compiler_c_o+:} false; then :
12640   $as_echo_n "(cached) " >&6
12641 else
12642   lt_cv_prog_compiler_c_o=no
12643    $RM -r conftest 2>/dev/null
12644    mkdir conftest
12645    cd conftest
12646    mkdir out
12647    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12648
12649    lt_compiler_flag="-o out/conftest2.$ac_objext"
12650    # Insert the option either (1) after the last *FLAGS variable, or
12651    # (2) before a word containing "conftest.", or (3) at the end.
12652    # Note that $ac_compile itself does not contain backslashes and begins
12653    # with a dollar sign (not a hyphen), so the echo should work correctly.
12654    lt_compile=`echo "$ac_compile" | $SED \
12655    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12656    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12657    -e 's:$: $lt_compiler_flag:'`
12658    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12659    (eval "$lt_compile" 2>out/conftest.err)
12660    ac_status=$?
12661    cat out/conftest.err >&5
12662    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12664    then
12665      # The compiler can only warn and ignore the option if not recognized
12666      # So say no if there are warnings
12667      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12668      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12669      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12670        lt_cv_prog_compiler_c_o=yes
12671      fi
12672    fi
12673    chmod u+w . 2>&5
12674    $RM conftest*
12675    # SGI C++ compiler will create directory out/ii_files/ for
12676    # template instantiation
12677    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12678    $RM out/* && rmdir out
12679    cd ..
12680    $RM -r conftest
12681    $RM conftest*
12682
12683 fi
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12685 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12686
12687
12688
12689
12690 hard_links=nottested
12691 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12692   # do not overwrite the value of need_locks provided by the user
12693   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12694 $as_echo_n "checking if we can lock with hard links... " >&6; }
12695   hard_links=yes
12696   $RM conftest*
12697   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12698   touch conftest.a
12699   ln conftest.a conftest.b 2>&5 || hard_links=no
12700   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12702 $as_echo "$hard_links" >&6; }
12703   if test no = "$hard_links"; then
12704     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12705 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12706     need_locks=warn
12707   fi
12708 else
12709   need_locks=no
12710 fi
12711
12712
12713
12714
12715
12716
12717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12718 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12719
12720   runpath_var=
12721   allow_undefined_flag=
12722   always_export_symbols=no
12723   archive_cmds=
12724   archive_expsym_cmds=
12725   compiler_needs_object=no
12726   enable_shared_with_static_runtimes=no
12727   export_dynamic_flag_spec=
12728   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12729   hardcode_automatic=no
12730   hardcode_direct=no
12731   hardcode_direct_absolute=no
12732   hardcode_libdir_flag_spec=
12733   hardcode_libdir_separator=
12734   hardcode_minus_L=no
12735   hardcode_shlibpath_var=unsupported
12736   inherit_rpath=no
12737   link_all_deplibs=unknown
12738   module_cmds=
12739   module_expsym_cmds=
12740   old_archive_from_new_cmds=
12741   old_archive_from_expsyms_cmds=
12742   thread_safe_flag_spec=
12743   whole_archive_flag_spec=
12744   # include_expsyms should be a list of space-separated symbols to be *always*
12745   # included in the symbol list
12746   include_expsyms=
12747   # exclude_expsyms can be an extended regexp of symbols to exclude
12748   # it will be wrapped by ' (' and ')$', so one must not match beginning or
12749   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12750   # as well as any symbol that contains 'd'.
12751   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12752   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12753   # platforms (ab)use it in PIC code, but their linkers get confused if
12754   # the symbol is explicitly referenced.  Since portable code cannot
12755   # rely on this symbol name, it's probably fine to never include it in
12756   # preloaded symbol tables.
12757   # Exclude shared library initialization/finalization symbols.
12758   extract_expsyms_cmds=
12759
12760   case $host_os in
12761   cygwin* | mingw* | pw32* | cegcc*)
12762     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12763     # When not using gcc, we currently assume that we are using
12764     # Microsoft Visual C++.
12765     if test yes != "$GCC"; then
12766       with_gnu_ld=no
12767     fi
12768     ;;
12769   interix*)
12770     # we just hope/assume this is gcc and not c89 (= MSVC++)
12771     with_gnu_ld=yes
12772     ;;
12773   openbsd* | bitrig*)
12774     with_gnu_ld=no
12775     ;;
12776   linux* | k*bsd*-gnu | gnu*)
12777     link_all_deplibs=no
12778     ;;
12779   esac
12780
12781   ld_shlibs=yes
12782
12783   # On some targets, GNU ld is compatible enough with the native linker
12784   # that we're better off using the native interface for both.
12785   lt_use_gnu_ld_interface=no
12786   if test yes = "$with_gnu_ld"; then
12787     case $host_os in
12788       aix*)
12789         # The AIX port of GNU ld has always aspired to compatibility
12790         # with the native linker.  However, as the warning in the GNU ld
12791         # block says, versions before 2.19.5* couldn't really create working
12792         # shared libraries, regardless of the interface used.
12793         case `$LD -v 2>&1` in
12794           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12795           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12796           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12797           *)
12798             lt_use_gnu_ld_interface=yes
12799             ;;
12800         esac
12801         ;;
12802       *)
12803         lt_use_gnu_ld_interface=yes
12804         ;;
12805     esac
12806   fi
12807
12808   if test yes = "$lt_use_gnu_ld_interface"; then
12809     # If archive_cmds runs LD, not CC, wlarc should be empty
12810     wlarc='$wl'
12811
12812     # Set some defaults for GNU ld with shared library support. These
12813     # are reset later if shared libraries are not supported. Putting them
12814     # here allows them to be overridden if necessary.
12815     runpath_var=LD_RUN_PATH
12816     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12817     export_dynamic_flag_spec='$wl--export-dynamic'
12818     # ancient GNU ld didn't support --whole-archive et. al.
12819     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12820       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12821     else
12822       whole_archive_flag_spec=
12823     fi
12824     supports_anon_versioning=no
12825     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12826       *GNU\ gold*) supports_anon_versioning=yes ;;
12827       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12828       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12829       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12830       *\ 2.11.*) ;; # other 2.11 versions
12831       *) supports_anon_versioning=yes ;;
12832     esac
12833
12834     # See if GNU ld supports shared libraries.
12835     case $host_os in
12836     aix[3-9]*)
12837       # On AIX/PPC, the GNU linker is very broken
12838       if test ia64 != "$host_cpu"; then
12839         ld_shlibs=no
12840         cat <<_LT_EOF 1>&2
12841
12842 *** Warning: the GNU linker, at least up to release 2.19, is reported
12843 *** to be unable to reliably create shared libraries on AIX.
12844 *** Therefore, libtool is disabling shared libraries support.  If you
12845 *** really care for shared libraries, you may want to install binutils
12846 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12847 *** You will then need to restart the configuration process.
12848
12849 _LT_EOF
12850       fi
12851       ;;
12852
12853     amigaos*)
12854       case $host_cpu in
12855       powerpc)
12856             # see comment about AmigaOS4 .so support
12857             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12858             archive_expsym_cmds=''
12859         ;;
12860       m68k)
12861             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)'
12862             hardcode_libdir_flag_spec='-L$libdir'
12863             hardcode_minus_L=yes
12864         ;;
12865       esac
12866       ;;
12867
12868     beos*)
12869       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12870         allow_undefined_flag=unsupported
12871         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12872         # support --undefined.  This deserves some investigation.  FIXME
12873         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12874       else
12875         ld_shlibs=no
12876       fi
12877       ;;
12878
12879     cygwin* | mingw* | pw32* | cegcc*)
12880       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12881       # as there is no search path for DLLs.
12882       hardcode_libdir_flag_spec='-L$libdir'
12883       export_dynamic_flag_spec='$wl--export-all-symbols'
12884       allow_undefined_flag=unsupported
12885       always_export_symbols=no
12886       enable_shared_with_static_runtimes=yes
12887       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'
12888       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12889
12890       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12891         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12892         # If the export-symbols file already is a .def file, use it as
12893         # is; otherwise, prepend EXPORTS...
12894         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12895           cp $export_symbols $output_objdir/$soname.def;
12896         else
12897           echo EXPORTS > $output_objdir/$soname.def;
12898           cat $export_symbols >> $output_objdir/$soname.def;
12899         fi~
12900         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12901       else
12902         ld_shlibs=no
12903       fi
12904       ;;
12905
12906     haiku*)
12907       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12908       link_all_deplibs=yes
12909       ;;
12910
12911     os2*)
12912       hardcode_libdir_flag_spec='-L$libdir'
12913       hardcode_minus_L=yes
12914       allow_undefined_flag=unsupported
12915       shrext_cmds=.dll
12916       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12917         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12918         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12919         $ECHO EXPORTS >> $output_objdir/$libname.def~
12920         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12921         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12922         emximp -o $lib $output_objdir/$libname.def'
12923       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12924         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12925         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12926         $ECHO EXPORTS >> $output_objdir/$libname.def~
12927         prefix_cmds="$SED"~
12928         if test EXPORTS = "`$SED 1q $export_symbols`"; then
12929           prefix_cmds="$prefix_cmds -e 1d";
12930         fi~
12931         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12932         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12933         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12934         emximp -o $lib $output_objdir/$libname.def'
12935       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12936       enable_shared_with_static_runtimes=yes
12937       ;;
12938
12939     interix[3-9]*)
12940       hardcode_direct=no
12941       hardcode_shlibpath_var=no
12942       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12943       export_dynamic_flag_spec='$wl-E'
12944       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12945       # Instead, shared libraries are loaded at an image base (0x10000000 by
12946       # default) and relocated if they conflict, which is a slow very memory
12947       # consuming and fragmenting process.  To avoid this, we pick a random,
12948       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12949       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12950       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12951       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'
12952       ;;
12953
12954     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12955       tmp_diet=no
12956       if test linux-dietlibc = "$host_os"; then
12957         case $cc_basename in
12958           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12959         esac
12960       fi
12961       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12962          && test no = "$tmp_diet"
12963       then
12964         tmp_addflag=' $pic_flag'
12965         tmp_sharedflag='-shared'
12966         case $cc_basename,$host_cpu in
12967         pgcc*)                          # Portland Group C compiler
12968           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'
12969           tmp_addflag=' $pic_flag'
12970           ;;
12971         pgf77* | pgf90* | pgf95* | pgfortran*)
12972                                         # Portland Group f77 and f90 compilers
12973           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'
12974           tmp_addflag=' $pic_flag -Mnomain' ;;
12975         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12976           tmp_addflag=' -i_dynamic' ;;
12977         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12978           tmp_addflag=' -i_dynamic -nofor_main' ;;
12979         ifc* | ifort*)                  # Intel Fortran compiler
12980           tmp_addflag=' -nofor_main' ;;
12981         lf95*)                          # Lahey Fortran 8.1
12982           whole_archive_flag_spec=
12983           tmp_sharedflag='--shared' ;;
12984         nagfor*)                        # NAGFOR 5.3
12985           tmp_sharedflag='-Wl,-shared' ;;
12986         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12987           tmp_sharedflag='-qmkshrobj'
12988           tmp_addflag= ;;
12989         nvcc*)  # Cuda Compiler Driver 2.2
12990           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'
12991           compiler_needs_object=yes
12992           ;;
12993         esac
12994         case `$CC -V 2>&1 | sed 5q` in
12995         *Sun\ C*)                       # Sun C 5.9
12996           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'
12997           compiler_needs_object=yes
12998           tmp_sharedflag='-G' ;;
12999         *Sun\ F*)                       # Sun Fortran 8.3
13000           tmp_sharedflag='-G' ;;
13001         esac
13002         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13003
13004         if test yes = "$supports_anon_versioning"; then
13005           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13006             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13007             echo "local: *; };" >> $output_objdir/$libname.ver~
13008             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13009         fi
13010
13011         case $cc_basename in
13012         tcc*)
13013           export_dynamic_flag_spec='-rdynamic'
13014           ;;
13015         xlf* | bgf* | bgxlf* | mpixlf*)
13016           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13017           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13018           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13019           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13020           if test yes = "$supports_anon_versioning"; then
13021             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13022               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13023               echo "local: *; };" >> $output_objdir/$libname.ver~
13024               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13025           fi
13026           ;;
13027         esac
13028       else
13029         ld_shlibs=no
13030       fi
13031       ;;
13032
13033     netbsd* | netbsdelf*-gnu)
13034       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13035         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13036         wlarc=
13037       else
13038         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13039         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13040       fi
13041       ;;
13042
13043     solaris*)
13044       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13045         ld_shlibs=no
13046         cat <<_LT_EOF 1>&2
13047
13048 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13049 *** create shared libraries on Solaris systems.  Therefore, libtool
13050 *** is disabling shared libraries support.  We urge you to upgrade GNU
13051 *** binutils to release 2.9.1 or newer.  Another option is to modify
13052 *** your PATH or compiler configuration so that the native linker is
13053 *** used, and then restart.
13054
13055 _LT_EOF
13056       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13057         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13058         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13059       else
13060         ld_shlibs=no
13061       fi
13062       ;;
13063
13064     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13065       case `$LD -v 2>&1` in
13066         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13067         ld_shlibs=no
13068         cat <<_LT_EOF 1>&2
13069
13070 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
13071 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13072 *** is disabling shared libraries support.  We urge you to upgrade GNU
13073 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13074 *** your PATH or compiler configuration so that the native linker is
13075 *** used, and then restart.
13076
13077 _LT_EOF
13078         ;;
13079         *)
13080           # For security reasons, it is highly recommended that you always
13081           # use absolute paths for naming shared libraries, and exclude the
13082           # DT_RUNPATH tag from executables and libraries.  But doing so
13083           # requires that you compile everything twice, which is a pain.
13084           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13085             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13086             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13087             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13088           else
13089             ld_shlibs=no
13090           fi
13091         ;;
13092       esac
13093       ;;
13094
13095     sunos4*)
13096       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13097       wlarc=
13098       hardcode_direct=yes
13099       hardcode_shlibpath_var=no
13100       ;;
13101
13102     *)
13103       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13104         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13105         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13106       else
13107         ld_shlibs=no
13108       fi
13109       ;;
13110     esac
13111
13112     if test no = "$ld_shlibs"; then
13113       runpath_var=
13114       hardcode_libdir_flag_spec=
13115       export_dynamic_flag_spec=
13116       whole_archive_flag_spec=
13117     fi
13118   else
13119     # PORTME fill in a description of your system's linker (not GNU ld)
13120     case $host_os in
13121     aix3*)
13122       allow_undefined_flag=unsupported
13123       always_export_symbols=yes
13124       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'
13125       # Note: this linker hardcodes the directories in LIBPATH if there
13126       # are no directories specified by -L.
13127       hardcode_minus_L=yes
13128       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13129         # Neither direct hardcoding nor static linking is supported with a
13130         # broken collect2.
13131         hardcode_direct=unsupported
13132       fi
13133       ;;
13134
13135     aix[4-9]*)
13136       if test ia64 = "$host_cpu"; then
13137         # On IA64, the linker does run time linking by default, so we don't
13138         # have to do anything special.
13139         aix_use_runtimelinking=no
13140         exp_sym_flag='-Bexport'
13141         no_entry_flag=
13142       else
13143         # If we're using GNU nm, then we don't want the "-C" option.
13144         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13145         # Without the "-l" option, or with the "-B" option, AIX nm treats
13146         # weak defined symbols like other global defined symbols, whereas
13147         # GNU nm marks them as "W".
13148         # While the 'weak' keyword is ignored in the Export File, we need
13149         # it in the Import File for the 'aix-soname' feature, so we have
13150         # to replace the "-B" option with "-P" for AIX nm.
13151         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13152           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
13153         else
13154           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
13155         fi
13156         aix_use_runtimelinking=no
13157
13158         # Test if we are trying to use run time linking or normal
13159         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13160         # have runtime linking enabled, and use it for executables.
13161         # For shared libraries, we enable/disable runtime linking
13162         # depending on the kind of the shared library created -
13163         # when "with_aix_soname,aix_use_runtimelinking" is:
13164         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13165         # "aix,yes"  lib.so          shared, rtl:yes, for executables
13166         #            lib.a           static archive
13167         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13168         #            lib.a(lib.so.V) shared, rtl:no,  for executables
13169         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13170         #            lib.a(lib.so.V) shared, rtl:no
13171         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13172         #            lib.a           static archive
13173         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13174           for ld_flag in $LDFLAGS; do
13175           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13176             aix_use_runtimelinking=yes
13177             break
13178           fi
13179           done
13180           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13181             # With aix-soname=svr4, we create the lib.so.V shared archives only,
13182             # so we don't have lib.a shared libs to link our executables.
13183             # We have to force runtime linking in this case.
13184             aix_use_runtimelinking=yes
13185             LDFLAGS="$LDFLAGS -Wl,-brtl"
13186           fi
13187           ;;
13188         esac
13189
13190         exp_sym_flag='-bexport'
13191         no_entry_flag='-bnoentry'
13192       fi
13193
13194       # When large executables or shared objects are built, AIX ld can
13195       # have problems creating the table of contents.  If linking a library
13196       # or program results in "error TOC overflow" add -mminimal-toc to
13197       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13198       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13199
13200       archive_cmds=''
13201       hardcode_direct=yes
13202       hardcode_direct_absolute=yes
13203       hardcode_libdir_separator=':'
13204       link_all_deplibs=yes
13205       file_list_spec='$wl-f,'
13206       case $with_aix_soname,$aix_use_runtimelinking in
13207       aix,*) ;; # traditional, no import file
13208       svr4,* | *,yes) # use import file
13209         # The Import File defines what to hardcode.
13210         hardcode_direct=no
13211         hardcode_direct_absolute=no
13212         ;;
13213       esac
13214
13215       if test yes = "$GCC"; then
13216         case $host_os in aix4.[012]|aix4.[012].*)
13217         # We only want to do this on AIX 4.2 and lower, the check
13218         # below for broken collect2 doesn't work under 4.3+
13219           collect2name=`$CC -print-prog-name=collect2`
13220           if test -f "$collect2name" &&
13221            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13222           then
13223           # We have reworked collect2
13224           :
13225           else
13226           # We have old collect2
13227           hardcode_direct=unsupported
13228           # It fails to find uninstalled libraries when the uninstalled
13229           # path is not listed in the libpath.  Setting hardcode_minus_L
13230           # to unsupported forces relinking
13231           hardcode_minus_L=yes
13232           hardcode_libdir_flag_spec='-L$libdir'
13233           hardcode_libdir_separator=
13234           fi
13235           ;;
13236         esac
13237         shared_flag='-shared'
13238         if test yes = "$aix_use_runtimelinking"; then
13239           shared_flag="$shared_flag "'$wl-G'
13240         fi
13241         # Need to ensure runtime linking is disabled for the traditional
13242         # shared library, or the linker may eventually find shared libraries
13243         # /with/ Import File - we do not want to mix them.
13244         shared_flag_aix='-shared'
13245         shared_flag_svr4='-shared $wl-G'
13246       else
13247         # not using gcc
13248         if test ia64 = "$host_cpu"; then
13249         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13250         # chokes on -Wl,-G. The following line is correct:
13251           shared_flag='-G'
13252         else
13253           if test yes = "$aix_use_runtimelinking"; then
13254             shared_flag='$wl-G'
13255           else
13256             shared_flag='$wl-bM:SRE'
13257           fi
13258           shared_flag_aix='$wl-bM:SRE'
13259           shared_flag_svr4='$wl-G'
13260         fi
13261       fi
13262
13263       export_dynamic_flag_spec='$wl-bexpall'
13264       # It seems that -bexpall does not export symbols beginning with
13265       # underscore (_), so it is better to generate a list of symbols to export.
13266       always_export_symbols=yes
13267       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13268         # Warning - without using the other runtime loading flags (-brtl),
13269         # -berok will link without error, but may produce a broken library.
13270         allow_undefined_flag='-berok'
13271         # Determine the default libpath from the value encoded in an
13272         # empty executable.
13273         if test set = "${lt_cv_aix_libpath+set}"; then
13274   aix_libpath=$lt_cv_aix_libpath
13275 else
13276   if ${lt_cv_aix_libpath_+:} false; then :
13277   $as_echo_n "(cached) " >&6
13278 else
13279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13280 /* end confdefs.h.  */
13281
13282 int main (void)
13283 {
13284
13285  ;
13286  return 0;
13287 }
13288 _ACEOF
13289 if ac_fn_c_try_link "$LINENO"; then :
13290
13291   lt_aix_libpath_sed='
13292       /Import File Strings/,/^$/ {
13293           /^0/ {
13294               s/^0  *\([^ ]*\) *$/\1/
13295               p
13296           }
13297       }'
13298   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13299   # Check for a 64-bit object if we didn't find anything.
13300   if test -z "$lt_cv_aix_libpath_"; then
13301     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13302   fi
13303 fi
13304 rm -f core conftest.err conftest.$ac_objext \
13305     conftest$ac_exeext conftest.$ac_ext
13306   if test -z "$lt_cv_aix_libpath_"; then
13307     lt_cv_aix_libpath_=/usr/lib:/lib
13308   fi
13309
13310 fi
13311
13312   aix_libpath=$lt_cv_aix_libpath_
13313 fi
13314
13315         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13316         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13317       else
13318         if test ia64 = "$host_cpu"; then
13319           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13320           allow_undefined_flag="-z nodefs"
13321           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"
13322         else
13323          # Determine the default libpath from the value encoded in an
13324          # empty executable.
13325          if test set = "${lt_cv_aix_libpath+set}"; then
13326   aix_libpath=$lt_cv_aix_libpath
13327 else
13328   if ${lt_cv_aix_libpath_+:} false; then :
13329   $as_echo_n "(cached) " >&6
13330 else
13331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332 /* end confdefs.h.  */
13333
13334 int main (void)
13335 {
13336
13337  ;
13338  return 0;
13339 }
13340 _ACEOF
13341 if ac_fn_c_try_link "$LINENO"; then :
13342
13343   lt_aix_libpath_sed='
13344       /Import File Strings/,/^$/ {
13345           /^0/ {
13346               s/^0  *\([^ ]*\) *$/\1/
13347               p
13348           }
13349       }'
13350   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13351   # Check for a 64-bit object if we didn't find anything.
13352   if test -z "$lt_cv_aix_libpath_"; then
13353     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13354   fi
13355 fi
13356 rm -f core conftest.err conftest.$ac_objext \
13357     conftest$ac_exeext conftest.$ac_ext
13358   if test -z "$lt_cv_aix_libpath_"; then
13359     lt_cv_aix_libpath_=/usr/lib:/lib
13360   fi
13361
13362 fi
13363
13364   aix_libpath=$lt_cv_aix_libpath_
13365 fi
13366
13367          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13368           # Warning - without using the other run time loading flags,
13369           # -berok will link without error, but may produce a broken library.
13370           no_undefined_flag=' $wl-bernotok'
13371           allow_undefined_flag=' $wl-berok'
13372           if test yes = "$with_gnu_ld"; then
13373             # We only use this code for GNU lds that support --whole-archive.
13374             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13375           else
13376             # Exported symbols can be pulled into shared objects from archives
13377             whole_archive_flag_spec='$convenience'
13378           fi
13379           archive_cmds_need_lc=yes
13380           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13381           # -brtl affects multiple linker settings, -berok does not and is overridden later
13382           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13383           if test svr4 != "$with_aix_soname"; then
13384             # This is similar to how AIX traditionally builds its shared libraries.
13385             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13386           fi
13387           if test aix != "$with_aix_soname"; then
13388             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13389           else
13390             # used by -dlpreopen to get the symbols
13391             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13392           fi
13393           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13394         fi
13395       fi
13396       ;;
13397
13398     amigaos*)
13399       case $host_cpu in
13400       powerpc)
13401             # see comment about AmigaOS4 .so support
13402             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13403             archive_expsym_cmds=''
13404         ;;
13405       m68k)
13406             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)'
13407             hardcode_libdir_flag_spec='-L$libdir'
13408             hardcode_minus_L=yes
13409         ;;
13410       esac
13411       ;;
13412
13413     bsdi[45]*)
13414       export_dynamic_flag_spec=-rdynamic
13415       ;;
13416
13417     cygwin* | mingw* | pw32* | cegcc*)
13418       # When not using gcc, we currently assume that we are using
13419       # Microsoft Visual C++.
13420       # hardcode_libdir_flag_spec is actually meaningless, as there is
13421       # no search path for DLLs.
13422       case $cc_basename in
13423       cl*)
13424         # Native MSVC
13425         hardcode_libdir_flag_spec=' '
13426         allow_undefined_flag=unsupported
13427         always_export_symbols=yes
13428         file_list_spec='@'
13429         # Tell ltmain to make .lib files, not .a files.
13430         libext=lib
13431         # Tell ltmain to make .dll files, not .so files.
13432         shrext_cmds=.dll
13433         # FIXME: Setting linknames here is a bad hack.
13434         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13435         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13436             cp "$export_symbols" "$output_objdir/$soname.def";
13437             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13438           else
13439             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13440           fi~
13441           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13442           linknames='
13443         # The linker will not automatically build a static lib if we build a DLL.
13444         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13445         enable_shared_with_static_runtimes=yes
13446         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13447         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13448         # Don't use ranlib
13449         old_postinstall_cmds='chmod 644 $oldlib'
13450         postlink_cmds='lt_outputfile="@OUTPUT@"~
13451           lt_tool_outputfile="@TOOL_OUTPUT@"~
13452           case $lt_outputfile in
13453             *.exe|*.EXE) ;;
13454             *)
13455               lt_outputfile=$lt_outputfile.exe
13456               lt_tool_outputfile=$lt_tool_outputfile.exe
13457               ;;
13458           esac~
13459           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13460             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13461             $RM "$lt_outputfile.manifest";
13462           fi'
13463         ;;
13464       *)
13465         # Assume MSVC wrapper
13466         hardcode_libdir_flag_spec=' '
13467         allow_undefined_flag=unsupported
13468         # Tell ltmain to make .lib files, not .a files.
13469         libext=lib
13470         # Tell ltmain to make .dll files, not .so files.
13471         shrext_cmds=.dll
13472         # FIXME: Setting linknames here is a bad hack.
13473         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13474         # The linker will automatically build a .lib file if we build a DLL.
13475         old_archive_from_new_cmds='true'
13476         # FIXME: Should let the user specify the lib program.
13477         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13478         enable_shared_with_static_runtimes=yes
13479         ;;
13480       esac
13481       ;;
13482
13483     darwin* | rhapsody*)
13484
13485
13486   archive_cmds_need_lc=no
13487   hardcode_direct=no
13488   hardcode_automatic=yes
13489   hardcode_shlibpath_var=unsupported
13490   if test yes = "$lt_cv_ld_force_load"; then
13491     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\"`'
13492
13493   else
13494     whole_archive_flag_spec=''
13495   fi
13496   link_all_deplibs=yes
13497   allow_undefined_flag=$_lt_dar_allow_undefined
13498   case $cc_basename in
13499      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13500      *) _lt_dar_can_shared=$GCC ;;
13501   esac
13502   if test yes = "$_lt_dar_can_shared"; then
13503     output_verbose_link_cmd=func_echo_all
13504     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13505     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13506     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"
13507     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"
13508
13509   else
13510   ld_shlibs=no
13511   fi
13512
13513       ;;
13514
13515     dgux*)
13516       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13517       hardcode_libdir_flag_spec='-L$libdir'
13518       hardcode_shlibpath_var=no
13519       ;;
13520
13521     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13522     # support.  Future versions do this automatically, but an explicit c++rt0.o
13523     # does not break anything, and helps significantly (at the cost of a little
13524     # extra space).
13525     freebsd2.2*)
13526       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13527       hardcode_libdir_flag_spec='-R$libdir'
13528       hardcode_direct=yes
13529       hardcode_shlibpath_var=no
13530       ;;
13531
13532     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13533     freebsd2.*)
13534       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13535       hardcode_direct=yes
13536       hardcode_minus_L=yes
13537       hardcode_shlibpath_var=no
13538       ;;
13539
13540     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13541     freebsd* | dragonfly*)
13542       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13543       hardcode_libdir_flag_spec='-R$libdir'
13544       hardcode_direct=yes
13545       hardcode_shlibpath_var=no
13546       ;;
13547
13548     hpux9*)
13549       if test yes = "$GCC"; then
13550         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
13551       else
13552         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
13553       fi
13554       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13555       hardcode_libdir_separator=:
13556       hardcode_direct=yes
13557
13558       # hardcode_minus_L: Not really in the search PATH,
13559       # but as the default location of the library.
13560       hardcode_minus_L=yes
13561       export_dynamic_flag_spec='$wl-E'
13562       ;;
13563
13564     hpux10*)
13565       if test yes,no = "$GCC,$with_gnu_ld"; then
13566         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13567       else
13568         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13569       fi
13570       if test no = "$with_gnu_ld"; then
13571         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13572         hardcode_libdir_separator=:
13573         hardcode_direct=yes
13574         hardcode_direct_absolute=yes
13575         export_dynamic_flag_spec='$wl-E'
13576         # hardcode_minus_L: Not really in the search PATH,
13577         # but as the default location of the library.
13578         hardcode_minus_L=yes
13579       fi
13580       ;;
13581
13582     hpux11*)
13583       if test yes,no = "$GCC,$with_gnu_ld"; then
13584         case $host_cpu in
13585         hppa*64*)
13586           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13587           ;;
13588         ia64*)
13589           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13590           ;;
13591         *)
13592           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13593           ;;
13594         esac
13595       else
13596         case $host_cpu in
13597         hppa*64*)
13598           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13599           ;;
13600         ia64*)
13601           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13602           ;;
13603         *)
13604
13605           # Older versions of the 11.00 compiler do not understand -b yet
13606           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13607           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13608 $as_echo_n "checking if $CC understands -b... " >&6; }
13609 if ${lt_cv_prog_compiler__b+:} false; then :
13610   $as_echo_n "(cached) " >&6
13611 else
13612   lt_cv_prog_compiler__b=no
13613    save_LDFLAGS=$LDFLAGS
13614    LDFLAGS="$LDFLAGS -b"
13615    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13616    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13617      # The linker can only warn and ignore the option if not recognized
13618      # So say no if there are warnings
13619      if test -s conftest.err; then
13620        # Append any errors to the config.log.
13621        cat conftest.err 1>&5
13622        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13623        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13624        if diff conftest.exp conftest.er2 >/dev/null; then
13625          lt_cv_prog_compiler__b=yes
13626        fi
13627      else
13628        lt_cv_prog_compiler__b=yes
13629      fi
13630    fi
13631    $RM -r conftest*
13632    LDFLAGS=$save_LDFLAGS
13633
13634 fi
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13636 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13637
13638 if test yes = "$lt_cv_prog_compiler__b"; then
13639     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13640 else
13641     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13642 fi
13643
13644           ;;
13645         esac
13646       fi
13647       if test no = "$with_gnu_ld"; then
13648         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13649         hardcode_libdir_separator=:
13650
13651         case $host_cpu in
13652         hppa*64*|ia64*)
13653           hardcode_direct=no
13654           hardcode_shlibpath_var=no
13655           ;;
13656         *)
13657           hardcode_direct=yes
13658           hardcode_direct_absolute=yes
13659           export_dynamic_flag_spec='$wl-E'
13660
13661           # hardcode_minus_L: Not really in the search PATH,
13662           # but as the default location of the library.
13663           hardcode_minus_L=yes
13664           ;;
13665         esac
13666       fi
13667       ;;
13668
13669     irix5* | irix6* | nonstopux*)
13670       if test yes = "$GCC"; then
13671         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'
13672         # Try to use the -exported_symbol ld option, if it does not
13673         # work, assume that -exports_file does not work either and
13674         # implicitly export all symbols.
13675         # This should be the same for all languages, so no per-tag cache variable.
13676         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13677 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13678 if ${lt_cv_irix_exported_symbol+:} false; then :
13679   $as_echo_n "(cached) " >&6
13680 else
13681   save_LDFLAGS=$LDFLAGS
13682            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13683            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13684 /* end confdefs.h.  */
13685 int foo (void) { return 0; }
13686 _ACEOF
13687 if ac_fn_c_try_link "$LINENO"; then :
13688   lt_cv_irix_exported_symbol=yes
13689 else
13690   lt_cv_irix_exported_symbol=no
13691 fi
13692 rm -f core conftest.err conftest.$ac_objext \
13693     conftest$ac_exeext conftest.$ac_ext
13694            LDFLAGS=$save_LDFLAGS
13695 fi
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13697 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13698         if test yes = "$lt_cv_irix_exported_symbol"; then
13699           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'
13700         fi
13701         link_all_deplibs=no
13702       else
13703         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'
13704         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'
13705       fi
13706       archive_cmds_need_lc='no'
13707       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13708       hardcode_libdir_separator=:
13709       inherit_rpath=yes
13710       link_all_deplibs=yes
13711       ;;
13712
13713     linux*)
13714       case $cc_basename in
13715       tcc*)
13716         # Fabrice Bellard et al's Tiny C Compiler
13717         ld_shlibs=yes
13718         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13719         ;;
13720       esac
13721       ;;
13722
13723     netbsd* | netbsdelf*-gnu)
13724       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13725         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13726       else
13727         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13728       fi
13729       hardcode_libdir_flag_spec='-R$libdir'
13730       hardcode_direct=yes
13731       hardcode_shlibpath_var=no
13732       ;;
13733
13734     newsos6)
13735       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13736       hardcode_direct=yes
13737       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13738       hardcode_libdir_separator=:
13739       hardcode_shlibpath_var=no
13740       ;;
13741
13742     *nto* | *qnx*)
13743       ;;
13744
13745     openbsd* | bitrig*)
13746       if test -f /usr/libexec/ld.so; then
13747         hardcode_direct=yes
13748         hardcode_shlibpath_var=no
13749         hardcode_direct_absolute=yes
13750         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13751           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13752           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13753           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13754           export_dynamic_flag_spec='$wl-E'
13755         else
13756           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13757           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13758         fi
13759       else
13760         ld_shlibs=no
13761       fi
13762       ;;
13763
13764     os2*)
13765       hardcode_libdir_flag_spec='-L$libdir'
13766       hardcode_minus_L=yes
13767       allow_undefined_flag=unsupported
13768       shrext_cmds=.dll
13769       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13770         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13771         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13772         $ECHO EXPORTS >> $output_objdir/$libname.def~
13773         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13774         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13775         emximp -o $lib $output_objdir/$libname.def'
13776       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13777         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13778         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13779         $ECHO EXPORTS >> $output_objdir/$libname.def~
13780         prefix_cmds="$SED"~
13781         if test EXPORTS = "`$SED 1q $export_symbols`"; then
13782           prefix_cmds="$prefix_cmds -e 1d";
13783         fi~
13784         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13785         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13786         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13787         emximp -o $lib $output_objdir/$libname.def'
13788       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13789       enable_shared_with_static_runtimes=yes
13790       ;;
13791
13792     osf3*)
13793       if test yes = "$GCC"; then
13794         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13795         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'
13796       else
13797         allow_undefined_flag=' -expect_unresolved \*'
13798         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'
13799       fi
13800       archive_cmds_need_lc='no'
13801       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13802       hardcode_libdir_separator=:
13803       ;;
13804
13805     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13806       if test yes = "$GCC"; then
13807         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13808         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'
13809         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13810       else
13811         allow_undefined_flag=' -expect_unresolved \*'
13812         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'
13813         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~
13814           $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'
13815
13816         # Both c and cxx compiler support -rpath directly
13817         hardcode_libdir_flag_spec='-rpath $libdir'
13818       fi
13819       archive_cmds_need_lc='no'
13820       hardcode_libdir_separator=:
13821       ;;
13822
13823     solaris*)
13824       no_undefined_flag=' -z defs'
13825       if test yes = "$GCC"; then
13826         wlarc='$wl'
13827         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13828         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13829           $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'
13830       else
13831         case `$CC -V 2>&1` in
13832         *"Compilers 5.0"*)
13833           wlarc=''
13834           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13835           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13836             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13837           ;;
13838         *)
13839           wlarc='$wl'
13840           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13841           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13842             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13843           ;;
13844         esac
13845       fi
13846       hardcode_libdir_flag_spec='-R$libdir'
13847       hardcode_shlibpath_var=no
13848       case $host_os in
13849       solaris2.[0-5] | solaris2.[0-5].*) ;;
13850       *)
13851         # The compiler driver will combine and reorder linker options,
13852         # but understands '-z linker_flag'.  GCC discards it without '$wl',
13853         # but is careful enough not to reorder.
13854         # Supported since Solaris 2.6 (maybe 2.5.1?)
13855         if test yes = "$GCC"; then
13856           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13857         else
13858           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13859         fi
13860         ;;
13861       esac
13862       link_all_deplibs=yes
13863       ;;
13864
13865     sunos4*)
13866       if test sequent = "$host_vendor"; then
13867         # Use $CC to link under sequent, because it throws in some extra .o
13868         # files that make .init and .fini sections work.
13869         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13870       else
13871         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13872       fi
13873       hardcode_libdir_flag_spec='-L$libdir'
13874       hardcode_direct=yes
13875       hardcode_minus_L=yes
13876       hardcode_shlibpath_var=no
13877       ;;
13878
13879     sysv4)
13880       case $host_vendor in
13881         sni)
13882           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13883           hardcode_direct=yes # is this really true???
13884         ;;
13885         siemens)
13886           ## LD is ld it makes a PLAMLIB
13887           ## CC just makes a GrossModule.
13888           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13889           reload_cmds='$CC -r -o $output$reload_objs'
13890           hardcode_direct=no
13891         ;;
13892         motorola)
13893           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13894           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13895         ;;
13896       esac
13897       runpath_var='LD_RUN_PATH'
13898       hardcode_shlibpath_var=no
13899       ;;
13900
13901     sysv4.3*)
13902       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13903       hardcode_shlibpath_var=no
13904       export_dynamic_flag_spec='-Bexport'
13905       ;;
13906
13907     sysv4*MP*)
13908       if test -d /usr/nec; then
13909         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13910         hardcode_shlibpath_var=no
13911         runpath_var=LD_RUN_PATH
13912         hardcode_runpath_var=yes
13913         ld_shlibs=yes
13914       fi
13915       ;;
13916
13917     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13918       no_undefined_flag='$wl-z,text'
13919       archive_cmds_need_lc=no
13920       hardcode_shlibpath_var=no
13921       runpath_var='LD_RUN_PATH'
13922
13923       if test yes = "$GCC"; then
13924         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13925         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13926       else
13927         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13928         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13929       fi
13930       ;;
13931
13932     sysv5* | sco3.2v5* | sco5v6*)
13933       # Note: We CANNOT use -z defs as we might desire, because we do not
13934       # link with -lc, and that would cause any symbols used from libc to
13935       # always be unresolved, which means just about no library would
13936       # ever link correctly.  If we're not using GNU ld we use -z text
13937       # though, which does catch some bad symbols but isn't as heavy-handed
13938       # as -z defs.
13939       no_undefined_flag='$wl-z,text'
13940       allow_undefined_flag='$wl-z,nodefs'
13941       archive_cmds_need_lc=no
13942       hardcode_shlibpath_var=no
13943       hardcode_libdir_flag_spec='$wl-R,$libdir'
13944       hardcode_libdir_separator=':'
13945       link_all_deplibs=yes
13946       export_dynamic_flag_spec='$wl-Bexport'
13947       runpath_var='LD_RUN_PATH'
13948
13949       if test yes = "$GCC"; then
13950         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13951         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13952       else
13953         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13954         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13955       fi
13956       ;;
13957
13958     uts4*)
13959       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13960       hardcode_libdir_flag_spec='-L$libdir'
13961       hardcode_shlibpath_var=no
13962       ;;
13963
13964     *)
13965       ld_shlibs=no
13966       ;;
13967     esac
13968
13969     if test sni = "$host_vendor"; then
13970       case $host in
13971       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13972         export_dynamic_flag_spec='$wl-Blargedynsym'
13973         ;;
13974       esac
13975     fi
13976   fi
13977
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13979 $as_echo "$ld_shlibs" >&6; }
13980 test no = "$ld_shlibs" && can_build_shared=no
13981
13982 with_gnu_ld=$with_gnu_ld
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998 #
13999 # Do we need to explicitly link libc?
14000 #
14001 case "x$archive_cmds_need_lc" in
14002 x|xyes)
14003   # Assume -lc should be added
14004   archive_cmds_need_lc=yes
14005
14006   if test yes,yes = "$GCC,$enable_shared"; then
14007     case $archive_cmds in
14008     *'~'*)
14009       # FIXME: we may have to deal with multi-command sequences.
14010       ;;
14011     '$CC '*)
14012       # Test whether the compiler implicitly links with -lc since on some
14013       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14014       # to ld, don't add -lc before -lgcc.
14015       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14016 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14017 if ${lt_cv_archive_cmds_need_lc+:} false; then :
14018   $as_echo_n "(cached) " >&6
14019 else
14020   $RM conftest*
14021         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14022
14023         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14024   (eval $ac_compile) 2>&5
14025   ac_status=$?
14026   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14027   test $ac_status = 0; } 2>conftest.err; then
14028           soname=conftest
14029           lib=conftest
14030           libobjs=conftest.$ac_objext
14031           deplibs=
14032           wl=$lt_prog_compiler_wl
14033           pic_flag=$lt_prog_compiler_pic
14034           compiler_flags=-v
14035           linker_flags=-v
14036           verstring=
14037           output_objdir=.
14038           libname=conftest
14039           lt_save_allow_undefined_flag=$allow_undefined_flag
14040           allow_undefined_flag=
14041           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14042   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14043   ac_status=$?
14044   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14045   test $ac_status = 0; }
14046           then
14047             lt_cv_archive_cmds_need_lc=no
14048           else
14049             lt_cv_archive_cmds_need_lc=yes
14050           fi
14051           allow_undefined_flag=$lt_save_allow_undefined_flag
14052         else
14053           cat conftest.err 1>&5
14054         fi
14055         $RM conftest*
14056
14057 fi
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14059 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14060       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14061       ;;
14062     esac
14063   fi
14064   ;;
14065 esac
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14219 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14220
14221 if test yes = "$GCC"; then
14222   case $host_os in
14223     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14224     *) lt_awk_arg='/^libraries:/' ;;
14225   esac
14226   case $host_os in
14227     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14228     *) lt_sed_strip_eq='s|=/|/|g' ;;
14229   esac
14230   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14231   case $lt_search_path_spec in
14232   *\;*)
14233     # if the path contains ";" then we assume it to be the separator
14234     # otherwise default to the standard path separator (i.e. ":") - it is
14235     # assumed that no part of a normal pathname contains ";" but that should
14236     # okay in the real world where ";" in dirpaths is itself problematic.
14237     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14238     ;;
14239   *)
14240     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14241     ;;
14242   esac
14243   # Ok, now we have the path, separated by spaces, we can step through it
14244   # and add multilib dir if necessary...
14245   lt_tmp_lt_search_path_spec=
14246   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14247   # ...but if some path component already ends with the multilib dir we assume
14248   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14249   case "$lt_multi_os_dir; $lt_search_path_spec " in
14250   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14251     lt_multi_os_dir=
14252     ;;
14253   esac
14254   for lt_sys_path in $lt_search_path_spec; do
14255     if test -d "$lt_sys_path$lt_multi_os_dir"; then
14256       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14257     elif test -n "$lt_multi_os_dir"; then
14258       test -d "$lt_sys_path" && \
14259         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14260     fi
14261   done
14262   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14263 BEGIN {RS = " "; FS = "/|\n";} {
14264   lt_foo = "";
14265   lt_count = 0;
14266   for (lt_i = NF; lt_i > 0; lt_i--) {
14267     if ($lt_i != "" && $lt_i != ".") {
14268       if ($lt_i == "..") {
14269         lt_count++;
14270       } else {
14271         if (lt_count == 0) {
14272           lt_foo = "/" $lt_i lt_foo;
14273         } else {
14274           lt_count--;
14275         }
14276       }
14277     }
14278   }
14279   if (lt_foo != "") { lt_freq[lt_foo]++; }
14280   if (lt_freq[lt_foo] == 1) { print lt_foo; }
14281 }'`
14282   # AWK program above erroneously prepends '/' to C:/dos/paths
14283   # for these hosts.
14284   case $host_os in
14285     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14286       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14287   esac
14288   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14289 else
14290   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14291 fi
14292 library_names_spec=
14293 libname_spec='lib$name'
14294 soname_spec=
14295 shrext_cmds=.so
14296 postinstall_cmds=
14297 postuninstall_cmds=
14298 finish_cmds=
14299 finish_eval=
14300 shlibpath_var=
14301 shlibpath_overrides_runpath=unknown
14302 version_type=none
14303 dynamic_linker="$host_os ld.so"
14304 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14305 need_lib_prefix=unknown
14306 hardcode_into_libs=no
14307
14308 # when you set need_version to no, make sure it does not cause -set_version
14309 # flags to be left without arguments
14310 need_version=unknown
14311
14312
14313
14314 case $host_os in
14315 aix3*)
14316   version_type=linux # correct to gnu/linux during the next big refactor
14317   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14318   shlibpath_var=LIBPATH
14319
14320   # AIX 3 has no versioning support, so we append a major version to the name.
14321   soname_spec='$libname$release$shared_ext$major'
14322   ;;
14323
14324 aix[4-9]*)
14325   version_type=linux # correct to gnu/linux during the next big refactor
14326   need_lib_prefix=no
14327   need_version=no
14328   hardcode_into_libs=yes
14329   if test ia64 = "$host_cpu"; then
14330     # AIX 5 supports IA64
14331     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14332     shlibpath_var=LD_LIBRARY_PATH
14333   else
14334     # With GCC up to 2.95.x, collect2 would create an import file
14335     # for dependence libraries.  The import file would start with
14336     # the line '#! .'.  This would cause the generated library to
14337     # depend on '.', always an invalid library.  This was fixed in
14338     # development snapshots of GCC prior to 3.0.
14339     case $host_os in
14340       aix4 | aix4.[01] | aix4.[01].*)
14341       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14342            echo ' yes '
14343            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14344         :
14345       else
14346         can_build_shared=no
14347       fi
14348       ;;
14349     esac
14350     # Using Import Files as archive members, it is possible to support
14351     # filename-based versioning of shared library archives on AIX. While
14352     # this would work for both with and without runtime linking, it will
14353     # prevent static linking of such archives. So we do filename-based
14354     # shared library versioning with .so extension only, which is used
14355     # when both runtime linking and shared linking is enabled.
14356     # Unfortunately, runtime linking may impact performance, so we do
14357     # not want this to be the default eventually. Also, we use the
14358     # versioned .so libs for executables only if there is the -brtl
14359     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14360     # To allow for filename-based versioning support, we need to create
14361     # libNAME.so.V as an archive file, containing:
14362     # *) an Import File, referring to the versioned filename of the
14363     #    archive as well as the shared archive member, telling the
14364     #    bitwidth (32 or 64) of that shared object, and providing the
14365     #    list of exported symbols of that shared object, eventually
14366     #    decorated with the 'weak' keyword
14367     # *) the shared object with the F_LOADONLY flag set, to really avoid
14368     #    it being seen by the linker.
14369     # At run time we better use the real file rather than another symlink,
14370     # but for link time we create the symlink libNAME.so -> libNAME.so.V
14371
14372     case $with_aix_soname,$aix_use_runtimelinking in
14373     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14374     # soname into executable. Probably we can add versioning support to
14375     # collect2, so additional links can be useful in future.
14376     aix,yes) # traditional libtool
14377       dynamic_linker='AIX unversionable lib.so'
14378       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14379       # instead of lib<name>.a to let people know that these are not
14380       # typical AIX shared libraries.
14381       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14382       ;;
14383     aix,no) # traditional AIX only
14384       dynamic_linker='AIX lib.a(lib.so.V)'
14385       # We preserve .a as extension for shared libraries through AIX4.2
14386       # and later when we are not doing run time linking.
14387       library_names_spec='$libname$release.a $libname.a'
14388       soname_spec='$libname$release$shared_ext$major'
14389       ;;
14390     svr4,*) # full svr4 only
14391       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14392       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14393       # We do not specify a path in Import Files, so LIBPATH fires.
14394       shlibpath_overrides_runpath=yes
14395       ;;
14396     *,yes) # both, prefer svr4
14397       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14398       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14399       # unpreferred sharedlib libNAME.a needs extra handling
14400       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
14401       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
14402       # We do not specify a path in Import Files, so LIBPATH fires.
14403       shlibpath_overrides_runpath=yes
14404       ;;
14405     *,no) # both, prefer aix
14406       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14407       library_names_spec='$libname$release.a $libname.a'
14408       soname_spec='$libname$release$shared_ext$major'
14409       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14410       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
14411       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
14412       ;;
14413     esac
14414     shlibpath_var=LIBPATH
14415   fi
14416   ;;
14417
14418 amigaos*)
14419   case $host_cpu in
14420   powerpc)
14421     # Since July 2007 AmigaOS4 officially supports .so libraries.
14422     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14423     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14424     ;;
14425   m68k)
14426     library_names_spec='$libname.ixlibrary $libname.a'
14427     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14428     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14429     ;;
14430   esac
14431   ;;
14432
14433 beos*)
14434   library_names_spec='$libname$shared_ext'
14435   dynamic_linker="$host_os ld.so"
14436   shlibpath_var=LIBRARY_PATH
14437   ;;
14438
14439 bsdi[45]*)
14440   version_type=linux # correct to gnu/linux during the next big refactor
14441   need_version=no
14442   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14443   soname_spec='$libname$release$shared_ext$major'
14444   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14445   shlibpath_var=LD_LIBRARY_PATH
14446   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14447   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14448   # the default ld.so.conf also contains /usr/contrib/lib and
14449   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14450   # libtool to hard-code these into programs
14451   ;;
14452
14453 cygwin* | mingw* | pw32* | cegcc*)
14454   version_type=windows
14455   shrext_cmds=.dll
14456   need_version=no
14457   need_lib_prefix=no
14458
14459   case $GCC,$cc_basename in
14460   yes,*)
14461     # gcc
14462     library_names_spec='$libname.dll.a'
14463     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14464     postinstall_cmds='base_file=`basename \$file`~
14465       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14466       dldir=$destdir/`dirname \$dlpath`~
14467       test -d \$dldir || mkdir -p \$dldir~
14468       $install_prog $dir/$dlname \$dldir/$dlname~
14469       chmod a+x \$dldir/$dlname~
14470       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14471         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14472       fi'
14473     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14474       dlpath=$dir/\$dldll~
14475        $RM \$dlpath'
14476     shlibpath_overrides_runpath=yes
14477
14478     case $host_os in
14479     cygwin*)
14480       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14481       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14482
14483       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14484       ;;
14485     mingw* | cegcc*)
14486       # MinGW DLLs use traditional 'lib' prefix
14487       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14488       ;;
14489     pw32*)
14490       # pw32 DLLs use 'pw' prefix rather than 'lib'
14491       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14492       ;;
14493     esac
14494     dynamic_linker='Win32 ld.exe'
14495     ;;
14496
14497   *,cl*)
14498     # Native MSVC
14499     libname_spec='$name'
14500     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14501     library_names_spec='$libname.dll.lib'
14502
14503     case $build_os in
14504     mingw*)
14505       sys_lib_search_path_spec=
14506       lt_save_ifs=$IFS
14507       IFS=';'
14508       for lt_path in $LIB
14509       do
14510         IFS=$lt_save_ifs
14511         # Let DOS variable expansion print the short 8.3 style file name.
14512         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14513         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14514       done
14515       IFS=$lt_save_ifs
14516       # Convert to MSYS style.
14517       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14518       ;;
14519     cygwin*)
14520       # Convert to unix form, then to dos form, then back to unix form
14521       # but this time dos style (no spaces!) so that the unix form looks
14522       # like /cygdrive/c/PROGRA~1:/cygdr...
14523       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14524       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14525       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14526       ;;
14527     *)
14528       sys_lib_search_path_spec=$LIB
14529       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14530         # It is most probably a Windows format PATH.
14531         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14532       else
14533         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14534       fi
14535       # FIXME: find the short name or the path components, as spaces are
14536       # common. (e.g. "Program Files" -> "PROGRA~1")
14537       ;;
14538     esac
14539
14540     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14541     postinstall_cmds='base_file=`basename \$file`~
14542       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14543       dldir=$destdir/`dirname \$dlpath`~
14544       test -d \$dldir || mkdir -p \$dldir~
14545       $install_prog $dir/$dlname \$dldir/$dlname'
14546     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14547       dlpath=$dir/\$dldll~
14548        $RM \$dlpath'
14549     shlibpath_overrides_runpath=yes
14550     dynamic_linker='Win32 link.exe'
14551     ;;
14552
14553   *)
14554     # Assume MSVC wrapper
14555     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14556     dynamic_linker='Win32 ld.exe'
14557     ;;
14558   esac
14559   # FIXME: first we should search . and the directory the executable is in
14560   shlibpath_var=PATH
14561   ;;
14562
14563 darwin* | rhapsody*)
14564   dynamic_linker="$host_os dyld"
14565   version_type=darwin
14566   need_lib_prefix=no
14567   need_version=no
14568   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14569   soname_spec='$libname$release$major$shared_ext'
14570   shlibpath_overrides_runpath=yes
14571   shlibpath_var=DYLD_LIBRARY_PATH
14572   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14573
14574   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14575   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14576   ;;
14577
14578 dgux*)
14579   version_type=linux # correct to gnu/linux during the next big refactor
14580   need_lib_prefix=no
14581   need_version=no
14582   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14583   soname_spec='$libname$release$shared_ext$major'
14584   shlibpath_var=LD_LIBRARY_PATH
14585   ;;
14586
14587 freebsd* | dragonfly*)
14588   # DragonFly does not have aout.  When/if they implement a new
14589   # versioning mechanism, adjust this.
14590   if test -x /usr/bin/objformat; then
14591     objformat=`/usr/bin/objformat`
14592   else
14593     case $host_os in
14594     freebsd[23].*) objformat=aout ;;
14595     *) objformat=elf ;;
14596     esac
14597   fi
14598   version_type=freebsd-$objformat
14599   case $version_type in
14600     freebsd-elf*)
14601       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14602       soname_spec='$libname$release$shared_ext$major'
14603       need_version=no
14604       need_lib_prefix=no
14605       ;;
14606     freebsd-*)
14607       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14608       need_version=yes
14609       ;;
14610   esac
14611   shlibpath_var=LD_LIBRARY_PATH
14612   case $host_os in
14613   freebsd2.*)
14614     shlibpath_overrides_runpath=yes
14615     ;;
14616   freebsd3.[01]* | freebsdelf3.[01]*)
14617     shlibpath_overrides_runpath=yes
14618     hardcode_into_libs=yes
14619     ;;
14620   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14621   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14622     shlibpath_overrides_runpath=no
14623     hardcode_into_libs=yes
14624     ;;
14625   *) # from 4.6 on, and DragonFly
14626     shlibpath_overrides_runpath=yes
14627     hardcode_into_libs=yes
14628     ;;
14629   esac
14630   ;;
14631
14632 haiku*)
14633   version_type=linux # correct to gnu/linux during the next big refactor
14634   need_lib_prefix=no
14635   need_version=no
14636   dynamic_linker="$host_os runtime_loader"
14637   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14638   soname_spec='$libname$release$shared_ext$major'
14639   shlibpath_var=LIBRARY_PATH
14640   shlibpath_overrides_runpath=no
14641   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14642   hardcode_into_libs=yes
14643   ;;
14644
14645 hpux9* | hpux10* | hpux11*)
14646   # Give a soname corresponding to the major version so that dld.sl refuses to
14647   # link against other versions.
14648   version_type=sunos
14649   need_lib_prefix=no
14650   need_version=no
14651   case $host_cpu in
14652   ia64*)
14653     shrext_cmds='.so'
14654     hardcode_into_libs=yes
14655     dynamic_linker="$host_os dld.so"
14656     shlibpath_var=LD_LIBRARY_PATH
14657     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14658     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14659     soname_spec='$libname$release$shared_ext$major'
14660     if test 32 = "$HPUX_IA64_MODE"; then
14661       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14662       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14663     else
14664       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14665       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14666     fi
14667     ;;
14668   hppa*64*)
14669     shrext_cmds='.sl'
14670     hardcode_into_libs=yes
14671     dynamic_linker="$host_os dld.sl"
14672     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14673     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14674     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14675     soname_spec='$libname$release$shared_ext$major'
14676     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14677     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14678     ;;
14679   *)
14680     shrext_cmds='.sl'
14681     dynamic_linker="$host_os dld.sl"
14682     shlibpath_var=SHLIB_PATH
14683     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14684     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14685     soname_spec='$libname$release$shared_ext$major'
14686     ;;
14687   esac
14688   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14689   postinstall_cmds='chmod 555 $lib'
14690   # or fails outright, so override atomically:
14691   install_override_mode=555
14692   ;;
14693
14694 interix[3-9]*)
14695   version_type=linux # correct to gnu/linux during the next big refactor
14696   need_lib_prefix=no
14697   need_version=no
14698   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14699   soname_spec='$libname$release$shared_ext$major'
14700   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14701   shlibpath_var=LD_LIBRARY_PATH
14702   shlibpath_overrides_runpath=no
14703   hardcode_into_libs=yes
14704   ;;
14705
14706 irix5* | irix6* | nonstopux*)
14707   case $host_os in
14708     nonstopux*) version_type=nonstopux ;;
14709     *)
14710         if test yes = "$lt_cv_prog_gnu_ld"; then
14711                 version_type=linux # correct to gnu/linux during the next big refactor
14712         else
14713                 version_type=irix
14714         fi ;;
14715   esac
14716   need_lib_prefix=no
14717   need_version=no
14718   soname_spec='$libname$release$shared_ext$major'
14719   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14720   case $host_os in
14721   irix5* | nonstopux*)
14722     libsuff= shlibsuff=
14723     ;;
14724   *)
14725     case $LD in # libtool.m4 will add one of these switches to LD
14726     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14727       libsuff= shlibsuff= libmagic=32-bit;;
14728     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14729       libsuff=32 shlibsuff=N32 libmagic=N32;;
14730     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14731       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14732     *) libsuff= shlibsuff= libmagic=never-match;;
14733     esac
14734     ;;
14735   esac
14736   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14737   shlibpath_overrides_runpath=no
14738   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14739   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14740   hardcode_into_libs=yes
14741   ;;
14742
14743 # No shared lib support for Linux oldld, aout, or coff.
14744 linux*oldld* | linux*aout* | linux*coff*)
14745   dynamic_linker=no
14746   ;;
14747
14748 linux*android*)
14749   version_type=none # Android doesn't support versioned libraries.
14750   need_lib_prefix=no
14751   need_version=no
14752   library_names_spec='$libname$release$shared_ext'
14753   soname_spec='$libname$release$shared_ext'
14754   finish_cmds=
14755   shlibpath_var=LD_LIBRARY_PATH
14756   shlibpath_overrides_runpath=yes
14757
14758   # This implies no fast_install, which is unacceptable.
14759   # Some rework will be needed to allow for fast_install
14760   # before this can be enabled.
14761   hardcode_into_libs=yes
14762
14763   dynamic_linker='Android linker'
14764   # Don't embed -rpath directories since the linker doesn't support them.
14765   hardcode_libdir_flag_spec='-L$libdir'
14766   ;;
14767
14768 # This must be glibc/ELF.
14769 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14770   version_type=linux # correct to gnu/linux during the next big refactor
14771   need_lib_prefix=no
14772   need_version=no
14773   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14774   soname_spec='$libname$release$shared_ext$major'
14775   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14776   shlibpath_var=LD_LIBRARY_PATH
14777   shlibpath_overrides_runpath=no
14778
14779   # Some binutils ld are patched to set DT_RUNPATH
14780   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14781   $as_echo_n "(cached) " >&6
14782 else
14783   lt_cv_shlibpath_overrides_runpath=no
14784     save_LDFLAGS=$LDFLAGS
14785     save_libdir=$libdir
14786     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14787          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14788     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14789 /* end confdefs.h.  */
14790
14791 int main (void)
14792 {
14793
14794  ;
14795  return 0;
14796 }
14797 _ACEOF
14798 if ac_fn_c_try_link "$LINENO"; then :
14799   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14800   lt_cv_shlibpath_overrides_runpath=yes
14801 fi
14802 fi
14803 rm -f core conftest.err conftest.$ac_objext \
14804     conftest$ac_exeext conftest.$ac_ext
14805     LDFLAGS=$save_LDFLAGS
14806     libdir=$save_libdir
14807
14808 fi
14809
14810   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14811
14812   # This implies no fast_install, which is unacceptable.
14813   # Some rework will be needed to allow for fast_install
14814   # before this can be enabled.
14815   hardcode_into_libs=yes
14816
14817   # Ideally, we could use ldconfig to report *all* directores which are
14818   # searched for libraries, however this is still not possible.  Aside from not
14819   # being certain /sbin/ldconfig is available, command
14820   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14821   # even though it is searched at run-time.  Try to do the best guess by
14822   # appending ld.so.conf contents (and includes) to the search path.
14823   if test -f /etc/ld.so.conf; then
14824     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' ' '`
14825     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14826   fi
14827
14828   # We used to test for /lib/ld.so.1 and disable shared libraries on
14829   # powerpc, because MkLinux only supported shared libraries with the
14830   # GNU dynamic linker.  Since this was broken with cross compilers,
14831   # most powerpc-linux boxes support dynamic linking these days and
14832   # people can always --disable-shared, the test was removed, and we
14833   # assume the GNU/Linux dynamic linker is in use.
14834   dynamic_linker='GNU/Linux ld.so'
14835   ;;
14836
14837 netbsdelf*-gnu)
14838   version_type=linux
14839   need_lib_prefix=no
14840   need_version=no
14841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14842   soname_spec='${libname}${release}${shared_ext}$major'
14843   shlibpath_var=LD_LIBRARY_PATH
14844   shlibpath_overrides_runpath=no
14845   hardcode_into_libs=yes
14846   dynamic_linker='NetBSD ld.elf_so'
14847   ;;
14848
14849 netbsd*)
14850   version_type=sunos
14851   need_lib_prefix=no
14852   need_version=no
14853   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14854     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14855     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14856     dynamic_linker='NetBSD (a.out) ld.so'
14857   else
14858     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14859     soname_spec='$libname$release$shared_ext$major'
14860     dynamic_linker='NetBSD ld.elf_so'
14861   fi
14862   shlibpath_var=LD_LIBRARY_PATH
14863   shlibpath_overrides_runpath=yes
14864   hardcode_into_libs=yes
14865   ;;
14866
14867 newsos6)
14868   version_type=linux # correct to gnu/linux during the next big refactor
14869   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14870   shlibpath_var=LD_LIBRARY_PATH
14871   shlibpath_overrides_runpath=yes
14872   ;;
14873
14874 *nto* | *qnx*)
14875   version_type=qnx
14876   need_lib_prefix=no
14877   need_version=no
14878   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14879   soname_spec='$libname$release$shared_ext$major'
14880   shlibpath_var=LD_LIBRARY_PATH
14881   shlibpath_overrides_runpath=no
14882   hardcode_into_libs=yes
14883   dynamic_linker='ldqnx.so'
14884   ;;
14885
14886 openbsd* | bitrig*)
14887   version_type=sunos
14888   sys_lib_dlsearch_path_spec=/usr/lib
14889   need_lib_prefix=no
14890   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14891     need_version=no
14892   else
14893     need_version=yes
14894   fi
14895   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14896   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14897   shlibpath_var=LD_LIBRARY_PATH
14898   shlibpath_overrides_runpath=yes
14899   ;;
14900
14901 os2*)
14902   libname_spec='$name'
14903   version_type=windows
14904   shrext_cmds=.dll
14905   need_version=no
14906   need_lib_prefix=no
14907   # OS/2 can only load a DLL with a base name of 8 characters or less.
14908   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14909     v=$($ECHO $release$versuffix | tr -d .-);
14910     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14911     $ECHO $n$v`$shared_ext'
14912   library_names_spec='${libname}_dll.$libext'
14913   dynamic_linker='OS/2 ld.exe'
14914   shlibpath_var=BEGINLIBPATH
14915   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14916   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14917   postinstall_cmds='base_file=`basename \$file`~
14918     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14919     dldir=$destdir/`dirname \$dlpath`~
14920     test -d \$dldir || mkdir -p \$dldir~
14921     $install_prog $dir/$dlname \$dldir/$dlname~
14922     chmod a+x \$dldir/$dlname~
14923     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14924       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14925     fi'
14926   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14927     dlpath=$dir/\$dldll~
14928     $RM \$dlpath'
14929   ;;
14930
14931 osf3* | osf4* | osf5*)
14932   version_type=osf
14933   need_lib_prefix=no
14934   need_version=no
14935   soname_spec='$libname$release$shared_ext$major'
14936   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14937   shlibpath_var=LD_LIBRARY_PATH
14938   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14939   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14940   ;;
14941
14942 rdos*)
14943   dynamic_linker=no
14944   ;;
14945
14946 solaris*)
14947   version_type=linux # correct to gnu/linux during the next big refactor
14948   need_lib_prefix=no
14949   need_version=no
14950   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14951   soname_spec='$libname$release$shared_ext$major'
14952   shlibpath_var=LD_LIBRARY_PATH
14953   shlibpath_overrides_runpath=yes
14954   hardcode_into_libs=yes
14955   # ldd complains unless libraries are executable
14956   postinstall_cmds='chmod +x $lib'
14957   ;;
14958
14959 sunos4*)
14960   version_type=sunos
14961   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14962   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14963   shlibpath_var=LD_LIBRARY_PATH
14964   shlibpath_overrides_runpath=yes
14965   if test yes = "$with_gnu_ld"; then
14966     need_lib_prefix=no
14967   fi
14968   need_version=yes
14969   ;;
14970
14971 sysv4 | sysv4.3*)
14972   version_type=linux # correct to gnu/linux during the next big refactor
14973   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14974   soname_spec='$libname$release$shared_ext$major'
14975   shlibpath_var=LD_LIBRARY_PATH
14976   case $host_vendor in
14977     sni)
14978       shlibpath_overrides_runpath=no
14979       need_lib_prefix=no
14980       runpath_var=LD_RUN_PATH
14981       ;;
14982     siemens)
14983       need_lib_prefix=no
14984       ;;
14985     motorola)
14986       need_lib_prefix=no
14987       need_version=no
14988       shlibpath_overrides_runpath=no
14989       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14990       ;;
14991   esac
14992   ;;
14993
14994 sysv4*MP*)
14995   if test -d /usr/nec; then
14996     version_type=linux # correct to gnu/linux during the next big refactor
14997     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14998     soname_spec='$libname$shared_ext.$major'
14999     shlibpath_var=LD_LIBRARY_PATH
15000   fi
15001   ;;
15002
15003 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15004   version_type=sco
15005   need_lib_prefix=no
15006   need_version=no
15007   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15008   soname_spec='$libname$release$shared_ext$major'
15009   shlibpath_var=LD_LIBRARY_PATH
15010   shlibpath_overrides_runpath=yes
15011   hardcode_into_libs=yes
15012   if test yes = "$with_gnu_ld"; then
15013     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15014   else
15015     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15016     case $host_os in
15017       sco3.2v5*)
15018         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15019         ;;
15020     esac
15021   fi
15022   sys_lib_dlsearch_path_spec='/usr/lib'
15023   ;;
15024
15025 tpf*)
15026   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15027   version_type=linux # correct to gnu/linux during the next big refactor
15028   need_lib_prefix=no
15029   need_version=no
15030   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15031   shlibpath_var=LD_LIBRARY_PATH
15032   shlibpath_overrides_runpath=no
15033   hardcode_into_libs=yes
15034   ;;
15035
15036 uts4*)
15037   version_type=linux # correct to gnu/linux during the next big refactor
15038   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15039   soname_spec='$libname$release$shared_ext$major'
15040   shlibpath_var=LD_LIBRARY_PATH
15041   ;;
15042
15043 *)
15044   dynamic_linker=no
15045   ;;
15046 esac
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15048 $as_echo "$dynamic_linker" >&6; }
15049 test no = "$dynamic_linker" && can_build_shared=no
15050
15051 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15052 if test yes = "$GCC"; then
15053   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15054 fi
15055
15056 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15057   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15058 fi
15059
15060 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15061   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15062 fi
15063
15064 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15065 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15066
15067 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15068 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15069
15070 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15071 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15170 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15171 hardcode_action=
15172 if test -n "$hardcode_libdir_flag_spec" ||
15173    test -n "$runpath_var" ||
15174    test yes = "$hardcode_automatic"; then
15175
15176   # We can hardcode non-existent directories.
15177   if test no != "$hardcode_direct" &&
15178      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15179      # have to relink, otherwise we might link with an installed library
15180      # when we should be linking with a yet-to-be-installed one
15181      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15182      test no != "$hardcode_minus_L"; then
15183     # Linking always hardcodes the temporary library directory.
15184     hardcode_action=relink
15185   else
15186     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15187     hardcode_action=immediate
15188   fi
15189 else
15190   # We cannot hardcode anything, or else we can only hardcode existing
15191   # directories.
15192   hardcode_action=unsupported
15193 fi
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15195 $as_echo "$hardcode_action" >&6; }
15196
15197 if test relink = "$hardcode_action" ||
15198    test yes = "$inherit_rpath"; then
15199   # Fast installation is not supported
15200   enable_fast_install=no
15201 elif test yes = "$shlibpath_overrides_runpath" ||
15202      test no = "$enable_shared"; then
15203   # Fast installation is not necessary
15204   enable_fast_install=needless
15205 fi
15206
15207
15208
15209
15210
15211
15212   if test yes != "$enable_dlopen"; then
15213   enable_dlopen=unknown
15214   enable_dlopen_self=unknown
15215   enable_dlopen_self_static=unknown
15216 else
15217   lt_cv_dlopen=no
15218   lt_cv_dlopen_libs=
15219
15220   case $host_os in
15221   beos*)
15222     lt_cv_dlopen=load_add_on
15223     lt_cv_dlopen_libs=
15224     lt_cv_dlopen_self=yes
15225     ;;
15226
15227   mingw* | pw32* | cegcc*)
15228     lt_cv_dlopen=LoadLibrary
15229     lt_cv_dlopen_libs=
15230     ;;
15231
15232   cygwin*)
15233     lt_cv_dlopen=dlopen
15234     lt_cv_dlopen_libs=
15235     ;;
15236
15237   darwin*)
15238     # if libdl is installed we need to link against it
15239     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15240 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15241 if ${ac_cv_lib_dl_dlopen+:} false; then :
15242   $as_echo_n "(cached) " >&6
15243 else
15244   ac_check_lib_save_LIBS=$LIBS
15245 LIBS="-ldl  $LIBS"
15246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15247 /* end confdefs.h.  */
15248
15249
15250 #ifdef __cplusplus
15251 extern "C"
15252 #endif
15253 char dlopen ();
15254 int main (void)
15255 {
15256 return dlopen ();
15257  ;
15258  return 0;
15259 }
15260 _ACEOF
15261 if ac_fn_c_try_link "$LINENO"; then :
15262   ac_cv_lib_dl_dlopen=yes
15263 else
15264   ac_cv_lib_dl_dlopen=no
15265 fi
15266 rm -f core conftest.err conftest.$ac_objext \
15267     conftest$ac_exeext conftest.$ac_ext
15268 LIBS=$ac_check_lib_save_LIBS
15269 fi
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15271 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15272 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15273   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15274 else
15275
15276     lt_cv_dlopen=dyld
15277     lt_cv_dlopen_libs=
15278     lt_cv_dlopen_self=yes
15279
15280 fi
15281
15282     ;;
15283
15284   tpf*)
15285     # Don't try to run any link tests for TPF.  We know it's impossible
15286     # because TPF is a cross-compiler, and we know how we open DSOs.
15287     lt_cv_dlopen=dlopen
15288     lt_cv_dlopen_libs=
15289     lt_cv_dlopen_self=no
15290     ;;
15291
15292   *)
15293     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15294 if test "x$ac_cv_func_shl_load" = xyes; then :
15295   lt_cv_dlopen=shl_load
15296 else
15297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15298 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15299 if ${ac_cv_lib_dld_shl_load+:} false; then :
15300   $as_echo_n "(cached) " >&6
15301 else
15302   ac_check_lib_save_LIBS=$LIBS
15303 LIBS="-ldld  $LIBS"
15304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15305 /* end confdefs.h.  */
15306
15307
15308 #ifdef __cplusplus
15309 extern "C"
15310 #endif
15311 char shl_load ();
15312 int main (void)
15313 {
15314 return shl_load ();
15315  ;
15316  return 0;
15317 }
15318 _ACEOF
15319 if ac_fn_c_try_link "$LINENO"; then :
15320   ac_cv_lib_dld_shl_load=yes
15321 else
15322   ac_cv_lib_dld_shl_load=no
15323 fi
15324 rm -f core conftest.err conftest.$ac_objext \
15325     conftest$ac_exeext conftest.$ac_ext
15326 LIBS=$ac_check_lib_save_LIBS
15327 fi
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15329 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15330 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15331   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15332 else
15333   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15334 if test "x$ac_cv_func_dlopen" = xyes; then :
15335   lt_cv_dlopen=dlopen
15336 else
15337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15338 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15339 if ${ac_cv_lib_dl_dlopen+:} false; then :
15340   $as_echo_n "(cached) " >&6
15341 else
15342   ac_check_lib_save_LIBS=$LIBS
15343 LIBS="-ldl  $LIBS"
15344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15345 /* end confdefs.h.  */
15346
15347
15348 #ifdef __cplusplus
15349 extern "C"
15350 #endif
15351 char dlopen ();
15352 int main (void)
15353 {
15354 return dlopen ();
15355  ;
15356  return 0;
15357 }
15358 _ACEOF
15359 if ac_fn_c_try_link "$LINENO"; then :
15360   ac_cv_lib_dl_dlopen=yes
15361 else
15362   ac_cv_lib_dl_dlopen=no
15363 fi
15364 rm -f core conftest.err conftest.$ac_objext \
15365     conftest$ac_exeext conftest.$ac_ext
15366 LIBS=$ac_check_lib_save_LIBS
15367 fi
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15369 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15370 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15371   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15372 else
15373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15374 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15375 if ${ac_cv_lib_svld_dlopen+:} false; then :
15376   $as_echo_n "(cached) " >&6
15377 else
15378   ac_check_lib_save_LIBS=$LIBS
15379 LIBS="-lsvld  $LIBS"
15380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15381 /* end confdefs.h.  */
15382
15383
15384 #ifdef __cplusplus
15385 extern "C"
15386 #endif
15387 char dlopen ();
15388 int main (void)
15389 {
15390 return dlopen ();
15391  ;
15392  return 0;
15393 }
15394 _ACEOF
15395 if ac_fn_c_try_link "$LINENO"; then :
15396   ac_cv_lib_svld_dlopen=yes
15397 else
15398   ac_cv_lib_svld_dlopen=no
15399 fi
15400 rm -f core conftest.err conftest.$ac_objext \
15401     conftest$ac_exeext conftest.$ac_ext
15402 LIBS=$ac_check_lib_save_LIBS
15403 fi
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15405 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15406 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15407   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15408 else
15409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15410 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15411 if ${ac_cv_lib_dld_dld_link+:} false; then :
15412   $as_echo_n "(cached) " >&6
15413 else
15414   ac_check_lib_save_LIBS=$LIBS
15415 LIBS="-ldld  $LIBS"
15416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15417 /* end confdefs.h.  */
15418
15419
15420 #ifdef __cplusplus
15421 extern "C"
15422 #endif
15423 char dld_link ();
15424 int main (void)
15425 {
15426 return dld_link ();
15427  ;
15428  return 0;
15429 }
15430 _ACEOF
15431 if ac_fn_c_try_link "$LINENO"; then :
15432   ac_cv_lib_dld_dld_link=yes
15433 else
15434   ac_cv_lib_dld_dld_link=no
15435 fi
15436 rm -f core conftest.err conftest.$ac_objext \
15437     conftest$ac_exeext conftest.$ac_ext
15438 LIBS=$ac_check_lib_save_LIBS
15439 fi
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15441 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15442 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15443   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15444 fi
15445
15446
15447 fi
15448
15449
15450 fi
15451
15452
15453 fi
15454
15455
15456 fi
15457
15458
15459 fi
15460
15461     ;;
15462   esac
15463
15464   if test no = "$lt_cv_dlopen"; then
15465     enable_dlopen=no
15466   else
15467     enable_dlopen=yes
15468   fi
15469
15470   case $lt_cv_dlopen in
15471   dlopen)
15472     save_CPPFLAGS=$CPPFLAGS
15473     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15474
15475     save_LDFLAGS=$LDFLAGS
15476     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15477
15478     save_LIBS=$LIBS
15479     LIBS="$lt_cv_dlopen_libs $LIBS"
15480
15481     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15482 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15483 if ${lt_cv_dlopen_self+:} false; then :
15484   $as_echo_n "(cached) " >&6
15485 else
15486           if test yes = "$cross_compiling"; then :
15487   lt_cv_dlopen_self=cross
15488 else
15489   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15490   lt_status=$lt_dlunknown
15491   cat > conftest.$ac_ext <<_LT_EOF
15492 #line $LINENO "configure"
15493 #include "confdefs.h"
15494
15495 #if HAVE_DLFCN_H
15496 #include <dlfcn.h>
15497 #endif
15498
15499 #include <stdio.h>
15500
15501 #ifdef RTLD_GLOBAL
15502 #  define LT_DLGLOBAL           RTLD_GLOBAL
15503 #else
15504 #  ifdef DL_GLOBAL
15505 #    define LT_DLGLOBAL         DL_GLOBAL
15506 #  else
15507 #    define LT_DLGLOBAL         0
15508 #  endif
15509 #endif
15510
15511 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15512    find out it does not work in some platform. */
15513 #ifndef LT_DLLAZY_OR_NOW
15514 #  ifdef RTLD_LAZY
15515 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15516 #  else
15517 #    ifdef DL_LAZY
15518 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15519 #    else
15520 #      ifdef RTLD_NOW
15521 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15522 #      else
15523 #        ifdef DL_NOW
15524 #          define LT_DLLAZY_OR_NOW      DL_NOW
15525 #        else
15526 #          define LT_DLLAZY_OR_NOW      0
15527 #        endif
15528 #      endif
15529 #    endif
15530 #  endif
15531 #endif
15532
15533 /* When -fvisibility=hidden is used, assume the code has been annotated
15534    correspondingly for the symbols needed.  */
15535 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15536 int fnord () __attribute__((visibility("default")));
15537 #endif
15538
15539 int fnord () { return 42; }
15540 int main ()
15541 {
15542   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15543   int status = $lt_dlunknown;
15544
15545   if (self)
15546     {
15547       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15548       else
15549         {
15550           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15551           else puts (dlerror ());
15552         }
15553       /* dlclose (self); */
15554     }
15555   else
15556     puts (dlerror ());
15557
15558   return status;
15559 }
15560 _LT_EOF
15561   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15562   (eval $ac_link) 2>&5
15563   ac_status=$?
15564   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15565   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15566     (./conftest; exit; ) >&5 2>/dev/null
15567     lt_status=$?
15568     case x$lt_status in
15569       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15570       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15571       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15572     esac
15573   else :
15574     # compilation failed
15575     lt_cv_dlopen_self=no
15576   fi
15577 fi
15578 rm -fr conftest*
15579
15580
15581 fi
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15583 $as_echo "$lt_cv_dlopen_self" >&6; }
15584
15585     if test yes = "$lt_cv_dlopen_self"; then
15586       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15587       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15588 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15589 if ${lt_cv_dlopen_self_static+:} false; then :
15590   $as_echo_n "(cached) " >&6
15591 else
15592           if test yes = "$cross_compiling"; then :
15593   lt_cv_dlopen_self_static=cross
15594 else
15595   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15596   lt_status=$lt_dlunknown
15597   cat > conftest.$ac_ext <<_LT_EOF
15598 #line $LINENO "configure"
15599 #include "confdefs.h"
15600
15601 #if HAVE_DLFCN_H
15602 #include <dlfcn.h>
15603 #endif
15604
15605 #include <stdio.h>
15606
15607 #ifdef RTLD_GLOBAL
15608 #  define LT_DLGLOBAL           RTLD_GLOBAL
15609 #else
15610 #  ifdef DL_GLOBAL
15611 #    define LT_DLGLOBAL         DL_GLOBAL
15612 #  else
15613 #    define LT_DLGLOBAL         0
15614 #  endif
15615 #endif
15616
15617 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15618    find out it does not work in some platform. */
15619 #ifndef LT_DLLAZY_OR_NOW
15620 #  ifdef RTLD_LAZY
15621 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15622 #  else
15623 #    ifdef DL_LAZY
15624 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15625 #    else
15626 #      ifdef RTLD_NOW
15627 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15628 #      else
15629 #        ifdef DL_NOW
15630 #          define LT_DLLAZY_OR_NOW      DL_NOW
15631 #        else
15632 #          define LT_DLLAZY_OR_NOW      0
15633 #        endif
15634 #      endif
15635 #    endif
15636 #  endif
15637 #endif
15638
15639 /* When -fvisibility=hidden is used, assume the code has been annotated
15640    correspondingly for the symbols needed.  */
15641 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15642 int fnord () __attribute__((visibility("default")));
15643 #endif
15644
15645 int fnord () { return 42; }
15646 int main ()
15647 {
15648   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15649   int status = $lt_dlunknown;
15650
15651   if (self)
15652     {
15653       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15654       else
15655         {
15656           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15657           else puts (dlerror ());
15658         }
15659       /* dlclose (self); */
15660     }
15661   else
15662     puts (dlerror ());
15663
15664   return status;
15665 }
15666 _LT_EOF
15667   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15668   (eval $ac_link) 2>&5
15669   ac_status=$?
15670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15671   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15672     (./conftest; exit; ) >&5 2>/dev/null
15673     lt_status=$?
15674     case x$lt_status in
15675       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15676       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15677       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15678     esac
15679   else :
15680     # compilation failed
15681     lt_cv_dlopen_self_static=no
15682   fi
15683 fi
15684 rm -fr conftest*
15685
15686
15687 fi
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15689 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15690     fi
15691
15692     CPPFLAGS=$save_CPPFLAGS
15693     LDFLAGS=$save_LDFLAGS
15694     LIBS=$save_LIBS
15695     ;;
15696   esac
15697
15698   case $lt_cv_dlopen_self in
15699   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15700   *) enable_dlopen_self=unknown ;;
15701   esac
15702
15703   case $lt_cv_dlopen_self_static in
15704   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15705   *) enable_dlopen_self_static=unknown ;;
15706   esac
15707 fi
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725 striplib=
15726 old_striplib=
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15728 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15729 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15730   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15731   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15733 $as_echo "yes" >&6; }
15734 else
15735 # FIXME - insert some real tests, host_os isn't really good enough
15736   case $host_os in
15737   darwin*)
15738     if test -n "$STRIP"; then
15739       striplib="$STRIP -x"
15740       old_striplib="$STRIP -S"
15741       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15742 $as_echo "yes" >&6; }
15743     else
15744       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15745 $as_echo "no" >&6; }
15746     fi
15747     ;;
15748   *)
15749     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15750 $as_echo "no" >&6; }
15751     ;;
15752   esac
15753 fi
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766   # Report what library types will actually be built
15767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15768 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15770 $as_echo "$can_build_shared" >&6; }
15771
15772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15773 $as_echo_n "checking whether to build shared libraries... " >&6; }
15774   test no = "$can_build_shared" && enable_shared=no
15775
15776   # On AIX, shared libraries and static libraries use the same namespace, and
15777   # are all built from PIC.
15778   case $host_os in
15779   aix3*)
15780     test yes = "$enable_shared" && enable_static=no
15781     if test -n "$RANLIB"; then
15782       archive_cmds="$archive_cmds~\$RANLIB \$lib"
15783       postinstall_cmds='$RANLIB $lib'
15784     fi
15785     ;;
15786
15787   aix[4-9]*)
15788     if test ia64 != "$host_cpu"; then
15789       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15790       yes,aix,yes) ;;                   # shared object as lib.so file only
15791       yes,svr4,*) ;;                    # shared object as lib.so archive member only
15792       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
15793       esac
15794     fi
15795     ;;
15796   esac
15797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15798 $as_echo "$enable_shared" >&6; }
15799
15800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15801 $as_echo_n "checking whether to build static libraries... " >&6; }
15802   # Make sure either enable_shared or enable_static is yes.
15803   test yes = "$enable_shared" || enable_static=yes
15804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15805 $as_echo "$enable_static" >&6; }
15806
15807
15808
15809
15810 fi
15811 ac_ext=c
15812 ac_cpp='$CPP $CPPFLAGS'
15813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15816
15817 CC=$lt_save_CC
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833         ac_config_commands="$ac_config_commands libtool"
15834
15835
15836
15837
15838 # Only expand once:
15839
15840
15841 ## --------------------- ##
15842 ##  End of libtool code  ##
15843 ## --------------------- ##
15844
15845 #
15846 # Verify if finally libtool shared libraries will be built
15847 #
15848
15849 case "x$enable_shared" in # ((
15850   xyes | xno)
15851     xc_lt_build_shared=$enable_shared
15852     ;;
15853   *)
15854     as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15855     ;;
15856 esac
15857
15858 #
15859 # Verify if finally libtool static libraries will be built
15860 #
15861
15862 case "x$enable_static" in # ((
15863   xyes | xno)
15864     xc_lt_build_static=$enable_static
15865     ;;
15866   *)
15867     as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15868     ;;
15869 esac
15870
15871 #
15872 # Verify if libtool shared libraries should be linked using flag -version-info
15873 #
15874
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15876 $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15877 xc_lt_shlib_use_version_info='yes'
15878 if test "x$version_type" = 'xnone'; then
15879   xc_lt_shlib_use_version_info='no'
15880 fi
15881 case $host_os in # (
15882   amigaos*)
15883     xc_lt_shlib_use_version_info='yes'
15884     ;;
15885 esac
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15887 $as_echo "$xc_lt_shlib_use_version_info" >&6; }
15888
15889 #
15890 # Verify if libtool shared libraries should be linked using flag -no-undefined
15891 #
15892
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15894 $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15895 xc_lt_shlib_use_no_undefined='no'
15896 if test "x$allow_undefined" = 'xno'; then
15897   xc_lt_shlib_use_no_undefined='yes'
15898 elif test "x$allow_undefined_flag" = 'xunsupported'; then
15899   xc_lt_shlib_use_no_undefined='yes'
15900 fi
15901 case $host_os in # (
15902   cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15903     xc_lt_shlib_use_no_undefined='yes'
15904     ;;
15905 esac
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15907 $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15908
15909 #
15910 # Verify if libtool shared libraries should be linked using flag -mimpure-text
15911 #
15912
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15914 $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15915 xc_lt_shlib_use_mimpure_text='no'
15916 case $host_os in # (
15917   solaris2*)
15918     if test "x$GCC" = 'xyes'; then
15919       xc_lt_shlib_use_mimpure_text='yes'
15920     fi
15921     ;;
15922 esac
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15924 $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15925
15926 #
15927 # Find out wether libtool libraries would be built wit PIC
15928 #
15929
15930 case "x$pic_mode" in # ((((
15931   xdefault)
15932     xc_lt_build_shared_with_pic='yes'
15933     xc_lt_build_static_with_pic='no'
15934     ;;
15935   xyes)
15936     xc_lt_build_shared_with_pic='yes'
15937     xc_lt_build_static_with_pic='yes'
15938     ;;
15939   xno)
15940     xc_lt_build_shared_with_pic='no'
15941     xc_lt_build_static_with_pic='no'
15942     ;;
15943   *)
15944     xc_lt_build_shared_with_pic='unknown'
15945     xc_lt_build_static_with_pic='unknown'
15946     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15947 $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15948     ;;
15949 esac
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15951 $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15953 $as_echo "$xc_lt_build_shared_with_pic" >&6; }
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15955 $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15957 $as_echo "$xc_lt_build_static_with_pic" >&6; }
15958
15959 #
15960 # Verify if libtool shared libraries will be built while static not built
15961 #
15962
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15964 $as_echo_n "checking whether to build shared libraries only... " >&6; }
15965 if test "$xc_lt_build_shared" = 'yes' &&
15966   test "$xc_lt_build_static" = 'no'; then
15967   xc_lt_build_shared_only='yes'
15968 else
15969   xc_lt_build_shared_only='no'
15970 fi
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15972 $as_echo "$xc_lt_build_shared_only" >&6; }
15973
15974 #
15975 # Verify if libtool static libraries will be built while shared not built
15976 #
15977
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15979 $as_echo_n "checking whether to build static libraries only... " >&6; }
15980 if test "$xc_lt_build_static" = 'yes' &&
15981   test "$xc_lt_build_shared" = 'no'; then
15982   xc_lt_build_static_only='yes'
15983 else
15984   xc_lt_build_static_only='no'
15985 fi
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15987 $as_echo "$xc_lt_build_static_only" >&6; }
15988
15989
15990
15991
15992 #
15993 # Automake conditionals based on libtool related checks
15994 #
15995
15996  if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15997   CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15998   CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15999 else
16000   CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
16001   CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
16002 fi
16003
16004  if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
16005   CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
16006   CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
16007 else
16008   CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
16009   CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
16010 fi
16011
16012  if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
16013   CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
16014   CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
16015 else
16016   CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
16017   CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
16018 fi
16019
16020
16021 #
16022 # Due to libtool and automake machinery limitations of not allowing
16023 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
16024 # inclusion of these in shared or static libraries, we are forced to
16025 # build using separate configure runs for shared and static libraries
16026 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
16027 # to compile objects for each kind of library. Notice that relying on
16028 # the '-DPIC' CFLAG that libtool provides is not valid given that the
16029 # user might for example choose to build static libraries with PIC.
16030 #
16031
16032 #
16033 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
16034 # targeting a static library and not building its shared counterpart.
16035 #
16036
16037  if test "x$xc_lt_build_static_only" = 'xyes'; then
16038   USE_CPPFLAG_CURL_STATICLIB_TRUE=
16039   USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
16040 else
16041   USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
16042   USE_CPPFLAG_CURL_STATICLIB_FALSE=
16043 fi
16044
16045
16046 #
16047 # Make staticlib CPPFLAG variable and its definition visible in output
16048 # files unconditionally, providing an empty definition unless strictly
16049 # targeting a static library and not building its shared counterpart.
16050 #
16051
16052 CPPFLAG_CURL_STATICLIB=
16053 if test "x$xc_lt_build_static_only" = 'xyes'; then
16054   CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
16055 fi
16056
16057
16058
16059 # Determine whether all dependent libraries must be specified when linking
16060 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
16061 then
16062     REQUIRE_LIB_DEPS=no
16063 else
16064     REQUIRE_LIB_DEPS=yes
16065 fi
16066
16067  if test x$REQUIRE_LIB_DEPS = xyes; then
16068   USE_EXPLICIT_LIB_DEPS_TRUE=
16069   USE_EXPLICIT_LIB_DEPS_FALSE='#'
16070 else
16071   USE_EXPLICIT_LIB_DEPS_TRUE='#'
16072   USE_EXPLICIT_LIB_DEPS_FALSE=
16073 fi
16074
16075
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16077 $as_echo_n "checking for inline... " >&6; }
16078 if ${ac_cv_c_inline+:} false; then :
16079   $as_echo_n "(cached) " >&6
16080 else
16081   ac_cv_c_inline=no
16082 for ac_kw in inline __inline__ __inline; do
16083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16084 /* end confdefs.h.  */
16085 #ifndef __cplusplus
16086 typedef int foo_t;
16087 static $ac_kw foo_t static_foo () {return 0; }
16088 $ac_kw foo_t foo () {return 0; }
16089 #endif
16090
16091 _ACEOF
16092 if ac_fn_c_try_compile "$LINENO"; then :
16093   ac_cv_c_inline=$ac_kw
16094 fi
16095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16096   test "$ac_cv_c_inline" != no && break
16097 done
16098
16099 fi
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16101 $as_echo "$ac_cv_c_inline" >&6; }
16102
16103 case $ac_cv_c_inline in
16104   inline | yes) ;;
16105   *)
16106     case $ac_cv_c_inline in
16107       no) ac_val=;;
16108       *) ac_val=$ac_cv_c_inline;;
16109     esac
16110     cat >>confdefs.h <<_ACEOF
16111 #ifndef __cplusplus
16112 #define inline $ac_val
16113 #endif
16114 _ACEOF
16115     ;;
16116 esac
16117
16118
16119
16120
16121   #
16122   compiler_id="unknown"
16123   compiler_num="0"
16124   #
16125   flags_dbg_all="unknown"
16126   flags_dbg_yes="unknown"
16127   flags_dbg_off="unknown"
16128   flags_opt_all="unknown"
16129   flags_opt_yes="unknown"
16130   flags_opt_off="unknown"
16131   #
16132   flags_prefer_cppflags="no"
16133   #
16134
16135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
16136 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
16137
16138     OLDCPPFLAGS=$CPPFLAGS
16139   # CPPPFLAG comes from CURL_CPP_P
16140   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16141       if test -z "$SED"; then
16142     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16143   fi
16144   if test -z "$GREP"; then
16145     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16146   fi
16147
16148   tmp_exp=""
16149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16150 /* end confdefs.h.  */
16151
16152
16153 #ifdef __DECC
16154 CURL_DEF_TOKEN __DECC
16155 #endif
16156
16157
16158 _ACEOF
16159 if ac_fn_c_try_cpp "$LINENO"; then :
16160
16161     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16162       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16163       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16164       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16165     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
16166       tmp_exp=""
16167     fi
16168
16169 fi
16170 rm -f conftest.err conftest.i conftest.$ac_ext
16171   if test -z "$tmp_exp"; then
16172     curl_cv_have_def___DECC=no
16173
16174   else
16175     curl_cv_have_def___DECC=yes
16176     curl_cv_def___DECC=$tmp_exp
16177
16178   fi
16179       CPPFLAGS=$OLDCPPFLAGS
16180
16181
16182     OLDCPPFLAGS=$CPPFLAGS
16183   # CPPPFLAG comes from CURL_CPP_P
16184   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16185       if test -z "$SED"; then
16186     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16187   fi
16188   if test -z "$GREP"; then
16189     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16190   fi
16191
16192   tmp_exp=""
16193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16194 /* end confdefs.h.  */
16195
16196
16197 #ifdef __DECC_VER
16198 CURL_DEF_TOKEN __DECC_VER
16199 #endif
16200
16201
16202 _ACEOF
16203 if ac_fn_c_try_cpp "$LINENO"; then :
16204
16205     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16206       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16207       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16208       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16209     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
16210       tmp_exp=""
16211     fi
16212
16213 fi
16214 rm -f conftest.err conftest.i conftest.$ac_ext
16215   if test -z "$tmp_exp"; then
16216     curl_cv_have_def___DECC_VER=no
16217
16218   else
16219     curl_cv_have_def___DECC_VER=yes
16220     curl_cv_def___DECC_VER=$tmp_exp
16221
16222   fi
16223       CPPFLAGS=$OLDCPPFLAGS
16224
16225   if test "$curl_cv_have_def___DECC" = "yes" &&
16226     test "$curl_cv_have_def___DECC_VER" = "yes"; then
16227     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16228 $as_echo "yes" >&6; }
16229     compiler_id="DEC_C"
16230     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16231     flags_dbg_yes="-g2"
16232     flags_dbg_off=""
16233     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
16234     flags_opt_yes="-O1"
16235     flags_opt_off="-O0"
16236   else
16237     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16238 $as_echo "no" >&6; }
16239   fi
16240
16241
16242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
16243 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
16244
16245     OLDCPPFLAGS=$CPPFLAGS
16246   # CPPPFLAG comes from CURL_CPP_P
16247   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16248       if test -z "$SED"; then
16249     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16250   fi
16251   if test -z "$GREP"; then
16252     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16253   fi
16254
16255   tmp_exp=""
16256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16257 /* end confdefs.h.  */
16258
16259
16260 #ifdef __HP_cc
16261 CURL_DEF_TOKEN __HP_cc
16262 #endif
16263
16264
16265 _ACEOF
16266 if ac_fn_c_try_cpp "$LINENO"; then :
16267
16268     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16269       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16270       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16271       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16272     if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
16273       tmp_exp=""
16274     fi
16275
16276 fi
16277 rm -f conftest.err conftest.i conftest.$ac_ext
16278   if test -z "$tmp_exp"; then
16279     curl_cv_have_def___HP_cc=no
16280
16281   else
16282     curl_cv_have_def___HP_cc=yes
16283     curl_cv_def___HP_cc=$tmp_exp
16284
16285   fi
16286       CPPFLAGS=$OLDCPPFLAGS
16287
16288   if test "$curl_cv_have_def___HP_cc" = "yes"; then
16289     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16290 $as_echo "yes" >&6; }
16291     compiler_id="HP_UX_C"
16292     flags_dbg_all="-g -s"
16293     flags_dbg_yes="-g"
16294     flags_dbg_off="-s"
16295     flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
16296     flags_opt_yes="+O2"
16297     flags_opt_off="+O0"
16298   else
16299     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16300 $as_echo "no" >&6; }
16301   fi
16302
16303
16304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
16305 $as_echo_n "checking if compiler is IBM C... " >&6; }
16306
16307     OLDCPPFLAGS=$CPPFLAGS
16308   # CPPPFLAG comes from CURL_CPP_P
16309   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16310       if test -z "$SED"; then
16311     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16312   fi
16313   if test -z "$GREP"; then
16314     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16315   fi
16316
16317   tmp_exp=""
16318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16319 /* end confdefs.h.  */
16320
16321
16322 #ifdef __IBMC__
16323 CURL_DEF_TOKEN __IBMC__
16324 #endif
16325
16326
16327 _ACEOF
16328 if ac_fn_c_try_cpp "$LINENO"; then :
16329
16330     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16331       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16332       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16333       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16334     if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
16335       tmp_exp=""
16336     fi
16337
16338 fi
16339 rm -f conftest.err conftest.i conftest.$ac_ext
16340   if test -z "$tmp_exp"; then
16341     curl_cv_have_def___IBMC__=no
16342
16343   else
16344     curl_cv_have_def___IBMC__=yes
16345     curl_cv_def___IBMC__=$tmp_exp
16346
16347   fi
16348       CPPFLAGS=$OLDCPPFLAGS
16349
16350   if test "$curl_cv_have_def___IBMC__" = "yes"; then
16351     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16352 $as_echo "yes" >&6; }
16353     compiler_id="IBM_C"
16354     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16355     flags_dbg_yes="-g"
16356     flags_dbg_off=""
16357     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
16358     flags_opt_all="$flags_opt_all -qnooptimize"
16359     flags_opt_all="$flags_opt_all -qoptimize=0"
16360     flags_opt_all="$flags_opt_all -qoptimize=1"
16361     flags_opt_all="$flags_opt_all -qoptimize=2"
16362     flags_opt_all="$flags_opt_all -qoptimize=3"
16363     flags_opt_all="$flags_opt_all -qoptimize=4"
16364     flags_opt_all="$flags_opt_all -qoptimize=5"
16365     flags_opt_yes="-O2"
16366     flags_opt_off="-qnooptimize"
16367     flags_prefer_cppflags="yes"
16368   else
16369     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16370 $as_echo "no" >&6; }
16371   fi
16372
16373
16374     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
16375 $as_echo_n "checking if compiler is Intel C... " >&6; }
16376
16377     OLDCPPFLAGS=$CPPFLAGS
16378   # CPPPFLAG comes from CURL_CPP_P
16379   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16380       if test -z "$SED"; then
16381     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16382   fi
16383   if test -z "$GREP"; then
16384     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16385   fi
16386
16387   tmp_exp=""
16388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16389 /* end confdefs.h.  */
16390
16391
16392 #ifdef __INTEL_COMPILER
16393 CURL_DEF_TOKEN __INTEL_COMPILER
16394 #endif
16395
16396
16397 _ACEOF
16398 if ac_fn_c_try_cpp "$LINENO"; then :
16399
16400     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16401       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16402       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16403       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16404     if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
16405       tmp_exp=""
16406     fi
16407
16408 fi
16409 rm -f conftest.err conftest.i conftest.$ac_ext
16410   if test -z "$tmp_exp"; then
16411     curl_cv_have_def___INTEL_COMPILER=no
16412
16413   else
16414     curl_cv_have_def___INTEL_COMPILER=yes
16415     curl_cv_def___INTEL_COMPILER=$tmp_exp
16416
16417   fi
16418       CPPFLAGS=$OLDCPPFLAGS
16419
16420   if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
16421     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16422 $as_echo "yes" >&6; }
16423     compiler_num="$curl_cv_def___INTEL_COMPILER"
16424
16425     OLDCPPFLAGS=$CPPFLAGS
16426   # CPPPFLAG comes from CURL_CPP_P
16427   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16428       if test -z "$SED"; then
16429     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16430   fi
16431   if test -z "$GREP"; then
16432     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16433   fi
16434
16435   tmp_exp=""
16436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16437 /* end confdefs.h.  */
16438
16439
16440 #ifdef __unix__
16441 CURL_DEF_TOKEN __unix__
16442 #endif
16443
16444
16445 _ACEOF
16446 if ac_fn_c_try_cpp "$LINENO"; then :
16447
16448     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16449       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16450       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16451       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16452     if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16453       tmp_exp=""
16454     fi
16455
16456 fi
16457 rm -f conftest.err conftest.i conftest.$ac_ext
16458   if test -z "$tmp_exp"; then
16459     curl_cv_have_def___unix__=no
16460
16461   else
16462     curl_cv_have_def___unix__=yes
16463     curl_cv_def___unix__=$tmp_exp
16464
16465   fi
16466       CPPFLAGS=$OLDCPPFLAGS
16467
16468     if test "$curl_cv_have_def___unix__" = "yes"; then
16469       compiler_id="INTEL_UNIX_C"
16470       flags_dbg_all="-g -g0"
16471       flags_dbg_yes="-g"
16472       flags_dbg_off=""
16473       flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16474       flags_opt_yes="-O2"
16475       flags_opt_off="-O0"
16476     else
16477       compiler_id="INTEL_WINDOWS_C"
16478       flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
16479       flags_dbg_all="$flags_dbg_all /debug"
16480       flags_dbg_all="$flags_dbg_all /debug:none"
16481       flags_dbg_all="$flags_dbg_all /debug:minimal"
16482       flags_dbg_all="$flags_dbg_all /debug:partial"
16483       flags_dbg_all="$flags_dbg_all /debug:full"
16484       flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
16485       flags_dbg_all="$flags_dbg_all /debug:extended"
16486       flags_dbg_yes="/Zi /Oy-"
16487       flags_dbg_off="/debug:none /Oy-"
16488       flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16489       flags_opt_yes="/O2"
16490       flags_opt_off="/Od"
16491     fi
16492   else
16493     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16494 $as_echo "no" >&6; }
16495   fi
16496
16497
16498     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16499 $as_echo_n "checking if compiler is clang... " >&6; }
16500
16501     OLDCPPFLAGS=$CPPFLAGS
16502   # CPPPFLAG comes from CURL_CPP_P
16503   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16504       if test -z "$SED"; then
16505     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16506   fi
16507   if test -z "$GREP"; then
16508     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16509   fi
16510
16511   tmp_exp=""
16512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16513 /* end confdefs.h.  */
16514
16515
16516 #ifdef __clang__
16517 CURL_DEF_TOKEN __clang__
16518 #endif
16519
16520
16521 _ACEOF
16522 if ac_fn_c_try_cpp "$LINENO"; then :
16523
16524     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16525       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16526       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16527       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16528     if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16529       tmp_exp=""
16530     fi
16531
16532 fi
16533 rm -f conftest.err conftest.i conftest.$ac_ext
16534   if test -z "$tmp_exp"; then
16535     curl_cv_have_def___clang__=no
16536
16537   else
16538     curl_cv_have_def___clang__=yes
16539     curl_cv_def___clang__=$tmp_exp
16540
16541   fi
16542       CPPFLAGS=$OLDCPPFLAGS
16543
16544   if test "$curl_cv_have_def___clang__" = "yes"; then
16545     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16546 $as_echo "yes" >&6; }
16547     compiler_id="CLANG"
16548     clangver=`$CC -dumpversion`
16549     clangvhi=`echo $clangver | cut -d . -f1`
16550     clangvlo=`echo $clangver | cut -d . -f2`
16551     compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16552     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16553     flags_dbg_all="$flags_dbg_all -ggdb"
16554     flags_dbg_all="$flags_dbg_all -gstabs"
16555     flags_dbg_all="$flags_dbg_all -gstabs+"
16556     flags_dbg_all="$flags_dbg_all -gcoff"
16557     flags_dbg_all="$flags_dbg_all -gxcoff"
16558     flags_dbg_all="$flags_dbg_all -gdwarf-2"
16559     flags_dbg_all="$flags_dbg_all -gvms"
16560     flags_dbg_yes="-g"
16561     flags_dbg_off=""
16562     flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16563     flags_opt_yes="-Os"
16564     flags_opt_off="-O0"
16565   else
16566     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16567 $as_echo "no" >&6; }
16568   fi
16569
16570
16571       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16572 $as_echo_n "checking if compiler is GNU C... " >&6; }
16573
16574     OLDCPPFLAGS=$CPPFLAGS
16575   # CPPPFLAG comes from CURL_CPP_P
16576   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16577       if test -z "$SED"; then
16578     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16579   fi
16580   if test -z "$GREP"; then
16581     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16582   fi
16583
16584   tmp_exp=""
16585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16586 /* end confdefs.h.  */
16587
16588
16589 #ifdef __GNUC__
16590 CURL_DEF_TOKEN __GNUC__
16591 #endif
16592
16593
16594 _ACEOF
16595 if ac_fn_c_try_cpp "$LINENO"; then :
16596
16597     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16598       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16599       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16600       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16601     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16602       tmp_exp=""
16603     fi
16604
16605 fi
16606 rm -f conftest.err conftest.i conftest.$ac_ext
16607   if test -z "$tmp_exp"; then
16608     curl_cv_have_def___GNUC__=no
16609
16610   else
16611     curl_cv_have_def___GNUC__=yes
16612     curl_cv_def___GNUC__=$tmp_exp
16613
16614   fi
16615       CPPFLAGS=$OLDCPPFLAGS
16616
16617   if test "$curl_cv_have_def___GNUC__" = "yes" &&
16618     test "$compiler_id" = "unknown"; then
16619     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16620 $as_echo "yes" >&6; }
16621     compiler_id="GNU_C"
16622     gccver=`$CC -dumpversion`
16623     gccvhi=`echo $gccver | cut -d . -f1`
16624     gccvlo=`echo $gccver | cut -d . -f2`
16625     compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16626     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16627     flags_dbg_all="$flags_dbg_all -ggdb"
16628     flags_dbg_all="$flags_dbg_all -gstabs"
16629     flags_dbg_all="$flags_dbg_all -gstabs+"
16630     flags_dbg_all="$flags_dbg_all -gcoff"
16631     flags_dbg_all="$flags_dbg_all -gxcoff"
16632     flags_dbg_all="$flags_dbg_all -gdwarf-2"
16633     flags_dbg_all="$flags_dbg_all -gvms"
16634     flags_dbg_yes="-g"
16635     flags_dbg_off=""
16636     flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16637     flags_opt_yes="-O2"
16638     flags_opt_off="-O0"
16639
16640     OLDCPPFLAGS=$CPPFLAGS
16641   # CPPPFLAG comes from CURL_CPP_P
16642   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16643       if test -z "$SED"; then
16644     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16645   fi
16646   if test -z "$GREP"; then
16647     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16648   fi
16649
16650   tmp_exp=""
16651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16652 /* end confdefs.h.  */
16653
16654
16655 #ifdef _WIN32
16656 CURL_DEF_TOKEN _WIN32
16657 #endif
16658
16659
16660 _ACEOF
16661 if ac_fn_c_try_cpp "$LINENO"; then :
16662
16663     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16664       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16665       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16666       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16667     if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16668       tmp_exp=""
16669     fi
16670
16671 fi
16672 rm -f conftest.err conftest.i conftest.$ac_ext
16673   if test -z "$tmp_exp"; then
16674     curl_cv_have_def__WIN32=no
16675
16676   else
16677     curl_cv_have_def__WIN32=yes
16678     curl_cv_def__WIN32=$tmp_exp
16679
16680   fi
16681       CPPFLAGS=$OLDCPPFLAGS
16682
16683   else
16684     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16685 $as_echo "no" >&6; }
16686   fi
16687
16688
16689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16690 $as_echo_n "checking if compiler is LCC... " >&6; }
16691
16692     OLDCPPFLAGS=$CPPFLAGS
16693   # CPPPFLAG comes from CURL_CPP_P
16694   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16695       if test -z "$SED"; then
16696     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16697   fi
16698   if test -z "$GREP"; then
16699     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16700   fi
16701
16702   tmp_exp=""
16703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16704 /* end confdefs.h.  */
16705
16706
16707 #ifdef __LCC__
16708 CURL_DEF_TOKEN __LCC__
16709 #endif
16710
16711
16712 _ACEOF
16713 if ac_fn_c_try_cpp "$LINENO"; then :
16714
16715     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16716       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16717       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16718       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16719     if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16720       tmp_exp=""
16721     fi
16722
16723 fi
16724 rm -f conftest.err conftest.i conftest.$ac_ext
16725   if test -z "$tmp_exp"; then
16726     curl_cv_have_def___LCC__=no
16727
16728   else
16729     curl_cv_have_def___LCC__=yes
16730     curl_cv_def___LCC__=$tmp_exp
16731
16732   fi
16733       CPPFLAGS=$OLDCPPFLAGS
16734
16735   if test "$curl_cv_have_def___LCC__" = "yes"; then
16736     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16737 $as_echo "yes" >&6; }
16738     compiler_id="LCC"
16739     flags_dbg_all="-g"
16740     flags_dbg_yes="-g"
16741     flags_dbg_off=""
16742     flags_opt_all=""
16743     flags_opt_yes=""
16744     flags_opt_off=""
16745   else
16746     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16747 $as_echo "no" >&6; }
16748   fi
16749
16750
16751     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16752 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16753
16754     OLDCPPFLAGS=$CPPFLAGS
16755   # CPPPFLAG comes from CURL_CPP_P
16756   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16757       if test -z "$SED"; then
16758     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16759   fi
16760   if test -z "$GREP"; then
16761     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16762   fi
16763
16764   tmp_exp=""
16765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16766 /* end confdefs.h.  */
16767
16768
16769 #ifdef __GNUC__
16770 CURL_DEF_TOKEN __GNUC__
16771 #endif
16772
16773
16774 _ACEOF
16775 if ac_fn_c_try_cpp "$LINENO"; then :
16776
16777     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16778       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16779       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16780       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16781     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16782       tmp_exp=""
16783     fi
16784
16785 fi
16786 rm -f conftest.err conftest.i conftest.$ac_ext
16787   if test -z "$tmp_exp"; then
16788     curl_cv_have_def___GNUC__=no
16789
16790   else
16791     curl_cv_have_def___GNUC__=yes
16792     curl_cv_def___GNUC__=$tmp_exp
16793
16794   fi
16795       CPPFLAGS=$OLDCPPFLAGS
16796
16797
16798     OLDCPPFLAGS=$CPPFLAGS
16799   # CPPPFLAG comes from CURL_CPP_P
16800   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16801       if test -z "$SED"; then
16802     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16803   fi
16804   if test -z "$GREP"; then
16805     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16806   fi
16807
16808   tmp_exp=""
16809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16810 /* end confdefs.h.  */
16811
16812
16813 #ifdef _COMPILER_VERSION
16814 CURL_DEF_TOKEN _COMPILER_VERSION
16815 #endif
16816
16817
16818 _ACEOF
16819 if ac_fn_c_try_cpp "$LINENO"; then :
16820
16821     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16822       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16823       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16824       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16825     if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16826       tmp_exp=""
16827     fi
16828
16829 fi
16830 rm -f conftest.err conftest.i conftest.$ac_ext
16831   if test -z "$tmp_exp"; then
16832     curl_cv_have_def__COMPILER_VERSION=no
16833
16834   else
16835     curl_cv_have_def__COMPILER_VERSION=yes
16836     curl_cv_def__COMPILER_VERSION=$tmp_exp
16837
16838   fi
16839       CPPFLAGS=$OLDCPPFLAGS
16840
16841
16842     OLDCPPFLAGS=$CPPFLAGS
16843   # CPPPFLAG comes from CURL_CPP_P
16844   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16845       if test -z "$SED"; then
16846     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16847   fi
16848   if test -z "$GREP"; then
16849     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16850   fi
16851
16852   tmp_exp=""
16853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16854 /* end confdefs.h.  */
16855
16856
16857 #ifdef _SGI_COMPILER_VERSION
16858 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16859 #endif
16860
16861
16862 _ACEOF
16863 if ac_fn_c_try_cpp "$LINENO"; then :
16864
16865     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16866       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16867       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16868       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16869     if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16870       tmp_exp=""
16871     fi
16872
16873 fi
16874 rm -f conftest.err conftest.i conftest.$ac_ext
16875   if test -z "$tmp_exp"; then
16876     curl_cv_have_def__SGI_COMPILER_VERSION=no
16877
16878   else
16879     curl_cv_have_def__SGI_COMPILER_VERSION=yes
16880     curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16881
16882   fi
16883       CPPFLAGS=$OLDCPPFLAGS
16884
16885   if test "$curl_cv_have_def___GNUC__" = "no" &&
16886     (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16887      test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16888     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16889 $as_echo "yes" >&6; }
16890     compiler_id="SGI_MIPSPRO_C"
16891     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16892     flags_dbg_yes="-g"
16893     flags_dbg_off=""
16894     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16895     flags_opt_yes="-O2"
16896     flags_opt_off="-O0"
16897   else
16898     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16899 $as_echo "no" >&6; }
16900   fi
16901
16902
16903     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16904 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16905
16906     OLDCPPFLAGS=$CPPFLAGS
16907   # CPPPFLAG comes from CURL_CPP_P
16908   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16909       if test -z "$SED"; then
16910     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16911   fi
16912   if test -z "$GREP"; then
16913     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16914   fi
16915
16916   tmp_exp=""
16917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16918 /* end confdefs.h.  */
16919
16920
16921 #ifdef __GNUC__
16922 CURL_DEF_TOKEN __GNUC__
16923 #endif
16924
16925
16926 _ACEOF
16927 if ac_fn_c_try_cpp "$LINENO"; then :
16928
16929     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16930       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16931       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16932       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16933     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16934       tmp_exp=""
16935     fi
16936
16937 fi
16938 rm -f conftest.err conftest.i conftest.$ac_ext
16939   if test -z "$tmp_exp"; then
16940     curl_cv_have_def___GNUC__=no
16941
16942   else
16943     curl_cv_have_def___GNUC__=yes
16944     curl_cv_def___GNUC__=$tmp_exp
16945
16946   fi
16947       CPPFLAGS=$OLDCPPFLAGS
16948
16949
16950     OLDCPPFLAGS=$CPPFLAGS
16951   # CPPPFLAG comes from CURL_CPP_P
16952   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16953       if test -z "$SED"; then
16954     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16955   fi
16956   if test -z "$GREP"; then
16957     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16958   fi
16959
16960   tmp_exp=""
16961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16962 /* end confdefs.h.  */
16963
16964
16965 #ifdef __sgi
16966 CURL_DEF_TOKEN __sgi
16967 #endif
16968
16969
16970 _ACEOF
16971 if ac_fn_c_try_cpp "$LINENO"; then :
16972
16973     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16974       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16975       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16976       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16977     if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16978       tmp_exp=""
16979     fi
16980
16981 fi
16982 rm -f conftest.err conftest.i conftest.$ac_ext
16983   if test -z "$tmp_exp"; then
16984     curl_cv_have_def___sgi=no
16985
16986   else
16987     curl_cv_have_def___sgi=yes
16988     curl_cv_def___sgi=$tmp_exp
16989
16990   fi
16991       CPPFLAGS=$OLDCPPFLAGS
16992
16993   if test "$curl_cv_have_def___GNUC__" = "no" &&
16994     test "$curl_cv_have_def___sgi" = "yes" &&
16995     test "$compiler_id" = "unknown"; then
16996     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16997 $as_echo "yes" >&6; }
16998     compiler_id="SGI_MIPS_C"
16999     flags_dbg_all="-g -g0 -g1 -g2 -g3"
17000     flags_dbg_yes="-g"
17001     flags_dbg_off=""
17002     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
17003     flags_opt_yes="-O2"
17004     flags_opt_off="-O0"
17005   else
17006     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17007 $as_echo "no" >&6; }
17008   fi
17009
17010
17011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
17012 $as_echo_n "checking if compiler is SunPro C... " >&6; }
17013
17014     OLDCPPFLAGS=$CPPFLAGS
17015   # CPPPFLAG comes from CURL_CPP_P
17016   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17017       if test -z "$SED"; then
17018     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17019   fi
17020   if test -z "$GREP"; then
17021     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17022   fi
17023
17024   tmp_exp=""
17025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17026 /* end confdefs.h.  */
17027
17028
17029 #ifdef __SUNPRO_C
17030 CURL_DEF_TOKEN __SUNPRO_C
17031 #endif
17032
17033
17034 _ACEOF
17035 if ac_fn_c_try_cpp "$LINENO"; then :
17036
17037     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17038       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17039       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17040       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17041     if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
17042       tmp_exp=""
17043     fi
17044
17045 fi
17046 rm -f conftest.err conftest.i conftest.$ac_ext
17047   if test -z "$tmp_exp"; then
17048     curl_cv_have_def___SUNPRO_C=no
17049
17050   else
17051     curl_cv_have_def___SUNPRO_C=yes
17052     curl_cv_def___SUNPRO_C=$tmp_exp
17053
17054   fi
17055       CPPFLAGS=$OLDCPPFLAGS
17056
17057   if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
17058     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17059 $as_echo "yes" >&6; }
17060     compiler_id="SUNPRO_C"
17061     flags_dbg_all="-g -s"
17062     flags_dbg_yes="-g"
17063     flags_dbg_off="-s"
17064     flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
17065     flags_opt_yes="-xO2"
17066     flags_opt_off=""
17067   else
17068     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17069 $as_echo "no" >&6; }
17070   fi
17071
17072
17073   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
17074 $as_echo_n "checking if compiler is Tiny C... " >&6; }
17075
17076     OLDCPPFLAGS=$CPPFLAGS
17077   # CPPPFLAG comes from CURL_CPP_P
17078   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17079       if test -z "$SED"; then
17080     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17081   fi
17082   if test -z "$GREP"; then
17083     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17084   fi
17085
17086   tmp_exp=""
17087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17088 /* end confdefs.h.  */
17089
17090
17091 #ifdef __TINYC__
17092 CURL_DEF_TOKEN __TINYC__
17093 #endif
17094
17095
17096 _ACEOF
17097 if ac_fn_c_try_cpp "$LINENO"; then :
17098
17099     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17100       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17101       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17102       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17103     if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
17104       tmp_exp=""
17105     fi
17106
17107 fi
17108 rm -f conftest.err conftest.i conftest.$ac_ext
17109   if test -z "$tmp_exp"; then
17110     curl_cv_have_def___TINYC__=no
17111
17112   else
17113     curl_cv_have_def___TINYC__=yes
17114     curl_cv_def___TINYC__=$tmp_exp
17115
17116   fi
17117       CPPFLAGS=$OLDCPPFLAGS
17118
17119   if test "$curl_cv_have_def___TINYC__" = "yes"; then
17120     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17121 $as_echo "yes" >&6; }
17122     compiler_id="TINY_C"
17123     flags_dbg_all="-g -b"
17124     flags_dbg_yes="-g"
17125     flags_dbg_off=""
17126     flags_opt_all=""
17127     flags_opt_yes=""
17128     flags_opt_off=""
17129   else
17130     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17131 $as_echo "no" >&6; }
17132   fi
17133
17134
17135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
17136 $as_echo_n "checking if compiler is Watcom C... " >&6; }
17137
17138     OLDCPPFLAGS=$CPPFLAGS
17139   # CPPPFLAG comes from CURL_CPP_P
17140   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17141       if test -z "$SED"; then
17142     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17143   fi
17144   if test -z "$GREP"; then
17145     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17146   fi
17147
17148   tmp_exp=""
17149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17150 /* end confdefs.h.  */
17151
17152
17153 #ifdef __WATCOMC__
17154 CURL_DEF_TOKEN __WATCOMC__
17155 #endif
17156
17157
17158 _ACEOF
17159 if ac_fn_c_try_cpp "$LINENO"; then :
17160
17161     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17162       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17163       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17164       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17165     if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
17166       tmp_exp=""
17167     fi
17168
17169 fi
17170 rm -f conftest.err conftest.i conftest.$ac_ext
17171   if test -z "$tmp_exp"; then
17172     curl_cv_have_def___WATCOMC__=no
17173
17174   else
17175     curl_cv_have_def___WATCOMC__=yes
17176     curl_cv_def___WATCOMC__=$tmp_exp
17177
17178   fi
17179       CPPFLAGS=$OLDCPPFLAGS
17180
17181   if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
17182     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17183 $as_echo "yes" >&6; }
17184
17185     OLDCPPFLAGS=$CPPFLAGS
17186   # CPPPFLAG comes from CURL_CPP_P
17187   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17188       if test -z "$SED"; then
17189     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17190   fi
17191   if test -z "$GREP"; then
17192     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17193   fi
17194
17195   tmp_exp=""
17196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17197 /* end confdefs.h.  */
17198
17199
17200 #ifdef __UNIX__
17201 CURL_DEF_TOKEN __UNIX__
17202 #endif
17203
17204
17205 _ACEOF
17206 if ac_fn_c_try_cpp "$LINENO"; then :
17207
17208     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17209       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17210       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17211       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17212     if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
17213       tmp_exp=""
17214     fi
17215
17216 fi
17217 rm -f conftest.err conftest.i conftest.$ac_ext
17218   if test -z "$tmp_exp"; then
17219     curl_cv_have_def___UNIX__=no
17220
17221   else
17222     curl_cv_have_def___UNIX__=yes
17223     curl_cv_def___UNIX__=$tmp_exp
17224
17225   fi
17226       CPPFLAGS=$OLDCPPFLAGS
17227
17228     if test "$curl_cv_have_def___UNIX__" = "yes"; then
17229       compiler_id="WATCOM_UNIX_C"
17230       flags_dbg_all="-g1 -g1+ -g2 -g3"
17231       flags_dbg_yes="-g2"
17232       flags_dbg_off=""
17233       flags_opt_all="-O0 -O1 -O2 -O3"
17234       flags_opt_yes="-O2"
17235       flags_opt_off="-O0"
17236     else
17237       compiler_id="WATCOM_WINDOWS_C"
17238       flags_dbg_all=""
17239       flags_dbg_yes=""
17240       flags_dbg_off=""
17241       flags_opt_all=""
17242       flags_opt_yes=""
17243       flags_opt_off=""
17244     fi
17245   else
17246     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17247 $as_echo "no" >&6; }
17248   fi
17249
17250   #
17251   if test "$compiler_id" = "unknown"; then
17252   cat <<_EOF 1>&2
17253 ***
17254 *** Warning: This configure script does not have information about the
17255 *** compiler you are using, relative to the flags required to enable or
17256 *** disable generation of debug info, optimization options or warnings.
17257 ***
17258 *** Whatever settings are present in CFLAGS will be used for this run.
17259 ***
17260 *** If you wish to help the curl project to better support your compiler
17261 *** you can report this and the required info on the libcurl development
17262 *** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
17263 ***
17264 _EOF
17265   fi
17266
17267
17268 squeeze() {
17269   _sqz_result=""
17270   eval _sqz_input=\$$1
17271   for _sqz_token in $_sqz_input; do
17272     if test -z "$_sqz_result"; then
17273       _sqz_result="$_sqz_token"
17274     else
17275       _sqz_result="$_sqz_result $_sqz_token"
17276     fi
17277   done
17278   eval $1=\$_sqz_result
17279   return 0
17280 }
17281
17282
17283       #
17284   if test "$compiler_id" != "unknown"; then
17285     #
17286     if test "$compiler_id" = "GNU_C" ||
17287       test "$compiler_id" = "CLANG"; then
17288
17289       if test "$compiler_id" = "GNU_C" ||
17290     test "$compiler_id" = "CLANG"; then
17291     tmp_has_include="no"
17292     tmp_chg_FLAGS="$CFLAGS"
17293     for word1 in $tmp_chg_FLAGS; do
17294       case "$word1" in
17295         -I*)
17296           tmp_has_include="yes"
17297           ;;
17298       esac
17299     done
17300     if test "$tmp_has_include" = "yes"; then
17301       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17302       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17303       CFLAGS="$tmp_chg_FLAGS"
17304       squeeze CFLAGS
17305     fi
17306     tmp_has_include="no"
17307     tmp_chg_FLAGS="$CPPFLAGS"
17308     for word1 in $tmp_chg_FLAGS; do
17309       case "$word1" in
17310         -I*)
17311           tmp_has_include="yes"
17312           ;;
17313       esac
17314     done
17315     if test "$tmp_has_include" = "yes"; then
17316       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17317       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17318       CPPFLAGS="$tmp_chg_FLAGS"
17319       squeeze CPPFLAGS
17320     fi
17321   fi
17322
17323     fi
17324     #
17325     tmp_save_CPPFLAGS="$CPPFLAGS"
17326     tmp_save_CFLAGS="$CFLAGS"
17327     tmp_CPPFLAGS=""
17328     tmp_CFLAGS=""
17329     #
17330     case "$compiler_id" in
17331         #
17332       CLANG)
17333         #
17334                                 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
17335         ;;
17336         #
17337       DEC_C)
17338         #
17339                 tmp_CFLAGS="$tmp_CFLAGS -std1"
17340                 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
17341                 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
17342                 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
17343         ;;
17344         #
17345       GNU_C)
17346         #
17347                 tmp_CFLAGS="$tmp_CFLAGS"
17348         ;;
17349         #
17350       HP_UX_C)
17351         #
17352                 tmp_CFLAGS="$tmp_CFLAGS -z"
17353                                 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
17354         ;;
17355         #
17356       IBM_C)
17357         #
17358                 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
17359                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
17360                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
17361         ;;
17362         #
17363       INTEL_UNIX_C)
17364         #
17365                         tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
17366                                                 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
17367                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17368         ;;
17369         #
17370       INTEL_WINDOWS_C)
17371         #
17372                 tmp_CFLAGS="$tmp_CFLAGS"
17373         ;;
17374         #
17375       LCC)
17376         #
17377                 tmp_CFLAGS="$tmp_CFLAGS -n"
17378         ;;
17379         #
17380       SGI_MIPS_C)
17381         #
17382                 tmp_CFLAGS="$tmp_CFLAGS"
17383         ;;
17384         #
17385       SGI_MIPSPRO_C)
17386         #
17387                 tmp_CFLAGS="$tmp_CFLAGS"
17388         ;;
17389         #
17390       SUNPRO_C)
17391         #
17392                 tmp_CFLAGS="$tmp_CFLAGS"
17393         ;;
17394         #
17395       TINY_C)
17396         #
17397                 tmp_CFLAGS="$tmp_CFLAGS"
17398         ;;
17399         #
17400       WATCOM_UNIX_C)
17401         #
17402                 tmp_CFLAGS="$tmp_CFLAGS"
17403         ;;
17404         #
17405       WATCOM_WINDOWS_C)
17406         #
17407                 tmp_CFLAGS="$tmp_CFLAGS"
17408         ;;
17409         #
17410     esac
17411     #
17412     squeeze tmp_CPPFLAGS
17413     squeeze tmp_CFLAGS
17414     #
17415     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17416       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17417 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
17418       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17419       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17420       squeeze CPPFLAGS
17421       squeeze CFLAGS
17422
17423     tmp_compiler_works="unknown"
17424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17425 /* end confdefs.h.  */
17426
17427
17428
17429 int main (void)
17430 {
17431
17432       int i = 1;
17433       return i;
17434
17435  ;
17436  return 0;
17437 }
17438
17439 _ACEOF
17440 if ac_fn_c_try_compile "$LINENO"; then :
17441
17442     tmp_compiler_works="yes"
17443
17444 else
17445
17446     tmp_compiler_works="no"
17447     echo " " >&6
17448     sed 's/^/cc-fail: /' conftest.err >&6
17449     echo " " >&6
17450
17451 fi
17452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17453     if test "$tmp_compiler_works" = "yes"; then
17454     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17455 /* end confdefs.h.  */
17456
17457
17458
17459 int main (void)
17460 {
17461
17462         int i = 1;
17463         return i;
17464
17465  ;
17466  return 0;
17467 }
17468
17469 _ACEOF
17470 if ac_fn_c_try_link "$LINENO"; then :
17471
17472       tmp_compiler_works="yes"
17473
17474 else
17475
17476       tmp_compiler_works="no"
17477       echo " " >&6
17478       sed 's/^/link-fail: /' conftest.err >&6
17479       echo " " >&6
17480
17481 fi
17482 rm -f core conftest.err conftest.$ac_objext \
17483     conftest$ac_exeext conftest.$ac_ext
17484   fi
17485     if test "x$cross_compiling" != "xyes" &&
17486     test "$tmp_compiler_works" = "yes"; then
17487     if test "$cross_compiling" = yes; then :
17488   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17490 as_fn_error $? "cannot run test program while cross compiling
17491 See \`config.log' for more details" "$LINENO" 5; }
17492 else
17493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17494 /* end confdefs.h.  */
17495
17496
17497 #       ifdef __STDC__
17498 #         include <stdlib.h>
17499 #       endif
17500
17501 int main (void)
17502 {
17503
17504         int i = 0;
17505         exit(i);
17506
17507  ;
17508  return 0;
17509 }
17510
17511 _ACEOF
17512 if ac_fn_c_try_run "$LINENO"; then :
17513
17514       tmp_compiler_works="yes"
17515
17516 else
17517
17518       tmp_compiler_works="no"
17519       echo " " >&6
17520       echo "run-fail: test program exited with status $ac_status" >&6
17521       echo " " >&6
17522
17523 fi
17524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17525   conftest.$ac_objext conftest.beam conftest.$ac_ext
17526 fi
17527
17528   fi
17529     if test "$tmp_compiler_works" = "yes"; then
17530
17531         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17532 $as_echo "yes" >&6; }
17533         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17534 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17535
17536   else
17537
17538         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17539 $as_echo "no" >&6; }
17540         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17541 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17542                 CPPFLAGS="$tmp_save_CPPFLAGS"
17543         CFLAGS="$tmp_save_CFLAGS"
17544
17545   fi
17546
17547     fi
17548     #
17549   fi
17550
17551
17552         #
17553   if test "$compiler_id" != "unknown"; then
17554     #
17555     tmp_save_CFLAGS="$CFLAGS"
17556     tmp_save_CPPFLAGS="$CPPFLAGS"
17557     #
17558     tmp_options=""
17559     tmp_CFLAGS="$CFLAGS"
17560     tmp_CPPFLAGS="$CPPFLAGS"
17561
17562     ac_var_stripped=""
17563   for word1 in $tmp_CFLAGS; do
17564     ac_var_strip_word="no"
17565     for word2 in $flags_dbg_all; do
17566       if test "$word1" = "$word2"; then
17567         ac_var_strip_word="yes"
17568       fi
17569     done
17570     if test "$ac_var_strip_word" = "no"; then
17571       ac_var_stripped="$ac_var_stripped $word1"
17572     fi
17573   done
17574     tmp_CFLAGS="$ac_var_stripped"
17575   squeeze tmp_CFLAGS
17576
17577
17578     ac_var_stripped=""
17579   for word1 in $tmp_CPPFLAGS; do
17580     ac_var_strip_word="no"
17581     for word2 in $flags_dbg_all; do
17582       if test "$word1" = "$word2"; then
17583         ac_var_strip_word="yes"
17584       fi
17585     done
17586     if test "$ac_var_strip_word" = "no"; then
17587       ac_var_stripped="$ac_var_stripped $word1"
17588     fi
17589   done
17590     tmp_CPPFLAGS="$ac_var_stripped"
17591   squeeze tmp_CPPFLAGS
17592
17593     #
17594     if test "$want_debug" = "yes"; then
17595       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
17596 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
17597       tmp_options="$flags_dbg_yes"
17598     fi
17599     if test "$want_debug" = "no"; then
17600       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17601 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17602       tmp_options="$flags_dbg_off"
17603     fi
17604     #
17605     if test "$flags_prefer_cppflags" = "yes"; then
17606       CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17607       CFLAGS="$tmp_CFLAGS"
17608     else
17609       CPPFLAGS="$tmp_CPPFLAGS"
17610       CFLAGS="$tmp_CFLAGS $tmp_options"
17611     fi
17612     squeeze CPPFLAGS
17613     squeeze CFLAGS
17614
17615     tmp_compiler_works="unknown"
17616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17617 /* end confdefs.h.  */
17618
17619
17620
17621 int main (void)
17622 {
17623
17624       int i = 1;
17625       return i;
17626
17627  ;
17628  return 0;
17629 }
17630
17631 _ACEOF
17632 if ac_fn_c_try_compile "$LINENO"; then :
17633
17634     tmp_compiler_works="yes"
17635
17636 else
17637
17638     tmp_compiler_works="no"
17639     echo " " >&6
17640     sed 's/^/cc-fail: /' conftest.err >&6
17641     echo " " >&6
17642
17643 fi
17644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17645     if test "$tmp_compiler_works" = "yes"; then
17646     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17647 /* end confdefs.h.  */
17648
17649
17650
17651 int main (void)
17652 {
17653
17654         int i = 1;
17655         return i;
17656
17657  ;
17658  return 0;
17659 }
17660
17661 _ACEOF
17662 if ac_fn_c_try_link "$LINENO"; then :
17663
17664       tmp_compiler_works="yes"
17665
17666 else
17667
17668       tmp_compiler_works="no"
17669       echo " " >&6
17670       sed 's/^/link-fail: /' conftest.err >&6
17671       echo " " >&6
17672
17673 fi
17674 rm -f core conftest.err conftest.$ac_objext \
17675     conftest$ac_exeext conftest.$ac_ext
17676   fi
17677     if test "x$cross_compiling" != "xyes" &&
17678     test "$tmp_compiler_works" = "yes"; then
17679     if test "$cross_compiling" = yes; then :
17680   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17682 as_fn_error $? "cannot run test program while cross compiling
17683 See \`config.log' for more details" "$LINENO" 5; }
17684 else
17685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17686 /* end confdefs.h.  */
17687
17688
17689 #       ifdef __STDC__
17690 #         include <stdlib.h>
17691 #       endif
17692
17693 int main (void)
17694 {
17695
17696         int i = 0;
17697         exit(i);
17698
17699  ;
17700  return 0;
17701 }
17702
17703 _ACEOF
17704 if ac_fn_c_try_run "$LINENO"; then :
17705
17706       tmp_compiler_works="yes"
17707
17708 else
17709
17710       tmp_compiler_works="no"
17711       echo " " >&6
17712       echo "run-fail: test program exited with status $ac_status" >&6
17713       echo " " >&6
17714
17715 fi
17716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17717   conftest.$ac_objext conftest.beam conftest.$ac_ext
17718 fi
17719
17720   fi
17721     if test "$tmp_compiler_works" = "yes"; then
17722
17723       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17724 $as_echo "yes" >&6; }
17725       { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17726 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17727
17728   else
17729
17730       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17731 $as_echo "no" >&6; }
17732       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17733 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17734             CPPFLAGS="$tmp_save_CPPFLAGS"
17735       CFLAGS="$tmp_save_CFLAGS"
17736
17737   fi
17738
17739     #
17740   fi
17741
17742
17743         #
17744   if test "$compiler_id" != "unknown"; then
17745     #
17746     tmp_save_CFLAGS="$CFLAGS"
17747     tmp_save_CPPFLAGS="$CPPFLAGS"
17748     #
17749     tmp_options=""
17750     tmp_CFLAGS="$CFLAGS"
17751     tmp_CPPFLAGS="$CPPFLAGS"
17752     honor_optimize_option="yes"
17753     #
17754                         #
17755     if test "$want_optimize" = "assume_no" ||
17756        test "$want_optimize" = "assume_yes"; then
17757       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17758 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17759
17760
17761   ac_var_match_word="no"
17762   for word1 in $tmp_CFLAGS; do
17763     for word2 in $flags_opt_all; do
17764       if test "$word1" = "$word2"; then
17765         ac_var_match_word="yes"
17766       fi
17767     done
17768   done
17769
17770   if test "$ac_var_match_word" = "yes"; then
17771
17772         honor_optimize_option="no"
17773
17774
17775   fi
17776
17777
17778
17779   ac_var_match_word="no"
17780   for word1 in $tmp_CPPFLAGS; do
17781     for word2 in $flags_opt_all; do
17782       if test "$word1" = "$word2"; then
17783         ac_var_match_word="yes"
17784       fi
17785     done
17786   done
17787
17788   if test "$ac_var_match_word" = "yes"; then
17789
17790         honor_optimize_option="no"
17791
17792
17793   fi
17794
17795       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17796 $as_echo "$honor_optimize_option" >&6; }
17797       if test "$honor_optimize_option" = "yes"; then
17798         if test "$want_optimize" = "assume_yes"; then
17799           want_optimize="yes"
17800         fi
17801         if test "$want_optimize" = "assume_no"; then
17802           want_optimize="no"
17803         fi
17804       fi
17805     fi
17806     #
17807     if test "$honor_optimize_option" = "yes"; then
17808
17809     ac_var_stripped=""
17810   for word1 in $tmp_CFLAGS; do
17811     ac_var_strip_word="no"
17812     for word2 in $flags_opt_all; do
17813       if test "$word1" = "$word2"; then
17814         ac_var_strip_word="yes"
17815       fi
17816     done
17817     if test "$ac_var_strip_word" = "no"; then
17818       ac_var_stripped="$ac_var_stripped $word1"
17819     fi
17820   done
17821     tmp_CFLAGS="$ac_var_stripped"
17822   squeeze tmp_CFLAGS
17823
17824
17825     ac_var_stripped=""
17826   for word1 in $tmp_CPPFLAGS; do
17827     ac_var_strip_word="no"
17828     for word2 in $flags_opt_all; do
17829       if test "$word1" = "$word2"; then
17830         ac_var_strip_word="yes"
17831       fi
17832     done
17833     if test "$ac_var_strip_word" = "no"; then
17834       ac_var_stripped="$ac_var_stripped $word1"
17835     fi
17836   done
17837     tmp_CPPFLAGS="$ac_var_stripped"
17838   squeeze tmp_CPPFLAGS
17839
17840       if test "$want_optimize" = "yes"; then
17841         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17842 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17843         tmp_options="$flags_opt_yes"
17844       fi
17845       if test "$want_optimize" = "no"; then
17846         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17847 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17848         tmp_options="$flags_opt_off"
17849       fi
17850       if test "$flags_prefer_cppflags" = "yes"; then
17851         CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17852         CFLAGS="$tmp_CFLAGS"
17853       else
17854         CPPFLAGS="$tmp_CPPFLAGS"
17855         CFLAGS="$tmp_CFLAGS $tmp_options"
17856       fi
17857       squeeze CPPFLAGS
17858       squeeze CFLAGS
17859
17860     tmp_compiler_works="unknown"
17861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17862 /* end confdefs.h.  */
17863
17864
17865
17866 int main (void)
17867 {
17868
17869       int i = 1;
17870       return i;
17871
17872  ;
17873  return 0;
17874 }
17875
17876 _ACEOF
17877 if ac_fn_c_try_compile "$LINENO"; then :
17878
17879     tmp_compiler_works="yes"
17880
17881 else
17882
17883     tmp_compiler_works="no"
17884     echo " " >&6
17885     sed 's/^/cc-fail: /' conftest.err >&6
17886     echo " " >&6
17887
17888 fi
17889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17890     if test "$tmp_compiler_works" = "yes"; then
17891     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17892 /* end confdefs.h.  */
17893
17894
17895
17896 int main (void)
17897 {
17898
17899         int i = 1;
17900         return i;
17901
17902  ;
17903  return 0;
17904 }
17905
17906 _ACEOF
17907 if ac_fn_c_try_link "$LINENO"; then :
17908
17909       tmp_compiler_works="yes"
17910
17911 else
17912
17913       tmp_compiler_works="no"
17914       echo " " >&6
17915       sed 's/^/link-fail: /' conftest.err >&6
17916       echo " " >&6
17917
17918 fi
17919 rm -f core conftest.err conftest.$ac_objext \
17920     conftest$ac_exeext conftest.$ac_ext
17921   fi
17922     if test "x$cross_compiling" != "xyes" &&
17923     test "$tmp_compiler_works" = "yes"; then
17924     if test "$cross_compiling" = yes; then :
17925   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17927 as_fn_error $? "cannot run test program while cross compiling
17928 See \`config.log' for more details" "$LINENO" 5; }
17929 else
17930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17931 /* end confdefs.h.  */
17932
17933
17934 #       ifdef __STDC__
17935 #         include <stdlib.h>
17936 #       endif
17937
17938 int main (void)
17939 {
17940
17941         int i = 0;
17942         exit(i);
17943
17944  ;
17945  return 0;
17946 }
17947
17948 _ACEOF
17949 if ac_fn_c_try_run "$LINENO"; then :
17950
17951       tmp_compiler_works="yes"
17952
17953 else
17954
17955       tmp_compiler_works="no"
17956       echo " " >&6
17957       echo "run-fail: test program exited with status $ac_status" >&6
17958       echo " " >&6
17959
17960 fi
17961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17962   conftest.$ac_objext conftest.beam conftest.$ac_ext
17963 fi
17964
17965   fi
17966     if test "$tmp_compiler_works" = "yes"; then
17967
17968         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17969 $as_echo "yes" >&6; }
17970         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17971 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17972
17973   else
17974
17975         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17976 $as_echo "no" >&6; }
17977         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17978 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17979                 CPPFLAGS="$tmp_save_CPPFLAGS"
17980         CFLAGS="$tmp_save_CFLAGS"
17981
17982   fi
17983
17984     fi
17985     #
17986   fi
17987
17988
17989         #
17990   if test "$compiler_id" != "unknown"; then
17991     #
17992     tmp_save_CPPFLAGS="$CPPFLAGS"
17993     tmp_save_CFLAGS="$CFLAGS"
17994     tmp_CPPFLAGS=""
17995     tmp_CFLAGS=""
17996     #
17997     case "$compiler_id" in
17998         #
17999       CLANG)
18000         #
18001         if test "$want_warnings" = "yes"; then
18002           tmp_CFLAGS="$tmp_CFLAGS -pedantic"
18003           tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
18004           tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
18005           tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
18006           tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
18007           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
18008           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
18009           tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
18010           tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
18011           tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
18012           tmp_CFLAGS="$tmp_CFLAGS -Wundef"
18013           tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
18014           tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
18015           tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
18016           tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
18017           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
18018           tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
18019           #
18020                     if test "$compiler_num" -ge "101"; then
18021             tmp_CFLAGS="$tmp_CFLAGS -Wunused"
18022           fi
18023         fi
18024         ;;
18025         #
18026       DEC_C)
18027         #
18028         if test "$want_warnings" = "yes"; then
18029                     tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
18030         fi
18031         ;;
18032         #
18033       GNU_C)
18034         #
18035         if test "$want_warnings" = "yes"; then
18036           #
18037                               if test "x$cross_compiling" != "xyes" ||
18038             test "$compiler_num" -ge "300"; then
18039             tmp_CFLAGS="$tmp_CFLAGS -pedantic"
18040           fi
18041           #
18042                     tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
18043           #
18044                     if test "$compiler_num" -ge "104"; then
18045             tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
18046                         if test "x$cross_compiling" != "xyes" ||
18047               test "$compiler_num" -ge "300"; then
18048               tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
18049             fi
18050           fi
18051           #
18052                     if test "$compiler_num" -ge "207"; then
18053             tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
18054                         if test "x$cross_compiling" != "xyes" ||
18055               test "$compiler_num" -ge "300"; then
18056               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
18057               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
18058             fi
18059           fi
18060           #
18061                     if test "$compiler_num" -ge "295"; then
18062             tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
18063           fi
18064           #
18065                     if test "$compiler_num" -ge "296"; then
18066             tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
18067             tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
18068                                                 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
18069           fi
18070           #
18071                     if test "$compiler_num" -ge "297"; then
18072             tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
18073           fi
18074           #
18075                     if test "$compiler_num" -ge "300"; then
18076                                                             tmp_CFLAGS="$tmp_CFLAGS"
18077           fi
18078           #
18079                     if test "$compiler_num" -ge "303"; then
18080             tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
18081           fi
18082           #
18083                     if test "$compiler_num" -ge "304"; then
18084             tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
18085           fi
18086           #
18087                     if test "$compiler_num" -ge "400"; then
18088             tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
18089           fi
18090           #
18091                     if test "$compiler_num" -ge "402"; then
18092             tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
18093           fi
18094           #
18095                     if test "$compiler_num" -ge "403"; then
18096             tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
18097             tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
18098             tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
18099             tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
18100           fi
18101           #
18102                     if test "$compiler_num" -ge "405"; then
18103                         if test "$curl_cv_have_def__WIN32" = "yes"; then
18104               tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
18105             fi
18106           fi
18107           #
18108         fi
18109         #
18110                 if test "$compiler_num" -ge "300"; then
18111           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
18112         else
18113                               if test "x$cross_compiling" = "xyes"; then
18114             if test "$compiler_num" -ge "104"; then
18115                             tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
18116             fi
18117             if test "$compiler_num" -ge "207"; then
18118                             tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
18119               tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
18120             fi
18121           fi
18122         fi
18123         ;;
18124         #
18125       HP_UX_C)
18126         #
18127         if test "$want_warnings" = "yes"; then
18128                     tmp_CFLAGS="$tmp_CFLAGS +w1"
18129         fi
18130         ;;
18131         #
18132       IBM_C)
18133         #
18134                 tmp_CFLAGS="$tmp_CFLAGS"
18135         ;;
18136         #
18137       INTEL_UNIX_C)
18138         #
18139         if test "$want_warnings" = "yes"; then
18140           if test "$compiler_num" -gt "600"; then
18141                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
18142                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
18143                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
18144                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
18145                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
18146                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
18147                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
18148                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
18149                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
18150                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
18151                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
18152           fi
18153         fi
18154                 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
18155                 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
18156                 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
18157                 if test "$compiler_num" -ge "1000"; then
18158                     tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
18159         fi
18160         ;;
18161         #
18162       INTEL_WINDOWS_C)
18163         #
18164                 tmp_CFLAGS="$tmp_CFLAGS"
18165         ;;
18166         #
18167       LCC)
18168         #
18169         if test "$want_warnings" = "yes"; then
18170                                                   tmp_CFLAGS="$tmp_CFLAGS"
18171         fi
18172         ;;
18173         #
18174       SGI_MIPS_C)
18175         #
18176         if test "$want_warnings" = "yes"; then
18177                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18178         fi
18179         ;;
18180         #
18181       SGI_MIPSPRO_C)
18182         #
18183         if test "$want_warnings" = "yes"; then
18184                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18185                               tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
18186         fi
18187         ;;
18188         #
18189       SUNPRO_C)
18190         #
18191         if test "$want_warnings" = "yes"; then
18192                     tmp_CFLAGS="$tmp_CFLAGS -v"
18193         fi
18194         ;;
18195         #
18196       TINY_C)
18197         #
18198         if test "$want_warnings" = "yes"; then
18199                     tmp_CFLAGS="$tmp_CFLAGS -Wall"
18200                     tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
18201                     tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
18202         fi
18203         ;;
18204         #
18205       WATCOM_UNIX_C)
18206         #
18207         if test "$want_warnings" = "yes"; then
18208                     tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
18209         fi
18210         ;;
18211         #
18212       WATCOM_WINDOWS_C)
18213         #
18214                 tmp_CFLAGS="$tmp_CFLAGS"
18215         ;;
18216         #
18217     esac
18218     #
18219     squeeze tmp_CPPFLAGS
18220     squeeze tmp_CFLAGS
18221     #
18222     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18223       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
18224 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
18225       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18226       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18227       squeeze CPPFLAGS
18228       squeeze CFLAGS
18229
18230     tmp_compiler_works="unknown"
18231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18232 /* end confdefs.h.  */
18233
18234
18235
18236 int main (void)
18237 {
18238
18239       int i = 1;
18240       return i;
18241
18242  ;
18243  return 0;
18244 }
18245
18246 _ACEOF
18247 if ac_fn_c_try_compile "$LINENO"; then :
18248
18249     tmp_compiler_works="yes"
18250
18251 else
18252
18253     tmp_compiler_works="no"
18254     echo " " >&6
18255     sed 's/^/cc-fail: /' conftest.err >&6
18256     echo " " >&6
18257
18258 fi
18259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18260     if test "$tmp_compiler_works" = "yes"; then
18261     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18262 /* end confdefs.h.  */
18263
18264
18265
18266 int main (void)
18267 {
18268
18269         int i = 1;
18270         return i;
18271
18272  ;
18273  return 0;
18274 }
18275
18276 _ACEOF
18277 if ac_fn_c_try_link "$LINENO"; then :
18278
18279       tmp_compiler_works="yes"
18280
18281 else
18282
18283       tmp_compiler_works="no"
18284       echo " " >&6
18285       sed 's/^/link-fail: /' conftest.err >&6
18286       echo " " >&6
18287
18288 fi
18289 rm -f core conftest.err conftest.$ac_objext \
18290     conftest$ac_exeext conftest.$ac_ext
18291   fi
18292     if test "x$cross_compiling" != "xyes" &&
18293     test "$tmp_compiler_works" = "yes"; then
18294     if test "$cross_compiling" = yes; then :
18295   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18297 as_fn_error $? "cannot run test program while cross compiling
18298 See \`config.log' for more details" "$LINENO" 5; }
18299 else
18300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18301 /* end confdefs.h.  */
18302
18303
18304 #       ifdef __STDC__
18305 #         include <stdlib.h>
18306 #       endif
18307
18308 int main (void)
18309 {
18310
18311         int i = 0;
18312         exit(i);
18313
18314  ;
18315  return 0;
18316 }
18317
18318 _ACEOF
18319 if ac_fn_c_try_run "$LINENO"; then :
18320
18321       tmp_compiler_works="yes"
18322
18323 else
18324
18325       tmp_compiler_works="no"
18326       echo " " >&6
18327       echo "run-fail: test program exited with status $ac_status" >&6
18328       echo " " >&6
18329
18330 fi
18331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18332   conftest.$ac_objext conftest.beam conftest.$ac_ext
18333 fi
18334
18335   fi
18336     if test "$tmp_compiler_works" = "yes"; then
18337
18338         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18339 $as_echo "yes" >&6; }
18340         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18341 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18342
18343   else
18344
18345         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18346 $as_echo "no" >&6; }
18347         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18348 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18349                 CPPFLAGS="$tmp_save_CPPFLAGS"
18350         CFLAGS="$tmp_save_CFLAGS"
18351
18352   fi
18353
18354     fi
18355     #
18356   fi
18357
18358
18359 if test "$compiler_id" = "INTEL_UNIX_C"; then
18360   #
18361   if test "$compiler_num" -ge "1000"; then
18362         CFLAGS="$CFLAGS -shared-intel"
18363   elif test "$compiler_num" -ge "900"; then
18364         CFLAGS="$CFLAGS -i-dynamic"
18365   fi
18366   #
18367 fi
18368
18369
18370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
18371 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
18372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18373 /* end confdefs.h.  */
18374
18375
18376
18377 int main (void)
18378 {
18379
18380       force compilation error
18381
18382  ;
18383  return 0;
18384 }
18385
18386 _ACEOF
18387 if ac_fn_c_try_compile "$LINENO"; then :
18388
18389     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18390 $as_echo "no" >&6; }
18391     as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
18392
18393 else
18394
18395     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18396 $as_echo "yes" >&6; }
18397
18398 fi
18399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18400
18401
18402     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
18403 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
18404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18405 /* end confdefs.h.  */
18406
18407
18408       typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
18409
18410 int main (void)
18411 {
18412
18413       bad_t dummy;
18414
18415  ;
18416  return 0;
18417 }
18418
18419 _ACEOF
18420 if ac_fn_c_try_compile "$LINENO"; then :
18421
18422     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18423 $as_echo "no" >&6; }
18424     as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
18425
18426 else
18427
18428     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18429 $as_echo "yes" >&6; }
18430
18431 fi
18432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18433
18434
18435     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
18436 $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
18437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18438 /* end confdefs.h.  */
18439
18440
18441 #     include <stdlib.h>
18442       int rand(int n);
18443       int rand(int n)
18444       {
18445         if(n)
18446           return ++n;
18447         else
18448           return n;
18449       }
18450
18451 int main (void)
18452 {
18453
18454       int i[2]={0,0};
18455       int j = rand(i[0]);
18456       if(j)
18457         return j;
18458
18459  ;
18460  return 0;
18461 }
18462
18463 _ACEOF
18464 if ac_fn_c_try_compile "$LINENO"; then :
18465
18466     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18467 $as_echo "no" >&6; }
18468     as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
18469
18470 else
18471
18472     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18473 $as_echo "yes" >&6; }
18474
18475 fi
18476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18477
18478
18479       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
18480 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
18481   supports_symbol_hiding="no"
18482   symbol_hiding_CFLAGS=""
18483   symbol_hiding_EXTERN=""
18484   tmp_CFLAGS=""
18485   tmp_EXTERN=""
18486   case "$compiler_id" in
18487     CLANG)
18488             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18489       tmp_CFLAGS="-fvisibility=hidden"
18490       supports_symbol_hiding="yes"
18491       ;;
18492     GNU_C)
18493             if test "$compiler_num" -ge "304"; then
18494         if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
18495           tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18496           tmp_CFLAGS="-fvisibility=hidden"
18497           supports_symbol_hiding="yes"
18498         fi
18499       fi
18500       ;;
18501     INTEL_UNIX_C)
18502             if test "$compiler_num" -ge "900"; then
18503         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
18504           tmp_save_CFLAGS="$CFLAGS"
18505           CFLAGS="$CFLAGS -fvisibility=hidden"
18506           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18507 /* end confdefs.h.  */
18508
18509
18510 #             include <stdio.h>
18511
18512 int main (void)
18513 {
18514
18515               printf("icc fvisibility bug test");
18516
18517  ;
18518  return 0;
18519 }
18520
18521 _ACEOF
18522 if ac_fn_c_try_link "$LINENO"; then :
18523
18524             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18525             tmp_CFLAGS="-fvisibility=hidden"
18526             supports_symbol_hiding="yes"
18527
18528 fi
18529 rm -f core conftest.err conftest.$ac_objext \
18530     conftest$ac_exeext conftest.$ac_ext
18531           CFLAGS="$tmp_save_CFLAGS"
18532         fi
18533       fi
18534       ;;
18535     SUNPRO_C)
18536       if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
18537         tmp_EXTERN="__global"
18538         tmp_CFLAGS="-xldscope=hidden"
18539         supports_symbol_hiding="yes"
18540       fi
18541       ;;
18542   esac
18543   if test "$supports_symbol_hiding" = "yes"; then
18544     tmp_save_CFLAGS="$CFLAGS"
18545     CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18546     squeeze CFLAGS
18547     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18548 /* end confdefs.h.  */
18549
18550
18551         $tmp_EXTERN char *dummy(char *buff);
18552         char *dummy(char *buff)
18553         {
18554          if(buff)
18555            return ++buff;
18556          else
18557            return buff;
18558         }
18559
18560 int main (void)
18561 {
18562
18563         char b[16];
18564         char *r = dummy(&b[0]);
18565         if(r)
18566           return (int)*r;
18567
18568  ;
18569  return 0;
18570 }
18571
18572 _ACEOF
18573 if ac_fn_c_try_compile "$LINENO"; then :
18574
18575       supports_symbol_hiding="yes"
18576       if test -f conftest.err; then
18577         grep 'visibility' conftest.err >/dev/null
18578         if test "$?" -eq "0"; then
18579           supports_symbol_hiding="no"
18580         fi
18581       fi
18582
18583 else
18584
18585       supports_symbol_hiding="no"
18586       echo " " >&6
18587       sed 's/^/cc-src: /' conftest.$ac_ext >&6
18588       sed 's/^/cc-err: /' conftest.err >&6
18589       echo " " >&6
18590
18591 fi
18592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18593     CFLAGS="$tmp_save_CFLAGS"
18594   fi
18595   if test "$supports_symbol_hiding" = "yes"; then
18596     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18597 $as_echo "yes" >&6; }
18598     symbol_hiding_CFLAGS="$tmp_CFLAGS"
18599     symbol_hiding_EXTERN="$tmp_EXTERN"
18600   else
18601     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18602 $as_echo "no" >&6; }
18603   fi
18604
18605
18606
18607       supports_curldebug="unknown"
18608   if test "$want_curldebug" = "yes"; then
18609     if test "x$enable_shared" != "xno" &&
18610       test "x$enable_shared" != "xyes"; then
18611       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
18612 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
18613       supports_curldebug="no"
18614     fi
18615     if test "x$enable_static" != "xno" &&
18616       test "x$enable_static" != "xyes"; then
18617       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
18618 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
18619       supports_curldebug="no"
18620     fi
18621     if test "$supports_curldebug" != "no"; then
18622       if test "$enable_shared" = "yes" &&
18623         test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
18624         supports_curldebug="no"
18625         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
18626 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
18627       fi
18628     fi
18629   fi
18630   #
18631   if test "$want_curldebug" = "yes"; then
18632     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
18633 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
18634     test "$supports_curldebug" = "no" || supports_curldebug="yes"
18635     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
18636 $as_echo "$supports_curldebug" >&6; }
18637     if test "$supports_curldebug" = "no"; then
18638       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18639 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18640       want_curldebug="no"
18641     fi
18642   fi
18643   #
18644   if test "$want_curldebug" = "yes"; then
18645     CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
18646     squeeze CPPFLAGS
18647   fi
18648   if test "$want_debug" = "yes"; then
18649     CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
18650     squeeze CPPFLAGS
18651   fi
18652
18653  if test x$want_curldebug = xyes; then
18654   CURLDEBUG_TRUE=
18655   CURLDEBUG_FALSE='#'
18656 else
18657   CURLDEBUG_TRUE='#'
18658   CURLDEBUG_FALSE=
18659 fi
18660
18661
18662 supports_unittests=yes
18663 # cross-compilation of unit tests static library/programs fails when
18664 # libcurl shared library is built. This might be due to a libtool or
18665 # automake issue. In this case we disable unit tests.
18666 if test "x$cross_compiling" != "xno" &&
18667    test "x$enable_shared" != "xno"; then
18668   supports_unittests=no
18669 fi
18670
18671 # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18672 # a problem related with OpenSSL headers and library versions not matching.
18673 # Disable unit tests while time to further investigate this is found.
18674 case $host in
18675   mips-sgi-irix6.5)
18676     if test "$compiler_id" = "GNU_C"; then
18677       supports_unittests=no
18678     fi
18679     ;;
18680 esac
18681
18682 # All AIX autobuilds fails unit tests linking against unittests library
18683 # due to unittests library being built with no symbols or members. Libtool ?
18684 # Disable unit tests while time to further investigate this is found.
18685 case $host_os in
18686   aix*)
18687     supports_unittests=no
18688     ;;
18689 esac
18690
18691 if test "x$want_debug" = "xyes" &&
18692    test "x$supports_unittests" = "xyes"; then
18693   want_unittests=yes
18694 else
18695   want_unittests=no
18696 fi
18697  if test x$want_unittests = xyes; then
18698   BUILD_UNITTESTS_TRUE=
18699   BUILD_UNITTESTS_FALSE='#'
18700 else
18701   BUILD_UNITTESTS_TRUE='#'
18702   BUILD_UNITTESTS_FALSE=
18703 fi
18704
18705
18706
18707
18708
18709   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18710 $as_echo_n "checking for windows.h... " >&6; }
18711 if ${curl_cv_header_windows_h+:} false; then :
18712   $as_echo_n "(cached) " >&6
18713 else
18714
18715     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18716 /* end confdefs.h.  */
18717
18718
18719 #undef inline
18720 #ifndef WIN32_LEAN_AND_MEAN
18721 #define WIN32_LEAN_AND_MEAN
18722 #endif
18723 #include <windows.h>
18724
18725 int main (void)
18726 {
18727
18728 #if defined(__CYGWIN__) || defined(__CEGCC__)
18729         HAVE_WINDOWS_H shall not be defined.
18730 #else
18731         int dummy=2*WINVER;
18732 #endif
18733
18734  ;
18735  return 0;
18736 }
18737
18738 _ACEOF
18739 if ac_fn_c_try_compile "$LINENO"; then :
18740
18741       curl_cv_header_windows_h="yes"
18742
18743 else
18744
18745       curl_cv_header_windows_h="no"
18746
18747 fi
18748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18749
18750 fi
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
18752 $as_echo "$curl_cv_header_windows_h" >&6; }
18753   case "$curl_cv_header_windows_h" in
18754     yes)
18755
18756 cat >>confdefs.h <<_ACEOF
18757 #define HAVE_WINDOWS_H 1
18758 _ACEOF
18759
18760
18761 cat >>confdefs.h <<_ACEOF
18762 #define WIN32_LEAN_AND_MEAN 1
18763 _ACEOF
18764
18765       ;;
18766   esac
18767
18768
18769     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18770 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
18771 if ${curl_cv_native_windows+:} false; then :
18772   $as_echo_n "(cached) " >&6
18773 else
18774
18775     if test "$curl_cv_header_windows_h" = "no"; then
18776       curl_cv_native_windows="no"
18777     else
18778       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18779 /* end confdefs.h.  */
18780
18781
18782
18783 int main (void)
18784 {
18785
18786 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18787    (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18788           int dummy=1;
18789 #else
18790           Not a native Windows build target.
18791 #endif
18792
18793  ;
18794  return 0;
18795 }
18796
18797 _ACEOF
18798 if ac_fn_c_try_compile "$LINENO"; then :
18799
18800         curl_cv_native_windows="yes"
18801
18802 else
18803
18804         curl_cv_native_windows="no"
18805
18806 fi
18807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18808     fi
18809
18810 fi
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
18812 $as_echo "$curl_cv_native_windows" >&6; }
18813    if test "x$curl_cv_native_windows" = xyes; then
18814   DOING_NATIVE_WINDOWS_TRUE=
18815   DOING_NATIVE_WINDOWS_FALSE='#'
18816 else
18817   DOING_NATIVE_WINDOWS_TRUE='#'
18818   DOING_NATIVE_WINDOWS_FALSE=
18819 fi
18820
18821
18822 case X-"$curl_cv_native_windows" in
18823   X-yes)
18824
18825     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18826 $as_echo_n "checking for winsock.h... " >&6; }
18827 if ${curl_cv_header_winsock_h+:} false; then :
18828   $as_echo_n "(cached) " >&6
18829 else
18830
18831     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18832 /* end confdefs.h.  */
18833
18834
18835 #undef inline
18836 #ifndef WIN32_LEAN_AND_MEAN
18837 #define WIN32_LEAN_AND_MEAN
18838 #endif
18839 #include <windows.h>
18840 #include <winsock.h>
18841
18842 int main (void)
18843 {
18844
18845 #if defined(__CYGWIN__) || defined(__CEGCC__)
18846         HAVE_WINSOCK_H shall not be defined.
18847 #else
18848         int dummy=WSACleanup();
18849 #endif
18850
18851  ;
18852  return 0;
18853 }
18854
18855 _ACEOF
18856 if ac_fn_c_try_compile "$LINENO"; then :
18857
18858       curl_cv_header_winsock_h="yes"
18859
18860 else
18861
18862       curl_cv_header_winsock_h="no"
18863
18864 fi
18865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18866
18867 fi
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
18869 $as_echo "$curl_cv_header_winsock_h" >&6; }
18870   case "$curl_cv_header_winsock_h" in
18871     yes)
18872
18873 cat >>confdefs.h <<_ACEOF
18874 #define HAVE_WINSOCK_H 1
18875 _ACEOF
18876
18877       ;;
18878   esac
18879
18880
18881     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18882 $as_echo_n "checking for winsock2.h... " >&6; }
18883 if ${curl_cv_header_winsock2_h+:} false; then :
18884   $as_echo_n "(cached) " >&6
18885 else
18886
18887     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18888 /* end confdefs.h.  */
18889
18890
18891 #undef inline
18892 #ifndef WIN32_LEAN_AND_MEAN
18893 #define WIN32_LEAN_AND_MEAN
18894 #endif
18895 #include <windows.h>
18896 #include <winsock2.h>
18897
18898 int main (void)
18899 {
18900
18901 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18902         HAVE_WINSOCK2_H shall not be defined.
18903 #else
18904         int dummy=2*IPPROTO_ESP;
18905 #endif
18906
18907  ;
18908  return 0;
18909 }
18910
18911 _ACEOF
18912 if ac_fn_c_try_compile "$LINENO"; then :
18913
18914       curl_cv_header_winsock2_h="yes"
18915
18916 else
18917
18918       curl_cv_header_winsock2_h="no"
18919
18920 fi
18921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18922
18923 fi
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
18925 $as_echo "$curl_cv_header_winsock2_h" >&6; }
18926   case "$curl_cv_header_winsock2_h" in
18927     yes)
18928
18929 cat >>confdefs.h <<_ACEOF
18930 #define HAVE_WINSOCK2_H 1
18931 _ACEOF
18932
18933       ;;
18934   esac
18935
18936
18937     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18938 $as_echo_n "checking for ws2tcpip.h... " >&6; }
18939 if ${curl_cv_header_ws2tcpip_h+:} false; then :
18940   $as_echo_n "(cached) " >&6
18941 else
18942
18943     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18944 /* end confdefs.h.  */
18945
18946
18947 #undef inline
18948 #ifndef WIN32_LEAN_AND_MEAN
18949 #define WIN32_LEAN_AND_MEAN
18950 #endif
18951 #include <windows.h>
18952 #include <winsock2.h>
18953 #include <ws2tcpip.h>
18954
18955 int main (void)
18956 {
18957
18958 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18959         HAVE_WS2TCPIP_H shall not be defined.
18960 #else
18961         int dummy=2*IP_PKTINFO;
18962 #endif
18963
18964  ;
18965  return 0;
18966 }
18967
18968 _ACEOF
18969 if ac_fn_c_try_compile "$LINENO"; then :
18970
18971       curl_cv_header_ws2tcpip_h="yes"
18972
18973 else
18974
18975       curl_cv_header_ws2tcpip_h="no"
18976
18977 fi
18978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18979
18980 fi
18981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
18982 $as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
18983   case "$curl_cv_header_ws2tcpip_h" in
18984     yes)
18985
18986 cat >>confdefs.h <<_ACEOF
18987 #define HAVE_WS2TCPIP_H 1
18988 _ACEOF
18989
18990       ;;
18991   esac
18992
18993
18994     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18995 $as_echo_n "checking for winldap.h... " >&6; }
18996 if ${curl_cv_header_winldap_h+:} false; then :
18997   $as_echo_n "(cached) " >&6
18998 else
18999
19000     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19001 /* end confdefs.h.  */
19002
19003
19004 #undef inline
19005 #ifdef HAVE_WINDOWS_H
19006 #ifndef WIN32_LEAN_AND_MEAN
19007 #define WIN32_LEAN_AND_MEAN
19008 #endif
19009 #include <windows.h>
19010 #endif
19011 #include <winldap.h>
19012
19013 int main (void)
19014 {
19015
19016 #if defined(__CYGWIN__) || defined(__CEGCC__)
19017         HAVE_WINLDAP_H shall not be defined.
19018 #else
19019         LDAP *ldp = ldap_init("dummy", LDAP_PORT);
19020         ULONG res = ldap_unbind(ldp);
19021 #endif
19022
19023  ;
19024  return 0;
19025 }
19026
19027 _ACEOF
19028 if ac_fn_c_try_compile "$LINENO"; then :
19029
19030       curl_cv_header_winldap_h="yes"
19031
19032 else
19033
19034       curl_cv_header_winldap_h="no"
19035
19036 fi
19037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19038
19039 fi
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
19041 $as_echo "$curl_cv_header_winldap_h" >&6; }
19042   case "$curl_cv_header_winldap_h" in
19043     yes)
19044
19045 cat >>confdefs.h <<_ACEOF
19046 #define HAVE_WINLDAP_H 1
19047 _ACEOF
19048
19049       ;;
19050   esac
19051
19052
19053     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
19054 $as_echo_n "checking for winber.h... " >&6; }
19055 if ${curl_cv_header_winber_h+:} false; then :
19056   $as_echo_n "(cached) " >&6
19057 else
19058
19059     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19060 /* end confdefs.h.  */
19061
19062
19063 #undef inline
19064 #ifdef HAVE_WINDOWS_H
19065 #ifndef WIN32_LEAN_AND_MEAN
19066 #define WIN32_LEAN_AND_MEAN
19067 #endif
19068 #include <windows.h>
19069 #endif
19070 #include <winldap.h>
19071 #include <winber.h>
19072
19073 int main (void)
19074 {
19075
19076 #if defined(__CYGWIN__) || defined(__CEGCC__)
19077         HAVE_WINBER_H shall not be defined.
19078 #else
19079         BERVAL *bvp = NULL;
19080         BerElement *bep = ber_init(bvp);
19081         ber_free(bep, 1);
19082 #endif
19083
19084  ;
19085  return 0;
19086 }
19087
19088 _ACEOF
19089 if ac_fn_c_try_compile "$LINENO"; then :
19090
19091       curl_cv_header_winber_h="yes"
19092
19093 else
19094
19095       curl_cv_header_winber_h="no"
19096
19097 fi
19098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19099
19100 fi
19101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
19102 $as_echo "$curl_cv_header_winber_h" >&6; }
19103   case "$curl_cv_header_winber_h" in
19104     yes)
19105
19106 cat >>confdefs.h <<_ACEOF
19107 #define HAVE_WINBER_H 1
19108 _ACEOF
19109
19110       ;;
19111   esac
19112
19113     ;;
19114   *)
19115     curl_cv_header_winsock_h="no"
19116     curl_cv_header_winsock2_h="no"
19117     curl_cv_header_ws2tcpip_h="no"
19118     curl_cv_header_winldap_h="no"
19119     curl_cv_header_winber_h="no"
19120     ;;
19121 esac
19122
19123     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
19124 $as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
19125   curl_win32_file_api="no"
19126   if test "$curl_cv_header_windows_h" = "yes"; then
19127     if test x"$enable_largefile" != "xno"; then
19128       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19129 /* end confdefs.h.  */
19130
19131
19132
19133 int main (void)
19134 {
19135
19136 #if !defined(_WIN32_WCE) && \
19137     (defined(__MINGW32__) || \
19138     (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
19139           int dummy=1;
19140 #else
19141           WIN32 large file API not supported.
19142 #endif
19143
19144  ;
19145  return 0;
19146 }
19147
19148 _ACEOF
19149 if ac_fn_c_try_compile "$LINENO"; then :
19150
19151         curl_win32_file_api="win32_large_files"
19152
19153 fi
19154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19155     fi
19156     if test "$curl_win32_file_api" = "no"; then
19157       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19158 /* end confdefs.h.  */
19159
19160
19161
19162 int main (void)
19163 {
19164
19165 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
19166           int dummy=1;
19167 #else
19168           WIN32 small file API not supported.
19169 #endif
19170
19171  ;
19172  return 0;
19173 }
19174
19175 _ACEOF
19176 if ac_fn_c_try_compile "$LINENO"; then :
19177
19178         curl_win32_file_api="win32_small_files"
19179
19180 fi
19181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19182     fi
19183   fi
19184   case "$curl_win32_file_api" in
19185     win32_large_files)
19186       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
19187 $as_echo "yes (large file enabled)" >&6; }
19188
19189 cat >>confdefs.h <<_ACEOF
19190 #define USE_WIN32_LARGE_FILES 1
19191 _ACEOF
19192
19193       ;;
19194     win32_small_files)
19195       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
19196 $as_echo "yes (large file disabled)" >&6; }
19197
19198 cat >>confdefs.h <<_ACEOF
19199 #define USE_WIN32_SMALL_FILES 1
19200 _ACEOF
19201
19202       ;;
19203     *)
19204       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19205 $as_echo "no" >&6; }
19206       ;;
19207   esac
19208
19209
19210
19211
19212   tst_cflags="no"
19213   case $host_os in
19214     darwin*)
19215       tst_cflags="yes"
19216       ;;
19217   esac
19218
19219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good-to-use Mac CFLAGS" >&5
19220 $as_echo_n "checking for good-to-use Mac CFLAGS... " >&6; }
19221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
19222 $as_echo "$tst_cflags" >&6; };
19223
19224   if test "$tst_cflags" = "yes"; then
19225     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *version-min in CFLAGS" >&5
19226 $as_echo_n "checking for *version-min in CFLAGS... " >&6; }
19227     min=""
19228     if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then
19229       min="-mmacosx-version-min=10.8"
19230       CFLAGS="$CFLAGS $min"
19231     fi
19232     if test -z "$min"; then
19233       { $as_echo "$as_me:${as_lineno-$LINENO}: result: set by user" >&5
19234 $as_echo "set by user" >&6; }
19235     else
19236       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $min set" >&5
19237 $as_echo "$min set" >&6; }
19238     fi
19239
19240     old_CFLAGS=$CFLAGS
19241     CFLAGS="$CFLAGS -Werror=partial-availability"
19242     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
19243 $as_echo_n "checking whether $CC accepts -Werror=partial-availability... " >&6; }
19244     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19245 /* end confdefs.h.  */
19246
19247 int main (void)
19248 {
19249
19250  ;
19251  return 0;
19252 }
19253 _ACEOF
19254 if ac_fn_c_try_compile "$LINENO"; then :
19255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19256 $as_echo "yes" >&6; }
19257 else
19258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19259 $as_echo "no" >&6; }
19260       CFLAGS=$old_CFLAGS
19261 fi
19262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19263   fi
19264
19265
19266
19267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
19268 $as_echo_n "checking whether to support http... " >&6; }
19269 # Check whether --enable-http was given.
19270 if test "${enable_http+set}" = set; then :
19271   enableval=$enable_http;  case "$enableval" in
19272   no)
19273        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19274 $as_echo "no" >&6; }
19275
19276 $as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
19277
19278        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
19279 $as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
19280        CURL_DISABLE_HTTP=1
19281
19282
19283 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19284
19285        CURL_DISABLE_RTSP=1
19286
19287        ;;
19288   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19289 $as_echo "yes" >&6; }
19290        ;;
19291   esac
19292 else
19293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19294 $as_echo "yes" >&6; }
19295
19296 fi
19297
19298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
19299 $as_echo_n "checking whether to support ftp... " >&6; }
19300 # Check whether --enable-ftp was given.
19301 if test "${enable_ftp+set}" = set; then :
19302   enableval=$enable_ftp;  case "$enableval" in
19303   no)
19304        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19305 $as_echo "no" >&6; }
19306
19307 $as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
19308
19309        CURL_DISABLE_FTP=1
19310
19311        ;;
19312   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19313 $as_echo "yes" >&6; }
19314        ;;
19315   esac
19316 else
19317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19318 $as_echo "yes" >&6; }
19319
19320 fi
19321
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
19323 $as_echo_n "checking whether to support file... " >&6; }
19324 # Check whether --enable-file was given.
19325 if test "${enable_file+set}" = set; then :
19326   enableval=$enable_file;  case "$enableval" in
19327   no)
19328        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19329 $as_echo "no" >&6; }
19330
19331 $as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
19332
19333        CURL_DISABLE_FILE=1
19334
19335        ;;
19336   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19337 $as_echo "yes" >&6; }
19338        ;;
19339   esac
19340 else
19341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19342 $as_echo "yes" >&6; }
19343
19344 fi
19345
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
19347 $as_echo_n "checking whether to support ldap... " >&6; }
19348 # Check whether --enable-ldap was given.
19349 if test "${enable_ldap+set}" = set; then :
19350   enableval=$enable_ldap;  case "$enableval" in
19351   no)
19352        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19353 $as_echo "no" >&6; }
19354
19355 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
19356
19357        CURL_DISABLE_LDAP=1
19358
19359        ;;
19360   *)
19361        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19362 $as_echo "yes" >&6; }
19363        ;;
19364   esac
19365 else
19366
19367        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19368 $as_echo "yes" >&6; }
19369
19370 fi
19371
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
19373 $as_echo_n "checking whether to support ldaps... " >&6; }
19374 # Check whether --enable-ldaps was given.
19375 if test "${enable_ldaps+set}" = set; then :
19376   enableval=$enable_ldaps;  case "$enableval" in
19377   no)
19378        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19379 $as_echo "no" >&6; }
19380
19381 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19382
19383        CURL_DISABLE_LDAPS=1
19384
19385        ;;
19386   *)   if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19387          { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
19388 $as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
19389
19390 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19391
19392          CURL_DISABLE_LDAPS=1
19393
19394        else
19395          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19396 $as_echo "yes" >&6; }
19397
19398 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19399
19400          HAVE_LDAP_SSL=1
19401
19402        fi
19403        ;;
19404   esac
19405 else
19406
19407        if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19408          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19409 $as_echo "no" >&6; }
19410
19411 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19412
19413          CURL_DISABLE_LDAPS=1
19414
19415        else
19416          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19417 $as_echo "yes" >&6; }
19418
19419 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19420
19421          HAVE_LDAP_SSL=1
19422
19423        fi
19424
19425 fi
19426
19427
19428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
19429 $as_echo_n "checking whether to support rtsp... " >&6; }
19430 # Check whether --enable-rtsp was given.
19431 if test "${enable_rtsp+set}" = set; then :
19432   enableval=$enable_rtsp;  case "$enableval" in
19433   no)
19434        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19435 $as_echo "no" >&6; }
19436
19437 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19438
19439        CURL_DISABLE_RTSP=1
19440
19441        ;;
19442   *)   if test x$CURL_DISABLE_HTTP = x1 ; then
19443           as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
19444        else
19445           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19446 $as_echo "yes" >&6; }
19447           curl_rtsp_msg="enabled"
19448        fi
19449        ;;
19450   esac
19451 else
19452   if test "x$CURL_DISABLE_HTTP" != "x1"; then
19453           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19454 $as_echo "yes" >&6; }
19455           curl_rtsp_msg="enabled"
19456        else
19457           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19458 $as_echo "no" >&6; }
19459        fi
19460
19461 fi
19462
19463
19464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
19465 $as_echo_n "checking whether to support proxies... " >&6; }
19466 # Check whether --enable-proxy was given.
19467 if test "${enable_proxy+set}" = set; then :
19468   enableval=$enable_proxy;  case "$enableval" in
19469   no)
19470        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19471 $as_echo "no" >&6; }
19472
19473 $as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
19474
19475        CURL_DISABLE_PROXY=1
19476
19477        ;;
19478   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19479 $as_echo "yes" >&6; }
19480        ;;
19481   esac
19482 else
19483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19484 $as_echo "yes" >&6; }
19485
19486 fi
19487
19488
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
19490 $as_echo_n "checking whether to support dict... " >&6; }
19491 # Check whether --enable-dict was given.
19492 if test "${enable_dict+set}" = set; then :
19493   enableval=$enable_dict;  case "$enableval" in
19494   no)
19495        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19496 $as_echo "no" >&6; }
19497
19498 $as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
19499
19500        CURL_DISABLE_DICT=1
19501
19502        ;;
19503   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19504 $as_echo "yes" >&6; }
19505        ;;
19506   esac
19507 else
19508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19509 $as_echo "yes" >&6; }
19510
19511 fi
19512
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
19514 $as_echo_n "checking whether to support telnet... " >&6; }
19515 # Check whether --enable-telnet was given.
19516 if test "${enable_telnet+set}" = set; then :
19517   enableval=$enable_telnet;  case "$enableval" in
19518   no)
19519        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19520 $as_echo "no" >&6; }
19521
19522 $as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
19523
19524        CURL_DISABLE_TELNET=1
19525
19526        ;;
19527   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19528 $as_echo "yes" >&6; }
19529        ;;
19530   esac
19531 else
19532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19533 $as_echo "yes" >&6; }
19534
19535 fi
19536
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
19538 $as_echo_n "checking whether to support tftp... " >&6; }
19539 # Check whether --enable-tftp was given.
19540 if test "${enable_tftp+set}" = set; then :
19541   enableval=$enable_tftp;  case "$enableval" in
19542   no)
19543        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19544 $as_echo "no" >&6; }
19545
19546 $as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
19547
19548        CURL_DISABLE_TFTP=1
19549
19550        ;;
19551   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19552 $as_echo "yes" >&6; }
19553        ;;
19554   esac
19555 else
19556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19557 $as_echo "yes" >&6; }
19558
19559 fi
19560
19561
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
19563 $as_echo_n "checking whether to support pop3... " >&6; }
19564 # Check whether --enable-pop3 was given.
19565 if test "${enable_pop3+set}" = set; then :
19566   enableval=$enable_pop3;  case "$enableval" in
19567   no)
19568        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19569 $as_echo "no" >&6; }
19570
19571 $as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
19572
19573        CURL_DISABLE_POP3=1
19574
19575        ;;
19576   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19577 $as_echo "yes" >&6; }
19578        ;;
19579   esac
19580 else
19581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19582 $as_echo "yes" >&6; }
19583
19584 fi
19585
19586
19587
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
19589 $as_echo_n "checking whether to support imap... " >&6; }
19590 # Check whether --enable-imap was given.
19591 if test "${enable_imap+set}" = set; then :
19592   enableval=$enable_imap;  case "$enableval" in
19593   no)
19594        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19595 $as_echo "no" >&6; }
19596
19597 $as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
19598
19599        CURL_DISABLE_IMAP=1
19600
19601        ;;
19602   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19603 $as_echo "yes" >&6; }
19604        ;;
19605   esac
19606 else
19607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19608 $as_echo "yes" >&6; }
19609
19610 fi
19611
19612
19613
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
19615 $as_echo_n "checking whether to support smb... " >&6; }
19616 # Check whether --enable-smb was given.
19617 if test "${enable_smb+set}" = set; then :
19618   enableval=$enable_smb;  case "$enableval" in
19619   no)
19620        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19621 $as_echo "no" >&6; }
19622
19623 $as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
19624
19625        CURL_DISABLE_SMB=1
19626
19627        ;;
19628   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19629 $as_echo "yes" >&6; }
19630        ;;
19631   esac
19632 else
19633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19634 $as_echo "yes" >&6; }
19635
19636 fi
19637
19638
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
19640 $as_echo_n "checking whether to support smtp... " >&6; }
19641 # Check whether --enable-smtp was given.
19642 if test "${enable_smtp+set}" = set; then :
19643   enableval=$enable_smtp;  case "$enableval" in
19644   no)
19645        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19646 $as_echo "no" >&6; }
19647
19648 $as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
19649
19650        CURL_DISABLE_SMTP=1
19651
19652        ;;
19653   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19654 $as_echo "yes" >&6; }
19655        ;;
19656   esac
19657 else
19658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19659 $as_echo "yes" >&6; }
19660
19661 fi
19662
19663
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
19665 $as_echo_n "checking whether to support gopher... " >&6; }
19666 # Check whether --enable-gopher was given.
19667 if test "${enable_gopher+set}" = set; then :
19668   enableval=$enable_gopher;  case "$enableval" in
19669   no)
19670        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19671 $as_echo "no" >&6; }
19672
19673 $as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
19674
19675        CURL_DISABLE_GOPHER=1
19676
19677        ;;
19678   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19679 $as_echo "yes" >&6; }
19680        ;;
19681   esac
19682 else
19683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19684 $as_echo "yes" >&6; }
19685
19686 fi
19687
19688
19689
19690
19691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
19692 $as_echo_n "checking whether to provide built-in manual... " >&6; }
19693 # Check whether --enable-manual was given.
19694 if test "${enable_manual+set}" = set; then :
19695   enableval=$enable_manual;  case "$enableval" in
19696   no)
19697        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19698 $as_echo "no" >&6; }
19699        ;;
19700   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19701 $as_echo "yes" >&6; }
19702        USE_MANUAL="1"
19703        ;;
19704   esac
19705 else
19706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19707 $as_echo "yes" >&6; }
19708        USE_MANUAL="1"
19709
19710 fi
19711
19712
19713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
19714 $as_echo_n "checking whether to enable generation of C code... " >&6; }
19715 # Check whether --enable-libcurl_option was given.
19716 if test "${enable_libcurl_option+set}" = set; then :
19717   enableval=$enable_libcurl_option;  case "$enableval" in
19718   no)
19719        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19720 $as_echo "no" >&6; }
19721
19722 $as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19723
19724        curl_libcurl_msg="no"
19725        ;;
19726   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19727 $as_echo "yes" >&6; }
19728        ;;
19729   esac
19730 else
19731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19732 $as_echo "yes" >&6; }
19733
19734 fi
19735
19736
19737
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19739 $as_echo_n "checking whether to use libgcc... " >&6; }
19740 # Check whether --enable-libgcc was given.
19741 if test "${enable_libgcc+set}" = set; then :
19742   enableval=$enable_libgcc;  case "$enableval" in
19743   yes)
19744        LIBS="-lgcc $LIBS"
19745        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19746 $as_echo "yes" >&6; }
19747        ;;
19748   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19749 $as_echo "no" >&6; }
19750        ;;
19751   esac
19752 else
19753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19754 $as_echo "no" >&6; }
19755
19756 fi
19757
19758
19759
19760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19761 $as_echo_n "checking if X/Open network library is required... " >&6; }
19762   tst_lib_xnet_required="no"
19763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19764 /* end confdefs.h.  */
19765
19766
19767 int main (void)
19768 {
19769 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19770   return 0;
19771 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19772   return 0;
19773 #else
19774   force compilation error
19775 #endif
19776 }
19777
19778
19779 _ACEOF
19780 if ac_fn_c_try_compile "$LINENO"; then :
19781
19782     tst_lib_xnet_required="yes"
19783     LIBS="-lxnet $LIBS"
19784
19785 fi
19786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19788 $as_echo "$tst_lib_xnet_required" >&6; }
19789
19790
19791 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19792 if test "x$ac_cv_func_gethostbyname" = xyes; then :
19793   HAVE_GETHOSTBYNAME="1"
19794
19795 else
19796    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19797 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19798 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19799   $as_echo_n "(cached) " >&6
19800 else
19801   ac_check_lib_save_LIBS=$LIBS
19802 LIBS="-lnsl  $LIBS"
19803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19804 /* end confdefs.h.  */
19805
19806
19807 #ifdef __cplusplus
19808 extern "C"
19809 #endif
19810 char gethostbyname ();
19811 int main (void)
19812 {
19813 return gethostbyname ();
19814  ;
19815  return 0;
19816 }
19817 _ACEOF
19818 if ac_fn_c_try_link "$LINENO"; then :
19819   ac_cv_lib_nsl_gethostbyname=yes
19820 else
19821   ac_cv_lib_nsl_gethostbyname=no
19822 fi
19823 rm -f core conftest.err conftest.$ac_objext \
19824     conftest$ac_exeext conftest.$ac_ext
19825 LIBS=$ac_check_lib_save_LIBS
19826 fi
19827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19828 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19829 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19830   HAVE_GETHOSTBYNAME="1"
19831                              LIBS="-lnsl $LIBS"
19832
19833 fi
19834
19835
19836 fi
19837
19838
19839 if test "$HAVE_GETHOSTBYNAME" != "1"
19840 then
19841     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19842 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19843 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19844   $as_echo_n "(cached) " >&6
19845 else
19846   ac_check_lib_save_LIBS=$LIBS
19847 LIBS="-lsocket  $LIBS"
19848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19849 /* end confdefs.h.  */
19850
19851
19852 #ifdef __cplusplus
19853 extern "C"
19854 #endif
19855 char gethostbyname ();
19856 int main (void)
19857 {
19858 return gethostbyname ();
19859  ;
19860  return 0;
19861 }
19862 _ACEOF
19863 if ac_fn_c_try_link "$LINENO"; then :
19864   ac_cv_lib_socket_gethostbyname=yes
19865 else
19866   ac_cv_lib_socket_gethostbyname=no
19867 fi
19868 rm -f core conftest.err conftest.$ac_objext \
19869     conftest$ac_exeext conftest.$ac_ext
19870 LIBS=$ac_check_lib_save_LIBS
19871 fi
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19873 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19874 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19875   HAVE_GETHOSTBYNAME="1"
19876                LIBS="-lsocket $LIBS"
19877
19878 fi
19879
19880 fi
19881
19882 if test "$HAVE_GETHOSTBYNAME" != "1"
19883 then
19884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19885 $as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19886 if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19887   $as_echo_n "(cached) " >&6
19888 else
19889   ac_check_lib_save_LIBS=$LIBS
19890 LIBS="-lwatt  $LIBS"
19891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19892 /* end confdefs.h.  */
19893
19894
19895 #ifdef __cplusplus
19896 extern "C"
19897 #endif
19898 char gethostbyname ();
19899 int main (void)
19900 {
19901 return gethostbyname ();
19902  ;
19903  return 0;
19904 }
19905 _ACEOF
19906 if ac_fn_c_try_link "$LINENO"; then :
19907   ac_cv_lib_watt_gethostbyname=yes
19908 else
19909   ac_cv_lib_watt_gethostbyname=no
19910 fi
19911 rm -f core conftest.err conftest.$ac_objext \
19912     conftest$ac_exeext conftest.$ac_ext
19913 LIBS=$ac_check_lib_save_LIBS
19914 fi
19915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19916 $as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19917 if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19918   HAVE_GETHOSTBYNAME="1"
19919                CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19920                LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19921                LIBS="-lwatt $LIBS"
19922
19923 fi
19924
19925 fi
19926
19927 if test "$HAVE_GETHOSTBYNAME" != "1"
19928 then
19929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19930 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19931   my_ac_save_LIBS=$LIBS
19932   LIBS="-lnsl -lsocket $LIBS"
19933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19934 /* end confdefs.h.  */
19935
19936
19937
19938 int main (void)
19939 {
19940
19941       gethostbyname();
19942
19943  ;
19944  return 0;
19945 }
19946
19947 _ACEOF
19948 if ac_fn_c_try_link "$LINENO"; then :
19949
19950     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19951 $as_echo "yes" >&6; }
19952     HAVE_GETHOSTBYNAME="1"
19953
19954 else
19955
19956     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19957 $as_echo "no" >&6; }
19958     LIBS=$my_ac_save_LIBS
19959
19960 fi
19961 rm -f core conftest.err conftest.$ac_objext \
19962     conftest$ac_exeext conftest.$ac_ext
19963 fi
19964
19965 if test "$HAVE_GETHOSTBYNAME" != "1"
19966 then
19967     if test "$curl_cv_header_windows_h" = "yes"; then
19968     if test "$curl_cv_header_winsock_h" = "yes"; then
19969       case $host in
19970         *-*-mingw32ce*)
19971           winsock_LIB="-lwinsock"
19972           ;;
19973         *)
19974           winsock_LIB="-lwsock32"
19975           ;;
19976       esac
19977     fi
19978     if test "$curl_cv_header_winsock2_h" = "yes"; then
19979       winsock_LIB="-lws2_32"
19980     fi
19981     if test ! -z "$winsock_LIB"; then
19982       my_ac_save_LIBS=$LIBS
19983       LIBS="$winsock_LIB $LIBS"
19984       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19985 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19986       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19987 /* end confdefs.h.  */
19988
19989
19990 #ifdef HAVE_WINDOWS_H
19991 #ifndef WIN32_LEAN_AND_MEAN
19992 #define WIN32_LEAN_AND_MEAN
19993 #endif
19994 #include <windows.h>
19995 #ifdef HAVE_WINSOCK2_H
19996 #include <winsock2.h>
19997 #else
19998 #ifdef HAVE_WINSOCK_H
19999 #include <winsock.h>
20000 #endif
20001 #endif
20002 #endif
20003
20004 int main (void)
20005 {
20006
20007           gethostbyname("www.dummysite.com");
20008
20009  ;
20010  return 0;
20011 }
20012
20013 _ACEOF
20014 if ac_fn_c_try_link "$LINENO"; then :
20015
20016         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20017 $as_echo "yes" >&6; }
20018         HAVE_GETHOSTBYNAME="1"
20019
20020 else
20021
20022         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20023 $as_echo "no" >&6; }
20024         winsock_LIB=""
20025         LIBS=$my_ac_save_LIBS
20026
20027 fi
20028 rm -f core conftest.err conftest.$ac_objext \
20029     conftest$ac_exeext conftest.$ac_ext
20030     fi
20031   fi
20032 fi
20033
20034 if test "$HAVE_GETHOSTBYNAME" != "1"
20035 then
20036     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
20037 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
20038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20039 /* end confdefs.h.  */
20040
20041
20042 /* Older Minix versions may need <net/gen/netdb.h> here instead */
20043 #include <netdb.h>
20044
20045 int main (void)
20046 {
20047
20048       gethostbyname("www.dummysite.com");
20049
20050  ;
20051  return 0;
20052 }
20053
20054 _ACEOF
20055 if ac_fn_c_try_link "$LINENO"; then :
20056
20057     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20058 $as_echo "yes" >&6; }
20059     HAVE_GETHOSTBYNAME="1"
20060
20061 else
20062
20063     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20064 $as_echo "no" >&6; }
20065
20066 fi
20067 rm -f core conftest.err conftest.$ac_objext \
20068     conftest$ac_exeext conftest.$ac_ext
20069 fi
20070
20071 if test "$HAVE_GETHOSTBYNAME" != "1"
20072 then
20073     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
20074 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
20075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20076 /* end confdefs.h.  */
20077
20078
20079 #include <stdio.h>
20080 #include <netdb.h>
20081
20082 int main (void)
20083 {
20084
20085       gethostbyname("www.dummysite.com");
20086
20087  ;
20088  return 0;
20089 }
20090
20091 _ACEOF
20092 if ac_fn_c_try_link "$LINENO"; then :
20093
20094     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20095 $as_echo "yes" >&6; }
20096     HAVE_GETHOSTBYNAME="1"
20097
20098 else
20099
20100     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20101 $as_echo "no" >&6; }
20102
20103 fi
20104 rm -f core conftest.err conftest.$ac_objext \
20105     conftest$ac_exeext conftest.$ac_ext
20106 fi
20107
20108 if test "$HAVE_GETHOSTBYNAME" != "1"
20109 then
20110     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
20111 $as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
20112 if ${ac_cv_lib_network_gethostbyname+:} false; then :
20113   $as_echo_n "(cached) " >&6
20114 else
20115   ac_check_lib_save_LIBS=$LIBS
20116 LIBS="-lnetwork  $LIBS"
20117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20118 /* end confdefs.h.  */
20119
20120
20121 #ifdef __cplusplus
20122 extern "C"
20123 #endif
20124 char gethostbyname ();
20125 int main (void)
20126 {
20127 return gethostbyname ();
20128  ;
20129  return 0;
20130 }
20131 _ACEOF
20132 if ac_fn_c_try_link "$LINENO"; then :
20133   ac_cv_lib_network_gethostbyname=yes
20134 else
20135   ac_cv_lib_network_gethostbyname=no
20136 fi
20137 rm -f core conftest.err conftest.$ac_objext \
20138     conftest$ac_exeext conftest.$ac_ext
20139 LIBS=$ac_check_lib_save_LIBS
20140 fi
20141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
20142 $as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
20143 if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
20144   HAVE_GETHOSTBYNAME="1"
20145                LIBS="-lnetwork $LIBS"
20146
20147 fi
20148
20149 fi
20150
20151 if test "$HAVE_GETHOSTBYNAME" != "1"
20152 then
20153     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
20154 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
20155 if ${ac_cv_lib_net_gethostbyname+:} false; then :
20156   $as_echo_n "(cached) " >&6
20157 else
20158   ac_check_lib_save_LIBS=$LIBS
20159 LIBS="-lnet  $LIBS"
20160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20161 /* end confdefs.h.  */
20162
20163
20164 #ifdef __cplusplus
20165 extern "C"
20166 #endif
20167 char gethostbyname ();
20168 int main (void)
20169 {
20170 return gethostbyname ();
20171  ;
20172  return 0;
20173 }
20174 _ACEOF
20175 if ac_fn_c_try_link "$LINENO"; then :
20176   ac_cv_lib_net_gethostbyname=yes
20177 else
20178   ac_cv_lib_net_gethostbyname=no
20179 fi
20180 rm -f core conftest.err conftest.$ac_objext \
20181     conftest$ac_exeext conftest.$ac_ext
20182 LIBS=$ac_check_lib_save_LIBS
20183 fi
20184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
20185 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
20186 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
20187   HAVE_GETHOSTBYNAME="1"
20188                LIBS="-lnet $LIBS"
20189
20190 fi
20191
20192 fi
20193
20194
20195 if test "$HAVE_GETHOSTBYNAME" != "1"; then
20196   as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
20197 fi
20198
20199
20200 curl_includes_winsock2="\
20201 /* includes start */
20202 #ifdef HAVE_WINDOWS_H
20203 #  ifndef WIN32_LEAN_AND_MEAN
20204 #    define WIN32_LEAN_AND_MEAN
20205 #  endif
20206 #  include <windows.h>
20207 #  ifdef HAVE_WINSOCK2_H
20208 #    include <winsock2.h>
20209 #  else
20210 #    ifdef HAVE_WINSOCK_H
20211 #      include <winsock.h>
20212 #    endif
20213 #  endif
20214 #endif
20215 /* includes end */"
20216
20217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20218 $as_echo_n "checking for windows.h... " >&6; }
20219 if ${curl_cv_header_windows_h+:} false; then :
20220   $as_echo_n "(cached) " >&6
20221 else
20222
20223     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20224 /* end confdefs.h.  */
20225
20226
20227 #undef inline
20228 #ifndef WIN32_LEAN_AND_MEAN
20229 #define WIN32_LEAN_AND_MEAN
20230 #endif
20231 #include <windows.h>
20232
20233 int main (void)
20234 {
20235
20236 #if defined(__CYGWIN__) || defined(__CEGCC__)
20237         HAVE_WINDOWS_H shall not be defined.
20238 #else
20239         int dummy=2*WINVER;
20240 #endif
20241
20242  ;
20243  return 0;
20244 }
20245
20246 _ACEOF
20247 if ac_fn_c_try_compile "$LINENO"; then :
20248
20249       curl_cv_header_windows_h="yes"
20250
20251 else
20252
20253       curl_cv_header_windows_h="no"
20254
20255 fi
20256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20257
20258 fi
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
20260 $as_echo "$curl_cv_header_windows_h" >&6; }
20261   case "$curl_cv_header_windows_h" in
20262     yes)
20263
20264 cat >>confdefs.h <<_ACEOF
20265 #define HAVE_WINDOWS_H 1
20266 _ACEOF
20267
20268
20269 cat >>confdefs.h <<_ACEOF
20270 #define WIN32_LEAN_AND_MEAN 1
20271 _ACEOF
20272
20273       ;;
20274   esac
20275
20276
20277     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
20278 $as_echo_n "checking for winsock.h... " >&6; }
20279 if ${curl_cv_header_winsock_h+:} false; then :
20280   $as_echo_n "(cached) " >&6
20281 else
20282
20283     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20284 /* end confdefs.h.  */
20285
20286
20287 #undef inline
20288 #ifndef WIN32_LEAN_AND_MEAN
20289 #define WIN32_LEAN_AND_MEAN
20290 #endif
20291 #include <windows.h>
20292 #include <winsock.h>
20293
20294 int main (void)
20295 {
20296
20297 #if defined(__CYGWIN__) || defined(__CEGCC__)
20298         HAVE_WINSOCK_H shall not be defined.
20299 #else
20300         int dummy=WSACleanup();
20301 #endif
20302
20303  ;
20304  return 0;
20305 }
20306
20307 _ACEOF
20308 if ac_fn_c_try_compile "$LINENO"; then :
20309
20310       curl_cv_header_winsock_h="yes"
20311
20312 else
20313
20314       curl_cv_header_winsock_h="no"
20315
20316 fi
20317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20318
20319 fi
20320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
20321 $as_echo "$curl_cv_header_winsock_h" >&6; }
20322   case "$curl_cv_header_winsock_h" in
20323     yes)
20324
20325 cat >>confdefs.h <<_ACEOF
20326 #define HAVE_WINSOCK_H 1
20327 _ACEOF
20328
20329       ;;
20330   esac
20331
20332
20333     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20334 $as_echo_n "checking for winsock2.h... " >&6; }
20335 if ${curl_cv_header_winsock2_h+:} false; then :
20336   $as_echo_n "(cached) " >&6
20337 else
20338
20339     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20340 /* end confdefs.h.  */
20341
20342
20343 #undef inline
20344 #ifndef WIN32_LEAN_AND_MEAN
20345 #define WIN32_LEAN_AND_MEAN
20346 #endif
20347 #include <windows.h>
20348 #include <winsock2.h>
20349
20350 int main (void)
20351 {
20352
20353 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20354         HAVE_WINSOCK2_H shall not be defined.
20355 #else
20356         int dummy=2*IPPROTO_ESP;
20357 #endif
20358
20359  ;
20360  return 0;
20361 }
20362
20363 _ACEOF
20364 if ac_fn_c_try_compile "$LINENO"; then :
20365
20366       curl_cv_header_winsock2_h="yes"
20367
20368 else
20369
20370       curl_cv_header_winsock2_h="no"
20371
20372 fi
20373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20374
20375 fi
20376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
20377 $as_echo "$curl_cv_header_winsock2_h" >&6; }
20378   case "$curl_cv_header_winsock2_h" in
20379     yes)
20380
20381 cat >>confdefs.h <<_ACEOF
20382 #define HAVE_WINSOCK2_H 1
20383 _ACEOF
20384
20385       ;;
20386   esac
20387
20388
20389
20390     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
20391 $as_echo_n "checking for connect in libraries... " >&6; }
20392   tst_connect_save_LIBS="$LIBS"
20393   tst_connect_need_LIBS="unknown"
20394   for tst_lib in '' '-lsocket' ; do
20395     if test "$tst_connect_need_LIBS" = "unknown"; then
20396       LIBS="$tst_lib $tst_connect_save_LIBS"
20397       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20398 /* end confdefs.h.  */
20399
20400
20401           $curl_includes_winsock2
20402           #ifndef HAVE_WINDOWS_H
20403             int connect(int, void*, int);
20404           #endif
20405
20406 int main (void)
20407 {
20408
20409           if(0 != connect(0, 0, 0))
20410             return 1;
20411
20412  ;
20413  return 0;
20414 }
20415
20416 _ACEOF
20417 if ac_fn_c_try_link "$LINENO"; then :
20418
20419         tst_connect_need_LIBS="$tst_lib"
20420
20421 fi
20422 rm -f core conftest.err conftest.$ac_objext \
20423     conftest$ac_exeext conftest.$ac_ext
20424     fi
20425   done
20426   LIBS="$tst_connect_save_LIBS"
20427   #
20428   case X-"$tst_connect_need_LIBS" in
20429     X-unknown)
20430       { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
20431 $as_echo "cannot find connect" >&6; }
20432       as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
20433       ;;
20434     X-)
20435       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20436 $as_echo "yes" >&6; }
20437       ;;
20438     *)
20439       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
20440 $as_echo "$tst_connect_need_LIBS" >&6; }
20441       LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
20442       ;;
20443   esac
20444
20445
20446 CURL_NETWORK_LIBS=$LIBS
20447
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20449 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20450 if ${ac_cv_header_time+:} false; then :
20451   $as_echo_n "(cached) " >&6
20452 else
20453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20454 /* end confdefs.h.  */
20455 #include <sys/types.h>
20456 #include <sys/time.h>
20457 #include <time.h>
20458
20459 int main (void)
20460 {
20461 if ((struct tm *) 0)
20462 return 0;
20463  ;
20464  return 0;
20465 }
20466 _ACEOF
20467 if ac_fn_c_try_compile "$LINENO"; then :
20468   ac_cv_header_time=yes
20469 else
20470   ac_cv_header_time=no
20471 fi
20472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20473 fi
20474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20475 $as_echo "$ac_cv_header_time" >&6; }
20476 if test $ac_cv_header_time = yes; then
20477
20478 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20479
20480 fi
20481
20482
20483     for ac_header in sys/types.h sys/time.h time.h
20484 do :
20485   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20486 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20487 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20488   cat >>confdefs.h <<_ACEOF
20489 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20490 _ACEOF
20491
20492 fi
20493
20494 done
20495
20496   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
20497 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
20498   #
20499   if test "x$dontwant_rt" = "xno" ; then
20500     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20501 /* end confdefs.h.  */
20502
20503
20504 #ifdef HAVE_SYS_TYPES_H
20505 #include <sys/types.h>
20506 #endif
20507 #ifdef HAVE_SYS_TIME_H
20508 #include <sys/time.h>
20509 #ifdef TIME_WITH_SYS_TIME
20510 #include <time.h>
20511 #endif
20512 #else
20513 #ifdef HAVE_TIME_H
20514 #include <time.h>
20515 #endif
20516 #endif
20517
20518 int main (void)
20519 {
20520
20521         struct timespec ts;
20522         (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20523
20524  ;
20525  return 0;
20526 }
20527
20528 _ACEOF
20529 if ac_fn_c_try_compile "$LINENO"; then :
20530
20531       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20532 $as_echo "yes" >&6; }
20533       curl_func_clock_gettime="yes"
20534
20535 else
20536
20537       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20538 $as_echo "no" >&6; }
20539       curl_func_clock_gettime="no"
20540
20541 fi
20542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20543   fi
20544
20545
20546     #
20547   if test "$curl_func_clock_gettime" = "yes"; then
20548     #
20549     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
20550 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
20551     #
20552     curl_cv_save_LIBS="$LIBS"
20553     curl_cv_gclk_LIBS="unknown"
20554     #
20555     for x_xlibs in '' '-lrt' '-lposix4' ; do
20556       if test "$curl_cv_gclk_LIBS" = "unknown"; then
20557         if test -z "$x_xlibs"; then
20558           LIBS="$curl_cv_save_LIBS"
20559         else
20560           LIBS="$x_xlibs $curl_cv_save_LIBS"
20561         fi
20562         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20563 /* end confdefs.h.  */
20564
20565
20566 #ifdef HAVE_SYS_TYPES_H
20567 #include <sys/types.h>
20568 #endif
20569 #ifdef HAVE_SYS_TIME_H
20570 #include <sys/time.h>
20571 #ifdef TIME_WITH_SYS_TIME
20572 #include <time.h>
20573 #endif
20574 #else
20575 #ifdef HAVE_TIME_H
20576 #include <time.h>
20577 #endif
20578 #endif
20579
20580 int main (void)
20581 {
20582
20583             struct timespec ts;
20584             (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20585
20586  ;
20587  return 0;
20588 }
20589
20590 _ACEOF
20591 if ac_fn_c_try_link "$LINENO"; then :
20592
20593           curl_cv_gclk_LIBS="$x_xlibs"
20594
20595 fi
20596 rm -f core conftest.err conftest.$ac_objext \
20597     conftest$ac_exeext conftest.$ac_ext
20598       fi
20599     done
20600     #
20601     LIBS="$curl_cv_save_LIBS"
20602     #
20603     case X-"$curl_cv_gclk_LIBS" in
20604       X-unknown)
20605         { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
20606 $as_echo "cannot find clock_gettime" >&6; }
20607         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20608 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20609         curl_func_clock_gettime="no"
20610         ;;
20611       X-)
20612         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20613 $as_echo "no additional lib required" >&6; }
20614         curl_func_clock_gettime="yes"
20615         ;;
20616       *)
20617         if test -z "$curl_cv_save_LIBS"; then
20618           LIBS="$curl_cv_gclk_LIBS"
20619         else
20620           LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
20621         fi
20622         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
20623 $as_echo "$curl_cv_gclk_LIBS" >&6; }
20624         curl_func_clock_gettime="yes"
20625         ;;
20626     esac
20627     #
20628         if test "x$cross_compiling" != "xyes" &&
20629       test "$curl_func_clock_gettime" = "yes"; then
20630       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
20631 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
20632       if test "$cross_compiling" = yes; then :
20633   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20635 as_fn_error $? "cannot run test program while cross compiling
20636 See \`config.log' for more details" "$LINENO" 5; }
20637 else
20638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20639 /* end confdefs.h.  */
20640
20641
20642 #ifdef HAVE_STDLIB_H
20643 #include <stdlib.h>
20644 #endif
20645 #ifdef HAVE_SYS_TYPES_H
20646 #include <sys/types.h>
20647 #endif
20648 #ifdef HAVE_SYS_TIME_H
20649 #include <sys/time.h>
20650 #ifdef TIME_WITH_SYS_TIME
20651 #include <time.h>
20652 #endif
20653 #else
20654 #ifdef HAVE_TIME_H
20655 #include <time.h>
20656 #endif
20657 #endif
20658
20659 int main (void)
20660 {
20661
20662           struct timespec ts;
20663           if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20664             exit(0);
20665           else
20666             exit(1);
20667
20668  ;
20669  return 0;
20670 }
20671
20672 _ACEOF
20673 if ac_fn_c_try_run "$LINENO"; then :
20674
20675         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20676 $as_echo "yes" >&6; }
20677
20678 else
20679
20680         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20681 $as_echo "no" >&6; }
20682         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20683 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20684         curl_func_clock_gettime="no"
20685         LIBS="$curl_cv_save_LIBS"
20686
20687 fi
20688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20689   conftest.$ac_objext conftest.beam conftest.$ac_ext
20690 fi
20691
20692     fi
20693     #
20694     case "$curl_func_clock_gettime" in
20695       yes)
20696
20697 cat >>confdefs.h <<_ACEOF
20698 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
20699 _ACEOF
20700
20701         ;;
20702     esac
20703     #
20704   fi
20705   #
20706
20707
20708 CURL_NETWORK_AND_TIME_LIBS=$LIBS
20709
20710
20711
20712 clean_CPPFLAGS=$CPPFLAGS
20713 clean_LDFLAGS=$LDFLAGS
20714 clean_LIBS=$LIBS
20715 ZLIB_LIBS=""
20716
20717 # Check whether --with-zlib was given.
20718 if test "${with_zlib+set}" = set; then :
20719   withval=$with_zlib; OPT_ZLIB="$withval"
20720 fi
20721
20722
20723 if test "$OPT_ZLIB" = "no" ; then
20724     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20725 $as_echo "$as_me: WARNING: zlib disabled" >&2;}
20726 else
20727   if test "$OPT_ZLIB" = "yes" ; then
20728     OPT_ZLIB=""
20729   fi
20730
20731
20732     if test -n "$PKG_CONFIG"; then
20733       PKGCONFIG="$PKG_CONFIG"
20734     else
20735       if test -n "$ac_tool_prefix"; then
20736   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20737 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20739 $as_echo_n "checking for $ac_word... " >&6; }
20740 if ${ac_cv_path_PKGCONFIG+:} false; then :
20741   $as_echo_n "(cached) " >&6
20742 else
20743   case $PKGCONFIG in
20744   [\\/]* | ?:[\\/]*)
20745   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20746   ;;
20747   *)
20748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20749 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20750 for as_dir in $as_dummy
20751 do
20752   IFS=$as_save_IFS
20753   test -z "$as_dir" && as_dir=.
20754     for ac_exec_ext in '' $ac_executable_extensions; do
20755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20756     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20758     break 2
20759   fi
20760 done
20761   done
20762 IFS=$as_save_IFS
20763
20764   ;;
20765 esac
20766 fi
20767 PKGCONFIG=$ac_cv_path_PKGCONFIG
20768 if test -n "$PKGCONFIG"; then
20769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20770 $as_echo "$PKGCONFIG" >&6; }
20771 else
20772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20773 $as_echo "no" >&6; }
20774 fi
20775
20776
20777 fi
20778 if test -z "$ac_cv_path_PKGCONFIG"; then
20779   ac_pt_PKGCONFIG=$PKGCONFIG
20780   # Extract the first word of "pkg-config", so it can be a program name with args.
20781 set dummy pkg-config; ac_word=$2
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20783 $as_echo_n "checking for $ac_word... " >&6; }
20784 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20785   $as_echo_n "(cached) " >&6
20786 else
20787   case $ac_pt_PKGCONFIG in
20788   [\\/]* | ?:[\\/]*)
20789   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20790   ;;
20791   *)
20792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20793 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20794 for as_dir in $as_dummy
20795 do
20796   IFS=$as_save_IFS
20797   test -z "$as_dir" && as_dir=.
20798     for ac_exec_ext in '' $ac_executable_extensions; do
20799   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20800     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20802     break 2
20803   fi
20804 done
20805   done
20806 IFS=$as_save_IFS
20807
20808   ;;
20809 esac
20810 fi
20811 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
20812 if test -n "$ac_pt_PKGCONFIG"; then
20813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
20814 $as_echo "$ac_pt_PKGCONFIG" >&6; }
20815 else
20816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20817 $as_echo "no" >&6; }
20818 fi
20819
20820   if test "x$ac_pt_PKGCONFIG" = x; then
20821     PKGCONFIG="no"
20822   else
20823     case $cross_compiling:$ac_tool_warned in
20824 yes:)
20825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20827 ac_tool_warned=yes ;;
20828 esac
20829     PKGCONFIG=$ac_pt_PKGCONFIG
20830   fi
20831 else
20832   PKGCONFIG="$ac_cv_path_PKGCONFIG"
20833 fi
20834
20835     fi
20836
20837     if test "x$PKGCONFIG" != "xno"; then
20838       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
20839 $as_echo_n "checking for zlib options with pkg-config... " >&6; }
20840             itexists=`
20841     if test -n ""; then
20842       PKG_CONFIG_LIBDIR=""
20843       export PKG_CONFIG_LIBDIR
20844     fi
20845          $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
20846
20847       if test -z "$itexists"; then
20848                         PKGCONFIG="no"
20849         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20850 $as_echo "no" >&6; }
20851       else
20852         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20853 $as_echo "found" >&6; }
20854       fi
20855     fi
20856
20857
20858   if test "$PKGCONFIG" != "no" ; then
20859     LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
20860     LDFLAGS="`$PKGCONFIG --libs-only-L zlib` $LDFLAGS"
20861     CPPFLAGS="`$PKGCONFIG --cflags-only-I zlib` $CPPFLAGS"
20862     OPT_ZLIB=""
20863     HAVE_LIBZ="1"
20864   fi
20865
20866   if test -z "$OPT_ZLIB" ; then
20867
20868     if test -z "$HAVE_LIBZ"; then
20869
20870
20871       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20872 $as_echo_n "checking for inflateEnd in -lz... " >&6; }
20873 if ${ac_cv_lib_z_inflateEnd+:} false; then :
20874   $as_echo_n "(cached) " >&6
20875 else
20876   ac_check_lib_save_LIBS=$LIBS
20877 LIBS="-lz  $LIBS"
20878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20879 /* end confdefs.h.  */
20880
20881
20882 #ifdef __cplusplus
20883 extern "C"
20884 #endif
20885 char inflateEnd ();
20886 int main (void)
20887 {
20888 return inflateEnd ();
20889  ;
20890  return 0;
20891 }
20892 _ACEOF
20893 if ac_fn_c_try_link "$LINENO"; then :
20894   ac_cv_lib_z_inflateEnd=yes
20895 else
20896   ac_cv_lib_z_inflateEnd=no
20897 fi
20898 rm -f core conftest.err conftest.$ac_objext \
20899     conftest$ac_exeext conftest.$ac_ext
20900 LIBS=$ac_check_lib_save_LIBS
20901 fi
20902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20903 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20904 if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20905                      HAVE_LIBZ="1"
20906                     LIBS="-lz $LIBS"
20907 else
20908                      OPT_ZLIB="/usr/local"
20909 fi
20910
20911     fi
20912   fi
20913
20914     if test -n "$OPT_ZLIB"; then
20915      CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20916      LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20917   fi
20918
20919   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20920 if test "x$ac_cv_header_zlib_h" = xyes; then :
20921
20922         HAVE_ZLIB_H="1"
20923         if test "$HAVE_LIBZ" != "1"; then
20924       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20925 $as_echo_n "checking for gzread in -lz... " >&6; }
20926 if ${ac_cv_lib_z_gzread+:} false; then :
20927   $as_echo_n "(cached) " >&6
20928 else
20929   ac_check_lib_save_LIBS=$LIBS
20930 LIBS="-lz  $LIBS"
20931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20932 /* end confdefs.h.  */
20933
20934
20935 #ifdef __cplusplus
20936 extern "C"
20937 #endif
20938 char gzread ();
20939 int main (void)
20940 {
20941 return gzread ();
20942  ;
20943  return 0;
20944 }
20945 _ACEOF
20946 if ac_fn_c_try_link "$LINENO"; then :
20947   ac_cv_lib_z_gzread=yes
20948 else
20949   ac_cv_lib_z_gzread=no
20950 fi
20951 rm -f core conftest.err conftest.$ac_objext \
20952     conftest$ac_exeext conftest.$ac_ext
20953 LIBS=$ac_check_lib_save_LIBS
20954 fi
20955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20956 $as_echo "$ac_cv_lib_z_gzread" >&6; }
20957 if test "x$ac_cv_lib_z_gzread" = xyes; then :
20958
20959                                       HAVE_LIBZ="1"
20960                    LIBS="-lz $LIBS"
20961
20962 else
20963    CPPFLAGS=$clean_CPPFLAGS
20964                    LDFLAGS=$clean_LDFLAGS
20965 fi
20966
20967     fi
20968
20969 else
20970
20971             CPPFLAGS=$clean_CPPFLAGS
20972       LDFLAGS=$clean_LDFLAGS
20973
20974 fi
20975
20976
20977
20978   if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20979   then
20980     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20981 $as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20982     HAVE_LIBZ=""
20983     CPPFLAGS=$clean_CPPFLAGS
20984     LDFLAGS=$clean_LDFLAGS
20985     LIBS=$clean_LIBS
20986   elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20987   then
20988     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20989 $as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20990     CPPFLAGS=$clean_CPPFLAGS
20991     LDFLAGS=$clean_LDFLAGS
20992     LIBS=$clean_LIBS
20993   elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20994   then
20995
20996
20997 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20998
20999
21000 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
21001
21002
21003     ZLIB_LIBS="-lz"
21004     LIBS="-lz $clean_LIBS"
21005
21006         AMFIXLIB="1"
21007     { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
21008 $as_echo "$as_me: found both libz and libz.h header" >&6;}
21009     curl_zlib_msg="enabled"
21010   fi
21011 fi
21012
21013  if test x"$AMFIXLIB" = x1; then
21014   HAVE_LIBZ_TRUE=
21015   HAVE_LIBZ_FALSE='#'
21016 else
21017   HAVE_LIBZ_TRUE='#'
21018   HAVE_LIBZ_FALSE=
21019 fi
21020
21021
21022
21023
21024 LDAPLIBNAME=""
21025
21026 # Check whether --with-ldap-lib was given.
21027 if test "${with_ldap_lib+set}" = set; then :
21028   withval=$with_ldap_lib; LDAPLIBNAME="$withval"
21029 fi
21030
21031
21032 LBERLIBNAME=""
21033
21034 # Check whether --with-lber-lib was given.
21035 if test "${with_lber_lib+set}" = set; then :
21036   withval=$with_lber_lib; LBERLIBNAME="$withval"
21037 fi
21038
21039
21040 if test x$CURL_DISABLE_LDAP != x1 ; then
21041
21042
21043     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
21044 $as_echo_n "checking for lber.h... " >&6; }
21045 if ${curl_cv_header_lber_h+:} false; then :
21046   $as_echo_n "(cached) " >&6
21047 else
21048
21049     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21050 /* end confdefs.h.  */
21051
21052
21053 #undef inline
21054 #ifdef HAVE_WINDOWS_H
21055 #ifndef WIN32_LEAN_AND_MEAN
21056 #define WIN32_LEAN_AND_MEAN
21057 #endif
21058 #include <windows.h>
21059 #else
21060 #ifdef HAVE_SYS_TYPES_H
21061 #include <sys/types.h>
21062 #endif
21063 #endif
21064 #ifndef NULL
21065 #define NULL (void *)0
21066 #endif
21067 #include <lber.h>
21068
21069 int main (void)
21070 {
21071
21072         BerValue *bvp = NULL;
21073         BerElement *bep = ber_init(bvp);
21074         ber_free(bep, 1);
21075
21076  ;
21077  return 0;
21078 }
21079
21080 _ACEOF
21081 if ac_fn_c_try_compile "$LINENO"; then :
21082
21083       curl_cv_header_lber_h="yes"
21084
21085 else
21086
21087       curl_cv_header_lber_h="no"
21088
21089 fi
21090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21091
21092 fi
21093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
21094 $as_echo "$curl_cv_header_lber_h" >&6; }
21095   if test "$curl_cv_header_lber_h" = "yes"; then
21096
21097 cat >>confdefs.h <<_ACEOF
21098 #define HAVE_LBER_H 1
21099 _ACEOF
21100
21101     #
21102     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21103 /* end confdefs.h.  */
21104
21105
21106 #undef inline
21107 #ifdef HAVE_WINDOWS_H
21108 #ifndef WIN32_LEAN_AND_MEAN
21109 #define WIN32_LEAN_AND_MEAN
21110 #endif
21111 #include <windows.h>
21112 #else
21113 #ifdef HAVE_SYS_TYPES_H
21114 #include <sys/types.h>
21115 #endif
21116 #endif
21117 #ifndef NULL
21118 #define NULL (void *)0
21119 #endif
21120 #ifndef LDAP_DEPRECATED
21121 #define LDAP_DEPRECATED 1
21122 #endif
21123 #include <ldap.h>
21124
21125 int main (void)
21126 {
21127
21128         BerValue *bvp = NULL;
21129         BerElement *bep = ber_init(bvp);
21130         ber_free(bep, 1);
21131
21132  ;
21133  return 0;
21134 }
21135
21136 _ACEOF
21137 if ac_fn_c_try_compile "$LINENO"; then :
21138
21139       curl_cv_need_header_lber_h="no"
21140
21141 else
21142
21143       curl_cv_need_header_lber_h="yes"
21144
21145 fi
21146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21147     #
21148     case "$curl_cv_need_header_lber_h" in
21149       yes)
21150
21151 cat >>confdefs.h <<_ACEOF
21152 #define NEED_LBER_H 1
21153 _ACEOF
21154
21155         ;;
21156     esac
21157   fi
21158
21159
21160     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
21161 $as_echo_n "checking for ldap.h... " >&6; }
21162 if ${curl_cv_header_ldap_h+:} false; then :
21163   $as_echo_n "(cached) " >&6
21164 else
21165
21166     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21167 /* end confdefs.h.  */
21168
21169
21170 #undef inline
21171 #ifdef HAVE_WINDOWS_H
21172 #ifndef WIN32_LEAN_AND_MEAN
21173 #define WIN32_LEAN_AND_MEAN
21174 #endif
21175 #include <windows.h>
21176 #else
21177 #ifdef HAVE_SYS_TYPES_H
21178 #include <sys/types.h>
21179 #endif
21180 #endif
21181 #ifndef LDAP_DEPRECATED
21182 #define LDAP_DEPRECATED 1
21183 #endif
21184 #ifdef NEED_LBER_H
21185 #include <lber.h>
21186 #endif
21187 #include <ldap.h>
21188
21189 int main (void)
21190 {
21191
21192         LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21193         int res = ldap_unbind(ldp);
21194
21195  ;
21196  return 0;
21197 }
21198
21199 _ACEOF
21200 if ac_fn_c_try_compile "$LINENO"; then :
21201
21202       curl_cv_header_ldap_h="yes"
21203
21204 else
21205
21206       curl_cv_header_ldap_h="no"
21207
21208 fi
21209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21210
21211 fi
21212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
21213 $as_echo "$curl_cv_header_ldap_h" >&6; }
21214   case "$curl_cv_header_ldap_h" in
21215     yes)
21216
21217 cat >>confdefs.h <<_ACEOF
21218 #define HAVE_LDAP_H 1
21219 _ACEOF
21220
21221       ;;
21222   esac
21223
21224
21225     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
21226 $as_echo_n "checking for ldapssl.h... " >&6; }
21227 if ${curl_cv_header_ldapssl_h+:} false; then :
21228   $as_echo_n "(cached) " >&6
21229 else
21230
21231     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21232 /* end confdefs.h.  */
21233
21234
21235 #undef inline
21236 #ifdef HAVE_WINDOWS_H
21237 #ifndef WIN32_LEAN_AND_MEAN
21238 #define WIN32_LEAN_AND_MEAN
21239 #endif
21240 #include <windows.h>
21241 #else
21242 #ifdef HAVE_SYS_TYPES_H
21243 #include <sys/types.h>
21244 #endif
21245 #endif
21246 #ifndef NULL
21247 #define NULL (void *)0
21248 #endif
21249 #ifndef LDAP_DEPRECATED
21250 #define LDAP_DEPRECATED 1
21251 #endif
21252 #ifdef NEED_LBER_H
21253 #include <lber.h>
21254 #endif
21255 #ifdef HAVE_LDAP_H
21256 #include <ldap.h>
21257 #endif
21258 #include <ldapssl.h>
21259
21260 int main (void)
21261 {
21262
21263         char *cert_label = NULL;
21264         LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
21265
21266  ;
21267  return 0;
21268 }
21269
21270 _ACEOF
21271 if ac_fn_c_try_compile "$LINENO"; then :
21272
21273       curl_cv_header_ldapssl_h="yes"
21274
21275 else
21276
21277       curl_cv_header_ldapssl_h="no"
21278
21279 fi
21280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21281
21282 fi
21283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
21284 $as_echo "$curl_cv_header_ldapssl_h" >&6; }
21285   case "$curl_cv_header_ldapssl_h" in
21286     yes)
21287
21288 cat >>confdefs.h <<_ACEOF
21289 #define HAVE_LDAPSSL_H 1
21290 _ACEOF
21291
21292       ;;
21293   esac
21294
21295
21296     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
21297 $as_echo_n "checking for ldap_ssl.h... " >&6; }
21298 if ${curl_cv_header_ldap_ssl_h+:} false; then :
21299   $as_echo_n "(cached) " >&6
21300 else
21301
21302     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21303 /* end confdefs.h.  */
21304
21305
21306 #undef inline
21307 #ifdef HAVE_WINDOWS_H
21308 #ifndef WIN32_LEAN_AND_MEAN
21309 #define WIN32_LEAN_AND_MEAN
21310 #endif
21311 #include <windows.h>
21312 #else
21313 #ifdef HAVE_SYS_TYPES_H
21314 #include <sys/types.h>
21315 #endif
21316 #endif
21317 #ifndef LDAP_DEPRECATED
21318 #define LDAP_DEPRECATED 1
21319 #endif
21320 #ifdef NEED_LBER_H
21321 #include <lber.h>
21322 #endif
21323 #ifdef HAVE_LDAP_H
21324 #include <ldap.h>
21325 #endif
21326 #include <ldap_ssl.h>
21327
21328 int main (void)
21329 {
21330
21331         LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
21332
21333  ;
21334  return 0;
21335 }
21336
21337 _ACEOF
21338 if ac_fn_c_try_compile "$LINENO"; then :
21339
21340       curl_cv_header_ldap_ssl_h="yes"
21341
21342 else
21343
21344       curl_cv_header_ldap_ssl_h="no"
21345
21346 fi
21347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21348
21349 fi
21350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
21351 $as_echo "$curl_cv_header_ldap_ssl_h" >&6; }
21352   case "$curl_cv_header_ldap_ssl_h" in
21353     yes)
21354
21355 cat >>confdefs.h <<_ACEOF
21356 #define HAVE_LDAP_SSL_H 1
21357 _ACEOF
21358
21359       ;;
21360   esac
21361
21362
21363   if test -z "$LDAPLIBNAME" ; then
21364     if test "$curl_cv_native_windows" = "yes"; then
21365             LDAPLIBNAME="wldap32"
21366       LBERLIBNAME="no"
21367     fi
21368   fi
21369
21370   if test "$LDAPLIBNAME" ; then
21371     as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
21373 $as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
21374 if eval \${$as_ac_Lib+:} false; then :
21375   $as_echo_n "(cached) " >&6
21376 else
21377   ac_check_lib_save_LIBS=$LIBS
21378 LIBS="-l"$LDAPLIBNAME"  $LIBS"
21379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21380 /* end confdefs.h.  */
21381
21382
21383 #ifdef __cplusplus
21384 extern "C"
21385 #endif
21386 char ldap_init ();
21387 int main (void)
21388 {
21389 return ldap_init ();
21390  ;
21391  return 0;
21392 }
21393 _ACEOF
21394 if ac_fn_c_try_link "$LINENO"; then :
21395   eval "$as_ac_Lib=yes"
21396 else
21397   eval "$as_ac_Lib=no"
21398 fi
21399 rm -f core conftest.err conftest.$ac_objext \
21400     conftest$ac_exeext conftest.$ac_ext
21401 LIBS=$ac_check_lib_save_LIBS
21402 fi
21403 eval ac_res=\$$as_ac_Lib
21404                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21405 $as_echo "$ac_res" >&6; }
21406 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21407   cat >>confdefs.h <<_ACEOF
21408 #define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
21409 _ACEOF
21410
21411   LIBS="-l"$LDAPLIBNAME" $LIBS"
21412
21413 else
21414
21415       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
21416 $as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
21417
21418 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21419
21420       CURL_DISABLE_LDAP=1
21421
21422
21423 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21424
21425       CURL_DISABLE_LDAPS=1
21426
21427 fi
21428
21429   else
21430
21431     #
21432   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
21433 $as_echo_n "checking for LDAP libraries... " >&6; }
21434   #
21435   u_libs=""
21436   #
21437
21438   #
21439   curl_cv_save_LIBS="$LIBS"
21440   curl_cv_ldap_LIBS="unknown"
21441   #
21442   for x_nlibs in '' "$u_libs" \
21443     '-lldap' \
21444     '-llber -lldap' \
21445     '-lldap -llber' \
21446     '-lldapssl -lldapx -lldapsdk' \
21447     '-lldapsdk -lldapx -lldapssl' ; do
21448     if test "$curl_cv_ldap_LIBS" = "unknown"; then
21449       if test -z "$x_nlibs"; then
21450         LIBS="$curl_cv_save_LIBS"
21451       else
21452         LIBS="$x_nlibs $curl_cv_save_LIBS"
21453       fi
21454       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21455 /* end confdefs.h.  */
21456
21457
21458 #undef inline
21459 #ifdef HAVE_WINDOWS_H
21460 #ifndef WIN32_LEAN_AND_MEAN
21461 #define WIN32_LEAN_AND_MEAN
21462 #endif
21463 #include <windows.h>
21464 #else
21465 #ifdef HAVE_SYS_TYPES_H
21466 #include <sys/types.h>
21467 #endif
21468 #endif
21469 #ifndef NULL
21470 #define NULL (void *)0
21471 #endif
21472 #ifndef LDAP_DEPRECATED
21473 #define LDAP_DEPRECATED 1
21474 #endif
21475 #ifdef NEED_LBER_H
21476 #include <lber.h>
21477 #endif
21478 #ifdef HAVE_LDAP_H
21479 #include <ldap.h>
21480 #endif
21481
21482 int main (void)
21483 {
21484
21485           BerValue *bvp = NULL;
21486           BerElement *bep = ber_init(bvp);
21487           LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21488           int res = ldap_unbind(ldp);
21489           ber_free(bep, 1);
21490
21491  ;
21492  return 0;
21493 }
21494
21495 _ACEOF
21496 if ac_fn_c_try_link "$LINENO"; then :
21497
21498         curl_cv_ldap_LIBS="$x_nlibs"
21499
21500 fi
21501 rm -f core conftest.err conftest.$ac_objext \
21502     conftest$ac_exeext conftest.$ac_ext
21503     fi
21504   done
21505   #
21506   LIBS="$curl_cv_save_LIBS"
21507   #
21508   case X-"$curl_cv_ldap_LIBS" in
21509     X-unknown)
21510       { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
21511 $as_echo "cannot find LDAP libraries" >&6; }
21512       ;;
21513     X-)
21514       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
21515 $as_echo "no additional lib required" >&6; }
21516       ;;
21517     *)
21518       if test -z "$curl_cv_save_LIBS"; then
21519         LIBS="$curl_cv_ldap_LIBS"
21520       else
21521         LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
21522       fi
21523       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
21524 $as_echo "$curl_cv_ldap_LIBS" >&6; }
21525       ;;
21526   esac
21527   #
21528
21529     case X-"$curl_cv_ldap_LIBS" in
21530       X-unknown)
21531         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
21532 $as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
21533
21534 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21535
21536         CURL_DISABLE_LDAP=1
21537
21538
21539 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21540
21541         CURL_DISABLE_LDAPS=1
21542
21543         ;;
21544     esac
21545   fi
21546 fi
21547
21548 if test x$CURL_DISABLE_LDAP != x1 ; then
21549
21550   if test "$LBERLIBNAME" ; then
21551             if test "$LBERLIBNAME" != "no" ; then
21552       as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
21554 $as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
21555 if eval \${$as_ac_Lib+:} false; then :
21556   $as_echo_n "(cached) " >&6
21557 else
21558   ac_check_lib_save_LIBS=$LIBS
21559 LIBS="-l"$LBERLIBNAME"  $LIBS"
21560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21561 /* end confdefs.h.  */
21562
21563
21564 #ifdef __cplusplus
21565 extern "C"
21566 #endif
21567 char ber_free ();
21568 int main (void)
21569 {
21570 return ber_free ();
21571  ;
21572  return 0;
21573 }
21574 _ACEOF
21575 if ac_fn_c_try_link "$LINENO"; then :
21576   eval "$as_ac_Lib=yes"
21577 else
21578   eval "$as_ac_Lib=no"
21579 fi
21580 rm -f core conftest.err conftest.$ac_objext \
21581     conftest$ac_exeext conftest.$ac_ext
21582 LIBS=$ac_check_lib_save_LIBS
21583 fi
21584 eval ac_res=\$$as_ac_Lib
21585                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21586 $as_echo "$ac_res" >&6; }
21587 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21588   cat >>confdefs.h <<_ACEOF
21589 #define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
21590 _ACEOF
21591
21592   LIBS="-l"$LBERLIBNAME" $LIBS"
21593
21594 else
21595
21596         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
21597 $as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
21598
21599 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21600
21601         CURL_DISABLE_LDAP=1
21602
21603
21604 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21605
21606         CURL_DISABLE_LDAPS=1
21607
21608 fi
21609
21610     fi
21611   fi
21612 fi
21613
21614 if test x$CURL_DISABLE_LDAP != x1 ; then
21615   for ac_func in ldap_url_parse ldap_init_fd
21616 do :
21617   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21618 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21619 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21620   cat >>confdefs.h <<_ACEOF
21621 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21622 _ACEOF
21623
21624 fi
21625 done
21626
21627
21628   if test "$LDAPLIBNAME" = "wldap32"; then
21629     curl_ldap_msg="enabled (winldap)"
21630
21631 $as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
21632
21633   else
21634     curl_ldap_msg="enabled (OpenLDAP)"
21635     if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
21636
21637 $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
21638
21639       USE_OPENLDAP=1
21640
21641     fi
21642   fi
21643 fi
21644
21645 if test x$CURL_DISABLE_LDAPS != x1 ; then
21646     curl_ldaps_msg="enabled"
21647 fi
21648
21649
21650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
21651 $as_echo_n "checking whether to enable IPv6... " >&6; }
21652 # Check whether --enable-ipv6 was given.
21653 if test "${enable_ipv6+set}" = set; then :
21654   enableval=$enable_ipv6;  case "$enableval" in
21655   no)
21656        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21657 $as_echo "no" >&6; }
21658        ipv6=no
21659        ;;
21660   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21661 $as_echo "yes" >&6; }
21662        ipv6=yes
21663        ;;
21664   esac
21665 else
21666   if test "$cross_compiling" = yes; then :
21667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21668 $as_echo "yes" >&6; }
21669   ipv6=yes
21670
21671 else
21672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21673 /* end confdefs.h.  */
21674  /* is AF_INET6 available? */
21675 #include <sys/types.h>
21676 #ifdef HAVE_WINSOCK2_H
21677 #include <winsock2.h>
21678 #else
21679 #include <sys/socket.h>
21680 #endif
21681 #include <stdlib.h> /* for exit() */
21682 main()
21683 {
21684  if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
21685    exit(1);
21686  else
21687    exit(0);
21688 }
21689
21690 _ACEOF
21691 if ac_fn_c_try_run "$LINENO"; then :
21692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21693 $as_echo "yes" >&6; }
21694   ipv6=yes
21695 else
21696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21697 $as_echo "no" >&6; }
21698   ipv6=no
21699 fi
21700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21701   conftest.$ac_objext conftest.beam conftest.$ac_ext
21702 fi
21703
21704 fi
21705
21706
21707 if test "$ipv6" = "yes"; then
21708   curl_ipv6_msg="enabled"
21709 fi
21710
21711 # Check if struct sockaddr_in6 have sin6_scope_id member
21712 if test "$ipv6" = yes; then
21713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
21714 $as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
21715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21716 /* end confdefs.h.  */
21717
21718 #include <sys/types.h>
21719 #ifdef HAVE_WINSOCK2_H
21720 #include <winsock2.h>
21721 #include <ws2tcpip.h>
21722 #else
21723 #include <netinet/in.h>
21724 #endif
21725 int main (void)
21726 {
21727 struct sockaddr_in6 s; s.sin6_scope_id = 0;
21728  ;
21729  return 0;
21730 }
21731 _ACEOF
21732 if ac_fn_c_try_compile "$LINENO"; then :
21733   have_sin6_scope_id=yes
21734 fi
21735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21736   if test "$have_sin6_scope_id" = yes; then
21737     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21738 $as_echo "yes" >&6; }
21739
21740 $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
21741
21742   else
21743     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21744 $as_echo "no" >&6; }
21745   fi
21746 fi
21747
21748
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
21750 $as_echo_n "checking if argv can be written to... " >&6; }
21751 if test "$cross_compiling" = yes; then :
21752
21753   curl_cv_writable_argv=cross
21754
21755 else
21756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21757 /* end confdefs.h.  */
21758
21759
21760 int main(int argc, char ** argv) {
21761     argv[0][0] = ' ';
21762     return (argv[0][0] == ' ')?0:1;
21763 }
21764
21765
21766 _ACEOF
21767 if ac_fn_c_try_run "$LINENO"; then :
21768
21769   curl_cv_writable_argv=yes
21770
21771 else
21772
21773   curl_cv_writable_argv=no
21774
21775 fi
21776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21777   conftest.$ac_objext conftest.beam conftest.$ac_ext
21778 fi
21779
21780 case $curl_cv_writable_argv in
21781 yes)
21782
21783 $as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
21784
21785         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21786 $as_echo "yes" >&6; }
21787         ;;
21788 no)
21789         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21790 $as_echo "no" >&6; }
21791         ;;
21792 *)
21793         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21794 $as_echo "no" >&6; }
21795         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
21796 $as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
21797         ;;
21798 esac
21799
21800
21801
21802 GSSAPI_ROOT="/usr"
21803
21804 # Check whether --with-gssapi-includes was given.
21805 if test "${with_gssapi_includes+set}" = set; then :
21806   withval=$with_gssapi_includes;  GSSAPI_INCS="-I$withval"
21807     want_gss="yes"
21808
21809 fi
21810
21811
21812
21813 # Check whether --with-gssapi-libs was given.
21814 if test "${with_gssapi_libs+set}" = set; then :
21815   withval=$with_gssapi_libs;  GSSAPI_LIB_DIR="-L$withval"
21816     want_gss="yes"
21817
21818 fi
21819
21820
21821
21822 # Check whether --with-gssapi was given.
21823 if test "${with_gssapi+set}" = set; then :
21824   withval=$with_gssapi;
21825   GSSAPI_ROOT="$withval"
21826   if test x"$GSSAPI_ROOT" != xno; then
21827     want_gss="yes"
21828     if test x"$GSSAPI_ROOT" = xyes; then
21829             GSSAPI_ROOT="/usr"
21830     fi
21831   fi
21832
21833 fi
21834
21835
21836 : ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
21837
21838 save_CPPFLAGS="$CPPFLAGS"
21839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
21840 $as_echo_n "checking if GSS-API support is requested... " >&6; }
21841 if test x"$want_gss" = xyes; then
21842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21843 $as_echo "yes" >&6; }
21844
21845   if test -z "$GSSAPI_INCS"; then
21846      if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21847         GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
21848      elif test -f "$KRB5CONFIG"; then
21849         GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
21850      elif test "$GSSAPI_ROOT" != "yes"; then
21851         GSSAPI_INCS="-I$GSSAPI_ROOT/include"
21852      fi
21853   fi
21854
21855   CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
21856
21857   ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
21858 if test "x$ac_cv_header_gss_h" = xyes; then :
21859
21860
21861 $as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
21862
21863       gnu_gss=yes
21864
21865 else
21866
21867             for ac_header in gssapi/gssapi.h
21868 do :
21869   ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
21870 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
21871   cat >>confdefs.h <<_ACEOF
21872 #define HAVE_GSSAPI_GSSAPI_H 1
21873 _ACEOF
21874
21875 else
21876   not_mit=1
21877 fi
21878
21879 done
21880
21881       for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
21882 do :
21883   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21884 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
21885 $ac_includes_default
21886 #ifdef HAVE_GSSAPI_GSSAPI_H
21887 #include <gssapi/gssapi.h>
21888 #endif
21889
21890 "
21891 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21892   cat >>confdefs.h <<_ACEOF
21893 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21894 _ACEOF
21895
21896 else
21897   not_mit=1
21898 fi
21899
21900 done
21901
21902       if test "x$not_mit" = "x1"; then
21903                 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
21904 if test "x$ac_cv_header_gssapi_h" = xyes; then :
21905
21906
21907 $as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
21908
21909
21910 else
21911
21912                             want_gss=no
21913               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
21914 $as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
21915
21916
21917 fi
21918
21919
21920       else
21921
21922 $as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
21923
21924                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
21925 $as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
21926         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21927 /* end confdefs.h.  */
21928
21929
21930 #include <gssapi/gssapi.h>
21931 #include <gssapi/gssapi_generic.h>
21932 #include <gssapi/gssapi_krb5.h>
21933
21934 int main (void)
21935 {
21936
21937             gss_import_name(
21938                             (OM_uint32 *)0,
21939                             (gss_buffer_t)0,
21940                             GSS_C_NT_HOSTBASED_SERVICE,
21941                             (gss_name_t *)0);
21942
21943  ;
21944  return 0;
21945 }
21946
21947 _ACEOF
21948 if ac_fn_c_try_compile "$LINENO"; then :
21949
21950           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21951 $as_echo "yes" >&6; }
21952
21953 else
21954
21955           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21956 $as_echo "no" >&6; }
21957
21958 $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
21959
21960
21961 fi
21962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21963       fi
21964
21965
21966 fi
21967
21968
21969 else
21970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21971 $as_echo "no" >&6; }
21972 fi
21973 if test x"$want_gss" = xyes; then
21974
21975 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
21976
21977   HAVE_GSSAPI=1
21978   curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
21979
21980   if test -n "$gnu_gss"; then
21981     curl_gss_msg="enabled (GNU GSS)"
21982     LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
21983     LIBS="-lgss $LIBS"
21984   elif test -z "$GSSAPI_LIB_DIR"; then
21985      case $host in
21986      *-*-darwin*)
21987         LIBS="-lgssapi_krb5 -lresolv $LIBS"
21988         ;;
21989      *)
21990         if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21991                                  gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
21992            LIBS="$gss_libs $LIBS"
21993         elif test -f "$KRB5CONFIG"; then
21994                                  gss_libs=`$KRB5CONFIG --libs gssapi`
21995            LIBS="$gss_libs $LIBS"
21996         else
21997            case $host in
21998            *-hp-hpux*)
21999               gss_libname="gss"
22000               ;;
22001            *)
22002               gss_libname="gssapi"
22003               ;;
22004            esac
22005
22006            if test "$GSSAPI_ROOT" != "yes"; then
22007               LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
22008               LIBS="-l$gss_libname $LIBS"
22009            else
22010               LIBS="-l$gss_libname $LIBS"
22011            fi
22012         fi
22013         ;;
22014      esac
22015   else
22016      LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22017      case $host in
22018      *-hp-hpux*)
22019         LIBS="-lgss $LIBS"
22020         ;;
22021      *)
22022         LIBS="-lgssapi $LIBS"
22023         ;;
22024      esac
22025   fi
22026 else
22027   CPPFLAGS="$save_CPPFLAGS"
22028 fi
22029
22030
22031 OPT_WINSSL=no
22032
22033 # Check whether --with-winssl was given.
22034 if test "${with_winssl+set}" = set; then :
22035   withval=$with_winssl; OPT_WINSSL=$withval
22036 fi
22037
22038
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
22040 $as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
22041 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
22042   if test "x$OPT_WINSSL" != "xno"  &&
22043      test "x$curl_cv_native_windows" = "xyes"; then
22044     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22045 $as_echo "yes" >&6; }
22046
22047 $as_echo "#define USE_SCHANNEL 1" >>confdefs.h
22048
22049     USE_SCHANNEL=1
22050
22051     curl_ssl_msg="enabled (Windows-native)"
22052     WINSSL_ENABLED=1
22053     # --with-winssl implies --enable-sspi
22054
22055 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
22056
22057     USE_WINDOWS_SSPI=1
22058
22059     curl_sspi_msg="enabled"
22060     LIBS="-lcrypt32 $LIBS"
22061   else
22062     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22063 $as_echo "no" >&6; }
22064   fi
22065 else
22066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22067 $as_echo "no" >&6; }
22068 fi
22069
22070 OPT_DARWINSSL=no
22071
22072 # Check whether --with-darwinssl was given.
22073 if test "${with_darwinssl+set}" = set; then :
22074   withval=$with_darwinssl; OPT_DARWINSSL=$withval
22075 fi
22076
22077
22078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Apple OS native SSL/TLS" >&5
22079 $as_echo_n "checking whether to enable Apple OS native SSL/TLS... " >&6; }
22080 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
22081   if test "x$OPT_DARWINSSL" != "xno" &&
22082      test -d "/System/Library/Frameworks/Security.framework"; then
22083     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22084 $as_echo "yes" >&6; }
22085
22086 $as_echo "#define USE_DARWINSSL 1" >>confdefs.h
22087
22088     USE_DARWINSSL=1
22089
22090     curl_ssl_msg="enabled (Apple OS-native)"
22091     DARWINSSL_ENABLED=1
22092     LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
22093   else
22094     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22095 $as_echo "no" >&6; }
22096   fi
22097 else
22098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22099 $as_echo "no" >&6; }
22100 fi
22101
22102
22103 OPT_SSL=off
22104 ca="no"
22105
22106 # Check whether --with-ssl was given.
22107 if test "${with_ssl+set}" = set; then :
22108   withval=$with_ssl; OPT_SSL=$withval
22109 fi
22110
22111
22112 if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then
22113     CLEANLDFLAGS="$LDFLAGS"
22114   CLEANCPPFLAGS="$CPPFLAGS"
22115   CLEANLIBS="$LIBS"
22116
22117     case $host in
22118     *-*-msys* | *-*-mingw*)
22119       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
22120 $as_echo_n "checking for gdi32... " >&6; }
22121       my_ac_save_LIBS=$LIBS
22122       LIBS="-lgdi32 $LIBS"
22123       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22124 /* end confdefs.h.  */
22125 #include <windef.h>
22126                    #include <wingdi.h>
22127 int main (void)
22128 {
22129 GdiFlush();
22130  ;
22131  return 0;
22132 }
22133 _ACEOF
22134 if ac_fn_c_try_link "$LINENO"; then :
22135                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22136 $as_echo "yes" >&6; }
22137 else
22138                       LIBS=$my_ac_save_LIBS
22139                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22140 $as_echo "no" >&6; }
22141
22142 fi
22143 rm -f core conftest.err conftest.$ac_objext \
22144     conftest$ac_exeext conftest.$ac_ext
22145       ;;
22146   esac
22147
22148   case "$OPT_SSL" in
22149   yes)
22150         if test x$cross_compiling != xyes; then
22151             PKGTEST="yes"
22152     fi
22153     PREFIX_OPENSSL=/usr/local/ssl
22154     LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22155     ;;
22156   off)
22157         if test x$cross_compiling != xyes; then
22158             PKGTEST="yes"
22159     fi
22160     PREFIX_OPENSSL=
22161     ;;
22162   *)
22163         PKGTEST="no"
22164     PREFIX_OPENSSL=$OPT_SSL
22165
22166                 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
22167     { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
22168 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
22169     if test -f "$OPENSSL_PCDIR/openssl.pc"; then
22170       PKGTEST="yes"
22171     fi
22172
22173             LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22174     if test "$PREFIX_OPENSSL" != "/usr" ; then
22175       SSL_LDFLAGS="-L$LIB_OPENSSL"
22176       SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
22177     fi
22178     SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
22179     ;;
22180   esac
22181
22182   if test "$PKGTEST" = "yes"; then
22183
22184
22185     if test -n "$PKG_CONFIG"; then
22186       PKGCONFIG="$PKG_CONFIG"
22187     else
22188       if test -n "$ac_tool_prefix"; then
22189   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22190 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22192 $as_echo_n "checking for $ac_word... " >&6; }
22193 if ${ac_cv_path_PKGCONFIG+:} false; then :
22194   $as_echo_n "(cached) " >&6
22195 else
22196   case $PKGCONFIG in
22197   [\\/]* | ?:[\\/]*)
22198   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22199   ;;
22200   *)
22201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22202 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22203 for as_dir in $as_dummy
22204 do
22205   IFS=$as_save_IFS
22206   test -z "$as_dir" && as_dir=.
22207     for ac_exec_ext in '' $ac_executable_extensions; do
22208   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22209     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22211     break 2
22212   fi
22213 done
22214   done
22215 IFS=$as_save_IFS
22216
22217   ;;
22218 esac
22219 fi
22220 PKGCONFIG=$ac_cv_path_PKGCONFIG
22221 if test -n "$PKGCONFIG"; then
22222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22223 $as_echo "$PKGCONFIG" >&6; }
22224 else
22225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22226 $as_echo "no" >&6; }
22227 fi
22228
22229
22230 fi
22231 if test -z "$ac_cv_path_PKGCONFIG"; then
22232   ac_pt_PKGCONFIG=$PKGCONFIG
22233   # Extract the first word of "pkg-config", so it can be a program name with args.
22234 set dummy pkg-config; ac_word=$2
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22236 $as_echo_n "checking for $ac_word... " >&6; }
22237 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22238   $as_echo_n "(cached) " >&6
22239 else
22240   case $ac_pt_PKGCONFIG in
22241   [\\/]* | ?:[\\/]*)
22242   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22243   ;;
22244   *)
22245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22246 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22247 for as_dir in $as_dummy
22248 do
22249   IFS=$as_save_IFS
22250   test -z "$as_dir" && as_dir=.
22251     for ac_exec_ext in '' $ac_executable_extensions; do
22252   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22253     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22255     break 2
22256   fi
22257 done
22258   done
22259 IFS=$as_save_IFS
22260
22261   ;;
22262 esac
22263 fi
22264 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22265 if test -n "$ac_pt_PKGCONFIG"; then
22266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22267 $as_echo "$ac_pt_PKGCONFIG" >&6; }
22268 else
22269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22270 $as_echo "no" >&6; }
22271 fi
22272
22273   if test "x$ac_pt_PKGCONFIG" = x; then
22274     PKGCONFIG="no"
22275   else
22276     case $cross_compiling:$ac_tool_warned in
22277 yes:)
22278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22280 ac_tool_warned=yes ;;
22281 esac
22282     PKGCONFIG=$ac_pt_PKGCONFIG
22283   fi
22284 else
22285   PKGCONFIG="$ac_cv_path_PKGCONFIG"
22286 fi
22287
22288     fi
22289
22290     if test "x$PKGCONFIG" != "xno"; then
22291       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
22292 $as_echo_n "checking for openssl options with pkg-config... " >&6; }
22293             itexists=`
22294     if test -n "$OPENSSL_PCDIR"; then
22295       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22296       export PKG_CONFIG_LIBDIR
22297     fi
22298          $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
22299
22300       if test -z "$itexists"; then
22301                         PKGCONFIG="no"
22302         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22303 $as_echo "no" >&6; }
22304       else
22305         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22306 $as_echo "found" >&6; }
22307       fi
22308     fi
22309
22310
22311     if test "$PKGCONFIG" != "no" ; then
22312       SSL_LIBS=`
22313     if test -n "$OPENSSL_PCDIR"; then
22314       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22315       export PKG_CONFIG_LIBDIR
22316     fi
22317          $PKGCONFIG --libs-only-l openssl 2>/dev/null`
22318
22319       SSL_LDFLAGS=`
22320     if test -n "$OPENSSL_PCDIR"; then
22321       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22322       export PKG_CONFIG_LIBDIR
22323     fi
22324          $PKGCONFIG --libs-only-L openssl 2>/dev/null`
22325
22326       SSL_CPPFLAGS=`
22327     if test -n "$OPENSSL_PCDIR"; then
22328       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22329       export PKG_CONFIG_LIBDIR
22330     fi
22331          $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
22332
22333
22334       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
22335 $as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
22336       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
22337 $as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
22338       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
22339 $as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
22340
22341       LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
22342
22343                                           LIBS="$SSL_LIBS $LIBS"
22344     fi
22345   fi
22346
22347     CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
22348   LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
22349
22350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
22351 $as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
22352 if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
22353   $as_echo_n "(cached) " >&6
22354 else
22355   ac_check_lib_save_LIBS=$LIBS
22356 LIBS="-lcrypto  $LIBS"
22357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22358 /* end confdefs.h.  */
22359
22360
22361 #ifdef __cplusplus
22362 extern "C"
22363 #endif
22364 char HMAC_Update ();
22365 int main (void)
22366 {
22367 return HMAC_Update ();
22368  ;
22369  return 0;
22370 }
22371 _ACEOF
22372 if ac_fn_c_try_link "$LINENO"; then :
22373   ac_cv_lib_crypto_HMAC_Update=yes
22374 else
22375   ac_cv_lib_crypto_HMAC_Update=no
22376 fi
22377 rm -f core conftest.err conftest.$ac_objext \
22378     conftest$ac_exeext conftest.$ac_ext
22379 LIBS=$ac_check_lib_save_LIBS
22380 fi
22381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
22382 $as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
22383 if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
22384
22385      HAVECRYPTO="yes"
22386      LIBS="-lcrypto $LIBS"
22387
22388 else
22389
22390      LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
22391      CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
22392      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
22393 $as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
22394 if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
22395   $as_echo_n "(cached) " >&6
22396 else
22397   ac_check_lib_save_LIBS=$LIBS
22398 LIBS="-lcrypto  $LIBS"
22399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22400 /* end confdefs.h.  */
22401
22402
22403 #ifdef __cplusplus
22404 extern "C"
22405 #endif
22406 char HMAC_Init_ex ();
22407 int main (void)
22408 {
22409 return HMAC_Init_ex ();
22410  ;
22411  return 0;
22412 }
22413 _ACEOF
22414 if ac_fn_c_try_link "$LINENO"; then :
22415   ac_cv_lib_crypto_HMAC_Init_ex=yes
22416 else
22417   ac_cv_lib_crypto_HMAC_Init_ex=no
22418 fi
22419 rm -f core conftest.err conftest.$ac_objext \
22420     conftest$ac_exeext conftest.$ac_ext
22421 LIBS=$ac_check_lib_save_LIBS
22422 fi
22423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
22424 $as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
22425 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
22426
22427        HAVECRYPTO="yes"
22428        LIBS="-lcrypto $LIBS"
22429 else
22430
22431        LDFLAGS="$CLEANLDFLAGS"
22432        CPPFLAGS="$CLEANCPPFLAGS"
22433        LIBS="$CLEANLIBS"
22434
22435 fi
22436
22437
22438 fi
22439
22440
22441
22442   if test X"$HAVECRYPTO" = X"yes"; then
22443      { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking without -ldl" >&5
22444 $as_echo_n "checking OpenSSL linking without -ldl... " >&6; }
22445      saved_libs=$LIBS
22446      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22447 /* end confdefs.h.  */
22448
22449           #include <openssl/evp.h>
22450
22451 int main (void)
22452 {
22453
22454           SSLeay_add_all_algorithms();
22455
22456  ;
22457  return 0;
22458 }
22459 _ACEOF
22460 if ac_fn_c_try_link "$LINENO"; then :
22461
22462           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22463 $as_echo "yes" >&6; }
22464           LIBS="$saved_libs"
22465
22466 else
22467
22468           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22469 $as_echo "no" >&6; }
22470           { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
22471 $as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
22472           LIBS="-ldl $LIBS"
22473           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22474 /* end confdefs.h.  */
22475
22476             #include <openssl/evp.h>
22477
22478 int main (void)
22479 {
22480
22481             SSLeay_add_all_algorithms();
22482
22483  ;
22484  return 0;
22485 }
22486 _ACEOF
22487 if ac_fn_c_try_link "$LINENO"; then :
22488
22489             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22490 $as_echo "yes" >&6; }
22491             LIBS="$saved_libs -ldl"
22492
22493 else
22494
22495             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22496 $as_echo "no" >&6; }
22497             LIBS="$saved_libs"
22498
22499
22500 fi
22501 rm -f core conftest.err conftest.$ac_objext \
22502     conftest$ac_exeext conftest.$ac_ext
22503
22504
22505
22506 fi
22507 rm -f core conftest.err conftest.$ac_objext \
22508     conftest$ac_exeext conftest.$ac_ext
22509
22510   fi
22511
22512   if test X"$HAVECRYPTO" = X"yes"; then
22513
22514     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22515 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22516 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22517   $as_echo_n "(cached) " >&6
22518 else
22519   ac_check_lib_save_LIBS=$LIBS
22520 LIBS="-lssl  $LIBS"
22521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22522 /* end confdefs.h.  */
22523
22524
22525 #ifdef __cplusplus
22526 extern "C"
22527 #endif
22528 char SSL_connect ();
22529 int main (void)
22530 {
22531 return SSL_connect ();
22532  ;
22533  return 0;
22534 }
22535 _ACEOF
22536 if ac_fn_c_try_link "$LINENO"; then :
22537   ac_cv_lib_ssl_SSL_connect=yes
22538 else
22539   ac_cv_lib_ssl_SSL_connect=no
22540 fi
22541 rm -f core conftest.err conftest.$ac_objext \
22542     conftest$ac_exeext conftest.$ac_ext
22543 LIBS=$ac_check_lib_save_LIBS
22544 fi
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22546 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22547 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22548   cat >>confdefs.h <<_ACEOF
22549 #define HAVE_LIBSSL 1
22550 _ACEOF
22551
22552   LIBS="-lssl $LIBS"
22553
22554 fi
22555
22556
22557     if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22558                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
22559 $as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
22560         OLIBS=$LIBS
22561         LIBS="-lRSAglue -lrsaref $LIBS"
22562         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22563 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22564 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22565   $as_echo_n "(cached) " >&6
22566 else
22567   ac_check_lib_save_LIBS=$LIBS
22568 LIBS="-lssl  $LIBS"
22569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22570 /* end confdefs.h.  */
22571
22572
22573 #ifdef __cplusplus
22574 extern "C"
22575 #endif
22576 char SSL_connect ();
22577 int main (void)
22578 {
22579 return SSL_connect ();
22580  ;
22581  return 0;
22582 }
22583 _ACEOF
22584 if ac_fn_c_try_link "$LINENO"; then :
22585   ac_cv_lib_ssl_SSL_connect=yes
22586 else
22587   ac_cv_lib_ssl_SSL_connect=no
22588 fi
22589 rm -f core conftest.err conftest.$ac_objext \
22590     conftest$ac_exeext conftest.$ac_ext
22591 LIBS=$ac_check_lib_save_LIBS
22592 fi
22593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22594 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22595 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22596   cat >>confdefs.h <<_ACEOF
22597 #define HAVE_LIBSSL 1
22598 _ACEOF
22599
22600   LIBS="-lssl $LIBS"
22601
22602 fi
22603
22604         if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22605                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22606 $as_echo "no" >&6; }
22607             LIBS=$OLIBS
22608         else
22609             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22610 $as_echo "yes" >&6; }
22611         fi
22612
22613     else
22614
22615             for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
22616                        openssl/pem.h openssl/ssl.h openssl/err.h
22617 do :
22618   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22619 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22620 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22621   cat >>confdefs.h <<_ACEOF
22622 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22623 _ACEOF
22624  curl_ssl_msg="enabled (OpenSSL)"
22625         OPENSSL_ENABLED=1
22626
22627 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
22628
22629 fi
22630
22631 done
22632
22633
22634       if test $ac_cv_header_openssl_x509_h = no; then
22635                                 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
22636 do :
22637   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22638 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22639 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22640   cat >>confdefs.h <<_ACEOF
22641 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22642 _ACEOF
22643
22644 fi
22645
22646 done
22647
22648
22649         if test $ac_cv_header_x509_h = yes &&
22650            test $ac_cv_header_crypto_h = yes &&
22651            test $ac_cv_header_ssl_h = yes; then
22652                     curl_ssl_msg="enabled (OpenSSL)"
22653           OPENSSL_ENABLED=1
22654         fi
22655       fi
22656     fi
22657
22658     if test X"$OPENSSL_ENABLED" = X"1"; then
22659               for ac_header in openssl/pkcs12.h
22660 do :
22661   ac_fn_c_check_header_mongrel "$LINENO" "openssl/pkcs12.h" "ac_cv_header_openssl_pkcs12_h" "$ac_includes_default"
22662 if test "x$ac_cv_header_openssl_pkcs12_h" = xyes; then :
22663   cat >>confdefs.h <<_ACEOF
22664 #define HAVE_OPENSSL_PKCS12_H 1
22665 _ACEOF
22666
22667 fi
22668
22669 done
22670
22671     else
22672        LIBS="$CLEANLIBS"
22673     fi
22674
22675     if test X"$OPT_SSL" != Xoff &&
22676        test "$OPENSSL_ENABLED" != "1"; then
22677       as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
22678     fi
22679   fi
22680
22681   if test X"$OPENSSL_ENABLED" = X"1"; then
22682             ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init"
22683 if test "x$ac_cv_func_ENGINE_init" = xyes; then :
22684
22685                 for ac_header in openssl/engine.h
22686 do :
22687   ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
22688 if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
22689   cat >>confdefs.h <<_ACEOF
22690 #define HAVE_OPENSSL_ENGINE_H 1
22691 _ACEOF
22692
22693 fi
22694
22695 done
22696
22697                 for ac_func in ENGINE_load_builtin_engines
22698 do :
22699   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22700 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22701 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22702   cat >>confdefs.h <<_ACEOF
22703 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22704 _ACEOF
22705
22706 fi
22707 done
22708
22709
22710 fi
22711
22712
22713
22714     for ac_func in RAND_egd \
22715                     ENGINE_cleanup \
22716                     SSL_get_shutdown \
22717                     SSLv2_client_method
22718 do :
22719   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22720 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22721 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22722   cat >>confdefs.h <<_ACEOF
22723 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22724 _ACEOF
22725
22726 fi
22727 done
22728
22729
22730     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
22731 $as_echo_n "checking for BoringSSL... " >&6; }
22732     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22733 /* end confdefs.h.  */
22734
22735
22736                 #include <openssl/base.h>
22737
22738 int main (void)
22739 {
22740
22741                 #ifndef OPENSSL_IS_BORINGSSL
22742                 #error not boringssl
22743                 #endif
22744
22745  ;
22746  return 0;
22747 }
22748
22749 _ACEOF
22750 if ac_fn_c_try_compile "$LINENO"; then :
22751
22752         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22753 $as_echo "yes" >&6; }
22754
22755 cat >>confdefs.h <<_ACEOF
22756 #define HAVE_BORINGSSL 1
22757 _ACEOF
22758
22759         curl_ssl_msg="enabled (BoringSSL)"
22760
22761 else
22762
22763         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22764 $as_echo "no" >&6; }
22765
22766 fi
22767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22768
22769     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
22770 $as_echo_n "checking for libressl... " >&6; }
22771     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22772 /* end confdefs.h.  */
22773
22774
22775 #include <openssl/opensslv.h>
22776
22777 int main (void)
22778 {
22779
22780         int dummy = LIBRESSL_VERSION_NUMBER;
22781
22782  ;
22783  return 0;
22784 }
22785
22786 _ACEOF
22787 if ac_fn_c_try_compile "$LINENO"; then :
22788
22789       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22790 $as_echo "yes" >&6; }
22791
22792 cat >>confdefs.h <<_ACEOF
22793 #define HAVE_LIBRESSL 1
22794 _ACEOF
22795
22796       curl_ssl_msg="enabled (libressl)"
22797
22798 else
22799
22800       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22801 $as_echo "no" >&6; }
22802
22803 fi
22804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22805   fi
22806
22807   if test "$OPENSSL_ENABLED" = "1"; then
22808     if test -n "$LIB_OPENSSL"; then
22809                             if test "x$cross_compiling" != "xyes"; then
22810          LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
22811          export LD_LIBRARY_PATH
22812          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5
22813 $as_echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;}
22814        fi
22815     fi
22816
22817   #
22818
22819   #
22820   tst_api="unknown"
22821   #
22822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
22823 $as_echo_n "checking for OpenSSL headers version... " >&6; }
22824
22825     OLDCPPFLAGS=$CPPFLAGS
22826   # CPPPFLAG comes from CURL_CPP_P
22827   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
22828       if test -z "$SED"; then
22829     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
22830   fi
22831   if test -z "$GREP"; then
22832     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
22833   fi
22834
22835   tmp_exp=""
22836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22837 /* end confdefs.h.  */
22838
22839
22840 #   ifdef USE_OPENSSL
22841 #     include <openssl/crypto.h>
22842 #   else
22843 #     include <crypto.h>
22844 #   endif
22845
22846 #ifdef OPENSSL_VERSION_NUMBER
22847 CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
22848 #endif
22849
22850
22851 _ACEOF
22852 if ac_fn_c_try_cpp "$LINENO"; then :
22853
22854     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
22855       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
22856       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
22857       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
22858     if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
22859       tmp_exp=""
22860     fi
22861
22862 fi
22863 rm -f conftest.err conftest.i conftest.$ac_ext
22864   if test -z "$tmp_exp"; then
22865     curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
22866
22867   else
22868     curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
22869     curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
22870
22871   fi
22872       CPPFLAGS=$OLDCPPFLAGS
22873
22874   if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
22875     tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
22876     case "x$tst_verlen" in
22877       x6)
22878         tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22879         tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
22880         tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22881         tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22882         ;;
22883       x11|x10)
22884         tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22885         tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22886         tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
22887         tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22888         ;;
22889       *)
22890         tst_api="unknown"
22891         ;;
22892     esac
22893     case $tst_api in
22894       0x110) tst_show="1.1.0" ;;
22895       0x102) tst_show="1.0.2" ;;
22896       0x101) tst_show="1.0.1" ;;
22897       0x100) tst_show="1.0.0" ;;
22898       0x099) tst_show="0.9.9" ;;
22899       0x098) tst_show="0.9.8" ;;
22900       0x097) tst_show="0.9.7" ;;
22901       0x096) tst_show="0.9.6" ;;
22902       0x095) tst_show="0.9.5" ;;
22903       0x094) tst_show="0.9.4" ;;
22904       0x093) tst_show="0.9.3" ;;
22905       0x092) tst_show="0.9.2" ;;
22906       0x091) tst_show="0.9.1" ;;
22907       *)     tst_show="unknown" ;;
22908     esac
22909     tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
22910   else
22911     tst_show="unknown"
22912   fi
22913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
22914 $as_echo "$tst_show" >&6; }
22915   #
22916   curl_openssl_api_headers=$tst_api
22917
22918
22919   #
22920   tst_api="unknown"
22921   #
22922   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
22923 $as_echo_n "checking for OpenSSL library version... " >&6; }
22924   if test "$tst_api" = "unknown"; then
22925     case $host in
22926       *-*-vms*)
22927         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22928 /* end confdefs.h.  */
22929
22930
22931 #define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
22932 #ifdef __STDC__
22933 # include <limits.h>
22934 #else
22935 # include <assert.h>
22936 #endif
22937 #undef SSL_CTX_set_not_resumbl_sess_cb
22938 #ifdef __cplusplus
22939 extern "C"
22940 #endif
22941 char SSL_CTX_set_not_resumbl_sess_cb ();
22942 #if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
22943 choke me
22944 #endif
22945
22946 int main (void)
22947 {
22948 return SSL_CTX_set_not_resumbl_sess_cb ();
22949  ;
22950  return 0;
22951 }
22952
22953 _ACEOF
22954 if ac_fn_c_try_link "$LINENO"; then :
22955
22956           tst_api="0x110"
22957
22958 fi
22959 rm -f core conftest.err conftest.$ac_objext \
22960     conftest$ac_exeext conftest.$ac_ext
22961         ;;
22962       *)
22963         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22964 /* end confdefs.h.  */
22965
22966
22967 #define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
22968 #ifdef __STDC__
22969 # include <limits.h>
22970 #else
22971 # include <assert.h>
22972 #endif
22973 #undef SSL_CTX_set_not_resumable_session_callback
22974 #ifdef __cplusplus
22975 extern "C"
22976 #endif
22977 char SSL_CTX_set_not_resumable_session_callback ();
22978 #if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
22979 choke me
22980 #endif
22981
22982 int main (void)
22983 {
22984 return SSL_CTX_set_not_resumable_session_callback ();
22985  ;
22986  return 0;
22987 }
22988
22989 _ACEOF
22990 if ac_fn_c_try_link "$LINENO"; then :
22991
22992           tst_api="0x110"
22993
22994 fi
22995 rm -f core conftest.err conftest.$ac_objext \
22996     conftest$ac_exeext conftest.$ac_ext
22997         ;;
22998     esac
22999   fi
23000   if test "$tst_api" = "unknown"; then
23001     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23002 /* end confdefs.h.  */
23003
23004
23005 #define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
23006 #ifdef __STDC__
23007 # include <limits.h>
23008 #else
23009 # include <assert.h>
23010 #endif
23011 #undef SSL_CONF_CTX_new
23012 #ifdef __cplusplus
23013 extern "C"
23014 #endif
23015 char SSL_CONF_CTX_new ();
23016 #if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
23017 choke me
23018 #endif
23019
23020 int main (void)
23021 {
23022 return SSL_CONF_CTX_new ();
23023  ;
23024  return 0;
23025 }
23026
23027 _ACEOF
23028 if ac_fn_c_try_link "$LINENO"; then :
23029
23030       tst_api="0x102"
23031
23032 fi
23033 rm -f core conftest.err conftest.$ac_objext \
23034     conftest$ac_exeext conftest.$ac_ext
23035   fi
23036   if test "$tst_api" = "unknown"; then
23037     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23038 /* end confdefs.h.  */
23039
23040
23041 #define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
23042 #ifdef __STDC__
23043 # include <limits.h>
23044 #else
23045 # include <assert.h>
23046 #endif
23047 #undef SSL_renegotiate_abbreviated
23048 #ifdef __cplusplus
23049 extern "C"
23050 #endif
23051 char SSL_renegotiate_abbreviated ();
23052 #if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
23053 choke me
23054 #endif
23055
23056 int main (void)
23057 {
23058 return SSL_renegotiate_abbreviated ();
23059  ;
23060  return 0;
23061 }
23062
23063 _ACEOF
23064 if ac_fn_c_try_link "$LINENO"; then :
23065
23066       tst_api="0x101"
23067
23068 fi
23069 rm -f core conftest.err conftest.$ac_objext \
23070     conftest$ac_exeext conftest.$ac_ext
23071   fi
23072   if test "$tst_api" = "unknown"; then
23073     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23074 /* end confdefs.h.  */
23075
23076
23077 #define OBJ_add_sigid innocuous_OBJ_add_sigid
23078 #ifdef __STDC__
23079 # include <limits.h>
23080 #else
23081 # include <assert.h>
23082 #endif
23083 #undef OBJ_add_sigid
23084 #ifdef __cplusplus
23085 extern "C"
23086 #endif
23087 char OBJ_add_sigid ();
23088 #if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
23089 choke me
23090 #endif
23091
23092 int main (void)
23093 {
23094 return OBJ_add_sigid ();
23095  ;
23096  return 0;
23097 }
23098
23099 _ACEOF
23100 if ac_fn_c_try_link "$LINENO"; then :
23101
23102       tst_api="0x100"
23103
23104 fi
23105 rm -f core conftest.err conftest.$ac_objext \
23106     conftest$ac_exeext conftest.$ac_ext
23107   fi
23108   if test "$tst_api" = "unknown"; then
23109     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23110 /* end confdefs.h.  */
23111
23112
23113 #define ERR_set_mark innocuous_ERR_set_mark
23114 #ifdef __STDC__
23115 # include <limits.h>
23116 #else
23117 # include <assert.h>
23118 #endif
23119 #undef ERR_set_mark
23120 #ifdef __cplusplus
23121 extern "C"
23122 #endif
23123 char ERR_set_mark ();
23124 #if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
23125 choke me
23126 #endif
23127
23128 int main (void)
23129 {
23130 return ERR_set_mark ();
23131  ;
23132  return 0;
23133 }
23134
23135 _ACEOF
23136 if ac_fn_c_try_link "$LINENO"; then :
23137
23138       tst_api="0x098"
23139
23140 fi
23141 rm -f core conftest.err conftest.$ac_objext \
23142     conftest$ac_exeext conftest.$ac_ext
23143   fi
23144   if test "$tst_api" = "unknown"; then
23145     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23146 /* end confdefs.h.  */
23147
23148
23149 #define ERR_peek_last_error innocuous_ERR_peek_last_error
23150 #ifdef __STDC__
23151 # include <limits.h>
23152 #else
23153 # include <assert.h>
23154 #endif
23155 #undef ERR_peek_last_error
23156 #ifdef __cplusplus
23157 extern "C"
23158 #endif
23159 char ERR_peek_last_error ();
23160 #if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
23161 choke me
23162 #endif
23163
23164 int main (void)
23165 {
23166 return ERR_peek_last_error ();
23167  ;
23168  return 0;
23169 }
23170
23171 _ACEOF
23172 if ac_fn_c_try_link "$LINENO"; then :
23173
23174       tst_api="0x097"
23175
23176 fi
23177 rm -f core conftest.err conftest.$ac_objext \
23178     conftest$ac_exeext conftest.$ac_ext
23179   fi
23180   if test "$tst_api" = "unknown"; then
23181     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23182 /* end confdefs.h.  */
23183
23184
23185 #define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
23186 #ifdef __STDC__
23187 # include <limits.h>
23188 #else
23189 # include <assert.h>
23190 #endif
23191 #undef c2i_ASN1_OBJECT
23192 #ifdef __cplusplus
23193 extern "C"
23194 #endif
23195 char c2i_ASN1_OBJECT ();
23196 #if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
23197 choke me
23198 #endif
23199
23200 int main (void)
23201 {
23202 return c2i_ASN1_OBJECT ();
23203  ;
23204  return 0;
23205 }
23206
23207 _ACEOF
23208 if ac_fn_c_try_link "$LINENO"; then :
23209
23210       tst_api="0x096"
23211
23212 fi
23213 rm -f core conftest.err conftest.$ac_objext \
23214     conftest$ac_exeext conftest.$ac_ext
23215   fi
23216   if test "$tst_api" = "unknown"; then
23217     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23218 /* end confdefs.h.  */
23219
23220
23221 #define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
23222 #ifdef __STDC__
23223 # include <limits.h>
23224 #else
23225 # include <assert.h>
23226 #endif
23227 #undef SSL_CTX_set_purpose
23228 #ifdef __cplusplus
23229 extern "C"
23230 #endif
23231 char SSL_CTX_set_purpose ();
23232 #if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
23233 choke me
23234 #endif
23235
23236 int main (void)
23237 {
23238 return SSL_CTX_set_purpose ();
23239  ;
23240  return 0;
23241 }
23242
23243 _ACEOF
23244 if ac_fn_c_try_link "$LINENO"; then :
23245
23246       tst_api="0x095"
23247
23248 fi
23249 rm -f core conftest.err conftest.$ac_objext \
23250     conftest$ac_exeext conftest.$ac_ext
23251   fi
23252   if test "$tst_api" = "unknown"; then
23253     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23254 /* end confdefs.h.  */
23255
23256
23257 #define OBJ_obj2txt innocuous_OBJ_obj2txt
23258 #ifdef __STDC__
23259 # include <limits.h>
23260 #else
23261 # include <assert.h>
23262 #endif
23263 #undef OBJ_obj2txt
23264 #ifdef __cplusplus
23265 extern "C"
23266 #endif
23267 char OBJ_obj2txt ();
23268 #if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
23269 choke me
23270 #endif
23271
23272 int main (void)
23273 {
23274 return OBJ_obj2txt ();
23275  ;
23276  return 0;
23277 }
23278
23279 _ACEOF
23280 if ac_fn_c_try_link "$LINENO"; then :
23281
23282       tst_api="0x094"
23283
23284 fi
23285 rm -f core conftest.err conftest.$ac_objext \
23286     conftest$ac_exeext conftest.$ac_ext
23287   fi
23288   if test "$tst_api" = "unknown"; then
23289     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23290 /* end confdefs.h.  */
23291
23292
23293 #define SSL_get_verify_depth innocuous_SSL_get_verify_depth
23294 #ifdef __STDC__
23295 # include <limits.h>
23296 #else
23297 # include <assert.h>
23298 #endif
23299 #undef SSL_get_verify_depth
23300 #ifdef __cplusplus
23301 extern "C"
23302 #endif
23303 char SSL_get_verify_depth ();
23304 #if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
23305 choke me
23306 #endif
23307
23308 int main (void)
23309 {
23310 return SSL_get_verify_depth ();
23311  ;
23312  return 0;
23313 }
23314
23315 _ACEOF
23316 if ac_fn_c_try_link "$LINENO"; then :
23317
23318       tst_api="0x093"
23319
23320 fi
23321 rm -f core conftest.err conftest.$ac_objext \
23322     conftest$ac_exeext conftest.$ac_ext
23323   fi
23324   if test "$tst_api" = "unknown"; then
23325     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23326 /* end confdefs.h.  */
23327
23328
23329 #define SSL_library_init innocuous_SSL_library_init
23330 #ifdef __STDC__
23331 # include <limits.h>
23332 #else
23333 # include <assert.h>
23334 #endif
23335 #undef SSL_library_init
23336 #ifdef __cplusplus
23337 extern "C"
23338 #endif
23339 char SSL_library_init ();
23340 #if defined __stub_SSL_library_init || defined __stub___SSL_library_init
23341 choke me
23342 #endif
23343
23344 int main (void)
23345 {
23346 return SSL_library_init ();
23347  ;
23348  return 0;
23349 }
23350
23351 _ACEOF
23352 if ac_fn_c_try_link "$LINENO"; then :
23353
23354       tst_api="0x092"
23355
23356 fi
23357 rm -f core conftest.err conftest.$ac_objext \
23358     conftest$ac_exeext conftest.$ac_ext
23359   fi
23360   if test "$tst_api" = "unknown"; then
23361     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23362 /* end confdefs.h.  */
23363
23364
23365 #define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
23366 #ifdef __STDC__
23367 # include <limits.h>
23368 #else
23369 # include <assert.h>
23370 #endif
23371 #undef SSL_CTX_set_cipher_list
23372 #ifdef __cplusplus
23373 extern "C"
23374 #endif
23375 char SSL_CTX_set_cipher_list ();
23376 #if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
23377 choke me
23378 #endif
23379
23380 int main (void)
23381 {
23382 return SSL_CTX_set_cipher_list ();
23383  ;
23384  return 0;
23385 }
23386
23387 _ACEOF
23388 if ac_fn_c_try_link "$LINENO"; then :
23389
23390       tst_api="0x091"
23391
23392 fi
23393 rm -f core conftest.err conftest.$ac_objext \
23394     conftest$ac_exeext conftest.$ac_ext
23395   fi
23396   case $tst_api in
23397     0x110) tst_show="1.1.0" ;;
23398     0x102) tst_show="1.0.2" ;;
23399     0x101) tst_show="1.0.1" ;;
23400     0x100) tst_show="1.0.0" ;;
23401     0x099) tst_show="0.9.9" ;;
23402     0x098) tst_show="0.9.8" ;;
23403     0x097) tst_show="0.9.7" ;;
23404     0x096) tst_show="0.9.6" ;;
23405     0x095) tst_show="0.9.5" ;;
23406     0x094) tst_show="0.9.4" ;;
23407     0x093) tst_show="0.9.3" ;;
23408     0x092) tst_show="0.9.2" ;;
23409     0x091) tst_show="0.9.1" ;;
23410     *)     tst_show="unknown" ;;
23411   esac
23412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23413 $as_echo "$tst_show" >&6; }
23414   #
23415   curl_openssl_api_library=$tst_api
23416
23417   #
23418   tst_match="yes"
23419   #
23420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
23421 $as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
23422   if test "$curl_openssl_api_headers" = "unknown" ||
23423     test "$curl_openssl_api_library" = "unknown"; then
23424     tst_match="fail"
23425     tst_warns="Can not compare OpenSSL headers and library versions."
23426   elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
23427     tst_match="no"
23428     tst_warns="OpenSSL headers and library versions do not match."
23429   fi
23430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
23431 $as_echo "$tst_match" >&6; }
23432   if test "$tst_match" != "yes"; then
23433     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
23434 $as_echo "$as_me: WARNING: $tst_warns" >&2;}
23435   fi
23436
23437   fi
23438
23439 fi
23440
23441
23442 if test X"$OPENSSL_ENABLED" = X"1"; then
23443
23444 # Check whether --with-egd-socket was given.
23445 if test "${with_egd_socket+set}" = set; then :
23446   withval=$with_egd_socket;  EGD_SOCKET="$withval"
23447
23448 fi
23449
23450   if test -n "$EGD_SOCKET" ; then
23451
23452 cat >>confdefs.h <<_ACEOF
23453 #define EGD_SOCKET "$EGD_SOCKET"
23454 _ACEOF
23455
23456   fi
23457
23458
23459 # Check whether --with-random was given.
23460 if test "${with_random+set}" = set; then :
23461   withval=$with_random;  RANDOM_FILE="$withval"
23462 else
23463
23464           if test x$cross_compiling != xyes; then
23465                         as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
23466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
23467 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
23468 if eval \${$as_ac_File+:} false; then :
23469   $as_echo_n "(cached) " >&6
23470 else
23471   test "$cross_compiling" = yes &&
23472   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23473 if test -r ""/dev/urandom""; then
23474   eval "$as_ac_File=yes"
23475 else
23476   eval "$as_ac_File=no"
23477 fi
23478 fi
23479 eval ac_res=\$$as_ac_File
23480                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23481 $as_echo "$ac_res" >&6; }
23482 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
23483    RANDOM_FILE="/dev/urandom"
23484 fi
23485
23486           else
23487             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
23488 $as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
23489           fi
23490
23491
23492 fi
23493
23494   if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
23495
23496
23497 cat >>confdefs.h <<_ACEOF
23498 #define RANDOM_FILE "$RANDOM_FILE"
23499 _ACEOF
23500
23501   fi
23502 fi
23503
23504 if test "$OPENSSL_ENABLED" = "1"; then
23505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
23506 $as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
23507 if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
23508   $as_echo_n "(cached) " >&6
23509 else
23510   ac_check_lib_save_LIBS=$LIBS
23511 LIBS="-lcrypto  $LIBS"
23512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23513 /* end confdefs.h.  */
23514
23515
23516 #ifdef __cplusplus
23517 extern "C"
23518 #endif
23519 char SRP_Calc_client_key ();
23520 int main (void)
23521 {
23522 return SRP_Calc_client_key ();
23523  ;
23524  return 0;
23525 }
23526 _ACEOF
23527 if ac_fn_c_try_link "$LINENO"; then :
23528   ac_cv_lib_crypto_SRP_Calc_client_key=yes
23529 else
23530   ac_cv_lib_crypto_SRP_Calc_client_key=no
23531 fi
23532 rm -f core conftest.err conftest.$ac_objext \
23533     conftest$ac_exeext conftest.$ac_ext
23534 LIBS=$ac_check_lib_save_LIBS
23535 fi
23536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
23537 $as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
23538 if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
23539
23540
23541 $as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
23542
23543      HAVE_OPENSSL_SRP=1
23544
23545
23546 fi
23547
23548 fi
23549
23550
23551 OPT_GNUTLS=no
23552
23553
23554 # Check whether --with-gnutls was given.
23555 if test "${with_gnutls+set}" = set; then :
23556   withval=$with_gnutls; OPT_GNUTLS=$withval
23557 fi
23558
23559
23560 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23561
23562   if test X"$OPT_GNUTLS" != Xno; then
23563
23564     addld=""
23565     addlib=""
23566     gtlslib=""
23567     version=""
23568     addcflags=""
23569
23570     if test "x$OPT_GNUTLS" = "xyes"; then
23571
23572     if test -n "$PKG_CONFIG"; then
23573       PKGCONFIG="$PKG_CONFIG"
23574     else
23575       if test -n "$ac_tool_prefix"; then
23576   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23577 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23579 $as_echo_n "checking for $ac_word... " >&6; }
23580 if ${ac_cv_path_PKGCONFIG+:} false; then :
23581   $as_echo_n "(cached) " >&6
23582 else
23583   case $PKGCONFIG in
23584   [\\/]* | ?:[\\/]*)
23585   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23586   ;;
23587   *)
23588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23589 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23590 for as_dir in $as_dummy
23591 do
23592   IFS=$as_save_IFS
23593   test -z "$as_dir" && as_dir=.
23594     for ac_exec_ext in '' $ac_executable_extensions; do
23595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23596     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23598     break 2
23599   fi
23600 done
23601   done
23602 IFS=$as_save_IFS
23603
23604   ;;
23605 esac
23606 fi
23607 PKGCONFIG=$ac_cv_path_PKGCONFIG
23608 if test -n "$PKGCONFIG"; then
23609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23610 $as_echo "$PKGCONFIG" >&6; }
23611 else
23612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23613 $as_echo "no" >&6; }
23614 fi
23615
23616
23617 fi
23618 if test -z "$ac_cv_path_PKGCONFIG"; then
23619   ac_pt_PKGCONFIG=$PKGCONFIG
23620   # Extract the first word of "pkg-config", so it can be a program name with args.
23621 set dummy pkg-config; ac_word=$2
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23623 $as_echo_n "checking for $ac_word... " >&6; }
23624 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23625   $as_echo_n "(cached) " >&6
23626 else
23627   case $ac_pt_PKGCONFIG in
23628   [\\/]* | ?:[\\/]*)
23629   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23630   ;;
23631   *)
23632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23633 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23634 for as_dir in $as_dummy
23635 do
23636   IFS=$as_save_IFS
23637   test -z "$as_dir" && as_dir=.
23638     for ac_exec_ext in '' $ac_executable_extensions; do
23639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23640     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23642     break 2
23643   fi
23644 done
23645   done
23646 IFS=$as_save_IFS
23647
23648   ;;
23649 esac
23650 fi
23651 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23652 if test -n "$ac_pt_PKGCONFIG"; then
23653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23654 $as_echo "$ac_pt_PKGCONFIG" >&6; }
23655 else
23656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23657 $as_echo "no" >&6; }
23658 fi
23659
23660   if test "x$ac_pt_PKGCONFIG" = x; then
23661     PKGCONFIG="no"
23662   else
23663     case $cross_compiling:$ac_tool_warned in
23664 yes:)
23665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23667 ac_tool_warned=yes ;;
23668 esac
23669     PKGCONFIG=$ac_pt_PKGCONFIG
23670   fi
23671 else
23672   PKGCONFIG="$ac_cv_path_PKGCONFIG"
23673 fi
23674
23675     fi
23676
23677     if test "x$PKGCONFIG" != "xno"; then
23678       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
23679 $as_echo_n "checking for gnutls options with pkg-config... " >&6; }
23680             itexists=`
23681     if test -n ""; then
23682       PKG_CONFIG_LIBDIR=""
23683       export PKG_CONFIG_LIBDIR
23684     fi
23685          $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
23686
23687       if test -z "$itexists"; then
23688                         PKGCONFIG="no"
23689         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23690 $as_echo "no" >&6; }
23691       else
23692         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23693 $as_echo "found" >&6; }
23694       fi
23695     fi
23696
23697
23698       if test "$PKGCONFIG" != "no" ; then
23699         addlib=`$PKGCONFIG --libs-only-l gnutls`
23700         addld=`$PKGCONFIG --libs-only-L gnutls`
23701         addcflags=`$PKGCONFIG --cflags-only-I gnutls`
23702         version=`$PKGCONFIG --modversion gnutls`
23703         gtlslib=`echo $addld | $SED -e 's/-L//'`
23704       else
23705                         check=`libgnutls-config --version 2>/dev/null`
23706         if test -n "$check"; then
23707           addlib=`libgnutls-config --libs`
23708           addcflags=`libgnutls-config --cflags`
23709           version=`libgnutls-config --version`
23710           gtlslib=`libgnutls-config --prefix`/lib$libsuff
23711         fi
23712       fi
23713     else
23714                   cfg=$OPT_GNUTLS/bin/libgnutls-config
23715       check=`$cfg --version 2>/dev/null`
23716       if test -n "$check"; then
23717         addlib=`$cfg --libs`
23718         addcflags=`$cfg --cflags`
23719         version=`$cfg --version`
23720         gtlslib=`$cfg --prefix`/lib$libsuff
23721       else
23722                 addlib=-lgnutls
23723         addld=-L$OPT_GNUTLS/lib$libsuff
23724         addcflags=-I$OPT_GNUTLS/include
23725         version="" # we just don't know
23726         gtlslib=$OPT_GNUTLS/lib$libsuff
23727       fi
23728     fi
23729
23730     if test -z "$version"; then
23731             version="unknown"
23732     fi
23733
23734     if test -n "$addlib"; then
23735
23736       CLEANLIBS="$LIBS"
23737       CLEANCPPFLAGS="$CPPFLAGS"
23738       CLEANLDFLAGS="$LDFLAGS"
23739
23740       LIBS="$addlib $LIBS"
23741       LDFLAGS="$LDFLAGS $addld"
23742       if test "$addcflags" != "-I/usr/include"; then
23743          CPPFLAGS="$CPPFLAGS $addcflags"
23744       fi
23745
23746       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
23747 $as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
23748 if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
23749   $as_echo_n "(cached) " >&6
23750 else
23751   ac_check_lib_save_LIBS=$LIBS
23752 LIBS="-lgnutls  $LIBS"
23753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23754 /* end confdefs.h.  */
23755
23756
23757 #ifdef __cplusplus
23758 extern "C"
23759 #endif
23760 char gnutls_check_version ();
23761 int main (void)
23762 {
23763 return gnutls_check_version ();
23764  ;
23765  return 0;
23766 }
23767 _ACEOF
23768 if ac_fn_c_try_link "$LINENO"; then :
23769   ac_cv_lib_gnutls_gnutls_check_version=yes
23770 else
23771   ac_cv_lib_gnutls_gnutls_check_version=no
23772 fi
23773 rm -f core conftest.err conftest.$ac_objext \
23774     conftest$ac_exeext conftest.$ac_ext
23775 LIBS=$ac_check_lib_save_LIBS
23776 fi
23777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
23778 $as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
23779 if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
23780
23781
23782 $as_echo "#define USE_GNUTLS 1" >>confdefs.h
23783
23784        USE_GNUTLS=1
23785
23786        GNUTLS_ENABLED=1
23787        USE_GNUTLS="yes"
23788        curl_ssl_msg="enabled (GnuTLS)"
23789
23790 else
23791
23792          LIBS="$CLEANLIBS"
23793          CPPFLAGS="$CLEANCPPFLAGS"
23794
23795 fi
23796
23797
23798       if test "x$USE_GNUTLS" = "xyes"; then
23799         { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
23800 $as_echo "$as_me: detected GnuTLS version $version" >&6;}
23801
23802         if test -n "$gtlslib"; then
23803                                                   if test "x$cross_compiling" != "xyes"; then
23804             LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib"
23805             export LD_LIBRARY_PATH
23806             { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to LD_LIBRARY_PATH" >&5
23807 $as_echo "$as_me: Added $gtlslib to LD_LIBRARY_PATH" >&6;}
23808           fi
23809         fi
23810         for ac_func in gnutls_certificate_set_x509_key_file2 gnutls_alpn_set_protocols gnutls_ocsp_req_init
23811 do :
23812   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23813 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23814 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23815   cat >>confdefs.h <<_ACEOF
23816 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23817 _ACEOF
23818
23819 fi
23820 done
23821
23822       fi
23823
23824     fi
23825
23826   fi
23827 fi
23828
23829
23830 if test "$GNUTLS_ENABLED" = "1"; then
23831   USE_GNUTLS_NETTLE=
23832   # First check if we can detect either crypto library via transitive linking
23833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
23834 $as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
23835 if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
23836   $as_echo_n "(cached) " >&6
23837 else
23838   ac_check_lib_save_LIBS=$LIBS
23839 LIBS="-lgnutls  $LIBS"
23840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23841 /* end confdefs.h.  */
23842
23843
23844 #ifdef __cplusplus
23845 extern "C"
23846 #endif
23847 char nettle_MD5Init ();
23848 int main (void)
23849 {
23850 return nettle_MD5Init ();
23851  ;
23852  return 0;
23853 }
23854 _ACEOF
23855 if ac_fn_c_try_link "$LINENO"; then :
23856   ac_cv_lib_gnutls_nettle_MD5Init=yes
23857 else
23858   ac_cv_lib_gnutls_nettle_MD5Init=no
23859 fi
23860 rm -f core conftest.err conftest.$ac_objext \
23861     conftest$ac_exeext conftest.$ac_ext
23862 LIBS=$ac_check_lib_save_LIBS
23863 fi
23864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
23865 $as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
23866 if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
23867    USE_GNUTLS_NETTLE=1
23868 fi
23869
23870   if test "$USE_GNUTLS_NETTLE" = ""; then
23871     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
23872 $as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
23873 if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
23874   $as_echo_n "(cached) " >&6
23875 else
23876   ac_check_lib_save_LIBS=$LIBS
23877 LIBS="-lgnutls  $LIBS"
23878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23879 /* end confdefs.h.  */
23880
23881
23882 #ifdef __cplusplus
23883 extern "C"
23884 #endif
23885 char gcry_control ();
23886 int main (void)
23887 {
23888 return gcry_control ();
23889  ;
23890  return 0;
23891 }
23892 _ACEOF
23893 if ac_fn_c_try_link "$LINENO"; then :
23894   ac_cv_lib_gnutls_gcry_control=yes
23895 else
23896   ac_cv_lib_gnutls_gcry_control=no
23897 fi
23898 rm -f core conftest.err conftest.$ac_objext \
23899     conftest$ac_exeext conftest.$ac_ext
23900 LIBS=$ac_check_lib_save_LIBS
23901 fi
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
23903 $as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
23904 if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
23905    USE_GNUTLS_NETTLE=0
23906 fi
23907
23908   fi
23909   # If not, try linking directly to both of them to see if they are available
23910   if test "$USE_GNUTLS_NETTLE" = ""; then
23911     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
23912 $as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
23913 if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
23914   $as_echo_n "(cached) " >&6
23915 else
23916   ac_check_lib_save_LIBS=$LIBS
23917 LIBS="-lnettle  $LIBS"
23918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23919 /* end confdefs.h.  */
23920
23921
23922 #ifdef __cplusplus
23923 extern "C"
23924 #endif
23925 char nettle_MD5Init ();
23926 int main (void)
23927 {
23928 return nettle_MD5Init ();
23929  ;
23930  return 0;
23931 }
23932 _ACEOF
23933 if ac_fn_c_try_link "$LINENO"; then :
23934   ac_cv_lib_nettle_nettle_MD5Init=yes
23935 else
23936   ac_cv_lib_nettle_nettle_MD5Init=no
23937 fi
23938 rm -f core conftest.err conftest.$ac_objext \
23939     conftest$ac_exeext conftest.$ac_ext
23940 LIBS=$ac_check_lib_save_LIBS
23941 fi
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
23943 $as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
23944 if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
23945    USE_GNUTLS_NETTLE=1
23946 fi
23947
23948   fi
23949   if test "$USE_GNUTLS_NETTLE" = ""; then
23950     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
23951 $as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
23952 if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
23953   $as_echo_n "(cached) " >&6
23954 else
23955   ac_check_lib_save_LIBS=$LIBS
23956 LIBS="-lgcrypt  $LIBS"
23957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23958 /* end confdefs.h.  */
23959
23960
23961 #ifdef __cplusplus
23962 extern "C"
23963 #endif
23964 char gcry_control ();
23965 int main (void)
23966 {
23967 return gcry_control ();
23968  ;
23969  return 0;
23970 }
23971 _ACEOF
23972 if ac_fn_c_try_link "$LINENO"; then :
23973   ac_cv_lib_gcrypt_gcry_control=yes
23974 else
23975   ac_cv_lib_gcrypt_gcry_control=no
23976 fi
23977 rm -f core conftest.err conftest.$ac_objext \
23978     conftest$ac_exeext conftest.$ac_ext
23979 LIBS=$ac_check_lib_save_LIBS
23980 fi
23981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
23982 $as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
23983 if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
23984    USE_GNUTLS_NETTLE=0
23985 fi
23986
23987   fi
23988   if test "$USE_GNUTLS_NETTLE" = ""; then
23989     as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
23990   fi
23991   if test "$USE_GNUTLS_NETTLE" = "1"; then
23992
23993 $as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
23994
23995     USE_GNUTLS_NETTLE=1
23996
23997     LIBS="-lnettle $LIBS"
23998   else
23999     LIBS="-lgcrypt $LIBS"
24000   fi
24001 fi
24002
24003 if test "$GNUTLS_ENABLED" = "1"; then
24004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
24005 $as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
24006 if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
24007   $as_echo_n "(cached) " >&6
24008 else
24009   ac_check_lib_save_LIBS=$LIBS
24010 LIBS="-lgnutls  $LIBS"
24011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24012 /* end confdefs.h.  */
24013
24014
24015 #ifdef __cplusplus
24016 extern "C"
24017 #endif
24018 char gnutls_srp_verifier ();
24019 int main (void)
24020 {
24021 return gnutls_srp_verifier ();
24022  ;
24023  return 0;
24024 }
24025 _ACEOF
24026 if ac_fn_c_try_link "$LINENO"; then :
24027   ac_cv_lib_gnutls_gnutls_srp_verifier=yes
24028 else
24029   ac_cv_lib_gnutls_gnutls_srp_verifier=no
24030 fi
24031 rm -f core conftest.err conftest.$ac_objext \
24032     conftest$ac_exeext conftest.$ac_ext
24033 LIBS=$ac_check_lib_save_LIBS
24034 fi
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
24036 $as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
24037 if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
24038
24039
24040 $as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
24041
24042      HAVE_GNUTLS_SRP=1
24043
24044
24045 fi
24046
24047 fi
24048
24049
24050 OPT_POLARSSL=no
24051
24052 _cppflags=$CPPFLAGS
24053 _ldflags=$LDFLAGS
24054
24055 # Check whether --with-polarssl was given.
24056 if test "${with_polarssl+set}" = set; then :
24057   withval=$with_polarssl; OPT_POLARSSL=$withval
24058 fi
24059
24060
24061 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
24062
24063   if test X"$OPT_POLARSSL" != Xno; then
24064
24065     if test "$OPT_POLARSSL" = "yes"; then
24066       OPT_POLARSSL=""
24067     fi
24068
24069     if test -z "$OPT_POLARSSL" ; then
24070
24071       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
24072 $as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
24073 if ${ac_cv_lib_polarssl_havege_init+:} false; then :
24074   $as_echo_n "(cached) " >&6
24075 else
24076   ac_check_lib_save_LIBS=$LIBS
24077 LIBS="-lpolarssl  $LIBS"
24078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24079 /* end confdefs.h.  */
24080
24081
24082 #ifdef __cplusplus
24083 extern "C"
24084 #endif
24085 char havege_init ();
24086 int main (void)
24087 {
24088 return havege_init ();
24089  ;
24090  return 0;
24091 }
24092 _ACEOF
24093 if ac_fn_c_try_link "$LINENO"; then :
24094   ac_cv_lib_polarssl_havege_init=yes
24095 else
24096   ac_cv_lib_polarssl_havege_init=no
24097 fi
24098 rm -f core conftest.err conftest.$ac_objext \
24099     conftest$ac_exeext conftest.$ac_ext
24100 LIBS=$ac_check_lib_save_LIBS
24101 fi
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
24103 $as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
24104 if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
24105
24106
24107 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
24108
24109          USE_POLARSSL=1
24110
24111          POLARSSL_ENABLED=1
24112          USE_POLARSSL="yes"
24113          curl_ssl_msg="enabled (PolarSSL)"
24114
24115 fi
24116
24117     fi
24118
24119     addld=""
24120     addlib=""
24121     addcflags=""
24122     polarssllib=""
24123
24124     if test "x$USE_POLARSSL" != "xyes"; then
24125             addld=-L$OPT_POLARSSL/lib$libsuff
24126       addcflags=-I$OPT_POLARSSL/include
24127       polarssllib=$OPT_POLARSSL/lib$libsuff
24128
24129       LDFLAGS="$LDFLAGS $addld"
24130       if test "$addcflags" != "-I/usr/include"; then
24131          CPPFLAGS="$CPPFLAGS $addcflags"
24132       fi
24133
24134       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
24135 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
24136 if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
24137   $as_echo_n "(cached) " >&6
24138 else
24139   ac_check_lib_save_LIBS=$LIBS
24140 LIBS="-lpolarssl  $LIBS"
24141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24142 /* end confdefs.h.  */
24143
24144
24145 #ifdef __cplusplus
24146 extern "C"
24147 #endif
24148 char ssl_init ();
24149 int main (void)
24150 {
24151 return ssl_init ();
24152  ;
24153  return 0;
24154 }
24155 _ACEOF
24156 if ac_fn_c_try_link "$LINENO"; then :
24157   ac_cv_lib_polarssl_ssl_init=yes
24158 else
24159   ac_cv_lib_polarssl_ssl_init=no
24160 fi
24161 rm -f core conftest.err conftest.$ac_objext \
24162     conftest$ac_exeext conftest.$ac_ext
24163 LIBS=$ac_check_lib_save_LIBS
24164 fi
24165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
24166 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
24167 if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
24168
24169
24170 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
24171
24172        USE_POLARSSL=1
24173
24174        POLARSSL_ENABLED=1
24175        USE_POLARSSL="yes"
24176        curl_ssl_msg="enabled (PolarSSL)"
24177
24178 else
24179
24180          CPPFLAGS=$_cppflags
24181          LDFLAGS=$_ldflags
24182
24183 fi
24184
24185     fi
24186
24187     if test "x$USE_POLARSSL" = "xyes"; then
24188       { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
24189 $as_echo "$as_me: detected PolarSSL" >&6;}
24190
24191       LIBS="-lpolarssl $LIBS"
24192
24193       if test -n "$polarssllib"; then
24194                                         if test "x$cross_compiling" != "xyes"; then
24195           LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$polarssllib"
24196           export LD_LIBRARY_PATH
24197           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to LD_LIBRARY_PATH" >&5
24198 $as_echo "$as_me: Added $polarssllib to LD_LIBRARY_PATH" >&6;}
24199         fi
24200       fi
24201     fi
24202
24203   fi
24204 fi
24205
24206
24207 OPT_MBEDTLS=no
24208
24209 _cppflags=$CPPFLAGS
24210 _ldflags=$LDFLAGS
24211
24212 # Check whether --with-mbedtls was given.
24213 if test "${with_mbedtls+set}" = set; then :
24214   withval=$with_mbedtls; OPT_MBEDTLS=$withval
24215 fi
24216
24217
24218 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
24219
24220   if test X"$OPT_MBEDTLS" != Xno; then
24221
24222     if test "$OPT_MBEDTLS" = "yes"; then
24223       OPT_MBEDTLS=""
24224     fi
24225
24226     if test -z "$OPT_MBEDTLS" ; then
24227
24228       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
24229 $as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
24230 if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then :
24231   $as_echo_n "(cached) " >&6
24232 else
24233   ac_check_lib_save_LIBS=$LIBS
24234 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24236 /* end confdefs.h.  */
24237
24238
24239 #ifdef __cplusplus
24240 extern "C"
24241 #endif
24242 char mbedtls_havege_init ();
24243 int main (void)
24244 {
24245 return mbedtls_havege_init ();
24246  ;
24247  return 0;
24248 }
24249 _ACEOF
24250 if ac_fn_c_try_link "$LINENO"; then :
24251   ac_cv_lib_mbedtls_mbedtls_havege_init=yes
24252 else
24253   ac_cv_lib_mbedtls_mbedtls_havege_init=no
24254 fi
24255 rm -f core conftest.err conftest.$ac_objext \
24256     conftest$ac_exeext conftest.$ac_ext
24257 LIBS=$ac_check_lib_save_LIBS
24258 fi
24259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
24260 $as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
24261 if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then :
24262
24263
24264 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24265
24266          USE_MBEDTLS=1
24267
24268          MBEDTLS_ENABLED=1
24269          USE_MBEDTLS="yes"
24270          curl_ssl_msg="enabled (mbedTLS)"
24271
24272 fi
24273
24274     fi
24275
24276     addld=""
24277     addlib=""
24278     addcflags=""
24279     mbedtlslib=""
24280
24281     if test "x$USE_MBEDTLS" != "xyes"; then
24282             addld=-L$OPT_MBEDTLS/lib$libsuff
24283       addcflags=-I$OPT_MBEDTLS/include
24284       mbedtlslib=$OPT_MBEDTLS/lib$libsuff
24285
24286       LDFLAGS="$LDFLAGS $addld"
24287       if test "$addcflags" != "-I/usr/include"; then
24288          CPPFLAGS="$CPPFLAGS $addcflags"
24289       fi
24290
24291       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
24292 $as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
24293 if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
24294   $as_echo_n "(cached) " >&6
24295 else
24296   ac_check_lib_save_LIBS=$LIBS
24297 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24299 /* end confdefs.h.  */
24300
24301
24302 #ifdef __cplusplus
24303 extern "C"
24304 #endif
24305 char mbedtls_ssl_init ();
24306 int main (void)
24307 {
24308 return mbedtls_ssl_init ();
24309  ;
24310  return 0;
24311 }
24312 _ACEOF
24313 if ac_fn_c_try_link "$LINENO"; then :
24314   ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
24315 else
24316   ac_cv_lib_mbedtls_mbedtls_ssl_init=no
24317 fi
24318 rm -f core conftest.err conftest.$ac_objext \
24319     conftest$ac_exeext conftest.$ac_ext
24320 LIBS=$ac_check_lib_save_LIBS
24321 fi
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
24323 $as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
24324 if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
24325
24326
24327 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24328
24329        USE_MBEDTLS=1
24330
24331        MBEDTLS_ENABLED=1
24332        USE_MBEDTLS="yes"
24333        curl_ssl_msg="enabled (mbedTLS)"
24334
24335 else
24336
24337          CPPFLAGS=$_cppflags
24338          LDFLAGS=$_ldflags
24339
24340 fi
24341
24342     fi
24343
24344     if test "x$USE_MBEDTLS" = "xyes"; then
24345       { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
24346 $as_echo "$as_me: detected mbedTLS" >&6;}
24347
24348       LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24349
24350       if test -n "$mbedtlslib"; then
24351                                         if test "x$cross_compiling" != "xyes"; then
24352           LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mbedtlslib"
24353           export LD_LIBRARY_PATH
24354           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to LD_LIBRARY_PATH" >&5
24355 $as_echo "$as_me: Added $mbedtlslib to LD_LIBRARY_PATH" >&6;}
24356         fi
24357       fi
24358     fi
24359
24360   fi
24361 fi
24362
24363
24364 OPT_CYASSL=no
24365
24366 _cppflags=$CPPFLAGS
24367 _ldflags=$LDFLAGS
24368
24369 # Check whether --with-cyassl was given.
24370 if test "${with_cyassl+set}" = set; then :
24371   withval=$with_cyassl; OPT_CYASSL=$withval
24372 fi
24373
24374
24375 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
24376
24377   if test X"$OPT_CYASSL" != Xno; then
24378
24379     if test "$OPT_CYASSL" = "yes"; then
24380       OPT_CYASSL=""
24381     fi
24382
24383
24384     cyassllibname=cyassl
24385
24386     if test -z "$OPT_CYASSL" ; then
24387
24388       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24389 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24390 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24391   $as_echo_n "(cached) " >&6
24392 else
24393   ac_check_lib_save_LIBS=$LIBS
24394 LIBS="-lcyassl  $LIBS"
24395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24396 /* end confdefs.h.  */
24397
24398
24399 #ifdef __cplusplus
24400 extern "C"
24401 #endif
24402 char CyaSSL_Init ();
24403 int main (void)
24404 {
24405 return CyaSSL_Init ();
24406  ;
24407  return 0;
24408 }
24409 _ACEOF
24410 if ac_fn_c_try_link "$LINENO"; then :
24411   ac_cv_lib_cyassl_CyaSSL_Init=yes
24412 else
24413   ac_cv_lib_cyassl_CyaSSL_Init=no
24414 fi
24415 rm -f core conftest.err conftest.$ac_objext \
24416     conftest$ac_exeext conftest.$ac_ext
24417 LIBS=$ac_check_lib_save_LIBS
24418 fi
24419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24420 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24421 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24422
24423
24424 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24425
24426          USE_CYASSL=1
24427
24428          CYASSL_ENABLED=1
24429          USE_CYASSL="yes"
24430          curl_ssl_msg="enabled (CyaSSL)"
24431
24432 fi
24433
24434     fi
24435
24436     addld=""
24437     addlib=""
24438     addcflags=""
24439     cyassllib=""
24440
24441     if test "x$USE_CYASSL" != "xyes"; then
24442             addld=-L$OPT_CYASSL/lib$libsuff
24443       addcflags=-I$OPT_CYASSL/include
24444       cyassllib=$OPT_CYASSL/lib$libsuff
24445
24446       LDFLAGS="$LDFLAGS $addld"
24447       if test "$addcflags" != "-I/usr/include"; then
24448          CPPFLAGS="$CPPFLAGS $addcflags"
24449       fi
24450
24451       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24452 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24453 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24454   $as_echo_n "(cached) " >&6
24455 else
24456   ac_check_lib_save_LIBS=$LIBS
24457 LIBS="-lcyassl  $LIBS"
24458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24459 /* end confdefs.h.  */
24460
24461
24462 #ifdef __cplusplus
24463 extern "C"
24464 #endif
24465 char CyaSSL_Init ();
24466 int main (void)
24467 {
24468 return CyaSSL_Init ();
24469  ;
24470  return 0;
24471 }
24472 _ACEOF
24473 if ac_fn_c_try_link "$LINENO"; then :
24474   ac_cv_lib_cyassl_CyaSSL_Init=yes
24475 else
24476   ac_cv_lib_cyassl_CyaSSL_Init=no
24477 fi
24478 rm -f core conftest.err conftest.$ac_objext \
24479     conftest$ac_exeext conftest.$ac_ext
24480 LIBS=$ac_check_lib_save_LIBS
24481 fi
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24483 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24484 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24485
24486
24487 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24488
24489        USE_CYASSL=1
24490
24491        CYASSL_ENABLED=1
24492        USE_CYASSL="yes"
24493        curl_ssl_msg="enabled (CyaSSL)"
24494
24495 else
24496
24497          CPPFLAGS=$_cppflags
24498          LDFLAGS=$_ldflags
24499          cyassllib=""
24500
24501 fi
24502
24503     fi
24504
24505     addld=""
24506     addlib=""
24507     addcflags=""
24508
24509     if test "x$USE_CYASSL" != "xyes"; then
24510             addld=-L$OPT_CYASSL/lib$libsuff
24511       addcflags=-I$OPT_CYASSL/include
24512       cyassllib=$OPT_CYASSL/lib$libsuff
24513
24514       LDFLAGS="$LDFLAGS $addld"
24515       if test "$addcflags" != "-I/usr/include"; then
24516          CPPFLAGS="$CPPFLAGS $addcflags"
24517       fi
24518
24519       cyassllibname=wolfssl
24520       my_ac_save_LIBS="$LIBS"
24521       LIBS="-l$cyassllibname -lm $LIBS"
24522
24523       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5
24524 $as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; }
24525       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24526 /* end confdefs.h.  */
24527
24528
24529 /* These aren't needed for detection and confuse WolfSSL.
24530    They are set up properly later if it is detected.  */
24531 #undef SIZEOF_LONG
24532 #undef SIZEOF_LONG_LONG
24533 #include <cyassl/ssl.h>
24534
24535 int main (void)
24536 {
24537
24538           return CyaSSL_Init();
24539
24540  ;
24541  return 0;
24542 }
24543
24544 _ACEOF
24545 if ac_fn_c_try_link "$LINENO"; then :
24546
24547          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24548 $as_echo "yes" >&6; }
24549
24550 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24551
24552          USE_CYASSL=1
24553
24554          CYASSL_ENABLED=1
24555          USE_CYASSL="yes"
24556          curl_ssl_msg="enabled (WolfSSL)"
24557
24558 else
24559
24560          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24561 $as_echo "no" >&6; }
24562          CPPFLAGS=$_cppflags
24563          LDFLAGS=$_ldflags
24564          cyassllib=""
24565
24566 fi
24567 rm -f core conftest.err conftest.$ac_objext \
24568     conftest$ac_exeext conftest.$ac_ext
24569       LIBS="$my_ac_save_LIBS"
24570     fi
24571
24572     if test "x$USE_CYASSL" = "xyes"; then
24573       { $as_echo "$as_me:${as_lineno-$LINENO}: detected $cyassllibname" >&5
24574 $as_echo "$as_me: detected $cyassllibname" >&6;}
24575
24576             # The cast to long int works around a bug in the HP C Compiler
24577 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24578 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24579 # This bug is HP SR number 8606223364.
24580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
24581 $as_echo_n "checking size of long long... " >&6; }
24582 if ${ac_cv_sizeof_long_long+:} false; then :
24583   $as_echo_n "(cached) " >&6
24584 else
24585   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
24586
24587 else
24588   if test "$ac_cv_type_long_long" = yes; then
24589      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24591 as_fn_error 77 "cannot compute sizeof (long long)
24592 See \`config.log' for more details" "$LINENO" 5; }
24593    else
24594      ac_cv_sizeof_long_long=0
24595    fi
24596 fi
24597
24598 fi
24599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24600 $as_echo "$ac_cv_sizeof_long_long" >&6; }
24601
24602
24603
24604 cat >>confdefs.h <<_ACEOF
24605 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24606 _ACEOF
24607
24608
24609
24610             for ac_header in cyassl/options.h
24611 do :
24612   ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default"
24613 if test "x$ac_cv_header_cyassl_options_h" = xyes; then :
24614   cat >>confdefs.h <<_ACEOF
24615 #define HAVE_CYASSL_OPTIONS_H 1
24616 _ACEOF
24617
24618 fi
24619
24620 done
24621
24622
24623             for ac_header in cyassl/error-ssl.h
24624 do :
24625   ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
24626 if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
24627   cat >>confdefs.h <<_ACEOF
24628 #define HAVE_CYASSL_ERROR_SSL_H 1
24629 _ACEOF
24630
24631 fi
24632
24633 done
24634
24635
24636       LIBS="-l$cyassllibname -lm $LIBS"
24637
24638       if test "x$cyassllibname" = "xwolfssl"; then
24639                         for ac_func in wolfSSLv3_client_method \
24640                        wolfSSL_CTX_UseSupportedCurve \
24641                        wolfSSL_get_peer_certificate \
24642                        wolfSSL_UseALPN
24643 do :
24644   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24645 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24646 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24647   cat >>confdefs.h <<_ACEOF
24648 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24649 _ACEOF
24650
24651 fi
24652 done
24653
24654       else
24655                 for ac_func in CyaSSL_CTX_UseSupportedCurve \
24656                        CyaSSL_get_peer_certificate
24657 do :
24658   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24659 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24660 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24661   cat >>confdefs.h <<_ACEOF
24662 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24663 _ACEOF
24664
24665 fi
24666 done
24667
24668       fi
24669
24670       if test -n "$cyassllib"; then
24671                                         if test "x$cross_compiling" != "xyes"; then
24672           LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$cyassllib"
24673           export LD_LIBRARY_PATH
24674           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to LD_LIBRARY_PATH" >&5
24675 $as_echo "$as_me: Added $cyassllib to LD_LIBRARY_PATH" >&6;}
24676         fi
24677       fi
24678
24679     fi
24680
24681   fi
24682 fi
24683
24684
24685 OPT_NSS=no
24686
24687
24688 # Check whether --with-nss was given.
24689 if test "${with_nss+set}" = set; then :
24690   withval=$with_nss; OPT_NSS=$withval
24691 fi
24692
24693
24694 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
24695
24696   if test X"$OPT_NSS" != Xno; then
24697
24698     addld=""
24699     addlib=""
24700     addcflags=""
24701     nssprefix=""
24702     version=""
24703
24704     if test "x$OPT_NSS" = "xyes"; then
24705
24706
24707     if test -n "$PKG_CONFIG"; then
24708       PKGCONFIG="$PKG_CONFIG"
24709     else
24710       if test -n "$ac_tool_prefix"; then
24711   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24712 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24714 $as_echo_n "checking for $ac_word... " >&6; }
24715 if ${ac_cv_path_PKGCONFIG+:} false; then :
24716   $as_echo_n "(cached) " >&6
24717 else
24718   case $PKGCONFIG in
24719   [\\/]* | ?:[\\/]*)
24720   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24721   ;;
24722   *)
24723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24724 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24725 for as_dir in $as_dummy
24726 do
24727   IFS=$as_save_IFS
24728   test -z "$as_dir" && as_dir=.
24729     for ac_exec_ext in '' $ac_executable_extensions; do
24730   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24731     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24733     break 2
24734   fi
24735 done
24736   done
24737 IFS=$as_save_IFS
24738
24739   ;;
24740 esac
24741 fi
24742 PKGCONFIG=$ac_cv_path_PKGCONFIG
24743 if test -n "$PKGCONFIG"; then
24744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24745 $as_echo "$PKGCONFIG" >&6; }
24746 else
24747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24748 $as_echo "no" >&6; }
24749 fi
24750
24751
24752 fi
24753 if test -z "$ac_cv_path_PKGCONFIG"; then
24754   ac_pt_PKGCONFIG=$PKGCONFIG
24755   # Extract the first word of "pkg-config", so it can be a program name with args.
24756 set dummy pkg-config; ac_word=$2
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24758 $as_echo_n "checking for $ac_word... " >&6; }
24759 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24760   $as_echo_n "(cached) " >&6
24761 else
24762   case $ac_pt_PKGCONFIG in
24763   [\\/]* | ?:[\\/]*)
24764   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24765   ;;
24766   *)
24767   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24768 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24769 for as_dir in $as_dummy
24770 do
24771   IFS=$as_save_IFS
24772   test -z "$as_dir" && as_dir=.
24773     for ac_exec_ext in '' $ac_executable_extensions; do
24774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24775     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24777     break 2
24778   fi
24779 done
24780   done
24781 IFS=$as_save_IFS
24782
24783   ;;
24784 esac
24785 fi
24786 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24787 if test -n "$ac_pt_PKGCONFIG"; then
24788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24789 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24790 else
24791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24792 $as_echo "no" >&6; }
24793 fi
24794
24795   if test "x$ac_pt_PKGCONFIG" = x; then
24796     PKGCONFIG="no"
24797   else
24798     case $cross_compiling:$ac_tool_warned in
24799 yes:)
24800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24802 ac_tool_warned=yes ;;
24803 esac
24804     PKGCONFIG=$ac_pt_PKGCONFIG
24805   fi
24806 else
24807   PKGCONFIG="$ac_cv_path_PKGCONFIG"
24808 fi
24809
24810     fi
24811
24812     if test "x$PKGCONFIG" != "xno"; then
24813       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
24814 $as_echo_n "checking for nss options with pkg-config... " >&6; }
24815             itexists=`
24816     if test -n ""; then
24817       PKG_CONFIG_LIBDIR=""
24818       export PKG_CONFIG_LIBDIR
24819     fi
24820          $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
24821
24822       if test -z "$itexists"; then
24823                         PKGCONFIG="no"
24824         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24825 $as_echo "no" >&6; }
24826       else
24827         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24828 $as_echo "found" >&6; }
24829       fi
24830     fi
24831
24832
24833       if test "$PKGCONFIG" != "no" ; then
24834         addlib=`$PKGCONFIG --libs nss`
24835         addcflags=`$PKGCONFIG --cflags nss`
24836         version=`$PKGCONFIG --modversion nss`
24837         nssprefix=`$PKGCONFIG --variable=prefix nss`
24838       else
24839
24840         check=`nss-config --version 2>/dev/null`
24841         if test -n "$check"; then
24842           addlib=`nss-config --libs`
24843           addcflags=`nss-config --cflags`
24844           version=`nss-config --version`
24845           nssprefix=`nss-config --prefix`
24846         else
24847           addlib="-lnss3"
24848           addcflags=""
24849           version="unknown"
24850         fi
24851       fi
24852     else
24853       NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
24854       if test -f "$NSS_PCDIR/nss.pc"; then
24855
24856     if test -n "$PKG_CONFIG"; then
24857       PKGCONFIG="$PKG_CONFIG"
24858     else
24859       if test -n "$ac_tool_prefix"; then
24860   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24861 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24863 $as_echo_n "checking for $ac_word... " >&6; }
24864 if ${ac_cv_path_PKGCONFIG+:} false; then :
24865   $as_echo_n "(cached) " >&6
24866 else
24867   case $PKGCONFIG in
24868   [\\/]* | ?:[\\/]*)
24869   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24870   ;;
24871   *)
24872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24873 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24874 for as_dir in $as_dummy
24875 do
24876   IFS=$as_save_IFS
24877   test -z "$as_dir" && as_dir=.
24878     for ac_exec_ext in '' $ac_executable_extensions; do
24879   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24880     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24882     break 2
24883   fi
24884 done
24885   done
24886 IFS=$as_save_IFS
24887
24888   ;;
24889 esac
24890 fi
24891 PKGCONFIG=$ac_cv_path_PKGCONFIG
24892 if test -n "$PKGCONFIG"; then
24893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24894 $as_echo "$PKGCONFIG" >&6; }
24895 else
24896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24897 $as_echo "no" >&6; }
24898 fi
24899
24900
24901 fi
24902 if test -z "$ac_cv_path_PKGCONFIG"; then
24903   ac_pt_PKGCONFIG=$PKGCONFIG
24904   # Extract the first word of "pkg-config", so it can be a program name with args.
24905 set dummy pkg-config; ac_word=$2
24906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24907 $as_echo_n "checking for $ac_word... " >&6; }
24908 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24909   $as_echo_n "(cached) " >&6
24910 else
24911   case $ac_pt_PKGCONFIG in
24912   [\\/]* | ?:[\\/]*)
24913   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24914   ;;
24915   *)
24916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24917 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24918 for as_dir in $as_dummy
24919 do
24920   IFS=$as_save_IFS
24921   test -z "$as_dir" && as_dir=.
24922     for ac_exec_ext in '' $ac_executable_extensions; do
24923   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24924     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24926     break 2
24927   fi
24928 done
24929   done
24930 IFS=$as_save_IFS
24931
24932   ;;
24933 esac
24934 fi
24935 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24936 if test -n "$ac_pt_PKGCONFIG"; then
24937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24938 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24939 else
24940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24941 $as_echo "no" >&6; }
24942 fi
24943
24944   if test "x$ac_pt_PKGCONFIG" = x; then
24945     PKGCONFIG="no"
24946   else
24947     case $cross_compiling:$ac_tool_warned in
24948 yes:)
24949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24951 ac_tool_warned=yes ;;
24952 esac
24953     PKGCONFIG=$ac_pt_PKGCONFIG
24954   fi
24955 else
24956   PKGCONFIG="$ac_cv_path_PKGCONFIG"
24957 fi
24958
24959     fi
24960
24961     if test "x$PKGCONFIG" != "xno"; then
24962       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
24963 $as_echo_n "checking for nss options with pkg-config... " >&6; }
24964             itexists=`
24965     if test -n "$NSS_PCDIR"; then
24966       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24967       export PKG_CONFIG_LIBDIR
24968     fi
24969          $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
24970
24971       if test -z "$itexists"; then
24972                         PKGCONFIG="no"
24973         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24974 $as_echo "no" >&6; }
24975       else
24976         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24977 $as_echo "found" >&6; }
24978       fi
24979     fi
24980
24981         if test "$PKGCONFIG" != "no" ; then
24982           addld=`
24983     if test -n "$NSS_PCDIR"; then
24984       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24985       export PKG_CONFIG_LIBDIR
24986     fi
24987  $PKGCONFIG --libs-only-L nss`
24988           addlib=`
24989     if test -n "$NSS_PCDIR"; then
24990       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24991       export PKG_CONFIG_LIBDIR
24992     fi
24993  $PKGCONFIG --libs-only-l nss`
24994           addcflags=`
24995     if test -n "$NSS_PCDIR"; then
24996       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24997       export PKG_CONFIG_LIBDIR
24998     fi
24999  $PKGCONFIG --cflags nss`
25000           version=`
25001     if test -n "$NSS_PCDIR"; then
25002       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25003       export PKG_CONFIG_LIBDIR
25004     fi
25005  $PKGCONFIG --modversion nss`
25006           nssprefix=`
25007     if test -n "$NSS_PCDIR"; then
25008       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25009       export PKG_CONFIG_LIBDIR
25010     fi
25011  $PKGCONFIG --variable=prefix nss`
25012         fi
25013       fi
25014     fi
25015
25016     if test -z "$addlib"; then
25017       # Without pkg-config, we'll kludge in some defaults
25018       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
25019 $as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
25020       addld="-L$OPT_NSS/lib"
25021       addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
25022       addcflags="-I$OPT_NSS/include"
25023       version="unknown"
25024       nssprefix=$OPT_NSS
25025     fi
25026
25027     CLEANLDFLAGS="$LDFLAGS"
25028     CLEANLIBS="$LIBS"
25029     CLEANCPPFLAGS="$CPPFLAGS"
25030
25031     LDFLAGS="$addld $LDFLAGS"
25032     LIBS="$addlib $LIBS"
25033     if test "$addcflags" != "-I/usr/include"; then
25034        CPPFLAGS="$CPPFLAGS $addcflags"
25035     fi
25036
25037         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
25038 $as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
25039 if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
25040   $as_echo_n "(cached) " >&6
25041 else
25042   ac_check_lib_save_LIBS=$LIBS
25043 LIBS="-lnss3  $LIBS"
25044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25045 /* end confdefs.h.  */
25046
25047
25048 #ifdef __cplusplus
25049 extern "C"
25050 #endif
25051 char SSL_VersionRangeSet ();
25052 int main (void)
25053 {
25054 return SSL_VersionRangeSet ();
25055  ;
25056  return 0;
25057 }
25058 _ACEOF
25059 if ac_fn_c_try_link "$LINENO"; then :
25060   ac_cv_lib_nss3_SSL_VersionRangeSet=yes
25061 else
25062   ac_cv_lib_nss3_SSL_VersionRangeSet=no
25063 fi
25064 rm -f core conftest.err conftest.$ac_objext \
25065     conftest$ac_exeext conftest.$ac_ext
25066 LIBS=$ac_check_lib_save_LIBS
25067 fi
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
25069 $as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
25070 if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
25071
25072
25073 $as_echo "#define USE_NSS 1" >>confdefs.h
25074
25075      USE_NSS=1
25076
25077      USE_NSS="yes"
25078      NSS_ENABLED=1
25079      curl_ssl_msg="enabled (NSS)"
25080
25081 else
25082
25083        LDFLAGS="$CLEANLDFLAGS"
25084        LIBS="$CLEANLIBS"
25085        CPPFLAGS="$CLEANCPPFLAGS"
25086
25087 fi
25088
25089
25090     if test "x$USE_NSS" = "xyes"; then
25091       { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
25092 $as_echo "$as_me: detected NSS version $version" >&6;}
25093
25094             NSS_LIBS=$addlib
25095
25096
25097                               if test "x$cross_compiling" != "xyes"; then
25098         LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff"
25099         export LD_LIBRARY_PATH
25100         { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
25101 $as_echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
25102       fi
25103
25104     fi
25105   fi
25106 fi
25107 OPT_AXTLS=off
25108
25109
25110 # Check whether --with-axtls was given.
25111 if test "${with_axtls+set}" = set; then :
25112   withval=$with_axtls; OPT_AXTLS=$withval
25113 fi
25114
25115
25116 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
25117   if test X"$OPT_AXTLS" != Xno; then
25118         CLEANLDFLAGS="$LDFLAGS"
25119     CLEANCPPFLAGS="$CPPFLAGS"
25120     CLEANLIBS="$LIBS"
25121
25122     case "$OPT_AXTLS" in
25123     yes)
25124             PREFIX_AXTLS=/usr/local
25125       LIB_AXTLS="$PREFIX_AXTLS/lib"
25126       LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25127       CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25128       ;;
25129     off)
25130             PREFIX_AXTLS=
25131       ;;
25132     *)
25133             PREFIX_AXTLS=$OPT_AXTLS
25134       LIB_AXTLS="$PREFIX_AXTLS/lib"
25135       LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25136       CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25137       ;;
25138     esac
25139
25140     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5
25141 $as_echo_n "checking for ssl_version in -laxtls... " >&6; }
25142 if ${ac_cv_lib_axtls_ssl_version+:} false; then :
25143   $as_echo_n "(cached) " >&6
25144 else
25145   ac_check_lib_save_LIBS=$LIBS
25146 LIBS="-laxtls  $LIBS"
25147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25148 /* end confdefs.h.  */
25149
25150
25151 #ifdef __cplusplus
25152 extern "C"
25153 #endif
25154 char ssl_version ();
25155 int main (void)
25156 {
25157 return ssl_version ();
25158  ;
25159  return 0;
25160 }
25161 _ACEOF
25162 if ac_fn_c_try_link "$LINENO"; then :
25163   ac_cv_lib_axtls_ssl_version=yes
25164 else
25165   ac_cv_lib_axtls_ssl_version=no
25166 fi
25167 rm -f core conftest.err conftest.$ac_objext \
25168     conftest$ac_exeext conftest.$ac_ext
25169 LIBS=$ac_check_lib_save_LIBS
25170 fi
25171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5
25172 $as_echo "$ac_cv_lib_axtls_ssl_version" >&6; }
25173 if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then :
25174
25175       LIBS="-laxtls $LIBS"
25176
25177 $as_echo "#define USE_AXTLS 1" >>confdefs.h
25178
25179       USE_AXTLS=1
25180
25181       AXTLS_ENABLED=1
25182       USE_AXTLS="yes"
25183       curl_ssl_msg="enabled (axTLS)"
25184
25185       if test "x$cross_compiling" != "xyes"; then
25186         LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_AXTLS"
25187         export LD_LIBRARY_PATH
25188         { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&5
25189 $as_echo "$as_me: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&6;}
25190       fi
25191
25192 else
25193
25194       LDFLAGS="$CLEANLDFLAGS"
25195       CPPFLAGS="$CLEANCPPFLAGS"
25196       LIBS="$CLEANLIBS"
25197
25198 fi
25199
25200   fi
25201 fi
25202
25203 if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$MBEDTLS_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" = "x"; then
25204   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
25205 $as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
25206   { $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
25207 $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;}
25208 else
25209   # SSL is enabled, genericly
25210
25211   SSL_ENABLED="1"
25212 fi
25213
25214
25215
25216
25217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
25218 $as_echo_n "checking default CA cert bundle/path... " >&6; }
25219
25220
25221 # Check whether --with-ca-bundle was given.
25222 if test "${with_ca_bundle+set}" = set; then :
25223   withval=$with_ca_bundle;
25224     want_ca="$withval"
25225     if test "x$want_ca" = "xyes"; then
25226       as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
25227     fi
25228
25229 else
25230    want_ca="unset"
25231 fi
25232
25233
25234 # Check whether --with-ca-path was given.
25235 if test "${with_ca_path+set}" = set; then :
25236   withval=$with_ca_path;
25237     want_capath="$withval"
25238     if test "x$want_capath" = "xyes"; then
25239       as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
25240     fi
25241
25242 else
25243    want_capath="unset"
25244 fi
25245
25246
25247   ca_warning="   (warning: certs not found)"
25248   capath_warning="   (warning: certs not found)"
25249   check_capath=""
25250
25251   if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
25252           "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25253         ca="$want_ca"
25254     capath="$want_capath"
25255   elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
25256         ca="$want_ca"
25257     capath="no"
25258   elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25259         if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
25260       as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5
25261     fi
25262     capath="$want_capath"
25263     ca="no"
25264   else
25265             ca="no"
25266     capath="no"
25267     if test "x$cross_compiling" != "xyes"; then
25268                   if test "x$want_ca" = "xunset"; then
25269                                 if test "x$prefix" != xNONE; then
25270           cac="${prefix}/share/curl/curl-ca-bundle.crt"
25271         else
25272           cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25273         fi
25274
25275         for a in /etc/ssl/certs/ca-certificates.crt \
25276                  /etc/pki/tls/certs/ca-bundle.crt \
25277                  /usr/share/ssl/certs/ca-bundle.crt \
25278                  /usr/local/share/certs/ca-root-nss.crt \
25279                  /etc/ssl/cert.pem \
25280                  "$cac"; do
25281           if test -f "$a"; then
25282             ca="$a"
25283             break
25284           fi
25285         done
25286       fi
25287       if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
25288               "x$OPENSSL_ENABLED" = "x1"; then
25289         check_capath="/etc/ssl/certs/"
25290       fi
25291     else
25292             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
25293 $as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
25294     fi
25295   fi
25296
25297   if test "x$ca" = "xno" || test -f "$ca"; then
25298     ca_warning=""
25299   fi
25300
25301   if test "x$capath" != "xno"; then
25302     check_capath="$capath"
25303   fi
25304
25305   if test ! -z "$check_capath"; then
25306     for a in "$check_capath"; do
25307       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
25308         if test "x$capath" = "xno"; then
25309           capath="$a"
25310         fi
25311         capath_warning=""
25312         break
25313       fi
25314     done
25315   fi
25316
25317   if test "x$capath" = "xno"; then
25318     capath_warning=""
25319   fi
25320
25321   if test "x$ca" != "xno"; then
25322     CURL_CA_BUNDLE='"'$ca'"'
25323
25324 cat >>confdefs.h <<_ACEOF
25325 #define CURL_CA_BUNDLE "$ca"
25326 _ACEOF
25327
25328
25329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
25330 $as_echo "$ca" >&6; }
25331   fi
25332   if test "x$capath" != "xno"; then
25333     CURL_CA_PATH="\"$capath\""
25334
25335 cat >>confdefs.h <<_ACEOF
25336 #define CURL_CA_PATH "$capath"
25337 _ACEOF
25338
25339     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
25340 $as_echo "$capath (capath)" >&6; }
25341   fi
25342   if test "x$ca" = "xno" && test "x$capath" = "xno"; then
25343     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25344 $as_echo "no" >&6; }
25345   fi
25346
25347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
25348 $as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; }
25349
25350 # Check whether --with-ca-fallback was given.
25351 if test "${with_ca_fallback+set}" = set; then :
25352   withval=$with_ca_fallback;
25353     if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
25354       as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
25355     fi
25356
25357 else
25358    with_ca_fallback="no"
25359 fi
25360
25361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
25362 $as_echo "$with_ca_fallback" >&6; }
25363   if test "x$with_ca_fallback" = "xyes"; then
25364     if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
25365       as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
25366     fi
25367
25368 cat >>confdefs.h <<_ACEOF
25369 #define CURL_CA_FALLBACK 1
25370 _ACEOF
25371
25372   fi
25373
25374
25375
25376
25377 # Check whether --with-libpsl was given.
25378 if test "${with_libpsl+set}" = set; then :
25379   withval=$with_libpsl; with_libpsl=$withval
25380 else
25381   with_libpsl=yes
25382 fi
25383
25384 if test $with_libpsl != "no"; then
25385   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
25386 $as_echo_n "checking for library containing psl_builtin... " >&6; }
25387 if ${ac_cv_search_psl_builtin+:} false; then :
25388   $as_echo_n "(cached) " >&6
25389 else
25390   ac_func_search_save_LIBS=$LIBS
25391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25392 /* end confdefs.h.  */
25393
25394
25395 #ifdef __cplusplus
25396 extern "C"
25397 #endif
25398 char psl_builtin ();
25399 int main (void)
25400 {
25401 return psl_builtin ();
25402  ;
25403  return 0;
25404 }
25405 _ACEOF
25406 for ac_lib in '' psl; do
25407   if test -z "$ac_lib"; then
25408     ac_res="none required"
25409   else
25410     ac_res=-l$ac_lib
25411     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25412   fi
25413   if ac_fn_c_try_link "$LINENO"; then :
25414   ac_cv_search_psl_builtin=$ac_res
25415 fi
25416 rm -f core conftest.err conftest.$ac_objext \
25417     conftest$ac_exeext
25418   if ${ac_cv_search_psl_builtin+:} false; then :
25419   break
25420 fi
25421 done
25422 if ${ac_cv_search_psl_builtin+:} false; then :
25423
25424 else
25425   ac_cv_search_psl_builtin=no
25426 fi
25427 rm conftest.$ac_ext
25428 LIBS=$ac_func_search_save_LIBS
25429 fi
25430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
25431 $as_echo "$ac_cv_search_psl_builtin" >&6; }
25432 ac_res=$ac_cv_search_psl_builtin
25433 if test "$ac_res" != no; then :
25434   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25435   curl_psl_msg="yes";
25436
25437 $as_echo "#define USE_LIBPSL 1" >>confdefs.h
25438
25439
25440 else
25441   curl_psl_msg="no      (libpsl not found)";
25442      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
25443 $as_echo "$as_me: WARNING: libpsl was not found" >&2;}
25444
25445
25446 fi
25447
25448 fi
25449  if test "$curl_psl_msg" = "yes"; then
25450   USE_LIBPSL_TRUE=
25451   USE_LIBPSL_FALSE='#'
25452 else
25453   USE_LIBPSL_TRUE='#'
25454   USE_LIBPSL_FALSE=
25455 fi
25456
25457
25458
25459 OPT_LIBMETALINK=no
25460
25461
25462 # Check whether --with-libmetalink was given.
25463 if test "${with_libmetalink+set}" = set; then :
25464   withval=$with_libmetalink; OPT_LIBMETALINK=$withval
25465 fi
25466
25467
25468 if test X"$OPT_LIBMETALINK" != Xno; then
25469
25470   addld=""
25471   addlib=""
25472   addcflags=""
25473   version=""
25474   libmetalinklib=""
25475
25476   PKGTEST="no"
25477   if test "x$OPT_LIBMETALINK" = "xyes"; then
25478         PKGTEST="yes"
25479
25480     if test -n "$PKG_CONFIG"; then
25481       PKGCONFIG="$PKG_CONFIG"
25482     else
25483       if test -n "$ac_tool_prefix"; then
25484   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25485 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25487 $as_echo_n "checking for $ac_word... " >&6; }
25488 if ${ac_cv_path_PKGCONFIG+:} false; then :
25489   $as_echo_n "(cached) " >&6
25490 else
25491   case $PKGCONFIG in
25492   [\\/]* | ?:[\\/]*)
25493   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25494   ;;
25495   *)
25496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25497 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25498 for as_dir in $as_dummy
25499 do
25500   IFS=$as_save_IFS
25501   test -z "$as_dir" && as_dir=.
25502     for ac_exec_ext in '' $ac_executable_extensions; do
25503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25504     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25506     break 2
25507   fi
25508 done
25509   done
25510 IFS=$as_save_IFS
25511
25512   ;;
25513 esac
25514 fi
25515 PKGCONFIG=$ac_cv_path_PKGCONFIG
25516 if test -n "$PKGCONFIG"; then
25517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25518 $as_echo "$PKGCONFIG" >&6; }
25519 else
25520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25521 $as_echo "no" >&6; }
25522 fi
25523
25524
25525 fi
25526 if test -z "$ac_cv_path_PKGCONFIG"; then
25527   ac_pt_PKGCONFIG=$PKGCONFIG
25528   # Extract the first word of "pkg-config", so it can be a program name with args.
25529 set dummy pkg-config; ac_word=$2
25530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25531 $as_echo_n "checking for $ac_word... " >&6; }
25532 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25533   $as_echo_n "(cached) " >&6
25534 else
25535   case $ac_pt_PKGCONFIG in
25536   [\\/]* | ?:[\\/]*)
25537   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25538   ;;
25539   *)
25540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25541 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25542 for as_dir in $as_dummy
25543 do
25544   IFS=$as_save_IFS
25545   test -z "$as_dir" && as_dir=.
25546     for ac_exec_ext in '' $ac_executable_extensions; do
25547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25548     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25550     break 2
25551   fi
25552 done
25553   done
25554 IFS=$as_save_IFS
25555
25556   ;;
25557 esac
25558 fi
25559 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25560 if test -n "$ac_pt_PKGCONFIG"; then
25561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25562 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25563 else
25564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25565 $as_echo "no" >&6; }
25566 fi
25567
25568   if test "x$ac_pt_PKGCONFIG" = x; then
25569     PKGCONFIG="no"
25570   else
25571     case $cross_compiling:$ac_tool_warned in
25572 yes:)
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25575 ac_tool_warned=yes ;;
25576 esac
25577     PKGCONFIG=$ac_pt_PKGCONFIG
25578   fi
25579 else
25580   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25581 fi
25582
25583     fi
25584
25585     if test "x$PKGCONFIG" != "xno"; then
25586       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25587 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25588             itexists=`
25589     if test -n ""; then
25590       PKG_CONFIG_LIBDIR=""
25591       export PKG_CONFIG_LIBDIR
25592     fi
25593          $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25594
25595       if test -z "$itexists"; then
25596                         PKGCONFIG="no"
25597         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25598 $as_echo "no" >&6; }
25599       else
25600         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25601 $as_echo "found" >&6; }
25602       fi
25603     fi
25604
25605   else
25606         LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
25607     { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
25608 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
25609     if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
25610       PKGTEST="yes"
25611     fi
25612     if test "$PKGTEST" = "yes"; then
25613
25614     if test -n "$PKG_CONFIG"; then
25615       PKGCONFIG="$PKG_CONFIG"
25616     else
25617       if test -n "$ac_tool_prefix"; then
25618   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25619 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25621 $as_echo_n "checking for $ac_word... " >&6; }
25622 if ${ac_cv_path_PKGCONFIG+:} false; then :
25623   $as_echo_n "(cached) " >&6
25624 else
25625   case $PKGCONFIG in
25626   [\\/]* | ?:[\\/]*)
25627   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25628   ;;
25629   *)
25630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25631 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25632 for as_dir in $as_dummy
25633 do
25634   IFS=$as_save_IFS
25635   test -z "$as_dir" && as_dir=.
25636     for ac_exec_ext in '' $ac_executable_extensions; do
25637   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25638     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25640     break 2
25641   fi
25642 done
25643   done
25644 IFS=$as_save_IFS
25645
25646   ;;
25647 esac
25648 fi
25649 PKGCONFIG=$ac_cv_path_PKGCONFIG
25650 if test -n "$PKGCONFIG"; then
25651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25652 $as_echo "$PKGCONFIG" >&6; }
25653 else
25654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25655 $as_echo "no" >&6; }
25656 fi
25657
25658
25659 fi
25660 if test -z "$ac_cv_path_PKGCONFIG"; then
25661   ac_pt_PKGCONFIG=$PKGCONFIG
25662   # Extract the first word of "pkg-config", so it can be a program name with args.
25663 set dummy pkg-config; ac_word=$2
25664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25665 $as_echo_n "checking for $ac_word... " >&6; }
25666 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25667   $as_echo_n "(cached) " >&6
25668 else
25669   case $ac_pt_PKGCONFIG in
25670   [\\/]* | ?:[\\/]*)
25671   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25672   ;;
25673   *)
25674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25675 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25676 for as_dir in $as_dummy
25677 do
25678   IFS=$as_save_IFS
25679   test -z "$as_dir" && as_dir=.
25680     for ac_exec_ext in '' $ac_executable_extensions; do
25681   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25682     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25684     break 2
25685   fi
25686 done
25687   done
25688 IFS=$as_save_IFS
25689
25690   ;;
25691 esac
25692 fi
25693 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25694 if test -n "$ac_pt_PKGCONFIG"; then
25695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25696 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25697 else
25698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25699 $as_echo "no" >&6; }
25700 fi
25701
25702   if test "x$ac_pt_PKGCONFIG" = x; then
25703     PKGCONFIG="no"
25704   else
25705     case $cross_compiling:$ac_tool_warned in
25706 yes:)
25707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25709 ac_tool_warned=yes ;;
25710 esac
25711     PKGCONFIG=$ac_pt_PKGCONFIG
25712   fi
25713 else
25714   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25715 fi
25716
25717     fi
25718
25719     if test "x$PKGCONFIG" != "xno"; then
25720       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25721 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25722             itexists=`
25723     if test -n "$LIBMETALINK_PCDIR"; then
25724       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25725       export PKG_CONFIG_LIBDIR
25726     fi
25727          $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25728
25729       if test -z "$itexists"; then
25730                         PKGCONFIG="no"
25731         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25732 $as_echo "no" >&6; }
25733       else
25734         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25735 $as_echo "found" >&6; }
25736       fi
25737     fi
25738
25739     fi
25740   fi
25741   if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
25742     addlib=`
25743     if test -n "$LIBMETALINK_PCDIR"; then
25744       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25745       export PKG_CONFIG_LIBDIR
25746     fi
25747        $PKGCONFIG --libs-only-l libmetalink`
25748     addld=`
25749     if test -n "$LIBMETALINK_PCDIR"; then
25750       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25751       export PKG_CONFIG_LIBDIR
25752     fi
25753        $PKGCONFIG --libs-only-L libmetalink`
25754     addcflags=`
25755     if test -n "$LIBMETALINK_PCDIR"; then
25756       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25757       export PKG_CONFIG_LIBDIR
25758     fi
25759        $PKGCONFIG --cflags-only-I libmetalink`
25760     version=`
25761     if test -n "$LIBMETALINK_PCDIR"; then
25762       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25763       export PKG_CONFIG_LIBDIR
25764     fi
25765        $PKGCONFIG --modversion libmetalink`
25766     libmetalinklib=`echo $addld | $SED -e 's/-L//'`
25767   fi
25768   if test -n "$addlib"; then
25769
25770     clean_CPPFLAGS="$CPPFLAGS"
25771     clean_LDFLAGS="$LDFLAGS"
25772     clean_LIBS="$LIBS"
25773     CPPFLAGS="$addcflags $clean_CPPFLAGS"
25774     LDFLAGS="$addld $clean_LDFLAGS"
25775     LIBS="$addlib $clean_LIBS"
25776     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
25777 $as_echo_n "checking if libmetalink is recent enough... " >&6; }
25778     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25779 /* end confdefs.h.  */
25780
25781
25782 #       include <metalink/metalink.h>
25783
25784 int main (void)
25785 {
25786
25787         if(0 != metalink_strerror(0)) /* added in 0.1.0 */
25788           return 1;
25789
25790  ;
25791  return 0;
25792 }
25793
25794 _ACEOF
25795 if ac_fn_c_try_link "$LINENO"; then :
25796
25797       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
25798 $as_echo "yes ($version)" >&6; }
25799       want_metalink="yes"
25800
25801 else
25802
25803       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
25804 $as_echo "no ($version)" >&6; }
25805       { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
25806 $as_echo "$as_me: libmetalink library defective or too old" >&6;}
25807       want_metalink="no"
25808
25809 fi
25810 rm -f core conftest.err conftest.$ac_objext \
25811     conftest$ac_exeext conftest.$ac_ext
25812     CPPFLAGS="$clean_CPPFLAGS"
25813     LDFLAGS="$clean_LDFLAGS"
25814     LIBS="$clean_LIBS"
25815     if test "$want_metalink" = "yes"; then
25816
25817 $as_echo "#define USE_METALINK 1" >>confdefs.h
25818
25819       LIBMETALINK_LIBS=$addlib
25820       LIBMETALINK_LDFLAGS=$addld
25821       LIBMETALINK_CPPFLAGS=$addcflags
25822
25823
25824
25825       curl_mtlnk_msg="enabled"
25826     fi
25827
25828   fi
25829 fi
25830
25831
25832 OPT_LIBSSH2=off
25833
25834 # Check whether --with-libssh2 was given.
25835 if test "${with_libssh2+set}" = set; then :
25836   withval=$with_libssh2; OPT_LIBSSH2=$withval
25837 fi
25838
25839
25840 if test X"$OPT_LIBSSH2" != Xno; then
25841     CLEANLDFLAGS="$LDFLAGS"
25842   CLEANCPPFLAGS="$CPPFLAGS"
25843   CLEANLIBS="$LIBS"
25844
25845   case "$OPT_LIBSSH2" in
25846   yes)
25847
25848     if test -n "$PKG_CONFIG"; then
25849       PKGCONFIG="$PKG_CONFIG"
25850     else
25851       if test -n "$ac_tool_prefix"; then
25852   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25853 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25855 $as_echo_n "checking for $ac_word... " >&6; }
25856 if ${ac_cv_path_PKGCONFIG+:} false; then :
25857   $as_echo_n "(cached) " >&6
25858 else
25859   case $PKGCONFIG in
25860   [\\/]* | ?:[\\/]*)
25861   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25862   ;;
25863   *)
25864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25865 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25866 for as_dir in $as_dummy
25867 do
25868   IFS=$as_save_IFS
25869   test -z "$as_dir" && as_dir=.
25870     for ac_exec_ext in '' $ac_executable_extensions; do
25871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25872     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25874     break 2
25875   fi
25876 done
25877   done
25878 IFS=$as_save_IFS
25879
25880   ;;
25881 esac
25882 fi
25883 PKGCONFIG=$ac_cv_path_PKGCONFIG
25884 if test -n "$PKGCONFIG"; then
25885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25886 $as_echo "$PKGCONFIG" >&6; }
25887 else
25888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25889 $as_echo "no" >&6; }
25890 fi
25891
25892
25893 fi
25894 if test -z "$ac_cv_path_PKGCONFIG"; then
25895   ac_pt_PKGCONFIG=$PKGCONFIG
25896   # Extract the first word of "pkg-config", so it can be a program name with args.
25897 set dummy pkg-config; ac_word=$2
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25899 $as_echo_n "checking for $ac_word... " >&6; }
25900 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25901   $as_echo_n "(cached) " >&6
25902 else
25903   case $ac_pt_PKGCONFIG in
25904   [\\/]* | ?:[\\/]*)
25905   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25906   ;;
25907   *)
25908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25909 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25910 for as_dir in $as_dummy
25911 do
25912   IFS=$as_save_IFS
25913   test -z "$as_dir" && as_dir=.
25914     for ac_exec_ext in '' $ac_executable_extensions; do
25915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25916     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25918     break 2
25919   fi
25920 done
25921   done
25922 IFS=$as_save_IFS
25923
25924   ;;
25925 esac
25926 fi
25927 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25928 if test -n "$ac_pt_PKGCONFIG"; then
25929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25930 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25931 else
25932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25933 $as_echo "no" >&6; }
25934 fi
25935
25936   if test "x$ac_pt_PKGCONFIG" = x; then
25937     PKGCONFIG="no"
25938   else
25939     case $cross_compiling:$ac_tool_warned in
25940 yes:)
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25943 ac_tool_warned=yes ;;
25944 esac
25945     PKGCONFIG=$ac_pt_PKGCONFIG
25946   fi
25947 else
25948   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25949 fi
25950
25951     fi
25952
25953     if test "x$PKGCONFIG" != "xno"; then
25954       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
25955 $as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
25956             itexists=`
25957     if test -n ""; then
25958       PKG_CONFIG_LIBDIR=""
25959       export PKG_CONFIG_LIBDIR
25960     fi
25961          $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
25962
25963       if test -z "$itexists"; then
25964                         PKGCONFIG="no"
25965         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25966 $as_echo "no" >&6; }
25967       else
25968         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25969 $as_echo "found" >&6; }
25970       fi
25971     fi
25972
25973
25974     if test "$PKGCONFIG" != "no" ; then
25975       LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
25976       LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
25977       CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
25978       version=`$PKGCONFIG --modversion libssh2`
25979       DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
25980     fi
25981
25982     ;;
25983   off)
25984         ;;
25985   *)
25986         PREFIX_SSH2=$OPT_LIBSSH2
25987     ;;
25988   esac
25989
25990     if test -n "$PREFIX_SSH2"; then
25991     LIB_SSH2="-lssh2"
25992     LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
25993     CPP_SSH2=-I${PREFIX_SSH2}/include
25994     DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
25995   fi
25996
25997   LDFLAGS="$LD_SSH2 $LDFLAGS"
25998   CPPFLAGS="$CPPFLAGS $CPP_SSH2"
25999   LIBS="$LIB_SSH2 $LIBS"
26000
26001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
26002 $as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
26003 if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
26004   $as_echo_n "(cached) " >&6
26005 else
26006   ac_check_lib_save_LIBS=$LIBS
26007 LIBS="-lssh2  $LIBS"
26008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26009 /* end confdefs.h.  */
26010
26011
26012 #ifdef __cplusplus
26013 extern "C"
26014 #endif
26015 char libssh2_channel_open_ex ();
26016 int main (void)
26017 {
26018 return libssh2_channel_open_ex ();
26019  ;
26020  return 0;
26021 }
26022 _ACEOF
26023 if ac_fn_c_try_link "$LINENO"; then :
26024   ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
26025 else
26026   ac_cv_lib_ssh2_libssh2_channel_open_ex=no
26027 fi
26028 rm -f core conftest.err conftest.$ac_objext \
26029     conftest$ac_exeext conftest.$ac_ext
26030 LIBS=$ac_check_lib_save_LIBS
26031 fi
26032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
26033 $as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
26034 if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
26035   cat >>confdefs.h <<_ACEOF
26036 #define HAVE_LIBSSH2 1
26037 _ACEOF
26038
26039   LIBS="-lssh2 $LIBS"
26040
26041 fi
26042
26043
26044   for ac_header in libssh2.h
26045 do :
26046   ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
26047 if test "x$ac_cv_header_libssh2_h" = xyes; then :
26048   cat >>confdefs.h <<_ACEOF
26049 #define HAVE_LIBSSH2_H 1
26050 _ACEOF
26051  curl_ssh_msg="enabled (libSSH2)"
26052     LIBSSH2_ENABLED=1
26053
26054 $as_echo "#define USE_LIBSSH2 1" >>confdefs.h
26055
26056     USE_LIBSSH2=1
26057
26058
26059 fi
26060
26061 done
26062
26063
26064   if test X"$OPT_LIBSSH2" != Xoff &&
26065      test "$LIBSSH2_ENABLED" != "1"; then
26066     as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
26067   fi
26068
26069   if test "$LIBSSH2_ENABLED" = "1"; then
26070     if test -n "$DIR_SSH2"; then
26071
26072        if test "x$cross_compiling" != "xyes"; then
26073          LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
26074          export LD_LIBRARY_PATH
26075          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&5
26076 $as_echo "$as_me: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&6;}
26077        fi
26078     fi
26079   else
26080         LDFLAGS=$CLEANLDFLAGS
26081     CPPFLAGS=$CLEANCPPFLAGS
26082     LIBS=$CLEANLIBS
26083   fi
26084 fi
26085
26086
26087 OPT_LIBRTMP=off
26088
26089 # Check whether --with-librtmp was given.
26090 if test "${with_librtmp+set}" = set; then :
26091   withval=$with_librtmp; OPT_LIBRTMP=$withval
26092 fi
26093
26094
26095 if test X"$OPT_LIBRTMP" != Xno; then
26096     CLEANLDFLAGS="$LDFLAGS"
26097   CLEANCPPFLAGS="$CPPFLAGS"
26098   CLEANLIBS="$LIBS"
26099
26100   case "$OPT_LIBRTMP" in
26101   yes)
26102
26103     if test -n "$PKG_CONFIG"; then
26104       PKGCONFIG="$PKG_CONFIG"
26105     else
26106       if test -n "$ac_tool_prefix"; then
26107   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26108 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26110 $as_echo_n "checking for $ac_word... " >&6; }
26111 if ${ac_cv_path_PKGCONFIG+:} false; then :
26112   $as_echo_n "(cached) " >&6
26113 else
26114   case $PKGCONFIG in
26115   [\\/]* | ?:[\\/]*)
26116   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26117   ;;
26118   *)
26119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26120 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26121 for as_dir in $as_dummy
26122 do
26123   IFS=$as_save_IFS
26124   test -z "$as_dir" && as_dir=.
26125     for ac_exec_ext in '' $ac_executable_extensions; do
26126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26127     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26129     break 2
26130   fi
26131 done
26132   done
26133 IFS=$as_save_IFS
26134
26135   ;;
26136 esac
26137 fi
26138 PKGCONFIG=$ac_cv_path_PKGCONFIG
26139 if test -n "$PKGCONFIG"; then
26140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26141 $as_echo "$PKGCONFIG" >&6; }
26142 else
26143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26144 $as_echo "no" >&6; }
26145 fi
26146
26147
26148 fi
26149 if test -z "$ac_cv_path_PKGCONFIG"; then
26150   ac_pt_PKGCONFIG=$PKGCONFIG
26151   # Extract the first word of "pkg-config", so it can be a program name with args.
26152 set dummy pkg-config; ac_word=$2
26153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26154 $as_echo_n "checking for $ac_word... " >&6; }
26155 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26156   $as_echo_n "(cached) " >&6
26157 else
26158   case $ac_pt_PKGCONFIG in
26159   [\\/]* | ?:[\\/]*)
26160   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26161   ;;
26162   *)
26163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26164 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26165 for as_dir in $as_dummy
26166 do
26167   IFS=$as_save_IFS
26168   test -z "$as_dir" && as_dir=.
26169     for ac_exec_ext in '' $ac_executable_extensions; do
26170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26171     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26173     break 2
26174   fi
26175 done
26176   done
26177 IFS=$as_save_IFS
26178
26179   ;;
26180 esac
26181 fi
26182 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26183 if test -n "$ac_pt_PKGCONFIG"; then
26184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26185 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26186 else
26187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26188 $as_echo "no" >&6; }
26189 fi
26190
26191   if test "x$ac_pt_PKGCONFIG" = x; then
26192     PKGCONFIG="no"
26193   else
26194     case $cross_compiling:$ac_tool_warned in
26195 yes:)
26196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26198 ac_tool_warned=yes ;;
26199 esac
26200     PKGCONFIG=$ac_pt_PKGCONFIG
26201   fi
26202 else
26203   PKGCONFIG="$ac_cv_path_PKGCONFIG"
26204 fi
26205
26206     fi
26207
26208     if test "x$PKGCONFIG" != "xno"; then
26209       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
26210 $as_echo_n "checking for librtmp options with pkg-config... " >&6; }
26211             itexists=`
26212     if test -n ""; then
26213       PKG_CONFIG_LIBDIR=""
26214       export PKG_CONFIG_LIBDIR
26215     fi
26216          $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
26217
26218       if test -z "$itexists"; then
26219                         PKGCONFIG="no"
26220         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26221 $as_echo "no" >&6; }
26222       else
26223         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26224 $as_echo "found" >&6; }
26225       fi
26226     fi
26227
26228
26229     if test "$PKGCONFIG" != "no" ; then
26230       LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
26231       LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
26232       CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
26233       version=`$PKGCONFIG --modversion librtmp`
26234       DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
26235     else
26236                   as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
26237     fi
26238
26239     ;;
26240   off)
26241         LIB_RTMP="-lrtmp"
26242     ;;
26243   *)
26244         PREFIX_RTMP=$OPT_LIBRTMP
26245     ;;
26246   esac
26247
26248     if test -n "$PREFIX_RTMP"; then
26249     LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
26250     CPP_RTMP=-I${PREFIX_RTMP}/include
26251     DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
26252   fi
26253
26254   LDFLAGS="$LDFLAGS $LD_RTMP"
26255   CPPFLAGS="$CPPFLAGS $CPP_RTMP"
26256   LIBS="$LIB_RTMP $LIBS"
26257
26258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
26259 $as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
26260 if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
26261   $as_echo_n "(cached) " >&6
26262 else
26263   ac_check_lib_save_LIBS=$LIBS
26264 LIBS="-lrtmp  $LIBS"
26265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26266 /* end confdefs.h.  */
26267
26268
26269 #ifdef __cplusplus
26270 extern "C"
26271 #endif
26272 char RTMP_Init ();
26273 int main (void)
26274 {
26275 return RTMP_Init ();
26276  ;
26277  return 0;
26278 }
26279 _ACEOF
26280 if ac_fn_c_try_link "$LINENO"; then :
26281   ac_cv_lib_rtmp_RTMP_Init=yes
26282 else
26283   ac_cv_lib_rtmp_RTMP_Init=no
26284 fi
26285 rm -f core conftest.err conftest.$ac_objext \
26286     conftest$ac_exeext conftest.$ac_ext
26287 LIBS=$ac_check_lib_save_LIBS
26288 fi
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
26290 $as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
26291 if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
26292
26293      for ac_header in librtmp/rtmp.h
26294 do :
26295   ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
26296 if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
26297   cat >>confdefs.h <<_ACEOF
26298 #define HAVE_LIBRTMP_RTMP_H 1
26299 _ACEOF
26300  curl_rtmp_msg="enabled (librtmp)"
26301         LIBRTMP_ENABLED=1
26302
26303 $as_echo "#define USE_LIBRTMP 1" >>confdefs.h
26304
26305         USE_LIBRTMP=1
26306
26307
26308 fi
26309
26310 done
26311
26312
26313 else
26314         LDFLAGS=$CLEANLDFLAGS
26315       CPPFLAGS=$CLEANCPPFLAGS
26316       LIBS=$CLEANLIBS
26317
26318 fi
26319
26320
26321   if test X"$OPT_LIBRTMP" != Xoff &&
26322      test "$LIBRTMP_ENABLED" != "1"; then
26323     as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
26324   fi
26325
26326 fi
26327
26328
26329 versioned_symbols_flavour=
26330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
26331 $as_echo_n "checking whether versioned symbols are wanted... " >&6; }
26332 # Check whether --enable-versioned-symbols was given.
26333 if test "${enable_versioned_symbols+set}" = set; then :
26334   enableval=$enable_versioned_symbols;  case "$enableval" in
26335   yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26336 $as_echo "yes" >&6; }
26337     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
26338 $as_echo_n "checking if libraries can be versioned... " >&6; }
26339     GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
26340     if test -z "$GLD"; then
26341         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26342 $as_echo "no" >&6; }
26343         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
26344 $as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
26345     else
26346         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26347 $as_echo "yes" >&6; }
26348         if test "x$OPENSSL_ENABLED" = "x1"; then
26349           versioned_symbols_flavour="OPENSSL_"
26350         elif test "x$GNUTLS_ENABLED" = "x1"; then
26351           versioned_symbols_flavour="GNUTLS_"
26352         elif test "x$NSS_ENABLED" = "x1"; then
26353           versioned_symbols_flavour="NSS_"
26354         elif test "x$POLARSSL_ENABLED" = "x1"; then
26355           versioned_symbols_flavour="POLARSSL_"
26356         elif test "x$CYASSL_ENABLED" = "x1"; then
26357           versioned_symbols_flavour="CYASSL_"
26358         elif test "x$AXTLS_ENABLED" = "x1"; then
26359           versioned_symbols_flavour="AXTLS_"
26360         elif test "x$WINSSL_ENABLED" = "x1"; then
26361           versioned_symbols_flavour="WINSSL_"
26362         elif test "x$DARWINSSL_ENABLED" = "x1"; then
26363           versioned_symbols_flavour="DARWINSSL_"
26364         else
26365           versioned_symbols_flavour=""
26366         fi
26367         versioned_symbols="yes"
26368     fi
26369     ;;
26370
26371   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26372 $as_echo "no" >&6; }
26373     ;;
26374   esac
26375
26376 else
26377
26378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26379 $as_echo "no" >&6; }
26380
26381
26382 fi
26383
26384
26385 CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
26386
26387  if test "x$versioned_symbols" = 'xyes'; then
26388   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
26389   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
26390 else
26391   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
26392   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
26393 fi
26394
26395
26396
26397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
26398 $as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
26399 OPT_WINIDN="default"
26400
26401 # Check whether --with-winidn was given.
26402 if test "${with_winidn+set}" = set; then :
26403   withval=$with_winidn; OPT_WINIDN=$withval
26404 fi
26405
26406 case "$OPT_WINIDN" in
26407   no|default)
26408         want_winidn="no"
26409     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26410 $as_echo "no" >&6; }
26411     ;;
26412   yes)
26413         want_winidn="yes"
26414     want_winidn_path="default"
26415     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26416 $as_echo "yes" >&6; }
26417     ;;
26418   *)
26419         want_winidn="yes"
26420     want_winidn_path="$withval"
26421     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
26422 $as_echo "yes ($withval)" >&6; }
26423     ;;
26424 esac
26425
26426 if test "$want_winidn" = "yes"; then
26427     clean_CPPFLAGS="$CPPFLAGS"
26428   clean_LDFLAGS="$LDFLAGS"
26429   clean_LIBS="$LIBS"
26430   WINIDN_LIBS="-lnormaliz"
26431   #
26432   if test "$want_winidn_path" != "default"; then
26433             WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
26434     WINIDN_CPPFLAGS="-I$want_winidn_path/include"
26435     WINIDN_DIR="$want_winidn_path/lib$libsuff"
26436   fi
26437   #
26438   CPPFLAGS="$WINIDN_CPPFLAGS $CPPFLAGS"
26439   LDFLAGS="$WINIDN_LDFLAGS $LDFLAGS"
26440   LIBS="$WINIDN_LIBS $LIBS"
26441   #
26442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
26443 $as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
26444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26445 /* end confdefs.h.  */
26446
26447
26448 #define IdnToUnicode innocuous_IdnToUnicode
26449 #ifdef __STDC__
26450 # include <limits.h>
26451 #else
26452 # include <assert.h>
26453 #endif
26454 #undef IdnToUnicode
26455 #ifdef __cplusplus
26456 extern "C"
26457 #endif
26458 char IdnToUnicode ();
26459 #if defined __stub_IdnToUnicode || defined __stub___IdnToUnicode
26460 choke me
26461 #endif
26462
26463 int main (void)
26464 {
26465 return IdnToUnicode ();
26466  ;
26467  return 0;
26468 }
26469
26470 _ACEOF
26471 if ac_fn_c_try_link "$LINENO"; then :
26472
26473     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26474 $as_echo "yes" >&6; }
26475     tst_links_winidn="yes"
26476
26477 else
26478
26479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26480 $as_echo "no" >&6; }
26481     tst_links_winidn="no"
26482
26483 fi
26484 rm -f core conftest.err conftest.$ac_objext \
26485     conftest$ac_exeext conftest.$ac_ext
26486   #
26487   if test "$tst_links_winidn" = "yes"; then
26488
26489 $as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
26490
26491
26492 $as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
26493
26494     IDN_ENABLED=1
26495
26496     curl_idn_msg="enabled (Windows-native)"
26497   else
26498     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
26499 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
26500     CPPFLAGS="$clean_CPPFLAGS"
26501     LDFLAGS="$clean_LDFLAGS"
26502     LIBS="$clean_LIBS"
26503   fi
26504 fi
26505
26506
26507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
26508 $as_echo_n "checking whether to build with libidn2... " >&6; }
26509 OPT_IDN="default"
26510
26511 # Check whether --with-libidn2 was given.
26512 if test "${with_libidn2+set}" = set; then :
26513   withval=$with_libidn2; OPT_IDN=$withval
26514 fi
26515
26516 case "$OPT_IDN" in
26517   no)
26518         want_idn="no"
26519     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26520 $as_echo "no" >&6; }
26521     ;;
26522   default)
26523         want_idn="yes"
26524     want_idn_path="default"
26525     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
26526 $as_echo "(assumed) yes" >&6; }
26527     ;;
26528   yes)
26529         want_idn="yes"
26530     want_idn_path="default"
26531     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26532 $as_echo "yes" >&6; }
26533     ;;
26534   *)
26535         want_idn="yes"
26536     want_idn_path="$withval"
26537     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
26538 $as_echo "yes ($withval)" >&6; }
26539     ;;
26540 esac
26541
26542 if test "$want_idn" = "yes"; then
26543     clean_CPPFLAGS="$CPPFLAGS"
26544   clean_LDFLAGS="$LDFLAGS"
26545   clean_LIBS="$LIBS"
26546   PKGCONFIG="no"
26547   #
26548   if test "$want_idn_path" != "default"; then
26549         IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
26550
26551     if test -n "$PKG_CONFIG"; then
26552       PKGCONFIG="$PKG_CONFIG"
26553     else
26554       if test -n "$ac_tool_prefix"; then
26555   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26556 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26558 $as_echo_n "checking for $ac_word... " >&6; }
26559 if ${ac_cv_path_PKGCONFIG+:} false; then :
26560   $as_echo_n "(cached) " >&6
26561 else
26562   case $PKGCONFIG in
26563   [\\/]* | ?:[\\/]*)
26564   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26565   ;;
26566   *)
26567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26568 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26569 for as_dir in $as_dummy
26570 do
26571   IFS=$as_save_IFS
26572   test -z "$as_dir" && as_dir=.
26573     for ac_exec_ext in '' $ac_executable_extensions; do
26574   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26575     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26577     break 2
26578   fi
26579 done
26580   done
26581 IFS=$as_save_IFS
26582
26583   ;;
26584 esac
26585 fi
26586 PKGCONFIG=$ac_cv_path_PKGCONFIG
26587 if test -n "$PKGCONFIG"; then
26588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26589 $as_echo "$PKGCONFIG" >&6; }
26590 else
26591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26592 $as_echo "no" >&6; }
26593 fi
26594
26595
26596 fi
26597 if test -z "$ac_cv_path_PKGCONFIG"; then
26598   ac_pt_PKGCONFIG=$PKGCONFIG
26599   # Extract the first word of "pkg-config", so it can be a program name with args.
26600 set dummy pkg-config; ac_word=$2
26601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26602 $as_echo_n "checking for $ac_word... " >&6; }
26603 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26604   $as_echo_n "(cached) " >&6
26605 else
26606   case $ac_pt_PKGCONFIG in
26607   [\\/]* | ?:[\\/]*)
26608   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26609   ;;
26610   *)
26611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26612 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26613 for as_dir in $as_dummy
26614 do
26615   IFS=$as_save_IFS
26616   test -z "$as_dir" && as_dir=.
26617     for ac_exec_ext in '' $ac_executable_extensions; do
26618   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26619     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26621     break 2
26622   fi
26623 done
26624   done
26625 IFS=$as_save_IFS
26626
26627   ;;
26628 esac
26629 fi
26630 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26631 if test -n "$ac_pt_PKGCONFIG"; then
26632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26633 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26634 else
26635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26636 $as_echo "no" >&6; }
26637 fi
26638
26639   if test "x$ac_pt_PKGCONFIG" = x; then
26640     PKGCONFIG="no"
26641   else
26642     case $cross_compiling:$ac_tool_warned in
26643 yes:)
26644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26646 ac_tool_warned=yes ;;
26647 esac
26648     PKGCONFIG=$ac_pt_PKGCONFIG
26649   fi
26650 else
26651   PKGCONFIG="$ac_cv_path_PKGCONFIG"
26652 fi
26653
26654     fi
26655
26656     if test "x$PKGCONFIG" != "xno"; then
26657       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
26658 $as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
26659             itexists=`
26660     if test -n "$IDN_PCDIR"; then
26661       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26662       export PKG_CONFIG_LIBDIR
26663     fi
26664          $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
26665
26666       if test -z "$itexists"; then
26667                         PKGCONFIG="no"
26668         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26669 $as_echo "no" >&6; }
26670       else
26671         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26672 $as_echo "found" >&6; }
26673       fi
26674     fi
26675
26676     if test "$PKGCONFIG" != "no"; then
26677       IDN_LIBS=`
26678     if test -n "$IDN_PCDIR"; then
26679       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26680       export PKG_CONFIG_LIBDIR
26681     fi
26682          $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
26683       IDN_LDFLAGS=`
26684     if test -n "$IDN_PCDIR"; then
26685       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26686       export PKG_CONFIG_LIBDIR
26687     fi
26688          $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
26689       IDN_CPPFLAGS=`
26690     if test -n "$IDN_PCDIR"; then
26691       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26692       export PKG_CONFIG_LIBDIR
26693     fi
26694          $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
26695       IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
26696     else
26697             IDN_LIBS="-lidn2"
26698       IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
26699       IDN_CPPFLAGS="-I$want_idn_path/include"
26700       IDN_DIR="$want_idn_path/lib$libsuff"
26701     fi
26702   else
26703
26704     if test -n "$PKG_CONFIG"; then
26705       PKGCONFIG="$PKG_CONFIG"
26706     else
26707       if test -n "$ac_tool_prefix"; then
26708   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26709 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26711 $as_echo_n "checking for $ac_word... " >&6; }
26712 if ${ac_cv_path_PKGCONFIG+:} false; then :
26713   $as_echo_n "(cached) " >&6
26714 else
26715   case $PKGCONFIG in
26716   [\\/]* | ?:[\\/]*)
26717   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26718   ;;
26719   *)
26720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26721 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26722 for as_dir in $as_dummy
26723 do
26724   IFS=$as_save_IFS
26725   test -z "$as_dir" && as_dir=.
26726     for ac_exec_ext in '' $ac_executable_extensions; do
26727   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26728     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26730     break 2
26731   fi
26732 done
26733   done
26734 IFS=$as_save_IFS
26735
26736   ;;
26737 esac
26738 fi
26739 PKGCONFIG=$ac_cv_path_PKGCONFIG
26740 if test -n "$PKGCONFIG"; then
26741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26742 $as_echo "$PKGCONFIG" >&6; }
26743 else
26744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26745 $as_echo "no" >&6; }
26746 fi
26747
26748
26749 fi
26750 if test -z "$ac_cv_path_PKGCONFIG"; then
26751   ac_pt_PKGCONFIG=$PKGCONFIG
26752   # Extract the first word of "pkg-config", so it can be a program name with args.
26753 set dummy pkg-config; ac_word=$2
26754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26755 $as_echo_n "checking for $ac_word... " >&6; }
26756 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26757   $as_echo_n "(cached) " >&6
26758 else
26759   case $ac_pt_PKGCONFIG in
26760   [\\/]* | ?:[\\/]*)
26761   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26762   ;;
26763   *)
26764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26765 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26766 for as_dir in $as_dummy
26767 do
26768   IFS=$as_save_IFS
26769   test -z "$as_dir" && as_dir=.
26770     for ac_exec_ext in '' $ac_executable_extensions; do
26771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26772     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26774     break 2
26775   fi
26776 done
26777   done
26778 IFS=$as_save_IFS
26779
26780   ;;
26781 esac
26782 fi
26783 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26784 if test -n "$ac_pt_PKGCONFIG"; then
26785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26786 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26787 else
26788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26789 $as_echo "no" >&6; }
26790 fi
26791
26792   if test "x$ac_pt_PKGCONFIG" = x; then
26793     PKGCONFIG="no"
26794   else
26795     case $cross_compiling:$ac_tool_warned in
26796 yes:)
26797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26799 ac_tool_warned=yes ;;
26800 esac
26801     PKGCONFIG=$ac_pt_PKGCONFIG
26802   fi
26803 else
26804   PKGCONFIG="$ac_cv_path_PKGCONFIG"
26805 fi
26806
26807     fi
26808
26809     if test "x$PKGCONFIG" != "xno"; then
26810       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
26811 $as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
26812             itexists=`
26813     if test -n ""; then
26814       PKG_CONFIG_LIBDIR=""
26815       export PKG_CONFIG_LIBDIR
26816     fi
26817          $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
26818
26819       if test -z "$itexists"; then
26820                         PKGCONFIG="no"
26821         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26822 $as_echo "no" >&6; }
26823       else
26824         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26825 $as_echo "found" >&6; }
26826       fi
26827     fi
26828
26829     if test "$PKGCONFIG" != "no"; then
26830       IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
26831       IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
26832       IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
26833       IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
26834     else
26835             IDN_LIBS="-lidn2"
26836     fi
26837   fi
26838   #
26839   if test "$PKGCONFIG" != "no"; then
26840     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
26841 $as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
26842     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
26843 $as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
26844     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
26845 $as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
26846     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
26847 $as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
26848   else
26849     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
26850 $as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
26851     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
26852 $as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
26853     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
26854 $as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
26855     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
26856 $as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
26857   fi
26858   #
26859   CPPFLAGS="$IDN_CPPFLAGS $CPPFLAGS"
26860   LDFLAGS="$IDN_LDFLAGS $LDFLAGS"
26861   LIBS="$IDN_LIBS $LIBS"
26862   #
26863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
26864 $as_echo_n "checking if idn2_lookup_ul can be linked... " >&6; }
26865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26866 /* end confdefs.h.  */
26867
26868
26869 #define idn2_lookup_ul innocuous_idn2_lookup_ul
26870 #ifdef __STDC__
26871 # include <limits.h>
26872 #else
26873 # include <assert.h>
26874 #endif
26875 #undef idn2_lookup_ul
26876 #ifdef __cplusplus
26877 extern "C"
26878 #endif
26879 char idn2_lookup_ul ();
26880 #if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
26881 choke me
26882 #endif
26883
26884 int main (void)
26885 {
26886 return idn2_lookup_ul ();
26887  ;
26888  return 0;
26889 }
26890
26891 _ACEOF
26892 if ac_fn_c_try_link "$LINENO"; then :
26893
26894     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26895 $as_echo "yes" >&6; }
26896     tst_links_libidn="yes"
26897
26898 else
26899
26900     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26901 $as_echo "no" >&6; }
26902     tst_links_libidn="no"
26903
26904 fi
26905 rm -f core conftest.err conftest.$ac_objext \
26906     conftest$ac_exeext conftest.$ac_ext
26907   #
26908   for ac_header in idn2.h
26909 do :
26910   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26911 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26912 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26913   cat >>confdefs.h <<_ACEOF
26914 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26915 _ACEOF
26916
26917 fi
26918
26919 done
26920
26921
26922   if test "$tst_links_libidn" = "yes"; then
26923
26924 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
26925
26926
26927     IDN_ENABLED=1
26928
26929     curl_idn_msg="enabled (libidn2)"
26930     if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
26931       LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$IDN_DIR"
26932       export LD_LIBRARY_PATH
26933       { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to LD_LIBRARY_PATH" >&5
26934 $as_echo "$as_me: Added $IDN_DIR to LD_LIBRARY_PATH" >&6;}
26935     fi
26936   else
26937     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
26938 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
26939     CPPFLAGS="$clean_CPPFLAGS"
26940     LDFLAGS="$clean_LDFLAGS"
26941     LIBS="$clean_LIBS"
26942   fi
26943 fi
26944
26945
26946
26947
26948
26949 OPT_H2="yes"
26950
26951 # Check whether --with-nghttp2 was given.
26952 if test "${with_nghttp2+set}" = set; then :
26953   withval=$with_nghttp2; OPT_H2=$withval
26954 fi
26955
26956 case "$OPT_H2" in
26957   no)
26958         want_h2="no"
26959     ;;
26960   yes)
26961         want_h2="default"
26962     want_h2_path=""
26963     ;;
26964   *)
26965         want_h2="yes"
26966     want_h2_path="$withval/lib/pkgconfig"
26967     ;;
26968 esac
26969
26970 curl_h2_msg="disabled (--with-nghttp2)"
26971 if test X"$want_h2" != Xno; then
26972     CLEANLDFLAGS="$LDFLAGS"
26973   CLEANCPPFLAGS="$CPPFLAGS"
26974   CLEANLIBS="$LIBS"
26975
26976
26977     if test -n "$PKG_CONFIG"; then
26978       PKGCONFIG="$PKG_CONFIG"
26979     else
26980       if test -n "$ac_tool_prefix"; then
26981   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26982 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26984 $as_echo_n "checking for $ac_word... " >&6; }
26985 if ${ac_cv_path_PKGCONFIG+:} false; then :
26986   $as_echo_n "(cached) " >&6
26987 else
26988   case $PKGCONFIG in
26989   [\\/]* | ?:[\\/]*)
26990   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26991   ;;
26992   *)
26993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26994 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26995 for as_dir in $as_dummy
26996 do
26997   IFS=$as_save_IFS
26998   test -z "$as_dir" && as_dir=.
26999     for ac_exec_ext in '' $ac_executable_extensions; do
27000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27001     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27003     break 2
27004   fi
27005 done
27006   done
27007 IFS=$as_save_IFS
27008
27009   ;;
27010 esac
27011 fi
27012 PKGCONFIG=$ac_cv_path_PKGCONFIG
27013 if test -n "$PKGCONFIG"; then
27014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27015 $as_echo "$PKGCONFIG" >&6; }
27016 else
27017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27018 $as_echo "no" >&6; }
27019 fi
27020
27021
27022 fi
27023 if test -z "$ac_cv_path_PKGCONFIG"; then
27024   ac_pt_PKGCONFIG=$PKGCONFIG
27025   # Extract the first word of "pkg-config", so it can be a program name with args.
27026 set dummy pkg-config; ac_word=$2
27027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27028 $as_echo_n "checking for $ac_word... " >&6; }
27029 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27030   $as_echo_n "(cached) " >&6
27031 else
27032   case $ac_pt_PKGCONFIG in
27033   [\\/]* | ?:[\\/]*)
27034   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27035   ;;
27036   *)
27037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27038 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27039 for as_dir in $as_dummy
27040 do
27041   IFS=$as_save_IFS
27042   test -z "$as_dir" && as_dir=.
27043     for ac_exec_ext in '' $ac_executable_extensions; do
27044   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27045     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27047     break 2
27048   fi
27049 done
27050   done
27051 IFS=$as_save_IFS
27052
27053   ;;
27054 esac
27055 fi
27056 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27057 if test -n "$ac_pt_PKGCONFIG"; then
27058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27059 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27060 else
27061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27062 $as_echo "no" >&6; }
27063 fi
27064
27065   if test "x$ac_pt_PKGCONFIG" = x; then
27066     PKGCONFIG="no"
27067   else
27068     case $cross_compiling:$ac_tool_warned in
27069 yes:)
27070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27072 ac_tool_warned=yes ;;
27073 esac
27074     PKGCONFIG=$ac_pt_PKGCONFIG
27075   fi
27076 else
27077   PKGCONFIG="$ac_cv_path_PKGCONFIG"
27078 fi
27079
27080     fi
27081
27082     if test "x$PKGCONFIG" != "xno"; then
27083       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
27084 $as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
27085             itexists=`
27086     if test -n "$want_h2_path"; then
27087       PKG_CONFIG_LIBDIR="$want_h2_path"
27088       export PKG_CONFIG_LIBDIR
27089     fi
27090          $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
27091
27092       if test -z "$itexists"; then
27093                         PKGCONFIG="no"
27094         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27095 $as_echo "no" >&6; }
27096       else
27097         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27098 $as_echo "found" >&6; }
27099       fi
27100     fi
27101
27102
27103   if test "$PKGCONFIG" != "no" ; then
27104     LIB_H2=`
27105     if test -n "$want_h2_path"; then
27106       PKG_CONFIG_LIBDIR="$want_h2_path"
27107       export PKG_CONFIG_LIBDIR
27108     fi
27109
27110       $PKGCONFIG --libs-only-l libnghttp2`
27111     { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
27112 $as_echo "$as_me: -l is $LIB_H2" >&6;}
27113
27114     CPP_H2=`
27115     if test -n "$want_h2_path"; then
27116       PKG_CONFIG_LIBDIR="$want_h2_path"
27117       export PKG_CONFIG_LIBDIR
27118     fi
27119        $PKGCONFIG --cflags-only-I libnghttp2`
27120     { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
27121 $as_echo "$as_me: -I is $CPP_H2" >&6;}
27122
27123     LD_H2=`
27124     if test -n "$want_h2_path"; then
27125       PKG_CONFIG_LIBDIR="$want_h2_path"
27126       export PKG_CONFIG_LIBDIR
27127     fi
27128
27129       $PKGCONFIG --libs-only-L libnghttp2`
27130     { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
27131 $as_echo "$as_me: -L is $LD_H2" >&6;}
27132
27133     LDFLAGS="$LDFLAGS $LD_H2"
27134     CPPFLAGS="$CPPFLAGS $CPP_H2"
27135     LIBS="$LIB_H2 $LIBS"
27136
27137     # use nghttp2_option_set_no_recv_client_magic to require nghttp2
27138     # >= 1.0.0
27139     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5
27140 $as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; }
27141 if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then :
27142   $as_echo_n "(cached) " >&6
27143 else
27144   ac_check_lib_save_LIBS=$LIBS
27145 LIBS="-lnghttp2  $LIBS"
27146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27147 /* end confdefs.h.  */
27148
27149
27150 #ifdef __cplusplus
27151 extern "C"
27152 #endif
27153 char nghttp2_option_set_no_recv_client_magic ();
27154 int main (void)
27155 {
27156 return nghttp2_option_set_no_recv_client_magic ();
27157  ;
27158  return 0;
27159 }
27160 _ACEOF
27161 if ac_fn_c_try_link "$LINENO"; then :
27162   ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes
27163 else
27164   ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no
27165 fi
27166 rm -f core conftest.err conftest.$ac_objext \
27167     conftest$ac_exeext conftest.$ac_ext
27168 LIBS=$ac_check_lib_save_LIBS
27169 fi
27170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5
27171 $as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; }
27172 if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then :
27173
27174        for ac_header in nghttp2/nghttp2.h
27175 do :
27176   ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
27177 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
27178   cat >>confdefs.h <<_ACEOF
27179 #define HAVE_NGHTTP2_NGHTTP2_H 1
27180 _ACEOF
27181  curl_h2_msg="enabled (nghttp2)"
27182           NGHTTP2_ENABLED=1
27183
27184 $as_echo "#define USE_NGHTTP2 1" >>confdefs.h
27185
27186           USE_NGHTTP2=1
27187
27188
27189 fi
27190
27191 done
27192
27193
27194 else
27195           LDFLAGS=$CLEANLDFLAGS
27196         CPPFLAGS=$CLEANCPPFLAGS
27197         LIBS=$CLEANLIBS
27198
27199 fi
27200
27201
27202   else
27203         if test X"$want_h2" != Xdefault; then
27204                   as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
27205     fi
27206   fi
27207
27208 fi
27209
27210
27211 OPT_ZSH_FPATH=default
27212
27213 # Check whether --with-zsh-functions-dir was given.
27214 if test "${with_zsh_functions_dir+set}" = set; then :
27215   withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
27216 fi
27217
27218 case "$OPT_ZSH_FPATH" in
27219   no)
27220         ;;
27221   default|yes)
27222         ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
27223
27224     ;;
27225   *)
27226         ZSH_FUNCTIONS_DIR="$withval"
27227
27228     ;;
27229 esac
27230
27231
27232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
27233 $as_echo_n "checking for ANSI C header files... " >&6; }
27234 if ${ac_cv_header_stdc+:} false; then :
27235   $as_echo_n "(cached) " >&6
27236 else
27237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27238 /* end confdefs.h.  */
27239 #include <stdlib.h>
27240 #include <stdarg.h>
27241 #include <string.h>
27242 #include <float.h>
27243
27244 int main (void)
27245 {
27246
27247  ;
27248  return 0;
27249 }
27250 _ACEOF
27251 if ac_fn_c_try_compile "$LINENO"; then :
27252   ac_cv_header_stdc=yes
27253 else
27254   ac_cv_header_stdc=no
27255 fi
27256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27257
27258 if test $ac_cv_header_stdc = yes; then
27259   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27261 /* end confdefs.h.  */
27262 #include <string.h>
27263
27264 _ACEOF
27265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27266   $EGREP "memchr" >/dev/null 2>&1; then :
27267
27268 else
27269   ac_cv_header_stdc=no
27270 fi
27271 rm -f conftest*
27272
27273 fi
27274
27275 if test $ac_cv_header_stdc = yes; then
27276   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27278 /* end confdefs.h.  */
27279 #include <stdlib.h>
27280
27281 _ACEOF
27282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27283   $EGREP "free" >/dev/null 2>&1; then :
27284
27285 else
27286   ac_cv_header_stdc=no
27287 fi
27288 rm -f conftest*
27289
27290 fi
27291
27292 if test $ac_cv_header_stdc = yes; then
27293   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27294   if test "$cross_compiling" = yes; then :
27295   :
27296 else
27297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27298 /* end confdefs.h.  */
27299 #include <ctype.h>
27300 #include <stdlib.h>
27301 #if ((' ' & 0x0FF) == 0x020)
27302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27304 #else
27305 # define ISLOWER(c) \
27306                    (('a' <= (c) && (c) <= 'i') \
27307                      || ('j' <= (c) && (c) <= 'r') \
27308                      || ('s' <= (c) && (c) <= 'z'))
27309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27310 #endif
27311
27312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27313 int
27314 main ()
27315 {
27316   int i;
27317   for (i = 0; i < 256; i++)
27318     if (XOR (islower (i), ISLOWER (i))
27319         || toupper (i) != TOUPPER (i))
27320       return 2;
27321   return 0;
27322 }
27323 _ACEOF
27324 if ac_fn_c_try_run "$LINENO"; then :
27325
27326 else
27327   ac_cv_header_stdc=no
27328 fi
27329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27330   conftest.$ac_objext conftest.beam conftest.$ac_ext
27331 fi
27332
27333 fi
27334 fi
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
27336 $as_echo "$ac_cv_header_stdc" >&6; }
27337 if test $ac_cv_header_stdc = yes; then
27338
27339 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
27340
27341 fi
27342
27343
27344
27345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
27346 $as_echo_n "checking for malloc.h... " >&6; }
27347 if ${curl_cv_header_malloc_h+:} false; then :
27348   $as_echo_n "(cached) " >&6
27349 else
27350
27351     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27352 /* end confdefs.h.  */
27353
27354
27355 #include <malloc.h>
27356
27357 int main (void)
27358 {
27359
27360         void *p = malloc(10);
27361         void *q = calloc(10,10);
27362         free(p);
27363         free(q);
27364
27365  ;
27366  return 0;
27367 }
27368
27369 _ACEOF
27370 if ac_fn_c_try_compile "$LINENO"; then :
27371
27372       curl_cv_header_malloc_h="yes"
27373
27374 else
27375
27376       curl_cv_header_malloc_h="no"
27377
27378 fi
27379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27380
27381 fi
27382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
27383 $as_echo "$curl_cv_header_malloc_h" >&6; }
27384   if test "$curl_cv_header_malloc_h" = "yes"; then
27385
27386 cat >>confdefs.h <<_ACEOF
27387 #define HAVE_MALLOC_H 1
27388 _ACEOF
27389
27390     #
27391     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27392 /* end confdefs.h.  */
27393
27394
27395 #include <stdlib.h>
27396
27397 int main (void)
27398 {
27399
27400         void *p = malloc(10);
27401         void *q = calloc(10,10);
27402         free(p);
27403         free(q);
27404
27405  ;
27406  return 0;
27407 }
27408
27409 _ACEOF
27410 if ac_fn_c_try_compile "$LINENO"; then :
27411
27412       curl_cv_need_header_malloc_h="no"
27413
27414 else
27415
27416       curl_cv_need_header_malloc_h="yes"
27417
27418 fi
27419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27420     #
27421     case "$curl_cv_need_header_malloc_h" in
27422       yes)
27423
27424 cat >>confdefs.h <<_ACEOF
27425 #define NEED_MALLOC_H 1
27426 _ACEOF
27427
27428         ;;
27429     esac
27430   fi
27431
27432
27433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
27434 $as_echo_n "checking for memory.h... " >&6; }
27435 if ${curl_cv_header_memory_h+:} false; then :
27436   $as_echo_n "(cached) " >&6
27437 else
27438
27439     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27440 /* end confdefs.h.  */
27441
27442
27443 #include <memory.h>
27444
27445 int main (void)
27446 {
27447
27448         void *p = malloc(10);
27449         void *q = calloc(10,10);
27450         free(p);
27451         free(q);
27452
27453  ;
27454  return 0;
27455 }
27456
27457 _ACEOF
27458 if ac_fn_c_try_compile "$LINENO"; then :
27459
27460       curl_cv_header_memory_h="yes"
27461
27462 else
27463
27464       curl_cv_header_memory_h="no"
27465
27466 fi
27467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27468
27469 fi
27470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
27471 $as_echo "$curl_cv_header_memory_h" >&6; }
27472   if test "$curl_cv_header_memory_h" = "yes"; then
27473
27474 cat >>confdefs.h <<_ACEOF
27475 #define HAVE_MEMORY_H 1
27476 _ACEOF
27477
27478     #
27479     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27480 /* end confdefs.h.  */
27481
27482
27483 #include <stdlib.h>
27484
27485 int main (void)
27486 {
27487
27488         void *p = malloc(10);
27489         void *q = calloc(10,10);
27490         free(p);
27491         free(q);
27492
27493  ;
27494  return 0;
27495 }
27496
27497 _ACEOF
27498 if ac_fn_c_try_compile "$LINENO"; then :
27499
27500       curl_cv_need_header_memory_h="no"
27501
27502 else
27503
27504       curl_cv_need_header_memory_h="yes"
27505
27506 fi
27507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27508     #
27509     case "$curl_cv_need_header_memory_h" in
27510       yes)
27511
27512 cat >>confdefs.h <<_ACEOF
27513 #define NEED_MEMORY_H 1
27514 _ACEOF
27515
27516         ;;
27517     esac
27518   fi
27519
27520
27521 for ac_header in sys/types.h \
27522         sys/time.h \
27523         sys/select.h \
27524         sys/socket.h \
27525         sys/ioctl.h \
27526         sys/uio.h \
27527         assert.h \
27528         unistd.h \
27529         stdlib.h \
27530         limits.h \
27531         arpa/inet.h \
27532         net/if.h \
27533         netinet/in.h \
27534         sys/un.h \
27535         netinet/tcp.h \
27536         netdb.h \
27537         sys/sockio.h \
27538         sys/stat.h \
27539         sys/param.h \
27540         termios.h \
27541         termio.h \
27542         sgtty.h \
27543         fcntl.h \
27544         alloca.h \
27545         time.h \
27546         io.h \
27547         pwd.h \
27548         utime.h \
27549         sys/utime.h \
27550         sys/poll.h \
27551         poll.h \
27552         socket.h \
27553         sys/resource.h \
27554         libgen.h \
27555         locale.h \
27556         errno.h \
27557         stdbool.h \
27558         arpa/tftp.h \
27559         sys/filio.h \
27560         sys/wait.h \
27561         setjmp.h
27562 do :
27563   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27564 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
27565 #ifdef HAVE_SYS_TYPES_H
27566 #include <sys/types.h>
27567 #endif
27568 #ifdef HAVE_SYS_TIME_H
27569 #include <sys/time.h>
27570 #endif
27571 #ifdef HAVE_SYS_SELECT_H
27572 #include <sys/select.h>
27573 #endif
27574 #ifdef HAVE_SYS_SOCKET_H
27575 #include <sys/socket.h>
27576 #endif
27577 #ifdef HAVE_NETINET_IN_H
27578 #include <netinet/in.h>
27579 #endif
27580 #ifdef HAVE_SYS_UN_H
27581 #include <sys/un.h>
27582 #endif
27583
27584
27585 "
27586 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27587   cat >>confdefs.h <<_ACEOF
27588 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27589 _ACEOF
27590
27591 fi
27592
27593 done
27594
27595
27596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27597 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27598 if ${ac_cv_c_const+:} false; then :
27599   $as_echo_n "(cached) " >&6
27600 else
27601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27602 /* end confdefs.h.  */
27603
27604 int main (void)
27605 {
27606
27607 #ifndef __cplusplus
27608   /* Ultrix mips cc rejects this sort of thing.  */
27609   typedef int charset[2];
27610   const charset cs = { 0, 0 };
27611   /* SunOS 4.1.1 cc rejects this.  */
27612   char const *const *pcpcc;
27613   char **ppc;
27614   /* NEC SVR4.0.2 mips cc rejects this.  */
27615   struct point {int x, y;};
27616   static struct point const zero = {0,0};
27617   /* AIX XL C 1.02.0.0 rejects this.
27618      It does not let you subtract one const X* pointer from another in
27619      an arm of an if-expression whose if-part is not a constant
27620      expression */
27621   const char *g = "string";
27622   pcpcc = &g + (g ? g-g : 0);
27623   /* HPUX 7.0 cc rejects these. */
27624   ++pcpcc;
27625   ppc = (char**) pcpcc;
27626   pcpcc = (char const *const *) ppc;
27627   { /* SCO 3.2v4 cc rejects this sort of thing.  */
27628     char tx;
27629     char *t = &tx;
27630     char const *s = 0 ? (char *) 0 : (char const *) 0;
27631
27632     *t++ = 0;
27633     if (s) return 0;
27634   }
27635   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27636     int x[] = {25, 17};
27637     const int *foo = &x[0];
27638     ++foo;
27639   }
27640   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27641     typedef const int *iptr;
27642     iptr p = 0;
27643     ++p;
27644   }
27645   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27646        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27647     struct s { int j; const int *ap[3]; } bx;
27648     struct s *b = &bx; b->j = 5;
27649   }
27650   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27651     const int foo = 10;
27652     if (!foo) return 0;
27653   }
27654   return !cs[0] && !zero.x;
27655 #endif
27656
27657  ;
27658  return 0;
27659 }
27660 _ACEOF
27661 if ac_fn_c_try_compile "$LINENO"; then :
27662   ac_cv_c_const=yes
27663 else
27664   ac_cv_c_const=no
27665 fi
27666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27667 fi
27668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27669 $as_echo "$ac_cv_c_const" >&6; }
27670 if test $ac_cv_c_const = no; then
27671
27672 $as_echo "#define const /**/" >>confdefs.h
27673
27674 fi
27675
27676
27677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
27678 $as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
27679 if ${curl_cv_variadic_macros_c99+:} false; then :
27680   $as_echo_n "(cached) " >&6
27681 else
27682
27683     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27684 /* end confdefs.h.  */
27685
27686
27687 #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
27688 #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
27689         int fun3(int arg1, int arg2, int arg3);
27690         int fun2(int arg1, int arg2);
27691         int fun3(int arg1, int arg2, int arg3)
27692         { return arg1 + arg2 + arg3; }
27693         int fun2(int arg1, int arg2)
27694         { return arg1 + arg2; }
27695
27696 int main (void)
27697 {
27698
27699         int res3 = c99_vmacro3(1, 2, 3);
27700         int res2 = c99_vmacro2(1, 2);
27701
27702  ;
27703  return 0;
27704 }
27705
27706 _ACEOF
27707 if ac_fn_c_try_compile "$LINENO"; then :
27708
27709       curl_cv_variadic_macros_c99="yes"
27710
27711 else
27712
27713       curl_cv_variadic_macros_c99="no"
27714
27715 fi
27716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27717
27718 fi
27719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
27720 $as_echo "$curl_cv_variadic_macros_c99" >&6; }
27721   case "$curl_cv_variadic_macros_c99" in
27722     yes)
27723
27724 cat >>confdefs.h <<_ACEOF
27725 #define HAVE_VARIADIC_MACROS_C99 1
27726 _ACEOF
27727
27728       ;;
27729   esac
27730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
27731 $as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
27732 if ${curl_cv_variadic_macros_gcc+:} false; then :
27733   $as_echo_n "(cached) " >&6
27734 else
27735
27736     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27737 /* end confdefs.h.  */
27738
27739
27740 #define gcc_vmacro3(first, args...) fun3(first, args)
27741 #define gcc_vmacro2(first, args...) fun2(first, args)
27742         int fun3(int arg1, int arg2, int arg3);
27743         int fun2(int arg1, int arg2);
27744         int fun3(int arg1, int arg2, int arg3)
27745         { return arg1 + arg2 + arg3; }
27746         int fun2(int arg1, int arg2)
27747         { return arg1 + arg2; }
27748
27749 int main (void)
27750 {
27751
27752         int res3 = gcc_vmacro3(1, 2, 3);
27753         int res2 = gcc_vmacro2(1, 2);
27754
27755  ;
27756  return 0;
27757 }
27758
27759 _ACEOF
27760 if ac_fn_c_try_compile "$LINENO"; then :
27761
27762       curl_cv_variadic_macros_gcc="yes"
27763
27764 else
27765
27766       curl_cv_variadic_macros_gcc="no"
27767
27768 fi
27769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27770
27771 fi
27772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
27773 $as_echo "$curl_cv_variadic_macros_gcc" >&6; }
27774   case "$curl_cv_variadic_macros_gcc" in
27775     yes)
27776
27777 cat >>confdefs.h <<_ACEOF
27778 #define HAVE_VARIADIC_MACROS_GCC 1
27779 _ACEOF
27780
27781       ;;
27782   esac
27783
27784 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27785 if test "x$ac_cv_type_size_t" = xyes; then :
27786
27787 else
27788
27789 cat >>confdefs.h <<_ACEOF
27790 #define size_t unsigned int
27791 _ACEOF
27792
27793 fi
27794
27795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
27796 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
27797 if ${ac_cv_header_time+:} false; then :
27798   $as_echo_n "(cached) " >&6
27799 else
27800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27801 /* end confdefs.h.  */
27802 #include <sys/types.h>
27803 #include <sys/time.h>
27804 #include <time.h>
27805
27806 int main (void)
27807 {
27808 if ((struct tm *) 0)
27809 return 0;
27810  ;
27811  return 0;
27812 }
27813 _ACEOF
27814 if ac_fn_c_try_compile "$LINENO"; then :
27815   ac_cv_header_time=yes
27816 else
27817   ac_cv_header_time=no
27818 fi
27819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27820 fi
27821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
27822 $as_echo "$ac_cv_header_time" >&6; }
27823 if test $ac_cv_header_time = yes; then
27824
27825 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
27826
27827 fi
27828
27829
27830         for ac_header in sys/types.h sys/time.h time.h sys/socket.h
27831 do :
27832   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27833 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27834 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27835   cat >>confdefs.h <<_ACEOF
27836 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27837 _ACEOF
27838
27839 fi
27840
27841 done
27842
27843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
27844 $as_echo_n "checking for struct timeval... " >&6; }
27845 if ${curl_cv_struct_timeval+:} false; then :
27846   $as_echo_n "(cached) " >&6
27847 else
27848
27849     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27850 /* end confdefs.h.  */
27851
27852
27853 #undef inline
27854 #ifdef HAVE_WINDOWS_H
27855 #ifndef WIN32_LEAN_AND_MEAN
27856 #define WIN32_LEAN_AND_MEAN
27857 #endif
27858 #include <windows.h>
27859 #ifdef HAVE_WINSOCK2_H
27860 #include <winsock2.h>
27861 #else
27862 #ifdef HAVE_WINSOCK_H
27863 #include <winsock.h>
27864 #endif
27865 #endif
27866 #endif
27867 #ifdef HAVE_SYS_TYPES_H
27868 #include <sys/types.h>
27869 #endif
27870 #ifdef HAVE_SYS_TIME_H
27871 #include <sys/time.h>
27872 #ifdef TIME_WITH_SYS_TIME
27873 #include <time.h>
27874 #endif
27875 #else
27876 #ifdef HAVE_TIME_H
27877 #include <time.h>
27878 #endif
27879 #endif
27880 #ifdef HAVE_SYS_SOCKET_H
27881 #include <sys/socket.h>
27882 #endif
27883
27884 int main (void)
27885 {
27886
27887         struct timeval ts;
27888         ts.tv_sec  = 0;
27889         ts.tv_usec = 0;
27890
27891  ;
27892  return 0;
27893 }
27894
27895 _ACEOF
27896 if ac_fn_c_try_compile "$LINENO"; then :
27897
27898       curl_cv_struct_timeval="yes"
27899
27900 else
27901
27902       curl_cv_struct_timeval="no"
27903
27904 fi
27905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27906
27907 fi
27908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
27909 $as_echo "$curl_cv_struct_timeval" >&6; }
27910   case "$curl_cv_struct_timeval" in
27911     yes)
27912
27913 cat >>confdefs.h <<_ACEOF
27914 #define HAVE_STRUCT_TIMEVAL 1
27915 _ACEOF
27916
27917       ;;
27918   esac
27919
27920
27921
27922     if test "x$cross_compiling" != xyes; then
27923
27924             { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
27925 $as_echo_n "checking run-time libs availability... " >&6; }
27926     if test "$cross_compiling" = yes; then :
27927   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27929 as_fn_error $? "cannot run test program while cross compiling
27930 See \`config.log' for more details" "$LINENO" 5; }
27931 else
27932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27933 /* end confdefs.h.  */
27934
27935 main()
27936 {
27937   return 0;
27938 }
27939
27940 _ACEOF
27941 if ac_fn_c_try_run "$LINENO"; then :
27942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
27943 $as_echo "fine" >&6; }
27944 else
27945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
27946 $as_echo "failed" >&6; }
27947     as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
27948
27949 fi
27950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27951   conftest.$ac_objext conftest.beam conftest.$ac_ext
27952 fi
27953
27954
27955       fi
27956
27957
27958 # The cast to long int works around a bug in the HP C Compiler
27959 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27960 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27961 # This bug is HP SR number 8606223364.
27962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
27963 $as_echo_n "checking size of size_t... " >&6; }
27964 if ${ac_cv_sizeof_size_t+:} false; then :
27965   $as_echo_n "(cached) " >&6
27966 else
27967   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
27968
27969 else
27970   if test "$ac_cv_type_size_t" = yes; then
27971      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27973 as_fn_error 77 "cannot compute sizeof (size_t)
27974 See \`config.log' for more details" "$LINENO" 5; }
27975    else
27976      ac_cv_sizeof_size_t=0
27977    fi
27978 fi
27979
27980 fi
27981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
27982 $as_echo "$ac_cv_sizeof_size_t" >&6; }
27983
27984
27985
27986 cat >>confdefs.h <<_ACEOF
27987 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
27988 _ACEOF
27989
27990
27991 # The cast to long int works around a bug in the HP C Compiler
27992 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27993 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27994 # This bug is HP SR number 8606223364.
27995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
27996 $as_echo_n "checking size of long... " >&6; }
27997 if ${ac_cv_sizeof_long+:} false; then :
27998   $as_echo_n "(cached) " >&6
27999 else
28000   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
28001
28002 else
28003   if test "$ac_cv_type_long" = yes; then
28004      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28006 as_fn_error 77 "cannot compute sizeof (long)
28007 See \`config.log' for more details" "$LINENO" 5; }
28008    else
28009      ac_cv_sizeof_long=0
28010    fi
28011 fi
28012
28013 fi
28014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
28015 $as_echo "$ac_cv_sizeof_long" >&6; }
28016
28017
28018
28019 cat >>confdefs.h <<_ACEOF
28020 #define SIZEOF_LONG $ac_cv_sizeof_long
28021 _ACEOF
28022
28023
28024 # The cast to long int works around a bug in the HP C Compiler
28025 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28026 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28027 # This bug is HP SR number 8606223364.
28028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
28029 $as_echo_n "checking size of int... " >&6; }
28030 if ${ac_cv_sizeof_int+:} false; then :
28031   $as_echo_n "(cached) " >&6
28032 else
28033   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
28034
28035 else
28036   if test "$ac_cv_type_int" = yes; then
28037      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28039 as_fn_error 77 "cannot compute sizeof (int)
28040 See \`config.log' for more details" "$LINENO" 5; }
28041    else
28042      ac_cv_sizeof_int=0
28043    fi
28044 fi
28045
28046 fi
28047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
28048 $as_echo "$ac_cv_sizeof_int" >&6; }
28049
28050
28051
28052 cat >>confdefs.h <<_ACEOF
28053 #define SIZEOF_INT $ac_cv_sizeof_int
28054 _ACEOF
28055
28056
28057 # The cast to long int works around a bug in the HP C Compiler
28058 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28059 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28060 # This bug is HP SR number 8606223364.
28061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
28062 $as_echo_n "checking size of short... " >&6; }
28063 if ${ac_cv_sizeof_short+:} false; then :
28064   $as_echo_n "(cached) " >&6
28065 else
28066   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
28067
28068 else
28069   if test "$ac_cv_type_short" = yes; then
28070      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28072 as_fn_error 77 "cannot compute sizeof (short)
28073 See \`config.log' for more details" "$LINENO" 5; }
28074    else
28075      ac_cv_sizeof_short=0
28076    fi
28077 fi
28078
28079 fi
28080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
28081 $as_echo "$ac_cv_sizeof_short" >&6; }
28082
28083
28084
28085 cat >>confdefs.h <<_ACEOF
28086 #define SIZEOF_SHORT $ac_cv_sizeof_short
28087 _ACEOF
28088
28089
28090
28091   if test -z "$ac_cv_sizeof_long" ||
28092     test "$ac_cv_sizeof_long" -eq "0"; then
28093     as_fn_error $? "cannot find out size of long." "$LINENO" 5
28094   fi
28095
28096 cat >>confdefs.h <<_EOF
28097 #define CURL_SIZEOF_LONG $ac_cv_sizeof_long
28098 _EOF
28099
28100
28101 # The cast to long int works around a bug in the HP C Compiler
28102 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28103 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28104 # This bug is HP SR number 8606223364.
28105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
28106 $as_echo_n "checking size of time_t... " >&6; }
28107 if ${ac_cv_sizeof_time_t+:} false; then :
28108   $as_echo_n "(cached) " >&6
28109 else
28110   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
28111
28112 else
28113   if test "$ac_cv_type_time_t" = yes; then
28114      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28116 as_fn_error 77 "cannot compute sizeof (time_t)
28117 See \`config.log' for more details" "$LINENO" 5; }
28118    else
28119      ac_cv_sizeof_time_t=0
28120    fi
28121 fi
28122
28123 fi
28124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
28125 $as_echo "$ac_cv_sizeof_time_t" >&6; }
28126
28127
28128
28129 cat >>confdefs.h <<_ACEOF
28130 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
28131 _ACEOF
28132
28133
28134 # The cast to long int works around a bug in the HP C Compiler
28135 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28136 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28137 # This bug is HP SR number 8606223364.
28138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
28139 $as_echo_n "checking size of off_t... " >&6; }
28140 if ${ac_cv_sizeof_off_t+:} false; then :
28141   $as_echo_n "(cached) " >&6
28142 else
28143   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
28144
28145 else
28146   if test "$ac_cv_type_off_t" = yes; then
28147      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28149 as_fn_error 77 "cannot compute sizeof (off_t)
28150 See \`config.log' for more details" "$LINENO" 5; }
28151    else
28152      ac_cv_sizeof_off_t=0
28153    fi
28154 fi
28155
28156 fi
28157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
28158 $as_echo "$ac_cv_sizeof_off_t" >&6; }
28159
28160
28161
28162 cat >>confdefs.h <<_ACEOF
28163 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
28164 _ACEOF
28165
28166
28167
28168 soname_bump=no
28169 if test x"$curl_cv_native_windows" != "xyes" &&
28170    test $ac_cv_sizeof_off_t -ne $curl_sizeof_curl_off_t; then
28171   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This libcurl built is probably not ABI compatible with previous" >&5
28172 $as_echo "$as_me: WARNING: This libcurl built is probably not ABI compatible with previous" >&2;}
28173   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&5
28174 $as_echo "$as_me: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&2;}
28175   soname_bump=yes
28176 fi
28177
28178
28179 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
28180 if test "x$ac_cv_type_long_long" = xyes; then :
28181
28182 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
28183
28184    longlong="yes"
28185
28186 fi
28187
28188
28189 if test "xyes" = "x$longlong"; then
28190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
28191 $as_echo_n "checking if numberLL works... " >&6; }
28192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28193 /* end confdefs.h.  */
28194
28195
28196
28197 int main (void)
28198 {
28199
28200       long long val = 1000LL;
28201
28202  ;
28203  return 0;
28204 }
28205
28206 _ACEOF
28207 if ac_fn_c_try_compile "$LINENO"; then :
28208
28209     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28210 $as_echo "yes" >&6; }
28211
28212 $as_echo "#define HAVE_LL 1" >>confdefs.h
28213
28214
28215 else
28216
28217     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28218 $as_echo "no" >&6; }
28219
28220 fi
28221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28222 fi
28223
28224
28225 # check for ssize_t
28226 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
28227 if test "x$ac_cv_type_ssize_t" = xyes; then :
28228
28229 else
28230
28231 $as_echo "#define ssize_t int" >>confdefs.h
28232
28233 fi
28234
28235
28236 # check for bool type
28237 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
28238 #ifdef HAVE_SYS_TYPES_H
28239 #include <sys/types.h>
28240 #endif
28241 #ifdef HAVE_STDBOOL_H
28242 #include <stdbool.h>
28243 #endif
28244
28245 "
28246 if test "x$ac_cv_type_bool" = xyes; then :
28247
28248
28249 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
28250
28251
28252 fi
28253
28254
28255
28256 curl_includes_ws2tcpip="\
28257 /* includes start */
28258 #ifdef HAVE_WINDOWS_H
28259 #  ifndef WIN32_LEAN_AND_MEAN
28260 #    define WIN32_LEAN_AND_MEAN
28261 #  endif
28262 #  include <windows.h>
28263 #  ifdef HAVE_WINSOCK2_H
28264 #    include <winsock2.h>
28265 #    ifdef HAVE_WS2TCPIP_H
28266 #       include <ws2tcpip.h>
28267 #    endif
28268 #  endif
28269 #endif
28270 /* includes end */"
28271
28272   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
28273 $as_echo_n "checking for windows.h... " >&6; }
28274 if ${curl_cv_header_windows_h+:} false; then :
28275   $as_echo_n "(cached) " >&6
28276 else
28277
28278     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28279 /* end confdefs.h.  */
28280
28281
28282 #undef inline
28283 #ifndef WIN32_LEAN_AND_MEAN
28284 #define WIN32_LEAN_AND_MEAN
28285 #endif
28286 #include <windows.h>
28287
28288 int main (void)
28289 {
28290
28291 #if defined(__CYGWIN__) || defined(__CEGCC__)
28292         HAVE_WINDOWS_H shall not be defined.
28293 #else
28294         int dummy=2*WINVER;
28295 #endif
28296
28297  ;
28298  return 0;
28299 }
28300
28301 _ACEOF
28302 if ac_fn_c_try_compile "$LINENO"; then :
28303
28304       curl_cv_header_windows_h="yes"
28305
28306 else
28307
28308       curl_cv_header_windows_h="no"
28309
28310 fi
28311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28312
28313 fi
28314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
28315 $as_echo "$curl_cv_header_windows_h" >&6; }
28316   case "$curl_cv_header_windows_h" in
28317     yes)
28318
28319 cat >>confdefs.h <<_ACEOF
28320 #define HAVE_WINDOWS_H 1
28321 _ACEOF
28322
28323
28324 cat >>confdefs.h <<_ACEOF
28325 #define WIN32_LEAN_AND_MEAN 1
28326 _ACEOF
28327
28328       ;;
28329   esac
28330
28331
28332     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
28333 $as_echo_n "checking for winsock2.h... " >&6; }
28334 if ${curl_cv_header_winsock2_h+:} false; then :
28335   $as_echo_n "(cached) " >&6
28336 else
28337
28338     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28339 /* end confdefs.h.  */
28340
28341
28342 #undef inline
28343 #ifndef WIN32_LEAN_AND_MEAN
28344 #define WIN32_LEAN_AND_MEAN
28345 #endif
28346 #include <windows.h>
28347 #include <winsock2.h>
28348
28349 int main (void)
28350 {
28351
28352 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
28353         HAVE_WINSOCK2_H shall not be defined.
28354 #else
28355         int dummy=2*IPPROTO_ESP;
28356 #endif
28357
28358  ;
28359  return 0;
28360 }
28361
28362 _ACEOF
28363 if ac_fn_c_try_compile "$LINENO"; then :
28364
28365       curl_cv_header_winsock2_h="yes"
28366
28367 else
28368
28369       curl_cv_header_winsock2_h="no"
28370
28371 fi
28372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28373
28374 fi
28375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
28376 $as_echo "$curl_cv_header_winsock2_h" >&6; }
28377   case "$curl_cv_header_winsock2_h" in
28378     yes)
28379
28380 cat >>confdefs.h <<_ACEOF
28381 #define HAVE_WINSOCK2_H 1
28382 _ACEOF
28383
28384       ;;
28385   esac
28386
28387
28388     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
28389 $as_echo_n "checking for ws2tcpip.h... " >&6; }
28390 if ${curl_cv_header_ws2tcpip_h+:} false; then :
28391   $as_echo_n "(cached) " >&6
28392 else
28393
28394     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28395 /* end confdefs.h.  */
28396
28397
28398 #undef inline
28399 #ifndef WIN32_LEAN_AND_MEAN
28400 #define WIN32_LEAN_AND_MEAN
28401 #endif
28402 #include <windows.h>
28403 #include <winsock2.h>
28404 #include <ws2tcpip.h>
28405
28406 int main (void)
28407 {
28408
28409 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
28410         HAVE_WS2TCPIP_H shall not be defined.
28411 #else
28412         int dummy=2*IP_PKTINFO;
28413 #endif
28414
28415  ;
28416  return 0;
28417 }
28418
28419 _ACEOF
28420 if ac_fn_c_try_compile "$LINENO"; then :
28421
28422       curl_cv_header_ws2tcpip_h="yes"
28423
28424 else
28425
28426       curl_cv_header_ws2tcpip_h="no"
28427
28428 fi
28429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28430
28431 fi
28432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
28433 $as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
28434   case "$curl_cv_header_ws2tcpip_h" in
28435     yes)
28436
28437 cat >>confdefs.h <<_ACEOF
28438 #define HAVE_WS2TCPIP_H 1
28439 _ACEOF
28440
28441       ;;
28442   esac
28443
28444
28445
28446 curl_includes_sys_socket="\
28447 /* includes start */
28448 #ifdef HAVE_SYS_TYPES_H
28449 #  include <sys/types.h>
28450 #endif
28451 #ifdef HAVE_SYS_SOCKET_H
28452 #  include <sys/socket.h>
28453 #endif
28454 /* includes end */"
28455   for ac_header in sys/types.h sys/socket.h
28456 do :
28457   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28458 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
28459 "
28460 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28461   cat >>confdefs.h <<_ACEOF
28462 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28463 _ACEOF
28464
28465 fi
28466
28467 done
28468
28469
28470
28471 curl_preprocess_callconv="\
28472 /* preprocess start */
28473 #ifdef HAVE_WINDOWS_H
28474 #  define FUNCALLCONV __stdcall
28475 #else
28476 #  define FUNCALLCONV
28477 #endif
28478 /* preprocess end */"
28479
28480
28481         #
28482     #
28483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5
28484 $as_echo_n "checking for curl_socklen_t data type... " >&6; }
28485   curl_typeof_curl_socklen_t="unknown"
28486   for arg1 in int SOCKET; do
28487     for arg2 in 'struct sockaddr' void; do
28488       for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
28489         if test "$curl_typeof_curl_socklen_t" = "unknown"; then
28490           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28491 /* end confdefs.h.  */
28492
28493
28494               $curl_includes_ws2tcpip
28495               $curl_includes_sys_socket
28496               $curl_preprocess_callconv
28497               extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
28498
28499 int main (void)
28500 {
28501
28502               $t *lenptr = 0;
28503               if(0 != getpeername(0, 0, lenptr))
28504                 return 1;
28505
28506  ;
28507  return 0;
28508 }
28509
28510 _ACEOF
28511 if ac_fn_c_try_compile "$LINENO"; then :
28512
28513             curl_typeof_curl_socklen_t="$t"
28514
28515 fi
28516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28517         fi
28518       done
28519     done
28520   done
28521   for t in socklen_t int; do
28522     if test "$curl_typeof_curl_socklen_t" = "void"; then
28523       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28524 /* end confdefs.h.  */
28525
28526
28527           $curl_includes_sys_socket
28528           typedef $t curl_socklen_t;
28529
28530 int main (void)
28531 {
28532
28533           curl_socklen_t dummy;
28534
28535  ;
28536  return 0;
28537 }
28538
28539 _ACEOF
28540 if ac_fn_c_try_compile "$LINENO"; then :
28541
28542         curl_typeof_curl_socklen_t="$t"
28543
28544 fi
28545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28546     fi
28547   done
28548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5
28549 $as_echo "$curl_typeof_curl_socklen_t" >&6; }
28550   if test "$curl_typeof_curl_socklen_t" = "void" ||
28551     test "$curl_typeof_curl_socklen_t" = "unknown"; then
28552     as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5
28553   fi
28554   #
28555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5
28556 $as_echo_n "checking size of curl_socklen_t... " >&6; }
28557   curl_sizeof_curl_socklen_t="unknown"
28558   curl_pull_headers_socklen_t="unknown"
28559   if test "$curl_cv_header_ws2tcpip_h" = "yes"; then
28560     tst_pull_header_checks='none ws2tcpip'
28561     tst_size_checks='4'
28562   else
28563     tst_pull_header_checks='none systypes syssocket'
28564     tst_size_checks='4 8 2'
28565   fi
28566   for tst_size in $tst_size_checks; do
28567     for tst_pull_headers in $tst_pull_header_checks; do
28568       if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
28569         case $tst_pull_headers in
28570           ws2tcpip)
28571             tmp_includes="$curl_includes_ws2tcpip"
28572             ;;
28573           systypes)
28574             tmp_includes="$curl_includes_sys_types"
28575             ;;
28576           syssocket)
28577             tmp_includes="$curl_includes_sys_socket"
28578             ;;
28579           *)
28580             tmp_includes=""
28581             ;;
28582         esac
28583         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28584 /* end confdefs.h.  */
28585
28586
28587             $tmp_includes
28588             typedef $curl_typeof_curl_socklen_t curl_socklen_t;
28589             typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1];
28590
28591 int main (void)
28592 {
28593
28594             curl_socklen_t dummy;
28595
28596  ;
28597  return 0;
28598 }
28599
28600 _ACEOF
28601 if ac_fn_c_try_compile "$LINENO"; then :
28602
28603           curl_sizeof_curl_socklen_t="$tst_size"
28604           curl_pull_headers_socklen_t="$tst_pull_headers"
28605
28606 fi
28607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28608       fi
28609     done
28610   done
28611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5
28612 $as_echo "$curl_sizeof_curl_socklen_t" >&6; }
28613   if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
28614     as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5
28615   fi
28616   #
28617   case $curl_pull_headers_socklen_t in
28618     ws2tcpip)
28619
28620 cat >>confdefs.h <<_EOF
28621 #define CURL_PULL_WS2TCPIP_H 1
28622 _EOF
28623
28624       ;;
28625     systypes)
28626
28627 cat >>confdefs.h <<_EOF
28628 #define CURL_PULL_SYS_TYPES_H 1
28629 _EOF
28630
28631       ;;
28632     syssocket)
28633
28634 cat >>confdefs.h <<_EOF
28635 #define CURL_PULL_SYS_TYPES_H 1
28636 _EOF
28637
28638
28639 cat >>confdefs.h <<_EOF
28640 #define CURL_PULL_SYS_SOCKET_H 1
28641 _EOF
28642
28643       ;;
28644   esac
28645
28646 cat >>confdefs.h <<_EOF
28647 #define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t
28648 _EOF
28649
28650
28651 cat >>confdefs.h <<_EOF
28652 #define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t
28653 _EOF
28654
28655
28656
28657
28658 curl_includes_poll="\
28659 /* includes start */
28660 #ifdef HAVE_SYS_TYPES_H
28661 #  include <sys/types.h>
28662 #endif
28663 #ifdef HAVE_POLL_H
28664 #  include <poll.h>
28665 #endif
28666 #ifdef HAVE_SYS_POLL_H
28667 #  include <sys/poll.h>
28668 #endif
28669 /* includes end */"
28670   for ac_header in sys/types.h poll.h sys/poll.h
28671 do :
28672   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28673 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
28674 "
28675 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28676   cat >>confdefs.h <<_ACEOF
28677 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28678 _ACEOF
28679
28680 fi
28681
28682 done
28683
28684
28685
28686     #
28687   tst_poll_events_macro_defined="unknown"
28688   #
28689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28690 /* end confdefs.h.  */
28691
28692
28693       $curl_includes_poll
28694
28695 int main (void)
28696 {
28697
28698 #if defined(events) || defined(revents)
28699       return 0;
28700 #else
28701       force compilation error
28702 #endif
28703
28704  ;
28705  return 0;
28706 }
28707
28708 _ACEOF
28709 if ac_fn_c_try_compile "$LINENO"; then :
28710
28711     tst_poll_events_macro_defined="yes"
28712
28713 else
28714
28715     tst_poll_events_macro_defined="no"
28716
28717 fi
28718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28719   #
28720   if test "$tst_poll_events_macro_defined" = "yes"; then
28721     if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
28722
28723 cat >>confdefs.h <<_EOF
28724 #define CURL_PULL_SYS_POLL_H 1
28725 _EOF
28726
28727     fi
28728   fi
28729   #
28730
28731
28732
28733   ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
28734 #undef inline
28735 #ifdef HAVE_WINDOWS_H
28736 #ifndef WIN32_LEAN_AND_MEAN
28737 #define WIN32_LEAN_AND_MEAN
28738 #endif
28739 #include <windows.h>
28740 #ifdef HAVE_WINSOCK2_H
28741 #include <winsock2.h>
28742 #else
28743 #ifdef HAVE_WINSOCK_H
28744 #include <winsock.h>
28745 #endif
28746 #endif
28747 #else
28748 #ifdef HAVE_SYS_TYPES_H
28749 #include <sys/types.h>
28750 #endif
28751 #ifdef HAVE_SYS_SOCKET_H
28752 #include <sys/socket.h>
28753 #endif
28754 #ifdef HAVE_NETINET_IN_H
28755 #include <netinet/in.h>
28756 #endif
28757 #ifdef HAVE_ARPA_INET_H
28758 #include <arpa/inet.h>
28759 #endif
28760 #endif
28761
28762 "
28763 if test "x$ac_cv_type_in_addr_t" = xyes; then :
28764
28765 else
28766
28767         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
28768 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
28769 if ${curl_cv_in_addr_t_equiv+:} false; then :
28770   $as_echo_n "(cached) " >&6
28771 else
28772
28773       curl_cv_in_addr_t_equiv="unknown"
28774       for t in "unsigned long" int size_t unsigned long; do
28775         if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
28776           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28777 /* end confdefs.h.  */
28778
28779
28780 #undef inline
28781 #ifdef HAVE_WINDOWS_H
28782 #ifndef WIN32_LEAN_AND_MEAN
28783 #define WIN32_LEAN_AND_MEAN
28784 #endif
28785 #include <windows.h>
28786 #ifdef HAVE_WINSOCK2_H
28787 #include <winsock2.h>
28788 #else
28789 #ifdef HAVE_WINSOCK_H
28790 #include <winsock.h>
28791 #endif
28792 #endif
28793 #else
28794 #ifdef HAVE_SYS_TYPES_H
28795 #include <sys/types.h>
28796 #endif
28797 #ifdef HAVE_SYS_SOCKET_H
28798 #include <sys/socket.h>
28799 #endif
28800 #ifdef HAVE_NETINET_IN_H
28801 #include <netinet/in.h>
28802 #endif
28803 #ifdef HAVE_ARPA_INET_H
28804 #include <arpa/inet.h>
28805 #endif
28806 #endif
28807
28808 int main (void)
28809 {
28810
28811               $t data = inet_addr ("1.2.3.4");
28812
28813  ;
28814  return 0;
28815 }
28816
28817 _ACEOF
28818 if ac_fn_c_try_link "$LINENO"; then :
28819
28820             curl_cv_in_addr_t_equiv="$t"
28821
28822 fi
28823 rm -f core conftest.err conftest.$ac_objext \
28824     conftest$ac_exeext conftest.$ac_ext
28825         fi
28826       done
28827
28828 fi
28829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
28830 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
28831     case "$curl_cv_in_addr_t_equiv" in
28832       unknown)
28833         as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
28834         ;;
28835       *)
28836
28837 cat >>confdefs.h <<_ACEOF
28838 #define in_addr_t $curl_cv_in_addr_t_equiv
28839 _ACEOF
28840
28841         ;;
28842     esac
28843
28844 fi
28845
28846
28847
28848
28849    ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
28850 #undef inline
28851 #ifdef HAVE_WINDOWS_H
28852 #ifndef WIN32_LEAN_AND_MEAN
28853 #define WIN32_LEAN_AND_MEAN
28854 #endif
28855 #include <windows.h>
28856 #ifdef HAVE_WINSOCK2_H
28857 #include <winsock2.h>
28858 #endif
28859 #else
28860 #ifdef HAVE_SYS_TYPES_H
28861 #include <sys/types.h>
28862 #endif
28863 #ifdef HAVE_SYS_SOCKET_H
28864 #include <sys/socket.h>
28865 #endif
28866 #ifdef HAVE_NETINET_IN_H
28867 #include <netinet/in.h>
28868 #endif
28869 #ifdef HAVE_ARPA_INET_H
28870 #include <arpa/inet.h>
28871 #endif
28872 #endif
28873
28874 "
28875 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
28876
28877 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
28878
28879 fi
28880
28881
28882
28883
28884   for ac_header in signal.h
28885 do :
28886   ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
28887 if test "x$ac_cv_header_signal_h" = xyes; then :
28888   cat >>confdefs.h <<_ACEOF
28889 #define HAVE_SIGNAL_H 1
28890 _ACEOF
28891
28892 fi
28893
28894 done
28895
28896   ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
28897 #ifdef HAVE_SIGNAL_H
28898 #include <signal.h>
28899 #endif
28900
28901 "
28902 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
28903
28904
28905 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
28906
28907
28908 fi
28909
28910   case "$ac_cv_type_sig_atomic_t" in
28911     yes)
28912       #
28913       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
28914 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
28915       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28916 /* end confdefs.h.  */
28917
28918
28919 #ifdef HAVE_SIGNAL_H
28920 #include <signal.h>
28921 #endif
28922
28923 int main (void)
28924 {
28925
28926           static volatile sig_atomic_t dummy = 0;
28927
28928  ;
28929  return 0;
28930 }
28931
28932 _ACEOF
28933 if ac_fn_c_try_link "$LINENO"; then :
28934
28935         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28936 $as_echo "no" >&6; }
28937         curl_cv_sig_atomic_t_volatile="no"
28938
28939 else
28940
28941         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28942 $as_echo "yes" >&6; }
28943         curl_cv_sig_atomic_t_volatile="yes"
28944
28945 fi
28946 rm -f core conftest.err conftest.$ac_objext \
28947     conftest$ac_exeext conftest.$ac_ext
28948       #
28949       if test "$curl_cv_sig_atomic_t_volatile" = "yes"; then
28950
28951 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
28952
28953       fi
28954       ;;
28955   esac
28956
28957
28958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
28959 $as_echo_n "checking return type of signal handlers... " >&6; }
28960 if ${ac_cv_type_signal+:} false; then :
28961   $as_echo_n "(cached) " >&6
28962 else
28963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28964 /* end confdefs.h.  */
28965 #include <sys/types.h>
28966 #include <signal.h>
28967
28968 int main (void)
28969 {
28970 return *(signal (0, 0)) (0) == 1;
28971  ;
28972  return 0;
28973 }
28974 _ACEOF
28975 if ac_fn_c_try_compile "$LINENO"; then :
28976   ac_cv_type_signal=int
28977 else
28978   ac_cv_type_signal=void
28979 fi
28980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28981 fi
28982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
28983 $as_echo "$ac_cv_type_signal" >&6; }
28984
28985 cat >>confdefs.h <<_ACEOF
28986 #define RETSIGTYPE $ac_cv_type_signal
28987 _ACEOF
28988
28989
28990
28991
28992     for ac_header in sys/select.h sys/socket.h
28993 do :
28994   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28995 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28996 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28997   cat >>confdefs.h <<_ACEOF
28998 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28999 _ACEOF
29000
29001 fi
29002
29003 done
29004
29005   #
29006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
29007 $as_echo_n "checking for select... " >&6; }
29008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29009 /* end confdefs.h.  */
29010
29011
29012 #undef inline
29013 #ifdef HAVE_WINDOWS_H
29014 #ifndef WIN32_LEAN_AND_MEAN
29015 #define WIN32_LEAN_AND_MEAN
29016 #endif
29017 #include <windows.h>
29018 #ifdef HAVE_WINSOCK2_H
29019 #include <winsock2.h>
29020 #else
29021 #ifdef HAVE_WINSOCK_H
29022 #include <winsock.h>
29023 #endif
29024 #endif
29025 #endif
29026 #ifdef HAVE_SYS_TYPES_H
29027 #include <sys/types.h>
29028 #endif
29029 #ifdef HAVE_SYS_TIME_H
29030 #include <sys/time.h>
29031 #ifdef TIME_WITH_SYS_TIME
29032 #include <time.h>
29033 #endif
29034 #else
29035 #ifdef HAVE_TIME_H
29036 #include <time.h>
29037 #endif
29038 #endif
29039 #ifndef HAVE_WINDOWS_H
29040 #ifdef HAVE_SYS_SELECT_H
29041 #include <sys/select.h>
29042 #endif
29043 #ifdef HAVE_SYS_SOCKET_H
29044 #include <sys/socket.h>
29045 #endif
29046 #endif
29047
29048 int main (void)
29049 {
29050
29051       select(0, 0, 0, 0, 0);
29052
29053  ;
29054  return 0;
29055 }
29056
29057 _ACEOF
29058 if ac_fn_c_try_link "$LINENO"; then :
29059
29060     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29061 $as_echo "yes" >&6; }
29062     curl_cv_select="yes"
29063
29064 else
29065
29066     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29067 $as_echo "no" >&6; }
29068     curl_cv_select="no"
29069
29070 fi
29071 rm -f core conftest.err conftest.$ac_objext \
29072     conftest$ac_exeext conftest.$ac_ext
29073   #
29074   if test "$curl_cv_select" = "yes"; then
29075     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
29076 $as_echo_n "checking types of args and return type for select... " >&6; }
29077 if ${curl_cv_func_select_args+:} false; then :
29078   $as_echo_n "(cached) " >&6
29079 else
29080
29081       curl_cv_func_select_args="unknown"
29082       for sel_retv in 'int' 'ssize_t'; do
29083         for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
29084           for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
29085             for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
29086               if test "$curl_cv_func_select_args" = "unknown"; then
29087                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29088 /* end confdefs.h.  */
29089
29090
29091 #undef inline
29092 #ifdef HAVE_WINDOWS_H
29093 #ifndef WIN32_LEAN_AND_MEAN
29094 #define WIN32_LEAN_AND_MEAN
29095 #endif
29096 #include <windows.h>
29097 #ifdef HAVE_WINSOCK2_H
29098 #include <winsock2.h>
29099 #else
29100 #ifdef HAVE_WINSOCK_H
29101 #include <winsock.h>
29102 #endif
29103 #endif
29104 #define SELECTCALLCONV PASCAL
29105 #endif
29106 #ifdef HAVE_SYS_TYPES_H
29107 #include <sys/types.h>
29108 #endif
29109 #ifdef HAVE_SYS_TIME_H
29110 #include <sys/time.h>
29111 #ifdef TIME_WITH_SYS_TIME
29112 #include <time.h>
29113 #endif
29114 #else
29115 #ifdef HAVE_TIME_H
29116 #include <time.h>
29117 #endif
29118 #endif
29119 #ifndef HAVE_WINDOWS_H
29120 #ifdef HAVE_SYS_SELECT_H
29121 #include <sys/select.h>
29122 #endif
29123 #ifdef HAVE_SYS_SOCKET_H
29124 #include <sys/socket.h>
29125 #endif
29126 #define SELECTCALLCONV
29127 #endif
29128 #ifndef HAVE_STRUCT_TIMEVAL
29129                     struct timeval {
29130                       long tv_sec;
29131                       long tv_usec;
29132                     };
29133 #endif
29134                     extern $sel_retv SELECTCALLCONV select($sel_arg1,
29135                                                            $sel_arg234,
29136                                                            $sel_arg234,
29137                                                            $sel_arg234,
29138                                                            $sel_arg5);
29139
29140 int main (void)
29141 {
29142
29143                     $sel_arg1   nfds=0;
29144                     $sel_arg234 rfds=0;
29145                     $sel_arg234 wfds=0;
29146                     $sel_arg234 efds=0;
29147                     $sel_retv res = select(nfds, rfds, wfds, efds, 0);
29148
29149  ;
29150  return 0;
29151 }
29152
29153 _ACEOF
29154 if ac_fn_c_try_compile "$LINENO"; then :
29155
29156                   curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
29157
29158 fi
29159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29160               fi
29161             done
29162           done
29163         done
29164       done
29165
29166 fi
29167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
29168 $as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
29169     if test "$curl_cv_func_select_args" = "unknown"; then
29170       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
29171 $as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
29172       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
29173 $as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
29174     else
29175       select_prev_IFS=$IFS; IFS=','
29176       set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
29177       IFS=$select_prev_IFS
29178       shift
29179       #
29180       sel_qual_type_arg5=$3
29181       #
29182
29183 cat >>confdefs.h <<_ACEOF
29184 #define SELECT_TYPE_ARG1 $1
29185 _ACEOF
29186
29187
29188 cat >>confdefs.h <<_ACEOF
29189 #define SELECT_TYPE_ARG234 $2
29190 _ACEOF
29191
29192
29193 cat >>confdefs.h <<_ACEOF
29194 #define SELECT_TYPE_RETV $4
29195 _ACEOF
29196
29197       #
29198       prev_sh_opts=$-
29199       #
29200       case $prev_sh_opts in
29201         *f*)
29202           ;;
29203         *)
29204           set -f
29205           ;;
29206       esac
29207       #
29208       case "$sel_qual_type_arg5" in
29209         const*)
29210           sel_qual_arg5=const
29211           sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
29212         ;;
29213         *)
29214           sel_qual_arg5=
29215           sel_type_arg5=$sel_qual_type_arg5
29216         ;;
29217       esac
29218       #
29219
29220 cat >>confdefs.h <<_ACEOF
29221 #define SELECT_QUAL_ARG5 $sel_qual_arg5
29222 _ACEOF
29223
29224
29225 cat >>confdefs.h <<_ACEOF
29226 #define SELECT_TYPE_ARG5 $sel_type_arg5
29227 _ACEOF
29228
29229       #
29230       case $prev_sh_opts in
29231         *f*)
29232           ;;
29233         *)
29234           set +f
29235           ;;
29236       esac
29237       #
29238
29239 cat >>confdefs.h <<_ACEOF
29240 #define HAVE_SELECT 1
29241 _ACEOF
29242
29243       curl_cv_func_select="yes"
29244     fi
29245   fi
29246
29247
29248
29249       for ac_header in sys/types.h sys/socket.h
29250 do :
29251   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29252 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29253 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29254   cat >>confdefs.h <<_ACEOF
29255 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29256 _ACEOF
29257
29258 fi
29259
29260 done
29261
29262   #
29263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
29264 $as_echo_n "checking for recv... " >&6; }
29265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29266 /* end confdefs.h.  */
29267
29268
29269 #undef inline
29270 #ifdef HAVE_WINDOWS_H
29271 #ifndef WIN32_LEAN_AND_MEAN
29272 #define WIN32_LEAN_AND_MEAN
29273 #endif
29274 #include <windows.h>
29275 #ifdef HAVE_WINSOCK2_H
29276 #include <winsock2.h>
29277 #else
29278 #ifdef HAVE_WINSOCK_H
29279 #include <winsock.h>
29280 #endif
29281 #endif
29282 #else
29283 #ifdef HAVE_SYS_TYPES_H
29284 #include <sys/types.h>
29285 #endif
29286 #ifdef HAVE_SYS_SOCKET_H
29287 #include <sys/socket.h>
29288 #endif
29289 #endif
29290
29291 int main (void)
29292 {
29293
29294       recv(0, 0, 0, 0);
29295
29296  ;
29297  return 0;
29298 }
29299
29300 _ACEOF
29301 if ac_fn_c_try_link "$LINENO"; then :
29302
29303     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29304 $as_echo "yes" >&6; }
29305     curl_cv_recv="yes"
29306
29307 else
29308
29309     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29310 $as_echo "no" >&6; }
29311     curl_cv_recv="no"
29312
29313 fi
29314 rm -f core conftest.err conftest.$ac_objext \
29315     conftest$ac_exeext conftest.$ac_ext
29316   #
29317   if test "$curl_cv_recv" = "yes"; then
29318     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
29319 $as_echo_n "checking types of args and return type for recv... " >&6; }
29320 if ${curl_cv_func_recv_args+:} false; then :
29321   $as_echo_n "(cached) " >&6
29322 else
29323
29324       curl_cv_func_recv_args="unknown"
29325       for recv_retv in 'int' 'ssize_t'; do
29326         for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29327           for recv_arg2 in 'char *' 'void *'; do
29328             for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29329               for recv_arg4 in 'int' 'unsigned int'; do
29330                 if test "$curl_cv_func_recv_args" = "unknown"; then
29331                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29332 /* end confdefs.h.  */
29333
29334
29335 #undef inline
29336 #ifdef HAVE_WINDOWS_H
29337 #ifndef WIN32_LEAN_AND_MEAN
29338 #define WIN32_LEAN_AND_MEAN
29339 #endif
29340 #include <windows.h>
29341 #ifdef HAVE_WINSOCK2_H
29342 #include <winsock2.h>
29343 #else
29344 #ifdef HAVE_WINSOCK_H
29345 #include <winsock.h>
29346 #endif
29347 #endif
29348 #define RECVCALLCONV PASCAL
29349 #else
29350 #ifdef HAVE_SYS_TYPES_H
29351 #include <sys/types.h>
29352 #endif
29353 #ifdef HAVE_SYS_SOCKET_H
29354 #include <sys/socket.h>
29355 #endif
29356 #define RECVCALLCONV
29357 #endif
29358                       extern $recv_retv RECVCALLCONV
29359                       recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
29360
29361 int main (void)
29362 {
29363
29364                       $recv_arg1 s=0;
29365                       $recv_arg2 buf=0;
29366                       $recv_arg3 len=0;
29367                       $recv_arg4 flags=0;
29368                       $recv_retv res = recv(s, buf, len, flags);
29369
29370  ;
29371  return 0;
29372 }
29373
29374 _ACEOF
29375 if ac_fn_c_try_compile "$LINENO"; then :
29376
29377                     curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
29378
29379 fi
29380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29381                 fi
29382               done
29383             done
29384           done
29385         done
29386       done
29387
29388 fi
29389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
29390 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
29391     if test "$curl_cv_func_recv_args" = "unknown"; then
29392       as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
29393     else
29394       recv_prev_IFS=$IFS; IFS=','
29395       set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
29396       IFS=$recv_prev_IFS
29397       shift
29398       #
29399
29400 cat >>confdefs.h <<_ACEOF
29401 #define RECV_TYPE_ARG1 $1
29402 _ACEOF
29403
29404
29405 cat >>confdefs.h <<_ACEOF
29406 #define RECV_TYPE_ARG2 $2
29407 _ACEOF
29408
29409
29410 cat >>confdefs.h <<_ACEOF
29411 #define RECV_TYPE_ARG3 $3
29412 _ACEOF
29413
29414
29415 cat >>confdefs.h <<_ACEOF
29416 #define RECV_TYPE_ARG4 $4
29417 _ACEOF
29418
29419
29420 cat >>confdefs.h <<_ACEOF
29421 #define RECV_TYPE_RETV $5
29422 _ACEOF
29423
29424       #
29425
29426 cat >>confdefs.h <<_ACEOF
29427 #define HAVE_RECV 1
29428 _ACEOF
29429
29430       curl_cv_func_recv="yes"
29431     fi
29432   else
29433     as_fn_error $? "Unable to link function recv" "$LINENO" 5
29434   fi
29435
29436
29437       for ac_header in sys/types.h sys/socket.h
29438 do :
29439   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29440 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29441 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29442   cat >>confdefs.h <<_ACEOF
29443 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29444 _ACEOF
29445
29446 fi
29447
29448 done
29449
29450   #
29451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
29452 $as_echo_n "checking for send... " >&6; }
29453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29454 /* end confdefs.h.  */
29455
29456
29457 #undef inline
29458 #ifdef HAVE_WINDOWS_H
29459 #ifndef WIN32_LEAN_AND_MEAN
29460 #define WIN32_LEAN_AND_MEAN
29461 #endif
29462 #include <windows.h>
29463 #ifdef HAVE_WINSOCK2_H
29464 #include <winsock2.h>
29465 #else
29466 #ifdef HAVE_WINSOCK_H
29467 #include <winsock.h>
29468 #endif
29469 #endif
29470 #else
29471 #ifdef HAVE_SYS_TYPES_H
29472 #include <sys/types.h>
29473 #endif
29474 #ifdef HAVE_SYS_SOCKET_H
29475 #include <sys/socket.h>
29476 #endif
29477 #endif
29478
29479 int main (void)
29480 {
29481
29482       send(0, 0, 0, 0);
29483
29484  ;
29485  return 0;
29486 }
29487
29488 _ACEOF
29489 if ac_fn_c_try_link "$LINENO"; then :
29490
29491     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29492 $as_echo "yes" >&6; }
29493     curl_cv_send="yes"
29494
29495 else
29496
29497     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29498 $as_echo "no" >&6; }
29499     curl_cv_send="no"
29500
29501 fi
29502 rm -f core conftest.err conftest.$ac_objext \
29503     conftest$ac_exeext conftest.$ac_ext
29504   #
29505   if test "$curl_cv_send" = "yes"; then
29506     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
29507 $as_echo_n "checking types of args and return type for send... " >&6; }
29508 if ${curl_cv_func_send_args+:} false; then :
29509   $as_echo_n "(cached) " >&6
29510 else
29511
29512       curl_cv_func_send_args="unknown"
29513       for send_retv in 'int' 'ssize_t'; do
29514         for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29515           for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
29516             for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29517               for send_arg4 in 'int' 'unsigned int'; do
29518                 if test "$curl_cv_func_send_args" = "unknown"; then
29519                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29520 /* end confdefs.h.  */
29521
29522
29523 #undef inline
29524 #ifdef HAVE_WINDOWS_H
29525 #ifndef WIN32_LEAN_AND_MEAN
29526 #define WIN32_LEAN_AND_MEAN
29527 #endif
29528 #include <windows.h>
29529 #ifdef HAVE_WINSOCK2_H
29530 #include <winsock2.h>
29531 #else
29532 #ifdef HAVE_WINSOCK_H
29533 #include <winsock.h>
29534 #endif
29535 #endif
29536 #define SENDCALLCONV PASCAL
29537 #else
29538 #ifdef HAVE_SYS_TYPES_H
29539 #include <sys/types.h>
29540 #endif
29541 #ifdef HAVE_SYS_SOCKET_H
29542 #include <sys/socket.h>
29543 #endif
29544 #define SENDCALLCONV
29545 #endif
29546                       extern $send_retv SENDCALLCONV
29547                       send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
29548
29549 int main (void)
29550 {
29551
29552                       $send_arg1 s=0;
29553                       $send_arg3 len=0;
29554                       $send_arg4 flags=0;
29555                       $send_retv res = send(s, 0, len, flags);
29556
29557  ;
29558  return 0;
29559 }
29560
29561 _ACEOF
29562 if ac_fn_c_try_compile "$LINENO"; then :
29563
29564                     curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
29565
29566 fi
29567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29568                 fi
29569               done
29570             done
29571           done
29572         done
29573       done
29574
29575 fi
29576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
29577 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
29578     if test "$curl_cv_func_send_args" = "unknown"; then
29579       as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
29580     else
29581       send_prev_IFS=$IFS; IFS=','
29582       set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
29583       IFS=$send_prev_IFS
29584       shift
29585       #
29586       send_qual_type_arg2=$2
29587       #
29588
29589 cat >>confdefs.h <<_ACEOF
29590 #define SEND_TYPE_ARG1 $1
29591 _ACEOF
29592
29593
29594 cat >>confdefs.h <<_ACEOF
29595 #define SEND_TYPE_ARG3 $3
29596 _ACEOF
29597
29598
29599 cat >>confdefs.h <<_ACEOF
29600 #define SEND_TYPE_ARG4 $4
29601 _ACEOF
29602
29603
29604 cat >>confdefs.h <<_ACEOF
29605 #define SEND_TYPE_RETV $5
29606 _ACEOF
29607
29608       #
29609       prev_sh_opts=$-
29610       #
29611       case $prev_sh_opts in
29612         *f*)
29613           ;;
29614         *)
29615           set -f
29616           ;;
29617       esac
29618       #
29619       case "$send_qual_type_arg2" in
29620         const*)
29621           send_qual_arg2=const
29622           send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
29623         ;;
29624         *)
29625           send_qual_arg2=
29626           send_type_arg2=$send_qual_type_arg2
29627         ;;
29628       esac
29629       #
29630
29631 cat >>confdefs.h <<_ACEOF
29632 #define SEND_QUAL_ARG2 $send_qual_arg2
29633 _ACEOF
29634
29635
29636 cat >>confdefs.h <<_ACEOF
29637 #define SEND_TYPE_ARG2 $send_type_arg2
29638 _ACEOF
29639
29640       #
29641       case $prev_sh_opts in
29642         *f*)
29643           ;;
29644         *)
29645           set +f
29646           ;;
29647       esac
29648       #
29649
29650 cat >>confdefs.h <<_ACEOF
29651 #define HAVE_SEND 1
29652 _ACEOF
29653
29654       curl_cv_func_send="yes"
29655     fi
29656   else
29657     as_fn_error $? "Unable to link function send" "$LINENO" 5
29658   fi
29659
29660
29661   for ac_header in sys/types.h sys/socket.h
29662 do :
29663   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29664 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29665 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29666   cat >>confdefs.h <<_ACEOF
29667 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29668 _ACEOF
29669
29670 fi
29671
29672 done
29673
29674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
29675 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
29676 if ${curl_cv_msg_nosignal+:} false; then :
29677   $as_echo_n "(cached) " >&6
29678 else
29679
29680     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29681 /* end confdefs.h.  */
29682
29683
29684 #undef inline
29685 #ifdef HAVE_WINDOWS_H
29686 #ifndef WIN32_LEAN_AND_MEAN
29687 #define WIN32_LEAN_AND_MEAN
29688 #endif
29689 #include <windows.h>
29690 #ifdef HAVE_WINSOCK2_H
29691 #include <winsock2.h>
29692 #else
29693 #ifdef HAVE_WINSOCK_H
29694 #include <winsock.h>
29695 #endif
29696 #endif
29697 #else
29698 #ifdef HAVE_SYS_TYPES_H
29699 #include <sys/types.h>
29700 #endif
29701 #ifdef HAVE_SYS_SOCKET_H
29702 #include <sys/socket.h>
29703 #endif
29704 #endif
29705
29706 int main (void)
29707 {
29708
29709         int flag=MSG_NOSIGNAL;
29710
29711  ;
29712  return 0;
29713 }
29714
29715 _ACEOF
29716 if ac_fn_c_try_compile "$LINENO"; then :
29717
29718       curl_cv_msg_nosignal="yes"
29719
29720 else
29721
29722       curl_cv_msg_nosignal="no"
29723
29724 fi
29725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29726
29727 fi
29728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
29729 $as_echo "$curl_cv_msg_nosignal" >&6; }
29730   case "$curl_cv_msg_nosignal" in
29731     yes)
29732
29733 cat >>confdefs.h <<_ACEOF
29734 #define HAVE_MSG_NOSIGNAL 1
29735 _ACEOF
29736
29737       ;;
29738   esac
29739
29740
29741
29742 curl_includes_unistd="\
29743 /* includes start */
29744 #ifdef HAVE_SYS_TYPES_H
29745 #  include <sys/types.h>
29746 #endif
29747 #ifdef HAVE_UNISTD_H
29748 #  include <unistd.h>
29749 #endif
29750 /* includes end */"
29751   for ac_header in sys/types.h unistd.h
29752 do :
29753   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29754 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
29755 "
29756 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29757   cat >>confdefs.h <<_ACEOF
29758 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29759 _ACEOF
29760
29761 fi
29762
29763 done
29764
29765
29766
29767     #
29768   tst_links_alarm="unknown"
29769   tst_proto_alarm="unknown"
29770   tst_compi_alarm="unknown"
29771   tst_allow_alarm="unknown"
29772   #
29773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
29774 $as_echo_n "checking if alarm can be linked... " >&6; }
29775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29776 /* end confdefs.h.  */
29777
29778
29779 #define alarm innocuous_alarm
29780 #ifdef __STDC__
29781 # include <limits.h>
29782 #else
29783 # include <assert.h>
29784 #endif
29785 #undef alarm
29786 #ifdef __cplusplus
29787 extern "C"
29788 #endif
29789 char alarm ();
29790 #if defined __stub_alarm || defined __stub___alarm
29791 choke me
29792 #endif
29793
29794 int main (void)
29795 {
29796 return alarm ();
29797  ;
29798  return 0;
29799 }
29800
29801 _ACEOF
29802 if ac_fn_c_try_link "$LINENO"; then :
29803
29804     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29805 $as_echo "yes" >&6; }
29806     tst_links_alarm="yes"
29807
29808 else
29809
29810     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29811 $as_echo "no" >&6; }
29812     tst_links_alarm="no"
29813
29814 fi
29815 rm -f core conftest.err conftest.$ac_objext \
29816     conftest$ac_exeext conftest.$ac_ext
29817   #
29818   if test "$tst_links_alarm" = "yes"; then
29819     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
29820 $as_echo_n "checking if alarm is prototyped... " >&6; }
29821     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29822 /* end confdefs.h.  */
29823
29824       $curl_includes_unistd
29825
29826 _ACEOF
29827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29828   $EGREP "alarm" >/dev/null 2>&1; then :
29829
29830       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29831 $as_echo "yes" >&6; }
29832       tst_proto_alarm="yes"
29833
29834 else
29835
29836       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29837 $as_echo "no" >&6; }
29838       tst_proto_alarm="no"
29839
29840 fi
29841 rm -f conftest*
29842
29843   fi
29844   #
29845   if test "$tst_proto_alarm" = "yes"; then
29846     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
29847 $as_echo_n "checking if alarm is compilable... " >&6; }
29848     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29849 /* end confdefs.h.  */
29850
29851
29852         $curl_includes_unistd
29853
29854 int main (void)
29855 {
29856
29857         if(0 != alarm(0))
29858           return 1;
29859
29860  ;
29861  return 0;
29862 }
29863
29864 _ACEOF
29865 if ac_fn_c_try_compile "$LINENO"; then :
29866
29867       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29868 $as_echo "yes" >&6; }
29869       tst_compi_alarm="yes"
29870
29871 else
29872
29873       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29874 $as_echo "no" >&6; }
29875       tst_compi_alarm="no"
29876
29877 fi
29878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29879   fi
29880   #
29881   if test "$tst_compi_alarm" = "yes"; then
29882     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
29883 $as_echo_n "checking if alarm usage allowed... " >&6; }
29884     if test "x$curl_disallow_alarm" != "xyes"; then
29885       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29886 $as_echo "yes" >&6; }
29887       tst_allow_alarm="yes"
29888     else
29889       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29890 $as_echo "no" >&6; }
29891       tst_allow_alarm="no"
29892     fi
29893   fi
29894   #
29895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
29896 $as_echo_n "checking if alarm might be used... " >&6; }
29897   if test "$tst_links_alarm" = "yes" &&
29898      test "$tst_proto_alarm" = "yes" &&
29899      test "$tst_compi_alarm" = "yes" &&
29900      test "$tst_allow_alarm" = "yes"; then
29901     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29902 $as_echo "yes" >&6; }
29903
29904 cat >>confdefs.h <<_ACEOF
29905 #define HAVE_ALARM 1
29906 _ACEOF
29907
29908     curl_cv_func_alarm="yes"
29909   else
29910     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29911 $as_echo "no" >&6; }
29912     curl_cv_func_alarm="no"
29913   fi
29914
29915
29916 curl_includes_string="\
29917 /* includes start */
29918 #ifdef HAVE_SYS_TYPES_H
29919 #  include <sys/types.h>
29920 #endif
29921 #ifdef HAVE_STRING_H
29922 #  include <string.h>
29923 #endif
29924 #ifdef HAVE_STRINGS_H
29925 #  include <strings.h>
29926 #endif
29927 /* includes end */"
29928   for ac_header in sys/types.h string.h strings.h
29929 do :
29930   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29931 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
29932 "
29933 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29934   cat >>confdefs.h <<_ACEOF
29935 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29936 _ACEOF
29937
29938 fi
29939
29940 done
29941
29942
29943
29944 curl_includes_libgen="\
29945 /* includes start */
29946 #ifdef HAVE_SYS_TYPES_H
29947 #  include <sys/types.h>
29948 #endif
29949 #ifdef HAVE_LIBGEN_H
29950 #  include <libgen.h>
29951 #endif
29952 /* includes end */"
29953   for ac_header in sys/types.h libgen.h
29954 do :
29955   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29956 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
29957 "
29958 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29959   cat >>confdefs.h <<_ACEOF
29960 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29961 _ACEOF
29962
29963 fi
29964
29965 done
29966
29967
29968
29969         #
29970   tst_links_basename="unknown"
29971   tst_proto_basename="unknown"
29972   tst_compi_basename="unknown"
29973   tst_allow_basename="unknown"
29974   #
29975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
29976 $as_echo_n "checking if basename can be linked... " >&6; }
29977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29978 /* end confdefs.h.  */
29979
29980
29981 #define basename innocuous_basename
29982 #ifdef __STDC__
29983 # include <limits.h>
29984 #else
29985 # include <assert.h>
29986 #endif
29987 #undef basename
29988 #ifdef __cplusplus
29989 extern "C"
29990 #endif
29991 char basename ();
29992 #if defined __stub_basename || defined __stub___basename
29993 choke me
29994 #endif
29995
29996 int main (void)
29997 {
29998 return basename ();
29999  ;
30000  return 0;
30001 }
30002
30003 _ACEOF
30004 if ac_fn_c_try_link "$LINENO"; then :
30005
30006     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30007 $as_echo "yes" >&6; }
30008     tst_links_basename="yes"
30009
30010 else
30011
30012     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30013 $as_echo "no" >&6; }
30014     tst_links_basename="no"
30015
30016 fi
30017 rm -f core conftest.err conftest.$ac_objext \
30018     conftest$ac_exeext conftest.$ac_ext
30019   #
30020   if test "$tst_links_basename" = "yes"; then
30021     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
30022 $as_echo_n "checking if basename is prototyped... " >&6; }
30023     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30024 /* end confdefs.h.  */
30025
30026       $curl_includes_string
30027       $curl_includes_libgen
30028       $curl_includes_unistd
30029
30030 _ACEOF
30031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30032   $EGREP "basename" >/dev/null 2>&1; then :
30033
30034       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30035 $as_echo "yes" >&6; }
30036       tst_proto_basename="yes"
30037
30038 else
30039
30040       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30041 $as_echo "no" >&6; }
30042       tst_proto_basename="no"
30043
30044 fi
30045 rm -f conftest*
30046
30047   fi
30048   #
30049   if test "$tst_proto_basename" = "yes"; then
30050     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
30051 $as_echo_n "checking if basename is compilable... " >&6; }
30052     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30053 /* end confdefs.h.  */
30054
30055
30056         $curl_includes_string
30057         $curl_includes_libgen
30058         $curl_includes_unistd
30059
30060 int main (void)
30061 {
30062
30063         if(0 != basename(0))
30064           return 1;
30065
30066  ;
30067  return 0;
30068 }
30069
30070 _ACEOF
30071 if ac_fn_c_try_compile "$LINENO"; then :
30072
30073       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30074 $as_echo "yes" >&6; }
30075       tst_compi_basename="yes"
30076
30077 else
30078
30079       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30080 $as_echo "no" >&6; }
30081       tst_compi_basename="no"
30082
30083 fi
30084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30085   fi
30086   #
30087   if test "$tst_compi_basename" = "yes"; then
30088     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
30089 $as_echo_n "checking if basename usage allowed... " >&6; }
30090     if test "x$curl_disallow_basename" != "xyes"; then
30091       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30092 $as_echo "yes" >&6; }
30093       tst_allow_basename="yes"
30094     else
30095       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30096 $as_echo "no" >&6; }
30097       tst_allow_basename="no"
30098     fi
30099   fi
30100   #
30101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
30102 $as_echo_n "checking if basename might be used... " >&6; }
30103   if test "$tst_links_basename" = "yes" &&
30104      test "$tst_proto_basename" = "yes" &&
30105      test "$tst_compi_basename" = "yes" &&
30106      test "$tst_allow_basename" = "yes"; then
30107     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30108 $as_echo "yes" >&6; }
30109
30110 cat >>confdefs.h <<_ACEOF
30111 #define HAVE_BASENAME 1
30112 _ACEOF
30113
30114     curl_cv_func_basename="yes"
30115   else
30116     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30117 $as_echo "no" >&6; }
30118     curl_cv_func_basename="no"
30119   fi
30120
30121
30122 curl_includes_socket="\
30123 /* includes start */
30124 #ifdef HAVE_SYS_TYPES_H
30125 #  include <sys/types.h>
30126 #endif
30127 #ifdef HAVE_SOCKET_H
30128 #  include <socket.h>
30129 #endif
30130 /* includes end */"
30131   for ac_header in sys/types.h socket.h
30132 do :
30133   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30134 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
30135 "
30136 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30137   cat >>confdefs.h <<_ACEOF
30138 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30139 _ACEOF
30140
30141 fi
30142
30143 done
30144
30145
30146
30147       #
30148   tst_links_closesocket="unknown"
30149   tst_proto_closesocket="unknown"
30150   tst_compi_closesocket="unknown"
30151   tst_allow_closesocket="unknown"
30152   #
30153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
30154 $as_echo_n "checking if closesocket can be linked... " >&6; }
30155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30156 /* end confdefs.h.  */
30157
30158
30159       $curl_includes_winsock2
30160       $curl_includes_socket
30161
30162 int main (void)
30163 {
30164
30165       if(0 != closesocket(0))
30166         return 1;
30167
30168  ;
30169  return 0;
30170 }
30171
30172 _ACEOF
30173 if ac_fn_c_try_link "$LINENO"; then :
30174
30175     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30176 $as_echo "yes" >&6; }
30177     tst_links_closesocket="yes"
30178
30179 else
30180
30181     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30182 $as_echo "no" >&6; }
30183     tst_links_closesocket="no"
30184
30185 fi
30186 rm -f core conftest.err conftest.$ac_objext \
30187     conftest$ac_exeext conftest.$ac_ext
30188   #
30189   if test "$tst_links_closesocket" = "yes"; then
30190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
30191 $as_echo_n "checking if closesocket is prototyped... " >&6; }
30192     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30193 /* end confdefs.h.  */
30194
30195       $curl_includes_winsock2
30196       $curl_includes_socket
30197
30198 _ACEOF
30199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30200   $EGREP "closesocket" >/dev/null 2>&1; then :
30201
30202       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30203 $as_echo "yes" >&6; }
30204       tst_proto_closesocket="yes"
30205
30206 else
30207
30208       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30209 $as_echo "no" >&6; }
30210       tst_proto_closesocket="no"
30211
30212 fi
30213 rm -f conftest*
30214
30215   fi
30216   #
30217   if test "$tst_proto_closesocket" = "yes"; then
30218     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
30219 $as_echo_n "checking if closesocket is compilable... " >&6; }
30220     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30221 /* end confdefs.h.  */
30222
30223
30224         $curl_includes_winsock2
30225         $curl_includes_socket
30226
30227 int main (void)
30228 {
30229
30230         if(0 != closesocket(0))
30231           return 1;
30232
30233  ;
30234  return 0;
30235 }
30236
30237 _ACEOF
30238 if ac_fn_c_try_compile "$LINENO"; then :
30239
30240       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30241 $as_echo "yes" >&6; }
30242       tst_compi_closesocket="yes"
30243
30244 else
30245
30246       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30247 $as_echo "no" >&6; }
30248       tst_compi_closesocket="no"
30249
30250 fi
30251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30252   fi
30253   #
30254   if test "$tst_compi_closesocket" = "yes"; then
30255     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
30256 $as_echo_n "checking if closesocket usage allowed... " >&6; }
30257     if test "x$curl_disallow_closesocket" != "xyes"; then
30258       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30259 $as_echo "yes" >&6; }
30260       tst_allow_closesocket="yes"
30261     else
30262       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30263 $as_echo "no" >&6; }
30264       tst_allow_closesocket="no"
30265     fi
30266   fi
30267   #
30268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
30269 $as_echo_n "checking if closesocket might be used... " >&6; }
30270   if test "$tst_links_closesocket" = "yes" &&
30271      test "$tst_proto_closesocket" = "yes" &&
30272      test "$tst_compi_closesocket" = "yes" &&
30273      test "$tst_allow_closesocket" = "yes"; then
30274     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30275 $as_echo "yes" >&6; }
30276
30277 cat >>confdefs.h <<_ACEOF
30278 #define HAVE_CLOSESOCKET 1
30279 _ACEOF
30280
30281     curl_cv_func_closesocket="yes"
30282   else
30283     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30284 $as_echo "no" >&6; }
30285     curl_cv_func_closesocket="no"
30286   fi
30287
30288
30289     #
30290   tst_links_closesocket_camel="unknown"
30291   tst_proto_closesocket_camel="unknown"
30292   tst_compi_closesocket_camel="unknown"
30293   tst_allow_closesocket_camel="unknown"
30294   #
30295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
30296 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
30297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30298 /* end confdefs.h.  */
30299
30300
30301       $curl_includes_sys_socket
30302
30303 int main (void)
30304 {
30305
30306       if(0 != CloseSocket(0))
30307         return 1;
30308
30309  ;
30310  return 0;
30311 }
30312
30313 _ACEOF
30314 if ac_fn_c_try_link "$LINENO"; then :
30315
30316     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30317 $as_echo "yes" >&6; }
30318     tst_links_closesocket_camel="yes"
30319
30320 else
30321
30322     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30323 $as_echo "no" >&6; }
30324     tst_links_closesocket_camel="no"
30325
30326 fi
30327 rm -f core conftest.err conftest.$ac_objext \
30328     conftest$ac_exeext conftest.$ac_ext
30329   #
30330   if test "$tst_links_closesocket_camel" = "yes"; then
30331     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
30332 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
30333     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30334 /* end confdefs.h.  */
30335
30336       $curl_includes_sys_socket
30337
30338 _ACEOF
30339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30340   $EGREP "CloseSocket" >/dev/null 2>&1; then :
30341
30342       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30343 $as_echo "yes" >&6; }
30344       tst_proto_closesocket_camel="yes"
30345
30346 else
30347
30348       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30349 $as_echo "no" >&6; }
30350       tst_proto_closesocket_camel="no"
30351
30352 fi
30353 rm -f conftest*
30354
30355   fi
30356   #
30357   if test "$tst_proto_closesocket_camel" = "yes"; then
30358     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
30359 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
30360     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30361 /* end confdefs.h.  */
30362
30363
30364         $curl_includes_sys_socket
30365
30366 int main (void)
30367 {
30368
30369         if(0 != CloseSocket(0))
30370           return 1;
30371
30372  ;
30373  return 0;
30374 }
30375
30376 _ACEOF
30377 if ac_fn_c_try_compile "$LINENO"; then :
30378
30379       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30380 $as_echo "yes" >&6; }
30381       tst_compi_closesocket_camel="yes"
30382
30383 else
30384
30385       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30386 $as_echo "no" >&6; }
30387       tst_compi_closesocket_camel="no"
30388
30389 fi
30390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30391   fi
30392   #
30393   if test "$tst_compi_closesocket_camel" = "yes"; then
30394     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
30395 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
30396     if test "x$curl_disallow_closesocket_camel" != "xyes"; then
30397       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30398 $as_echo "yes" >&6; }
30399       tst_allow_closesocket_camel="yes"
30400     else
30401       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30402 $as_echo "no" >&6; }
30403       tst_allow_closesocket_camel="no"
30404     fi
30405   fi
30406   #
30407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
30408 $as_echo_n "checking if CloseSocket might be used... " >&6; }
30409   if test "$tst_links_closesocket_camel" = "yes" &&
30410      test "$tst_proto_closesocket_camel" = "yes" &&
30411      test "$tst_compi_closesocket_camel" = "yes" &&
30412      test "$tst_allow_closesocket_camel" = "yes"; then
30413     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30414 $as_echo "yes" >&6; }
30415
30416 cat >>confdefs.h <<_ACEOF
30417 #define HAVE_CLOSESOCKET_CAMEL 1
30418 _ACEOF
30419
30420     curl_cv_func_closesocket_camel="yes"
30421   else
30422     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30423 $as_echo "no" >&6; }
30424     curl_cv_func_closesocket_camel="no"
30425   fi
30426
30427
30428         #
30429   tst_links_connect="unknown"
30430   tst_proto_connect="unknown"
30431   tst_compi_connect="unknown"
30432   tst_allow_connect="unknown"
30433   #
30434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
30435 $as_echo_n "checking if connect can be linked... " >&6; }
30436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30437 /* end confdefs.h.  */
30438
30439
30440       $curl_includes_winsock2
30441       $curl_includes_sys_socket
30442       $curl_includes_socket
30443
30444 int main (void)
30445 {
30446
30447       if(0 != connect(0, 0, 0))
30448         return 1;
30449
30450  ;
30451  return 0;
30452 }
30453
30454 _ACEOF
30455 if ac_fn_c_try_link "$LINENO"; then :
30456
30457     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30458 $as_echo "yes" >&6; }
30459     tst_links_connect="yes"
30460
30461 else
30462
30463     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30464 $as_echo "no" >&6; }
30465     tst_links_connect="no"
30466
30467 fi
30468 rm -f core conftest.err conftest.$ac_objext \
30469     conftest$ac_exeext conftest.$ac_ext
30470   #
30471   if test "$tst_links_connect" = "yes"; then
30472     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
30473 $as_echo_n "checking if connect is prototyped... " >&6; }
30474     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30475 /* end confdefs.h.  */
30476
30477       $curl_includes_winsock2
30478       $curl_includes_sys_socket
30479       $curl_includes_socket
30480
30481 _ACEOF
30482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30483   $EGREP "connect" >/dev/null 2>&1; then :
30484
30485       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30486 $as_echo "yes" >&6; }
30487       tst_proto_connect="yes"
30488
30489 else
30490
30491       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30492 $as_echo "no" >&6; }
30493       tst_proto_connect="no"
30494
30495 fi
30496 rm -f conftest*
30497
30498   fi
30499   #
30500   if test "$tst_proto_connect" = "yes"; then
30501     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
30502 $as_echo_n "checking if connect is compilable... " >&6; }
30503     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30504 /* end confdefs.h.  */
30505
30506
30507         $curl_includes_winsock2
30508         $curl_includes_sys_socket
30509         $curl_includes_socket
30510
30511 int main (void)
30512 {
30513
30514         if(0 != connect(0, 0, 0))
30515           return 1;
30516
30517  ;
30518  return 0;
30519 }
30520
30521 _ACEOF
30522 if ac_fn_c_try_compile "$LINENO"; then :
30523
30524       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30525 $as_echo "yes" >&6; }
30526       tst_compi_connect="yes"
30527
30528 else
30529
30530       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30531 $as_echo "no" >&6; }
30532       tst_compi_connect="no"
30533
30534 fi
30535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30536   fi
30537   #
30538   if test "$tst_compi_connect" = "yes"; then
30539     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
30540 $as_echo_n "checking if connect usage allowed... " >&6; }
30541     if test "x$curl_disallow_connect" != "xyes"; then
30542       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30543 $as_echo "yes" >&6; }
30544       tst_allow_connect="yes"
30545     else
30546       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30547 $as_echo "no" >&6; }
30548       tst_allow_connect="no"
30549     fi
30550   fi
30551   #
30552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
30553 $as_echo_n "checking if connect might be used... " >&6; }
30554   if test "$tst_links_connect" = "yes" &&
30555      test "$tst_proto_connect" = "yes" &&
30556      test "$tst_compi_connect" = "yes" &&
30557      test "$tst_allow_connect" = "yes"; then
30558     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30559 $as_echo "yes" >&6; }
30560
30561 cat >>confdefs.h <<_ACEOF
30562 #define HAVE_CONNECT 1
30563 _ACEOF
30564
30565     curl_cv_func_connect="yes"
30566   else
30567     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30568 $as_echo "no" >&6; }
30569     curl_cv_func_connect="no"
30570   fi
30571
30572
30573 curl_includes_fcntl="\
30574 /* includes start */
30575 #ifdef HAVE_SYS_TYPES_H
30576 #  include <sys/types.h>
30577 #endif
30578 #ifdef HAVE_UNISTD_H
30579 #  include <unistd.h>
30580 #endif
30581 #ifdef HAVE_FCNTL_H
30582 #  include <fcntl.h>
30583 #endif
30584 /* includes end */"
30585   for ac_header in sys/types.h unistd.h fcntl.h
30586 do :
30587   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30588 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
30589 "
30590 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30591   cat >>confdefs.h <<_ACEOF
30592 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30593 _ACEOF
30594
30595 fi
30596
30597 done
30598
30599
30600
30601     #
30602   tst_links_fcntl="unknown"
30603   tst_proto_fcntl="unknown"
30604   tst_compi_fcntl="unknown"
30605   tst_allow_fcntl="unknown"
30606   #
30607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
30608 $as_echo_n "checking if fcntl can be linked... " >&6; }
30609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30610 /* end confdefs.h.  */
30611
30612
30613 #define fcntl innocuous_fcntl
30614 #ifdef __STDC__
30615 # include <limits.h>
30616 #else
30617 # include <assert.h>
30618 #endif
30619 #undef fcntl
30620 #ifdef __cplusplus
30621 extern "C"
30622 #endif
30623 char fcntl ();
30624 #if defined __stub_fcntl || defined __stub___fcntl
30625 choke me
30626 #endif
30627
30628 int main (void)
30629 {
30630 return fcntl ();
30631  ;
30632  return 0;
30633 }
30634
30635 _ACEOF
30636 if ac_fn_c_try_link "$LINENO"; then :
30637
30638     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30639 $as_echo "yes" >&6; }
30640     tst_links_fcntl="yes"
30641
30642 else
30643
30644     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30645 $as_echo "no" >&6; }
30646     tst_links_fcntl="no"
30647
30648 fi
30649 rm -f core conftest.err conftest.$ac_objext \
30650     conftest$ac_exeext conftest.$ac_ext
30651   #
30652   if test "$tst_links_fcntl" = "yes"; then
30653     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
30654 $as_echo_n "checking if fcntl is prototyped... " >&6; }
30655     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30656 /* end confdefs.h.  */
30657
30658       $curl_includes_fcntl
30659
30660 _ACEOF
30661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30662   $EGREP "fcntl" >/dev/null 2>&1; then :
30663
30664       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30665 $as_echo "yes" >&6; }
30666       tst_proto_fcntl="yes"
30667
30668 else
30669
30670       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30671 $as_echo "no" >&6; }
30672       tst_proto_fcntl="no"
30673
30674 fi
30675 rm -f conftest*
30676
30677   fi
30678   #
30679   if test "$tst_proto_fcntl" = "yes"; then
30680     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
30681 $as_echo_n "checking if fcntl is compilable... " >&6; }
30682     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30683 /* end confdefs.h.  */
30684
30685
30686         $curl_includes_fcntl
30687
30688 int main (void)
30689 {
30690
30691         if(0 != fcntl(0, 0, 0))
30692           return 1;
30693
30694  ;
30695  return 0;
30696 }
30697
30698 _ACEOF
30699 if ac_fn_c_try_compile "$LINENO"; then :
30700
30701       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30702 $as_echo "yes" >&6; }
30703       tst_compi_fcntl="yes"
30704
30705 else
30706
30707       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30708 $as_echo "no" >&6; }
30709       tst_compi_fcntl="no"
30710
30711 fi
30712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30713   fi
30714   #
30715   if test "$tst_compi_fcntl" = "yes"; then
30716     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
30717 $as_echo_n "checking if fcntl usage allowed... " >&6; }
30718     if test "x$curl_disallow_fcntl" != "xyes"; then
30719       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30720 $as_echo "yes" >&6; }
30721       tst_allow_fcntl="yes"
30722     else
30723       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30724 $as_echo "no" >&6; }
30725       tst_allow_fcntl="no"
30726     fi
30727   fi
30728   #
30729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
30730 $as_echo_n "checking if fcntl might be used... " >&6; }
30731   if test "$tst_links_fcntl" = "yes" &&
30732      test "$tst_proto_fcntl" = "yes" &&
30733      test "$tst_compi_fcntl" = "yes" &&
30734      test "$tst_allow_fcntl" = "yes"; then
30735     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30736 $as_echo "yes" >&6; }
30737
30738 cat >>confdefs.h <<_ACEOF
30739 #define HAVE_FCNTL 1
30740 _ACEOF
30741
30742     curl_cv_func_fcntl="yes"
30743
30744   #
30745   tst_compi_fcntl_o_nonblock="unknown"
30746   tst_allow_fcntl_o_nonblock="unknown"
30747   #
30748   case $host_os in
30749     sunos4* | aix3* | beos*)
30750             curl_disallow_fcntl_o_nonblock="yes"
30751       ;;
30752   esac
30753   #
30754   if test "$curl_cv_func_fcntl" = "yes"; then
30755     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
30756 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
30757     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30758 /* end confdefs.h.  */
30759
30760
30761         $curl_includes_fcntl
30762
30763 int main (void)
30764 {
30765
30766         int flags = 0;
30767         if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
30768           return 1;
30769
30770  ;
30771  return 0;
30772 }
30773
30774 _ACEOF
30775 if ac_fn_c_try_compile "$LINENO"; then :
30776
30777       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30778 $as_echo "yes" >&6; }
30779       tst_compi_fcntl_o_nonblock="yes"
30780
30781 else
30782
30783       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30784 $as_echo "no" >&6; }
30785       tst_compi_fcntl_o_nonblock="no"
30786
30787 fi
30788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30789   fi
30790   #
30791   if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
30792     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
30793 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
30794     if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
30795       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30796 $as_echo "yes" >&6; }
30797       tst_allow_fcntl_o_nonblock="yes"
30798     else
30799       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30800 $as_echo "no" >&6; }
30801       tst_allow_fcntl_o_nonblock="no"
30802     fi
30803   fi
30804   #
30805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
30806 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
30807   if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
30808      test "$tst_allow_fcntl_o_nonblock" = "yes"; then
30809     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30810 $as_echo "yes" >&6; }
30811
30812 cat >>confdefs.h <<_ACEOF
30813 #define HAVE_FCNTL_O_NONBLOCK 1
30814 _ACEOF
30815
30816     curl_cv_func_fcntl_o_nonblock="yes"
30817   else
30818     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30819 $as_echo "no" >&6; }
30820     curl_cv_func_fcntl_o_nonblock="no"
30821   fi
30822
30823   else
30824     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30825 $as_echo "no" >&6; }
30826     curl_cv_func_fcntl="no"
30827   fi
30828
30829
30830 curl_includes_stdio="\
30831 /* includes start */
30832 #ifdef HAVE_SYS_TYPES_H
30833 #  include <sys/types.h>
30834 #endif
30835 #ifdef HAVE_STDIO_H
30836 #  include <stdio.h>
30837 #endif
30838 /* includes end */"
30839   for ac_header in sys/types.h stdio.h
30840 do :
30841   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30842 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
30843 "
30844 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30845   cat >>confdefs.h <<_ACEOF
30846 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30847 _ACEOF
30848
30849 fi
30850
30851 done
30852
30853
30854
30855     #
30856   tst_links_fdopen="unknown"
30857   tst_proto_fdopen="unknown"
30858   tst_compi_fdopen="unknown"
30859   tst_allow_fdopen="unknown"
30860   #
30861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
30862 $as_echo_n "checking if fdopen can be linked... " >&6; }
30863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30864 /* end confdefs.h.  */
30865
30866
30867 #define fdopen innocuous_fdopen
30868 #ifdef __STDC__
30869 # include <limits.h>
30870 #else
30871 # include <assert.h>
30872 #endif
30873 #undef fdopen
30874 #ifdef __cplusplus
30875 extern "C"
30876 #endif
30877 char fdopen ();
30878 #if defined __stub_fdopen || defined __stub___fdopen
30879 choke me
30880 #endif
30881
30882 int main (void)
30883 {
30884 return fdopen ();
30885  ;
30886  return 0;
30887 }
30888
30889 _ACEOF
30890 if ac_fn_c_try_link "$LINENO"; then :
30891
30892     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30893 $as_echo "yes" >&6; }
30894     tst_links_fdopen="yes"
30895
30896 else
30897
30898     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30899 $as_echo "no" >&6; }
30900     tst_links_fdopen="no"
30901
30902 fi
30903 rm -f core conftest.err conftest.$ac_objext \
30904     conftest$ac_exeext conftest.$ac_ext
30905   #
30906   if test "$tst_links_fdopen" = "yes"; then
30907     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
30908 $as_echo_n "checking if fdopen is prototyped... " >&6; }
30909     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30910 /* end confdefs.h.  */
30911
30912       $curl_includes_stdio
30913
30914 _ACEOF
30915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30916   $EGREP "fdopen" >/dev/null 2>&1; then :
30917
30918       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30919 $as_echo "yes" >&6; }
30920       tst_proto_fdopen="yes"
30921
30922 else
30923
30924       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30925 $as_echo "no" >&6; }
30926       tst_proto_fdopen="no"
30927
30928 fi
30929 rm -f conftest*
30930
30931   fi
30932   #
30933   if test "$tst_proto_fdopen" = "yes"; then
30934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
30935 $as_echo_n "checking if fdopen is compilable... " >&6; }
30936     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30937 /* end confdefs.h.  */
30938
30939
30940         $curl_includes_stdio
30941
30942 int main (void)
30943 {
30944
30945         if(0 != fdopen(0, 0))
30946           return 1;
30947
30948  ;
30949  return 0;
30950 }
30951
30952 _ACEOF
30953 if ac_fn_c_try_compile "$LINENO"; then :
30954
30955       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30956 $as_echo "yes" >&6; }
30957       tst_compi_fdopen="yes"
30958
30959 else
30960
30961       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30962 $as_echo "no" >&6; }
30963       tst_compi_fdopen="no"
30964
30965 fi
30966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30967   fi
30968   #
30969   if test "$tst_compi_fdopen" = "yes"; then
30970     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
30971 $as_echo_n "checking if fdopen usage allowed... " >&6; }
30972     if test "x$curl_disallow_fdopen" != "xyes"; then
30973       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30974 $as_echo "yes" >&6; }
30975       tst_allow_fdopen="yes"
30976     else
30977       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30978 $as_echo "no" >&6; }
30979       tst_allow_fdopen="no"
30980     fi
30981   fi
30982   #
30983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
30984 $as_echo_n "checking if fdopen might be used... " >&6; }
30985   if test "$tst_links_fdopen" = "yes" &&
30986      test "$tst_proto_fdopen" = "yes" &&
30987      test "$tst_compi_fdopen" = "yes" &&
30988      test "$tst_allow_fdopen" = "yes"; then
30989     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30990 $as_echo "yes" >&6; }
30991
30992 cat >>confdefs.h <<_ACEOF
30993 #define HAVE_FDOPEN 1
30994 _ACEOF
30995
30996     curl_cv_func_fdopen="yes"
30997   else
30998     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30999 $as_echo "no" >&6; }
31000     curl_cv_func_fdopen="no"
31001   fi
31002
31003
31004 curl_includes_netdb="\
31005 /* includes start */
31006 #ifdef HAVE_SYS_TYPES_H
31007 #  include <sys/types.h>
31008 #endif
31009 #ifdef HAVE_NETDB_H
31010 #  include <netdb.h>
31011 #endif
31012 /* includes end */"
31013   for ac_header in sys/types.h netdb.h
31014 do :
31015   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31016 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
31017 "
31018 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31019   cat >>confdefs.h <<_ACEOF
31020 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31021 _ACEOF
31022
31023 fi
31024
31025 done
31026
31027
31028
31029         #
31030   tst_links_freeaddrinfo="unknown"
31031   tst_proto_freeaddrinfo="unknown"
31032   tst_compi_freeaddrinfo="unknown"
31033   tst_allow_freeaddrinfo="unknown"
31034   #
31035   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
31036 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
31037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31038 /* end confdefs.h.  */
31039
31040
31041       $curl_includes_ws2tcpip
31042       $curl_includes_sys_socket
31043       $curl_includes_netdb
31044
31045 int main (void)
31046 {
31047
31048       freeaddrinfo(0);
31049
31050  ;
31051  return 0;
31052 }
31053
31054 _ACEOF
31055 if ac_fn_c_try_link "$LINENO"; then :
31056
31057     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31058 $as_echo "yes" >&6; }
31059     tst_links_freeaddrinfo="yes"
31060
31061 else
31062
31063     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31064 $as_echo "no" >&6; }
31065     tst_links_freeaddrinfo="no"
31066
31067 fi
31068 rm -f core conftest.err conftest.$ac_objext \
31069     conftest$ac_exeext conftest.$ac_ext
31070   #
31071   if test "$tst_links_freeaddrinfo" = "yes"; then
31072     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
31073 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
31074     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31075 /* end confdefs.h.  */
31076
31077       $curl_includes_ws2tcpip
31078       $curl_includes_sys_socket
31079       $curl_includes_netdb
31080
31081 _ACEOF
31082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31083   $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
31084
31085       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31086 $as_echo "yes" >&6; }
31087       tst_proto_freeaddrinfo="yes"
31088
31089 else
31090
31091       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31092 $as_echo "no" >&6; }
31093       tst_proto_freeaddrinfo="no"
31094
31095 fi
31096 rm -f conftest*
31097
31098   fi
31099   #
31100   if test "$tst_proto_freeaddrinfo" = "yes"; then
31101     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
31102 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
31103     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31104 /* end confdefs.h.  */
31105
31106
31107         $curl_includes_ws2tcpip
31108         $curl_includes_sys_socket
31109         $curl_includes_netdb
31110
31111 int main (void)
31112 {
31113
31114         freeaddrinfo(0);
31115
31116  ;
31117  return 0;
31118 }
31119
31120 _ACEOF
31121 if ac_fn_c_try_compile "$LINENO"; then :
31122
31123       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31124 $as_echo "yes" >&6; }
31125       tst_compi_freeaddrinfo="yes"
31126
31127 else
31128
31129       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31130 $as_echo "no" >&6; }
31131       tst_compi_freeaddrinfo="no"
31132
31133 fi
31134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31135   fi
31136   #
31137   if test "$tst_compi_freeaddrinfo" = "yes"; then
31138     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
31139 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
31140     if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
31141       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31142 $as_echo "yes" >&6; }
31143       tst_allow_freeaddrinfo="yes"
31144     else
31145       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31146 $as_echo "no" >&6; }
31147       tst_allow_freeaddrinfo="no"
31148     fi
31149   fi
31150   #
31151   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
31152 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
31153   if test "$tst_links_freeaddrinfo" = "yes" &&
31154      test "$tst_proto_freeaddrinfo" = "yes" &&
31155      test "$tst_compi_freeaddrinfo" = "yes" &&
31156      test "$tst_allow_freeaddrinfo" = "yes"; then
31157     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31158 $as_echo "yes" >&6; }
31159
31160 cat >>confdefs.h <<_ACEOF
31161 #define HAVE_FREEADDRINFO 1
31162 _ACEOF
31163
31164     curl_cv_func_freeaddrinfo="yes"
31165   else
31166     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31167 $as_echo "no" >&6; }
31168     curl_cv_func_freeaddrinfo="no"
31169   fi
31170
31171
31172 curl_includes_ifaddrs="\
31173 /* includes start */
31174 #ifdef HAVE_SYS_TYPES_H
31175 #  include <sys/types.h>
31176 #endif
31177 #ifdef HAVE_SYS_SOCKET_H
31178 #  include <sys/socket.h>
31179 #endif
31180 #ifdef HAVE_NETINET_IN_H
31181 #  include <netinet/in.h>
31182 #endif
31183 #ifdef HAVE_IFADDRS_H
31184 #  include <ifaddrs.h>
31185 #endif
31186 /* includes end */"
31187   for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
31188 do :
31189   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31190 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
31191 "
31192 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31193   cat >>confdefs.h <<_ACEOF
31194 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31195 _ACEOF
31196
31197 fi
31198
31199 done
31200
31201
31202
31203     #
31204   tst_links_freeifaddrs="unknown"
31205   tst_proto_freeifaddrs="unknown"
31206   tst_compi_freeifaddrs="unknown"
31207   tst_allow_freeifaddrs="unknown"
31208   #
31209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
31210 $as_echo_n "checking if freeifaddrs can be linked... " >&6; }
31211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31212 /* end confdefs.h.  */
31213
31214
31215 #define freeifaddrs innocuous_freeifaddrs
31216 #ifdef __STDC__
31217 # include <limits.h>
31218 #else
31219 # include <assert.h>
31220 #endif
31221 #undef freeifaddrs
31222 #ifdef __cplusplus
31223 extern "C"
31224 #endif
31225 char freeifaddrs ();
31226 #if defined __stub_freeifaddrs || defined __stub___freeifaddrs
31227 choke me
31228 #endif
31229
31230 int main (void)
31231 {
31232 return freeifaddrs ();
31233  ;
31234  return 0;
31235 }
31236
31237 _ACEOF
31238 if ac_fn_c_try_link "$LINENO"; then :
31239
31240     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31241 $as_echo "yes" >&6; }
31242     tst_links_freeifaddrs="yes"
31243
31244 else
31245
31246     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31247 $as_echo "no" >&6; }
31248     tst_links_freeifaddrs="no"
31249
31250 fi
31251 rm -f core conftest.err conftest.$ac_objext \
31252     conftest$ac_exeext conftest.$ac_ext
31253   #
31254   if test "$tst_links_freeifaddrs" = "yes"; then
31255     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
31256 $as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
31257     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31258 /* end confdefs.h.  */
31259
31260       $curl_includes_ifaddrs
31261
31262 _ACEOF
31263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31264   $EGREP "freeifaddrs" >/dev/null 2>&1; then :
31265
31266       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31267 $as_echo "yes" >&6; }
31268       tst_proto_freeifaddrs="yes"
31269
31270 else
31271
31272       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31273 $as_echo "no" >&6; }
31274       tst_proto_freeifaddrs="no"
31275
31276 fi
31277 rm -f conftest*
31278
31279   fi
31280   #
31281   if test "$tst_proto_freeifaddrs" = "yes"; then
31282     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
31283 $as_echo_n "checking if freeifaddrs is compilable... " >&6; }
31284     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31285 /* end confdefs.h.  */
31286
31287
31288         $curl_includes_ifaddrs
31289
31290 int main (void)
31291 {
31292
31293         freeifaddrs(0);
31294
31295  ;
31296  return 0;
31297 }
31298
31299 _ACEOF
31300 if ac_fn_c_try_compile "$LINENO"; then :
31301
31302       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31303 $as_echo "yes" >&6; }
31304       tst_compi_freeifaddrs="yes"
31305
31306 else
31307
31308       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31309 $as_echo "no" >&6; }
31310       tst_compi_freeifaddrs="no"
31311
31312 fi
31313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31314   fi
31315   #
31316   if test "$tst_compi_freeifaddrs" = "yes"; then
31317     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
31318 $as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
31319     if test "x$curl_disallow_freeifaddrs" != "xyes"; then
31320       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31321 $as_echo "yes" >&6; }
31322       tst_allow_freeifaddrs="yes"
31323     else
31324       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31325 $as_echo "no" >&6; }
31326       tst_allow_freeifaddrs="no"
31327     fi
31328   fi
31329   #
31330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
31331 $as_echo_n "checking if freeifaddrs might be used... " >&6; }
31332   if test "$tst_links_freeifaddrs" = "yes" &&
31333      test "$tst_proto_freeifaddrs" = "yes" &&
31334      test "$tst_compi_freeifaddrs" = "yes" &&
31335      test "$tst_allow_freeifaddrs" = "yes"; then
31336     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31337 $as_echo "yes" >&6; }
31338
31339 cat >>confdefs.h <<_ACEOF
31340 #define HAVE_FREEIFADDRS 1
31341 _ACEOF
31342
31343     curl_cv_func_freeifaddrs="yes"
31344   else
31345     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31346 $as_echo "no" >&6; }
31347     curl_cv_func_freeifaddrs="no"
31348   fi
31349
31350
31351 curl_includes_sys_xattr="\
31352 /* includes start */
31353 #ifdef HAVE_SYS_TYPES_H
31354 #  include <sys/types.h>
31355 #endif
31356 #ifdef HAVE_SYS_XATTR_H
31357 #  include <sys/xattr.h>
31358 #endif
31359 /* includes end */"
31360   for ac_header in sys/types.h sys/xattr.h
31361 do :
31362   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31363 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
31364 "
31365 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31366   cat >>confdefs.h <<_ACEOF
31367 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31368 _ACEOF
31369
31370 fi
31371
31372 done
31373
31374
31375
31376     #
31377   tst_links_fsetxattr="unknown"
31378   tst_proto_fsetxattr="unknown"
31379   tst_compi_fsetxattr="unknown"
31380   tst_allow_fsetxattr="unknown"
31381   tst_nargs_fsetxattr="unknown"
31382   #
31383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
31384 $as_echo_n "checking if fsetxattr can be linked... " >&6; }
31385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31386 /* end confdefs.h.  */
31387
31388
31389 #define fsetxattr innocuous_fsetxattr
31390 #ifdef __STDC__
31391 # include <limits.h>
31392 #else
31393 # include <assert.h>
31394 #endif
31395 #undef fsetxattr
31396 #ifdef __cplusplus
31397 extern "C"
31398 #endif
31399 char fsetxattr ();
31400 #if defined __stub_fsetxattr || defined __stub___fsetxattr
31401 choke me
31402 #endif
31403
31404 int main (void)
31405 {
31406 return fsetxattr ();
31407  ;
31408  return 0;
31409 }
31410
31411 _ACEOF
31412 if ac_fn_c_try_link "$LINENO"; then :
31413
31414     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31415 $as_echo "yes" >&6; }
31416     tst_links_fsetxattr="yes"
31417
31418 else
31419
31420     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31421 $as_echo "no" >&6; }
31422     tst_links_fsetxattr="no"
31423
31424 fi
31425 rm -f core conftest.err conftest.$ac_objext \
31426     conftest$ac_exeext conftest.$ac_ext
31427   #
31428   if test "$tst_links_fsetxattr" = "yes"; then
31429     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
31430 $as_echo_n "checking if fsetxattr is prototyped... " >&6; }
31431     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31432 /* end confdefs.h.  */
31433
31434       $curl_includes_sys_xattr
31435
31436 _ACEOF
31437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31438   $EGREP "fsetxattr" >/dev/null 2>&1; then :
31439
31440       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31441 $as_echo "yes" >&6; }
31442       tst_proto_fsetxattr="yes"
31443
31444 else
31445
31446       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31447 $as_echo "no" >&6; }
31448       tst_proto_fsetxattr="no"
31449
31450 fi
31451 rm -f conftest*
31452
31453   fi
31454   #
31455   if test "$tst_proto_fsetxattr" = "yes"; then
31456     if test "$tst_nargs_fsetxattr" = "unknown"; then
31457       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
31458 $as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
31459       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31460 /* end confdefs.h.  */
31461
31462
31463           $curl_includes_sys_xattr
31464
31465 int main (void)
31466 {
31467
31468           if(0 != fsetxattr(0, 0, 0, 0, 0))
31469             return 1;
31470
31471  ;
31472  return 0;
31473 }
31474
31475 _ACEOF
31476 if ac_fn_c_try_compile "$LINENO"; then :
31477
31478         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31479 $as_echo "yes" >&6; }
31480         tst_compi_fsetxattr="yes"
31481         tst_nargs_fsetxattr="5"
31482
31483 else
31484
31485         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31486 $as_echo "no" >&6; }
31487         tst_compi_fsetxattr="no"
31488
31489 fi
31490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31491     fi
31492     if test "$tst_nargs_fsetxattr" = "unknown"; then
31493       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
31494 $as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
31495       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31496 /* end confdefs.h.  */
31497
31498
31499           $curl_includes_sys_xattr
31500
31501 int main (void)
31502 {
31503
31504           if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
31505             return 1;
31506
31507  ;
31508  return 0;
31509 }
31510
31511 _ACEOF
31512 if ac_fn_c_try_compile "$LINENO"; then :
31513
31514         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31515 $as_echo "yes" >&6; }
31516         tst_compi_fsetxattr="yes"
31517         tst_nargs_fsetxattr="6"
31518
31519 else
31520
31521         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31522 $as_echo "no" >&6; }
31523         tst_compi_fsetxattr="no"
31524
31525 fi
31526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31527     fi
31528     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
31529 $as_echo_n "checking if fsetxattr is compilable... " >&6; }
31530     if test "$tst_compi_fsetxattr" = "yes"; then
31531       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31532 $as_echo "yes" >&6; }
31533     else
31534       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31535 $as_echo "no" >&6; }
31536     fi
31537   fi
31538   #
31539   if test "$tst_compi_fsetxattr" = "yes"; then
31540     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
31541 $as_echo_n "checking if fsetxattr usage allowed... " >&6; }
31542     if test "x$curl_disallow_fsetxattr" != "xyes"; then
31543       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31544 $as_echo "yes" >&6; }
31545       tst_allow_fsetxattr="yes"
31546     else
31547       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31548 $as_echo "no" >&6; }
31549       tst_allow_fsetxattr="no"
31550     fi
31551   fi
31552   #
31553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
31554 $as_echo_n "checking if fsetxattr might be used... " >&6; }
31555   if test "$tst_links_fsetxattr" = "yes" &&
31556      test "$tst_proto_fsetxattr" = "yes" &&
31557      test "$tst_compi_fsetxattr" = "yes" &&
31558      test "$tst_allow_fsetxattr" = "yes"; then
31559     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31560 $as_echo "yes" >&6; }
31561
31562 cat >>confdefs.h <<_ACEOF
31563 #define HAVE_FSETXATTR 1
31564 _ACEOF
31565
31566             #
31567     if test "$tst_nargs_fsetxattr" -eq "5"; then
31568
31569 $as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
31570
31571     elif test "$tst_nargs_fsetxattr" -eq "6"; then
31572
31573 $as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
31574
31575     fi
31576     #
31577     curl_cv_func_fsetxattr="yes"
31578   else
31579     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31580 $as_echo "no" >&6; }
31581     curl_cv_func_fsetxattr="no"
31582   fi
31583
31584
31585     #
31586   tst_links_ftruncate="unknown"
31587   tst_proto_ftruncate="unknown"
31588   tst_compi_ftruncate="unknown"
31589   tst_allow_ftruncate="unknown"
31590   #
31591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
31592 $as_echo_n "checking if ftruncate can be linked... " >&6; }
31593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31594 /* end confdefs.h.  */
31595
31596
31597 #define ftruncate innocuous_ftruncate
31598 #ifdef __STDC__
31599 # include <limits.h>
31600 #else
31601 # include <assert.h>
31602 #endif
31603 #undef ftruncate
31604 #ifdef __cplusplus
31605 extern "C"
31606 #endif
31607 char ftruncate ();
31608 #if defined __stub_ftruncate || defined __stub___ftruncate
31609 choke me
31610 #endif
31611
31612 int main (void)
31613 {
31614 return ftruncate ();
31615  ;
31616  return 0;
31617 }
31618
31619 _ACEOF
31620 if ac_fn_c_try_link "$LINENO"; then :
31621
31622     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31623 $as_echo "yes" >&6; }
31624     tst_links_ftruncate="yes"
31625
31626 else
31627
31628     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31629 $as_echo "no" >&6; }
31630     tst_links_ftruncate="no"
31631
31632 fi
31633 rm -f core conftest.err conftest.$ac_objext \
31634     conftest$ac_exeext conftest.$ac_ext
31635   #
31636   if test "$tst_links_ftruncate" = "yes"; then
31637     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
31638 $as_echo_n "checking if ftruncate is prototyped... " >&6; }
31639     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31640 /* end confdefs.h.  */
31641
31642       $curl_includes_unistd
31643
31644 _ACEOF
31645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31646   $EGREP "ftruncate" >/dev/null 2>&1; then :
31647
31648       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31649 $as_echo "yes" >&6; }
31650       tst_proto_ftruncate="yes"
31651
31652 else
31653
31654       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31655 $as_echo "no" >&6; }
31656       tst_proto_ftruncate="no"
31657
31658 fi
31659 rm -f conftest*
31660
31661   fi
31662   #
31663   if test "$tst_proto_ftruncate" = "yes"; then
31664     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
31665 $as_echo_n "checking if ftruncate is compilable... " >&6; }
31666     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31667 /* end confdefs.h.  */
31668
31669
31670         $curl_includes_unistd
31671
31672 int main (void)
31673 {
31674
31675         if(0 != ftruncate(0, 0))
31676           return 1;
31677
31678  ;
31679  return 0;
31680 }
31681
31682 _ACEOF
31683 if ac_fn_c_try_compile "$LINENO"; then :
31684
31685       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31686 $as_echo "yes" >&6; }
31687       tst_compi_ftruncate="yes"
31688
31689 else
31690
31691       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31692 $as_echo "no" >&6; }
31693       tst_compi_ftruncate="no"
31694
31695 fi
31696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31697   fi
31698   #
31699   if test "$tst_compi_ftruncate" = "yes"; then
31700     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
31701 $as_echo_n "checking if ftruncate usage allowed... " >&6; }
31702     if test "x$curl_disallow_ftruncate" != "xyes"; then
31703       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31704 $as_echo "yes" >&6; }
31705       tst_allow_ftruncate="yes"
31706     else
31707       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31708 $as_echo "no" >&6; }
31709       tst_allow_ftruncate="no"
31710     fi
31711   fi
31712   #
31713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
31714 $as_echo_n "checking if ftruncate might be used... " >&6; }
31715   if test "$tst_links_ftruncate" = "yes" &&
31716      test "$tst_proto_ftruncate" = "yes" &&
31717      test "$tst_compi_ftruncate" = "yes" &&
31718      test "$tst_allow_ftruncate" = "yes"; then
31719     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31720 $as_echo "yes" >&6; }
31721
31722 cat >>confdefs.h <<_ACEOF
31723 #define HAVE_FTRUNCATE 1
31724 _ACEOF
31725
31726     curl_cv_func_ftruncate="yes"
31727   else
31728     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31729 $as_echo "no" >&6; }
31730     curl_cv_func_ftruncate="no"
31731   fi
31732
31733
31734 curl_includes_stdlib="\
31735 /* includes start */
31736 #ifdef HAVE_SYS_TYPES_H
31737 #  include <sys/types.h>
31738 #endif
31739 #ifdef HAVE_STDLIB_H
31740 #  include <stdlib.h>
31741 #endif
31742 /* includes end */"
31743   for ac_header in sys/types.h stdlib.h
31744 do :
31745   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31746 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
31747 "
31748 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31749   cat >>confdefs.h <<_ACEOF
31750 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31751 _ACEOF
31752
31753 fi
31754
31755 done
31756
31757
31758
31759               #
31760   tst_links_getaddrinfo="unknown"
31761   tst_proto_getaddrinfo="unknown"
31762   tst_compi_getaddrinfo="unknown"
31763   tst_works_getaddrinfo="unknown"
31764   tst_allow_getaddrinfo="unknown"
31765   tst_tsafe_getaddrinfo="unknown"
31766   #
31767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
31768 $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
31769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31770 /* end confdefs.h.  */
31771
31772
31773       $curl_includes_ws2tcpip
31774       $curl_includes_sys_socket
31775       $curl_includes_netdb
31776
31777 int main (void)
31778 {
31779
31780       if(0 != getaddrinfo(0, 0, 0, 0))
31781         return 1;
31782
31783  ;
31784  return 0;
31785 }
31786
31787 _ACEOF
31788 if ac_fn_c_try_link "$LINENO"; then :
31789
31790     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31791 $as_echo "yes" >&6; }
31792     tst_links_getaddrinfo="yes"
31793
31794 else
31795
31796     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31797 $as_echo "no" >&6; }
31798     tst_links_getaddrinfo="no"
31799
31800 fi
31801 rm -f core conftest.err conftest.$ac_objext \
31802     conftest$ac_exeext conftest.$ac_ext
31803   #
31804   if test "$tst_links_getaddrinfo" = "yes"; then
31805     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
31806 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
31807     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31808 /* end confdefs.h.  */
31809
31810       $curl_includes_ws2tcpip
31811       $curl_includes_sys_socket
31812       $curl_includes_netdb
31813
31814 _ACEOF
31815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31816   $EGREP "getaddrinfo" >/dev/null 2>&1; then :
31817
31818       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31819 $as_echo "yes" >&6; }
31820       tst_proto_getaddrinfo="yes"
31821
31822 else
31823
31824       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31825 $as_echo "no" >&6; }
31826       tst_proto_getaddrinfo="no"
31827
31828 fi
31829 rm -f conftest*
31830
31831   fi
31832   #
31833   if test "$tst_proto_getaddrinfo" = "yes"; then
31834     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
31835 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
31836     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31837 /* end confdefs.h.  */
31838
31839
31840         $curl_includes_ws2tcpip
31841         $curl_includes_sys_socket
31842         $curl_includes_netdb
31843
31844 int main (void)
31845 {
31846
31847         if(0 != getaddrinfo(0, 0, 0, 0))
31848           return 1;
31849
31850  ;
31851  return 0;
31852 }
31853
31854 _ACEOF
31855 if ac_fn_c_try_compile "$LINENO"; then :
31856
31857       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31858 $as_echo "yes" >&6; }
31859       tst_compi_getaddrinfo="yes"
31860
31861 else
31862
31863       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31864 $as_echo "no" >&6; }
31865       tst_compi_getaddrinfo="no"
31866
31867 fi
31868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31869   fi
31870   #
31871     if test "x$cross_compiling" != "xyes" &&
31872     test "$tst_compi_getaddrinfo" = "yes"; then
31873     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
31874 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
31875     if test "$cross_compiling" = yes; then :
31876   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31878 as_fn_error $? "cannot run test program while cross compiling
31879 See \`config.log' for more details" "$LINENO" 5; }
31880 else
31881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31882 /* end confdefs.h.  */
31883
31884
31885         $curl_includes_ws2tcpip
31886         $curl_includes_stdlib
31887         $curl_includes_string
31888         $curl_includes_sys_socket
31889         $curl_includes_netdb
31890
31891 int main (void)
31892 {
31893
31894         struct addrinfo hints;
31895         struct addrinfo *ai = 0;
31896         int error;
31897
31898         #ifdef HAVE_WINSOCK2_H
31899         WSADATA wsa;
31900         if (WSAStartup(MAKEWORD(2,2), &wsa))
31901                 exit(2);
31902         #endif
31903
31904         memset(&hints, 0, sizeof(hints));
31905         hints.ai_flags = AI_NUMERICHOST;
31906         hints.ai_family = AF_UNSPEC;
31907         hints.ai_socktype = SOCK_STREAM;
31908         error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
31909         if(error || !ai)
31910           exit(1); /* fail */
31911         else
31912           exit(0);
31913
31914  ;
31915  return 0;
31916 }
31917
31918 _ACEOF
31919 if ac_fn_c_try_run "$LINENO"; then :
31920
31921       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31922 $as_echo "yes" >&6; }
31923       tst_works_getaddrinfo="yes"
31924
31925 else
31926
31927       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31928 $as_echo "no" >&6; }
31929       tst_works_getaddrinfo="no"
31930
31931 fi
31932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31933   conftest.$ac_objext conftest.beam conftest.$ac_ext
31934 fi
31935
31936   fi
31937   #
31938   if test "$tst_compi_getaddrinfo" = "yes" &&
31939     test "$tst_works_getaddrinfo" != "no"; then
31940     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
31941 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
31942     if test "x$curl_disallow_getaddrinfo" != "xyes"; then
31943       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31944 $as_echo "yes" >&6; }
31945       tst_allow_getaddrinfo="yes"
31946     else
31947       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31948 $as_echo "no" >&6; }
31949       tst_allow_getaddrinfo="no"
31950     fi
31951   fi
31952   #
31953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
31954 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
31955   if test "$tst_links_getaddrinfo" = "yes" &&
31956      test "$tst_proto_getaddrinfo" = "yes" &&
31957      test "$tst_compi_getaddrinfo" = "yes" &&
31958      test "$tst_allow_getaddrinfo" = "yes" &&
31959      test "$tst_works_getaddrinfo" != "no"; then
31960     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31961 $as_echo "yes" >&6; }
31962
31963 cat >>confdefs.h <<_ACEOF
31964 #define HAVE_GETADDRINFO 1
31965 _ACEOF
31966
31967     curl_cv_func_getaddrinfo="yes"
31968   else
31969     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31970 $as_echo "no" >&6; }
31971     curl_cv_func_getaddrinfo="no"
31972     curl_cv_func_getaddrinfo_threadsafe="no"
31973   fi
31974   #
31975   if test "$curl_cv_func_getaddrinfo" = "yes"; then
31976     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
31977 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
31978     case $host_os in
31979       aix[1234].* | aix5.[01].*)
31980                 tst_tsafe_getaddrinfo="no"
31981         ;;
31982       aix*)
31983                 tst_tsafe_getaddrinfo="yes"
31984         ;;
31985       darwin[12345].*)
31986                 tst_tsafe_getaddrinfo="no"
31987         ;;
31988       darwin*)
31989                 tst_tsafe_getaddrinfo="yes"
31990         ;;
31991       freebsd[1234].* | freebsd5.[1234]*)
31992                 tst_tsafe_getaddrinfo="no"
31993         ;;
31994       freebsd*)
31995                 tst_tsafe_getaddrinfo="yes"
31996         ;;
31997       hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
31998                 tst_tsafe_getaddrinfo="no"
31999         ;;
32000       hpux*)
32001                 tst_tsafe_getaddrinfo="yes"
32002         ;;
32003       netbsd[123].*)
32004                 tst_tsafe_getaddrinfo="no"
32005         ;;
32006       netbsd*)
32007                 tst_tsafe_getaddrinfo="yes"
32008         ;;
32009       *bsd*)
32010                 tst_tsafe_getaddrinfo="no"
32011         ;;
32012       solaris2*)
32013                 tst_tsafe_getaddrinfo="yes"
32014         ;;
32015     esac
32016     if test "$tst_tsafe_getaddrinfo" = "unknown" &&
32017        test "$curl_cv_native_windows" = "yes"; then
32018       tst_tsafe_getaddrinfo="yes"
32019     fi
32020     if test "$tst_tsafe_getaddrinfo" = "unknown"; then
32021
32022
32023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32024 /* end confdefs.h.  */
32025
32026
32027         $curl_includes_sys_socket
32028         $curl_includes_netdb
32029
32030 int main (void)
32031 {
32032 #ifdef h_errno
32033   return 0;
32034 #else
32035   force compilation error
32036 #endif
32037 }
32038
32039
32040 _ACEOF
32041 if ac_fn_c_try_compile "$LINENO"; then :
32042
32043     tst_symbol_defined="yes"
32044
32045 else
32046
32047     tst_symbol_defined="no"
32048
32049 fi
32050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32051   if test "$tst_symbol_defined" = "yes"; then
32052     curl_cv_have_def_h_errno=yes
32053
32054   else
32055     curl_cv_have_def_h_errno=no
32056
32057   fi
32058
32059       if test "$curl_cv_have_def_h_errno" = "yes"; then
32060         tst_h_errno_macro="yes"
32061       else
32062         tst_h_errno_macro="no"
32063       fi
32064       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32065 /* end confdefs.h.  */
32066
32067
32068           $curl_includes_sys_socket
32069           $curl_includes_netdb
32070
32071 int main (void)
32072 {
32073
32074           h_errno = 2;
32075           if(0 != h_errno)
32076             return 1;
32077
32078  ;
32079  return 0;
32080 }
32081
32082 _ACEOF
32083 if ac_fn_c_try_compile "$LINENO"; then :
32084
32085         tst_h_errno_modifiable_lvalue="yes"
32086
32087 else
32088
32089         tst_h_errno_modifiable_lvalue="no"
32090
32091 fi
32092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32093       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32094 /* end confdefs.h.  */
32095
32096
32097
32098 int main (void)
32099 {
32100
32101 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
32102           return 0;
32103 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
32104           return 0;
32105 #else
32106           force compilation error
32107 #endif
32108
32109  ;
32110  return 0;
32111 }
32112
32113 _ACEOF
32114 if ac_fn_c_try_compile "$LINENO"; then :
32115
32116         tst_h_errno_sbs_issue_7="yes"
32117
32118 else
32119
32120         tst_h_errno_sbs_issue_7="no"
32121
32122 fi
32123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32124       if test "$tst_h_errno_macro" = "no" &&
32125          test "$tst_h_errno_modifiable_lvalue" = "no" &&
32126          test "$tst_h_errno_sbs_issue_7" = "no"; then
32127         tst_tsafe_getaddrinfo="no"
32128       else
32129         tst_tsafe_getaddrinfo="yes"
32130       fi
32131     fi
32132     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
32133 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
32134     if test "$tst_tsafe_getaddrinfo" = "yes"; then
32135
32136 cat >>confdefs.h <<_ACEOF
32137 #define HAVE_GETADDRINFO_THREADSAFE 1
32138 _ACEOF
32139
32140       curl_cv_func_getaddrinfo_threadsafe="yes"
32141     else
32142       curl_cv_func_getaddrinfo_threadsafe="no"
32143     fi
32144   fi
32145
32146
32147       #
32148   tst_links_gai_strerror="unknown"
32149   tst_proto_gai_strerror="unknown"
32150   tst_compi_gai_strerror="unknown"
32151   tst_allow_gai_strerror="unknown"
32152   #
32153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
32154 $as_echo_n "checking if gai_strerror can be linked... " >&6; }
32155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32156 /* end confdefs.h.  */
32157
32158
32159       $curl_includes_winsock2
32160       $curl_includes_netdb
32161
32162 int main (void)
32163 {
32164
32165       if(0 != gai_strerror(0))
32166         return 1;
32167
32168  ;
32169  return 0;
32170 }
32171
32172 _ACEOF
32173 if ac_fn_c_try_link "$LINENO"; then :
32174
32175     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32176 $as_echo "yes" >&6; }
32177     tst_links_gai_strerror="yes"
32178
32179 else
32180
32181     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32182 $as_echo "no" >&6; }
32183     tst_links_gai_strerror="no"
32184
32185 fi
32186 rm -f core conftest.err conftest.$ac_objext \
32187     conftest$ac_exeext conftest.$ac_ext
32188   #
32189   if test "$tst_links_gai_strerror" = "yes"; then
32190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
32191 $as_echo_n "checking if gai_strerror is prototyped... " >&6; }
32192     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32193 /* end confdefs.h.  */
32194
32195       $curl_includes_winsock2
32196       $curl_includes_netdb
32197
32198 _ACEOF
32199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32200   $EGREP "gai_strerror" >/dev/null 2>&1; then :
32201
32202       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32203 $as_echo "yes" >&6; }
32204       tst_proto_gai_strerror="yes"
32205
32206 else
32207
32208       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32209 $as_echo "no" >&6; }
32210       tst_proto_gai_strerror="no"
32211
32212 fi
32213 rm -f conftest*
32214
32215   fi
32216   #
32217   if test "$tst_proto_gai_strerror" = "yes"; then
32218     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
32219 $as_echo_n "checking if gai_strerror is compilable... " >&6; }
32220     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32221 /* end confdefs.h.  */
32222
32223
32224         $curl_includes_winsock2
32225         $curl_includes_netdb
32226
32227 int main (void)
32228 {
32229
32230         if(0 != gai_strerror(0))
32231           return 1;
32232
32233  ;
32234  return 0;
32235 }
32236
32237 _ACEOF
32238 if ac_fn_c_try_compile "$LINENO"; then :
32239
32240       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32241 $as_echo "yes" >&6; }
32242       tst_compi_gai_strerror="yes"
32243
32244 else
32245
32246       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32247 $as_echo "no" >&6; }
32248       tst_compi_gai_strerror="no"
32249
32250 fi
32251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32252   fi
32253   #
32254   if test "$tst_compi_gai_strerror" = "yes"; then
32255     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
32256 $as_echo_n "checking if gai_strerror usage allowed... " >&6; }
32257     if test "x$curl_disallow_gai_strerror" != "xyes"; then
32258       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32259 $as_echo "yes" >&6; }
32260       tst_allow_gai_strerror="yes"
32261     else
32262       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32263 $as_echo "no" >&6; }
32264       tst_allow_gai_strerror="no"
32265     fi
32266   fi
32267   #
32268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
32269 $as_echo_n "checking if gai_strerror might be used... " >&6; }
32270   if test "$tst_links_gai_strerror" = "yes" &&
32271      test "$tst_proto_gai_strerror" = "yes" &&
32272      test "$tst_compi_gai_strerror" = "yes" &&
32273      test "$tst_allow_gai_strerror" = "yes"; then
32274     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32275 $as_echo "yes" >&6; }
32276
32277 cat >>confdefs.h <<_ACEOF
32278 #define HAVE_GAI_STRERROR 1
32279 _ACEOF
32280
32281     curl_cv_func_gai_strerror="yes"
32282   else
32283     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32284 $as_echo "no" >&6; }
32285     curl_cv_func_gai_strerror="no"
32286   fi
32287
32288
32289       #
32290   tst_links_gethostbyaddr="unknown"
32291   tst_proto_gethostbyaddr="unknown"
32292   tst_compi_gethostbyaddr="unknown"
32293   tst_allow_gethostbyaddr="unknown"
32294   #
32295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
32296 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
32297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32298 /* end confdefs.h.  */
32299
32300
32301       $curl_includes_winsock2
32302       $curl_includes_netdb
32303
32304 int main (void)
32305 {
32306
32307       if(0 != gethostbyaddr(0, 0, 0))
32308         return 1;
32309
32310  ;
32311  return 0;
32312 }
32313
32314 _ACEOF
32315 if ac_fn_c_try_link "$LINENO"; then :
32316
32317     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32318 $as_echo "yes" >&6; }
32319     tst_links_gethostbyaddr="yes"
32320
32321 else
32322
32323     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32324 $as_echo "no" >&6; }
32325     tst_links_gethostbyaddr="no"
32326
32327 fi
32328 rm -f core conftest.err conftest.$ac_objext \
32329     conftest$ac_exeext conftest.$ac_ext
32330   #
32331   if test "$tst_links_gethostbyaddr" = "yes"; then
32332     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
32333 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
32334     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32335 /* end confdefs.h.  */
32336
32337       $curl_includes_winsock2
32338       $curl_includes_netdb
32339
32340 _ACEOF
32341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32342   $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
32343
32344       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32345 $as_echo "yes" >&6; }
32346       tst_proto_gethostbyaddr="yes"
32347
32348 else
32349
32350       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32351 $as_echo "no" >&6; }
32352       tst_proto_gethostbyaddr="no"
32353
32354 fi
32355 rm -f conftest*
32356
32357   fi
32358   #
32359   if test "$tst_proto_gethostbyaddr" = "yes"; then
32360     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
32361 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
32362     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32363 /* end confdefs.h.  */
32364
32365
32366         $curl_includes_winsock2
32367         $curl_includes_netdb
32368
32369 int main (void)
32370 {
32371
32372         if(0 != gethostbyaddr(0, 0, 0))
32373           return 1;
32374
32375  ;
32376  return 0;
32377 }
32378
32379 _ACEOF
32380 if ac_fn_c_try_compile "$LINENO"; then :
32381
32382       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32383 $as_echo "yes" >&6; }
32384       tst_compi_gethostbyaddr="yes"
32385
32386 else
32387
32388       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32389 $as_echo "no" >&6; }
32390       tst_compi_gethostbyaddr="no"
32391
32392 fi
32393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32394   fi
32395   #
32396   if test "$tst_compi_gethostbyaddr" = "yes"; then
32397     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
32398 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
32399     if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
32400       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32401 $as_echo "yes" >&6; }
32402       tst_allow_gethostbyaddr="yes"
32403     else
32404       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32405 $as_echo "no" >&6; }
32406       tst_allow_gethostbyaddr="no"
32407     fi
32408   fi
32409   #
32410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
32411 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
32412   if test "$tst_links_gethostbyaddr" = "yes" &&
32413      test "$tst_proto_gethostbyaddr" = "yes" &&
32414      test "$tst_compi_gethostbyaddr" = "yes" &&
32415      test "$tst_allow_gethostbyaddr" = "yes"; then
32416     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32417 $as_echo "yes" >&6; }
32418
32419 cat >>confdefs.h <<_ACEOF
32420 #define HAVE_GETHOSTBYADDR 1
32421 _ACEOF
32422
32423     curl_cv_func_gethostbyaddr="yes"
32424   else
32425     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32426 $as_echo "no" >&6; }
32427     curl_cv_func_gethostbyaddr="no"
32428   fi
32429
32430
32431     #
32432   tst_links_gethostbyaddr_r="unknown"
32433   tst_proto_gethostbyaddr_r="unknown"
32434   tst_compi_gethostbyaddr_r="unknown"
32435   tst_allow_gethostbyaddr_r="unknown"
32436   tst_nargs_gethostbyaddr_r="unknown"
32437   #
32438   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
32439 $as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
32440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32441 /* end confdefs.h.  */
32442
32443
32444 #define gethostbyaddr_r innocuous_gethostbyaddr_r
32445 #ifdef __STDC__
32446 # include <limits.h>
32447 #else
32448 # include <assert.h>
32449 #endif
32450 #undef gethostbyaddr_r
32451 #ifdef __cplusplus
32452 extern "C"
32453 #endif
32454 char gethostbyaddr_r ();
32455 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
32456 choke me
32457 #endif
32458
32459 int main (void)
32460 {
32461 return gethostbyaddr_r ();
32462  ;
32463  return 0;
32464 }
32465
32466 _ACEOF
32467 if ac_fn_c_try_link "$LINENO"; then :
32468
32469     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32470 $as_echo "yes" >&6; }
32471     tst_links_gethostbyaddr_r="yes"
32472
32473 else
32474
32475     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32476 $as_echo "no" >&6; }
32477     tst_links_gethostbyaddr_r="no"
32478
32479 fi
32480 rm -f core conftest.err conftest.$ac_objext \
32481     conftest$ac_exeext conftest.$ac_ext
32482   #
32483   if test "$tst_links_gethostbyaddr_r" = "yes"; then
32484     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
32485 $as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
32486     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32487 /* end confdefs.h.  */
32488
32489       $curl_includes_netdb
32490
32491 _ACEOF
32492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32493   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
32494
32495       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32496 $as_echo "yes" >&6; }
32497       tst_proto_gethostbyaddr_r="yes"
32498
32499 else
32500
32501       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32502 $as_echo "no" >&6; }
32503       tst_proto_gethostbyaddr_r="no"
32504
32505 fi
32506 rm -f conftest*
32507
32508   fi
32509   #
32510   if test "$tst_proto_gethostbyaddr_r" = "yes"; then
32511     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32512       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
32513 $as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
32514       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32515 /* end confdefs.h.  */
32516
32517
32518           $curl_includes_netdb
32519
32520 int main (void)
32521 {
32522
32523           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
32524             return 1;
32525
32526  ;
32527  return 0;
32528 }
32529
32530 _ACEOF
32531 if ac_fn_c_try_compile "$LINENO"; then :
32532
32533         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32534 $as_echo "yes" >&6; }
32535         tst_compi_gethostbyaddr_r="yes"
32536         tst_nargs_gethostbyaddr_r="5"
32537
32538 else
32539
32540         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32541 $as_echo "no" >&6; }
32542         tst_compi_gethostbyaddr_r="no"
32543
32544 fi
32545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32546     fi
32547     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32548       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
32549 $as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
32550       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32551 /* end confdefs.h.  */
32552
32553
32554           $curl_includes_netdb
32555
32556 int main (void)
32557 {
32558
32559           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
32560             return 1;
32561
32562  ;
32563  return 0;
32564 }
32565
32566 _ACEOF
32567 if ac_fn_c_try_compile "$LINENO"; then :
32568
32569         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32570 $as_echo "yes" >&6; }
32571         tst_compi_gethostbyaddr_r="yes"
32572         tst_nargs_gethostbyaddr_r="7"
32573
32574 else
32575
32576         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32577 $as_echo "no" >&6; }
32578         tst_compi_gethostbyaddr_r="no"
32579
32580 fi
32581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32582     fi
32583     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32584       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
32585 $as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
32586       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32587 /* end confdefs.h.  */
32588
32589
32590           $curl_includes_netdb
32591
32592 int main (void)
32593 {
32594
32595           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
32596             return 1;
32597
32598  ;
32599  return 0;
32600 }
32601
32602 _ACEOF
32603 if ac_fn_c_try_compile "$LINENO"; then :
32604
32605         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32606 $as_echo "yes" >&6; }
32607         tst_compi_gethostbyaddr_r="yes"
32608         tst_nargs_gethostbyaddr_r="8"
32609
32610 else
32611
32612         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32613 $as_echo "no" >&6; }
32614         tst_compi_gethostbyaddr_r="no"
32615
32616 fi
32617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32618     fi
32619     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
32620 $as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
32621     if test "$tst_compi_gethostbyaddr_r" = "yes"; then
32622       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32623 $as_echo "yes" >&6; }
32624     else
32625       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32626 $as_echo "no" >&6; }
32627     fi
32628   fi
32629   #
32630   if test "$tst_compi_gethostbyaddr_r" = "yes"; then
32631     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
32632 $as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
32633     if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
32634       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32635 $as_echo "yes" >&6; }
32636       tst_allow_gethostbyaddr_r="yes"
32637     else
32638       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32639 $as_echo "no" >&6; }
32640       tst_allow_gethostbyaddr_r="no"
32641     fi
32642   fi
32643   #
32644   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
32645 $as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
32646   if test "$tst_links_gethostbyaddr_r" = "yes" &&
32647      test "$tst_proto_gethostbyaddr_r" = "yes" &&
32648      test "$tst_compi_gethostbyaddr_r" = "yes" &&
32649      test "$tst_allow_gethostbyaddr_r" = "yes"; then
32650     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32651 $as_echo "yes" >&6; }
32652
32653 cat >>confdefs.h <<_ACEOF
32654 #define HAVE_GETHOSTBYADDR_R 1
32655 _ACEOF
32656
32657             #
32658     if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
32659
32660 $as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
32661
32662     elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
32663
32664 $as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
32665
32666     elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
32667
32668 $as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
32669
32670     fi
32671     #
32672     curl_cv_func_gethostbyaddr_r="yes"
32673   else
32674     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32675 $as_echo "no" >&6; }
32676     curl_cv_func_gethostbyaddr_r="no"
32677   fi
32678
32679
32680       #
32681   tst_links_gethostbyname="unknown"
32682   tst_proto_gethostbyname="unknown"
32683   tst_compi_gethostbyname="unknown"
32684   tst_allow_gethostbyname="unknown"
32685   #
32686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
32687 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
32688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32689 /* end confdefs.h.  */
32690
32691
32692       $curl_includes_winsock2
32693       $curl_includes_netdb
32694
32695 int main (void)
32696 {
32697
32698       if(0 != gethostbyname(0))
32699         return 1;
32700
32701  ;
32702  return 0;
32703 }
32704
32705 _ACEOF
32706 if ac_fn_c_try_link "$LINENO"; then :
32707
32708     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32709 $as_echo "yes" >&6; }
32710     tst_links_gethostbyname="yes"
32711
32712 else
32713
32714     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32715 $as_echo "no" >&6; }
32716     tst_links_gethostbyname="no"
32717
32718 fi
32719 rm -f core conftest.err conftest.$ac_objext \
32720     conftest$ac_exeext conftest.$ac_ext
32721   #
32722   if test "$tst_links_gethostbyname" = "yes"; then
32723     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
32724 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
32725     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32726 /* end confdefs.h.  */
32727
32728       $curl_includes_winsock2
32729       $curl_includes_netdb
32730
32731 _ACEOF
32732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32733   $EGREP "gethostbyname" >/dev/null 2>&1; then :
32734
32735       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32736 $as_echo "yes" >&6; }
32737       tst_proto_gethostbyname="yes"
32738
32739 else
32740
32741       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32742 $as_echo "no" >&6; }
32743       tst_proto_gethostbyname="no"
32744
32745 fi
32746 rm -f conftest*
32747
32748   fi
32749   #
32750   if test "$tst_proto_gethostbyname" = "yes"; then
32751     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
32752 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
32753     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32754 /* end confdefs.h.  */
32755
32756
32757         $curl_includes_winsock2
32758         $curl_includes_netdb
32759
32760 int main (void)
32761 {
32762
32763         if(0 != gethostbyname(0))
32764           return 1;
32765
32766  ;
32767  return 0;
32768 }
32769
32770 _ACEOF
32771 if ac_fn_c_try_compile "$LINENO"; then :
32772
32773       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32774 $as_echo "yes" >&6; }
32775       tst_compi_gethostbyname="yes"
32776
32777 else
32778
32779       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32780 $as_echo "no" >&6; }
32781       tst_compi_gethostbyname="no"
32782
32783 fi
32784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32785   fi
32786   #
32787   if test "$tst_compi_gethostbyname" = "yes"; then
32788     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
32789 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
32790     if test "x$curl_disallow_gethostbyname" != "xyes"; then
32791       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32792 $as_echo "yes" >&6; }
32793       tst_allow_gethostbyname="yes"
32794     else
32795       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32796 $as_echo "no" >&6; }
32797       tst_allow_gethostbyname="no"
32798     fi
32799   fi
32800   #
32801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
32802 $as_echo_n "checking if gethostbyname might be used... " >&6; }
32803   if test "$tst_links_gethostbyname" = "yes" &&
32804      test "$tst_proto_gethostbyname" = "yes" &&
32805      test "$tst_compi_gethostbyname" = "yes" &&
32806      test "$tst_allow_gethostbyname" = "yes"; then
32807     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32808 $as_echo "yes" >&6; }
32809
32810 cat >>confdefs.h <<_ACEOF
32811 #define HAVE_GETHOSTBYNAME 1
32812 _ACEOF
32813
32814     curl_cv_func_gethostbyname="yes"
32815   else
32816     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32817 $as_echo "no" >&6; }
32818     curl_cv_func_gethostbyname="no"
32819   fi
32820
32821
32822     #
32823   tst_links_gethostbyname_r="unknown"
32824   tst_proto_gethostbyname_r="unknown"
32825   tst_compi_gethostbyname_r="unknown"
32826   tst_allow_gethostbyname_r="unknown"
32827   tst_nargs_gethostbyname_r="unknown"
32828   #
32829   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
32830 $as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
32831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32832 /* end confdefs.h.  */
32833
32834
32835 #define gethostbyname_r innocuous_gethostbyname_r
32836 #ifdef __STDC__
32837 # include <limits.h>
32838 #else
32839 # include <assert.h>
32840 #endif
32841 #undef gethostbyname_r
32842 #ifdef __cplusplus
32843 extern "C"
32844 #endif
32845 char gethostbyname_r ();
32846 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
32847 choke me
32848 #endif
32849
32850 int main (void)
32851 {
32852 return gethostbyname_r ();
32853  ;
32854  return 0;
32855 }
32856
32857 _ACEOF
32858 if ac_fn_c_try_link "$LINENO"; then :
32859
32860     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32861 $as_echo "yes" >&6; }
32862     tst_links_gethostbyname_r="yes"
32863
32864 else
32865
32866     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32867 $as_echo "no" >&6; }
32868     tst_links_gethostbyname_r="no"
32869
32870 fi
32871 rm -f core conftest.err conftest.$ac_objext \
32872     conftest$ac_exeext conftest.$ac_ext
32873   #
32874   if test "$tst_links_gethostbyname_r" = "yes"; then
32875     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
32876 $as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
32877     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32878 /* end confdefs.h.  */
32879
32880       $curl_includes_netdb
32881
32882 _ACEOF
32883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32884   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
32885
32886       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32887 $as_echo "yes" >&6; }
32888       tst_proto_gethostbyname_r="yes"
32889
32890 else
32891
32892       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32893 $as_echo "no" >&6; }
32894       tst_proto_gethostbyname_r="no"
32895
32896 fi
32897 rm -f conftest*
32898
32899   fi
32900   #
32901   if test "$tst_proto_gethostbyname_r" = "yes"; then
32902     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
32903       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
32904 $as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
32905       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32906 /* end confdefs.h.  */
32907
32908
32909           $curl_includes_netdb
32910
32911 int main (void)
32912 {
32913
32914           if(0 != gethostbyname_r(0, 0, 0))
32915             return 1;
32916
32917  ;
32918  return 0;
32919 }
32920
32921 _ACEOF
32922 if ac_fn_c_try_compile "$LINENO"; then :
32923
32924         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32925 $as_echo "yes" >&6; }
32926         tst_compi_gethostbyname_r="yes"
32927         tst_nargs_gethostbyname_r="3"
32928
32929 else
32930
32931         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32932 $as_echo "no" >&6; }
32933         tst_compi_gethostbyname_r="no"
32934
32935 fi
32936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32937     fi
32938     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
32939       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
32940 $as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
32941       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32942 /* end confdefs.h.  */
32943
32944
32945           $curl_includes_netdb
32946
32947 int main (void)
32948 {
32949
32950           if(0 != gethostbyname_r(0, 0, 0, 0, 0))
32951             return 1;
32952
32953  ;
32954  return 0;
32955 }
32956
32957 _ACEOF
32958 if ac_fn_c_try_compile "$LINENO"; then :
32959
32960         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32961 $as_echo "yes" >&6; }
32962         tst_compi_gethostbyname_r="yes"
32963         tst_nargs_gethostbyname_r="5"
32964
32965 else
32966
32967         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32968 $as_echo "no" >&6; }
32969         tst_compi_gethostbyname_r="no"
32970
32971 fi
32972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32973     fi
32974     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
32975       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
32976 $as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
32977       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32978 /* end confdefs.h.  */
32979
32980
32981           $curl_includes_netdb
32982
32983 int main (void)
32984 {
32985
32986           if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
32987             return 1;
32988
32989  ;
32990  return 0;
32991 }
32992
32993 _ACEOF
32994 if ac_fn_c_try_compile "$LINENO"; then :
32995
32996         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32997 $as_echo "yes" >&6; }
32998         tst_compi_gethostbyname_r="yes"
32999         tst_nargs_gethostbyname_r="6"
33000
33001 else
33002
33003         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33004 $as_echo "no" >&6; }
33005         tst_compi_gethostbyname_r="no"
33006
33007 fi
33008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33009     fi
33010     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
33011 $as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
33012     if test "$tst_compi_gethostbyname_r" = "yes"; then
33013       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33014 $as_echo "yes" >&6; }
33015     else
33016       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33017 $as_echo "no" >&6; }
33018     fi
33019   fi
33020   #
33021   if test "$tst_compi_gethostbyname_r" = "yes"; then
33022     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
33023 $as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
33024     if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
33025       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33026 $as_echo "yes" >&6; }
33027       tst_allow_gethostbyname_r="yes"
33028     else
33029       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33030 $as_echo "no" >&6; }
33031       tst_allow_gethostbyname_r="no"
33032     fi
33033   fi
33034   #
33035   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
33036 $as_echo_n "checking if gethostbyname_r might be used... " >&6; }
33037   if test "$tst_links_gethostbyname_r" = "yes" &&
33038      test "$tst_proto_gethostbyname_r" = "yes" &&
33039      test "$tst_compi_gethostbyname_r" = "yes" &&
33040      test "$tst_allow_gethostbyname_r" = "yes"; then
33041     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33042 $as_echo "yes" >&6; }
33043
33044 cat >>confdefs.h <<_ACEOF
33045 #define HAVE_GETHOSTBYNAME_R 1
33046 _ACEOF
33047
33048             #
33049     if test "$tst_nargs_gethostbyname_r" -eq "3"; then
33050
33051 $as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
33052
33053     elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
33054
33055 $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
33056
33057     elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
33058
33059 $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
33060
33061     fi
33062     #
33063     curl_cv_func_gethostbyname_r="yes"
33064   else
33065     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33066 $as_echo "no" >&6; }
33067     curl_cv_func_gethostbyname_r="no"
33068   fi
33069
33070
33071         #
33072   tst_links_gethostname="unknown"
33073   tst_proto_gethostname="unknown"
33074   tst_compi_gethostname="unknown"
33075   tst_allow_gethostname="unknown"
33076   #
33077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
33078 $as_echo_n "checking if gethostname can be linked... " >&6; }
33079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33080 /* end confdefs.h.  */
33081
33082
33083       $curl_includes_winsock2
33084       $curl_includes_unistd
33085
33086 int main (void)
33087 {
33088
33089       if(0 != gethostname(0, 0))
33090         return 1;
33091
33092  ;
33093  return 0;
33094 }
33095
33096 _ACEOF
33097 if ac_fn_c_try_link "$LINENO"; then :
33098
33099     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33100 $as_echo "yes" >&6; }
33101     tst_links_gethostname="yes"
33102
33103 else
33104
33105     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33106 $as_echo "no" >&6; }
33107     tst_links_gethostname="no"
33108
33109 fi
33110 rm -f core conftest.err conftest.$ac_objext \
33111     conftest$ac_exeext conftest.$ac_ext
33112   #
33113   if test "$tst_links_gethostname" = "yes"; then
33114     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
33115 $as_echo_n "checking if gethostname is prototyped... " >&6; }
33116     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33117 /* end confdefs.h.  */
33118
33119       $curl_includes_winsock2
33120       $curl_includes_unistd
33121
33122 _ACEOF
33123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33124   $EGREP "gethostname" >/dev/null 2>&1; then :
33125
33126       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33127 $as_echo "yes" >&6; }
33128       tst_proto_gethostname="yes"
33129
33130 else
33131
33132       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33133 $as_echo "no" >&6; }
33134       tst_proto_gethostname="no"
33135
33136 fi
33137 rm -f conftest*
33138
33139   fi
33140   #
33141   if test "$tst_proto_gethostname" = "yes"; then
33142     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
33143 $as_echo_n "checking if gethostname is compilable... " >&6; }
33144     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33145 /* end confdefs.h.  */
33146
33147
33148         $curl_includes_winsock2
33149         $curl_includes_unistd
33150
33151 int main (void)
33152 {
33153
33154         if(0 != gethostname(0, 0))
33155           return 1;
33156
33157  ;
33158  return 0;
33159 }
33160
33161 _ACEOF
33162 if ac_fn_c_try_compile "$LINENO"; then :
33163
33164       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33165 $as_echo "yes" >&6; }
33166       tst_compi_gethostname="yes"
33167
33168 else
33169
33170       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33171 $as_echo "no" >&6; }
33172       tst_compi_gethostname="no"
33173
33174 fi
33175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33176   fi
33177   #
33178   if test "$tst_compi_gethostname" = "yes"; then
33179     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
33180 $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
33181     tst_gethostname_type_arg2="unknown"
33182     for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
33183       for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
33184         if test "$tst_gethostname_type_arg2" = "unknown"; then
33185           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33186 /* end confdefs.h.  */
33187
33188
33189               $curl_includes_winsock2
33190               $curl_includes_unistd
33191               $curl_preprocess_callconv
33192               extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
33193
33194 int main (void)
33195 {
33196
33197               if(0 != gethostname(0, 0))
33198                 return 1;
33199
33200  ;
33201  return 0;
33202 }
33203
33204 _ACEOF
33205 if ac_fn_c_try_compile "$LINENO"; then :
33206
33207             tst_gethostname_type_arg2="$tst_arg2"
33208
33209 fi
33210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33211         fi
33212       done
33213     done
33214     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
33215 $as_echo "$tst_gethostname_type_arg2" >&6; }
33216     if test "$tst_gethostname_type_arg2" != "unknown"; then
33217
33218 cat >>confdefs.h <<_ACEOF
33219 #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
33220 _ACEOF
33221
33222     fi
33223   fi
33224   #
33225   if test "$tst_compi_gethostname" = "yes"; then
33226     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
33227 $as_echo_n "checking if gethostname usage allowed... " >&6; }
33228     if test "x$curl_disallow_gethostname" != "xyes"; then
33229       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33230 $as_echo "yes" >&6; }
33231       tst_allow_gethostname="yes"
33232     else
33233       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33234 $as_echo "no" >&6; }
33235       tst_allow_gethostname="no"
33236     fi
33237   fi
33238   #
33239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
33240 $as_echo_n "checking if gethostname might be used... " >&6; }
33241   if test "$tst_links_gethostname" = "yes" &&
33242      test "$tst_proto_gethostname" = "yes" &&
33243      test "$tst_compi_gethostname" = "yes" &&
33244      test "$tst_allow_gethostname" = "yes"; 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_GETHOSTNAME 1
33250 _ACEOF
33251
33252     curl_cv_func_gethostname="yes"
33253   else
33254     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33255 $as_echo "no" >&6; }
33256     curl_cv_func_gethostname="no"
33257   fi
33258
33259
33260       #
33261   tst_links_getifaddrs="unknown"
33262   tst_proto_getifaddrs="unknown"
33263   tst_compi_getifaddrs="unknown"
33264   tst_works_getifaddrs="unknown"
33265   tst_allow_getifaddrs="unknown"
33266   #
33267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
33268 $as_echo_n "checking if getifaddrs can be linked... " >&6; }
33269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33270 /* end confdefs.h.  */
33271
33272
33273 #define getifaddrs innocuous_getifaddrs
33274 #ifdef __STDC__
33275 # include <limits.h>
33276 #else
33277 # include <assert.h>
33278 #endif
33279 #undef getifaddrs
33280 #ifdef __cplusplus
33281 extern "C"
33282 #endif
33283 char getifaddrs ();
33284 #if defined __stub_getifaddrs || defined __stub___getifaddrs
33285 choke me
33286 #endif
33287
33288 int main (void)
33289 {
33290 return getifaddrs ();
33291  ;
33292  return 0;
33293 }
33294
33295 _ACEOF
33296 if ac_fn_c_try_link "$LINENO"; then :
33297
33298     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33299 $as_echo "yes" >&6; }
33300     tst_links_getifaddrs="yes"
33301
33302 else
33303
33304     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33305 $as_echo "no" >&6; }
33306     tst_links_getifaddrs="no"
33307
33308 fi
33309 rm -f core conftest.err conftest.$ac_objext \
33310     conftest$ac_exeext conftest.$ac_ext
33311   #
33312   if test "$tst_links_getifaddrs" = "yes"; then
33313     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
33314 $as_echo_n "checking if getifaddrs is prototyped... " >&6; }
33315     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33316 /* end confdefs.h.  */
33317
33318       $curl_includes_ifaddrs
33319
33320 _ACEOF
33321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33322   $EGREP "getifaddrs" >/dev/null 2>&1; then :
33323
33324       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33325 $as_echo "yes" >&6; }
33326       tst_proto_getifaddrs="yes"
33327
33328 else
33329
33330       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33331 $as_echo "no" >&6; }
33332       tst_proto_getifaddrs="no"
33333
33334 fi
33335 rm -f conftest*
33336
33337   fi
33338   #
33339   if test "$tst_proto_getifaddrs" = "yes"; then
33340     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
33341 $as_echo_n "checking if getifaddrs is compilable... " >&6; }
33342     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33343 /* end confdefs.h.  */
33344
33345
33346         $curl_includes_ifaddrs
33347
33348 int main (void)
33349 {
33350
33351         if(0 != getifaddrs(0))
33352           return 1;
33353
33354  ;
33355  return 0;
33356 }
33357
33358 _ACEOF
33359 if ac_fn_c_try_compile "$LINENO"; then :
33360
33361       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33362 $as_echo "yes" >&6; }
33363       tst_compi_getifaddrs="yes"
33364
33365 else
33366
33367       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33368 $as_echo "no" >&6; }
33369       tst_compi_getifaddrs="no"
33370
33371 fi
33372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33373   fi
33374   #
33375     if test "x$cross_compiling" != "xyes" &&
33376     test "$tst_compi_getifaddrs" = "yes"; then
33377     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
33378 $as_echo_n "checking if getifaddrs seems to work... " >&6; }
33379     if test "$cross_compiling" = yes; then :
33380   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33382 as_fn_error $? "cannot run test program while cross compiling
33383 See \`config.log' for more details" "$LINENO" 5; }
33384 else
33385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33386 /* end confdefs.h.  */
33387
33388
33389         $curl_includes_stdlib
33390         $curl_includes_ifaddrs
33391
33392 int main (void)
33393 {
33394
33395         struct ifaddrs *ifa = 0;
33396         int error;
33397
33398         error = getifaddrs(&ifa);
33399         if(error || !ifa)
33400           exit(1); /* fail */
33401         else
33402           exit(0);
33403
33404  ;
33405  return 0;
33406 }
33407
33408 _ACEOF
33409 if ac_fn_c_try_run "$LINENO"; then :
33410
33411       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33412 $as_echo "yes" >&6; }
33413       tst_works_getifaddrs="yes"
33414
33415 else
33416
33417       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33418 $as_echo "no" >&6; }
33419       tst_works_getifaddrs="no"
33420
33421 fi
33422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33423   conftest.$ac_objext conftest.beam conftest.$ac_ext
33424 fi
33425
33426   fi
33427   #
33428   if test "$tst_compi_getifaddrs" = "yes" &&
33429     test "$tst_works_getifaddrs" != "no"; then
33430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
33431 $as_echo_n "checking if getifaddrs usage allowed... " >&6; }
33432     if test "x$curl_disallow_getifaddrs" != "xyes"; then
33433       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33434 $as_echo "yes" >&6; }
33435       tst_allow_getifaddrs="yes"
33436     else
33437       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33438 $as_echo "no" >&6; }
33439       tst_allow_getifaddrs="no"
33440     fi
33441   fi
33442   #
33443   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
33444 $as_echo_n "checking if getifaddrs might be used... " >&6; }
33445   if test "$tst_links_getifaddrs" = "yes" &&
33446      test "$tst_proto_getifaddrs" = "yes" &&
33447      test "$tst_compi_getifaddrs" = "yes" &&
33448      test "$tst_allow_getifaddrs" = "yes" &&
33449      test "$tst_works_getifaddrs" != "no"; then
33450     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33451 $as_echo "yes" >&6; }
33452
33453 cat >>confdefs.h <<_ACEOF
33454 #define HAVE_GETIFADDRS 1
33455 _ACEOF
33456
33457     curl_cv_func_getifaddrs="yes"
33458   else
33459     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33460 $as_echo "no" >&6; }
33461     curl_cv_func_getifaddrs="no"
33462   fi
33463
33464
33465     #
33466   tst_links_getservbyport_r="unknown"
33467   tst_proto_getservbyport_r="unknown"
33468   tst_compi_getservbyport_r="unknown"
33469   tst_allow_getservbyport_r="unknown"
33470   tst_nargs_getservbyport_r="unknown"
33471   #
33472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
33473 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
33474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33475 /* end confdefs.h.  */
33476
33477
33478 #define getservbyport_r innocuous_getservbyport_r
33479 #ifdef __STDC__
33480 # include <limits.h>
33481 #else
33482 # include <assert.h>
33483 #endif
33484 #undef getservbyport_r
33485 #ifdef __cplusplus
33486 extern "C"
33487 #endif
33488 char getservbyport_r ();
33489 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
33490 choke me
33491 #endif
33492
33493 int main (void)
33494 {
33495 return getservbyport_r ();
33496  ;
33497  return 0;
33498 }
33499
33500 _ACEOF
33501 if ac_fn_c_try_link "$LINENO"; then :
33502
33503     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33504 $as_echo "yes" >&6; }
33505     tst_links_getservbyport_r="yes"
33506
33507 else
33508
33509     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33510 $as_echo "no" >&6; }
33511     tst_links_getservbyport_r="no"
33512
33513 fi
33514 rm -f core conftest.err conftest.$ac_objext \
33515     conftest$ac_exeext conftest.$ac_ext
33516   #
33517   if test "$tst_links_getservbyport_r" = "yes"; then
33518     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
33519 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
33520     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33521 /* end confdefs.h.  */
33522
33523       $curl_includes_netdb
33524
33525 _ACEOF
33526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33527   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
33528
33529       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33530 $as_echo "yes" >&6; }
33531       tst_proto_getservbyport_r="yes"
33532
33533 else
33534
33535       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33536 $as_echo "no" >&6; }
33537       tst_proto_getservbyport_r="no"
33538
33539 fi
33540 rm -f conftest*
33541
33542   fi
33543   #
33544   if test "$tst_proto_getservbyport_r" = "yes"; then
33545     if test "$tst_nargs_getservbyport_r" = "unknown"; then
33546       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
33547 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
33548       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33549 /* end confdefs.h.  */
33550
33551
33552           $curl_includes_netdb
33553
33554 int main (void)
33555 {
33556
33557           if(0 != getservbyport_r(0, 0, 0, 0))
33558             return 1;
33559
33560  ;
33561  return 0;
33562 }
33563
33564 _ACEOF
33565 if ac_fn_c_try_compile "$LINENO"; then :
33566
33567         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33568 $as_echo "yes" >&6; }
33569         tst_compi_getservbyport_r="yes"
33570         tst_nargs_getservbyport_r="4"
33571
33572 else
33573
33574         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33575 $as_echo "no" >&6; }
33576         tst_compi_getservbyport_r="no"
33577
33578 fi
33579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33580     fi
33581     if test "$tst_nargs_getservbyport_r" = "unknown"; then
33582       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
33583 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
33584       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33585 /* end confdefs.h.  */
33586
33587
33588           $curl_includes_netdb
33589
33590 int main (void)
33591 {
33592
33593           if(0 != getservbyport_r(0, 0, 0, 0, 0))
33594             return 1;
33595
33596  ;
33597  return 0;
33598 }
33599
33600 _ACEOF
33601 if ac_fn_c_try_compile "$LINENO"; then :
33602
33603         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33604 $as_echo "yes" >&6; }
33605         tst_compi_getservbyport_r="yes"
33606         tst_nargs_getservbyport_r="5"
33607
33608 else
33609
33610         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33611 $as_echo "no" >&6; }
33612         tst_compi_getservbyport_r="no"
33613
33614 fi
33615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33616     fi
33617     if test "$tst_nargs_getservbyport_r" = "unknown"; then
33618       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
33619 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
33620       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33621 /* end confdefs.h.  */
33622
33623
33624           $curl_includes_netdb
33625
33626 int main (void)
33627 {
33628
33629           if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
33630             return 1;
33631
33632  ;
33633  return 0;
33634 }
33635
33636 _ACEOF
33637 if ac_fn_c_try_compile "$LINENO"; then :
33638
33639         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33640 $as_echo "yes" >&6; }
33641         tst_compi_getservbyport_r="yes"
33642         tst_nargs_getservbyport_r="6"
33643
33644 else
33645
33646         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33647 $as_echo "no" >&6; }
33648         tst_compi_getservbyport_r="no"
33649
33650 fi
33651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33652     fi
33653     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
33654 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
33655     if test "$tst_compi_getservbyport_r" = "yes"; then
33656       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33657 $as_echo "yes" >&6; }
33658     else
33659       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33660 $as_echo "no" >&6; }
33661     fi
33662   fi
33663   #
33664   if test "$tst_compi_getservbyport_r" = "yes"; then
33665     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
33666 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
33667     if test "x$curl_disallow_getservbyport_r" != "xyes"; then
33668       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33669 $as_echo "yes" >&6; }
33670       tst_allow_getservbyport_r="yes"
33671     else
33672       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33673 $as_echo "no" >&6; }
33674       tst_allow_getservbyport_r="no"
33675     fi
33676   fi
33677   #
33678   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
33679 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
33680   if test "$tst_links_getservbyport_r" = "yes" &&
33681      test "$tst_proto_getservbyport_r" = "yes" &&
33682      test "$tst_compi_getservbyport_r" = "yes" &&
33683      test "$tst_allow_getservbyport_r" = "yes"; then
33684     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33685 $as_echo "yes" >&6; }
33686
33687 cat >>confdefs.h <<_ACEOF
33688 #define HAVE_GETSERVBYPORT_R 1
33689 _ACEOF
33690
33691
33692 cat >>confdefs.h <<_ACEOF
33693 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
33694 _ACEOF
33695
33696     if test "$tst_nargs_getservbyport_r" -eq "4"; then
33697
33698 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
33699
33700     else
33701
33702 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
33703
33704     fi
33705     curl_cv_func_getservbyport_r="yes"
33706   else
33707     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33708 $as_echo "no" >&6; }
33709     curl_cv_func_getservbyport_r="no"
33710   fi
33711
33712
33713 curl_includes_time="\
33714 /* includes start */
33715 #ifdef HAVE_SYS_TYPES_H
33716 #  include <sys/types.h>
33717 #endif
33718 #ifdef HAVE_SYS_TIME_H
33719 #  include <sys/time.h>
33720 #  ifdef TIME_WITH_SYS_TIME
33721 #    include <time.h>
33722 #  endif
33723 #else
33724 #  ifdef HAVE_TIME_H
33725 #    include <time.h>
33726 #  endif
33727 #endif
33728 /* includes end */"
33729   for ac_header in sys/types.h sys/time.h time.h
33730 do :
33731   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33732 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
33733 "
33734 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33735   cat >>confdefs.h <<_ACEOF
33736 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33737 _ACEOF
33738
33739 fi
33740
33741 done
33742
33743
33744
33745       #
33746   tst_links_gmtime_r="unknown"
33747   tst_proto_gmtime_r="unknown"
33748   tst_compi_gmtime_r="unknown"
33749   tst_works_gmtime_r="unknown"
33750   tst_allow_gmtime_r="unknown"
33751   #
33752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
33753 $as_echo_n "checking if gmtime_r can be linked... " >&6; }
33754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33755 /* end confdefs.h.  */
33756
33757
33758 #define gmtime_r innocuous_gmtime_r
33759 #ifdef __STDC__
33760 # include <limits.h>
33761 #else
33762 # include <assert.h>
33763 #endif
33764 #undef gmtime_r
33765 #ifdef __cplusplus
33766 extern "C"
33767 #endif
33768 char gmtime_r ();
33769 #if defined __stub_gmtime_r || defined __stub___gmtime_r
33770 choke me
33771 #endif
33772
33773 int main (void)
33774 {
33775 return gmtime_r ();
33776  ;
33777  return 0;
33778 }
33779
33780 _ACEOF
33781 if ac_fn_c_try_link "$LINENO"; then :
33782
33783     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33784 $as_echo "yes" >&6; }
33785     tst_links_gmtime_r="yes"
33786
33787 else
33788
33789     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33790 $as_echo "no" >&6; }
33791     tst_links_gmtime_r="no"
33792
33793 fi
33794 rm -f core conftest.err conftest.$ac_objext \
33795     conftest$ac_exeext conftest.$ac_ext
33796   #
33797   if test "$tst_links_gmtime_r" = "yes"; then
33798     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
33799 $as_echo_n "checking if gmtime_r is prototyped... " >&6; }
33800     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33801 /* end confdefs.h.  */
33802
33803       $curl_includes_time
33804
33805 _ACEOF
33806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33807   $EGREP "gmtime_r" >/dev/null 2>&1; then :
33808
33809       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33810 $as_echo "yes" >&6; }
33811       tst_proto_gmtime_r="yes"
33812
33813 else
33814
33815       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33816 $as_echo "no" >&6; }
33817       tst_proto_gmtime_r="no"
33818
33819 fi
33820 rm -f conftest*
33821
33822   fi
33823   #
33824   if test "$tst_proto_gmtime_r" = "yes"; then
33825     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
33826 $as_echo_n "checking if gmtime_r is compilable... " >&6; }
33827     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33828 /* end confdefs.h.  */
33829
33830
33831         $curl_includes_time
33832
33833 int main (void)
33834 {
33835
33836         if(0 != gmtime_r(0, 0))
33837           return 1;
33838
33839  ;
33840  return 0;
33841 }
33842
33843 _ACEOF
33844 if ac_fn_c_try_compile "$LINENO"; then :
33845
33846       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33847 $as_echo "yes" >&6; }
33848       tst_compi_gmtime_r="yes"
33849
33850 else
33851
33852       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33853 $as_echo "no" >&6; }
33854       tst_compi_gmtime_r="no"
33855
33856 fi
33857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33858   fi
33859   #
33860     if test "x$cross_compiling" != "xyes" &&
33861     test "$tst_compi_gmtime_r" = "yes"; then
33862     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
33863 $as_echo_n "checking if gmtime_r seems to work... " >&6; }
33864     if test "$cross_compiling" = yes; then :
33865   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33867 as_fn_error $? "cannot run test program while cross compiling
33868 See \`config.log' for more details" "$LINENO" 5; }
33869 else
33870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33871 /* end confdefs.h.  */
33872
33873
33874         $curl_includes_stdlib
33875         $curl_includes_time
33876
33877 int main (void)
33878 {
33879
33880         time_t local = 1170352587;
33881         struct tm *gmt = 0;
33882         struct tm result;
33883         gmt = gmtime_r(&local, &result);
33884         if(gmt)
33885           exit(0);
33886         else
33887           exit(1);
33888
33889  ;
33890  return 0;
33891 }
33892
33893 _ACEOF
33894 if ac_fn_c_try_run "$LINENO"; then :
33895
33896       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33897 $as_echo "yes" >&6; }
33898       tst_works_gmtime_r="yes"
33899
33900 else
33901
33902       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33903 $as_echo "no" >&6; }
33904       tst_works_gmtime_r="no"
33905
33906 fi
33907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33908   conftest.$ac_objext conftest.beam conftest.$ac_ext
33909 fi
33910
33911   fi
33912   #
33913   if test "$tst_compi_gmtime_r" = "yes" &&
33914     test "$tst_works_gmtime_r" != "no"; then
33915     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
33916 $as_echo_n "checking if gmtime_r usage allowed... " >&6; }
33917     if test "x$curl_disallow_gmtime_r" != "xyes"; then
33918       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33919 $as_echo "yes" >&6; }
33920       tst_allow_gmtime_r="yes"
33921     else
33922       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33923 $as_echo "no" >&6; }
33924       tst_allow_gmtime_r="no"
33925     fi
33926   fi
33927   #
33928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
33929 $as_echo_n "checking if gmtime_r might be used... " >&6; }
33930   if test "$tst_links_gmtime_r" = "yes" &&
33931      test "$tst_proto_gmtime_r" = "yes" &&
33932      test "$tst_compi_gmtime_r" = "yes" &&
33933      test "$tst_allow_gmtime_r" = "yes" &&
33934      test "$tst_works_gmtime_r" != "no"; then
33935     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33936 $as_echo "yes" >&6; }
33937
33938 cat >>confdefs.h <<_ACEOF
33939 #define HAVE_GMTIME_R 1
33940 _ACEOF
33941
33942     curl_cv_func_gmtime_r="yes"
33943   else
33944     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33945 $as_echo "no" >&6; }
33946     curl_cv_func_gmtime_r="no"
33947   fi
33948
33949
33950 curl_includes_arpa_inet="\
33951 /* includes start */
33952 #ifdef HAVE_SYS_TYPES_H
33953 #  include <sys/types.h>
33954 #endif
33955 #ifdef HAVE_SYS_SOCKET_H
33956 #  include <sys/socket.h>
33957 #endif
33958 #ifdef HAVE_NETINET_IN_H
33959 #  include <netinet/in.h>
33960 #endif
33961 #ifdef HAVE_ARPA_INET_H
33962 #  include <arpa/inet.h>
33963 #endif
33964 #ifdef HAVE_WINSOCK2_H
33965 #include <winsock2.h>
33966 #include <ws2tcpip.h>
33967 #endif
33968 /* includes end */"
33969   for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
33970 do :
33971   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33972 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
33973 "
33974 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33975   cat >>confdefs.h <<_ACEOF
33976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33977 _ACEOF
33978
33979 fi
33980
33981 done
33982
33983
33984
33985     #
33986   tst_links_inet_ntoa_r="unknown"
33987   tst_proto_inet_ntoa_r="unknown"
33988   tst_compi_inet_ntoa_r="unknown"
33989   tst_allow_inet_ntoa_r="unknown"
33990   tst_nargs_inet_ntoa_r="unknown"
33991   #
33992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
33993 $as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
33994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33995 /* end confdefs.h.  */
33996
33997
33998 #define inet_ntoa_r innocuous_inet_ntoa_r
33999 #ifdef __STDC__
34000 # include <limits.h>
34001 #else
34002 # include <assert.h>
34003 #endif
34004 #undef inet_ntoa_r
34005 #ifdef __cplusplus
34006 extern "C"
34007 #endif
34008 char inet_ntoa_r ();
34009 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
34010 choke me
34011 #endif
34012
34013 int main (void)
34014 {
34015 return inet_ntoa_r ();
34016  ;
34017  return 0;
34018 }
34019
34020 _ACEOF
34021 if ac_fn_c_try_link "$LINENO"; then :
34022
34023     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34024 $as_echo "yes" >&6; }
34025     tst_links_inet_ntoa_r="yes"
34026
34027 else
34028
34029     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34030 $as_echo "no" >&6; }
34031     tst_links_inet_ntoa_r="no"
34032
34033 fi
34034 rm -f core conftest.err conftest.$ac_objext \
34035     conftest$ac_exeext conftest.$ac_ext
34036   #
34037   if test "$tst_links_inet_ntoa_r" = "yes"; then
34038     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
34039 $as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
34040     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34041 /* end confdefs.h.  */
34042
34043       $curl_includes_arpa_inet
34044
34045 _ACEOF
34046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34047   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
34048
34049       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34050 $as_echo "yes" >&6; }
34051       tst_proto_inet_ntoa_r="yes"
34052
34053 else
34054
34055       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34056 $as_echo "no" >&6; }
34057       tst_proto_inet_ntoa_r="no"
34058
34059 fi
34060 rm -f conftest*
34061
34062   fi
34063   #
34064   if test "$tst_proto_inet_ntoa_r" = "yes"; then
34065     if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34066       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
34067 $as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
34068       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34069 /* end confdefs.h.  */
34070
34071
34072           $curl_includes_arpa_inet
34073
34074 int main (void)
34075 {
34076
34077           struct in_addr addr;
34078           if(0 != inet_ntoa_r(addr, 0))
34079             return 1;
34080
34081  ;
34082  return 0;
34083 }
34084
34085 _ACEOF
34086 if ac_fn_c_try_compile "$LINENO"; then :
34087
34088         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34089 $as_echo "yes" >&6; }
34090         tst_compi_inet_ntoa_r="yes"
34091         tst_nargs_inet_ntoa_r="2"
34092
34093 else
34094
34095         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34096 $as_echo "no" >&6; }
34097         tst_compi_inet_ntoa_r="no"
34098
34099 fi
34100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34101     fi
34102     if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34103       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
34104 $as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
34105       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34106 /* end confdefs.h.  */
34107
34108
34109           $curl_includes_arpa_inet
34110
34111 int main (void)
34112 {
34113
34114           struct in_addr addr;
34115           if(0 != inet_ntoa_r(addr, 0, 0))
34116             return 1;
34117
34118  ;
34119  return 0;
34120 }
34121
34122 _ACEOF
34123 if ac_fn_c_try_compile "$LINENO"; then :
34124
34125         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34126 $as_echo "yes" >&6; }
34127         tst_compi_inet_ntoa_r="yes"
34128         tst_nargs_inet_ntoa_r="3"
34129
34130 else
34131
34132         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34133 $as_echo "no" >&6; }
34134         tst_compi_inet_ntoa_r="no"
34135
34136 fi
34137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34138     fi
34139     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
34140 $as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
34141     if test "$tst_compi_inet_ntoa_r" = "yes"; then
34142       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34143 $as_echo "yes" >&6; }
34144     else
34145       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34146 $as_echo "no" >&6; }
34147     fi
34148   fi
34149   #
34150   if test "$tst_compi_inet_ntoa_r" = "yes"; then
34151     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
34152 $as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
34153     if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
34154       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34155 $as_echo "yes" >&6; }
34156       tst_allow_inet_ntoa_r="yes"
34157     else
34158       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34159 $as_echo "no" >&6; }
34160       tst_allow_inet_ntoa_r="no"
34161     fi
34162   fi
34163   #
34164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
34165 $as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
34166   if test "$tst_links_inet_ntoa_r" = "yes" &&
34167      test "$tst_proto_inet_ntoa_r" = "yes" &&
34168      test "$tst_compi_inet_ntoa_r" = "yes" &&
34169      test "$tst_allow_inet_ntoa_r" = "yes"; then
34170     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34171 $as_echo "yes" >&6; }
34172
34173 cat >>confdefs.h <<_ACEOF
34174 #define HAVE_INET_NTOA_R 1
34175 _ACEOF
34176
34177             #
34178     if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
34179
34180 $as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
34181
34182     elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
34183
34184 $as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
34185
34186     fi
34187     #
34188     curl_cv_func_inet_ntoa_r="yes"
34189   else
34190     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34191 $as_echo "no" >&6; }
34192     curl_cv_func_inet_ntoa_r="no"
34193   fi
34194
34195
34196         #
34197   tst_links_inet_ntop="unknown"
34198   tst_proto_inet_ntop="unknown"
34199   tst_compi_inet_ntop="unknown"
34200   tst_works_inet_ntop="unknown"
34201   tst_allow_inet_ntop="unknown"
34202   #
34203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
34204 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
34205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34206 /* end confdefs.h.  */
34207
34208
34209 #define inet_ntop innocuous_inet_ntop
34210 #ifdef __STDC__
34211 # include <limits.h>
34212 #else
34213 # include <assert.h>
34214 #endif
34215 #undef inet_ntop
34216 #ifdef __cplusplus
34217 extern "C"
34218 #endif
34219 char inet_ntop ();
34220 #if defined __stub_inet_ntop || defined __stub___inet_ntop
34221 choke me
34222 #endif
34223
34224 int main (void)
34225 {
34226 return inet_ntop ();
34227  ;
34228  return 0;
34229 }
34230
34231 _ACEOF
34232 if ac_fn_c_try_link "$LINENO"; then :
34233
34234     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34235 $as_echo "yes" >&6; }
34236     tst_links_inet_ntop="yes"
34237
34238 else
34239
34240     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34241 $as_echo "no" >&6; }
34242     tst_links_inet_ntop="no"
34243
34244 fi
34245 rm -f core conftest.err conftest.$ac_objext \
34246     conftest$ac_exeext conftest.$ac_ext
34247   #
34248   if test "$tst_links_inet_ntop" = "yes"; then
34249     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
34250 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
34251     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34252 /* end confdefs.h.  */
34253
34254       $curl_includes_arpa_inet
34255
34256 _ACEOF
34257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34258   $EGREP "inet_ntop" >/dev/null 2>&1; then :
34259
34260       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34261 $as_echo "yes" >&6; }
34262       tst_proto_inet_ntop="yes"
34263
34264 else
34265
34266       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34267 $as_echo "no" >&6; }
34268       tst_proto_inet_ntop="no"
34269
34270 fi
34271 rm -f conftest*
34272
34273   fi
34274   #
34275   if test "$tst_proto_inet_ntop" = "yes"; then
34276     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
34277 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
34278     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34279 /* end confdefs.h.  */
34280
34281
34282         $curl_includes_arpa_inet
34283
34284 int main (void)
34285 {
34286
34287         if(0 != inet_ntop(0, 0, 0, 0))
34288           return 1;
34289
34290  ;
34291  return 0;
34292 }
34293
34294 _ACEOF
34295 if ac_fn_c_try_compile "$LINENO"; then :
34296
34297       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34298 $as_echo "yes" >&6; }
34299       tst_compi_inet_ntop="yes"
34300
34301 else
34302
34303       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34304 $as_echo "no" >&6; }
34305       tst_compi_inet_ntop="no"
34306
34307 fi
34308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34309   fi
34310   #
34311     if test "x$cross_compiling" != "xyes" &&
34312     test "$tst_compi_inet_ntop" = "yes"; then
34313     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
34314 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
34315     if test "$cross_compiling" = yes; then :
34316   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34318 as_fn_error $? "cannot run test program while cross compiling
34319 See \`config.log' for more details" "$LINENO" 5; }
34320 else
34321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34322 /* end confdefs.h.  */
34323
34324
34325         $curl_includes_stdlib
34326         $curl_includes_arpa_inet
34327         $curl_includes_string
34328
34329 int main (void)
34330 {
34331
34332         char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
34333         char ipv4res[sizeof "255.255.255.255"];
34334         unsigned char ipv6a[26];
34335         unsigned char ipv4a[5];
34336         char *ipv6ptr = 0;
34337         char *ipv4ptr = 0;
34338         /* - */
34339         ipv4res[0] = '\0';
34340         ipv4a[0] = 0xc0;
34341         ipv4a[1] = 0xa8;
34342         ipv4a[2] = 0x64;
34343         ipv4a[3] = 0x01;
34344         ipv4a[4] = 0x01;
34345         /* - */
34346         ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
34347         if(!ipv4ptr)
34348           exit(1); /* fail */
34349         if(ipv4ptr != ipv4res)
34350           exit(1); /* fail */
34351         if(!ipv4ptr[0])
34352           exit(1); /* fail */
34353         if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
34354           exit(1); /* fail */
34355         /* - */
34356         ipv6res[0] = '\0';
34357         memset(ipv6a, 0, sizeof(ipv6a));
34358         ipv6a[0] = 0xfe;
34359         ipv6a[1] = 0x80;
34360         ipv6a[8] = 0x02;
34361         ipv6a[9] = 0x14;
34362         ipv6a[10] = 0x4f;
34363         ipv6a[11] = 0xff;
34364         ipv6a[12] = 0xfe;
34365         ipv6a[13] = 0x0b;
34366         ipv6a[14] = 0x76;
34367         ipv6a[15] = 0xc8;
34368         ipv6a[25] = 0x01;
34369         /* - */
34370         ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
34371         if(!ipv6ptr)
34372           exit(1); /* fail */
34373         if(ipv6ptr != ipv6res)
34374           exit(1); /* fail */
34375         if(!ipv6ptr[0])
34376           exit(1); /* fail */
34377         if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
34378           exit(1); /* fail */
34379         /* - */
34380         exit(0);
34381
34382  ;
34383  return 0;
34384 }
34385
34386 _ACEOF
34387 if ac_fn_c_try_run "$LINENO"; then :
34388
34389       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34390 $as_echo "yes" >&6; }
34391       tst_works_inet_ntop="yes"
34392
34393 else
34394
34395       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34396 $as_echo "no" >&6; }
34397       tst_works_inet_ntop="no"
34398
34399 fi
34400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34401   conftest.$ac_objext conftest.beam conftest.$ac_ext
34402 fi
34403
34404   fi
34405   #
34406   if test "$tst_compi_inet_ntop" = "yes" &&
34407     test "$tst_works_inet_ntop" != "no"; then
34408     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
34409 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
34410     if test "x$curl_disallow_inet_ntop" != "xyes"; then
34411       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34412 $as_echo "yes" >&6; }
34413       tst_allow_inet_ntop="yes"
34414     else
34415       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34416 $as_echo "no" >&6; }
34417       tst_allow_inet_ntop="no"
34418     fi
34419   fi
34420   #
34421   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
34422 $as_echo_n "checking if inet_ntop might be used... " >&6; }
34423   if test "$tst_links_inet_ntop" = "yes" &&
34424      test "$tst_proto_inet_ntop" = "yes" &&
34425      test "$tst_compi_inet_ntop" = "yes" &&
34426      test "$tst_allow_inet_ntop" = "yes" &&
34427      test "$tst_works_inet_ntop" != "no"; then
34428     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34429 $as_echo "yes" >&6; }
34430
34431 cat >>confdefs.h <<_ACEOF
34432 #define HAVE_INET_NTOP 1
34433 _ACEOF
34434
34435     curl_cv_func_inet_ntop="yes"
34436   else
34437     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34438 $as_echo "no" >&6; }
34439     curl_cv_func_inet_ntop="no"
34440   fi
34441
34442
34443         #
34444   tst_links_inet_pton="unknown"
34445   tst_proto_inet_pton="unknown"
34446   tst_compi_inet_pton="unknown"
34447   tst_works_inet_pton="unknown"
34448   tst_allow_inet_pton="unknown"
34449   #
34450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
34451 $as_echo_n "checking if inet_pton can be linked... " >&6; }
34452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34453 /* end confdefs.h.  */
34454
34455
34456 #define inet_pton innocuous_inet_pton
34457 #ifdef __STDC__
34458 # include <limits.h>
34459 #else
34460 # include <assert.h>
34461 #endif
34462 #undef inet_pton
34463 #ifdef __cplusplus
34464 extern "C"
34465 #endif
34466 char inet_pton ();
34467 #if defined __stub_inet_pton || defined __stub___inet_pton
34468 choke me
34469 #endif
34470
34471 int main (void)
34472 {
34473 return inet_pton ();
34474  ;
34475  return 0;
34476 }
34477
34478 _ACEOF
34479 if ac_fn_c_try_link "$LINENO"; then :
34480
34481     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34482 $as_echo "yes" >&6; }
34483     tst_links_inet_pton="yes"
34484
34485 else
34486
34487     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34488 $as_echo "no" >&6; }
34489     tst_links_inet_pton="no"
34490
34491 fi
34492 rm -f core conftest.err conftest.$ac_objext \
34493     conftest$ac_exeext conftest.$ac_ext
34494   #
34495   if test "$tst_links_inet_pton" = "yes"; then
34496     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
34497 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
34498     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34499 /* end confdefs.h.  */
34500
34501       $curl_includes_arpa_inet
34502
34503 _ACEOF
34504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34505   $EGREP "inet_pton" >/dev/null 2>&1; then :
34506
34507       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34508 $as_echo "yes" >&6; }
34509       tst_proto_inet_pton="yes"
34510
34511 else
34512
34513       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34514 $as_echo "no" >&6; }
34515       tst_proto_inet_pton="no"
34516
34517 fi
34518 rm -f conftest*
34519
34520   fi
34521   #
34522   if test "$tst_proto_inet_pton" = "yes"; then
34523     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
34524 $as_echo_n "checking if inet_pton is compilable... " >&6; }
34525     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34526 /* end confdefs.h.  */
34527
34528
34529         $curl_includes_arpa_inet
34530
34531 int main (void)
34532 {
34533
34534         if(0 != inet_pton(0, 0, 0))
34535           return 1;
34536
34537  ;
34538  return 0;
34539 }
34540
34541 _ACEOF
34542 if ac_fn_c_try_compile "$LINENO"; then :
34543
34544       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34545 $as_echo "yes" >&6; }
34546       tst_compi_inet_pton="yes"
34547
34548 else
34549
34550       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34551 $as_echo "no" >&6; }
34552       tst_compi_inet_pton="no"
34553
34554 fi
34555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34556   fi
34557   #
34558     if test "x$cross_compiling" != "xyes" &&
34559     test "$tst_compi_inet_pton" = "yes"; then
34560     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
34561 $as_echo_n "checking if inet_pton seems to work... " >&6; }
34562     if test "$cross_compiling" = yes; then :
34563   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34565 as_fn_error $? "cannot run test program while cross compiling
34566 See \`config.log' for more details" "$LINENO" 5; }
34567 else
34568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34569 /* end confdefs.h.  */
34570
34571
34572         $curl_includes_stdlib
34573         $curl_includes_arpa_inet
34574         $curl_includes_string
34575
34576 int main (void)
34577 {
34578
34579         unsigned char ipv6a[16+1];
34580         unsigned char ipv4a[4+1];
34581         const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
34582         const char *ipv4src = "192.168.100.1";
34583         /* - */
34584         memset(ipv4a, 1, sizeof(ipv4a));
34585         if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
34586           exit(1); /* fail */
34587         /* - */
34588         if( (ipv4a[0] != 0xc0) ||
34589             (ipv4a[1] != 0xa8) ||
34590             (ipv4a[2] != 0x64) ||
34591             (ipv4a[3] != 0x01) ||
34592             (ipv4a[4] != 0x01) )
34593           exit(1); /* fail */
34594         /* - */
34595         memset(ipv6a, 1, sizeof(ipv6a));
34596         if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
34597           exit(1); /* fail */
34598         /* - */
34599         if( (ipv6a[0]  != 0xfe) ||
34600             (ipv6a[1]  != 0x80) ||
34601             (ipv6a[8]  != 0x02) ||
34602             (ipv6a[9]  != 0x14) ||
34603             (ipv6a[10] != 0x4f) ||
34604             (ipv6a[11] != 0xff) ||
34605             (ipv6a[12] != 0xfe) ||
34606             (ipv6a[13] != 0x0b) ||
34607             (ipv6a[14] != 0x76) ||
34608             (ipv6a[15] != 0xc8) ||
34609             (ipv6a[16] != 0x01) )
34610           exit(1); /* fail */
34611         /* - */
34612         if( (ipv6a[2]  != 0x0) ||
34613             (ipv6a[3]  != 0x0) ||
34614             (ipv6a[4]  != 0x0) ||
34615             (ipv6a[5]  != 0x0) ||
34616             (ipv6a[6]  != 0x0) ||
34617             (ipv6a[7]  != 0x0) )
34618           exit(1); /* fail */
34619         /* - */
34620         exit(0);
34621
34622  ;
34623  return 0;
34624 }
34625
34626 _ACEOF
34627 if ac_fn_c_try_run "$LINENO"; then :
34628
34629       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34630 $as_echo "yes" >&6; }
34631       tst_works_inet_pton="yes"
34632
34633 else
34634
34635       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34636 $as_echo "no" >&6; }
34637       tst_works_inet_pton="no"
34638
34639 fi
34640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34641   conftest.$ac_objext conftest.beam conftest.$ac_ext
34642 fi
34643
34644   fi
34645   #
34646   if test "$tst_compi_inet_pton" = "yes" &&
34647     test "$tst_works_inet_pton" != "no"; then
34648     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
34649 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
34650     if test "x$curl_disallow_inet_pton" != "xyes"; then
34651       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34652 $as_echo "yes" >&6; }
34653       tst_allow_inet_pton="yes"
34654     else
34655       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34656 $as_echo "no" >&6; }
34657       tst_allow_inet_pton="no"
34658     fi
34659   fi
34660   #
34661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
34662 $as_echo_n "checking if inet_pton might be used... " >&6; }
34663   if test "$tst_links_inet_pton" = "yes" &&
34664      test "$tst_proto_inet_pton" = "yes" &&
34665      test "$tst_compi_inet_pton" = "yes" &&
34666      test "$tst_allow_inet_pton" = "yes" &&
34667      test "$tst_works_inet_pton" != "no"; then
34668     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34669 $as_echo "yes" >&6; }
34670
34671 cat >>confdefs.h <<_ACEOF
34672 #define HAVE_INET_PTON 1
34673 _ACEOF
34674
34675     curl_cv_func_inet_pton="yes"
34676   else
34677     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34678 $as_echo "no" >&6; }
34679     curl_cv_func_inet_pton="no"
34680   fi
34681
34682
34683 curl_includes_stropts="\
34684 /* includes start */
34685 #ifdef HAVE_SYS_TYPES_H
34686 #  include <sys/types.h>
34687 #endif
34688 #ifdef HAVE_UNISTD_H
34689 #  include <unistd.h>
34690 #endif
34691 #ifdef HAVE_SYS_SOCKET_H
34692 #  include <sys/socket.h>
34693 #endif
34694 #ifdef HAVE_SYS_IOCTL_H
34695 #  include <sys/ioctl.h>
34696 #endif
34697 #ifdef HAVE_STROPTS_H
34698 #  include <stropts.h>
34699 #endif
34700 /* includes end */"
34701   for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
34702 do :
34703   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34704 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
34705 "
34706 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34707   cat >>confdefs.h <<_ACEOF
34708 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34709 _ACEOF
34710
34711 fi
34712
34713 done
34714
34715
34716
34717     #
34718   tst_links_ioctl="unknown"
34719   tst_proto_ioctl="unknown"
34720   tst_compi_ioctl="unknown"
34721   tst_allow_ioctl="unknown"
34722   #
34723   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
34724 $as_echo_n "checking if ioctl can be linked... " >&6; }
34725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34726 /* end confdefs.h.  */
34727
34728
34729 #define ioctl innocuous_ioctl
34730 #ifdef __STDC__
34731 # include <limits.h>
34732 #else
34733 # include <assert.h>
34734 #endif
34735 #undef ioctl
34736 #ifdef __cplusplus
34737 extern "C"
34738 #endif
34739 char ioctl ();
34740 #if defined __stub_ioctl || defined __stub___ioctl
34741 choke me
34742 #endif
34743
34744 int main (void)
34745 {
34746 return ioctl ();
34747  ;
34748  return 0;
34749 }
34750
34751 _ACEOF
34752 if ac_fn_c_try_link "$LINENO"; then :
34753
34754     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34755 $as_echo "yes" >&6; }
34756     tst_links_ioctl="yes"
34757
34758 else
34759
34760     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34761 $as_echo "no" >&6; }
34762     tst_links_ioctl="no"
34763
34764 fi
34765 rm -f core conftest.err conftest.$ac_objext \
34766     conftest$ac_exeext conftest.$ac_ext
34767   #
34768   if test "$tst_links_ioctl" = "yes"; then
34769     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
34770 $as_echo_n "checking if ioctl is prototyped... " >&6; }
34771     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34772 /* end confdefs.h.  */
34773
34774       $curl_includes_stropts
34775
34776 _ACEOF
34777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34778   $EGREP "ioctl" >/dev/null 2>&1; then :
34779
34780       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34781 $as_echo "yes" >&6; }
34782       tst_proto_ioctl="yes"
34783
34784 else
34785
34786       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34787 $as_echo "no" >&6; }
34788       tst_proto_ioctl="no"
34789
34790 fi
34791 rm -f conftest*
34792
34793   fi
34794   #
34795   if test "$tst_proto_ioctl" = "yes"; then
34796     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
34797 $as_echo_n "checking if ioctl is compilable... " >&6; }
34798     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34799 /* end confdefs.h.  */
34800
34801
34802         $curl_includes_stropts
34803
34804 int main (void)
34805 {
34806
34807         if(0 != ioctl(0, 0, 0))
34808           return 1;
34809
34810  ;
34811  return 0;
34812 }
34813
34814 _ACEOF
34815 if ac_fn_c_try_compile "$LINENO"; then :
34816
34817       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34818 $as_echo "yes" >&6; }
34819       tst_compi_ioctl="yes"
34820
34821 else
34822
34823       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34824 $as_echo "no" >&6; }
34825       tst_compi_ioctl="no"
34826
34827 fi
34828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34829   fi
34830   #
34831   if test "$tst_compi_ioctl" = "yes"; then
34832     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
34833 $as_echo_n "checking if ioctl usage allowed... " >&6; }
34834     if test "x$curl_disallow_ioctl" != "xyes"; then
34835       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34836 $as_echo "yes" >&6; }
34837       tst_allow_ioctl="yes"
34838     else
34839       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34840 $as_echo "no" >&6; }
34841       tst_allow_ioctl="no"
34842     fi
34843   fi
34844   #
34845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
34846 $as_echo_n "checking if ioctl might be used... " >&6; }
34847   if test "$tst_links_ioctl" = "yes" &&
34848      test "$tst_proto_ioctl" = "yes" &&
34849      test "$tst_compi_ioctl" = "yes" &&
34850      test "$tst_allow_ioctl" = "yes"; then
34851     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34852 $as_echo "yes" >&6; }
34853
34854 cat >>confdefs.h <<_ACEOF
34855 #define HAVE_IOCTL 1
34856 _ACEOF
34857
34858     curl_cv_func_ioctl="yes"
34859
34860   #
34861   tst_compi_ioctl_fionbio="unknown"
34862   tst_allow_ioctl_fionbio="unknown"
34863   #
34864   if test "$curl_cv_func_ioctl" = "yes"; then
34865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
34866 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
34867     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34868 /* end confdefs.h.  */
34869
34870
34871         $curl_includes_stropts
34872
34873 int main (void)
34874 {
34875
34876         int flags = 0;
34877         if(0 != ioctl(0, FIONBIO, &flags))
34878           return 1;
34879
34880  ;
34881  return 0;
34882 }
34883
34884 _ACEOF
34885 if ac_fn_c_try_compile "$LINENO"; then :
34886
34887       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34888 $as_echo "yes" >&6; }
34889       tst_compi_ioctl_fionbio="yes"
34890
34891 else
34892
34893       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34894 $as_echo "no" >&6; }
34895       tst_compi_ioctl_fionbio="no"
34896
34897 fi
34898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34899   fi
34900   #
34901   if test "$tst_compi_ioctl_fionbio" = "yes"; then
34902     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
34903 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
34904     if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
34905       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34906 $as_echo "yes" >&6; }
34907       tst_allow_ioctl_fionbio="yes"
34908     else
34909       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34910 $as_echo "no" >&6; }
34911       tst_allow_ioctl_fionbio="no"
34912     fi
34913   fi
34914   #
34915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
34916 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
34917   if test "$tst_compi_ioctl_fionbio" = "yes" &&
34918      test "$tst_allow_ioctl_fionbio" = "yes"; then
34919     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34920 $as_echo "yes" >&6; }
34921
34922 cat >>confdefs.h <<_ACEOF
34923 #define HAVE_IOCTL_FIONBIO 1
34924 _ACEOF
34925
34926     curl_cv_func_ioctl_fionbio="yes"
34927   else
34928     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34929 $as_echo "no" >&6; }
34930     curl_cv_func_ioctl_fionbio="no"
34931   fi
34932
34933
34934   #
34935   tst_compi_ioctl_siocgifaddr="unknown"
34936   tst_allow_ioctl_siocgifaddr="unknown"
34937   #
34938   if test "$curl_cv_func_ioctl" = "yes"; then
34939     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
34940 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
34941     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34942 /* end confdefs.h.  */
34943
34944
34945         $curl_includes_stropts
34946         #include <net/if.h>
34947
34948 int main (void)
34949 {
34950
34951         struct ifreq ifr;
34952         if(0 != ioctl(0, SIOCGIFADDR, &ifr))
34953           return 1;
34954
34955  ;
34956  return 0;
34957 }
34958
34959 _ACEOF
34960 if ac_fn_c_try_compile "$LINENO"; then :
34961
34962       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34963 $as_echo "yes" >&6; }
34964       tst_compi_ioctl_siocgifaddr="yes"
34965
34966 else
34967
34968       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34969 $as_echo "no" >&6; }
34970       tst_compi_ioctl_siocgifaddr="no"
34971
34972 fi
34973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34974   fi
34975   #
34976   if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
34977     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
34978 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
34979     if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
34980       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34981 $as_echo "yes" >&6; }
34982       tst_allow_ioctl_siocgifaddr="yes"
34983     else
34984       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34985 $as_echo "no" >&6; }
34986       tst_allow_ioctl_siocgifaddr="no"
34987     fi
34988   fi
34989   #
34990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
34991 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
34992   if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
34993      test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
34994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34995 $as_echo "yes" >&6; }
34996
34997 cat >>confdefs.h <<_ACEOF
34998 #define HAVE_IOCTL_SIOCGIFADDR 1
34999 _ACEOF
35000
35001     curl_cv_func_ioctl_siocgifaddr="yes"
35002   else
35003     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35004 $as_echo "no" >&6; }
35005     curl_cv_func_ioctl_siocgifaddr="no"
35006   fi
35007
35008   else
35009     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35010 $as_echo "no" >&6; }
35011     curl_cv_func_ioctl="no"
35012   fi
35013
35014
35015     #
35016   tst_links_ioctlsocket="unknown"
35017   tst_proto_ioctlsocket="unknown"
35018   tst_compi_ioctlsocket="unknown"
35019   tst_allow_ioctlsocket="unknown"
35020   #
35021   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
35022 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
35023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35024 /* end confdefs.h.  */
35025
35026
35027       $curl_includes_winsock2
35028
35029 int main (void)
35030 {
35031
35032       if(0 != ioctlsocket(0, 0, 0))
35033         return 1;
35034
35035  ;
35036  return 0;
35037 }
35038
35039 _ACEOF
35040 if ac_fn_c_try_link "$LINENO"; then :
35041
35042     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35043 $as_echo "yes" >&6; }
35044     tst_links_ioctlsocket="yes"
35045
35046 else
35047
35048     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35049 $as_echo "no" >&6; }
35050     tst_links_ioctlsocket="no"
35051
35052 fi
35053 rm -f core conftest.err conftest.$ac_objext \
35054     conftest$ac_exeext conftest.$ac_ext
35055   #
35056   if test "$tst_links_ioctlsocket" = "yes"; then
35057     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
35058 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
35059     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35060 /* end confdefs.h.  */
35061
35062       $curl_includes_winsock2
35063
35064 _ACEOF
35065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35066   $EGREP "ioctlsocket" >/dev/null 2>&1; then :
35067
35068       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35069 $as_echo "yes" >&6; }
35070       tst_proto_ioctlsocket="yes"
35071
35072 else
35073
35074       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35075 $as_echo "no" >&6; }
35076       tst_proto_ioctlsocket="no"
35077
35078 fi
35079 rm -f conftest*
35080
35081   fi
35082   #
35083   if test "$tst_proto_ioctlsocket" = "yes"; then
35084     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
35085 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
35086     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35087 /* end confdefs.h.  */
35088
35089
35090         $curl_includes_winsock2
35091
35092 int main (void)
35093 {
35094
35095         if(0 != ioctlsocket(0, 0, 0))
35096           return 1;
35097
35098  ;
35099  return 0;
35100 }
35101
35102 _ACEOF
35103 if ac_fn_c_try_compile "$LINENO"; then :
35104
35105       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35106 $as_echo "yes" >&6; }
35107       tst_compi_ioctlsocket="yes"
35108
35109 else
35110
35111       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35112 $as_echo "no" >&6; }
35113       tst_compi_ioctlsocket="no"
35114
35115 fi
35116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35117   fi
35118   #
35119   if test "$tst_compi_ioctlsocket" = "yes"; then
35120     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
35121 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
35122     if test "x$curl_disallow_ioctlsocket" != "xyes"; then
35123       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35124 $as_echo "yes" >&6; }
35125       tst_allow_ioctlsocket="yes"
35126     else
35127       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35128 $as_echo "no" >&6; }
35129       tst_allow_ioctlsocket="no"
35130     fi
35131   fi
35132   #
35133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
35134 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
35135   if test "$tst_links_ioctlsocket" = "yes" &&
35136      test "$tst_proto_ioctlsocket" = "yes" &&
35137      test "$tst_compi_ioctlsocket" = "yes" &&
35138      test "$tst_allow_ioctlsocket" = "yes"; then
35139     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35140 $as_echo "yes" >&6; }
35141
35142 cat >>confdefs.h <<_ACEOF
35143 #define HAVE_IOCTLSOCKET 1
35144 _ACEOF
35145
35146     curl_cv_func_ioctlsocket="yes"
35147
35148   #
35149   tst_compi_ioctlsocket_fionbio="unknown"
35150   tst_allow_ioctlsocket_fionbio="unknown"
35151   #
35152   if test "$curl_cv_func_ioctlsocket" = "yes"; then
35153     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
35154 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
35155     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35156 /* end confdefs.h.  */
35157
35158
35159         $curl_includes_winsock2
35160
35161 int main (void)
35162 {
35163
35164         int flags = 0;
35165         if(0 != ioctlsocket(0, FIONBIO, &flags))
35166           return 1;
35167
35168  ;
35169  return 0;
35170 }
35171
35172 _ACEOF
35173 if ac_fn_c_try_compile "$LINENO"; then :
35174
35175       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35176 $as_echo "yes" >&6; }
35177       tst_compi_ioctlsocket_fionbio="yes"
35178
35179 else
35180
35181       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35182 $as_echo "no" >&6; }
35183       tst_compi_ioctlsocket_fionbio="no"
35184
35185 fi
35186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35187   fi
35188   #
35189   if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
35190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
35191 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
35192     if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
35193       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35194 $as_echo "yes" >&6; }
35195       tst_allow_ioctlsocket_fionbio="yes"
35196     else
35197       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35198 $as_echo "no" >&6; }
35199       tst_allow_ioctlsocket_fionbio="no"
35200     fi
35201   fi
35202   #
35203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
35204 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
35205   if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
35206      test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
35207     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35208 $as_echo "yes" >&6; }
35209
35210 cat >>confdefs.h <<_ACEOF
35211 #define HAVE_IOCTLSOCKET_FIONBIO 1
35212 _ACEOF
35213
35214     curl_cv_func_ioctlsocket_fionbio="yes"
35215   else
35216     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35217 $as_echo "no" >&6; }
35218     curl_cv_func_ioctlsocket_fionbio="no"
35219   fi
35220
35221   else
35222     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35223 $as_echo "no" >&6; }
35224     curl_cv_func_ioctlsocket="no"
35225   fi
35226
35227
35228     #
35229   tst_links_ioctlsocket_camel="unknown"
35230   tst_proto_ioctlsocket_camel="unknown"
35231   tst_compi_ioctlsocket_camel="unknown"
35232   tst_allow_ioctlsocket_camel="unknown"
35233   #
35234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
35235 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
35236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35237 /* end confdefs.h.  */
35238
35239
35240 #define IoctlSocket innocuous_IoctlSocket
35241 #ifdef __STDC__
35242 # include <limits.h>
35243 #else
35244 # include <assert.h>
35245 #endif
35246 #undef IoctlSocket
35247 #ifdef __cplusplus
35248 extern "C"
35249 #endif
35250 char IoctlSocket ();
35251 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
35252 choke me
35253 #endif
35254
35255 int main (void)
35256 {
35257 return IoctlSocket ();
35258  ;
35259  return 0;
35260 }
35261
35262 _ACEOF
35263 if ac_fn_c_try_link "$LINENO"; then :
35264
35265     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35266 $as_echo "yes" >&6; }
35267     tst_links_ioctlsocket_camel="yes"
35268
35269 else
35270
35271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35272 $as_echo "no" >&6; }
35273     tst_links_ioctlsocket_camel="no"
35274
35275 fi
35276 rm -f core conftest.err conftest.$ac_objext \
35277     conftest$ac_exeext conftest.$ac_ext
35278   #
35279   if test "$tst_links_ioctlsocket_camel" = "yes"; then
35280     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
35281 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
35282     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35283 /* end confdefs.h.  */
35284
35285       $curl_includes_stropts
35286
35287 _ACEOF
35288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35289   $EGREP "IoctlSocket" >/dev/null 2>&1; then :
35290
35291       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35292 $as_echo "yes" >&6; }
35293       tst_proto_ioctlsocket_camel="yes"
35294
35295 else
35296
35297       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35298 $as_echo "no" >&6; }
35299       tst_proto_ioctlsocket_camel="no"
35300
35301 fi
35302 rm -f conftest*
35303
35304   fi
35305   #
35306   if test "$tst_proto_ioctlsocket_camel" = "yes"; then
35307     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
35308 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
35309     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35310 /* end confdefs.h.  */
35311
35312
35313         $curl_includes_stropts
35314
35315 int main (void)
35316 {
35317
35318         if(0 != IoctlSocket(0, 0, 0))
35319           return 1;
35320
35321  ;
35322  return 0;
35323 }
35324
35325 _ACEOF
35326 if ac_fn_c_try_compile "$LINENO"; then :
35327
35328       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35329 $as_echo "yes" >&6; }
35330       tst_compi_ioctlsocket_camel="yes"
35331
35332 else
35333
35334       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35335 $as_echo "no" >&6; }
35336       tst_compi_ioctlsocket_camel="no"
35337
35338 fi
35339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35340   fi
35341   #
35342   if test "$tst_compi_ioctlsocket_camel" = "yes"; then
35343     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
35344 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
35345     if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
35346       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35347 $as_echo "yes" >&6; }
35348       tst_allow_ioctlsocket_camel="yes"
35349     else
35350       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35351 $as_echo "no" >&6; }
35352       tst_allow_ioctlsocket_camel="no"
35353     fi
35354   fi
35355   #
35356   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
35357 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
35358   if test "$tst_links_ioctlsocket_camel" = "yes" &&
35359      test "$tst_proto_ioctlsocket_camel" = "yes" &&
35360      test "$tst_compi_ioctlsocket_camel" = "yes" &&
35361      test "$tst_allow_ioctlsocket_camel" = "yes"; then
35362     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35363 $as_echo "yes" >&6; }
35364
35365 cat >>confdefs.h <<_ACEOF
35366 #define HAVE_IOCTLSOCKET_CAMEL 1
35367 _ACEOF
35368
35369     curl_cv_func_ioctlsocket_camel="yes"
35370
35371   #
35372   tst_compi_ioctlsocket_camel_fionbio="unknown"
35373   tst_allow_ioctlsocket_camel_fionbio="unknown"
35374   #
35375   if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
35376     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
35377 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
35378     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35379 /* end confdefs.h.  */
35380
35381
35382         $curl_includes_stropts
35383
35384 int main (void)
35385 {
35386
35387         long flags = 0;
35388         if(0 != ioctlsocket(0, FIONBIO, &flags))
35389           return 1;
35390
35391  ;
35392  return 0;
35393 }
35394
35395 _ACEOF
35396 if ac_fn_c_try_compile "$LINENO"; then :
35397
35398       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35399 $as_echo "yes" >&6; }
35400       tst_compi_ioctlsocket_camel_fionbio="yes"
35401
35402 else
35403
35404       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35405 $as_echo "no" >&6; }
35406       tst_compi_ioctlsocket_camel_fionbio="no"
35407
35408 fi
35409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35410   fi
35411   #
35412   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
35413     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
35414 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
35415     if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
35416       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35417 $as_echo "yes" >&6; }
35418       tst_allow_ioctlsocket_camel_fionbio="yes"
35419     else
35420       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35421 $as_echo "no" >&6; }
35422       tst_allow_ioctlsocket_camel_fionbio="no"
35423     fi
35424   fi
35425   #
35426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
35427 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
35428   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
35429      test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
35430     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35431 $as_echo "yes" >&6; }
35432
35433 cat >>confdefs.h <<_ACEOF
35434 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
35435 _ACEOF
35436
35437     curl_cv_func_ioctlsocket_camel_fionbio="yes"
35438   else
35439     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35440 $as_echo "no" >&6; }
35441     curl_cv_func_ioctlsocket_camel_fionbio="no"
35442   fi
35443
35444   else
35445     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35446 $as_echo "no" >&6; }
35447     curl_cv_func_ioctlsocket_camel="no"
35448   fi
35449
35450
35451       #
35452   tst_links_localtime_r="unknown"
35453   tst_proto_localtime_r="unknown"
35454   tst_compi_localtime_r="unknown"
35455   tst_works_localtime_r="unknown"
35456   tst_allow_localtime_r="unknown"
35457   #
35458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
35459 $as_echo_n "checking if localtime_r can be linked... " >&6; }
35460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35461 /* end confdefs.h.  */
35462
35463
35464 #define localtime_r innocuous_localtime_r
35465 #ifdef __STDC__
35466 # include <limits.h>
35467 #else
35468 # include <assert.h>
35469 #endif
35470 #undef localtime_r
35471 #ifdef __cplusplus
35472 extern "C"
35473 #endif
35474 char localtime_r ();
35475 #if defined __stub_localtime_r || defined __stub___localtime_r
35476 choke me
35477 #endif
35478
35479 int main (void)
35480 {
35481 return localtime_r ();
35482  ;
35483  return 0;
35484 }
35485
35486 _ACEOF
35487 if ac_fn_c_try_link "$LINENO"; then :
35488
35489     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35490 $as_echo "yes" >&6; }
35491     tst_links_localtime_r="yes"
35492
35493 else
35494
35495     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35496 $as_echo "no" >&6; }
35497     tst_links_localtime_r="no"
35498
35499 fi
35500 rm -f core conftest.err conftest.$ac_objext \
35501     conftest$ac_exeext conftest.$ac_ext
35502   #
35503   if test "$tst_links_localtime_r" = "yes"; then
35504     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
35505 $as_echo_n "checking if localtime_r is prototyped... " >&6; }
35506     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35507 /* end confdefs.h.  */
35508
35509       $curl_includes_time
35510
35511 _ACEOF
35512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35513   $EGREP "localtime_r" >/dev/null 2>&1; then :
35514
35515       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35516 $as_echo "yes" >&6; }
35517       tst_proto_localtime_r="yes"
35518
35519 else
35520
35521       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35522 $as_echo "no" >&6; }
35523       tst_proto_localtime_r="no"
35524
35525 fi
35526 rm -f conftest*
35527
35528   fi
35529   #
35530   if test "$tst_proto_localtime_r" = "yes"; then
35531     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
35532 $as_echo_n "checking if localtime_r is compilable... " >&6; }
35533     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35534 /* end confdefs.h.  */
35535
35536
35537         $curl_includes_time
35538
35539 int main (void)
35540 {
35541
35542         if(0 != localtime_r(0, 0))
35543           return 1;
35544
35545  ;
35546  return 0;
35547 }
35548
35549 _ACEOF
35550 if ac_fn_c_try_compile "$LINENO"; then :
35551
35552       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35553 $as_echo "yes" >&6; }
35554       tst_compi_localtime_r="yes"
35555
35556 else
35557
35558       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35559 $as_echo "no" >&6; }
35560       tst_compi_localtime_r="no"
35561
35562 fi
35563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35564   fi
35565   #
35566     if test "x$cross_compiling" != "xyes" &&
35567     test "$tst_compi_localtime_r" = "yes"; then
35568     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
35569 $as_echo_n "checking if localtime_r seems to work... " >&6; }
35570     if test "$cross_compiling" = yes; then :
35571   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35573 as_fn_error $? "cannot run test program while cross compiling
35574 See \`config.log' for more details" "$LINENO" 5; }
35575 else
35576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35577 /* end confdefs.h.  */
35578
35579
35580         $curl_includes_stdlib
35581         $curl_includes_time
35582
35583 int main (void)
35584 {
35585
35586         time_t clock = 1170352587;
35587         struct tm *tmp = 0;
35588         struct tm result;
35589         tmp = localtime_r(&clock, &result);
35590         if(tmp)
35591           exit(0);
35592         else
35593           exit(1);
35594
35595  ;
35596  return 0;
35597 }
35598
35599 _ACEOF
35600 if ac_fn_c_try_run "$LINENO"; then :
35601
35602       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35603 $as_echo "yes" >&6; }
35604       tst_works_localtime_r="yes"
35605
35606 else
35607
35608       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35609 $as_echo "no" >&6; }
35610       tst_works_localtime_r="no"
35611
35612 fi
35613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35614   conftest.$ac_objext conftest.beam conftest.$ac_ext
35615 fi
35616
35617   fi
35618   #
35619   if test "$tst_compi_localtime_r" = "yes" &&
35620     test "$tst_works_localtime_r" != "no"; then
35621     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
35622 $as_echo_n "checking if localtime_r usage allowed... " >&6; }
35623     if test "x$curl_disallow_localtime_r" != "xyes"; then
35624       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35625 $as_echo "yes" >&6; }
35626       tst_allow_localtime_r="yes"
35627     else
35628       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35629 $as_echo "no" >&6; }
35630       tst_allow_localtime_r="no"
35631     fi
35632   fi
35633   #
35634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
35635 $as_echo_n "checking if localtime_r might be used... " >&6; }
35636   if test "$tst_links_localtime_r" = "yes" &&
35637      test "$tst_proto_localtime_r" = "yes" &&
35638      test "$tst_compi_localtime_r" = "yes" &&
35639      test "$tst_allow_localtime_r" = "yes" &&
35640      test "$tst_works_localtime_r" != "no"; then
35641     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35642 $as_echo "yes" >&6; }
35643
35644 cat >>confdefs.h <<_ACEOF
35645 #define HAVE_LOCALTIME_R 1
35646 _ACEOF
35647
35648     curl_cv_func_localtime_r="yes"
35649   else
35650     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35651 $as_echo "no" >&6; }
35652     curl_cv_func_localtime_r="no"
35653   fi
35654
35655
35656     #
35657   tst_links_memrchr="unknown"
35658   tst_macro_memrchr="unknown"
35659   tst_proto_memrchr="unknown"
35660   tst_compi_memrchr="unknown"
35661   tst_allow_memrchr="unknown"
35662   #
35663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
35664 $as_echo_n "checking if memrchr can be linked... " >&6; }
35665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35666 /* end confdefs.h.  */
35667
35668
35669 #define memrchr innocuous_memrchr
35670 #ifdef __STDC__
35671 # include <limits.h>
35672 #else
35673 # include <assert.h>
35674 #endif
35675 #undef memrchr
35676 #ifdef __cplusplus
35677 extern "C"
35678 #endif
35679 char memrchr ();
35680 #if defined __stub_memrchr || defined __stub___memrchr
35681 choke me
35682 #endif
35683
35684 int main (void)
35685 {
35686 return memrchr ();
35687  ;
35688  return 0;
35689 }
35690
35691 _ACEOF
35692 if ac_fn_c_try_link "$LINENO"; then :
35693
35694     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35695 $as_echo "yes" >&6; }
35696     tst_links_memrchr="yes"
35697
35698 else
35699
35700     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35701 $as_echo "no" >&6; }
35702     tst_links_memrchr="no"
35703
35704 fi
35705 rm -f core conftest.err conftest.$ac_objext \
35706     conftest$ac_exeext conftest.$ac_ext
35707   #
35708   if test "$tst_links_memrchr" = "no"; then
35709     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
35710 $as_echo_n "checking if memrchr seems a macro... " >&6; }
35711     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35712 /* end confdefs.h.  */
35713
35714
35715         $curl_includes_string
35716
35717 int main (void)
35718 {
35719
35720         if(0 != memrchr(0, 0, 0))
35721           return 1;
35722
35723  ;
35724  return 0;
35725 }
35726
35727 _ACEOF
35728 if ac_fn_c_try_link "$LINENO"; then :
35729
35730       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35731 $as_echo "yes" >&6; }
35732       tst_macro_memrchr="yes"
35733
35734 else
35735
35736       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35737 $as_echo "no" >&6; }
35738       tst_macro_memrchr="no"
35739
35740 fi
35741 rm -f core conftest.err conftest.$ac_objext \
35742     conftest$ac_exeext conftest.$ac_ext
35743   fi
35744   #
35745   if test "$tst_links_memrchr" = "yes"; then
35746     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
35747 $as_echo_n "checking if memrchr is prototyped... " >&6; }
35748     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35749 /* end confdefs.h.  */
35750
35751       $curl_includes_string
35752
35753 _ACEOF
35754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35755   $EGREP "memrchr" >/dev/null 2>&1; then :
35756
35757       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35758 $as_echo "yes" >&6; }
35759       tst_proto_memrchr="yes"
35760
35761 else
35762
35763       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35764 $as_echo "no" >&6; }
35765       tst_proto_memrchr="no"
35766
35767 fi
35768 rm -f conftest*
35769
35770   fi
35771   #
35772   if test "$tst_proto_memrchr" = "yes" ||
35773      test "$tst_macro_memrchr" = "yes"; then
35774     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
35775 $as_echo_n "checking if memrchr is compilable... " >&6; }
35776     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35777 /* end confdefs.h.  */
35778
35779
35780         $curl_includes_string
35781
35782 int main (void)
35783 {
35784
35785         if(0 != memrchr(0, 0, 0))
35786           return 1;
35787
35788  ;
35789  return 0;
35790 }
35791
35792 _ACEOF
35793 if ac_fn_c_try_compile "$LINENO"; then :
35794
35795       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35796 $as_echo "yes" >&6; }
35797       tst_compi_memrchr="yes"
35798
35799 else
35800
35801       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35802 $as_echo "no" >&6; }
35803       tst_compi_memrchr="no"
35804
35805 fi
35806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35807   fi
35808   #
35809   if test "$tst_compi_memrchr" = "yes"; then
35810     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
35811 $as_echo_n "checking if memrchr usage allowed... " >&6; }
35812     if test "x$curl_disallow_memrchr" != "xyes"; then
35813       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35814 $as_echo "yes" >&6; }
35815       tst_allow_memrchr="yes"
35816     else
35817       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35818 $as_echo "no" >&6; }
35819       tst_allow_memrchr="no"
35820     fi
35821   fi
35822   #
35823   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
35824 $as_echo_n "checking if memrchr might be used... " >&6; }
35825   if (test "$tst_proto_memrchr" = "yes" ||
35826       test "$tst_macro_memrchr" = "yes") &&
35827      test "$tst_compi_memrchr" = "yes" &&
35828      test "$tst_allow_memrchr" = "yes"; then
35829     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35830 $as_echo "yes" >&6; }
35831
35832 cat >>confdefs.h <<_ACEOF
35833 #define HAVE_MEMRCHR 1
35834 _ACEOF
35835
35836     curl_cv_func_memrchr="yes"
35837   else
35838     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35839 $as_echo "no" >&6; }
35840     curl_cv_func_memrchr="no"
35841   fi
35842
35843
35844       #
35845   tst_links_poll="unknown"
35846   tst_proto_poll="unknown"
35847   tst_compi_poll="unknown"
35848   tst_works_poll="unknown"
35849   tst_allow_poll="unknown"
35850   #
35851   case $host_os in
35852     darwin*|interix*)
35853                                           curl_disallow_poll="yes"
35854       tst_compi_poll="no"
35855       ;;
35856   esac
35857   #
35858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
35859 $as_echo_n "checking if poll can be linked... " >&6; }
35860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35861 /* end confdefs.h.  */
35862
35863
35864       $curl_includes_poll
35865
35866 int main (void)
35867 {
35868
35869       if(0 != poll(0, 0, 0))
35870         return 1;
35871
35872  ;
35873  return 0;
35874 }
35875
35876 _ACEOF
35877 if ac_fn_c_try_link "$LINENO"; then :
35878
35879     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35880 $as_echo "yes" >&6; }
35881     tst_links_poll="yes"
35882
35883 else
35884
35885     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35886 $as_echo "no" >&6; }
35887     tst_links_poll="no"
35888
35889 fi
35890 rm -f core conftest.err conftest.$ac_objext \
35891     conftest$ac_exeext conftest.$ac_ext
35892   #
35893   if test "$tst_links_poll" = "yes"; then
35894     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
35895 $as_echo_n "checking if poll is prototyped... " >&6; }
35896     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35897 /* end confdefs.h.  */
35898
35899       $curl_includes_poll
35900
35901 _ACEOF
35902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35903   $EGREP "poll" >/dev/null 2>&1; then :
35904
35905       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35906 $as_echo "yes" >&6; }
35907       tst_proto_poll="yes"
35908
35909 else
35910
35911       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35912 $as_echo "no" >&6; }
35913       tst_proto_poll="no"
35914
35915 fi
35916 rm -f conftest*
35917
35918   fi
35919   #
35920   if test "$tst_proto_poll" = "yes"; then
35921     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
35922 $as_echo_n "checking if poll is compilable... " >&6; }
35923     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35924 /* end confdefs.h.  */
35925
35926
35927         $curl_includes_poll
35928
35929 int main (void)
35930 {
35931
35932         if(0 != poll(0, 0, 0))
35933           return 1;
35934
35935  ;
35936  return 0;
35937 }
35938
35939 _ACEOF
35940 if ac_fn_c_try_compile "$LINENO"; then :
35941
35942       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35943 $as_echo "yes" >&6; }
35944       tst_compi_poll="yes"
35945
35946 else
35947
35948       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35949 $as_echo "no" >&6; }
35950       tst_compi_poll="no"
35951
35952 fi
35953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35954   fi
35955   #
35956     if test "x$cross_compiling" != "xyes" &&
35957     test "$tst_compi_poll" = "yes"; then
35958     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
35959 $as_echo_n "checking if poll seems to work... " >&6; }
35960     if test "$cross_compiling" = yes; then :
35961   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35963 as_fn_error $? "cannot run test program while cross compiling
35964 See \`config.log' for more details" "$LINENO" 5; }
35965 else
35966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35967 /* end confdefs.h.  */
35968
35969
35970         $curl_includes_stdlib
35971         $curl_includes_poll
35972         $curl_includes_time
35973
35974 int main (void)
35975 {
35976
35977         /* detect the original poll() breakage */
35978         if(0 != poll(0, 0, 10))
35979           exit(1); /* fail */
35980         else {
35981           /* detect the 10.12 poll() breakage */
35982           struct timeval before, after;
35983           int rc;
35984           size_t us;
35985
35986           gettimeofday(&before, NULL);
35987           rc = poll(NULL, 0, 500);
35988           gettimeofday(&after, NULL);
35989
35990           us = (after.tv_sec - before.tv_sec) * 1000000 +
35991             (after.tv_usec - before.tv_usec);
35992
35993           if(us < 400000)
35994             exit(1);
35995         }
35996
35997  ;
35998  return 0;
35999 }
36000
36001 _ACEOF
36002 if ac_fn_c_try_run "$LINENO"; then :
36003
36004       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36005 $as_echo "yes" >&6; }
36006       tst_works_poll="yes"
36007
36008 else
36009
36010       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36011 $as_echo "no" >&6; }
36012       tst_works_poll="no"
36013
36014 fi
36015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36016   conftest.$ac_objext conftest.beam conftest.$ac_ext
36017 fi
36018
36019   fi
36020   #
36021   if test "$tst_compi_poll" = "yes" &&
36022     test "$tst_works_poll" != "no"; then
36023     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
36024 $as_echo_n "checking if poll usage allowed... " >&6; }
36025     if test "x$curl_disallow_poll" != "xyes"; then
36026       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36027 $as_echo "yes" >&6; }
36028       tst_allow_poll="yes"
36029     else
36030       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36031 $as_echo "no" >&6; }
36032       tst_allow_poll="no"
36033     fi
36034   fi
36035   #
36036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
36037 $as_echo_n "checking if poll might be used... " >&6; }
36038   if test "$tst_links_poll" = "yes" &&
36039      test "$tst_proto_poll" = "yes" &&
36040      test "$tst_compi_poll" = "yes" &&
36041      test "$tst_allow_poll" = "yes" &&
36042      test "$tst_works_poll" != "no"; then
36043     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36044 $as_echo "yes" >&6; }
36045
36046 cat >>confdefs.h <<_ACEOF
36047 #define HAVE_POLL 1
36048 _ACEOF
36049
36050
36051 cat >>confdefs.h <<_ACEOF
36052 #define HAVE_POLL_FINE 1
36053 _ACEOF
36054
36055     curl_cv_func_poll="yes"
36056   else
36057     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36058 $as_echo "no" >&6; }
36059     curl_cv_func_poll="no"
36060   fi
36061
36062
36063       #
36064   tst_links_setsockopt="unknown"
36065   tst_proto_setsockopt="unknown"
36066   tst_compi_setsockopt="unknown"
36067   tst_allow_setsockopt="unknown"
36068   #
36069   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
36070 $as_echo_n "checking if setsockopt can be linked... " >&6; }
36071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36072 /* end confdefs.h.  */
36073
36074
36075       $curl_includes_winsock2
36076       $curl_includes_sys_socket
36077
36078 int main (void)
36079 {
36080
36081       if(0 != setsockopt(0, 0, 0, 0, 0))
36082         return 1;
36083
36084  ;
36085  return 0;
36086 }
36087
36088 _ACEOF
36089 if ac_fn_c_try_link "$LINENO"; then :
36090
36091     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36092 $as_echo "yes" >&6; }
36093     tst_links_setsockopt="yes"
36094
36095 else
36096
36097     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36098 $as_echo "no" >&6; }
36099     tst_links_setsockopt="no"
36100
36101 fi
36102 rm -f core conftest.err conftest.$ac_objext \
36103     conftest$ac_exeext conftest.$ac_ext
36104   #
36105   if test "$tst_links_setsockopt" = "yes"; then
36106     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
36107 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
36108     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36109 /* end confdefs.h.  */
36110
36111       $curl_includes_winsock2
36112       $curl_includes_sys_socket
36113
36114 _ACEOF
36115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36116   $EGREP "setsockopt" >/dev/null 2>&1; then :
36117
36118       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36119 $as_echo "yes" >&6; }
36120       tst_proto_setsockopt="yes"
36121
36122 else
36123
36124       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36125 $as_echo "no" >&6; }
36126       tst_proto_setsockopt="no"
36127
36128 fi
36129 rm -f conftest*
36130
36131   fi
36132   #
36133   if test "$tst_proto_setsockopt" = "yes"; then
36134     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
36135 $as_echo_n "checking if setsockopt is compilable... " >&6; }
36136     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36137 /* end confdefs.h.  */
36138
36139
36140         $curl_includes_winsock2
36141         $curl_includes_sys_socket
36142
36143 int main (void)
36144 {
36145
36146         if(0 != setsockopt(0, 0, 0, 0, 0))
36147           return 1;
36148
36149  ;
36150  return 0;
36151 }
36152
36153 _ACEOF
36154 if ac_fn_c_try_compile "$LINENO"; then :
36155
36156       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36157 $as_echo "yes" >&6; }
36158       tst_compi_setsockopt="yes"
36159
36160 else
36161
36162       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36163 $as_echo "no" >&6; }
36164       tst_compi_setsockopt="no"
36165
36166 fi
36167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36168   fi
36169   #
36170   if test "$tst_compi_setsockopt" = "yes"; then
36171     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
36172 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
36173     if test "x$curl_disallow_setsockopt" != "xyes"; then
36174       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36175 $as_echo "yes" >&6; }
36176       tst_allow_setsockopt="yes"
36177     else
36178       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36179 $as_echo "no" >&6; }
36180       tst_allow_setsockopt="no"
36181     fi
36182   fi
36183   #
36184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
36185 $as_echo_n "checking if setsockopt might be used... " >&6; }
36186   if test "$tst_links_setsockopt" = "yes" &&
36187      test "$tst_proto_setsockopt" = "yes" &&
36188      test "$tst_compi_setsockopt" = "yes" &&
36189      test "$tst_allow_setsockopt" = "yes"; then
36190     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36191 $as_echo "yes" >&6; }
36192
36193 cat >>confdefs.h <<_ACEOF
36194 #define HAVE_SETSOCKOPT 1
36195 _ACEOF
36196
36197     curl_cv_func_setsockopt="yes"
36198
36199   #
36200   tst_compi_setsockopt_so_nonblock="unknown"
36201   tst_allow_setsockopt_so_nonblock="unknown"
36202   #
36203   if test "$curl_cv_func_setsockopt" = "yes"; then
36204     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
36205 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
36206     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36207 /* end confdefs.h.  */
36208
36209
36210         $curl_includes_winsock2
36211         $curl_includes_sys_socket
36212
36213 int main (void)
36214 {
36215
36216         if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
36217           return 1;
36218
36219  ;
36220  return 0;
36221 }
36222
36223 _ACEOF
36224 if ac_fn_c_try_compile "$LINENO"; then :
36225
36226       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36227 $as_echo "yes" >&6; }
36228       tst_compi_setsockopt_so_nonblock="yes"
36229
36230 else
36231
36232       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36233 $as_echo "no" >&6; }
36234       tst_compi_setsockopt_so_nonblock="no"
36235
36236 fi
36237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36238   fi
36239   #
36240   if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
36241     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
36242 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
36243     if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
36244       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36245 $as_echo "yes" >&6; }
36246       tst_allow_setsockopt_so_nonblock="yes"
36247     else
36248       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36249 $as_echo "no" >&6; }
36250       tst_allow_setsockopt_so_nonblock="no"
36251     fi
36252   fi
36253   #
36254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
36255 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
36256   if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
36257      test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
36258     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36259 $as_echo "yes" >&6; }
36260
36261 cat >>confdefs.h <<_ACEOF
36262 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
36263 _ACEOF
36264
36265     curl_cv_func_setsockopt_so_nonblock="yes"
36266   else
36267     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36268 $as_echo "no" >&6; }
36269     curl_cv_func_setsockopt_so_nonblock="no"
36270   fi
36271
36272   else
36273     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36274 $as_echo "no" >&6; }
36275     curl_cv_func_setsockopt="no"
36276   fi
36277
36278
36279 curl_includes_signal="\
36280 /* includes start */
36281 #ifdef HAVE_SYS_TYPES_H
36282 #  include <sys/types.h>
36283 #endif
36284 #ifdef HAVE_SIGNAL_H
36285 #  include <signal.h>
36286 #endif
36287 /* includes end */"
36288   for ac_header in sys/types.h signal.h
36289 do :
36290   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36291 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
36292 "
36293 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36294   cat >>confdefs.h <<_ACEOF
36295 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36296 _ACEOF
36297
36298 fi
36299
36300 done
36301
36302
36303
36304     #
36305   tst_links_sigaction="unknown"
36306   tst_proto_sigaction="unknown"
36307   tst_compi_sigaction="unknown"
36308   tst_allow_sigaction="unknown"
36309   #
36310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
36311 $as_echo_n "checking if sigaction can be linked... " >&6; }
36312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36313 /* end confdefs.h.  */
36314
36315
36316 #define sigaction innocuous_sigaction
36317 #ifdef __STDC__
36318 # include <limits.h>
36319 #else
36320 # include <assert.h>
36321 #endif
36322 #undef sigaction
36323 #ifdef __cplusplus
36324 extern "C"
36325 #endif
36326 char sigaction ();
36327 #if defined __stub_sigaction || defined __stub___sigaction
36328 choke me
36329 #endif
36330
36331 int main (void)
36332 {
36333 return sigaction ();
36334  ;
36335  return 0;
36336 }
36337
36338 _ACEOF
36339 if ac_fn_c_try_link "$LINENO"; then :
36340
36341     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36342 $as_echo "yes" >&6; }
36343     tst_links_sigaction="yes"
36344
36345 else
36346
36347     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36348 $as_echo "no" >&6; }
36349     tst_links_sigaction="no"
36350
36351 fi
36352 rm -f core conftest.err conftest.$ac_objext \
36353     conftest$ac_exeext conftest.$ac_ext
36354   #
36355   if test "$tst_links_sigaction" = "yes"; then
36356     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
36357 $as_echo_n "checking if sigaction is prototyped... " >&6; }
36358     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36359 /* end confdefs.h.  */
36360
36361       $curl_includes_signal
36362
36363 _ACEOF
36364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36365   $EGREP "sigaction" >/dev/null 2>&1; then :
36366
36367       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36368 $as_echo "yes" >&6; }
36369       tst_proto_sigaction="yes"
36370
36371 else
36372
36373       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36374 $as_echo "no" >&6; }
36375       tst_proto_sigaction="no"
36376
36377 fi
36378 rm -f conftest*
36379
36380   fi
36381   #
36382   if test "$tst_proto_sigaction" = "yes"; then
36383     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
36384 $as_echo_n "checking if sigaction is compilable... " >&6; }
36385     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36386 /* end confdefs.h.  */
36387
36388
36389         $curl_includes_signal
36390
36391 int main (void)
36392 {
36393
36394         if(0 != sigaction(0, 0, 0))
36395           return 1;
36396
36397  ;
36398  return 0;
36399 }
36400
36401 _ACEOF
36402 if ac_fn_c_try_compile "$LINENO"; then :
36403
36404       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36405 $as_echo "yes" >&6; }
36406       tst_compi_sigaction="yes"
36407
36408 else
36409
36410       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36411 $as_echo "no" >&6; }
36412       tst_compi_sigaction="no"
36413
36414 fi
36415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36416   fi
36417   #
36418   if test "$tst_compi_sigaction" = "yes"; then
36419     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
36420 $as_echo_n "checking if sigaction usage allowed... " >&6; }
36421     if test "x$curl_disallow_sigaction" != "xyes"; then
36422       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36423 $as_echo "yes" >&6; }
36424       tst_allow_sigaction="yes"
36425     else
36426       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36427 $as_echo "no" >&6; }
36428       tst_allow_sigaction="no"
36429     fi
36430   fi
36431   #
36432   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
36433 $as_echo_n "checking if sigaction might be used... " >&6; }
36434   if test "$tst_links_sigaction" = "yes" &&
36435      test "$tst_proto_sigaction" = "yes" &&
36436      test "$tst_compi_sigaction" = "yes" &&
36437      test "$tst_allow_sigaction" = "yes"; then
36438     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36439 $as_echo "yes" >&6; }
36440
36441 cat >>confdefs.h <<_ACEOF
36442 #define HAVE_SIGACTION 1
36443 _ACEOF
36444
36445     curl_cv_func_sigaction="yes"
36446   else
36447     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36448 $as_echo "no" >&6; }
36449     curl_cv_func_sigaction="no"
36450   fi
36451
36452
36453     #
36454   tst_links_siginterrupt="unknown"
36455   tst_proto_siginterrupt="unknown"
36456   tst_compi_siginterrupt="unknown"
36457   tst_allow_siginterrupt="unknown"
36458   #
36459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
36460 $as_echo_n "checking if siginterrupt can be linked... " >&6; }
36461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36462 /* end confdefs.h.  */
36463
36464
36465 #define siginterrupt innocuous_siginterrupt
36466 #ifdef __STDC__
36467 # include <limits.h>
36468 #else
36469 # include <assert.h>
36470 #endif
36471 #undef siginterrupt
36472 #ifdef __cplusplus
36473 extern "C"
36474 #endif
36475 char siginterrupt ();
36476 #if defined __stub_siginterrupt || defined __stub___siginterrupt
36477 choke me
36478 #endif
36479
36480 int main (void)
36481 {
36482 return siginterrupt ();
36483  ;
36484  return 0;
36485 }
36486
36487 _ACEOF
36488 if ac_fn_c_try_link "$LINENO"; then :
36489
36490     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36491 $as_echo "yes" >&6; }
36492     tst_links_siginterrupt="yes"
36493
36494 else
36495
36496     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36497 $as_echo "no" >&6; }
36498     tst_links_siginterrupt="no"
36499
36500 fi
36501 rm -f core conftest.err conftest.$ac_objext \
36502     conftest$ac_exeext conftest.$ac_ext
36503   #
36504   if test "$tst_links_siginterrupt" = "yes"; then
36505     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
36506 $as_echo_n "checking if siginterrupt is prototyped... " >&6; }
36507     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36508 /* end confdefs.h.  */
36509
36510       $curl_includes_signal
36511
36512 _ACEOF
36513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36514   $EGREP "siginterrupt" >/dev/null 2>&1; then :
36515
36516       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36517 $as_echo "yes" >&6; }
36518       tst_proto_siginterrupt="yes"
36519
36520 else
36521
36522       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36523 $as_echo "no" >&6; }
36524       tst_proto_siginterrupt="no"
36525
36526 fi
36527 rm -f conftest*
36528
36529   fi
36530   #
36531   if test "$tst_proto_siginterrupt" = "yes"; then
36532     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
36533 $as_echo_n "checking if siginterrupt is compilable... " >&6; }
36534     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36535 /* end confdefs.h.  */
36536
36537
36538         $curl_includes_signal
36539
36540 int main (void)
36541 {
36542
36543         if(0 != siginterrupt(0, 0))
36544           return 1;
36545
36546  ;
36547  return 0;
36548 }
36549
36550 _ACEOF
36551 if ac_fn_c_try_compile "$LINENO"; then :
36552
36553       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36554 $as_echo "yes" >&6; }
36555       tst_compi_siginterrupt="yes"
36556
36557 else
36558
36559       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36560 $as_echo "no" >&6; }
36561       tst_compi_siginterrupt="no"
36562
36563 fi
36564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36565   fi
36566   #
36567   if test "$tst_compi_siginterrupt" = "yes"; then
36568     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
36569 $as_echo_n "checking if siginterrupt usage allowed... " >&6; }
36570     if test "x$curl_disallow_siginterrupt" != "xyes"; then
36571       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36572 $as_echo "yes" >&6; }
36573       tst_allow_siginterrupt="yes"
36574     else
36575       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36576 $as_echo "no" >&6; }
36577       tst_allow_siginterrupt="no"
36578     fi
36579   fi
36580   #
36581   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
36582 $as_echo_n "checking if siginterrupt might be used... " >&6; }
36583   if test "$tst_links_siginterrupt" = "yes" &&
36584      test "$tst_proto_siginterrupt" = "yes" &&
36585      test "$tst_compi_siginterrupt" = "yes" &&
36586      test "$tst_allow_siginterrupt" = "yes"; then
36587     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36588 $as_echo "yes" >&6; }
36589
36590 cat >>confdefs.h <<_ACEOF
36591 #define HAVE_SIGINTERRUPT 1
36592 _ACEOF
36593
36594     curl_cv_func_siginterrupt="yes"
36595   else
36596     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36597 $as_echo "no" >&6; }
36598     curl_cv_func_siginterrupt="no"
36599   fi
36600
36601
36602     #
36603   tst_links_signal="unknown"
36604   tst_proto_signal="unknown"
36605   tst_compi_signal="unknown"
36606   tst_allow_signal="unknown"
36607   #
36608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
36609 $as_echo_n "checking if signal can be linked... " >&6; }
36610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36611 /* end confdefs.h.  */
36612
36613
36614 #define signal innocuous_signal
36615 #ifdef __STDC__
36616 # include <limits.h>
36617 #else
36618 # include <assert.h>
36619 #endif
36620 #undef signal
36621 #ifdef __cplusplus
36622 extern "C"
36623 #endif
36624 char signal ();
36625 #if defined __stub_signal || defined __stub___signal
36626 choke me
36627 #endif
36628
36629 int main (void)
36630 {
36631 return signal ();
36632  ;
36633  return 0;
36634 }
36635
36636 _ACEOF
36637 if ac_fn_c_try_link "$LINENO"; then :
36638
36639     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36640 $as_echo "yes" >&6; }
36641     tst_links_signal="yes"
36642
36643 else
36644
36645     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36646 $as_echo "no" >&6; }
36647     tst_links_signal="no"
36648
36649 fi
36650 rm -f core conftest.err conftest.$ac_objext \
36651     conftest$ac_exeext conftest.$ac_ext
36652   #
36653   if test "$tst_links_signal" = "yes"; then
36654     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
36655 $as_echo_n "checking if signal is prototyped... " >&6; }
36656     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36657 /* end confdefs.h.  */
36658
36659       $curl_includes_signal
36660
36661 _ACEOF
36662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36663   $EGREP "signal" >/dev/null 2>&1; then :
36664
36665       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36666 $as_echo "yes" >&6; }
36667       tst_proto_signal="yes"
36668
36669 else
36670
36671       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36672 $as_echo "no" >&6; }
36673       tst_proto_signal="no"
36674
36675 fi
36676 rm -f conftest*
36677
36678   fi
36679   #
36680   if test "$tst_proto_signal" = "yes"; then
36681     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
36682 $as_echo_n "checking if signal is compilable... " >&6; }
36683     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36684 /* end confdefs.h.  */
36685
36686
36687         $curl_includes_signal
36688
36689 int main (void)
36690 {
36691
36692         if(0 != signal(0, 0))
36693           return 1;
36694
36695  ;
36696  return 0;
36697 }
36698
36699 _ACEOF
36700 if ac_fn_c_try_compile "$LINENO"; then :
36701
36702       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36703 $as_echo "yes" >&6; }
36704       tst_compi_signal="yes"
36705
36706 else
36707
36708       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36709 $as_echo "no" >&6; }
36710       tst_compi_signal="no"
36711
36712 fi
36713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36714   fi
36715   #
36716   if test "$tst_compi_signal" = "yes"; then
36717     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
36718 $as_echo_n "checking if signal usage allowed... " >&6; }
36719     if test "x$curl_disallow_signal" != "xyes"; then
36720       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36721 $as_echo "yes" >&6; }
36722       tst_allow_signal="yes"
36723     else
36724       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36725 $as_echo "no" >&6; }
36726       tst_allow_signal="no"
36727     fi
36728   fi
36729   #
36730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
36731 $as_echo_n "checking if signal might be used... " >&6; }
36732   if test "$tst_links_signal" = "yes" &&
36733      test "$tst_proto_signal" = "yes" &&
36734      test "$tst_compi_signal" = "yes" &&
36735      test "$tst_allow_signal" = "yes"; then
36736     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36737 $as_echo "yes" >&6; }
36738
36739 cat >>confdefs.h <<_ACEOF
36740 #define HAVE_SIGNAL 1
36741 _ACEOF
36742
36743     curl_cv_func_signal="yes"
36744   else
36745     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36746 $as_echo "no" >&6; }
36747     curl_cv_func_signal="no"
36748   fi
36749
36750
36751 curl_includes_setjmp="\
36752 /* includes start */
36753 #ifdef HAVE_SYS_TYPES_H
36754 #  include <sys/types.h>
36755 #endif
36756 #ifdef HAVE_SETJMP_H
36757 #  include <setjmp.h>
36758 #endif
36759 /* includes end */"
36760   for ac_header in sys/types.h setjmp.h
36761 do :
36762   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36763 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
36764 "
36765 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36766   cat >>confdefs.h <<_ACEOF
36767 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36768 _ACEOF
36769
36770 fi
36771
36772 done
36773
36774
36775
36776     #
36777   tst_links_sigsetjmp="unknown"
36778   tst_macro_sigsetjmp="unknown"
36779   tst_proto_sigsetjmp="unknown"
36780   tst_compi_sigsetjmp="unknown"
36781   tst_allow_sigsetjmp="unknown"
36782   #
36783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
36784 $as_echo_n "checking if sigsetjmp can be linked... " >&6; }
36785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36786 /* end confdefs.h.  */
36787
36788
36789 #define sigsetjmp innocuous_sigsetjmp
36790 #ifdef __STDC__
36791 # include <limits.h>
36792 #else
36793 # include <assert.h>
36794 #endif
36795 #undef sigsetjmp
36796 #ifdef __cplusplus
36797 extern "C"
36798 #endif
36799 char sigsetjmp ();
36800 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
36801 choke me
36802 #endif
36803
36804 int main (void)
36805 {
36806 return sigsetjmp ();
36807  ;
36808  return 0;
36809 }
36810
36811 _ACEOF
36812 if ac_fn_c_try_link "$LINENO"; then :
36813
36814     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36815 $as_echo "yes" >&6; }
36816     tst_links_sigsetjmp="yes"
36817
36818 else
36819
36820     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36821 $as_echo "no" >&6; }
36822     tst_links_sigsetjmp="no"
36823
36824 fi
36825 rm -f core conftest.err conftest.$ac_objext \
36826     conftest$ac_exeext conftest.$ac_ext
36827   #
36828   if test "$tst_links_sigsetjmp" = "no"; then
36829     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
36830 $as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
36831     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36832 /* end confdefs.h.  */
36833
36834
36835         $curl_includes_setjmp
36836
36837 int main (void)
36838 {
36839
36840         sigjmp_buf env;
36841         if(0 != sigsetjmp(env, 0))
36842           return 1;
36843
36844  ;
36845  return 0;
36846 }
36847
36848 _ACEOF
36849 if ac_fn_c_try_link "$LINENO"; then :
36850
36851       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36852 $as_echo "yes" >&6; }
36853       tst_macro_sigsetjmp="yes"
36854
36855 else
36856
36857       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36858 $as_echo "no" >&6; }
36859       tst_macro_sigsetjmp="no"
36860
36861 fi
36862 rm -f core conftest.err conftest.$ac_objext \
36863     conftest$ac_exeext conftest.$ac_ext
36864   fi
36865   #
36866   if test "$tst_links_sigsetjmp" = "yes"; then
36867     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
36868 $as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
36869     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36870 /* end confdefs.h.  */
36871
36872       $curl_includes_setjmp
36873
36874 _ACEOF
36875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36876   $EGREP "sigsetjmp" >/dev/null 2>&1; then :
36877
36878       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36879 $as_echo "yes" >&6; }
36880       tst_proto_sigsetjmp="yes"
36881
36882 else
36883
36884       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36885 $as_echo "no" >&6; }
36886       tst_proto_sigsetjmp="no"
36887
36888 fi
36889 rm -f conftest*
36890
36891   fi
36892   #
36893   if test "$tst_proto_sigsetjmp" = "yes" ||
36894      test "$tst_macro_sigsetjmp" = "yes"; then
36895     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
36896 $as_echo_n "checking if sigsetjmp is compilable... " >&6; }
36897     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36898 /* end confdefs.h.  */
36899
36900
36901         $curl_includes_setjmp
36902
36903 int main (void)
36904 {
36905
36906         sigjmp_buf env;
36907         if(0 != sigsetjmp(env, 0))
36908           return 1;
36909
36910  ;
36911  return 0;
36912 }
36913
36914 _ACEOF
36915 if ac_fn_c_try_compile "$LINENO"; then :
36916
36917       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36918 $as_echo "yes" >&6; }
36919       tst_compi_sigsetjmp="yes"
36920
36921 else
36922
36923       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36924 $as_echo "no" >&6; }
36925       tst_compi_sigsetjmp="no"
36926
36927 fi
36928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36929   fi
36930   #
36931   if test "$tst_compi_sigsetjmp" = "yes"; then
36932     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
36933 $as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
36934     if test "x$curl_disallow_sigsetjmp" != "xyes"; then
36935       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36936 $as_echo "yes" >&6; }
36937       tst_allow_sigsetjmp="yes"
36938     else
36939       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36940 $as_echo "no" >&6; }
36941       tst_allow_sigsetjmp="no"
36942     fi
36943   fi
36944   #
36945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
36946 $as_echo_n "checking if sigsetjmp might be used... " >&6; }
36947   if (test "$tst_proto_sigsetjmp" = "yes" ||
36948       test "$tst_macro_sigsetjmp" = "yes") &&
36949      test "$tst_compi_sigsetjmp" = "yes" &&
36950      test "$tst_allow_sigsetjmp" = "yes"; then
36951     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36952 $as_echo "yes" >&6; }
36953
36954 cat >>confdefs.h <<_ACEOF
36955 #define HAVE_SIGSETJMP 1
36956 _ACEOF
36957
36958     curl_cv_func_sigsetjmp="yes"
36959   else
36960     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36961 $as_echo "no" >&6; }
36962     curl_cv_func_sigsetjmp="no"
36963   fi
36964
36965
36966         #
36967   tst_links_socket="unknown"
36968   tst_proto_socket="unknown"
36969   tst_compi_socket="unknown"
36970   tst_allow_socket="unknown"
36971   #
36972   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
36973 $as_echo_n "checking if socket can be linked... " >&6; }
36974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36975 /* end confdefs.h.  */
36976
36977
36978       $curl_includes_winsock2
36979       $curl_includes_sys_socket
36980       $curl_includes_socket
36981
36982 int main (void)
36983 {
36984
36985       if(0 != socket(0, 0, 0))
36986         return 1;
36987
36988  ;
36989  return 0;
36990 }
36991
36992 _ACEOF
36993 if ac_fn_c_try_link "$LINENO"; then :
36994
36995     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36996 $as_echo "yes" >&6; }
36997     tst_links_socket="yes"
36998
36999 else
37000
37001     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37002 $as_echo "no" >&6; }
37003     tst_links_socket="no"
37004
37005 fi
37006 rm -f core conftest.err conftest.$ac_objext \
37007     conftest$ac_exeext conftest.$ac_ext
37008   #
37009   if test "$tst_links_socket" = "yes"; then
37010     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
37011 $as_echo_n "checking if socket is prototyped... " >&6; }
37012     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37013 /* end confdefs.h.  */
37014
37015       $curl_includes_winsock2
37016       $curl_includes_sys_socket
37017       $curl_includes_socket
37018
37019 _ACEOF
37020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37021   $EGREP "socket" >/dev/null 2>&1; then :
37022
37023       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37024 $as_echo "yes" >&6; }
37025       tst_proto_socket="yes"
37026
37027 else
37028
37029       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37030 $as_echo "no" >&6; }
37031       tst_proto_socket="no"
37032
37033 fi
37034 rm -f conftest*
37035
37036   fi
37037   #
37038   if test "$tst_proto_socket" = "yes"; then
37039     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
37040 $as_echo_n "checking if socket is compilable... " >&6; }
37041     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37042 /* end confdefs.h.  */
37043
37044
37045         $curl_includes_winsock2
37046         $curl_includes_sys_socket
37047         $curl_includes_socket
37048
37049 int main (void)
37050 {
37051
37052         if(0 != socket(0, 0, 0))
37053           return 1;
37054
37055  ;
37056  return 0;
37057 }
37058
37059 _ACEOF
37060 if ac_fn_c_try_compile "$LINENO"; then :
37061
37062       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37063 $as_echo "yes" >&6; }
37064       tst_compi_socket="yes"
37065
37066 else
37067
37068       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37069 $as_echo "no" >&6; }
37070       tst_compi_socket="no"
37071
37072 fi
37073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37074   fi
37075   #
37076   if test "$tst_compi_socket" = "yes"; then
37077     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
37078 $as_echo_n "checking if socket usage allowed... " >&6; }
37079     if test "x$curl_disallow_socket" != "xyes"; then
37080       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37081 $as_echo "yes" >&6; }
37082       tst_allow_socket="yes"
37083     else
37084       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37085 $as_echo "no" >&6; }
37086       tst_allow_socket="no"
37087     fi
37088   fi
37089   #
37090   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
37091 $as_echo_n "checking if socket might be used... " >&6; }
37092   if test "$tst_links_socket" = "yes" &&
37093      test "$tst_proto_socket" = "yes" &&
37094      test "$tst_compi_socket" = "yes" &&
37095      test "$tst_allow_socket" = "yes"; then
37096     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37097 $as_echo "yes" >&6; }
37098
37099 cat >>confdefs.h <<_ACEOF
37100 #define HAVE_SOCKET 1
37101 _ACEOF
37102
37103     curl_cv_func_socket="yes"
37104   else
37105     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37106 $as_echo "no" >&6; }
37107     curl_cv_func_socket="no"
37108   fi
37109
37110
37111       #
37112   tst_links_socketpair="unknown"
37113   tst_proto_socketpair="unknown"
37114   tst_compi_socketpair="unknown"
37115   tst_allow_socketpair="unknown"
37116   #
37117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
37118 $as_echo_n "checking if socketpair can be linked... " >&6; }
37119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37120 /* end confdefs.h.  */
37121
37122
37123 #define socketpair innocuous_socketpair
37124 #ifdef __STDC__
37125 # include <limits.h>
37126 #else
37127 # include <assert.h>
37128 #endif
37129 #undef socketpair
37130 #ifdef __cplusplus
37131 extern "C"
37132 #endif
37133 char socketpair ();
37134 #if defined __stub_socketpair || defined __stub___socketpair
37135 choke me
37136 #endif
37137
37138 int main (void)
37139 {
37140 return socketpair ();
37141  ;
37142  return 0;
37143 }
37144
37145 _ACEOF
37146 if ac_fn_c_try_link "$LINENO"; then :
37147
37148     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37149 $as_echo "yes" >&6; }
37150     tst_links_socketpair="yes"
37151
37152 else
37153
37154     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37155 $as_echo "no" >&6; }
37156     tst_links_socketpair="no"
37157
37158 fi
37159 rm -f core conftest.err conftest.$ac_objext \
37160     conftest$ac_exeext conftest.$ac_ext
37161   #
37162   if test "$tst_links_socketpair" = "yes"; then
37163     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
37164 $as_echo_n "checking if socketpair is prototyped... " >&6; }
37165     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37166 /* end confdefs.h.  */
37167
37168       $curl_includes_sys_socket
37169       $curl_includes_socket
37170
37171 _ACEOF
37172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37173   $EGREP "socketpair" >/dev/null 2>&1; then :
37174
37175       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37176 $as_echo "yes" >&6; }
37177       tst_proto_socketpair="yes"
37178
37179 else
37180
37181       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37182 $as_echo "no" >&6; }
37183       tst_proto_socketpair="no"
37184
37185 fi
37186 rm -f conftest*
37187
37188   fi
37189   #
37190   if test "$tst_proto_socketpair" = "yes"; then
37191     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
37192 $as_echo_n "checking if socketpair is compilable... " >&6; }
37193     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37194 /* end confdefs.h.  */
37195
37196
37197         $curl_includes_sys_socket
37198         $curl_includes_socket
37199
37200 int main (void)
37201 {
37202
37203         int sv[2];
37204         if(0 != socketpair(0, 0, 0, sv))
37205           return 1;
37206
37207  ;
37208  return 0;
37209 }
37210
37211 _ACEOF
37212 if ac_fn_c_try_compile "$LINENO"; then :
37213
37214       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37215 $as_echo "yes" >&6; }
37216       tst_compi_socketpair="yes"
37217
37218 else
37219
37220       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37221 $as_echo "no" >&6; }
37222       tst_compi_socketpair="no"
37223
37224 fi
37225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37226   fi
37227   #
37228   if test "$tst_compi_socketpair" = "yes"; then
37229     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
37230 $as_echo_n "checking if socketpair usage allowed... " >&6; }
37231     if test "x$curl_disallow_socketpair" != "xyes"; then
37232       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37233 $as_echo "yes" >&6; }
37234       tst_allow_socketpair="yes"
37235     else
37236       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37237 $as_echo "no" >&6; }
37238       tst_allow_socketpair="no"
37239     fi
37240   fi
37241   #
37242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
37243 $as_echo_n "checking if socketpair might be used... " >&6; }
37244   if test "$tst_links_socketpair" = "yes" &&
37245      test "$tst_proto_socketpair" = "yes" &&
37246      test "$tst_compi_socketpair" = "yes" &&
37247      test "$tst_allow_socketpair" = "yes"; then
37248     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37249 $as_echo "yes" >&6; }
37250
37251 cat >>confdefs.h <<_ACEOF
37252 #define HAVE_SOCKETPAIR 1
37253 _ACEOF
37254
37255     curl_cv_func_socketpair="yes"
37256   else
37257     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37258 $as_echo "no" >&6; }
37259     curl_cv_func_socketpair="no"
37260   fi
37261
37262
37263     #
37264   tst_links_strcasecmp="unknown"
37265   tst_proto_strcasecmp="unknown"
37266   tst_compi_strcasecmp="unknown"
37267   tst_allow_strcasecmp="unknown"
37268   #
37269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
37270 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
37271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37272 /* end confdefs.h.  */
37273
37274
37275 #define strcasecmp innocuous_strcasecmp
37276 #ifdef __STDC__
37277 # include <limits.h>
37278 #else
37279 # include <assert.h>
37280 #endif
37281 #undef strcasecmp
37282 #ifdef __cplusplus
37283 extern "C"
37284 #endif
37285 char strcasecmp ();
37286 #if defined __stub_strcasecmp || defined __stub___strcasecmp
37287 choke me
37288 #endif
37289
37290 int main (void)
37291 {
37292 return strcasecmp ();
37293  ;
37294  return 0;
37295 }
37296
37297 _ACEOF
37298 if ac_fn_c_try_link "$LINENO"; then :
37299
37300     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37301 $as_echo "yes" >&6; }
37302     tst_links_strcasecmp="yes"
37303
37304 else
37305
37306     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37307 $as_echo "no" >&6; }
37308     tst_links_strcasecmp="no"
37309
37310 fi
37311 rm -f core conftest.err conftest.$ac_objext \
37312     conftest$ac_exeext conftest.$ac_ext
37313   #
37314   if test "$tst_links_strcasecmp" = "yes"; then
37315     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
37316 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
37317     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37318 /* end confdefs.h.  */
37319
37320       $curl_includes_string
37321
37322 _ACEOF
37323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37324   $EGREP "strcasecmp" >/dev/null 2>&1; then :
37325
37326       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37327 $as_echo "yes" >&6; }
37328       tst_proto_strcasecmp="yes"
37329
37330 else
37331
37332       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37333 $as_echo "no" >&6; }
37334       tst_proto_strcasecmp="no"
37335
37336 fi
37337 rm -f conftest*
37338
37339   fi
37340   #
37341   if test "$tst_proto_strcasecmp" = "yes"; then
37342     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
37343 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
37344     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37345 /* end confdefs.h.  */
37346
37347
37348         $curl_includes_string
37349
37350 int main (void)
37351 {
37352
37353         if(0 != strcasecmp(0, 0))
37354           return 1;
37355
37356  ;
37357  return 0;
37358 }
37359
37360 _ACEOF
37361 if ac_fn_c_try_compile "$LINENO"; then :
37362
37363       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37364 $as_echo "yes" >&6; }
37365       tst_compi_strcasecmp="yes"
37366
37367 else
37368
37369       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37370 $as_echo "no" >&6; }
37371       tst_compi_strcasecmp="no"
37372
37373 fi
37374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37375   fi
37376   #
37377   if test "$tst_compi_strcasecmp" = "yes"; then
37378     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
37379 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
37380     if test "x$curl_disallow_strcasecmp" != "xyes"; then
37381       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37382 $as_echo "yes" >&6; }
37383       tst_allow_strcasecmp="yes"
37384     else
37385       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37386 $as_echo "no" >&6; }
37387       tst_allow_strcasecmp="no"
37388     fi
37389   fi
37390   #
37391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
37392 $as_echo_n "checking if strcasecmp might be used... " >&6; }
37393   if test "$tst_links_strcasecmp" = "yes" &&
37394      test "$tst_proto_strcasecmp" = "yes" &&
37395      test "$tst_compi_strcasecmp" = "yes" &&
37396      test "$tst_allow_strcasecmp" = "yes"; then
37397     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37398 $as_echo "yes" >&6; }
37399
37400 cat >>confdefs.h <<_ACEOF
37401 #define HAVE_STRCASECMP 1
37402 _ACEOF
37403
37404     curl_cv_func_strcasecmp="yes"
37405   else
37406     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37407 $as_echo "no" >&6; }
37408     curl_cv_func_strcasecmp="no"
37409   fi
37410
37411
37412     #
37413   tst_links_strcmpi="unknown"
37414   tst_proto_strcmpi="unknown"
37415   tst_compi_strcmpi="unknown"
37416   tst_allow_strcmpi="unknown"
37417   #
37418   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
37419 $as_echo_n "checking if strcmpi can be linked... " >&6; }
37420   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37421 /* end confdefs.h.  */
37422
37423
37424 #define strcmpi innocuous_strcmpi
37425 #ifdef __STDC__
37426 # include <limits.h>
37427 #else
37428 # include <assert.h>
37429 #endif
37430 #undef strcmpi
37431 #ifdef __cplusplus
37432 extern "C"
37433 #endif
37434 char strcmpi ();
37435 #if defined __stub_strcmpi || defined __stub___strcmpi
37436 choke me
37437 #endif
37438
37439 int main (void)
37440 {
37441 return strcmpi ();
37442  ;
37443  return 0;
37444 }
37445
37446 _ACEOF
37447 if ac_fn_c_try_link "$LINENO"; then :
37448
37449     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37450 $as_echo "yes" >&6; }
37451     tst_links_strcmpi="yes"
37452
37453 else
37454
37455     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37456 $as_echo "no" >&6; }
37457     tst_links_strcmpi="no"
37458
37459 fi
37460 rm -f core conftest.err conftest.$ac_objext \
37461     conftest$ac_exeext conftest.$ac_ext
37462   #
37463   if test "$tst_links_strcmpi" = "yes"; then
37464     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
37465 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
37466     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37467 /* end confdefs.h.  */
37468
37469       $curl_includes_string
37470
37471 _ACEOF
37472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37473   $EGREP "strcmpi" >/dev/null 2>&1; then :
37474
37475       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37476 $as_echo "yes" >&6; }
37477       tst_proto_strcmpi="yes"
37478
37479 else
37480
37481       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37482 $as_echo "no" >&6; }
37483       tst_proto_strcmpi="no"
37484
37485 fi
37486 rm -f conftest*
37487
37488   fi
37489   #
37490   if test "$tst_proto_strcmpi" = "yes"; then
37491     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
37492 $as_echo_n "checking if strcmpi is compilable... " >&6; }
37493     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37494 /* end confdefs.h.  */
37495
37496
37497         $curl_includes_string
37498
37499 int main (void)
37500 {
37501
37502         if(0 != strcmpi(0, 0))
37503           return 1;
37504
37505  ;
37506  return 0;
37507 }
37508
37509 _ACEOF
37510 if ac_fn_c_try_compile "$LINENO"; then :
37511
37512       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37513 $as_echo "yes" >&6; }
37514       tst_compi_strcmpi="yes"
37515
37516 else
37517
37518       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37519 $as_echo "no" >&6; }
37520       tst_compi_strcmpi="no"
37521
37522 fi
37523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37524   fi
37525   #
37526   if test "$tst_compi_strcmpi" = "yes"; then
37527     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
37528 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
37529     if test "x$curl_disallow_strcmpi" != "xyes"; then
37530       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37531 $as_echo "yes" >&6; }
37532       tst_allow_strcmpi="yes"
37533     else
37534       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37535 $as_echo "no" >&6; }
37536       tst_allow_strcmpi="no"
37537     fi
37538   fi
37539   #
37540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
37541 $as_echo_n "checking if strcmpi might be used... " >&6; }
37542   if test "$tst_links_strcmpi" = "yes" &&
37543      test "$tst_proto_strcmpi" = "yes" &&
37544      test "$tst_compi_strcmpi" = "yes" &&
37545      test "$tst_allow_strcmpi" = "yes"; then
37546     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37547 $as_echo "yes" >&6; }
37548
37549 cat >>confdefs.h <<_ACEOF
37550 #define HAVE_STRCMPI 1
37551 _ACEOF
37552
37553     curl_cv_func_strcmpi="yes"
37554   else
37555     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37556 $as_echo "no" >&6; }
37557     curl_cv_func_strcmpi="no"
37558   fi
37559
37560
37561     #
37562   tst_links_strdup="unknown"
37563   tst_proto_strdup="unknown"
37564   tst_compi_strdup="unknown"
37565   tst_allow_strdup="unknown"
37566   #
37567   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
37568 $as_echo_n "checking if strdup can be linked... " >&6; }
37569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37570 /* end confdefs.h.  */
37571
37572
37573 #define strdup innocuous_strdup
37574 #ifdef __STDC__
37575 # include <limits.h>
37576 #else
37577 # include <assert.h>
37578 #endif
37579 #undef strdup
37580 #ifdef __cplusplus
37581 extern "C"
37582 #endif
37583 char strdup ();
37584 #if defined __stub_strdup || defined __stub___strdup
37585 choke me
37586 #endif
37587
37588 int main (void)
37589 {
37590 return strdup ();
37591  ;
37592  return 0;
37593 }
37594
37595 _ACEOF
37596 if ac_fn_c_try_link "$LINENO"; then :
37597
37598     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37599 $as_echo "yes" >&6; }
37600     tst_links_strdup="yes"
37601
37602 else
37603
37604     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37605 $as_echo "no" >&6; }
37606     tst_links_strdup="no"
37607
37608 fi
37609 rm -f core conftest.err conftest.$ac_objext \
37610     conftest$ac_exeext conftest.$ac_ext
37611   #
37612   if test "$tst_links_strdup" = "yes"; then
37613     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
37614 $as_echo_n "checking if strdup is prototyped... " >&6; }
37615     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37616 /* end confdefs.h.  */
37617
37618       $curl_includes_string
37619
37620 _ACEOF
37621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37622   $EGREP "strdup" >/dev/null 2>&1; then :
37623
37624       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37625 $as_echo "yes" >&6; }
37626       tst_proto_strdup="yes"
37627
37628 else
37629
37630       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37631 $as_echo "no" >&6; }
37632       tst_proto_strdup="no"
37633
37634 fi
37635 rm -f conftest*
37636
37637   fi
37638   #
37639   if test "$tst_proto_strdup" = "yes"; then
37640     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
37641 $as_echo_n "checking if strdup is compilable... " >&6; }
37642     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37643 /* end confdefs.h.  */
37644
37645
37646         $curl_includes_string
37647
37648 int main (void)
37649 {
37650
37651         if(0 != strdup(0))
37652           return 1;
37653
37654  ;
37655  return 0;
37656 }
37657
37658 _ACEOF
37659 if ac_fn_c_try_compile "$LINENO"; then :
37660
37661       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37662 $as_echo "yes" >&6; }
37663       tst_compi_strdup="yes"
37664
37665 else
37666
37667       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37668 $as_echo "no" >&6; }
37669       tst_compi_strdup="no"
37670
37671 fi
37672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37673   fi
37674   #
37675   if test "$tst_compi_strdup" = "yes"; then
37676     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
37677 $as_echo_n "checking if strdup usage allowed... " >&6; }
37678     if test "x$curl_disallow_strdup" != "xyes"; then
37679       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37680 $as_echo "yes" >&6; }
37681       tst_allow_strdup="yes"
37682     else
37683       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37684 $as_echo "no" >&6; }
37685       tst_allow_strdup="no"
37686     fi
37687   fi
37688   #
37689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
37690 $as_echo_n "checking if strdup might be used... " >&6; }
37691   if test "$tst_links_strdup" = "yes" &&
37692      test "$tst_proto_strdup" = "yes" &&
37693      test "$tst_compi_strdup" = "yes" &&
37694      test "$tst_allow_strdup" = "yes"; then
37695     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37696 $as_echo "yes" >&6; }
37697
37698 cat >>confdefs.h <<_ACEOF
37699 #define HAVE_STRDUP 1
37700 _ACEOF
37701
37702     curl_cv_func_strdup="yes"
37703   else
37704     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37705 $as_echo "no" >&6; }
37706     curl_cv_func_strdup="no"
37707   fi
37708
37709
37710       #
37711   tst_links_strerror_r="unknown"
37712   tst_proto_strerror_r="unknown"
37713   tst_compi_strerror_r="unknown"
37714   tst_glibc_strerror_r="unknown"
37715   tst_posix_strerror_r="unknown"
37716   tst_allow_strerror_r="unknown"
37717   tst_works_glibc_strerror_r="unknown"
37718   tst_works_posix_strerror_r="unknown"
37719   tst_glibc_strerror_r_type_arg3="unknown"
37720   tst_posix_strerror_r_type_arg3="unknown"
37721   #
37722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
37723 $as_echo_n "checking if strerror_r can be linked... " >&6; }
37724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37725 /* end confdefs.h.  */
37726
37727
37728 #define strerror_r innocuous_strerror_r
37729 #ifdef __STDC__
37730 # include <limits.h>
37731 #else
37732 # include <assert.h>
37733 #endif
37734 #undef strerror_r
37735 #ifdef __cplusplus
37736 extern "C"
37737 #endif
37738 char strerror_r ();
37739 #if defined __stub_strerror_r || defined __stub___strerror_r
37740 choke me
37741 #endif
37742
37743 int main (void)
37744 {
37745 return strerror_r ();
37746  ;
37747  return 0;
37748 }
37749
37750 _ACEOF
37751 if ac_fn_c_try_link "$LINENO"; then :
37752
37753     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37754 $as_echo "yes" >&6; }
37755     tst_links_strerror_r="yes"
37756
37757 else
37758
37759     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37760 $as_echo "no" >&6; }
37761     tst_links_strerror_r="no"
37762
37763 fi
37764 rm -f core conftest.err conftest.$ac_objext \
37765     conftest$ac_exeext conftest.$ac_ext
37766   #
37767   if test "$tst_links_strerror_r" = "yes"; then
37768     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
37769 $as_echo_n "checking if strerror_r is prototyped... " >&6; }
37770     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37771 /* end confdefs.h.  */
37772
37773       $curl_includes_string
37774
37775 _ACEOF
37776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37777   $EGREP "strerror_r" >/dev/null 2>&1; then :
37778
37779       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37780 $as_echo "yes" >&6; }
37781       tst_proto_strerror_r="yes"
37782
37783 else
37784
37785       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37786 $as_echo "no" >&6; }
37787       tst_proto_strerror_r="no"
37788
37789 fi
37790 rm -f conftest*
37791
37792   fi
37793   #
37794   if test "$tst_proto_strerror_r" = "yes"; then
37795     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
37796 $as_echo_n "checking if strerror_r is compilable... " >&6; }
37797     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37798 /* end confdefs.h.  */
37799
37800
37801         $curl_includes_string
37802
37803 int main (void)
37804 {
37805
37806         if(0 != strerror_r(0, 0, 0))
37807           return 1;
37808
37809  ;
37810  return 0;
37811 }
37812
37813 _ACEOF
37814 if ac_fn_c_try_compile "$LINENO"; then :
37815
37816       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37817 $as_echo "yes" >&6; }
37818       tst_compi_strerror_r="yes"
37819
37820 else
37821
37822       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37823 $as_echo "no" >&6; }
37824       tst_compi_strerror_r="no"
37825
37826 fi
37827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37828   fi
37829   #
37830   if test "$tst_compi_strerror_r" = "yes"; then
37831     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
37832 $as_echo_n "checking if strerror_r is glibc like... " >&6; }
37833     tst_glibc_strerror_r_type_arg3="unknown"
37834     for arg3 in 'size_t' 'int' 'unsigned int'; do
37835       if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
37836         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37837 /* end confdefs.h.  */
37838
37839
37840             $curl_includes_string
37841             char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
37842
37843 int main (void)
37844 {
37845
37846             if(0 != strerror_r(0, 0, 0))
37847               return 1;
37848
37849  ;
37850  return 0;
37851 }
37852
37853 _ACEOF
37854 if ac_fn_c_try_compile "$LINENO"; then :
37855
37856           tst_glibc_strerror_r_type_arg3="$arg3"
37857
37858 fi
37859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37860       fi
37861     done
37862     case "$tst_glibc_strerror_r_type_arg3" in
37863       unknown)
37864         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37865 $as_echo "no" >&6; }
37866         tst_glibc_strerror_r="no"
37867         ;;
37868       *)
37869         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37870 $as_echo "yes" >&6; }
37871         tst_glibc_strerror_r="yes"
37872         ;;
37873     esac
37874   fi
37875   #
37876     if test "x$cross_compiling" != "xyes" &&
37877     test "$tst_glibc_strerror_r" = "yes"; then
37878     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
37879 $as_echo_n "checking if strerror_r seems to work... " >&6; }
37880     if test "$cross_compiling" = yes; then :
37881   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37883 as_fn_error $? "cannot run test program while cross compiling
37884 See \`config.log' for more details" "$LINENO" 5; }
37885 else
37886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37887 /* end confdefs.h.  */
37888
37889
37890         $curl_includes_stdlib
37891         $curl_includes_string
37892 #       include <errno.h>
37893
37894 int main (void)
37895 {
37896
37897         char buffer[1024];
37898         char *string = 0;
37899         buffer[0] = '\0';
37900         string = strerror_r(EACCES, buffer, sizeof(buffer));
37901         if(!string)
37902           exit(1); /* fail */
37903         if(!string[0])
37904           exit(1); /* fail */
37905         else
37906           exit(0);
37907
37908  ;
37909  return 0;
37910 }
37911
37912 _ACEOF
37913 if ac_fn_c_try_run "$LINENO"; then :
37914
37915       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37916 $as_echo "yes" >&6; }
37917       tst_works_glibc_strerror_r="yes"
37918
37919 else
37920
37921       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37922 $as_echo "no" >&6; }
37923       tst_works_glibc_strerror_r="no"
37924
37925 fi
37926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37927   conftest.$ac_objext conftest.beam conftest.$ac_ext
37928 fi
37929
37930   fi
37931   #
37932   if test "$tst_compi_strerror_r" = "yes" &&
37933     test "$tst_works_glibc_strerror_r" != "yes"; then
37934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
37935 $as_echo_n "checking if strerror_r is POSIX like... " >&6; }
37936     tst_posix_strerror_r_type_arg3="unknown"
37937     for arg3 in 'size_t' 'int' 'unsigned int'; do
37938       if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
37939         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37940 /* end confdefs.h.  */
37941
37942
37943             $curl_includes_string
37944             int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
37945
37946 int main (void)
37947 {
37948
37949             if(0 != strerror_r(0, 0, 0))
37950               return 1;
37951
37952  ;
37953  return 0;
37954 }
37955
37956 _ACEOF
37957 if ac_fn_c_try_compile "$LINENO"; then :
37958
37959           tst_posix_strerror_r_type_arg3="$arg3"
37960
37961 fi
37962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37963       fi
37964     done
37965     case "$tst_posix_strerror_r_type_arg3" in
37966       unknown)
37967         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37968 $as_echo "no" >&6; }
37969         tst_posix_strerror_r="no"
37970         ;;
37971       *)
37972         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37973 $as_echo "yes" >&6; }
37974         tst_posix_strerror_r="yes"
37975         ;;
37976     esac
37977   fi
37978   #
37979     if test "x$cross_compiling" != "xyes" &&
37980     test "$tst_posix_strerror_r" = "yes"; then
37981     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
37982 $as_echo_n "checking if strerror_r seems to work... " >&6; }
37983     if test "$cross_compiling" = yes; then :
37984   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37986 as_fn_error $? "cannot run test program while cross compiling
37987 See \`config.log' for more details" "$LINENO" 5; }
37988 else
37989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37990 /* end confdefs.h.  */
37991
37992
37993         $curl_includes_stdlib
37994         $curl_includes_string
37995 #       include <errno.h>
37996
37997 int main (void)
37998 {
37999
38000         char buffer[1024];
38001         int error = 1;
38002         buffer[0] = '\0';
38003         error = strerror_r(EACCES, buffer, sizeof(buffer));
38004         if(error)
38005           exit(1); /* fail */
38006         if(buffer[0] == '\0')
38007           exit(1); /* fail */
38008         else
38009           exit(0);
38010
38011  ;
38012  return 0;
38013 }
38014
38015 _ACEOF
38016 if ac_fn_c_try_run "$LINENO"; then :
38017
38018       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38019 $as_echo "yes" >&6; }
38020       tst_works_posix_strerror_r="yes"
38021
38022 else
38023
38024       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38025 $as_echo "no" >&6; }
38026       tst_works_posix_strerror_r="no"
38027
38028 fi
38029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38030   conftest.$ac_objext conftest.beam conftest.$ac_ext
38031 fi
38032
38033   fi
38034   #
38035   if test "$tst_works_glibc_strerror_r" = "yes"; then
38036     tst_posix_strerror_r="no"
38037   fi
38038   if test "$tst_works_posix_strerror_r" = "yes"; then
38039     tst_glibc_strerror_r="no"
38040   fi
38041   if test "$tst_glibc_strerror_r" = "yes" &&
38042     test "$tst_works_glibc_strerror_r" != "no" &&
38043     test "$tst_posix_strerror_r" != "yes"; then
38044     tst_allow_strerror_r="check"
38045   fi
38046   if test "$tst_posix_strerror_r" = "yes" &&
38047     test "$tst_works_posix_strerror_r" != "no" &&
38048     test "$tst_glibc_strerror_r" != "yes"; then
38049     tst_allow_strerror_r="check"
38050   fi
38051   if test "$tst_allow_strerror_r" = "check"; then
38052     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
38053 $as_echo_n "checking if strerror_r usage allowed... " >&6; }
38054     if test "x$curl_disallow_strerror_r" != "xyes"; then
38055       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38056 $as_echo "yes" >&6; }
38057       tst_allow_strerror_r="yes"
38058     else
38059       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38060 $as_echo "no" >&6; }
38061       tst_allow_strerror_r="no"
38062     fi
38063   fi
38064   #
38065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
38066 $as_echo_n "checking if strerror_r might be used... " >&6; }
38067   if test "$tst_links_strerror_r" = "yes" &&
38068      test "$tst_proto_strerror_r" = "yes" &&
38069      test "$tst_compi_strerror_r" = "yes" &&
38070      test "$tst_allow_strerror_r" = "yes"; then
38071     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38072 $as_echo "yes" >&6; }
38073     if test "$tst_glibc_strerror_r" = "yes"; then
38074
38075 cat >>confdefs.h <<_ACEOF
38076 #define HAVE_STRERROR_R 1
38077 _ACEOF
38078
38079
38080 cat >>confdefs.h <<_ACEOF
38081 #define HAVE_GLIBC_STRERROR_R 1
38082 _ACEOF
38083
38084
38085 cat >>confdefs.h <<_ACEOF
38086 #define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
38087 _ACEOF
38088
38089     fi
38090     if test "$tst_posix_strerror_r" = "yes"; then
38091
38092 cat >>confdefs.h <<_ACEOF
38093 #define HAVE_STRERROR_R 1
38094 _ACEOF
38095
38096
38097 cat >>confdefs.h <<_ACEOF
38098 #define HAVE_POSIX_STRERROR_R 1
38099 _ACEOF
38100
38101
38102 cat >>confdefs.h <<_ACEOF
38103 #define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
38104 _ACEOF
38105
38106     fi
38107     curl_cv_func_strerror_r="yes"
38108   else
38109     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38110 $as_echo "no" >&6; }
38111     curl_cv_func_strerror_r="no"
38112   fi
38113   #
38114   if test "$tst_compi_strerror_r" = "yes" &&
38115      test "$tst_allow_strerror_r" = "unknown"; then
38116     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
38117 $as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
38118   fi
38119   #
38120
38121
38122     #
38123   tst_links_stricmp="unknown"
38124   tst_proto_stricmp="unknown"
38125   tst_compi_stricmp="unknown"
38126   tst_allow_stricmp="unknown"
38127   #
38128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
38129 $as_echo_n "checking if stricmp can be linked... " >&6; }
38130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38131 /* end confdefs.h.  */
38132
38133
38134 #define stricmp innocuous_stricmp
38135 #ifdef __STDC__
38136 # include <limits.h>
38137 #else
38138 # include <assert.h>
38139 #endif
38140 #undef stricmp
38141 #ifdef __cplusplus
38142 extern "C"
38143 #endif
38144 char stricmp ();
38145 #if defined __stub_stricmp || defined __stub___stricmp
38146 choke me
38147 #endif
38148
38149 int main (void)
38150 {
38151 return stricmp ();
38152  ;
38153  return 0;
38154 }
38155
38156 _ACEOF
38157 if ac_fn_c_try_link "$LINENO"; then :
38158
38159     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38160 $as_echo "yes" >&6; }
38161     tst_links_stricmp="yes"
38162
38163 else
38164
38165     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38166 $as_echo "no" >&6; }
38167     tst_links_stricmp="no"
38168
38169 fi
38170 rm -f core conftest.err conftest.$ac_objext \
38171     conftest$ac_exeext conftest.$ac_ext
38172   #
38173   if test "$tst_links_stricmp" = "yes"; then
38174     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
38175 $as_echo_n "checking if stricmp is prototyped... " >&6; }
38176     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38177 /* end confdefs.h.  */
38178
38179       $curl_includes_string
38180
38181 _ACEOF
38182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38183   $EGREP "stricmp" >/dev/null 2>&1; then :
38184
38185       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38186 $as_echo "yes" >&6; }
38187       tst_proto_stricmp="yes"
38188
38189 else
38190
38191       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38192 $as_echo "no" >&6; }
38193       tst_proto_stricmp="no"
38194
38195 fi
38196 rm -f conftest*
38197
38198   fi
38199   #
38200   if test "$tst_proto_stricmp" = "yes"; then
38201     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
38202 $as_echo_n "checking if stricmp is compilable... " >&6; }
38203     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38204 /* end confdefs.h.  */
38205
38206
38207         $curl_includes_string
38208
38209 int main (void)
38210 {
38211
38212         if(0 != stricmp(0, 0))
38213           return 1;
38214
38215  ;
38216  return 0;
38217 }
38218
38219 _ACEOF
38220 if ac_fn_c_try_compile "$LINENO"; then :
38221
38222       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38223 $as_echo "yes" >&6; }
38224       tst_compi_stricmp="yes"
38225
38226 else
38227
38228       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38229 $as_echo "no" >&6; }
38230       tst_compi_stricmp="no"
38231
38232 fi
38233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38234   fi
38235   #
38236   if test "$tst_compi_stricmp" = "yes"; then
38237     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
38238 $as_echo_n "checking if stricmp usage allowed... " >&6; }
38239     if test "x$curl_disallow_stricmp" != "xyes"; then
38240       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38241 $as_echo "yes" >&6; }
38242       tst_allow_stricmp="yes"
38243     else
38244       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38245 $as_echo "no" >&6; }
38246       tst_allow_stricmp="no"
38247     fi
38248   fi
38249   #
38250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
38251 $as_echo_n "checking if stricmp might be used... " >&6; }
38252   if test "$tst_links_stricmp" = "yes" &&
38253      test "$tst_proto_stricmp" = "yes" &&
38254      test "$tst_compi_stricmp" = "yes" &&
38255      test "$tst_allow_stricmp" = "yes"; then
38256     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38257 $as_echo "yes" >&6; }
38258
38259 cat >>confdefs.h <<_ACEOF
38260 #define HAVE_STRICMP 1
38261 _ACEOF
38262
38263     curl_cv_func_stricmp="yes"
38264   else
38265     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38266 $as_echo "no" >&6; }
38267     curl_cv_func_stricmp="no"
38268   fi
38269
38270
38271     #
38272   tst_links_strncasecmp="unknown"
38273   tst_proto_strncasecmp="unknown"
38274   tst_compi_strncasecmp="unknown"
38275   tst_allow_strncasecmp="unknown"
38276   #
38277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
38278 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
38279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38280 /* end confdefs.h.  */
38281
38282
38283 #define strncasecmp innocuous_strncasecmp
38284 #ifdef __STDC__
38285 # include <limits.h>
38286 #else
38287 # include <assert.h>
38288 #endif
38289 #undef strncasecmp
38290 #ifdef __cplusplus
38291 extern "C"
38292 #endif
38293 char strncasecmp ();
38294 #if defined __stub_strncasecmp || defined __stub___strncasecmp
38295 choke me
38296 #endif
38297
38298 int main (void)
38299 {
38300 return strncasecmp ();
38301  ;
38302  return 0;
38303 }
38304
38305 _ACEOF
38306 if ac_fn_c_try_link "$LINENO"; then :
38307
38308     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38309 $as_echo "yes" >&6; }
38310     tst_links_strncasecmp="yes"
38311
38312 else
38313
38314     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38315 $as_echo "no" >&6; }
38316     tst_links_strncasecmp="no"
38317
38318 fi
38319 rm -f core conftest.err conftest.$ac_objext \
38320     conftest$ac_exeext conftest.$ac_ext
38321   #
38322   if test "$tst_links_strncasecmp" = "yes"; then
38323     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
38324 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
38325     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38326 /* end confdefs.h.  */
38327
38328       $curl_includes_string
38329
38330 _ACEOF
38331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38332   $EGREP "strncasecmp" >/dev/null 2>&1; then :
38333
38334       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38335 $as_echo "yes" >&6; }
38336       tst_proto_strncasecmp="yes"
38337
38338 else
38339
38340       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38341 $as_echo "no" >&6; }
38342       tst_proto_strncasecmp="no"
38343
38344 fi
38345 rm -f conftest*
38346
38347   fi
38348   #
38349   if test "$tst_proto_strncasecmp" = "yes"; then
38350     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
38351 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
38352     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38353 /* end confdefs.h.  */
38354
38355
38356         $curl_includes_string
38357
38358 int main (void)
38359 {
38360
38361         if(0 != strncasecmp(0, 0, 0))
38362           return 1;
38363
38364  ;
38365  return 0;
38366 }
38367
38368 _ACEOF
38369 if ac_fn_c_try_compile "$LINENO"; then :
38370
38371       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38372 $as_echo "yes" >&6; }
38373       tst_compi_strncasecmp="yes"
38374
38375 else
38376
38377       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38378 $as_echo "no" >&6; }
38379       tst_compi_strncasecmp="no"
38380
38381 fi
38382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38383   fi
38384   #
38385   if test "$tst_compi_strncasecmp" = "yes"; then
38386     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
38387 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
38388     if test "x$curl_disallow_strncasecmp" != "xyes"; then
38389       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38390 $as_echo "yes" >&6; }
38391       tst_allow_strncasecmp="yes"
38392     else
38393       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38394 $as_echo "no" >&6; }
38395       tst_allow_strncasecmp="no"
38396     fi
38397   fi
38398   #
38399   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
38400 $as_echo_n "checking if strncasecmp might be used... " >&6; }
38401   if test "$tst_links_strncasecmp" = "yes" &&
38402      test "$tst_proto_strncasecmp" = "yes" &&
38403      test "$tst_compi_strncasecmp" = "yes" &&
38404      test "$tst_allow_strncasecmp" = "yes"; then
38405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38406 $as_echo "yes" >&6; }
38407
38408 cat >>confdefs.h <<_ACEOF
38409 #define HAVE_STRNCASECMP 1
38410 _ACEOF
38411
38412     curl_cv_func_strncasecmp="yes"
38413   else
38414     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38415 $as_echo "no" >&6; }
38416     curl_cv_func_strncasecmp="no"
38417   fi
38418
38419
38420     #
38421   tst_links_strncmpi="unknown"
38422   tst_proto_strncmpi="unknown"
38423   tst_compi_strncmpi="unknown"
38424   tst_allow_strncmpi="unknown"
38425   #
38426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
38427 $as_echo_n "checking if strncmpi can be linked... " >&6; }
38428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38429 /* end confdefs.h.  */
38430
38431
38432 #define strncmpi innocuous_strncmpi
38433 #ifdef __STDC__
38434 # include <limits.h>
38435 #else
38436 # include <assert.h>
38437 #endif
38438 #undef strncmpi
38439 #ifdef __cplusplus
38440 extern "C"
38441 #endif
38442 char strncmpi ();
38443 #if defined __stub_strncmpi || defined __stub___strncmpi
38444 choke me
38445 #endif
38446
38447 int main (void)
38448 {
38449 return strncmpi ();
38450  ;
38451  return 0;
38452 }
38453
38454 _ACEOF
38455 if ac_fn_c_try_link "$LINENO"; then :
38456
38457     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38458 $as_echo "yes" >&6; }
38459     tst_links_strncmpi="yes"
38460
38461 else
38462
38463     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38464 $as_echo "no" >&6; }
38465     tst_links_strncmpi="no"
38466
38467 fi
38468 rm -f core conftest.err conftest.$ac_objext \
38469     conftest$ac_exeext conftest.$ac_ext
38470   #
38471   if test "$tst_links_strncmpi" = "yes"; then
38472     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
38473 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
38474     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38475 /* end confdefs.h.  */
38476
38477       $curl_includes_string
38478
38479 _ACEOF
38480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38481   $EGREP "strncmpi" >/dev/null 2>&1; then :
38482
38483       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38484 $as_echo "yes" >&6; }
38485       tst_proto_strncmpi="yes"
38486
38487 else
38488
38489       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38490 $as_echo "no" >&6; }
38491       tst_proto_strncmpi="no"
38492
38493 fi
38494 rm -f conftest*
38495
38496   fi
38497   #
38498   if test "$tst_proto_strncmpi" = "yes"; then
38499     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
38500 $as_echo_n "checking if strncmpi is compilable... " >&6; }
38501     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38502 /* end confdefs.h.  */
38503
38504
38505         $curl_includes_string
38506
38507 int main (void)
38508 {
38509
38510         if(0 != strncmpi(0, 0))
38511           return 1;
38512
38513  ;
38514  return 0;
38515 }
38516
38517 _ACEOF
38518 if ac_fn_c_try_compile "$LINENO"; then :
38519
38520       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38521 $as_echo "yes" >&6; }
38522       tst_compi_strncmpi="yes"
38523
38524 else
38525
38526       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38527 $as_echo "no" >&6; }
38528       tst_compi_strncmpi="no"
38529
38530 fi
38531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38532   fi
38533   #
38534   if test "$tst_compi_strncmpi" = "yes"; then
38535     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
38536 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
38537     if test "x$curl_disallow_strncmpi" != "xyes"; then
38538       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38539 $as_echo "yes" >&6; }
38540       tst_allow_strncmpi="yes"
38541     else
38542       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38543 $as_echo "no" >&6; }
38544       tst_allow_strncmpi="no"
38545     fi
38546   fi
38547   #
38548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
38549 $as_echo_n "checking if strncmpi might be used... " >&6; }
38550   if test "$tst_links_strncmpi" = "yes" &&
38551      test "$tst_proto_strncmpi" = "yes" &&
38552      test "$tst_compi_strncmpi" = "yes" &&
38553      test "$tst_allow_strncmpi" = "yes"; then
38554     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38555 $as_echo "yes" >&6; }
38556
38557 cat >>confdefs.h <<_ACEOF
38558 #define HAVE_STRNCMPI 1
38559 _ACEOF
38560
38561     curl_cv_func_strncmpi="yes"
38562   else
38563     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38564 $as_echo "no" >&6; }
38565     curl_cv_func_strncmpi="no"
38566   fi
38567
38568
38569     #
38570   tst_links_strnicmp="unknown"
38571   tst_proto_strnicmp="unknown"
38572   tst_compi_strnicmp="unknown"
38573   tst_allow_strnicmp="unknown"
38574   #
38575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
38576 $as_echo_n "checking if strnicmp can be linked... " >&6; }
38577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38578 /* end confdefs.h.  */
38579
38580
38581 #define strnicmp innocuous_strnicmp
38582 #ifdef __STDC__
38583 # include <limits.h>
38584 #else
38585 # include <assert.h>
38586 #endif
38587 #undef strnicmp
38588 #ifdef __cplusplus
38589 extern "C"
38590 #endif
38591 char strnicmp ();
38592 #if defined __stub_strnicmp || defined __stub___strnicmp
38593 choke me
38594 #endif
38595
38596 int main (void)
38597 {
38598 return strnicmp ();
38599  ;
38600  return 0;
38601 }
38602
38603 _ACEOF
38604 if ac_fn_c_try_link "$LINENO"; then :
38605
38606     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38607 $as_echo "yes" >&6; }
38608     tst_links_strnicmp="yes"
38609
38610 else
38611
38612     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38613 $as_echo "no" >&6; }
38614     tst_links_strnicmp="no"
38615
38616 fi
38617 rm -f core conftest.err conftest.$ac_objext \
38618     conftest$ac_exeext conftest.$ac_ext
38619   #
38620   if test "$tst_links_strnicmp" = "yes"; then
38621     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
38622 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
38623     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38624 /* end confdefs.h.  */
38625
38626       $curl_includes_string
38627
38628 _ACEOF
38629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38630   $EGREP "strnicmp" >/dev/null 2>&1; then :
38631
38632       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38633 $as_echo "yes" >&6; }
38634       tst_proto_strnicmp="yes"
38635
38636 else
38637
38638       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38639 $as_echo "no" >&6; }
38640       tst_proto_strnicmp="no"
38641
38642 fi
38643 rm -f conftest*
38644
38645   fi
38646   #
38647   if test "$tst_proto_strnicmp" = "yes"; then
38648     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
38649 $as_echo_n "checking if strnicmp is compilable... " >&6; }
38650     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38651 /* end confdefs.h.  */
38652
38653
38654         $curl_includes_string
38655
38656 int main (void)
38657 {
38658
38659         if(0 != strnicmp(0, 0))
38660           return 1;
38661
38662  ;
38663  return 0;
38664 }
38665
38666 _ACEOF
38667 if ac_fn_c_try_compile "$LINENO"; then :
38668
38669       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38670 $as_echo "yes" >&6; }
38671       tst_compi_strnicmp="yes"
38672
38673 else
38674
38675       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38676 $as_echo "no" >&6; }
38677       tst_compi_strnicmp="no"
38678
38679 fi
38680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38681   fi
38682   #
38683   if test "$tst_compi_strnicmp" = "yes"; then
38684     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
38685 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
38686     if test "x$curl_disallow_strnicmp" != "xyes"; then
38687       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38688 $as_echo "yes" >&6; }
38689       tst_allow_strnicmp="yes"
38690     else
38691       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38692 $as_echo "no" >&6; }
38693       tst_allow_strnicmp="no"
38694     fi
38695   fi
38696   #
38697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
38698 $as_echo_n "checking if strnicmp might be used... " >&6; }
38699   if test "$tst_links_strnicmp" = "yes" &&
38700      test "$tst_proto_strnicmp" = "yes" &&
38701      test "$tst_compi_strnicmp" = "yes" &&
38702      test "$tst_allow_strnicmp" = "yes"; then
38703     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38704 $as_echo "yes" >&6; }
38705
38706 cat >>confdefs.h <<_ACEOF
38707 #define HAVE_STRNICMP 1
38708 _ACEOF
38709
38710     curl_cv_func_strnicmp="yes"
38711   else
38712     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38713 $as_echo "no" >&6; }
38714     curl_cv_func_strnicmp="no"
38715   fi
38716
38717
38718     #
38719   tst_links_strstr="unknown"
38720   tst_proto_strstr="unknown"
38721   tst_compi_strstr="unknown"
38722   tst_allow_strstr="unknown"
38723   #
38724   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
38725 $as_echo_n "checking if strstr can be linked... " >&6; }
38726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38727 /* end confdefs.h.  */
38728
38729
38730 #define strstr innocuous_strstr
38731 #ifdef __STDC__
38732 # include <limits.h>
38733 #else
38734 # include <assert.h>
38735 #endif
38736 #undef strstr
38737 #ifdef __cplusplus
38738 extern "C"
38739 #endif
38740 char strstr ();
38741 #if defined __stub_strstr || defined __stub___strstr
38742 choke me
38743 #endif
38744
38745 int main (void)
38746 {
38747 return strstr ();
38748  ;
38749  return 0;
38750 }
38751
38752 _ACEOF
38753 if ac_fn_c_try_link "$LINENO"; then :
38754
38755     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38756 $as_echo "yes" >&6; }
38757     tst_links_strstr="yes"
38758
38759 else
38760
38761     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38762 $as_echo "no" >&6; }
38763     tst_links_strstr="no"
38764
38765 fi
38766 rm -f core conftest.err conftest.$ac_objext \
38767     conftest$ac_exeext conftest.$ac_ext
38768   #
38769   if test "$tst_links_strstr" = "yes"; then
38770     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
38771 $as_echo_n "checking if strstr is prototyped... " >&6; }
38772     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38773 /* end confdefs.h.  */
38774
38775       $curl_includes_string
38776
38777 _ACEOF
38778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38779   $EGREP "strstr" >/dev/null 2>&1; then :
38780
38781       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38782 $as_echo "yes" >&6; }
38783       tst_proto_strstr="yes"
38784
38785 else
38786
38787       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38788 $as_echo "no" >&6; }
38789       tst_proto_strstr="no"
38790
38791 fi
38792 rm -f conftest*
38793
38794   fi
38795   #
38796   if test "$tst_proto_strstr" = "yes"; then
38797     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
38798 $as_echo_n "checking if strstr is compilable... " >&6; }
38799     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38800 /* end confdefs.h.  */
38801
38802
38803         $curl_includes_string
38804
38805 int main (void)
38806 {
38807
38808         if(0 != strstr(0, 0))
38809           return 1;
38810
38811  ;
38812  return 0;
38813 }
38814
38815 _ACEOF
38816 if ac_fn_c_try_compile "$LINENO"; then :
38817
38818       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38819 $as_echo "yes" >&6; }
38820       tst_compi_strstr="yes"
38821
38822 else
38823
38824       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38825 $as_echo "no" >&6; }
38826       tst_compi_strstr="no"
38827
38828 fi
38829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38830   fi
38831   #
38832   if test "$tst_compi_strstr" = "yes"; then
38833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
38834 $as_echo_n "checking if strstr usage allowed... " >&6; }
38835     if test "x$curl_disallow_strstr" != "xyes"; then
38836       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38837 $as_echo "yes" >&6; }
38838       tst_allow_strstr="yes"
38839     else
38840       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38841 $as_echo "no" >&6; }
38842       tst_allow_strstr="no"
38843     fi
38844   fi
38845   #
38846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
38847 $as_echo_n "checking if strstr might be used... " >&6; }
38848   if test "$tst_links_strstr" = "yes" &&
38849      test "$tst_proto_strstr" = "yes" &&
38850      test "$tst_compi_strstr" = "yes" &&
38851      test "$tst_allow_strstr" = "yes"; then
38852     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38853 $as_echo "yes" >&6; }
38854
38855 cat >>confdefs.h <<_ACEOF
38856 #define HAVE_STRSTR 1
38857 _ACEOF
38858
38859     curl_cv_func_strstr="yes"
38860   else
38861     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38862 $as_echo "no" >&6; }
38863     curl_cv_func_strstr="no"
38864   fi
38865
38866
38867     #
38868   tst_links_strtok_r="unknown"
38869   tst_proto_strtok_r="unknown"
38870   tst_compi_strtok_r="unknown"
38871   tst_allow_strtok_r="unknown"
38872   #
38873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
38874 $as_echo_n "checking if strtok_r can be linked... " >&6; }
38875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38876 /* end confdefs.h.  */
38877
38878
38879 #define strtok_r innocuous_strtok_r
38880 #ifdef __STDC__
38881 # include <limits.h>
38882 #else
38883 # include <assert.h>
38884 #endif
38885 #undef strtok_r
38886 #ifdef __cplusplus
38887 extern "C"
38888 #endif
38889 char strtok_r ();
38890 #if defined __stub_strtok_r || defined __stub___strtok_r
38891 choke me
38892 #endif
38893
38894 int main (void)
38895 {
38896 return strtok_r ();
38897  ;
38898  return 0;
38899 }
38900
38901 _ACEOF
38902 if ac_fn_c_try_link "$LINENO"; then :
38903
38904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38905 $as_echo "yes" >&6; }
38906     tst_links_strtok_r="yes"
38907
38908 else
38909
38910     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38911 $as_echo "no" >&6; }
38912     tst_links_strtok_r="no"
38913
38914 fi
38915 rm -f core conftest.err conftest.$ac_objext \
38916     conftest$ac_exeext conftest.$ac_ext
38917   #
38918   if test "$tst_links_strtok_r" = "yes"; then
38919     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
38920 $as_echo_n "checking if strtok_r is prototyped... " >&6; }
38921     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38922 /* end confdefs.h.  */
38923
38924       $curl_includes_string
38925
38926 _ACEOF
38927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38928   $EGREP "strtok_r" >/dev/null 2>&1; then :
38929
38930       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38931 $as_echo "yes" >&6; }
38932       tst_proto_strtok_r="yes"
38933
38934 else
38935
38936       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38937 $as_echo "no" >&6; }
38938       tst_proto_strtok_r="no"
38939
38940 fi
38941 rm -f conftest*
38942
38943   fi
38944   #
38945   if test "$tst_proto_strtok_r" = "yes"; then
38946     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
38947 $as_echo_n "checking if strtok_r is compilable... " >&6; }
38948     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38949 /* end confdefs.h.  */
38950
38951
38952         $curl_includes_string
38953
38954 int main (void)
38955 {
38956
38957         if(0 != strtok_r(0, 0, 0))
38958           return 1;
38959
38960  ;
38961  return 0;
38962 }
38963
38964 _ACEOF
38965 if ac_fn_c_try_compile "$LINENO"; then :
38966
38967       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38968 $as_echo "yes" >&6; }
38969       tst_compi_strtok_r="yes"
38970
38971 else
38972
38973       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38974 $as_echo "no" >&6; }
38975       tst_compi_strtok_r="no"
38976
38977 fi
38978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38979   fi
38980   #
38981   if test "$tst_compi_strtok_r" = "yes"; then
38982     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
38983 $as_echo_n "checking if strtok_r usage allowed... " >&6; }
38984     if test "x$curl_disallow_strtok_r" != "xyes"; then
38985       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38986 $as_echo "yes" >&6; }
38987       tst_allow_strtok_r="yes"
38988     else
38989       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38990 $as_echo "no" >&6; }
38991       tst_allow_strtok_r="no"
38992     fi
38993   fi
38994   #
38995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
38996 $as_echo_n "checking if strtok_r might be used... " >&6; }
38997   if test "$tst_links_strtok_r" = "yes" &&
38998      test "$tst_proto_strtok_r" = "yes" &&
38999      test "$tst_compi_strtok_r" = "yes" &&
39000      test "$tst_allow_strtok_r" = "yes"; then
39001     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39002 $as_echo "yes" >&6; }
39003
39004 cat >>confdefs.h <<_ACEOF
39005 #define HAVE_STRTOK_R 1
39006 _ACEOF
39007
39008     curl_cv_func_strtok_r="yes"
39009   else
39010     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39011 $as_echo "no" >&6; }
39012     curl_cv_func_strtok_r="no"
39013   fi
39014
39015
39016     #
39017   tst_links_strtoll="unknown"
39018   tst_proto_strtoll="unknown"
39019   tst_compi_strtoll="unknown"
39020   tst_allow_strtoll="unknown"
39021   #
39022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
39023 $as_echo_n "checking if strtoll can be linked... " >&6; }
39024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39025 /* end confdefs.h.  */
39026
39027
39028 #define strtoll innocuous_strtoll
39029 #ifdef __STDC__
39030 # include <limits.h>
39031 #else
39032 # include <assert.h>
39033 #endif
39034 #undef strtoll
39035 #ifdef __cplusplus
39036 extern "C"
39037 #endif
39038 char strtoll ();
39039 #if defined __stub_strtoll || defined __stub___strtoll
39040 choke me
39041 #endif
39042
39043 int main (void)
39044 {
39045 return strtoll ();
39046  ;
39047  return 0;
39048 }
39049
39050 _ACEOF
39051 if ac_fn_c_try_link "$LINENO"; then :
39052
39053     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39054 $as_echo "yes" >&6; }
39055     tst_links_strtoll="yes"
39056
39057 else
39058
39059     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39060 $as_echo "no" >&6; }
39061     tst_links_strtoll="no"
39062
39063 fi
39064 rm -f core conftest.err conftest.$ac_objext \
39065     conftest$ac_exeext conftest.$ac_ext
39066   #
39067   if test "$tst_links_strtoll" = "yes"; then
39068     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
39069 $as_echo_n "checking if strtoll is prototyped... " >&6; }
39070     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39071 /* end confdefs.h.  */
39072
39073       $curl_includes_stdlib
39074
39075 _ACEOF
39076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39077   $EGREP "strtoll" >/dev/null 2>&1; then :
39078
39079       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39080 $as_echo "yes" >&6; }
39081       tst_proto_strtoll="yes"
39082
39083 else
39084
39085       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39086 $as_echo "no" >&6; }
39087       tst_proto_strtoll="no"
39088
39089 fi
39090 rm -f conftest*
39091
39092   fi
39093   #
39094   if test "$tst_proto_strtoll" = "yes"; then
39095     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
39096 $as_echo_n "checking if strtoll is compilable... " >&6; }
39097     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39098 /* end confdefs.h.  */
39099
39100
39101         $curl_includes_stdlib
39102
39103 int main (void)
39104 {
39105
39106         if(0 != strtoll(0, 0, 0))
39107           return 1;
39108
39109  ;
39110  return 0;
39111 }
39112
39113 _ACEOF
39114 if ac_fn_c_try_compile "$LINENO"; then :
39115
39116       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39117 $as_echo "yes" >&6; }
39118       tst_compi_strtoll="yes"
39119
39120 else
39121
39122       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39123 $as_echo "no" >&6; }
39124       tst_compi_strtoll="no"
39125
39126 fi
39127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39128   fi
39129   #
39130   if test "$tst_compi_strtoll" = "yes"; then
39131     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
39132 $as_echo_n "checking if strtoll usage allowed... " >&6; }
39133     if test "x$curl_disallow_strtoll" != "xyes"; then
39134       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39135 $as_echo "yes" >&6; }
39136       tst_allow_strtoll="yes"
39137     else
39138       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39139 $as_echo "no" >&6; }
39140       tst_allow_strtoll="no"
39141     fi
39142   fi
39143   #
39144   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
39145 $as_echo_n "checking if strtoll might be used... " >&6; }
39146   if test "$tst_links_strtoll" = "yes" &&
39147      test "$tst_proto_strtoll" = "yes" &&
39148      test "$tst_compi_strtoll" = "yes" &&
39149      test "$tst_allow_strtoll" = "yes"; then
39150     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39151 $as_echo "yes" >&6; }
39152
39153 cat >>confdefs.h <<_ACEOF
39154 #define HAVE_STRTOLL 1
39155 _ACEOF
39156
39157     curl_cv_func_strtoll="yes"
39158   else
39159     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39160 $as_echo "no" >&6; }
39161     curl_cv_func_strtoll="no"
39162   fi
39163
39164
39165 curl_includes_sys_uio="\
39166 /* includes start */
39167 #ifdef HAVE_SYS_TYPES_H
39168 #  include <sys/types.h>
39169 #endif
39170 #ifdef HAVE_SYS_UIO_H
39171 #  include <sys/uio.h>
39172 #endif
39173 /* includes end */"
39174   for ac_header in sys/types.h sys/uio.h
39175 do :
39176   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39177 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
39178 "
39179 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39180   cat >>confdefs.h <<_ACEOF
39181 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39182 _ACEOF
39183
39184 fi
39185
39186 done
39187
39188
39189
39190     #
39191   tst_links_writev="unknown"
39192   tst_proto_writev="unknown"
39193   tst_compi_writev="unknown"
39194   tst_allow_writev="unknown"
39195   #
39196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
39197 $as_echo_n "checking if writev can be linked... " >&6; }
39198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39199 /* end confdefs.h.  */
39200
39201
39202 #define writev innocuous_writev
39203 #ifdef __STDC__
39204 # include <limits.h>
39205 #else
39206 # include <assert.h>
39207 #endif
39208 #undef writev
39209 #ifdef __cplusplus
39210 extern "C"
39211 #endif
39212 char writev ();
39213 #if defined __stub_writev || defined __stub___writev
39214 choke me
39215 #endif
39216
39217 int main (void)
39218 {
39219 return writev ();
39220  ;
39221  return 0;
39222 }
39223
39224 _ACEOF
39225 if ac_fn_c_try_link "$LINENO"; then :
39226
39227     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39228 $as_echo "yes" >&6; }
39229     tst_links_writev="yes"
39230
39231 else
39232
39233     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39234 $as_echo "no" >&6; }
39235     tst_links_writev="no"
39236
39237 fi
39238 rm -f core conftest.err conftest.$ac_objext \
39239     conftest$ac_exeext conftest.$ac_ext
39240   #
39241   if test "$tst_links_writev" = "yes"; then
39242     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
39243 $as_echo_n "checking if writev is prototyped... " >&6; }
39244     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39245 /* end confdefs.h.  */
39246
39247       $curl_includes_sys_uio
39248
39249 _ACEOF
39250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39251   $EGREP "writev" >/dev/null 2>&1; then :
39252
39253       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39254 $as_echo "yes" >&6; }
39255       tst_proto_writev="yes"
39256
39257 else
39258
39259       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39260 $as_echo "no" >&6; }
39261       tst_proto_writev="no"
39262
39263 fi
39264 rm -f conftest*
39265
39266   fi
39267   #
39268   if test "$tst_proto_writev" = "yes"; then
39269     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
39270 $as_echo_n "checking if writev is compilable... " >&6; }
39271     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39272 /* end confdefs.h.  */
39273
39274
39275         $curl_includes_sys_uio
39276
39277 int main (void)
39278 {
39279
39280         if(0 != writev(0, 0, 0))
39281           return 1;
39282
39283  ;
39284  return 0;
39285 }
39286
39287 _ACEOF
39288 if ac_fn_c_try_compile "$LINENO"; then :
39289
39290       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39291 $as_echo "yes" >&6; }
39292       tst_compi_writev="yes"
39293
39294 else
39295
39296       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39297 $as_echo "no" >&6; }
39298       tst_compi_writev="no"
39299
39300 fi
39301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39302   fi
39303   #
39304   if test "$tst_compi_writev" = "yes"; then
39305     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
39306 $as_echo_n "checking if writev usage allowed... " >&6; }
39307     if test "x$curl_disallow_writev" != "xyes"; then
39308       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39309 $as_echo "yes" >&6; }
39310       tst_allow_writev="yes"
39311     else
39312       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39313 $as_echo "no" >&6; }
39314       tst_allow_writev="no"
39315     fi
39316   fi
39317   #
39318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
39319 $as_echo_n "checking if writev might be used... " >&6; }
39320   if test "$tst_links_writev" = "yes" &&
39321      test "$tst_proto_writev" = "yes" &&
39322      test "$tst_compi_writev" = "yes" &&
39323      test "$tst_allow_writev" = "yes"; then
39324     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39325 $as_echo "yes" >&6; }
39326
39327 cat >>confdefs.h <<_ACEOF
39328 #define HAVE_WRITEV 1
39329 _ACEOF
39330
39331     curl_cv_func_writev="yes"
39332   else
39333     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39334 $as_echo "no" >&6; }
39335     curl_cv_func_writev="no"
39336   fi
39337
39338
39339 case $host in
39340   *msdosdjgpp)
39341      ac_cv_func_pipe=no
39342      skipcheck_pipe=yes
39343      { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
39344 $as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
39345     ;;
39346 esac
39347
39348 for ac_func in fork \
39349   geteuid \
39350   getpass_r \
39351   getppid \
39352   getprotobyname \
39353   getpwuid \
39354   getpwuid_r \
39355   getrlimit \
39356   gettimeofday \
39357   if_nametoindex \
39358   inet_addr \
39359   perror \
39360   pipe \
39361   setlocale \
39362   setmode \
39363   setrlimit \
39364   uname \
39365   utime
39366
39367 do :
39368   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39369 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
39370 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
39371   cat >>confdefs.h <<_ACEOF
39372 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39373 _ACEOF
39374
39375
39376 else
39377
39378   func="$ac_func"
39379   eval skipcheck=\$skipcheck_$func
39380   if test "x$skipcheck" != "xyes"; then
39381     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
39382 $as_echo_n "checking deeper for $func... " >&6; }
39383     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39384 /* end confdefs.h.  */
39385
39386
39387
39388 int main (void)
39389 {
39390
39391         $func ();
39392
39393  ;
39394  return 0;
39395 }
39396
39397 _ACEOF
39398 if ac_fn_c_try_link "$LINENO"; then :
39399
39400       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39401 $as_echo "yes" >&6; }
39402       eval "ac_cv_func_$func=yes"
39403
39404 cat >>confdefs.h <<_ACEOF
39405 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
39406 _ACEOF
39407
39408
39409 else
39410
39411       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39412 $as_echo "but still no" >&6; }
39413
39414 fi
39415 rm -f core conftest.err conftest.$ac_objext \
39416     conftest$ac_exeext conftest.$ac_ext
39417   fi
39418
39419 fi
39420 done
39421
39422
39423
39424     for ac_header in sys/types.h sys/socket.h netdb.h
39425 do :
39426   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39427 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
39428 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39429   cat >>confdefs.h <<_ACEOF
39430 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39431 _ACEOF
39432
39433 fi
39434
39435 done
39436
39437   #
39438   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
39439 $as_echo_n "checking for getnameinfo... " >&6; }
39440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39441 /* end confdefs.h.  */
39442
39443
39444 #define getnameinfo innocuous_getnameinfo
39445 #ifdef __STDC__
39446 # include <limits.h>
39447 #else
39448 # include <assert.h>
39449 #endif
39450 #undef getnameinfo
39451 #ifdef __cplusplus
39452 extern "C"
39453 #endif
39454 char getnameinfo ();
39455 #if defined __stub_getnameinfo || defined __stub___getnameinfo
39456 choke me
39457 #endif
39458
39459 int main (void)
39460 {
39461 return getnameinfo ();
39462  ;
39463  return 0;
39464 }
39465
39466 _ACEOF
39467 if ac_fn_c_try_link "$LINENO"; then :
39468
39469     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39470 $as_echo "yes" >&6; }
39471     curl_cv_getnameinfo="yes"
39472
39473 else
39474
39475     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39476 $as_echo "no" >&6; }
39477     curl_cv_getnameinfo="no"
39478
39479 fi
39480 rm -f core conftest.err conftest.$ac_objext \
39481     conftest$ac_exeext conftest.$ac_ext
39482   #
39483   if test "$curl_cv_getnameinfo" != "yes"; then
39484     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
39485 $as_echo_n "checking deeper for getnameinfo... " >&6; }
39486     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39487 /* end confdefs.h.  */
39488
39489
39490
39491 int main (void)
39492 {
39493
39494         getnameinfo();
39495
39496  ;
39497  return 0;
39498 }
39499
39500 _ACEOF
39501 if ac_fn_c_try_link "$LINENO"; then :
39502
39503       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39504 $as_echo "yes" >&6; }
39505       curl_cv_getnameinfo="yes"
39506
39507 else
39508
39509       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39510 $as_echo "but still no" >&6; }
39511       curl_cv_getnameinfo="no"
39512
39513 fi
39514 rm -f core conftest.err conftest.$ac_objext \
39515     conftest$ac_exeext conftest.$ac_ext
39516   fi
39517   #
39518   if test "$curl_cv_getnameinfo" != "yes"; then
39519     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
39520 $as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
39521     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39522 /* end confdefs.h.  */
39523
39524
39525 #undef inline
39526 #ifdef HAVE_WINDOWS_H
39527 #ifndef WIN32_LEAN_AND_MEAN
39528 #define WIN32_LEAN_AND_MEAN
39529 #endif
39530 #include <windows.h>
39531 #ifdef HAVE_WINSOCK2_H
39532 #include <winsock2.h>
39533 #ifdef HAVE_WS2TCPIP_H
39534 #include <ws2tcpip.h>
39535 #endif
39536 #endif
39537 #else
39538 #ifdef HAVE_SYS_TYPES_H
39539 #include <sys/types.h>
39540 #endif
39541 #ifdef HAVE_SYS_SOCKET_H
39542 #include <sys/socket.h>
39543 #endif
39544 #ifdef HAVE_NETDB_H
39545 #include <netdb.h>
39546 #endif
39547 #endif
39548
39549 int main (void)
39550 {
39551
39552         getnameinfo(0, 0, 0, 0, 0, 0, 0);
39553
39554  ;
39555  return 0;
39556 }
39557
39558 _ACEOF
39559 if ac_fn_c_try_link "$LINENO"; then :
39560
39561       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39562 $as_echo "yes" >&6; }
39563       curl_cv_getnameinfo="yes"
39564
39565 else
39566
39567       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39568 $as_echo "but still no" >&6; }
39569       curl_cv_getnameinfo="no"
39570
39571 fi
39572 rm -f core conftest.err conftest.$ac_objext \
39573     conftest$ac_exeext conftest.$ac_ext
39574   fi
39575   #
39576   if test "$curl_cv_getnameinfo" = "yes"; then
39577     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
39578 $as_echo_n "checking types of arguments for getnameinfo... " >&6; }
39579 if ${curl_cv_func_getnameinfo_args+:} false; then :
39580   $as_echo_n "(cached) " >&6
39581 else
39582
39583       curl_cv_func_getnameinfo_args="unknown"
39584       for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
39585         for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
39586           for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
39587             for gni_arg7 in 'int' 'unsigned int'; do
39588               if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
39589                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39590 /* end confdefs.h.  */
39591
39592
39593 #undef inline
39594 #ifdef HAVE_WINDOWS_H
39595 #ifndef WIN32_LEAN_AND_MEAN
39596 #define WIN32_LEAN_AND_MEAN
39597 #endif
39598 #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
39599 #undef _WIN32_WINNT
39600 #define _WIN32_WINNT 0x0501
39601 #endif
39602 #include <windows.h>
39603 #ifdef HAVE_WINSOCK2_H
39604 #include <winsock2.h>
39605 #ifdef HAVE_WS2TCPIP_H
39606 #include <ws2tcpip.h>
39607 #endif
39608 #endif
39609 #define GNICALLCONV WSAAPI
39610 #else
39611 #ifdef HAVE_SYS_TYPES_H
39612 #include <sys/types.h>
39613 #endif
39614 #ifdef HAVE_SYS_SOCKET_H
39615 #include <sys/socket.h>
39616 #endif
39617 #ifdef HAVE_NETDB_H
39618 #include <netdb.h>
39619 #endif
39620 #define GNICALLCONV
39621 #endif
39622                     extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
39623                                            char *, $gni_arg46,
39624                                            char *, $gni_arg46,
39625                                            $gni_arg7);
39626
39627 int main (void)
39628 {
39629
39630                     $gni_arg2 salen=0;
39631                     $gni_arg46 hostlen=0;
39632                     $gni_arg46 servlen=0;
39633                     $gni_arg7 flags=0;
39634                     int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
39635
39636  ;
39637  return 0;
39638 }
39639
39640 _ACEOF
39641 if ac_fn_c_try_compile "$LINENO"; then :
39642
39643                   curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
39644
39645 fi
39646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39647               fi
39648             done
39649           done
39650         done
39651       done
39652
39653 fi
39654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
39655 $as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
39656     if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
39657       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
39658 $as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
39659       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
39660 $as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
39661     else
39662       gni_prev_IFS=$IFS; IFS=','
39663       set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
39664       IFS=$gni_prev_IFS
39665       shift
39666       #
39667       gni_qual_type_arg1=$1
39668       #
39669
39670 cat >>confdefs.h <<_ACEOF
39671 #define GETNAMEINFO_TYPE_ARG2 $2
39672 _ACEOF
39673
39674
39675 cat >>confdefs.h <<_ACEOF
39676 #define GETNAMEINFO_TYPE_ARG46 $3
39677 _ACEOF
39678
39679
39680 cat >>confdefs.h <<_ACEOF
39681 #define GETNAMEINFO_TYPE_ARG7 $4
39682 _ACEOF
39683
39684       #
39685       prev_sh_opts=$-
39686       #
39687       case $prev_sh_opts in
39688         *f*)
39689           ;;
39690         *)
39691           set -f
39692           ;;
39693       esac
39694       #
39695       case "$gni_qual_type_arg1" in
39696         const*)
39697           gni_qual_arg1=const
39698           gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
39699         ;;
39700         *)
39701           gni_qual_arg1=
39702           gni_type_arg1=$gni_qual_type_arg1
39703         ;;
39704       esac
39705       #
39706
39707 cat >>confdefs.h <<_ACEOF
39708 #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
39709 _ACEOF
39710
39711
39712 cat >>confdefs.h <<_ACEOF
39713 #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
39714 _ACEOF
39715
39716       #
39717       case $prev_sh_opts in
39718         *f*)
39719           ;;
39720         *)
39721           set +f
39722           ;;
39723       esac
39724       #
39725
39726 cat >>confdefs.h <<_ACEOF
39727 #define HAVE_GETNAMEINFO 1
39728 _ACEOF
39729
39730       curl_cv_func_getnameinfo="yes"
39731     fi
39732   fi
39733
39734
39735 if test "$ipv6" = "yes"; then
39736   if test "$curl_cv_func_getaddrinfo" = "yes"; then
39737
39738 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
39739
39740     IPV6_ENABLED=1
39741
39742   fi
39743
39744       for ac_header in stdio.h sys/types.h sys/socket.h \
39745                    netdb.h netinet/in.h arpa/inet.h
39746 do :
39747   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39748 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
39749 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39750   cat >>confdefs.h <<_ACEOF
39751 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39752 _ACEOF
39753
39754 fi
39755
39756 done
39757
39758   #
39759   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working NI_WITHSCOPEID" >&5
39760 $as_echo_n "checking for working NI_WITHSCOPEID... " >&6; }
39761 if ${curl_cv_working_ni_withscopeid+:} false; then :
39762   $as_echo_n "(cached) " >&6
39763 else
39764
39765     if test "$cross_compiling" = yes; then :
39766
39767       # Program is not run when cross-compiling. So we assume
39768       # NI_WITHSCOPEID will work if we are able to compile it.
39769       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39770 /* end confdefs.h.  */
39771
39772
39773 #include <sys/types.h>
39774 #include <sys/socket.h>
39775 #include <netdb.h>
39776
39777 int main (void)
39778 {
39779
39780           unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
39781
39782  ;
39783  return 0;
39784 }
39785
39786 _ACEOF
39787 if ac_fn_c_try_compile "$LINENO"; then :
39788
39789         curl_cv_working_ni_withscopeid="yes"
39790
39791 else
39792
39793         curl_cv_working_ni_withscopeid="no"
39794
39795 fi
39796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE
39797
39798 else
39799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39800 /* end confdefs.h.  */
39801
39802
39803 #ifdef HAVE_STDLIB_H
39804 #include <stdlib.h>
39805 #endif
39806 #ifdef HAVE_STDIO_H
39807 #include <stdio.h>
39808 #endif
39809 #ifdef HAVE_SYS_TYPES_H
39810 #include <sys/types.h>
39811 #endif
39812 #ifdef HAVE_SYS_SOCKET_H
39813 #include <sys/socket.h>
39814 #endif
39815 #ifdef HAVE_NETDB_H
39816 #include <netdb.h>
39817 #endif
39818 #ifdef HAVE_NETINET_IN_H
39819 #include <netinet/in.h>
39820 #endif
39821 #ifdef HAVE_ARPA_INET_H
39822 #include <arpa/inet.h>
39823 #endif
39824
39825 int main (void)
39826 {
39827
39828 #if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
39829 #ifdef HAVE_STRUCT_SOCKADDR_STORAGE
39830         struct sockaddr_storage sa;
39831 #else
39832         unsigned char sa[256];
39833 #endif
39834         char hostbuf[NI_MAXHOST];
39835         int rc;
39836         GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa);
39837         GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf);
39838         GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
39839         int fd = socket(AF_INET6, SOCK_STREAM, 0);
39840         if(fd < 0) {
39841           perror("socket()");
39842           return 1; /* Error creating socket */
39843         }
39844         rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
39845         if(rc) {
39846           perror("getsockname()");
39847           return 2; /* Error retrieving socket name */
39848         }
39849         rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
39850         if(rc) {
39851           printf("rc = %s\n", gai_strerror(rc));
39852           return 3; /* Error translating socket address */
39853         }
39854         return 0; /* Ok, NI_WITHSCOPEID works */
39855 #else
39856         return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
39857 #endif
39858
39859  ;
39860  return 0;
39861 } # AC-LANG-PROGRAM
39862
39863 _ACEOF
39864 if ac_fn_c_try_run "$LINENO"; then :
39865
39866       # Exit code == 0. Program worked.
39867       curl_cv_working_ni_withscopeid="yes"
39868
39869 else
39870
39871       # Exit code != 0. Program failed.
39872       curl_cv_working_ni_withscopeid="no"
39873
39874 fi
39875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39876   conftest.$ac_objext conftest.beam conftest.$ac_ext
39877 fi
39878  # AC-RUN-IFELSE
39879
39880 fi
39881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_working_ni_withscopeid" >&5
39882 $as_echo "$curl_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK
39883   case "$curl_cv_working_ni_withscopeid" in
39884     yes)
39885
39886 $as_echo "#define HAVE_NI_WITHSCOPEID 1" >>confdefs.h
39887
39888       ;;
39889   esac
39890
39891 fi
39892
39893
39894             #
39895   tst_method="unknown"
39896
39897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
39898 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
39899   if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
39900     tst_method="fcntl O_NONBLOCK"
39901   elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
39902     tst_method="ioctl FIONBIO"
39903   elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
39904     tst_method="ioctlsocket FIONBIO"
39905   elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
39906     tst_method="IoctlSocket FIONBIO"
39907   elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
39908     tst_method="setsockopt SO_NONBLOCK"
39909   fi
39910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
39911 $as_echo "$tst_method" >&6; }
39912   if test "$tst_method" = "unknown"; then
39913     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
39914 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
39915   fi
39916
39917
39918
39919 # Extract the first word of "perl", so it can be a program name with args.
39920 set dummy perl; ac_word=$2
39921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39922 $as_echo_n "checking for $ac_word... " >&6; }
39923 if ${ac_cv_path_PERL+:} false; then :
39924   $as_echo_n "(cached) " >&6
39925 else
39926   case $PERL in
39927   [\\/]* | ?:[\\/]*)
39928   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
39929   ;;
39930   *)
39931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39932 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
39933 for as_dir in $as_dummy
39934 do
39935   IFS=$as_save_IFS
39936   test -z "$as_dir" && as_dir=.
39937     for ac_exec_ext in '' $ac_executable_extensions; do
39938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39939     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
39940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39941     break 2
39942   fi
39943 done
39944   done
39945 IFS=$as_save_IFS
39946
39947   ;;
39948 esac
39949 fi
39950 PERL=$ac_cv_path_PERL
39951 if test -n "$PERL"; then
39952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
39953 $as_echo "$PERL" >&6; }
39954 else
39955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39956 $as_echo "no" >&6; }
39957 fi
39958
39959
39960
39961
39962 for ac_prog in gnroff nroff
39963 do
39964   # Extract the first word of "$ac_prog", so it can be a program name with args.
39965 set dummy $ac_prog; ac_word=$2
39966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39967 $as_echo_n "checking for $ac_word... " >&6; }
39968 if ${ac_cv_path_NROFF+:} false; then :
39969   $as_echo_n "(cached) " >&6
39970 else
39971   case $NROFF in
39972   [\\/]* | ?:[\\/]*)
39973   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
39974   ;;
39975   *)
39976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39977 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
39978 for as_dir in $as_dummy
39979 do
39980   IFS=$as_save_IFS
39981   test -z "$as_dir" && as_dir=.
39982     for ac_exec_ext in '' $ac_executable_extensions; do
39983   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39984     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
39985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39986     break 2
39987   fi
39988 done
39989   done
39990 IFS=$as_save_IFS
39991
39992   ;;
39993 esac
39994 fi
39995 NROFF=$ac_cv_path_NROFF
39996 if test -n "$NROFF"; then
39997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
39998 $as_echo "$NROFF" >&6; }
39999 else
40000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40001 $as_echo "no" >&6; }
40002 fi
40003
40004
40005   test -n "$NROFF" && break
40006 done
40007
40008
40009
40010 if test -n "$NROFF"; then
40011
40012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
40013 $as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
40014   MANOPT="-man"
40015   mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40016   if test -z "$mancheck"; then
40017     MANOPT="-mandoc"
40018    mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40019     if test -z "$mancheck"; then
40020       MANOPT=""
40021       { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
40022 $as_echo "failed" >&6; }
40023       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
40024 $as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
40025     else
40026       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40027 $as_echo "$MANOPT" >&6; }
40028     fi
40029   else
40030     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40031 $as_echo "$MANOPT" >&6; }
40032   fi
40033
40034 fi
40035
40036 if test -z "$MANOPT"
40037 then
40038       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
40039 $as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
40040   USE_MANUAL="no";
40041 fi
40042
40043
40044 if test "$USE_MANUAL" = "1"; then
40045
40046 $as_echo "#define USE_MANUAL 1" >>confdefs.h
40047
40048   curl_manual_msg="enabled"
40049 fi
40050
40051  if test x"$USE_MANUAL" = x1; then
40052   USE_MANUAL_TRUE=
40053   USE_MANUAL_FALSE='#'
40054 else
40055   USE_MANUAL_TRUE='#'
40056   USE_MANUAL_FALSE=
40057 fi
40058
40059
40060
40061
40062
40063   #
40064   if test "$want_ares" = "yes"; then
40065         clean_CPPFLAGS="$CPPFLAGS"
40066     clean_LDFLAGS="$LDFLAGS"
40067     clean_LIBS="$LIBS"
40068     embedded_ares="unknown"
40069     configure_runpath=`pwd`
40070     embedded_ares_builddir="$configure_runpath/ares"
40071     if test -n "$want_ares_path"; then
40072             ares_CPPFLAGS="-I$want_ares_path/include"
40073       ares_LDFLAGS="-L$want_ares_path/lib"
40074       ares_LIBS="-lcares"
40075     else
40076             if test -d "$srcdir/ares"; then
40077                 embedded_ares="yes"
40078         subdirs="$subdirs ares"
40079
40080                         ares_CPPFLAGS=""
40081         ares_LDFLAGS="-L$embedded_ares_builddir"
40082         ares_LIBS="-lcares"
40083       else
40084                 ares_CPPFLAGS=""
40085         ares_LDFLAGS=""
40086         ares_LIBS="-lcares"
40087       fi
40088     fi
40089     #
40090     CPPFLAGS="$ares_CPPFLAGS $clean_CPPFLAGS"
40091     LDFLAGS="$ares_LDFLAGS $clean_LDFLAGS"
40092     LIBS="$ares_LIBS $clean_LIBS"
40093     #
40094     if test "$embedded_ares" != "yes"; then
40095                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
40096 $as_echo_n "checking that c-ares is good and recent enough... " >&6; }
40097       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40098 /* end confdefs.h.  */
40099
40100
40101 #include <ares.h>
40102           /* set of dummy functions in case c-ares was built with debug */
40103           void curl_dofree() { }
40104           void curl_sclose() { }
40105           void curl_domalloc() { }
40106           void curl_docalloc() { }
40107           void curl_socket() { }
40108
40109 int main (void)
40110 {
40111
40112           ares_channel channel;
40113           ares_cancel(channel); /* added in 1.2.0 */
40114           ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
40115           ares_dup(&channel, channel); /* added in 1.6.0 */
40116
40117  ;
40118  return 0;
40119 }
40120
40121 _ACEOF
40122 if ac_fn_c_try_link "$LINENO"; then :
40123
40124         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40125 $as_echo "yes" >&6; }
40126
40127 else
40128
40129         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40130 $as_echo "no" >&6; }
40131         as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
40132                 CPPFLAGS="$clean_CPPFLAGS"
40133         LDFLAGS="$clean_LDFLAGS"
40134         LIBS="$clean_LIBS"
40135         # prevent usage
40136         want_ares="no"
40137
40138 fi
40139 rm -f core conftest.err conftest.$ac_objext \
40140     conftest$ac_exeext conftest.$ac_ext
40141     fi
40142     if test "$want_ares" = "yes"; then
40143
40144 $as_echo "#define USE_ARES 1" >>confdefs.h
40145
40146       USE_ARES=1
40147
40148       curl_res_msg="c-ares"
40149     fi
40150   fi
40151
40152  if test x$embedded_ares = xyes; then
40153   USE_EMBEDDED_ARES_TRUE=
40154   USE_EMBEDDED_ARES_FALSE='#'
40155 else
40156   USE_EMBEDDED_ARES_TRUE='#'
40157   USE_EMBEDDED_ARES_FALSE=
40158 fi
40159
40160
40161 if test "x$curl_cv_native_windows" != "xyes" &&
40162    test "x$enable_shared" = "xyes"; then
40163   build_libhostname=yes
40164 else
40165   build_libhostname=no
40166 fi
40167  if test x$build_libhostname = xyes; then
40168   BUILD_LIBHOSTNAME_TRUE=
40169   BUILD_LIBHOSTNAME_FALSE='#'
40170 else
40171   BUILD_LIBHOSTNAME_TRUE='#'
40172   BUILD_LIBHOSTNAME_FALSE=
40173 fi
40174
40175
40176
40177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
40178 $as_echo_n "checking whether to enable the threaded resolver... " >&6; }
40179   OPT_THRES="default"
40180   # Check whether --enable-threaded_resolver was given.
40181 if test "${enable_threaded_resolver+set}" = set; then :
40182   enableval=$enable_threaded_resolver; OPT_THRES=$enableval
40183 fi
40184
40185   case "$OPT_THRES" in
40186     yes)
40187             want_thres="yes"
40188       ;;
40189     *)
40190             want_thres="no"
40191       ;;
40192   esac
40193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
40194 $as_echo "$want_thres" >&6; }
40195
40196
40197 if test "x$want_thres" = xyes && test "x$want_ares" = xyes; then
40198   as_fn_error $? "Options --enable-threaded-resolver and --enable-ares are mutually exclusive" "$LINENO" 5
40199 fi
40200
40201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
40202 $as_echo_n "checking whether to use POSIX threads for threaded resolver... " >&6; }
40203 # Check whether --enable-pthreads was given.
40204 if test "${enable_pthreads+set}" = set; then :
40205   enableval=$enable_pthreads;  case "$enableval" in
40206   no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40207 $as_echo "no" >&6; }
40208        want_pthreads=no
40209        ;;
40210   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40211 $as_echo "yes" >&6; }
40212        want_pthreads=yes
40213        ;;
40214   esac
40215 else
40216
40217        { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40218 $as_echo "auto" >&6; }
40219        want_pthreads=auto
40220
40221
40222 fi
40223
40224 if test "$want_thres" = "yes" && test "$dontwant_rt" = "no" && \
40225    test "$want_pthreads" != "no"; then
40226   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
40227 if test "x$ac_cv_header_pthread_h" = xyes; then :
40228
40229 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
40230
40231       save_CFLAGS="$CFLAGS"
40232
40233             ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
40234 if test "x$ac_cv_func_pthread_create" = xyes; then :
40235   USE_THREADS_POSIX=1
40236 fi
40237
40238
40239             if test "$USE_THREADS_POSIX" != "1"
40240       then
40241         CFLAGS="$CFLAGS -pthread"
40242         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
40243 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
40244 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
40245   $as_echo_n "(cached) " >&6
40246 else
40247   ac_check_lib_save_LIBS=$LIBS
40248 LIBS="-lpthread  $LIBS"
40249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40250 /* end confdefs.h.  */
40251
40252
40253 #ifdef __cplusplus
40254 extern "C"
40255 #endif
40256 char pthread_create ();
40257 int main (void)
40258 {
40259 return pthread_create ();
40260  ;
40261  return 0;
40262 }
40263 _ACEOF
40264 if ac_fn_c_try_link "$LINENO"; then :
40265   ac_cv_lib_pthread_pthread_create=yes
40266 else
40267   ac_cv_lib_pthread_pthread_create=no
40268 fi
40269 rm -f core conftest.err conftest.$ac_objext \
40270     conftest$ac_exeext conftest.$ac_ext
40271 LIBS=$ac_check_lib_save_LIBS
40272 fi
40273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
40274 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
40275 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
40276   USE_THREADS_POSIX=1
40277 else
40278    CFLAGS="$save_CFLAGS"
40279 fi
40280
40281       fi
40282
40283       if test "x$USE_THREADS_POSIX" = "x1"
40284       then
40285
40286 $as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
40287
40288         curl_res_msg="POSIX threaded"
40289       fi
40290
40291 fi
40292
40293
40294 fi
40295 if test "x$USE_THREADS_POSIX" != "x1"; then
40296   if test "$want_pthreads" = "yes"; then
40297     as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
40298   fi
40299   if test "$want_thres" = "yes"; then
40300         if test "$curl_cv_native_windows" = "yes"; then
40301       USE_THREADS_WIN32=1
40302
40303 $as_echo "#define USE_THREADS_WIN32 1" >>confdefs.h
40304
40305       curl_res_msg="Win32 threaded"
40306     else
40307       as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
40308     fi
40309   fi
40310 fi
40311
40312
40313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
40314 $as_echo_n "checking whether to enable verbose strings... " >&6; }
40315 # Check whether --enable-verbose was given.
40316 if test "${enable_verbose+set}" = set; then :
40317   enableval=$enable_verbose;  case "$enableval" in
40318   no)
40319        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40320 $as_echo "no" >&6; }
40321
40322 $as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
40323
40324        curl_verbose_msg="no"
40325        ;;
40326   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40327 $as_echo "yes" >&6; }
40328        ;;
40329   esac
40330 else
40331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40332 $as_echo "yes" >&6; }
40333
40334 fi
40335
40336
40337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
40338 $as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
40339 # Check whether --enable-sspi was given.
40340 if test "${enable_sspi+set}" = set; then :
40341   enableval=$enable_sspi;  case "$enableval" in
40342   yes)
40343        if test "$curl_cv_native_windows" = "yes"; then
40344          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40345 $as_echo "yes" >&6; }
40346
40347 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
40348
40349          USE_WINDOWS_SSPI=1
40350
40351          curl_sspi_msg="enabled"
40352        else
40353          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40354 $as_echo "no" >&6; }
40355          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
40356 $as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
40357        fi
40358        ;;
40359   *)
40360        if test "x$WINSSL_ENABLED" = "x1"; then
40361          # --with-winssl implies --enable-sspi
40362          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40363 $as_echo "yes" >&6; }
40364        else
40365          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40366 $as_echo "no" >&6; }
40367        fi
40368        ;;
40369   esac
40370 else
40371   if test "x$WINSSL_ENABLED" = "x1"; then
40372          # --with-winssl implies --enable-sspi
40373          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40374 $as_echo "yes" >&6; }
40375        else
40376          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40377 $as_echo "no" >&6; }
40378        fi
40379
40380 fi
40381
40382
40383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
40384 $as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
40385 # Check whether --enable-crypto-auth was given.
40386 if test "${enable_crypto_auth+set}" = set; then :
40387   enableval=$enable_crypto_auth;  case "$enableval" in
40388   no)
40389        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40390 $as_echo "no" >&6; }
40391
40392 $as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
40393
40394        CURL_DISABLE_CRYPTO_AUTH=1
40395        ;;
40396   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40397 $as_echo "yes" >&6; }
40398        ;;
40399   esac
40400 else
40401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40402 $as_echo "yes" >&6; }
40403
40404 fi
40405
40406
40407
40408     OPT_NTLM_WB="default"
40409   # Check whether --enable-ntlm-wb was given.
40410 if test "${enable_ntlm_wb+set}" = set; then :
40411   enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
40412 fi
40413
40414   want_ntlm_wb_file="/usr/bin/ntlm_auth"
40415   case "$OPT_NTLM_WB" in
40416     no)
40417             want_ntlm_wb="no"
40418       ;;
40419     default)
40420             want_ntlm_wb="yes"
40421       ;;
40422     *)
40423             want_ntlm_wb="yes"
40424       if test -n "$enableval" && test "$enableval" != "yes"; then
40425         want_ntlm_wb_file="$enableval"
40426       fi
40427       ;;
40428   esac
40429
40430
40431
40432       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
40433 $as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
40434   if test "$curl_cv_native_windows" = "yes" ||
40435     test "x$SSL_ENABLED" = "x"; then
40436     want_ntlm_wb_file=""
40437     want_ntlm_wb="no"
40438   fi
40439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
40440 $as_echo "$want_ntlm_wb" >&6; }
40441   if test "$want_ntlm_wb" = "yes"; then
40442
40443 $as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
40444
40445
40446 cat >>confdefs.h <<_ACEOF
40447 #define NTLM_WB_FILE "$want_ntlm_wb_file"
40448 _ACEOF
40449
40450     NTLM_WB_ENABLED=1
40451   fi
40452
40453
40454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
40455 $as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
40456 # Check whether --enable-tls-srp was given.
40457 if test "${enable_tls_srp+set}" = set; then :
40458   enableval=$enable_tls_srp;  case "$enableval" in
40459   no)
40460        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40461 $as_echo "no" >&6; }
40462
40463 $as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
40464
40465        want_tls_srp=no
40466        ;;
40467   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40468 $as_echo "yes" >&6; }
40469        want_tls_srp=yes
40470        ;;
40471   esac
40472 else
40473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40474 $as_echo "yes" >&6; }
40475        want_tls_srp=yes
40476
40477 fi
40478
40479
40480 if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
40481
40482 $as_echo "#define USE_TLS_SRP 1" >>confdefs.h
40483
40484    USE_TLS_SRP=1
40485    curl_tls_srp_msg="enabled"
40486 fi
40487
40488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
40489 $as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
40490 # Check whether --enable-unix-sockets was given.
40491 if test "${enable_unix_sockets+set}" = set; then :
40492   enableval=$enable_unix_sockets;  case "$enableval" in
40493   no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40494 $as_echo "no" >&6; }
40495        want_unix_sockets=no
40496        ;;
40497   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40498 $as_echo "yes" >&6; }
40499        want_unix_sockets=yes
40500        ;;
40501   esac
40502 else
40503
40504        { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40505 $as_echo "auto" >&6; }
40506        want_unix_sockets=auto
40507
40508
40509 fi
40510
40511 if test "x$want_unix_sockets" != "xno"; then
40512   ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
40513     #include <sys/un.h>
40514
40515 "
40516 if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
40517
40518
40519 $as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
40520
40521     USE_UNIX_SOCKETS=1
40522
40523     curl_unix_sockets_msg="enabled"
40524
40525 else
40526
40527     if test "x$want_unix_sockets" = "xyes"; then
40528       as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
40529     fi
40530
40531 fi
40532
40533 fi
40534
40535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
40536 $as_echo_n "checking whether to enable support for cookies... " >&6; }
40537 # Check whether --enable-cookies was given.
40538 if test "${enable_cookies+set}" = set; then :
40539   enableval=$enable_cookies;  case "$enableval" in
40540   no)
40541        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40542 $as_echo "no" >&6; }
40543
40544 $as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
40545
40546        ;;
40547   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40548 $as_echo "yes" >&6; }
40549        ;;
40550   esac
40551 else
40552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40553 $as_echo "yes" >&6; }
40554
40555 fi
40556
40557
40558
40559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
40560 $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
40561   CFLAG_CURL_SYMBOL_HIDING=""
40562   doing_symbol_hiding="no"
40563   if test x"$curl_cv_native_windows" != "xyes" &&
40564     test "$want_symbol_hiding" = "yes" &&
40565     test "$supports_symbol_hiding" = "yes"; then
40566     doing_symbol_hiding="yes"
40567     CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
40568
40569 cat >>confdefs.h <<_ACEOF
40570 #define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
40571 _ACEOF
40572
40573     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40574 $as_echo "yes" >&6; }
40575   else
40576     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40577 $as_echo "no" >&6; }
40578   fi
40579    if test x$doing_symbol_hiding = xyes; then
40580   DOING_CURL_SYMBOL_HIDING_TRUE=
40581   DOING_CURL_SYMBOL_HIDING_FALSE='#'
40582 else
40583   DOING_CURL_SYMBOL_HIDING_TRUE='#'
40584   DOING_CURL_SYMBOL_HIDING_FALSE=
40585 fi
40586
40587
40588
40589
40590
40591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enforce SONAME bump" >&5
40592 $as_echo_n "checking whether to enforce SONAME bump... " >&6; }
40593 # Check whether --enable-soname-bump was given.
40594 if test "${enable_soname_bump+set}" = set; then :
40595   enableval=$enable_soname_bump;  case "$enableval" in
40596   yes)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40597 $as_echo "yes" >&6; }
40598          soname_bump=yes
40599          ;;
40600   *)
40601          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40602 $as_echo "no" >&6; }
40603          ;;
40604   esac
40605 else
40606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $soname_bump" >&5
40607 $as_echo "$soname_bump" >&6; }
40608
40609 fi
40610
40611  if test x$soname_bump = xyes; then
40612   SONAME_BUMP_TRUE=
40613   SONAME_BUMP_FALSE='#'
40614 else
40615   SONAME_BUMP_TRUE='#'
40616   SONAME_BUMP_FALSE=
40617 fi
40618
40619
40620 LIBCURL_LIBS=$LIBS
40621
40622
40623
40624
40625
40626 BLANK_AT_MAKETIME=
40627
40628
40629  if test x$cross_compiling = xyes; then
40630   CROSSCOMPILING_TRUE=
40631   CROSSCOMPILING_FALSE='#'
40632 else
40633   CROSSCOMPILING_TRUE='#'
40634   CROSSCOMPILING_FALSE=
40635 fi
40636
40637
40638 ENABLE_SHARED="$enable_shared"
40639
40640
40641 ENABLE_STATIC="$enable_static"
40642
40643
40644
40645
40646 if test "x$OPENSSL_ENABLED" = "x1"; then
40647   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
40648 elif test -n "$SSL_ENABLED"; then
40649   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
40650 fi
40651 if test "x$IPV6_ENABLED" = "x1"; then
40652   SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
40653 fi
40654 if test "x$USE_UNIX_SOCKETS" = "x1"; then
40655   SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
40656 fi
40657 if test "x$HAVE_LIBZ" = "x1"; then
40658   SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
40659 fi
40660 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
40661                             -o "x$USE_THREADS_WIN32" = "x1"; then
40662   SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
40663 fi
40664 if test "x$IDN_ENABLED" = "x1"; then
40665   SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
40666 fi
40667 if test "x$USE_WINDOWS_SSPI" = "x1"; then
40668   SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
40669 fi
40670
40671 if test "x$HAVE_GSSAPI" = "x1"; then
40672   SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
40673 fi
40674
40675 if test "x$curl_psl_msg" = "xyes"; then
40676   SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
40677 fi
40678
40679 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
40680     \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
40681   SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
40682 fi
40683
40684 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
40685     \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
40686   SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
40687 fi
40688
40689 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
40690   if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
40691       -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
40692       -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1"; then
40693     SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
40694
40695     if test "x$CURL_DISABLE_HTTP" != "x1" -a \
40696         "x$NTLM_WB_ENABLED" = "x1"; then
40697       SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
40698     fi
40699   fi
40700 fi
40701
40702 if test "x$USE_TLS_SRP" = "x1"; then
40703   SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
40704 fi
40705
40706 if test "x$USE_NGHTTP2" = "x1"; then
40707   SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
40708 fi
40709
40710 if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
40711     -o "x$NSS_ENABLED" = "x1"; then
40712   SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
40713 fi
40714
40715
40716
40717 if test "x$CURL_DISABLE_HTTP" != "x1"; then
40718   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
40719   if test "x$SSL_ENABLED" = "x1"; then
40720     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
40721   fi
40722 fi
40723 if test "x$CURL_DISABLE_FTP" != "x1"; then
40724   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
40725   if test "x$SSL_ENABLED" = "x1"; then
40726     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
40727   fi
40728 fi
40729 if test "x$CURL_DISABLE_FILE" != "x1"; then
40730   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
40731 fi
40732 if test "x$CURL_DISABLE_TELNET" != "x1"; then
40733   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
40734 fi
40735 if test "x$CURL_DISABLE_LDAP" != "x1"; then
40736   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
40737   if test "x$CURL_DISABLE_LDAPS" != "x1"; then
40738     if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
40739       (test "x$USE_OPENLDAP" != "x1"  && test "x$HAVE_LDAP_SSL" = "x1"); then
40740       SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
40741     fi
40742   fi
40743 fi
40744 if test "x$CURL_DISABLE_DICT" != "x1"; then
40745   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
40746 fi
40747 if test "x$CURL_DISABLE_TFTP" != "x1"; then
40748   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
40749 fi
40750 if test "x$CURL_DISABLE_GOPHER" != "x1"; then
40751   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
40752 fi
40753 if test "x$CURL_DISABLE_POP3" != "x1"; then
40754   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
40755   if test "x$SSL_ENABLED" = "x1"; then
40756     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
40757   fi
40758 fi
40759 if test "x$CURL_DISABLE_IMAP" != "x1"; then
40760   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
40761   if test "x$SSL_ENABLED" = "x1"; then
40762     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
40763   fi
40764 fi
40765 if test "x$CURL_DISABLE_SMB" != "x1" \
40766     -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
40767     -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
40768       -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
40769       -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1" \); then
40770   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
40771   if test "x$SSL_ENABLED" = "x1"; then
40772     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
40773   fi
40774 fi
40775 if test "x$CURL_DISABLE_SMTP" != "x1"; then
40776   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
40777   if test "x$SSL_ENABLED" = "x1"; then
40778     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
40779   fi
40780 fi
40781 if test "x$USE_LIBSSH2" = "x1"; then
40782   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
40783   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
40784 fi
40785 if test "x$CURL_DISABLE_RTSP" != "x1"; then
40786   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
40787 fi
40788 if test "x$USE_LIBRTMP" = "x1"; then
40789   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
40790 fi
40791
40792 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
40793
40794
40795
40796
40797 squeeze CFLAGS
40798 squeeze CPPFLAGS
40799 squeeze DEFS
40800 squeeze LDFLAGS
40801 squeeze LIBS
40802
40803 squeeze LIBCURL_LIBS
40804 squeeze CURL_NETWORK_LIBS
40805 squeeze CURL_NETWORK_AND_TIME_LIBS
40806
40807 squeeze SUPPORT_FEATURES
40808 squeeze SUPPORT_PROTOCOLS
40809
40810
40811
40812   xc_bad_var_libs=no
40813   for xc_word in $LIBS; do
40814     case "$xc_word" in
40815       -l* | --library=*)
40816         :
40817         ;;
40818       *)
40819         xc_bad_var_libs=yes
40820         ;;
40821     esac
40822   done
40823   if test $xc_bad_var_libs = yes; then
40824     { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
40825 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
40826     { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
40827 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
40828   fi
40829
40830
40831   xc_bad_var_ldflags=no
40832   for xc_word in $LDFLAGS; do
40833     case "$xc_word" in
40834       -D*)
40835         xc_bad_var_ldflags=yes
40836         ;;
40837       -U*)
40838         xc_bad_var_ldflags=yes
40839         ;;
40840       -I*)
40841         xc_bad_var_ldflags=yes
40842         ;;
40843       -l* | --library=*)
40844         xc_bad_var_ldflags=yes
40845         ;;
40846     esac
40847   done
40848   if test $xc_bad_var_ldflags = yes; then
40849     { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
40850 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
40851     xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
40852     for xc_word in $LDFLAGS; do
40853       case "$xc_word" in
40854         -D*)
40855           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
40856 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
40857           ;;
40858         -U*)
40859           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
40860 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
40861           ;;
40862         -I*)
40863           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
40864 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
40865           ;;
40866         -l* | --library=*)
40867           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
40868 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
40869           ;;
40870       esac
40871     done
40872   fi
40873
40874
40875   xc_bad_var_cppflags=no
40876   for xc_word in $CPPFLAGS; do
40877     case "$xc_word" in
40878       -rpath*)
40879         xc_bad_var_cppflags=yes
40880         ;;
40881       -L* | --library-path=*)
40882         xc_bad_var_cppflags=yes
40883         ;;
40884       -l* | --library=*)
40885         xc_bad_var_cppflags=yes
40886         ;;
40887     esac
40888   done
40889   if test $xc_bad_var_cppflags = yes; then
40890     { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
40891 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
40892     xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
40893     for xc_word in $CPPFLAGS; do
40894       case "$xc_word" in
40895         -rpath*)
40896           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
40897 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
40898           ;;
40899         -L* | --library-path=*)
40900           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
40901 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
40902           ;;
40903         -l* | --library=*)
40904           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
40905 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
40906           ;;
40907       esac
40908     done
40909   fi
40910
40911
40912   xc_bad_var_cflags=no
40913   for xc_word in $CFLAGS; do
40914     case "$xc_word" in
40915       -D*)
40916         xc_bad_var_cflags=yes
40917         ;;
40918       -U*)
40919         xc_bad_var_cflags=yes
40920         ;;
40921       -I*)
40922         xc_bad_var_cflags=yes
40923         ;;
40924       -rpath*)
40925         xc_bad_var_cflags=yes
40926         ;;
40927       -L* | --library-path=*)
40928         xc_bad_var_cflags=yes
40929         ;;
40930       -l* | --library=*)
40931         xc_bad_var_cflags=yes
40932         ;;
40933     esac
40934   done
40935   if test $xc_bad_var_cflags = yes; then
40936     { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
40937 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
40938     xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
40939     for xc_word in $CFLAGS; do
40940       case "$xc_word" in
40941         -D*)
40942           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
40943 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
40944           ;;
40945         -U*)
40946           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
40947 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
40948           ;;
40949         -I*)
40950           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
40951 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
40952           ;;
40953         -rpath*)
40954           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
40955 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
40956           ;;
40957         -L* | --library-path=*)
40958           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
40959 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
40960           ;;
40961         -l* | --library=*)
40962           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
40963 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
40964           ;;
40965       esac
40966     done
40967   fi
40968
40969   if test $xc_bad_var_libs = yes ||
40970      test $xc_bad_var_cflags = yes ||
40971      test $xc_bad_var_ldflags = yes ||
40972      test $xc_bad_var_cppflags = yes; then
40973      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
40974 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
40975   fi
40976
40977
40978 if test "x$want_curldebug_assumed" = "xyes" &&
40979   test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
40980   ac_configure_args="$ac_configure_args --enable-curldebug"
40981 fi
40982
40983 ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile docs/libcurl/opts/Makefile docs/cmdline-opts/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile scripts/Makefile lib/libcurl.vers tests/Makefile tests/certs/Makefile tests/certs/scripts/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile packages/Makefile packages/Win32/Makefile packages/Win32/cygwin/Makefile packages/Linux/Makefile packages/Linux/RPM/Makefile packages/Linux/RPM/curl.spec packages/Linux/RPM/curl-ssl.spec packages/Solaris/Makefile packages/EPM/curl.list packages/EPM/Makefile packages/vms/Makefile packages/AIX/Makefile packages/AIX/RPM/Makefile packages/AIX/RPM/curl.spec curl-config libcurl.pc"
40984
40985 cat >confcache <<\_ACEOF
40986 # This file is a shell script that caches the results of configure
40987 # tests run on this system so they can be shared between configure
40988 # scripts and configure runs, see configure's option --config-cache.
40989 # It is not useful on other systems.  If it contains results you don't
40990 # want to keep, you may remove or edit it.
40991 #
40992 # config.status only pays attention to the cache file if you give it
40993 # the --recheck option to rerun configure.
40994 #
40995 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40996 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40997 # following values.
40998
40999 _ACEOF
41000
41001 # The following way of writing the cache mishandles newlines in values,
41002 # but we know of no workaround that is simple, portable, and efficient.
41003 # So, we kill variables containing newlines.
41004 # Ultrix sh set writes to stderr and can't be redirected directly,
41005 # and sets the high bit in the cache file unless we assign to the vars.
41006 (
41007   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41008     eval ac_val=\$$ac_var
41009     case $ac_val in #(
41010     *${as_nl}*)
41011       case $ac_var in #(
41012       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
41013 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
41014       esac
41015       case $ac_var in #(
41016       _ | IFS | as_nl) ;; #(
41017       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
41018       *) { eval $ac_var=; unset $ac_var;} ;;
41019       esac ;;
41020     esac
41021   done
41022
41023   (set) 2>&1 |
41024     case $as_nl`(ac_space=' '; set) 2>&1` in #(
41025     *${as_nl}ac_space=\ *)
41026       # `set' does not quote correctly, so add quotes: double-quote
41027       # substitution turns \\\\ into \\, and sed turns \\ into \.
41028       sed -n \
41029         "s/'/'\\\\''/g;
41030           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41031       ;; #(
41032     *)
41033       # `set' quotes correctly as required by POSIX, so do not add quotes.
41034       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41035       ;;
41036     esac |
41037     sort
41038 ) |
41039   sed '
41040      /^ac_cv_env_/b end
41041      t clear
41042      :clear
41043      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41044      t end
41045      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41046      :end' >>confcache
41047 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41048   if test -w "$cache_file"; then
41049     if test "x$cache_file" != "x/dev/null"; then
41050       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
41051 $as_echo "$as_me: updating cache $cache_file" >&6;}
41052       if test ! -f "$cache_file" || test -h "$cache_file"; then
41053         cat confcache >"$cache_file"
41054       else
41055         case $cache_file in #(
41056         */* | ?:*)
41057           mv -f confcache "$cache_file"$$ &&
41058           mv -f "$cache_file"$$ "$cache_file" ;; #(
41059         *)
41060           mv -f confcache "$cache_file" ;;
41061         esac
41062       fi
41063     fi
41064   else
41065     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
41066 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41067   fi
41068 fi
41069 rm -f confcache
41070
41071 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41072 # Let make expand exec_prefix.
41073 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41074
41075 DEFS=-DHAVE_CONFIG_H
41076
41077 ac_libobjs=
41078 ac_ltlibobjs=
41079 U=
41080 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41081   # 1. Remove the extension, and $U if already installed.
41082   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41083   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
41084   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
41085   #    will be set to the directory where LIBOBJS objects are built.
41086   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41087   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
41088 done
41089 LIBOBJS=$ac_libobjs
41090
41091 LTLIBOBJS=$ac_ltlibobjs
41092
41093
41094 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41095   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
41096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41097 fi
41098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41099 $as_echo_n "checking that generated files are newer than configure... " >&6; }
41100    if test -n "$am_sleep_pid"; then
41101      # Hide warnings about reused PIDs.
41102      wait $am_sleep_pid 2>/dev/null
41103    fi
41104    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
41105 $as_echo "done" >&6; }
41106 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41107   as_fn_error $? "conditional \"AMDEP\" was never defined.
41108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41109 fi
41110 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41111   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41113 fi
41114  if test -n "$EXEEXT"; then
41115   am__EXEEXT_TRUE=
41116   am__EXEEXT_FALSE='#'
41117 else
41118   am__EXEEXT_TRUE='#'
41119   am__EXEEXT_FALSE=
41120 fi
41121
41122 if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
41123   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
41124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41125 fi
41126 if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
41127   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
41128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41129 fi
41130 if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
41131   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
41132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41133 fi
41134 if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
41135   as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
41136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41137 fi
41138 if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
41139   as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
41140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41141 fi
41142 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
41143   as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
41144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41145 fi
41146 if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
41147   as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
41148 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41149 fi
41150 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
41151   as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
41152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41153 fi
41154 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
41155   as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
41156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41157 fi
41158 if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
41159   as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
41160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41161 fi
41162 if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
41163   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
41164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41165 fi
41166 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
41167   as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
41168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41169 fi
41170 if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
41171   as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
41172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41173 fi
41174 if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
41175   as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
41176 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41177 fi
41178 if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
41179   as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
41180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41181 fi
41182 if test -z "${SONAME_BUMP_TRUE}" && test -z "${SONAME_BUMP_FALSE}"; then
41183   as_fn_error $? "conditional \"SONAME_BUMP\" was never defined.
41184 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41185 fi
41186 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
41187   as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
41188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41189 fi
41190
41191 : "${CONFIG_STATUS=./config.status}"
41192 ac_write_fail=0
41193 ac_clean_files_save=$ac_clean_files
41194 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41195 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
41196 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
41197 as_write_fail=0
41198 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
41199 #! $SHELL
41200 # Generated by $as_me.
41201 # Run this file to recreate the current configuration.
41202 # Compiler output produced by configure, useful for debugging
41203 # configure, is in config.log if it exists.
41204
41205 debug=false
41206 ac_cs_recheck=false
41207 ac_cs_silent=false
41208
41209 SHELL=\${CONFIG_SHELL-$SHELL}
41210 export SHELL
41211 _ASEOF
41212 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
41213 ## -------------------- ##
41214 ## M4sh Initialization. ##
41215 ## -------------------- ##
41216
41217 # Be more Bourne compatible
41218 DUALCASE=1; export DUALCASE # for MKS sh
41219 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
41220   emulate sh
41221   NULLCMD=:
41222   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41223   # is contrary to our usage.  Disable this feature.
41224   alias -g '${1+"$@"}'='"$@"'
41225   setopt NO_GLOB_SUBST
41226 else
41227   case `(set -o) 2>/dev/null` in #(
41228   *posix*) :
41229     set -o posix ;; #(
41230   *) :
41231      ;;
41232 esac
41233 fi
41234
41235
41236 as_nl='
41237 '
41238 export as_nl
41239 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41240 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41241 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41242 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41243 # Prefer a ksh shell builtin over an external printf program on Solaris,
41244 # but without wasting forks for bash or zsh.
41245 if test -z "$BASH_VERSION$ZSH_VERSION" \
41246     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
41247   as_echo='print -r --'
41248   as_echo_n='print -rn --'
41249 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
41250   as_echo='printf %s\n'
41251   as_echo_n='printf %s'
41252 else
41253   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
41254     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
41255     as_echo_n='/usr/ucb/echo -n'
41256   else
41257     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
41258     as_echo_n_body='eval
41259       arg=$1;
41260       case $arg in #(
41261       *"$as_nl"*)
41262         expr "X$arg" : "X\\(.*\\)$as_nl";
41263         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
41264       esac;
41265       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
41266     '
41267     export as_echo_n_body
41268     as_echo_n='sh -c $as_echo_n_body as_echo'
41269   fi
41270   export as_echo_body
41271   as_echo='sh -c $as_echo_body as_echo'
41272 fi
41273
41274
41275
41276 # IFS
41277 # We need space, tab and new line, in precisely that order.  Quoting is
41278 # there to prevent editors from complaining about space-tab.
41279 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41280 # splitting by setting IFS to empty value.)
41281 IFS=" ""        $as_nl"
41282
41283 # Find who we are.  Look in the path if we contain no directory separator.
41284 as_myself=
41285 case $0 in #((
41286   *[\\/]* ) as_myself=$0 ;;
41287   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41288 for as_dir in $PATH
41289 do
41290   IFS=$as_save_IFS
41291   test -z "$as_dir" && as_dir=.
41292     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41293   done
41294 IFS=$as_save_IFS
41295
41296      ;;
41297 esac
41298 # We did not find ourselves, most probably we were run as `sh COMMAND'
41299 # in which case we are not to be found in the path.
41300 if test "x$as_myself" = x; then
41301   as_myself=$0
41302 fi
41303 if test ! -f "$as_myself"; then
41304   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41305   exit 1
41306 fi
41307
41308 # Unset variables that we do not need and which cause bugs (e.g. in
41309 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
41310 # suppresses any "Segmentation fault" message there.  '((' could
41311 # trigger a bug in pdksh 5.2.14.
41312 for as_var in BASH_ENV ENV MAIL MAILPATH
41313 do eval test x\${$as_var+set} = xset \
41314   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
41315 done
41316 PS1='$ '
41317 PS2='> '
41318 PS4='+ '
41319
41320 # NLS nuisances.
41321 LC_ALL=C
41322 export LC_ALL
41323 LANGUAGE=C
41324 export LANGUAGE
41325
41326 # CDPATH.
41327 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41328
41329
41330 # as_fn_error STATUS ERROR [LINENO LOG_FD]
41331 # ----------------------------------------
41332 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
41333 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
41334 # script with STATUS, using 1 if that was 0.
41335 as_fn_error ()
41336 {
41337   as_status=$1; test $as_status -eq 0 && as_status=1
41338   if test "$4"; then
41339     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
41340     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
41341   fi
41342   $as_echo "$as_me: error: $2" >&2
41343   as_fn_exit $as_status
41344 } # as_fn_error
41345
41346
41347 # as_fn_set_status STATUS
41348 # -----------------------
41349 # Set $? to STATUS, without forking.
41350 as_fn_set_status ()
41351 {
41352   return $1
41353 } # as_fn_set_status
41354
41355 # as_fn_exit STATUS
41356 # -----------------
41357 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
41358 as_fn_exit ()
41359 {
41360   set +e
41361   as_fn_set_status $1
41362   exit $1
41363 } # as_fn_exit
41364
41365 # as_fn_unset VAR
41366 # ---------------
41367 # Portably unset VAR.
41368 as_fn_unset ()
41369 {
41370   { eval $1=; unset $1;}
41371 }
41372 as_unset=as_fn_unset
41373 # as_fn_append VAR VALUE
41374 # ----------------------
41375 # Append the text in VALUE to the end of the definition contained in VAR. Take
41376 # advantage of any shell optimizations that allow amortized linear growth over
41377 # repeated appends, instead of the typical quadratic growth present in naive
41378 # implementations.
41379 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
41380   eval 'as_fn_append ()
41381   {
41382     eval $1+=\$2
41383   }'
41384 else
41385   as_fn_append ()
41386   {
41387     eval $1=\$$1\$2
41388   }
41389 fi # as_fn_append
41390
41391 # as_fn_arith ARG...
41392 # ------------------
41393 # Perform arithmetic evaluation on the ARGs, and store the result in the
41394 # global $as_val. Take advantage of shells that can avoid forks. The arguments
41395 # must be portable across $(()) and expr.
41396 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
41397   eval 'as_fn_arith ()
41398   {
41399     as_val=$(( $* ))
41400   }'
41401 else
41402   as_fn_arith ()
41403   {
41404     as_val=`expr "$@" || test $? -eq 1`
41405   }
41406 fi # as_fn_arith
41407
41408
41409 if expr a : '\(a\)' >/dev/null 2>&1 &&
41410    test "X`expr 00001 : '.*\(...\)'`" = X001; then
41411   as_expr=expr
41412 else
41413   as_expr=false
41414 fi
41415
41416 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41417   as_basename=basename
41418 else
41419   as_basename=false
41420 fi
41421
41422 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41423   as_dirname=dirname
41424 else
41425   as_dirname=false
41426 fi
41427
41428 as_me=`$as_basename -- "$0" ||
41429 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41430          X"$0" : 'X\(//\)$' \| \
41431          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41432 $as_echo X/"$0" |
41433     sed '/^.*\/\([^/][^/]*\)\/*$/{
41434             s//\1/
41435             q
41436           }
41437           /^X\/\(\/\/\)$/{
41438             s//\1/
41439             q
41440           }
41441           /^X\/\(\/\).*/{
41442             s//\1/
41443             q
41444           }
41445           s/.*/./; q'`
41446
41447 # Avoid depending upon Character Ranges.
41448 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41449 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41450 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41451 as_cr_digits='0123456789'
41452 as_cr_alnum=$as_cr_Letters$as_cr_digits
41453
41454 ECHO_C= ECHO_N= ECHO_T=
41455 case `echo -n x` in #(((((
41456 -n*)
41457   case `echo 'xy\c'` in
41458   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
41459   xy)  ECHO_C='\c';;
41460   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
41461        ECHO_T=' ';;
41462   esac;;
41463 *)
41464   ECHO_N='-n';;
41465 esac
41466
41467 rm -f conf$$ conf$$.exe conf$$.file
41468 if test -d conf$$.dir; then
41469   rm -f conf$$.dir/conf$$.file
41470 else
41471   rm -f conf$$.dir
41472   mkdir conf$$.dir 2>/dev/null
41473 fi
41474 if (echo >conf$$.file) 2>/dev/null; then
41475   if ln -s conf$$.file conf$$ 2>/dev/null; then
41476     as_ln_s='ln -s'
41477     # ... but there are two gotchas:
41478     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41479     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41480     # In both cases, we have to default to `cp -pR'.
41481     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41482       as_ln_s='cp -pR'
41483   elif ln conf$$.file conf$$ 2>/dev/null; then
41484     as_ln_s=ln
41485   else
41486     as_ln_s='cp -pR'
41487   fi
41488 else
41489   as_ln_s='cp -pR'
41490 fi
41491 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41492 rmdir conf$$.dir 2>/dev/null
41493
41494
41495 # as_fn_mkdir_p
41496 # -------------
41497 # Create "$as_dir" as a directory, including parents if necessary.
41498 as_fn_mkdir_p ()
41499 {
41500
41501   case $as_dir in #(
41502   -*) as_dir=./$as_dir;;
41503   esac
41504   test -d "$as_dir" || eval $as_mkdir_p || {
41505     as_dirs=
41506     while :; do
41507       case $as_dir in #(
41508       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
41509       *) as_qdir=$as_dir;;
41510       esac
41511       as_dirs="'$as_qdir' $as_dirs"
41512       as_dir=`$as_dirname -- "$as_dir" ||
41513 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41514          X"$as_dir" : 'X\(//\)[^/]' \| \
41515          X"$as_dir" : 'X\(//\)$' \| \
41516          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
41517 $as_echo X"$as_dir" |
41518     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41519             s//\1/
41520             q
41521           }
41522           /^X\(\/\/\)[^/].*/{
41523             s//\1/
41524             q
41525           }
41526           /^X\(\/\/\)$/{
41527             s//\1/
41528             q
41529           }
41530           /^X\(\/\).*/{
41531             s//\1/
41532             q
41533           }
41534           s/.*/./; q'`
41535       test -d "$as_dir" && break
41536     done
41537     test -z "$as_dirs" || eval "mkdir $as_dirs"
41538   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
41539
41540
41541 } # as_fn_mkdir_p
41542 if mkdir -p . 2>/dev/null; then
41543   as_mkdir_p='mkdir -p "$as_dir"'
41544 else
41545   test -d ./-p && rmdir ./-p
41546   as_mkdir_p=false
41547 fi
41548
41549
41550 # as_fn_executable_p FILE
41551 # -----------------------
41552 # Test if FILE is an executable regular file.
41553 as_fn_executable_p ()
41554 {
41555   test -f "$1" && test -x "$1"
41556 } # as_fn_executable_p
41557 as_test_x='test -x'
41558 as_executable_p=as_fn_executable_p
41559
41560 # Sed expression to map a string onto a valid CPP name.
41561 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41562
41563 # Sed expression to map a string onto a valid variable name.
41564 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41565
41566
41567 exec 6>&1
41568 ## ----------------------------------- ##
41569 ## Main body of $CONFIG_STATUS script. ##
41570 ## ----------------------------------- ##
41571 _ASEOF
41572 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
41573
41574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41575 # Save the log message, to keep $0 and so on meaningful, and to
41576 # report actual input values of CONFIG_FILES etc. instead of their
41577 # values after options handling.
41578 ac_log="
41579 This file was extended by curl $as_me -, which was
41580 generated by GNU Autoconf 2.69.  Invocation command line was
41581
41582   CONFIG_FILES    = $CONFIG_FILES
41583   CONFIG_HEADERS  = $CONFIG_HEADERS
41584   CONFIG_LINKS    = $CONFIG_LINKS
41585   CONFIG_COMMANDS = $CONFIG_COMMANDS
41586   $ $0 $@
41587
41588 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41589 "
41590
41591 _ACEOF
41592
41593 case $ac_config_files in *"
41594 "*) set x $ac_config_files; shift; ac_config_files=$*;;
41595 esac
41596
41597 case $ac_config_headers in *"
41598 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
41599 esac
41600
41601
41602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41603 # Files that config.status was made for.
41604 config_files="$ac_config_files"
41605 config_headers="$ac_config_headers"
41606 config_commands="$ac_config_commands"
41607
41608 _ACEOF
41609
41610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41611 ac_cs_usage="\
41612 \`$as_me' instantiates files and other configuration actions
41613 from templates according to the current configuration.  Unless the files
41614 and actions are specified as TAGs, all are instantiated by default.
41615
41616 Usage: $0 [OPTION]... [TAG]...
41617
41618   -h, --help       print this help, then exit
41619   -V, --version    print version number and configuration settings, then exit
41620       --config     print configuration, then exit
41621   -q, --quiet, --silent
41622                    do not print progress messages
41623   -d, --debug      don't remove temporary files
41624       --recheck    update $as_me by reconfiguring in the same conditions
41625       --file=FILE[:TEMPLATE]
41626                    instantiate the configuration file FILE
41627       --header=FILE[:TEMPLATE]
41628                    instantiate the configuration header FILE
41629
41630 Configuration files:
41631 $config_files
41632
41633 Configuration headers:
41634 $config_headers
41635
41636 Configuration commands:
41637 $config_commands
41638
41639 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>."
41640
41641 _ACEOF
41642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41643 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
41644 ac_cs_version="\\
41645 curl config.status -
41646 configured by $0, generated by GNU Autoconf 2.69,
41647   with options \\"\$ac_cs_config\\"
41648
41649 Copyright (C) 2012 Free Software Foundation, Inc.
41650 This config.status script is free software; the Free Software Foundation
41651 gives unlimited permission to copy, distribute and modify it."
41652
41653 ac_pwd='$ac_pwd'
41654 srcdir='$srcdir'
41655 INSTALL='$INSTALL'
41656 MKDIR_P='$MKDIR_P'
41657 AWK='$AWK'
41658 test -n "\$AWK" || AWK=awk
41659 _ACEOF
41660
41661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41662 # The default lists apply if the user does not specify any file.
41663 ac_need_defaults=:
41664 while test $# != 0
41665 do
41666   case $1 in
41667   --*=?*)
41668     ac_option=`expr "X$1" : 'X\([^=]*\)='`
41669     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
41670     ac_shift=:
41671     ;;
41672   --*=)
41673     ac_option=`expr "X$1" : 'X\([^=]*\)='`
41674     ac_optarg=
41675     ac_shift=:
41676     ;;
41677   *)
41678     ac_option=$1
41679     ac_optarg=$2
41680     ac_shift=shift
41681     ;;
41682   esac
41683
41684   case $ac_option in
41685   # Handling of the options.
41686   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41687     ac_cs_recheck=: ;;
41688   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41689     $as_echo "$ac_cs_version"; exit ;;
41690   --config | --confi | --conf | --con | --co | --c )
41691     $as_echo "$ac_cs_config"; exit ;;
41692   --debug | --debu | --deb | --de | --d | -d )
41693     debug=: ;;
41694   --file | --fil | --fi | --f )
41695     $ac_shift
41696     case $ac_optarg in
41697     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41698     '') as_fn_error $? "missing file argument" ;;
41699     esac
41700     as_fn_append CONFIG_FILES " '$ac_optarg'"
41701     ac_need_defaults=false;;
41702   --header | --heade | --head | --hea )
41703     $ac_shift
41704     case $ac_optarg in
41705     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41706     esac
41707     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
41708     ac_need_defaults=false;;
41709   --he | --h)
41710     # Conflict between --help and --header
41711     as_fn_error $? "ambiguous option: \`$1'
41712 Try \`$0 --help' for more information.";;
41713   --help | --hel | -h )
41714     $as_echo "$ac_cs_usage"; exit ;;
41715   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41716   | -silent | --silent | --silen | --sile | --sil | --si | --s)
41717     ac_cs_silent=: ;;
41718
41719   # This is an error.
41720   -*) as_fn_error $? "unrecognized option: \`$1'
41721 Try \`$0 --help' for more information." ;;
41722
41723   *) as_fn_append ac_config_targets " $1"
41724      ac_need_defaults=false ;;
41725
41726   esac
41727   shift
41728 done
41729
41730 ac_configure_extra_args=
41731
41732 if $ac_cs_silent; then
41733   exec 6>/dev/null
41734   ac_configure_extra_args="$ac_configure_extra_args --silent"
41735 fi
41736
41737 _ACEOF
41738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41739 if \$ac_cs_recheck; then
41740   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41741   shift
41742   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
41743   CONFIG_SHELL='$SHELL'
41744   export CONFIG_SHELL
41745   exec "\$@"
41746 fi
41747
41748 _ACEOF
41749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41750 exec 5>>config.log
41751 {
41752   echo
41753   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41754 ## Running $as_me. ##
41755 _ASBOX
41756   $as_echo "$ac_log"
41757 } >&5
41758
41759 _ACEOF
41760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41761 #
41762 # INIT-COMMANDS
41763 #
41764 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41765
41766
41767 # The HP-UX ksh and POSIX shell print the target directory to stdout
41768 # if CDPATH is set.
41769 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41770
41771 sed_quote_subst='$sed_quote_subst'
41772 double_quote_subst='$double_quote_subst'
41773 delay_variable_subst='$delay_variable_subst'
41774 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
41775 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
41776 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
41777 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
41778 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
41779 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
41780 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
41781 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
41782 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
41783 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
41784 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
41785 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
41786 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
41787 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
41788 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
41789 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
41790 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
41791 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
41792 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
41793 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
41794 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
41795 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
41796 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
41797 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
41798 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
41799 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
41800 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
41801 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
41802 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
41803 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
41804 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
41805 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
41806 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
41807 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
41808 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
41809 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
41810 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
41811 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
41812 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
41813 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
41814 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
41815 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
41816 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
41817 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
41818 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
41819 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
41820 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
41821 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41822 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41823 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
41824 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
41825 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
41826 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
41827 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
41828 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
41829 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
41830 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
41831 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
41832 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
41833 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"`'
41834 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
41835 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
41836 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
41837 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
41838 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
41839 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
41840 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
41841 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
41842 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
41843 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
41844 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
41845 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
41846 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
41847 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
41848 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
41849 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
41850 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
41851 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
41852 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
41853 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
41854 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41855 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
41856 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
41857 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
41858 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
41859 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
41860 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
41861 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41862 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
41863 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41864 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
41865 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41866 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
41867 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
41868 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
41869 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
41870 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
41871 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
41872 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
41873 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
41874 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
41875 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
41876 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
41877 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
41878 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
41879 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
41880 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
41881 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
41882 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
41883 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
41884 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
41885 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
41886 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
41887 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
41888 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
41889 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
41890 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
41891 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
41892 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
41893 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
41894 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
41895 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
41896 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41897 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41898 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
41899 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
41900 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
41901 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
41902 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
41903 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
41904 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
41905 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
41906 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
41907 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
41908 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
41909 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
41910
41911 LTCC='$LTCC'
41912 LTCFLAGS='$LTCFLAGS'
41913 compiler='$compiler_DEFAULT'
41914
41915 # A function that is used when there is no print builtin or printf.
41916 func_fallback_echo ()
41917 {
41918   eval 'cat <<_LTECHO_EOF
41919 \$1
41920 _LTECHO_EOF'
41921 }
41922
41923 # Quote evaled strings.
41924 for var in AS \
41925 DLLTOOL \
41926 OBJDUMP \
41927 SHELL \
41928 ECHO \
41929 PATH_SEPARATOR \
41930 SED \
41931 GREP \
41932 EGREP \
41933 FGREP \
41934 LD \
41935 NM \
41936 LN_S \
41937 lt_SP2NL \
41938 lt_NL2SP \
41939 reload_flag \
41940 deplibs_check_method \
41941 file_magic_cmd \
41942 file_magic_glob \
41943 want_nocaseglob \
41944 sharedlib_from_linklib_cmd \
41945 AR \
41946 AR_FLAGS \
41947 archiver_list_spec \
41948 STRIP \
41949 RANLIB \
41950 CC \
41951 CFLAGS \
41952 compiler \
41953 lt_cv_sys_global_symbol_pipe \
41954 lt_cv_sys_global_symbol_to_cdecl \
41955 lt_cv_sys_global_symbol_to_import \
41956 lt_cv_sys_global_symbol_to_c_name_address \
41957 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
41958 lt_cv_nm_interface \
41959 nm_file_list_spec \
41960 lt_cv_truncate_bin \
41961 lt_prog_compiler_no_builtin_flag \
41962 lt_prog_compiler_pic \
41963 lt_prog_compiler_wl \
41964 lt_prog_compiler_static \
41965 lt_cv_prog_compiler_c_o \
41966 need_locks \
41967 MANIFEST_TOOL \
41968 DSYMUTIL \
41969 NMEDIT \
41970 LIPO \
41971 OTOOL \
41972 OTOOL64 \
41973 shrext_cmds \
41974 export_dynamic_flag_spec \
41975 whole_archive_flag_spec \
41976 compiler_needs_object \
41977 with_gnu_ld \
41978 allow_undefined_flag \
41979 no_undefined_flag \
41980 hardcode_libdir_flag_spec \
41981 hardcode_libdir_separator \
41982 exclude_expsyms \
41983 include_expsyms \
41984 file_list_spec \
41985 variables_saved_for_relink \
41986 libname_spec \
41987 library_names_spec \
41988 soname_spec \
41989 install_override_mode \
41990 finish_eval \
41991 old_striplib \
41992 striplib; do
41993     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
41994     *[\\\\\\\`\\"\\\$]*)
41995       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
41996       ;;
41997     *)
41998       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
41999       ;;
42000     esac
42001 done
42002
42003 # Double-quote double-evaled strings.
42004 for var in reload_cmds \
42005 old_postinstall_cmds \
42006 old_postuninstall_cmds \
42007 old_archive_cmds \
42008 extract_expsyms_cmds \
42009 old_archive_from_new_cmds \
42010 old_archive_from_expsyms_cmds \
42011 archive_cmds \
42012 archive_expsym_cmds \
42013 module_cmds \
42014 module_expsym_cmds \
42015 export_symbols_cmds \
42016 prelink_cmds \
42017 postlink_cmds \
42018 postinstall_cmds \
42019 postuninstall_cmds \
42020 finish_cmds \
42021 sys_lib_search_path_spec \
42022 configure_time_dlsearch_path \
42023 configure_time_lt_sys_library_path; do
42024     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42025     *[\\\\\\\`\\"\\\$]*)
42026       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42027       ;;
42028     *)
42029       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42030       ;;
42031     esac
42032 done
42033
42034 ac_aux_dir='$ac_aux_dir'
42035
42036 # See if we are running on zsh, and set the options that allow our
42037 # commands through without removal of \ escapes INIT.
42038 if test -n "\${ZSH_VERSION+set}"; then
42039    setopt NO_GLOB_SUBST
42040 fi
42041
42042
42043     PACKAGE='$PACKAGE'
42044     VERSION='$VERSION'
42045     RM='$RM'
42046     ofile='$ofile'
42047
42048
42049
42050
42051 _ACEOF
42052
42053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42054
42055 # Handling of arguments.
42056 for ac_config_target in $ac_config_targets
42057 do
42058   case $ac_config_target in
42059     "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
42060     "include/curl/curlbuild.h") CONFIG_HEADERS="$CONFIG_HEADERS include/curl/curlbuild.h" ;;
42061     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
42062     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42063     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42064     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
42065     "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
42066     "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
42067     "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
42068     "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
42069     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
42070     "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
42071     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42072     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
42073     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42074     "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
42075     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
42076     "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
42077     "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
42078     "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
42079     "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
42080     "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
42081     "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
42082     "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
42083     "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
42084     "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
42085     "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
42086     "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
42087     "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
42088     "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
42089     "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
42090     "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
42091     "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
42092     "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
42093     "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
42094     "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
42095     "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
42096     "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
42097     "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
42098
42099   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
42100   esac
42101 done
42102
42103
42104 # If the user did not use the arguments to specify the items to instantiate,
42105 # then the envvar interface is used.  Set only those that are not.
42106 # We use the long form for the default assignment because of an extremely
42107 # bizarre bug on SunOS 4.1.3.
42108 if $ac_need_defaults; then
42109   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42110   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42111   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42112 fi
42113
42114 # Have a temporary directory for convenience.  Make it in the build tree
42115 # simply because there is no reason against having it here, and in addition,
42116 # creating and moving files from /tmp can sometimes cause problems.
42117 # Hook for its removal unless debugging.
42118 # Note that there is a small window in which the directory will not be cleaned:
42119 # after its creation but before its name has been assigned to `$tmp'.
42120 $debug ||
42121 {
42122   tmp= ac_tmp=
42123   trap 'exit_status=$?
42124   : "${ac_tmp:=$tmp}"
42125   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42126 ' 0
42127   trap 'as_fn_exit 1' 1 2 13 15
42128 }
42129 # Create a (secure) tmp directory for tmp files.
42130
42131 {
42132   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42133   test -d "$tmp"
42134 }  ||
42135 {
42136   tmp=./conf$$-$RANDOM
42137   (umask 077 && mkdir "$tmp")
42138 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
42139 ac_tmp=$tmp
42140
42141 # Set up the scripts for CONFIG_FILES section.
42142 # No need to generate them if there are no CONFIG_FILES.
42143 # This happens for instance with `./config.status config.h'.
42144 if test -n "$CONFIG_FILES"; then
42145
42146
42147 ac_cr=`echo X | tr X '\015'`
42148 # On cygwin, bash can eat \r inside `` if the user requested igncr.
42149 # But we know of no other shell where ac_cr would be empty at this
42150 # point, so we can use a bashism as a fallback.
42151 if test "x$ac_cr" = x; then
42152   eval ac_cr=\$\'\\r\'
42153 fi
42154 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42155 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42156   ac_cs_awk_cr='\\r'
42157 else
42158   ac_cs_awk_cr=$ac_cr
42159 fi
42160
42161 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42162 _ACEOF
42163
42164
42165 {
42166   echo "cat >conf$$subs.awk <<_ACEOF" &&
42167   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42168   echo "_ACEOF"
42169 } >conf$$subs.sh ||
42170   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42171 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
42172 ac_delim='%!_!# '
42173 for ac_last_try in false false false false false :; do
42174   . ./conf$$subs.sh ||
42175     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42176
42177   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
42178   if test $ac_delim_n = $ac_delim_num; then
42179     break
42180   elif $ac_last_try; then
42181     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42182   else
42183     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42184   fi
42185 done
42186 rm -f conf$$subs.sh
42187
42188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42189 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
42190 _ACEOF
42191 sed -n '
42192 h
42193 s/^/S["/; s/!.*/"]=/
42194 p
42195 g
42196 s/^[^!]*!//
42197 :repl
42198 t repl
42199 s/'"$ac_delim"'$//
42200 t delim
42201 :nl
42202 h
42203 s/\(.\{148\}\)..*/\1/
42204 t more1
42205 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
42206 p
42207 n
42208 b repl
42209 :more1
42210 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42211 p
42212 g
42213 s/.\{148\}//
42214 t nl
42215 :delim
42216 h
42217 s/\(.\{148\}\)..*/\1/
42218 t more2
42219 s/["\\]/\\&/g; s/^/"/; s/$/"/
42220 p
42221 b
42222 :more2
42223 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42224 p
42225 g
42226 s/.\{148\}//
42227 t delim
42228 ' <conf$$subs.awk | sed '
42229 /^[^""]/{
42230   N
42231   s/\n//
42232 }
42233 ' >>$CONFIG_STATUS || ac_write_fail=1
42234 rm -f conf$$subs.awk
42235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42236 _ACAWK
42237 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
42238   for (key in S) S_is_set[key] = 1
42239   FS = "\a"
42240
42241 }
42242 {
42243   line = $ 0
42244   nfields = split(line, field, "@")
42245   substed = 0
42246   len = length(field[1])
42247   for (i = 2; i < nfields; i++) {
42248     key = field[i]
42249     keylen = length(key)
42250     if (S_is_set[key]) {
42251       value = S[key]
42252       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
42253       len += length(value) + length(field[++i])
42254       substed = 1
42255     } else
42256       len += 1 + keylen
42257   }
42258
42259   print line
42260 }
42261
42262 _ACAWK
42263 _ACEOF
42264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42265 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
42266   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
42267 else
42268   cat
42269 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
42270   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42271 _ACEOF
42272
42273 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
42274 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
42275 # trailing colons and then remove the whole line if VPATH becomes empty
42276 # (actually we leave an empty line to preserve line numbers).
42277 if test "x$srcdir" = x.; then
42278   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
42279 h
42280 s///
42281 s/^/:/
42282 s/[      ]*$/:/
42283 s/:\$(srcdir):/:/g
42284 s/:\${srcdir}:/:/g
42285 s/:@srcdir@:/:/g
42286 s/^:*//
42287 s/:*$//
42288 x
42289 s/\(=[   ]*\).*/\1/
42290 G
42291 s/\n//
42292 s/^[^=]*=[       ]*$//
42293 }'
42294 fi
42295
42296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42297 fi # test -n "$CONFIG_FILES"
42298
42299 # Set up the scripts for CONFIG_HEADERS section.
42300 # No need to generate them if there are no CONFIG_HEADERS.
42301 # This happens for instance with `./config.status Makefile'.
42302 if test -n "$CONFIG_HEADERS"; then
42303 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
42304 BEGIN {
42305 _ACEOF
42306
42307 # Transform confdefs.h into an awk script `defines.awk', embedded as
42308 # here-document in config.status, that substitutes the proper values into
42309 # config.h.in to produce config.h.
42310
42311 # Create a delimiter string that does not exist in confdefs.h, to ease
42312 # handling of long lines.
42313 ac_delim='%!_!# '
42314 for ac_last_try in false false :; do
42315   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
42316   if test -z "$ac_tt"; then
42317     break
42318   elif $ac_last_try; then
42319     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
42320   else
42321     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42322   fi
42323 done
42324
42325 # For the awk script, D is an array of macro values keyed by name,
42326 # likewise P contains macro parameters if any.  Preserve backslash
42327 # newline sequences.
42328
42329 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42330 sed -n '
42331 s/.\{148\}/&'"$ac_delim"'/g
42332 t rset
42333 :rset
42334 s/^[     ]*#[    ]*define[       ][      ]*/ /
42335 t def
42336 d
42337 :def
42338 s/\\$//
42339 t bsnl
42340 s/["\\]/\\&/g
42341 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
42342 D["\1"]=" \3"/p
42343 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
42344 d
42345 :bsnl
42346 s/["\\]/\\&/g
42347 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
42348 D["\1"]=" \3\\\\\\n"\\/p
42349 t cont
42350 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
42351 t cont
42352 d
42353 :cont
42354 n
42355 s/.\{148\}/&'"$ac_delim"'/g
42356 t clear
42357 :clear
42358 s/\\$//
42359 t bsnlc
42360 s/["\\]/\\&/g; s/^/"/; s/$/"/p
42361 d
42362 :bsnlc
42363 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
42364 b cont
42365 ' <confdefs.h | sed '
42366 s/'"$ac_delim"'/"\\\
42367 "/g' >>$CONFIG_STATUS || ac_write_fail=1
42368
42369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42370   for (key in D) D_is_set[key] = 1
42371   FS = "\a"
42372 }
42373 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
42374   line = \$ 0
42375   split(line, arg, " ")
42376   if (arg[1] == "#") {
42377     defundef = arg[2]
42378     mac1 = arg[3]
42379   } else {
42380     defundef = substr(arg[1], 2)
42381     mac1 = arg[2]
42382   }
42383   split(mac1, mac2, "(") #)
42384   macro = mac2[1]
42385   prefix = substr(line, 1, index(line, defundef) - 1)
42386   if (D_is_set[macro]) {
42387     # Preserve the white space surrounding the "#".
42388     print prefix "define", macro P[macro] D[macro]
42389     next
42390   } else {
42391     # Replace #undef with comments.  This is necessary, for example,
42392     # in the case of _POSIX_SOURCE, which is predefined and required
42393     # on some systems where configure will not decide to define it.
42394     if (defundef == "undef") {
42395       print "/*", prefix defundef, macro, "*/"
42396       next
42397     }
42398   }
42399 }
42400 { print }
42401 _ACAWK
42402 _ACEOF
42403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42404   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
42405 fi # test -n "$CONFIG_HEADERS"
42406
42407
42408 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
42409 shift
42410 for ac_tag
42411 do
42412   case $ac_tag in
42413   :[FHLC]) ac_mode=$ac_tag; continue;;
42414   esac
42415   case $ac_mode$ac_tag in
42416   :[FHL]*:*);;
42417   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
42418   :[FH]-) ac_tag=-:-;;
42419   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42420   esac
42421   ac_save_IFS=$IFS
42422   IFS=:
42423   set x $ac_tag
42424   IFS=$ac_save_IFS
42425   shift
42426   ac_file=$1
42427   shift
42428
42429   case $ac_mode in
42430   :L) ac_source=$1;;
42431   :[FH])
42432     ac_file_inputs=
42433     for ac_f
42434     do
42435       case $ac_f in
42436       -) ac_f="$ac_tmp/stdin";;
42437       *) # Look for the file first in the build tree, then in the source tree
42438          # (if the path is not absolute).  The absolute path cannot be DOS-style,
42439          # because $ac_f cannot contain `:'.
42440          test -f "$ac_f" ||
42441            case $ac_f in
42442            [\\/$]*) false;;
42443            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42444            esac ||
42445            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
42446       esac
42447       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
42448       as_fn_append ac_file_inputs " '$ac_f'"
42449     done
42450
42451     # Let's still pretend it is `configure' which instantiates (i.e., don't
42452     # use $as_me), people would be surprised to read:
42453     #    /* config.h.  Generated by config.status.  */
42454     configure_input='Generated from '`
42455           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
42456         `' by configure.'
42457     if test x"$ac_file" != x-; then
42458       configure_input="$ac_file.  $configure_input"
42459       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
42460 $as_echo "$as_me: creating $ac_file" >&6;}
42461     fi
42462     # Neutralize special characters interpreted by sed in replacement strings.
42463     case $configure_input in #(
42464     *\&* | *\|* | *\\* )
42465        ac_sed_conf_input=`$as_echo "$configure_input" |
42466        sed 's/[\\\\&|]/\\\\&/g'`;; #(
42467     *) ac_sed_conf_input=$configure_input;;
42468     esac
42469
42470     case $ac_tag in
42471     *:-:* | *:-) cat >"$ac_tmp/stdin" \
42472       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
42473     esac
42474     ;;
42475   esac
42476
42477   ac_dir=`$as_dirname -- "$ac_file" ||
42478 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42479          X"$ac_file" : 'X\(//\)[^/]' \| \
42480          X"$ac_file" : 'X\(//\)$' \| \
42481          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42482 $as_echo X"$ac_file" |
42483     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42484             s//\1/
42485             q
42486           }
42487           /^X\(\/\/\)[^/].*/{
42488             s//\1/
42489             q
42490           }
42491           /^X\(\/\/\)$/{
42492             s//\1/
42493             q
42494           }
42495           /^X\(\/\).*/{
42496             s//\1/
42497             q
42498           }
42499           s/.*/./; q'`
42500   as_dir="$ac_dir"; as_fn_mkdir_p
42501   ac_builddir=.
42502
42503 case "$ac_dir" in
42504 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42505 *)
42506   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
42507   # A ".." for each directory in $ac_dir_suffix.
42508   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
42509   case $ac_top_builddir_sub in
42510   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42511   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42512   esac ;;
42513 esac
42514 ac_abs_top_builddir=$ac_pwd
42515 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42516 # for backward compatibility:
42517 ac_top_builddir=$ac_top_build_prefix
42518
42519 case $srcdir in
42520   .)  # We are building in place.
42521     ac_srcdir=.
42522     ac_top_srcdir=$ac_top_builddir_sub
42523     ac_abs_top_srcdir=$ac_pwd ;;
42524   [\\/]* | ?:[\\/]* )  # Absolute name.
42525     ac_srcdir=$srcdir$ac_dir_suffix;
42526     ac_top_srcdir=$srcdir
42527     ac_abs_top_srcdir=$srcdir ;;
42528   *) # Relative name.
42529     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42530     ac_top_srcdir=$ac_top_build_prefix$srcdir
42531     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42532 esac
42533 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42534
42535
42536   case $ac_mode in
42537   :F)
42538   #
42539   # CONFIG_FILE
42540   #
42541
42542   case $INSTALL in
42543   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42544   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42545   esac
42546   ac_MKDIR_P=$MKDIR_P
42547   case $MKDIR_P in
42548   [\\/$]* | ?:[\\/]* ) ;;
42549   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
42550   esac
42551 _ACEOF
42552
42553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42554 # If the template does not know about datarootdir, expand it.
42555 # FIXME: This hack should be removed a few years after 2.60.
42556 ac_datarootdir_hack=; ac_datarootdir_seen=
42557 ac_sed_dataroot='
42558 /datarootdir/ {
42559   p
42560   q
42561 }
42562 /@datadir@/p
42563 /@docdir@/p
42564 /@infodir@/p
42565 /@localedir@/p
42566 /@mandir@/p'
42567 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
42568 *datarootdir*) ac_datarootdir_seen=yes;;
42569 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42570   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42571 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42572 _ACEOF
42573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42574   ac_datarootdir_hack='
42575   s&@datadir@&$datadir&g
42576   s&@docdir@&$docdir&g
42577   s&@infodir@&$infodir&g
42578   s&@localedir@&$localedir&g
42579   s&@mandir@&$mandir&g
42580   s&\\\${datarootdir}&$datarootdir&g' ;;
42581 esac
42582 _ACEOF
42583
42584 # Neutralize VPATH when `$srcdir' = `.'.
42585 # Shell code in configure.ac might set extrasub.
42586 # FIXME: do we really want to maintain this feature?
42587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42588 ac_sed_extra="$ac_vpsub
42589 $extrasub
42590 _ACEOF
42591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42592 :t
42593 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42594 s|@configure_input@|$ac_sed_conf_input|;t t
42595 s&@top_builddir@&$ac_top_builddir_sub&;t t
42596 s&@top_build_prefix@&$ac_top_build_prefix&;t t
42597 s&@srcdir@&$ac_srcdir&;t t
42598 s&@abs_srcdir@&$ac_abs_srcdir&;t t
42599 s&@top_srcdir@&$ac_top_srcdir&;t t
42600 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42601 s&@builddir@&$ac_builddir&;t t
42602 s&@abs_builddir@&$ac_abs_builddir&;t t
42603 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42604 s&@INSTALL@&$ac_INSTALL&;t t
42605 s&@MKDIR_P@&$ac_MKDIR_P&;t t
42606 $ac_datarootdir_hack
42607 "
42608 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
42609   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42610
42611 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42612   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
42613   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
42614       "$ac_tmp/out"`; test -z "$ac_out"; } &&
42615   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42616 which seems to be undefined.  Please make sure it is defined" >&5
42617 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42618 which seems to be undefined.  Please make sure it is defined" >&2;}
42619
42620   rm -f "$ac_tmp/stdin"
42621   case $ac_file in
42622   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
42623   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
42624   esac \
42625   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42626  ;;
42627   :H)
42628   #
42629   # CONFIG_HEADER
42630   #
42631   if test x"$ac_file" != x-; then
42632     {
42633       $as_echo "/* $configure_input  */" \
42634       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
42635     } >"$ac_tmp/config.h" \
42636       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42637     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
42638       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
42639 $as_echo "$as_me: $ac_file is unchanged" >&6;}
42640     else
42641       rm -f "$ac_file"
42642       mv "$ac_tmp/config.h" "$ac_file" \
42643         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42644     fi
42645   else
42646     $as_echo "/* $configure_input  */" \
42647       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
42648       || as_fn_error $? "could not create -" "$LINENO" 5
42649   fi
42650 # Compute "$ac_file"'s index in $config_headers.
42651 _am_arg="$ac_file"
42652 _am_stamp_count=1
42653 for _am_header in $config_headers :; do
42654   case $_am_header in
42655     $_am_arg | $_am_arg:* )
42656       break ;;
42657     * )
42658       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42659   esac
42660 done
42661 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
42662 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42663          X"$_am_arg" : 'X\(//\)[^/]' \| \
42664          X"$_am_arg" : 'X\(//\)$' \| \
42665          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
42666 $as_echo X"$_am_arg" |
42667     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42668             s//\1/
42669             q
42670           }
42671           /^X\(\/\/\)[^/].*/{
42672             s//\1/
42673             q
42674           }
42675           /^X\(\/\/\)$/{
42676             s//\1/
42677             q
42678           }
42679           /^X\(\/\).*/{
42680             s//\1/
42681             q
42682           }
42683           s/.*/./; q'`/stamp-h$_am_stamp_count
42684  ;;
42685
42686   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
42687 $as_echo "$as_me: executing $ac_file commands" >&6;}
42688  ;;
42689   esac
42690
42691
42692   case $ac_file$ac_mode in
42693     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
42694   # Older Autoconf quotes --file arguments for eval, but not when files
42695   # are listed without --file.  Let's play safe and only enable the eval
42696   # if we detect the quoting.
42697   case $CONFIG_FILES in
42698   *\'*) eval set x "$CONFIG_FILES" ;;
42699   *)   set x $CONFIG_FILES ;;
42700   esac
42701   shift
42702   for mf
42703   do
42704     # Strip MF so we end up with the name of the file.
42705     mf=`echo "$mf" | sed -e 's/:.*$//'`
42706     # Check whether this is an Automake generated Makefile or not.
42707     # We used to match only the files named 'Makefile.in', but
42708     # some people rename them; so instead we look at the file content.
42709     # Grep'ing the first line is not enough: some people post-process
42710     # each Makefile.in and add a new line on top of each file to say so.
42711     # Grep'ing the whole file is not good either: AIX grep has a line
42712     # limit of 2048, but all sed's we know have understand at least 4000.
42713     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
42714       dirpart=`$as_dirname -- "$mf" ||
42715 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42716          X"$mf" : 'X\(//\)[^/]' \| \
42717          X"$mf" : 'X\(//\)$' \| \
42718          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
42719 $as_echo X"$mf" |
42720     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42721             s//\1/
42722             q
42723           }
42724           /^X\(\/\/\)[^/].*/{
42725             s//\1/
42726             q
42727           }
42728           /^X\(\/\/\)$/{
42729             s//\1/
42730             q
42731           }
42732           /^X\(\/\).*/{
42733             s//\1/
42734             q
42735           }
42736           s/.*/./; q'`
42737     else
42738       continue
42739     fi
42740     # Extract the definition of DEPDIR, am__include, and am__quote
42741     # from the Makefile without running 'make'.
42742     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42743     test -z "$DEPDIR" && continue
42744     am__include=`sed -n 's/^am__include = //p' < "$mf"`
42745     test -z "$am__include" && continue
42746     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42747     # Find all dependency output files, they are included files with
42748     # $(DEPDIR) in their names.  We invoke sed twice because it is the
42749     # simplest approach to changing $(DEPDIR) to its actual value in the
42750     # expansion.
42751     for file in `sed -n "
42752       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42753          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
42754       # Make sure the directory exists.
42755       test -f "$dirpart/$file" && continue
42756       fdir=`$as_dirname -- "$file" ||
42757 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42758          X"$file" : 'X\(//\)[^/]' \| \
42759          X"$file" : 'X\(//\)$' \| \
42760          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
42761 $as_echo X"$file" |
42762     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42763             s//\1/
42764             q
42765           }
42766           /^X\(\/\/\)[^/].*/{
42767             s//\1/
42768             q
42769           }
42770           /^X\(\/\/\)$/{
42771             s//\1/
42772             q
42773           }
42774           /^X\(\/\).*/{
42775             s//\1/
42776             q
42777           }
42778           s/.*/./; q'`
42779       as_dir=$dirpart/$fdir; as_fn_mkdir_p
42780       # echo "creating $dirpart/$file"
42781       echo '# dummy' > "$dirpart/$file"
42782     done
42783   done
42784 }
42785  ;;
42786     "libtool":C)
42787
42788     # See if we are running on zsh, and set the options that allow our
42789     # commands through without removal of \ escapes.
42790     if test -n "${ZSH_VERSION+set}"; then
42791       setopt NO_GLOB_SUBST
42792     fi
42793
42794     cfgfile=${ofile}T
42795     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
42796     $RM "$cfgfile"
42797
42798     cat <<_LT_EOF >> "$cfgfile"
42799 #! $SHELL
42800 # Generated automatically by $as_me ($PACKAGE) $VERSION
42801 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
42802
42803 # Provide generalized library-building support services.
42804 # Written by Gordon Matzigkeit, 1996
42805
42806 # Copyright (C) 2014 Free Software Foundation, Inc.
42807 # This is free software; see the source for copying conditions.  There is NO
42808 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
42809
42810 # GNU Libtool is free software; you can redistribute it and/or modify
42811 # it under the terms of the GNU General Public License as published by
42812 # the Free Software Foundation; either version 2 of of the License, or
42813 # (at your option) any later version.
42814 #
42815 # As a special exception to the GNU General Public License, if you
42816 # distribute this file as part of a program or library that is built
42817 # using GNU Libtool, you may include this file under the  same
42818 # distribution terms that you use for the rest of that program.
42819 #
42820 # GNU Libtool is distributed in the hope that it will be useful, but
42821 # WITHOUT ANY WARRANTY; without even the implied warranty of
42822 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
42823 # GNU General Public License for more details.
42824 #
42825 # You should have received a copy of the GNU General Public License
42826 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
42827
42828
42829 # The names of the tagged configurations supported by this script.
42830 available_tags=''
42831
42832 # Configured defaults for sys_lib_dlsearch_path munging.
42833 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
42834
42835 # ### BEGIN LIBTOOL CONFIG
42836
42837 # Which release of libtool.m4 was used?
42838 macro_version=$macro_version
42839 macro_revision=$macro_revision
42840
42841 # Assembler program.
42842 AS=$lt_AS
42843
42844 # DLL creation program.
42845 DLLTOOL=$lt_DLLTOOL
42846
42847 # Object dumper program.
42848 OBJDUMP=$lt_OBJDUMP
42849
42850 # Whether or not to build shared libraries.
42851 build_libtool_libs=$enable_shared
42852
42853 # Whether or not to build static libraries.
42854 build_old_libs=$enable_static
42855
42856 # What type of objects to build.
42857 pic_mode=$pic_mode
42858
42859 # Whether or not to optimize for fast installation.
42860 fast_install=$enable_fast_install
42861
42862 # Shared archive member basename,for filename based shared library versioning on AIX.
42863 shared_archive_member_spec=$shared_archive_member_spec
42864
42865 # Shell to use when invoking shell scripts.
42866 SHELL=$lt_SHELL
42867
42868 # An echo program that protects backslashes.
42869 ECHO=$lt_ECHO
42870
42871 # The PATH separator for the build system.
42872 PATH_SEPARATOR=$lt_PATH_SEPARATOR
42873
42874 # The host system.
42875 host_alias=$host_alias
42876 host=$host
42877 host_os=$host_os
42878
42879 # The build system.
42880 build_alias=$build_alias
42881 build=$build
42882 build_os=$build_os
42883
42884 # A sed program that does not truncate output.
42885 SED=$lt_SED
42886
42887 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
42888 Xsed="\$SED -e 1s/^X//"
42889
42890 # A grep program that handles long lines.
42891 GREP=$lt_GREP
42892
42893 # An ERE matcher.
42894 EGREP=$lt_EGREP
42895
42896 # A literal string matcher.
42897 FGREP=$lt_FGREP
42898
42899 # A BSD- or MS-compatible name lister.
42900 NM=$lt_NM
42901
42902 # Whether we need soft or hard links.
42903 LN_S=$lt_LN_S
42904
42905 # What is the maximum length of a command?
42906 max_cmd_len=$max_cmd_len
42907
42908 # Object file suffix (normally "o").
42909 objext=$ac_objext
42910
42911 # Executable file suffix (normally "").
42912 exeext=$exeext
42913
42914 # whether the shell understands "unset".
42915 lt_unset=$lt_unset
42916
42917 # turn spaces into newlines.
42918 SP2NL=$lt_lt_SP2NL
42919
42920 # turn newlines into spaces.
42921 NL2SP=$lt_lt_NL2SP
42922
42923 # convert \$build file names to \$host format.
42924 to_host_file_cmd=$lt_cv_to_host_file_cmd
42925
42926 # convert \$build files to toolchain format.
42927 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
42928
42929 # Method to check whether dependent libraries are shared objects.
42930 deplibs_check_method=$lt_deplibs_check_method
42931
42932 # Command to use when deplibs_check_method = "file_magic".
42933 file_magic_cmd=$lt_file_magic_cmd
42934
42935 # How to find potential files when deplibs_check_method = "file_magic".
42936 file_magic_glob=$lt_file_magic_glob
42937
42938 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
42939 want_nocaseglob=$lt_want_nocaseglob
42940
42941 # Command to associate shared and link libraries.
42942 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
42943
42944 # The archiver.
42945 AR=$lt_AR
42946
42947 # Flags to create an archive.
42948 AR_FLAGS=$lt_AR_FLAGS
42949
42950 # How to feed a file listing to the archiver.
42951 archiver_list_spec=$lt_archiver_list_spec
42952
42953 # A symbol stripping program.
42954 STRIP=$lt_STRIP
42955
42956 # Commands used to install an old-style archive.
42957 RANLIB=$lt_RANLIB
42958 old_postinstall_cmds=$lt_old_postinstall_cmds
42959 old_postuninstall_cmds=$lt_old_postuninstall_cmds
42960
42961 # Whether to use a lock for old archive extraction.
42962 lock_old_archive_extraction=$lock_old_archive_extraction
42963
42964 # A C compiler.
42965 LTCC=$lt_CC
42966
42967 # LTCC compiler flags.
42968 LTCFLAGS=$lt_CFLAGS
42969
42970 # Take the output of nm and produce a listing of raw symbols and C names.
42971 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
42972
42973 # Transform the output of nm in a proper C declaration.
42974 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
42975
42976 # Transform the output of nm into a list of symbols to manually relocate.
42977 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
42978
42979 # Transform the output of nm in a C name address pair.
42980 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
42981
42982 # Transform the output of nm in a C name address pair when lib prefix is needed.
42983 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
42984
42985 # The name lister interface.
42986 nm_interface=$lt_lt_cv_nm_interface
42987
42988 # Specify filename containing input files for \$NM.
42989 nm_file_list_spec=$lt_nm_file_list_spec
42990
42991 # The root where to search for dependent libraries,and where our libraries should be installed.
42992 lt_sysroot=$lt_sysroot
42993
42994 # Command to truncate a binary pipe.
42995 lt_truncate_bin=$lt_lt_cv_truncate_bin
42996
42997 # The name of the directory that contains temporary libtool files.
42998 objdir=$objdir
42999
43000 # Used to examine libraries when file_magic_cmd begins with "file".
43001 MAGIC_CMD=$MAGIC_CMD
43002
43003 # Must we lock files when doing compilation?
43004 need_locks=$lt_need_locks
43005
43006 # Manifest tool.
43007 MANIFEST_TOOL=$lt_MANIFEST_TOOL
43008
43009 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43010 DSYMUTIL=$lt_DSYMUTIL
43011
43012 # Tool to change global to local symbols on Mac OS X.
43013 NMEDIT=$lt_NMEDIT
43014
43015 # Tool to manipulate fat objects and archives on Mac OS X.
43016 LIPO=$lt_LIPO
43017
43018 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43019 OTOOL=$lt_OTOOL
43020
43021 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43022 OTOOL64=$lt_OTOOL64
43023
43024 # Old archive suffix (normally "a").
43025 libext=$libext
43026
43027 # Shared library suffix (normally ".so").
43028 shrext_cmds=$lt_shrext_cmds
43029
43030 # The commands to extract the exported symbol list from a shared archive.
43031 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43032
43033 # Variables whose values should be saved in libtool wrapper scripts and
43034 # restored at link time.
43035 variables_saved_for_relink=$lt_variables_saved_for_relink
43036
43037 # Do we need the "lib" prefix for modules?
43038 need_lib_prefix=$need_lib_prefix
43039
43040 # Do we need a version for libraries?
43041 need_version=$need_version
43042
43043 # Library versioning type.
43044 version_type=$version_type
43045
43046 # Shared library runtime path variable.
43047 runpath_var=$runpath_var
43048
43049 # Shared library path variable.
43050 shlibpath_var=$shlibpath_var
43051
43052 # Is shlibpath searched before the hard-coded library search path?
43053 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43054
43055 # Format of library name prefix.
43056 libname_spec=$lt_libname_spec
43057
43058 # List of archive names.  First name is the real one, the rest are links.
43059 # The last name is the one that the linker finds with -lNAME
43060 library_names_spec=$lt_library_names_spec
43061
43062 # The coded name of the library, if different from the real name.
43063 soname_spec=$lt_soname_spec
43064
43065 # Permission mode override for installation of shared libraries.
43066 install_override_mode=$lt_install_override_mode
43067
43068 # Command to use after installation of a shared archive.
43069 postinstall_cmds=$lt_postinstall_cmds
43070
43071 # Command to use after uninstallation of a shared archive.
43072 postuninstall_cmds=$lt_postuninstall_cmds
43073
43074 # Commands used to finish a libtool library installation in a directory.
43075 finish_cmds=$lt_finish_cmds
43076
43077 # As "finish_cmds", except a single script fragment to be evaled but
43078 # not shown.
43079 finish_eval=$lt_finish_eval
43080
43081 # Whether we should hardcode library paths into libraries.
43082 hardcode_into_libs=$hardcode_into_libs
43083
43084 # Compile-time system search path for libraries.
43085 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43086
43087 # Detected run-time system search path for libraries.
43088 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
43089
43090 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
43091 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
43092
43093 # Whether dlopen is supported.
43094 dlopen_support=$enable_dlopen
43095
43096 # Whether dlopen of programs is supported.
43097 dlopen_self=$enable_dlopen_self
43098
43099 # Whether dlopen of statically linked programs is supported.
43100 dlopen_self_static=$enable_dlopen_self_static
43101
43102 # Commands to strip libraries.
43103 old_striplib=$lt_old_striplib
43104 striplib=$lt_striplib
43105
43106
43107 # The linker used to build libraries.
43108 LD=$lt_LD
43109
43110 # How to create reloadable object files.
43111 reload_flag=$lt_reload_flag
43112 reload_cmds=$lt_reload_cmds
43113
43114 # Commands used to build an old-style archive.
43115 old_archive_cmds=$lt_old_archive_cmds
43116
43117 # A language specific compiler.
43118 CC=$lt_compiler
43119
43120 # Is the compiler the GNU compiler?
43121 with_gcc=$GCC
43122
43123 # Compiler flag to turn off builtin functions.
43124 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43125
43126 # Additional compiler flags for building library objects.
43127 pic_flag=$lt_lt_prog_compiler_pic
43128
43129 # How to pass a linker flag through the compiler.
43130 wl=$lt_lt_prog_compiler_wl
43131
43132 # Compiler flag to prevent dynamic linking.
43133 link_static_flag=$lt_lt_prog_compiler_static
43134
43135 # Does compiler simultaneously support -c and -o options?
43136 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43137
43138 # Whether or not to add -lc for building shared libraries.
43139 build_libtool_need_lc=$archive_cmds_need_lc
43140
43141 # Whether or not to disallow shared libs when runtime libs are static.
43142 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43143
43144 # Compiler flag to allow reflexive dlopens.
43145 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43146
43147 # Compiler flag to generate shared objects directly from archives.
43148 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43149
43150 # Whether the compiler copes with passing no objects directly.
43151 compiler_needs_object=$lt_compiler_needs_object
43152
43153 # Create an old-style archive from a shared archive.
43154 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43155
43156 # Create a temporary old-style archive to link instead of a shared archive.
43157 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43158
43159 # Commands used to build a shared archive.
43160 archive_cmds=$lt_archive_cmds
43161 archive_expsym_cmds=$lt_archive_expsym_cmds
43162
43163 # Commands used to build a loadable module if different from building
43164 # a shared archive.
43165 module_cmds=$lt_module_cmds
43166 module_expsym_cmds=$lt_module_expsym_cmds
43167
43168 # Whether we are building with GNU ld or not.
43169 with_gnu_ld=$lt_with_gnu_ld
43170
43171 # Flag that allows shared libraries with undefined symbols to be built.
43172 allow_undefined_flag=$lt_allow_undefined_flag
43173
43174 # Flag that enforces no undefined symbols.
43175 no_undefined_flag=$lt_no_undefined_flag
43176
43177 # Flag to hardcode \$libdir into a binary during linking.
43178 # This must work even if \$libdir does not exist
43179 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43180
43181 # Whether we need a single "-rpath" flag with a separated argument.
43182 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43183
43184 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43185 # DIR into the resulting binary.
43186 hardcode_direct=$hardcode_direct
43187
43188 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43189 # DIR into the resulting binary and the resulting library dependency is
43190 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
43191 # library is relocated.
43192 hardcode_direct_absolute=$hardcode_direct_absolute
43193
43194 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43195 # into the resulting binary.
43196 hardcode_minus_L=$hardcode_minus_L
43197
43198 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43199 # into the resulting binary.
43200 hardcode_shlibpath_var=$hardcode_shlibpath_var
43201
43202 # Set to "yes" if building a shared library automatically hardcodes DIR
43203 # into the library and all subsequent libraries and executables linked
43204 # against it.
43205 hardcode_automatic=$hardcode_automatic
43206
43207 # Set to yes if linker adds runtime paths of dependent libraries
43208 # to runtime path list.
43209 inherit_rpath=$inherit_rpath
43210
43211 # Whether libtool must link a program against all its dependency libraries.
43212 link_all_deplibs=$link_all_deplibs
43213
43214 # Set to "yes" if exported symbols are required.
43215 always_export_symbols=$always_export_symbols
43216
43217 # The commands to list exported symbols.
43218 export_symbols_cmds=$lt_export_symbols_cmds
43219
43220 # Symbols that should not be listed in the preloaded symbols.
43221 exclude_expsyms=$lt_exclude_expsyms
43222
43223 # Symbols that must always be exported.
43224 include_expsyms=$lt_include_expsyms
43225
43226 # Commands necessary for linking programs (against libraries) with templates.
43227 prelink_cmds=$lt_prelink_cmds
43228
43229 # Commands necessary for finishing linking programs.
43230 postlink_cmds=$lt_postlink_cmds
43231
43232 # Specify filename containing input files.
43233 file_list_spec=$lt_file_list_spec
43234
43235 # How to hardcode a shared library path into an executable.
43236 hardcode_action=$hardcode_action
43237
43238 # ### END LIBTOOL CONFIG
43239
43240 _LT_EOF
43241
43242     cat <<'_LT_EOF' >> "$cfgfile"
43243
43244 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
43245
43246 # func_munge_path_list VARIABLE PATH
43247 # -----------------------------------
43248 # VARIABLE is name of variable containing _space_ separated list of
43249 # directories to be munged by the contents of PATH, which is string
43250 # having a format:
43251 # "DIR[:DIR]:"
43252 #       string "DIR[ DIR]" will be prepended to VARIABLE
43253 # ":DIR[:DIR]"
43254 #       string "DIR[ DIR]" will be appended to VARIABLE
43255 # "DIRP[:DIRP]::[DIRA:]DIRA"
43256 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
43257 #       "DIRA[ DIRA]" will be appended to VARIABLE
43258 # "DIR[:DIR]"
43259 #       VARIABLE will be replaced by "DIR[ DIR]"
43260 func_munge_path_list ()
43261 {
43262     case x$2 in
43263     x)
43264         ;;
43265     *:)
43266         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
43267         ;;
43268     x:*)
43269         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
43270         ;;
43271     *::*)
43272         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
43273         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
43274         ;;
43275     *)
43276         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
43277         ;;
43278     esac
43279 }
43280
43281
43282 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
43283 func_cc_basename ()
43284 {
43285     for cc_temp in $*""; do
43286       case $cc_temp in
43287         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43288         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43289         \-*) ;;
43290         *) break;;
43291       esac
43292     done
43293     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43294 }
43295
43296
43297 # ### END FUNCTIONS SHARED WITH CONFIGURE
43298
43299 _LT_EOF
43300
43301   case $host_os in
43302   aix3*)
43303     cat <<\_LT_EOF >> "$cfgfile"
43304 # AIX sometimes has problems with the GCC collect2 program.  For some
43305 # reason, if we set the COLLECT_NAMES environment variable, the problems
43306 # vanish in a puff of smoke.
43307 if test set != "${COLLECT_NAMES+set}"; then
43308   COLLECT_NAMES=
43309   export COLLECT_NAMES
43310 fi
43311 _LT_EOF
43312     ;;
43313   esac
43314
43315
43316 ltmain=$ac_aux_dir/ltmain.sh
43317
43318
43319   # We use sed instead of cat because bash on DJGPP gets confused if
43320   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
43321   # text mode, it properly converts lines to CR/LF.  This bash problem
43322   # is reportedly fixed, but why not run on old versions too?
43323   sed '$q' "$ltmain" >> "$cfgfile" \
43324      || (rm -f "$cfgfile"; exit 1)
43325
43326    mv -f "$cfgfile" "$ofile" ||
43327     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43328   chmod +x "$ofile"
43329
43330  ;;
43331
43332   esac
43333 done # for ac_tag
43334
43335
43336 as_fn_exit 0
43337 _ACEOF
43338 ac_clean_files=$ac_clean_files_save
43339
43340 test $ac_write_fail = 0 ||
43341   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
43342
43343
43344 # configure is writing to config.log, and then calls config.status.
43345 # config.status does its own redirection, appending to config.log.
43346 # Unfortunately, on DOS this fails, as config.log is still kept open
43347 # by configure, so config.status won't be able to write to it; its
43348 # output is simply discarded.  So we exec the FD to /dev/null,
43349 # effectively closing config.log, so it can be properly (re)opened and
43350 # appended to by config.status.  When coming back to configure, we
43351 # need to make the FD available again.
43352 if test "$no_create" != yes; then
43353   ac_cs_success=:
43354   ac_config_status_args=
43355   test "$silent" = yes &&
43356     ac_config_status_args="$ac_config_status_args --quiet"
43357   exec 5>/dev/null
43358   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43359   exec 5>>config.log
43360   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43361   # would make configure fail if this is the last instruction.
43362   $ac_cs_success || as_fn_exit 1
43363 fi
43364
43365 #
43366 # CONFIG_SUBDIRS section.
43367 #
43368 if test "$no_recursion" != yes; then
43369
43370   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
43371   # so they do not pile up.
43372   ac_sub_configure_args=
43373   ac_prev=
43374   eval "set x $ac_configure_args"
43375   shift
43376   for ac_arg
43377   do
43378     if test -n "$ac_prev"; then
43379       ac_prev=
43380       continue
43381     fi
43382     case $ac_arg in
43383     -cache-file | --cache-file | --cache-fil | --cache-fi \
43384     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43385       ac_prev=cache_file ;;
43386     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43387     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43388     | --c=*)
43389       ;;
43390     --config-cache | -C)
43391       ;;
43392     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43393       ac_prev=srcdir ;;
43394     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43395       ;;
43396     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43397       ac_prev=prefix ;;
43398     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43399       ;;
43400     --disable-option-checking)
43401       ;;
43402     *)
43403       case $ac_arg in
43404       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43405       esac
43406       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
43407     esac
43408   done
43409
43410   # Always prepend --prefix to ensure using the same prefix
43411   # in subdir configurations.
43412   ac_arg="--prefix=$prefix"
43413   case $ac_arg in
43414   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43415   esac
43416   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
43417
43418   # Pass --silent
43419   if test "$silent" = yes; then
43420     ac_sub_configure_args="--silent $ac_sub_configure_args"
43421   fi
43422
43423   # Always prepend --disable-option-checking to silence warnings, since
43424   # different subdirs can have different --enable and --with options.
43425   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
43426
43427   ac_popdir=`pwd`
43428   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43429
43430     # Do not complain, so a configure script can configure whichever
43431     # parts of a large source tree are present.
43432     test -d "$srcdir/$ac_dir" || continue
43433
43434     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
43435     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
43436     $as_echo "$ac_msg" >&6
43437     as_dir="$ac_dir"; as_fn_mkdir_p
43438     ac_builddir=.
43439
43440 case "$ac_dir" in
43441 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43442 *)
43443   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43444   # A ".." for each directory in $ac_dir_suffix.
43445   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43446   case $ac_top_builddir_sub in
43447   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43448   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43449   esac ;;
43450 esac
43451 ac_abs_top_builddir=$ac_pwd
43452 ac_abs_builddir=$ac_pwd$ac_dir_suffix
43453 # for backward compatibility:
43454 ac_top_builddir=$ac_top_build_prefix
43455
43456 case $srcdir in
43457   .)  # We are building in place.
43458     ac_srcdir=.
43459     ac_top_srcdir=$ac_top_builddir_sub
43460     ac_abs_top_srcdir=$ac_pwd ;;
43461   [\\/]* | ?:[\\/]* )  # Absolute name.
43462     ac_srcdir=$srcdir$ac_dir_suffix;
43463     ac_top_srcdir=$srcdir
43464     ac_abs_top_srcdir=$srcdir ;;
43465   *) # Relative name.
43466     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43467     ac_top_srcdir=$ac_top_build_prefix$srcdir
43468     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43469 esac
43470 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43471
43472
43473     cd "$ac_dir"
43474
43475     # Check for guested configure; otherwise get Cygnus style configure.
43476     if test -f "$ac_srcdir/configure.gnu"; then
43477       ac_sub_configure=$ac_srcdir/configure.gnu
43478     elif test -f "$ac_srcdir/configure"; then
43479       ac_sub_configure=$ac_srcdir/configure
43480     elif test -f "$ac_srcdir/configure.in"; then
43481       # This should be Cygnus configure.
43482       ac_sub_configure=$ac_aux_dir/configure
43483     else
43484       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
43485 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43486       ac_sub_configure=
43487     fi
43488
43489     # The recursion is here.
43490     if test -n "$ac_sub_configure"; then
43491       # Make the cache file name correct relative to the subdirectory.
43492       case $cache_file in
43493       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43494       *) # Relative name.
43495         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
43496       esac
43497
43498       { $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
43499 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43500       # The eval makes quoting arguments work.
43501       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
43502            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
43503         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
43504     fi
43505
43506     cd "$ac_popdir"
43507   done
43508 fi
43509 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
43510   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
43511 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
43512 fi
43513
43514
43515
43516     tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
43517   if test -z "$tmp_cpp"; then
43518     tmp_cpp='cpp'
43519   fi
43520   cat >./tests/configurehelp.pm <<_EOF
43521 # This is a generated file.  Do not edit.
43522
43523 package configurehelp;
43524
43525 use strict;
43526 use warnings;
43527 use Exporter;
43528
43529 use vars qw(
43530     @ISA
43531     @EXPORT_OK
43532     \$Cpreprocessor
43533     );
43534
43535 @ISA = qw(Exporter);
43536
43537 @EXPORT_OK = qw(
43538     \$Cpreprocessor
43539     );
43540
43541 \$Cpreprocessor = '$tmp_cpp';
43542
43543 1;
43544 _EOF
43545
43546
43547
43548 ## ---------------------------------- ##
43549 ##  Start of distclean amending code  ##
43550 ## ---------------------------------- ##
43551
43552 for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
43553 do
43554
43555 if test ! -f "$xc_subdir/Makefile"; then
43556   echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
43557   exit 1
43558 fi
43559
43560 # Fetch dependency tracking file list from Makefile include lines.
43561
43562 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
43563 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
43564
43565 # --disable-dependency-tracking might have been used, consequently
43566 # there is nothing to amend without a dependency tracking file list.
43567
43568 if test $xc_cnt_words -gt 0; then
43569
43570 { $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
43571 $as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
43572
43573 # Build Makefile specific patch hunk.
43574
43575 xc_p="$xc_subdir/xc_patch.tmp"
43576
43577 xc_rm_depfiles=`echo "$xc_inc_lines" \
43578   | $SED 's%include%    -rm -f%' 2>/dev/null`
43579
43580 xc_dep_subdirs=`echo "$xc_inc_lines" \
43581   | $SED 's%include[ ][ ]*%%' 2>/dev/null \
43582   | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
43583   | sort | uniq`
43584
43585 echo "$xc_rm_depfiles" >$xc_p
43586
43587 for xc_dep_dir in $xc_dep_subdirs; do
43588   echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\"            >>$xc_p
43589   echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\"      >>$xc_p
43590   echo "${xc_tab}  rm -rf $xc_dep_dir; \\"                                          >>$xc_p
43591   echo "${xc_tab}fi"                                                                >>$xc_p
43592 done
43593
43594 # Build Makefile patching sed scripts.
43595
43596 xc_s1="$xc_subdir/xc_script_1.tmp"
43597 xc_s2="$xc_subdir/xc_script_2.tmp"
43598 xc_s3="$xc_subdir/xc_script_3.tmp"
43599
43600 cat >$xc_s1 <<\_EOT
43601 /^distclean[ ]*:/,/^[^  ][^     ]*:/{
43602   s/^.*(DEPDIR)/___xc_depdir_line___/
43603 }
43604 /^maintainer-clean[ ]*:/,/^[^   ][^     ]*:/{
43605   s/^.*(DEPDIR)/___xc_depdir_line___/
43606 }
43607 _EOT
43608
43609 cat >$xc_s2 <<\_EOT
43610 /___xc_depdir_line___$/{
43611   N
43612   /___xc_depdir_line___$/D
43613 }
43614 _EOT
43615
43616 cat >$xc_s3 <<_EOT
43617 /^___xc_depdir_line___/{
43618   r $xc_p
43619   d
43620 }
43621 _EOT
43622
43623 # Apply patch to Makefile and cleanup.
43624
43625 $SED -f "$xc_s1" "$xc_subdir/Makefile"      >"$xc_subdir/Makefile.tmp1"
43626 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
43627 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
43628
43629 if test -f "$xc_subdir/Makefile.tmp3"; then
43630   mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
43631 fi
43632
43633 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
43634 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
43635 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
43636
43637 test -f "$xc_p"  && rm -f "$xc_p"
43638 test -f "$xc_s1" && rm -f "$xc_s1"
43639 test -f "$xc_s2" && rm -f "$xc_s2"
43640 test -f "$xc_s3" && rm -f "$xc_s3"
43641
43642 fi
43643
43644 done
43645
43646 ## -------------------------------- ##
43647 ##  End of distclean amending code  ##
43648 ## -------------------------------- ##
43649
43650
43651
43652 { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
43653
43654   curl version:     ${CURLVERSION}
43655   Host setup:       ${host}
43656   Install prefix:   ${prefix}
43657   Compiler:         ${CC}
43658   SSL support:      ${curl_ssl_msg}
43659   SSH support:      ${curl_ssh_msg}
43660   zlib support:     ${curl_zlib_msg}
43661   GSS-API support:  ${curl_gss_msg}
43662   TLS-SRP support:  ${curl_tls_srp_msg}
43663   resolver:         ${curl_res_msg}
43664   IPv6 support:     ${curl_ipv6_msg}
43665   Unix sockets support: ${curl_unix_sockets_msg}
43666   IDN support:      ${curl_idn_msg}
43667   Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
43668   Built-in manual:  ${curl_manual_msg}
43669   --libcurl option: ${curl_libcurl_msg}
43670   Verbose errors:   ${curl_verbose_msg}
43671   SSPI support:     ${curl_sspi_msg}
43672   ca cert bundle:   ${ca}${ca_warning}
43673   ca cert path:     ${capath}${capath_warning}
43674   ca fallback:      ${with_ca_fallback}
43675   LDAP support:     ${curl_ldap_msg}
43676   LDAPS support:    ${curl_ldaps_msg}
43677   RTSP support:     ${curl_rtsp_msg}
43678   RTMP support:     ${curl_rtmp_msg}
43679   metalink support: ${curl_mtlnk_msg}
43680   PSL support:      ${curl_psl_msg}
43681   HTTP2 support:    ${curl_h2_msg}
43682   Protocols:        ${SUPPORT_PROTOCOLS}
43683 " >&5
43684 $as_echo "$as_me: Configured to build curl/libcurl:
43685
43686   curl version:     ${CURLVERSION}
43687   Host setup:       ${host}
43688   Install prefix:   ${prefix}
43689   Compiler:         ${CC}
43690   SSL support:      ${curl_ssl_msg}
43691   SSH support:      ${curl_ssh_msg}
43692   zlib support:     ${curl_zlib_msg}
43693   GSS-API support:  ${curl_gss_msg}
43694   TLS-SRP support:  ${curl_tls_srp_msg}
43695   resolver:         ${curl_res_msg}
43696   IPv6 support:     ${curl_ipv6_msg}
43697   Unix sockets support: ${curl_unix_sockets_msg}
43698   IDN support:      ${curl_idn_msg}
43699   Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
43700   Built-in manual:  ${curl_manual_msg}
43701   --libcurl option: ${curl_libcurl_msg}
43702   Verbose errors:   ${curl_verbose_msg}
43703   SSPI support:     ${curl_sspi_msg}
43704   ca cert bundle:   ${ca}${ca_warning}
43705   ca cert path:     ${capath}${capath_warning}
43706   ca fallback:      ${with_ca_fallback}
43707   LDAP support:     ${curl_ldap_msg}
43708   LDAPS support:    ${curl_ldaps_msg}
43709   RTSP support:     ${curl_rtsp_msg}
43710   RTMP support:     ${curl_rtmp_msg}
43711   metalink support: ${curl_mtlnk_msg}
43712   PSL support:      ${curl_psl_msg}
43713   HTTP2 support:    ${curl_h2_msg}
43714   Protocols:        ${SUPPORT_PROTOCOLS}
43715 " >&6;}
43716
43717 if test "x$soname_bump" = "xyes"; then
43718
43719 cat <<EOM
43720   SONAME bump:     yes - WARNING: this library will be built with the SONAME
43721                    number bumped due to (a detected) ABI breakage.
43722                    See lib/README.curl_off_t for details on this.
43723 EOM
43724
43725 fi
43726